README.md edited online with Bitbucket
[gdash.git] / configure
blob0ef88e78c3bd6ae249631a81b8ea937c4e4eefc0
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
633 XMKMF
634 SDL_LIBS
635 SDL_CFLAGS
636 SDL_CONFIG
637 SDL_FALSE
638 SDL_TRUE
639 GTK_LIBS
640 GTK_CFLAGS
641 GTK_FALSE
642 GTK_TRUE
643 GLIB_LIBS
644 GLIB_CFLAGS
645 LIBOBJS
646 POSUB
647 LTLIBINTL
648 LIBINTL
649 INTLLIBS
650 LTLIBICONV
651 LIBICONV
652 INTL_MACOSX_LIBS
653 host_os
654 host_vendor
655 host_cpu
656 host
657 build_os
658 build_vendor
659 build_cpu
660 build
661 XGETTEXT_EXTRA_OPTIONS
662 MSGMERGE
663 XGETTEXT_015
664 XGETTEXT
665 GMSGFMT_015
666 MSGFMT_015
667 GMSGFMT
668 MSGFMT
669 GETTEXT_MACRO_VERSION
670 USE_NLS
672 EGREP
673 GREP
675 PKG_CONFIG_LIBDIR
676 PKG_CONFIG_PATH
677 PKG_CONFIG
678 am__fastdepCXX_FALSE
679 am__fastdepCXX_TRUE
680 CXXDEPMODE
681 ac_ct_CXX
682 CXXFLAGS
684 am__fastdepCC_FALSE
685 am__fastdepCC_TRUE
686 CCDEPMODE
687 am__nodep
688 AMDEPBACKSLASH
689 AMDEP_FALSE
690 AMDEP_TRUE
691 am__quote
692 am__include
693 DEPDIR
694 OBJEXT
695 EXEEXT
696 ac_ct_CC
697 CPPFLAGS
698 LDFLAGS
699 CFLAGS
701 AM_BACKSLASH
702 AM_DEFAULT_VERBOSITY
703 AM_DEFAULT_V
704 AM_V
705 am__untar
706 am__tar
707 AMTAR
708 am__leading_dot
709 SET_MAKE
711 mkdir_p
712 MKDIR_P
713 INSTALL_STRIP_PROGRAM
714 STRIP
715 install_sh
716 MAKEINFO
717 AUTOHEADER
718 AUTOMAKE
719 AUTOCONF
720 ACLOCAL
721 VERSION
722 PACKAGE
723 CYGPATH_W
724 am__isrc
725 INSTALL_DATA
726 INSTALL_SCRIPT
727 INSTALL_PROGRAM
728 target_alias
729 host_alias
730 build_alias
731 LIBS
732 ECHO_T
733 ECHO_N
734 ECHO_C
735 DEFS
736 mandir
737 localedir
738 libdir
739 psdir
740 pdfdir
741 dvidir
742 htmldir
743 infodir
744 docdir
745 oldincludedir
746 includedir
747 localstatedir
748 sharedstatedir
749 sysconfdir
750 datadir
751 datarootdir
752 libexecdir
753 sbindir
754 bindir
755 program_transform_name
756 prefix
757 exec_prefix
758 PACKAGE_URL
759 PACKAGE_BUGREPORT
760 PACKAGE_STRING
761 PACKAGE_VERSION
762 PACKAGE_TARNAME
763 PACKAGE_NAME
764 PATH_SEPARATOR
765 SHELL'
766 ac_subst_files=''
767 ac_user_opts='
768 enable_option_checking
769 enable_silent_rules
770 enable_dependency_tracking
771 enable_nls
772 with_gnu_ld
773 enable_rpath
774 with_libiconv_prefix
775 with_libintl_prefix
776 with_gtk
777 with_sdl
778 with_sdl_prefix
779 with_sdl_exec_prefix
780 enable_sdltest
781 with_x
783 ac_precious_vars='build_alias
784 host_alias
785 target_alias
787 CFLAGS
788 LDFLAGS
789 LIBS
790 CPPFLAGS
792 CXXFLAGS
794 PKG_CONFIG
795 PKG_CONFIG_PATH
796 PKG_CONFIG_LIBDIR
798 GLIB_CFLAGS
799 GLIB_LIBS
800 GTK_CFLAGS
801 GTK_LIBS
802 XMKMF
803 LIBPNG_CFLAGS
804 LIBPNG_LIBS'
807 # Initialize some variables set by options.
808 ac_init_help=
809 ac_init_version=false
810 ac_unrecognized_opts=
811 ac_unrecognized_sep=
812 # The variables have the same names as the options, with
813 # dashes changed to underlines.
814 cache_file=/dev/null
815 exec_prefix=NONE
816 no_create=
817 no_recursion=
818 prefix=NONE
819 program_prefix=NONE
820 program_suffix=NONE
821 program_transform_name=s,x,x,
822 silent=
823 site=
824 srcdir=
825 verbose=
826 x_includes=NONE
827 x_libraries=NONE
829 # Installation directory options.
830 # These are left unexpanded so users can "make install exec_prefix=/foo"
831 # and all the variables that are supposed to be based on exec_prefix
832 # by default will actually change.
833 # Use braces instead of parens because sh, perl, etc. also accept them.
834 # (The list follows the same order as the GNU Coding Standards.)
835 bindir='${exec_prefix}/bin'
836 sbindir='${exec_prefix}/sbin'
837 libexecdir='${exec_prefix}/libexec'
838 datarootdir='${prefix}/share'
839 datadir='${datarootdir}'
840 sysconfdir='${prefix}/etc'
841 sharedstatedir='${prefix}/com'
842 localstatedir='${prefix}/var'
843 includedir='${prefix}/include'
844 oldincludedir='/usr/include'
845 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
846 infodir='${datarootdir}/info'
847 htmldir='${docdir}'
848 dvidir='${docdir}'
849 pdfdir='${docdir}'
850 psdir='${docdir}'
851 libdir='${exec_prefix}/lib'
852 localedir='${datarootdir}/locale'
853 mandir='${datarootdir}/man'
855 ac_prev=
856 ac_dashdash=
857 for ac_option
859 # If the previous option needs an argument, assign it.
860 if test -n "$ac_prev"; then
861 eval $ac_prev=\$ac_option
862 ac_prev=
863 continue
866 case $ac_option in
867 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
868 *=) ac_optarg= ;;
869 *) ac_optarg=yes ;;
870 esac
872 # Accept the important Cygnus configure options, so we can diagnose typos.
874 case $ac_dashdash$ac_option in
876 ac_dashdash=yes ;;
878 -bindir | --bindir | --bindi | --bind | --bin | --bi)
879 ac_prev=bindir ;;
880 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
881 bindir=$ac_optarg ;;
883 -build | --build | --buil | --bui | --bu)
884 ac_prev=build_alias ;;
885 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
886 build_alias=$ac_optarg ;;
888 -cache-file | --cache-file | --cache-fil | --cache-fi \
889 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
890 ac_prev=cache_file ;;
891 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
892 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
893 cache_file=$ac_optarg ;;
895 --config-cache | -C)
896 cache_file=config.cache ;;
898 -datadir | --datadir | --datadi | --datad)
899 ac_prev=datadir ;;
900 -datadir=* | --datadir=* | --datadi=* | --datad=*)
901 datadir=$ac_optarg ;;
903 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
904 | --dataroo | --dataro | --datar)
905 ac_prev=datarootdir ;;
906 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
907 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
908 datarootdir=$ac_optarg ;;
910 -disable-* | --disable-*)
911 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
912 # Reject names that are not valid shell variable names.
913 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
914 as_fn_error $? "invalid feature name: $ac_useropt"
915 ac_useropt_orig=$ac_useropt
916 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
917 case $ac_user_opts in
919 "enable_$ac_useropt"
920 "*) ;;
921 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
922 ac_unrecognized_sep=', ';;
923 esac
924 eval enable_$ac_useropt=no ;;
926 -docdir | --docdir | --docdi | --doc | --do)
927 ac_prev=docdir ;;
928 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
929 docdir=$ac_optarg ;;
931 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
932 ac_prev=dvidir ;;
933 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
934 dvidir=$ac_optarg ;;
936 -enable-* | --enable-*)
937 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
938 # Reject names that are not valid shell variable names.
939 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
940 as_fn_error $? "invalid feature name: $ac_useropt"
941 ac_useropt_orig=$ac_useropt
942 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
943 case $ac_user_opts in
945 "enable_$ac_useropt"
946 "*) ;;
947 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
948 ac_unrecognized_sep=', ';;
949 esac
950 eval enable_$ac_useropt=\$ac_optarg ;;
952 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
953 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
954 | --exec | --exe | --ex)
955 ac_prev=exec_prefix ;;
956 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
957 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
958 | --exec=* | --exe=* | --ex=*)
959 exec_prefix=$ac_optarg ;;
961 -gas | --gas | --ga | --g)
962 # Obsolete; use --with-gas.
963 with_gas=yes ;;
965 -help | --help | --hel | --he | -h)
966 ac_init_help=long ;;
967 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
968 ac_init_help=recursive ;;
969 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
970 ac_init_help=short ;;
972 -host | --host | --hos | --ho)
973 ac_prev=host_alias ;;
974 -host=* | --host=* | --hos=* | --ho=*)
975 host_alias=$ac_optarg ;;
977 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
978 ac_prev=htmldir ;;
979 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
980 | --ht=*)
981 htmldir=$ac_optarg ;;
983 -includedir | --includedir | --includedi | --included | --include \
984 | --includ | --inclu | --incl | --inc)
985 ac_prev=includedir ;;
986 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
987 | --includ=* | --inclu=* | --incl=* | --inc=*)
988 includedir=$ac_optarg ;;
990 -infodir | --infodir | --infodi | --infod | --info | --inf)
991 ac_prev=infodir ;;
992 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
993 infodir=$ac_optarg ;;
995 -libdir | --libdir | --libdi | --libd)
996 ac_prev=libdir ;;
997 -libdir=* | --libdir=* | --libdi=* | --libd=*)
998 libdir=$ac_optarg ;;
1000 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1001 | --libexe | --libex | --libe)
1002 ac_prev=libexecdir ;;
1003 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1004 | --libexe=* | --libex=* | --libe=*)
1005 libexecdir=$ac_optarg ;;
1007 -localedir | --localedir | --localedi | --localed | --locale)
1008 ac_prev=localedir ;;
1009 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1010 localedir=$ac_optarg ;;
1012 -localstatedir | --localstatedir | --localstatedi | --localstated \
1013 | --localstate | --localstat | --localsta | --localst | --locals)
1014 ac_prev=localstatedir ;;
1015 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1016 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1017 localstatedir=$ac_optarg ;;
1019 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1020 ac_prev=mandir ;;
1021 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1022 mandir=$ac_optarg ;;
1024 -nfp | --nfp | --nf)
1025 # Obsolete; use --without-fp.
1026 with_fp=no ;;
1028 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1029 | --no-cr | --no-c | -n)
1030 no_create=yes ;;
1032 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1033 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1034 no_recursion=yes ;;
1036 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1037 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1038 | --oldin | --oldi | --old | --ol | --o)
1039 ac_prev=oldincludedir ;;
1040 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1041 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1042 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1043 oldincludedir=$ac_optarg ;;
1045 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1046 ac_prev=prefix ;;
1047 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1048 prefix=$ac_optarg ;;
1050 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1051 | --program-pre | --program-pr | --program-p)
1052 ac_prev=program_prefix ;;
1053 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1054 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1055 program_prefix=$ac_optarg ;;
1057 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1058 | --program-suf | --program-su | --program-s)
1059 ac_prev=program_suffix ;;
1060 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1061 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1062 program_suffix=$ac_optarg ;;
1064 -program-transform-name | --program-transform-name \
1065 | --program-transform-nam | --program-transform-na \
1066 | --program-transform-n | --program-transform- \
1067 | --program-transform | --program-transfor \
1068 | --program-transfo | --program-transf \
1069 | --program-trans | --program-tran \
1070 | --progr-tra | --program-tr | --program-t)
1071 ac_prev=program_transform_name ;;
1072 -program-transform-name=* | --program-transform-name=* \
1073 | --program-transform-nam=* | --program-transform-na=* \
1074 | --program-transform-n=* | --program-transform-=* \
1075 | --program-transform=* | --program-transfor=* \
1076 | --program-transfo=* | --program-transf=* \
1077 | --program-trans=* | --program-tran=* \
1078 | --progr-tra=* | --program-tr=* | --program-t=*)
1079 program_transform_name=$ac_optarg ;;
1081 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1082 ac_prev=pdfdir ;;
1083 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1084 pdfdir=$ac_optarg ;;
1086 -psdir | --psdir | --psdi | --psd | --ps)
1087 ac_prev=psdir ;;
1088 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1089 psdir=$ac_optarg ;;
1091 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1092 | -silent | --silent | --silen | --sile | --sil)
1093 silent=yes ;;
1095 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1096 ac_prev=sbindir ;;
1097 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1098 | --sbi=* | --sb=*)
1099 sbindir=$ac_optarg ;;
1101 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1102 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1103 | --sharedst | --shareds | --shared | --share | --shar \
1104 | --sha | --sh)
1105 ac_prev=sharedstatedir ;;
1106 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1107 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1108 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1109 | --sha=* | --sh=*)
1110 sharedstatedir=$ac_optarg ;;
1112 -site | --site | --sit)
1113 ac_prev=site ;;
1114 -site=* | --site=* | --sit=*)
1115 site=$ac_optarg ;;
1117 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1118 ac_prev=srcdir ;;
1119 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1120 srcdir=$ac_optarg ;;
1122 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1123 | --syscon | --sysco | --sysc | --sys | --sy)
1124 ac_prev=sysconfdir ;;
1125 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1126 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1127 sysconfdir=$ac_optarg ;;
1129 -target | --target | --targe | --targ | --tar | --ta | --t)
1130 ac_prev=target_alias ;;
1131 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1132 target_alias=$ac_optarg ;;
1134 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1135 verbose=yes ;;
1137 -version | --version | --versio | --versi | --vers | -V)
1138 ac_init_version=: ;;
1140 -with-* | --with-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error $? "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=\$ac_optarg ;;
1156 -without-* | --without-*)
1157 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1158 # Reject names that are not valid shell variable names.
1159 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1160 as_fn_error $? "invalid package name: $ac_useropt"
1161 ac_useropt_orig=$ac_useropt
1162 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1163 case $ac_user_opts in
1165 "with_$ac_useropt"
1166 "*) ;;
1167 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1168 ac_unrecognized_sep=', ';;
1169 esac
1170 eval with_$ac_useropt=no ;;
1172 --x)
1173 # Obsolete; use --with-x.
1174 with_x=yes ;;
1176 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1177 | --x-incl | --x-inc | --x-in | --x-i)
1178 ac_prev=x_includes ;;
1179 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1180 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1181 x_includes=$ac_optarg ;;
1183 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1184 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1185 ac_prev=x_libraries ;;
1186 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1187 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1188 x_libraries=$ac_optarg ;;
1190 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1191 Try \`$0 --help' for more information"
1194 *=*)
1195 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1196 # Reject names that are not valid shell variable names.
1197 case $ac_envvar in #(
1198 '' | [0-9]* | *[!_$as_cr_alnum]* )
1199 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1200 esac
1201 eval $ac_envvar=\$ac_optarg
1202 export $ac_envvar ;;
1205 # FIXME: should be removed in autoconf 3.0.
1206 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1207 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1208 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1209 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1212 esac
1213 done
1215 if test -n "$ac_prev"; then
1216 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1217 as_fn_error $? "missing argument to $ac_option"
1220 if test -n "$ac_unrecognized_opts"; then
1221 case $enable_option_checking in
1222 no) ;;
1223 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1224 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1225 esac
1228 # Check all directory arguments for consistency.
1229 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1230 datadir sysconfdir sharedstatedir localstatedir includedir \
1231 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1232 libdir localedir mandir
1234 eval ac_val=\$$ac_var
1235 # Remove trailing slashes.
1236 case $ac_val in
1237 */ )
1238 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1239 eval $ac_var=\$ac_val;;
1240 esac
1241 # Be sure to have absolute directory names.
1242 case $ac_val in
1243 [\\/$]* | ?:[\\/]* ) continue;;
1244 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1245 esac
1246 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1247 done
1249 # There might be people who depend on the old broken behavior: `$host'
1250 # used to hold the argument of --host etc.
1251 # FIXME: To remove some day.
1252 build=$build_alias
1253 host=$host_alias
1254 target=$target_alias
1256 # FIXME: To remove some day.
1257 if test "x$host_alias" != x; then
1258 if test "x$build_alias" = x; then
1259 cross_compiling=maybe
1260 elif test "x$build_alias" != "x$host_alias"; then
1261 cross_compiling=yes
1265 ac_tool_prefix=
1266 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1268 test "$silent" = yes && exec 6>/dev/null
1271 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1272 ac_ls_di=`ls -di .` &&
1273 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1274 as_fn_error $? "working directory cannot be determined"
1275 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1276 as_fn_error $? "pwd does not report name of working directory"
1279 # Find the source files, if location was not specified.
1280 if test -z "$srcdir"; then
1281 ac_srcdir_defaulted=yes
1282 # Try the directory containing this script, then the parent directory.
1283 ac_confdir=`$as_dirname -- "$as_myself" ||
1284 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1285 X"$as_myself" : 'X\(//\)[^/]' \| \
1286 X"$as_myself" : 'X\(//\)$' \| \
1287 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1288 $as_echo X"$as_myself" |
1289 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1290 s//\1/
1293 /^X\(\/\/\)[^/].*/{
1294 s//\1/
1297 /^X\(\/\/\)$/{
1298 s//\1/
1301 /^X\(\/\).*/{
1302 s//\1/
1305 s/.*/./; q'`
1306 srcdir=$ac_confdir
1307 if test ! -r "$srcdir/$ac_unique_file"; then
1308 srcdir=..
1310 else
1311 ac_srcdir_defaulted=no
1313 if test ! -r "$srcdir/$ac_unique_file"; then
1314 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1315 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1317 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1318 ac_abs_confdir=`(
1319 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1320 pwd)`
1321 # When building in place, set srcdir=.
1322 if test "$ac_abs_confdir" = "$ac_pwd"; then
1323 srcdir=.
1325 # Remove unnecessary trailing slashes from srcdir.
1326 # Double slashes in file names in object file debugging info
1327 # mess up M-x gdb in Emacs.
1328 case $srcdir in
1329 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1330 esac
1331 for ac_var in $ac_precious_vars; do
1332 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1333 eval ac_env_${ac_var}_value=\$${ac_var}
1334 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1335 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1336 done
1339 # Report the --help message.
1341 if test "$ac_init_help" = "long"; then
1342 # Omit some internal or obsolete options to make the list less imposing.
1343 # This message is too long to be a string in the A/UX 3.1 sh.
1344 cat <<_ACEOF
1345 \`configure' configures GDash 20130623unstable to adapt to many kinds of systems.
1347 Usage: $0 [OPTION]... [VAR=VALUE]...
1349 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1350 VAR=VALUE. See below for descriptions of some of the useful variables.
1352 Defaults for the options are specified in brackets.
1354 Configuration:
1355 -h, --help display this help and exit
1356 --help=short display options specific to this package
1357 --help=recursive display the short help of all the included packages
1358 -V, --version display version information and exit
1359 -q, --quiet, --silent do not print \`checking ...' messages
1360 --cache-file=FILE cache test results in FILE [disabled]
1361 -C, --config-cache alias for \`--cache-file=config.cache'
1362 -n, --no-create do not create output files
1363 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1365 Installation directories:
1366 --prefix=PREFIX install architecture-independent files in PREFIX
1367 [$ac_default_prefix]
1368 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1369 [PREFIX]
1371 By default, \`make install' will install all the files in
1372 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1373 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1374 for instance \`--prefix=\$HOME'.
1376 For better control, use the options below.
1378 Fine tuning of the installation directories:
1379 --bindir=DIR user executables [EPREFIX/bin]
1380 --sbindir=DIR system admin executables [EPREFIX/sbin]
1381 --libexecdir=DIR program executables [EPREFIX/libexec]
1382 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1383 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1384 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1385 --libdir=DIR object code libraries [EPREFIX/lib]
1386 --includedir=DIR C header files [PREFIX/include]
1387 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1388 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1389 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1390 --infodir=DIR info documentation [DATAROOTDIR/info]
1391 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1392 --mandir=DIR man documentation [DATAROOTDIR/man]
1393 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1394 --htmldir=DIR html documentation [DOCDIR]
1395 --dvidir=DIR dvi documentation [DOCDIR]
1396 --pdfdir=DIR pdf documentation [DOCDIR]
1397 --psdir=DIR ps documentation [DOCDIR]
1398 _ACEOF
1400 cat <<\_ACEOF
1402 Program names:
1403 --program-prefix=PREFIX prepend PREFIX to installed program names
1404 --program-suffix=SUFFIX append SUFFIX to installed program names
1405 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1407 X features:
1408 --x-includes=DIR X include files are in DIR
1409 --x-libraries=DIR X library files are in DIR
1411 System types:
1412 --build=BUILD configure for building on BUILD [guessed]
1413 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1414 _ACEOF
1417 if test -n "$ac_init_help"; then
1418 case $ac_init_help in
1419 short | recursive ) echo "Configuration of GDash 20130623unstable:";;
1420 esac
1421 cat <<\_ACEOF
1423 Optional Features:
1424 --disable-option-checking ignore unrecognized --enable/--with options
1425 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1426 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1427 --enable-silent-rules less verbose build output (undo: "make V=1")
1428 --disable-silent-rules verbose build output (undo: "make V=0")
1429 --enable-dependency-tracking
1430 do not reject slow dependency extractors
1431 --disable-dependency-tracking
1432 speeds up one-time build
1433 --disable-nls do not use Native Language Support
1434 --disable-rpath do not hardcode runtime library paths
1435 --disable-sdltest Do not try to compile and run a test SDL program
1437 Optional Packages:
1438 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1439 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1440 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1441 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1442 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1443 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1444 --without-libintl-prefix don't search for libintl in includedir and libdir
1445 --without-gtk disables using gtk+
1446 --without-sdl disables using sdl
1447 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1448 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1449 --with-x use the X Window System
1451 Some influential environment variables:
1452 CC C compiler command
1453 CFLAGS C compiler flags
1454 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1455 nonstandard directory <lib dir>
1456 LIBS libraries to pass to the linker, e.g. -l<library>
1457 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1458 you have headers in a nonstandard directory <include dir>
1459 CXX C++ compiler command
1460 CXXFLAGS C++ compiler flags
1461 PKG_CONFIG path to pkg-config utility
1462 PKG_CONFIG_PATH
1463 directories to add to pkg-config's search path
1464 PKG_CONFIG_LIBDIR
1465 path overriding pkg-config's built-in search path
1466 CPP C preprocessor
1467 GLIB_CFLAGS C compiler flags for GLIB, overriding pkg-config
1468 GLIB_LIBS linker flags for GLIB, overriding pkg-config
1469 GTK_CFLAGS C compiler flags for GTK, overriding pkg-config
1470 GTK_LIBS linker flags for GTK, overriding pkg-config
1471 XMKMF Path to xmkmf, Makefile generator for X Window System
1472 LIBPNG_CFLAGS
1473 C compiler flags for LIBPNG, overriding pkg-config
1474 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1479 Report bugs to <http://code.google.com/p/gdash/>.
1480 _ACEOF
1481 ac_status=$?
1484 if test "$ac_init_help" = "recursive"; then
1485 # If there are subdirs, report their specific --help.
1486 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487 test -d "$ac_dir" ||
1488 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1489 continue
1490 ac_builddir=.
1492 case "$ac_dir" in
1493 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1496 # A ".." for each directory in $ac_dir_suffix.
1497 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1498 case $ac_top_builddir_sub in
1499 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1500 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1501 esac ;;
1502 esac
1503 ac_abs_top_builddir=$ac_pwd
1504 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1505 # for backward compatibility:
1506 ac_top_builddir=$ac_top_build_prefix
1508 case $srcdir in
1509 .) # We are building in place.
1510 ac_srcdir=.
1511 ac_top_srcdir=$ac_top_builddir_sub
1512 ac_abs_top_srcdir=$ac_pwd ;;
1513 [\\/]* | ?:[\\/]* ) # Absolute name.
1514 ac_srcdir=$srcdir$ac_dir_suffix;
1515 ac_top_srcdir=$srcdir
1516 ac_abs_top_srcdir=$srcdir ;;
1517 *) # Relative name.
1518 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1519 ac_top_srcdir=$ac_top_build_prefix$srcdir
1520 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1521 esac
1522 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1524 cd "$ac_dir" || { ac_status=$?; continue; }
1525 # Check for guested configure.
1526 if test -f "$ac_srcdir/configure.gnu"; then
1527 echo &&
1528 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1529 elif test -f "$ac_srcdir/configure"; then
1530 echo &&
1531 $SHELL "$ac_srcdir/configure" --help=recursive
1532 else
1533 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1534 fi || ac_status=$?
1535 cd "$ac_pwd" || { ac_status=$?; break; }
1536 done
1539 test -n "$ac_init_help" && exit $ac_status
1540 if $ac_init_version; then
1541 cat <<\_ACEOF
1542 GDash configure 20130623unstable
1543 generated by GNU Autoconf 2.69
1545 Copyright (C) 2012 Free Software Foundation, Inc.
1546 This configure script is free software; the Free Software Foundation
1547 gives unlimited permission to copy, distribute and modify it.
1548 _ACEOF
1549 exit
1552 ## ------------------------ ##
1553 ## Autoconf initialization. ##
1554 ## ------------------------ ##
1556 # ac_fn_c_try_compile LINENO
1557 # --------------------------
1558 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1559 ac_fn_c_try_compile ()
1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1562 rm -f conftest.$ac_objext
1563 if { { ac_try="$ac_compile"
1564 case "(($ac_try" in
1565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1566 *) ac_try_echo=$ac_try;;
1567 esac
1568 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1569 $as_echo "$ac_try_echo"; } >&5
1570 (eval "$ac_compile") 2>conftest.err
1571 ac_status=$?
1572 if test -s conftest.err; then
1573 grep -v '^ *+' conftest.err >conftest.er1
1574 cat conftest.er1 >&5
1575 mv -f conftest.er1 conftest.err
1577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1578 test $ac_status = 0; } && {
1579 test -z "$ac_c_werror_flag" ||
1580 test ! -s conftest.err
1581 } && test -s conftest.$ac_objext; then :
1582 ac_retval=0
1583 else
1584 $as_echo "$as_me: failed program was:" >&5
1585 sed 's/^/| /' conftest.$ac_ext >&5
1587 ac_retval=1
1589 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1590 as_fn_set_status $ac_retval
1592 } # ac_fn_c_try_compile
1594 # ac_fn_cxx_try_compile LINENO
1595 # ----------------------------
1596 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1597 ac_fn_cxx_try_compile ()
1599 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1600 rm -f conftest.$ac_objext
1601 if { { ac_try="$ac_compile"
1602 case "(($ac_try" in
1603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1604 *) ac_try_echo=$ac_try;;
1605 esac
1606 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1607 $as_echo "$ac_try_echo"; } >&5
1608 (eval "$ac_compile") 2>conftest.err
1609 ac_status=$?
1610 if test -s conftest.err; then
1611 grep -v '^ *+' conftest.err >conftest.er1
1612 cat conftest.er1 >&5
1613 mv -f conftest.er1 conftest.err
1615 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1616 test $ac_status = 0; } && {
1617 test -z "$ac_cxx_werror_flag" ||
1618 test ! -s conftest.err
1619 } && test -s conftest.$ac_objext; then :
1620 ac_retval=0
1621 else
1622 $as_echo "$as_me: failed program was:" >&5
1623 sed 's/^/| /' conftest.$ac_ext >&5
1625 ac_retval=1
1627 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1628 as_fn_set_status $ac_retval
1630 } # ac_fn_cxx_try_compile
1632 # ac_fn_c_try_link LINENO
1633 # -----------------------
1634 # Try to link conftest.$ac_ext, and return whether this succeeded.
1635 ac_fn_c_try_link ()
1637 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1638 rm -f conftest.$ac_objext conftest$ac_exeext
1639 if { { ac_try="$ac_link"
1640 case "(($ac_try" in
1641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1642 *) ac_try_echo=$ac_try;;
1643 esac
1644 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1645 $as_echo "$ac_try_echo"; } >&5
1646 (eval "$ac_link") 2>conftest.err
1647 ac_status=$?
1648 if test -s conftest.err; then
1649 grep -v '^ *+' conftest.err >conftest.er1
1650 cat conftest.er1 >&5
1651 mv -f conftest.er1 conftest.err
1653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1654 test $ac_status = 0; } && {
1655 test -z "$ac_c_werror_flag" ||
1656 test ! -s conftest.err
1657 } && test -s conftest$ac_exeext && {
1658 test "$cross_compiling" = yes ||
1659 test -x conftest$ac_exeext
1660 }; then :
1661 ac_retval=0
1662 else
1663 $as_echo "$as_me: failed program was:" >&5
1664 sed 's/^/| /' conftest.$ac_ext >&5
1666 ac_retval=1
1668 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1669 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1670 # interfere with the next link command; also delete a directory that is
1671 # left behind by Apple's compiler. We do this before executing the actions.
1672 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1676 } # ac_fn_c_try_link
1678 # ac_fn_c_try_cpp LINENO
1679 # ----------------------
1680 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1681 ac_fn_c_try_cpp ()
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 if { { ac_try="$ac_cpp conftest.$ac_ext"
1685 case "(($ac_try" in
1686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1687 *) ac_try_echo=$ac_try;;
1688 esac
1689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1690 $as_echo "$ac_try_echo"; } >&5
1691 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1692 ac_status=$?
1693 if test -s conftest.err; then
1694 grep -v '^ *+' conftest.err >conftest.er1
1695 cat conftest.er1 >&5
1696 mv -f conftest.er1 conftest.err
1698 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1699 test $ac_status = 0; } > conftest.i && {
1700 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1701 test ! -s conftest.err
1702 }; then :
1703 ac_retval=0
1704 else
1705 $as_echo "$as_me: failed program was:" >&5
1706 sed 's/^/| /' conftest.$ac_ext >&5
1708 ac_retval=1
1710 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1711 as_fn_set_status $ac_retval
1713 } # ac_fn_c_try_cpp
1715 # ac_fn_c_try_run LINENO
1716 # ----------------------
1717 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1718 # that executables *can* be run.
1719 ac_fn_c_try_run ()
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_link"
1723 case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726 esac
1727 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728 $as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_link") 2>&5
1730 ac_status=$?
1731 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1732 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1733 { { case "(($ac_try" in
1734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735 *) ac_try_echo=$ac_try;;
1736 esac
1737 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738 $as_echo "$ac_try_echo"; } >&5
1739 (eval "$ac_try") 2>&5
1740 ac_status=$?
1741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1742 test $ac_status = 0; }; }; then :
1743 ac_retval=0
1744 else
1745 $as_echo "$as_me: program exited with status $ac_status" >&5
1746 $as_echo "$as_me: failed program was:" >&5
1747 sed 's/^/| /' conftest.$ac_ext >&5
1749 ac_retval=$ac_status
1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1753 as_fn_set_status $ac_retval
1755 } # ac_fn_c_try_run
1757 # ac_fn_c_check_func LINENO FUNC VAR
1758 # ----------------------------------
1759 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1760 ac_fn_c_check_func ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1764 $as_echo_n "checking for $2... " >&6; }
1765 if eval \${$3+:} false; then :
1766 $as_echo_n "(cached) " >&6
1767 else
1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1769 /* end confdefs.h. */
1770 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1772 #define $2 innocuous_$2
1774 /* System header to define __stub macros and hopefully few prototypes,
1775 which can conflict with char $2 (); below.
1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1777 <limits.h> exists even on freestanding compilers. */
1779 #ifdef __STDC__
1780 # include <limits.h>
1781 #else
1782 # include <assert.h>
1783 #endif
1785 #undef $2
1787 /* Override any GCC internal prototype to avoid an error.
1788 Use char because int might match the return type of a GCC
1789 builtin and then its argument prototype would still apply. */
1790 #ifdef __cplusplus
1791 extern "C"
1792 #endif
1793 char $2 ();
1794 /* The GNU C library defines this for functions which it implements
1795 to always fail with ENOSYS. Some functions are actually named
1796 something starting with __ and the normal name is an alias. */
1797 #if defined __stub_$2 || defined __stub___$2
1798 choke me
1799 #endif
1802 main ()
1804 return $2 ();
1806 return 0;
1808 _ACEOF
1809 if ac_fn_c_try_link "$LINENO"; then :
1810 eval "$3=yes"
1811 else
1812 eval "$3=no"
1814 rm -f core conftest.err conftest.$ac_objext \
1815 conftest$ac_exeext conftest.$ac_ext
1817 eval ac_res=\$$3
1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1819 $as_echo "$ac_res" >&6; }
1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1822 } # ac_fn_c_check_func
1824 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1825 # -------------------------------------------------------
1826 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1827 # the include files in INCLUDES and setting the cache variable VAR
1828 # accordingly.
1829 ac_fn_c_check_header_mongrel ()
1831 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1832 if eval \${$3+:} false; then :
1833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1834 $as_echo_n "checking for $2... " >&6; }
1835 if eval \${$3+:} false; then :
1836 $as_echo_n "(cached) " >&6
1838 eval ac_res=\$$3
1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1840 $as_echo "$ac_res" >&6; }
1841 else
1842 # Is the header compilable?
1843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1844 $as_echo_n "checking $2 usability... " >&6; }
1845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1846 /* end confdefs.h. */
1848 #include <$2>
1849 _ACEOF
1850 if ac_fn_c_try_compile "$LINENO"; then :
1851 ac_header_compiler=yes
1852 else
1853 ac_header_compiler=no
1855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1857 $as_echo "$ac_header_compiler" >&6; }
1859 # Is the header present?
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1861 $as_echo_n "checking $2 presence... " >&6; }
1862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1863 /* end confdefs.h. */
1864 #include <$2>
1865 _ACEOF
1866 if ac_fn_c_try_cpp "$LINENO"; then :
1867 ac_header_preproc=yes
1868 else
1869 ac_header_preproc=no
1871 rm -f conftest.err conftest.i conftest.$ac_ext
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1873 $as_echo "$ac_header_preproc" >&6; }
1875 # So? What about this header?
1876 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1877 yes:no: )
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1879 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1880 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1881 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1883 no:yes:* )
1884 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1885 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1887 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1888 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1889 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1890 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1891 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1893 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1894 ( $as_echo "## ---------------------------------------------- ##
1895 ## Report this to http://code.google.com/p/gdash/ ##
1896 ## ---------------------------------------------- ##"
1897 ) | sed "s/^/$as_me: WARNING: /" >&2
1899 esac
1900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1901 $as_echo_n "checking for $2... " >&6; }
1902 if eval \${$3+:} false; then :
1903 $as_echo_n "(cached) " >&6
1904 else
1905 eval "$3=\$ac_header_compiler"
1907 eval ac_res=\$$3
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1909 $as_echo "$ac_res" >&6; }
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 } # ac_fn_c_check_header_mongrel
1915 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1916 # -------------------------------------------------------
1917 # Tests whether HEADER exists and can be compiled using the include files in
1918 # INCLUDES, setting the cache variable VAR accordingly.
1919 ac_fn_c_check_header_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1923 $as_echo_n "checking for $2... " >&6; }
1924 if eval \${$3+:} false; then :
1925 $as_echo_n "(cached) " >&6
1926 else
1927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1928 /* end confdefs.h. */
1930 #include <$2>
1931 _ACEOF
1932 if ac_fn_c_try_compile "$LINENO"; then :
1933 eval "$3=yes"
1934 else
1935 eval "$3=no"
1937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1939 eval ac_res=\$$3
1940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1941 $as_echo "$ac_res" >&6; }
1942 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1944 } # ac_fn_c_check_header_compile
1946 # ac_fn_c_find_uintX_t LINENO BITS VAR
1947 # ------------------------------------
1948 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1949 # accordingly.
1950 ac_fn_c_find_uintX_t ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1954 $as_echo_n "checking for uint$2_t... " >&6; }
1955 if eval \${$3+:} false; then :
1956 $as_echo_n "(cached) " >&6
1957 else
1958 eval "$3=no"
1959 # Order is important - never check a type that is potentially smaller
1960 # than half of the expected target width.
1961 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1962 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1963 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1964 /* end confdefs.h. */
1965 $ac_includes_default
1967 main ()
1969 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1970 test_array [0] = 0;
1971 return test_array [0];
1974 return 0;
1976 _ACEOF
1977 if ac_fn_c_try_compile "$LINENO"; then :
1978 case $ac_type in #(
1979 uint$2_t) :
1980 eval "$3=yes" ;; #(
1981 *) :
1982 eval "$3=\$ac_type" ;;
1983 esac
1985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1986 if eval test \"x\$"$3"\" = x"no"; then :
1988 else
1989 break
1991 done
1993 eval ac_res=\$$3
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1995 $as_echo "$ac_res" >&6; }
1996 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1998 } # ac_fn_c_find_uintX_t
1999 cat >config.log <<_ACEOF
2000 This file contains any messages produced by compilers while
2001 running configure, to aid debugging if configure makes a mistake.
2003 It was created by GDash $as_me 20130623unstable, which was
2004 generated by GNU Autoconf 2.69. Invocation command line was
2006 $ $0 $@
2008 _ACEOF
2009 exec 5>>config.log
2011 cat <<_ASUNAME
2012 ## --------- ##
2013 ## Platform. ##
2014 ## --------- ##
2016 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2017 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2018 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2019 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2020 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2022 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2023 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2025 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2026 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2027 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2028 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2029 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2030 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2031 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2033 _ASUNAME
2035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2036 for as_dir in $PATH
2038 IFS=$as_save_IFS
2039 test -z "$as_dir" && as_dir=.
2040 $as_echo "PATH: $as_dir"
2041 done
2042 IFS=$as_save_IFS
2044 } >&5
2046 cat >&5 <<_ACEOF
2049 ## ----------- ##
2050 ## Core tests. ##
2051 ## ----------- ##
2053 _ACEOF
2056 # Keep a trace of the command line.
2057 # Strip out --no-create and --no-recursion so they do not pile up.
2058 # Strip out --silent because we don't want to record it for future runs.
2059 # Also quote any args containing shell meta-characters.
2060 # Make two passes to allow for proper duplicate-argument suppression.
2061 ac_configure_args=
2062 ac_configure_args0=
2063 ac_configure_args1=
2064 ac_must_keep_next=false
2065 for ac_pass in 1 2
2067 for ac_arg
2069 case $ac_arg in
2070 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2072 | -silent | --silent | --silen | --sile | --sil)
2073 continue ;;
2074 *\'*)
2075 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2076 esac
2077 case $ac_pass in
2078 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2080 as_fn_append ac_configure_args1 " '$ac_arg'"
2081 if test $ac_must_keep_next = true; then
2082 ac_must_keep_next=false # Got value, back to normal.
2083 else
2084 case $ac_arg in
2085 *=* | --config-cache | -C | -disable-* | --disable-* \
2086 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2087 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2088 | -with-* | --with-* | -without-* | --without-* | --x)
2089 case "$ac_configure_args0 " in
2090 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2091 esac
2093 -* ) ac_must_keep_next=true ;;
2094 esac
2096 as_fn_append ac_configure_args " '$ac_arg'"
2098 esac
2099 done
2100 done
2101 { ac_configure_args0=; unset ac_configure_args0;}
2102 { ac_configure_args1=; unset ac_configure_args1;}
2104 # When interrupted or exit'd, cleanup temporary files, and complete
2105 # config.log. We remove comments because anyway the quotes in there
2106 # would cause problems or look ugly.
2107 # WARNING: Use '\'' to represent an apostrophe within the trap.
2108 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2109 trap 'exit_status=$?
2110 # Save into config.log some information that might help in debugging.
2112 echo
2114 $as_echo "## ---------------- ##
2115 ## Cache variables. ##
2116 ## ---------------- ##"
2117 echo
2118 # The following way of writing the cache mishandles newlines in values,
2120 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2121 eval ac_val=\$$ac_var
2122 case $ac_val in #(
2123 *${as_nl}*)
2124 case $ac_var in #(
2125 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2126 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2127 esac
2128 case $ac_var in #(
2129 _ | IFS | as_nl) ;; #(
2130 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2131 *) { eval $ac_var=; unset $ac_var;} ;;
2132 esac ;;
2133 esac
2134 done
2135 (set) 2>&1 |
2136 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2137 *${as_nl}ac_space=\ *)
2138 sed -n \
2139 "s/'\''/'\''\\\\'\'''\''/g;
2140 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2141 ;; #(
2143 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2145 esac |
2146 sort
2148 echo
2150 $as_echo "## ----------------- ##
2151 ## Output variables. ##
2152 ## ----------------- ##"
2153 echo
2154 for ac_var in $ac_subst_vars
2156 eval ac_val=\$$ac_var
2157 case $ac_val in
2158 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2159 esac
2160 $as_echo "$ac_var='\''$ac_val'\''"
2161 done | sort
2162 echo
2164 if test -n "$ac_subst_files"; then
2165 $as_echo "## ------------------- ##
2166 ## File substitutions. ##
2167 ## ------------------- ##"
2168 echo
2169 for ac_var in $ac_subst_files
2171 eval ac_val=\$$ac_var
2172 case $ac_val in
2173 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2174 esac
2175 $as_echo "$ac_var='\''$ac_val'\''"
2176 done | sort
2177 echo
2180 if test -s confdefs.h; then
2181 $as_echo "## ----------- ##
2182 ## confdefs.h. ##
2183 ## ----------- ##"
2184 echo
2185 cat confdefs.h
2186 echo
2188 test "$ac_signal" != 0 &&
2189 $as_echo "$as_me: caught signal $ac_signal"
2190 $as_echo "$as_me: exit $exit_status"
2191 } >&5
2192 rm -f core *.core core.conftest.* &&
2193 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2194 exit $exit_status
2196 for ac_signal in 1 2 13 15; do
2197 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2198 done
2199 ac_signal=0
2201 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2202 rm -f -r conftest* confdefs.h
2204 $as_echo "/* confdefs.h */" > confdefs.h
2206 # Predefined preprocessor variables.
2208 cat >>confdefs.h <<_ACEOF
2209 #define PACKAGE_NAME "$PACKAGE_NAME"
2210 _ACEOF
2212 cat >>confdefs.h <<_ACEOF
2213 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2214 _ACEOF
2216 cat >>confdefs.h <<_ACEOF
2217 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2218 _ACEOF
2220 cat >>confdefs.h <<_ACEOF
2221 #define PACKAGE_STRING "$PACKAGE_STRING"
2222 _ACEOF
2224 cat >>confdefs.h <<_ACEOF
2225 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2226 _ACEOF
2228 cat >>confdefs.h <<_ACEOF
2229 #define PACKAGE_URL "$PACKAGE_URL"
2230 _ACEOF
2233 # Let the site file select an alternate cache file if it wants to.
2234 # Prefer an explicitly selected file to automatically selected ones.
2235 ac_site_file1=NONE
2236 ac_site_file2=NONE
2237 if test -n "$CONFIG_SITE"; then
2238 # We do not want a PATH search for config.site.
2239 case $CONFIG_SITE in #((
2240 -*) ac_site_file1=./$CONFIG_SITE;;
2241 */*) ac_site_file1=$CONFIG_SITE;;
2242 *) ac_site_file1=./$CONFIG_SITE;;
2243 esac
2244 elif test "x$prefix" != xNONE; then
2245 ac_site_file1=$prefix/share/config.site
2246 ac_site_file2=$prefix/etc/config.site
2247 else
2248 ac_site_file1=$ac_default_prefix/share/config.site
2249 ac_site_file2=$ac_default_prefix/etc/config.site
2251 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2253 test "x$ac_site_file" = xNONE && continue
2254 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2255 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2256 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2257 sed 's/^/| /' "$ac_site_file" >&5
2258 . "$ac_site_file" \
2259 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2260 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2261 as_fn_error $? "failed to load site script $ac_site_file
2262 See \`config.log' for more details" "$LINENO" 5; }
2264 done
2266 if test -r "$cache_file"; then
2267 # Some versions of bash will fail to source /dev/null (special files
2268 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2269 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2271 $as_echo "$as_me: loading cache $cache_file" >&6;}
2272 case $cache_file in
2273 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2274 *) . "./$cache_file";;
2275 esac
2277 else
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2279 $as_echo "$as_me: creating cache $cache_file" >&6;}
2280 >$cache_file
2283 gt_needs="$gt_needs "
2284 # Check that the precious variables saved in the cache have kept the same
2285 # value.
2286 ac_cache_corrupted=false
2287 for ac_var in $ac_precious_vars; do
2288 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2289 eval ac_new_set=\$ac_env_${ac_var}_set
2290 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2291 eval ac_new_val=\$ac_env_${ac_var}_value
2292 case $ac_old_set,$ac_new_set in
2293 set,)
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2295 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2296 ac_cache_corrupted=: ;;
2297 ,set)
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2299 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2300 ac_cache_corrupted=: ;;
2301 ,);;
2303 if test "x$ac_old_val" != "x$ac_new_val"; then
2304 # differences in whitespace do not lead to failure.
2305 ac_old_val_w=`echo x $ac_old_val`
2306 ac_new_val_w=`echo x $ac_new_val`
2307 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2309 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2310 ac_cache_corrupted=:
2311 else
2312 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2313 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2314 eval $ac_var=\$ac_old_val
2316 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2317 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2319 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2320 fi;;
2321 esac
2322 # Pass precious variables to config.status.
2323 if test "$ac_new_set" = set; then
2324 case $ac_new_val in
2325 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2326 *) ac_arg=$ac_var=$ac_new_val ;;
2327 esac
2328 case " $ac_configure_args " in
2329 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2330 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2331 esac
2333 done
2334 if $ac_cache_corrupted; then
2335 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2336 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2338 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2339 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2341 ## -------------------- ##
2342 ## Main body of script. ##
2343 ## -------------------- ##
2345 ac_ext=c
2346 ac_cpp='$CPP $CPPFLAGS'
2347 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2348 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2349 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2353 am__api_version='1.14'
2355 ac_aux_dir=
2356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 if test -f "$ac_dir/install-sh"; then
2358 ac_aux_dir=$ac_dir
2359 ac_install_sh="$ac_aux_dir/install-sh -c"
2360 break
2361 elif test -f "$ac_dir/install.sh"; then
2362 ac_aux_dir=$ac_dir
2363 ac_install_sh="$ac_aux_dir/install.sh -c"
2364 break
2365 elif test -f "$ac_dir/shtool"; then
2366 ac_aux_dir=$ac_dir
2367 ac_install_sh="$ac_aux_dir/shtool install -c"
2368 break
2370 done
2371 if test -z "$ac_aux_dir"; then
2372 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2375 # These three variables are undocumented and unsupported,
2376 # and are intended to be withdrawn in a future Autoconf release.
2377 # They can cause serious problems if a builder's source tree is in a directory
2378 # whose full name contains unusual characters.
2379 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2380 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2381 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2384 # Find a good install program. We prefer a C program (faster),
2385 # so one script is as good as another. But avoid the broken or
2386 # incompatible versions:
2387 # SysV /etc/install, /usr/sbin/install
2388 # SunOS /usr/etc/install
2389 # IRIX /sbin/install
2390 # AIX /bin/install
2391 # AmigaOS /C/install, which installs bootblocks on floppy discs
2392 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2393 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2394 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2395 # OS/2's system install, which has a completely different semantic
2396 # ./install, which can be erroneously created by make from ./install.sh.
2397 # Reject install programs that cannot install multiple files.
2398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2399 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2400 if test -z "$INSTALL"; then
2401 if ${ac_cv_path_install+:} false; then :
2402 $as_echo_n "(cached) " >&6
2403 else
2404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2405 for as_dir in $PATH
2407 IFS=$as_save_IFS
2408 test -z "$as_dir" && as_dir=.
2409 # Account for people who put trailing slashes in PATH elements.
2410 case $as_dir/ in #((
2411 ./ | .// | /[cC]/* | \
2412 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2413 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2414 /usr/ucb/* ) ;;
2416 # OSF1 and SCO ODT 3.0 have their own names for install.
2417 # Don't use installbsd from OSF since it installs stuff as root
2418 # by default.
2419 for ac_prog in ginstall scoinst install; do
2420 for ac_exec_ext in '' $ac_executable_extensions; do
2421 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2422 if test $ac_prog = install &&
2423 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2424 # AIX install. It has an incompatible calling convention.
2426 elif test $ac_prog = install &&
2427 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2428 # program-specific install script used by HP pwplus--don't use.
2430 else
2431 rm -rf conftest.one conftest.two conftest.dir
2432 echo one > conftest.one
2433 echo two > conftest.two
2434 mkdir conftest.dir
2435 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2436 test -s conftest.one && test -s conftest.two &&
2437 test -s conftest.dir/conftest.one &&
2438 test -s conftest.dir/conftest.two
2439 then
2440 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2441 break 3
2445 done
2446 done
2448 esac
2450 done
2451 IFS=$as_save_IFS
2453 rm -rf conftest.one conftest.two conftest.dir
2456 if test "${ac_cv_path_install+set}" = set; then
2457 INSTALL=$ac_cv_path_install
2458 else
2459 # As a last resort, use the slow shell script. Don't cache a
2460 # value for INSTALL within a source directory, because that will
2461 # break other packages using the cache if that directory is
2462 # removed, or if the value is a relative name.
2463 INSTALL=$ac_install_sh
2466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2467 $as_echo "$INSTALL" >&6; }
2469 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2470 # It thinks the first close brace ends the variable substitution.
2471 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2473 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2475 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2478 $as_echo_n "checking whether build environment is sane... " >&6; }
2479 # Reject unsafe characters in $srcdir or the absolute working directory
2480 # name. Accept space and tab only in the latter.
2481 am_lf='
2483 case `pwd` in
2484 *[\\\"\#\$\&\'\`$am_lf]*)
2485 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2486 esac
2487 case $srcdir in
2488 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2489 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2490 esac
2492 # Do 'set' in a subshell so we don't clobber the current shell's
2493 # arguments. Must try -L first in case configure is actually a
2494 # symlink; some systems play weird games with the mod time of symlinks
2495 # (eg FreeBSD returns the mod time of the symlink's containing
2496 # directory).
2497 if (
2498 am_has_slept=no
2499 for am_try in 1 2; do
2500 echo "timestamp, slept: $am_has_slept" > conftest.file
2501 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2502 if test "$*" = "X"; then
2503 # -L didn't work.
2504 set X `ls -t "$srcdir/configure" conftest.file`
2506 if test "$*" != "X $srcdir/configure conftest.file" \
2507 && test "$*" != "X conftest.file $srcdir/configure"; then
2509 # If neither matched, then we have a broken ls. This can happen
2510 # if, for instance, CONFIG_SHELL is bash and it inherits a
2511 # broken ls alias from the environment. This has actually
2512 # happened. Such a system could not be considered "sane".
2513 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2514 alias in your environment" "$LINENO" 5
2516 if test "$2" = conftest.file || test $am_try -eq 2; then
2517 break
2519 # Just in case.
2520 sleep 1
2521 am_has_slept=yes
2522 done
2523 test "$2" = conftest.file
2525 then
2526 # Ok.
2528 else
2529 as_fn_error $? "newly created file is older than distributed files!
2530 Check your system clock" "$LINENO" 5
2532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2533 $as_echo "yes" >&6; }
2534 # If we didn't sleep, we still need to ensure time stamps of config.status and
2535 # generated files are strictly newer.
2536 am_sleep_pid=
2537 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2538 ( sleep 1 ) &
2539 am_sleep_pid=$!
2542 rm -f conftest.file
2544 test "$program_prefix" != NONE &&
2545 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2546 # Use a double $ so make ignores it.
2547 test "$program_suffix" != NONE &&
2548 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2549 # Double any \ or $.
2550 # By default was `s,x,x', remove it if useless.
2551 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2552 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2554 # expand $ac_aux_dir to an absolute path
2555 am_aux_dir=`cd $ac_aux_dir && pwd`
2557 if test x"${MISSING+set}" != xset; then
2558 case $am_aux_dir in
2559 *\ * | *\ *)
2560 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2562 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2563 esac
2565 # Use eval to expand $SHELL
2566 if eval "$MISSING --is-lightweight"; then
2567 am_missing_run="$MISSING "
2568 else
2569 am_missing_run=
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2571 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2574 if test x"${install_sh}" != xset; then
2575 case $am_aux_dir in
2576 *\ * | *\ *)
2577 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2579 install_sh="\${SHELL} $am_aux_dir/install-sh"
2580 esac
2583 # Installed binaries are usually stripped using 'strip' when the user
2584 # run "make install-strip". However 'strip' might not be the right
2585 # tool to use in cross-compilation environments, therefore Automake
2586 # will honor the 'STRIP' environment variable to overrule this program.
2587 if test "$cross_compiling" != no; then
2588 if test -n "$ac_tool_prefix"; then
2589 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2590 set dummy ${ac_tool_prefix}strip; ac_word=$2
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2592 $as_echo_n "checking for $ac_word... " >&6; }
2593 if ${ac_cv_prog_STRIP+:} false; then :
2594 $as_echo_n "(cached) " >&6
2595 else
2596 if test -n "$STRIP"; then
2597 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2598 else
2599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2600 for as_dir in $PATH
2602 IFS=$as_save_IFS
2603 test -z "$as_dir" && as_dir=.
2604 for ac_exec_ext in '' $ac_executable_extensions; do
2605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2606 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2607 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2608 break 2
2610 done
2611 done
2612 IFS=$as_save_IFS
2616 STRIP=$ac_cv_prog_STRIP
2617 if test -n "$STRIP"; then
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2619 $as_echo "$STRIP" >&6; }
2620 else
2621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2622 $as_echo "no" >&6; }
2627 if test -z "$ac_cv_prog_STRIP"; then
2628 ac_ct_STRIP=$STRIP
2629 # Extract the first word of "strip", so it can be a program name with args.
2630 set dummy strip; ac_word=$2
2631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2632 $as_echo_n "checking for $ac_word... " >&6; }
2633 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2634 $as_echo_n "(cached) " >&6
2635 else
2636 if test -n "$ac_ct_STRIP"; then
2637 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2638 else
2639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2640 for as_dir in $PATH
2642 IFS=$as_save_IFS
2643 test -z "$as_dir" && as_dir=.
2644 for ac_exec_ext in '' $ac_executable_extensions; do
2645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2646 ac_cv_prog_ac_ct_STRIP="strip"
2647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2648 break 2
2650 done
2651 done
2652 IFS=$as_save_IFS
2656 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2657 if test -n "$ac_ct_STRIP"; then
2658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2659 $as_echo "$ac_ct_STRIP" >&6; }
2660 else
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2662 $as_echo "no" >&6; }
2665 if test "x$ac_ct_STRIP" = x; then
2666 STRIP=":"
2667 else
2668 case $cross_compiling:$ac_tool_warned in
2669 yes:)
2670 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2671 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2672 ac_tool_warned=yes ;;
2673 esac
2674 STRIP=$ac_ct_STRIP
2676 else
2677 STRIP="$ac_cv_prog_STRIP"
2681 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2684 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2685 if test -z "$MKDIR_P"; then
2686 if ${ac_cv_path_mkdir+:} false; then :
2687 $as_echo_n "(cached) " >&6
2688 else
2689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2690 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2692 IFS=$as_save_IFS
2693 test -z "$as_dir" && as_dir=.
2694 for ac_prog in mkdir gmkdir; do
2695 for ac_exec_ext in '' $ac_executable_extensions; do
2696 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2697 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2698 'mkdir (GNU coreutils) '* | \
2699 'mkdir (coreutils) '* | \
2700 'mkdir (fileutils) '4.1*)
2701 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2702 break 3;;
2703 esac
2704 done
2705 done
2706 done
2707 IFS=$as_save_IFS
2711 test -d ./--version && rmdir ./--version
2712 if test "${ac_cv_path_mkdir+set}" = set; then
2713 MKDIR_P="$ac_cv_path_mkdir -p"
2714 else
2715 # As a last resort, use the slow shell script. Don't cache a
2716 # value for MKDIR_P within a source directory, because that will
2717 # break other packages using the cache if that directory is
2718 # removed, or if the value is a relative name.
2719 MKDIR_P="$ac_install_sh -d"
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2723 $as_echo "$MKDIR_P" >&6; }
2725 for ac_prog in gawk mawk nawk awk
2727 # Extract the first word of "$ac_prog", so it can be a program name with args.
2728 set dummy $ac_prog; ac_word=$2
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2730 $as_echo_n "checking for $ac_word... " >&6; }
2731 if ${ac_cv_prog_AWK+:} false; then :
2732 $as_echo_n "(cached) " >&6
2733 else
2734 if test -n "$AWK"; then
2735 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2736 else
2737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2738 for as_dir in $PATH
2740 IFS=$as_save_IFS
2741 test -z "$as_dir" && as_dir=.
2742 for ac_exec_ext in '' $ac_executable_extensions; do
2743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2744 ac_cv_prog_AWK="$ac_prog"
2745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2746 break 2
2748 done
2749 done
2750 IFS=$as_save_IFS
2754 AWK=$ac_cv_prog_AWK
2755 if test -n "$AWK"; then
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2757 $as_echo "$AWK" >&6; }
2758 else
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2760 $as_echo "no" >&6; }
2764 test -n "$AWK" && break
2765 done
2767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2768 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2769 set x ${MAKE-make}
2770 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2771 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2772 $as_echo_n "(cached) " >&6
2773 else
2774 cat >conftest.make <<\_ACEOF
2775 SHELL = /bin/sh
2776 all:
2777 @echo '@@@%%%=$(MAKE)=@@@%%%'
2778 _ACEOF
2779 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2780 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2781 *@@@%%%=?*=@@@%%%*)
2782 eval ac_cv_prog_make_${ac_make}_set=yes;;
2784 eval ac_cv_prog_make_${ac_make}_set=no;;
2785 esac
2786 rm -f conftest.make
2788 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2790 $as_echo "yes" >&6; }
2791 SET_MAKE=
2792 else
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2794 $as_echo "no" >&6; }
2795 SET_MAKE="MAKE=${MAKE-make}"
2798 rm -rf .tst 2>/dev/null
2799 mkdir .tst 2>/dev/null
2800 if test -d .tst; then
2801 am__leading_dot=.
2802 else
2803 am__leading_dot=_
2805 rmdir .tst 2>/dev/null
2807 # Check whether --enable-silent-rules was given.
2808 if test "${enable_silent_rules+set}" = set; then :
2809 enableval=$enable_silent_rules;
2812 case $enable_silent_rules in # (((
2813 yes) AM_DEFAULT_VERBOSITY=0;;
2814 no) AM_DEFAULT_VERBOSITY=1;;
2815 *) AM_DEFAULT_VERBOSITY=1;;
2816 esac
2817 am_make=${MAKE-make}
2818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2819 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2820 if ${am_cv_make_support_nested_variables+:} false; then :
2821 $as_echo_n "(cached) " >&6
2822 else
2823 if $as_echo 'TRUE=$(BAR$(V))
2824 BAR0=false
2825 BAR1=true
2827 am__doit:
2828 @$(TRUE)
2829 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2830 am_cv_make_support_nested_variables=yes
2831 else
2832 am_cv_make_support_nested_variables=no
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2836 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2837 if test $am_cv_make_support_nested_variables = yes; then
2838 AM_V='$(V)'
2839 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2840 else
2841 AM_V=$AM_DEFAULT_VERBOSITY
2842 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2844 AM_BACKSLASH='\'
2846 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2847 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2848 # is not polluted with repeated "-I."
2849 am__isrc=' -I$(srcdir)'
2850 # test to see if srcdir already configured
2851 if test -f $srcdir/config.status; then
2852 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2856 # test whether we have cygpath
2857 if test -z "$CYGPATH_W"; then
2858 if (cygpath --version) >/dev/null 2>/dev/null; then
2859 CYGPATH_W='cygpath -w'
2860 else
2861 CYGPATH_W=echo
2866 # Define the identity of the package.
2867 PACKAGE='gdash'
2868 VERSION='20130623unstable'
2871 cat >>confdefs.h <<_ACEOF
2872 #define PACKAGE "$PACKAGE"
2873 _ACEOF
2876 cat >>confdefs.h <<_ACEOF
2877 #define VERSION "$VERSION"
2878 _ACEOF
2880 # Some tools Automake needs.
2882 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2885 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2888 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2891 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2894 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2896 # For better backward compatibility. To be removed once Automake 1.9.x
2897 # dies out for good. For more background, see:
2898 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2899 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2900 mkdir_p='$(MKDIR_P)'
2902 # We need awk for the "check" target. The system "awk" is bad on
2903 # some platforms.
2904 # Always define AMTAR for backward compatibility. Yes, it's still used
2905 # in the wild :-( We should find a proper way to deprecate it ...
2906 AMTAR='$${TAR-tar}'
2909 # We'll loop over all known methods to create a tar archive until one works.
2910 _am_tools='gnutar pax cpio none'
2912 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2919 # POSIX will say in a future version that running "rm -f" with no argument
2920 # is OK; and we want to be able to make that assumption in our Makefile
2921 # recipes. So use an aggressive probe to check that the usage we want is
2922 # actually supported "in the wild" to an acceptable degree.
2923 # See automake bug#10828.
2924 # To make any issue more visible, cause the running configure to be aborted
2925 # by default if the 'rm' program in use doesn't match our expectations; the
2926 # user can still override this though.
2927 if rm -f && rm -fr && rm -rf; then : OK; else
2928 cat >&2 <<'END'
2929 Oops!
2931 Your 'rm' program seems unable to run without file operands specified
2932 on the command line, even when the '-f' option is present. This is contrary
2933 to the behaviour of most rm programs out there, and not conforming with
2934 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
2936 Please tell bug-automake@gnu.org about your system, including the value
2937 of your $PATH and any error possibly output before this message. This
2938 can help us improve future automake versions.
2941 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
2942 echo 'Configuration will proceed anyway, since you have set the' >&2
2943 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
2944 echo >&2
2945 else
2946 cat >&2 <<'END'
2947 Aborting the configuration process, to ensure you take notice of the issue.
2949 You can download and install GNU coreutils to get an 'rm' implementation
2950 that behaves properly: <http://www.gnu.org/software/coreutils/>.
2952 If you want to complete the configuration process using your problematic
2953 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
2954 to "yes", and re-run configure.
2957 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
2960 ac_config_headers="$ac_config_headers config.h"
2962 # Check whether --enable-silent-rules was given.
2963 if test "${enable_silent_rules+set}" = set; then :
2964 enableval=$enable_silent_rules;
2967 case $enable_silent_rules in # (((
2968 yes) AM_DEFAULT_VERBOSITY=0;;
2969 no) AM_DEFAULT_VERBOSITY=1;;
2970 *) AM_DEFAULT_VERBOSITY=0;;
2971 esac
2972 am_make=${MAKE-make}
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2974 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2975 if ${am_cv_make_support_nested_variables+:} false; then :
2976 $as_echo_n "(cached) " >&6
2977 else
2978 if $as_echo 'TRUE=$(BAR$(V))
2979 BAR0=false
2980 BAR1=true
2982 am__doit:
2983 @$(TRUE)
2984 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2985 am_cv_make_support_nested_variables=yes
2986 else
2987 am_cv_make_support_nested_variables=no
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2991 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2992 if test $am_cv_make_support_nested_variables = yes; then
2993 AM_V='$(V)'
2994 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2995 else
2996 AM_V=$AM_DEFAULT_VERBOSITY
2997 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2999 AM_BACKSLASH='\'
3004 ac_ext=c
3005 ac_cpp='$CPP $CPPFLAGS'
3006 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3007 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3008 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3009 if test -n "$ac_tool_prefix"; then
3010 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3011 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3013 $as_echo_n "checking for $ac_word... " >&6; }
3014 if ${ac_cv_prog_CC+:} false; then :
3015 $as_echo_n "(cached) " >&6
3016 else
3017 if test -n "$CC"; then
3018 ac_cv_prog_CC="$CC" # Let the user override the test.
3019 else
3020 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3021 for as_dir in $PATH
3023 IFS=$as_save_IFS
3024 test -z "$as_dir" && as_dir=.
3025 for ac_exec_ext in '' $ac_executable_extensions; do
3026 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3027 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3029 break 2
3031 done
3032 done
3033 IFS=$as_save_IFS
3037 CC=$ac_cv_prog_CC
3038 if test -n "$CC"; then
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3040 $as_echo "$CC" >&6; }
3041 else
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3043 $as_echo "no" >&6; }
3048 if test -z "$ac_cv_prog_CC"; then
3049 ac_ct_CC=$CC
3050 # Extract the first word of "gcc", so it can be a program name with args.
3051 set dummy gcc; ac_word=$2
3052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3053 $as_echo_n "checking for $ac_word... " >&6; }
3054 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3055 $as_echo_n "(cached) " >&6
3056 else
3057 if test -n "$ac_ct_CC"; then
3058 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3059 else
3060 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 for as_dir in $PATH
3063 IFS=$as_save_IFS
3064 test -z "$as_dir" && as_dir=.
3065 for ac_exec_ext in '' $ac_executable_extensions; do
3066 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3067 ac_cv_prog_ac_ct_CC="gcc"
3068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3069 break 2
3071 done
3072 done
3073 IFS=$as_save_IFS
3077 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3078 if test -n "$ac_ct_CC"; then
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3080 $as_echo "$ac_ct_CC" >&6; }
3081 else
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3083 $as_echo "no" >&6; }
3086 if test "x$ac_ct_CC" = x; then
3087 CC=""
3088 else
3089 case $cross_compiling:$ac_tool_warned in
3090 yes:)
3091 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3092 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3093 ac_tool_warned=yes ;;
3094 esac
3095 CC=$ac_ct_CC
3097 else
3098 CC="$ac_cv_prog_CC"
3101 if test -z "$CC"; then
3102 if test -n "$ac_tool_prefix"; then
3103 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3104 set dummy ${ac_tool_prefix}cc; ac_word=$2
3105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3106 $as_echo_n "checking for $ac_word... " >&6; }
3107 if ${ac_cv_prog_CC+:} false; then :
3108 $as_echo_n "(cached) " >&6
3109 else
3110 if test -n "$CC"; then
3111 ac_cv_prog_CC="$CC" # Let the user override the test.
3112 else
3113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3114 for as_dir in $PATH
3116 IFS=$as_save_IFS
3117 test -z "$as_dir" && as_dir=.
3118 for ac_exec_ext in '' $ac_executable_extensions; do
3119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3120 ac_cv_prog_CC="${ac_tool_prefix}cc"
3121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3122 break 2
3124 done
3125 done
3126 IFS=$as_save_IFS
3130 CC=$ac_cv_prog_CC
3131 if test -n "$CC"; then
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3133 $as_echo "$CC" >&6; }
3134 else
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3136 $as_echo "no" >&6; }
3142 if test -z "$CC"; then
3143 # Extract the first word of "cc", so it can be a program name with args.
3144 set dummy cc; ac_word=$2
3145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3146 $as_echo_n "checking for $ac_word... " >&6; }
3147 if ${ac_cv_prog_CC+:} false; then :
3148 $as_echo_n "(cached) " >&6
3149 else
3150 if test -n "$CC"; then
3151 ac_cv_prog_CC="$CC" # Let the user override the test.
3152 else
3153 ac_prog_rejected=no
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 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3162 ac_prog_rejected=yes
3163 continue
3165 ac_cv_prog_CC="cc"
3166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3167 break 2
3169 done
3170 done
3171 IFS=$as_save_IFS
3173 if test $ac_prog_rejected = yes; then
3174 # We found a bogon in the path, so make sure we never use it.
3175 set dummy $ac_cv_prog_CC
3176 shift
3177 if test $# != 0; then
3178 # We chose a different compiler from the bogus one.
3179 # However, it has the same basename, so the bogon will be chosen
3180 # first if we set CC to just the basename; use the full file name.
3181 shift
3182 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3190 $as_echo "$CC" >&6; }
3191 else
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3193 $as_echo "no" >&6; }
3198 if test -z "$CC"; then
3199 if test -n "$ac_tool_prefix"; then
3200 for ac_prog in cl.exe
3202 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3203 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3205 $as_echo_n "checking for $ac_word... " >&6; }
3206 if ${ac_cv_prog_CC+:} false; then :
3207 $as_echo_n "(cached) " >&6
3208 else
3209 if test -n "$CC"; then
3210 ac_cv_prog_CC="$CC" # Let the user override the test.
3211 else
3212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3213 for as_dir in $PATH
3215 IFS=$as_save_IFS
3216 test -z "$as_dir" && as_dir=.
3217 for ac_exec_ext in '' $ac_executable_extensions; do
3218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3219 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3221 break 2
3223 done
3224 done
3225 IFS=$as_save_IFS
3229 CC=$ac_cv_prog_CC
3230 if test -n "$CC"; then
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3232 $as_echo "$CC" >&6; }
3233 else
3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3235 $as_echo "no" >&6; }
3239 test -n "$CC" && break
3240 done
3242 if test -z "$CC"; then
3243 ac_ct_CC=$CC
3244 for ac_prog in cl.exe
3246 # Extract the first word of "$ac_prog", so it can be a program name with args.
3247 set dummy $ac_prog; ac_word=$2
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3249 $as_echo_n "checking for $ac_word... " >&6; }
3250 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 if test -n "$ac_ct_CC"; then
3254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3255 else
3256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3257 for as_dir in $PATH
3259 IFS=$as_save_IFS
3260 test -z "$as_dir" && as_dir=.
3261 for ac_exec_ext in '' $ac_executable_extensions; do
3262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3263 ac_cv_prog_ac_ct_CC="$ac_prog"
3264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3265 break 2
3267 done
3268 done
3269 IFS=$as_save_IFS
3273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3274 if test -n "$ac_ct_CC"; then
3275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3276 $as_echo "$ac_ct_CC" >&6; }
3277 else
3278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3279 $as_echo "no" >&6; }
3283 test -n "$ac_ct_CC" && break
3284 done
3286 if test "x$ac_ct_CC" = x; then
3287 CC=""
3288 else
3289 case $cross_compiling:$ac_tool_warned in
3290 yes:)
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3292 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3293 ac_tool_warned=yes ;;
3294 esac
3295 CC=$ac_ct_CC
3302 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3303 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3304 as_fn_error $? "no acceptable C compiler found in \$PATH
3305 See \`config.log' for more details" "$LINENO" 5; }
3307 # Provide some information about the compiler.
3308 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3309 set X $ac_compile
3310 ac_compiler=$2
3311 for ac_option in --version -v -V -qversion; do
3312 { { ac_try="$ac_compiler $ac_option >&5"
3313 case "(($ac_try" in
3314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3315 *) ac_try_echo=$ac_try;;
3316 esac
3317 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3318 $as_echo "$ac_try_echo"; } >&5
3319 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3320 ac_status=$?
3321 if test -s conftest.err; then
3322 sed '10a\
3323 ... rest of stderr output deleted ...
3324 10q' conftest.err >conftest.er1
3325 cat conftest.er1 >&5
3327 rm -f conftest.er1 conftest.err
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }
3330 done
3332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3333 /* end confdefs.h. */
3336 main ()
3340 return 0;
3342 _ACEOF
3343 ac_clean_files_save=$ac_clean_files
3344 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3345 # Try to create an executable without -o first, disregard a.out.
3346 # It will help us diagnose broken compilers, and finding out an intuition
3347 # of exeext.
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3349 $as_echo_n "checking whether the C compiler works... " >&6; }
3350 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3352 # The possible output files:
3353 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3355 ac_rmfiles=
3356 for ac_file in $ac_files
3358 case $ac_file in
3359 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3360 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3361 esac
3362 done
3363 rm -f $ac_rmfiles
3365 if { { ac_try="$ac_link_default"
3366 case "(($ac_try" in
3367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3368 *) ac_try_echo=$ac_try;;
3369 esac
3370 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3371 $as_echo "$ac_try_echo"; } >&5
3372 (eval "$ac_link_default") 2>&5
3373 ac_status=$?
3374 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3375 test $ac_status = 0; }; then :
3376 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3377 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3378 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3379 # so that the user can short-circuit this test for compilers unknown to
3380 # Autoconf.
3381 for ac_file in $ac_files ''
3383 test -f "$ac_file" || continue
3384 case $ac_file in
3385 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3387 [ab].out )
3388 # We found the default executable, but exeext='' is most
3389 # certainly right.
3390 break;;
3391 *.* )
3392 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3393 then :; else
3394 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3396 # We set ac_cv_exeext here because the later test for it is not
3397 # safe: cross compilers may not add the suffix if given an `-o'
3398 # argument, so we may need to know it at that point already.
3399 # Even if this section looks crufty: it has the advantage of
3400 # actually working.
3401 break;;
3403 break;;
3404 esac
3405 done
3406 test "$ac_cv_exeext" = no && ac_cv_exeext=
3408 else
3409 ac_file=''
3411 if test -z "$ac_file"; then :
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3413 $as_echo "no" >&6; }
3414 $as_echo "$as_me: failed program was:" >&5
3415 sed 's/^/| /' conftest.$ac_ext >&5
3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3418 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3419 as_fn_error 77 "C compiler cannot create executables
3420 See \`config.log' for more details" "$LINENO" 5; }
3421 else
3422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3423 $as_echo "yes" >&6; }
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3426 $as_echo_n "checking for C compiler default output file name... " >&6; }
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3428 $as_echo "$ac_file" >&6; }
3429 ac_exeext=$ac_cv_exeext
3431 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3432 ac_clean_files=$ac_clean_files_save
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3434 $as_echo_n "checking for suffix of executables... " >&6; }
3435 if { { ac_try="$ac_link"
3436 case "(($ac_try" in
3437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3438 *) ac_try_echo=$ac_try;;
3439 esac
3440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3441 $as_echo "$ac_try_echo"; } >&5
3442 (eval "$ac_link") 2>&5
3443 ac_status=$?
3444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3445 test $ac_status = 0; }; then :
3446 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3447 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3448 # work properly (i.e., refer to `conftest.exe'), while it won't with
3449 # `rm'.
3450 for ac_file in conftest.exe conftest conftest.*; do
3451 test -f "$ac_file" || continue
3452 case $ac_file in
3453 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3454 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3455 break;;
3456 * ) break;;
3457 esac
3458 done
3459 else
3460 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3461 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3462 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3463 See \`config.log' for more details" "$LINENO" 5; }
3465 rm -f conftest conftest$ac_cv_exeext
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3467 $as_echo "$ac_cv_exeext" >&6; }
3469 rm -f conftest.$ac_ext
3470 EXEEXT=$ac_cv_exeext
3471 ac_exeext=$EXEEXT
3472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3473 /* end confdefs.h. */
3474 #include <stdio.h>
3476 main ()
3478 FILE *f = fopen ("conftest.out", "w");
3479 return ferror (f) || fclose (f) != 0;
3482 return 0;
3484 _ACEOF
3485 ac_clean_files="$ac_clean_files conftest.out"
3486 # Check that the compiler produces executables we can run. If not, either
3487 # the compiler is broken, or we cross compile.
3488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3489 $as_echo_n "checking whether we are cross compiling... " >&6; }
3490 if test "$cross_compiling" != yes; then
3491 { { ac_try="$ac_link"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3497 $as_echo "$ac_try_echo"; } >&5
3498 (eval "$ac_link") 2>&5
3499 ac_status=$?
3500 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3501 test $ac_status = 0; }
3502 if { ac_try='./conftest$ac_cv_exeext'
3503 { { case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_try") 2>&5
3510 ac_status=$?
3511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3512 test $ac_status = 0; }; }; then
3513 cross_compiling=no
3514 else
3515 if test "$cross_compiling" = maybe; then
3516 cross_compiling=yes
3517 else
3518 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3519 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3520 as_fn_error $? "cannot run C compiled programs.
3521 If you meant to cross compile, use \`--host'.
3522 See \`config.log' for more details" "$LINENO" 5; }
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3527 $as_echo "$cross_compiling" >&6; }
3529 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3530 ac_clean_files=$ac_clean_files_save
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3532 $as_echo_n "checking for suffix of object files... " >&6; }
3533 if ${ac_cv_objext+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535 else
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3540 main ()
3544 return 0;
3546 _ACEOF
3547 rm -f conftest.o conftest.obj
3548 if { { ac_try="$ac_compile"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_compile") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 for ac_file in conftest.o conftest.obj conftest.*; do
3560 test -f "$ac_file" || continue;
3561 case $ac_file in
3562 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3563 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3564 break;;
3565 esac
3566 done
3567 else
3568 $as_echo "$as_me: failed program was:" >&5
3569 sed 's/^/| /' conftest.$ac_ext >&5
3571 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3573 as_fn_error $? "cannot compute suffix of object files: cannot compile
3574 See \`config.log' for more details" "$LINENO" 5; }
3576 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3579 $as_echo "$ac_cv_objext" >&6; }
3580 OBJEXT=$ac_cv_objext
3581 ac_objext=$OBJEXT
3582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3583 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3584 if ${ac_cv_c_compiler_gnu+:} false; then :
3585 $as_echo_n "(cached) " >&6
3586 else
3587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3588 /* end confdefs.h. */
3591 main ()
3593 #ifndef __GNUC__
3594 choke me
3595 #endif
3598 return 0;
3600 _ACEOF
3601 if ac_fn_c_try_compile "$LINENO"; then :
3602 ac_compiler_gnu=yes
3603 else
3604 ac_compiler_gnu=no
3606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3607 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3611 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3612 if test $ac_compiler_gnu = yes; then
3613 GCC=yes
3614 else
3615 GCC=
3617 ac_test_CFLAGS=${CFLAGS+set}
3618 ac_save_CFLAGS=$CFLAGS
3619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3620 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3621 if ${ac_cv_prog_cc_g+:} false; then :
3622 $as_echo_n "(cached) " >&6
3623 else
3624 ac_save_c_werror_flag=$ac_c_werror_flag
3625 ac_c_werror_flag=yes
3626 ac_cv_prog_cc_g=no
3627 CFLAGS="-g"
3628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3629 /* end confdefs.h. */
3632 main ()
3636 return 0;
3638 _ACEOF
3639 if ac_fn_c_try_compile "$LINENO"; then :
3640 ac_cv_prog_cc_g=yes
3641 else
3642 CFLAGS=""
3643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3644 /* end confdefs.h. */
3647 main ()
3651 return 0;
3653 _ACEOF
3654 if ac_fn_c_try_compile "$LINENO"; then :
3656 else
3657 ac_c_werror_flag=$ac_save_c_werror_flag
3658 CFLAGS="-g"
3659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3660 /* end confdefs.h. */
3663 main ()
3667 return 0;
3669 _ACEOF
3670 if ac_fn_c_try_compile "$LINENO"; then :
3671 ac_cv_prog_cc_g=yes
3673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3678 ac_c_werror_flag=$ac_save_c_werror_flag
3680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3681 $as_echo "$ac_cv_prog_cc_g" >&6; }
3682 if test "$ac_test_CFLAGS" = set; then
3683 CFLAGS=$ac_save_CFLAGS
3684 elif test $ac_cv_prog_cc_g = yes; then
3685 if test "$GCC" = yes; then
3686 CFLAGS="-g -O2"
3687 else
3688 CFLAGS="-g"
3690 else
3691 if test "$GCC" = yes; then
3692 CFLAGS="-O2"
3693 else
3694 CFLAGS=
3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3698 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3699 if ${ac_cv_prog_cc_c89+:} false; then :
3700 $as_echo_n "(cached) " >&6
3701 else
3702 ac_cv_prog_cc_c89=no
3703 ac_save_CC=$CC
3704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3705 /* end confdefs.h. */
3706 #include <stdarg.h>
3707 #include <stdio.h>
3708 struct stat;
3709 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3710 struct buf { int x; };
3711 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3712 static char *e (p, i)
3713 char **p;
3714 int i;
3716 return p[i];
3718 static char *f (char * (*g) (char **, int), char **p, ...)
3720 char *s;
3721 va_list v;
3722 va_start (v,p);
3723 s = g (p, va_arg (v,int));
3724 va_end (v);
3725 return s;
3728 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3729 function prototypes and stuff, but not '\xHH' hex character constants.
3730 These don't provoke an error unfortunately, instead are silently treated
3731 as 'x'. The following induces an error, until -std is added to get
3732 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3733 array size at least. It's necessary to write '\x00'==0 to get something
3734 that's true only with -std. */
3735 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3737 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3738 inside strings and character constants. */
3739 #define FOO(x) 'x'
3740 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3742 int test (int i, double x);
3743 struct s1 {int (*f) (int a);};
3744 struct s2 {int (*f) (double a);};
3745 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3746 int argc;
3747 char **argv;
3749 main ()
3751 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3753 return 0;
3755 _ACEOF
3756 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3757 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3759 CC="$ac_save_CC $ac_arg"
3760 if ac_fn_c_try_compile "$LINENO"; then :
3761 ac_cv_prog_cc_c89=$ac_arg
3763 rm -f core conftest.err conftest.$ac_objext
3764 test "x$ac_cv_prog_cc_c89" != "xno" && break
3765 done
3766 rm -f conftest.$ac_ext
3767 CC=$ac_save_CC
3770 # AC_CACHE_VAL
3771 case "x$ac_cv_prog_cc_c89" in
3773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3774 $as_echo "none needed" >&6; } ;;
3775 xno)
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3777 $as_echo "unsupported" >&6; } ;;
3779 CC="$CC $ac_cv_prog_cc_c89"
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3781 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3782 esac
3783 if test "x$ac_cv_prog_cc_c89" != xno; then :
3787 ac_ext=c
3788 ac_cpp='$CPP $CPPFLAGS'
3789 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3790 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3791 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3793 ac_ext=c
3794 ac_cpp='$CPP $CPPFLAGS'
3795 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3796 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3797 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3799 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3800 if ${am_cv_prog_cc_c_o+:} false; then :
3801 $as_echo_n "(cached) " >&6
3802 else
3803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3804 /* end confdefs.h. */
3807 main ()
3811 return 0;
3813 _ACEOF
3814 # Make sure it works both with $CC and with simple cc.
3815 # Following AC_PROG_CC_C_O, we do the test twice because some
3816 # compilers refuse to overwrite an existing .o file with -o,
3817 # though they will create one.
3818 am_cv_prog_cc_c_o=yes
3819 for am_i in 1 2; do
3820 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3821 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3822 ac_status=$?
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } \
3825 && test -f conftest2.$ac_objext; then
3826 : OK
3827 else
3828 am_cv_prog_cc_c_o=no
3829 break
3831 done
3832 rm -f core conftest*
3833 unset am_i
3835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3836 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3837 if test "$am_cv_prog_cc_c_o" != yes; then
3838 # Losing compiler, so override with the script.
3839 # FIXME: It is wrong to rewrite CC.
3840 # But if we don't then we get into trouble of one sort or another.
3841 # A longer-term fix would be to have automake use am__CC in this case,
3842 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3843 CC="$am_aux_dir/compile $CC"
3845 ac_ext=c
3846 ac_cpp='$CPP $CPPFLAGS'
3847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3851 DEPDIR="${am__leading_dot}deps"
3853 ac_config_commands="$ac_config_commands depfiles"
3856 am_make=${MAKE-make}
3857 cat > confinc << 'END'
3858 am__doit:
3859 @echo this is the am__doit target
3860 .PHONY: am__doit
3862 # If we don't find an include directive, just comment out the code.
3863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3864 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3865 am__include="#"
3866 am__quote=
3867 _am_result=none
3868 # First try GNU make style include.
3869 echo "include confinc" > confmf
3870 # Ignore all kinds of additional output from 'make'.
3871 case `$am_make -s -f confmf 2> /dev/null` in #(
3872 *the\ am__doit\ target*)
3873 am__include=include
3874 am__quote=
3875 _am_result=GNU
3877 esac
3878 # Now try BSD make style include.
3879 if test "$am__include" = "#"; then
3880 echo '.include "confinc"' > confmf
3881 case `$am_make -s -f confmf 2> /dev/null` in #(
3882 *the\ am__doit\ target*)
3883 am__include=.include
3884 am__quote="\""
3885 _am_result=BSD
3887 esac
3891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3892 $as_echo "$_am_result" >&6; }
3893 rm -f confinc confmf
3895 # Check whether --enable-dependency-tracking was given.
3896 if test "${enable_dependency_tracking+set}" = set; then :
3897 enableval=$enable_dependency_tracking;
3900 if test "x$enable_dependency_tracking" != xno; then
3901 am_depcomp="$ac_aux_dir/depcomp"
3902 AMDEPBACKSLASH='\'
3903 am__nodep='_no'
3905 if test "x$enable_dependency_tracking" != xno; then
3906 AMDEP_TRUE=
3907 AMDEP_FALSE='#'
3908 else
3909 AMDEP_TRUE='#'
3910 AMDEP_FALSE=
3915 depcc="$CC" am_compiler_list=
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3918 $as_echo_n "checking dependency style of $depcc... " >&6; }
3919 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3920 $as_echo_n "(cached) " >&6
3921 else
3922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3923 # We make a subdir and do the tests there. Otherwise we can end up
3924 # making bogus files that we don't know about and never remove. For
3925 # instance it was reported that on HP-UX the gcc test will end up
3926 # making a dummy file named 'D' -- because '-MD' means "put the output
3927 # in D".
3928 rm -rf conftest.dir
3929 mkdir conftest.dir
3930 # Copy depcomp to subdir because otherwise we won't find it if we're
3931 # using a relative directory.
3932 cp "$am_depcomp" conftest.dir
3933 cd conftest.dir
3934 # We will build objects and dependencies in a subdirectory because
3935 # it helps to detect inapplicable dependency modes. For instance
3936 # both Tru64's cc and ICC support -MD to output dependencies as a
3937 # side effect of compilation, but ICC will put the dependencies in
3938 # the current directory while Tru64 will put them in the object
3939 # directory.
3940 mkdir sub
3942 am_cv_CC_dependencies_compiler_type=none
3943 if test "$am_compiler_list" = ""; then
3944 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3946 am__universal=false
3947 case " $depcc " in #(
3948 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3949 esac
3951 for depmode in $am_compiler_list; do
3952 # Setup a source with many dependencies, because some compilers
3953 # like to wrap large dependency lists on column 80 (with \), and
3954 # we should not choose a depcomp mode which is confused by this.
3956 # We need to recreate these files for each test, as the compiler may
3957 # overwrite some of them when testing with obscure command lines.
3958 # This happens at least with the AIX C compiler.
3959 : > sub/conftest.c
3960 for i in 1 2 3 4 5 6; do
3961 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3962 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3963 # Solaris 10 /bin/sh.
3964 echo '/* dummy */' > sub/conftst$i.h
3965 done
3966 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3968 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3969 # mode. It turns out that the SunPro C++ compiler does not properly
3970 # handle '-M -o', and we need to detect this. Also, some Intel
3971 # versions had trouble with output in subdirs.
3972 am__obj=sub/conftest.${OBJEXT-o}
3973 am__minus_obj="-o $am__obj"
3974 case $depmode in
3975 gcc)
3976 # This depmode causes a compiler race in universal mode.
3977 test "$am__universal" = false || continue
3979 nosideeffect)
3980 # After this tag, mechanisms are not by side-effect, so they'll
3981 # only be used when explicitly requested.
3982 if test "x$enable_dependency_tracking" = xyes; then
3983 continue
3984 else
3985 break
3988 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3989 # This compiler won't grok '-c -o', but also, the minuso test has
3990 # not run yet. These depmodes are late enough in the game, and
3991 # so weak that their functioning should not be impacted.
3992 am__obj=conftest.${OBJEXT-o}
3993 am__minus_obj=
3995 none) break ;;
3996 esac
3997 if depmode=$depmode \
3998 source=sub/conftest.c object=$am__obj \
3999 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4000 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4001 >/dev/null 2>conftest.err &&
4002 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4003 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4004 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4005 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4006 # icc doesn't choke on unknown options, it will just issue warnings
4007 # or remarks (even with -Werror). So we grep stderr for any message
4008 # that says an option was ignored or not supported.
4009 # When given -MP, icc 7.0 and 7.1 complain thusly:
4010 # icc: Command line warning: ignoring option '-M'; no argument required
4011 # The diagnosis changed in icc 8.0:
4012 # icc: Command line remark: option '-MP' not supported
4013 if (grep 'ignoring option' conftest.err ||
4014 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4015 am_cv_CC_dependencies_compiler_type=$depmode
4016 break
4019 done
4021 cd ..
4022 rm -rf conftest.dir
4023 else
4024 am_cv_CC_dependencies_compiler_type=none
4028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4029 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4030 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4033 test "x$enable_dependency_tracking" != xno \
4034 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4035 am__fastdepCC_TRUE=
4036 am__fastdepCC_FALSE='#'
4037 else
4038 am__fastdepCC_TRUE='#'
4039 am__fastdepCC_FALSE=
4043 ac_ext=cpp
4044 ac_cpp='$CXXCPP $CPPFLAGS'
4045 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4046 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4047 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4048 if test -z "$CXX"; then
4049 if test -n "$CCC"; then
4050 CXX=$CCC
4051 else
4052 if test -n "$ac_tool_prefix"; then
4053 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if ${ac_cv_prog_CXX+:} false; then :
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$CXX"; then
4063 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4072 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4076 done
4077 done
4078 IFS=$as_save_IFS
4082 CXX=$ac_cv_prog_CXX
4083 if test -n "$CXX"; then
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4085 $as_echo "$CXX" >&6; }
4086 else
4087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4088 $as_echo "no" >&6; }
4092 test -n "$CXX" && break
4093 done
4095 if test -z "$CXX"; then
4096 ac_ct_CXX=$CXX
4097 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_CXX"; then
4107 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4116 ac_cv_prog_ac_ct_CXX="$ac_prog"
4117 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4120 done
4121 done
4122 IFS=$as_save_IFS
4126 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4127 if test -n "$ac_ct_CXX"; then
4128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4129 $as_echo "$ac_ct_CXX" >&6; }
4130 else
4131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4132 $as_echo "no" >&6; }
4136 test -n "$ac_ct_CXX" && break
4137 done
4139 if test "x$ac_ct_CXX" = x; then
4140 CXX="g++"
4141 else
4142 case $cross_compiling:$ac_tool_warned in
4143 yes:)
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned=yes ;;
4147 esac
4148 CXX=$ac_ct_CXX
4154 # Provide some information about the compiler.
4155 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4156 set X $ac_compile
4157 ac_compiler=$2
4158 for ac_option in --version -v -V -qversion; do
4159 { { ac_try="$ac_compiler $ac_option >&5"
4160 case "(($ac_try" in
4161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4162 *) ac_try_echo=$ac_try;;
4163 esac
4164 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4165 $as_echo "$ac_try_echo"; } >&5
4166 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4167 ac_status=$?
4168 if test -s conftest.err; then
4169 sed '10a\
4170 ... rest of stderr output deleted ...
4171 10q' conftest.err >conftest.er1
4172 cat conftest.er1 >&5
4174 rm -f conftest.er1 conftest.err
4175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4176 test $ac_status = 0; }
4177 done
4179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4180 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4181 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4182 $as_echo_n "(cached) " >&6
4183 else
4184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4185 /* end confdefs.h. */
4188 main ()
4190 #ifndef __GNUC__
4191 choke me
4192 #endif
4195 return 0;
4197 _ACEOF
4198 if ac_fn_cxx_try_compile "$LINENO"; then :
4199 ac_compiler_gnu=yes
4200 else
4201 ac_compiler_gnu=no
4203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4204 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4208 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4209 if test $ac_compiler_gnu = yes; then
4210 GXX=yes
4211 else
4212 GXX=
4214 ac_test_CXXFLAGS=${CXXFLAGS+set}
4215 ac_save_CXXFLAGS=$CXXFLAGS
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4217 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4218 if ${ac_cv_prog_cxx_g+:} false; then :
4219 $as_echo_n "(cached) " >&6
4220 else
4221 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4222 ac_cxx_werror_flag=yes
4223 ac_cv_prog_cxx_g=no
4224 CXXFLAGS="-g"
4225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4226 /* end confdefs.h. */
4229 main ()
4233 return 0;
4235 _ACEOF
4236 if ac_fn_cxx_try_compile "$LINENO"; then :
4237 ac_cv_prog_cxx_g=yes
4238 else
4239 CXXFLAGS=""
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4244 main ()
4248 return 0;
4250 _ACEOF
4251 if ac_fn_cxx_try_compile "$LINENO"; then :
4253 else
4254 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4255 CXXFLAGS="-g"
4256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257 /* end confdefs.h. */
4260 main ()
4264 return 0;
4266 _ACEOF
4267 if ac_fn_cxx_try_compile "$LINENO"; then :
4268 ac_cv_prog_cxx_g=yes
4270 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4274 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4275 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4278 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4279 if test "$ac_test_CXXFLAGS" = set; then
4280 CXXFLAGS=$ac_save_CXXFLAGS
4281 elif test $ac_cv_prog_cxx_g = yes; then
4282 if test "$GXX" = yes; then
4283 CXXFLAGS="-g -O2"
4284 else
4285 CXXFLAGS="-g"
4287 else
4288 if test "$GXX" = yes; then
4289 CXXFLAGS="-O2"
4290 else
4291 CXXFLAGS=
4294 ac_ext=c
4295 ac_cpp='$CPP $CPPFLAGS'
4296 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4297 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4298 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4300 depcc="$CXX" am_compiler_list=
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4303 $as_echo_n "checking dependency style of $depcc... " >&6; }
4304 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4305 $as_echo_n "(cached) " >&6
4306 else
4307 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4308 # We make a subdir and do the tests there. Otherwise we can end up
4309 # making bogus files that we don't know about and never remove. For
4310 # instance it was reported that on HP-UX the gcc test will end up
4311 # making a dummy file named 'D' -- because '-MD' means "put the output
4312 # in D".
4313 rm -rf conftest.dir
4314 mkdir conftest.dir
4315 # Copy depcomp to subdir because otherwise we won't find it if we're
4316 # using a relative directory.
4317 cp "$am_depcomp" conftest.dir
4318 cd conftest.dir
4319 # We will build objects and dependencies in a subdirectory because
4320 # it helps to detect inapplicable dependency modes. For instance
4321 # both Tru64's cc and ICC support -MD to output dependencies as a
4322 # side effect of compilation, but ICC will put the dependencies in
4323 # the current directory while Tru64 will put them in the object
4324 # directory.
4325 mkdir sub
4327 am_cv_CXX_dependencies_compiler_type=none
4328 if test "$am_compiler_list" = ""; then
4329 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4331 am__universal=false
4332 case " $depcc " in #(
4333 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4334 esac
4336 for depmode in $am_compiler_list; do
4337 # Setup a source with many dependencies, because some compilers
4338 # like to wrap large dependency lists on column 80 (with \), and
4339 # we should not choose a depcomp mode which is confused by this.
4341 # We need to recreate these files for each test, as the compiler may
4342 # overwrite some of them when testing with obscure command lines.
4343 # This happens at least with the AIX C compiler.
4344 : > sub/conftest.c
4345 for i in 1 2 3 4 5 6; do
4346 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4347 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4348 # Solaris 10 /bin/sh.
4349 echo '/* dummy */' > sub/conftst$i.h
4350 done
4351 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4353 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4354 # mode. It turns out that the SunPro C++ compiler does not properly
4355 # handle '-M -o', and we need to detect this. Also, some Intel
4356 # versions had trouble with output in subdirs.
4357 am__obj=sub/conftest.${OBJEXT-o}
4358 am__minus_obj="-o $am__obj"
4359 case $depmode in
4360 gcc)
4361 # This depmode causes a compiler race in universal mode.
4362 test "$am__universal" = false || continue
4364 nosideeffect)
4365 # After this tag, mechanisms are not by side-effect, so they'll
4366 # only be used when explicitly requested.
4367 if test "x$enable_dependency_tracking" = xyes; then
4368 continue
4369 else
4370 break
4373 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4374 # This compiler won't grok '-c -o', but also, the minuso test has
4375 # not run yet. These depmodes are late enough in the game, and
4376 # so weak that their functioning should not be impacted.
4377 am__obj=conftest.${OBJEXT-o}
4378 am__minus_obj=
4380 none) break ;;
4381 esac
4382 if depmode=$depmode \
4383 source=sub/conftest.c object=$am__obj \
4384 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4385 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4386 >/dev/null 2>conftest.err &&
4387 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4388 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4389 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4390 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4391 # icc doesn't choke on unknown options, it will just issue warnings
4392 # or remarks (even with -Werror). So we grep stderr for any message
4393 # that says an option was ignored or not supported.
4394 # When given -MP, icc 7.0 and 7.1 complain thusly:
4395 # icc: Command line warning: ignoring option '-M'; no argument required
4396 # The diagnosis changed in icc 8.0:
4397 # icc: Command line remark: option '-MP' not supported
4398 if (grep 'ignoring option' conftest.err ||
4399 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4400 am_cv_CXX_dependencies_compiler_type=$depmode
4401 break
4404 done
4406 cd ..
4407 rm -rf conftest.dir
4408 else
4409 am_cv_CXX_dependencies_compiler_type=none
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4414 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4415 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4418 test "x$enable_dependency_tracking" != xno \
4419 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4420 am__fastdepCXX_TRUE=
4421 am__fastdepCXX_FALSE='#'
4422 else
4423 am__fastdepCXX_TRUE='#'
4424 am__fastdepCXX_FALSE=
4436 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4437 if test -n "$ac_tool_prefix"; then
4438 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4439 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4441 $as_echo_n "checking for $ac_word... " >&6; }
4442 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4443 $as_echo_n "(cached) " >&6
4444 else
4445 case $PKG_CONFIG in
4446 [\\/]* | ?:[\\/]*)
4447 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_exec_ext in '' $ac_executable_extensions; do
4456 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4457 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4459 break 2
4461 done
4462 done
4463 IFS=$as_save_IFS
4466 esac
4468 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4469 if test -n "$PKG_CONFIG"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4471 $as_echo "$PKG_CONFIG" >&6; }
4472 else
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test -z "$ac_cv_path_PKG_CONFIG"; then
4480 ac_pt_PKG_CONFIG=$PKG_CONFIG
4481 # Extract the first word of "pkg-config", so it can be a program name with args.
4482 set dummy pkg-config; ac_word=$2
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4484 $as_echo_n "checking for $ac_word... " >&6; }
4485 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4486 $as_echo_n "(cached) " >&6
4487 else
4488 case $ac_pt_PKG_CONFIG in
4489 [\\/]* | ?:[\\/]*)
4490 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_exec_ext in '' $ac_executable_extensions; do
4499 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4500 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4501 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4502 break 2
4504 done
4505 done
4506 IFS=$as_save_IFS
4509 esac
4511 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4512 if test -n "$ac_pt_PKG_CONFIG"; then
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4514 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4515 else
4516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4517 $as_echo "no" >&6; }
4520 if test "x$ac_pt_PKG_CONFIG" = x; then
4521 PKG_CONFIG=""
4522 else
4523 case $cross_compiling:$ac_tool_warned in
4524 yes:)
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4527 ac_tool_warned=yes ;;
4528 esac
4529 PKG_CONFIG=$ac_pt_PKG_CONFIG
4531 else
4532 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4536 if test -n "$PKG_CONFIG"; then
4537 _pkg_min_version=0.9.0
4538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4539 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4540 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4542 $as_echo "yes" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4546 PKG_CONFIG=""
4551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4552 $as_echo_n "checking for library containing strerror... " >&6; }
4553 if ${ac_cv_search_strerror+:} false; then :
4554 $as_echo_n "(cached) " >&6
4555 else
4556 ac_func_search_save_LIBS=$LIBS
4557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4558 /* end confdefs.h. */
4560 /* Override any GCC internal prototype to avoid an error.
4561 Use char because int might match the return type of a GCC
4562 builtin and then its argument prototype would still apply. */
4563 #ifdef __cplusplus
4564 extern "C"
4565 #endif
4566 char strerror ();
4568 main ()
4570 return strerror ();
4572 return 0;
4574 _ACEOF
4575 for ac_lib in '' cposix; do
4576 if test -z "$ac_lib"; then
4577 ac_res="none required"
4578 else
4579 ac_res=-l$ac_lib
4580 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4582 if ac_fn_c_try_link "$LINENO"; then :
4583 ac_cv_search_strerror=$ac_res
4585 rm -f core conftest.err conftest.$ac_objext \
4586 conftest$ac_exeext
4587 if ${ac_cv_search_strerror+:} false; then :
4588 break
4590 done
4591 if ${ac_cv_search_strerror+:} false; then :
4593 else
4594 ac_cv_search_strerror=no
4596 rm conftest.$ac_ext
4597 LIBS=$ac_func_search_save_LIBS
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4600 $as_echo "$ac_cv_search_strerror" >&6; }
4601 ac_res=$ac_cv_search_strerror
4602 if test "$ac_res" != no; then :
4603 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4607 ac_ext=c
4608 ac_cpp='$CPP $CPPFLAGS'
4609 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4610 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4611 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4613 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4614 # On Suns, sometimes $CPP names a directory.
4615 if test -n "$CPP" && test -d "$CPP"; then
4616 CPP=
4618 if test -z "$CPP"; then
4619 if ${ac_cv_prog_CPP+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 # Double quotes because CPP needs to be expanded
4623 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4625 ac_preproc_ok=false
4626 for ac_c_preproc_warn_flag in '' yes
4628 # Use a header file that comes with gcc, so configuring glibc
4629 # with a fresh cross-compiler works.
4630 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4631 # <limits.h> exists even on freestanding compilers.
4632 # On the NeXT, cc -E runs the code through the compiler's parser,
4633 # not just through cpp. "Syntax error" is here to catch this case.
4634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4635 /* end confdefs.h. */
4636 #ifdef __STDC__
4637 # include <limits.h>
4638 #else
4639 # include <assert.h>
4640 #endif
4641 Syntax error
4642 _ACEOF
4643 if ac_fn_c_try_cpp "$LINENO"; then :
4645 else
4646 # Broken: fails on valid input.
4647 continue
4649 rm -f conftest.err conftest.i conftest.$ac_ext
4651 # OK, works on sane cases. Now check whether nonexistent headers
4652 # can be detected and how.
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h. */
4655 #include <ac_nonexistent.h>
4656 _ACEOF
4657 if ac_fn_c_try_cpp "$LINENO"; then :
4658 # Broken: success on invalid input.
4659 continue
4660 else
4661 # Passes both tests.
4662 ac_preproc_ok=:
4663 break
4665 rm -f conftest.err conftest.i conftest.$ac_ext
4667 done
4668 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4669 rm -f conftest.i conftest.err conftest.$ac_ext
4670 if $ac_preproc_ok; then :
4671 break
4674 done
4675 ac_cv_prog_CPP=$CPP
4678 CPP=$ac_cv_prog_CPP
4679 else
4680 ac_cv_prog_CPP=$CPP
4682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4683 $as_echo "$CPP" >&6; }
4684 ac_preproc_ok=false
4685 for ac_c_preproc_warn_flag in '' yes
4687 # Use a header file that comes with gcc, so configuring glibc
4688 # with a fresh cross-compiler works.
4689 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4690 # <limits.h> exists even on freestanding compilers.
4691 # On the NeXT, cc -E runs the code through the compiler's parser,
4692 # not just through cpp. "Syntax error" is here to catch this case.
4693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4694 /* end confdefs.h. */
4695 #ifdef __STDC__
4696 # include <limits.h>
4697 #else
4698 # include <assert.h>
4699 #endif
4700 Syntax error
4701 _ACEOF
4702 if ac_fn_c_try_cpp "$LINENO"; then :
4704 else
4705 # Broken: fails on valid input.
4706 continue
4708 rm -f conftest.err conftest.i conftest.$ac_ext
4710 # OK, works on sane cases. Now check whether nonexistent headers
4711 # can be detected and how.
4712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4713 /* end confdefs.h. */
4714 #include <ac_nonexistent.h>
4715 _ACEOF
4716 if ac_fn_c_try_cpp "$LINENO"; then :
4717 # Broken: success on invalid input.
4718 continue
4719 else
4720 # Passes both tests.
4721 ac_preproc_ok=:
4722 break
4724 rm -f conftest.err conftest.i conftest.$ac_ext
4726 done
4727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4728 rm -f conftest.i conftest.err conftest.$ac_ext
4729 if $ac_preproc_ok; then :
4731 else
4732 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4733 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4734 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4735 See \`config.log' for more details" "$LINENO" 5; }
4738 ac_ext=c
4739 ac_cpp='$CPP $CPPFLAGS'
4740 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4741 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4742 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4746 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4747 if ${ac_cv_path_GREP+:} false; then :
4748 $as_echo_n "(cached) " >&6
4749 else
4750 if test -z "$GREP"; then
4751 ac_path_GREP_found=false
4752 # Loop through the user's path and test for each of PROGNAME-LIST
4753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4754 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4756 IFS=$as_save_IFS
4757 test -z "$as_dir" && as_dir=.
4758 for ac_prog in grep ggrep; do
4759 for ac_exec_ext in '' $ac_executable_extensions; do
4760 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4761 as_fn_executable_p "$ac_path_GREP" || continue
4762 # Check for GNU ac_path_GREP and select it if it is found.
4763 # Check for GNU $ac_path_GREP
4764 case `"$ac_path_GREP" --version 2>&1` in
4765 *GNU*)
4766 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4768 ac_count=0
4769 $as_echo_n 0123456789 >"conftest.in"
4770 while :
4772 cat "conftest.in" "conftest.in" >"conftest.tmp"
4773 mv "conftest.tmp" "conftest.in"
4774 cp "conftest.in" "conftest.nl"
4775 $as_echo 'GREP' >> "conftest.nl"
4776 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4777 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4778 as_fn_arith $ac_count + 1 && ac_count=$as_val
4779 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4780 # Best one so far, save it but keep looking for a better one
4781 ac_cv_path_GREP="$ac_path_GREP"
4782 ac_path_GREP_max=$ac_count
4784 # 10*(2^10) chars as input seems more than enough
4785 test $ac_count -gt 10 && break
4786 done
4787 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4788 esac
4790 $ac_path_GREP_found && break 3
4791 done
4792 done
4793 done
4794 IFS=$as_save_IFS
4795 if test -z "$ac_cv_path_GREP"; then
4796 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4798 else
4799 ac_cv_path_GREP=$GREP
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4804 $as_echo "$ac_cv_path_GREP" >&6; }
4805 GREP="$ac_cv_path_GREP"
4808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4809 $as_echo_n "checking for egrep... " >&6; }
4810 if ${ac_cv_path_EGREP+:} false; then :
4811 $as_echo_n "(cached) " >&6
4812 else
4813 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4814 then ac_cv_path_EGREP="$GREP -E"
4815 else
4816 if test -z "$EGREP"; then
4817 ac_path_EGREP_found=false
4818 # Loop through the user's path and test for each of PROGNAME-LIST
4819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4820 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4822 IFS=$as_save_IFS
4823 test -z "$as_dir" && as_dir=.
4824 for ac_prog in egrep; do
4825 for ac_exec_ext in '' $ac_executable_extensions; do
4826 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4827 as_fn_executable_p "$ac_path_EGREP" || continue
4828 # Check for GNU ac_path_EGREP and select it if it is found.
4829 # Check for GNU $ac_path_EGREP
4830 case `"$ac_path_EGREP" --version 2>&1` in
4831 *GNU*)
4832 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4834 ac_count=0
4835 $as_echo_n 0123456789 >"conftest.in"
4836 while :
4838 cat "conftest.in" "conftest.in" >"conftest.tmp"
4839 mv "conftest.tmp" "conftest.in"
4840 cp "conftest.in" "conftest.nl"
4841 $as_echo 'EGREP' >> "conftest.nl"
4842 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4843 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4844 as_fn_arith $ac_count + 1 && ac_count=$as_val
4845 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4846 # Best one so far, save it but keep looking for a better one
4847 ac_cv_path_EGREP="$ac_path_EGREP"
4848 ac_path_EGREP_max=$ac_count
4850 # 10*(2^10) chars as input seems more than enough
4851 test $ac_count -gt 10 && break
4852 done
4853 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4854 esac
4856 $ac_path_EGREP_found && break 3
4857 done
4858 done
4859 done
4860 IFS=$as_save_IFS
4861 if test -z "$ac_cv_path_EGREP"; then
4862 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4864 else
4865 ac_cv_path_EGREP=$EGREP
4870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4871 $as_echo "$ac_cv_path_EGREP" >&6; }
4872 EGREP="$ac_cv_path_EGREP"
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4876 $as_echo_n "checking for ANSI C header files... " >&6; }
4877 if ${ac_cv_header_stdc+:} false; then :
4878 $as_echo_n "(cached) " >&6
4879 else
4880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4881 /* end confdefs.h. */
4882 #include <stdlib.h>
4883 #include <stdarg.h>
4884 #include <string.h>
4885 #include <float.h>
4888 main ()
4892 return 0;
4894 _ACEOF
4895 if ac_fn_c_try_compile "$LINENO"; then :
4896 ac_cv_header_stdc=yes
4897 else
4898 ac_cv_header_stdc=no
4900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4902 if test $ac_cv_header_stdc = yes; then
4903 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4905 /* end confdefs.h. */
4906 #include <string.h>
4908 _ACEOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "memchr" >/dev/null 2>&1; then :
4912 else
4913 ac_cv_header_stdc=no
4915 rm -f conftest*
4919 if test $ac_cv_header_stdc = yes; then
4920 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4922 /* end confdefs.h. */
4923 #include <stdlib.h>
4925 _ACEOF
4926 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4927 $EGREP "free" >/dev/null 2>&1; then :
4929 else
4930 ac_cv_header_stdc=no
4932 rm -f conftest*
4936 if test $ac_cv_header_stdc = yes; then
4937 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4938 if test "$cross_compiling" = yes; then :
4940 else
4941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4942 /* end confdefs.h. */
4943 #include <ctype.h>
4944 #include <stdlib.h>
4945 #if ((' ' & 0x0FF) == 0x020)
4946 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4947 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4948 #else
4949 # define ISLOWER(c) \
4950 (('a' <= (c) && (c) <= 'i') \
4951 || ('j' <= (c) && (c) <= 'r') \
4952 || ('s' <= (c) && (c) <= 'z'))
4953 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4954 #endif
4956 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4958 main ()
4960 int i;
4961 for (i = 0; i < 256; i++)
4962 if (XOR (islower (i), ISLOWER (i))
4963 || toupper (i) != TOUPPER (i))
4964 return 2;
4965 return 0;
4967 _ACEOF
4968 if ac_fn_c_try_run "$LINENO"; then :
4970 else
4971 ac_cv_header_stdc=no
4973 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4974 conftest.$ac_objext conftest.beam conftest.$ac_ext
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4980 $as_echo "$ac_cv_header_stdc" >&6; }
4981 if test $ac_cv_header_stdc = yes; then
4983 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4988 for ac_func in setlocale
4989 do :
4990 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4991 if test "x$ac_cv_func_setlocale" = xyes; then :
4992 cat >>confdefs.h <<_ACEOF
4993 #define HAVE_SETLOCALE 1
4994 _ACEOF
4997 done
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5001 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5002 if ${ac_cv_path_SED+:} false; then :
5003 $as_echo_n "(cached) " >&6
5004 else
5005 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5006 for ac_i in 1 2 3 4 5 6 7; do
5007 ac_script="$ac_script$as_nl$ac_script"
5008 done
5009 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5010 { ac_script=; unset ac_script;}
5011 if test -z "$SED"; then
5012 ac_path_SED_found=false
5013 # Loop through the user's path and test for each of PROGNAME-LIST
5014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5015 for as_dir in $PATH
5017 IFS=$as_save_IFS
5018 test -z "$as_dir" && as_dir=.
5019 for ac_prog in sed gsed; do
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5022 as_fn_executable_p "$ac_path_SED" || continue
5023 # Check for GNU ac_path_SED and select it if it is found.
5024 # Check for GNU $ac_path_SED
5025 case `"$ac_path_SED" --version 2>&1` in
5026 *GNU*)
5027 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5029 ac_count=0
5030 $as_echo_n 0123456789 >"conftest.in"
5031 while :
5033 cat "conftest.in" "conftest.in" >"conftest.tmp"
5034 mv "conftest.tmp" "conftest.in"
5035 cp "conftest.in" "conftest.nl"
5036 $as_echo '' >> "conftest.nl"
5037 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5038 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5039 as_fn_arith $ac_count + 1 && ac_count=$as_val
5040 if test $ac_count -gt ${ac_path_SED_max-0}; then
5041 # Best one so far, save it but keep looking for a better one
5042 ac_cv_path_SED="$ac_path_SED"
5043 ac_path_SED_max=$ac_count
5045 # 10*(2^10) chars as input seems more than enough
5046 test $ac_count -gt 10 && break
5047 done
5048 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5049 esac
5051 $ac_path_SED_found && break 3
5052 done
5053 done
5054 done
5055 IFS=$as_save_IFS
5056 if test -z "$ac_cv_path_SED"; then
5057 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5059 else
5060 ac_cv_path_SED=$SED
5064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5065 $as_echo "$ac_cv_path_SED" >&6; }
5066 SED="$ac_cv_path_SED"
5067 rm -f conftest.sed
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
5071 $as_echo_n "checking whether NLS is requested... " >&6; }
5072 # Check whether --enable-nls was given.
5073 if test "${enable_nls+set}" = set; then :
5074 enableval=$enable_nls; USE_NLS=$enableval
5075 else
5076 USE_NLS=yes
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
5080 $as_echo "$USE_NLS" >&6; }
5085 GETTEXT_MACRO_VERSION=0.18
5090 # Prepare PATH_SEPARATOR.
5091 # The user is always right.
5092 if test "${PATH_SEPARATOR+set}" != set; then
5093 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5094 # contains only /bin. Note that ksh looks also at the FPATH variable,
5095 # so we have to set that as well for the test.
5096 PATH_SEPARATOR=:
5097 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5098 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5099 || PATH_SEPARATOR=';'
5103 # Find out how to test for executable files. Don't use a zero-byte file,
5104 # as systems may use methods other than mode bits to determine executability.
5105 cat >conf$$.file <<_ASEOF
5106 #! /bin/sh
5107 exit 0
5108 _ASEOF
5109 chmod +x conf$$.file
5110 if test -x conf$$.file >/dev/null 2>&1; then
5111 ac_executable_p="test -x"
5112 else
5113 ac_executable_p="test -f"
5115 rm -f conf$$.file
5117 # Extract the first word of "msgfmt", so it can be a program name with args.
5118 set dummy msgfmt; ac_word=$2
5119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5120 $as_echo_n "checking for $ac_word... " >&6; }
5121 if ${ac_cv_path_MSGFMT+:} false; then :
5122 $as_echo_n "(cached) " >&6
5123 else
5124 case "$MSGFMT" in
5125 [\\/]* | ?:[\\/]*)
5126 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5129 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5130 for ac_dir in $PATH; do
5131 IFS="$ac_save_IFS"
5132 test -z "$ac_dir" && ac_dir=.
5133 for ac_exec_ext in '' $ac_executable_extensions; do
5134 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5135 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5136 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5137 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5138 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5139 break 2
5142 done
5143 done
5144 IFS="$ac_save_IFS"
5145 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5147 esac
5149 MSGFMT="$ac_cv_path_MSGFMT"
5150 if test "$MSGFMT" != ":"; then
5151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5152 $as_echo "$MSGFMT" >&6; }
5153 else
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5155 $as_echo "no" >&6; }
5158 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5159 set dummy gmsgfmt; ac_word=$2
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5161 $as_echo_n "checking for $ac_word... " >&6; }
5162 if ${ac_cv_path_GMSGFMT+:} false; then :
5163 $as_echo_n "(cached) " >&6
5164 else
5165 case $GMSGFMT in
5166 [\\/]* | ?:[\\/]*)
5167 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5171 for as_dir in $PATH
5173 IFS=$as_save_IFS
5174 test -z "$as_dir" && as_dir=.
5175 for ac_exec_ext in '' $ac_executable_extensions; do
5176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5177 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5179 break 2
5181 done
5182 done
5183 IFS=$as_save_IFS
5185 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5187 esac
5189 GMSGFMT=$ac_cv_path_GMSGFMT
5190 if test -n "$GMSGFMT"; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5192 $as_echo "$GMSGFMT" >&6; }
5193 else
5194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5195 $as_echo "no" >&6; }
5200 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5201 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5202 *) MSGFMT_015=$MSGFMT ;;
5203 esac
5205 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5206 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5207 *) GMSGFMT_015=$GMSGFMT ;;
5208 esac
5212 # Prepare PATH_SEPARATOR.
5213 # The user is always right.
5214 if test "${PATH_SEPARATOR+set}" != set; then
5215 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5216 # contains only /bin. Note that ksh looks also at the FPATH variable,
5217 # so we have to set that as well for the test.
5218 PATH_SEPARATOR=:
5219 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5220 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5221 || PATH_SEPARATOR=';'
5225 # Find out how to test for executable files. Don't use a zero-byte file,
5226 # as systems may use methods other than mode bits to determine executability.
5227 cat >conf$$.file <<_ASEOF
5228 #! /bin/sh
5229 exit 0
5230 _ASEOF
5231 chmod +x conf$$.file
5232 if test -x conf$$.file >/dev/null 2>&1; then
5233 ac_executable_p="test -x"
5234 else
5235 ac_executable_p="test -f"
5237 rm -f conf$$.file
5239 # Extract the first word of "xgettext", so it can be a program name with args.
5240 set dummy xgettext; ac_word=$2
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5242 $as_echo_n "checking for $ac_word... " >&6; }
5243 if ${ac_cv_path_XGETTEXT+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 case "$XGETTEXT" in
5247 [\\/]* | ?:[\\/]*)
5248 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5251 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5252 for ac_dir in $PATH; do
5253 IFS="$ac_save_IFS"
5254 test -z "$ac_dir" && ac_dir=.
5255 for ac_exec_ext in '' $ac_executable_extensions; do
5256 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5257 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5258 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5259 (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
5260 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5261 break 2
5264 done
5265 done
5266 IFS="$ac_save_IFS"
5267 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5269 esac
5271 XGETTEXT="$ac_cv_path_XGETTEXT"
5272 if test "$XGETTEXT" != ":"; then
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5274 $as_echo "$XGETTEXT" >&6; }
5275 else
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5277 $as_echo "no" >&6; }
5280 rm -f messages.po
5282 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5283 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5284 *) XGETTEXT_015=$XGETTEXT ;;
5285 esac
5289 # Prepare PATH_SEPARATOR.
5290 # The user is always right.
5291 if test "${PATH_SEPARATOR+set}" != set; then
5292 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5293 # contains only /bin. Note that ksh looks also at the FPATH variable,
5294 # so we have to set that as well for the test.
5295 PATH_SEPARATOR=:
5296 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5297 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5298 || PATH_SEPARATOR=';'
5302 # Find out how to test for executable files. Don't use a zero-byte file,
5303 # as systems may use methods other than mode bits to determine executability.
5304 cat >conf$$.file <<_ASEOF
5305 #! /bin/sh
5306 exit 0
5307 _ASEOF
5308 chmod +x conf$$.file
5309 if test -x conf$$.file >/dev/null 2>&1; then
5310 ac_executable_p="test -x"
5311 else
5312 ac_executable_p="test -f"
5314 rm -f conf$$.file
5316 # Extract the first word of "msgmerge", so it can be a program name with args.
5317 set dummy msgmerge; ac_word=$2
5318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5319 $as_echo_n "checking for $ac_word... " >&6; }
5320 if ${ac_cv_path_MSGMERGE+:} false; then :
5321 $as_echo_n "(cached) " >&6
5322 else
5323 case "$MSGMERGE" in
5324 [\\/]* | ?:[\\/]*)
5325 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5328 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5329 for ac_dir in $PATH; do
5330 IFS="$ac_save_IFS"
5331 test -z "$ac_dir" && ac_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5334 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5335 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5336 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5337 break 2
5340 done
5341 done
5342 IFS="$ac_save_IFS"
5343 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5345 esac
5347 MSGMERGE="$ac_cv_path_MSGMERGE"
5348 if test "$MSGMERGE" != ":"; then
5349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5350 $as_echo "$MSGMERGE" >&6; }
5351 else
5352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5353 $as_echo "no" >&6; }
5357 test -n "$localedir" || localedir='${datadir}/locale'
5360 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5363 ac_config_commands="$ac_config_commands po-directories"
5367 if test "X$prefix" = "XNONE"; then
5368 acl_final_prefix="$ac_default_prefix"
5369 else
5370 acl_final_prefix="$prefix"
5372 if test "X$exec_prefix" = "XNONE"; then
5373 acl_final_exec_prefix='${prefix}'
5374 else
5375 acl_final_exec_prefix="$exec_prefix"
5377 acl_save_prefix="$prefix"
5378 prefix="$acl_final_prefix"
5379 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5380 prefix="$acl_save_prefix"
5382 # Make sure we can run config.sub.
5383 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5384 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5387 $as_echo_n "checking build system type... " >&6; }
5388 if ${ac_cv_build+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 ac_build_alias=$build_alias
5392 test "x$ac_build_alias" = x &&
5393 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5394 test "x$ac_build_alias" = x &&
5395 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5396 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5397 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5401 $as_echo "$ac_cv_build" >&6; }
5402 case $ac_cv_build in
5403 *-*-*) ;;
5404 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5405 esac
5406 build=$ac_cv_build
5407 ac_save_IFS=$IFS; IFS='-'
5408 set x $ac_cv_build
5409 shift
5410 build_cpu=$1
5411 build_vendor=$2
5412 shift; shift
5413 # Remember, the first character of IFS is used to create $*,
5414 # except with old shells:
5415 build_os=$*
5416 IFS=$ac_save_IFS
5417 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5421 $as_echo_n "checking host system type... " >&6; }
5422 if ${ac_cv_host+:} false; then :
5423 $as_echo_n "(cached) " >&6
5424 else
5425 if test "x$host_alias" = x; then
5426 ac_cv_host=$ac_cv_build
5427 else
5428 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5429 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5434 $as_echo "$ac_cv_host" >&6; }
5435 case $ac_cv_host in
5436 *-*-*) ;;
5437 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5438 esac
5439 host=$ac_cv_host
5440 ac_save_IFS=$IFS; IFS='-'
5441 set x $ac_cv_host
5442 shift
5443 host_cpu=$1
5444 host_vendor=$2
5445 shift; shift
5446 # Remember, the first character of IFS is used to create $*,
5447 # except with old shells:
5448 host_os=$*
5449 IFS=$ac_save_IFS
5450 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5455 # Check whether --with-gnu-ld was given.
5456 if test "${with_gnu_ld+set}" = set; then :
5457 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5458 else
5459 with_gnu_ld=no
5462 # Prepare PATH_SEPARATOR.
5463 # The user is always right.
5464 if test "${PATH_SEPARATOR+set}" != set; then
5465 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which
5466 # contains only /bin. Note that ksh looks also at the FPATH variable,
5467 # so we have to set that as well for the test.
5468 PATH_SEPARATOR=:
5469 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5470 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \
5471 || PATH_SEPARATOR=';'
5475 ac_prog=ld
5476 if test "$GCC" = yes; then
5477 # Check if gcc -print-prog-name=ld gives a path.
5478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5479 $as_echo_n "checking for ld used by $CC... " >&6; }
5480 case $host in
5481 *-*-mingw*)
5482 # gcc leaves a trailing carriage return which upsets mingw
5483 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5485 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5486 esac
5487 case $ac_prog in
5488 # Accept absolute paths.
5489 [\\/]* | ?:[\\/]*)
5490 re_direlt='/[^/][^/]*/\.\./'
5491 # Canonicalize the pathname of ld
5492 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'`
5493 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do
5494 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5495 done
5496 test -z "$LD" && LD="$ac_prog"
5499 # If it fails, then pretend we aren't using GCC.
5500 ac_prog=ld
5503 # If it is relative, then search for the first ld in PATH.
5504 with_gnu_ld=unknown
5506 esac
5507 elif test "$with_gnu_ld" = yes; then
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5509 $as_echo_n "checking for GNU ld... " >&6; }
5510 else
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5512 $as_echo_n "checking for non-GNU ld... " >&6; }
5514 if ${acl_cv_path_LD+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 if test -z "$LD"; then
5518 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5519 for ac_dir in $PATH; do
5520 IFS="$acl_save_ifs"
5521 test -z "$ac_dir" && ac_dir=.
5522 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5523 acl_cv_path_LD="$ac_dir/$ac_prog"
5524 # Check to see if the program is GNU ld. I'd rather use --version,
5525 # but apparently some variants of GNU ld only accept -v.
5526 # Break only if it was the GNU/non-GNU ld that we prefer.
5527 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in
5528 *GNU* | *'with BFD'*)
5529 test "$with_gnu_ld" != no && break
5532 test "$with_gnu_ld" != yes && break
5534 esac
5536 done
5537 IFS="$acl_save_ifs"
5538 else
5539 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5543 LD="$acl_cv_path_LD"
5544 if test -n "$LD"; then
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5546 $as_echo "$LD" >&6; }
5547 else
5548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5549 $as_echo "no" >&6; }
5551 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5553 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5554 if ${acl_cv_prog_gnu_ld+:} false; then :
5555 $as_echo_n "(cached) " >&6
5556 else
5557 # I'd rather use --version here, but apparently some GNU lds only accept -v.
5558 case `$LD -v 2>&1 </dev/null` in
5559 *GNU* | *'with BFD'*)
5560 acl_cv_prog_gnu_ld=yes
5563 acl_cv_prog_gnu_ld=no
5565 esac
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5568 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5569 with_gnu_ld=$acl_cv_prog_gnu_ld
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5575 $as_echo_n "checking for shared library run path origin... " >&6; }
5576 if ${acl_cv_rpath+:} false; then :
5577 $as_echo_n "(cached) " >&6
5578 else
5580 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5581 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5582 . ./conftest.sh
5583 rm -f ./conftest.sh
5584 acl_cv_rpath=done
5587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5588 $as_echo "$acl_cv_rpath" >&6; }
5589 wl="$acl_cv_wl"
5590 acl_libext="$acl_cv_libext"
5591 acl_shlibext="$acl_cv_shlibext"
5592 acl_libname_spec="$acl_cv_libname_spec"
5593 acl_library_names_spec="$acl_cv_library_names_spec"
5594 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5595 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5596 acl_hardcode_direct="$acl_cv_hardcode_direct"
5597 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5598 # Check whether --enable-rpath was given.
5599 if test "${enable_rpath+set}" = set; then :
5600 enableval=$enable_rpath; :
5601 else
5602 enable_rpath=yes
5608 acl_libdirstem=lib
5609 acl_libdirstem2=
5610 case "$host_os" in
5611 solaris*)
5612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5613 $as_echo_n "checking for 64-bit host... " >&6; }
5614 if ${gl_cv_solaris_64bit+:} false; then :
5615 $as_echo_n "(cached) " >&6
5616 else
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5620 #ifdef _LP64
5621 sixtyfour bits
5622 #endif
5624 _ACEOF
5625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5626 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5627 gl_cv_solaris_64bit=yes
5628 else
5629 gl_cv_solaris_64bit=no
5631 rm -f conftest*
5635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5636 $as_echo "$gl_cv_solaris_64bit" >&6; }
5637 if test $gl_cv_solaris_64bit = yes; then
5638 acl_libdirstem=lib/64
5639 case "$host_cpu" in
5640 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5641 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5642 esac
5646 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5647 if test -n "$searchpath"; then
5648 acl_save_IFS="${IFS= }"; IFS=":"
5649 for searchdir in $searchpath; do
5650 if test -d "$searchdir"; then
5651 case "$searchdir" in
5652 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5653 */../ | */.. )
5654 # Better ignore directories of this form. They are misleading.
5656 *) searchdir=`cd "$searchdir" && pwd`
5657 case "$searchdir" in
5658 */lib64 ) acl_libdirstem=lib64 ;;
5659 esac ;;
5660 esac
5662 done
5663 IFS="$acl_save_IFS"
5666 esac
5667 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5680 use_additional=yes
5682 acl_save_prefix="$prefix"
5683 prefix="$acl_final_prefix"
5684 acl_save_exec_prefix="$exec_prefix"
5685 exec_prefix="$acl_final_exec_prefix"
5687 eval additional_includedir=\"$includedir\"
5688 eval additional_libdir=\"$libdir\"
5690 exec_prefix="$acl_save_exec_prefix"
5691 prefix="$acl_save_prefix"
5694 # Check whether --with-libiconv-prefix was given.
5695 if test "${with_libiconv_prefix+set}" = set; then :
5696 withval=$with_libiconv_prefix;
5697 if test "X$withval" = "Xno"; then
5698 use_additional=no
5699 else
5700 if test "X$withval" = "X"; then
5702 acl_save_prefix="$prefix"
5703 prefix="$acl_final_prefix"
5704 acl_save_exec_prefix="$exec_prefix"
5705 exec_prefix="$acl_final_exec_prefix"
5707 eval additional_includedir=\"$includedir\"
5708 eval additional_libdir=\"$libdir\"
5710 exec_prefix="$acl_save_exec_prefix"
5711 prefix="$acl_save_prefix"
5713 else
5714 additional_includedir="$withval/include"
5715 additional_libdir="$withval/$acl_libdirstem"
5716 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5717 && ! test -d "$withval/$acl_libdirstem"; then
5718 additional_libdir="$withval/$acl_libdirstem2"
5725 LIBICONV=
5726 LTLIBICONV=
5727 INCICONV=
5728 LIBICONV_PREFIX=
5729 HAVE_LIBICONV=
5730 rpathdirs=
5731 ltrpathdirs=
5732 names_already_handled=
5733 names_next_round='iconv '
5734 while test -n "$names_next_round"; do
5735 names_this_round="$names_next_round"
5736 names_next_round=
5737 for name in $names_this_round; do
5738 already_handled=
5739 for n in $names_already_handled; do
5740 if test "$n" = "$name"; then
5741 already_handled=yes
5742 break
5744 done
5745 if test -z "$already_handled"; then
5746 names_already_handled="$names_already_handled $name"
5747 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
5748 eval value=\"\$HAVE_LIB$uppername\"
5749 if test -n "$value"; then
5750 if test "$value" = yes; then
5751 eval value=\"\$LIB$uppername\"
5752 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5753 eval value=\"\$LTLIB$uppername\"
5754 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5755 else
5758 else
5759 found_dir=
5760 found_la=
5761 found_so=
5762 found_a=
5763 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5764 if test -n "$acl_shlibext"; then
5765 shrext=".$acl_shlibext" # typically: shrext=.so
5766 else
5767 shrext=
5769 if test $use_additional = yes; then
5770 dir="$additional_libdir"
5771 if test -n "$acl_shlibext"; then
5772 if test -f "$dir/$libname$shrext"; then
5773 found_dir="$dir"
5774 found_so="$dir/$libname$shrext"
5775 else
5776 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5777 ver=`(cd "$dir" && \
5778 for f in "$libname$shrext".*; do echo "$f"; done \
5779 | sed -e "s,^$libname$shrext\\\\.,," \
5780 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5781 | sed 1q ) 2>/dev/null`
5782 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5783 found_dir="$dir"
5784 found_so="$dir/$libname$shrext.$ver"
5786 else
5787 eval library_names=\"$acl_library_names_spec\"
5788 for f in $library_names; do
5789 if test -f "$dir/$f"; then
5790 found_dir="$dir"
5791 found_so="$dir/$f"
5792 break
5794 done
5798 if test "X$found_dir" = "X"; then
5799 if test -f "$dir/$libname.$acl_libext"; then
5800 found_dir="$dir"
5801 found_a="$dir/$libname.$acl_libext"
5804 if test "X$found_dir" != "X"; then
5805 if test -f "$dir/$libname.la"; then
5806 found_la="$dir/$libname.la"
5810 if test "X$found_dir" = "X"; then
5811 for x in $LDFLAGS $LTLIBICONV; do
5813 acl_save_prefix="$prefix"
5814 prefix="$acl_final_prefix"
5815 acl_save_exec_prefix="$exec_prefix"
5816 exec_prefix="$acl_final_exec_prefix"
5817 eval x=\"$x\"
5818 exec_prefix="$acl_save_exec_prefix"
5819 prefix="$acl_save_prefix"
5821 case "$x" in
5822 -L*)
5823 dir=`echo "X$x" | sed -e 's/^X-L//'`
5824 if test -n "$acl_shlibext"; then
5825 if test -f "$dir/$libname$shrext"; then
5826 found_dir="$dir"
5827 found_so="$dir/$libname$shrext"
5828 else
5829 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5830 ver=`(cd "$dir" && \
5831 for f in "$libname$shrext".*; do echo "$f"; done \
5832 | sed -e "s,^$libname$shrext\\\\.,," \
5833 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5834 | sed 1q ) 2>/dev/null`
5835 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5836 found_dir="$dir"
5837 found_so="$dir/$libname$shrext.$ver"
5839 else
5840 eval library_names=\"$acl_library_names_spec\"
5841 for f in $library_names; do
5842 if test -f "$dir/$f"; then
5843 found_dir="$dir"
5844 found_so="$dir/$f"
5845 break
5847 done
5851 if test "X$found_dir" = "X"; then
5852 if test -f "$dir/$libname.$acl_libext"; then
5853 found_dir="$dir"
5854 found_a="$dir/$libname.$acl_libext"
5857 if test "X$found_dir" != "X"; then
5858 if test -f "$dir/$libname.la"; then
5859 found_la="$dir/$libname.la"
5863 esac
5864 if test "X$found_dir" != "X"; then
5865 break
5867 done
5869 if test "X$found_dir" != "X"; then
5870 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5871 if test "X$found_so" != "X"; then
5872 if test "$enable_rpath" = no \
5873 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5874 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5875 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5876 else
5877 haveit=
5878 for x in $ltrpathdirs; do
5879 if test "X$x" = "X$found_dir"; then
5880 haveit=yes
5881 break
5883 done
5884 if test -z "$haveit"; then
5885 ltrpathdirs="$ltrpathdirs $found_dir"
5887 if test "$acl_hardcode_direct" = yes; then
5888 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5889 else
5890 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5891 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5892 haveit=
5893 for x in $rpathdirs; do
5894 if test "X$x" = "X$found_dir"; then
5895 haveit=yes
5896 break
5898 done
5899 if test -z "$haveit"; then
5900 rpathdirs="$rpathdirs $found_dir"
5902 else
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$found_dir"; then
5915 haveit=yes
5916 break
5918 done
5919 if test -z "$haveit"; then
5920 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5922 if test "$acl_hardcode_minus_L" != no; then
5923 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5924 else
5925 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5930 else
5931 if test "X$found_a" != "X"; then
5932 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5933 else
5934 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5937 additional_includedir=
5938 case "$found_dir" in
5939 */$acl_libdirstem | */$acl_libdirstem/)
5940 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5941 if test "$name" = 'iconv'; then
5942 LIBICONV_PREFIX="$basedir"
5944 additional_includedir="$basedir/include"
5946 */$acl_libdirstem2 | */$acl_libdirstem2/)
5947 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5948 if test "$name" = 'iconv'; then
5949 LIBICONV_PREFIX="$basedir"
5951 additional_includedir="$basedir/include"
5953 esac
5954 if test "X$additional_includedir" != "X"; then
5955 if test "X$additional_includedir" != "X/usr/include"; then
5956 haveit=
5957 if test "X$additional_includedir" = "X/usr/local/include"; then
5958 if test -n "$GCC"; then
5959 case $host_os in
5960 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5961 esac
5964 if test -z "$haveit"; then
5965 for x in $CPPFLAGS $INCICONV; do
5967 acl_save_prefix="$prefix"
5968 prefix="$acl_final_prefix"
5969 acl_save_exec_prefix="$exec_prefix"
5970 exec_prefix="$acl_final_exec_prefix"
5971 eval x=\"$x\"
5972 exec_prefix="$acl_save_exec_prefix"
5973 prefix="$acl_save_prefix"
5975 if test "X$x" = "X-I$additional_includedir"; then
5976 haveit=yes
5977 break
5979 done
5980 if test -z "$haveit"; then
5981 if test -d "$additional_includedir"; then
5982 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5988 if test -n "$found_la"; then
5989 save_libdir="$libdir"
5990 case "$found_la" in
5991 */* | *\\*) . "$found_la" ;;
5992 *) . "./$found_la" ;;
5993 esac
5994 libdir="$save_libdir"
5995 for dep in $dependency_libs; do
5996 case "$dep" in
5997 -L*)
5998 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5999 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6000 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6001 haveit=
6002 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6003 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6004 if test -n "$GCC"; then
6005 case $host_os in
6006 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6007 esac
6010 if test -z "$haveit"; then
6011 haveit=
6012 for x in $LDFLAGS $LIBICONV; do
6014 acl_save_prefix="$prefix"
6015 prefix="$acl_final_prefix"
6016 acl_save_exec_prefix="$exec_prefix"
6017 exec_prefix="$acl_final_exec_prefix"
6018 eval x=\"$x\"
6019 exec_prefix="$acl_save_exec_prefix"
6020 prefix="$acl_save_prefix"
6022 if test "X$x" = "X-L$additional_libdir"; then
6023 haveit=yes
6024 break
6026 done
6027 if test -z "$haveit"; then
6028 if test -d "$additional_libdir"; then
6029 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
6032 haveit=
6033 for x in $LDFLAGS $LTLIBICONV; do
6035 acl_save_prefix="$prefix"
6036 prefix="$acl_final_prefix"
6037 acl_save_exec_prefix="$exec_prefix"
6038 exec_prefix="$acl_final_exec_prefix"
6039 eval x=\"$x\"
6040 exec_prefix="$acl_save_exec_prefix"
6041 prefix="$acl_save_prefix"
6043 if test "X$x" = "X-L$additional_libdir"; then
6044 haveit=yes
6045 break
6047 done
6048 if test -z "$haveit"; then
6049 if test -d "$additional_libdir"; then
6050 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
6056 -R*)
6057 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6058 if test "$enable_rpath" != no; then
6059 haveit=
6060 for x in $rpathdirs; do
6061 if test "X$x" = "X$dir"; then
6062 haveit=yes
6063 break
6065 done
6066 if test -z "$haveit"; then
6067 rpathdirs="$rpathdirs $dir"
6069 haveit=
6070 for x in $ltrpathdirs; do
6071 if test "X$x" = "X$dir"; then
6072 haveit=yes
6073 break
6075 done
6076 if test -z "$haveit"; then
6077 ltrpathdirs="$ltrpathdirs $dir"
6081 -l*)
6082 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6084 *.la)
6085 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6088 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
6089 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
6091 esac
6092 done
6094 else
6095 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
6096 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
6100 done
6101 done
6102 if test "X$rpathdirs" != "X"; then
6103 if test -n "$acl_hardcode_libdir_separator"; then
6104 alldirs=
6105 for found_dir in $rpathdirs; do
6106 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6107 done
6108 acl_save_libdir="$libdir"
6109 libdir="$alldirs"
6110 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6111 libdir="$acl_save_libdir"
6112 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6113 else
6114 for found_dir in $rpathdirs; do
6115 acl_save_libdir="$libdir"
6116 libdir="$found_dir"
6117 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6118 libdir="$acl_save_libdir"
6119 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
6120 done
6123 if test "X$ltrpathdirs" != "X"; then
6124 for found_dir in $ltrpathdirs; do
6125 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6126 done
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6160 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6161 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 gt_save_LIBS="$LIBS"
6165 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6167 /* end confdefs.h. */
6168 #include <CoreFoundation/CFPreferences.h>
6170 main ()
6172 CFPreferencesCopyAppValue(NULL, NULL)
6174 return 0;
6176 _ACEOF
6177 if ac_fn_c_try_link "$LINENO"; then :
6178 gt_cv_func_CFPreferencesCopyAppValue=yes
6179 else
6180 gt_cv_func_CFPreferencesCopyAppValue=no
6182 rm -f core conftest.err conftest.$ac_objext \
6183 conftest$ac_exeext conftest.$ac_ext
6184 LIBS="$gt_save_LIBS"
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6187 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6188 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6190 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6194 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6195 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6196 $as_echo_n "(cached) " >&6
6197 else
6198 gt_save_LIBS="$LIBS"
6199 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6201 /* end confdefs.h. */
6202 #include <CoreFoundation/CFLocale.h>
6204 main ()
6206 CFLocaleCopyCurrent();
6208 return 0;
6210 _ACEOF
6211 if ac_fn_c_try_link "$LINENO"; then :
6212 gt_cv_func_CFLocaleCopyCurrent=yes
6213 else
6214 gt_cv_func_CFLocaleCopyCurrent=no
6216 rm -f core conftest.err conftest.$ac_objext \
6217 conftest$ac_exeext conftest.$ac_ext
6218 LIBS="$gt_save_LIBS"
6220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6221 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6222 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6224 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6227 INTL_MACOSX_LIBS=
6228 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6229 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6237 LIBINTL=
6238 LTLIBINTL=
6239 POSUB=
6241 case " $gt_needs " in
6242 *" need-formatstring-macros "*) gt_api_version=3 ;;
6243 *" need-ngettext "*) gt_api_version=2 ;;
6244 *) gt_api_version=1 ;;
6245 esac
6246 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6247 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6249 if test "$USE_NLS" = "yes"; then
6250 gt_use_preinstalled_gnugettext=no
6253 if test $gt_api_version -ge 3; then
6254 gt_revision_test_code='
6255 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6256 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6257 #endif
6258 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6260 else
6261 gt_revision_test_code=
6263 if test $gt_api_version -ge 2; then
6264 gt_expression_test_code=' + * ngettext ("", "", 0)'
6265 else
6266 gt_expression_test_code=
6269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6270 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6271 if eval \${$gt_func_gnugettext_libc+:} false; then :
6272 $as_echo_n "(cached) " >&6
6273 else
6274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6275 /* end confdefs.h. */
6277 #include <libintl.h>
6278 $gt_revision_test_code
6279 extern int _nl_msg_cat_cntr;
6280 extern int *_nl_domain_bindings;
6283 main ()
6286 bindtextdomain ("", "");
6287 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6290 return 0;
6292 _ACEOF
6293 if ac_fn_c_try_link "$LINENO"; then :
6294 eval "$gt_func_gnugettext_libc=yes"
6295 else
6296 eval "$gt_func_gnugettext_libc=no"
6298 rm -f core conftest.err conftest.$ac_objext \
6299 conftest$ac_exeext conftest.$ac_ext
6301 eval ac_res=\$$gt_func_gnugettext_libc
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6303 $as_echo "$ac_res" >&6; }
6305 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6311 am_save_CPPFLAGS="$CPPFLAGS"
6313 for element in $INCICONV; do
6314 haveit=
6315 for x in $CPPFLAGS; do
6317 acl_save_prefix="$prefix"
6318 prefix="$acl_final_prefix"
6319 acl_save_exec_prefix="$exec_prefix"
6320 exec_prefix="$acl_final_exec_prefix"
6321 eval x=\"$x\"
6322 exec_prefix="$acl_save_exec_prefix"
6323 prefix="$acl_save_prefix"
6325 if test "X$x" = "X$element"; then
6326 haveit=yes
6327 break
6329 done
6330 if test -z "$haveit"; then
6331 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6333 done
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6337 $as_echo_n "checking for iconv... " >&6; }
6338 if ${am_cv_func_iconv+:} false; then :
6339 $as_echo_n "(cached) " >&6
6340 else
6342 am_cv_func_iconv="no, consider installing GNU libiconv"
6343 am_cv_lib_iconv=no
6344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6345 /* end confdefs.h. */
6347 #include <stdlib.h>
6348 #include <iconv.h>
6351 main ()
6353 iconv_t cd = iconv_open("","");
6354 iconv(cd,NULL,NULL,NULL,NULL);
6355 iconv_close(cd);
6357 return 0;
6359 _ACEOF
6360 if ac_fn_c_try_link "$LINENO"; then :
6361 am_cv_func_iconv=yes
6363 rm -f core conftest.err conftest.$ac_objext \
6364 conftest$ac_exeext conftest.$ac_ext
6365 if test "$am_cv_func_iconv" != yes; then
6366 am_save_LIBS="$LIBS"
6367 LIBS="$LIBS $LIBICONV"
6368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6369 /* end confdefs.h. */
6371 #include <stdlib.h>
6372 #include <iconv.h>
6375 main ()
6377 iconv_t cd = iconv_open("","");
6378 iconv(cd,NULL,NULL,NULL,NULL);
6379 iconv_close(cd);
6381 return 0;
6383 _ACEOF
6384 if ac_fn_c_try_link "$LINENO"; then :
6385 am_cv_lib_iconv=yes
6386 am_cv_func_iconv=yes
6388 rm -f core conftest.err conftest.$ac_objext \
6389 conftest$ac_exeext conftest.$ac_ext
6390 LIBS="$am_save_LIBS"
6394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6395 $as_echo "$am_cv_func_iconv" >&6; }
6396 if test "$am_cv_func_iconv" = yes; then
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6398 $as_echo_n "checking for working iconv... " >&6; }
6399 if ${am_cv_func_iconv_works+:} false; then :
6400 $as_echo_n "(cached) " >&6
6401 else
6403 am_save_LIBS="$LIBS"
6404 if test $am_cv_lib_iconv = yes; then
6405 LIBS="$LIBS $LIBICONV"
6407 if test "$cross_compiling" = yes; then :
6409 case "$host_os" in
6410 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6411 *) am_cv_func_iconv_works="guessing yes" ;;
6412 esac
6414 else
6415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6416 /* end confdefs.h. */
6418 #include <iconv.h>
6419 #include <string.h>
6420 int main ()
6422 int result = 0;
6423 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6424 returns. */
6426 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6427 if (cd_utf8_to_88591 != (iconv_t)(-1))
6429 static const char input[] = "\342\202\254"; /* EURO SIGN */
6430 char buf[10];
6431 const char *inptr = input;
6432 size_t inbytesleft = strlen (input);
6433 char *outptr = buf;
6434 size_t outbytesleft = sizeof (buf);
6435 size_t res = iconv (cd_utf8_to_88591,
6436 (char **) &inptr, &inbytesleft,
6437 &outptr, &outbytesleft);
6438 if (res == 0)
6439 result |= 1;
6440 iconv_close (cd_utf8_to_88591);
6443 /* Test against Solaris 10 bug: Failures are not distinguishable from
6444 successful returns. */
6446 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6447 if (cd_ascii_to_88591 != (iconv_t)(-1))
6449 static const char input[] = "\263";
6450 char buf[10];
6451 const char *inptr = input;
6452 size_t inbytesleft = strlen (input);
6453 char *outptr = buf;
6454 size_t outbytesleft = sizeof (buf);
6455 size_t res = iconv (cd_ascii_to_88591,
6456 (char **) &inptr, &inbytesleft,
6457 &outptr, &outbytesleft);
6458 if (res == 0)
6459 result |= 2;
6460 iconv_close (cd_ascii_to_88591);
6463 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */
6465 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1");
6466 if (cd_88591_to_utf8 != (iconv_t)(-1))
6468 static const char input[] = "\304";
6469 static char buf[2] = { (char)0xDE, (char)0xAD };
6470 const char *inptr = input;
6471 size_t inbytesleft = 1;
6472 char *outptr = buf;
6473 size_t outbytesleft = 1;
6474 size_t res = iconv (cd_88591_to_utf8,
6475 (char **) &inptr, &inbytesleft,
6476 &outptr, &outbytesleft);
6477 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD)
6478 result |= 4;
6479 iconv_close (cd_88591_to_utf8);
6482 #if 0 /* This bug could be worked around by the caller. */
6483 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6485 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6486 if (cd_88591_to_utf8 != (iconv_t)(-1))
6488 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6489 char buf[50];
6490 const char *inptr = input;
6491 size_t inbytesleft = strlen (input);
6492 char *outptr = buf;
6493 size_t outbytesleft = sizeof (buf);
6494 size_t res = iconv (cd_88591_to_utf8,
6495 (char **) &inptr, &inbytesleft,
6496 &outptr, &outbytesleft);
6497 if ((int)res > 0)
6498 result |= 8;
6499 iconv_close (cd_88591_to_utf8);
6502 #endif
6503 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6504 provided. */
6505 if (/* Try standardized names. */
6506 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6507 /* Try IRIX, OSF/1 names. */
6508 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6509 /* Try AIX names. */
6510 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6511 /* Try HP-UX names. */
6512 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6513 result |= 16;
6514 return result;
6516 _ACEOF
6517 if ac_fn_c_try_run "$LINENO"; then :
6518 am_cv_func_iconv_works=yes
6519 else
6520 am_cv_func_iconv_works=no
6522 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6523 conftest.$ac_objext conftest.beam conftest.$ac_ext
6526 LIBS="$am_save_LIBS"
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6530 $as_echo "$am_cv_func_iconv_works" >&6; }
6531 case "$am_cv_func_iconv_works" in
6532 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6533 *) am_func_iconv=yes ;;
6534 esac
6535 else
6536 am_func_iconv=no am_cv_lib_iconv=no
6538 if test "$am_func_iconv" = yes; then
6540 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6543 if test "$am_cv_lib_iconv" = yes; then
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6545 $as_echo_n "checking how to link with libiconv... " >&6; }
6546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6547 $as_echo "$LIBICONV" >&6; }
6548 else
6549 CPPFLAGS="$am_save_CPPFLAGS"
6550 LIBICONV=
6551 LTLIBICONV=
6564 use_additional=yes
6566 acl_save_prefix="$prefix"
6567 prefix="$acl_final_prefix"
6568 acl_save_exec_prefix="$exec_prefix"
6569 exec_prefix="$acl_final_exec_prefix"
6571 eval additional_includedir=\"$includedir\"
6572 eval additional_libdir=\"$libdir\"
6574 exec_prefix="$acl_save_exec_prefix"
6575 prefix="$acl_save_prefix"
6578 # Check whether --with-libintl-prefix was given.
6579 if test "${with_libintl_prefix+set}" = set; then :
6580 withval=$with_libintl_prefix;
6581 if test "X$withval" = "Xno"; then
6582 use_additional=no
6583 else
6584 if test "X$withval" = "X"; then
6586 acl_save_prefix="$prefix"
6587 prefix="$acl_final_prefix"
6588 acl_save_exec_prefix="$exec_prefix"
6589 exec_prefix="$acl_final_exec_prefix"
6591 eval additional_includedir=\"$includedir\"
6592 eval additional_libdir=\"$libdir\"
6594 exec_prefix="$acl_save_exec_prefix"
6595 prefix="$acl_save_prefix"
6597 else
6598 additional_includedir="$withval/include"
6599 additional_libdir="$withval/$acl_libdirstem"
6600 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6601 && ! test -d "$withval/$acl_libdirstem"; then
6602 additional_libdir="$withval/$acl_libdirstem2"
6609 LIBINTL=
6610 LTLIBINTL=
6611 INCINTL=
6612 LIBINTL_PREFIX=
6613 HAVE_LIBINTL=
6614 rpathdirs=
6615 ltrpathdirs=
6616 names_already_handled=
6617 names_next_round='intl '
6618 while test -n "$names_next_round"; do
6619 names_this_round="$names_next_round"
6620 names_next_round=
6621 for name in $names_this_round; do
6622 already_handled=
6623 for n in $names_already_handled; do
6624 if test "$n" = "$name"; then
6625 already_handled=yes
6626 break
6628 done
6629 if test -z "$already_handled"; then
6630 names_already_handled="$names_already_handled $name"
6631 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'`
6632 eval value=\"\$HAVE_LIB$uppername\"
6633 if test -n "$value"; then
6634 if test "$value" = yes; then
6635 eval value=\"\$LIB$uppername\"
6636 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6637 eval value=\"\$LTLIB$uppername\"
6638 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6639 else
6642 else
6643 found_dir=
6644 found_la=
6645 found_so=
6646 found_a=
6647 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6648 if test -n "$acl_shlibext"; then
6649 shrext=".$acl_shlibext" # typically: shrext=.so
6650 else
6651 shrext=
6653 if test $use_additional = yes; then
6654 dir="$additional_libdir"
6655 if test -n "$acl_shlibext"; then
6656 if test -f "$dir/$libname$shrext"; then
6657 found_dir="$dir"
6658 found_so="$dir/$libname$shrext"
6659 else
6660 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6661 ver=`(cd "$dir" && \
6662 for f in "$libname$shrext".*; do echo "$f"; done \
6663 | sed -e "s,^$libname$shrext\\\\.,," \
6664 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6665 | sed 1q ) 2>/dev/null`
6666 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6667 found_dir="$dir"
6668 found_so="$dir/$libname$shrext.$ver"
6670 else
6671 eval library_names=\"$acl_library_names_spec\"
6672 for f in $library_names; do
6673 if test -f "$dir/$f"; then
6674 found_dir="$dir"
6675 found_so="$dir/$f"
6676 break
6678 done
6682 if test "X$found_dir" = "X"; then
6683 if test -f "$dir/$libname.$acl_libext"; then
6684 found_dir="$dir"
6685 found_a="$dir/$libname.$acl_libext"
6688 if test "X$found_dir" != "X"; then
6689 if test -f "$dir/$libname.la"; then
6690 found_la="$dir/$libname.la"
6694 if test "X$found_dir" = "X"; then
6695 for x in $LDFLAGS $LTLIBINTL; do
6697 acl_save_prefix="$prefix"
6698 prefix="$acl_final_prefix"
6699 acl_save_exec_prefix="$exec_prefix"
6700 exec_prefix="$acl_final_exec_prefix"
6701 eval x=\"$x\"
6702 exec_prefix="$acl_save_exec_prefix"
6703 prefix="$acl_save_prefix"
6705 case "$x" in
6706 -L*)
6707 dir=`echo "X$x" | sed -e 's/^X-L//'`
6708 if test -n "$acl_shlibext"; then
6709 if test -f "$dir/$libname$shrext"; then
6710 found_dir="$dir"
6711 found_so="$dir/$libname$shrext"
6712 else
6713 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6714 ver=`(cd "$dir" && \
6715 for f in "$libname$shrext".*; do echo "$f"; done \
6716 | sed -e "s,^$libname$shrext\\\\.,," \
6717 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6718 | sed 1q ) 2>/dev/null`
6719 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6720 found_dir="$dir"
6721 found_so="$dir/$libname$shrext.$ver"
6723 else
6724 eval library_names=\"$acl_library_names_spec\"
6725 for f in $library_names; do
6726 if test -f "$dir/$f"; then
6727 found_dir="$dir"
6728 found_so="$dir/$f"
6729 break
6731 done
6735 if test "X$found_dir" = "X"; then
6736 if test -f "$dir/$libname.$acl_libext"; then
6737 found_dir="$dir"
6738 found_a="$dir/$libname.$acl_libext"
6741 if test "X$found_dir" != "X"; then
6742 if test -f "$dir/$libname.la"; then
6743 found_la="$dir/$libname.la"
6747 esac
6748 if test "X$found_dir" != "X"; then
6749 break
6751 done
6753 if test "X$found_dir" != "X"; then
6754 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6755 if test "X$found_so" != "X"; then
6756 if test "$enable_rpath" = no \
6757 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6758 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6759 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6760 else
6761 haveit=
6762 for x in $ltrpathdirs; do
6763 if test "X$x" = "X$found_dir"; then
6764 haveit=yes
6765 break
6767 done
6768 if test -z "$haveit"; then
6769 ltrpathdirs="$ltrpathdirs $found_dir"
6771 if test "$acl_hardcode_direct" = yes; then
6772 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6773 else
6774 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6775 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6776 haveit=
6777 for x in $rpathdirs; do
6778 if test "X$x" = "X$found_dir"; then
6779 haveit=yes
6780 break
6782 done
6783 if test -z "$haveit"; then
6784 rpathdirs="$rpathdirs $found_dir"
6786 else
6787 haveit=
6788 for x in $LDFLAGS $LIBINTL; do
6790 acl_save_prefix="$prefix"
6791 prefix="$acl_final_prefix"
6792 acl_save_exec_prefix="$exec_prefix"
6793 exec_prefix="$acl_final_exec_prefix"
6794 eval x=\"$x\"
6795 exec_prefix="$acl_save_exec_prefix"
6796 prefix="$acl_save_prefix"
6798 if test "X$x" = "X-L$found_dir"; then
6799 haveit=yes
6800 break
6802 done
6803 if test -z "$haveit"; then
6804 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6806 if test "$acl_hardcode_minus_L" != no; then
6807 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6808 else
6809 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6814 else
6815 if test "X$found_a" != "X"; then
6816 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6817 else
6818 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6821 additional_includedir=
6822 case "$found_dir" in
6823 */$acl_libdirstem | */$acl_libdirstem/)
6824 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6825 if test "$name" = 'intl'; then
6826 LIBINTL_PREFIX="$basedir"
6828 additional_includedir="$basedir/include"
6830 */$acl_libdirstem2 | */$acl_libdirstem2/)
6831 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6832 if test "$name" = 'intl'; then
6833 LIBINTL_PREFIX="$basedir"
6835 additional_includedir="$basedir/include"
6837 esac
6838 if test "X$additional_includedir" != "X"; then
6839 if test "X$additional_includedir" != "X/usr/include"; then
6840 haveit=
6841 if test "X$additional_includedir" = "X/usr/local/include"; then
6842 if test -n "$GCC"; then
6843 case $host_os in
6844 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6845 esac
6848 if test -z "$haveit"; then
6849 for x in $CPPFLAGS $INCINTL; do
6851 acl_save_prefix="$prefix"
6852 prefix="$acl_final_prefix"
6853 acl_save_exec_prefix="$exec_prefix"
6854 exec_prefix="$acl_final_exec_prefix"
6855 eval x=\"$x\"
6856 exec_prefix="$acl_save_exec_prefix"
6857 prefix="$acl_save_prefix"
6859 if test "X$x" = "X-I$additional_includedir"; then
6860 haveit=yes
6861 break
6863 done
6864 if test -z "$haveit"; then
6865 if test -d "$additional_includedir"; then
6866 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6872 if test -n "$found_la"; then
6873 save_libdir="$libdir"
6874 case "$found_la" in
6875 */* | *\\*) . "$found_la" ;;
6876 *) . "./$found_la" ;;
6877 esac
6878 libdir="$save_libdir"
6879 for dep in $dependency_libs; do
6880 case "$dep" in
6881 -L*)
6882 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6883 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6884 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6885 haveit=
6886 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6887 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6888 if test -n "$GCC"; then
6889 case $host_os in
6890 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6891 esac
6894 if test -z "$haveit"; then
6895 haveit=
6896 for x in $LDFLAGS $LIBINTL; do
6898 acl_save_prefix="$prefix"
6899 prefix="$acl_final_prefix"
6900 acl_save_exec_prefix="$exec_prefix"
6901 exec_prefix="$acl_final_exec_prefix"
6902 eval x=\"$x\"
6903 exec_prefix="$acl_save_exec_prefix"
6904 prefix="$acl_save_prefix"
6906 if test "X$x" = "X-L$additional_libdir"; then
6907 haveit=yes
6908 break
6910 done
6911 if test -z "$haveit"; then
6912 if test -d "$additional_libdir"; then
6913 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6916 haveit=
6917 for x in $LDFLAGS $LTLIBINTL; do
6919 acl_save_prefix="$prefix"
6920 prefix="$acl_final_prefix"
6921 acl_save_exec_prefix="$exec_prefix"
6922 exec_prefix="$acl_final_exec_prefix"
6923 eval x=\"$x\"
6924 exec_prefix="$acl_save_exec_prefix"
6925 prefix="$acl_save_prefix"
6927 if test "X$x" = "X-L$additional_libdir"; then
6928 haveit=yes
6929 break
6931 done
6932 if test -z "$haveit"; then
6933 if test -d "$additional_libdir"; then
6934 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6940 -R*)
6941 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6942 if test "$enable_rpath" != no; then
6943 haveit=
6944 for x in $rpathdirs; do
6945 if test "X$x" = "X$dir"; then
6946 haveit=yes
6947 break
6949 done
6950 if test -z "$haveit"; then
6951 rpathdirs="$rpathdirs $dir"
6953 haveit=
6954 for x in $ltrpathdirs; do
6955 if test "X$x" = "X$dir"; then
6956 haveit=yes
6957 break
6959 done
6960 if test -z "$haveit"; then
6961 ltrpathdirs="$ltrpathdirs $dir"
6965 -l*)
6966 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6968 *.la)
6969 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6972 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6973 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6975 esac
6976 done
6978 else
6979 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6980 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6984 done
6985 done
6986 if test "X$rpathdirs" != "X"; then
6987 if test -n "$acl_hardcode_libdir_separator"; then
6988 alldirs=
6989 for found_dir in $rpathdirs; do
6990 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6991 done
6992 acl_save_libdir="$libdir"
6993 libdir="$alldirs"
6994 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6995 libdir="$acl_save_libdir"
6996 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6997 else
6998 for found_dir in $rpathdirs; do
6999 acl_save_libdir="$libdir"
7000 libdir="$found_dir"
7001 eval flag=\"$acl_hardcode_libdir_flag_spec\"
7002 libdir="$acl_save_libdir"
7003 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
7004 done
7007 if test "X$ltrpathdirs" != "X"; then
7008 for found_dir in $ltrpathdirs; do
7009 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
7010 done
7018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
7019 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
7020 if eval \${$gt_func_gnugettext_libintl+:} false; then :
7021 $as_echo_n "(cached) " >&6
7022 else
7023 gt_save_CPPFLAGS="$CPPFLAGS"
7024 CPPFLAGS="$CPPFLAGS $INCINTL"
7025 gt_save_LIBS="$LIBS"
7026 LIBS="$LIBS $LIBINTL"
7027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7028 /* end confdefs.h. */
7030 #include <libintl.h>
7031 $gt_revision_test_code
7032 extern int _nl_msg_cat_cntr;
7033 extern
7034 #ifdef __cplusplus
7036 #endif
7037 const char *_nl_expand_alias (const char *);
7040 main ()
7043 bindtextdomain ("", "");
7044 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7047 return 0;
7049 _ACEOF
7050 if ac_fn_c_try_link "$LINENO"; then :
7051 eval "$gt_func_gnugettext_libintl=yes"
7052 else
7053 eval "$gt_func_gnugettext_libintl=no"
7055 rm -f core conftest.err conftest.$ac_objext \
7056 conftest$ac_exeext conftest.$ac_ext
7057 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
7058 LIBS="$LIBS $LIBICONV"
7059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7060 /* end confdefs.h. */
7062 #include <libintl.h>
7063 $gt_revision_test_code
7064 extern int _nl_msg_cat_cntr;
7065 extern
7066 #ifdef __cplusplus
7068 #endif
7069 const char *_nl_expand_alias (const char *);
7072 main ()
7075 bindtextdomain ("", "");
7076 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
7079 return 0;
7081 _ACEOF
7082 if ac_fn_c_try_link "$LINENO"; then :
7083 LIBINTL="$LIBINTL $LIBICONV"
7084 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
7085 eval "$gt_func_gnugettext_libintl=yes"
7088 rm -f core conftest.err conftest.$ac_objext \
7089 conftest$ac_exeext conftest.$ac_ext
7091 CPPFLAGS="$gt_save_CPPFLAGS"
7092 LIBS="$gt_save_LIBS"
7094 eval ac_res=\$$gt_func_gnugettext_libintl
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
7096 $as_echo "$ac_res" >&6; }
7099 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
7100 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
7101 && test "$PACKAGE" != gettext-runtime \
7102 && test "$PACKAGE" != gettext-tools; }; then
7103 gt_use_preinstalled_gnugettext=yes
7104 else
7105 LIBINTL=
7106 LTLIBINTL=
7107 INCINTL=
7112 if test -n "$INTL_MACOSX_LIBS"; then
7113 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7114 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7115 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
7116 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
7120 if test "$gt_use_preinstalled_gnugettext" = "yes" \
7121 || test "$nls_cv_use_gnu_gettext" = "yes"; then
7123 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
7125 else
7126 USE_NLS=no
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
7131 $as_echo_n "checking whether to use NLS... " >&6; }
7132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
7133 $as_echo "$USE_NLS" >&6; }
7134 if test "$USE_NLS" = "yes"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
7136 $as_echo_n "checking where the gettext function comes from... " >&6; }
7137 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7138 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7139 gt_source="external libintl"
7140 else
7141 gt_source="libc"
7143 else
7144 gt_source="included intl directory"
7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
7147 $as_echo "$gt_source" >&6; }
7150 if test "$USE_NLS" = "yes"; then
7152 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
7153 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
7154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
7155 $as_echo_n "checking how to link with libintl... " >&6; }
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
7157 $as_echo "$LIBINTL" >&6; }
7159 for element in $INCINTL; do
7160 haveit=
7161 for x in $CPPFLAGS; do
7163 acl_save_prefix="$prefix"
7164 prefix="$acl_final_prefix"
7165 acl_save_exec_prefix="$exec_prefix"
7166 exec_prefix="$acl_final_exec_prefix"
7167 eval x=\"$x\"
7168 exec_prefix="$acl_save_exec_prefix"
7169 prefix="$acl_save_prefix"
7171 if test "X$x" = "X$element"; then
7172 haveit=yes
7173 break
7175 done
7176 if test -z "$haveit"; then
7177 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7179 done
7184 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7187 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7191 POSUB=po
7196 INTLLIBS="$LIBINTL"
7207 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7208 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7209 inttypes.h stdint.h unistd.h
7210 do :
7211 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7212 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7214 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7215 cat >>confdefs.h <<_ACEOF
7216 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7217 _ACEOF
7221 done
7224 for ac_header in stdint.h stdlib.h
7225 do :
7226 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7227 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7228 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7229 cat >>confdefs.h <<_ACEOF
7230 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7231 _ACEOF
7235 done
7237 for ac_func in strchr strrchr
7238 do :
7239 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7240 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7241 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7242 cat >>confdefs.h <<_ACEOF
7243 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7244 _ACEOF
7247 done
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7250 $as_echo_n "checking for working memcmp... " >&6; }
7251 if ${ac_cv_func_memcmp_working+:} false; then :
7252 $as_echo_n "(cached) " >&6
7253 else
7254 if test "$cross_compiling" = yes; then :
7255 ac_cv_func_memcmp_working=no
7256 else
7257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7258 /* end confdefs.h. */
7259 $ac_includes_default
7261 main ()
7264 /* Some versions of memcmp are not 8-bit clean. */
7265 char c0 = '\100', c1 = '\200', c2 = '\201';
7266 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7267 return 1;
7269 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7270 or more and with at least one buffer not starting on a 4-byte boundary.
7271 William Lewis provided this test program. */
7273 char foo[21];
7274 char bar[21];
7275 int i;
7276 for (i = 0; i < 4; i++)
7278 char *a = foo + i;
7279 char *b = bar + i;
7280 strcpy (a, "--------01111111");
7281 strcpy (b, "--------10000000");
7282 if (memcmp (a, b, 16) >= 0)
7283 return 1;
7285 return 0;
7289 return 0;
7291 _ACEOF
7292 if ac_fn_c_try_run "$LINENO"; then :
7293 ac_cv_func_memcmp_working=yes
7294 else
7295 ac_cv_func_memcmp_working=no
7297 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7298 conftest.$ac_objext conftest.beam conftest.$ac_ext
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7303 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7304 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7305 *" memcmp.$ac_objext "* ) ;;
7306 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7308 esac
7311 for ac_header in stdlib.h
7312 do :
7313 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7314 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7315 cat >>confdefs.h <<_ACEOF
7316 #define HAVE_STDLIB_H 1
7317 _ACEOF
7321 done
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7324 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7325 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7326 $as_echo_n "(cached) " >&6
7327 else
7328 if test "$cross_compiling" = yes; then :
7329 ac_cv_func_malloc_0_nonnull=no
7330 else
7331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7332 /* end confdefs.h. */
7333 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7334 # include <stdlib.h>
7335 #else
7336 char *malloc ();
7337 #endif
7340 main ()
7342 return ! malloc (0);
7344 return 0;
7346 _ACEOF
7347 if ac_fn_c_try_run "$LINENO"; then :
7348 ac_cv_func_malloc_0_nonnull=yes
7349 else
7350 ac_cv_func_malloc_0_nonnull=no
7352 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7353 conftest.$ac_objext conftest.beam conftest.$ac_ext
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7358 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7359 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7361 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7363 else
7364 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7366 case " $LIBOBJS " in
7367 *" malloc.$ac_objext "* ) ;;
7368 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7370 esac
7373 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7378 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7379 case $ac_cv_c_uint32_t in #(
7380 no|yes) ;; #(
7383 $as_echo "#define _UINT32_T 1" >>confdefs.h
7386 cat >>confdefs.h <<_ACEOF
7387 #define uint32_t $ac_cv_c_uint32_t
7388 _ACEOF
7390 esac
7394 pkg_failed=no
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB" >&5
7396 $as_echo_n "checking for GLIB... " >&6; }
7398 if test -n "$GLIB_CFLAGS"; then
7399 pkg_cv_GLIB_CFLAGS="$GLIB_CFLAGS"
7400 elif test -n "$PKG_CONFIG"; then
7401 if test -n "$PKG_CONFIG" && \
7402 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
7403 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7404 ac_status=$?
7405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7406 test $ac_status = 0; }; then
7407 pkg_cv_GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0" 2>/dev/null`
7408 test "x$?" != "x0" && pkg_failed=yes
7409 else
7410 pkg_failed=yes
7412 else
7413 pkg_failed=untried
7415 if test -n "$GLIB_LIBS"; then
7416 pkg_cv_GLIB_LIBS="$GLIB_LIBS"
7417 elif test -n "$PKG_CONFIG"; then
7418 if test -n "$PKG_CONFIG" && \
7419 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"glib-2.0\""; } >&5
7420 ($PKG_CONFIG --exists --print-errors "glib-2.0") 2>&5
7421 ac_status=$?
7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7423 test $ac_status = 0; }; then
7424 pkg_cv_GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0" 2>/dev/null`
7425 test "x$?" != "x0" && pkg_failed=yes
7426 else
7427 pkg_failed=yes
7429 else
7430 pkg_failed=untried
7435 if test $pkg_failed = yes; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7437 $as_echo "no" >&6; }
7439 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7440 _pkg_short_errors_supported=yes
7441 else
7442 _pkg_short_errors_supported=no
7444 if test $_pkg_short_errors_supported = yes; then
7445 GLIB_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "glib-2.0" 2>&1`
7446 else
7447 GLIB_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "glib-2.0" 2>&1`
7449 # Put the nasty error message in config.log where it belongs
7450 echo "$GLIB_PKG_ERRORS" >&5
7452 as_fn_error $? "Package requirements (glib-2.0) were not met:
7454 $GLIB_PKG_ERRORS
7456 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7457 installed software in a non-standard prefix.
7459 Alternatively, you may set the environment variables GLIB_CFLAGS
7460 and GLIB_LIBS to avoid the need to call pkg-config.
7461 See the pkg-config man page for more details." "$LINENO" 5
7462 elif test $pkg_failed = untried; then
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7464 $as_echo "no" >&6; }
7465 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7466 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7467 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7468 is in your PATH or set the PKG_CONFIG environment variable to the full
7469 path to pkg-config.
7471 Alternatively, you may set the environment variables GLIB_CFLAGS
7472 and GLIB_LIBS to avoid the need to call pkg-config.
7473 See the pkg-config man page for more details.
7475 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7476 See \`config.log' for more details" "$LINENO" 5; }
7477 else
7478 GLIB_CFLAGS=$pkg_cv_GLIB_CFLAGS
7479 GLIB_LIBS=$pkg_cv_GLIB_LIBS
7480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7481 $as_echo "yes" >&6; }
7487 # Check whether --with-gtk was given.
7488 if test "${with_gtk+set}" = set; then :
7489 withval=$with_gtk; with_gtk=$withval
7490 else
7491 with_gtk=yes
7495 # Check whether --with-sdl was given.
7496 if test "${with_sdl+set}" = set; then :
7497 withval=$with_sdl; with_sdl=$withval
7498 else
7499 with_sdl=yes
7503 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
7504 as_fn_error $? "You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." "$LINENO" 5
7507 if test x"$with_gtk" = "xyes"; then
7508 GTK_TRUE=
7509 GTK_FALSE='#'
7510 else
7511 GTK_TRUE='#'
7512 GTK_FALSE=
7515 if test x"$with_gtk" = "xyes" ; then
7517 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
7520 pkg_failed=no
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK" >&5
7522 $as_echo_n "checking for GTK... " >&6; }
7524 if test -n "$GTK_CFLAGS"; then
7525 pkg_cv_GTK_CFLAGS="$GTK_CFLAGS"
7526 elif test -n "$PKG_CONFIG"; then
7527 if test -n "$PKG_CONFIG" && \
7528 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
7529 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7530 ac_status=$?
7531 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7532 test $ac_status = 0; }; then
7533 pkg_cv_GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0" 2>/dev/null`
7534 test "x$?" != "x0" && pkg_failed=yes
7535 else
7536 pkg_failed=yes
7538 else
7539 pkg_failed=untried
7541 if test -n "$GTK_LIBS"; then
7542 pkg_cv_GTK_LIBS="$GTK_LIBS"
7543 elif test -n "$PKG_CONFIG"; then
7544 if test -n "$PKG_CONFIG" && \
7545 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"gtk+-2.0\""; } >&5
7546 ($PKG_CONFIG --exists --print-errors "gtk+-2.0") 2>&5
7547 ac_status=$?
7548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7549 test $ac_status = 0; }; then
7550 pkg_cv_GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0" 2>/dev/null`
7551 test "x$?" != "x0" && pkg_failed=yes
7552 else
7553 pkg_failed=yes
7555 else
7556 pkg_failed=untried
7561 if test $pkg_failed = yes; then
7562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7563 $as_echo "no" >&6; }
7565 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
7566 _pkg_short_errors_supported=yes
7567 else
7568 _pkg_short_errors_supported=no
7570 if test $_pkg_short_errors_supported = yes; then
7571 GTK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "gtk+-2.0" 2>&1`
7572 else
7573 GTK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "gtk+-2.0" 2>&1`
7575 # Put the nasty error message in config.log where it belongs
7576 echo "$GTK_PKG_ERRORS" >&5
7578 as_fn_error $? "Package requirements (gtk+-2.0) were not met:
7580 $GTK_PKG_ERRORS
7582 Consider adjusting the PKG_CONFIG_PATH environment variable if you
7583 installed software in a non-standard prefix.
7585 Alternatively, you may set the environment variables GTK_CFLAGS
7586 and GTK_LIBS to avoid the need to call pkg-config.
7587 See the pkg-config man page for more details." "$LINENO" 5
7588 elif test $pkg_failed = untried; then
7589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7590 $as_echo "no" >&6; }
7591 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7592 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7593 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
7594 is in your PATH or set the PKG_CONFIG environment variable to the full
7595 path to pkg-config.
7597 Alternatively, you may set the environment variables GTK_CFLAGS
7598 and GTK_LIBS to avoid the need to call pkg-config.
7599 See the pkg-config man page for more details.
7601 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
7602 See \`config.log' for more details" "$LINENO" 5; }
7603 else
7604 GTK_CFLAGS=$pkg_cv_GTK_CFLAGS
7605 GTK_LIBS=$pkg_cv_GTK_LIBS
7606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7607 $as_echo "yes" >&6; }
7610 else
7611 GTK_CFLAGS=""
7612 GTK_LIBS=""
7615 if test x"$with_sdl" = "xyes"; then
7616 SDL_TRUE=
7617 SDL_FALSE='#'
7618 else
7619 SDL_TRUE='#'
7620 SDL_FALSE=
7623 if test x"$with_sdl" = "xyes" ; then
7625 $as_echo "#define HAVE_SDL /**/" >>confdefs.h
7628 # Check whether --with-sdl-prefix was given.
7629 if test "${with_sdl_prefix+set}" = set; then :
7630 withval=$with_sdl_prefix; sdl_prefix="$withval"
7631 else
7632 sdl_prefix=""
7636 # Check whether --with-sdl-exec-prefix was given.
7637 if test "${with_sdl_exec_prefix+set}" = set; then :
7638 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7639 else
7640 sdl_exec_prefix=""
7643 # Check whether --enable-sdltest was given.
7644 if test "${enable_sdltest+set}" = set; then :
7645 enableval=$enable_sdltest;
7646 else
7647 enable_sdltest=yes
7651 if test x$sdl_exec_prefix != x ; then
7652 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7653 if test x${SDL_CONFIG+set} != xset ; then
7654 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7657 if test x$sdl_prefix != x ; then
7658 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7659 if test x${SDL_CONFIG+set} != xset ; then
7660 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7664 as_save_PATH="$PATH"
7665 if test "x$prefix" != xNONE; then
7666 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7668 # Extract the first word of "sdl-config", so it can be a program name with args.
7669 set dummy sdl-config; ac_word=$2
7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7671 $as_echo_n "checking for $ac_word... " >&6; }
7672 if ${ac_cv_path_SDL_CONFIG+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 case $SDL_CONFIG in
7676 [\\/]* | ?:[\\/]*)
7677 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7681 for as_dir in $PATH
7683 IFS=$as_save_IFS
7684 test -z "$as_dir" && as_dir=.
7685 for ac_exec_ext in '' $ac_executable_extensions; do
7686 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7687 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7689 break 2
7691 done
7692 done
7693 IFS=$as_save_IFS
7695 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7697 esac
7699 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7700 if test -n "$SDL_CONFIG"; then
7701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7702 $as_echo "$SDL_CONFIG" >&6; }
7703 else
7704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7705 $as_echo "no" >&6; }
7709 PATH="$as_save_PATH"
7710 min_sdl_version=1.2.0
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7712 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7713 no_sdl=""
7714 if test "$SDL_CONFIG" = "no" ; then
7715 no_sdl=yes
7716 else
7717 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7718 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7720 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7721 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7722 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
7723 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7724 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7725 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7726 if test "x$enable_sdltest" = "xyes" ; then
7727 ac_save_CFLAGS="$CFLAGS"
7728 ac_save_CXXFLAGS="$CXXFLAGS"
7729 ac_save_LIBS="$LIBS"
7730 CFLAGS="$CFLAGS $SDL_CFLAGS"
7731 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7732 LIBS="$LIBS $SDL_LIBS"
7733 rm -f conf.sdltest
7734 if test "$cross_compiling" = yes; then :
7735 echo $ac_n "cross compiling; assumed OK... $ac_c"
7736 else
7737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7738 /* end confdefs.h. */
7740 #include <stdio.h>
7741 #include <stdlib.h>
7742 #include <string.h>
7743 #include "SDL.h"
7745 char*
7746 my_strdup (char *str)
7748 char *new_str;
7750 if (str)
7752 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
7753 strcpy (new_str, str);
7755 else
7756 new_str = NULL;
7758 return new_str;
7761 int main (int argc, char *argv[])
7763 int major, minor, micro;
7764 char *tmp_version;
7766 /* This hangs on some systems (?)
7767 system ("touch conf.sdltest");
7769 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
7771 /* HP/UX 9 (%@#!) writes to sscanf strings */
7772 tmp_version = my_strdup("$min_sdl_version");
7773 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7774 printf("%s, bad version string\n", "$min_sdl_version");
7775 exit(1);
7778 if (($sdl_major_version > major) ||
7779 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
7780 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
7782 return 0;
7784 else
7786 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
7787 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
7788 printf("*** best to upgrade to the required version.\n");
7789 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
7790 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
7791 printf("*** config.cache before re-running configure\n");
7792 return 1;
7797 _ACEOF
7798 if ac_fn_c_try_run "$LINENO"; then :
7800 else
7801 no_sdl=yes
7803 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7804 conftest.$ac_objext conftest.beam conftest.$ac_ext
7807 CFLAGS="$ac_save_CFLAGS"
7808 CXXFLAGS="$ac_save_CXXFLAGS"
7809 LIBS="$ac_save_LIBS"
7812 if test "x$no_sdl" = x ; then
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7814 $as_echo "yes" >&6; }
7816 else
7817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7818 $as_echo "no" >&6; }
7819 if test "$SDL_CONFIG" = "no" ; then
7820 echo "*** The sdl-config script installed by SDL could not be found"
7821 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
7822 echo "*** your path, or set the SDL_CONFIG environment variable to the"
7823 echo "*** full path to sdl-config."
7824 else
7825 if test -f conf.sdltest ; then
7827 else
7828 echo "*** Could not run SDL test program, checking why..."
7829 CFLAGS="$CFLAGS $SDL_CFLAGS"
7830 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7831 LIBS="$LIBS $SDL_LIBS"
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7835 #include <stdio.h>
7836 #include "SDL.h"
7838 int main(int argc, char *argv[])
7839 { return 0; }
7840 #undef main
7841 #define main K_and_R_C_main
7844 main ()
7846 return 0;
7848 return 0;
7850 _ACEOF
7851 if ac_fn_c_try_link "$LINENO"; then :
7852 echo "*** The test program compiled, but did not run. This usually means"
7853 echo "*** that the run-time linker is not finding SDL or finding the wrong"
7854 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
7855 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7856 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7857 echo "*** is required on your system"
7858 echo "***"
7859 echo "*** If you have an old version installed, it is best to remove it, although"
7860 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7861 else
7862 echo "*** The test program failed to compile or link. See the file config.log for the"
7863 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
7864 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
7865 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
7867 rm -f core conftest.err conftest.$ac_objext \
7868 conftest$ac_exeext conftest.$ac_ext
7869 CFLAGS="$ac_save_CFLAGS"
7870 CXXFLAGS="$ac_save_CXXFLAGS"
7871 LIBS="$ac_save_LIBS"
7874 SDL_CFLAGS=""
7875 SDL_LIBS=""
7876 as_fn_error $? "Test for SDL failed. See the file 'INSTALL' for help." "$LINENO" 5
7880 rm -f conf.sdltest
7882 SDL_LIBS="$SDL_LIBS -lSDL_mixer -lSDL_image"
7883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
7884 $as_echo_n "checking for X... " >&6; }
7887 # Check whether --with-x was given.
7888 if test "${with_x+set}" = set; then :
7889 withval=$with_x;
7892 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
7893 if test "x$with_x" = xno; then
7894 # The user explicitly disabled X.
7895 have_x=disabled
7896 else
7897 case $x_includes,$x_libraries in #(
7898 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
7899 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
7900 $as_echo_n "(cached) " >&6
7901 else
7902 # One or both of the vars are not set, and there is no cached value.
7903 ac_x_includes=no ac_x_libraries=no
7904 rm -f -r conftest.dir
7905 if mkdir conftest.dir; then
7906 cd conftest.dir
7907 cat >Imakefile <<'_ACEOF'
7908 incroot:
7909 @echo incroot='${INCROOT}'
7910 usrlibdir:
7911 @echo usrlibdir='${USRLIBDIR}'
7912 libdir:
7913 @echo libdir='${LIBDIR}'
7914 _ACEOF
7915 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
7916 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
7917 for ac_var in incroot usrlibdir libdir; do
7918 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
7919 done
7920 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
7921 for ac_extension in a so sl dylib la dll; do
7922 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
7923 test -f "$ac_im_libdir/libX11.$ac_extension"; then
7924 ac_im_usrlibdir=$ac_im_libdir; break
7926 done
7927 # Screen out bogus values from the imake configuration. They are
7928 # bogus both because they are the default anyway, and because
7929 # using them would break gcc on systems where it needs fixed includes.
7930 case $ac_im_incroot in
7931 /usr/include) ac_x_includes= ;;
7932 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
7933 esac
7934 case $ac_im_usrlibdir in
7935 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
7936 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
7937 esac
7939 cd ..
7940 rm -f -r conftest.dir
7943 # Standard set of common directories for X headers.
7944 # Check X11 before X11Rn because it is often a symlink to the current release.
7945 ac_x_header_dirs='
7946 /usr/X11/include
7947 /usr/X11R7/include
7948 /usr/X11R6/include
7949 /usr/X11R5/include
7950 /usr/X11R4/include
7952 /usr/include/X11
7953 /usr/include/X11R7
7954 /usr/include/X11R6
7955 /usr/include/X11R5
7956 /usr/include/X11R4
7958 /usr/local/X11/include
7959 /usr/local/X11R7/include
7960 /usr/local/X11R6/include
7961 /usr/local/X11R5/include
7962 /usr/local/X11R4/include
7964 /usr/local/include/X11
7965 /usr/local/include/X11R7
7966 /usr/local/include/X11R6
7967 /usr/local/include/X11R5
7968 /usr/local/include/X11R4
7970 /usr/X386/include
7971 /usr/x386/include
7972 /usr/XFree86/include/X11
7974 /usr/include
7975 /usr/local/include
7976 /usr/unsupported/include
7977 /usr/athena/include
7978 /usr/local/x11r5/include
7979 /usr/lpp/Xamples/include
7981 /usr/openwin/include
7982 /usr/openwin/share/include'
7984 if test "$ac_x_includes" = no; then
7985 # Guess where to find include files, by looking for Xlib.h.
7986 # First, try using that file with no special directory specified.
7987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7988 /* end confdefs.h. */
7989 #include <X11/Xlib.h>
7990 _ACEOF
7991 if ac_fn_c_try_cpp "$LINENO"; then :
7992 # We can compile using X headers with no special include directory.
7993 ac_x_includes=
7994 else
7995 for ac_dir in $ac_x_header_dirs; do
7996 if test -r "$ac_dir/X11/Xlib.h"; then
7997 ac_x_includes=$ac_dir
7998 break
8000 done
8002 rm -f conftest.err conftest.i conftest.$ac_ext
8003 fi # $ac_x_includes = no
8005 if test "$ac_x_libraries" = no; then
8006 # Check for the libraries.
8007 # See if we find them without any special options.
8008 # Don't add to $LIBS permanently.
8009 ac_save_LIBS=$LIBS
8010 LIBS="-lX11 $LIBS"
8011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8012 /* end confdefs.h. */
8013 #include <X11/Xlib.h>
8015 main ()
8017 XrmInitialize ()
8019 return 0;
8021 _ACEOF
8022 if ac_fn_c_try_link "$LINENO"; then :
8023 LIBS=$ac_save_LIBS
8024 # We can link X programs with no special library path.
8025 ac_x_libraries=
8026 else
8027 LIBS=$ac_save_LIBS
8028 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8030 # Don't even attempt the hair of trying to link an X program!
8031 for ac_extension in a so sl dylib la dll; do
8032 if test -r "$ac_dir/libX11.$ac_extension"; then
8033 ac_x_libraries=$ac_dir
8034 break 2
8036 done
8037 done
8039 rm -f core conftest.err conftest.$ac_objext \
8040 conftest$ac_exeext conftest.$ac_ext
8041 fi # $ac_x_libraries = no
8043 case $ac_x_includes,$ac_x_libraries in #(
8044 no,* | *,no | *\'*)
8045 # Didn't find X, or a directory has "'" in its name.
8046 ac_cv_have_x="have_x=no";; #(
8048 # Record where we found X for the cache.
8049 ac_cv_have_x="have_x=yes\
8050 ac_x_includes='$ac_x_includes'\
8051 ac_x_libraries='$ac_x_libraries'"
8052 esac
8054 ;; #(
8055 *) have_x=yes;;
8056 esac
8057 eval "$ac_cv_have_x"
8058 fi # $with_x != no
8060 if test "$have_x" != yes; then
8061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
8062 $as_echo "$have_x" >&6; }
8063 no_x=yes
8064 else
8065 # If each of the values was on the command line, it overrides each guess.
8066 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
8067 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
8068 # Update the cache value to reflect the command line values.
8069 ac_cv_have_x="have_x=yes\
8070 ac_x_includes='$x_includes'\
8071 ac_x_libraries='$x_libraries'"
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
8073 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
8077 ac_ext=c
8078 ac_cpp='$CPP $CPPFLAGS'
8079 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8080 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8081 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the Microsoft C compiler" >&5
8084 $as_echo_n "checking whether we are using the Microsoft C compiler... " >&6; }
8085 if ${ax_cv_c_compiler_ms+:} false; then :
8086 $as_echo_n "(cached) " >&6
8087 else
8088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8089 /* end confdefs.h. */
8092 main ()
8094 #ifndef _MSC_VER
8095 choke me
8096 #endif
8099 return 0;
8101 _ACEOF
8102 if ac_fn_c_try_compile "$LINENO"; then :
8103 ax_compiler_ms=yes
8104 else
8105 ax_compiler_ms=no
8107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8108 ax_cv_c_compiler_ms=$ax_compiler_ms
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_c_compiler_ms" >&5
8112 $as_echo "$ax_cv_c_compiler_ms" >&6; }
8115 # Use x_includes and x_libraries if they have been set (presumably by
8116 # AC_PATH_X).
8118 if test X$no_x != Xyes -a -n "$x_includes"; then :
8119 GL_CFLAGS="-I$x_includes $GL_CFLAGS"
8122 for ac_header in windows.h
8123 do :
8124 ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
8125 if test "x$ac_cv_header_windows_h" = xyes; then :
8126 cat >>confdefs.h <<_ACEOF
8127 #define HAVE_WINDOWS_H 1
8128 _ACEOF
8132 done
8135 ax_save_CPPFLAGS=$CPPFLAGS
8136 CPPFLAGS="$GL_CFLAGS $CPPFLAGS"
8137 for ac_header in GL/gl.h OpenGL/gl.h
8138 do :
8139 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
8140 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
8141 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8142 # include <windows.h>
8143 # endif
8146 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8147 cat >>confdefs.h <<_ACEOF
8148 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
8149 _ACEOF
8153 done
8155 CPPFLAGS=$ax_save_CPPFLAGS
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OpenGL library" >&5
8162 $as_echo_n "checking for OpenGL library... " >&6; }
8163 if ${ax_cv_check_gl_libgl+:} false; then :
8164 $as_echo_n "(cached) " >&6
8165 else
8166 ax_cv_check_gl_libgl=no
8167 case $host_cpu in
8168 x86_64) ax_check_gl_libdir=lib64 ;;
8169 *) ax_check_gl_libdir=lib ;;
8170 esac
8171 ax_save_CPPFLAGS=$CPPFLAGS
8172 CPPFLAGS="$CPPFLAGS $GL_CFLAGS"
8173 ax_save_LDFLAGS=$LDFLAGS
8174 if test X$no_x != Xyes -a -n "$x_libraries"; then :
8175 LDFLAGS="$LDFLAGS -L$x_libraries"
8177 ax_save_LIBS=$LIBS
8178 ax_check_libs="-lopengl32 -lGL"
8179 for ax_lib in $ax_check_libs; do
8180 if test X$ax_compiler_ms = Xyes; then :
8181 ax_try_lib=`echo $ax_lib | $SED -e 's/^-l//' -e 's/$/.lib/'`
8182 else
8183 ax_try_lib=$ax_lib
8185 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS"
8186 LIBS="$ax_try_lib $ax_save_LIBS"
8187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8188 /* end confdefs.h. */
8190 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8191 # include <windows.h>
8192 # endif
8193 # ifdef HAVE_GL_GL_H
8194 # include <GL/gl.h>
8195 # elif defined(HAVE_OPENGL_GL_H)
8196 # include <OpenGL/gl.h>
8197 # else
8198 # error no gl.h
8199 # endif
8201 main ()
8203 glBegin(0)
8205 return 0;
8207 _ACEOF
8208 if ac_fn_c_try_link "$LINENO"; then :
8209 ax_cv_check_gl_libgl=$ax_try_lib; break
8210 else
8211 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'
8212 LDFLAGS="$ax_save_LDFLAGS $GL_LIBS $ax_check_gl_dylib_flag"
8213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8214 /* end confdefs.h. */
8216 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8217 # include <windows.h>
8218 # endif
8219 # ifdef HAVE_GL_GL_H
8220 # include <GL/gl.h>
8221 # elif defined(HAVE_OPENGL_GL_H)
8222 # include <OpenGL/gl.h>
8223 # else
8224 # error no gl.h
8225 # endif
8227 main ()
8229 glBegin(0)
8231 return 0;
8233 _ACEOF
8234 if ac_fn_c_try_link "$LINENO"; then :
8235 ax_cv_check_gl_libgl="$ax_check_gl_dylib_flag $ax_try_lib"; break
8237 rm -f core conftest.err conftest.$ac_objext \
8238 conftest$ac_exeext conftest.$ac_ext
8240 rm -f core conftest.err conftest.$ac_objext \
8241 conftest$ac_exeext conftest.$ac_ext
8242 done
8245 # If no_x is "yes", we don't want to wind up using a libGL that is
8246 # linked with X11. Test to see if the found libGL includes GLX
8247 # functions. If it does and no_x is "yes", we want to reset
8248 # ax_cv_check_gl_libgl back to "no".
8250 # Note that LDFLAGS and LIBS should still have whatever values they
8251 # had when we broke out of the test loop above; use that.
8253 if test "X$ax_cv_check_gl_libgl" != Xno; then :
8254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8255 /* end confdefs.h. */
8257 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8258 # include <windows.h>
8259 # endif
8260 # ifdef HAVE_GL_GL_H
8261 # include <GL/gl.h>
8262 # elif defined(HAVE_OPENGL_GL_H)
8263 # include <OpenGL/gl.h>
8264 # else
8265 # error no gl.h
8266 # endif
8268 main ()
8270 glXQueryVersion(0, 0, 0)
8272 return 0;
8274 _ACEOF
8275 if ac_fn_c_try_link "$LINENO"; then :
8276 if test X$no_x = Xyes; then :
8277 ax_cv_check_gl_libgl=no
8280 rm -f core conftest.err conftest.$ac_objext \
8281 conftest$ac_exeext conftest.$ac_ext
8284 LIBS=$ax_save_LIBS
8285 if test "X$ax_cv_check_gl_libgl" = Xno -a X$no_x = Xyes; then :
8286 LDFLAGS="$ax_save_LDFLAGS -framework OpenGL -framework Cocoa"
8287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8288 /* end confdefs.h. */
8290 # if defined(HAVE_WINDOWS_H) && defined(_WIN32)
8291 # include <windows.h>
8292 # endif
8293 # ifdef HAVE_GL_GL_H
8294 # include <GL/gl.h>
8295 # elif defined(HAVE_OPENGL_GL_H)
8296 # include <OpenGL/gl.h>
8297 # else
8298 # error no gl.h
8299 # endif
8301 main ()
8303 glBegin(0)
8305 return 0;
8307 _ACEOF
8308 if ac_fn_c_try_link "$LINENO"; then :
8309 ax_cv_check_gl_libgl='-framework OpenGL -framework Cocoa'
8311 rm -f core conftest.err conftest.$ac_objext \
8312 conftest$ac_exeext conftest.$ac_ext
8315 LDFLAGS=$ax_save_LDFLAGS
8316 CPPFLAGS=$ax_save_CPPFLAGS
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_check_gl_libgl" >&5
8319 $as_echo "$ax_cv_check_gl_libgl" >&6; }
8321 if test "X$ax_cv_check_gl_libgl" = Xno; then :
8322 no_gl=yes; GL_CFLAGS=""; GL_LIBS=""
8323 else
8324 GL_LIBS="$ax_cv_check_gl_libgl $GL_LIBS"
8326 ac_ext=c
8327 ac_cpp='$CPP $CPPFLAGS'
8328 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8329 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8330 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8336 else
8337 GL_CFLAGS=""
8338 GL_LIBS=""
8339 SDL_CFLAGS=""
8340 SDL_LIBS=""
8345 pkg_failed=no
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
8347 $as_echo_n "checking for LIBPNG... " >&6; }
8349 if test -n "$LIBPNG_CFLAGS"; then
8350 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8351 elif test -n "$PKG_CONFIG"; then
8352 if test -n "$PKG_CONFIG" && \
8353 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8354 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8355 ac_status=$?
8356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8357 test $ac_status = 0; }; then
8358 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
8359 test "x$?" != "x0" && pkg_failed=yes
8360 else
8361 pkg_failed=yes
8363 else
8364 pkg_failed=untried
8366 if test -n "$LIBPNG_LIBS"; then
8367 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8368 elif test -n "$PKG_CONFIG"; then
8369 if test -n "$PKG_CONFIG" && \
8370 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8371 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8372 ac_status=$?
8373 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8374 test $ac_status = 0; }; then
8375 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
8376 test "x$?" != "x0" && pkg_failed=yes
8377 else
8378 pkg_failed=yes
8380 else
8381 pkg_failed=untried
8386 if test $pkg_failed = yes; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8388 $as_echo "no" >&6; }
8390 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8391 _pkg_short_errors_supported=yes
8392 else
8393 _pkg_short_errors_supported=no
8395 if test $_pkg_short_errors_supported = yes; then
8396 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
8397 else
8398 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
8400 # Put the nasty error message in config.log where it belongs
8401 echo "$LIBPNG_PKG_ERRORS" >&5
8403 as_fn_error $? "Package requirements (libpng) were not met:
8405 $LIBPNG_PKG_ERRORS
8407 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8408 installed software in a non-standard prefix.
8410 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8411 and LIBPNG_LIBS to avoid the need to call pkg-config.
8412 See the pkg-config man page for more details." "$LINENO" 5
8413 elif test $pkg_failed = untried; then
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8415 $as_echo "no" >&6; }
8416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8417 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8418 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8419 is in your PATH or set the PKG_CONFIG environment variable to the full
8420 path to pkg-config.
8422 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8423 and LIBPNG_LIBS to avoid the need to call pkg-config.
8424 See the pkg-config man page for more details.
8426 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8427 See \`config.log' for more details" "$LINENO" 5; }
8428 else
8429 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8430 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8432 $as_echo "yes" >&6; }
8434 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
8439 ac_config_files="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile docs/Makefile sound/Makefile music/Makefile shaders/Makefile"
8442 cat >confcache <<\_ACEOF
8443 # This file is a shell script that caches the results of configure
8444 # tests run on this system so they can be shared between configure
8445 # scripts and configure runs, see configure's option --config-cache.
8446 # It is not useful on other systems. If it contains results you don't
8447 # want to keep, you may remove or edit it.
8449 # config.status only pays attention to the cache file if you give it
8450 # the --recheck option to rerun configure.
8452 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8453 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8454 # following values.
8456 _ACEOF
8458 # The following way of writing the cache mishandles newlines in values,
8459 # but we know of no workaround that is simple, portable, and efficient.
8460 # So, we kill variables containing newlines.
8461 # Ultrix sh set writes to stderr and can't be redirected directly,
8462 # and sets the high bit in the cache file unless we assign to the vars.
8464 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8465 eval ac_val=\$$ac_var
8466 case $ac_val in #(
8467 *${as_nl}*)
8468 case $ac_var in #(
8469 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8470 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8471 esac
8472 case $ac_var in #(
8473 _ | IFS | as_nl) ;; #(
8474 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8475 *) { eval $ac_var=; unset $ac_var;} ;;
8476 esac ;;
8477 esac
8478 done
8480 (set) 2>&1 |
8481 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8482 *${as_nl}ac_space=\ *)
8483 # `set' does not quote correctly, so add quotes: double-quote
8484 # substitution turns \\\\ into \\, and sed turns \\ into \.
8485 sed -n \
8486 "s/'/'\\\\''/g;
8487 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8488 ;; #(
8490 # `set' quotes correctly as required by POSIX, so do not add quotes.
8491 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8493 esac |
8494 sort
8496 sed '
8497 /^ac_cv_env_/b end
8498 t clear
8499 :clear
8500 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8501 t end
8502 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8503 :end' >>confcache
8504 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8505 if test -w "$cache_file"; then
8506 if test "x$cache_file" != "x/dev/null"; then
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8508 $as_echo "$as_me: updating cache $cache_file" >&6;}
8509 if test ! -f "$cache_file" || test -h "$cache_file"; then
8510 cat confcache >"$cache_file"
8511 else
8512 case $cache_file in #(
8513 */* | ?:*)
8514 mv -f confcache "$cache_file"$$ &&
8515 mv -f "$cache_file"$$ "$cache_file" ;; #(
8517 mv -f confcache "$cache_file" ;;
8518 esac
8521 else
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8523 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8526 rm -f confcache
8528 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8529 # Let make expand exec_prefix.
8530 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8532 DEFS=-DHAVE_CONFIG_H
8534 ac_libobjs=
8535 ac_ltlibobjs=
8536 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8537 # 1. Remove the extension, and $U if already installed.
8538 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8539 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8540 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8541 # will be set to the directory where LIBOBJS objects are built.
8542 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8543 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8544 done
8545 LIBOBJS=$ac_libobjs
8547 LTLIBOBJS=$ac_ltlibobjs
8550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
8551 $as_echo_n "checking that generated files are newer than configure... " >&6; }
8552 if test -n "$am_sleep_pid"; then
8553 # Hide warnings about reused PIDs.
8554 wait $am_sleep_pid 2>/dev/null
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
8557 $as_echo "done" >&6; }
8558 if test -n "$EXEEXT"; then
8559 am__EXEEXT_TRUE=
8560 am__EXEEXT_FALSE='#'
8561 else
8562 am__EXEEXT_TRUE='#'
8563 am__EXEEXT_FALSE=
8566 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8567 as_fn_error $? "conditional \"AMDEP\" was never defined.
8568 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8570 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8571 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8572 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8574 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8575 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8576 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8578 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8579 as_fn_error $? "conditional \"GTK\" was never defined.
8580 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8582 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8583 as_fn_error $? "conditional \"SDL\" was never defined.
8584 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8587 : "${CONFIG_STATUS=./config.status}"
8588 ac_write_fail=0
8589 ac_clean_files_save=$ac_clean_files
8590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8593 as_write_fail=0
8594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8595 #! $SHELL
8596 # Generated by $as_me.
8597 # Run this file to recreate the current configuration.
8598 # Compiler output produced by configure, useful for debugging
8599 # configure, is in config.log if it exists.
8601 debug=false
8602 ac_cs_recheck=false
8603 ac_cs_silent=false
8605 SHELL=\${CONFIG_SHELL-$SHELL}
8606 export SHELL
8607 _ASEOF
8608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8609 ## -------------------- ##
8610 ## M4sh Initialization. ##
8611 ## -------------------- ##
8613 # Be more Bourne compatible
8614 DUALCASE=1; export DUALCASE # for MKS sh
8615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8616 emulate sh
8617 NULLCMD=:
8618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8619 # is contrary to our usage. Disable this feature.
8620 alias -g '${1+"$@"}'='"$@"'
8621 setopt NO_GLOB_SUBST
8622 else
8623 case `(set -o) 2>/dev/null` in #(
8624 *posix*) :
8625 set -o posix ;; #(
8626 *) :
8628 esac
8632 as_nl='
8634 export as_nl
8635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8639 # Prefer a ksh shell builtin over an external printf program on Solaris,
8640 # but without wasting forks for bash or zsh.
8641 if test -z "$BASH_VERSION$ZSH_VERSION" \
8642 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8643 as_echo='print -r --'
8644 as_echo_n='print -rn --'
8645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8646 as_echo='printf %s\n'
8647 as_echo_n='printf %s'
8648 else
8649 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8650 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8651 as_echo_n='/usr/ucb/echo -n'
8652 else
8653 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8654 as_echo_n_body='eval
8655 arg=$1;
8656 case $arg in #(
8657 *"$as_nl"*)
8658 expr "X$arg" : "X\\(.*\\)$as_nl";
8659 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8660 esac;
8661 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8663 export as_echo_n_body
8664 as_echo_n='sh -c $as_echo_n_body as_echo'
8666 export as_echo_body
8667 as_echo='sh -c $as_echo_body as_echo'
8670 # The user is always right.
8671 if test "${PATH_SEPARATOR+set}" != set; then
8672 PATH_SEPARATOR=:
8673 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8674 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8675 PATH_SEPARATOR=';'
8680 # IFS
8681 # We need space, tab and new line, in precisely that order. Quoting is
8682 # there to prevent editors from complaining about space-tab.
8683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8684 # splitting by setting IFS to empty value.)
8685 IFS=" "" $as_nl"
8687 # Find who we are. Look in the path if we contain no directory separator.
8688 as_myself=
8689 case $0 in #((
8690 *[\\/]* ) as_myself=$0 ;;
8691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8692 for as_dir in $PATH
8694 IFS=$as_save_IFS
8695 test -z "$as_dir" && as_dir=.
8696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8697 done
8698 IFS=$as_save_IFS
8701 esac
8702 # We did not find ourselves, most probably we were run as `sh COMMAND'
8703 # in which case we are not to be found in the path.
8704 if test "x$as_myself" = x; then
8705 as_myself=$0
8707 if test ! -f "$as_myself"; then
8708 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8709 exit 1
8712 # Unset variables that we do not need and which cause bugs (e.g. in
8713 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8714 # suppresses any "Segmentation fault" message there. '((' could
8715 # trigger a bug in pdksh 5.2.14.
8716 for as_var in BASH_ENV ENV MAIL MAILPATH
8717 do eval test x\${$as_var+set} = xset \
8718 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8719 done
8720 PS1='$ '
8721 PS2='> '
8722 PS4='+ '
8724 # NLS nuisances.
8725 LC_ALL=C
8726 export LC_ALL
8727 LANGUAGE=C
8728 export LANGUAGE
8730 # CDPATH.
8731 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8734 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8735 # ----------------------------------------
8736 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8737 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8738 # script with STATUS, using 1 if that was 0.
8739 as_fn_error ()
8741 as_status=$1; test $as_status -eq 0 && as_status=1
8742 if test "$4"; then
8743 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8744 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8746 $as_echo "$as_me: error: $2" >&2
8747 as_fn_exit $as_status
8748 } # as_fn_error
8751 # as_fn_set_status STATUS
8752 # -----------------------
8753 # Set $? to STATUS, without forking.
8754 as_fn_set_status ()
8756 return $1
8757 } # as_fn_set_status
8759 # as_fn_exit STATUS
8760 # -----------------
8761 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8762 as_fn_exit ()
8764 set +e
8765 as_fn_set_status $1
8766 exit $1
8767 } # as_fn_exit
8769 # as_fn_unset VAR
8770 # ---------------
8771 # Portably unset VAR.
8772 as_fn_unset ()
8774 { eval $1=; unset $1;}
8776 as_unset=as_fn_unset
8777 # as_fn_append VAR VALUE
8778 # ----------------------
8779 # Append the text in VALUE to the end of the definition contained in VAR. Take
8780 # advantage of any shell optimizations that allow amortized linear growth over
8781 # repeated appends, instead of the typical quadratic growth present in naive
8782 # implementations.
8783 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8784 eval 'as_fn_append ()
8786 eval $1+=\$2
8788 else
8789 as_fn_append ()
8791 eval $1=\$$1\$2
8793 fi # as_fn_append
8795 # as_fn_arith ARG...
8796 # ------------------
8797 # Perform arithmetic evaluation on the ARGs, and store the result in the
8798 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8799 # must be portable across $(()) and expr.
8800 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8801 eval 'as_fn_arith ()
8803 as_val=$(( $* ))
8805 else
8806 as_fn_arith ()
8808 as_val=`expr "$@" || test $? -eq 1`
8810 fi # as_fn_arith
8813 if expr a : '\(a\)' >/dev/null 2>&1 &&
8814 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8815 as_expr=expr
8816 else
8817 as_expr=false
8820 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8821 as_basename=basename
8822 else
8823 as_basename=false
8826 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8827 as_dirname=dirname
8828 else
8829 as_dirname=false
8832 as_me=`$as_basename -- "$0" ||
8833 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8834 X"$0" : 'X\(//\)$' \| \
8835 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8836 $as_echo X/"$0" |
8837 sed '/^.*\/\([^/][^/]*\)\/*$/{
8838 s//\1/
8841 /^X\/\(\/\/\)$/{
8842 s//\1/
8845 /^X\/\(\/\).*/{
8846 s//\1/
8849 s/.*/./; q'`
8851 # Avoid depending upon Character Ranges.
8852 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8853 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8854 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8855 as_cr_digits='0123456789'
8856 as_cr_alnum=$as_cr_Letters$as_cr_digits
8858 ECHO_C= ECHO_N= ECHO_T=
8859 case `echo -n x` in #(((((
8860 -n*)
8861 case `echo 'xy\c'` in
8862 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8863 xy) ECHO_C='\c';;
8864 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8865 ECHO_T=' ';;
8866 esac;;
8868 ECHO_N='-n';;
8869 esac
8871 rm -f conf$$ conf$$.exe conf$$.file
8872 if test -d conf$$.dir; then
8873 rm -f conf$$.dir/conf$$.file
8874 else
8875 rm -f conf$$.dir
8876 mkdir conf$$.dir 2>/dev/null
8878 if (echo >conf$$.file) 2>/dev/null; then
8879 if ln -s conf$$.file conf$$ 2>/dev/null; then
8880 as_ln_s='ln -s'
8881 # ... but there are two gotchas:
8882 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8883 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8884 # In both cases, we have to default to `cp -pR'.
8885 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8886 as_ln_s='cp -pR'
8887 elif ln conf$$.file conf$$ 2>/dev/null; then
8888 as_ln_s=ln
8889 else
8890 as_ln_s='cp -pR'
8892 else
8893 as_ln_s='cp -pR'
8895 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8896 rmdir conf$$.dir 2>/dev/null
8899 # as_fn_mkdir_p
8900 # -------------
8901 # Create "$as_dir" as a directory, including parents if necessary.
8902 as_fn_mkdir_p ()
8905 case $as_dir in #(
8906 -*) as_dir=./$as_dir;;
8907 esac
8908 test -d "$as_dir" || eval $as_mkdir_p || {
8909 as_dirs=
8910 while :; do
8911 case $as_dir in #(
8912 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8913 *) as_qdir=$as_dir;;
8914 esac
8915 as_dirs="'$as_qdir' $as_dirs"
8916 as_dir=`$as_dirname -- "$as_dir" ||
8917 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8918 X"$as_dir" : 'X\(//\)[^/]' \| \
8919 X"$as_dir" : 'X\(//\)$' \| \
8920 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8921 $as_echo X"$as_dir" |
8922 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8923 s//\1/
8926 /^X\(\/\/\)[^/].*/{
8927 s//\1/
8930 /^X\(\/\/\)$/{
8931 s//\1/
8934 /^X\(\/\).*/{
8935 s//\1/
8938 s/.*/./; q'`
8939 test -d "$as_dir" && break
8940 done
8941 test -z "$as_dirs" || eval "mkdir $as_dirs"
8942 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8945 } # as_fn_mkdir_p
8946 if mkdir -p . 2>/dev/null; then
8947 as_mkdir_p='mkdir -p "$as_dir"'
8948 else
8949 test -d ./-p && rmdir ./-p
8950 as_mkdir_p=false
8954 # as_fn_executable_p FILE
8955 # -----------------------
8956 # Test if FILE is an executable regular file.
8957 as_fn_executable_p ()
8959 test -f "$1" && test -x "$1"
8960 } # as_fn_executable_p
8961 as_test_x='test -x'
8962 as_executable_p=as_fn_executable_p
8964 # Sed expression to map a string onto a valid CPP name.
8965 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8967 # Sed expression to map a string onto a valid variable name.
8968 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8971 exec 6>&1
8972 ## ----------------------------------- ##
8973 ## Main body of $CONFIG_STATUS script. ##
8974 ## ----------------------------------- ##
8975 _ASEOF
8976 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8978 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8979 # Save the log message, to keep $0 and so on meaningful, and to
8980 # report actual input values of CONFIG_FILES etc. instead of their
8981 # values after options handling.
8982 ac_log="
8983 This file was extended by GDash $as_me 20130623unstable, which was
8984 generated by GNU Autoconf 2.69. Invocation command line was
8986 CONFIG_FILES = $CONFIG_FILES
8987 CONFIG_HEADERS = $CONFIG_HEADERS
8988 CONFIG_LINKS = $CONFIG_LINKS
8989 CONFIG_COMMANDS = $CONFIG_COMMANDS
8990 $ $0 $@
8992 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8995 _ACEOF
8997 case $ac_config_files in *"
8998 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8999 esac
9001 case $ac_config_headers in *"
9002 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
9003 esac
9006 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9007 # Files that config.status was made for.
9008 config_files="$ac_config_files"
9009 config_headers="$ac_config_headers"
9010 config_commands="$ac_config_commands"
9012 _ACEOF
9014 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9015 ac_cs_usage="\
9016 \`$as_me' instantiates files and other configuration actions
9017 from templates according to the current configuration. Unless the files
9018 and actions are specified as TAGs, all are instantiated by default.
9020 Usage: $0 [OPTION]... [TAG]...
9022 -h, --help print this help, then exit
9023 -V, --version print version number and configuration settings, then exit
9024 --config print configuration, then exit
9025 -q, --quiet, --silent
9026 do not print progress messages
9027 -d, --debug don't remove temporary files
9028 --recheck update $as_me by reconfiguring in the same conditions
9029 --file=FILE[:TEMPLATE]
9030 instantiate the configuration file FILE
9031 --header=FILE[:TEMPLATE]
9032 instantiate the configuration header FILE
9034 Configuration files:
9035 $config_files
9037 Configuration headers:
9038 $config_headers
9040 Configuration commands:
9041 $config_commands
9043 Report bugs to <http://code.google.com/p/gdash/>."
9045 _ACEOF
9046 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9047 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
9048 ac_cs_version="\\
9049 GDash config.status 20130623unstable
9050 configured by $0, generated by GNU Autoconf 2.69,
9051 with options \\"\$ac_cs_config\\"
9053 Copyright (C) 2012 Free Software Foundation, Inc.
9054 This config.status script is free software; the Free Software Foundation
9055 gives unlimited permission to copy, distribute and modify it."
9057 ac_pwd='$ac_pwd'
9058 srcdir='$srcdir'
9059 INSTALL='$INSTALL'
9060 MKDIR_P='$MKDIR_P'
9061 AWK='$AWK'
9062 test -n "\$AWK" || AWK=awk
9063 _ACEOF
9065 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9066 # The default lists apply if the user does not specify any file.
9067 ac_need_defaults=:
9068 while test $# != 0
9070 case $1 in
9071 --*=?*)
9072 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9073 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9074 ac_shift=:
9076 --*=)
9077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9078 ac_optarg=
9079 ac_shift=:
9082 ac_option=$1
9083 ac_optarg=$2
9084 ac_shift=shift
9086 esac
9088 case $ac_option in
9089 # Handling of the options.
9090 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9091 ac_cs_recheck=: ;;
9092 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9093 $as_echo "$ac_cs_version"; exit ;;
9094 --config | --confi | --conf | --con | --co | --c )
9095 $as_echo "$ac_cs_config"; exit ;;
9096 --debug | --debu | --deb | --de | --d | -d )
9097 debug=: ;;
9098 --file | --fil | --fi | --f )
9099 $ac_shift
9100 case $ac_optarg in
9101 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9102 '') as_fn_error $? "missing file argument" ;;
9103 esac
9104 as_fn_append CONFIG_FILES " '$ac_optarg'"
9105 ac_need_defaults=false;;
9106 --header | --heade | --head | --hea )
9107 $ac_shift
9108 case $ac_optarg in
9109 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
9110 esac
9111 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
9112 ac_need_defaults=false;;
9113 --he | --h)
9114 # Conflict between --help and --header
9115 as_fn_error $? "ambiguous option: \`$1'
9116 Try \`$0 --help' for more information.";;
9117 --help | --hel | -h )
9118 $as_echo "$ac_cs_usage"; exit ;;
9119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9120 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9121 ac_cs_silent=: ;;
9123 # This is an error.
9124 -*) as_fn_error $? "unrecognized option: \`$1'
9125 Try \`$0 --help' for more information." ;;
9127 *) as_fn_append ac_config_targets " $1"
9128 ac_need_defaults=false ;;
9130 esac
9131 shift
9132 done
9134 ac_configure_extra_args=
9136 if $ac_cs_silent; then
9137 exec 6>/dev/null
9138 ac_configure_extra_args="$ac_configure_extra_args --silent"
9141 _ACEOF
9142 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9143 if \$ac_cs_recheck; then
9144 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9145 shift
9146 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
9147 CONFIG_SHELL='$SHELL'
9148 export CONFIG_SHELL
9149 exec "\$@"
9152 _ACEOF
9153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9154 exec 5>>config.log
9156 echo
9157 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9158 ## Running $as_me. ##
9159 _ASBOX
9160 $as_echo "$ac_log"
9161 } >&5
9163 _ACEOF
9164 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9166 # INIT-COMMANDS
9168 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9169 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
9170 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
9171 # from automake < 1.5.
9172 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
9173 # Capture the value of LINGUAS because we need it to compute CATALOGS.
9174 LINGUAS="${LINGUAS-%UNSET%}"
9177 _ACEOF
9179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9181 # Handling of arguments.
9182 for ac_config_target in $ac_config_targets
9184 case $ac_config_target in
9185 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9186 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9187 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
9188 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9189 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
9190 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
9191 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
9192 "caves/Makefile") CONFIG_FILES="$CONFIG_FILES caves/Makefile" ;;
9193 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
9194 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
9195 "music/Makefile") CONFIG_FILES="$CONFIG_FILES music/Makefile" ;;
9196 "shaders/Makefile") CONFIG_FILES="$CONFIG_FILES shaders/Makefile" ;;
9198 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
9199 esac
9200 done
9203 # If the user did not use the arguments to specify the items to instantiate,
9204 # then the envvar interface is used. Set only those that are not.
9205 # We use the long form for the default assignment because of an extremely
9206 # bizarre bug on SunOS 4.1.3.
9207 if $ac_need_defaults; then
9208 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9209 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9210 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9213 # Have a temporary directory for convenience. Make it in the build tree
9214 # simply because there is no reason against having it here, and in addition,
9215 # creating and moving files from /tmp can sometimes cause problems.
9216 # Hook for its removal unless debugging.
9217 # Note that there is a small window in which the directory will not be cleaned:
9218 # after its creation but before its name has been assigned to `$tmp'.
9219 $debug ||
9221 tmp= ac_tmp=
9222 trap 'exit_status=$?
9223 : "${ac_tmp:=$tmp}"
9224 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9226 trap 'as_fn_exit 1' 1 2 13 15
9228 # Create a (secure) tmp directory for tmp files.
9231 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9232 test -d "$tmp"
9233 } ||
9235 tmp=./conf$$-$RANDOM
9236 (umask 077 && mkdir "$tmp")
9237 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9238 ac_tmp=$tmp
9240 # Set up the scripts for CONFIG_FILES section.
9241 # No need to generate them if there are no CONFIG_FILES.
9242 # This happens for instance with `./config.status config.h'.
9243 if test -n "$CONFIG_FILES"; then
9246 ac_cr=`echo X | tr X '\015'`
9247 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9248 # But we know of no other shell where ac_cr would be empty at this
9249 # point, so we can use a bashism as a fallback.
9250 if test "x$ac_cr" = x; then
9251 eval ac_cr=\$\'\\r\'
9253 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9254 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9255 ac_cs_awk_cr='\\r'
9256 else
9257 ac_cs_awk_cr=$ac_cr
9260 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9261 _ACEOF
9265 echo "cat >conf$$subs.awk <<_ACEOF" &&
9266 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9267 echo "_ACEOF"
9268 } >conf$$subs.sh ||
9269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9270 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9271 ac_delim='%!_!# '
9272 for ac_last_try in false false false false false :; do
9273 . ./conf$$subs.sh ||
9274 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9276 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9277 if test $ac_delim_n = $ac_delim_num; then
9278 break
9279 elif $ac_last_try; then
9280 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9281 else
9282 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9284 done
9285 rm -f conf$$subs.sh
9287 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9288 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9289 _ACEOF
9290 sed -n '
9292 s/^/S["/; s/!.*/"]=/
9295 s/^[^!]*!//
9296 :repl
9297 t repl
9298 s/'"$ac_delim"'$//
9299 t delim
9302 s/\(.\{148\}\)..*/\1/
9303 t more1
9304 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9307 b repl
9308 :more1
9309 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9312 s/.\{148\}//
9313 t nl
9314 :delim
9316 s/\(.\{148\}\)..*/\1/
9317 t more2
9318 s/["\\]/\\&/g; s/^/"/; s/$/"/
9321 :more2
9322 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9325 s/.\{148\}//
9326 t delim
9327 ' <conf$$subs.awk | sed '
9328 /^[^""]/{
9330 s/\n//
9332 ' >>$CONFIG_STATUS || ac_write_fail=1
9333 rm -f conf$$subs.awk
9334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9335 _ACAWK
9336 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9337 for (key in S) S_is_set[key] = 1
9338 FS = "\a"
9342 line = $ 0
9343 nfields = split(line, field, "@")
9344 substed = 0
9345 len = length(field[1])
9346 for (i = 2; i < nfields; i++) {
9347 key = field[i]
9348 keylen = length(key)
9349 if (S_is_set[key]) {
9350 value = S[key]
9351 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9352 len += length(value) + length(field[++i])
9353 substed = 1
9354 } else
9355 len += 1 + keylen
9358 print line
9361 _ACAWK
9362 _ACEOF
9363 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9364 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9365 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9366 else
9368 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9369 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9370 _ACEOF
9372 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9373 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9374 # trailing colons and then remove the whole line if VPATH becomes empty
9375 # (actually we leave an empty line to preserve line numbers).
9376 if test "x$srcdir" = x.; then
9377 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9379 s///
9380 s/^/:/
9381 s/[ ]*$/:/
9382 s/:\$(srcdir):/:/g
9383 s/:\${srcdir}:/:/g
9384 s/:@srcdir@:/:/g
9385 s/^:*//
9386 s/:*$//
9388 s/\(=[ ]*\).*/\1/
9390 s/\n//
9391 s/^[^=]*=[ ]*$//
9395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9396 fi # test -n "$CONFIG_FILES"
9398 # Set up the scripts for CONFIG_HEADERS section.
9399 # No need to generate them if there are no CONFIG_HEADERS.
9400 # This happens for instance with `./config.status Makefile'.
9401 if test -n "$CONFIG_HEADERS"; then
9402 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9403 BEGIN {
9404 _ACEOF
9406 # Transform confdefs.h into an awk script `defines.awk', embedded as
9407 # here-document in config.status, that substitutes the proper values into
9408 # config.h.in to produce config.h.
9410 # Create a delimiter string that does not exist in confdefs.h, to ease
9411 # handling of long lines.
9412 ac_delim='%!_!# '
9413 for ac_last_try in false false :; do
9414 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9415 if test -z "$ac_tt"; then
9416 break
9417 elif $ac_last_try; then
9418 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9419 else
9420 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9422 done
9424 # For the awk script, D is an array of macro values keyed by name,
9425 # likewise P contains macro parameters if any. Preserve backslash
9426 # newline sequences.
9428 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9429 sed -n '
9430 s/.\{148\}/&'"$ac_delim"'/g
9431 t rset
9432 :rset
9433 s/^[ ]*#[ ]*define[ ][ ]*/ /
9434 t def
9436 :def
9437 s/\\$//
9438 t bsnl
9439 s/["\\]/\\&/g
9440 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9441 D["\1"]=" \3"/p
9442 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9444 :bsnl
9445 s/["\\]/\\&/g
9446 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9447 D["\1"]=" \3\\\\\\n"\\/p
9448 t cont
9449 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9450 t cont
9452 :cont
9454 s/.\{148\}/&'"$ac_delim"'/g
9455 t clear
9456 :clear
9457 s/\\$//
9458 t bsnlc
9459 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9461 :bsnlc
9462 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9463 b cont
9464 ' <confdefs.h | sed '
9465 s/'"$ac_delim"'/"\\\
9466 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9468 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9469 for (key in D) D_is_set[key] = 1
9470 FS = "\a"
9472 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9473 line = \$ 0
9474 split(line, arg, " ")
9475 if (arg[1] == "#") {
9476 defundef = arg[2]
9477 mac1 = arg[3]
9478 } else {
9479 defundef = substr(arg[1], 2)
9480 mac1 = arg[2]
9482 split(mac1, mac2, "(") #)
9483 macro = mac2[1]
9484 prefix = substr(line, 1, index(line, defundef) - 1)
9485 if (D_is_set[macro]) {
9486 # Preserve the white space surrounding the "#".
9487 print prefix "define", macro P[macro] D[macro]
9488 next
9489 } else {
9490 # Replace #undef with comments. This is necessary, for example,
9491 # in the case of _POSIX_SOURCE, which is predefined and required
9492 # on some systems where configure will not decide to define it.
9493 if (defundef == "undef") {
9494 print "/*", prefix defundef, macro, "*/"
9495 next
9499 { print }
9500 _ACAWK
9501 _ACEOF
9502 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9503 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9504 fi # test -n "$CONFIG_HEADERS"
9507 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9508 shift
9509 for ac_tag
9511 case $ac_tag in
9512 :[FHLC]) ac_mode=$ac_tag; continue;;
9513 esac
9514 case $ac_mode$ac_tag in
9515 :[FHL]*:*);;
9516 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9517 :[FH]-) ac_tag=-:-;;
9518 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9519 esac
9520 ac_save_IFS=$IFS
9521 IFS=:
9522 set x $ac_tag
9523 IFS=$ac_save_IFS
9524 shift
9525 ac_file=$1
9526 shift
9528 case $ac_mode in
9529 :L) ac_source=$1;;
9530 :[FH])
9531 ac_file_inputs=
9532 for ac_f
9534 case $ac_f in
9535 -) ac_f="$ac_tmp/stdin";;
9536 *) # Look for the file first in the build tree, then in the source tree
9537 # (if the path is not absolute). The absolute path cannot be DOS-style,
9538 # because $ac_f cannot contain `:'.
9539 test -f "$ac_f" ||
9540 case $ac_f in
9541 [\\/$]*) false;;
9542 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9543 esac ||
9544 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9545 esac
9546 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9547 as_fn_append ac_file_inputs " '$ac_f'"
9548 done
9550 # Let's still pretend it is `configure' which instantiates (i.e., don't
9551 # use $as_me), people would be surprised to read:
9552 # /* config.h. Generated by config.status. */
9553 configure_input='Generated from '`
9554 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9555 `' by configure.'
9556 if test x"$ac_file" != x-; then
9557 configure_input="$ac_file. $configure_input"
9558 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9559 $as_echo "$as_me: creating $ac_file" >&6;}
9561 # Neutralize special characters interpreted by sed in replacement strings.
9562 case $configure_input in #(
9563 *\&* | *\|* | *\\* )
9564 ac_sed_conf_input=`$as_echo "$configure_input" |
9565 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9566 *) ac_sed_conf_input=$configure_input;;
9567 esac
9569 case $ac_tag in
9570 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9571 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9572 esac
9574 esac
9576 ac_dir=`$as_dirname -- "$ac_file" ||
9577 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9578 X"$ac_file" : 'X\(//\)[^/]' \| \
9579 X"$ac_file" : 'X\(//\)$' \| \
9580 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9581 $as_echo X"$ac_file" |
9582 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9583 s//\1/
9586 /^X\(\/\/\)[^/].*/{
9587 s//\1/
9590 /^X\(\/\/\)$/{
9591 s//\1/
9594 /^X\(\/\).*/{
9595 s//\1/
9598 s/.*/./; q'`
9599 as_dir="$ac_dir"; as_fn_mkdir_p
9600 ac_builddir=.
9602 case "$ac_dir" in
9603 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9605 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9606 # A ".." for each directory in $ac_dir_suffix.
9607 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9608 case $ac_top_builddir_sub in
9609 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9610 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9611 esac ;;
9612 esac
9613 ac_abs_top_builddir=$ac_pwd
9614 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9615 # for backward compatibility:
9616 ac_top_builddir=$ac_top_build_prefix
9618 case $srcdir in
9619 .) # We are building in place.
9620 ac_srcdir=.
9621 ac_top_srcdir=$ac_top_builddir_sub
9622 ac_abs_top_srcdir=$ac_pwd ;;
9623 [\\/]* | ?:[\\/]* ) # Absolute name.
9624 ac_srcdir=$srcdir$ac_dir_suffix;
9625 ac_top_srcdir=$srcdir
9626 ac_abs_top_srcdir=$srcdir ;;
9627 *) # Relative name.
9628 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9629 ac_top_srcdir=$ac_top_build_prefix$srcdir
9630 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9631 esac
9632 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9635 case $ac_mode in
9638 # CONFIG_FILE
9641 case $INSTALL in
9642 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9643 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9644 esac
9645 ac_MKDIR_P=$MKDIR_P
9646 case $MKDIR_P in
9647 [\\/$]* | ?:[\\/]* ) ;;
9648 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9649 esac
9650 _ACEOF
9652 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9653 # If the template does not know about datarootdir, expand it.
9654 # FIXME: This hack should be removed a few years after 2.60.
9655 ac_datarootdir_hack=; ac_datarootdir_seen=
9656 ac_sed_dataroot='
9657 /datarootdir/ {
9661 /@datadir@/p
9662 /@docdir@/p
9663 /@infodir@/p
9664 /@localedir@/p
9665 /@mandir@/p'
9666 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9667 *datarootdir*) ac_datarootdir_seen=yes;;
9668 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9670 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9671 _ACEOF
9672 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9673 ac_datarootdir_hack='
9674 s&@datadir@&$datadir&g
9675 s&@docdir@&$docdir&g
9676 s&@infodir@&$infodir&g
9677 s&@localedir@&$localedir&g
9678 s&@mandir@&$mandir&g
9679 s&\\\${datarootdir}&$datarootdir&g' ;;
9680 esac
9681 _ACEOF
9683 # Neutralize VPATH when `$srcdir' = `.'.
9684 # Shell code in configure.ac might set extrasub.
9685 # FIXME: do we really want to maintain this feature?
9686 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9687 ac_sed_extra="$ac_vpsub
9688 $extrasub
9689 _ACEOF
9690 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9692 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9693 s|@configure_input@|$ac_sed_conf_input|;t t
9694 s&@top_builddir@&$ac_top_builddir_sub&;t t
9695 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9696 s&@srcdir@&$ac_srcdir&;t t
9697 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9698 s&@top_srcdir@&$ac_top_srcdir&;t t
9699 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9700 s&@builddir@&$ac_builddir&;t t
9701 s&@abs_builddir@&$ac_abs_builddir&;t t
9702 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9703 s&@INSTALL@&$ac_INSTALL&;t t
9704 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9705 $ac_datarootdir_hack
9707 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9708 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9710 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9711 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9712 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9713 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9714 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9715 which seems to be undefined. Please make sure it is defined" >&5
9716 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9717 which seems to be undefined. Please make sure it is defined" >&2;}
9719 rm -f "$ac_tmp/stdin"
9720 case $ac_file in
9721 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9722 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9723 esac \
9724 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9728 # CONFIG_HEADER
9730 if test x"$ac_file" != x-; then
9732 $as_echo "/* $configure_input */" \
9733 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9734 } >"$ac_tmp/config.h" \
9735 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9736 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9737 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9738 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9739 else
9740 rm -f "$ac_file"
9741 mv "$ac_tmp/config.h" "$ac_file" \
9742 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9744 else
9745 $as_echo "/* $configure_input */" \
9746 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9747 || as_fn_error $? "could not create -" "$LINENO" 5
9749 # Compute "$ac_file"'s index in $config_headers.
9750 _am_arg="$ac_file"
9751 _am_stamp_count=1
9752 for _am_header in $config_headers :; do
9753 case $_am_header in
9754 $_am_arg | $_am_arg:* )
9755 break ;;
9757 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9758 esac
9759 done
9760 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9761 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9762 X"$_am_arg" : 'X\(//\)[^/]' \| \
9763 X"$_am_arg" : 'X\(//\)$' \| \
9764 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9765 $as_echo X"$_am_arg" |
9766 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9767 s//\1/
9770 /^X\(\/\/\)[^/].*/{
9771 s//\1/
9774 /^X\(\/\/\)$/{
9775 s//\1/
9778 /^X\(\/\).*/{
9779 s//\1/
9782 s/.*/./; q'`/stamp-h$_am_stamp_count
9785 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9786 $as_echo "$as_me: executing $ac_file commands" >&6;}
9788 esac
9791 case $ac_file$ac_mode in
9792 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9793 # Older Autoconf quotes --file arguments for eval, but not when files
9794 # are listed without --file. Let's play safe and only enable the eval
9795 # if we detect the quoting.
9796 case $CONFIG_FILES in
9797 *\'*) eval set x "$CONFIG_FILES" ;;
9798 *) set x $CONFIG_FILES ;;
9799 esac
9800 shift
9801 for mf
9803 # Strip MF so we end up with the name of the file.
9804 mf=`echo "$mf" | sed -e 's/:.*$//'`
9805 # Check whether this is an Automake generated Makefile or not.
9806 # We used to match only the files named 'Makefile.in', but
9807 # some people rename them; so instead we look at the file content.
9808 # Grep'ing the first line is not enough: some people post-process
9809 # each Makefile.in and add a new line on top of each file to say so.
9810 # Grep'ing the whole file is not good either: AIX grep has a line
9811 # limit of 2048, but all sed's we know have understand at least 4000.
9812 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9813 dirpart=`$as_dirname -- "$mf" ||
9814 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9815 X"$mf" : 'X\(//\)[^/]' \| \
9816 X"$mf" : 'X\(//\)$' \| \
9817 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9818 $as_echo X"$mf" |
9819 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9820 s//\1/
9823 /^X\(\/\/\)[^/].*/{
9824 s//\1/
9827 /^X\(\/\/\)$/{
9828 s//\1/
9831 /^X\(\/\).*/{
9832 s//\1/
9835 s/.*/./; q'`
9836 else
9837 continue
9839 # Extract the definition of DEPDIR, am__include, and am__quote
9840 # from the Makefile without running 'make'.
9841 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9842 test -z "$DEPDIR" && continue
9843 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9844 test -z "$am__include" && continue
9845 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9846 # Find all dependency output files, they are included files with
9847 # $(DEPDIR) in their names. We invoke sed twice because it is the
9848 # simplest approach to changing $(DEPDIR) to its actual value in the
9849 # expansion.
9850 for file in `sed -n "
9851 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9852 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
9853 # Make sure the directory exists.
9854 test -f "$dirpart/$file" && continue
9855 fdir=`$as_dirname -- "$file" ||
9856 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9857 X"$file" : 'X\(//\)[^/]' \| \
9858 X"$file" : 'X\(//\)$' \| \
9859 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9860 $as_echo X"$file" |
9861 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9862 s//\1/
9865 /^X\(\/\/\)[^/].*/{
9866 s//\1/
9869 /^X\(\/\/\)$/{
9870 s//\1/
9873 /^X\(\/\).*/{
9874 s//\1/
9877 s/.*/./; q'`
9878 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9879 # echo "creating $dirpart/$file"
9880 echo '# dummy' > "$dirpart/$file"
9881 done
9882 done
9885 "po-directories":C)
9886 for ac_file in $CONFIG_FILES; do
9887 # Support "outfile[:infile[:infile...]]"
9888 case "$ac_file" in
9889 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9890 esac
9891 # PO directories have a Makefile.in generated from Makefile.in.in.
9892 case "$ac_file" in */Makefile.in)
9893 # Adjust a relative srcdir.
9894 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9895 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'`
9896 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9897 # In autoconf-2.13 it is called $ac_given_srcdir.
9898 # In autoconf-2.50 it is called $srcdir.
9899 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9900 case "$ac_given_srcdir" in
9901 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9902 /*) top_srcdir="$ac_given_srcdir" ;;
9903 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9904 esac
9905 # Treat a directory as a PO directory if and only if it has a
9906 # POTFILES.in file. This allows packages to have multiple PO
9907 # directories under different names or in different locations.
9908 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9909 rm -f "$ac_dir/POTFILES"
9910 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9911 gt_tab=`printf '\t'`
9912 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9913 POMAKEFILEDEPS="POTFILES.in"
9914 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9915 # on $ac_dir but don't depend on user-specified configuration
9916 # parameters.
9917 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9918 # The LINGUAS file contains the set of available languages.
9919 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9920 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9922 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9923 # Hide the ALL_LINGUAS assignment from automake < 1.5.
9924 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9925 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9926 else
9927 # The set of available languages was given in configure.in.
9928 # Hide the ALL_LINGUAS assignment from automake < 1.5.
9929 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9931 # Compute POFILES
9932 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9933 # Compute UPDATEPOFILES
9934 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9935 # Compute DUMMYPOFILES
9936 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9937 # Compute GMOFILES
9938 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9939 case "$ac_given_srcdir" in
9940 .) srcdirpre= ;;
9941 *) srcdirpre='$(srcdir)/' ;;
9942 esac
9943 POFILES=
9944 UPDATEPOFILES=
9945 DUMMYPOFILES=
9946 GMOFILES=
9947 for lang in $ALL_LINGUAS; do
9948 POFILES="$POFILES $srcdirpre$lang.po"
9949 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9950 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9951 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9952 done
9953 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9954 # environment variable.
9955 INST_LINGUAS=
9956 if test -n "$ALL_LINGUAS"; then
9957 for presentlang in $ALL_LINGUAS; do
9958 useit=no
9959 if test "%UNSET%" != "$LINGUAS"; then
9960 desiredlanguages="$LINGUAS"
9961 else
9962 desiredlanguages="$ALL_LINGUAS"
9964 for desiredlang in $desiredlanguages; do
9965 # Use the presentlang catalog if desiredlang is
9966 # a. equal to presentlang, or
9967 # b. a variant of presentlang (because in this case,
9968 # presentlang can be used as a fallback for messages
9969 # which are not translated in the desiredlang catalog).
9970 case "$desiredlang" in
9971 "$presentlang"*) useit=yes;;
9972 esac
9973 done
9974 if test $useit = yes; then
9975 INST_LINGUAS="$INST_LINGUAS $presentlang"
9977 done
9979 CATALOGS=
9980 if test -n "$INST_LINGUAS"; then
9981 for lang in $INST_LINGUAS; do
9982 CATALOGS="$CATALOGS $lang.gmo"
9983 done
9985 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9986 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"
9987 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9988 if test -f "$f"; then
9989 case "$f" in
9990 *.orig | *.bak | *~) ;;
9991 *) cat "$f" >> "$ac_dir/Makefile" ;;
9992 esac
9994 done
9997 esac
9998 done ;;
10000 esac
10001 done # for ac_tag
10004 as_fn_exit 0
10005 _ACEOF
10006 ac_clean_files=$ac_clean_files_save
10008 test $ac_write_fail = 0 ||
10009 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
10012 # configure is writing to config.log, and then calls config.status.
10013 # config.status does its own redirection, appending to config.log.
10014 # Unfortunately, on DOS this fails, as config.log is still kept open
10015 # by configure, so config.status won't be able to write to it; its
10016 # output is simply discarded. So we exec the FD to /dev/null,
10017 # effectively closing config.log, so it can be properly (re)opened and
10018 # appended to by config.status. When coming back to configure, we
10019 # need to make the FD available again.
10020 if test "$no_create" != yes; then
10021 ac_cs_success=:
10022 ac_config_status_args=
10023 test "$silent" = yes &&
10024 ac_config_status_args="$ac_config_status_args --quiet"
10025 exec 5>/dev/null
10026 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10027 exec 5>>config.log
10028 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10029 # would make configure fail if this is the last instruction.
10030 $ac_cs_success || as_fn_exit 1
10032 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
10033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
10034 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}