v
[gdash.git] / configure
blobbe21324c0836992df3d20ee6a46c95685c7c720c
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GDash 20130623unstable.
5 # Report bugs to <http://code.google.com/p/gdash/>.
8 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26 else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
32 esac
36 as_nl='
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
84 # IFS
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" "" $as_nl"
91 # Find who we are. Look in the path if we contain no directory separator.
92 as_myself=
93 case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96 for as_dir in $PATH
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102 IFS=$as_save_IFS
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
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123 done
124 PS1='$ '
125 PS2='> '
126 PS4='+ '
128 # NLS nuisances.
129 LC_ALL=C
130 export LC_ALL
131 LANGUAGE=C
132 export LANGUAGE
134 # CDPATH.
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 # Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142 # neutralization value for shells without unset; and this also
143 # works around shells that cannot unset nonexistent variables.
144 # Preserve -v and -x to the replacement shell.
145 BASH_ENV=/dev/null
146 ENV=/dev/null
147 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148 case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153 esac
154 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155 # Admittedly, this is quite paranoid, since all the known shells bail
156 # out after a failed `exec'.
157 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 as_fn_exit 255
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162 if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170 else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
176 esac
179 as_required="as_fn_return () { (exit \$1); }
180 as_fn_success () { as_fn_return 0; }
181 as_fn_failure () { as_fn_return 1; }
182 as_fn_ret_success () { return 0; }
183 as_fn_ret_failure () { return 1; }
185 exitcode=0
186 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
192 else
193 exitcode=1; echo positional parameters were not saved.
195 test x\$exitcode = x0 || exit 1
196 test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201 test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204 else
205 as_have_required=no
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
209 else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211 as_found=false
212 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
229 done;;
230 esac
231 as_found=false
232 done
233 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236 fi; }
237 IFS=$as_save_IFS
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243 # neutralization value for shells without unset; and this also
244 # works around shells that cannot unset nonexistent variables.
245 # Preserve -v and -x to the replacement shell.
246 BASH_ENV=/dev/null
247 ENV=/dev/null
248 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249 case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254 esac
255 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256 # Admittedly, this is quite paranoid, since all the known shells bail
257 # out after a failed `exec'.
258 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259 exit 255
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270 $0: http://code.google.com/p/gdash/ about your system,
271 $0: including any error possibly output before this
272 $0: message. Then install a modern shell, or manually run
273 $0: the script under such a shell if you do have one."
275 exit 1
279 SHELL=${CONFIG_SHELL-/bin/sh}
280 export SHELL
281 # Unset more variables known to interfere with behavior of common tools.
282 CLICOLOR_FORCE= GREP_OPTIONS=
283 unset CLICOLOR_FORCE GREP_OPTIONS
285 ## --------------------- ##
286 ## M4sh Shell Functions. ##
287 ## --------------------- ##
288 # as_fn_unset VAR
289 # ---------------
290 # Portably unset VAR.
291 as_fn_unset ()
293 { eval $1=; unset $1;}
295 as_unset=as_fn_unset
297 # as_fn_set_status STATUS
298 # -----------------------
299 # Set $? to STATUS, without forking.
300 as_fn_set_status ()
302 return $1
303 } # as_fn_set_status
305 # as_fn_exit STATUS
306 # -----------------
307 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308 as_fn_exit ()
310 set +e
311 as_fn_set_status $1
312 exit $1
313 } # as_fn_exit
315 # as_fn_mkdir_p
316 # -------------
317 # Create "$as_dir" as a directory, including parents if necessary.
318 as_fn_mkdir_p ()
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337 $as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
346 /^X\(\/\/\)$/{
347 s//\1/
350 /^X\(\/\).*/{
351 s//\1/
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
361 } # as_fn_mkdir_p
363 # as_fn_executable_p FILE
364 # -----------------------
365 # Test if FILE is an executable regular file.
366 as_fn_executable_p ()
368 test -f "$1" && test -x "$1"
369 } # as_fn_executable_p
370 # as_fn_append VAR VALUE
371 # ----------------------
372 # Append the text in VALUE to the end of the definition contained in VAR. Take
373 # advantage of any shell optimizations that allow amortized linear growth over
374 # repeated appends, instead of the typical quadratic growth present in naive
375 # implementations.
376 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
379 eval $1+=\$2
381 else
382 as_fn_append ()
384 eval $1=\$$1\$2
386 fi # as_fn_append
388 # as_fn_arith ARG...
389 # ------------------
390 # Perform arithmetic evaluation on the ARGs, and store the result in the
391 # global $as_val. Take advantage of shells that can avoid forks. The arguments
392 # must be portable across $(()) and expr.
393 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
396 as_val=$(( $* ))
398 else
399 as_fn_arith ()
401 as_val=`expr "$@" || test $? -eq 1`
403 fi # as_fn_arith
406 # as_fn_error STATUS ERROR [LINENO LOG_FD]
407 # ----------------------------------------
408 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410 # script with STATUS, using 1 if that was 0.
411 as_fn_error ()
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420 } # as_fn_error
422 if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425 else
426 as_expr=false
429 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431 else
432 as_basename=false
435 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437 else
438 as_dirname=false
441 as_me=`$as_basename -- "$0" ||
442 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445 $as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
450 /^X\/\(\/\/\)$/{
451 s//\1/
454 /^X\/\(\/\).*/{
455 s//\1/
458 s/.*/./; q'`
460 # Avoid depending upon Character Ranges.
461 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464 as_cr_digits='0123456789'
465 as_cr_alnum=$as_cr_Letters$as_cr_digits
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
481 :lineno
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
503 ECHO_C= ECHO_N= ECHO_T=
504 case `echo -n x` in #(((((
505 -n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
513 ECHO_N='-n';;
514 esac
516 rm -f conf$$ conf$$.exe conf$$.file
517 if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519 else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
523 if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
537 else
538 as_ln_s='cp -pR'
540 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541 rmdir conf$$.dir 2>/dev/null
543 if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545 else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
550 as_test_x='test -x'
551 as_executable_p=as_fn_executable_p
553 # Sed expression to map a string onto a valid CPP name.
554 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
556 # Sed expression to map a string onto a valid variable name.
557 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
560 test -n "$DJDIR" || exec 7<&0 </dev/null
561 exec 6>&1
563 # Name of the host.
564 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565 # so uname gets run too.
566 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
569 # Initializations.
571 ac_default_prefix=/usr/local
572 ac_clean_files=
573 ac_config_libobj_dir=.
574 LIBOBJS=
575 cross_compiling=no
576 subdirs=
577 MFLAGS=
578 MAKEFLAGS=
580 # Identity of this package.
581 PACKAGE_NAME='GDash'
582 PACKAGE_TARNAME='gdash'
583 PACKAGE_VERSION='20130623unstable'
584 PACKAGE_STRING='GDash 20130623unstable'
585 PACKAGE_BUGREPORT='http://code.google.com/p/gdash/'
586 PACKAGE_URL=''
588 ac_unique_file="src/main.cpp"
589 gt_needs=
590 # Factoring default headers for most tests.
591 ac_includes_default="\
592 #include <stdio.h>
593 #ifdef HAVE_SYS_TYPES_H
594 # include <sys/types.h>
595 #endif
596 #ifdef HAVE_SYS_STAT_H
597 # include <sys/stat.h>
598 #endif
599 #ifdef STDC_HEADERS
600 # include <stdlib.h>
601 # include <stddef.h>
602 #else
603 # ifdef HAVE_STDLIB_H
604 # include <stdlib.h>
605 # endif
606 #endif
607 #ifdef HAVE_STRING_H
608 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 # include <memory.h>
610 # endif
611 # include <string.h>
612 #endif
613 #ifdef HAVE_STRINGS_H
614 # include <strings.h>
615 #endif
616 #ifdef HAVE_INTTYPES_H
617 # include <inttypes.h>
618 #endif
619 #ifdef HAVE_STDINT_H
620 # include <stdint.h>
621 #endif
622 #ifdef HAVE_UNISTD_H
623 # include <unistd.h>
624 #endif"
626 ac_subst_vars='am__EXEEXT_FALSE
627 am__EXEEXT_TRUE
628 LTLIBOBJS
629 LIBPNG_LIBS
630 LIBPNG_CFLAGS
631 GL_LIBS
632 GL_CFLAGS
634 XMKMF
635 SDL_LIBS
636 SDL_CFLAGS
637 SDL_CONFIG
638 SDL_FALSE
639 SDL_TRUE
640 GTK_LIBS
641 GTK_CFLAGS
642 GTK_FALSE
643 GTK_TRUE
644 GLIB_COMPILE_RESOURCES
645 GLIB_MKENUMS
646 GOBJECT_QUERY
647 GLIB_GENMARSHAL
648 GLIB_LIBS
649 GLIB_CFLAGS
650 LIBOBJS
651 POSUB
652 LTLIBINTL
653 LIBINTL
654 INTLLIBS
655 LTLIBICONV
656 LIBICONV
657 INTL_MACOSX_LIBS
658 host_os
659 host_vendor
660 host_cpu
661 host
662 build_os
663 build_vendor
664 build_cpu
665 build
666 XGETTEXT_EXTRA_OPTIONS
667 MSGMERGE
668 XGETTEXT_015
669 XGETTEXT
670 GMSGFMT_015
671 MSGFMT_015
672 GMSGFMT
673 MSGFMT
674 GETTEXT_MACRO_VERSION
675 USE_NLS
676 EGREP
677 GREP
679 PKG_CONFIG_LIBDIR
680 PKG_CONFIG_PATH
681 PKG_CONFIG
682 am__fastdepCXX_FALSE
683 am__fastdepCXX_TRUE
684 CXXDEPMODE
685 ac_ct_CXX
686 CXXFLAGS
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 OBJEXT
699 EXEEXT
700 ac_ct_CC
701 CPPFLAGS
702 LDFLAGS
703 CFLAGS
705 AM_BACKSLASH
706 AM_DEFAULT_VERBOSITY
707 AM_DEFAULT_V
708 AM_V
709 am__untar
710 am__tar
711 AMTAR
712 am__leading_dot
713 SET_MAKE
715 mkdir_p
716 MKDIR_P
717 INSTALL_STRIP_PROGRAM
718 STRIP
719 install_sh
720 MAKEINFO
721 AUTOHEADER
722 AUTOMAKE
723 AUTOCONF
724 ACLOCAL
725 VERSION
726 PACKAGE
727 CYGPATH_W
728 am__isrc
729 INSTALL_DATA
730 INSTALL_SCRIPT
731 INSTALL_PROGRAM
732 target_alias
733 host_alias
734 build_alias
735 LIBS
736 ECHO_T
737 ECHO_N
738 ECHO_C
739 DEFS
740 mandir
741 localedir
742 libdir
743 psdir
744 pdfdir
745 dvidir
746 htmldir
747 infodir
748 docdir
749 oldincludedir
750 includedir
751 localstatedir
752 sharedstatedir
753 sysconfdir
754 datadir
755 datarootdir
756 libexecdir
757 sbindir
758 bindir
759 program_transform_name
760 prefix
761 exec_prefix
762 PACKAGE_URL
763 PACKAGE_BUGREPORT
764 PACKAGE_STRING
765 PACKAGE_VERSION
766 PACKAGE_TARNAME
767 PACKAGE_NAME
768 PATH_SEPARATOR
769 SHELL'
770 ac_subst_files=''
771 ac_user_opts='
772 enable_option_checking
773 enable_silent_rules
774 enable_dependency_tracking
775 enable_nls
776 with_gnu_ld
777 enable_rpath
778 with_libiconv_prefix
779 with_libintl_prefix
780 enable_glibtest
781 with_gtk
782 with_sdl
783 enable_gtktest
784 with_sdl_prefix
785 with_sdl_exec_prefix
786 enable_sdltest
787 with_x
789 ac_precious_vars='build_alias
790 host_alias
791 target_alias
793 CFLAGS
794 LDFLAGS
795 LIBS
796 CPPFLAGS
798 CXXFLAGS
800 PKG_CONFIG
801 PKG_CONFIG_PATH
802 PKG_CONFIG_LIBDIR
804 XMKMF
805 LIBPNG_CFLAGS
806 LIBPNG_LIBS'
809 # Initialize some variables set by options.
810 ac_init_help=
811 ac_init_version=false
812 ac_unrecognized_opts=
813 ac_unrecognized_sep=
814 # The variables have the same names as the options, with
815 # dashes changed to underlines.
816 cache_file=/dev/null
817 exec_prefix=NONE
818 no_create=
819 no_recursion=
820 prefix=NONE
821 program_prefix=NONE
822 program_suffix=NONE
823 program_transform_name=s,x,x,
824 silent=
825 site=
826 srcdir=
827 verbose=
828 x_includes=NONE
829 x_libraries=NONE
831 # Installation directory options.
832 # These are left unexpanded so users can "make install exec_prefix=/foo"
833 # and all the variables that are supposed to be based on exec_prefix
834 # by default will actually change.
835 # Use braces instead of parens because sh, perl, etc. also accept them.
836 # (The list follows the same order as the GNU Coding Standards.)
837 bindir='${exec_prefix}/bin'
838 sbindir='${exec_prefix}/sbin'
839 libexecdir='${exec_prefix}/libexec'
840 datarootdir='${prefix}/share'
841 datadir='${datarootdir}'
842 sysconfdir='${prefix}/etc'
843 sharedstatedir='${prefix}/com'
844 localstatedir='${prefix}/var'
845 includedir='${prefix}/include'
846 oldincludedir='/usr/include'
847 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
848 infodir='${datarootdir}/info'
849 htmldir='${docdir}'
850 dvidir='${docdir}'
851 pdfdir='${docdir}'
852 psdir='${docdir}'
853 libdir='${exec_prefix}/lib'
854 localedir='${datarootdir}/locale'
855 mandir='${datarootdir}/man'
857 ac_prev=
858 ac_dashdash=
859 for ac_option
861 # If the previous option needs an argument, assign it.
862 if test -n "$ac_prev"; then
863 eval $ac_prev=\$ac_option
864 ac_prev=
865 continue
868 case $ac_option in
869 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
870 *=) ac_optarg= ;;
871 *) ac_optarg=yes ;;
872 esac
874 # Accept the important Cygnus configure options, so we can diagnose typos.
876 case $ac_dashdash$ac_option in
878 ac_dashdash=yes ;;
880 -bindir | --bindir | --bindi | --bind | --bin | --bi)
881 ac_prev=bindir ;;
882 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
883 bindir=$ac_optarg ;;
885 -build | --build | --buil | --bui | --bu)
886 ac_prev=build_alias ;;
887 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
888 build_alias=$ac_optarg ;;
890 -cache-file | --cache-file | --cache-fil | --cache-fi \
891 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
892 ac_prev=cache_file ;;
893 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
894 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
895 cache_file=$ac_optarg ;;
897 --config-cache | -C)
898 cache_file=config.cache ;;
900 -datadir | --datadir | --datadi | --datad)
901 ac_prev=datadir ;;
902 -datadir=* | --datadir=* | --datadi=* | --datad=*)
903 datadir=$ac_optarg ;;
905 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
906 | --dataroo | --dataro | --datar)
907 ac_prev=datarootdir ;;
908 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
909 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
910 datarootdir=$ac_optarg ;;
912 -disable-* | --disable-*)
913 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
914 # Reject names that are not valid shell variable names.
915 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
916 as_fn_error $? "invalid feature name: $ac_useropt"
917 ac_useropt_orig=$ac_useropt
918 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
919 case $ac_user_opts in
921 "enable_$ac_useropt"
922 "*) ;;
923 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
924 ac_unrecognized_sep=', ';;
925 esac
926 eval enable_$ac_useropt=no ;;
928 -docdir | --docdir | --docdi | --doc | --do)
929 ac_prev=docdir ;;
930 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
931 docdir=$ac_optarg ;;
933 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
934 ac_prev=dvidir ;;
935 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
936 dvidir=$ac_optarg ;;
938 -enable-* | --enable-*)
939 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
940 # Reject names that are not valid shell variable names.
941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
942 as_fn_error $? "invalid feature name: $ac_useropt"
943 ac_useropt_orig=$ac_useropt
944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
945 case $ac_user_opts in
947 "enable_$ac_useropt"
948 "*) ;;
949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
950 ac_unrecognized_sep=', ';;
951 esac
952 eval enable_$ac_useropt=\$ac_optarg ;;
954 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
955 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
956 | --exec | --exe | --ex)
957 ac_prev=exec_prefix ;;
958 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
959 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
960 | --exec=* | --exe=* | --ex=*)
961 exec_prefix=$ac_optarg ;;
963 -gas | --gas | --ga | --g)
964 # Obsolete; use --with-gas.
965 with_gas=yes ;;
967 -help | --help | --hel | --he | -h)
968 ac_init_help=long ;;
969 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
970 ac_init_help=recursive ;;
971 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
972 ac_init_help=short ;;
974 -host | --host | --hos | --ho)
975 ac_prev=host_alias ;;
976 -host=* | --host=* | --hos=* | --ho=*)
977 host_alias=$ac_optarg ;;
979 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
980 ac_prev=htmldir ;;
981 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
982 | --ht=*)
983 htmldir=$ac_optarg ;;
985 -includedir | --includedir | --includedi | --included | --include \
986 | --includ | --inclu | --incl | --inc)
987 ac_prev=includedir ;;
988 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
989 | --includ=* | --inclu=* | --incl=* | --inc=*)
990 includedir=$ac_optarg ;;
992 -infodir | --infodir | --infodi | --infod | --info | --inf)
993 ac_prev=infodir ;;
994 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
995 infodir=$ac_optarg ;;
997 -libdir | --libdir | --libdi | --libd)
998 ac_prev=libdir ;;
999 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1000 libdir=$ac_optarg ;;
1002 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1003 | --libexe | --libex | --libe)
1004 ac_prev=libexecdir ;;
1005 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1006 | --libexe=* | --libex=* | --libe=*)
1007 libexecdir=$ac_optarg ;;
1009 -localedir | --localedir | --localedi | --localed | --locale)
1010 ac_prev=localedir ;;
1011 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1012 localedir=$ac_optarg ;;
1014 -localstatedir | --localstatedir | --localstatedi | --localstated \
1015 | --localstate | --localstat | --localsta | --localst | --locals)
1016 ac_prev=localstatedir ;;
1017 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1018 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1019 localstatedir=$ac_optarg ;;
1021 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1022 ac_prev=mandir ;;
1023 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1024 mandir=$ac_optarg ;;
1026 -nfp | --nfp | --nf)
1027 # Obsolete; use --without-fp.
1028 with_fp=no ;;
1030 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1031 | --no-cr | --no-c | -n)
1032 no_create=yes ;;
1034 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1035 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1036 no_recursion=yes ;;
1038 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1039 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1040 | --oldin | --oldi | --old | --ol | --o)
1041 ac_prev=oldincludedir ;;
1042 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1043 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1044 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1045 oldincludedir=$ac_optarg ;;
1047 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1048 ac_prev=prefix ;;
1049 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1050 prefix=$ac_optarg ;;
1052 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1053 | --program-pre | --program-pr | --program-p)
1054 ac_prev=program_prefix ;;
1055 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1056 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1057 program_prefix=$ac_optarg ;;
1059 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1060 | --program-suf | --program-su | --program-s)
1061 ac_prev=program_suffix ;;
1062 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1063 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1064 program_suffix=$ac_optarg ;;
1066 -program-transform-name | --program-transform-name \
1067 | --program-transform-nam | --program-transform-na \
1068 | --program-transform-n | --program-transform- \
1069 | --program-transform | --program-transfor \
1070 | --program-transfo | --program-transf \
1071 | --program-trans | --program-tran \
1072 | --progr-tra | --program-tr | --program-t)
1073 ac_prev=program_transform_name ;;
1074 -program-transform-name=* | --program-transform-name=* \
1075 | --program-transform-nam=* | --program-transform-na=* \
1076 | --program-transform-n=* | --program-transform-=* \
1077 | --program-transform=* | --program-transfor=* \
1078 | --program-transfo=* | --program-transf=* \
1079 | --program-trans=* | --program-tran=* \
1080 | --progr-tra=* | --program-tr=* | --program-t=*)
1081 program_transform_name=$ac_optarg ;;
1083 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1084 ac_prev=pdfdir ;;
1085 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1086 pdfdir=$ac_optarg ;;
1088 -psdir | --psdir | --psdi | --psd | --ps)
1089 ac_prev=psdir ;;
1090 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1091 psdir=$ac_optarg ;;
1093 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1094 | -silent | --silent | --silen | --sile | --sil)
1095 silent=yes ;;
1097 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1098 ac_prev=sbindir ;;
1099 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1100 | --sbi=* | --sb=*)
1101 sbindir=$ac_optarg ;;
1103 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1104 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1105 | --sharedst | --shareds | --shared | --share | --shar \
1106 | --sha | --sh)
1107 ac_prev=sharedstatedir ;;
1108 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1109 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1110 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1111 | --sha=* | --sh=*)
1112 sharedstatedir=$ac_optarg ;;
1114 -site | --site | --sit)
1115 ac_prev=site ;;
1116 -site=* | --site=* | --sit=*)
1117 site=$ac_optarg ;;
1119 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1120 ac_prev=srcdir ;;
1121 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1122 srcdir=$ac_optarg ;;
1124 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1125 | --syscon | --sysco | --sysc | --sys | --sy)
1126 ac_prev=sysconfdir ;;
1127 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1128 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1129 sysconfdir=$ac_optarg ;;
1131 -target | --target | --targe | --targ | --tar | --ta | --t)
1132 ac_prev=target_alias ;;
1133 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1134 target_alias=$ac_optarg ;;
1136 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1137 verbose=yes ;;
1139 -version | --version | --versio | --versi | --vers | -V)
1140 ac_init_version=: ;;
1142 -with-* | --with-*)
1143 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1144 # Reject names that are not valid shell variable names.
1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1146 as_fn_error $? "invalid package name: $ac_useropt"
1147 ac_useropt_orig=$ac_useropt
1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1149 case $ac_user_opts in
1151 "with_$ac_useropt"
1152 "*) ;;
1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1154 ac_unrecognized_sep=', ';;
1155 esac
1156 eval with_$ac_useropt=\$ac_optarg ;;
1158 -without-* | --without-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=no ;;
1174 --x)
1175 # Obsolete; use --with-x.
1176 with_x=yes ;;
1178 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1179 | --x-incl | --x-inc | --x-in | --x-i)
1180 ac_prev=x_includes ;;
1181 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1182 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1183 x_includes=$ac_optarg ;;
1185 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1186 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1187 ac_prev=x_libraries ;;
1188 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1189 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1190 x_libraries=$ac_optarg ;;
1192 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1193 Try \`$0 --help' for more information"
1196 *=*)
1197 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1198 # Reject names that are not valid shell variable names.
1199 case $ac_envvar in #(
1200 '' | [0-9]* | *[!_$as_cr_alnum]* )
1201 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1202 esac
1203 eval $ac_envvar=\$ac_optarg
1204 export $ac_envvar ;;
1207 # FIXME: should be removed in autoconf 3.0.
1208 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1209 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1210 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1211 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1214 esac
1215 done
1217 if test -n "$ac_prev"; then
1218 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1219 as_fn_error $? "missing argument to $ac_option"
1222 if test -n "$ac_unrecognized_opts"; then
1223 case $enable_option_checking in
1224 no) ;;
1225 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1226 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1227 esac
1230 # Check all directory arguments for consistency.
1231 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1232 datadir sysconfdir sharedstatedir localstatedir includedir \
1233 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1234 libdir localedir mandir
1236 eval ac_val=\$$ac_var
1237 # Remove trailing slashes.
1238 case $ac_val in
1239 */ )
1240 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1241 eval $ac_var=\$ac_val;;
1242 esac
1243 # Be sure to have absolute directory names.
1244 case $ac_val in
1245 [\\/$]* | ?:[\\/]* ) continue;;
1246 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1247 esac
1248 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1249 done
1251 # There might be people who depend on the old broken behavior: `$host'
1252 # used to hold the argument of --host etc.
1253 # FIXME: To remove some day.
1254 build=$build_alias
1255 host=$host_alias
1256 target=$target_alias
1258 # FIXME: To remove some day.
1259 if test "x$host_alias" != x; then
1260 if test "x$build_alias" = x; then
1261 cross_compiling=maybe
1262 elif test "x$build_alias" != "x$host_alias"; then
1263 cross_compiling=yes
1267 ac_tool_prefix=
1268 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1270 test "$silent" = yes && exec 6>/dev/null
1273 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1274 ac_ls_di=`ls -di .` &&
1275 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1276 as_fn_error $? "working directory cannot be determined"
1277 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1278 as_fn_error $? "pwd does not report name of working directory"
1281 # Find the source files, if location was not specified.
1282 if test -z "$srcdir"; then
1283 ac_srcdir_defaulted=yes
1284 # Try the directory containing this script, then the parent directory.
1285 ac_confdir=`$as_dirname -- "$as_myself" ||
1286 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1287 X"$as_myself" : 'X\(//\)[^/]' \| \
1288 X"$as_myself" : 'X\(//\)$' \| \
1289 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1290 $as_echo X"$as_myself" |
1291 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1292 s//\1/
1295 /^X\(\/\/\)[^/].*/{
1296 s//\1/
1299 /^X\(\/\/\)$/{
1300 s//\1/
1303 /^X\(\/\).*/{
1304 s//\1/
1307 s/.*/./; q'`
1308 srcdir=$ac_confdir
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 srcdir=..
1312 else
1313 ac_srcdir_defaulted=no
1315 if test ! -r "$srcdir/$ac_unique_file"; then
1316 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1317 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1319 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1320 ac_abs_confdir=`(
1321 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1322 pwd)`
1323 # When building in place, set srcdir=.
1324 if test "$ac_abs_confdir" = "$ac_pwd"; then
1325 srcdir=.
1327 # Remove unnecessary trailing slashes from srcdir.
1328 # Double slashes in file names in object file debugging info
1329 # mess up M-x gdb in Emacs.
1330 case $srcdir in
1331 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1332 esac
1333 for ac_var in $ac_precious_vars; do
1334 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_env_${ac_var}_value=\$${ac_var}
1336 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1337 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1338 done
1341 # Report the --help message.
1343 if test "$ac_init_help" = "long"; then
1344 # Omit some internal or obsolete options to make the list less imposing.
1345 # This message is too long to be a string in the A/UX 3.1 sh.
1346 cat <<_ACEOF
1347 \`configure' configures GDash 20130623unstable to adapt to many kinds of systems.
1349 Usage: $0 [OPTION]... [VAR=VALUE]...
1351 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1352 VAR=VALUE. See below for descriptions of some of the useful variables.
1354 Defaults for the options are specified in brackets.
1356 Configuration:
1357 -h, --help display this help and exit
1358 --help=short display options specific to this package
1359 --help=recursive display the short help of all the included packages
1360 -V, --version display version information and exit
1361 -q, --quiet, --silent do not print \`checking ...' messages
1362 --cache-file=FILE cache test results in FILE [disabled]
1363 -C, --config-cache alias for \`--cache-file=config.cache'
1364 -n, --no-create do not create output files
1365 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1367 Installation directories:
1368 --prefix=PREFIX install architecture-independent files in PREFIX
1369 [$ac_default_prefix]
1370 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1371 [PREFIX]
1373 By default, \`make install' will install all the files in
1374 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1375 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1376 for instance \`--prefix=\$HOME'.
1378 For better control, use the options below.
1380 Fine tuning of the installation directories:
1381 --bindir=DIR user executables [EPREFIX/bin]
1382 --sbindir=DIR system admin executables [EPREFIX/sbin]
1383 --libexecdir=DIR program executables [EPREFIX/libexec]
1384 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1385 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1386 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1387 --libdir=DIR object code libraries [EPREFIX/lib]
1388 --includedir=DIR C header files [PREFIX/include]
1389 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1390 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1391 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1392 --infodir=DIR info documentation [DATAROOTDIR/info]
1393 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1394 --mandir=DIR man documentation [DATAROOTDIR/man]
1395 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1396 --htmldir=DIR html documentation [DOCDIR]
1397 --dvidir=DIR dvi documentation [DOCDIR]
1398 --pdfdir=DIR pdf documentation [DOCDIR]
1399 --psdir=DIR ps documentation [DOCDIR]
1400 _ACEOF
1402 cat <<\_ACEOF
1404 Program names:
1405 --program-prefix=PREFIX prepend PREFIX to installed program names
1406 --program-suffix=SUFFIX append SUFFIX to installed program names
1407 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1409 X features:
1410 --x-includes=DIR X include files are in DIR
1411 --x-libraries=DIR X library files are in DIR
1413 System types:
1414 --build=BUILD configure for building on BUILD [guessed]
1415 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1416 _ACEOF
1419 if test -n "$ac_init_help"; then
1420 case $ac_init_help in
1421 short | recursive ) echo "Configuration of GDash 20130623unstable:";;
1422 esac
1423 cat <<\_ACEOF
1425 Optional Features:
1426 --disable-option-checking ignore unrecognized --enable/--with options
1427 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1428 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1429 --enable-silent-rules less verbose build output (undo: `make V=1')
1430 --disable-silent-rules verbose build output (undo: `make V=0')
1431 --disable-dependency-tracking speeds up one-time build
1432 --enable-dependency-tracking do not reject slow dependency extractors
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --disable-glibtest do not try to compile and run a test GLIB program
1436 --disable-gtktest do not try to compile and run a test GTK+ program
1437 --disable-sdltest Do not try to compile and run a test SDL program
1439 Optional Packages:
1440 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1441 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1442 --with-gnu-ld assume the C compiler uses GNU ld default=no
1443 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1444 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1445 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1446 --without-libintl-prefix don't search for libintl in includedir and libdir
1447 --without-gtk disables using gtk+
1448 --without-sdl disables using sdl
1449 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1450 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1451 --with-x use the X Window System
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 LIBS libraries to pass to the linker, e.g. -l<library>
1459 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1460 you have headers in a nonstandard directory <include dir>
1461 CXX C++ compiler command
1462 CXXFLAGS C++ compiler flags
1463 PKG_CONFIG path to pkg-config utility
1464 PKG_CONFIG_PATH
1465 directories to add to pkg-config's search path
1466 PKG_CONFIG_LIBDIR
1467 path overriding pkg-config's built-in search path
1468 CPP C preprocessor
1469 XMKMF Path to xmkmf, Makefile generator for X Window System
1470 LIBPNG_CFLAGS
1471 C compiler flags for LIBPNG, overriding pkg-config
1472 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1474 Use these variables to override the choices made by `configure' or to help
1475 it to find libraries and programs with nonstandard names/locations.
1477 Report bugs to <http://code.google.com/p/gdash/>.
1478 _ACEOF
1479 ac_status=$?
1482 if test "$ac_init_help" = "recursive"; then
1483 # If there are subdirs, report their specific --help.
1484 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1485 test -d "$ac_dir" ||
1486 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1487 continue
1488 ac_builddir=.
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1493 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1494 # A ".." for each directory in $ac_dir_suffix.
1495 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1496 case $ac_top_builddir_sub in
1497 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499 esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1506 case $srcdir in
1507 .) # We are building in place.
1508 ac_srcdir=.
1509 ac_top_srcdir=$ac_top_builddir_sub
1510 ac_abs_top_srcdir=$ac_pwd ;;
1511 [\\/]* | ?:[\\/]* ) # Absolute name.
1512 ac_srcdir=$srcdir$ac_dir_suffix;
1513 ac_top_srcdir=$srcdir
1514 ac_abs_top_srcdir=$srcdir ;;
1515 *) # Relative name.
1516 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517 ac_top_srcdir=$ac_top_build_prefix$srcdir
1518 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1522 cd "$ac_dir" || { ac_status=$?; continue; }
1523 # Check for guested configure.
1524 if test -f "$ac_srcdir/configure.gnu"; then
1525 echo &&
1526 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527 elif test -f "$ac_srcdir/configure"; then
1528 echo &&
1529 $SHELL "$ac_srcdir/configure" --help=recursive
1530 else
1531 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532 fi || ac_status=$?
1533 cd "$ac_pwd" || { ac_status=$?; break; }
1534 done
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539 cat <<\_ACEOF
1540 GDash configure 20130623unstable
1541 generated by GNU Autoconf 2.69
1543 Copyright (C) 2012 Free Software Foundation, Inc.
1544 This configure script is free software; the Free Software Foundation
1545 gives unlimited permission to copy, distribute and modify it.
1546 _ACEOF
1547 exit
1550 ## ------------------------ ##
1551 ## Autoconf initialization. ##
1552 ## ------------------------ ##
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile ()
1559 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1560 rm -f conftest.$ac_objext
1561 if { { ac_try="$ac_compile"
1562 case "(($ac_try" in
1563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1565 esac
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1569 ac_status=$?
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1580 ac_retval=0
1581 else
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1585 ac_retval=1
1587 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_cxx_try_compile LINENO
1593 # ----------------------------
1594 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_cxx_try_compile ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext
1599 if { { ac_try="$ac_compile"
1600 case "(($ac_try" in
1601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1602 *) ac_try_echo=$ac_try;;
1603 esac
1604 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_compile") 2>conftest.err
1607 ac_status=$?
1608 if test -s conftest.err; then
1609 grep -v '^ *+' conftest.err >conftest.er1
1610 cat conftest.er1 >&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_cxx_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest.$ac_objext; then :
1618 ac_retval=0
1619 else
1620 $as_echo "$as_me: failed program was:" >&5
1621 sed 's/^/| /' conftest.$ac_ext >&5
1623 ac_retval=1
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1626 as_fn_set_status $ac_retval
1628 } # ac_fn_cxx_try_compile
1630 # ac_fn_c_try_link LINENO
1631 # -----------------------
1632 # Try to link conftest.$ac_ext, and return whether this succeeded.
1633 ac_fn_c_try_link ()
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 rm -f conftest.$ac_objext conftest$ac_exeext
1637 if { { ac_try="$ac_link"
1638 case "(($ac_try" in
1639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1640 *) ac_try_echo=$ac_try;;
1641 esac
1642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1643 $as_echo "$ac_try_echo"; } >&5
1644 (eval "$ac_link") 2>conftest.err
1645 ac_status=$?
1646 if test -s conftest.err; then
1647 grep -v '^ *+' conftest.err >conftest.er1
1648 cat conftest.er1 >&5
1649 mv -f conftest.er1 conftest.err
1651 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1652 test $ac_status = 0; } && {
1653 test -z "$ac_c_werror_flag" ||
1654 test ! -s conftest.err
1655 } && test -s conftest$ac_exeext && {
1656 test "$cross_compiling" = yes ||
1657 test -x conftest$ac_exeext
1658 }; then :
1659 ac_retval=0
1660 else
1661 $as_echo "$as_me: failed program was:" >&5
1662 sed 's/^/| /' conftest.$ac_ext >&5
1664 ac_retval=1
1666 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1667 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1668 # interfere with the next link command; also delete a directory that is
1669 # left behind by Apple's compiler. We do this before executing the actions.
1670 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1671 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1672 as_fn_set_status $ac_retval
1674 } # ac_fn_c_try_link
1676 # ac_fn_c_try_cpp LINENO
1677 # ----------------------
1678 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1679 ac_fn_c_try_cpp ()
1681 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1682 if { { ac_try="$ac_cpp conftest.$ac_ext"
1683 case "(($ac_try" in
1684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1685 *) ac_try_echo=$ac_try;;
1686 esac
1687 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1688 $as_echo "$ac_try_echo"; } >&5
1689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1690 ac_status=$?
1691 if test -s conftest.err; then
1692 grep -v '^ *+' conftest.err >conftest.er1
1693 cat conftest.er1 >&5
1694 mv -f conftest.er1 conftest.err
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; } > conftest.i && {
1698 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1699 test ! -s conftest.err
1700 }; then :
1701 ac_retval=0
1702 else
1703 $as_echo "$as_me: failed program was:" >&5
1704 sed 's/^/| /' conftest.$ac_ext >&5
1706 ac_retval=1
1708 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1709 as_fn_set_status $ac_retval
1711 } # ac_fn_c_try_cpp
1713 # ac_fn_c_try_run LINENO
1714 # ----------------------
1715 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1716 # that executables *can* be run.
1717 ac_fn_c_try_run ()
1719 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1720 if { { ac_try="$ac_link"
1721 case "(($ac_try" in
1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1723 *) ac_try_echo=$ac_try;;
1724 esac
1725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1726 $as_echo "$ac_try_echo"; } >&5
1727 (eval "$ac_link") 2>&5
1728 ac_status=$?
1729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1730 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1731 { { case "(($ac_try" in
1732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1733 *) ac_try_echo=$ac_try;;
1734 esac
1735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1736 $as_echo "$ac_try_echo"; } >&5
1737 (eval "$ac_try") 2>&5
1738 ac_status=$?
1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1740 test $ac_status = 0; }; }; then :
1741 ac_retval=0
1742 else
1743 $as_echo "$as_me: program exited with status $ac_status" >&5
1744 $as_echo "$as_me: failed program was:" >&5
1745 sed 's/^/| /' conftest.$ac_ext >&5
1747 ac_retval=$ac_status
1749 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1750 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1751 as_fn_set_status $ac_retval
1753 } # ac_fn_c_try_run
1755 # ac_fn_c_check_func LINENO FUNC VAR
1756 # ----------------------------------
1757 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1758 ac_fn_c_check_func ()
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1762 $as_echo_n "checking for $2... " >&6; }
1763 if eval \${$3+:} false; then :
1764 $as_echo_n "(cached) " >&6
1765 else
1766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1767 /* end confdefs.h. */
1768 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1770 #define $2 innocuous_$2
1772 /* System header to define __stub macros and hopefully few prototypes,
1773 which can conflict with char $2 (); below.
1774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1775 <limits.h> exists even on freestanding compilers. */
1777 #ifdef __STDC__
1778 # include <limits.h>
1779 #else
1780 # include <assert.h>
1781 #endif
1783 #undef $2
1785 /* Override any GCC internal prototype to avoid an error.
1786 Use char because int might match the return type of a GCC
1787 builtin and then its argument prototype would still apply. */
1788 #ifdef __cplusplus
1789 extern "C"
1790 #endif
1791 char $2 ();
1792 /* The GNU C library defines this for functions which it implements
1793 to always fail with ENOSYS. Some functions are actually named
1794 something starting with __ and the normal name is an alias. */
1795 #if defined __stub_$2 || defined __stub___$2
1796 choke me
1797 #endif
1800 main ()
1802 return $2 ();
1804 return 0;
1806 _ACEOF
1807 if ac_fn_c_try_link "$LINENO"; then :
1808 eval "$3=yes"
1809 else
1810 eval "$3=no"
1812 rm -f core conftest.err conftest.$ac_objext \
1813 conftest$ac_exeext conftest.$ac_ext
1815 eval ac_res=\$$3
1816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1817 $as_echo "$ac_res" >&6; }
1818 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1820 } # ac_fn_c_check_func
1822 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1823 # -------------------------------------------------------
1824 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1825 # the include files in INCLUDES and setting the cache variable VAR
1826 # accordingly.
1827 ac_fn_c_check_header_mongrel ()
1829 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1830 if eval \${$3+:} false; then :
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1832 $as_echo_n "checking for $2... " >&6; }
1833 if eval \${$3+:} false; then :
1834 $as_echo_n "(cached) " >&6
1836 eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 else
1840 # Is the header compilable?
1841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1842 $as_echo_n "checking $2 usability... " >&6; }
1843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1844 /* end confdefs.h. */
1846 #include <$2>
1847 _ACEOF
1848 if ac_fn_c_try_compile "$LINENO"; then :
1849 ac_header_compiler=yes
1850 else
1851 ac_header_compiler=no
1853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1855 $as_echo "$ac_header_compiler" >&6; }
1857 # Is the header present?
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1859 $as_echo_n "checking $2 presence... " >&6; }
1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1861 /* end confdefs.h. */
1862 #include <$2>
1863 _ACEOF
1864 if ac_fn_c_try_cpp "$LINENO"; then :
1865 ac_header_preproc=yes
1866 else
1867 ac_header_preproc=no
1869 rm -f conftest.err conftest.i conftest.$ac_ext
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1871 $as_echo "$ac_header_preproc" >&6; }
1873 # So? What about this header?
1874 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1875 yes:no: )
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1877 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1881 no:yes:* )
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1883 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1885 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1887 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1889 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1891 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1892 ( $as_echo "## ---------------------------------------------- ##
1893 ## Report this to http://code.google.com/p/gdash/ ##
1894 ## ---------------------------------------------- ##"
1895 ) | sed "s/^/$as_me: WARNING: /" >&2
1897 esac
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1899 $as_echo_n "checking for $2... " >&6; }
1900 if eval \${$3+:} false; then :
1901 $as_echo_n "(cached) " >&6
1902 else
1903 eval "$3=\$ac_header_compiler"
1905 eval ac_res=\$$3
1906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1907 $as_echo "$ac_res" >&6; }
1909 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1911 } # ac_fn_c_check_header_mongrel
1913 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1914 # -------------------------------------------------------
1915 # Tests whether HEADER exists and can be compiled using the include files in
1916 # INCLUDES, setting the cache variable VAR accordingly.
1917 ac_fn_c_check_header_compile ()
1919 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1921 $as_echo_n "checking for $2... " >&6; }
1922 if eval \${$3+:} false; then :
1923 $as_echo_n "(cached) " >&6
1924 else
1925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1926 /* end confdefs.h. */
1928 #include <$2>
1929 _ACEOF
1930 if ac_fn_c_try_compile "$LINENO"; then :
1931 eval "$3=yes"
1932 else
1933 eval "$3=no"
1935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1937 eval ac_res=\$$3
1938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1939 $as_echo "$ac_res" >&6; }
1940 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1942 } # ac_fn_c_check_header_compile
1944 # ac_fn_c_find_uintX_t LINENO BITS VAR
1945 # ------------------------------------
1946 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1947 # accordingly.
1948 ac_fn_c_find_uintX_t ()
1950 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1952 $as_echo_n "checking for uint$2_t... " >&6; }
1953 if eval \${$3+:} false; then :
1954 $as_echo_n "(cached) " >&6
1955 else
1956 eval "$3=no"
1957 # Order is important - never check a type that is potentially smaller
1958 # than half of the expected target width.
1959 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1960 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1962 /* end confdefs.h. */
1963 $ac_includes_default
1965 main ()
1967 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1968 test_array [0] = 0;
1969 return test_array [0];
1972 return 0;
1974 _ACEOF
1975 if ac_fn_c_try_compile "$LINENO"; then :
1976 case $ac_type in #(
1977 uint$2_t) :
1978 eval "$3=yes" ;; #(
1979 *) :
1980 eval "$3=\$ac_type" ;;
1981 esac
1983 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1984 if eval test \"x\$"$3"\" = x"no"; then :
1986 else
1987 break
1989 done
1991 eval ac_res=\$$3
1992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1993 $as_echo "$ac_res" >&6; }
1994 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1996 } # ac_fn_c_find_uintX_t
1997 cat >config.log <<_ACEOF
1998 This file contains any messages produced by compilers while
1999 running configure, to aid debugging if configure makes a mistake.
2001 It was created by GDash $as_me 20130623unstable, which was
2002 generated by GNU Autoconf 2.69. Invocation command line was
2004 $ $0 $@
2006 _ACEOF
2007 exec 5>>config.log
2009 cat <<_ASUNAME
2010 ## --------- ##
2011 ## Platform. ##
2012 ## --------- ##
2014 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2015 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2016 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2017 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2018 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2020 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2021 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2023 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2024 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2025 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2026 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2027 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2028 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2029 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2031 _ASUNAME
2033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 for as_dir in $PATH
2036 IFS=$as_save_IFS
2037 test -z "$as_dir" && as_dir=.
2038 $as_echo "PATH: $as_dir"
2039 done
2040 IFS=$as_save_IFS
2042 } >&5
2044 cat >&5 <<_ACEOF
2047 ## ----------- ##
2048 ## Core tests. ##
2049 ## ----------- ##
2051 _ACEOF
2054 # Keep a trace of the command line.
2055 # Strip out --no-create and --no-recursion so they do not pile up.
2056 # Strip out --silent because we don't want to record it for future runs.
2057 # Also quote any args containing shell meta-characters.
2058 # Make two passes to allow for proper duplicate-argument suppression.
2059 ac_configure_args=
2060 ac_configure_args0=
2061 ac_configure_args1=
2062 ac_must_keep_next=false
2063 for ac_pass in 1 2
2065 for ac_arg
2067 case $ac_arg in
2068 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2069 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2070 | -silent | --silent | --silen | --sile | --sil)
2071 continue ;;
2072 *\'*)
2073 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2074 esac
2075 case $ac_pass in
2076 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2078 as_fn_append ac_configure_args1 " '$ac_arg'"
2079 if test $ac_must_keep_next = true; then
2080 ac_must_keep_next=false # Got value, back to normal.
2081 else
2082 case $ac_arg in
2083 *=* | --config-cache | -C | -disable-* | --disable-* \
2084 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2085 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2086 | -with-* | --with-* | -without-* | --without-* | --x)
2087 case "$ac_configure_args0 " in
2088 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2089 esac
2091 -* ) ac_must_keep_next=true ;;
2092 esac
2094 as_fn_append ac_configure_args " '$ac_arg'"
2096 esac
2097 done
2098 done
2099 { ac_configure_args0=; unset ac_configure_args0;}
2100 { ac_configure_args1=; unset ac_configure_args1;}
2102 # When interrupted or exit'd, cleanup temporary files, and complete
2103 # config.log. We remove comments because anyway the quotes in there
2104 # would cause problems or look ugly.
2105 # WARNING: Use '\'' to represent an apostrophe within the trap.
2106 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2107 trap 'exit_status=$?
2108 # Save into config.log some information that might help in debugging.
2110 echo
2112 $as_echo "## ---------------- ##
2113 ## Cache variables. ##
2114 ## ---------------- ##"
2115 echo
2116 # The following way of writing the cache mishandles newlines in values,
2118 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2119 eval ac_val=\$$ac_var
2120 case $ac_val in #(
2121 *${as_nl}*)
2122 case $ac_var in #(
2123 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2124 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2125 esac
2126 case $ac_var in #(
2127 _ | IFS | as_nl) ;; #(
2128 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2129 *) { eval $ac_var=; unset $ac_var;} ;;
2130 esac ;;
2131 esac
2132 done
2133 (set) 2>&1 |
2134 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2135 *${as_nl}ac_space=\ *)
2136 sed -n \
2137 "s/'\''/'\''\\\\'\'''\''/g;
2138 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2139 ;; #(
2141 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2143 esac |
2144 sort
2146 echo
2148 $as_echo "## ----------------- ##
2149 ## Output variables. ##
2150 ## ----------------- ##"
2151 echo
2152 for ac_var in $ac_subst_vars
2154 eval ac_val=\$$ac_var
2155 case $ac_val in
2156 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2157 esac
2158 $as_echo "$ac_var='\''$ac_val'\''"
2159 done | sort
2160 echo
2162 if test -n "$ac_subst_files"; then
2163 $as_echo "## ------------------- ##
2164 ## File substitutions. ##
2165 ## ------------------- ##"
2166 echo
2167 for ac_var in $ac_subst_files
2169 eval ac_val=\$$ac_var
2170 case $ac_val in
2171 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2172 esac
2173 $as_echo "$ac_var='\''$ac_val'\''"
2174 done | sort
2175 echo
2178 if test -s confdefs.h; then
2179 $as_echo "## ----------- ##
2180 ## confdefs.h. ##
2181 ## ----------- ##"
2182 echo
2183 cat confdefs.h
2184 echo
2186 test "$ac_signal" != 0 &&
2187 $as_echo "$as_me: caught signal $ac_signal"
2188 $as_echo "$as_me: exit $exit_status"
2189 } >&5
2190 rm -f core *.core core.conftest.* &&
2191 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2192 exit $exit_status
2194 for ac_signal in 1 2 13 15; do
2195 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2196 done
2197 ac_signal=0
2199 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2200 rm -f -r conftest* confdefs.h
2202 $as_echo "/* confdefs.h */" > confdefs.h
2204 # Predefined preprocessor variables.
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_NAME "$PACKAGE_NAME"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2212 _ACEOF
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2216 _ACEOF
2218 cat >>confdefs.h <<_ACEOF
2219 #define PACKAGE_STRING "$PACKAGE_STRING"
2220 _ACEOF
2222 cat >>confdefs.h <<_ACEOF
2223 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2224 _ACEOF
2226 cat >>confdefs.h <<_ACEOF
2227 #define PACKAGE_URL "$PACKAGE_URL"
2228 _ACEOF
2231 # Let the site file select an alternate cache file if it wants to.
2232 # Prefer an explicitly selected file to automatically selected ones.
2233 ac_site_file1=NONE
2234 ac_site_file2=NONE
2235 if test -n "$CONFIG_SITE"; then
2236 # We do not want a PATH search for config.site.
2237 case $CONFIG_SITE in #((
2238 -*) ac_site_file1=./$CONFIG_SITE;;
2239 */*) ac_site_file1=$CONFIG_SITE;;
2240 *) ac_site_file1=./$CONFIG_SITE;;
2241 esac
2242 elif test "x$prefix" != xNONE; then
2243 ac_site_file1=$prefix/share/config.site
2244 ac_site_file2=$prefix/etc/config.site
2245 else
2246 ac_site_file1=$ac_default_prefix/share/config.site
2247 ac_site_file2=$ac_default_prefix/etc/config.site
2249 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2251 test "x$ac_site_file" = xNONE && continue
2252 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2254 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2255 sed 's/^/| /' "$ac_site_file" >&5
2256 . "$ac_site_file" \
2257 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2258 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2259 as_fn_error $? "failed to load site script $ac_site_file
2260 See \`config.log' for more details" "$LINENO" 5; }
2262 done
2264 if test -r "$cache_file"; then
2265 # Some versions of bash will fail to source /dev/null (special files
2266 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2267 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2269 $as_echo "$as_me: loading cache $cache_file" >&6;}
2270 case $cache_file in
2271 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2272 *) . "./$cache_file";;
2273 esac
2275 else
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2277 $as_echo "$as_me: creating cache $cache_file" >&6;}
2278 >$cache_file
2281 gt_needs="$gt_needs "
2282 # Check that the precious variables saved in the cache have kept the same
2283 # value.
2284 ac_cache_corrupted=false
2285 for ac_var in $ac_precious_vars; do
2286 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2287 eval ac_new_set=\$ac_env_${ac_var}_set
2288 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2289 eval ac_new_val=\$ac_env_${ac_var}_value
2290 case $ac_old_set,$ac_new_set in
2291 set,)
2292 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2293 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2294 ac_cache_corrupted=: ;;
2295 ,set)
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2297 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2298 ac_cache_corrupted=: ;;
2299 ,);;
2301 if test "x$ac_old_val" != "x$ac_new_val"; then
2302 # differences in whitespace do not lead to failure.
2303 ac_old_val_w=`echo x $ac_old_val`
2304 ac_new_val_w=`echo x $ac_new_val`
2305 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2307 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2308 ac_cache_corrupted=:
2309 else
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2311 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2312 eval $ac_var=\$ac_old_val
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2315 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2317 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2318 fi;;
2319 esac
2320 # Pass precious variables to config.status.
2321 if test "$ac_new_set" = set; then
2322 case $ac_new_val in
2323 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2324 *) ac_arg=$ac_var=$ac_new_val ;;
2325 esac
2326 case " $ac_configure_args " in
2327 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2328 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2329 esac
2331 done
2332 if $ac_cache_corrupted; then
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2334 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2336 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2337 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2339 ## -------------------- ##
2340 ## Main body of script. ##
2341 ## -------------------- ##
2343 ac_ext=c
2344 ac_cpp='$CPP $CPPFLAGS'
2345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2351 am__api_version='1.11'
2353 ac_aux_dir=
2354 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2355 if test -f "$ac_dir/install-sh"; then
2356 ac_aux_dir=$ac_dir
2357 ac_install_sh="$ac_aux_dir/install-sh -c"
2358 break
2359 elif test -f "$ac_dir/install.sh"; then
2360 ac_aux_dir=$ac_dir
2361 ac_install_sh="$ac_aux_dir/install.sh -c"
2362 break
2363 elif test -f "$ac_dir/shtool"; then
2364 ac_aux_dir=$ac_dir
2365 ac_install_sh="$ac_aux_dir/shtool install -c"
2366 break
2368 done
2369 if test -z "$ac_aux_dir"; then
2370 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2373 # These three variables are undocumented and unsupported,
2374 # and are intended to be withdrawn in a future Autoconf release.
2375 # They can cause serious problems if a builder's source tree is in a directory
2376 # whose full name contains unusual characters.
2377 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2378 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2379 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2382 # Find a good install program. We prefer a C program (faster),
2383 # so one script is as good as another. But avoid the broken or
2384 # incompatible versions:
2385 # SysV /etc/install, /usr/sbin/install
2386 # SunOS /usr/etc/install
2387 # IRIX /sbin/install
2388 # AIX /bin/install
2389 # AmigaOS /C/install, which installs bootblocks on floppy discs
2390 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2391 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2392 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2393 # OS/2's system install, which has a completely different semantic
2394 # ./install, which can be erroneously created by make from ./install.sh.
2395 # Reject install programs that cannot install multiple files.
2396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2397 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2398 if test -z "$INSTALL"; then
2399 if ${ac_cv_path_install+:} false; then :
2400 $as_echo_n "(cached) " >&6
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2405 IFS=$as_save_IFS
2406 test -z "$as_dir" && as_dir=.
2407 # Account for people who put trailing slashes in PATH elements.
2408 case $as_dir/ in #((
2409 ./ | .// | /[cC]/* | \
2410 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2411 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2412 /usr/ucb/* ) ;;
2414 # OSF1 and SCO ODT 3.0 have their own names for install.
2415 # Don't use installbsd from OSF since it installs stuff as root
2416 # by default.
2417 for ac_prog in ginstall scoinst install; do
2418 for ac_exec_ext in '' $ac_executable_extensions; do
2419 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2420 if test $ac_prog = install &&
2421 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # AIX install. It has an incompatible calling convention.
2424 elif test $ac_prog = install &&
2425 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2426 # program-specific install script used by HP pwplus--don't use.
2428 else
2429 rm -rf conftest.one conftest.two conftest.dir
2430 echo one > conftest.one
2431 echo two > conftest.two
2432 mkdir conftest.dir
2433 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2434 test -s conftest.one && test -s conftest.two &&
2435 test -s conftest.dir/conftest.one &&
2436 test -s conftest.dir/conftest.two
2437 then
2438 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2439 break 3
2443 done
2444 done
2446 esac
2448 done
2449 IFS=$as_save_IFS
2451 rm -rf conftest.one conftest.two conftest.dir
2454 if test "${ac_cv_path_install+set}" = set; then
2455 INSTALL=$ac_cv_path_install
2456 else
2457 # As a last resort, use the slow shell script. Don't cache a
2458 # value for INSTALL within a source directory, because that will
2459 # break other packages using the cache if that directory is
2460 # removed, or if the value is a relative name.
2461 INSTALL=$ac_install_sh
2464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2465 $as_echo "$INSTALL" >&6; }
2467 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2468 # It thinks the first close brace ends the variable substitution.
2469 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2471 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2473 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2476 $as_echo_n "checking whether build environment is sane... " >&6; }
2477 # Just in case
2478 sleep 1
2479 echo timestamp > conftest.file
2480 # Reject unsafe characters in $srcdir or the absolute working directory
2481 # name. Accept space and tab only in the latter.
2482 am_lf='
2484 case `pwd` in
2485 *[\\\"\#\$\&\'\`$am_lf]*)
2486 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2487 esac
2488 case $srcdir in
2489 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2490 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2491 esac
2493 # Do `set' in a subshell so we don't clobber the current shell's
2494 # arguments. Must try -L first in case configure is actually a
2495 # symlink; some systems play weird games with the mod time of symlinks
2496 # (eg FreeBSD returns the mod time of the symlink's containing
2497 # directory).
2498 if (
2499 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2500 if test "$*" = "X"; then
2501 # -L didn't work.
2502 set X `ls -t "$srcdir/configure" conftest.file`
2504 rm -f conftest.file
2505 if test "$*" != "X $srcdir/configure conftest.file" \
2506 && test "$*" != "X conftest.file $srcdir/configure"; then
2508 # If neither matched, then we have a broken ls. This can happen
2509 # if, for instance, CONFIG_SHELL is bash and it inherits a
2510 # broken ls alias from the environment. This has actually
2511 # happened. Such a system could not be considered "sane".
2512 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2513 alias in your environment" "$LINENO" 5
2516 test "$2" = conftest.file
2518 then
2519 # Ok.
2521 else
2522 as_fn_error $? "newly created file is older than distributed files!
2523 Check your system clock" "$LINENO" 5
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2526 $as_echo "yes" >&6; }
2527 test "$program_prefix" != NONE &&
2528 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2529 # Use a double $ so make ignores it.
2530 test "$program_suffix" != NONE &&
2531 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2532 # Double any \ or $.
2533 # By default was `s,x,x', remove it if useless.
2534 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2535 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2537 # expand $ac_aux_dir to an absolute path
2538 am_aux_dir=`cd $ac_aux_dir && pwd`
2540 if test x"${MISSING+set}" != xset; then
2541 case $am_aux_dir in
2542 *\ * | *\ *)
2543 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2545 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2546 esac
2548 # Use eval to expand $SHELL
2549 if eval "$MISSING --run true"; then
2550 am_missing_run="$MISSING --run "
2551 else
2552 am_missing_run=
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2554 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2557 if test x"${install_sh}" != xset; then
2558 case $am_aux_dir in
2559 *\ * | *\ *)
2560 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2562 install_sh="\${SHELL} $am_aux_dir/install-sh"
2563 esac
2566 # Installed binaries are usually stripped using `strip' when the user
2567 # run `make install-strip'. However `strip' might not be the right
2568 # tool to use in cross-compilation environments, therefore Automake
2569 # will honor the `STRIP' environment variable to overrule this program.
2570 if test "$cross_compiling" != no; then
2571 if test -n "$ac_tool_prefix"; then
2572 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2573 set dummy ${ac_tool_prefix}strip; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_STRIP+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$STRIP"; then
2580 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 STRIP=$ac_cv_prog_STRIP
2600 if test -n "$STRIP"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2602 $as_echo "$STRIP" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2610 if test -z "$ac_cv_prog_STRIP"; then
2611 ac_ct_STRIP=$STRIP
2612 # Extract the first word of "strip", so it can be a program name with args.
2613 set dummy strip; ac_word=$2
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2615 $as_echo_n "checking for $ac_word... " >&6; }
2616 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2617 $as_echo_n "(cached) " >&6
2618 else
2619 if test -n "$ac_ct_STRIP"; then
2620 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2621 else
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2625 IFS=$as_save_IFS
2626 test -z "$as_dir" && as_dir=.
2627 for ac_exec_ext in '' $ac_executable_extensions; do
2628 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2629 ac_cv_prog_ac_ct_STRIP="strip"
2630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2631 break 2
2633 done
2634 done
2635 IFS=$as_save_IFS
2639 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2640 if test -n "$ac_ct_STRIP"; then
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2642 $as_echo "$ac_ct_STRIP" >&6; }
2643 else
2644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2645 $as_echo "no" >&6; }
2648 if test "x$ac_ct_STRIP" = x; then
2649 STRIP=":"
2650 else
2651 case $cross_compiling:$ac_tool_warned in
2652 yes:)
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2655 ac_tool_warned=yes ;;
2656 esac
2657 STRIP=$ac_ct_STRIP
2659 else
2660 STRIP="$ac_cv_prog_STRIP"
2664 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2667 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2668 if test -z "$MKDIR_P"; then
2669 if ${ac_cv_path_mkdir+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2673 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2675 IFS=$as_save_IFS
2676 test -z "$as_dir" && as_dir=.
2677 for ac_prog in mkdir gmkdir; do
2678 for ac_exec_ext in '' $ac_executable_extensions; do
2679 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2680 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2681 'mkdir (GNU coreutils) '* | \
2682 'mkdir (coreutils) '* | \
2683 'mkdir (fileutils) '4.1*)
2684 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2685 break 3;;
2686 esac
2687 done
2688 done
2689 done
2690 IFS=$as_save_IFS
2694 test -d ./--version && rmdir ./--version
2695 if test "${ac_cv_path_mkdir+set}" = set; then
2696 MKDIR_P="$ac_cv_path_mkdir -p"
2697 else
2698 # As a last resort, use the slow shell script. Don't cache a
2699 # value for MKDIR_P within a source directory, because that will
2700 # break other packages using the cache if that directory is
2701 # removed, or if the value is a relative name.
2702 MKDIR_P="$ac_install_sh -d"
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2706 $as_echo "$MKDIR_P" >&6; }
2708 mkdir_p="$MKDIR_P"
2709 case $mkdir_p in
2710 [\\/$]* | ?:[\\/]*) ;;
2711 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2712 esac
2714 for ac_prog in gawk mawk nawk awk
2716 # Extract the first word of "$ac_prog", so it can be a program name with args.
2717 set dummy $ac_prog; ac_word=$2
2718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2719 $as_echo_n "checking for $ac_word... " >&6; }
2720 if ${ac_cv_prog_AWK+:} false; then :
2721 $as_echo_n "(cached) " >&6
2722 else
2723 if test -n "$AWK"; then
2724 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2725 else
2726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2727 for as_dir in $PATH
2729 IFS=$as_save_IFS
2730 test -z "$as_dir" && as_dir=.
2731 for ac_exec_ext in '' $ac_executable_extensions; do
2732 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2733 ac_cv_prog_AWK="$ac_prog"
2734 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2735 break 2
2737 done
2738 done
2739 IFS=$as_save_IFS
2743 AWK=$ac_cv_prog_AWK
2744 if test -n "$AWK"; then
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2746 $as_echo "$AWK" >&6; }
2747 else
2748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2749 $as_echo "no" >&6; }
2753 test -n "$AWK" && break
2754 done
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2757 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2758 set x ${MAKE-make}
2759 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2760 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2761 $as_echo_n "(cached) " >&6
2762 else
2763 cat >conftest.make <<\_ACEOF
2764 SHELL = /bin/sh
2765 all:
2766 @echo '@@@%%%=$(MAKE)=@@@%%%'
2767 _ACEOF
2768 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2769 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2770 *@@@%%%=?*=@@@%%%*)
2771 eval ac_cv_prog_make_${ac_make}_set=yes;;
2773 eval ac_cv_prog_make_${ac_make}_set=no;;
2774 esac
2775 rm -f conftest.make
2777 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2779 $as_echo "yes" >&6; }
2780 SET_MAKE=
2781 else
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2783 $as_echo "no" >&6; }
2784 SET_MAKE="MAKE=${MAKE-make}"
2787 rm -rf .tst 2>/dev/null
2788 mkdir .tst 2>/dev/null
2789 if test -d .tst; then
2790 am__leading_dot=.
2791 else
2792 am__leading_dot=_
2794 rmdir .tst 2>/dev/null
2796 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2797 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2798 # is not polluted with repeated "-I."
2799 am__isrc=' -I$(srcdir)'
2800 # test to see if srcdir already configured
2801 if test -f $srcdir/config.status; then
2802 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2806 # test whether we have cygpath
2807 if test -z "$CYGPATH_W"; then
2808 if (cygpath --version) >/dev/null 2>/dev/null; then
2809 CYGPATH_W='cygpath -w'
2810 else
2811 CYGPATH_W=echo
2816 # Define the identity of the package.
2817 PACKAGE='gdash'
2818 VERSION='20130623unstable'
2821 cat >>confdefs.h <<_ACEOF
2822 #define PACKAGE "$PACKAGE"
2823 _ACEOF
2826 cat >>confdefs.h <<_ACEOF
2827 #define VERSION "$VERSION"
2828 _ACEOF
2830 # Some tools Automake needs.
2832 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2835 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2838 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2841 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2844 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2846 # We need awk for the "check" target. The system "awk" is bad on
2847 # some platforms.
2848 # Always define AMTAR for backward compatibility. Yes, it's still used
2849 # in the wild :-( We should find a proper way to deprecate it ...
2850 AMTAR='$${TAR-tar}'
2852 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2858 ac_config_headers="$ac_config_headers config.h"
2860 # Check whether --enable-silent-rules was given.
2861 if test "${enable_silent_rules+set}" = set; then :
2862 enableval=$enable_silent_rules;
2865 case $enable_silent_rules in
2866 yes) AM_DEFAULT_VERBOSITY=0;;
2867 no) AM_DEFAULT_VERBOSITY=1;;
2868 *) AM_DEFAULT_VERBOSITY=0;;
2869 esac
2870 am_make=${MAKE-make}
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2872 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2873 if ${am_cv_make_support_nested_variables+:} false; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 if $as_echo 'TRUE=$(BAR$(V))
2877 BAR0=false
2878 BAR1=true
2880 am__doit:
2881 @$(TRUE)
2882 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2883 am_cv_make_support_nested_variables=yes
2884 else
2885 am_cv_make_support_nested_variables=no
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2889 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2890 if test $am_cv_make_support_nested_variables = yes; then
2891 AM_V='$(V)'
2892 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2893 else
2894 AM_V=$AM_DEFAULT_VERBOSITY
2895 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2897 AM_BACKSLASH='\'
2902 ac_ext=c
2903 ac_cpp='$CPP $CPPFLAGS'
2904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2907 if test -n "$ac_tool_prefix"; then
2908 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2909 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2911 $as_echo_n "checking for $ac_word... " >&6; }
2912 if ${ac_cv_prog_CC+:} false; then :
2913 $as_echo_n "(cached) " >&6
2914 else
2915 if test -n "$CC"; then
2916 ac_cv_prog_CC="$CC" # Let the user override the test.
2917 else
2918 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2919 for as_dir in $PATH
2921 IFS=$as_save_IFS
2922 test -z "$as_dir" && as_dir=.
2923 for ac_exec_ext in '' $ac_executable_extensions; do
2924 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2925 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2926 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2927 break 2
2929 done
2930 done
2931 IFS=$as_save_IFS
2935 CC=$ac_cv_prog_CC
2936 if test -n "$CC"; then
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2938 $as_echo "$CC" >&6; }
2939 else
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2941 $as_echo "no" >&6; }
2946 if test -z "$ac_cv_prog_CC"; then
2947 ac_ct_CC=$CC
2948 # Extract the first word of "gcc", so it can be a program name with args.
2949 set dummy gcc; ac_word=$2
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2951 $as_echo_n "checking for $ac_word... " >&6; }
2952 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test -n "$ac_ct_CC"; then
2956 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2957 else
2958 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2959 for as_dir in $PATH
2961 IFS=$as_save_IFS
2962 test -z "$as_dir" && as_dir=.
2963 for ac_exec_ext in '' $ac_executable_extensions; do
2964 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2965 ac_cv_prog_ac_ct_CC="gcc"
2966 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2967 break 2
2969 done
2970 done
2971 IFS=$as_save_IFS
2975 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2976 if test -n "$ac_ct_CC"; then
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2978 $as_echo "$ac_ct_CC" >&6; }
2979 else
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2981 $as_echo "no" >&6; }
2984 if test "x$ac_ct_CC" = x; then
2985 CC=""
2986 else
2987 case $cross_compiling:$ac_tool_warned in
2988 yes:)
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2990 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2991 ac_tool_warned=yes ;;
2992 esac
2993 CC=$ac_ct_CC
2995 else
2996 CC="$ac_cv_prog_CC"
2999 if test -z "$CC"; then
3000 if test -n "$ac_tool_prefix"; then
3001 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3002 set dummy ${ac_tool_prefix}cc; ac_word=$2
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3004 $as_echo_n "checking for $ac_word... " >&6; }
3005 if ${ac_cv_prog_CC+:} false; then :
3006 $as_echo_n "(cached) " >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3012 for as_dir in $PATH
3014 IFS=$as_save_IFS
3015 test -z "$as_dir" && as_dir=.
3016 for ac_exec_ext in '' $ac_executable_extensions; do
3017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3018 ac_cv_prog_CC="${ac_tool_prefix}cc"
3019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3020 break 2
3022 done
3023 done
3024 IFS=$as_save_IFS
3028 CC=$ac_cv_prog_CC
3029 if test -n "$CC"; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3031 $as_echo "$CC" >&6; }
3032 else
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3040 if test -z "$CC"; then
3041 # Extract the first word of "cc", so it can be a program name with args.
3042 set dummy cc; ac_word=$2
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3044 $as_echo_n "checking for $ac_word... " >&6; }
3045 if ${ac_cv_prog_CC+:} false; then :
3046 $as_echo_n "(cached) " >&6
3047 else
3048 if test -n "$CC"; then
3049 ac_cv_prog_CC="$CC" # Let the user override the test.
3050 else
3051 ac_prog_rejected=no
3052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3053 for as_dir in $PATH
3055 IFS=$as_save_IFS
3056 test -z "$as_dir" && as_dir=.
3057 for ac_exec_ext in '' $ac_executable_extensions; do
3058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3059 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3060 ac_prog_rejected=yes
3061 continue
3063 ac_cv_prog_CC="cc"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3071 if test $ac_prog_rejected = yes; then
3072 # We found a bogon in the path, so make sure we never use it.
3073 set dummy $ac_cv_prog_CC
3074 shift
3075 if test $# != 0; then
3076 # We chose a different compiler from the bogus one.
3077 # However, it has the same basename, so the bogon will be chosen
3078 # first if we set CC to just the basename; use the full file name.
3079 shift
3080 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3085 CC=$ac_cv_prog_CC
3086 if test -n "$CC"; then
3087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3088 $as_echo "$CC" >&6; }
3089 else
3090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3091 $as_echo "no" >&6; }
3096 if test -z "$CC"; then
3097 if test -n "$ac_tool_prefix"; then
3098 for ac_prog in cl.exe
3100 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3101 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3103 $as_echo_n "checking for $ac_word... " >&6; }
3104 if ${ac_cv_prog_CC+:} false; then :
3105 $as_echo_n "(cached) " >&6
3106 else
3107 if test -n "$CC"; then
3108 ac_cv_prog_CC="$CC" # Let the user override the test.
3109 else
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3123 IFS=$as_save_IFS
3127 CC=$ac_cv_prog_CC
3128 if test -n "$CC"; then
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3130 $as_echo "$CC" >&6; }
3131 else
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3133 $as_echo "no" >&6; }
3137 test -n "$CC" && break
3138 done
3140 if test -z "$CC"; then
3141 ac_ct_CC=$CC
3142 for ac_prog in cl.exe
3144 # Extract the first word of "$ac_prog", so it can be a program name with args.
3145 set dummy $ac_prog; ac_word=$2
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3147 $as_echo_n "checking for $ac_word... " >&6; }
3148 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3149 $as_echo_n "(cached) " >&6
3150 else
3151 if test -n "$ac_ct_CC"; then
3152 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3153 else
3154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3155 for as_dir in $PATH
3157 IFS=$as_save_IFS
3158 test -z "$as_dir" && as_dir=.
3159 for ac_exec_ext in '' $ac_executable_extensions; do
3160 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3161 ac_cv_prog_ac_ct_CC="$ac_prog"
3162 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3163 break 2
3165 done
3166 done
3167 IFS=$as_save_IFS
3171 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3172 if test -n "$ac_ct_CC"; then
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3174 $as_echo "$ac_ct_CC" >&6; }
3175 else
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3177 $as_echo "no" >&6; }
3181 test -n "$ac_ct_CC" && break
3182 done
3184 if test "x$ac_ct_CC" = x; then
3185 CC=""
3186 else
3187 case $cross_compiling:$ac_tool_warned in
3188 yes:)
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3190 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3191 ac_tool_warned=yes ;;
3192 esac
3193 CC=$ac_ct_CC
3200 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3201 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3202 as_fn_error $? "no acceptable C compiler found in \$PATH
3203 See \`config.log' for more details" "$LINENO" 5; }
3205 # Provide some information about the compiler.
3206 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3207 set X $ac_compile
3208 ac_compiler=$2
3209 for ac_option in --version -v -V -qversion; do
3210 { { ac_try="$ac_compiler $ac_option >&5"
3211 case "(($ac_try" in
3212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3213 *) ac_try_echo=$ac_try;;
3214 esac
3215 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3216 $as_echo "$ac_try_echo"; } >&5
3217 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3218 ac_status=$?
3219 if test -s conftest.err; then
3220 sed '10a\
3221 ... rest of stderr output deleted ...
3222 10q' conftest.err >conftest.er1
3223 cat conftest.er1 >&5
3225 rm -f conftest.er1 conftest.err
3226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3227 test $ac_status = 0; }
3228 done
3230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3231 /* end confdefs.h. */
3234 main ()
3238 return 0;
3240 _ACEOF
3241 ac_clean_files_save=$ac_clean_files
3242 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3243 # Try to create an executable without -o first, disregard a.out.
3244 # It will help us diagnose broken compilers, and finding out an intuition
3245 # of exeext.
3246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3247 $as_echo_n "checking whether the C compiler works... " >&6; }
3248 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3250 # The possible output files:
3251 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3253 ac_rmfiles=
3254 for ac_file in $ac_files
3256 case $ac_file in
3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3258 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3259 esac
3260 done
3261 rm -f $ac_rmfiles
3263 if { { ac_try="$ac_link_default"
3264 case "(($ac_try" in
3265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3266 *) ac_try_echo=$ac_try;;
3267 esac
3268 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3269 $as_echo "$ac_try_echo"; } >&5
3270 (eval "$ac_link_default") 2>&5
3271 ac_status=$?
3272 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3273 test $ac_status = 0; }; then :
3274 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3275 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3276 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3277 # so that the user can short-circuit this test for compilers unknown to
3278 # Autoconf.
3279 for ac_file in $ac_files ''
3281 test -f "$ac_file" || continue
3282 case $ac_file in
3283 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3285 [ab].out )
3286 # We found the default executable, but exeext='' is most
3287 # certainly right.
3288 break;;
3289 *.* )
3290 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3291 then :; else
3292 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3294 # We set ac_cv_exeext here because the later test for it is not
3295 # safe: cross compilers may not add the suffix if given an `-o'
3296 # argument, so we may need to know it at that point already.
3297 # Even if this section looks crufty: it has the advantage of
3298 # actually working.
3299 break;;
3301 break;;
3302 esac
3303 done
3304 test "$ac_cv_exeext" = no && ac_cv_exeext=
3306 else
3307 ac_file=''
3309 if test -z "$ac_file"; then :
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3311 $as_echo "no" >&6; }
3312 $as_echo "$as_me: failed program was:" >&5
3313 sed 's/^/| /' conftest.$ac_ext >&5
3315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3317 as_fn_error 77 "C compiler cannot create executables
3318 See \`config.log' for more details" "$LINENO" 5; }
3319 else
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321 $as_echo "yes" >&6; }
3323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3324 $as_echo_n "checking for C compiler default output file name... " >&6; }
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3326 $as_echo "$ac_file" >&6; }
3327 ac_exeext=$ac_cv_exeext
3329 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3330 ac_clean_files=$ac_clean_files_save
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3332 $as_echo_n "checking for suffix of executables... " >&6; }
3333 if { { ac_try="$ac_link"
3334 case "(($ac_try" in
3335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336 *) ac_try_echo=$ac_try;;
3337 esac
3338 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3339 $as_echo "$ac_try_echo"; } >&5
3340 (eval "$ac_link") 2>&5
3341 ac_status=$?
3342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3343 test $ac_status = 0; }; then :
3344 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3345 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3346 # work properly (i.e., refer to `conftest.exe'), while it won't with
3347 # `rm'.
3348 for ac_file in conftest.exe conftest conftest.*; do
3349 test -f "$ac_file" || continue
3350 case $ac_file in
3351 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3352 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3353 break;;
3354 * ) break;;
3355 esac
3356 done
3357 else
3358 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3359 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3360 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3361 See \`config.log' for more details" "$LINENO" 5; }
3363 rm -f conftest conftest$ac_cv_exeext
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3365 $as_echo "$ac_cv_exeext" >&6; }
3367 rm -f conftest.$ac_ext
3368 EXEEXT=$ac_cv_exeext
3369 ac_exeext=$EXEEXT
3370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3371 /* end confdefs.h. */
3372 #include <stdio.h>
3374 main ()
3376 FILE *f = fopen ("conftest.out", "w");
3377 return ferror (f) || fclose (f) != 0;
3380 return 0;
3382 _ACEOF
3383 ac_clean_files="$ac_clean_files conftest.out"
3384 # Check that the compiler produces executables we can run. If not, either
3385 # the compiler is broken, or we cross compile.
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3387 $as_echo_n "checking whether we are cross compiling... " >&6; }
3388 if test "$cross_compiling" != yes; then
3389 { { ac_try="$ac_link"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_link") 2>&5
3397 ac_status=$?
3398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399 test $ac_status = 0; }
3400 if { ac_try='./conftest$ac_cv_exeext'
3401 { { case "(($ac_try" in
3402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3403 *) ac_try_echo=$ac_try;;
3404 esac
3405 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3406 $as_echo "$ac_try_echo"; } >&5
3407 (eval "$ac_try") 2>&5
3408 ac_status=$?
3409 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3410 test $ac_status = 0; }; }; then
3411 cross_compiling=no
3412 else
3413 if test "$cross_compiling" = maybe; then
3414 cross_compiling=yes
3415 else
3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3418 as_fn_error $? "cannot run C compiled programs.
3419 If you meant to cross compile, use \`--host'.
3420 See \`config.log' for more details" "$LINENO" 5; }
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3425 $as_echo "$cross_compiling" >&6; }
3427 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3428 ac_clean_files=$ac_clean_files_save
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3430 $as_echo_n "checking for suffix of object files... " >&6; }
3431 if ${ac_cv_objext+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3435 /* end confdefs.h. */
3438 main ()
3442 return 0;
3444 _ACEOF
3445 rm -f conftest.o conftest.obj
3446 if { { ac_try="$ac_compile"
3447 case "(($ac_try" in
3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3449 *) ac_try_echo=$ac_try;;
3450 esac
3451 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3452 $as_echo "$ac_try_echo"; } >&5
3453 (eval "$ac_compile") 2>&5
3454 ac_status=$?
3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3456 test $ac_status = 0; }; then :
3457 for ac_file in conftest.o conftest.obj conftest.*; do
3458 test -f "$ac_file" || continue;
3459 case $ac_file in
3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3462 break;;
3463 esac
3464 done
3465 else
3466 $as_echo "$as_me: failed program was:" >&5
3467 sed 's/^/| /' conftest.$ac_ext >&5
3469 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3470 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3471 as_fn_error $? "cannot compute suffix of object files: cannot compile
3472 See \`config.log' for more details" "$LINENO" 5; }
3474 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3477 $as_echo "$ac_cv_objext" >&6; }
3478 OBJEXT=$ac_cv_objext
3479 ac_objext=$OBJEXT
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3481 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3482 if ${ac_cv_c_compiler_gnu+:} false; then :
3483 $as_echo_n "(cached) " >&6
3484 else
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3489 main ()
3491 #ifndef __GNUC__
3492 choke me
3493 #endif
3496 return 0;
3498 _ACEOF
3499 if ac_fn_c_try_compile "$LINENO"; then :
3500 ac_compiler_gnu=yes
3501 else
3502 ac_compiler_gnu=no
3504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3509 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3510 if test $ac_compiler_gnu = yes; then
3511 GCC=yes
3512 else
3513 GCC=
3515 ac_test_CFLAGS=${CFLAGS+set}
3516 ac_save_CFLAGS=$CFLAGS
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3518 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3519 if ${ac_cv_prog_cc_g+:} false; then :
3520 $as_echo_n "(cached) " >&6
3521 else
3522 ac_save_c_werror_flag=$ac_c_werror_flag
3523 ac_c_werror_flag=yes
3524 ac_cv_prog_cc_g=no
3525 CFLAGS="-g"
3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3527 /* end confdefs.h. */
3530 main ()
3534 return 0;
3536 _ACEOF
3537 if ac_fn_c_try_compile "$LINENO"; then :
3538 ac_cv_prog_cc_g=yes
3539 else
3540 CFLAGS=""
3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3542 /* end confdefs.h. */
3545 main ()
3549 return 0;
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"; then :
3554 else
3555 ac_c_werror_flag=$ac_save_c_werror_flag
3556 CFLAGS="-g"
3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3558 /* end confdefs.h. */
3561 main ()
3565 return 0;
3567 _ACEOF
3568 if ac_fn_c_try_compile "$LINENO"; then :
3569 ac_cv_prog_cc_g=yes
3571 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3575 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3576 ac_c_werror_flag=$ac_save_c_werror_flag
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3579 $as_echo "$ac_cv_prog_cc_g" >&6; }
3580 if test "$ac_test_CFLAGS" = set; then
3581 CFLAGS=$ac_save_CFLAGS
3582 elif test $ac_cv_prog_cc_g = yes; then
3583 if test "$GCC" = yes; then
3584 CFLAGS="-g -O2"
3585 else
3586 CFLAGS="-g"
3588 else
3589 if test "$GCC" = yes; then
3590 CFLAGS="-O2"
3591 else
3592 CFLAGS=
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3596 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3597 if ${ac_cv_prog_cc_c89+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 ac_cv_prog_cc_c89=no
3601 ac_save_CC=$CC
3602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3603 /* end confdefs.h. */
3604 #include <stdarg.h>
3605 #include <stdio.h>
3606 struct stat;
3607 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3608 struct buf { int x; };
3609 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3610 static char *e (p, i)
3611 char **p;
3612 int i;
3614 return p[i];
3616 static char *f (char * (*g) (char **, int), char **p, ...)
3618 char *s;
3619 va_list v;
3620 va_start (v,p);
3621 s = g (p, va_arg (v,int));
3622 va_end (v);
3623 return s;
3626 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3627 function prototypes and stuff, but not '\xHH' hex character constants.
3628 These don't provoke an error unfortunately, instead are silently treated
3629 as 'x'. The following induces an error, until -std is added to get
3630 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3631 array size at least. It's necessary to write '\x00'==0 to get something
3632 that's true only with -std. */
3633 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3635 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3636 inside strings and character constants. */
3637 #define FOO(x) 'x'
3638 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3640 int test (int i, double x);
3641 struct s1 {int (*f) (int a);};
3642 struct s2 {int (*f) (double a);};
3643 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3644 int argc;
3645 char **argv;
3647 main ()
3649 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3651 return 0;
3653 _ACEOF
3654 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3655 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3657 CC="$ac_save_CC $ac_arg"
3658 if ac_fn_c_try_compile "$LINENO"; then :
3659 ac_cv_prog_cc_c89=$ac_arg
3661 rm -f core conftest.err conftest.$ac_objext
3662 test "x$ac_cv_prog_cc_c89" != "xno" && break
3663 done
3664 rm -f conftest.$ac_ext
3665 CC=$ac_save_CC
3668 # AC_CACHE_VAL
3669 case "x$ac_cv_prog_cc_c89" in
3671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3672 $as_echo "none needed" >&6; } ;;
3673 xno)
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3675 $as_echo "unsupported" >&6; } ;;
3677 CC="$CC $ac_cv_prog_cc_c89"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3679 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3680 esac
3681 if test "x$ac_cv_prog_cc_c89" != xno; then :
3685 ac_ext=c
3686 ac_cpp='$CPP $CPPFLAGS'
3687 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3688 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3689 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3690 DEPDIR="${am__leading_dot}deps"
3692 ac_config_commands="$ac_config_commands depfiles"
3695 am_make=${MAKE-make}
3696 cat > confinc << 'END'
3697 am__doit:
3698 @echo this is the am__doit target
3699 .PHONY: am__doit
3701 # If we don't find an include directive, just comment out the code.
3702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3703 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3704 am__include="#"
3705 am__quote=
3706 _am_result=none
3707 # First try GNU make style include.
3708 echo "include confinc" > confmf
3709 # Ignore all kinds of additional output from `make'.
3710 case `$am_make -s -f confmf 2> /dev/null` in #(
3711 *the\ am__doit\ target*)
3712 am__include=include
3713 am__quote=
3714 _am_result=GNU
3716 esac
3717 # Now try BSD make style include.
3718 if test "$am__include" = "#"; then
3719 echo '.include "confinc"' > confmf
3720 case `$am_make -s -f confmf 2> /dev/null` in #(
3721 *the\ am__doit\ target*)
3722 am__include=.include
3723 am__quote="\""
3724 _am_result=BSD
3726 esac
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3731 $as_echo "$_am_result" >&6; }
3732 rm -f confinc confmf
3734 # Check whether --enable-dependency-tracking was given.
3735 if test "${enable_dependency_tracking+set}" = set; then :
3736 enableval=$enable_dependency_tracking;
3739 if test "x$enable_dependency_tracking" != xno; then
3740 am_depcomp="$ac_aux_dir/depcomp"
3741 AMDEPBACKSLASH='\'
3742 am__nodep='_no'
3744 if test "x$enable_dependency_tracking" != xno; then
3745 AMDEP_TRUE=
3746 AMDEP_FALSE='#'
3747 else
3748 AMDEP_TRUE='#'
3749 AMDEP_FALSE=
3754 depcc="$CC" am_compiler_list=
3756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3757 $as_echo_n "checking dependency style of $depcc... " >&6; }
3758 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3759 $as_echo_n "(cached) " >&6
3760 else
3761 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3762 # We make a subdir and do the tests there. Otherwise we can end up
3763 # making bogus files that we don't know about and never remove. For
3764 # instance it was reported that on HP-UX the gcc test will end up
3765 # making a dummy file named `D' -- because `-MD' means `put the output
3766 # in D'.
3767 rm -rf conftest.dir
3768 mkdir conftest.dir
3769 # Copy depcomp to subdir because otherwise we won't find it if we're
3770 # using a relative directory.
3771 cp "$am_depcomp" conftest.dir
3772 cd conftest.dir
3773 # We will build objects and dependencies in a subdirectory because
3774 # it helps to detect inapplicable dependency modes. For instance
3775 # both Tru64's cc and ICC support -MD to output dependencies as a
3776 # side effect of compilation, but ICC will put the dependencies in
3777 # the current directory while Tru64 will put them in the object
3778 # directory.
3779 mkdir sub
3781 am_cv_CC_dependencies_compiler_type=none
3782 if test "$am_compiler_list" = ""; then
3783 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3785 am__universal=false
3786 case " $depcc " in #(
3787 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3788 esac
3790 for depmode in $am_compiler_list; do
3791 # Setup a source with many dependencies, because some compilers
3792 # like to wrap large dependency lists on column 80 (with \), and
3793 # we should not choose a depcomp mode which is confused by this.
3795 # We need to recreate these files for each test, as the compiler may
3796 # overwrite some of them when testing with obscure command lines.
3797 # This happens at least with the AIX C compiler.
3798 : > sub/conftest.c
3799 for i in 1 2 3 4 5 6; do
3800 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3801 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3802 # Solaris 8's {/usr,}/bin/sh.
3803 touch sub/conftst$i.h
3804 done
3805 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3807 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3808 # mode. It turns out that the SunPro C++ compiler does not properly
3809 # handle `-M -o', and we need to detect this. Also, some Intel
3810 # versions had trouble with output in subdirs
3811 am__obj=sub/conftest.${OBJEXT-o}
3812 am__minus_obj="-o $am__obj"
3813 case $depmode in
3814 gcc)
3815 # This depmode causes a compiler race in universal mode.
3816 test "$am__universal" = false || continue
3818 nosideeffect)
3819 # after this tag, mechanisms are not by side-effect, so they'll
3820 # only be used when explicitly requested
3821 if test "x$enable_dependency_tracking" = xyes; then
3822 continue
3823 else
3824 break
3827 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3828 # This compiler won't grok `-c -o', but also, the minuso test has
3829 # not run yet. These depmodes are late enough in the game, and
3830 # so weak that their functioning should not be impacted.
3831 am__obj=conftest.${OBJEXT-o}
3832 am__minus_obj=
3834 none) break ;;
3835 esac
3836 if depmode=$depmode \
3837 source=sub/conftest.c object=$am__obj \
3838 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3839 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3840 >/dev/null 2>conftest.err &&
3841 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3842 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3843 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3844 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3845 # icc doesn't choke on unknown options, it will just issue warnings
3846 # or remarks (even with -Werror). So we grep stderr for any message
3847 # that says an option was ignored or not supported.
3848 # When given -MP, icc 7.0 and 7.1 complain thusly:
3849 # icc: Command line warning: ignoring option '-M'; no argument required
3850 # The diagnosis changed in icc 8.0:
3851 # icc: Command line remark: option '-MP' not supported
3852 if (grep 'ignoring option' conftest.err ||
3853 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3854 am_cv_CC_dependencies_compiler_type=$depmode
3855 break
3858 done
3860 cd ..
3861 rm -rf conftest.dir
3862 else
3863 am_cv_CC_dependencies_compiler_type=none
3867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3868 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3869 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3872 test "x$enable_dependency_tracking" != xno \
3873 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3874 am__fastdepCC_TRUE=
3875 am__fastdepCC_FALSE='#'
3876 else
3877 am__fastdepCC_TRUE='#'
3878 am__fastdepCC_FALSE=
3882 ac_ext=cpp
3883 ac_cpp='$CXXCPP $CPPFLAGS'
3884 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3885 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3886 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3887 if test -z "$CXX"; then
3888 if test -n "$CCC"; then
3889 CXX=$CCC
3890 else
3891 if test -n "$ac_tool_prefix"; then
3892 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3894 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3895 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3897 $as_echo_n "checking for $ac_word... " >&6; }
3898 if ${ac_cv_prog_CXX+:} false; then :
3899 $as_echo_n "(cached) " >&6
3900 else
3901 if test -n "$CXX"; then
3902 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3903 else
3904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3905 for as_dir in $PATH
3907 IFS=$as_save_IFS
3908 test -z "$as_dir" && as_dir=.
3909 for ac_exec_ext in '' $ac_executable_extensions; do
3910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3911 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3913 break 2
3915 done
3916 done
3917 IFS=$as_save_IFS
3921 CXX=$ac_cv_prog_CXX
3922 if test -n "$CXX"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3924 $as_echo "$CXX" >&6; }
3925 else
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3931 test -n "$CXX" && break
3932 done
3934 if test -z "$CXX"; then
3935 ac_ct_CXX=$CXX
3936 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3938 # Extract the first word of "$ac_prog", so it can be a program name with args.
3939 set dummy $ac_prog; ac_word=$2
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3941 $as_echo_n "checking for $ac_word... " >&6; }
3942 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3943 $as_echo_n "(cached) " >&6
3944 else
3945 if test -n "$ac_ct_CXX"; then
3946 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3947 else
3948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3949 for as_dir in $PATH
3951 IFS=$as_save_IFS
3952 test -z "$as_dir" && as_dir=.
3953 for ac_exec_ext in '' $ac_executable_extensions; do
3954 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3955 ac_cv_prog_ac_ct_CXX="$ac_prog"
3956 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3957 break 2
3959 done
3960 done
3961 IFS=$as_save_IFS
3965 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3966 if test -n "$ac_ct_CXX"; then
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3968 $as_echo "$ac_ct_CXX" >&6; }
3969 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3971 $as_echo "no" >&6; }
3975 test -n "$ac_ct_CXX" && break
3976 done
3978 if test "x$ac_ct_CXX" = x; then
3979 CXX="g++"
3980 else
3981 case $cross_compiling:$ac_tool_warned in
3982 yes:)
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3984 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3985 ac_tool_warned=yes ;;
3986 esac
3987 CXX=$ac_ct_CXX
3993 # Provide some information about the compiler.
3994 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3995 set X $ac_compile
3996 ac_compiler=$2
3997 for ac_option in --version -v -V -qversion; do
3998 { { ac_try="$ac_compiler $ac_option >&5"
3999 case "(($ac_try" in
4000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4001 *) ac_try_echo=$ac_try;;
4002 esac
4003 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4004 $as_echo "$ac_try_echo"; } >&5
4005 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4006 ac_status=$?
4007 if test -s conftest.err; then
4008 sed '10a\
4009 ... rest of stderr output deleted ...
4010 10q' conftest.err >conftest.er1
4011 cat conftest.er1 >&5
4013 rm -f conftest.er1 conftest.err
4014 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4015 test $ac_status = 0; }
4016 done
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4019 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4020 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4021 $as_echo_n "(cached) " >&6
4022 else
4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4024 /* end confdefs.h. */
4027 main ()
4029 #ifndef __GNUC__
4030 choke me
4031 #endif
4034 return 0;
4036 _ACEOF
4037 if ac_fn_cxx_try_compile "$LINENO"; then :
4038 ac_compiler_gnu=yes
4039 else
4040 ac_compiler_gnu=no
4042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4043 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4047 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4048 if test $ac_compiler_gnu = yes; then
4049 GXX=yes
4050 else
4051 GXX=
4053 ac_test_CXXFLAGS=${CXXFLAGS+set}
4054 ac_save_CXXFLAGS=$CXXFLAGS
4055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4056 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4057 if ${ac_cv_prog_cxx_g+:} false; then :
4058 $as_echo_n "(cached) " >&6
4059 else
4060 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4061 ac_cxx_werror_flag=yes
4062 ac_cv_prog_cxx_g=no
4063 CXXFLAGS="-g"
4064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4065 /* end confdefs.h. */
4068 main ()
4072 return 0;
4074 _ACEOF
4075 if ac_fn_cxx_try_compile "$LINENO"; then :
4076 ac_cv_prog_cxx_g=yes
4077 else
4078 CXXFLAGS=""
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4083 main ()
4087 return 0;
4089 _ACEOF
4090 if ac_fn_cxx_try_compile "$LINENO"; then :
4092 else
4093 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4094 CXXFLAGS="-g"
4095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4096 /* end confdefs.h. */
4099 main ()
4103 return 0;
4105 _ACEOF
4106 if ac_fn_cxx_try_compile "$LINENO"; then :
4107 ac_cv_prog_cxx_g=yes
4109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4114 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4117 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4118 if test "$ac_test_CXXFLAGS" = set; then
4119 CXXFLAGS=$ac_save_CXXFLAGS
4120 elif test $ac_cv_prog_cxx_g = yes; then
4121 if test "$GXX" = yes; then
4122 CXXFLAGS="-g -O2"
4123 else
4124 CXXFLAGS="-g"
4126 else
4127 if test "$GXX" = yes; then
4128 CXXFLAGS="-O2"
4129 else
4130 CXXFLAGS=
4133 ac_ext=c
4134 ac_cpp='$CPP $CPPFLAGS'
4135 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4136 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4137 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4139 depcc="$CXX" am_compiler_list=
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4142 $as_echo_n "checking dependency style of $depcc... " >&6; }
4143 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4144 $as_echo_n "(cached) " >&6
4145 else
4146 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4147 # We make a subdir and do the tests there. Otherwise we can end up
4148 # making bogus files that we don't know about and never remove. For
4149 # instance it was reported that on HP-UX the gcc test will end up
4150 # making a dummy file named `D' -- because `-MD' means `put the output
4151 # in D'.
4152 rm -rf conftest.dir
4153 mkdir conftest.dir
4154 # Copy depcomp to subdir because otherwise we won't find it if we're
4155 # using a relative directory.
4156 cp "$am_depcomp" conftest.dir
4157 cd conftest.dir
4158 # We will build objects and dependencies in a subdirectory because
4159 # it helps to detect inapplicable dependency modes. For instance
4160 # both Tru64's cc and ICC support -MD to output dependencies as a
4161 # side effect of compilation, but ICC will put the dependencies in
4162 # the current directory while Tru64 will put them in the object
4163 # directory.
4164 mkdir sub
4166 am_cv_CXX_dependencies_compiler_type=none
4167 if test "$am_compiler_list" = ""; then
4168 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4170 am__universal=false
4171 case " $depcc " in #(
4172 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4173 esac
4175 for depmode in $am_compiler_list; do
4176 # Setup a source with many dependencies, because some compilers
4177 # like to wrap large dependency lists on column 80 (with \), and
4178 # we should not choose a depcomp mode which is confused by this.
4180 # We need to recreate these files for each test, as the compiler may
4181 # overwrite some of them when testing with obscure command lines.
4182 # This happens at least with the AIX C compiler.
4183 : > sub/conftest.c
4184 for i in 1 2 3 4 5 6; do
4185 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4186 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4187 # Solaris 8's {/usr,}/bin/sh.
4188 touch sub/conftst$i.h
4189 done
4190 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4192 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4193 # mode. It turns out that the SunPro C++ compiler does not properly
4194 # handle `-M -o', and we need to detect this. Also, some Intel
4195 # versions had trouble with output in subdirs
4196 am__obj=sub/conftest.${OBJEXT-o}
4197 am__minus_obj="-o $am__obj"
4198 case $depmode in
4199 gcc)
4200 # This depmode causes a compiler race in universal mode.
4201 test "$am__universal" = false || continue
4203 nosideeffect)
4204 # after this tag, mechanisms are not by side-effect, so they'll
4205 # only be used when explicitly requested
4206 if test "x$enable_dependency_tracking" = xyes; then
4207 continue
4208 else
4209 break
4212 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4213 # This compiler won't grok `-c -o', but also, the minuso test has
4214 # not run yet. These depmodes are late enough in the game, and
4215 # so weak that their functioning should not be impacted.
4216 am__obj=conftest.${OBJEXT-o}
4217 am__minus_obj=
4219 none) break ;;
4220 esac
4221 if depmode=$depmode \
4222 source=sub/conftest.c object=$am__obj \
4223 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4224 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4225 >/dev/null 2>conftest.err &&
4226 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4227 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4228 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4229 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4230 # icc doesn't choke on unknown options, it will just issue warnings
4231 # or remarks (even with -Werror). So we grep stderr for any message
4232 # that says an option was ignored or not supported.
4233 # When given -MP, icc 7.0 and 7.1 complain thusly:
4234 # icc: Command line warning: ignoring option '-M'; no argument required
4235 # The diagnosis changed in icc 8.0:
4236 # icc: Command line remark: option '-MP' not supported
4237 if (grep 'ignoring option' conftest.err ||
4238 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4239 am_cv_CXX_dependencies_compiler_type=$depmode
4240 break
4243 done
4245 cd ..
4246 rm -rf conftest.dir
4247 else
4248 am_cv_CXX_dependencies_compiler_type=none
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4253 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4254 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4257 test "x$enable_dependency_tracking" != xno \
4258 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4259 am__fastdepCXX_TRUE=
4260 am__fastdepCXX_FALSE='#'
4261 else
4262 am__fastdepCXX_TRUE='#'
4263 am__fastdepCXX_FALSE=
4267 if test "x$CC" != xcc; then
4268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4269 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4270 else
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4272 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4274 set dummy $CC; ac_cc=`$as_echo "$2" |
4275 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4276 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 main ()
4287 return 0;
4289 _ACEOF
4290 # Make sure it works both with $CC and with simple cc.
4291 # We do the test twice because some compilers refuse to overwrite an
4292 # existing .o file with -o, though they will create one.
4293 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4294 rm -f conftest2.*
4295 if { { case "(($ac_try" in
4296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4297 *) ac_try_echo=$ac_try;;
4298 esac
4299 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4300 $as_echo "$ac_try_echo"; } >&5
4301 (eval "$ac_try") 2>&5
4302 ac_status=$?
4303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4304 test $ac_status = 0; } &&
4305 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4306 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4307 *) ac_try_echo=$ac_try;;
4308 esac
4309 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4310 $as_echo "$ac_try_echo"; } >&5
4311 (eval "$ac_try") 2>&5
4312 ac_status=$?
4313 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4314 test $ac_status = 0; };
4315 then
4316 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4317 if test "x$CC" != xcc; then
4318 # Test first that cc exists at all.
4319 if { ac_try='cc -c conftest.$ac_ext >&5'
4320 { { case "(($ac_try" in
4321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322 *) ac_try_echo=$ac_try;;
4323 esac
4324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4325 $as_echo "$ac_try_echo"; } >&5
4326 (eval "$ac_try") 2>&5
4327 ac_status=$?
4328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4329 test $ac_status = 0; }; }; then
4330 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4331 rm -f conftest2.*
4332 if { { case "(($ac_try" in
4333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4334 *) ac_try_echo=$ac_try;;
4335 esac
4336 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4337 $as_echo "$ac_try_echo"; } >&5
4338 (eval "$ac_try") 2>&5
4339 ac_status=$?
4340 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4341 test $ac_status = 0; } &&
4342 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4344 *) ac_try_echo=$ac_try;;
4345 esac
4346 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4347 $as_echo "$ac_try_echo"; } >&5
4348 (eval "$ac_try") 2>&5
4349 ac_status=$?
4350 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4351 test $ac_status = 0; };
4352 then
4353 # cc works too.
4355 else
4356 # cc exists but doesn't like -o.
4357 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4361 else
4362 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4364 rm -f core conftest*
4367 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4369 $as_echo "yes" >&6; }
4370 else
4371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4372 $as_echo "no" >&6; }
4374 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4378 # FIXME: we rely on the cache variable name because
4379 # there is no other way.
4380 set dummy $CC
4381 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4382 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4383 if test "$am_t" != yes; then
4384 # Losing compiler, so override with the script.
4385 # FIXME: It is wrong to rewrite CC.
4386 # But if we don't then we get into trouble of one sort or another.
4387 # A longer-term fix would be to have automake use am__CC in this case,
4388 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4389 CC="$am_aux_dir/compile $CC"
4400 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4401 if test -n "$ac_tool_prefix"; then
4402 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4403 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4405 $as_echo_n "checking for $ac_word... " >&6; }
4406 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4407 $as_echo_n "(cached) " >&6
4408 else
4409 case $PKG_CONFIG in
4410 [\\/]* | ?:[\\/]*)
4411 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4415 for as_dir in $PATH
4417 IFS=$as_save_IFS
4418 test -z "$as_dir" && as_dir=.
4419 for ac_exec_ext in '' $ac_executable_extensions; do
4420 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4421 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4423 break 2
4425 done
4426 done
4427 IFS=$as_save_IFS
4430 esac
4432 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4433 if test -n "$PKG_CONFIG"; then
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4435 $as_echo "$PKG_CONFIG" >&6; }
4436 else
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4438 $as_echo "no" >&6; }
4443 if test -z "$ac_cv_path_PKG_CONFIG"; then
4444 ac_pt_PKG_CONFIG=$PKG_CONFIG
4445 # Extract the first word of "pkg-config", so it can be a program name with args.
4446 set dummy pkg-config; ac_word=$2
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4448 $as_echo_n "checking for $ac_word... " >&6; }
4449 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4450 $as_echo_n "(cached) " >&6
4451 else
4452 case $ac_pt_PKG_CONFIG in
4453 [\\/]* | ?:[\\/]*)
4454 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4458 for as_dir in $PATH
4460 IFS=$as_save_IFS
4461 test -z "$as_dir" && as_dir=.
4462 for ac_exec_ext in '' $ac_executable_extensions; do
4463 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4464 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4466 break 2
4468 done
4469 done
4470 IFS=$as_save_IFS
4473 esac
4475 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4476 if test -n "$ac_pt_PKG_CONFIG"; then
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4478 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4479 else
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4481 $as_echo "no" >&6; }
4484 if test "x$ac_pt_PKG_CONFIG" = x; then
4485 PKG_CONFIG=""
4486 else
4487 case $cross_compiling:$ac_tool_warned in
4488 yes:)
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4490 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4491 ac_tool_warned=yes ;;
4492 esac
4493 PKG_CONFIG=$ac_pt_PKG_CONFIG
4495 else
4496 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4500 if test -n "$PKG_CONFIG"; then
4501 _pkg_min_version=0.9.0
4502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4503 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4504 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4506 $as_echo "yes" >&6; }
4507 else
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4509 $as_echo "no" >&6; }
4510 PKG_CONFIG=""
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4516 $as_echo_n "checking for library containing strerror... " >&6; }
4517 if ${ac_cv_search_strerror+:} false; then :
4518 $as_echo_n "(cached) " >&6
4519 else
4520 ac_func_search_save_LIBS=$LIBS
4521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4522 /* end confdefs.h. */
4524 /* Override any GCC internal prototype to avoid an error.
4525 Use char because int might match the return type of a GCC
4526 builtin and then its argument prototype would still apply. */
4527 #ifdef __cplusplus
4528 extern "C"
4529 #endif
4530 char strerror ();
4532 main ()
4534 return strerror ();
4536 return 0;
4538 _ACEOF
4539 for ac_lib in '' cposix; do
4540 if test -z "$ac_lib"; then
4541 ac_res="none required"
4542 else
4543 ac_res=-l$ac_lib
4544 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4546 if ac_fn_c_try_link "$LINENO"; then :
4547 ac_cv_search_strerror=$ac_res
4549 rm -f core conftest.err conftest.$ac_objext \
4550 conftest$ac_exeext
4551 if ${ac_cv_search_strerror+:} false; then :
4552 break
4554 done
4555 if ${ac_cv_search_strerror+:} false; then :
4557 else
4558 ac_cv_search_strerror=no
4560 rm conftest.$ac_ext
4561 LIBS=$ac_func_search_save_LIBS
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4564 $as_echo "$ac_cv_search_strerror" >&6; }
4565 ac_res=$ac_cv_search_strerror
4566 if test "$ac_res" != no; then :
4567 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4571 ac_ext=c
4572 ac_cpp='$CPP $CPPFLAGS'
4573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4577 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4578 # On Suns, sometimes $CPP names a directory.
4579 if test -n "$CPP" && test -d "$CPP"; then
4580 CPP=
4582 if test -z "$CPP"; then
4583 if ${ac_cv_prog_CPP+:} false; then :
4584 $as_echo_n "(cached) " >&6
4585 else
4586 # Double quotes because CPP needs to be expanded
4587 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4589 ac_preproc_ok=false
4590 for ac_c_preproc_warn_flag in '' yes
4592 # Use a header file that comes with gcc, so configuring glibc
4593 # with a fresh cross-compiler works.
4594 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4595 # <limits.h> exists even on freestanding compilers.
4596 # On the NeXT, cc -E runs the code through the compiler's parser,
4597 # not just through cpp. "Syntax error" is here to catch this case.
4598 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4599 /* end confdefs.h. */
4600 #ifdef __STDC__
4601 # include <limits.h>
4602 #else
4603 # include <assert.h>
4604 #endif
4605 Syntax error
4606 _ACEOF
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4609 else
4610 # Broken: fails on valid input.
4611 continue
4613 rm -f conftest.err conftest.i conftest.$ac_ext
4615 # OK, works on sane cases. Now check whether nonexistent headers
4616 # can be detected and how.
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <ac_nonexistent.h>
4620 _ACEOF
4621 if ac_fn_c_try_cpp "$LINENO"; then :
4622 # Broken: success on invalid input.
4623 continue
4624 else
4625 # Passes both tests.
4626 ac_preproc_ok=:
4627 break
4629 rm -f conftest.err conftest.i conftest.$ac_ext
4631 done
4632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4633 rm -f conftest.i conftest.err conftest.$ac_ext
4634 if $ac_preproc_ok; then :
4635 break
4638 done
4639 ac_cv_prog_CPP=$CPP
4642 CPP=$ac_cv_prog_CPP
4643 else
4644 ac_cv_prog_CPP=$CPP
4646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4647 $as_echo "$CPP" >&6; }
4648 ac_preproc_ok=false
4649 for ac_c_preproc_warn_flag in '' yes
4651 # Use a header file that comes with gcc, so configuring glibc
4652 # with a fresh cross-compiler works.
4653 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4654 # <limits.h> exists even on freestanding compilers.
4655 # On the NeXT, cc -E runs the code through the compiler's parser,
4656 # not just through cpp. "Syntax error" is here to catch this case.
4657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4658 /* end confdefs.h. */
4659 #ifdef __STDC__
4660 # include <limits.h>
4661 #else
4662 # include <assert.h>
4663 #endif
4664 Syntax error
4665 _ACEOF
4666 if ac_fn_c_try_cpp "$LINENO"; then :
4668 else
4669 # Broken: fails on valid input.
4670 continue
4672 rm -f conftest.err conftest.i conftest.$ac_ext
4674 # OK, works on sane cases. Now check whether nonexistent headers
4675 # can be detected and how.
4676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4677 /* end confdefs.h. */
4678 #include <ac_nonexistent.h>
4679 _ACEOF
4680 if ac_fn_c_try_cpp "$LINENO"; then :
4681 # Broken: success on invalid input.
4682 continue
4683 else
4684 # Passes both tests.
4685 ac_preproc_ok=:
4686 break
4688 rm -f conftest.err conftest.i conftest.$ac_ext
4690 done
4691 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4692 rm -f conftest.i conftest.err conftest.$ac_ext
4693 if $ac_preproc_ok; then :
4695 else
4696 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4697 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4698 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4699 See \`config.log' for more details" "$LINENO" 5; }
4702 ac_ext=c
4703 ac_cpp='$CPP $CPPFLAGS'
4704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4710 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4711 if ${ac_cv_path_GREP+:} false; then :
4712 $as_echo_n "(cached) " >&6
4713 else
4714 if test -z "$GREP"; then
4715 ac_path_GREP_found=false
4716 # Loop through the user's path and test for each of PROGNAME-LIST
4717 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4718 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4720 IFS=$as_save_IFS
4721 test -z "$as_dir" && as_dir=.
4722 for ac_prog in grep ggrep; do
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4725 as_fn_executable_p "$ac_path_GREP" || continue
4726 # Check for GNU ac_path_GREP and select it if it is found.
4727 # Check for GNU $ac_path_GREP
4728 case `"$ac_path_GREP" --version 2>&1` in
4729 *GNU*)
4730 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4732 ac_count=0
4733 $as_echo_n 0123456789 >"conftest.in"
4734 while :
4736 cat "conftest.in" "conftest.in" >"conftest.tmp"
4737 mv "conftest.tmp" "conftest.in"
4738 cp "conftest.in" "conftest.nl"
4739 $as_echo 'GREP' >> "conftest.nl"
4740 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4741 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4742 as_fn_arith $ac_count + 1 && ac_count=$as_val
4743 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4744 # Best one so far, save it but keep looking for a better one
4745 ac_cv_path_GREP="$ac_path_GREP"
4746 ac_path_GREP_max=$ac_count
4748 # 10*(2^10) chars as input seems more than enough
4749 test $ac_count -gt 10 && break
4750 done
4751 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4752 esac
4754 $ac_path_GREP_found && break 3
4755 done
4756 done
4757 done
4758 IFS=$as_save_IFS
4759 if test -z "$ac_cv_path_GREP"; then
4760 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4762 else
4763 ac_cv_path_GREP=$GREP
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4768 $as_echo "$ac_cv_path_GREP" >&6; }
4769 GREP="$ac_cv_path_GREP"
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4773 $as_echo_n "checking for egrep... " >&6; }
4774 if ${ac_cv_path_EGREP+:} false; then :
4775 $as_echo_n "(cached) " >&6
4776 else
4777 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4778 then ac_cv_path_EGREP="$GREP -E"
4779 else
4780 if test -z "$EGREP"; then
4781 ac_path_EGREP_found=false
4782 # Loop through the user's path and test for each of PROGNAME-LIST
4783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4784 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4786 IFS=$as_save_IFS
4787 test -z "$as_dir" && as_dir=.
4788 for ac_prog in egrep; do
4789 for ac_exec_ext in '' $ac_executable_extensions; do
4790 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4791 as_fn_executable_p "$ac_path_EGREP" || continue
4792 # Check for GNU ac_path_EGREP and select it if it is found.
4793 # Check for GNU $ac_path_EGREP
4794 case `"$ac_path_EGREP" --version 2>&1` in
4795 *GNU*)
4796 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4798 ac_count=0
4799 $as_echo_n 0123456789 >"conftest.in"
4800 while :
4802 cat "conftest.in" "conftest.in" >"conftest.tmp"
4803 mv "conftest.tmp" "conftest.in"
4804 cp "conftest.in" "conftest.nl"
4805 $as_echo 'EGREP' >> "conftest.nl"
4806 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4807 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4808 as_fn_arith $ac_count + 1 && ac_count=$as_val
4809 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4810 # Best one so far, save it but keep looking for a better one
4811 ac_cv_path_EGREP="$ac_path_EGREP"
4812 ac_path_EGREP_max=$ac_count
4814 # 10*(2^10) chars as input seems more than enough
4815 test $ac_count -gt 10 && break
4816 done
4817 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4818 esac
4820 $ac_path_EGREP_found && break 3
4821 done
4822 done
4823 done
4824 IFS=$as_save_IFS
4825 if test -z "$ac_cv_path_EGREP"; then
4826 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4828 else
4829 ac_cv_path_EGREP=$EGREP
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4835 $as_echo "$ac_cv_path_EGREP" >&6; }
4836 EGREP="$ac_cv_path_EGREP"
4839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4840 $as_echo_n "checking for ANSI C header files... " >&6; }
4841 if ${ac_cv_header_stdc+:} false; then :
4842 $as_echo_n "(cached) " >&6
4843 else
4844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4845 /* end confdefs.h. */
4846 #include <stdlib.h>
4847 #include <stdarg.h>
4848 #include <string.h>
4849 #include <float.h>
4852 main ()
4856 return 0;
4858 _ACEOF
4859 if ac_fn_c_try_compile "$LINENO"; then :
4860 ac_cv_header_stdc=yes
4861 else
4862 ac_cv_header_stdc=no
4864 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4866 if test $ac_cv_header_stdc = yes; then
4867 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4869 /* end confdefs.h. */
4870 #include <string.h>
4872 _ACEOF
4873 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4874 $EGREP "memchr" >/dev/null 2>&1; then :
4876 else
4877 ac_cv_header_stdc=no
4879 rm -f conftest*
4883 if test $ac_cv_header_stdc = yes; then
4884 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4886 /* end confdefs.h. */
4887 #include <stdlib.h>
4889 _ACEOF
4890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4891 $EGREP "free" >/dev/null 2>&1; then :
4893 else
4894 ac_cv_header_stdc=no
4896 rm -f conftest*
4900 if test $ac_cv_header_stdc = yes; then
4901 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4902 if test "$cross_compiling" = yes; then :
4904 else
4905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4906 /* end confdefs.h. */
4907 #include <ctype.h>
4908 #include <stdlib.h>
4909 #if ((' ' & 0x0FF) == 0x020)
4910 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4911 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4912 #else
4913 # define ISLOWER(c) \
4914 (('a' <= (c) && (c) <= 'i') \
4915 || ('j' <= (c) && (c) <= 'r') \
4916 || ('s' <= (c) && (c) <= 'z'))
4917 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4918 #endif
4920 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4922 main ()
4924 int i;
4925 for (i = 0; i < 256; i++)
4926 if (XOR (islower (i), ISLOWER (i))
4927 || toupper (i) != TOUPPER (i))
4928 return 2;
4929 return 0;
4931 _ACEOF
4932 if ac_fn_c_try_run "$LINENO"; then :
4934 else
4935 ac_cv_header_stdc=no
4937 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4938 conftest.$ac_objext conftest.beam conftest.$ac_ext
4943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4944 $as_echo "$ac_cv_header_stdc" >&6; }
4945 if test $ac_cv_header_stdc = yes; then
4947 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4952 for ac_func in setlocale
4953 do :
4954 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4955 if test "x$ac_cv_func_setlocale" = xyes; then :
4956 cat >>confdefs.h <<_ACEOF
4957 #define HAVE_SETLOCALE 1
4958 _ACEOF
4961 done
4965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4966 $as_echo_n "checking whether NLS is requested... " >&6; }
4967 # Check whether --enable-nls was given.
4968 if test "${enable_nls+set}" = set; then :
4969 enableval=$enable_nls; USE_NLS=$enableval
4970 else
4971 USE_NLS=yes
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4975 $as_echo "$USE_NLS" >&6; }
4980 GETTEXT_MACRO_VERSION=0.18
4985 # Prepare PATH_SEPARATOR.
4986 # The user is always right.
4987 if test "${PATH_SEPARATOR+set}" != set; then
4988 echo "#! /bin/sh" >conf$$.sh
4989 echo "exit 0" >>conf$$.sh
4990 chmod +x conf$$.sh
4991 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4992 PATH_SEPARATOR=';'
4993 else
4994 PATH_SEPARATOR=:
4996 rm -f conf$$.sh
4999 # Find out how to test for executable files. Don't use a zero-byte file,
5000 # as systems may use methods other than mode bits to determine executability.
5001 cat >conf$$.file <<_ASEOF
5002 #! /bin/sh
5003 exit 0
5004 _ASEOF
5005 chmod +x conf$$.file
5006 if test -x conf$$.file >/dev/null 2>&1; then
5007 ac_executable_p="test -x"
5008 else
5009 ac_executable_p="test -f"
5011 rm -f conf$$.file
5013 # Extract the first word of "msgfmt", so it can be a program name with args.
5014 set dummy msgfmt; ac_word=$2
5015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5016 $as_echo_n "checking for $ac_word... " >&6; }
5017 if ${ac_cv_path_MSGFMT+:} false; then :
5018 $as_echo_n "(cached) " >&6
5019 else
5020 case "$MSGFMT" in
5021 [\\/]* | ?:[\\/]*)
5022 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5025 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5026 for ac_dir in $PATH; do
5027 IFS="$ac_save_IFS"
5028 test -z "$ac_dir" && ac_dir=.
5029 for ac_exec_ext in '' $ac_executable_extensions; do
5030 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5031 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5032 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5033 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5034 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5035 break 2
5038 done
5039 done
5040 IFS="$ac_save_IFS"
5041 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5043 esac
5045 MSGFMT="$ac_cv_path_MSGFMT"
5046 if test "$MSGFMT" != ":"; then
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5048 $as_echo "$MSGFMT" >&6; }
5049 else
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5054 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5055 set dummy gmsgfmt; ac_word=$2
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5057 $as_echo_n "checking for $ac_word... " >&6; }
5058 if ${ac_cv_path_GMSGFMT+:} false; then :
5059 $as_echo_n "(cached) " >&6
5060 else
5061 case $GMSGFMT in
5062 [\\/]* | ?:[\\/]*)
5063 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5077 done
5078 done
5079 IFS=$as_save_IFS
5081 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5083 esac
5085 GMSGFMT=$ac_cv_path_GMSGFMT
5086 if test -n "$GMSGFMT"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5088 $as_echo "$GMSGFMT" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5096 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5097 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5098 *) MSGFMT_015=$MSGFMT ;;
5099 esac
5101 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5102 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5103 *) GMSGFMT_015=$GMSGFMT ;;
5104 esac
5108 # Prepare PATH_SEPARATOR.
5109 # The user is always right.
5110 if test "${PATH_SEPARATOR+set}" != set; then
5111 echo "#! /bin/sh" >conf$$.sh
5112 echo "exit 0" >>conf$$.sh
5113 chmod +x conf$$.sh
5114 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5115 PATH_SEPARATOR=';'
5116 else
5117 PATH_SEPARATOR=:
5119 rm -f conf$$.sh
5122 # Find out how to test for executable files. Don't use a zero-byte file,
5123 # as systems may use methods other than mode bits to determine executability.
5124 cat >conf$$.file <<_ASEOF
5125 #! /bin/sh
5126 exit 0
5127 _ASEOF
5128 chmod +x conf$$.file
5129 if test -x conf$$.file >/dev/null 2>&1; then
5130 ac_executable_p="test -x"
5131 else
5132 ac_executable_p="test -f"
5134 rm -f conf$$.file
5136 # Extract the first word of "xgettext", so it can be a program name with args.
5137 set dummy xgettext; ac_word=$2
5138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5139 $as_echo_n "checking for $ac_word... " >&6; }
5140 if ${ac_cv_path_XGETTEXT+:} false; then :
5141 $as_echo_n "(cached) " >&6
5142 else
5143 case "$XGETTEXT" in
5144 [\\/]* | ?:[\\/]*)
5145 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5148 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5149 for ac_dir in $PATH; do
5150 IFS="$ac_save_IFS"
5151 test -z "$ac_dir" && ac_dir=.
5152 for ac_exec_ext in '' $ac_executable_extensions; do
5153 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5154 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5155 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5156 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5157 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5158 break 2
5161 done
5162 done
5163 IFS="$ac_save_IFS"
5164 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5166 esac
5168 XGETTEXT="$ac_cv_path_XGETTEXT"
5169 if test "$XGETTEXT" != ":"; then
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5171 $as_echo "$XGETTEXT" >&6; }
5172 else
5173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5174 $as_echo "no" >&6; }
5177 rm -f messages.po
5179 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5180 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5181 *) XGETTEXT_015=$XGETTEXT ;;
5182 esac
5186 # Prepare PATH_SEPARATOR.
5187 # The user is always right.
5188 if test "${PATH_SEPARATOR+set}" != set; then
5189 echo "#! /bin/sh" >conf$$.sh
5190 echo "exit 0" >>conf$$.sh
5191 chmod +x conf$$.sh
5192 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5193 PATH_SEPARATOR=';'
5194 else
5195 PATH_SEPARATOR=:
5197 rm -f conf$$.sh
5200 # Find out how to test for executable files. Don't use a zero-byte file,
5201 # as systems may use methods other than mode bits to determine executability.
5202 cat >conf$$.file <<_ASEOF
5203 #! /bin/sh
5204 exit 0
5205 _ASEOF
5206 chmod +x conf$$.file
5207 if test -x conf$$.file >/dev/null 2>&1; then
5208 ac_executable_p="test -x"
5209 else
5210 ac_executable_p="test -f"
5212 rm -f conf$$.file
5214 # Extract the first word of "msgmerge", so it can be a program name with args.
5215 set dummy msgmerge; ac_word=$2
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5217 $as_echo_n "checking for $ac_word... " >&6; }
5218 if ${ac_cv_path_MSGMERGE+:} false; then :
5219 $as_echo_n "(cached) " >&6
5220 else
5221 case "$MSGMERGE" in
5222 [\\/]* | ?:[\\/]*)
5223 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5226 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5227 for ac_dir in $PATH; do
5228 IFS="$ac_save_IFS"
5229 test -z "$ac_dir" && ac_dir=.
5230 for ac_exec_ext in '' $ac_executable_extensions; do
5231 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5232 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5233 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5234 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5235 break 2
5238 done
5239 done
5240 IFS="$ac_save_IFS"
5241 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5243 esac
5245 MSGMERGE="$ac_cv_path_MSGMERGE"
5246 if test "$MSGMERGE" != ":"; then
5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5248 $as_echo "$MSGMERGE" >&6; }
5249 else
5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5251 $as_echo "no" >&6; }
5255 test -n "$localedir" || localedir='${datadir}/locale'
5258 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5261 ac_config_commands="$ac_config_commands po-directories"
5265 if test "X$prefix" = "XNONE"; then
5266 acl_final_prefix="$ac_default_prefix"
5267 else
5268 acl_final_prefix="$prefix"
5270 if test "X$exec_prefix" = "XNONE"; then
5271 acl_final_exec_prefix='${prefix}'
5272 else
5273 acl_final_exec_prefix="$exec_prefix"
5275 acl_save_prefix="$prefix"
5276 prefix="$acl_final_prefix"
5277 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5278 prefix="$acl_save_prefix"
5280 # Make sure we can run config.sub.
5281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5282 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5285 $as_echo_n "checking build system type... " >&6; }
5286 if ${ac_cv_build+:} false; then :
5287 $as_echo_n "(cached) " >&6
5288 else
5289 ac_build_alias=$build_alias
5290 test "x$ac_build_alias" = x &&
5291 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5292 test "x$ac_build_alias" = x &&
5293 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5294 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5295 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5299 $as_echo "$ac_cv_build" >&6; }
5300 case $ac_cv_build in
5301 *-*-*) ;;
5302 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5303 esac
5304 build=$ac_cv_build
5305 ac_save_IFS=$IFS; IFS='-'
5306 set x $ac_cv_build
5307 shift
5308 build_cpu=$1
5309 build_vendor=$2
5310 shift; shift
5311 # Remember, the first character of IFS is used to create $*,
5312 # except with old shells:
5313 build_os=$*
5314 IFS=$ac_save_IFS
5315 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5319 $as_echo_n "checking host system type... " >&6; }
5320 if ${ac_cv_host+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 if test "x$host_alias" = x; then
5324 ac_cv_host=$ac_cv_build
5325 else
5326 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5327 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5332 $as_echo "$ac_cv_host" >&6; }
5333 case $ac_cv_host in
5334 *-*-*) ;;
5335 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5336 esac
5337 host=$ac_cv_host
5338 ac_save_IFS=$IFS; IFS='-'
5339 set x $ac_cv_host
5340 shift
5341 host_cpu=$1
5342 host_vendor=$2
5343 shift; shift
5344 # Remember, the first character of IFS is used to create $*,
5345 # except with old shells:
5346 host_os=$*
5347 IFS=$ac_save_IFS
5348 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5352 # Check whether --with-gnu-ld was given.
5353 if test "${with_gnu_ld+set}" = set; then :
5354 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5355 else
5356 with_gnu_ld=no
5359 # Prepare PATH_SEPARATOR.
5360 # The user is always right.
5361 if test "${PATH_SEPARATOR+set}" != set; then
5362 echo "#! /bin/sh" >conf$$.sh
5363 echo "exit 0" >>conf$$.sh
5364 chmod +x conf$$.sh
5365 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5366 PATH_SEPARATOR=';'
5367 else
5368 PATH_SEPARATOR=:
5370 rm -f conf$$.sh
5372 ac_prog=ld
5373 if test "$GCC" = yes; then
5374 # Check if gcc -print-prog-name=ld gives a path.
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5376 $as_echo_n "checking for ld used by GCC... " >&6; }
5377 case $host in
5378 *-*-mingw*)
5379 # gcc leaves a trailing carriage return which upsets mingw
5380 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5382 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5383 esac
5384 case $ac_prog in
5385 # Accept absolute paths.
5386 [\\/]* | [A-Za-z]:[\\/]*)
5387 re_direlt='/[^/][^/]*/\.\./'
5388 # Canonicalize the path of ld
5389 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5390 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5391 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5392 done
5393 test -z "$LD" && LD="$ac_prog"
5396 # If it fails, then pretend we aren't using GCC.
5397 ac_prog=ld
5400 # If it is relative, then search for the first ld in PATH.
5401 with_gnu_ld=unknown
5403 esac
5404 elif test "$with_gnu_ld" = yes; then
5405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5406 $as_echo_n "checking for GNU ld... " >&6; }
5407 else
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5409 $as_echo_n "checking for non-GNU ld... " >&6; }
5411 if ${acl_cv_path_LD+:} false; then :
5412 $as_echo_n "(cached) " >&6
5413 else
5414 if test -z "$LD"; then
5415 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5416 for ac_dir in $PATH; do
5417 test -z "$ac_dir" && ac_dir=.
5418 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5419 acl_cv_path_LD="$ac_dir/$ac_prog"
5420 # Check to see if the program is GNU ld. I'd rather use --version,
5421 # but apparently some GNU ld's only accept -v.
5422 # Break only if it was the GNU/non-GNU ld that we prefer.
5423 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5424 *GNU* | *'with BFD'*)
5425 test "$with_gnu_ld" != no && break ;;
5427 test "$with_gnu_ld" != yes && break ;;
5428 esac
5430 done
5431 IFS="$ac_save_ifs"
5432 else
5433 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5437 LD="$acl_cv_path_LD"
5438 if test -n "$LD"; then
5439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5440 $as_echo "$LD" >&6; }
5441 else
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5443 $as_echo "no" >&6; }
5445 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5447 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5448 if ${acl_cv_prog_gnu_ld+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5452 case `$LD -v 2>&1 </dev/null` in
5453 *GNU* | *'with BFD'*)
5454 acl_cv_prog_gnu_ld=yes ;;
5456 acl_cv_prog_gnu_ld=no ;;
5457 esac
5459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5460 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5461 with_gnu_ld=$acl_cv_prog_gnu_ld
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5467 $as_echo_n "checking for shared library run path origin... " >&6; }
5468 if ${acl_cv_rpath+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5472 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5473 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5474 . ./conftest.sh
5475 rm -f ./conftest.sh
5476 acl_cv_rpath=done
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5480 $as_echo "$acl_cv_rpath" >&6; }
5481 wl="$acl_cv_wl"
5482 acl_libext="$acl_cv_libext"
5483 acl_shlibext="$acl_cv_shlibext"
5484 acl_libname_spec="$acl_cv_libname_spec"
5485 acl_library_names_spec="$acl_cv_library_names_spec"
5486 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5487 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5488 acl_hardcode_direct="$acl_cv_hardcode_direct"
5489 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5490 # Check whether --enable-rpath was given.
5491 if test "${enable_rpath+set}" = set; then :
5492 enableval=$enable_rpath; :
5493 else
5494 enable_rpath=yes
5500 acl_libdirstem=lib
5501 acl_libdirstem2=
5502 case "$host_os" in
5503 solaris*)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5505 $as_echo_n "checking for 64-bit host... " >&6; }
5506 if ${gl_cv_solaris_64bit+:} false; then :
5507 $as_echo_n "(cached) " >&6
5508 else
5509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5510 /* end confdefs.h. */
5512 #ifdef _LP64
5513 sixtyfour bits
5514 #endif
5516 _ACEOF
5517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5518 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5519 gl_cv_solaris_64bit=yes
5520 else
5521 gl_cv_solaris_64bit=no
5523 rm -f conftest*
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5528 $as_echo "$gl_cv_solaris_64bit" >&6; }
5529 if test $gl_cv_solaris_64bit = yes; then
5530 acl_libdirstem=lib/64
5531 case "$host_cpu" in
5532 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5533 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5534 esac
5538 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5539 if test -n "$searchpath"; then
5540 acl_save_IFS="${IFS= }"; IFS=":"
5541 for searchdir in $searchpath; do
5542 if test -d "$searchdir"; then
5543 case "$searchdir" in
5544 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5545 */../ | */.. )
5546 # Better ignore directories of this form. They are misleading.
5548 *) searchdir=`cd "$searchdir" && pwd`
5549 case "$searchdir" in
5550 */lib64 ) acl_libdirstem=lib64 ;;
5551 esac ;;
5552 esac
5554 done
5555 IFS="$acl_save_IFS"
5558 esac
5559 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5572 use_additional=yes
5574 acl_save_prefix="$prefix"
5575 prefix="$acl_final_prefix"
5576 acl_save_exec_prefix="$exec_prefix"
5577 exec_prefix="$acl_final_exec_prefix"
5579 eval additional_includedir=\"$includedir\"
5580 eval additional_libdir=\"$libdir\"
5582 exec_prefix="$acl_save_exec_prefix"
5583 prefix="$acl_save_prefix"
5586 # Check whether --with-libiconv-prefix was given.
5587 if test "${with_libiconv_prefix+set}" = set; then :
5588 withval=$with_libiconv_prefix;
5589 if test "X$withval" = "Xno"; then
5590 use_additional=no
5591 else
5592 if test "X$withval" = "X"; then
5594 acl_save_prefix="$prefix"
5595 prefix="$acl_final_prefix"
5596 acl_save_exec_prefix="$exec_prefix"
5597 exec_prefix="$acl_final_exec_prefix"
5599 eval additional_includedir=\"$includedir\"
5600 eval additional_libdir=\"$libdir\"
5602 exec_prefix="$acl_save_exec_prefix"
5603 prefix="$acl_save_prefix"
5605 else
5606 additional_includedir="$withval/include"
5607 additional_libdir="$withval/$acl_libdirstem"
5608 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5609 && ! test -d "$withval/$acl_libdirstem"; then
5610 additional_libdir="$withval/$acl_libdirstem2"
5617 LIBICONV=
5618 LTLIBICONV=
5619 INCICONV=
5620 LIBICONV_PREFIX=
5621 HAVE_LIBICONV=
5622 rpathdirs=
5623 ltrpathdirs=
5624 names_already_handled=
5625 names_next_round='iconv '
5626 while test -n "$names_next_round"; do
5627 names_this_round="$names_next_round"
5628 names_next_round=
5629 for name in $names_this_round; do
5630 already_handled=
5631 for n in $names_already_handled; do
5632 if test "$n" = "$name"; then
5633 already_handled=yes
5634 break
5636 done
5637 if test -z "$already_handled"; then
5638 names_already_handled="$names_already_handled $name"
5639 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5640 eval value=\"\$HAVE_LIB$uppername\"
5641 if test -n "$value"; then
5642 if test "$value" = yes; then
5643 eval value=\"\$LIB$uppername\"
5644 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5645 eval value=\"\$LTLIB$uppername\"
5646 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5647 else
5650 else
5651 found_dir=
5652 found_la=
5653 found_so=
5654 found_a=
5655 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5656 if test -n "$acl_shlibext"; then
5657 shrext=".$acl_shlibext" # typically: shrext=.so
5658 else
5659 shrext=
5661 if test $use_additional = yes; then
5662 dir="$additional_libdir"
5663 if test -n "$acl_shlibext"; then
5664 if test -f "$dir/$libname$shrext"; then
5665 found_dir="$dir"
5666 found_so="$dir/$libname$shrext"
5667 else
5668 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5669 ver=`(cd "$dir" && \
5670 for f in "$libname$shrext".*; do echo "$f"; done \
5671 | sed -e "s,^$libname$shrext\\\\.,," \
5672 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5673 | sed 1q ) 2>/dev/null`
5674 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5675 found_dir="$dir"
5676 found_so="$dir/$libname$shrext.$ver"
5678 else
5679 eval library_names=\"$acl_library_names_spec\"
5680 for f in $library_names; do
5681 if test -f "$dir/$f"; then
5682 found_dir="$dir"
5683 found_so="$dir/$f"
5684 break
5686 done
5690 if test "X$found_dir" = "X"; then
5691 if test -f "$dir/$libname.$acl_libext"; then
5692 found_dir="$dir"
5693 found_a="$dir/$libname.$acl_libext"
5696 if test "X$found_dir" != "X"; then
5697 if test -f "$dir/$libname.la"; then
5698 found_la="$dir/$libname.la"
5702 if test "X$found_dir" = "X"; then
5703 for x in $LDFLAGS $LTLIBICONV; do
5705 acl_save_prefix="$prefix"
5706 prefix="$acl_final_prefix"
5707 acl_save_exec_prefix="$exec_prefix"
5708 exec_prefix="$acl_final_exec_prefix"
5709 eval x=\"$x\"
5710 exec_prefix="$acl_save_exec_prefix"
5711 prefix="$acl_save_prefix"
5713 case "$x" in
5714 -L*)
5715 dir=`echo "X$x" | sed -e 's/^X-L//'`
5716 if test -n "$acl_shlibext"; then
5717 if test -f "$dir/$libname$shrext"; then
5718 found_dir="$dir"
5719 found_so="$dir/$libname$shrext"
5720 else
5721 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5722 ver=`(cd "$dir" && \
5723 for f in "$libname$shrext".*; do echo "$f"; done \
5724 | sed -e "s,^$libname$shrext\\\\.,," \
5725 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5726 | sed 1q ) 2>/dev/null`
5727 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5728 found_dir="$dir"
5729 found_so="$dir/$libname$shrext.$ver"
5731 else
5732 eval library_names=\"$acl_library_names_spec\"
5733 for f in $library_names; do
5734 if test -f "$dir/$f"; then
5735 found_dir="$dir"
5736 found_so="$dir/$f"
5737 break
5739 done
5743 if test "X$found_dir" = "X"; then
5744 if test -f "$dir/$libname.$acl_libext"; then
5745 found_dir="$dir"
5746 found_a="$dir/$libname.$acl_libext"
5749 if test "X$found_dir" != "X"; then
5750 if test -f "$dir/$libname.la"; then
5751 found_la="$dir/$libname.la"
5755 esac
5756 if test "X$found_dir" != "X"; then
5757 break
5759 done
5761 if test "X$found_dir" != "X"; then
5762 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5763 if test "X$found_so" != "X"; then
5764 if test "$enable_rpath" = no \
5765 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5766 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5767 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5768 else
5769 haveit=
5770 for x in $ltrpathdirs; do
5771 if test "X$x" = "X$found_dir"; then
5772 haveit=yes
5773 break
5775 done
5776 if test -z "$haveit"; then
5777 ltrpathdirs="$ltrpathdirs $found_dir"
5779 if test "$acl_hardcode_direct" = yes; then
5780 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5781 else
5782 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5783 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5784 haveit=
5785 for x in $rpathdirs; do
5786 if test "X$x" = "X$found_dir"; then
5787 haveit=yes
5788 break
5790 done
5791 if test -z "$haveit"; then
5792 rpathdirs="$rpathdirs $found_dir"
5794 else
5795 haveit=
5796 for x in $LDFLAGS $LIBICONV; do
5798 acl_save_prefix="$prefix"
5799 prefix="$acl_final_prefix"
5800 acl_save_exec_prefix="$exec_prefix"
5801 exec_prefix="$acl_final_exec_prefix"
5802 eval x=\"$x\"
5803 exec_prefix="$acl_save_exec_prefix"
5804 prefix="$acl_save_prefix"
5806 if test "X$x" = "X-L$found_dir"; then
5807 haveit=yes
5808 break
5810 done
5811 if test -z "$haveit"; then
5812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5814 if test "$acl_hardcode_minus_L" != no; then
5815 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5816 else
5817 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5822 else
5823 if test "X$found_a" != "X"; then
5824 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5825 else
5826 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5829 additional_includedir=
5830 case "$found_dir" in
5831 */$acl_libdirstem | */$acl_libdirstem/)
5832 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5833 if test "$name" = 'iconv'; then
5834 LIBICONV_PREFIX="$basedir"
5836 additional_includedir="$basedir/include"
5838 */$acl_libdirstem2 | */$acl_libdirstem2/)
5839 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5840 if test "$name" = 'iconv'; then
5841 LIBICONV_PREFIX="$basedir"
5843 additional_includedir="$basedir/include"
5845 esac
5846 if test "X$additional_includedir" != "X"; then
5847 if test "X$additional_includedir" != "X/usr/include"; then
5848 haveit=
5849 if test "X$additional_includedir" = "X/usr/local/include"; then
5850 if test -n "$GCC"; then
5851 case $host_os in
5852 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5853 esac
5856 if test -z "$haveit"; then
5857 for x in $CPPFLAGS $INCICONV; do
5859 acl_save_prefix="$prefix"
5860 prefix="$acl_final_prefix"
5861 acl_save_exec_prefix="$exec_prefix"
5862 exec_prefix="$acl_final_exec_prefix"
5863 eval x=\"$x\"
5864 exec_prefix="$acl_save_exec_prefix"
5865 prefix="$acl_save_prefix"
5867 if test "X$x" = "X-I$additional_includedir"; then
5868 haveit=yes
5869 break
5871 done
5872 if test -z "$haveit"; then
5873 if test -d "$additional_includedir"; then
5874 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5880 if test -n "$found_la"; then
5881 save_libdir="$libdir"
5882 case "$found_la" in
5883 */* | *\\*) . "$found_la" ;;
5884 *) . "./$found_la" ;;
5885 esac
5886 libdir="$save_libdir"
5887 for dep in $dependency_libs; do
5888 case "$dep" in
5889 -L*)
5890 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5891 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5892 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5893 haveit=
5894 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5895 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5896 if test -n "$GCC"; then
5897 case $host_os in
5898 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5899 esac
5902 if test -z "$haveit"; then
5903 haveit=
5904 for x in $LDFLAGS $LIBICONV; do
5906 acl_save_prefix="$prefix"
5907 prefix="$acl_final_prefix"
5908 acl_save_exec_prefix="$exec_prefix"
5909 exec_prefix="$acl_final_exec_prefix"
5910 eval x=\"$x\"
5911 exec_prefix="$acl_save_exec_prefix"
5912 prefix="$acl_save_prefix"
5914 if test "X$x" = "X-L$additional_libdir"; then
5915 haveit=yes
5916 break
5918 done
5919 if test -z "$haveit"; then
5920 if test -d "$additional_libdir"; then
5921 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5924 haveit=
5925 for x in $LDFLAGS $LTLIBICONV; do
5927 acl_save_prefix="$prefix"
5928 prefix="$acl_final_prefix"
5929 acl_save_exec_prefix="$exec_prefix"
5930 exec_prefix="$acl_final_exec_prefix"
5931 eval x=\"$x\"
5932 exec_prefix="$acl_save_exec_prefix"
5933 prefix="$acl_save_prefix"
5935 if test "X$x" = "X-L$additional_libdir"; then
5936 haveit=yes
5937 break
5939 done
5940 if test -z "$haveit"; then
5941 if test -d "$additional_libdir"; then
5942 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5948 -R*)
5949 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5950 if test "$enable_rpath" != no; then
5951 haveit=
5952 for x in $rpathdirs; do
5953 if test "X$x" = "X$dir"; then
5954 haveit=yes
5955 break
5957 done
5958 if test -z "$haveit"; then
5959 rpathdirs="$rpathdirs $dir"
5961 haveit=
5962 for x in $ltrpathdirs; do
5963 if test "X$x" = "X$dir"; then
5964 haveit=yes
5965 break
5967 done
5968 if test -z "$haveit"; then
5969 ltrpathdirs="$ltrpathdirs $dir"
5973 -l*)
5974 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5976 *.la)
5977 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5980 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5981 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5983 esac
5984 done
5986 else
5987 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5988 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5992 done
5993 done
5994 if test "X$rpathdirs" != "X"; then
5995 if test -n "$acl_hardcode_libdir_separator"; then
5996 alldirs=
5997 for found_dir in $rpathdirs; do
5998 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5999 done
6000 acl_save_libdir="$libdir"
6001 libdir="$alldirs"
6002 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6003 libdir="$acl_save_libdir"
6004 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6005 else
6006 for found_dir in $rpathdirs; do
6007 acl_save_libdir="$libdir"
6008 libdir="$found_dir"
6009 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6010 libdir="$acl_save_libdir"
6011 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6012 done
6015 if test "X$ltrpathdirs" != "X"; then
6016 for found_dir in $ltrpathdirs; do
6017 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6018 done
6051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6052 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6053 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6054 $as_echo_n "(cached) " >&6
6055 else
6056 gt_save_LIBS="$LIBS"
6057 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6059 /* end confdefs.h. */
6060 #include <CoreFoundation/CFPreferences.h>
6062 main ()
6064 CFPreferencesCopyAppValue(NULL, NULL)
6066 return 0;
6068 _ACEOF
6069 if ac_fn_c_try_link "$LINENO"; then :
6070 gt_cv_func_CFPreferencesCopyAppValue=yes
6071 else
6072 gt_cv_func_CFPreferencesCopyAppValue=no
6074 rm -f core conftest.err conftest.$ac_objext \
6075 conftest$ac_exeext conftest.$ac_ext
6076 LIBS="$gt_save_LIBS"
6078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6079 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6080 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6082 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6086 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6087 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6088 $as_echo_n "(cached) " >&6
6089 else
6090 gt_save_LIBS="$LIBS"
6091 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6093 /* end confdefs.h. */
6094 #include <CoreFoundation/CFLocale.h>
6096 main ()
6098 CFLocaleCopyCurrent();
6100 return 0;
6102 _ACEOF
6103 if ac_fn_c_try_link "$LINENO"; then :
6104 gt_cv_func_CFLocaleCopyCurrent=yes
6105 else
6106 gt_cv_func_CFLocaleCopyCurrent=no
6108 rm -f core conftest.err conftest.$ac_objext \
6109 conftest$ac_exeext conftest.$ac_ext
6110 LIBS="$gt_save_LIBS"
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6113 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6114 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6116 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6119 INTL_MACOSX_LIBS=
6120 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6121 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6129 LIBINTL=
6130 LTLIBINTL=
6131 POSUB=
6133 case " $gt_needs " in
6134 *" need-formatstring-macros "*) gt_api_version=3 ;;
6135 *" need-ngettext "*) gt_api_version=2 ;;
6136 *) gt_api_version=1 ;;
6137 esac
6138 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6139 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6141 if test "$USE_NLS" = "yes"; then
6142 gt_use_preinstalled_gnugettext=no
6145 if test $gt_api_version -ge 3; then
6146 gt_revision_test_code='
6147 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6148 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6149 #endif
6150 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6152 else
6153 gt_revision_test_code=
6155 if test $gt_api_version -ge 2; then
6156 gt_expression_test_code=' + * ngettext ("", "", 0)'
6157 else
6158 gt_expression_test_code=
6161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6162 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6163 if eval \${$gt_func_gnugettext_libc+:} false; then :
6164 $as_echo_n "(cached) " >&6
6165 else
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <libintl.h>
6169 $gt_revision_test_code
6170 extern int _nl_msg_cat_cntr;
6171 extern int *_nl_domain_bindings;
6173 main ()
6175 bindtextdomain ("", "");
6176 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6178 return 0;
6180 _ACEOF
6181 if ac_fn_c_try_link "$LINENO"; then :
6182 eval "$gt_func_gnugettext_libc=yes"
6183 else
6184 eval "$gt_func_gnugettext_libc=no"
6186 rm -f core conftest.err conftest.$ac_objext \
6187 conftest$ac_exeext conftest.$ac_ext
6189 eval ac_res=\$$gt_func_gnugettext_libc
6190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6191 $as_echo "$ac_res" >&6; }
6193 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6199 am_save_CPPFLAGS="$CPPFLAGS"
6201 for element in $INCICONV; do
6202 haveit=
6203 for x in $CPPFLAGS; do
6205 acl_save_prefix="$prefix"
6206 prefix="$acl_final_prefix"
6207 acl_save_exec_prefix="$exec_prefix"
6208 exec_prefix="$acl_final_exec_prefix"
6209 eval x=\"$x\"
6210 exec_prefix="$acl_save_exec_prefix"
6211 prefix="$acl_save_prefix"
6213 if test "X$x" = "X$element"; then
6214 haveit=yes
6215 break
6217 done
6218 if test -z "$haveit"; then
6219 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6221 done
6224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6225 $as_echo_n "checking for iconv... " >&6; }
6226 if ${am_cv_func_iconv+:} false; then :
6227 $as_echo_n "(cached) " >&6
6228 else
6230 am_cv_func_iconv="no, consider installing GNU libiconv"
6231 am_cv_lib_iconv=no
6232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6233 /* end confdefs.h. */
6234 #include <stdlib.h>
6235 #include <iconv.h>
6237 main ()
6239 iconv_t cd = iconv_open("","");
6240 iconv(cd,NULL,NULL,NULL,NULL);
6241 iconv_close(cd);
6243 return 0;
6245 _ACEOF
6246 if ac_fn_c_try_link "$LINENO"; then :
6247 am_cv_func_iconv=yes
6249 rm -f core conftest.err conftest.$ac_objext \
6250 conftest$ac_exeext conftest.$ac_ext
6251 if test "$am_cv_func_iconv" != yes; then
6252 am_save_LIBS="$LIBS"
6253 LIBS="$LIBS $LIBICONV"
6254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6255 /* end confdefs.h. */
6256 #include <stdlib.h>
6257 #include <iconv.h>
6259 main ()
6261 iconv_t cd = iconv_open("","");
6262 iconv(cd,NULL,NULL,NULL,NULL);
6263 iconv_close(cd);
6265 return 0;
6267 _ACEOF
6268 if ac_fn_c_try_link "$LINENO"; then :
6269 am_cv_lib_iconv=yes
6270 am_cv_func_iconv=yes
6272 rm -f core conftest.err conftest.$ac_objext \
6273 conftest$ac_exeext conftest.$ac_ext
6274 LIBS="$am_save_LIBS"
6278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6279 $as_echo "$am_cv_func_iconv" >&6; }
6280 if test "$am_cv_func_iconv" = yes; then
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6282 $as_echo_n "checking for working iconv... " >&6; }
6283 if ${am_cv_func_iconv_works+:} false; then :
6284 $as_echo_n "(cached) " >&6
6285 else
6287 am_save_LIBS="$LIBS"
6288 if test $am_cv_lib_iconv = yes; then
6289 LIBS="$LIBS $LIBICONV"
6291 if test "$cross_compiling" = yes; then :
6292 case "$host_os" in
6293 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6294 *) am_cv_func_iconv_works="guessing yes" ;;
6295 esac
6296 else
6297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6298 /* end confdefs.h. */
6300 #include <iconv.h>
6301 #include <string.h>
6302 int main ()
6304 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6305 returns. */
6307 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6308 if (cd_utf8_to_88591 != (iconv_t)(-1))
6310 static const char input[] = "\342\202\254"; /* EURO SIGN */
6311 char buf[10];
6312 const char *inptr = input;
6313 size_t inbytesleft = strlen (input);
6314 char *outptr = buf;
6315 size_t outbytesleft = sizeof (buf);
6316 size_t res = iconv (cd_utf8_to_88591,
6317 (char **) &inptr, &inbytesleft,
6318 &outptr, &outbytesleft);
6319 if (res == 0)
6320 return 1;
6323 /* Test against Solaris 10 bug: Failures are not distinguishable from
6324 successful returns. */
6326 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6327 if (cd_ascii_to_88591 != (iconv_t)(-1))
6329 static const char input[] = "\263";
6330 char buf[10];
6331 const char *inptr = input;
6332 size_t inbytesleft = strlen (input);
6333 char *outptr = buf;
6334 size_t outbytesleft = sizeof (buf);
6335 size_t res = iconv (cd_ascii_to_88591,
6336 (char **) &inptr, &inbytesleft,
6337 &outptr, &outbytesleft);
6338 if (res == 0)
6339 return 1;
6342 #if 0 /* This bug could be worked around by the caller. */
6343 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6345 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6346 if (cd_88591_to_utf8 != (iconv_t)(-1))
6348 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6349 char buf[50];
6350 const char *inptr = input;
6351 size_t inbytesleft = strlen (input);
6352 char *outptr = buf;
6353 size_t outbytesleft = sizeof (buf);
6354 size_t res = iconv (cd_88591_to_utf8,
6355 (char **) &inptr, &inbytesleft,
6356 &outptr, &outbytesleft);
6357 if ((int)res > 0)
6358 return 1;
6361 #endif
6362 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6363 provided. */
6364 if (/* Try standardized names. */
6365 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6366 /* Try IRIX, OSF/1 names. */
6367 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6368 /* Try AIX names. */
6369 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6370 /* Try HP-UX names. */
6371 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6372 return 1;
6373 return 0;
6375 _ACEOF
6376 if ac_fn_c_try_run "$LINENO"; then :
6377 am_cv_func_iconv_works=yes
6378 else
6379 am_cv_func_iconv_works=no
6381 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6382 conftest.$ac_objext conftest.beam conftest.$ac_ext
6385 LIBS="$am_save_LIBS"
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6389 $as_echo "$am_cv_func_iconv_works" >&6; }
6390 case "$am_cv_func_iconv_works" in
6391 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6392 *) am_func_iconv=yes ;;
6393 esac
6394 else
6395 am_func_iconv=no am_cv_lib_iconv=no
6397 if test "$am_func_iconv" = yes; then
6399 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6402 if test "$am_cv_lib_iconv" = yes; then
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6404 $as_echo_n "checking how to link with libiconv... " >&6; }
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6406 $as_echo "$LIBICONV" >&6; }
6407 else
6408 CPPFLAGS="$am_save_CPPFLAGS"
6409 LIBICONV=
6410 LTLIBICONV=
6423 use_additional=yes
6425 acl_save_prefix="$prefix"
6426 prefix="$acl_final_prefix"
6427 acl_save_exec_prefix="$exec_prefix"
6428 exec_prefix="$acl_final_exec_prefix"
6430 eval additional_includedir=\"$includedir\"
6431 eval additional_libdir=\"$libdir\"
6433 exec_prefix="$acl_save_exec_prefix"
6434 prefix="$acl_save_prefix"
6437 # Check whether --with-libintl-prefix was given.
6438 if test "${with_libintl_prefix+set}" = set; then :
6439 withval=$with_libintl_prefix;
6440 if test "X$withval" = "Xno"; then
6441 use_additional=no
6442 else
6443 if test "X$withval" = "X"; then
6445 acl_save_prefix="$prefix"
6446 prefix="$acl_final_prefix"
6447 acl_save_exec_prefix="$exec_prefix"
6448 exec_prefix="$acl_final_exec_prefix"
6450 eval additional_includedir=\"$includedir\"
6451 eval additional_libdir=\"$libdir\"
6453 exec_prefix="$acl_save_exec_prefix"
6454 prefix="$acl_save_prefix"
6456 else
6457 additional_includedir="$withval/include"
6458 additional_libdir="$withval/$acl_libdirstem"
6459 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6460 && ! test -d "$withval/$acl_libdirstem"; then
6461 additional_libdir="$withval/$acl_libdirstem2"
6468 LIBINTL=
6469 LTLIBINTL=
6470 INCINTL=
6471 LIBINTL_PREFIX=
6472 HAVE_LIBINTL=
6473 rpathdirs=
6474 ltrpathdirs=
6475 names_already_handled=
6476 names_next_round='intl '
6477 while test -n "$names_next_round"; do
6478 names_this_round="$names_next_round"
6479 names_next_round=
6480 for name in $names_this_round; do
6481 already_handled=
6482 for n in $names_already_handled; do
6483 if test "$n" = "$name"; then
6484 already_handled=yes
6485 break
6487 done
6488 if test -z "$already_handled"; then
6489 names_already_handled="$names_already_handled $name"
6490 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6491 eval value=\"\$HAVE_LIB$uppername\"
6492 if test -n "$value"; then
6493 if test "$value" = yes; then
6494 eval value=\"\$LIB$uppername\"
6495 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6496 eval value=\"\$LTLIB$uppername\"
6497 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6498 else
6501 else
6502 found_dir=
6503 found_la=
6504 found_so=
6505 found_a=
6506 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6507 if test -n "$acl_shlibext"; then
6508 shrext=".$acl_shlibext" # typically: shrext=.so
6509 else
6510 shrext=
6512 if test $use_additional = yes; then
6513 dir="$additional_libdir"
6514 if test -n "$acl_shlibext"; then
6515 if test -f "$dir/$libname$shrext"; then
6516 found_dir="$dir"
6517 found_so="$dir/$libname$shrext"
6518 else
6519 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6520 ver=`(cd "$dir" && \
6521 for f in "$libname$shrext".*; do echo "$f"; done \
6522 | sed -e "s,^$libname$shrext\\\\.,," \
6523 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6524 | sed 1q ) 2>/dev/null`
6525 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6526 found_dir="$dir"
6527 found_so="$dir/$libname$shrext.$ver"
6529 else
6530 eval library_names=\"$acl_library_names_spec\"
6531 for f in $library_names; do
6532 if test -f "$dir/$f"; then
6533 found_dir="$dir"
6534 found_so="$dir/$f"
6535 break
6537 done
6541 if test "X$found_dir" = "X"; then
6542 if test -f "$dir/$libname.$acl_libext"; then
6543 found_dir="$dir"
6544 found_a="$dir/$libname.$acl_libext"
6547 if test "X$found_dir" != "X"; then
6548 if test -f "$dir/$libname.la"; then
6549 found_la="$dir/$libname.la"
6553 if test "X$found_dir" = "X"; then
6554 for x in $LDFLAGS $LTLIBINTL; do
6556 acl_save_prefix="$prefix"
6557 prefix="$acl_final_prefix"
6558 acl_save_exec_prefix="$exec_prefix"
6559 exec_prefix="$acl_final_exec_prefix"
6560 eval x=\"$x\"
6561 exec_prefix="$acl_save_exec_prefix"
6562 prefix="$acl_save_prefix"
6564 case "$x" in
6565 -L*)
6566 dir=`echo "X$x" | sed -e 's/^X-L//'`
6567 if test -n "$acl_shlibext"; then
6568 if test -f "$dir/$libname$shrext"; then
6569 found_dir="$dir"
6570 found_so="$dir/$libname$shrext"
6571 else
6572 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6573 ver=`(cd "$dir" && \
6574 for f in "$libname$shrext".*; do echo "$f"; done \
6575 | sed -e "s,^$libname$shrext\\\\.,," \
6576 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6577 | sed 1q ) 2>/dev/null`
6578 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6579 found_dir="$dir"
6580 found_so="$dir/$libname$shrext.$ver"
6582 else
6583 eval library_names=\"$acl_library_names_spec\"
6584 for f in $library_names; do
6585 if test -f "$dir/$f"; then
6586 found_dir="$dir"
6587 found_so="$dir/$f"
6588 break
6590 done
6594 if test "X$found_dir" = "X"; then
6595 if test -f "$dir/$libname.$acl_libext"; then
6596 found_dir="$dir"
6597 found_a="$dir/$libname.$acl_libext"
6600 if test "X$found_dir" != "X"; then
6601 if test -f "$dir/$libname.la"; then
6602 found_la="$dir/$libname.la"
6606 esac
6607 if test "X$found_dir" != "X"; then
6608 break
6610 done
6612 if test "X$found_dir" != "X"; then
6613 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6614 if test "X$found_so" != "X"; then
6615 if test "$enable_rpath" = no \
6616 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6617 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6618 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6619 else
6620 haveit=
6621 for x in $ltrpathdirs; do
6622 if test "X$x" = "X$found_dir"; then
6623 haveit=yes
6624 break
6626 done
6627 if test -z "$haveit"; then
6628 ltrpathdirs="$ltrpathdirs $found_dir"
6630 if test "$acl_hardcode_direct" = yes; then
6631 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6632 else
6633 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6634 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6635 haveit=
6636 for x in $rpathdirs; do
6637 if test "X$x" = "X$found_dir"; then
6638 haveit=yes
6639 break
6641 done
6642 if test -z "$haveit"; then
6643 rpathdirs="$rpathdirs $found_dir"
6645 else
6646 haveit=
6647 for x in $LDFLAGS $LIBINTL; do
6649 acl_save_prefix="$prefix"
6650 prefix="$acl_final_prefix"
6651 acl_save_exec_prefix="$exec_prefix"
6652 exec_prefix="$acl_final_exec_prefix"
6653 eval x=\"$x\"
6654 exec_prefix="$acl_save_exec_prefix"
6655 prefix="$acl_save_prefix"
6657 if test "X$x" = "X-L$found_dir"; then
6658 haveit=yes
6659 break
6661 done
6662 if test -z "$haveit"; then
6663 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6665 if test "$acl_hardcode_minus_L" != no; then
6666 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6667 else
6668 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6673 else
6674 if test "X$found_a" != "X"; then
6675 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6676 else
6677 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6680 additional_includedir=
6681 case "$found_dir" in
6682 */$acl_libdirstem | */$acl_libdirstem/)
6683 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6684 if test "$name" = 'intl'; then
6685 LIBINTL_PREFIX="$basedir"
6687 additional_includedir="$basedir/include"
6689 */$acl_libdirstem2 | */$acl_libdirstem2/)
6690 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6691 if test "$name" = 'intl'; then
6692 LIBINTL_PREFIX="$basedir"
6694 additional_includedir="$basedir/include"
6696 esac
6697 if test "X$additional_includedir" != "X"; then
6698 if test "X$additional_includedir" != "X/usr/include"; then
6699 haveit=
6700 if test "X$additional_includedir" = "X/usr/local/include"; then
6701 if test -n "$GCC"; then
6702 case $host_os in
6703 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6704 esac
6707 if test -z "$haveit"; then
6708 for x in $CPPFLAGS $INCINTL; do
6710 acl_save_prefix="$prefix"
6711 prefix="$acl_final_prefix"
6712 acl_save_exec_prefix="$exec_prefix"
6713 exec_prefix="$acl_final_exec_prefix"
6714 eval x=\"$x\"
6715 exec_prefix="$acl_save_exec_prefix"
6716 prefix="$acl_save_prefix"
6718 if test "X$x" = "X-I$additional_includedir"; then
6719 haveit=yes
6720 break
6722 done
6723 if test -z "$haveit"; then
6724 if test -d "$additional_includedir"; then
6725 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6731 if test -n "$found_la"; then
6732 save_libdir="$libdir"
6733 case "$found_la" in
6734 */* | *\\*) . "$found_la" ;;
6735 *) . "./$found_la" ;;
6736 esac
6737 libdir="$save_libdir"
6738 for dep in $dependency_libs; do
6739 case "$dep" in
6740 -L*)
6741 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6742 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6743 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6744 haveit=
6745 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6746 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6747 if test -n "$GCC"; then
6748 case $host_os in
6749 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6750 esac
6753 if test -z "$haveit"; then
6754 haveit=
6755 for x in $LDFLAGS $LIBINTL; do
6757 acl_save_prefix="$prefix"
6758 prefix="$acl_final_prefix"
6759 acl_save_exec_prefix="$exec_prefix"
6760 exec_prefix="$acl_final_exec_prefix"
6761 eval x=\"$x\"
6762 exec_prefix="$acl_save_exec_prefix"
6763 prefix="$acl_save_prefix"
6765 if test "X$x" = "X-L$additional_libdir"; then
6766 haveit=yes
6767 break
6769 done
6770 if test -z "$haveit"; then
6771 if test -d "$additional_libdir"; then
6772 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6775 haveit=
6776 for x in $LDFLAGS $LTLIBINTL; do
6778 acl_save_prefix="$prefix"
6779 prefix="$acl_final_prefix"
6780 acl_save_exec_prefix="$exec_prefix"
6781 exec_prefix="$acl_final_exec_prefix"
6782 eval x=\"$x\"
6783 exec_prefix="$acl_save_exec_prefix"
6784 prefix="$acl_save_prefix"
6786 if test "X$x" = "X-L$additional_libdir"; then
6787 haveit=yes
6788 break
6790 done
6791 if test -z "$haveit"; then
6792 if test -d "$additional_libdir"; then
6793 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6799 -R*)
6800 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6801 if test "$enable_rpath" != no; then
6802 haveit=
6803 for x in $rpathdirs; do
6804 if test "X$x" = "X$dir"; then
6805 haveit=yes
6806 break
6808 done
6809 if test -z "$haveit"; then
6810 rpathdirs="$rpathdirs $dir"
6812 haveit=
6813 for x in $ltrpathdirs; do
6814 if test "X$x" = "X$dir"; then
6815 haveit=yes
6816 break
6818 done
6819 if test -z "$haveit"; then
6820 ltrpathdirs="$ltrpathdirs $dir"
6824 -l*)
6825 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6827 *.la)
6828 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6831 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6832 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6834 esac
6835 done
6837 else
6838 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6839 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6843 done
6844 done
6845 if test "X$rpathdirs" != "X"; then
6846 if test -n "$acl_hardcode_libdir_separator"; then
6847 alldirs=
6848 for found_dir in $rpathdirs; do
6849 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6850 done
6851 acl_save_libdir="$libdir"
6852 libdir="$alldirs"
6853 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6854 libdir="$acl_save_libdir"
6855 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6856 else
6857 for found_dir in $rpathdirs; do
6858 acl_save_libdir="$libdir"
6859 libdir="$found_dir"
6860 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6861 libdir="$acl_save_libdir"
6862 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6863 done
6866 if test "X$ltrpathdirs" != "X"; then
6867 for found_dir in $ltrpathdirs; do
6868 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6869 done
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6878 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6879 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6880 $as_echo_n "(cached) " >&6
6881 else
6882 gt_save_CPPFLAGS="$CPPFLAGS"
6883 CPPFLAGS="$CPPFLAGS $INCINTL"
6884 gt_save_LIBS="$LIBS"
6885 LIBS="$LIBS $LIBINTL"
6886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6887 /* end confdefs.h. */
6888 #include <libintl.h>
6889 $gt_revision_test_code
6890 extern int _nl_msg_cat_cntr;
6891 extern
6892 #ifdef __cplusplus
6894 #endif
6895 const char *_nl_expand_alias (const char *);
6897 main ()
6899 bindtextdomain ("", "");
6900 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6902 return 0;
6904 _ACEOF
6905 if ac_fn_c_try_link "$LINENO"; then :
6906 eval "$gt_func_gnugettext_libintl=yes"
6907 else
6908 eval "$gt_func_gnugettext_libintl=no"
6910 rm -f core conftest.err conftest.$ac_objext \
6911 conftest$ac_exeext conftest.$ac_ext
6912 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6913 LIBS="$LIBS $LIBICONV"
6914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6915 /* end confdefs.h. */
6916 #include <libintl.h>
6917 $gt_revision_test_code
6918 extern int _nl_msg_cat_cntr;
6919 extern
6920 #ifdef __cplusplus
6922 #endif
6923 const char *_nl_expand_alias (const char *);
6925 main ()
6927 bindtextdomain ("", "");
6928 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6930 return 0;
6932 _ACEOF
6933 if ac_fn_c_try_link "$LINENO"; then :
6934 LIBINTL="$LIBINTL $LIBICONV"
6935 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6936 eval "$gt_func_gnugettext_libintl=yes"
6939 rm -f core conftest.err conftest.$ac_objext \
6940 conftest$ac_exeext conftest.$ac_ext
6942 CPPFLAGS="$gt_save_CPPFLAGS"
6943 LIBS="$gt_save_LIBS"
6945 eval ac_res=\$$gt_func_gnugettext_libintl
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6947 $as_echo "$ac_res" >&6; }
6950 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6951 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6952 && test "$PACKAGE" != gettext-runtime \
6953 && test "$PACKAGE" != gettext-tools; }; then
6954 gt_use_preinstalled_gnugettext=yes
6955 else
6956 LIBINTL=
6957 LTLIBINTL=
6958 INCINTL=
6963 if test -n "$INTL_MACOSX_LIBS"; then
6964 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6965 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6966 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6967 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6971 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6972 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6974 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6976 else
6977 USE_NLS=no
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6982 $as_echo_n "checking whether to use NLS... " >&6; }
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6984 $as_echo "$USE_NLS" >&6; }
6985 if test "$USE_NLS" = "yes"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6987 $as_echo_n "checking where the gettext function comes from... " >&6; }
6988 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6989 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6990 gt_source="external libintl"
6991 else
6992 gt_source="libc"
6994 else
6995 gt_source="included intl directory"
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6998 $as_echo "$gt_source" >&6; }
7001 if test "$USE_NLS" = "yes"; then
7003 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7004 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7006 $as_echo_n "checking how to link with libintl... " >&6; }
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7008 $as_echo "$LIBINTL" >&6; }
7010 for element in $INCINTL; do
7011 haveit=
7012 for x in $CPPFLAGS; do
7014 acl_save_prefix="$prefix"
7015 prefix="$acl_final_prefix"
7016 acl_save_exec_prefix="$exec_prefix"
7017 exec_prefix="$acl_final_exec_prefix"
7018 eval x=\"$x\"
7019 exec_prefix="$acl_save_exec_prefix"
7020 prefix="$acl_save_prefix"
7022 if test "X$x" = "X$element"; then
7023 haveit=yes
7024 break
7026 done
7027 if test -z "$haveit"; then
7028 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7030 done
7035 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7038 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7042 POSUB=po
7047 INTLLIBS="$LIBINTL"
7058 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7059 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7060 inttypes.h stdint.h unistd.h
7061 do :
7062 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7063 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7066 cat >>confdefs.h <<_ACEOF
7067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068 _ACEOF
7072 done
7075 for ac_header in stdint.h stdlib.h
7076 do :
7077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7078 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7079 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7080 cat >>confdefs.h <<_ACEOF
7081 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7082 _ACEOF
7086 done
7088 for ac_func in strchr strrchr
7089 do :
7090 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7091 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7092 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7093 cat >>confdefs.h <<_ACEOF
7094 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7095 _ACEOF
7098 done
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7101 $as_echo_n "checking for working memcmp... " >&6; }
7102 if ${ac_cv_func_memcmp_working+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 if test "$cross_compiling" = yes; then :
7106 ac_cv_func_memcmp_working=no
7107 else
7108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7109 /* end confdefs.h. */
7110 $ac_includes_default
7112 main ()
7115 /* Some versions of memcmp are not 8-bit clean. */
7116 char c0 = '\100', c1 = '\200', c2 = '\201';
7117 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7118 return 1;
7120 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7121 or more and with at least one buffer not starting on a 4-byte boundary.
7122 William Lewis provided this test program. */
7124 char foo[21];
7125 char bar[21];
7126 int i;
7127 for (i = 0; i < 4; i++)
7129 char *a = foo + i;
7130 char *b = bar + i;
7131 strcpy (a, "--------01111111");
7132 strcpy (b, "--------10000000");
7133 if (memcmp (a, b, 16) >= 0)
7134 return 1;
7136 return 0;
7140 return 0;
7142 _ACEOF
7143 if ac_fn_c_try_run "$LINENO"; then :
7144 ac_cv_func_memcmp_working=yes
7145 else
7146 ac_cv_func_memcmp_working=no
7148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7149 conftest.$ac_objext conftest.beam conftest.$ac_ext
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7154 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7155 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7156 *" memcmp.$ac_objext "* ) ;;
7157 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7159 esac
7162 for ac_header in stdlib.h
7163 do :
7164 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7165 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7166 cat >>confdefs.h <<_ACEOF
7167 #define HAVE_STDLIB_H 1
7168 _ACEOF
7172 done
7174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7175 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7176 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7177 $as_echo_n "(cached) " >&6
7178 else
7179 if test "$cross_compiling" = yes; then :
7180 ac_cv_func_malloc_0_nonnull=no
7181 else
7182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7183 /* end confdefs.h. */
7184 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7185 # include <stdlib.h>
7186 #else
7187 char *malloc ();
7188 #endif
7191 main ()
7193 return ! malloc (0);
7195 return 0;
7197 _ACEOF
7198 if ac_fn_c_try_run "$LINENO"; then :
7199 ac_cv_func_malloc_0_nonnull=yes
7200 else
7201 ac_cv_func_malloc_0_nonnull=no
7203 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7204 conftest.$ac_objext conftest.beam conftest.$ac_ext
7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7209 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7210 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7212 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7214 else
7215 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7217 case " $LIBOBJS " in
7218 *" malloc.$ac_objext "* ) ;;
7219 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7221 esac
7224 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7229 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7230 case $ac_cv_c_uint32_t in #(
7231 no|yes) ;; #(
7234 $as_echo "#define _UINT32_T 1" >>confdefs.h
7237 cat >>confdefs.h <<_ACEOF
7238 #define uint32_t $ac_cv_c_uint32_t
7239 _ACEOF
7241 esac
7244 # Check whether --enable-glibtest was given.
7245 if test "${enable_glibtest+set}" = set; then :
7246 enableval=$enable_glibtest;
7247 else
7248 enable_glibtest=yes
7252 pkg_config_args=glib-2.0
7253 for module in . gthread
7255 case "$module" in
7256 gmodule)
7257 pkg_config_args="$pkg_config_args gmodule-2.0"
7259 gmodule-no-export)
7260 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7262 gobject)
7263 pkg_config_args="$pkg_config_args gobject-2.0"
7265 gthread)
7266 pkg_config_args="$pkg_config_args gthread-2.0"
7268 gio*)
7269 pkg_config_args="$pkg_config_args $module-2.0"
7271 esac
7272 done
7281 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7282 if test -n "$ac_tool_prefix"; then
7283 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7284 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7286 $as_echo_n "checking for $ac_word... " >&6; }
7287 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7288 $as_echo_n "(cached) " >&6
7289 else
7290 case $PKG_CONFIG in
7291 [\\/]* | ?:[\\/]*)
7292 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7296 for as_dir in $PATH
7298 IFS=$as_save_IFS
7299 test -z "$as_dir" && as_dir=.
7300 for ac_exec_ext in '' $ac_executable_extensions; do
7301 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7302 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7304 break 2
7306 done
7307 done
7308 IFS=$as_save_IFS
7311 esac
7313 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7314 if test -n "$PKG_CONFIG"; then
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7316 $as_echo "$PKG_CONFIG" >&6; }
7317 else
7318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }
7324 if test -z "$ac_cv_path_PKG_CONFIG"; then
7325 ac_pt_PKG_CONFIG=$PKG_CONFIG
7326 # Extract the first word of "pkg-config", so it can be a program name with args.
7327 set dummy pkg-config; ac_word=$2
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7329 $as_echo_n "checking for $ac_word... " >&6; }
7330 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7331 $as_echo_n "(cached) " >&6
7332 else
7333 case $ac_pt_PKG_CONFIG in
7334 [\\/]* | ?:[\\/]*)
7335 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7339 for as_dir in $PATH
7341 IFS=$as_save_IFS
7342 test -z "$as_dir" && as_dir=.
7343 for ac_exec_ext in '' $ac_executable_extensions; do
7344 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7345 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7346 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7347 break 2
7349 done
7350 done
7351 IFS=$as_save_IFS
7354 esac
7356 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7357 if test -n "$ac_pt_PKG_CONFIG"; then
7358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7359 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7360 else
7361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }
7365 if test "x$ac_pt_PKG_CONFIG" = x; then
7366 PKG_CONFIG=""
7367 else
7368 case $cross_compiling:$ac_tool_warned in
7369 yes:)
7370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7372 ac_tool_warned=yes ;;
7373 esac
7374 PKG_CONFIG=$ac_pt_PKG_CONFIG
7376 else
7377 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7381 if test -n "$PKG_CONFIG"; then
7382 _pkg_min_version=0.16
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7384 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7385 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7387 $as_echo "yes" >&6; }
7388 else
7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7390 $as_echo "no" >&6; }
7391 PKG_CONFIG=""
7395 no_glib=""
7397 if test "x$PKG_CONFIG" = x ; then
7398 no_glib=yes
7399 PKG_CONFIG=no
7402 min_glib_version=2.12.0
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
7404 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7406 if test x$PKG_CONFIG != xno ; then
7407 ## don't try to run the test against uninstalled libtool libs
7408 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7409 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7410 enable_glibtest=no
7413 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7415 else
7416 no_glib=yes
7420 if test x"$no_glib" = x ; then
7421 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7422 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7423 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7424 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
7426 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7427 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7428 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7429 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7430 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7431 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7432 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7433 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7434 if test "x$enable_glibtest" = "xyes" ; then
7435 ac_save_CFLAGS="$CFLAGS"
7436 ac_save_LIBS="$LIBS"
7437 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7438 LIBS="$GLIB_LIBS $LIBS"
7439 rm -f conf.glibtest
7440 if test "$cross_compiling" = yes; then :
7441 echo $ac_n "cross compiling; assumed OK... $ac_c"
7442 else
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7446 #include <glib.h>
7447 #include <stdio.h>
7448 #include <stdlib.h>
7451 main ()
7453 unsigned int major, minor, micro;
7454 char *tmp_version;
7456 fclose (fopen ("conf.glibtest", "w"));
7458 /* HP/UX 9 (%@#!) writes to sscanf strings */
7459 tmp_version = g_strdup("$min_glib_version");
7460 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
7461 printf("%s, bad version string\n", "$min_glib_version");
7462 exit(1);
7465 if ((glib_major_version != $glib_config_major_version) ||
7466 (glib_minor_version != $glib_config_minor_version) ||
7467 (glib_micro_version != $glib_config_micro_version))
7469 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7470 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7471 glib_major_version, glib_minor_version, glib_micro_version);
7472 printf ("*** was found! If pkg-config was correct, then it is best\n");
7473 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7474 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7475 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7476 printf("*** required on your system.\n");
7477 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7478 printf("*** to point to the correct configuration files\n");
7480 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7481 (glib_minor_version != GLIB_MINOR_VERSION) ||
7482 (glib_micro_version != GLIB_MICRO_VERSION))
7484 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7485 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7486 printf("*** library (version %d.%d.%d)\n",
7487 glib_major_version, glib_minor_version, glib_micro_version);
7489 else
7491 if ((glib_major_version > major) ||
7492 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7493 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7495 return 0;
7497 else
7499 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
7500 glib_major_version, glib_minor_version, glib_micro_version);
7501 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
7502 major, minor, micro);
7503 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7504 printf("***\n");
7505 printf("*** If you have already installed a sufficiently new version, this error\n");
7506 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7507 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7508 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7509 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7510 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7511 printf("*** so that the correct libraries are found at run-time))\n");
7514 return 1;
7517 _ACEOF
7518 if ac_fn_c_try_run "$LINENO"; then :
7520 else
7521 no_glib=yes
7523 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7524 conftest.$ac_objext conftest.beam conftest.$ac_ext
7527 CFLAGS="$ac_save_CFLAGS"
7528 LIBS="$ac_save_LIBS"
7531 if test "x$no_glib" = x ; then
7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7533 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7535 else
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7537 $as_echo "no" >&6; }
7538 if test "$PKG_CONFIG" = "no" ; then
7539 echo "*** A new enough version of pkg-config was not found."
7540 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7541 else
7542 if test -f conf.glibtest ; then
7544 else
7545 echo "*** Could not run GLIB test program, checking why..."
7546 ac_save_CFLAGS="$CFLAGS"
7547 ac_save_LIBS="$LIBS"
7548 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7549 LIBS="$LIBS $GLIB_LIBS"
7550 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7551 /* end confdefs.h. */
7553 #include <glib.h>
7554 #include <stdio.h>
7557 main ()
7559 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7561 return 0;
7563 _ACEOF
7564 if ac_fn_c_try_link "$LINENO"; then :
7565 echo "*** The test program compiled, but did not run. This usually means"
7566 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7567 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7568 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7569 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7570 echo "*** is required on your system"
7571 echo "***"
7572 echo "*** If you have an old version installed, it is best to remove it, although"
7573 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7574 else
7575 echo "*** The test program failed to compile or link. See the file config.log for the"
7576 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7578 rm -f core conftest.err conftest.$ac_objext \
7579 conftest$ac_exeext conftest.$ac_ext
7580 CFLAGS="$ac_save_CFLAGS"
7581 LIBS="$ac_save_LIBS"
7584 GLIB_CFLAGS=""
7585 GLIB_LIBS=""
7586 GLIB_GENMARSHAL=""
7587 GOBJECT_QUERY=""
7588 GLIB_MKENUMS=""
7589 GLIB_COMPILE_RESOURCES=""
7590 as_fn_error $? "Test for GLIB failed. See the file 'INSTALL' for help." "$LINENO" 5
7598 rm -f conf.glibtest
7603 # Check whether --with-gtk was given.
7604 if test "${with_gtk+set}" = set; then :
7605 withval=$with_gtk; with_gtk=$withval
7606 else
7607 with_gtk=yes
7611 # Check whether --with-sdl was given.
7612 if test "${with_sdl+set}" = set; then :
7613 withval=$with_sdl; with_sdl=$withval
7614 else
7615 with_sdl=yes
7619 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
7620 as_fn_error $? "You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." "$LINENO" 5
7623 if test x"$with_gtk" = "xyes"; then
7624 GTK_TRUE=
7625 GTK_FALSE='#'
7626 else
7627 GTK_TRUE='#'
7628 GTK_FALSE=
7631 if test x"$with_gtk" = "xyes" ; then
7633 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
7635 # Check whether --enable-gtktest was given.
7636 if test "${enable_gtktest+set}" = set; then :
7637 enableval=$enable_gtktest;
7638 else
7639 enable_gtktest=yes
7643 pkg_config_args=gtk+-2.0
7644 for module in .
7646 case "$module" in
7647 gthread)
7648 pkg_config_args="$pkg_config_args gthread-2.0"
7650 esac
7651 done
7653 no_gtk=""
7655 # Extract the first word of "pkg-config", so it can be a program name with args.
7656 set dummy pkg-config; ac_word=$2
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7658 $as_echo_n "checking for $ac_word... " >&6; }
7659 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7660 $as_echo_n "(cached) " >&6
7661 else
7662 case $PKG_CONFIG in
7663 [\\/]* | ?:[\\/]*)
7664 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7668 for as_dir in $PATH
7670 IFS=$as_save_IFS
7671 test -z "$as_dir" && as_dir=.
7672 for ac_exec_ext in '' $ac_executable_extensions; do
7673 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7674 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7675 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7676 break 2
7678 done
7679 done
7680 IFS=$as_save_IFS
7682 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7684 esac
7686 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7687 if test -n "$PKG_CONFIG"; then
7688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7689 $as_echo "$PKG_CONFIG" >&6; }
7690 else
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7692 $as_echo "no" >&6; }
7697 if test x$PKG_CONFIG != xno ; then
7698 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7700 else
7701 echo "*** pkg-config too old; version 0.7 or better required."
7702 no_gtk=yes
7703 PKG_CONFIG=no
7705 else
7706 no_gtk=yes
7709 min_gtk_version=2.12.0
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7711 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7713 if test x$PKG_CONFIG != xno ; then
7714 ## don't try to run the test against uninstalled libtool libs
7715 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7716 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7717 enable_gtktest=no
7720 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7722 else
7723 no_gtk=yes
7727 if test x"$no_gtk" = x ; then
7728 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7729 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7730 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7731 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7732 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7733 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7734 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7735 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7736 if test "x$enable_gtktest" = "xyes" ; then
7737 ac_save_CFLAGS="$CFLAGS"
7738 ac_save_LIBS="$LIBS"
7739 CFLAGS="$CFLAGS $GTK_CFLAGS"
7740 LIBS="$GTK_LIBS $LIBS"
7741 rm -f conf.gtktest
7742 if test "$cross_compiling" = yes; then :
7743 echo $ac_n "cross compiling; assumed OK... $ac_c"
7744 else
7745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7746 /* end confdefs.h. */
7748 #include <gtk/gtk.h>
7749 #include <stdio.h>
7750 #include <stdlib.h>
7753 main ()
7755 int major, minor, micro;
7756 char *tmp_version;
7758 fclose (fopen ("conf.gtktest", "w"));
7760 /* HP/UX 9 (%@#!) writes to sscanf strings */
7761 tmp_version = g_strdup("$min_gtk_version");
7762 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7763 printf("%s, bad version string\n", "$min_gtk_version");
7764 exit(1);
7767 if ((gtk_major_version != $gtk_config_major_version) ||
7768 (gtk_minor_version != $gtk_config_minor_version) ||
7769 (gtk_micro_version != $gtk_config_micro_version))
7771 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7772 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7773 gtk_major_version, gtk_minor_version, gtk_micro_version);
7774 printf ("*** was found! If pkg-config was correct, then it is best\n");
7775 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7776 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7777 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7778 printf("*** required on your system.\n");
7779 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7780 printf("*** to point to the correct configuration files\n");
7782 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7783 (gtk_minor_version != GTK_MINOR_VERSION) ||
7784 (gtk_micro_version != GTK_MICRO_VERSION))
7786 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7787 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7788 printf("*** library (version %d.%d.%d)\n",
7789 gtk_major_version, gtk_minor_version, gtk_micro_version);
7791 else
7793 if ((gtk_major_version > major) ||
7794 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7795 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7797 return 0;
7799 else
7801 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7802 gtk_major_version, gtk_minor_version, gtk_micro_version);
7803 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7804 major, minor, micro);
7805 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7806 printf("***\n");
7807 printf("*** If you have already installed a sufficiently new version, this error\n");
7808 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7809 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7810 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7811 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7812 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7813 printf("*** so that the correct libraries are found at run-time))\n");
7816 return 1;
7819 _ACEOF
7820 if ac_fn_c_try_run "$LINENO"; then :
7822 else
7823 no_gtk=yes
7825 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7826 conftest.$ac_objext conftest.beam conftest.$ac_ext
7829 CFLAGS="$ac_save_CFLAGS"
7830 LIBS="$ac_save_LIBS"
7833 if test "x$no_gtk" = x ; then
7834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7835 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7837 else
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7839 $as_echo "no" >&6; }
7840 if test "$PKG_CONFIG" = "no" ; then
7841 echo "*** A new enough version of pkg-config was not found."
7842 echo "*** See http://pkgconfig.sourceforge.net"
7843 else
7844 if test -f conf.gtktest ; then
7846 else
7847 echo "*** Could not run GTK+ test program, checking why..."
7848 ac_save_CFLAGS="$CFLAGS"
7849 ac_save_LIBS="$LIBS"
7850 CFLAGS="$CFLAGS $GTK_CFLAGS"
7851 LIBS="$LIBS $GTK_LIBS"
7852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7853 /* end confdefs.h. */
7855 #include <gtk/gtk.h>
7856 #include <stdio.h>
7859 main ()
7861 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
7863 return 0;
7865 _ACEOF
7866 if ac_fn_c_try_link "$LINENO"; then :
7867 echo "*** The test program compiled, but did not run. This usually means"
7868 echo "*** that the run-time linker is not finding GTK+ or finding the wrong"
7869 echo "*** version of GTK+. If it is not finding GTK+, you'll need to set your"
7870 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7871 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7872 echo "*** is required on your system"
7873 echo "***"
7874 echo "*** If you have an old version installed, it is best to remove it, although"
7875 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7876 else
7877 echo "*** The test program failed to compile or link. See the file config.log for the"
7878 echo "*** exact error that occured. This usually means GTK+ is incorrectly installed."
7880 rm -f core conftest.err conftest.$ac_objext \
7881 conftest$ac_exeext conftest.$ac_ext
7882 CFLAGS="$ac_save_CFLAGS"
7883 LIBS="$ac_save_LIBS"
7886 GTK_CFLAGS=""
7887 GTK_LIBS=""
7888 as_fn_error $? "Test for GTK+ failed. See the file 'INSTALL' for help." "$LINENO" 5
7892 rm -f conf.gtktest
7894 else
7895 GTK_CFLAGS=""
7896 GTK_LIBS=""
7899 if test x"$with_sdl" = "xyes"; then
7900 SDL_TRUE=
7901 SDL_FALSE='#'
7902 else
7903 SDL_TRUE='#'
7904 SDL_FALSE=
7907 if test x"$with_sdl" = "xyes" ; then
7909 $as_echo "#define HAVE_SDL /**/" >>confdefs.h
7912 # Check whether --with-sdl-prefix was given.
7913 if test "${with_sdl_prefix+set}" = set; then :
7914 withval=$with_sdl_prefix; sdl_prefix="$withval"
7915 else
7916 sdl_prefix=""
7920 # Check whether --with-sdl-exec-prefix was given.
7921 if test "${with_sdl_exec_prefix+set}" = set; then :
7922 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7923 else
7924 sdl_exec_prefix=""
7927 # Check whether --enable-sdltest was given.
7928 if test "${enable_sdltest+set}" = set; then :
7929 enableval=$enable_sdltest;
7930 else
7931 enable_sdltest=yes
7935 if test x$sdl_exec_prefix != x ; then
7936 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7937 if test x${SDL_CONFIG+set} != xset ; then
7938 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7941 if test x$sdl_prefix != x ; then
7942 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7943 if test x${SDL_CONFIG+set} != xset ; then
7944 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7948 as_save_PATH="$PATH"
7949 if test "x$prefix" != xNONE; then
7950 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7952 # Extract the first word of "sdl-config", so it can be a program name with args.
7953 set dummy sdl-config; ac_word=$2
7954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7955 $as_echo_n "checking for $ac_word... " >&6; }
7956 if ${ac_cv_path_SDL_CONFIG+:} false; then :
7957 $as_echo_n "(cached) " >&6
7958 else
7959 case $SDL_CONFIG in
7960 [\\/]* | ?:[\\/]*)
7961 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7965 for as_dir in $PATH
7967 IFS=$as_save_IFS
7968 test -z "$as_dir" && as_dir=.
7969 for ac_exec_ext in '' $ac_executable_extensions; do
7970 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7971 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7972 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7973 break 2
7975 done
7976 done
7977 IFS=$as_save_IFS
7979 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7981 esac
7983 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7984 if test -n "$SDL_CONFIG"; then
7985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7986 $as_echo "$SDL_CONFIG" >&6; }
7987 else
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7989 $as_echo "no" >&6; }
7993 PATH="$as_save_PATH"
7994 min_sdl_version=1.2.0
7995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7996 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7997 no_sdl=""
7998 if test "$SDL_CONFIG" = "no" ; then
7999 no_sdl=yes
8000 else
8001 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
8002 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
8004 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
8005 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
8006 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
8007 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
8008 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
8009 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
8010 if test "x$enable_sdltest" = "xyes" ; then
8011 ac_save_CFLAGS="$CFLAGS"
8012 ac_save_CXXFLAGS="$CXXFLAGS"
8013 ac_save_LIBS="$LIBS"
8014 CFLAGS="$CFLAGS $SDL_CFLAGS"
8015 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8016 LIBS="$LIBS $SDL_LIBS"
8017 rm -f conf.sdltest
8018 if test "$cross_compiling" = yes; then :
8019 echo $ac_n "cross compiling; assumed OK... $ac_c"
8020 else
8021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8022 /* end confdefs.h. */
8024 #include <stdio.h>
8025 #include <stdlib.h>
8026 #include <string.h>
8027 #include "SDL.h"
8029 char*
8030 my_strdup (char *str)
8032 char *new_str;
8034 if (str)
8036 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8037 strcpy (new_str, str);
8039 else
8040 new_str = NULL;
8042 return new_str;
8045 int main (int argc, char *argv[])
8047 int major, minor, micro;
8048 char *tmp_version;
8050 /* This hangs on some systems (?)
8051 system ("touch conf.sdltest");
8053 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8055 /* HP/UX 9 (%@#!) writes to sscanf strings */
8056 tmp_version = my_strdup("$min_sdl_version");
8057 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8058 printf("%s, bad version string\n", "$min_sdl_version");
8059 exit(1);
8062 if (($sdl_major_version > major) ||
8063 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8064 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8066 return 0;
8068 else
8070 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8071 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8072 printf("*** best to upgrade to the required version.\n");
8073 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8074 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8075 printf("*** config.cache before re-running configure\n");
8076 return 1;
8081 _ACEOF
8082 if ac_fn_c_try_run "$LINENO"; then :
8084 else
8085 no_sdl=yes
8087 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8088 conftest.$ac_objext conftest.beam conftest.$ac_ext
8091 CFLAGS="$ac_save_CFLAGS"
8092 CXXFLAGS="$ac_save_CXXFLAGS"
8093 LIBS="$ac_save_LIBS"
8096 if test "x$no_sdl" = x ; then
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8098 $as_echo "yes" >&6; }
8100 else
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8102 $as_echo "no" >&6; }
8103 if test "$SDL_CONFIG" = "no" ; then
8104 echo "*** The sdl-config script installed by SDL could not be found"
8105 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8106 echo "*** your path, or set the SDL_CONFIG environment variable to the"
8107 echo "*** full path to sdl-config."
8108 else
8109 if test -f conf.sdltest ; then
8111 else
8112 echo "*** Could not run SDL test program, checking why..."
8113 CFLAGS="$CFLAGS $SDL_CFLAGS"
8114 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8115 LIBS="$LIBS $SDL_LIBS"
8116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8117 /* end confdefs.h. */
8119 #include <stdio.h>
8120 #include "SDL.h"
8122 int main(int argc, char *argv[])
8123 { return 0; }
8124 #undef main
8125 #define main K_and_R_C_main
8128 main ()
8130 return 0;
8132 return 0;
8134 _ACEOF
8135 if ac_fn_c_try_link "$LINENO"; then :
8136 echo "*** The test program compiled, but did not run. This usually means"
8137 echo "*** that the run-time linker is not finding SDL or finding the wrong"
8138 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8139 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8140 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8141 echo "*** is required on your system"
8142 echo "***"
8143 echo "*** If you have an old version installed, it is best to remove it, although"
8144 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8145 else
8146 echo "*** The test program failed to compile or link. See the file config.log for the"
8147 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8148 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8149 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8151 rm -f core conftest.err conftest.$ac_objext \
8152 conftest$ac_exeext conftest.$ac_ext
8153 CFLAGS="$ac_save_CFLAGS"
8154 CXXFLAGS="$ac_save_CXXFLAGS"
8155 LIBS="$ac_save_LIBS"
8158 SDL_CFLAGS=""
8159 SDL_LIBS=""
8160 as_fn_error $? "Test for SDL failed. See the file 'INSTALL' for help." "$LINENO" 5
8164 rm -f conf.sdltest
8166 SDL_LIBS="$SDL_LIBS -lSDL_mixer -lSDL_image"
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
8168 $as_echo_n "checking for X... " >&6; }
8171 # Check whether --with-x was given.
8172 if test "${with_x+set}" = set; then :
8173 withval=$with_x;
8176 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8177 if test "x$with_x" = xno; then
8178 # The user explicitly disabled X.
8179 have_x=disabled
8180 else
8181 case $x_includes,$x_libraries in #(
8182 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
8183 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
8184 $as_echo_n "(cached) " >&6
8185 else
8186 # One or both of the vars are not set, and there is no cached value.
8187 ac_x_includes=no ac_x_libraries=no
8188 rm -f -r conftest.dir
8189 if mkdir conftest.dir; then
8190 cd conftest.dir
8191 cat >Imakefile <<'_ACEOF'
8192 incroot:
8193 @echo incroot='${INCROOT}'
8194 usrlibdir:
8195 @echo usrlibdir='${USRLIBDIR}'
8196 libdir:
8197 @echo libdir='${LIBDIR}'
8198 _ACEOF
8199 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8200 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8201 for ac_var in incroot usrlibdir libdir; do
8202 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8203 done
8204 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8205 for ac_extension in a so sl dylib la dll; do
8206 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8207 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8208 ac_im_usrlibdir=$ac_im_libdir; break
8210 done
8211 # Screen out bogus values from the imake configuration. They are
8212 # bogus both because they are the default anyway, and because
8213 # using them would break gcc on systems where it needs fixed includes.
8214 case $ac_im_incroot in
8215 /usr/include) ac_x_includes= ;;
8216 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8217 esac
8218 case $ac_im_usrlibdir in
8219 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
8220 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8221 esac
8223 cd ..
8224 rm -f -r conftest.dir
8227 # Standard set of common directories for X headers.
8228 # Check X11 before X11Rn because it is often a symlink to the current release.
8229 ac_x_header_dirs='
8230 /usr/X11/include
8231 /usr/X11R7/include
8232 /usr/X11R6/include
8233 /usr/X11R5/include
8234 /usr/X11R4/include
8236 /usr/include/X11
8237 /usr/include/X11R7
8238 /usr/include/X11R6
8239 /usr/include/X11R5
8240 /usr/include/X11R4
8242 /usr/local/X11/include
8243 /usr/local/X11R7/include
8244 /usr/local/X11R6/include
8245 /usr/local/X11R5/include
8246 /usr/local/X11R4/include
8248 /usr/local/include/X11
8249 /usr/local/include/X11R7
8250 /usr/local/include/X11R6
8251 /usr/local/include/X11R5
8252 /usr/local/include/X11R4
8254 /usr/X386/include
8255 /usr/x386/include
8256 /usr/XFree86/include/X11
8258 /usr/include
8259 /usr/local/include
8260 /usr/unsupported/include
8261 /usr/athena/include
8262 /usr/local/x11r5/include
8263 /usr/lpp/Xamples/include
8265 /usr/openwin/include
8266 /usr/openwin/share/include'
8268 if test "$ac_x_includes" = no; then
8269 # Guess where to find include files, by looking for Xlib.h.
8270 # First, try using that file with no special directory specified.
8271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8272 /* end confdefs.h. */
8273 #include <X11/Xlib.h>
8274 _ACEOF
8275 if ac_fn_c_try_cpp "$LINENO"; then :
8276 # We can compile using X headers with no special include directory.
8277 ac_x_includes=
8278 else
8279 for ac_dir in $ac_x_header_dirs; do
8280 if test -r "$ac_dir/X11/Xlib.h"; then
8281 ac_x_includes=$ac_dir
8282 break
8284 done
8286 rm -f conftest.err conftest.i conftest.$ac_ext
8287 fi # $ac_x_includes = no
8289 if test "$ac_x_libraries" = no; then
8290 # Check for the libraries.
8291 # See if we find them without any special options.
8292 # Don't add to $LIBS permanently.
8293 ac_save_LIBS=$LIBS
8294 LIBS="-lX11 $LIBS"
8295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8296 /* end confdefs.h. */
8297 #include <X11/Xlib.h>
8299 main ()
8301 XrmInitialize ()
8303 return 0;
8305 _ACEOF
8306 if ac_fn_c_try_link "$LINENO"; then :
8307 LIBS=$ac_save_LIBS
8308 # We can link X programs with no special library path.
8309 ac_x_libraries=
8310 else
8311 LIBS=$ac_save_LIBS
8312 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8314 # Don't even attempt the hair of trying to link an X program!
8315 for ac_extension in a so sl dylib la dll; do
8316 if test -r "$ac_dir/libX11.$ac_extension"; then
8317 ac_x_libraries=$ac_dir
8318 break 2
8320 done
8321 done
8323 rm -f core conftest.err conftest.$ac_objext \
8324 conftest$ac_exeext conftest.$ac_ext
8325 fi # $ac_x_libraries = no
8327 case $ac_x_includes,$ac_x_libraries in #(
8328 no,* | *,no | *\'*)
8329 # Didn't find X, or a directory has "'" in its name.
8330 ac_cv_have_x="have_x=no";; #(
8332 # Record where we found X for the cache.
8333 ac_cv_have_x="have_x=yes\
8334 ac_x_includes='$ac_x_includes'\
8335 ac_x_libraries='$ac_x_libraries'"
8336 esac
8338 ;; #(
8339 *) have_x=yes;;
8340 esac
8341 eval "$ac_cv_have_x"
8342 fi # $with_x != no
8344 if test "$have_x" != yes; then
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8346 $as_echo "$have_x" >&6; }
8347 no_x=yes
8348 else
8349 # If each of the values was on the command line, it overrides each guess.
8350 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8351 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8352 # Update the cache value to reflect the command line values.
8353 ac_cv_have_x="have_x=yes\
8354 ac_x_includes='$x_includes'\
8355 ac_x_libraries='$x_libraries'"
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8357 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8361 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8362 if ${ac_cv_path_SED+:} false; then :
8363 $as_echo_n "(cached) " >&6
8364 else
8365 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8366 for ac_i in 1 2 3 4 5 6 7; do
8367 ac_script="$ac_script$as_nl$ac_script"
8368 done
8369 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8370 { ac_script=; unset ac_script;}
8371 if test -z "$SED"; then
8372 ac_path_SED_found=false
8373 # Loop through the user's path and test for each of PROGNAME-LIST
8374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8375 for as_dir in $PATH
8377 IFS=$as_save_IFS
8378 test -z "$as_dir" && as_dir=.
8379 for ac_prog in sed gsed; do
8380 for ac_exec_ext in '' $ac_executable_extensions; do
8381 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8382 as_fn_executable_p "$ac_path_SED" || continue
8383 # Check for GNU ac_path_SED and select it if it is found.
8384 # Check for GNU $ac_path_SED
8385 case `"$ac_path_SED" --version 2>&1` in
8386 *GNU*)
8387 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8389 ac_count=0
8390 $as_echo_n 0123456789 >"conftest.in"
8391 while :
8393 cat "conftest.in" "conftest.in" >"conftest.tmp"
8394 mv "conftest.tmp" "conftest.in"
8395 cp "conftest.in" "conftest.nl"
8396 $as_echo '' >> "conftest.nl"
8397 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8398 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8399 as_fn_arith $ac_count + 1 && ac_count=$as_val
8400 if test $ac_count -gt ${ac_path_SED_max-0}; then
8401 # Best one so far, save it but keep looking for a better one
8402 ac_cv_path_SED="$ac_path_SED"
8403 ac_path_SED_max=$ac_count
8405 # 10*(2^10) chars as input seems more than enough
8406 test $ac_count -gt 10 && break
8407 done
8408 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8409 esac
8411 $ac_path_SED_found && break 3
8412 done
8413 done
8414 done
8415 IFS=$as_save_IFS
8416 if test -z "$ac_cv_path_SED"; then
8417 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8419 else
8420 ac_cv_path_SED=$SED
8424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8425 $as_echo "$ac_cv_path_SED" >&6; }
8426 SED="$ac_cv_path_SED"
8427 rm -f conftest.sed
8430 ac_ext=c
8431 ac_cpp='$CPP $CPPFLAGS'
8432 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8433 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8434 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8437 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8438 if ${ax_cv_c_compiler_ms+:} false; then :
8439 $as_echo_n "(cached) " >&6
8440 else
8441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8442 /* end confdefs.h. */
8445 main ()
8447 #ifndef _MSC_VER
8448 choke me
8449 #endif
8452 return 0;
8454 _ACEOF
8455 if ac_fn_c_try_compile "$LINENO"; then :
8456 ax_compiler_ms=yes
8457 else
8458 ax_compiler_ms=no
8460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8461 ax_cv_c_compiler_ms=$ax_compiler_ms
8464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8465 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8468 # Use x_includes and x_libraries if they have been set (presumably by
8469 # AC_PATH_X).
8471 if test X$no_x != Xyes -a -n "$x_includes"; then :
8472 GL_CFLAGS="-I$x_includes $GL_CFLAGS"
8475 for ac_header in windows.h
8476 do :
8477 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8478 if test "x$ac_cv_header_windows_h" = xyes; then :
8479 cat >>confdefs.h <<_ACEOF
8480 #define HAVE_WINDOWS_H 1
8481 _ACEOF
8485 done
8488 ax_save_CPPFLAGS=$CPPFLAGS
8489 CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
8490 for ac_header in GL/gl.h OpenGL/gl.h
8491 do :
8492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8493 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8494 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8495 # include <windows.h>
8496 # endif
8499 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8500 cat >>confdefs.h <<_ACEOF
8501 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8502 _ACEOF
8506 done
8508 CPPFLAGS=$ax_save_CPPFLAGS
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
8515 $as_echo_n "checking for OpenGL library... " >&6; }
8516 if ${ax_cv_check_gl_libgl+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 ax_cv_check_gl_libgl=no
8520 case $host_cpu in
8521 x86_64) ax_check_gl_libdir=lib64 ;;
8522 *) ax_check_gl_libdir=lib ;;
8523 esac
8524 ax_save_CPPFLAGS=$CPPFLAGS
8525 CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
8526 ax_save_LDFLAGS=$LDFLAGS
8527 if test X$no_x != Xyes -a -n "$x_libraries"; then :
8528 LDFLAGS="$LDFLAGS -L$x_libraries"
8530 ax_save_LIBS=$LIBS
8531 ax_check_libs="-lopengl32 -lGL"
8532 for ax_lib in $ax_check_libs; do
8533 if test X$ax_compiler_ms = Xyes; then :
8534 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8535 else
8536 ax_try_lib=$ax_lib
8538 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
8539 LIBS="$ax_try_lib $ax_save_LIBS"
8540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8541 /* end confdefs.h. */
8543 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8544 # include <windows.h>
8545 # endif
8546 # ifdef HAVE_GL_GL_H
8547 # include <GL/gl.h>
8548 # elif defined(HAVE_OPENGL_GL_H)
8549 # include <OpenGL/gl.h>
8550 # else
8551 # error no gl.h
8552 # endif
8554 main ()
8556 glBegin(0)
8558 return 0;
8560 _ACEOF
8561 if ac_fn_c_try_link "$LINENO"; then :
8562 ax_cv_check_gl_libgl=$ax_try_lib; break
8563 else
8564 ax_check_gl_dylib_flag='-dylib_file /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib'
8565 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
8566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8567 /* end confdefs.h. */
8569 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8570 # include <windows.h>
8571 # endif
8572 # ifdef HAVE_GL_GL_H
8573 # include <GL/gl.h>
8574 # elif defined(HAVE_OPENGL_GL_H)
8575 # include <OpenGL/gl.h>
8576 # else
8577 # error no gl.h
8578 # endif
8580 main ()
8582 glBegin(0)
8584 return 0;
8586 _ACEOF
8587 if ac_fn_c_try_link "$LINENO"; then :
8588 ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
8590 rm -f core conftest.err conftest.$ac_objext \
8591 conftest$ac_exeext conftest.$ac_ext
8593 rm -f core conftest.err conftest.$ac_objext \
8594 conftest$ac_exeext conftest.$ac_ext
8595 done
8598 # If no_x is "yes", we don't want to wind up using a libGL that is
8599 # linked with X11. Test to see if the found libGL includes GLX
8600 # functions. If it does and no_x is "yes", we want to reset
8601 # ax_cv_check_gl_libgl back to "no".
8603 # Note that LDFLAGS and LIBS should still have whatever values they
8604 # had when we broke out of the test loop above; use that.
8606 if test "X$ax_cv_check_gl_libgl" != Xno; then :
8607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8608 /* end confdefs.h. */
8610 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8611 # include <windows.h>
8612 # endif
8613 # ifdef HAVE_GL_GL_H
8614 # include <GL/gl.h>
8615 # elif defined(HAVE_OPENGL_GL_H)
8616 # include <OpenGL/gl.h>
8617 # else
8618 # error no gl.h
8619 # endif
8621 main ()
8623 glXQueryVersion(0, 0, 0)
8625 return 0;
8627 _ACEOF
8628 if ac_fn_c_try_link "$LINENO"; then :
8629 if test X$no_x = Xyes; then :
8630 ax_cv_check_gl_libgl=no
8633 rm -f core conftest.err conftest.$ac_objext \
8634 conftest$ac_exeext conftest.$ac_ext
8637 LIBS=$ax_save_LIBS
8638 if test "X$ax_cv_check_gl_libgl" = Xno -a X$no_x = Xyes; then :
8639 LDFLAGS="$ax_save_LDFLAGS -framework OpenGL -framework Cocoa"
8640 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8641 /* end confdefs.h. */
8643 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8644 # include <windows.h>
8645 # endif
8646 # ifdef HAVE_GL_GL_H
8647 # include <GL/gl.h>
8648 # elif defined(HAVE_OPENGL_GL_H)
8649 # include <OpenGL/gl.h>
8650 # else
8651 # error no gl.h
8652 # endif
8654 main ()
8656 glBegin(0)
8658 return 0;
8660 _ACEOF
8661 if ac_fn_c_try_link "$LINENO"; then :
8662 ax_cv_check_gl_libgl='-framework OpenGL -framework Cocoa'
8664 rm -f core conftest.err conftest.$ac_objext \
8665 conftest$ac_exeext conftest.$ac_ext
8668 LDFLAGS=$ax_save_LDFLAGS
8669 CPPFLAGS=$ax_save_CPPFLAGS
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
8672 $as_echo "$ax_cv_check_gl_libgl" >&6; }
8674 if test "X$ax_cv_check_gl_libgl" = Xno; then :
8675 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
8676 else
8677 GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
8679 ac_ext=c
8680 ac_cpp='$CPP $CPPFLAGS'
8681 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8682 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8683 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8689 else
8690 GL_CFLAGS=""
8691 GL_LIBS=""
8692 SDL_CFLAGS=""
8693 SDL_LIBS=""
8698 pkg_failed=no
8699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
8700 $as_echo_n "checking for LIBPNG... " >&6; }
8702 if test -n "$LIBPNG_CFLAGS"; then
8703 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8704 elif test -n "$PKG_CONFIG"; then
8705 if test -n "$PKG_CONFIG" && \
8706 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8707 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8708 ac_status=$?
8709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8710 test $ac_status = 0; }; then
8711 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
8712 test "x$?" != "x0" && pkg_failed=yes
8713 else
8714 pkg_failed=yes
8716 else
8717 pkg_failed=untried
8719 if test -n "$LIBPNG_LIBS"; then
8720 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8721 elif test -n "$PKG_CONFIG"; then
8722 if test -n "$PKG_CONFIG" && \
8723 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8724 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8725 ac_status=$?
8726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8727 test $ac_status = 0; }; then
8728 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
8729 test "x$?" != "x0" && pkg_failed=yes
8730 else
8731 pkg_failed=yes
8733 else
8734 pkg_failed=untried
8739 if test $pkg_failed = yes; then
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8741 $as_echo "no" >&6; }
8743 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8744 _pkg_short_errors_supported=yes
8745 else
8746 _pkg_short_errors_supported=no
8748 if test $_pkg_short_errors_supported = yes; then
8749 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
8750 else
8751 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
8753 # Put the nasty error message in config.log where it belongs
8754 echo "$LIBPNG_PKG_ERRORS" >&5
8756 as_fn_error $? "Package requirements (libpng) were not met:
8758 $LIBPNG_PKG_ERRORS
8760 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8761 installed software in a non-standard prefix.
8763 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8764 and LIBPNG_LIBS to avoid the need to call pkg-config.
8765 See the pkg-config man page for more details." "$LINENO" 5
8766 elif test $pkg_failed = untried; then
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8768 $as_echo "no" >&6; }
8769 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8770 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8771 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8772 is in your PATH or set the PKG_CONFIG environment variable to the full
8773 path to pkg-config.
8775 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8776 and LIBPNG_LIBS to avoid the need to call pkg-config.
8777 See the pkg-config man page for more details.
8779 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8780 See \`config.log' for more details" "$LINENO" 5; }
8781 else
8782 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8783 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8785 $as_echo "yes" >&6; }
8787 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
8792 ac_config_files="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile docs/Makefile sound/Makefile music/Makefile shaders/Makefile"
8795 cat >confcache <<\_ACEOF
8796 # This file is a shell script that caches the results of configure
8797 # tests run on this system so they can be shared between configure
8798 # scripts and configure runs, see configure's option --config-cache.
8799 # It is not useful on other systems. If it contains results you don't
8800 # want to keep, you may remove or edit it.
8802 # config.status only pays attention to the cache file if you give it
8803 # the --recheck option to rerun configure.
8805 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8806 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8807 # following values.
8809 _ACEOF
8811 # The following way of writing the cache mishandles newlines in values,
8812 # but we know of no workaround that is simple, portable, and efficient.
8813 # So, we kill variables containing newlines.
8814 # Ultrix sh set writes to stderr and can't be redirected directly,
8815 # and sets the high bit in the cache file unless we assign to the vars.
8817 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8818 eval ac_val=\$$ac_var
8819 case $ac_val in #(
8820 *${as_nl}*)
8821 case $ac_var in #(
8822 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8823 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8824 esac
8825 case $ac_var in #(
8826 _ | IFS | as_nl) ;; #(
8827 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8828 *) { eval $ac_var=; unset $ac_var;} ;;
8829 esac ;;
8830 esac
8831 done
8833 (set) 2>&1 |
8834 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8835 *${as_nl}ac_space=\ *)
8836 # `set' does not quote correctly, so add quotes: double-quote
8837 # substitution turns \\\\ into \\, and sed turns \\ into \.
8838 sed -n \
8839 "s/'/'\\\\''/g;
8840 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8841 ;; #(
8843 # `set' quotes correctly as required by POSIX, so do not add quotes.
8844 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8846 esac |
8847 sort
8849 sed '
8850 /^ac_cv_env_/b end
8851 t clear
8852 :clear
8853 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8854 t end
8855 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8856 :end' >>confcache
8857 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8858 if test -w "$cache_file"; then
8859 if test "x$cache_file" != "x/dev/null"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8861 $as_echo "$as_me: updating cache $cache_file" >&6;}
8862 if test ! -f "$cache_file" || test -h "$cache_file"; then
8863 cat confcache >"$cache_file"
8864 else
8865 case $cache_file in #(
8866 */* | ?:*)
8867 mv -f confcache "$cache_file"$$ &&
8868 mv -f "$cache_file"$$ "$cache_file" ;; #(
8870 mv -f confcache "$cache_file" ;;
8871 esac
8874 else
8875 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8876 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8879 rm -f confcache
8881 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8882 # Let make expand exec_prefix.
8883 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8885 DEFS=-DHAVE_CONFIG_H
8887 ac_libobjs=
8888 ac_ltlibobjs=
8890 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8891 # 1. Remove the extension, and $U if already installed.
8892 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8893 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8894 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8895 # will be set to the directory where LIBOBJS objects are built.
8896 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8897 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8898 done
8899 LIBOBJS=$ac_libobjs
8901 LTLIBOBJS=$ac_ltlibobjs
8904 if test -n "$EXEEXT"; then
8905 am__EXEEXT_TRUE=
8906 am__EXEEXT_FALSE='#'
8907 else
8908 am__EXEEXT_TRUE='#'
8909 am__EXEEXT_FALSE=
8912 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8913 as_fn_error $? "conditional \"AMDEP\" was never defined.
8914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8916 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8917 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8920 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8921 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8924 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8925 as_fn_error $? "conditional \"GTK\" was never defined.
8926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8928 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8929 as_fn_error $? "conditional \"SDL\" was never defined.
8930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8933 : "${CONFIG_STATUS=./config.status}"
8934 ac_write_fail=0
8935 ac_clean_files_save=$ac_clean_files
8936 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8938 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8939 as_write_fail=0
8940 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8941 #! $SHELL
8942 # Generated by $as_me.
8943 # Run this file to recreate the current configuration.
8944 # Compiler output produced by configure, useful for debugging
8945 # configure, is in config.log if it exists.
8947 debug=false
8948 ac_cs_recheck=false
8949 ac_cs_silent=false
8951 SHELL=\${CONFIG_SHELL-$SHELL}
8952 export SHELL
8953 _ASEOF
8954 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8955 ## -------------------- ##
8956 ## M4sh Initialization. ##
8957 ## -------------------- ##
8959 # Be more Bourne compatible
8960 DUALCASE=1; export DUALCASE # for MKS sh
8961 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8962 emulate sh
8963 NULLCMD=:
8964 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8965 # is contrary to our usage. Disable this feature.
8966 alias -g '${1+"$@"}'='"$@"'
8967 setopt NO_GLOB_SUBST
8968 else
8969 case `(set -o) 2>/dev/null` in #(
8970 *posix*) :
8971 set -o posix ;; #(
8972 *) :
8974 esac
8978 as_nl='
8980 export as_nl
8981 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8982 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8983 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8984 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8985 # Prefer a ksh shell builtin over an external printf program on Solaris,
8986 # but without wasting forks for bash or zsh.
8987 if test -z "$BASH_VERSION$ZSH_VERSION" \
8988 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8989 as_echo='print -r --'
8990 as_echo_n='print -rn --'
8991 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8992 as_echo='printf %s\n'
8993 as_echo_n='printf %s'
8994 else
8995 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8996 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8997 as_echo_n='/usr/ucb/echo -n'
8998 else
8999 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
9000 as_echo_n_body='eval
9001 arg=$1;
9002 case $arg in #(
9003 *"$as_nl"*)
9004 expr "X$arg" : "X\\(.*\\)$as_nl";
9005 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
9006 esac;
9007 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
9009 export as_echo_n_body
9010 as_echo_n='sh -c $as_echo_n_body as_echo'
9012 export as_echo_body
9013 as_echo='sh -c $as_echo_body as_echo'
9016 # The user is always right.
9017 if test "${PATH_SEPARATOR+set}" != set; then
9018 PATH_SEPARATOR=:
9019 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
9020 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
9021 PATH_SEPARATOR=';'
9026 # IFS
9027 # We need space, tab and new line, in precisely that order. Quoting is
9028 # there to prevent editors from complaining about space-tab.
9029 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
9030 # splitting by setting IFS to empty value.)
9031 IFS=" "" $as_nl"
9033 # Find who we are. Look in the path if we contain no directory separator.
9034 as_myself=
9035 case $0 in #((
9036 *[\\/]* ) as_myself=$0 ;;
9037 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9038 for as_dir in $PATH
9040 IFS=$as_save_IFS
9041 test -z "$as_dir" && as_dir=.
9042 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9043 done
9044 IFS=$as_save_IFS
9047 esac
9048 # We did not find ourselves, most probably we were run as `sh COMMAND'
9049 # in which case we are not to be found in the path.
9050 if test "x$as_myself" = x; then
9051 as_myself=$0
9053 if test ! -f "$as_myself"; then
9054 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9055 exit 1
9058 # Unset variables that we do not need and which cause bugs (e.g. in
9059 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
9060 # suppresses any "Segmentation fault" message there. '((' could
9061 # trigger a bug in pdksh 5.2.14.
9062 for as_var in BASH_ENV ENV MAIL MAILPATH
9063 do eval test x\${$as_var+set} = xset \
9064 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
9065 done
9066 PS1='$ '
9067 PS2='> '
9068 PS4='+ '
9070 # NLS nuisances.
9071 LC_ALL=C
9072 export LC_ALL
9073 LANGUAGE=C
9074 export LANGUAGE
9076 # CDPATH.
9077 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
9080 # as_fn_error STATUS ERROR [LINENO LOG_FD]
9081 # ----------------------------------------
9082 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
9083 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
9084 # script with STATUS, using 1 if that was 0.
9085 as_fn_error ()
9087 as_status=$1; test $as_status -eq 0 && as_status=1
9088 if test "$4"; then
9089 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
9090 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
9092 $as_echo "$as_me: error: $2" >&2
9093 as_fn_exit $as_status
9094 } # as_fn_error
9097 # as_fn_set_status STATUS
9098 # -----------------------
9099 # Set $? to STATUS, without forking.
9100 as_fn_set_status ()
9102 return $1
9103 } # as_fn_set_status
9105 # as_fn_exit STATUS
9106 # -----------------
9107 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
9108 as_fn_exit ()
9110 set +e
9111 as_fn_set_status $1
9112 exit $1
9113 } # as_fn_exit
9115 # as_fn_unset VAR
9116 # ---------------
9117 # Portably unset VAR.
9118 as_fn_unset ()
9120 { eval $1=; unset $1;}
9122 as_unset=as_fn_unset
9123 # as_fn_append VAR VALUE
9124 # ----------------------
9125 # Append the text in VALUE to the end of the definition contained in VAR. Take
9126 # advantage of any shell optimizations that allow amortized linear growth over
9127 # repeated appends, instead of the typical quadratic growth present in naive
9128 # implementations.
9129 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
9130 eval 'as_fn_append ()
9132 eval $1+=\$2
9134 else
9135 as_fn_append ()
9137 eval $1=\$$1\$2
9139 fi # as_fn_append
9141 # as_fn_arith ARG...
9142 # ------------------
9143 # Perform arithmetic evaluation on the ARGs, and store the result in the
9144 # global $as_val. Take advantage of shells that can avoid forks. The arguments
9145 # must be portable across $(()) and expr.
9146 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
9147 eval 'as_fn_arith ()
9149 as_val=$(( $* ))
9151 else
9152 as_fn_arith ()
9154 as_val=`expr "$@" || test $? -eq 1`
9156 fi # as_fn_arith
9159 if expr a : '\(a\)' >/dev/null 2>&1 &&
9160 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9161 as_expr=expr
9162 else
9163 as_expr=false
9166 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9167 as_basename=basename
9168 else
9169 as_basename=false
9172 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9173 as_dirname=dirname
9174 else
9175 as_dirname=false
9178 as_me=`$as_basename -- "$0" ||
9179 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9180 X"$0" : 'X\(//\)$' \| \
9181 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9182 $as_echo X/"$0" |
9183 sed '/^.*\/\([^/][^/]*\)\/*$/{
9184 s//\1/
9187 /^X\/\(\/\/\)$/{
9188 s//\1/
9191 /^X\/\(\/\).*/{
9192 s//\1/
9195 s/.*/./; q'`
9197 # Avoid depending upon Character Ranges.
9198 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
9199 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
9200 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
9201 as_cr_digits='0123456789'
9202 as_cr_alnum=$as_cr_Letters$as_cr_digits
9204 ECHO_C= ECHO_N= ECHO_T=
9205 case `echo -n x` in #(((((
9206 -n*)
9207 case `echo 'xy\c'` in
9208 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9209 xy) ECHO_C='\c';;
9210 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
9211 ECHO_T=' ';;
9212 esac;;
9214 ECHO_N='-n';;
9215 esac
9217 rm -f conf$$ conf$$.exe conf$$.file
9218 if test -d conf$$.dir; then
9219 rm -f conf$$.dir/conf$$.file
9220 else
9221 rm -f conf$$.dir
9222 mkdir conf$$.dir 2>/dev/null
9224 if (echo >conf$$.file) 2>/dev/null; then
9225 if ln -s conf$$.file conf$$ 2>/dev/null; then
9226 as_ln_s='ln -s'
9227 # ... but there are two gotchas:
9228 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9229 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9230 # In both cases, we have to default to `cp -pR'.
9231 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9232 as_ln_s='cp -pR'
9233 elif ln conf$$.file conf$$ 2>/dev/null; then
9234 as_ln_s=ln
9235 else
9236 as_ln_s='cp -pR'
9238 else
9239 as_ln_s='cp -pR'
9241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9242 rmdir conf$$.dir 2>/dev/null
9245 # as_fn_mkdir_p
9246 # -------------
9247 # Create "$as_dir" as a directory, including parents if necessary.
9248 as_fn_mkdir_p ()
9251 case $as_dir in #(
9252 -*) as_dir=./$as_dir;;
9253 esac
9254 test -d "$as_dir" || eval $as_mkdir_p || {
9255 as_dirs=
9256 while :; do
9257 case $as_dir in #(
9258 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
9259 *) as_qdir=$as_dir;;
9260 esac
9261 as_dirs="'$as_qdir' $as_dirs"
9262 as_dir=`$as_dirname -- "$as_dir" ||
9263 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9264 X"$as_dir" : 'X\(//\)[^/]' \| \
9265 X"$as_dir" : 'X\(//\)$' \| \
9266 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9267 $as_echo X"$as_dir" |
9268 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9269 s//\1/
9272 /^X\(\/\/\)[^/].*/{
9273 s//\1/
9276 /^X\(\/\/\)$/{
9277 s//\1/
9280 /^X\(\/\).*/{
9281 s//\1/
9284 s/.*/./; q'`
9285 test -d "$as_dir" && break
9286 done
9287 test -z "$as_dirs" || eval "mkdir $as_dirs"
9288 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
9291 } # as_fn_mkdir_p
9292 if mkdir -p . 2>/dev/null; then
9293 as_mkdir_p='mkdir -p "$as_dir"'
9294 else
9295 test -d ./-p && rmdir ./-p
9296 as_mkdir_p=false
9300 # as_fn_executable_p FILE
9301 # -----------------------
9302 # Test if FILE is an executable regular file.
9303 as_fn_executable_p ()
9305 test -f "$1" && test -x "$1"
9306 } # as_fn_executable_p
9307 as_test_x='test -x'
9308 as_executable_p=as_fn_executable_p
9310 # Sed expression to map a string onto a valid CPP name.
9311 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9313 # Sed expression to map a string onto a valid variable name.
9314 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9317 exec 6>&1
9318 ## ----------------------------------- ##
9319 ## Main body of $CONFIG_STATUS script. ##
9320 ## ----------------------------------- ##
9321 _ASEOF
9322 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
9324 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9325 # Save the log message, to keep $0 and so on meaningful, and to
9326 # report actual input values of CONFIG_FILES etc. instead of their
9327 # values after options handling.
9328 ac_log="
9329 This file was extended by GDash $as_me 20130623unstable, which was
9330 generated by GNU Autoconf 2.69. Invocation command line was
9332 CONFIG_FILES = $CONFIG_FILES
9333 CONFIG_HEADERS = $CONFIG_HEADERS
9334 CONFIG_LINKS = $CONFIG_LINKS
9335 CONFIG_COMMANDS = $CONFIG_COMMANDS
9336 $ $0 $@
9338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9341 _ACEOF
9343 case $ac_config_files in *"
9344 "*) set x $ac_config_files; shift; ac_config_files=$*;;
9345 esac
9347 case $ac_config_headers in *"
9348 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9349 esac
9352 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9353 # Files that config.status was made for.
9354 config_files="$ac_config_files"
9355 config_headers="$ac_config_headers"
9356 config_commands="$ac_config_commands"
9358 _ACEOF
9360 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9361 ac_cs_usage="\
9362 \`$as_me' instantiates files and other configuration actions
9363 from templates according to the current configuration. Unless the files
9364 and actions are specified as TAGs, all are instantiated by default.
9366 Usage: $0 [OPTION]... [TAG]...
9368 -h, --help print this help, then exit
9369 -V, --version print version number and configuration settings, then exit
9370 --config print configuration, then exit
9371 -q, --quiet, --silent
9372 do not print progress messages
9373 -d, --debug don't remove temporary files
9374 --recheck update $as_me by reconfiguring in the same conditions
9375 --file=FILE[:TEMPLATE]
9376 instantiate the configuration file FILE
9377 --header=FILE[:TEMPLATE]
9378 instantiate the configuration header FILE
9380 Configuration files:
9381 $config_files
9383 Configuration headers:
9384 $config_headers
9386 Configuration commands:
9387 $config_commands
9389 Report bugs to <http://code.google.com/p/gdash/>."
9391 _ACEOF
9392 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9393 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9394 ac_cs_version="\\
9395 GDash config.status 20130623unstable
9396 configured by $0, generated by GNU Autoconf 2.69,
9397 with options \\"\$ac_cs_config\\"
9399 Copyright (C) 2012 Free Software Foundation, Inc.
9400 This config.status script is free software; the Free Software Foundation
9401 gives unlimited permission to copy, distribute and modify it."
9403 ac_pwd='$ac_pwd'
9404 srcdir='$srcdir'
9405 INSTALL='$INSTALL'
9406 MKDIR_P='$MKDIR_P'
9407 AWK='$AWK'
9408 test -n "\$AWK" || AWK=awk
9409 _ACEOF
9411 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9412 # The default lists apply if the user does not specify any file.
9413 ac_need_defaults=:
9414 while test $# != 0
9416 case $1 in
9417 --*=?*)
9418 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9419 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9420 ac_shift=:
9422 --*=)
9423 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9424 ac_optarg=
9425 ac_shift=:
9428 ac_option=$1
9429 ac_optarg=$2
9430 ac_shift=shift
9432 esac
9434 case $ac_option in
9435 # Handling of the options.
9436 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9437 ac_cs_recheck=: ;;
9438 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9439 $as_echo "$ac_cs_version"; exit ;;
9440 --config | --confi | --conf | --con | --co | --c )
9441 $as_echo "$ac_cs_config"; exit ;;
9442 --debug | --debu | --deb | --de | --d | -d )
9443 debug=: ;;
9444 --file | --fil | --fi | --f )
9445 $ac_shift
9446 case $ac_optarg in
9447 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9448 '') as_fn_error $? "missing file argument" ;;
9449 esac
9450 as_fn_append CONFIG_FILES " '$ac_optarg'"
9451 ac_need_defaults=false;;
9452 --header | --heade | --head | --hea )
9453 $ac_shift
9454 case $ac_optarg in
9455 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9456 esac
9457 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9458 ac_need_defaults=false;;
9459 --he | --h)
9460 # Conflict between --help and --header
9461 as_fn_error $? "ambiguous option: \`$1'
9462 Try \`$0 --help' for more information.";;
9463 --help | --hel | -h )
9464 $as_echo "$ac_cs_usage"; exit ;;
9465 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9466 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9467 ac_cs_silent=: ;;
9469 # This is an error.
9470 -*) as_fn_error $? "unrecognized option: \`$1'
9471 Try \`$0 --help' for more information." ;;
9473 *) as_fn_append ac_config_targets " $1"
9474 ac_need_defaults=false ;;
9476 esac
9477 shift
9478 done
9480 ac_configure_extra_args=
9482 if $ac_cs_silent; then
9483 exec 6>/dev/null
9484 ac_configure_extra_args="$ac_configure_extra_args --silent"
9487 _ACEOF
9488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9489 if \$ac_cs_recheck; then
9490 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9491 shift
9492 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9493 CONFIG_SHELL='$SHELL'
9494 export CONFIG_SHELL
9495 exec "\$@"
9498 _ACEOF
9499 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9500 exec 5>>config.log
9502 echo
9503 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9504 ## Running $as_me. ##
9505 _ASBOX
9506 $as_echo "$ac_log"
9507 } >&5
9509 _ACEOF
9510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9512 # INIT-COMMANDS
9514 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9515 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9516 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9517 # from automake < 1.5.
9518 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9519 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9520 LINGUAS="${LINGUAS-%UNSET%}"
9523 _ACEOF
9525 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9527 # Handling of arguments.
9528 for ac_config_target in $ac_config_targets
9530 case $ac_config_target in
9531 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9532 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9533 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9534 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9535 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9536 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9537 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9538 "caves/Makefile") CONFIG_FILES="$CONFIG_FILES caves/Makefile" ;;
9539 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9540 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
9541 "music/Makefile") CONFIG_FILES="$CONFIG_FILES music/Makefile" ;;
9542 "shaders/Makefile") CONFIG_FILES="$CONFIG_FILES shaders/Makefile" ;;
9544 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9545 esac
9546 done
9549 # If the user did not use the arguments to specify the items to instantiate,
9550 # then the envvar interface is used. Set only those that are not.
9551 # We use the long form for the default assignment because of an extremely
9552 # bizarre bug on SunOS 4.1.3.
9553 if $ac_need_defaults; then
9554 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9555 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9556 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9559 # Have a temporary directory for convenience. Make it in the build tree
9560 # simply because there is no reason against having it here, and in addition,
9561 # creating and moving files from /tmp can sometimes cause problems.
9562 # Hook for its removal unless debugging.
9563 # Note that there is a small window in which the directory will not be cleaned:
9564 # after its creation but before its name has been assigned to `$tmp'.
9565 $debug ||
9567 tmp= ac_tmp=
9568 trap 'exit_status=$?
9569 : "${ac_tmp:=$tmp}"
9570 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9572 trap 'as_fn_exit 1' 1 2 13 15
9574 # Create a (secure) tmp directory for tmp files.
9577 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9578 test -d "$tmp"
9579 } ||
9581 tmp=./conf$$-$RANDOM
9582 (umask 077 && mkdir "$tmp")
9583 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9584 ac_tmp=$tmp
9586 # Set up the scripts for CONFIG_FILES section.
9587 # No need to generate them if there are no CONFIG_FILES.
9588 # This happens for instance with `./config.status config.h'.
9589 if test -n "$CONFIG_FILES"; then
9592 ac_cr=`echo X | tr X '\015'`
9593 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9594 # But we know of no other shell where ac_cr would be empty at this
9595 # point, so we can use a bashism as a fallback.
9596 if test "x$ac_cr" = x; then
9597 eval ac_cr=\$\'\\r\'
9599 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9600 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9601 ac_cs_awk_cr='\\r'
9602 else
9603 ac_cs_awk_cr=$ac_cr
9606 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9607 _ACEOF
9611 echo "cat >conf$$subs.awk <<_ACEOF" &&
9612 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9613 echo "_ACEOF"
9614 } >conf$$subs.sh ||
9615 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9616 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9617 ac_delim='%!_!# '
9618 for ac_last_try in false false false false false :; do
9619 . ./conf$$subs.sh ||
9620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9622 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9623 if test $ac_delim_n = $ac_delim_num; then
9624 break
9625 elif $ac_last_try; then
9626 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9627 else
9628 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9630 done
9631 rm -f conf$$subs.sh
9633 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9634 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9635 _ACEOF
9636 sed -n '
9638 s/^/S["/; s/!.*/"]=/
9641 s/^[^!]*!//
9642 :repl
9643 t repl
9644 s/'"$ac_delim"'$//
9645 t delim
9648 s/\(.\{148\}\)..*/\1/
9649 t more1
9650 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9653 b repl
9654 :more1
9655 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9658 s/.\{148\}//
9659 t nl
9660 :delim
9662 s/\(.\{148\}\)..*/\1/
9663 t more2
9664 s/["\\]/\\&/g; s/^/"/; s/$/"/
9667 :more2
9668 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9671 s/.\{148\}//
9672 t delim
9673 ' <conf$$subs.awk | sed '
9674 /^[^""]/{
9676 s/\n//
9678 ' >>$CONFIG_STATUS || ac_write_fail=1
9679 rm -f conf$$subs.awk
9680 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9681 _ACAWK
9682 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9683 for (key in S) S_is_set[key] = 1
9684 FS = "\a"
9688 line = $ 0
9689 nfields = split(line, field, "@")
9690 substed = 0
9691 len = length(field[1])
9692 for (i = 2; i < nfields; i++) {
9693 key = field[i]
9694 keylen = length(key)
9695 if (S_is_set[key]) {
9696 value = S[key]
9697 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9698 len += length(value) + length(field[++i])
9699 substed = 1
9700 } else
9701 len += 1 + keylen
9704 print line
9707 _ACAWK
9708 _ACEOF
9709 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9710 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9711 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9712 else
9714 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9715 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9716 _ACEOF
9718 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9719 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9720 # trailing colons and then remove the whole line if VPATH becomes empty
9721 # (actually we leave an empty line to preserve line numbers).
9722 if test "x$srcdir" = x.; then
9723 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9725 s///
9726 s/^/:/
9727 s/[ ]*$/:/
9728 s/:\$(srcdir):/:/g
9729 s/:\${srcdir}:/:/g
9730 s/:@srcdir@:/:/g
9731 s/^:*//
9732 s/:*$//
9734 s/\(=[ ]*\).*/\1/
9736 s/\n//
9737 s/^[^=]*=[ ]*$//
9741 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9742 fi # test -n "$CONFIG_FILES"
9744 # Set up the scripts for CONFIG_HEADERS section.
9745 # No need to generate them if there are no CONFIG_HEADERS.
9746 # This happens for instance with `./config.status Makefile'.
9747 if test -n "$CONFIG_HEADERS"; then
9748 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9749 BEGIN {
9750 _ACEOF
9752 # Transform confdefs.h into an awk script `defines.awk', embedded as
9753 # here-document in config.status, that substitutes the proper values into
9754 # config.h.in to produce config.h.
9756 # Create a delimiter string that does not exist in confdefs.h, to ease
9757 # handling of long lines.
9758 ac_delim='%!_!# '
9759 for ac_last_try in false false :; do
9760 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9761 if test -z "$ac_tt"; then
9762 break
9763 elif $ac_last_try; then
9764 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9765 else
9766 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9768 done
9770 # For the awk script, D is an array of macro values keyed by name,
9771 # likewise P contains macro parameters if any. Preserve backslash
9772 # newline sequences.
9774 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9775 sed -n '
9776 s/.\{148\}/&'"$ac_delim"'/g
9777 t rset
9778 :rset
9779 s/^[ ]*#[ ]*define[ ][ ]*/ /
9780 t def
9782 :def
9783 s/\\$//
9784 t bsnl
9785 s/["\\]/\\&/g
9786 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9787 D["\1"]=" \3"/p
9788 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9790 :bsnl
9791 s/["\\]/\\&/g
9792 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9793 D["\1"]=" \3\\\\\\n"\\/p
9794 t cont
9795 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9796 t cont
9798 :cont
9800 s/.\{148\}/&'"$ac_delim"'/g
9801 t clear
9802 :clear
9803 s/\\$//
9804 t bsnlc
9805 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9807 :bsnlc
9808 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9809 b cont
9810 ' <confdefs.h | sed '
9811 s/'"$ac_delim"'/"\\\
9812 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9814 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9815 for (key in D) D_is_set[key] = 1
9816 FS = "\a"
9818 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9819 line = \$ 0
9820 split(line, arg, " ")
9821 if (arg[1] == "#") {
9822 defundef = arg[2]
9823 mac1 = arg[3]
9824 } else {
9825 defundef = substr(arg[1], 2)
9826 mac1 = arg[2]
9828 split(mac1, mac2, "(") #)
9829 macro = mac2[1]
9830 prefix = substr(line, 1, index(line, defundef) - 1)
9831 if (D_is_set[macro]) {
9832 # Preserve the white space surrounding the "#".
9833 print prefix "define", macro P[macro] D[macro]
9834 next
9835 } else {
9836 # Replace #undef with comments. This is necessary, for example,
9837 # in the case of _POSIX_SOURCE, which is predefined and required
9838 # on some systems where configure will not decide to define it.
9839 if (defundef == "undef") {
9840 print "/*", prefix defundef, macro, "*/"
9841 next
9845 { print }
9846 _ACAWK
9847 _ACEOF
9848 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9849 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9850 fi # test -n "$CONFIG_HEADERS"
9853 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9854 shift
9855 for ac_tag
9857 case $ac_tag in
9858 :[FHLC]) ac_mode=$ac_tag; continue;;
9859 esac
9860 case $ac_mode$ac_tag in
9861 :[FHL]*:*);;
9862 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9863 :[FH]-) ac_tag=-:-;;
9864 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9865 esac
9866 ac_save_IFS=$IFS
9867 IFS=:
9868 set x $ac_tag
9869 IFS=$ac_save_IFS
9870 shift
9871 ac_file=$1
9872 shift
9874 case $ac_mode in
9875 :L) ac_source=$1;;
9876 :[FH])
9877 ac_file_inputs=
9878 for ac_f
9880 case $ac_f in
9881 -) ac_f="$ac_tmp/stdin";;
9882 *) # Look for the file first in the build tree, then in the source tree
9883 # (if the path is not absolute). The absolute path cannot be DOS-style,
9884 # because $ac_f cannot contain `:'.
9885 test -f "$ac_f" ||
9886 case $ac_f in
9887 [\\/$]*) false;;
9888 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9889 esac ||
9890 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9891 esac
9892 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9893 as_fn_append ac_file_inputs " '$ac_f'"
9894 done
9896 # Let's still pretend it is `configure' which instantiates (i.e., don't
9897 # use $as_me), people would be surprised to read:
9898 # /* config.h. Generated by config.status. */
9899 configure_input='Generated from '`
9900 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9901 `' by configure.'
9902 if test x"$ac_file" != x-; then
9903 configure_input="$ac_file. $configure_input"
9904 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9905 $as_echo "$as_me: creating $ac_file" >&6;}
9907 # Neutralize special characters interpreted by sed in replacement strings.
9908 case $configure_input in #(
9909 *\&* | *\|* | *\\* )
9910 ac_sed_conf_input=`$as_echo "$configure_input" |
9911 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9912 *) ac_sed_conf_input=$configure_input;;
9913 esac
9915 case $ac_tag in
9916 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9917 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9918 esac
9920 esac
9922 ac_dir=`$as_dirname -- "$ac_file" ||
9923 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9924 X"$ac_file" : 'X\(//\)[^/]' \| \
9925 X"$ac_file" : 'X\(//\)$' \| \
9926 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9927 $as_echo X"$ac_file" |
9928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9929 s//\1/
9932 /^X\(\/\/\)[^/].*/{
9933 s//\1/
9936 /^X\(\/\/\)$/{
9937 s//\1/
9940 /^X\(\/\).*/{
9941 s//\1/
9944 s/.*/./; q'`
9945 as_dir="$ac_dir"; as_fn_mkdir_p
9946 ac_builddir=.
9948 case "$ac_dir" in
9949 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9951 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9952 # A ".." for each directory in $ac_dir_suffix.
9953 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9954 case $ac_top_builddir_sub in
9955 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9956 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9957 esac ;;
9958 esac
9959 ac_abs_top_builddir=$ac_pwd
9960 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9961 # for backward compatibility:
9962 ac_top_builddir=$ac_top_build_prefix
9964 case $srcdir in
9965 .) # We are building in place.
9966 ac_srcdir=.
9967 ac_top_srcdir=$ac_top_builddir_sub
9968 ac_abs_top_srcdir=$ac_pwd ;;
9969 [\\/]* | ?:[\\/]* ) # Absolute name.
9970 ac_srcdir=$srcdir$ac_dir_suffix;
9971 ac_top_srcdir=$srcdir
9972 ac_abs_top_srcdir=$srcdir ;;
9973 *) # Relative name.
9974 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9975 ac_top_srcdir=$ac_top_build_prefix$srcdir
9976 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9977 esac
9978 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9981 case $ac_mode in
9984 # CONFIG_FILE
9987 case $INSTALL in
9988 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9989 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9990 esac
9991 ac_MKDIR_P=$MKDIR_P
9992 case $MKDIR_P in
9993 [\\/$]* | ?:[\\/]* ) ;;
9994 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9995 esac
9996 _ACEOF
9998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9999 # If the template does not know about datarootdir, expand it.
10000 # FIXME: This hack should be removed a few years after 2.60.
10001 ac_datarootdir_hack=; ac_datarootdir_seen=
10002 ac_sed_dataroot='
10003 /datarootdir/ {
10007 /@datadir@/p
10008 /@docdir@/p
10009 /@infodir@/p
10010 /@localedir@/p
10011 /@mandir@/p'
10012 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
10013 *datarootdir*) ac_datarootdir_seen=yes;;
10014 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
10016 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
10017 _ACEOF
10018 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10019 ac_datarootdir_hack='
10020 s&@datadir@&$datadir&g
10021 s&@docdir@&$docdir&g
10022 s&@infodir@&$infodir&g
10023 s&@localedir@&$localedir&g
10024 s&@mandir@&$mandir&g
10025 s&\\\${datarootdir}&$datarootdir&g' ;;
10026 esac
10027 _ACEOF
10029 # Neutralize VPATH when `$srcdir' = `.'.
10030 # Shell code in configure.ac might set extrasub.
10031 # FIXME: do we really want to maintain this feature?
10032 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
10033 ac_sed_extra="$ac_vpsub
10034 $extrasub
10035 _ACEOF
10036 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
10038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
10039 s|@configure_input@|$ac_sed_conf_input|;t t
10040 s&@top_builddir@&$ac_top_builddir_sub&;t t
10041 s&@top_build_prefix@&$ac_top_build_prefix&;t t
10042 s&@srcdir@&$ac_srcdir&;t t
10043 s&@abs_srcdir@&$ac_abs_srcdir&;t t
10044 s&@top_srcdir@&$ac_top_srcdir&;t t
10045 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
10046 s&@builddir@&$ac_builddir&;t t
10047 s&@abs_builddir@&$ac_abs_builddir&;t t
10048 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
10049 s&@INSTALL@&$ac_INSTALL&;t t
10050 s&@MKDIR_P@&$ac_MKDIR_P&;t t
10051 $ac_datarootdir_hack
10053 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
10054 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10056 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
10057 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
10058 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
10059 "$ac_tmp/out"`; test -z "$ac_out"; } &&
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10061 which seems to be undefined. Please make sure it is defined" >&5
10062 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
10063 which seems to be undefined. Please make sure it is defined" >&2;}
10065 rm -f "$ac_tmp/stdin"
10066 case $ac_file in
10067 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
10068 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
10069 esac \
10070 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10074 # CONFIG_HEADER
10076 if test x"$ac_file" != x-; then
10078 $as_echo "/* $configure_input */" \
10079 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
10080 } >"$ac_tmp/config.h" \
10081 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10082 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
10083 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
10084 $as_echo "$as_me: $ac_file is unchanged" >&6;}
10085 else
10086 rm -f "$ac_file"
10087 mv "$ac_tmp/config.h" "$ac_file" \
10088 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
10090 else
10091 $as_echo "/* $configure_input */" \
10092 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
10093 || as_fn_error $? "could not create -" "$LINENO" 5
10095 # Compute "$ac_file"'s index in $config_headers.
10096 _am_arg="$ac_file"
10097 _am_stamp_count=1
10098 for _am_header in $config_headers :; do
10099 case $_am_header in
10100 $_am_arg | $_am_arg:* )
10101 break ;;
10103 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10104 esac
10105 done
10106 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
10107 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10108 X"$_am_arg" : 'X\(//\)[^/]' \| \
10109 X"$_am_arg" : 'X\(//\)$' \| \
10110 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
10111 $as_echo X"$_am_arg" |
10112 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10113 s//\1/
10116 /^X\(\/\/\)[^/].*/{
10117 s//\1/
10120 /^X\(\/\/\)$/{
10121 s//\1/
10124 /^X\(\/\).*/{
10125 s//\1/
10128 s/.*/./; q'`/stamp-h$_am_stamp_count
10131 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
10132 $as_echo "$as_me: executing $ac_file commands" >&6;}
10134 esac
10137 case $ac_file$ac_mode in
10138 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
10139 # Autoconf 2.62 quotes --file arguments for eval, but not when files
10140 # are listed without --file. Let's play safe and only enable the eval
10141 # if we detect the quoting.
10142 case $CONFIG_FILES in
10143 *\'*) eval set x "$CONFIG_FILES" ;;
10144 *) set x $CONFIG_FILES ;;
10145 esac
10146 shift
10147 for mf
10149 # Strip MF so we end up with the name of the file.
10150 mf=`echo "$mf" | sed -e 's/:.*$//'`
10151 # Check whether this is an Automake generated Makefile or not.
10152 # We used to match only the files named `Makefile.in', but
10153 # some people rename them; so instead we look at the file content.
10154 # Grep'ing the first line is not enough: some people post-process
10155 # each Makefile.in and add a new line on top of each file to say so.
10156 # Grep'ing the whole file is not good either: AIX grep has a line
10157 # limit of 2048, but all sed's we know have understand at least 4000.
10158 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
10159 dirpart=`$as_dirname -- "$mf" ||
10160 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10161 X"$mf" : 'X\(//\)[^/]' \| \
10162 X"$mf" : 'X\(//\)$' \| \
10163 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10164 $as_echo X"$mf" |
10165 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10166 s//\1/
10169 /^X\(\/\/\)[^/].*/{
10170 s//\1/
10173 /^X\(\/\/\)$/{
10174 s//\1/
10177 /^X\(\/\).*/{
10178 s//\1/
10181 s/.*/./; q'`
10182 else
10183 continue
10185 # Extract the definition of DEPDIR, am__include, and am__quote
10186 # from the Makefile without running `make'.
10187 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10188 test -z "$DEPDIR" && continue
10189 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10190 test -z "am__include" && continue
10191 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10192 # When using ansi2knr, U may be empty or an underscore; expand it
10193 U=`sed -n 's/^U = //p' < "$mf"`
10194 # Find all dependency output files, they are included files with
10195 # $(DEPDIR) in their names. We invoke sed twice because it is the
10196 # simplest approach to changing $(DEPDIR) to its actual value in the
10197 # expansion.
10198 for file in `sed -n "
10199 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10200 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10201 # Make sure the directory exists.
10202 test -f "$dirpart/$file" && continue
10203 fdir=`$as_dirname -- "$file" ||
10204 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10205 X"$file" : 'X\(//\)[^/]' \| \
10206 X"$file" : 'X\(//\)$' \| \
10207 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10208 $as_echo X"$file" |
10209 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10210 s//\1/
10213 /^X\(\/\/\)[^/].*/{
10214 s//\1/
10217 /^X\(\/\/\)$/{
10218 s//\1/
10221 /^X\(\/\).*/{
10222 s//\1/
10225 s/.*/./; q'`
10226 as_dir=$dirpart/$fdir; as_fn_mkdir_p
10227 # echo "creating $dirpart/$file"
10228 echo '# dummy' > "$dirpart/$file"
10229 done
10230 done
10233 "po-directories":C)
10234 for ac_file in $CONFIG_FILES; do
10235 # Support "outfile[:infile[:infile...]]"
10236 case "$ac_file" in
10237 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
10238 esac
10239 # PO directories have a Makefile.in generated from Makefile.in.in.
10240 case "$ac_file" in */Makefile.in)
10241 # Adjust a relative srcdir.
10242 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
10243 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
10244 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
10245 # In autoconf-2.13 it is called $ac_given_srcdir.
10246 # In autoconf-2.50 it is called $srcdir.
10247 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
10248 case "$ac_given_srcdir" in
10249 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
10250 /*) top_srcdir="$ac_given_srcdir" ;;
10251 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
10252 esac
10253 # Treat a directory as a PO directory if and only if it has a
10254 # POTFILES.in file. This allows packages to have multiple PO
10255 # directories under different names or in different locations.
10256 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
10257 rm -f "$ac_dir/POTFILES"
10258 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
10259 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
10260 POMAKEFILEDEPS="POTFILES.in"
10261 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
10262 # on $ac_dir but don't depend on user-specified configuration
10263 # parameters.
10264 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
10265 # The LINGUAS file contains the set of available languages.
10266 if test -n "$OBSOLETE_ALL_LINGUAS"; then
10267 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
10269 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
10270 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10271 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
10272 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
10273 else
10274 # The set of available languages was given in configure.in.
10275 # Hide the ALL_LINGUAS assigment from automake < 1.5.
10276 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
10278 # Compute POFILES
10279 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
10280 # Compute UPDATEPOFILES
10281 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
10282 # Compute DUMMYPOFILES
10283 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
10284 # Compute GMOFILES
10285 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
10286 case "$ac_given_srcdir" in
10287 .) srcdirpre= ;;
10288 *) srcdirpre='$(srcdir)/' ;;
10289 esac
10290 POFILES=
10291 UPDATEPOFILES=
10292 DUMMYPOFILES=
10293 GMOFILES=
10294 for lang in $ALL_LINGUAS; do
10295 POFILES="$POFILES $srcdirpre$lang.po"
10296 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
10297 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
10298 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
10299 done
10300 # CATALOGS depends on both $ac_dir and the user's LINGUAS
10301 # environment variable.
10302 INST_LINGUAS=
10303 if test -n "$ALL_LINGUAS"; then
10304 for presentlang in $ALL_LINGUAS; do
10305 useit=no
10306 if test "%UNSET%" != "$LINGUAS"; then
10307 desiredlanguages="$LINGUAS"
10308 else
10309 desiredlanguages="$ALL_LINGUAS"
10311 for desiredlang in $desiredlanguages; do
10312 # Use the presentlang catalog if desiredlang is
10313 # a. equal to presentlang, or
10314 # b. a variant of presentlang (because in this case,
10315 # presentlang can be used as a fallback for messages
10316 # which are not translated in the desiredlang catalog).
10317 case "$desiredlang" in
10318 "$presentlang"*) useit=yes;;
10319 esac
10320 done
10321 if test $useit = yes; then
10322 INST_LINGUAS="$INST_LINGUAS $presentlang"
10324 done
10326 CATALOGS=
10327 if test -n "$INST_LINGUAS"; then
10328 for lang in $INST_LINGUAS; do
10329 CATALOGS="$CATALOGS $lang.gmo"
10330 done
10332 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
10333 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
10334 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
10335 if test -f "$f"; then
10336 case "$f" in
10337 *.orig | *.bak | *~) ;;
10338 *) cat "$f" >> "$ac_dir/Makefile" ;;
10339 esac
10341 done
10344 esac
10345 done ;;
10347 esac
10348 done # for ac_tag
10351 as_fn_exit 0
10352 _ACEOF
10353 ac_clean_files=$ac_clean_files_save
10355 test $ac_write_fail = 0 ||
10356 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10359 # configure is writing to config.log, and then calls config.status.
10360 # config.status does its own redirection, appending to config.log.
10361 # Unfortunately, on DOS this fails, as config.log is still kept open
10362 # by configure, so config.status won't be able to write to it; its
10363 # output is simply discarded. So we exec the FD to /dev/null,
10364 # effectively closing config.log, so it can be properly (re)opened and
10365 # appended to by config.status. When coming back to configure, we
10366 # need to make the FD available again.
10367 if test "$no_create" != yes; then
10368 ac_cs_success=:
10369 ac_config_status_args=
10370 test "$silent" = yes &&
10371 ac_config_status_args="$ac_config_status_args --quiet"
10372 exec 5>/dev/null
10373 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10374 exec 5>>config.log
10375 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10376 # would make configure fail if this is the last instruction.
10377 $ac_cs_success || as_fn_exit 1
10379 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10381 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}