20130313
[gdash.git] / configure
blob8dd1b7e027e4da13872791a41760352b4b5dd2f5
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for GDash 20130313unstable.
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='20130313unstable'
584 PACKAGE_STRING='GDash 20130313unstable'
585 PACKAGE_BUGREPORT='http://code.google.com/p/gdash/'
586 PACKAGE_URL=''
588 ac_unique_file="src/gtkmain.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 SDL_LIBS
632 SDL_CFLAGS
633 SDL_CONFIG
634 SDL_FALSE
635 SDL_TRUE
636 GTK_LIBS
637 GTK_CFLAGS
638 GTK_FALSE
639 GTK_TRUE
640 GLIB_COMPILE_RESOURCES
641 GLIB_MKENUMS
642 GOBJECT_QUERY
643 GLIB_GENMARSHAL
644 GLIB_LIBS
645 GLIB_CFLAGS
646 LIBOBJS
647 POSUB
648 LTLIBINTL
649 LIBINTL
650 INTLLIBS
651 LTLIBICONV
652 LIBICONV
653 INTL_MACOSX_LIBS
654 host_os
655 host_vendor
656 host_cpu
657 host
658 build_os
659 build_vendor
660 build_cpu
661 build
662 XGETTEXT_EXTRA_OPTIONS
663 MSGMERGE
664 XGETTEXT_015
665 XGETTEXT
666 GMSGFMT_015
667 MSGFMT_015
668 GMSGFMT
669 MSGFMT
670 GETTEXT_MACRO_VERSION
671 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 enable_glibtest
779 enable_gtktest
780 with_sdl_prefix
781 with_sdl_exec_prefix
782 enable_sdltest
784 ac_precious_vars='build_alias
785 host_alias
786 target_alias
788 CFLAGS
789 LDFLAGS
790 LIBS
791 CPPFLAGS
793 CXXFLAGS
795 PKG_CONFIG
796 PKG_CONFIG_PATH
797 PKG_CONFIG_LIBDIR
799 LIBPNG_CFLAGS
800 LIBPNG_LIBS'
803 # Initialize some variables set by options.
804 ac_init_help=
805 ac_init_version=false
806 ac_unrecognized_opts=
807 ac_unrecognized_sep=
808 # The variables have the same names as the options, with
809 # dashes changed to underlines.
810 cache_file=/dev/null
811 exec_prefix=NONE
812 no_create=
813 no_recursion=
814 prefix=NONE
815 program_prefix=NONE
816 program_suffix=NONE
817 program_transform_name=s,x,x,
818 silent=
819 site=
820 srcdir=
821 verbose=
822 x_includes=NONE
823 x_libraries=NONE
825 # Installation directory options.
826 # These are left unexpanded so users can "make install exec_prefix=/foo"
827 # and all the variables that are supposed to be based on exec_prefix
828 # by default will actually change.
829 # Use braces instead of parens because sh, perl, etc. also accept them.
830 # (The list follows the same order as the GNU Coding Standards.)
831 bindir='${exec_prefix}/bin'
832 sbindir='${exec_prefix}/sbin'
833 libexecdir='${exec_prefix}/libexec'
834 datarootdir='${prefix}/share'
835 datadir='${datarootdir}'
836 sysconfdir='${prefix}/etc'
837 sharedstatedir='${prefix}/com'
838 localstatedir='${prefix}/var'
839 includedir='${prefix}/include'
840 oldincludedir='/usr/include'
841 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
842 infodir='${datarootdir}/info'
843 htmldir='${docdir}'
844 dvidir='${docdir}'
845 pdfdir='${docdir}'
846 psdir='${docdir}'
847 libdir='${exec_prefix}/lib'
848 localedir='${datarootdir}/locale'
849 mandir='${datarootdir}/man'
851 ac_prev=
852 ac_dashdash=
853 for ac_option
855 # If the previous option needs an argument, assign it.
856 if test -n "$ac_prev"; then
857 eval $ac_prev=\$ac_option
858 ac_prev=
859 continue
862 case $ac_option in
863 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
864 *=) ac_optarg= ;;
865 *) ac_optarg=yes ;;
866 esac
868 # Accept the important Cygnus configure options, so we can diagnose typos.
870 case $ac_dashdash$ac_option in
872 ac_dashdash=yes ;;
874 -bindir | --bindir | --bindi | --bind | --bin | --bi)
875 ac_prev=bindir ;;
876 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
877 bindir=$ac_optarg ;;
879 -build | --build | --buil | --bui | --bu)
880 ac_prev=build_alias ;;
881 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
882 build_alias=$ac_optarg ;;
884 -cache-file | --cache-file | --cache-fil | --cache-fi \
885 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
886 ac_prev=cache_file ;;
887 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
888 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
889 cache_file=$ac_optarg ;;
891 --config-cache | -C)
892 cache_file=config.cache ;;
894 -datadir | --datadir | --datadi | --datad)
895 ac_prev=datadir ;;
896 -datadir=* | --datadir=* | --datadi=* | --datad=*)
897 datadir=$ac_optarg ;;
899 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
900 | --dataroo | --dataro | --datar)
901 ac_prev=datarootdir ;;
902 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
903 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
904 datarootdir=$ac_optarg ;;
906 -disable-* | --disable-*)
907 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
908 # Reject names that are not valid shell variable names.
909 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
910 as_fn_error $? "invalid feature name: $ac_useropt"
911 ac_useropt_orig=$ac_useropt
912 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
913 case $ac_user_opts in
915 "enable_$ac_useropt"
916 "*) ;;
917 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
918 ac_unrecognized_sep=', ';;
919 esac
920 eval enable_$ac_useropt=no ;;
922 -docdir | --docdir | --docdi | --doc | --do)
923 ac_prev=docdir ;;
924 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
925 docdir=$ac_optarg ;;
927 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
928 ac_prev=dvidir ;;
929 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
930 dvidir=$ac_optarg ;;
932 -enable-* | --enable-*)
933 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
934 # Reject names that are not valid shell variable names.
935 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
936 as_fn_error $? "invalid feature name: $ac_useropt"
937 ac_useropt_orig=$ac_useropt
938 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
939 case $ac_user_opts in
941 "enable_$ac_useropt"
942 "*) ;;
943 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
944 ac_unrecognized_sep=', ';;
945 esac
946 eval enable_$ac_useropt=\$ac_optarg ;;
948 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
949 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
950 | --exec | --exe | --ex)
951 ac_prev=exec_prefix ;;
952 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
953 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
954 | --exec=* | --exe=* | --ex=*)
955 exec_prefix=$ac_optarg ;;
957 -gas | --gas | --ga | --g)
958 # Obsolete; use --with-gas.
959 with_gas=yes ;;
961 -help | --help | --hel | --he | -h)
962 ac_init_help=long ;;
963 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
964 ac_init_help=recursive ;;
965 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
966 ac_init_help=short ;;
968 -host | --host | --hos | --ho)
969 ac_prev=host_alias ;;
970 -host=* | --host=* | --hos=* | --ho=*)
971 host_alias=$ac_optarg ;;
973 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
974 ac_prev=htmldir ;;
975 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
976 | --ht=*)
977 htmldir=$ac_optarg ;;
979 -includedir | --includedir | --includedi | --included | --include \
980 | --includ | --inclu | --incl | --inc)
981 ac_prev=includedir ;;
982 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
983 | --includ=* | --inclu=* | --incl=* | --inc=*)
984 includedir=$ac_optarg ;;
986 -infodir | --infodir | --infodi | --infod | --info | --inf)
987 ac_prev=infodir ;;
988 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
989 infodir=$ac_optarg ;;
991 -libdir | --libdir | --libdi | --libd)
992 ac_prev=libdir ;;
993 -libdir=* | --libdir=* | --libdi=* | --libd=*)
994 libdir=$ac_optarg ;;
996 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
997 | --libexe | --libex | --libe)
998 ac_prev=libexecdir ;;
999 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1000 | --libexe=* | --libex=* | --libe=*)
1001 libexecdir=$ac_optarg ;;
1003 -localedir | --localedir | --localedi | --localed | --locale)
1004 ac_prev=localedir ;;
1005 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1006 localedir=$ac_optarg ;;
1008 -localstatedir | --localstatedir | --localstatedi | --localstated \
1009 | --localstate | --localstat | --localsta | --localst | --locals)
1010 ac_prev=localstatedir ;;
1011 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1012 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1013 localstatedir=$ac_optarg ;;
1015 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1016 ac_prev=mandir ;;
1017 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1018 mandir=$ac_optarg ;;
1020 -nfp | --nfp | --nf)
1021 # Obsolete; use --without-fp.
1022 with_fp=no ;;
1024 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1025 | --no-cr | --no-c | -n)
1026 no_create=yes ;;
1028 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1029 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1030 no_recursion=yes ;;
1032 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1033 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1034 | --oldin | --oldi | --old | --ol | --o)
1035 ac_prev=oldincludedir ;;
1036 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1037 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1038 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1039 oldincludedir=$ac_optarg ;;
1041 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1042 ac_prev=prefix ;;
1043 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1044 prefix=$ac_optarg ;;
1046 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1047 | --program-pre | --program-pr | --program-p)
1048 ac_prev=program_prefix ;;
1049 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1050 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1051 program_prefix=$ac_optarg ;;
1053 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1054 | --program-suf | --program-su | --program-s)
1055 ac_prev=program_suffix ;;
1056 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1057 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1058 program_suffix=$ac_optarg ;;
1060 -program-transform-name | --program-transform-name \
1061 | --program-transform-nam | --program-transform-na \
1062 | --program-transform-n | --program-transform- \
1063 | --program-transform | --program-transfor \
1064 | --program-transfo | --program-transf \
1065 | --program-trans | --program-tran \
1066 | --progr-tra | --program-tr | --program-t)
1067 ac_prev=program_transform_name ;;
1068 -program-transform-name=* | --program-transform-name=* \
1069 | --program-transform-nam=* | --program-transform-na=* \
1070 | --program-transform-n=* | --program-transform-=* \
1071 | --program-transform=* | --program-transfor=* \
1072 | --program-transfo=* | --program-transf=* \
1073 | --program-trans=* | --program-tran=* \
1074 | --progr-tra=* | --program-tr=* | --program-t=*)
1075 program_transform_name=$ac_optarg ;;
1077 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1078 ac_prev=pdfdir ;;
1079 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1080 pdfdir=$ac_optarg ;;
1082 -psdir | --psdir | --psdi | --psd | --ps)
1083 ac_prev=psdir ;;
1084 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1085 psdir=$ac_optarg ;;
1087 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1088 | -silent | --silent | --silen | --sile | --sil)
1089 silent=yes ;;
1091 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1092 ac_prev=sbindir ;;
1093 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1094 | --sbi=* | --sb=*)
1095 sbindir=$ac_optarg ;;
1097 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1098 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1099 | --sharedst | --shareds | --shared | --share | --shar \
1100 | --sha | --sh)
1101 ac_prev=sharedstatedir ;;
1102 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1103 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1104 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1105 | --sha=* | --sh=*)
1106 sharedstatedir=$ac_optarg ;;
1108 -site | --site | --sit)
1109 ac_prev=site ;;
1110 -site=* | --site=* | --sit=*)
1111 site=$ac_optarg ;;
1113 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1114 ac_prev=srcdir ;;
1115 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1116 srcdir=$ac_optarg ;;
1118 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1119 | --syscon | --sysco | --sysc | --sys | --sy)
1120 ac_prev=sysconfdir ;;
1121 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1122 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1123 sysconfdir=$ac_optarg ;;
1125 -target | --target | --targe | --targ | --tar | --ta | --t)
1126 ac_prev=target_alias ;;
1127 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1128 target_alias=$ac_optarg ;;
1130 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1131 verbose=yes ;;
1133 -version | --version | --versio | --versi | --vers | -V)
1134 ac_init_version=: ;;
1136 -with-* | --with-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error $? "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=\$ac_optarg ;;
1152 -without-* | --without-*)
1153 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1154 # Reject names that are not valid shell variable names.
1155 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1156 as_fn_error $? "invalid package name: $ac_useropt"
1157 ac_useropt_orig=$ac_useropt
1158 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1159 case $ac_user_opts in
1161 "with_$ac_useropt"
1162 "*) ;;
1163 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1164 ac_unrecognized_sep=', ';;
1165 esac
1166 eval with_$ac_useropt=no ;;
1168 --x)
1169 # Obsolete; use --with-x.
1170 with_x=yes ;;
1172 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1173 | --x-incl | --x-inc | --x-in | --x-i)
1174 ac_prev=x_includes ;;
1175 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1176 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1177 x_includes=$ac_optarg ;;
1179 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1180 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1181 ac_prev=x_libraries ;;
1182 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1183 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1184 x_libraries=$ac_optarg ;;
1186 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1187 Try \`$0 --help' for more information"
1190 *=*)
1191 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1192 # Reject names that are not valid shell variable names.
1193 case $ac_envvar in #(
1194 '' | [0-9]* | *[!_$as_cr_alnum]* )
1195 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1196 esac
1197 eval $ac_envvar=\$ac_optarg
1198 export $ac_envvar ;;
1201 # FIXME: should be removed in autoconf 3.0.
1202 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1203 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1204 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1205 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1208 esac
1209 done
1211 if test -n "$ac_prev"; then
1212 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1213 as_fn_error $? "missing argument to $ac_option"
1216 if test -n "$ac_unrecognized_opts"; then
1217 case $enable_option_checking in
1218 no) ;;
1219 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1220 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1221 esac
1224 # Check all directory arguments for consistency.
1225 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1226 datadir sysconfdir sharedstatedir localstatedir includedir \
1227 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1228 libdir localedir mandir
1230 eval ac_val=\$$ac_var
1231 # Remove trailing slashes.
1232 case $ac_val in
1233 */ )
1234 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1235 eval $ac_var=\$ac_val;;
1236 esac
1237 # Be sure to have absolute directory names.
1238 case $ac_val in
1239 [\\/$]* | ?:[\\/]* ) continue;;
1240 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1241 esac
1242 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1243 done
1245 # There might be people who depend on the old broken behavior: `$host'
1246 # used to hold the argument of --host etc.
1247 # FIXME: To remove some day.
1248 build=$build_alias
1249 host=$host_alias
1250 target=$target_alias
1252 # FIXME: To remove some day.
1253 if test "x$host_alias" != x; then
1254 if test "x$build_alias" = x; then
1255 cross_compiling=maybe
1256 elif test "x$build_alias" != "x$host_alias"; then
1257 cross_compiling=yes
1261 ac_tool_prefix=
1262 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1264 test "$silent" = yes && exec 6>/dev/null
1267 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1268 ac_ls_di=`ls -di .` &&
1269 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1270 as_fn_error $? "working directory cannot be determined"
1271 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1272 as_fn_error $? "pwd does not report name of working directory"
1275 # Find the source files, if location was not specified.
1276 if test -z "$srcdir"; then
1277 ac_srcdir_defaulted=yes
1278 # Try the directory containing this script, then the parent directory.
1279 ac_confdir=`$as_dirname -- "$as_myself" ||
1280 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1281 X"$as_myself" : 'X\(//\)[^/]' \| \
1282 X"$as_myself" : 'X\(//\)$' \| \
1283 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1284 $as_echo X"$as_myself" |
1285 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1286 s//\1/
1289 /^X\(\/\/\)[^/].*/{
1290 s//\1/
1293 /^X\(\/\/\)$/{
1294 s//\1/
1297 /^X\(\/\).*/{
1298 s//\1/
1301 s/.*/./; q'`
1302 srcdir=$ac_confdir
1303 if test ! -r "$srcdir/$ac_unique_file"; then
1304 srcdir=..
1306 else
1307 ac_srcdir_defaulted=no
1309 if test ! -r "$srcdir/$ac_unique_file"; then
1310 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1311 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1313 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1314 ac_abs_confdir=`(
1315 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1316 pwd)`
1317 # When building in place, set srcdir=.
1318 if test "$ac_abs_confdir" = "$ac_pwd"; then
1319 srcdir=.
1321 # Remove unnecessary trailing slashes from srcdir.
1322 # Double slashes in file names in object file debugging info
1323 # mess up M-x gdb in Emacs.
1324 case $srcdir in
1325 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1326 esac
1327 for ac_var in $ac_precious_vars; do
1328 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1329 eval ac_env_${ac_var}_value=\$${ac_var}
1330 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1331 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1332 done
1335 # Report the --help message.
1337 if test "$ac_init_help" = "long"; then
1338 # Omit some internal or obsolete options to make the list less imposing.
1339 # This message is too long to be a string in the A/UX 3.1 sh.
1340 cat <<_ACEOF
1341 \`configure' configures GDash 20130313unstable to adapt to many kinds of systems.
1343 Usage: $0 [OPTION]... [VAR=VALUE]...
1345 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1346 VAR=VALUE. See below for descriptions of some of the useful variables.
1348 Defaults for the options are specified in brackets.
1350 Configuration:
1351 -h, --help display this help and exit
1352 --help=short display options specific to this package
1353 --help=recursive display the short help of all the included packages
1354 -V, --version display version information and exit
1355 -q, --quiet, --silent do not print \`checking ...' messages
1356 --cache-file=FILE cache test results in FILE [disabled]
1357 -C, --config-cache alias for \`--cache-file=config.cache'
1358 -n, --no-create do not create output files
1359 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1361 Installation directories:
1362 --prefix=PREFIX install architecture-independent files in PREFIX
1363 [$ac_default_prefix]
1364 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1365 [PREFIX]
1367 By default, \`make install' will install all the files in
1368 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1369 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1370 for instance \`--prefix=\$HOME'.
1372 For better control, use the options below.
1374 Fine tuning of the installation directories:
1375 --bindir=DIR user executables [EPREFIX/bin]
1376 --sbindir=DIR system admin executables [EPREFIX/sbin]
1377 --libexecdir=DIR program executables [EPREFIX/libexec]
1378 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1379 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1380 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1381 --libdir=DIR object code libraries [EPREFIX/lib]
1382 --includedir=DIR C header files [PREFIX/include]
1383 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1384 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1385 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1386 --infodir=DIR info documentation [DATAROOTDIR/info]
1387 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1388 --mandir=DIR man documentation [DATAROOTDIR/man]
1389 --docdir=DIR documentation root [DATAROOTDIR/doc/gdash]
1390 --htmldir=DIR html documentation [DOCDIR]
1391 --dvidir=DIR dvi documentation [DOCDIR]
1392 --pdfdir=DIR pdf documentation [DOCDIR]
1393 --psdir=DIR ps documentation [DOCDIR]
1394 _ACEOF
1396 cat <<\_ACEOF
1398 Program names:
1399 --program-prefix=PREFIX prepend PREFIX to installed program names
1400 --program-suffix=SUFFIX append SUFFIX to installed program names
1401 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1403 System types:
1404 --build=BUILD configure for building on BUILD [guessed]
1405 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1406 _ACEOF
1409 if test -n "$ac_init_help"; then
1410 case $ac_init_help in
1411 short | recursive ) echo "Configuration of GDash 20130313unstable:";;
1412 esac
1413 cat <<\_ACEOF
1415 Optional Features:
1416 --disable-option-checking ignore unrecognized --enable/--with options
1417 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1418 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1419 --enable-silent-rules less verbose build output (undo: `make V=1')
1420 --disable-silent-rules verbose build output (undo: `make V=0')
1421 --disable-dependency-tracking speeds up one-time build
1422 --enable-dependency-tracking do not reject slow dependency extractors
1423 --disable-nls do not use Native Language Support
1424 --disable-rpath do not hardcode runtime library paths
1425 --disable-glibtest do not try to compile and run a test GLIB program
1426 --disable-gtktest do not try to compile and run a test GTK+ program
1427 --disable-sdltest Do not try to compile and run a test SDL program
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-gnu-ld assume the C compiler uses GNU ld default=no
1433 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib
1434 --without-libiconv-prefix don't search for libiconv in includedir and libdir
1435 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib
1436 --without-libintl-prefix don't search for libintl in includedir and libdir
1437 --without-gtk disables using gtk+
1438 --without-sdl disables using sdl
1439 --with-sdl-prefix=PFX Prefix where SDL is installed (optional)
1440 --with-sdl-exec-prefix=PFX Exec prefix where SDL is installed (optional)
1442 Some influential environment variables:
1443 CC C compiler command
1444 CFLAGS C compiler flags
1445 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1446 nonstandard directory <lib dir>
1447 LIBS libraries to pass to the linker, e.g. -l<library>
1448 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1449 you have headers in a nonstandard directory <include dir>
1450 CXX C++ compiler command
1451 CXXFLAGS C++ compiler flags
1452 PKG_CONFIG path to pkg-config utility
1453 PKG_CONFIG_PATH
1454 directories to add to pkg-config's search path
1455 PKG_CONFIG_LIBDIR
1456 path overriding pkg-config's built-in search path
1457 CPP C preprocessor
1458 LIBPNG_CFLAGS
1459 C compiler flags for LIBPNG, overriding pkg-config
1460 LIBPNG_LIBS linker flags for LIBPNG, overriding pkg-config
1462 Use these variables to override the choices made by `configure' or to help
1463 it to find libraries and programs with nonstandard names/locations.
1465 Report bugs to <http://code.google.com/p/gdash/>.
1466 _ACEOF
1467 ac_status=$?
1470 if test "$ac_init_help" = "recursive"; then
1471 # If there are subdirs, report their specific --help.
1472 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1473 test -d "$ac_dir" ||
1474 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1475 continue
1476 ac_builddir=.
1478 case "$ac_dir" in
1479 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1481 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1482 # A ".." for each directory in $ac_dir_suffix.
1483 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1484 case $ac_top_builddir_sub in
1485 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1486 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1487 esac ;;
1488 esac
1489 ac_abs_top_builddir=$ac_pwd
1490 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1491 # for backward compatibility:
1492 ac_top_builddir=$ac_top_build_prefix
1494 case $srcdir in
1495 .) # We are building in place.
1496 ac_srcdir=.
1497 ac_top_srcdir=$ac_top_builddir_sub
1498 ac_abs_top_srcdir=$ac_pwd ;;
1499 [\\/]* | ?:[\\/]* ) # Absolute name.
1500 ac_srcdir=$srcdir$ac_dir_suffix;
1501 ac_top_srcdir=$srcdir
1502 ac_abs_top_srcdir=$srcdir ;;
1503 *) # Relative name.
1504 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1505 ac_top_srcdir=$ac_top_build_prefix$srcdir
1506 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1507 esac
1508 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1510 cd "$ac_dir" || { ac_status=$?; continue; }
1511 # Check for guested configure.
1512 if test -f "$ac_srcdir/configure.gnu"; then
1513 echo &&
1514 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1515 elif test -f "$ac_srcdir/configure"; then
1516 echo &&
1517 $SHELL "$ac_srcdir/configure" --help=recursive
1518 else
1519 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1520 fi || ac_status=$?
1521 cd "$ac_pwd" || { ac_status=$?; break; }
1522 done
1525 test -n "$ac_init_help" && exit $ac_status
1526 if $ac_init_version; then
1527 cat <<\_ACEOF
1528 GDash configure 20130313unstable
1529 generated by GNU Autoconf 2.69
1531 Copyright (C) 2012 Free Software Foundation, Inc.
1532 This configure script is free software; the Free Software Foundation
1533 gives unlimited permission to copy, distribute and modify it.
1534 _ACEOF
1535 exit
1538 ## ------------------------ ##
1539 ## Autoconf initialization. ##
1540 ## ------------------------ ##
1542 # ac_fn_c_try_compile LINENO
1543 # --------------------------
1544 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1545 ac_fn_c_try_compile ()
1547 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1548 rm -f conftest.$ac_objext
1549 if { { ac_try="$ac_compile"
1550 case "(($ac_try" in
1551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1552 *) ac_try_echo=$ac_try;;
1553 esac
1554 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1555 $as_echo "$ac_try_echo"; } >&5
1556 (eval "$ac_compile") 2>conftest.err
1557 ac_status=$?
1558 if test -s conftest.err; then
1559 grep -v '^ *+' conftest.err >conftest.er1
1560 cat conftest.er1 >&5
1561 mv -f conftest.er1 conftest.err
1563 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1564 test $ac_status = 0; } && {
1565 test -z "$ac_c_werror_flag" ||
1566 test ! -s conftest.err
1567 } && test -s conftest.$ac_objext; then :
1568 ac_retval=0
1569 else
1570 $as_echo "$as_me: failed program was:" >&5
1571 sed 's/^/| /' conftest.$ac_ext >&5
1573 ac_retval=1
1575 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1576 as_fn_set_status $ac_retval
1578 } # ac_fn_c_try_compile
1580 # ac_fn_cxx_try_compile LINENO
1581 # ----------------------------
1582 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1583 ac_fn_cxx_try_compile ()
1585 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1586 rm -f conftest.$ac_objext
1587 if { { ac_try="$ac_compile"
1588 case "(($ac_try" in
1589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1590 *) ac_try_echo=$ac_try;;
1591 esac
1592 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1593 $as_echo "$ac_try_echo"; } >&5
1594 (eval "$ac_compile") 2>conftest.err
1595 ac_status=$?
1596 if test -s conftest.err; then
1597 grep -v '^ *+' conftest.err >conftest.er1
1598 cat conftest.er1 >&5
1599 mv -f conftest.er1 conftest.err
1601 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1602 test $ac_status = 0; } && {
1603 test -z "$ac_cxx_werror_flag" ||
1604 test ! -s conftest.err
1605 } && test -s conftest.$ac_objext; then :
1606 ac_retval=0
1607 else
1608 $as_echo "$as_me: failed program was:" >&5
1609 sed 's/^/| /' conftest.$ac_ext >&5
1611 ac_retval=1
1613 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1614 as_fn_set_status $ac_retval
1616 } # ac_fn_cxx_try_compile
1618 # ac_fn_c_try_link LINENO
1619 # -----------------------
1620 # Try to link conftest.$ac_ext, and return whether this succeeded.
1621 ac_fn_c_try_link ()
1623 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1624 rm -f conftest.$ac_objext conftest$ac_exeext
1625 if { { ac_try="$ac_link"
1626 case "(($ac_try" in
1627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1628 *) ac_try_echo=$ac_try;;
1629 esac
1630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1631 $as_echo "$ac_try_echo"; } >&5
1632 (eval "$ac_link") 2>conftest.err
1633 ac_status=$?
1634 if test -s conftest.err; then
1635 grep -v '^ *+' conftest.err >conftest.er1
1636 cat conftest.er1 >&5
1637 mv -f conftest.er1 conftest.err
1639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1640 test $ac_status = 0; } && {
1641 test -z "$ac_c_werror_flag" ||
1642 test ! -s conftest.err
1643 } && test -s conftest$ac_exeext && {
1644 test "$cross_compiling" = yes ||
1645 test -x conftest$ac_exeext
1646 }; then :
1647 ac_retval=0
1648 else
1649 $as_echo "$as_me: failed program was:" >&5
1650 sed 's/^/| /' conftest.$ac_ext >&5
1652 ac_retval=1
1654 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1655 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1656 # interfere with the next link command; also delete a directory that is
1657 # left behind by Apple's compiler. We do this before executing the actions.
1658 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1659 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1660 as_fn_set_status $ac_retval
1662 } # ac_fn_c_try_link
1664 # ac_fn_c_try_cpp LINENO
1665 # ----------------------
1666 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1667 ac_fn_c_try_cpp ()
1669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1670 if { { ac_try="$ac_cpp conftest.$ac_ext"
1671 case "(($ac_try" in
1672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1673 *) ac_try_echo=$ac_try;;
1674 esac
1675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1676 $as_echo "$ac_try_echo"; } >&5
1677 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1678 ac_status=$?
1679 if test -s conftest.err; then
1680 grep -v '^ *+' conftest.err >conftest.er1
1681 cat conftest.er1 >&5
1682 mv -f conftest.er1 conftest.err
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } > conftest.i && {
1686 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1687 test ! -s conftest.err
1688 }; then :
1689 ac_retval=0
1690 else
1691 $as_echo "$as_me: failed program was:" >&5
1692 sed 's/^/| /' conftest.$ac_ext >&5
1694 ac_retval=1
1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1697 as_fn_set_status $ac_retval
1699 } # ac_fn_c_try_cpp
1701 # ac_fn_c_try_run LINENO
1702 # ----------------------
1703 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1704 # that executables *can* be run.
1705 ac_fn_c_try_run ()
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 if { { ac_try="$ac_link"
1709 case "(($ac_try" in
1710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1711 *) ac_try_echo=$ac_try;;
1712 esac
1713 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1714 $as_echo "$ac_try_echo"; } >&5
1715 (eval "$ac_link") 2>&5
1716 ac_status=$?
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1719 { { case "(($ac_try" in
1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1721 *) ac_try_echo=$ac_try;;
1722 esac
1723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1724 $as_echo "$ac_try_echo"; } >&5
1725 (eval "$ac_try") 2>&5
1726 ac_status=$?
1727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1728 test $ac_status = 0; }; }; then :
1729 ac_retval=0
1730 else
1731 $as_echo "$as_me: program exited with status $ac_status" >&5
1732 $as_echo "$as_me: failed program was:" >&5
1733 sed 's/^/| /' conftest.$ac_ext >&5
1735 ac_retval=$ac_status
1737 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1738 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 as_fn_set_status $ac_retval
1741 } # ac_fn_c_try_run
1743 # ac_fn_c_check_func LINENO FUNC VAR
1744 # ----------------------------------
1745 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1746 ac_fn_c_check_func ()
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1750 $as_echo_n "checking for $2... " >&6; }
1751 if eval \${$3+:} false; then :
1752 $as_echo_n "(cached) " >&6
1753 else
1754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1755 /* end confdefs.h. */
1756 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1757 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1758 #define $2 innocuous_$2
1760 /* System header to define __stub macros and hopefully few prototypes,
1761 which can conflict with char $2 (); below.
1762 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1763 <limits.h> exists even on freestanding compilers. */
1765 #ifdef __STDC__
1766 # include <limits.h>
1767 #else
1768 # include <assert.h>
1769 #endif
1771 #undef $2
1773 /* Override any GCC internal prototype to avoid an error.
1774 Use char because int might match the return type of a GCC
1775 builtin and then its argument prototype would still apply. */
1776 #ifdef __cplusplus
1777 extern "C"
1778 #endif
1779 char $2 ();
1780 /* The GNU C library defines this for functions which it implements
1781 to always fail with ENOSYS. Some functions are actually named
1782 something starting with __ and the normal name is an alias. */
1783 #if defined __stub_$2 || defined __stub___$2
1784 choke me
1785 #endif
1788 main ()
1790 return $2 ();
1792 return 0;
1794 _ACEOF
1795 if ac_fn_c_try_link "$LINENO"; then :
1796 eval "$3=yes"
1797 else
1798 eval "$3=no"
1800 rm -f core conftest.err conftest.$ac_objext \
1801 conftest$ac_exeext conftest.$ac_ext
1803 eval ac_res=\$$3
1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1805 $as_echo "$ac_res" >&6; }
1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1808 } # ac_fn_c_check_func
1810 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1811 # -------------------------------------------------------
1812 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1813 # the include files in INCLUDES and setting the cache variable VAR
1814 # accordingly.
1815 ac_fn_c_check_header_mongrel ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 if eval \${$3+:} false; then :
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if eval \${$3+:} false; then :
1822 $as_echo_n "(cached) " >&6
1824 eval ac_res=\$$3
1825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1826 $as_echo "$ac_res" >&6; }
1827 else
1828 # Is the header compilable?
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1830 $as_echo_n "checking $2 usability... " >&6; }
1831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1832 /* end confdefs.h. */
1834 #include <$2>
1835 _ACEOF
1836 if ac_fn_c_try_compile "$LINENO"; then :
1837 ac_header_compiler=yes
1838 else
1839 ac_header_compiler=no
1841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1843 $as_echo "$ac_header_compiler" >&6; }
1845 # Is the header present?
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1847 $as_echo_n "checking $2 presence... " >&6; }
1848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1849 /* end confdefs.h. */
1850 #include <$2>
1851 _ACEOF
1852 if ac_fn_c_try_cpp "$LINENO"; then :
1853 ac_header_preproc=yes
1854 else
1855 ac_header_preproc=no
1857 rm -f conftest.err conftest.i conftest.$ac_ext
1858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1859 $as_echo "$ac_header_preproc" >&6; }
1861 # So? What about this header?
1862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1863 yes:no: )
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1865 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1867 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1869 no:yes:* )
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1871 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1873 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1874 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1875 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1877 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1878 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1879 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1880 ( $as_echo "## ---------------------------------------------- ##
1881 ## Report this to http://code.google.com/p/gdash/ ##
1882 ## ---------------------------------------------- ##"
1883 ) | sed "s/^/$as_me: WARNING: /" >&2
1885 esac
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1887 $as_echo_n "checking for $2... " >&6; }
1888 if eval \${$3+:} false; then :
1889 $as_echo_n "(cached) " >&6
1890 else
1891 eval "$3=\$ac_header_compiler"
1893 eval ac_res=\$$3
1894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1895 $as_echo "$ac_res" >&6; }
1897 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1899 } # ac_fn_c_check_header_mongrel
1901 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1902 # -------------------------------------------------------
1903 # Tests whether HEADER exists and can be compiled using the include files in
1904 # INCLUDES, setting the cache variable VAR accordingly.
1905 ac_fn_c_check_header_compile ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1909 $as_echo_n "checking for $2... " >&6; }
1910 if eval \${$3+:} false; then :
1911 $as_echo_n "(cached) " >&6
1912 else
1913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1914 /* end confdefs.h. */
1916 #include <$2>
1917 _ACEOF
1918 if ac_fn_c_try_compile "$LINENO"; then :
1919 eval "$3=yes"
1920 else
1921 eval "$3=no"
1923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 eval ac_res=\$$3
1926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1927 $as_echo "$ac_res" >&6; }
1928 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 } # ac_fn_c_check_header_compile
1932 # ac_fn_c_find_uintX_t LINENO BITS VAR
1933 # ------------------------------------
1934 # Finds an unsigned integer type with width BITS, setting cache variable VAR
1935 # accordingly.
1936 ac_fn_c_find_uintX_t ()
1938 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
1940 $as_echo_n "checking for uint$2_t... " >&6; }
1941 if eval \${$3+:} false; then :
1942 $as_echo_n "(cached) " >&6
1943 else
1944 eval "$3=no"
1945 # Order is important - never check a type that is potentially smaller
1946 # than half of the expected target width.
1947 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
1948 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
1949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1950 /* end confdefs.h. */
1951 $ac_includes_default
1953 main ()
1955 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
1956 test_array [0] = 0;
1957 return test_array [0];
1960 return 0;
1962 _ACEOF
1963 if ac_fn_c_try_compile "$LINENO"; then :
1964 case $ac_type in #(
1965 uint$2_t) :
1966 eval "$3=yes" ;; #(
1967 *) :
1968 eval "$3=\$ac_type" ;;
1969 esac
1971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1972 if eval test \"x\$"$3"\" = x"no"; then :
1974 else
1975 break
1977 done
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1984 } # ac_fn_c_find_uintX_t
1985 cat >config.log <<_ACEOF
1986 This file contains any messages produced by compilers while
1987 running configure, to aid debugging if configure makes a mistake.
1989 It was created by GDash $as_me 20130313unstable, which was
1990 generated by GNU Autoconf 2.69. Invocation command line was
1992 $ $0 $@
1994 _ACEOF
1995 exec 5>>config.log
1997 cat <<_ASUNAME
1998 ## --------- ##
1999 ## Platform. ##
2000 ## --------- ##
2002 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2003 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2004 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2005 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2006 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2008 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2009 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2011 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2012 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2013 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2014 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2015 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2016 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2017 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2019 _ASUNAME
2021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2022 for as_dir in $PATH
2024 IFS=$as_save_IFS
2025 test -z "$as_dir" && as_dir=.
2026 $as_echo "PATH: $as_dir"
2027 done
2028 IFS=$as_save_IFS
2030 } >&5
2032 cat >&5 <<_ACEOF
2035 ## ----------- ##
2036 ## Core tests. ##
2037 ## ----------- ##
2039 _ACEOF
2042 # Keep a trace of the command line.
2043 # Strip out --no-create and --no-recursion so they do not pile up.
2044 # Strip out --silent because we don't want to record it for future runs.
2045 # Also quote any args containing shell meta-characters.
2046 # Make two passes to allow for proper duplicate-argument suppression.
2047 ac_configure_args=
2048 ac_configure_args0=
2049 ac_configure_args1=
2050 ac_must_keep_next=false
2051 for ac_pass in 1 2
2053 for ac_arg
2055 case $ac_arg in
2056 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2057 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2058 | -silent | --silent | --silen | --sile | --sil)
2059 continue ;;
2060 *\'*)
2061 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2062 esac
2063 case $ac_pass in
2064 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2066 as_fn_append ac_configure_args1 " '$ac_arg'"
2067 if test $ac_must_keep_next = true; then
2068 ac_must_keep_next=false # Got value, back to normal.
2069 else
2070 case $ac_arg in
2071 *=* | --config-cache | -C | -disable-* | --disable-* \
2072 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2073 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2074 | -with-* | --with-* | -without-* | --without-* | --x)
2075 case "$ac_configure_args0 " in
2076 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2077 esac
2079 -* ) ac_must_keep_next=true ;;
2080 esac
2082 as_fn_append ac_configure_args " '$ac_arg'"
2084 esac
2085 done
2086 done
2087 { ac_configure_args0=; unset ac_configure_args0;}
2088 { ac_configure_args1=; unset ac_configure_args1;}
2090 # When interrupted or exit'd, cleanup temporary files, and complete
2091 # config.log. We remove comments because anyway the quotes in there
2092 # would cause problems or look ugly.
2093 # WARNING: Use '\'' to represent an apostrophe within the trap.
2094 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2095 trap 'exit_status=$?
2096 # Save into config.log some information that might help in debugging.
2098 echo
2100 $as_echo "## ---------------- ##
2101 ## Cache variables. ##
2102 ## ---------------- ##"
2103 echo
2104 # The following way of writing the cache mishandles newlines in values,
2106 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2107 eval ac_val=\$$ac_var
2108 case $ac_val in #(
2109 *${as_nl}*)
2110 case $ac_var in #(
2111 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2112 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2113 esac
2114 case $ac_var in #(
2115 _ | IFS | as_nl) ;; #(
2116 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2117 *) { eval $ac_var=; unset $ac_var;} ;;
2118 esac ;;
2119 esac
2120 done
2121 (set) 2>&1 |
2122 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2123 *${as_nl}ac_space=\ *)
2124 sed -n \
2125 "s/'\''/'\''\\\\'\'''\''/g;
2126 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2127 ;; #(
2129 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2131 esac |
2132 sort
2134 echo
2136 $as_echo "## ----------------- ##
2137 ## Output variables. ##
2138 ## ----------------- ##"
2139 echo
2140 for ac_var in $ac_subst_vars
2142 eval ac_val=\$$ac_var
2143 case $ac_val in
2144 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2145 esac
2146 $as_echo "$ac_var='\''$ac_val'\''"
2147 done | sort
2148 echo
2150 if test -n "$ac_subst_files"; then
2151 $as_echo "## ------------------- ##
2152 ## File substitutions. ##
2153 ## ------------------- ##"
2154 echo
2155 for ac_var in $ac_subst_files
2157 eval ac_val=\$$ac_var
2158 case $ac_val in
2159 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2160 esac
2161 $as_echo "$ac_var='\''$ac_val'\''"
2162 done | sort
2163 echo
2166 if test -s confdefs.h; then
2167 $as_echo "## ----------- ##
2168 ## confdefs.h. ##
2169 ## ----------- ##"
2170 echo
2171 cat confdefs.h
2172 echo
2174 test "$ac_signal" != 0 &&
2175 $as_echo "$as_me: caught signal $ac_signal"
2176 $as_echo "$as_me: exit $exit_status"
2177 } >&5
2178 rm -f core *.core core.conftest.* &&
2179 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2180 exit $exit_status
2182 for ac_signal in 1 2 13 15; do
2183 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2184 done
2185 ac_signal=0
2187 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2188 rm -f -r conftest* confdefs.h
2190 $as_echo "/* confdefs.h */" > confdefs.h
2192 # Predefined preprocessor variables.
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_NAME "$PACKAGE_NAME"
2196 _ACEOF
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2200 _ACEOF
2202 cat >>confdefs.h <<_ACEOF
2203 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2204 _ACEOF
2206 cat >>confdefs.h <<_ACEOF
2207 #define PACKAGE_STRING "$PACKAGE_STRING"
2208 _ACEOF
2210 cat >>confdefs.h <<_ACEOF
2211 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2212 _ACEOF
2214 cat >>confdefs.h <<_ACEOF
2215 #define PACKAGE_URL "$PACKAGE_URL"
2216 _ACEOF
2219 # Let the site file select an alternate cache file if it wants to.
2220 # Prefer an explicitly selected file to automatically selected ones.
2221 ac_site_file1=NONE
2222 ac_site_file2=NONE
2223 if test -n "$CONFIG_SITE"; then
2224 # We do not want a PATH search for config.site.
2225 case $CONFIG_SITE in #((
2226 -*) ac_site_file1=./$CONFIG_SITE;;
2227 */*) ac_site_file1=$CONFIG_SITE;;
2228 *) ac_site_file1=./$CONFIG_SITE;;
2229 esac
2230 elif test "x$prefix" != xNONE; then
2231 ac_site_file1=$prefix/share/config.site
2232 ac_site_file2=$prefix/etc/config.site
2233 else
2234 ac_site_file1=$ac_default_prefix/share/config.site
2235 ac_site_file2=$ac_default_prefix/etc/config.site
2237 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2239 test "x$ac_site_file" = xNONE && continue
2240 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2241 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2242 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2243 sed 's/^/| /' "$ac_site_file" >&5
2244 . "$ac_site_file" \
2245 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2246 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2247 as_fn_error $? "failed to load site script $ac_site_file
2248 See \`config.log' for more details" "$LINENO" 5; }
2250 done
2252 if test -r "$cache_file"; then
2253 # Some versions of bash will fail to source /dev/null (special files
2254 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2255 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2256 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2257 $as_echo "$as_me: loading cache $cache_file" >&6;}
2258 case $cache_file in
2259 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2260 *) . "./$cache_file";;
2261 esac
2263 else
2264 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2265 $as_echo "$as_me: creating cache $cache_file" >&6;}
2266 >$cache_file
2269 gt_needs="$gt_needs "
2270 # Check that the precious variables saved in the cache have kept the same
2271 # value.
2272 ac_cache_corrupted=false
2273 for ac_var in $ac_precious_vars; do
2274 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2275 eval ac_new_set=\$ac_env_${ac_var}_set
2276 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2277 eval ac_new_val=\$ac_env_${ac_var}_value
2278 case $ac_old_set,$ac_new_set in
2279 set,)
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2281 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2282 ac_cache_corrupted=: ;;
2283 ,set)
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2285 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2286 ac_cache_corrupted=: ;;
2287 ,);;
2289 if test "x$ac_old_val" != "x$ac_new_val"; then
2290 # differences in whitespace do not lead to failure.
2291 ac_old_val_w=`echo x $ac_old_val`
2292 ac_new_val_w=`echo x $ac_new_val`
2293 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2294 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2295 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2296 ac_cache_corrupted=:
2297 else
2298 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2299 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2300 eval $ac_var=\$ac_old_val
2302 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2303 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2305 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2306 fi;;
2307 esac
2308 # Pass precious variables to config.status.
2309 if test "$ac_new_set" = set; then
2310 case $ac_new_val in
2311 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2312 *) ac_arg=$ac_var=$ac_new_val ;;
2313 esac
2314 case " $ac_configure_args " in
2315 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2316 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2317 esac
2319 done
2320 if $ac_cache_corrupted; then
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2322 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2323 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2324 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2325 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2327 ## -------------------- ##
2328 ## Main body of script. ##
2329 ## -------------------- ##
2331 ac_ext=c
2332 ac_cpp='$CPP $CPPFLAGS'
2333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2339 am__api_version='1.11'
2341 ac_aux_dir=
2342 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2343 if test -f "$ac_dir/install-sh"; then
2344 ac_aux_dir=$ac_dir
2345 ac_install_sh="$ac_aux_dir/install-sh -c"
2346 break
2347 elif test -f "$ac_dir/install.sh"; then
2348 ac_aux_dir=$ac_dir
2349 ac_install_sh="$ac_aux_dir/install.sh -c"
2350 break
2351 elif test -f "$ac_dir/shtool"; then
2352 ac_aux_dir=$ac_dir
2353 ac_install_sh="$ac_aux_dir/shtool install -c"
2354 break
2356 done
2357 if test -z "$ac_aux_dir"; then
2358 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2361 # These three variables are undocumented and unsupported,
2362 # and are intended to be withdrawn in a future Autoconf release.
2363 # They can cause serious problems if a builder's source tree is in a directory
2364 # whose full name contains unusual characters.
2365 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2366 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2367 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2370 # Find a good install program. We prefer a C program (faster),
2371 # so one script is as good as another. But avoid the broken or
2372 # incompatible versions:
2373 # SysV /etc/install, /usr/sbin/install
2374 # SunOS /usr/etc/install
2375 # IRIX /sbin/install
2376 # AIX /bin/install
2377 # AmigaOS /C/install, which installs bootblocks on floppy discs
2378 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2379 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2380 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2381 # OS/2's system install, which has a completely different semantic
2382 # ./install, which can be erroneously created by make from ./install.sh.
2383 # Reject install programs that cannot install multiple files.
2384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2385 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2386 if test -z "$INSTALL"; then
2387 if ${ac_cv_path_install+:} false; then :
2388 $as_echo_n "(cached) " >&6
2389 else
2390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2391 for as_dir in $PATH
2393 IFS=$as_save_IFS
2394 test -z "$as_dir" && as_dir=.
2395 # Account for people who put trailing slashes in PATH elements.
2396 case $as_dir/ in #((
2397 ./ | .// | /[cC]/* | \
2398 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2399 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2400 /usr/ucb/* ) ;;
2402 # OSF1 and SCO ODT 3.0 have their own names for install.
2403 # Don't use installbsd from OSF since it installs stuff as root
2404 # by default.
2405 for ac_prog in ginstall scoinst install; do
2406 for ac_exec_ext in '' $ac_executable_extensions; do
2407 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2408 if test $ac_prog = install &&
2409 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2410 # AIX install. It has an incompatible calling convention.
2412 elif test $ac_prog = install &&
2413 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2414 # program-specific install script used by HP pwplus--don't use.
2416 else
2417 rm -rf conftest.one conftest.two conftest.dir
2418 echo one > conftest.one
2419 echo two > conftest.two
2420 mkdir conftest.dir
2421 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2422 test -s conftest.one && test -s conftest.two &&
2423 test -s conftest.dir/conftest.one &&
2424 test -s conftest.dir/conftest.two
2425 then
2426 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2427 break 3
2431 done
2432 done
2434 esac
2436 done
2437 IFS=$as_save_IFS
2439 rm -rf conftest.one conftest.two conftest.dir
2442 if test "${ac_cv_path_install+set}" = set; then
2443 INSTALL=$ac_cv_path_install
2444 else
2445 # As a last resort, use the slow shell script. Don't cache a
2446 # value for INSTALL within a source directory, because that will
2447 # break other packages using the cache if that directory is
2448 # removed, or if the value is a relative name.
2449 INSTALL=$ac_install_sh
2452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2453 $as_echo "$INSTALL" >&6; }
2455 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2456 # It thinks the first close brace ends the variable substitution.
2457 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2459 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2461 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2464 $as_echo_n "checking whether build environment is sane... " >&6; }
2465 # Just in case
2466 sleep 1
2467 echo timestamp > conftest.file
2468 # Reject unsafe characters in $srcdir or the absolute working directory
2469 # name. Accept space and tab only in the latter.
2470 am_lf='
2472 case `pwd` in
2473 *[\\\"\#\$\&\'\`$am_lf]*)
2474 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2475 esac
2476 case $srcdir in
2477 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2478 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2479 esac
2481 # Do `set' in a subshell so we don't clobber the current shell's
2482 # arguments. Must try -L first in case configure is actually a
2483 # symlink; some systems play weird games with the mod time of symlinks
2484 # (eg FreeBSD returns the mod time of the symlink's containing
2485 # directory).
2486 if (
2487 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2488 if test "$*" = "X"; then
2489 # -L didn't work.
2490 set X `ls -t "$srcdir/configure" conftest.file`
2492 rm -f conftest.file
2493 if test "$*" != "X $srcdir/configure conftest.file" \
2494 && test "$*" != "X conftest.file $srcdir/configure"; then
2496 # If neither matched, then we have a broken ls. This can happen
2497 # if, for instance, CONFIG_SHELL is bash and it inherits a
2498 # broken ls alias from the environment. This has actually
2499 # happened. Such a system could not be considered "sane".
2500 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2501 alias in your environment" "$LINENO" 5
2504 test "$2" = conftest.file
2506 then
2507 # Ok.
2509 else
2510 as_fn_error $? "newly created file is older than distributed files!
2511 Check your system clock" "$LINENO" 5
2513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2514 $as_echo "yes" >&6; }
2515 test "$program_prefix" != NONE &&
2516 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2517 # Use a double $ so make ignores it.
2518 test "$program_suffix" != NONE &&
2519 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2520 # Double any \ or $.
2521 # By default was `s,x,x', remove it if useless.
2522 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2523 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2525 # expand $ac_aux_dir to an absolute path
2526 am_aux_dir=`cd $ac_aux_dir && pwd`
2528 if test x"${MISSING+set}" != xset; then
2529 case $am_aux_dir in
2530 *\ * | *\ *)
2531 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2533 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2534 esac
2536 # Use eval to expand $SHELL
2537 if eval "$MISSING --run true"; then
2538 am_missing_run="$MISSING --run "
2539 else
2540 am_missing_run=
2541 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2542 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2545 if test x"${install_sh}" != xset; then
2546 case $am_aux_dir in
2547 *\ * | *\ *)
2548 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2550 install_sh="\${SHELL} $am_aux_dir/install-sh"
2551 esac
2554 # Installed binaries are usually stripped using `strip' when the user
2555 # run `make install-strip'. However `strip' might not be the right
2556 # tool to use in cross-compilation environments, therefore Automake
2557 # will honor the `STRIP' environment variable to overrule this program.
2558 if test "$cross_compiling" != no; then
2559 if test -n "$ac_tool_prefix"; then
2560 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2561 set dummy ${ac_tool_prefix}strip; ac_word=$2
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2563 $as_echo_n "checking for $ac_word... " >&6; }
2564 if ${ac_cv_prog_STRIP+:} false; then :
2565 $as_echo_n "(cached) " >&6
2566 else
2567 if test -n "$STRIP"; then
2568 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2569 else
2570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2571 for as_dir in $PATH
2573 IFS=$as_save_IFS
2574 test -z "$as_dir" && as_dir=.
2575 for ac_exec_ext in '' $ac_executable_extensions; do
2576 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2577 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2579 break 2
2581 done
2582 done
2583 IFS=$as_save_IFS
2587 STRIP=$ac_cv_prog_STRIP
2588 if test -n "$STRIP"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2590 $as_echo "$STRIP" >&6; }
2591 else
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2593 $as_echo "no" >&6; }
2598 if test -z "$ac_cv_prog_STRIP"; then
2599 ac_ct_STRIP=$STRIP
2600 # Extract the first word of "strip", so it can be a program name with args.
2601 set dummy strip; ac_word=$2
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2603 $as_echo_n "checking for $ac_word... " >&6; }
2604 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 if test -n "$ac_ct_STRIP"; then
2608 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2609 else
2610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2611 for as_dir in $PATH
2613 IFS=$as_save_IFS
2614 test -z "$as_dir" && as_dir=.
2615 for ac_exec_ext in '' $ac_executable_extensions; do
2616 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2617 ac_cv_prog_ac_ct_STRIP="strip"
2618 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2619 break 2
2621 done
2622 done
2623 IFS=$as_save_IFS
2627 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2628 if test -n "$ac_ct_STRIP"; then
2629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2630 $as_echo "$ac_ct_STRIP" >&6; }
2631 else
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2633 $as_echo "no" >&6; }
2636 if test "x$ac_ct_STRIP" = x; then
2637 STRIP=":"
2638 else
2639 case $cross_compiling:$ac_tool_warned in
2640 yes:)
2641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2642 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2643 ac_tool_warned=yes ;;
2644 esac
2645 STRIP=$ac_ct_STRIP
2647 else
2648 STRIP="$ac_cv_prog_STRIP"
2652 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2655 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2656 if test -z "$MKDIR_P"; then
2657 if ${ac_cv_path_mkdir+:} false; then :
2658 $as_echo_n "(cached) " >&6
2659 else
2660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2661 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2663 IFS=$as_save_IFS
2664 test -z "$as_dir" && as_dir=.
2665 for ac_prog in mkdir gmkdir; do
2666 for ac_exec_ext in '' $ac_executable_extensions; do
2667 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2668 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2669 'mkdir (GNU coreutils) '* | \
2670 'mkdir (coreutils) '* | \
2671 'mkdir (fileutils) '4.1*)
2672 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2673 break 3;;
2674 esac
2675 done
2676 done
2677 done
2678 IFS=$as_save_IFS
2682 test -d ./--version && rmdir ./--version
2683 if test "${ac_cv_path_mkdir+set}" = set; then
2684 MKDIR_P="$ac_cv_path_mkdir -p"
2685 else
2686 # As a last resort, use the slow shell script. Don't cache a
2687 # value for MKDIR_P within a source directory, because that will
2688 # break other packages using the cache if that directory is
2689 # removed, or if the value is a relative name.
2690 MKDIR_P="$ac_install_sh -d"
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2694 $as_echo "$MKDIR_P" >&6; }
2696 mkdir_p="$MKDIR_P"
2697 case $mkdir_p in
2698 [\\/$]* | ?:[\\/]*) ;;
2699 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2700 esac
2702 for ac_prog in gawk mawk nawk awk
2704 # Extract the first word of "$ac_prog", so it can be a program name with args.
2705 set dummy $ac_prog; ac_word=$2
2706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2707 $as_echo_n "checking for $ac_word... " >&6; }
2708 if ${ac_cv_prog_AWK+:} false; then :
2709 $as_echo_n "(cached) " >&6
2710 else
2711 if test -n "$AWK"; then
2712 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2713 else
2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2715 for as_dir in $PATH
2717 IFS=$as_save_IFS
2718 test -z "$as_dir" && as_dir=.
2719 for ac_exec_ext in '' $ac_executable_extensions; do
2720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2721 ac_cv_prog_AWK="$ac_prog"
2722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2723 break 2
2725 done
2726 done
2727 IFS=$as_save_IFS
2731 AWK=$ac_cv_prog_AWK
2732 if test -n "$AWK"; then
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2734 $as_echo "$AWK" >&6; }
2735 else
2736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2737 $as_echo "no" >&6; }
2741 test -n "$AWK" && break
2742 done
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2745 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2746 set x ${MAKE-make}
2747 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2748 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2749 $as_echo_n "(cached) " >&6
2750 else
2751 cat >conftest.make <<\_ACEOF
2752 SHELL = /bin/sh
2753 all:
2754 @echo '@@@%%%=$(MAKE)=@@@%%%'
2755 _ACEOF
2756 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2757 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2758 *@@@%%%=?*=@@@%%%*)
2759 eval ac_cv_prog_make_${ac_make}_set=yes;;
2761 eval ac_cv_prog_make_${ac_make}_set=no;;
2762 esac
2763 rm -f conftest.make
2765 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2767 $as_echo "yes" >&6; }
2768 SET_MAKE=
2769 else
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2771 $as_echo "no" >&6; }
2772 SET_MAKE="MAKE=${MAKE-make}"
2775 rm -rf .tst 2>/dev/null
2776 mkdir .tst 2>/dev/null
2777 if test -d .tst; then
2778 am__leading_dot=.
2779 else
2780 am__leading_dot=_
2782 rmdir .tst 2>/dev/null
2784 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2785 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2786 # is not polluted with repeated "-I."
2787 am__isrc=' -I$(srcdir)'
2788 # test to see if srcdir already configured
2789 if test -f $srcdir/config.status; then
2790 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2794 # test whether we have cygpath
2795 if test -z "$CYGPATH_W"; then
2796 if (cygpath --version) >/dev/null 2>/dev/null; then
2797 CYGPATH_W='cygpath -w'
2798 else
2799 CYGPATH_W=echo
2804 # Define the identity of the package.
2805 PACKAGE='gdash'
2806 VERSION='20130313unstable'
2809 cat >>confdefs.h <<_ACEOF
2810 #define PACKAGE "$PACKAGE"
2811 _ACEOF
2814 cat >>confdefs.h <<_ACEOF
2815 #define VERSION "$VERSION"
2816 _ACEOF
2818 # Some tools Automake needs.
2820 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2823 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2826 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2829 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2832 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2834 # We need awk for the "check" target. The system "awk" is bad on
2835 # some platforms.
2836 # Always define AMTAR for backward compatibility. Yes, it's still used
2837 # in the wild :-( We should find a proper way to deprecate it ...
2838 AMTAR='$${TAR-tar}'
2840 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2846 ac_config_headers="$ac_config_headers config.h"
2848 # Check whether --enable-silent-rules was given.
2849 if test "${enable_silent_rules+set}" = set; then :
2850 enableval=$enable_silent_rules;
2853 case $enable_silent_rules in
2854 yes) AM_DEFAULT_VERBOSITY=0;;
2855 no) AM_DEFAULT_VERBOSITY=1;;
2856 *) AM_DEFAULT_VERBOSITY=0;;
2857 esac
2858 am_make=${MAKE-make}
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2860 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2861 if ${am_cv_make_support_nested_variables+:} false; then :
2862 $as_echo_n "(cached) " >&6
2863 else
2864 if $as_echo 'TRUE=$(BAR$(V))
2865 BAR0=false
2866 BAR1=true
2868 am__doit:
2869 @$(TRUE)
2870 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2871 am_cv_make_support_nested_variables=yes
2872 else
2873 am_cv_make_support_nested_variables=no
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2877 $as_echo "$am_cv_make_support_nested_variables" >&6; }
2878 if test $am_cv_make_support_nested_variables = yes; then
2879 AM_V='$(V)'
2880 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2881 else
2882 AM_V=$AM_DEFAULT_VERBOSITY
2883 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2885 AM_BACKSLASH='\'
2888 ac_ext=c
2889 ac_cpp='$CPP $CPPFLAGS'
2890 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2891 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2892 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2893 if test -n "$ac_tool_prefix"; then
2894 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2895 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2897 $as_echo_n "checking for $ac_word... " >&6; }
2898 if ${ac_cv_prog_CC+:} false; then :
2899 $as_echo_n "(cached) " >&6
2900 else
2901 if test -n "$CC"; then
2902 ac_cv_prog_CC="$CC" # Let the user override the test.
2903 else
2904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2905 for as_dir in $PATH
2907 IFS=$as_save_IFS
2908 test -z "$as_dir" && as_dir=.
2909 for ac_exec_ext in '' $ac_executable_extensions; do
2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2911 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2913 break 2
2915 done
2916 done
2917 IFS=$as_save_IFS
2921 CC=$ac_cv_prog_CC
2922 if test -n "$CC"; then
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2924 $as_echo "$CC" >&6; }
2925 else
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2927 $as_echo "no" >&6; }
2932 if test -z "$ac_cv_prog_CC"; then
2933 ac_ct_CC=$CC
2934 # Extract the first word of "gcc", so it can be a program name with args.
2935 set dummy gcc; ac_word=$2
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2937 $as_echo_n "checking for $ac_word... " >&6; }
2938 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test -n "$ac_ct_CC"; then
2942 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2943 else
2944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2945 for as_dir in $PATH
2947 IFS=$as_save_IFS
2948 test -z "$as_dir" && as_dir=.
2949 for ac_exec_ext in '' $ac_executable_extensions; do
2950 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2951 ac_cv_prog_ac_ct_CC="gcc"
2952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2953 break 2
2955 done
2956 done
2957 IFS=$as_save_IFS
2961 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2962 if test -n "$ac_ct_CC"; then
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2964 $as_echo "$ac_ct_CC" >&6; }
2965 else
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2967 $as_echo "no" >&6; }
2970 if test "x$ac_ct_CC" = x; then
2971 CC=""
2972 else
2973 case $cross_compiling:$ac_tool_warned in
2974 yes:)
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2977 ac_tool_warned=yes ;;
2978 esac
2979 CC=$ac_ct_CC
2981 else
2982 CC="$ac_cv_prog_CC"
2985 if test -z "$CC"; then
2986 if test -n "$ac_tool_prefix"; then
2987 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2988 set dummy ${ac_tool_prefix}cc; ac_word=$2
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2990 $as_echo_n "checking for $ac_word... " >&6; }
2991 if ${ac_cv_prog_CC+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test -n "$CC"; then
2995 ac_cv_prog_CC="$CC" # Let the user override the test.
2996 else
2997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2998 for as_dir in $PATH
3000 IFS=$as_save_IFS
3001 test -z "$as_dir" && as_dir=.
3002 for ac_exec_ext in '' $ac_executable_extensions; do
3003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3004 ac_cv_prog_CC="${ac_tool_prefix}cc"
3005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3006 break 2
3008 done
3009 done
3010 IFS=$as_save_IFS
3014 CC=$ac_cv_prog_CC
3015 if test -n "$CC"; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3017 $as_echo "$CC" >&6; }
3018 else
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3026 if test -z "$CC"; then
3027 # Extract the first word of "cc", so it can be a program name with args.
3028 set dummy cc; ac_word=$2
3029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3030 $as_echo_n "checking for $ac_word... " >&6; }
3031 if ${ac_cv_prog_CC+:} false; then :
3032 $as_echo_n "(cached) " >&6
3033 else
3034 if test -n "$CC"; then
3035 ac_cv_prog_CC="$CC" # Let the user override the test.
3036 else
3037 ac_prog_rejected=no
3038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3039 for as_dir in $PATH
3041 IFS=$as_save_IFS
3042 test -z "$as_dir" && as_dir=.
3043 for ac_exec_ext in '' $ac_executable_extensions; do
3044 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3045 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3046 ac_prog_rejected=yes
3047 continue
3049 ac_cv_prog_CC="cc"
3050 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3051 break 2
3053 done
3054 done
3055 IFS=$as_save_IFS
3057 if test $ac_prog_rejected = yes; then
3058 # We found a bogon in the path, so make sure we never use it.
3059 set dummy $ac_cv_prog_CC
3060 shift
3061 if test $# != 0; then
3062 # We chose a different compiler from the bogus one.
3063 # However, it has the same basename, so the bogon will be chosen
3064 # first if we set CC to just the basename; use the full file name.
3065 shift
3066 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3071 CC=$ac_cv_prog_CC
3072 if test -n "$CC"; then
3073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3074 $as_echo "$CC" >&6; }
3075 else
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3077 $as_echo "no" >&6; }
3082 if test -z "$CC"; then
3083 if test -n "$ac_tool_prefix"; then
3084 for ac_prog in cl.exe
3086 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3087 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if ${ac_cv_prog_CC+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$CC"; then
3094 ac_cv_prog_CC="$CC" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3103 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 CC=$ac_cv_prog_CC
3114 if test -n "$CC"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3116 $as_echo "$CC" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3123 test -n "$CC" && break
3124 done
3126 if test -z "$CC"; then
3127 ac_ct_CC=$CC
3128 for ac_prog in cl.exe
3130 # Extract the first word of "$ac_prog", so it can be a program name with args.
3131 set dummy $ac_prog; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$ac_ct_CC"; then
3138 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3147 ac_cv_prog_ac_ct_CC="$ac_prog"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3158 if test -n "$ac_ct_CC"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3160 $as_echo "$ac_ct_CC" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3167 test -n "$ac_ct_CC" && break
3168 done
3170 if test "x$ac_ct_CC" = x; then
3171 CC=""
3172 else
3173 case $cross_compiling:$ac_tool_warned in
3174 yes:)
3175 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3176 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3177 ac_tool_warned=yes ;;
3178 esac
3179 CC=$ac_ct_CC
3186 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "no acceptable C compiler found in \$PATH
3189 See \`config.log' for more details" "$LINENO" 5; }
3191 # Provide some information about the compiler.
3192 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3193 set X $ac_compile
3194 ac_compiler=$2
3195 for ac_option in --version -v -V -qversion; do
3196 { { ac_try="$ac_compiler $ac_option >&5"
3197 case "(($ac_try" in
3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3199 *) ac_try_echo=$ac_try;;
3200 esac
3201 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3202 $as_echo "$ac_try_echo"; } >&5
3203 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3204 ac_status=$?
3205 if test -s conftest.err; then
3206 sed '10a\
3207 ... rest of stderr output deleted ...
3208 10q' conftest.err >conftest.er1
3209 cat conftest.er1 >&5
3211 rm -f conftest.er1 conftest.err
3212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3213 test $ac_status = 0; }
3214 done
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3224 return 0;
3226 _ACEOF
3227 ac_clean_files_save=$ac_clean_files
3228 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3229 # Try to create an executable without -o first, disregard a.out.
3230 # It will help us diagnose broken compilers, and finding out an intuition
3231 # of exeext.
3232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3233 $as_echo_n "checking whether the C compiler works... " >&6; }
3234 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3236 # The possible output files:
3237 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3239 ac_rmfiles=
3240 for ac_file in $ac_files
3242 case $ac_file in
3243 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3244 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3245 esac
3246 done
3247 rm -f $ac_rmfiles
3249 if { { ac_try="$ac_link_default"
3250 case "(($ac_try" in
3251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3252 *) ac_try_echo=$ac_try;;
3253 esac
3254 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3255 $as_echo "$ac_try_echo"; } >&5
3256 (eval "$ac_link_default") 2>&5
3257 ac_status=$?
3258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3259 test $ac_status = 0; }; then :
3260 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3261 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3262 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3263 # so that the user can short-circuit this test for compilers unknown to
3264 # Autoconf.
3265 for ac_file in $ac_files ''
3267 test -f "$ac_file" || continue
3268 case $ac_file in
3269 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3271 [ab].out )
3272 # We found the default executable, but exeext='' is most
3273 # certainly right.
3274 break;;
3275 *.* )
3276 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3277 then :; else
3278 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3280 # We set ac_cv_exeext here because the later test for it is not
3281 # safe: cross compilers may not add the suffix if given an `-o'
3282 # argument, so we may need to know it at that point already.
3283 # Even if this section looks crufty: it has the advantage of
3284 # actually working.
3285 break;;
3287 break;;
3288 esac
3289 done
3290 test "$ac_cv_exeext" = no && ac_cv_exeext=
3292 else
3293 ac_file=''
3295 if test -z "$ac_file"; then :
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3297 $as_echo "no" >&6; }
3298 $as_echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3301 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3302 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3303 as_fn_error 77 "C compiler cannot create executables
3304 See \`config.log' for more details" "$LINENO" 5; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3307 $as_echo "yes" >&6; }
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3310 $as_echo_n "checking for C compiler default output file name... " >&6; }
3311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3312 $as_echo "$ac_file" >&6; }
3313 ac_exeext=$ac_cv_exeext
3315 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3316 ac_clean_files=$ac_clean_files_save
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3318 $as_echo_n "checking for suffix of executables... " >&6; }
3319 if { { ac_try="$ac_link"
3320 case "(($ac_try" in
3321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3322 *) ac_try_echo=$ac_try;;
3323 esac
3324 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3325 $as_echo "$ac_try_echo"; } >&5
3326 (eval "$ac_link") 2>&5
3327 ac_status=$?
3328 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3329 test $ac_status = 0; }; then :
3330 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3331 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3332 # work properly (i.e., refer to `conftest.exe'), while it won't with
3333 # `rm'.
3334 for ac_file in conftest.exe conftest conftest.*; do
3335 test -f "$ac_file" || continue
3336 case $ac_file in
3337 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3338 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3339 break;;
3340 * ) break;;
3341 esac
3342 done
3343 else
3344 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3345 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3346 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3347 See \`config.log' for more details" "$LINENO" 5; }
3349 rm -f conftest conftest$ac_cv_exeext
3350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3351 $as_echo "$ac_cv_exeext" >&6; }
3353 rm -f conftest.$ac_ext
3354 EXEEXT=$ac_cv_exeext
3355 ac_exeext=$EXEEXT
3356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3357 /* end confdefs.h. */
3358 #include <stdio.h>
3360 main ()
3362 FILE *f = fopen ("conftest.out", "w");
3363 return ferror (f) || fclose (f) != 0;
3366 return 0;
3368 _ACEOF
3369 ac_clean_files="$ac_clean_files conftest.out"
3370 # Check that the compiler produces executables we can run. If not, either
3371 # the compiler is broken, or we cross compile.
3372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3373 $as_echo_n "checking whether we are cross compiling... " >&6; }
3374 if test "$cross_compiling" != yes; then
3375 { { ac_try="$ac_link"
3376 case "(($ac_try" in
3377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3378 *) ac_try_echo=$ac_try;;
3379 esac
3380 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3381 $as_echo "$ac_try_echo"; } >&5
3382 (eval "$ac_link") 2>&5
3383 ac_status=$?
3384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3385 test $ac_status = 0; }
3386 if { ac_try='./conftest$ac_cv_exeext'
3387 { { case "(($ac_try" in
3388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3389 *) ac_try_echo=$ac_try;;
3390 esac
3391 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3392 $as_echo "$ac_try_echo"; } >&5
3393 (eval "$ac_try") 2>&5
3394 ac_status=$?
3395 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3396 test $ac_status = 0; }; }; then
3397 cross_compiling=no
3398 else
3399 if test "$cross_compiling" = maybe; then
3400 cross_compiling=yes
3401 else
3402 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3403 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3404 as_fn_error $? "cannot run C compiled programs.
3405 If you meant to cross compile, use \`--host'.
3406 See \`config.log' for more details" "$LINENO" 5; }
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3411 $as_echo "$cross_compiling" >&6; }
3413 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3414 ac_clean_files=$ac_clean_files_save
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3416 $as_echo_n "checking for suffix of object files... " >&6; }
3417 if ${ac_cv_objext+:} false; then :
3418 $as_echo_n "(cached) " >&6
3419 else
3420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3421 /* end confdefs.h. */
3424 main ()
3428 return 0;
3430 _ACEOF
3431 rm -f conftest.o conftest.obj
3432 if { { ac_try="$ac_compile"
3433 case "(($ac_try" in
3434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3435 *) ac_try_echo=$ac_try;;
3436 esac
3437 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3438 $as_echo "$ac_try_echo"; } >&5
3439 (eval "$ac_compile") 2>&5
3440 ac_status=$?
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }; then :
3443 for ac_file in conftest.o conftest.obj conftest.*; do
3444 test -f "$ac_file" || continue;
3445 case $ac_file in
3446 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3447 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3448 break;;
3449 esac
3450 done
3451 else
3452 $as_echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3455 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3457 as_fn_error $? "cannot compute suffix of object files: cannot compile
3458 See \`config.log' for more details" "$LINENO" 5; }
3460 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3463 $as_echo "$ac_cv_objext" >&6; }
3464 OBJEXT=$ac_cv_objext
3465 ac_objext=$OBJEXT
3466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3467 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3468 if ${ac_cv_c_compiler_gnu+:} false; then :
3469 $as_echo_n "(cached) " >&6
3470 else
3471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3472 /* end confdefs.h. */
3475 main ()
3477 #ifndef __GNUC__
3478 choke me
3479 #endif
3482 return 0;
3484 _ACEOF
3485 if ac_fn_c_try_compile "$LINENO"; then :
3486 ac_compiler_gnu=yes
3487 else
3488 ac_compiler_gnu=no
3490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3491 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3495 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3496 if test $ac_compiler_gnu = yes; then
3497 GCC=yes
3498 else
3499 GCC=
3501 ac_test_CFLAGS=${CFLAGS+set}
3502 ac_save_CFLAGS=$CFLAGS
3503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3504 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3505 if ${ac_cv_prog_cc_g+:} false; then :
3506 $as_echo_n "(cached) " >&6
3507 else
3508 ac_save_c_werror_flag=$ac_c_werror_flag
3509 ac_c_werror_flag=yes
3510 ac_cv_prog_cc_g=no
3511 CFLAGS="-g"
3512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3513 /* end confdefs.h. */
3516 main ()
3520 return 0;
3522 _ACEOF
3523 if ac_fn_c_try_compile "$LINENO"; then :
3524 ac_cv_prog_cc_g=yes
3525 else
3526 CFLAGS=""
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3531 main ()
3535 return 0;
3537 _ACEOF
3538 if ac_fn_c_try_compile "$LINENO"; then :
3540 else
3541 ac_c_werror_flag=$ac_save_c_werror_flag
3542 CFLAGS="-g"
3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3544 /* end confdefs.h. */
3547 main ()
3551 return 0;
3553 _ACEOF
3554 if ac_fn_c_try_compile "$LINENO"; then :
3555 ac_cv_prog_cc_g=yes
3557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3562 ac_c_werror_flag=$ac_save_c_werror_flag
3564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3565 $as_echo "$ac_cv_prog_cc_g" >&6; }
3566 if test "$ac_test_CFLAGS" = set; then
3567 CFLAGS=$ac_save_CFLAGS
3568 elif test $ac_cv_prog_cc_g = yes; then
3569 if test "$GCC" = yes; then
3570 CFLAGS="-g -O2"
3571 else
3572 CFLAGS="-g"
3574 else
3575 if test "$GCC" = yes; then
3576 CFLAGS="-O2"
3577 else
3578 CFLAGS=
3581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3582 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3583 if ${ac_cv_prog_cc_c89+:} false; then :
3584 $as_echo_n "(cached) " >&6
3585 else
3586 ac_cv_prog_cc_c89=no
3587 ac_save_CC=$CC
3588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3589 /* end confdefs.h. */
3590 #include <stdarg.h>
3591 #include <stdio.h>
3592 struct stat;
3593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3594 struct buf { int x; };
3595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3596 static char *e (p, i)
3597 char **p;
3598 int i;
3600 return p[i];
3602 static char *f (char * (*g) (char **, int), char **p, ...)
3604 char *s;
3605 va_list v;
3606 va_start (v,p);
3607 s = g (p, va_arg (v,int));
3608 va_end (v);
3609 return s;
3612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3613 function prototypes and stuff, but not '\xHH' hex character constants.
3614 These don't provoke an error unfortunately, instead are silently treated
3615 as 'x'. The following induces an error, until -std is added to get
3616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3617 array size at least. It's necessary to write '\x00'==0 to get something
3618 that's true only with -std. */
3619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3621 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3622 inside strings and character constants. */
3623 #define FOO(x) 'x'
3624 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3626 int test (int i, double x);
3627 struct s1 {int (*f) (int a);};
3628 struct s2 {int (*f) (double a);};
3629 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3630 int argc;
3631 char **argv;
3633 main ()
3635 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3637 return 0;
3639 _ACEOF
3640 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3641 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3643 CC="$ac_save_CC $ac_arg"
3644 if ac_fn_c_try_compile "$LINENO"; then :
3645 ac_cv_prog_cc_c89=$ac_arg
3647 rm -f core conftest.err conftest.$ac_objext
3648 test "x$ac_cv_prog_cc_c89" != "xno" && break
3649 done
3650 rm -f conftest.$ac_ext
3651 CC=$ac_save_CC
3654 # AC_CACHE_VAL
3655 case "x$ac_cv_prog_cc_c89" in
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3658 $as_echo "none needed" >&6; } ;;
3659 xno)
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3661 $as_echo "unsupported" >&6; } ;;
3663 CC="$CC $ac_cv_prog_cc_c89"
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3665 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3666 esac
3667 if test "x$ac_cv_prog_cc_c89" != xno; then :
3671 ac_ext=c
3672 ac_cpp='$CPP $CPPFLAGS'
3673 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3674 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3675 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3676 DEPDIR="${am__leading_dot}deps"
3678 ac_config_commands="$ac_config_commands depfiles"
3681 am_make=${MAKE-make}
3682 cat > confinc << 'END'
3683 am__doit:
3684 @echo this is the am__doit target
3685 .PHONY: am__doit
3687 # If we don't find an include directive, just comment out the code.
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3689 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3690 am__include="#"
3691 am__quote=
3692 _am_result=none
3693 # First try GNU make style include.
3694 echo "include confinc" > confmf
3695 # Ignore all kinds of additional output from `make'.
3696 case `$am_make -s -f confmf 2> /dev/null` in #(
3697 *the\ am__doit\ target*)
3698 am__include=include
3699 am__quote=
3700 _am_result=GNU
3702 esac
3703 # Now try BSD make style include.
3704 if test "$am__include" = "#"; then
3705 echo '.include "confinc"' > confmf
3706 case `$am_make -s -f confmf 2> /dev/null` in #(
3707 *the\ am__doit\ target*)
3708 am__include=.include
3709 am__quote="\""
3710 _am_result=BSD
3712 esac
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3717 $as_echo "$_am_result" >&6; }
3718 rm -f confinc confmf
3720 # Check whether --enable-dependency-tracking was given.
3721 if test "${enable_dependency_tracking+set}" = set; then :
3722 enableval=$enable_dependency_tracking;
3725 if test "x$enable_dependency_tracking" != xno; then
3726 am_depcomp="$ac_aux_dir/depcomp"
3727 AMDEPBACKSLASH='\'
3728 am__nodep='_no'
3730 if test "x$enable_dependency_tracking" != xno; then
3731 AMDEP_TRUE=
3732 AMDEP_FALSE='#'
3733 else
3734 AMDEP_TRUE='#'
3735 AMDEP_FALSE=
3740 depcc="$CC" am_compiler_list=
3742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3743 $as_echo_n "checking dependency style of $depcc... " >&6; }
3744 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
3745 $as_echo_n "(cached) " >&6
3746 else
3747 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3748 # We make a subdir and do the tests there. Otherwise we can end up
3749 # making bogus files that we don't know about and never remove. For
3750 # instance it was reported that on HP-UX the gcc test will end up
3751 # making a dummy file named `D' -- because `-MD' means `put the output
3752 # in D'.
3753 rm -rf conftest.dir
3754 mkdir conftest.dir
3755 # Copy depcomp to subdir because otherwise we won't find it if we're
3756 # using a relative directory.
3757 cp "$am_depcomp" conftest.dir
3758 cd conftest.dir
3759 # We will build objects and dependencies in a subdirectory because
3760 # it helps to detect inapplicable dependency modes. For instance
3761 # both Tru64's cc and ICC support -MD to output dependencies as a
3762 # side effect of compilation, but ICC will put the dependencies in
3763 # the current directory while Tru64 will put them in the object
3764 # directory.
3765 mkdir sub
3767 am_cv_CC_dependencies_compiler_type=none
3768 if test "$am_compiler_list" = ""; then
3769 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3771 am__universal=false
3772 case " $depcc " in #(
3773 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3774 esac
3776 for depmode in $am_compiler_list; do
3777 # Setup a source with many dependencies, because some compilers
3778 # like to wrap large dependency lists on column 80 (with \), and
3779 # we should not choose a depcomp mode which is confused by this.
3781 # We need to recreate these files for each test, as the compiler may
3782 # overwrite some of them when testing with obscure command lines.
3783 # This happens at least with the AIX C compiler.
3784 : > sub/conftest.c
3785 for i in 1 2 3 4 5 6; do
3786 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3787 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3788 # Solaris 8's {/usr,}/bin/sh.
3789 touch sub/conftst$i.h
3790 done
3791 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3793 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3794 # mode. It turns out that the SunPro C++ compiler does not properly
3795 # handle `-M -o', and we need to detect this. Also, some Intel
3796 # versions had trouble with output in subdirs
3797 am__obj=sub/conftest.${OBJEXT-o}
3798 am__minus_obj="-o $am__obj"
3799 case $depmode in
3800 gcc)
3801 # This depmode causes a compiler race in universal mode.
3802 test "$am__universal" = false || continue
3804 nosideeffect)
3805 # after this tag, mechanisms are not by side-effect, so they'll
3806 # only be used when explicitly requested
3807 if test "x$enable_dependency_tracking" = xyes; then
3808 continue
3809 else
3810 break
3813 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3814 # This compiler won't grok `-c -o', but also, the minuso test has
3815 # not run yet. These depmodes are late enough in the game, and
3816 # so weak that their functioning should not be impacted.
3817 am__obj=conftest.${OBJEXT-o}
3818 am__minus_obj=
3820 none) break ;;
3821 esac
3822 if depmode=$depmode \
3823 source=sub/conftest.c object=$am__obj \
3824 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3825 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3826 >/dev/null 2>conftest.err &&
3827 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3828 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3829 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3830 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3831 # icc doesn't choke on unknown options, it will just issue warnings
3832 # or remarks (even with -Werror). So we grep stderr for any message
3833 # that says an option was ignored or not supported.
3834 # When given -MP, icc 7.0 and 7.1 complain thusly:
3835 # icc: Command line warning: ignoring option '-M'; no argument required
3836 # The diagnosis changed in icc 8.0:
3837 # icc: Command line remark: option '-MP' not supported
3838 if (grep 'ignoring option' conftest.err ||
3839 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3840 am_cv_CC_dependencies_compiler_type=$depmode
3841 break
3844 done
3846 cd ..
3847 rm -rf conftest.dir
3848 else
3849 am_cv_CC_dependencies_compiler_type=none
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3854 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3855 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3858 test "x$enable_dependency_tracking" != xno \
3859 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3860 am__fastdepCC_TRUE=
3861 am__fastdepCC_FALSE='#'
3862 else
3863 am__fastdepCC_TRUE='#'
3864 am__fastdepCC_FALSE=
3868 ac_ext=cpp
3869 ac_cpp='$CXXCPP $CPPFLAGS'
3870 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3871 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3872 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3873 if test -z "$CXX"; then
3874 if test -n "$CCC"; then
3875 CXX=$CCC
3876 else
3877 if test -n "$ac_tool_prefix"; then
3878 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3880 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3881 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3883 $as_echo_n "checking for $ac_word... " >&6; }
3884 if ${ac_cv_prog_CXX+:} false; then :
3885 $as_echo_n "(cached) " >&6
3886 else
3887 if test -n "$CXX"; then
3888 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3889 else
3890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3891 for as_dir in $PATH
3893 IFS=$as_save_IFS
3894 test -z "$as_dir" && as_dir=.
3895 for ac_exec_ext in '' $ac_executable_extensions; do
3896 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3897 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3898 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 break 2
3901 done
3902 done
3903 IFS=$as_save_IFS
3907 CXX=$ac_cv_prog_CXX
3908 if test -n "$CXX"; then
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3910 $as_echo "$CXX" >&6; }
3911 else
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3917 test -n "$CXX" && break
3918 done
3920 if test -z "$CXX"; then
3921 ac_ct_CXX=$CXX
3922 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3924 # Extract the first word of "$ac_prog", so it can be a program name with args.
3925 set dummy $ac_prog; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3929 $as_echo_n "(cached) " >&6
3930 else
3931 if test -n "$ac_ct_CXX"; then
3932 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3933 else
3934 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935 for as_dir in $PATH
3937 IFS=$as_save_IFS
3938 test -z "$as_dir" && as_dir=.
3939 for ac_exec_ext in '' $ac_executable_extensions; do
3940 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3941 ac_cv_prog_ac_ct_CXX="$ac_prog"
3942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943 break 2
3945 done
3946 done
3947 IFS=$as_save_IFS
3951 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3952 if test -n "$ac_ct_CXX"; then
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3954 $as_echo "$ac_ct_CXX" >&6; }
3955 else
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957 $as_echo "no" >&6; }
3961 test -n "$ac_ct_CXX" && break
3962 done
3964 if test "x$ac_ct_CXX" = x; then
3965 CXX="g++"
3966 else
3967 case $cross_compiling:$ac_tool_warned in
3968 yes:)
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3971 ac_tool_warned=yes ;;
3972 esac
3973 CXX=$ac_ct_CXX
3979 # Provide some information about the compiler.
3980 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3981 set X $ac_compile
3982 ac_compiler=$2
3983 for ac_option in --version -v -V -qversion; do
3984 { { ac_try="$ac_compiler $ac_option >&5"
3985 case "(($ac_try" in
3986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3987 *) ac_try_echo=$ac_try;;
3988 esac
3989 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3990 $as_echo "$ac_try_echo"; } >&5
3991 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3992 ac_status=$?
3993 if test -s conftest.err; then
3994 sed '10a\
3995 ... rest of stderr output deleted ...
3996 10q' conftest.err >conftest.er1
3997 cat conftest.er1 >&5
3999 rm -f conftest.er1 conftest.err
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }
4002 done
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4005 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4006 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4013 main ()
4015 #ifndef __GNUC__
4016 choke me
4017 #endif
4020 return 0;
4022 _ACEOF
4023 if ac_fn_cxx_try_compile "$LINENO"; then :
4024 ac_compiler_gnu=yes
4025 else
4026 ac_compiler_gnu=no
4028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4033 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4034 if test $ac_compiler_gnu = yes; then
4035 GXX=yes
4036 else
4037 GXX=
4039 ac_test_CXXFLAGS=${CXXFLAGS+set}
4040 ac_save_CXXFLAGS=$CXXFLAGS
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4042 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4043 if ${ac_cv_prog_cxx_g+:} false; then :
4044 $as_echo_n "(cached) " >&6
4045 else
4046 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4047 ac_cxx_werror_flag=yes
4048 ac_cv_prog_cxx_g=no
4049 CXXFLAGS="-g"
4050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4051 /* end confdefs.h. */
4054 main ()
4058 return 0;
4060 _ACEOF
4061 if ac_fn_cxx_try_compile "$LINENO"; then :
4062 ac_cv_prog_cxx_g=yes
4063 else
4064 CXXFLAGS=""
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4069 main ()
4073 return 0;
4075 _ACEOF
4076 if ac_fn_cxx_try_compile "$LINENO"; then :
4078 else
4079 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4080 CXXFLAGS="-g"
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4085 main ()
4089 return 0;
4091 _ACEOF
4092 if ac_fn_cxx_try_compile "$LINENO"; then :
4093 ac_cv_prog_cxx_g=yes
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4099 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4100 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4103 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4104 if test "$ac_test_CXXFLAGS" = set; then
4105 CXXFLAGS=$ac_save_CXXFLAGS
4106 elif test $ac_cv_prog_cxx_g = yes; then
4107 if test "$GXX" = yes; then
4108 CXXFLAGS="-g -O2"
4109 else
4110 CXXFLAGS="-g"
4112 else
4113 if test "$GXX" = yes; then
4114 CXXFLAGS="-O2"
4115 else
4116 CXXFLAGS=
4119 ac_ext=c
4120 ac_cpp='$CPP $CPPFLAGS'
4121 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4122 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4123 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4125 depcc="$CXX" am_compiler_list=
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4128 $as_echo_n "checking dependency style of $depcc... " >&6; }
4129 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4133 # We make a subdir and do the tests there. Otherwise we can end up
4134 # making bogus files that we don't know about and never remove. For
4135 # instance it was reported that on HP-UX the gcc test will end up
4136 # making a dummy file named `D' -- because `-MD' means `put the output
4137 # in D'.
4138 rm -rf conftest.dir
4139 mkdir conftest.dir
4140 # Copy depcomp to subdir because otherwise we won't find it if we're
4141 # using a relative directory.
4142 cp "$am_depcomp" conftest.dir
4143 cd conftest.dir
4144 # We will build objects and dependencies in a subdirectory because
4145 # it helps to detect inapplicable dependency modes. For instance
4146 # both Tru64's cc and ICC support -MD to output dependencies as a
4147 # side effect of compilation, but ICC will put the dependencies in
4148 # the current directory while Tru64 will put them in the object
4149 # directory.
4150 mkdir sub
4152 am_cv_CXX_dependencies_compiler_type=none
4153 if test "$am_compiler_list" = ""; then
4154 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4156 am__universal=false
4157 case " $depcc " in #(
4158 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4159 esac
4161 for depmode in $am_compiler_list; do
4162 # Setup a source with many dependencies, because some compilers
4163 # like to wrap large dependency lists on column 80 (with \), and
4164 # we should not choose a depcomp mode which is confused by this.
4166 # We need to recreate these files for each test, as the compiler may
4167 # overwrite some of them when testing with obscure command lines.
4168 # This happens at least with the AIX C compiler.
4169 : > sub/conftest.c
4170 for i in 1 2 3 4 5 6; do
4171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4172 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4173 # Solaris 8's {/usr,}/bin/sh.
4174 touch sub/conftst$i.h
4175 done
4176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4178 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4179 # mode. It turns out that the SunPro C++ compiler does not properly
4180 # handle `-M -o', and we need to detect this. Also, some Intel
4181 # versions had trouble with output in subdirs
4182 am__obj=sub/conftest.${OBJEXT-o}
4183 am__minus_obj="-o $am__obj"
4184 case $depmode in
4185 gcc)
4186 # This depmode causes a compiler race in universal mode.
4187 test "$am__universal" = false || continue
4189 nosideeffect)
4190 # after this tag, mechanisms are not by side-effect, so they'll
4191 # only be used when explicitly requested
4192 if test "x$enable_dependency_tracking" = xyes; then
4193 continue
4194 else
4195 break
4198 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4199 # This compiler won't grok `-c -o', but also, the minuso test has
4200 # not run yet. These depmodes are late enough in the game, and
4201 # so weak that their functioning should not be impacted.
4202 am__obj=conftest.${OBJEXT-o}
4203 am__minus_obj=
4205 none) break ;;
4206 esac
4207 if depmode=$depmode \
4208 source=sub/conftest.c object=$am__obj \
4209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4211 >/dev/null 2>conftest.err &&
4212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4216 # icc doesn't choke on unknown options, it will just issue warnings
4217 # or remarks (even with -Werror). So we grep stderr for any message
4218 # that says an option was ignored or not supported.
4219 # When given -MP, icc 7.0 and 7.1 complain thusly:
4220 # icc: Command line warning: ignoring option '-M'; no argument required
4221 # The diagnosis changed in icc 8.0:
4222 # icc: Command line remark: option '-MP' not supported
4223 if (grep 'ignoring option' conftest.err ||
4224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4225 am_cv_CXX_dependencies_compiler_type=$depmode
4226 break
4229 done
4231 cd ..
4232 rm -rf conftest.dir
4233 else
4234 am_cv_CXX_dependencies_compiler_type=none
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4239 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4240 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4243 test "x$enable_dependency_tracking" != xno \
4244 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
4245 am__fastdepCXX_TRUE=
4246 am__fastdepCXX_FALSE='#'
4247 else
4248 am__fastdepCXX_TRUE='#'
4249 am__fastdepCXX_FALSE=
4253 if test "x$CC" != xcc; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
4255 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
4258 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
4260 set dummy $CC; ac_cc=`$as_echo "$2" |
4261 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4262 if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
4263 $as_echo_n "(cached) " >&6
4264 else
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 # Make sure it works both with $CC and with simple cc.
4277 # We do the test twice because some compilers refuse to overwrite an
4278 # existing .o file with -o, though they will create one.
4279 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4280 rm -f conftest2.*
4281 if { { case "(($ac_try" in
4282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4283 *) ac_try_echo=$ac_try;;
4284 esac
4285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4286 $as_echo "$ac_try_echo"; } >&5
4287 (eval "$ac_try") 2>&5
4288 ac_status=$?
4289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4290 test $ac_status = 0; } &&
4291 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4293 *) ac_try_echo=$ac_try;;
4294 esac
4295 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4296 $as_echo "$ac_try_echo"; } >&5
4297 (eval "$ac_try") 2>&5
4298 ac_status=$?
4299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4300 test $ac_status = 0; };
4301 then
4302 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
4303 if test "x$CC" != xcc; then
4304 # Test first that cc exists at all.
4305 if { ac_try='cc -c conftest.$ac_ext >&5'
4306 { { case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4311 $as_echo "$ac_try_echo"; } >&5
4312 (eval "$ac_try") 2>&5
4313 ac_status=$?
4314 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4315 test $ac_status = 0; }; }; then
4316 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
4317 rm -f conftest2.*
4318 if { { case "(($ac_try" in
4319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4320 *) ac_try_echo=$ac_try;;
4321 esac
4322 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4323 $as_echo "$ac_try_echo"; } >&5
4324 (eval "$ac_try") 2>&5
4325 ac_status=$?
4326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4327 test $ac_status = 0; } &&
4328 test -f conftest2.$ac_objext && { { case "(($ac_try" in
4329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4330 *) ac_try_echo=$ac_try;;
4331 esac
4332 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4333 $as_echo "$ac_try_echo"; } >&5
4334 (eval "$ac_try") 2>&5
4335 ac_status=$?
4336 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4337 test $ac_status = 0; };
4338 then
4339 # cc works too.
4341 else
4342 # cc exists but doesn't like -o.
4343 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4347 else
4348 eval ac_cv_prog_cc_${ac_cc}_c_o=no
4350 rm -f core conftest*
4353 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4355 $as_echo "yes" >&6; }
4356 else
4357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4358 $as_echo "no" >&6; }
4360 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
4364 # FIXME: we rely on the cache variable name because
4365 # there is no other way.
4366 set dummy $CC
4367 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
4368 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
4369 if test "$am_t" != yes; then
4370 # Losing compiler, so override with the script.
4371 # FIXME: It is wrong to rewrite CC.
4372 # But if we don't then we get into trouble of one sort or another.
4373 # A longer-term fix would be to have automake use am__CC in this case,
4374 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4375 CC="$am_aux_dir/compile $CC"
4386 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4387 if test -n "$ac_tool_prefix"; then
4388 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4389 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4391 $as_echo_n "checking for $ac_word... " >&6; }
4392 if ${ac_cv_path_PKG_CONFIG+:} false; then :
4393 $as_echo_n "(cached) " >&6
4394 else
4395 case $PKG_CONFIG in
4396 [\\/]* | ?:[\\/]*)
4397 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_exec_ext in '' $ac_executable_extensions; do
4406 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4407 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4408 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4409 break 2
4411 done
4412 done
4413 IFS=$as_save_IFS
4416 esac
4418 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4419 if test -n "$PKG_CONFIG"; then
4420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4421 $as_echo "$PKG_CONFIG" >&6; }
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4429 if test -z "$ac_cv_path_PKG_CONFIG"; then
4430 ac_pt_PKG_CONFIG=$PKG_CONFIG
4431 # Extract the first word of "pkg-config", so it can be a program name with args.
4432 set dummy pkg-config; ac_word=$2
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4434 $as_echo_n "checking for $ac_word... " >&6; }
4435 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4438 case $ac_pt_PKG_CONFIG in
4439 [\\/]* | ?:[\\/]*)
4440 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4443 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4444 for as_dir in $PATH
4446 IFS=$as_save_IFS
4447 test -z "$as_dir" && as_dir=.
4448 for ac_exec_ext in '' $ac_executable_extensions; do
4449 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4450 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4451 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4452 break 2
4454 done
4455 done
4456 IFS=$as_save_IFS
4459 esac
4461 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4462 if test -n "$ac_pt_PKG_CONFIG"; then
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4464 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
4465 else
4466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4467 $as_echo "no" >&6; }
4470 if test "x$ac_pt_PKG_CONFIG" = x; then
4471 PKG_CONFIG=""
4472 else
4473 case $cross_compiling:$ac_tool_warned in
4474 yes:)
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4476 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4477 ac_tool_warned=yes ;;
4478 esac
4479 PKG_CONFIG=$ac_pt_PKG_CONFIG
4481 else
4482 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4486 if test -n "$PKG_CONFIG"; then
4487 _pkg_min_version=0.9.0
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4489 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4490 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4492 $as_echo "yes" >&6; }
4493 else
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4495 $as_echo "no" >&6; }
4496 PKG_CONFIG=""
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strerror" >&5
4502 $as_echo_n "checking for library containing strerror... " >&6; }
4503 if ${ac_cv_search_strerror+:} false; then :
4504 $as_echo_n "(cached) " >&6
4505 else
4506 ac_func_search_save_LIBS=$LIBS
4507 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4508 /* end confdefs.h. */
4510 /* Override any GCC internal prototype to avoid an error.
4511 Use char because int might match the return type of a GCC
4512 builtin and then its argument prototype would still apply. */
4513 #ifdef __cplusplus
4514 extern "C"
4515 #endif
4516 char strerror ();
4518 main ()
4520 return strerror ();
4522 return 0;
4524 _ACEOF
4525 for ac_lib in '' cposix; do
4526 if test -z "$ac_lib"; then
4527 ac_res="none required"
4528 else
4529 ac_res=-l$ac_lib
4530 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4532 if ac_fn_c_try_link "$LINENO"; then :
4533 ac_cv_search_strerror=$ac_res
4535 rm -f core conftest.err conftest.$ac_objext \
4536 conftest$ac_exeext
4537 if ${ac_cv_search_strerror+:} false; then :
4538 break
4540 done
4541 if ${ac_cv_search_strerror+:} false; then :
4543 else
4544 ac_cv_search_strerror=no
4546 rm conftest.$ac_ext
4547 LIBS=$ac_func_search_save_LIBS
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strerror" >&5
4550 $as_echo "$ac_cv_search_strerror" >&6; }
4551 ac_res=$ac_cv_search_strerror
4552 if test "$ac_res" != no; then :
4553 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4557 ac_ext=c
4558 ac_cpp='$CPP $CPPFLAGS'
4559 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4560 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4561 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4563 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4564 # On Suns, sometimes $CPP names a directory.
4565 if test -n "$CPP" && test -d "$CPP"; then
4566 CPP=
4568 if test -z "$CPP"; then
4569 if ${ac_cv_prog_CPP+:} false; then :
4570 $as_echo_n "(cached) " >&6
4571 else
4572 # Double quotes because CPP needs to be expanded
4573 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4575 ac_preproc_ok=false
4576 for ac_c_preproc_warn_flag in '' yes
4578 # Use a header file that comes with gcc, so configuring glibc
4579 # with a fresh cross-compiler works.
4580 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4581 # <limits.h> exists even on freestanding compilers.
4582 # On the NeXT, cc -E runs the code through the compiler's parser,
4583 # not just through cpp. "Syntax error" is here to catch this case.
4584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4585 /* end confdefs.h. */
4586 #ifdef __STDC__
4587 # include <limits.h>
4588 #else
4589 # include <assert.h>
4590 #endif
4591 Syntax error
4592 _ACEOF
4593 if ac_fn_c_try_cpp "$LINENO"; then :
4595 else
4596 # Broken: fails on valid input.
4597 continue
4599 rm -f conftest.err conftest.i conftest.$ac_ext
4601 # OK, works on sane cases. Now check whether nonexistent headers
4602 # can be detected and how.
4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4604 /* end confdefs.h. */
4605 #include <ac_nonexistent.h>
4606 _ACEOF
4607 if ac_fn_c_try_cpp "$LINENO"; then :
4608 # Broken: success on invalid input.
4609 continue
4610 else
4611 # Passes both tests.
4612 ac_preproc_ok=:
4613 break
4615 rm -f conftest.err conftest.i conftest.$ac_ext
4617 done
4618 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4619 rm -f conftest.i conftest.err conftest.$ac_ext
4620 if $ac_preproc_ok; then :
4621 break
4624 done
4625 ac_cv_prog_CPP=$CPP
4628 CPP=$ac_cv_prog_CPP
4629 else
4630 ac_cv_prog_CPP=$CPP
4632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4633 $as_echo "$CPP" >&6; }
4634 ac_preproc_ok=false
4635 for ac_c_preproc_warn_flag in '' yes
4637 # Use a header file that comes with gcc, so configuring glibc
4638 # with a fresh cross-compiler works.
4639 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4640 # <limits.h> exists even on freestanding compilers.
4641 # On the NeXT, cc -E runs the code through the compiler's parser,
4642 # not just through cpp. "Syntax error" is here to catch this case.
4643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h. */
4645 #ifdef __STDC__
4646 # include <limits.h>
4647 #else
4648 # include <assert.h>
4649 #endif
4650 Syntax error
4651 _ACEOF
4652 if ac_fn_c_try_cpp "$LINENO"; then :
4654 else
4655 # Broken: fails on valid input.
4656 continue
4658 rm -f conftest.err conftest.i conftest.$ac_ext
4660 # OK, works on sane cases. Now check whether nonexistent headers
4661 # can be detected and how.
4662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4663 /* end confdefs.h. */
4664 #include <ac_nonexistent.h>
4665 _ACEOF
4666 if ac_fn_c_try_cpp "$LINENO"; then :
4667 # Broken: success on invalid input.
4668 continue
4669 else
4670 # Passes both tests.
4671 ac_preproc_ok=:
4672 break
4674 rm -f conftest.err conftest.i conftest.$ac_ext
4676 done
4677 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4678 rm -f conftest.i conftest.err conftest.$ac_ext
4679 if $ac_preproc_ok; then :
4681 else
4682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4683 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4684 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
4685 See \`config.log' for more details" "$LINENO" 5; }
4688 ac_ext=c
4689 ac_cpp='$CPP $CPPFLAGS'
4690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4696 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4697 if ${ac_cv_path_GREP+:} false; then :
4698 $as_echo_n "(cached) " >&6
4699 else
4700 if test -z "$GREP"; then
4701 ac_path_GREP_found=false
4702 # Loop through the user's path and test for each of PROGNAME-LIST
4703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4704 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4706 IFS=$as_save_IFS
4707 test -z "$as_dir" && as_dir=.
4708 for ac_prog in grep ggrep; do
4709 for ac_exec_ext in '' $ac_executable_extensions; do
4710 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4711 as_fn_executable_p "$ac_path_GREP" || continue
4712 # Check for GNU ac_path_GREP and select it if it is found.
4713 # Check for GNU $ac_path_GREP
4714 case `"$ac_path_GREP" --version 2>&1` in
4715 *GNU*)
4716 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4718 ac_count=0
4719 $as_echo_n 0123456789 >"conftest.in"
4720 while :
4722 cat "conftest.in" "conftest.in" >"conftest.tmp"
4723 mv "conftest.tmp" "conftest.in"
4724 cp "conftest.in" "conftest.nl"
4725 $as_echo 'GREP' >> "conftest.nl"
4726 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4728 as_fn_arith $ac_count + 1 && ac_count=$as_val
4729 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4730 # Best one so far, save it but keep looking for a better one
4731 ac_cv_path_GREP="$ac_path_GREP"
4732 ac_path_GREP_max=$ac_count
4734 # 10*(2^10) chars as input seems more than enough
4735 test $ac_count -gt 10 && break
4736 done
4737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4738 esac
4740 $ac_path_GREP_found && break 3
4741 done
4742 done
4743 done
4744 IFS=$as_save_IFS
4745 if test -z "$ac_cv_path_GREP"; then
4746 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4748 else
4749 ac_cv_path_GREP=$GREP
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4754 $as_echo "$ac_cv_path_GREP" >&6; }
4755 GREP="$ac_cv_path_GREP"
4758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4759 $as_echo_n "checking for egrep... " >&6; }
4760 if ${ac_cv_path_EGREP+:} false; then :
4761 $as_echo_n "(cached) " >&6
4762 else
4763 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4764 then ac_cv_path_EGREP="$GREP -E"
4765 else
4766 if test -z "$EGREP"; then
4767 ac_path_EGREP_found=false
4768 # Loop through the user's path and test for each of PROGNAME-LIST
4769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4770 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4772 IFS=$as_save_IFS
4773 test -z "$as_dir" && as_dir=.
4774 for ac_prog in egrep; do
4775 for ac_exec_ext in '' $ac_executable_extensions; do
4776 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4777 as_fn_executable_p "$ac_path_EGREP" || continue
4778 # Check for GNU ac_path_EGREP and select it if it is found.
4779 # Check for GNU $ac_path_EGREP
4780 case `"$ac_path_EGREP" --version 2>&1` in
4781 *GNU*)
4782 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4784 ac_count=0
4785 $as_echo_n 0123456789 >"conftest.in"
4786 while :
4788 cat "conftest.in" "conftest.in" >"conftest.tmp"
4789 mv "conftest.tmp" "conftest.in"
4790 cp "conftest.in" "conftest.nl"
4791 $as_echo 'EGREP' >> "conftest.nl"
4792 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4793 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4794 as_fn_arith $ac_count + 1 && ac_count=$as_val
4795 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4796 # Best one so far, save it but keep looking for a better one
4797 ac_cv_path_EGREP="$ac_path_EGREP"
4798 ac_path_EGREP_max=$ac_count
4800 # 10*(2^10) chars as input seems more than enough
4801 test $ac_count -gt 10 && break
4802 done
4803 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4804 esac
4806 $ac_path_EGREP_found && break 3
4807 done
4808 done
4809 done
4810 IFS=$as_save_IFS
4811 if test -z "$ac_cv_path_EGREP"; then
4812 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4814 else
4815 ac_cv_path_EGREP=$EGREP
4820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4821 $as_echo "$ac_cv_path_EGREP" >&6; }
4822 EGREP="$ac_cv_path_EGREP"
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4826 $as_echo_n "checking for ANSI C header files... " >&6; }
4827 if ${ac_cv_header_stdc+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4831 /* end confdefs.h. */
4832 #include <stdlib.h>
4833 #include <stdarg.h>
4834 #include <string.h>
4835 #include <float.h>
4838 main ()
4842 return 0;
4844 _ACEOF
4845 if ac_fn_c_try_compile "$LINENO"; then :
4846 ac_cv_header_stdc=yes
4847 else
4848 ac_cv_header_stdc=no
4850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4852 if test $ac_cv_header_stdc = yes; then
4853 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4855 /* end confdefs.h. */
4856 #include <string.h>
4858 _ACEOF
4859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4860 $EGREP "memchr" >/dev/null 2>&1; then :
4862 else
4863 ac_cv_header_stdc=no
4865 rm -f conftest*
4869 if test $ac_cv_header_stdc = yes; then
4870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4872 /* end confdefs.h. */
4873 #include <stdlib.h>
4875 _ACEOF
4876 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4877 $EGREP "free" >/dev/null 2>&1; then :
4879 else
4880 ac_cv_header_stdc=no
4882 rm -f conftest*
4886 if test $ac_cv_header_stdc = yes; then
4887 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4888 if test "$cross_compiling" = yes; then :
4890 else
4891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4892 /* end confdefs.h. */
4893 #include <ctype.h>
4894 #include <stdlib.h>
4895 #if ((' ' & 0x0FF) == 0x020)
4896 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4897 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4898 #else
4899 # define ISLOWER(c) \
4900 (('a' <= (c) && (c) <= 'i') \
4901 || ('j' <= (c) && (c) <= 'r') \
4902 || ('s' <= (c) && (c) <= 'z'))
4903 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4904 #endif
4906 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4908 main ()
4910 int i;
4911 for (i = 0; i < 256; i++)
4912 if (XOR (islower (i), ISLOWER (i))
4913 || toupper (i) != TOUPPER (i))
4914 return 2;
4915 return 0;
4917 _ACEOF
4918 if ac_fn_c_try_run "$LINENO"; then :
4920 else
4921 ac_cv_header_stdc=no
4923 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4924 conftest.$ac_objext conftest.beam conftest.$ac_ext
4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4930 $as_echo "$ac_cv_header_stdc" >&6; }
4931 if test $ac_cv_header_stdc = yes; then
4933 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4938 for ac_func in setlocale
4939 do :
4940 ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale"
4941 if test "x$ac_cv_func_setlocale" = xyes; then :
4942 cat >>confdefs.h <<_ACEOF
4943 #define HAVE_SETLOCALE 1
4944 _ACEOF
4947 done
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5
4952 $as_echo_n "checking whether NLS is requested... " >&6; }
4953 # Check whether --enable-nls was given.
4954 if test "${enable_nls+set}" = set; then :
4955 enableval=$enable_nls; USE_NLS=$enableval
4956 else
4957 USE_NLS=yes
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
4961 $as_echo "$USE_NLS" >&6; }
4966 GETTEXT_MACRO_VERSION=0.18
4971 # Prepare PATH_SEPARATOR.
4972 # The user is always right.
4973 if test "${PATH_SEPARATOR+set}" != set; then
4974 echo "#! /bin/sh" >conf$$.sh
4975 echo "exit 0" >>conf$$.sh
4976 chmod +x conf$$.sh
4977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
4978 PATH_SEPARATOR=';'
4979 else
4980 PATH_SEPARATOR=:
4982 rm -f conf$$.sh
4985 # Find out how to test for executable files. Don't use a zero-byte file,
4986 # as systems may use methods other than mode bits to determine executability.
4987 cat >conf$$.file <<_ASEOF
4988 #! /bin/sh
4989 exit 0
4990 _ASEOF
4991 chmod +x conf$$.file
4992 if test -x conf$$.file >/dev/null 2>&1; then
4993 ac_executable_p="test -x"
4994 else
4995 ac_executable_p="test -f"
4997 rm -f conf$$.file
4999 # Extract the first word of "msgfmt", so it can be a program name with args.
5000 set dummy msgfmt; ac_word=$2
5001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5002 $as_echo_n "checking for $ac_word... " >&6; }
5003 if ${ac_cv_path_MSGFMT+:} false; then :
5004 $as_echo_n "(cached) " >&6
5005 else
5006 case "$MSGFMT" in
5007 [\\/]* | ?:[\\/]*)
5008 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
5011 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5012 for ac_dir in $PATH; do
5013 IFS="$ac_save_IFS"
5014 test -z "$ac_dir" && ac_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5017 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5018 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 &&
5019 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then
5020 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext"
5021 break 2
5024 done
5025 done
5026 IFS="$ac_save_IFS"
5027 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
5029 esac
5031 MSGFMT="$ac_cv_path_MSGFMT"
5032 if test "$MSGFMT" != ":"; then
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
5034 $as_echo "$MSGFMT" >&6; }
5035 else
5036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5037 $as_echo "no" >&6; }
5040 # Extract the first word of "gmsgfmt", so it can be a program name with args.
5041 set dummy gmsgfmt; ac_word=$2
5042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5043 $as_echo_n "checking for $ac_word... " >&6; }
5044 if ${ac_cv_path_GMSGFMT+:} false; then :
5045 $as_echo_n "(cached) " >&6
5046 else
5047 case $GMSGFMT in
5048 [\\/]* | ?:[\\/]*)
5049 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
5052 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH
5055 IFS=$as_save_IFS
5056 test -z "$as_dir" && as_dir=.
5057 for ac_exec_ext in '' $ac_executable_extensions; do
5058 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5059 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext"
5060 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5061 break 2
5063 done
5064 done
5065 IFS=$as_save_IFS
5067 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
5069 esac
5071 GMSGFMT=$ac_cv_path_GMSGFMT
5072 if test -n "$GMSGFMT"; then
5073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5
5074 $as_echo "$GMSGFMT" >&6; }
5075 else
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5077 $as_echo "no" >&6; }
5082 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5083 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;;
5084 *) MSGFMT_015=$MSGFMT ;;
5085 esac
5087 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5088 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;;
5089 *) GMSGFMT_015=$GMSGFMT ;;
5090 esac
5094 # Prepare PATH_SEPARATOR.
5095 # The user is always right.
5096 if test "${PATH_SEPARATOR+set}" != set; then
5097 echo "#! /bin/sh" >conf$$.sh
5098 echo "exit 0" >>conf$$.sh
5099 chmod +x conf$$.sh
5100 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5101 PATH_SEPARATOR=';'
5102 else
5103 PATH_SEPARATOR=:
5105 rm -f conf$$.sh
5108 # Find out how to test for executable files. Don't use a zero-byte file,
5109 # as systems may use methods other than mode bits to determine executability.
5110 cat >conf$$.file <<_ASEOF
5111 #! /bin/sh
5112 exit 0
5113 _ASEOF
5114 chmod +x conf$$.file
5115 if test -x conf$$.file >/dev/null 2>&1; then
5116 ac_executable_p="test -x"
5117 else
5118 ac_executable_p="test -f"
5120 rm -f conf$$.file
5122 # Extract the first word of "xgettext", so it can be a program name with args.
5123 set dummy xgettext; ac_word=$2
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5125 $as_echo_n "checking for $ac_word... " >&6; }
5126 if ${ac_cv_path_XGETTEXT+:} false; then :
5127 $as_echo_n "(cached) " >&6
5128 else
5129 case "$XGETTEXT" in
5130 [\\/]* | ?:[\\/]*)
5131 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
5134 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5135 for ac_dir in $PATH; do
5136 IFS="$ac_save_IFS"
5137 test -z "$ac_dir" && ac_dir=.
5138 for ac_exec_ext in '' $ac_executable_extensions; do
5139 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5140 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5141 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 &&
5142 (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
5143 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext"
5144 break 2
5147 done
5148 done
5149 IFS="$ac_save_IFS"
5150 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
5152 esac
5154 XGETTEXT="$ac_cv_path_XGETTEXT"
5155 if test "$XGETTEXT" != ":"; then
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
5157 $as_echo "$XGETTEXT" >&6; }
5158 else
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5160 $as_echo "no" >&6; }
5163 rm -f messages.po
5165 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in
5166 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;;
5167 *) XGETTEXT_015=$XGETTEXT ;;
5168 esac
5172 # Prepare PATH_SEPARATOR.
5173 # The user is always right.
5174 if test "${PATH_SEPARATOR+set}" != set; then
5175 echo "#! /bin/sh" >conf$$.sh
5176 echo "exit 0" >>conf$$.sh
5177 chmod +x conf$$.sh
5178 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5179 PATH_SEPARATOR=';'
5180 else
5181 PATH_SEPARATOR=:
5183 rm -f conf$$.sh
5186 # Find out how to test for executable files. Don't use a zero-byte file,
5187 # as systems may use methods other than mode bits to determine executability.
5188 cat >conf$$.file <<_ASEOF
5189 #! /bin/sh
5190 exit 0
5191 _ASEOF
5192 chmod +x conf$$.file
5193 if test -x conf$$.file >/dev/null 2>&1; then
5194 ac_executable_p="test -x"
5195 else
5196 ac_executable_p="test -f"
5198 rm -f conf$$.file
5200 # Extract the first word of "msgmerge", so it can be a program name with args.
5201 set dummy msgmerge; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_path_MSGMERGE+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 case "$MSGMERGE" in
5208 [\\/]* | ?:[\\/]*)
5209 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path.
5212 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR
5213 for ac_dir in $PATH; do
5214 IFS="$ac_save_IFS"
5215 test -z "$ac_dir" && ac_dir=.
5216 for ac_exec_ext in '' $ac_executable_extensions; do
5217 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then
5218 echo "$as_me: trying $ac_dir/$ac_word..." >&5
5219 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then
5220 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext"
5221 break 2
5224 done
5225 done
5226 IFS="$ac_save_IFS"
5227 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":"
5229 esac
5231 MSGMERGE="$ac_cv_path_MSGMERGE"
5232 if test "$MSGMERGE" != ":"; then
5233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
5234 $as_echo "$MSGMERGE" >&6; }
5235 else
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5237 $as_echo "no" >&6; }
5241 test -n "$localedir" || localedir='${datadir}/locale'
5244 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS=
5247 ac_config_commands="$ac_config_commands po-directories"
5251 if test "X$prefix" = "XNONE"; then
5252 acl_final_prefix="$ac_default_prefix"
5253 else
5254 acl_final_prefix="$prefix"
5256 if test "X$exec_prefix" = "XNONE"; then
5257 acl_final_exec_prefix='${prefix}'
5258 else
5259 acl_final_exec_prefix="$exec_prefix"
5261 acl_save_prefix="$prefix"
5262 prefix="$acl_final_prefix"
5263 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
5264 prefix="$acl_save_prefix"
5266 # Make sure we can run config.sub.
5267 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5268 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5271 $as_echo_n "checking build system type... " >&6; }
5272 if ${ac_cv_build+:} false; then :
5273 $as_echo_n "(cached) " >&6
5274 else
5275 ac_build_alias=$build_alias
5276 test "x$ac_build_alias" = x &&
5277 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5278 test "x$ac_build_alias" = x &&
5279 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5280 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5281 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5285 $as_echo "$ac_cv_build" >&6; }
5286 case $ac_cv_build in
5287 *-*-*) ;;
5288 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
5289 esac
5290 build=$ac_cv_build
5291 ac_save_IFS=$IFS; IFS='-'
5292 set x $ac_cv_build
5293 shift
5294 build_cpu=$1
5295 build_vendor=$2
5296 shift; shift
5297 # Remember, the first character of IFS is used to create $*,
5298 # except with old shells:
5299 build_os=$*
5300 IFS=$ac_save_IFS
5301 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5305 $as_echo_n "checking host system type... " >&6; }
5306 if ${ac_cv_host+:} false; then :
5307 $as_echo_n "(cached) " >&6
5308 else
5309 if test "x$host_alias" = x; then
5310 ac_cv_host=$ac_cv_build
5311 else
5312 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5313 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5318 $as_echo "$ac_cv_host" >&6; }
5319 case $ac_cv_host in
5320 *-*-*) ;;
5321 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
5322 esac
5323 host=$ac_cv_host
5324 ac_save_IFS=$IFS; IFS='-'
5325 set x $ac_cv_host
5326 shift
5327 host_cpu=$1
5328 host_vendor=$2
5329 shift; shift
5330 # Remember, the first character of IFS is used to create $*,
5331 # except with old shells:
5332 host_os=$*
5333 IFS=$ac_save_IFS
5334 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5338 # Check whether --with-gnu-ld was given.
5339 if test "${with_gnu_ld+set}" = set; then :
5340 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5341 else
5342 with_gnu_ld=no
5345 # Prepare PATH_SEPARATOR.
5346 # The user is always right.
5347 if test "${PATH_SEPARATOR+set}" != set; then
5348 echo "#! /bin/sh" >conf$$.sh
5349 echo "exit 0" >>conf$$.sh
5350 chmod +x conf$$.sh
5351 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5352 PATH_SEPARATOR=';'
5353 else
5354 PATH_SEPARATOR=:
5356 rm -f conf$$.sh
5358 ac_prog=ld
5359 if test "$GCC" = yes; then
5360 # Check if gcc -print-prog-name=ld gives a path.
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
5362 $as_echo_n "checking for ld used by GCC... " >&6; }
5363 case $host in
5364 *-*-mingw*)
5365 # gcc leaves a trailing carriage return which upsets mingw
5366 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5368 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5369 esac
5370 case $ac_prog in
5371 # Accept absolute paths.
5372 [\\/]* | [A-Za-z]:[\\/]*)
5373 re_direlt='/[^/][^/]*/\.\./'
5374 # Canonicalize the path of ld
5375 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
5376 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5377 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
5378 done
5379 test -z "$LD" && LD="$ac_prog"
5382 # If it fails, then pretend we aren't using GCC.
5383 ac_prog=ld
5386 # If it is relative, then search for the first ld in PATH.
5387 with_gnu_ld=unknown
5389 esac
5390 elif test "$with_gnu_ld" = yes; then
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5392 $as_echo_n "checking for GNU ld... " >&6; }
5393 else
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5395 $as_echo_n "checking for non-GNU ld... " >&6; }
5397 if ${acl_cv_path_LD+:} false; then :
5398 $as_echo_n "(cached) " >&6
5399 else
5400 if test -z "$LD"; then
5401 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
5402 for ac_dir in $PATH; do
5403 test -z "$ac_dir" && ac_dir=.
5404 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5405 acl_cv_path_LD="$ac_dir/$ac_prog"
5406 # Check to see if the program is GNU ld. I'd rather use --version,
5407 # but apparently some GNU ld's only accept -v.
5408 # Break only if it was the GNU/non-GNU ld that we prefer.
5409 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
5410 *GNU* | *'with BFD'*)
5411 test "$with_gnu_ld" != no && break ;;
5413 test "$with_gnu_ld" != yes && break ;;
5414 esac
5416 done
5417 IFS="$ac_save_ifs"
5418 else
5419 acl_cv_path_LD="$LD" # Let the user override the test with a path.
5423 LD="$acl_cv_path_LD"
5424 if test -n "$LD"; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5426 $as_echo "$LD" >&6; }
5427 else
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5429 $as_echo "no" >&6; }
5431 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5433 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5434 if ${acl_cv_prog_gnu_ld+:} false; then :
5435 $as_echo_n "(cached) " >&6
5436 else
5437 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5438 case `$LD -v 2>&1 </dev/null` in
5439 *GNU* | *'with BFD'*)
5440 acl_cv_prog_gnu_ld=yes ;;
5442 acl_cv_prog_gnu_ld=no ;;
5443 esac
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
5446 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
5447 with_gnu_ld=$acl_cv_prog_gnu_ld
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
5453 $as_echo_n "checking for shared library run path origin... " >&6; }
5454 if ${acl_cv_rpath+:} false; then :
5455 $as_echo_n "(cached) " >&6
5456 else
5458 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
5459 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
5460 . ./conftest.sh
5461 rm -f ./conftest.sh
5462 acl_cv_rpath=done
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
5466 $as_echo "$acl_cv_rpath" >&6; }
5467 wl="$acl_cv_wl"
5468 acl_libext="$acl_cv_libext"
5469 acl_shlibext="$acl_cv_shlibext"
5470 acl_libname_spec="$acl_cv_libname_spec"
5471 acl_library_names_spec="$acl_cv_library_names_spec"
5472 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
5473 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
5474 acl_hardcode_direct="$acl_cv_hardcode_direct"
5475 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
5476 # Check whether --enable-rpath was given.
5477 if test "${enable_rpath+set}" = set; then :
5478 enableval=$enable_rpath; :
5479 else
5480 enable_rpath=yes
5486 acl_libdirstem=lib
5487 acl_libdirstem2=
5488 case "$host_os" in
5489 solaris*)
5490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
5491 $as_echo_n "checking for 64-bit host... " >&6; }
5492 if ${gl_cv_solaris_64bit+:} false; then :
5493 $as_echo_n "(cached) " >&6
5494 else
5495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5496 /* end confdefs.h. */
5498 #ifdef _LP64
5499 sixtyfour bits
5500 #endif
5502 _ACEOF
5503 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5504 $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
5505 gl_cv_solaris_64bit=yes
5506 else
5507 gl_cv_solaris_64bit=no
5509 rm -f conftest*
5513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
5514 $as_echo "$gl_cv_solaris_64bit" >&6; }
5515 if test $gl_cv_solaris_64bit = yes; then
5516 acl_libdirstem=lib/64
5517 case "$host_cpu" in
5518 sparc*) acl_libdirstem2=lib/sparcv9 ;;
5519 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
5520 esac
5524 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
5525 if test -n "$searchpath"; then
5526 acl_save_IFS="${IFS= }"; IFS=":"
5527 for searchdir in $searchpath; do
5528 if test -d "$searchdir"; then
5529 case "$searchdir" in
5530 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
5531 */../ | */.. )
5532 # Better ignore directories of this form. They are misleading.
5534 *) searchdir=`cd "$searchdir" && pwd`
5535 case "$searchdir" in
5536 */lib64 ) acl_libdirstem=lib64 ;;
5537 esac ;;
5538 esac
5540 done
5541 IFS="$acl_save_IFS"
5544 esac
5545 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
5558 use_additional=yes
5560 acl_save_prefix="$prefix"
5561 prefix="$acl_final_prefix"
5562 acl_save_exec_prefix="$exec_prefix"
5563 exec_prefix="$acl_final_exec_prefix"
5565 eval additional_includedir=\"$includedir\"
5566 eval additional_libdir=\"$libdir\"
5568 exec_prefix="$acl_save_exec_prefix"
5569 prefix="$acl_save_prefix"
5572 # Check whether --with-libiconv-prefix was given.
5573 if test "${with_libiconv_prefix+set}" = set; then :
5574 withval=$with_libiconv_prefix;
5575 if test "X$withval" = "Xno"; then
5576 use_additional=no
5577 else
5578 if test "X$withval" = "X"; then
5580 acl_save_prefix="$prefix"
5581 prefix="$acl_final_prefix"
5582 acl_save_exec_prefix="$exec_prefix"
5583 exec_prefix="$acl_final_exec_prefix"
5585 eval additional_includedir=\"$includedir\"
5586 eval additional_libdir=\"$libdir\"
5588 exec_prefix="$acl_save_exec_prefix"
5589 prefix="$acl_save_prefix"
5591 else
5592 additional_includedir="$withval/include"
5593 additional_libdir="$withval/$acl_libdirstem"
5594 if test "$acl_libdirstem2" != "$acl_libdirstem" \
5595 && ! test -d "$withval/$acl_libdirstem"; then
5596 additional_libdir="$withval/$acl_libdirstem2"
5603 LIBICONV=
5604 LTLIBICONV=
5605 INCICONV=
5606 LIBICONV_PREFIX=
5607 HAVE_LIBICONV=
5608 rpathdirs=
5609 ltrpathdirs=
5610 names_already_handled=
5611 names_next_round='iconv '
5612 while test -n "$names_next_round"; do
5613 names_this_round="$names_next_round"
5614 names_next_round=
5615 for name in $names_this_round; do
5616 already_handled=
5617 for n in $names_already_handled; do
5618 if test "$n" = "$name"; then
5619 already_handled=yes
5620 break
5622 done
5623 if test -z "$already_handled"; then
5624 names_already_handled="$names_already_handled $name"
5625 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
5626 eval value=\"\$HAVE_LIB$uppername\"
5627 if test -n "$value"; then
5628 if test "$value" = yes; then
5629 eval value=\"\$LIB$uppername\"
5630 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
5631 eval value=\"\$LTLIB$uppername\"
5632 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
5633 else
5636 else
5637 found_dir=
5638 found_la=
5639 found_so=
5640 found_a=
5641 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
5642 if test -n "$acl_shlibext"; then
5643 shrext=".$acl_shlibext" # typically: shrext=.so
5644 else
5645 shrext=
5647 if test $use_additional = yes; then
5648 dir="$additional_libdir"
5649 if test -n "$acl_shlibext"; then
5650 if test -f "$dir/$libname$shrext"; then
5651 found_dir="$dir"
5652 found_so="$dir/$libname$shrext"
5653 else
5654 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5655 ver=`(cd "$dir" && \
5656 for f in "$libname$shrext".*; do echo "$f"; done \
5657 | sed -e "s,^$libname$shrext\\\\.,," \
5658 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5659 | sed 1q ) 2>/dev/null`
5660 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5661 found_dir="$dir"
5662 found_so="$dir/$libname$shrext.$ver"
5664 else
5665 eval library_names=\"$acl_library_names_spec\"
5666 for f in $library_names; do
5667 if test -f "$dir/$f"; then
5668 found_dir="$dir"
5669 found_so="$dir/$f"
5670 break
5672 done
5676 if test "X$found_dir" = "X"; then
5677 if test -f "$dir/$libname.$acl_libext"; then
5678 found_dir="$dir"
5679 found_a="$dir/$libname.$acl_libext"
5682 if test "X$found_dir" != "X"; then
5683 if test -f "$dir/$libname.la"; then
5684 found_la="$dir/$libname.la"
5688 if test "X$found_dir" = "X"; then
5689 for x in $LDFLAGS $LTLIBICONV; do
5691 acl_save_prefix="$prefix"
5692 prefix="$acl_final_prefix"
5693 acl_save_exec_prefix="$exec_prefix"
5694 exec_prefix="$acl_final_exec_prefix"
5695 eval x=\"$x\"
5696 exec_prefix="$acl_save_exec_prefix"
5697 prefix="$acl_save_prefix"
5699 case "$x" in
5700 -L*)
5701 dir=`echo "X$x" | sed -e 's/^X-L//'`
5702 if test -n "$acl_shlibext"; then
5703 if test -f "$dir/$libname$shrext"; then
5704 found_dir="$dir"
5705 found_so="$dir/$libname$shrext"
5706 else
5707 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
5708 ver=`(cd "$dir" && \
5709 for f in "$libname$shrext".*; do echo "$f"; done \
5710 | sed -e "s,^$libname$shrext\\\\.,," \
5711 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
5712 | sed 1q ) 2>/dev/null`
5713 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
5714 found_dir="$dir"
5715 found_so="$dir/$libname$shrext.$ver"
5717 else
5718 eval library_names=\"$acl_library_names_spec\"
5719 for f in $library_names; do
5720 if test -f "$dir/$f"; then
5721 found_dir="$dir"
5722 found_so="$dir/$f"
5723 break
5725 done
5729 if test "X$found_dir" = "X"; then
5730 if test -f "$dir/$libname.$acl_libext"; then
5731 found_dir="$dir"
5732 found_a="$dir/$libname.$acl_libext"
5735 if test "X$found_dir" != "X"; then
5736 if test -f "$dir/$libname.la"; then
5737 found_la="$dir/$libname.la"
5741 esac
5742 if test "X$found_dir" != "X"; then
5743 break
5745 done
5747 if test "X$found_dir" != "X"; then
5748 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
5749 if test "X$found_so" != "X"; then
5750 if test "$enable_rpath" = no \
5751 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
5752 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
5753 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5754 else
5755 haveit=
5756 for x in $ltrpathdirs; do
5757 if test "X$x" = "X$found_dir"; then
5758 haveit=yes
5759 break
5761 done
5762 if test -z "$haveit"; then
5763 ltrpathdirs="$ltrpathdirs $found_dir"
5765 if test "$acl_hardcode_direct" = yes; then
5766 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5767 else
5768 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
5769 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5770 haveit=
5771 for x in $rpathdirs; do
5772 if test "X$x" = "X$found_dir"; then
5773 haveit=yes
5774 break
5776 done
5777 if test -z "$haveit"; then
5778 rpathdirs="$rpathdirs $found_dir"
5780 else
5781 haveit=
5782 for x in $LDFLAGS $LIBICONV; do
5784 acl_save_prefix="$prefix"
5785 prefix="$acl_final_prefix"
5786 acl_save_exec_prefix="$exec_prefix"
5787 exec_prefix="$acl_final_exec_prefix"
5788 eval x=\"$x\"
5789 exec_prefix="$acl_save_exec_prefix"
5790 prefix="$acl_save_prefix"
5792 if test "X$x" = "X-L$found_dir"; then
5793 haveit=yes
5794 break
5796 done
5797 if test -z "$haveit"; then
5798 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
5800 if test "$acl_hardcode_minus_L" != no; then
5801 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
5802 else
5803 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5808 else
5809 if test "X$found_a" != "X"; then
5810 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
5811 else
5812 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
5815 additional_includedir=
5816 case "$found_dir" in
5817 */$acl_libdirstem | */$acl_libdirstem/)
5818 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
5819 if test "$name" = 'iconv'; then
5820 LIBICONV_PREFIX="$basedir"
5822 additional_includedir="$basedir/include"
5824 */$acl_libdirstem2 | */$acl_libdirstem2/)
5825 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
5826 if test "$name" = 'iconv'; then
5827 LIBICONV_PREFIX="$basedir"
5829 additional_includedir="$basedir/include"
5831 esac
5832 if test "X$additional_includedir" != "X"; then
5833 if test "X$additional_includedir" != "X/usr/include"; then
5834 haveit=
5835 if test "X$additional_includedir" = "X/usr/local/include"; then
5836 if test -n "$GCC"; then
5837 case $host_os in
5838 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5839 esac
5842 if test -z "$haveit"; then
5843 for x in $CPPFLAGS $INCICONV; do
5845 acl_save_prefix="$prefix"
5846 prefix="$acl_final_prefix"
5847 acl_save_exec_prefix="$exec_prefix"
5848 exec_prefix="$acl_final_exec_prefix"
5849 eval x=\"$x\"
5850 exec_prefix="$acl_save_exec_prefix"
5851 prefix="$acl_save_prefix"
5853 if test "X$x" = "X-I$additional_includedir"; then
5854 haveit=yes
5855 break
5857 done
5858 if test -z "$haveit"; then
5859 if test -d "$additional_includedir"; then
5860 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
5866 if test -n "$found_la"; then
5867 save_libdir="$libdir"
5868 case "$found_la" in
5869 */* | *\\*) . "$found_la" ;;
5870 *) . "./$found_la" ;;
5871 esac
5872 libdir="$save_libdir"
5873 for dep in $dependency_libs; do
5874 case "$dep" in
5875 -L*)
5876 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
5877 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
5878 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
5879 haveit=
5880 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
5881 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
5882 if test -n "$GCC"; then
5883 case $host_os in
5884 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
5885 esac
5888 if test -z "$haveit"; then
5889 haveit=
5890 for x in $LDFLAGS $LIBICONV; do
5892 acl_save_prefix="$prefix"
5893 prefix="$acl_final_prefix"
5894 acl_save_exec_prefix="$exec_prefix"
5895 exec_prefix="$acl_final_exec_prefix"
5896 eval x=\"$x\"
5897 exec_prefix="$acl_save_exec_prefix"
5898 prefix="$acl_save_prefix"
5900 if test "X$x" = "X-L$additional_libdir"; then
5901 haveit=yes
5902 break
5904 done
5905 if test -z "$haveit"; then
5906 if test -d "$additional_libdir"; then
5907 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
5910 haveit=
5911 for x in $LDFLAGS $LTLIBICONV; do
5913 acl_save_prefix="$prefix"
5914 prefix="$acl_final_prefix"
5915 acl_save_exec_prefix="$exec_prefix"
5916 exec_prefix="$acl_final_exec_prefix"
5917 eval x=\"$x\"
5918 exec_prefix="$acl_save_exec_prefix"
5919 prefix="$acl_save_prefix"
5921 if test "X$x" = "X-L$additional_libdir"; then
5922 haveit=yes
5923 break
5925 done
5926 if test -z "$haveit"; then
5927 if test -d "$additional_libdir"; then
5928 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
5934 -R*)
5935 dir=`echo "X$dep" | sed -e 's/^X-R//'`
5936 if test "$enable_rpath" != no; then
5937 haveit=
5938 for x in $rpathdirs; do
5939 if test "X$x" = "X$dir"; then
5940 haveit=yes
5941 break
5943 done
5944 if test -z "$haveit"; then
5945 rpathdirs="$rpathdirs $dir"
5947 haveit=
5948 for x in $ltrpathdirs; do
5949 if test "X$x" = "X$dir"; then
5950 haveit=yes
5951 break
5953 done
5954 if test -z "$haveit"; then
5955 ltrpathdirs="$ltrpathdirs $dir"
5959 -l*)
5960 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
5962 *.la)
5963 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
5966 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
5967 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
5969 esac
5970 done
5972 else
5973 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
5974 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
5978 done
5979 done
5980 if test "X$rpathdirs" != "X"; then
5981 if test -n "$acl_hardcode_libdir_separator"; then
5982 alldirs=
5983 for found_dir in $rpathdirs; do
5984 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
5985 done
5986 acl_save_libdir="$libdir"
5987 libdir="$alldirs"
5988 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5989 libdir="$acl_save_libdir"
5990 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5991 else
5992 for found_dir in $rpathdirs; do
5993 acl_save_libdir="$libdir"
5994 libdir="$found_dir"
5995 eval flag=\"$acl_hardcode_libdir_flag_spec\"
5996 libdir="$acl_save_libdir"
5997 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
5998 done
6001 if test "X$ltrpathdirs" != "X"; then
6002 for found_dir in $ltrpathdirs; do
6003 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
6004 done
6037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5
6038 $as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; }
6039 if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then :
6040 $as_echo_n "(cached) " >&6
6041 else
6042 gt_save_LIBS="$LIBS"
6043 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6046 #include <CoreFoundation/CFPreferences.h>
6048 main ()
6050 CFPreferencesCopyAppValue(NULL, NULL)
6052 return 0;
6054 _ACEOF
6055 if ac_fn_c_try_link "$LINENO"; then :
6056 gt_cv_func_CFPreferencesCopyAppValue=yes
6057 else
6058 gt_cv_func_CFPreferencesCopyAppValue=no
6060 rm -f core conftest.err conftest.$ac_objext \
6061 conftest$ac_exeext conftest.$ac_ext
6062 LIBS="$gt_save_LIBS"
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5
6065 $as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; }
6066 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then
6068 $as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h
6071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5
6072 $as_echo_n "checking for CFLocaleCopyCurrent... " >&6; }
6073 if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then :
6074 $as_echo_n "(cached) " >&6
6075 else
6076 gt_save_LIBS="$LIBS"
6077 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation"
6078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6079 /* end confdefs.h. */
6080 #include <CoreFoundation/CFLocale.h>
6082 main ()
6084 CFLocaleCopyCurrent();
6086 return 0;
6088 _ACEOF
6089 if ac_fn_c_try_link "$LINENO"; then :
6090 gt_cv_func_CFLocaleCopyCurrent=yes
6091 else
6092 gt_cv_func_CFLocaleCopyCurrent=no
6094 rm -f core conftest.err conftest.$ac_objext \
6095 conftest$ac_exeext conftest.$ac_ext
6096 LIBS="$gt_save_LIBS"
6098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5
6099 $as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; }
6100 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6102 $as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h
6105 INTL_MACOSX_LIBS=
6106 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then
6107 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation"
6115 LIBINTL=
6116 LTLIBINTL=
6117 POSUB=
6119 case " $gt_needs " in
6120 *" need-formatstring-macros "*) gt_api_version=3 ;;
6121 *" need-ngettext "*) gt_api_version=2 ;;
6122 *) gt_api_version=1 ;;
6123 esac
6124 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc"
6125 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl"
6127 if test "$USE_NLS" = "yes"; then
6128 gt_use_preinstalled_gnugettext=no
6131 if test $gt_api_version -ge 3; then
6132 gt_revision_test_code='
6133 #ifndef __GNU_GETTEXT_SUPPORTED_REVISION
6134 #define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1)
6135 #endif
6136 typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1];
6138 else
6139 gt_revision_test_code=
6141 if test $gt_api_version -ge 2; then
6142 gt_expression_test_code=' + * ngettext ("", "", 0)'
6143 else
6144 gt_expression_test_code=
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5
6148 $as_echo_n "checking for GNU gettext in libc... " >&6; }
6149 if eval \${$gt_func_gnugettext_libc+:} false; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6153 /* end confdefs.h. */
6154 #include <libintl.h>
6155 $gt_revision_test_code
6156 extern int _nl_msg_cat_cntr;
6157 extern int *_nl_domain_bindings;
6159 main ()
6161 bindtextdomain ("", "");
6162 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings
6164 return 0;
6166 _ACEOF
6167 if ac_fn_c_try_link "$LINENO"; then :
6168 eval "$gt_func_gnugettext_libc=yes"
6169 else
6170 eval "$gt_func_gnugettext_libc=no"
6172 rm -f core conftest.err conftest.$ac_objext \
6173 conftest$ac_exeext conftest.$ac_ext
6175 eval ac_res=\$$gt_func_gnugettext_libc
6176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6177 $as_echo "$ac_res" >&6; }
6179 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then
6185 am_save_CPPFLAGS="$CPPFLAGS"
6187 for element in $INCICONV; do
6188 haveit=
6189 for x in $CPPFLAGS; do
6191 acl_save_prefix="$prefix"
6192 prefix="$acl_final_prefix"
6193 acl_save_exec_prefix="$exec_prefix"
6194 exec_prefix="$acl_final_exec_prefix"
6195 eval x=\"$x\"
6196 exec_prefix="$acl_save_exec_prefix"
6197 prefix="$acl_save_prefix"
6199 if test "X$x" = "X$element"; then
6200 haveit=yes
6201 break
6203 done
6204 if test -z "$haveit"; then
6205 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
6207 done
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
6211 $as_echo_n "checking for iconv... " >&6; }
6212 if ${am_cv_func_iconv+:} false; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6216 am_cv_func_iconv="no, consider installing GNU libiconv"
6217 am_cv_lib_iconv=no
6218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6219 /* end confdefs.h. */
6220 #include <stdlib.h>
6221 #include <iconv.h>
6223 main ()
6225 iconv_t cd = iconv_open("","");
6226 iconv(cd,NULL,NULL,NULL,NULL);
6227 iconv_close(cd);
6229 return 0;
6231 _ACEOF
6232 if ac_fn_c_try_link "$LINENO"; then :
6233 am_cv_func_iconv=yes
6235 rm -f core conftest.err conftest.$ac_objext \
6236 conftest$ac_exeext conftest.$ac_ext
6237 if test "$am_cv_func_iconv" != yes; then
6238 am_save_LIBS="$LIBS"
6239 LIBS="$LIBS $LIBICONV"
6240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6241 /* end confdefs.h. */
6242 #include <stdlib.h>
6243 #include <iconv.h>
6245 main ()
6247 iconv_t cd = iconv_open("","");
6248 iconv(cd,NULL,NULL,NULL,NULL);
6249 iconv_close(cd);
6251 return 0;
6253 _ACEOF
6254 if ac_fn_c_try_link "$LINENO"; then :
6255 am_cv_lib_iconv=yes
6256 am_cv_func_iconv=yes
6258 rm -f core conftest.err conftest.$ac_objext \
6259 conftest$ac_exeext conftest.$ac_ext
6260 LIBS="$am_save_LIBS"
6264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
6265 $as_echo "$am_cv_func_iconv" >&6; }
6266 if test "$am_cv_func_iconv" = yes; then
6267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5
6268 $as_echo_n "checking for working iconv... " >&6; }
6269 if ${am_cv_func_iconv_works+:} false; then :
6270 $as_echo_n "(cached) " >&6
6271 else
6273 am_save_LIBS="$LIBS"
6274 if test $am_cv_lib_iconv = yes; then
6275 LIBS="$LIBS $LIBICONV"
6277 if test "$cross_compiling" = yes; then :
6278 case "$host_os" in
6279 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;;
6280 *) am_cv_func_iconv_works="guessing yes" ;;
6281 esac
6282 else
6283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6284 /* end confdefs.h. */
6286 #include <iconv.h>
6287 #include <string.h>
6288 int main ()
6290 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful
6291 returns. */
6293 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8");
6294 if (cd_utf8_to_88591 != (iconv_t)(-1))
6296 static const char input[] = "\342\202\254"; /* EURO SIGN */
6297 char buf[10];
6298 const char *inptr = input;
6299 size_t inbytesleft = strlen (input);
6300 char *outptr = buf;
6301 size_t outbytesleft = sizeof (buf);
6302 size_t res = iconv (cd_utf8_to_88591,
6303 (char **) &inptr, &inbytesleft,
6304 &outptr, &outbytesleft);
6305 if (res == 0)
6306 return 1;
6309 /* Test against Solaris 10 bug: Failures are not distinguishable from
6310 successful returns. */
6312 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646");
6313 if (cd_ascii_to_88591 != (iconv_t)(-1))
6315 static const char input[] = "\263";
6316 char buf[10];
6317 const char *inptr = input;
6318 size_t inbytesleft = strlen (input);
6319 char *outptr = buf;
6320 size_t outbytesleft = sizeof (buf);
6321 size_t res = iconv (cd_ascii_to_88591,
6322 (char **) &inptr, &inbytesleft,
6323 &outptr, &outbytesleft);
6324 if (res == 0)
6325 return 1;
6328 #if 0 /* This bug could be worked around by the caller. */
6329 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */
6331 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591");
6332 if (cd_88591_to_utf8 != (iconv_t)(-1))
6334 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337";
6335 char buf[50];
6336 const char *inptr = input;
6337 size_t inbytesleft = strlen (input);
6338 char *outptr = buf;
6339 size_t outbytesleft = sizeof (buf);
6340 size_t res = iconv (cd_88591_to_utf8,
6341 (char **) &inptr, &inbytesleft,
6342 &outptr, &outbytesleft);
6343 if ((int)res > 0)
6344 return 1;
6347 #endif
6348 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is
6349 provided. */
6350 if (/* Try standardized names. */
6351 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1)
6352 /* Try IRIX, OSF/1 names. */
6353 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1)
6354 /* Try AIX names. */
6355 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1)
6356 /* Try HP-UX names. */
6357 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1))
6358 return 1;
6359 return 0;
6361 _ACEOF
6362 if ac_fn_c_try_run "$LINENO"; then :
6363 am_cv_func_iconv_works=yes
6364 else
6365 am_cv_func_iconv_works=no
6367 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6368 conftest.$ac_objext conftest.beam conftest.$ac_ext
6371 LIBS="$am_save_LIBS"
6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5
6375 $as_echo "$am_cv_func_iconv_works" >&6; }
6376 case "$am_cv_func_iconv_works" in
6377 *no) am_func_iconv=no am_cv_lib_iconv=no ;;
6378 *) am_func_iconv=yes ;;
6379 esac
6380 else
6381 am_func_iconv=no am_cv_lib_iconv=no
6383 if test "$am_func_iconv" = yes; then
6385 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
6388 if test "$am_cv_lib_iconv" = yes; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
6390 $as_echo_n "checking how to link with libiconv... " >&6; }
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
6392 $as_echo "$LIBICONV" >&6; }
6393 else
6394 CPPFLAGS="$am_save_CPPFLAGS"
6395 LIBICONV=
6396 LTLIBICONV=
6409 use_additional=yes
6411 acl_save_prefix="$prefix"
6412 prefix="$acl_final_prefix"
6413 acl_save_exec_prefix="$exec_prefix"
6414 exec_prefix="$acl_final_exec_prefix"
6416 eval additional_includedir=\"$includedir\"
6417 eval additional_libdir=\"$libdir\"
6419 exec_prefix="$acl_save_exec_prefix"
6420 prefix="$acl_save_prefix"
6423 # Check whether --with-libintl-prefix was given.
6424 if test "${with_libintl_prefix+set}" = set; then :
6425 withval=$with_libintl_prefix;
6426 if test "X$withval" = "Xno"; then
6427 use_additional=no
6428 else
6429 if test "X$withval" = "X"; then
6431 acl_save_prefix="$prefix"
6432 prefix="$acl_final_prefix"
6433 acl_save_exec_prefix="$exec_prefix"
6434 exec_prefix="$acl_final_exec_prefix"
6436 eval additional_includedir=\"$includedir\"
6437 eval additional_libdir=\"$libdir\"
6439 exec_prefix="$acl_save_exec_prefix"
6440 prefix="$acl_save_prefix"
6442 else
6443 additional_includedir="$withval/include"
6444 additional_libdir="$withval/$acl_libdirstem"
6445 if test "$acl_libdirstem2" != "$acl_libdirstem" \
6446 && ! test -d "$withval/$acl_libdirstem"; then
6447 additional_libdir="$withval/$acl_libdirstem2"
6454 LIBINTL=
6455 LTLIBINTL=
6456 INCINTL=
6457 LIBINTL_PREFIX=
6458 HAVE_LIBINTL=
6459 rpathdirs=
6460 ltrpathdirs=
6461 names_already_handled=
6462 names_next_round='intl '
6463 while test -n "$names_next_round"; do
6464 names_this_round="$names_next_round"
6465 names_next_round=
6466 for name in $names_this_round; do
6467 already_handled=
6468 for n in $names_already_handled; do
6469 if test "$n" = "$name"; then
6470 already_handled=yes
6471 break
6473 done
6474 if test -z "$already_handled"; then
6475 names_already_handled="$names_already_handled $name"
6476 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
6477 eval value=\"\$HAVE_LIB$uppername\"
6478 if test -n "$value"; then
6479 if test "$value" = yes; then
6480 eval value=\"\$LIB$uppername\"
6481 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value"
6482 eval value=\"\$LTLIB$uppername\"
6483 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value"
6484 else
6487 else
6488 found_dir=
6489 found_la=
6490 found_so=
6491 found_a=
6492 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name
6493 if test -n "$acl_shlibext"; then
6494 shrext=".$acl_shlibext" # typically: shrext=.so
6495 else
6496 shrext=
6498 if test $use_additional = yes; then
6499 dir="$additional_libdir"
6500 if test -n "$acl_shlibext"; then
6501 if test -f "$dir/$libname$shrext"; then
6502 found_dir="$dir"
6503 found_so="$dir/$libname$shrext"
6504 else
6505 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6506 ver=`(cd "$dir" && \
6507 for f in "$libname$shrext".*; do echo "$f"; done \
6508 | sed -e "s,^$libname$shrext\\\\.,," \
6509 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6510 | sed 1q ) 2>/dev/null`
6511 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6512 found_dir="$dir"
6513 found_so="$dir/$libname$shrext.$ver"
6515 else
6516 eval library_names=\"$acl_library_names_spec\"
6517 for f in $library_names; do
6518 if test -f "$dir/$f"; then
6519 found_dir="$dir"
6520 found_so="$dir/$f"
6521 break
6523 done
6527 if test "X$found_dir" = "X"; then
6528 if test -f "$dir/$libname.$acl_libext"; then
6529 found_dir="$dir"
6530 found_a="$dir/$libname.$acl_libext"
6533 if test "X$found_dir" != "X"; then
6534 if test -f "$dir/$libname.la"; then
6535 found_la="$dir/$libname.la"
6539 if test "X$found_dir" = "X"; then
6540 for x in $LDFLAGS $LTLIBINTL; do
6542 acl_save_prefix="$prefix"
6543 prefix="$acl_final_prefix"
6544 acl_save_exec_prefix="$exec_prefix"
6545 exec_prefix="$acl_final_exec_prefix"
6546 eval x=\"$x\"
6547 exec_prefix="$acl_save_exec_prefix"
6548 prefix="$acl_save_prefix"
6550 case "$x" in
6551 -L*)
6552 dir=`echo "X$x" | sed -e 's/^X-L//'`
6553 if test -n "$acl_shlibext"; then
6554 if test -f "$dir/$libname$shrext"; then
6555 found_dir="$dir"
6556 found_so="$dir/$libname$shrext"
6557 else
6558 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
6559 ver=`(cd "$dir" && \
6560 for f in "$libname$shrext".*; do echo "$f"; done \
6561 | sed -e "s,^$libname$shrext\\\\.,," \
6562 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
6563 | sed 1q ) 2>/dev/null`
6564 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
6565 found_dir="$dir"
6566 found_so="$dir/$libname$shrext.$ver"
6568 else
6569 eval library_names=\"$acl_library_names_spec\"
6570 for f in $library_names; do
6571 if test -f "$dir/$f"; then
6572 found_dir="$dir"
6573 found_so="$dir/$f"
6574 break
6576 done
6580 if test "X$found_dir" = "X"; then
6581 if test -f "$dir/$libname.$acl_libext"; then
6582 found_dir="$dir"
6583 found_a="$dir/$libname.$acl_libext"
6586 if test "X$found_dir" != "X"; then
6587 if test -f "$dir/$libname.la"; then
6588 found_la="$dir/$libname.la"
6592 esac
6593 if test "X$found_dir" != "X"; then
6594 break
6596 done
6598 if test "X$found_dir" != "X"; then
6599 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name"
6600 if test "X$found_so" != "X"; then
6601 if test "$enable_rpath" = no \
6602 || test "X$found_dir" = "X/usr/$acl_libdirstem" \
6603 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
6604 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6605 else
6606 haveit=
6607 for x in $ltrpathdirs; do
6608 if test "X$x" = "X$found_dir"; then
6609 haveit=yes
6610 break
6612 done
6613 if test -z "$haveit"; then
6614 ltrpathdirs="$ltrpathdirs $found_dir"
6616 if test "$acl_hardcode_direct" = yes; then
6617 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6618 else
6619 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
6620 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6621 haveit=
6622 for x in $rpathdirs; do
6623 if test "X$x" = "X$found_dir"; then
6624 haveit=yes
6625 break
6627 done
6628 if test -z "$haveit"; then
6629 rpathdirs="$rpathdirs $found_dir"
6631 else
6632 haveit=
6633 for x in $LDFLAGS $LIBINTL; do
6635 acl_save_prefix="$prefix"
6636 prefix="$acl_final_prefix"
6637 acl_save_exec_prefix="$exec_prefix"
6638 exec_prefix="$acl_final_exec_prefix"
6639 eval x=\"$x\"
6640 exec_prefix="$acl_save_exec_prefix"
6641 prefix="$acl_save_prefix"
6643 if test "X$x" = "X-L$found_dir"; then
6644 haveit=yes
6645 break
6647 done
6648 if test -z "$haveit"; then
6649 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir"
6651 if test "$acl_hardcode_minus_L" != no; then
6652 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so"
6653 else
6654 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6659 else
6660 if test "X$found_a" != "X"; then
6661 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a"
6662 else
6663 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name"
6666 additional_includedir=
6667 case "$found_dir" in
6668 */$acl_libdirstem | */$acl_libdirstem/)
6669 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
6670 if test "$name" = 'intl'; then
6671 LIBINTL_PREFIX="$basedir"
6673 additional_includedir="$basedir/include"
6675 */$acl_libdirstem2 | */$acl_libdirstem2/)
6676 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
6677 if test "$name" = 'intl'; then
6678 LIBINTL_PREFIX="$basedir"
6680 additional_includedir="$basedir/include"
6682 esac
6683 if test "X$additional_includedir" != "X"; then
6684 if test "X$additional_includedir" != "X/usr/include"; then
6685 haveit=
6686 if test "X$additional_includedir" = "X/usr/local/include"; then
6687 if test -n "$GCC"; then
6688 case $host_os in
6689 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6690 esac
6693 if test -z "$haveit"; then
6694 for x in $CPPFLAGS $INCINTL; do
6696 acl_save_prefix="$prefix"
6697 prefix="$acl_final_prefix"
6698 acl_save_exec_prefix="$exec_prefix"
6699 exec_prefix="$acl_final_exec_prefix"
6700 eval x=\"$x\"
6701 exec_prefix="$acl_save_exec_prefix"
6702 prefix="$acl_save_prefix"
6704 if test "X$x" = "X-I$additional_includedir"; then
6705 haveit=yes
6706 break
6708 done
6709 if test -z "$haveit"; then
6710 if test -d "$additional_includedir"; then
6711 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir"
6717 if test -n "$found_la"; then
6718 save_libdir="$libdir"
6719 case "$found_la" in
6720 */* | *\\*) . "$found_la" ;;
6721 *) . "./$found_la" ;;
6722 esac
6723 libdir="$save_libdir"
6724 for dep in $dependency_libs; do
6725 case "$dep" in
6726 -L*)
6727 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
6728 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
6729 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
6730 haveit=
6731 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
6732 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
6733 if test -n "$GCC"; then
6734 case $host_os in
6735 linux* | gnu* | k*bsd*-gnu) haveit=yes;;
6736 esac
6739 if test -z "$haveit"; then
6740 haveit=
6741 for x in $LDFLAGS $LIBINTL; do
6743 acl_save_prefix="$prefix"
6744 prefix="$acl_final_prefix"
6745 acl_save_exec_prefix="$exec_prefix"
6746 exec_prefix="$acl_final_exec_prefix"
6747 eval x=\"$x\"
6748 exec_prefix="$acl_save_exec_prefix"
6749 prefix="$acl_save_prefix"
6751 if test "X$x" = "X-L$additional_libdir"; then
6752 haveit=yes
6753 break
6755 done
6756 if test -z "$haveit"; then
6757 if test -d "$additional_libdir"; then
6758 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir"
6761 haveit=
6762 for x in $LDFLAGS $LTLIBINTL; do
6764 acl_save_prefix="$prefix"
6765 prefix="$acl_final_prefix"
6766 acl_save_exec_prefix="$exec_prefix"
6767 exec_prefix="$acl_final_exec_prefix"
6768 eval x=\"$x\"
6769 exec_prefix="$acl_save_exec_prefix"
6770 prefix="$acl_save_prefix"
6772 if test "X$x" = "X-L$additional_libdir"; then
6773 haveit=yes
6774 break
6776 done
6777 if test -z "$haveit"; then
6778 if test -d "$additional_libdir"; then
6779 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir"
6785 -R*)
6786 dir=`echo "X$dep" | sed -e 's/^X-R//'`
6787 if test "$enable_rpath" != no; then
6788 haveit=
6789 for x in $rpathdirs; do
6790 if test "X$x" = "X$dir"; then
6791 haveit=yes
6792 break
6794 done
6795 if test -z "$haveit"; then
6796 rpathdirs="$rpathdirs $dir"
6798 haveit=
6799 for x in $ltrpathdirs; do
6800 if test "X$x" = "X$dir"; then
6801 haveit=yes
6802 break
6804 done
6805 if test -z "$haveit"; then
6806 ltrpathdirs="$ltrpathdirs $dir"
6810 -l*)
6811 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
6813 *.la)
6814 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
6817 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep"
6818 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep"
6820 esac
6821 done
6823 else
6824 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name"
6825 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name"
6829 done
6830 done
6831 if test "X$rpathdirs" != "X"; then
6832 if test -n "$acl_hardcode_libdir_separator"; then
6833 alldirs=
6834 for found_dir in $rpathdirs; do
6835 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
6836 done
6837 acl_save_libdir="$libdir"
6838 libdir="$alldirs"
6839 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6840 libdir="$acl_save_libdir"
6841 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6842 else
6843 for found_dir in $rpathdirs; do
6844 acl_save_libdir="$libdir"
6845 libdir="$found_dir"
6846 eval flag=\"$acl_hardcode_libdir_flag_spec\"
6847 libdir="$acl_save_libdir"
6848 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag"
6849 done
6852 if test "X$ltrpathdirs" != "X"; then
6853 for found_dir in $ltrpathdirs; do
6854 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir"
6855 done
6863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5
6864 $as_echo_n "checking for GNU gettext in libintl... " >&6; }
6865 if eval \${$gt_func_gnugettext_libintl+:} false; then :
6866 $as_echo_n "(cached) " >&6
6867 else
6868 gt_save_CPPFLAGS="$CPPFLAGS"
6869 CPPFLAGS="$CPPFLAGS $INCINTL"
6870 gt_save_LIBS="$LIBS"
6871 LIBS="$LIBS $LIBINTL"
6872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6873 /* end confdefs.h. */
6874 #include <libintl.h>
6875 $gt_revision_test_code
6876 extern int _nl_msg_cat_cntr;
6877 extern
6878 #ifdef __cplusplus
6880 #endif
6881 const char *_nl_expand_alias (const char *);
6883 main ()
6885 bindtextdomain ("", "");
6886 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6888 return 0;
6890 _ACEOF
6891 if ac_fn_c_try_link "$LINENO"; then :
6892 eval "$gt_func_gnugettext_libintl=yes"
6893 else
6894 eval "$gt_func_gnugettext_libintl=no"
6896 rm -f core conftest.err conftest.$ac_objext \
6897 conftest$ac_exeext conftest.$ac_ext
6898 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then
6899 LIBS="$LIBS $LIBICONV"
6900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6901 /* end confdefs.h. */
6902 #include <libintl.h>
6903 $gt_revision_test_code
6904 extern int _nl_msg_cat_cntr;
6905 extern
6906 #ifdef __cplusplus
6908 #endif
6909 const char *_nl_expand_alias (const char *);
6911 main ()
6913 bindtextdomain ("", "");
6914 return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")
6916 return 0;
6918 _ACEOF
6919 if ac_fn_c_try_link "$LINENO"; then :
6920 LIBINTL="$LIBINTL $LIBICONV"
6921 LTLIBINTL="$LTLIBINTL $LTLIBICONV"
6922 eval "$gt_func_gnugettext_libintl=yes"
6925 rm -f core conftest.err conftest.$ac_objext \
6926 conftest$ac_exeext conftest.$ac_ext
6928 CPPFLAGS="$gt_save_CPPFLAGS"
6929 LIBS="$gt_save_LIBS"
6931 eval ac_res=\$$gt_func_gnugettext_libintl
6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
6933 $as_echo "$ac_res" >&6; }
6936 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \
6937 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \
6938 && test "$PACKAGE" != gettext-runtime \
6939 && test "$PACKAGE" != gettext-tools; }; then
6940 gt_use_preinstalled_gnugettext=yes
6941 else
6942 LIBINTL=
6943 LTLIBINTL=
6944 INCINTL=
6949 if test -n "$INTL_MACOSX_LIBS"; then
6950 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6951 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6952 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS"
6953 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS"
6957 if test "$gt_use_preinstalled_gnugettext" = "yes" \
6958 || test "$nls_cv_use_gnu_gettext" = "yes"; then
6960 $as_echo "#define ENABLE_NLS 1" >>confdefs.h
6962 else
6963 USE_NLS=no
6967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5
6968 $as_echo_n "checking whether to use NLS... " >&6; }
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5
6970 $as_echo "$USE_NLS" >&6; }
6971 if test "$USE_NLS" = "yes"; then
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5
6973 $as_echo_n "checking where the gettext function comes from... " >&6; }
6974 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6975 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6976 gt_source="external libintl"
6977 else
6978 gt_source="libc"
6980 else
6981 gt_source="included intl directory"
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5
6984 $as_echo "$gt_source" >&6; }
6987 if test "$USE_NLS" = "yes"; then
6989 if test "$gt_use_preinstalled_gnugettext" = "yes"; then
6990 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5
6992 $as_echo_n "checking how to link with libintl... " >&6; }
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5
6994 $as_echo "$LIBINTL" >&6; }
6996 for element in $INCINTL; do
6997 haveit=
6998 for x in $CPPFLAGS; do
7000 acl_save_prefix="$prefix"
7001 prefix="$acl_final_prefix"
7002 acl_save_exec_prefix="$exec_prefix"
7003 exec_prefix="$acl_final_exec_prefix"
7004 eval x=\"$x\"
7005 exec_prefix="$acl_save_exec_prefix"
7006 prefix="$acl_save_prefix"
7008 if test "X$x" = "X$element"; then
7009 haveit=yes
7010 break
7012 done
7013 if test -z "$haveit"; then
7014 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
7016 done
7021 $as_echo "#define HAVE_GETTEXT 1" >>confdefs.h
7024 $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h
7028 POSUB=po
7033 INTLLIBS="$LIBINTL"
7044 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7046 inttypes.h stdint.h unistd.h
7047 do :
7048 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7052 cat >>confdefs.h <<_ACEOF
7053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 _ACEOF
7058 done
7061 for ac_header in stdint.h stdlib.h
7062 do :
7063 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7064 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7065 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7066 cat >>confdefs.h <<_ACEOF
7067 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7068 _ACEOF
7072 done
7074 for ac_func in strchr strrchr
7075 do :
7076 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
7077 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
7078 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
7079 cat >>confdefs.h <<_ACEOF
7080 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
7081 _ACEOF
7084 done
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
7087 $as_echo_n "checking for working memcmp... " >&6; }
7088 if ${ac_cv_func_memcmp_working+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test "$cross_compiling" = yes; then :
7092 ac_cv_func_memcmp_working=no
7093 else
7094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7095 /* end confdefs.h. */
7096 $ac_includes_default
7098 main ()
7101 /* Some versions of memcmp are not 8-bit clean. */
7102 char c0 = '\100', c1 = '\200', c2 = '\201';
7103 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
7104 return 1;
7106 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
7107 or more and with at least one buffer not starting on a 4-byte boundary.
7108 William Lewis provided this test program. */
7110 char foo[21];
7111 char bar[21];
7112 int i;
7113 for (i = 0; i < 4; i++)
7115 char *a = foo + i;
7116 char *b = bar + i;
7117 strcpy (a, "--------01111111");
7118 strcpy (b, "--------10000000");
7119 if (memcmp (a, b, 16) >= 0)
7120 return 1;
7122 return 0;
7126 return 0;
7128 _ACEOF
7129 if ac_fn_c_try_run "$LINENO"; then :
7130 ac_cv_func_memcmp_working=yes
7131 else
7132 ac_cv_func_memcmp_working=no
7134 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7135 conftest.$ac_objext conftest.beam conftest.$ac_ext
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
7140 $as_echo "$ac_cv_func_memcmp_working" >&6; }
7141 test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
7142 *" memcmp.$ac_objext "* ) ;;
7143 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
7145 esac
7148 for ac_header in stdlib.h
7149 do :
7150 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
7151 if test "x$ac_cv_header_stdlib_h" = xyes; then :
7152 cat >>confdefs.h <<_ACEOF
7153 #define HAVE_STDLIB_H 1
7154 _ACEOF
7158 done
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
7161 $as_echo_n "checking for GNU libc compatible malloc... " >&6; }
7162 if ${ac_cv_func_malloc_0_nonnull+:} false; then :
7163 $as_echo_n "(cached) " >&6
7164 else
7165 if test "$cross_compiling" = yes; then :
7166 ac_cv_func_malloc_0_nonnull=no
7167 else
7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7169 /* end confdefs.h. */
7170 #if defined STDC_HEADERS || defined HAVE_STDLIB_H
7171 # include <stdlib.h>
7172 #else
7173 char *malloc ();
7174 #endif
7177 main ()
7179 return ! malloc (0);
7181 return 0;
7183 _ACEOF
7184 if ac_fn_c_try_run "$LINENO"; then :
7185 ac_cv_func_malloc_0_nonnull=yes
7186 else
7187 ac_cv_func_malloc_0_nonnull=no
7189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7190 conftest.$ac_objext conftest.beam conftest.$ac_ext
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
7195 $as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
7196 if test $ac_cv_func_malloc_0_nonnull = yes; then :
7198 $as_echo "#define HAVE_MALLOC 1" >>confdefs.h
7200 else
7201 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
7203 case " $LIBOBJS " in
7204 *" malloc.$ac_objext "* ) ;;
7205 *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
7207 esac
7210 $as_echo "#define malloc rpl_malloc" >>confdefs.h
7215 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
7216 case $ac_cv_c_uint32_t in #(
7217 no|yes) ;; #(
7220 $as_echo "#define _UINT32_T 1" >>confdefs.h
7223 cat >>confdefs.h <<_ACEOF
7224 #define uint32_t $ac_cv_c_uint32_t
7225 _ACEOF
7227 esac
7231 # Check whether --with-gtk was given.
7232 if test "${with_gtk+set}" = set; then :
7233 withval=$with_gtk; with_gtk=$withval
7234 else
7235 with_gtk=yes
7239 # Check whether --with-sdl was given.
7240 if test "${with_sdl+set}" = set; then :
7241 withval=$with_sdl; with_sdl=$withval
7242 else
7243 with_sdl=yes
7247 if test x"$with_gtk" = "xno" -a x"$with_sdl" = "xno"; then
7248 as_fn_error $? "You cannot disable both SDL and GTK. Rerun with --with-gtk or --with-sdl." "$LINENO" 5
7251 # Check whether --enable-glibtest was given.
7252 if test "${enable_glibtest+set}" = set; then :
7253 enableval=$enable_glibtest;
7254 else
7255 enable_glibtest=yes
7259 pkg_config_args=glib-2.0
7260 for module in . gthread
7262 case "$module" in
7263 gmodule)
7264 pkg_config_args="$pkg_config_args gmodule-2.0"
7266 gmodule-no-export)
7267 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
7269 gobject)
7270 pkg_config_args="$pkg_config_args gobject-2.0"
7272 gthread)
7273 pkg_config_args="$pkg_config_args gthread-2.0"
7275 gio*)
7276 pkg_config_args="$pkg_config_args $module-2.0"
7278 esac
7279 done
7288 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
7289 if test -n "$ac_tool_prefix"; then
7290 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
7291 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
7292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7293 $as_echo_n "checking for $ac_word... " >&6; }
7294 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7295 $as_echo_n "(cached) " >&6
7296 else
7297 case $PKG_CONFIG in
7298 [\\/]* | ?:[\\/]*)
7299 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7303 for as_dir in $PATH
7305 IFS=$as_save_IFS
7306 test -z "$as_dir" && as_dir=.
7307 for ac_exec_ext in '' $ac_executable_extensions; do
7308 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7309 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7311 break 2
7313 done
7314 done
7315 IFS=$as_save_IFS
7318 esac
7320 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7321 if test -n "$PKG_CONFIG"; then
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7323 $as_echo "$PKG_CONFIG" >&6; }
7324 else
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }
7331 if test -z "$ac_cv_path_PKG_CONFIG"; then
7332 ac_pt_PKG_CONFIG=$PKG_CONFIG
7333 # Extract the first word of "pkg-config", so it can be a program name with args.
7334 set dummy pkg-config; ac_word=$2
7335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7336 $as_echo_n "checking for $ac_word... " >&6; }
7337 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
7338 $as_echo_n "(cached) " >&6
7339 else
7340 case $ac_pt_PKG_CONFIG in
7341 [\\/]* | ?:[\\/]*)
7342 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
7345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7346 for as_dir in $PATH
7348 IFS=$as_save_IFS
7349 test -z "$as_dir" && as_dir=.
7350 for ac_exec_ext in '' $ac_executable_extensions; do
7351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7352 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7354 break 2
7356 done
7357 done
7358 IFS=$as_save_IFS
7361 esac
7363 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
7364 if test -n "$ac_pt_PKG_CONFIG"; then
7365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
7366 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
7367 else
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7369 $as_echo "no" >&6; }
7372 if test "x$ac_pt_PKG_CONFIG" = x; then
7373 PKG_CONFIG=""
7374 else
7375 case $cross_compiling:$ac_tool_warned in
7376 yes:)
7377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7379 ac_tool_warned=yes ;;
7380 esac
7381 PKG_CONFIG=$ac_pt_PKG_CONFIG
7383 else
7384 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
7388 if test -n "$PKG_CONFIG"; then
7389 _pkg_min_version=0.16
7390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
7391 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
7392 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7394 $as_echo "yes" >&6; }
7395 else
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }
7398 PKG_CONFIG=""
7402 no_glib=""
7404 if test "x$PKG_CONFIG" = x ; then
7405 no_glib=yes
7406 PKG_CONFIG=no
7409 min_glib_version=2.12.0
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
7411 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
7413 if test x$PKG_CONFIG != xno ; then
7414 ## don't try to run the test against uninstalled libtool libs
7415 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7416 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
7417 enable_glibtest=no
7420 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
7422 else
7423 no_glib=yes
7427 if test x"$no_glib" = x ; then
7428 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
7429 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
7430 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
7431 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
7433 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
7434 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
7435 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
7436 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7437 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
7438 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7439 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
7440 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7441 if test "x$enable_glibtest" = "xyes" ; then
7442 ac_save_CFLAGS="$CFLAGS"
7443 ac_save_LIBS="$LIBS"
7444 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7445 LIBS="$GLIB_LIBS $LIBS"
7446 rm -f conf.glibtest
7447 if test "$cross_compiling" = yes; then :
7448 echo $ac_n "cross compiling; assumed OK... $ac_c"
7449 else
7450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7451 /* end confdefs.h. */
7453 #include <glib.h>
7454 #include <stdio.h>
7455 #include <stdlib.h>
7458 main ()
7460 unsigned int major, minor, micro;
7461 char *tmp_version;
7463 fclose (fopen ("conf.glibtest", "w"));
7465 /* HP/UX 9 (%@#!) writes to sscanf strings */
7466 tmp_version = g_strdup("$min_glib_version");
7467 if (sscanf(tmp_version, "%u.%u.%u", &major, &minor, &micro) != 3) {
7468 printf("%s, bad version string\n", "$min_glib_version");
7469 exit(1);
7472 if ((glib_major_version != $glib_config_major_version) ||
7473 (glib_minor_version != $glib_config_minor_version) ||
7474 (glib_micro_version != $glib_config_micro_version))
7476 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
7477 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
7478 glib_major_version, glib_minor_version, glib_micro_version);
7479 printf ("*** was found! If pkg-config was correct, then it is best\n");
7480 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
7481 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7482 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7483 printf("*** required on your system.\n");
7484 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7485 printf("*** to point to the correct configuration files\n");
7487 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
7488 (glib_minor_version != GLIB_MINOR_VERSION) ||
7489 (glib_micro_version != GLIB_MICRO_VERSION))
7491 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
7492 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
7493 printf("*** library (version %d.%d.%d)\n",
7494 glib_major_version, glib_minor_version, glib_micro_version);
7496 else
7498 if ((glib_major_version > major) ||
7499 ((glib_major_version == major) && (glib_minor_version > minor)) ||
7500 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
7502 return 0;
7504 else
7506 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
7507 glib_major_version, glib_minor_version, glib_micro_version);
7508 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
7509 major, minor, micro);
7510 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
7511 printf("***\n");
7512 printf("*** If you have already installed a sufficiently new version, this error\n");
7513 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7514 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7515 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
7516 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7517 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7518 printf("*** so that the correct libraries are found at run-time))\n");
7521 return 1;
7524 _ACEOF
7525 if ac_fn_c_try_run "$LINENO"; then :
7527 else
7528 no_glib=yes
7530 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7531 conftest.$ac_objext conftest.beam conftest.$ac_ext
7534 CFLAGS="$ac_save_CFLAGS"
7535 LIBS="$ac_save_LIBS"
7538 if test "x$no_glib" = x ; then
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
7540 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
7542 else
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7544 $as_echo "no" >&6; }
7545 if test "$PKG_CONFIG" = "no" ; then
7546 echo "*** A new enough version of pkg-config was not found."
7547 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
7548 else
7549 if test -f conf.glibtest ; then
7551 else
7552 echo "*** Could not run GLIB test program, checking why..."
7553 ac_save_CFLAGS="$CFLAGS"
7554 ac_save_LIBS="$LIBS"
7555 CFLAGS="$CFLAGS $GLIB_CFLAGS"
7556 LIBS="$LIBS $GLIB_LIBS"
7557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7558 /* end confdefs.h. */
7560 #include <glib.h>
7561 #include <stdio.h>
7564 main ()
7566 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
7568 return 0;
7570 _ACEOF
7571 if ac_fn_c_try_link "$LINENO"; then :
7572 echo "*** The test program compiled, but did not run. This usually means"
7573 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
7574 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
7575 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
7576 echo "*** to the installed location Also, make sure you have run ldconfig if that"
7577 echo "*** is required on your system"
7578 echo "***"
7579 echo "*** If you have an old version installed, it is best to remove it, although"
7580 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
7581 else
7582 echo "*** The test program failed to compile or link. See the file config.log for the"
7583 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
7585 rm -f core conftest.err conftest.$ac_objext \
7586 conftest$ac_exeext conftest.$ac_ext
7587 CFLAGS="$ac_save_CFLAGS"
7588 LIBS="$ac_save_LIBS"
7591 GLIB_CFLAGS=""
7592 GLIB_LIBS=""
7593 GLIB_GENMARSHAL=""
7594 GOBJECT_QUERY=""
7595 GLIB_MKENUMS=""
7596 GLIB_COMPILE_RESOURCES=""
7597 as_fn_error $? "Test for GLIB failed. See the file 'INSTALL' for help." "$LINENO" 5
7605 rm -f conf.glibtest
7608 if test x"$with_gtk" = "xyes"; then
7609 GTK_TRUE=
7610 GTK_FALSE='#'
7611 else
7612 GTK_TRUE='#'
7613 GTK_FALSE=
7616 if test x"$with_gtk" = "xyes" ; then
7618 $as_echo "#define HAVE_GTK /**/" >>confdefs.h
7620 # Check whether --enable-gtktest was given.
7621 if test "${enable_gtktest+set}" = set; then :
7622 enableval=$enable_gtktest;
7623 else
7624 enable_gtktest=yes
7628 pkg_config_args=gtk+-2.0
7629 for module in .
7631 case "$module" in
7632 gthread)
7633 pkg_config_args="$pkg_config_args gthread-2.0"
7635 esac
7636 done
7638 no_gtk=""
7640 # Extract the first word of "pkg-config", so it can be a program name with args.
7641 set dummy pkg-config; ac_word=$2
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7643 $as_echo_n "checking for $ac_word... " >&6; }
7644 if ${ac_cv_path_PKG_CONFIG+:} false; then :
7645 $as_echo_n "(cached) " >&6
7646 else
7647 case $PKG_CONFIG in
7648 [\\/]* | ?:[\\/]*)
7649 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
7652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7653 for as_dir in $PATH
7655 IFS=$as_save_IFS
7656 test -z "$as_dir" && as_dir=.
7657 for ac_exec_ext in '' $ac_executable_extensions; do
7658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7659 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7661 break 2
7663 done
7664 done
7665 IFS=$as_save_IFS
7667 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
7669 esac
7671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
7672 if test -n "$PKG_CONFIG"; then
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
7674 $as_echo "$PKG_CONFIG" >&6; }
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7677 $as_echo "no" >&6; }
7682 if test x$PKG_CONFIG != xno ; then
7683 if pkg-config --atleast-pkgconfig-version 0.7 ; then
7685 else
7686 echo "*** pkg-config too old; version 0.7 or better required."
7687 no_gtk=yes
7688 PKG_CONFIG=no
7690 else
7691 no_gtk=yes
7694 min_gtk_version=2.12.0
7695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GTK+ - version >= $min_gtk_version" >&5
7696 $as_echo_n "checking for GTK+ - version >= $min_gtk_version... " >&6; }
7698 if test x$PKG_CONFIG != xno ; then
7699 ## don't try to run the test against uninstalled libtool libs
7700 if $PKG_CONFIG --uninstalled $pkg_config_args; then
7701 echo "Will use uninstalled version of GTK+ found in PKG_CONFIG_PATH"
7702 enable_gtktest=no
7705 if $PKG_CONFIG --atleast-version $min_gtk_version $pkg_config_args; then
7707 else
7708 no_gtk=yes
7712 if test x"$no_gtk" = x ; then
7713 GTK_CFLAGS=`$PKG_CONFIG $pkg_config_args --cflags`
7714 GTK_LIBS=`$PKG_CONFIG $pkg_config_args --libs`
7715 gtk_config_major_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7716 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7717 gtk_config_minor_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7718 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7719 gtk_config_micro_version=`$PKG_CONFIG --modversion gtk+-2.0 | \
7720 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7721 if test "x$enable_gtktest" = "xyes" ; then
7722 ac_save_CFLAGS="$CFLAGS"
7723 ac_save_LIBS="$LIBS"
7724 CFLAGS="$CFLAGS $GTK_CFLAGS"
7725 LIBS="$GTK_LIBS $LIBS"
7726 rm -f conf.gtktest
7727 if test "$cross_compiling" = yes; then :
7728 echo $ac_n "cross compiling; assumed OK... $ac_c"
7729 else
7730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7731 /* end confdefs.h. */
7733 #include <gtk/gtk.h>
7734 #include <stdio.h>
7735 #include <stdlib.h>
7738 main ()
7740 int major, minor, micro;
7741 char *tmp_version;
7743 fclose (fopen ("conf.gtktest", "w"));
7745 /* HP/UX 9 (%@#!) writes to sscanf strings */
7746 tmp_version = g_strdup("$min_gtk_version");
7747 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
7748 printf("%s, bad version string\n", "$min_gtk_version");
7749 exit(1);
7752 if ((gtk_major_version != $gtk_config_major_version) ||
7753 (gtk_minor_version != $gtk_config_minor_version) ||
7754 (gtk_micro_version != $gtk_config_micro_version))
7756 printf("\n*** 'pkg-config --modversion gtk+-2.0' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
7757 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
7758 gtk_major_version, gtk_minor_version, gtk_micro_version);
7759 printf ("*** was found! If pkg-config was correct, then it is best\n");
7760 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
7761 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
7762 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
7763 printf("*** required on your system.\n");
7764 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
7765 printf("*** to point to the correct configuration files\n");
7767 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
7768 (gtk_minor_version != GTK_MINOR_VERSION) ||
7769 (gtk_micro_version != GTK_MICRO_VERSION))
7771 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
7772 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
7773 printf("*** library (version %d.%d.%d)\n",
7774 gtk_major_version, gtk_minor_version, gtk_micro_version);
7776 else
7778 if ((gtk_major_version > major) ||
7779 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
7780 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
7782 return 0;
7784 else
7786 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
7787 gtk_major_version, gtk_minor_version, gtk_micro_version);
7788 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
7789 major, minor, micro);
7790 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
7791 printf("***\n");
7792 printf("*** If you have already installed a sufficiently new version, this error\n");
7793 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
7794 printf("*** being found. The easiest way to fix this is to remove the old version\n");
7795 printf("*** of GTK+, but you can also set the PKG_CONFIG environment to point to the\n");
7796 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
7797 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
7798 printf("*** so that the correct libraries are found at run-time))\n");
7801 return 1;
7804 _ACEOF
7805 if ac_fn_c_try_run "$LINENO"; then :
7807 else
7808 no_gtk=yes
7810 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7811 conftest.$ac_objext conftest.beam conftest.$ac_ext
7814 CFLAGS="$ac_save_CFLAGS"
7815 LIBS="$ac_save_LIBS"
7818 if test "x$no_gtk" = x ; then
7819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&5
7820 $as_echo "yes (version $gtk_config_major_version.$gtk_config_minor_version.$gtk_config_micro_version)" >&6; }
7822 else
7823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7824 $as_echo "no" >&6; }
7825 if test "$PKG_CONFIG" = "no" ; then
7826 echo "*** A new enough version of pkg-config was not found."
7827 echo "*** See http://pkgconfig.sourceforge.net"
7828 else
7829 if test -f conf.gtktest ; then
7831 else
7832 echo "*** Could not run GTK+ test program, checking why..."
7833 ac_save_CFLAGS="$CFLAGS"
7834 ac_save_LIBS="$LIBS"
7835 CFLAGS="$CFLAGS $GTK_CFLAGS"
7836 LIBS="$LIBS $GTK_LIBS"
7837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7838 /* end confdefs.h. */
7840 #include <gtk/gtk.h>
7841 #include <stdio.h>
7844 main ()
7846 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
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 GTK+ or finding the wrong"
7854 echo "*** version of GTK+. If it is not finding GTK+, 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 GTK+ is incorrectly installed."
7865 rm -f core conftest.err conftest.$ac_objext \
7866 conftest$ac_exeext conftest.$ac_ext
7867 CFLAGS="$ac_save_CFLAGS"
7868 LIBS="$ac_save_LIBS"
7871 GTK_CFLAGS=""
7872 GTK_LIBS=""
7873 as_fn_error $? "Test for GTK+ failed. See the file 'INSTALL' for help." "$LINENO" 5
7877 rm -f conf.gtktest
7881 if test x"$with_sdl" = "xyes"; then
7882 SDL_TRUE=
7883 SDL_FALSE='#'
7884 else
7885 SDL_TRUE='#'
7886 SDL_FALSE=
7889 if test x"$with_sdl" = "xyes" ; then
7891 $as_echo "#define HAVE_SDL /**/" >>confdefs.h
7894 # Check whether --with-sdl-prefix was given.
7895 if test "${with_sdl_prefix+set}" = set; then :
7896 withval=$with_sdl_prefix; sdl_prefix="$withval"
7897 else
7898 sdl_prefix=""
7902 # Check whether --with-sdl-exec-prefix was given.
7903 if test "${with_sdl_exec_prefix+set}" = set; then :
7904 withval=$with_sdl_exec_prefix; sdl_exec_prefix="$withval"
7905 else
7906 sdl_exec_prefix=""
7909 # Check whether --enable-sdltest was given.
7910 if test "${enable_sdltest+set}" = set; then :
7911 enableval=$enable_sdltest;
7912 else
7913 enable_sdltest=yes
7917 if test x$sdl_exec_prefix != x ; then
7918 sdl_config_args="$sdl_config_args --exec-prefix=$sdl_exec_prefix"
7919 if test x${SDL_CONFIG+set} != xset ; then
7920 SDL_CONFIG=$sdl_exec_prefix/bin/sdl-config
7923 if test x$sdl_prefix != x ; then
7924 sdl_config_args="$sdl_config_args --prefix=$sdl_prefix"
7925 if test x${SDL_CONFIG+set} != xset ; then
7926 SDL_CONFIG=$sdl_prefix/bin/sdl-config
7930 as_save_PATH="$PATH"
7931 if test "x$prefix" != xNONE; then
7932 PATH="$prefix/bin:$prefix/usr/bin:$PATH"
7934 # Extract the first word of "sdl-config", so it can be a program name with args.
7935 set dummy sdl-config; ac_word=$2
7936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7937 $as_echo_n "checking for $ac_word... " >&6; }
7938 if ${ac_cv_path_SDL_CONFIG+:} false; then :
7939 $as_echo_n "(cached) " >&6
7940 else
7941 case $SDL_CONFIG in
7942 [\\/]* | ?:[\\/]*)
7943 ac_cv_path_SDL_CONFIG="$SDL_CONFIG" # Let the user override the test with a path.
7946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7947 for as_dir in $PATH
7949 IFS=$as_save_IFS
7950 test -z "$as_dir" && as_dir=.
7951 for ac_exec_ext in '' $ac_executable_extensions; do
7952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7953 ac_cv_path_SDL_CONFIG="$as_dir/$ac_word$ac_exec_ext"
7954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7955 break 2
7957 done
7958 done
7959 IFS=$as_save_IFS
7961 test -z "$ac_cv_path_SDL_CONFIG" && ac_cv_path_SDL_CONFIG="no"
7963 esac
7965 SDL_CONFIG=$ac_cv_path_SDL_CONFIG
7966 if test -n "$SDL_CONFIG"; then
7967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SDL_CONFIG" >&5
7968 $as_echo "$SDL_CONFIG" >&6; }
7969 else
7970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7971 $as_echo "no" >&6; }
7975 PATH="$as_save_PATH"
7976 min_sdl_version=1.2.0
7977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SDL - version >= $min_sdl_version" >&5
7978 $as_echo_n "checking for SDL - version >= $min_sdl_version... " >&6; }
7979 no_sdl=""
7980 if test "$SDL_CONFIG" = "no" ; then
7981 no_sdl=yes
7982 else
7983 SDL_CFLAGS=`$SDL_CONFIG $sdl_config_args --cflags`
7984 SDL_LIBS=`$SDL_CONFIG $sdl_config_args --libs`
7986 sdl_major_version=`$SDL_CONFIG $sdl_config_args --version | \
7987 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
7988 sdl_minor_version=`$SDL_CONFIG $sdl_config_args --version | \
7989 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
7990 sdl_micro_version=`$SDL_CONFIG $sdl_config_args --version | \
7991 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
7992 if test "x$enable_sdltest" = "xyes" ; then
7993 ac_save_CFLAGS="$CFLAGS"
7994 ac_save_CXXFLAGS="$CXXFLAGS"
7995 ac_save_LIBS="$LIBS"
7996 CFLAGS="$CFLAGS $SDL_CFLAGS"
7997 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
7998 LIBS="$LIBS $SDL_LIBS"
7999 rm -f conf.sdltest
8000 if test "$cross_compiling" = yes; then :
8001 echo $ac_n "cross compiling; assumed OK... $ac_c"
8002 else
8003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8004 /* end confdefs.h. */
8006 #include <stdio.h>
8007 #include <stdlib.h>
8008 #include <string.h>
8009 #include "SDL.h"
8011 char*
8012 my_strdup (char *str)
8014 char *new_str;
8016 if (str)
8018 new_str = (char *)malloc ((strlen (str) + 1) * sizeof(char));
8019 strcpy (new_str, str);
8021 else
8022 new_str = NULL;
8024 return new_str;
8027 int main (int argc, char *argv[])
8029 int major, minor, micro;
8030 char *tmp_version;
8032 /* This hangs on some systems (?)
8033 system ("touch conf.sdltest");
8035 { FILE *fp = fopen("conf.sdltest", "a"); if ( fp ) fclose(fp); }
8037 /* HP/UX 9 (%@#!) writes to sscanf strings */
8038 tmp_version = my_strdup("$min_sdl_version");
8039 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
8040 printf("%s, bad version string\n", "$min_sdl_version");
8041 exit(1);
8044 if (($sdl_major_version > major) ||
8045 (($sdl_major_version == major) && ($sdl_minor_version > minor)) ||
8046 (($sdl_major_version == major) && ($sdl_minor_version == minor) && ($sdl_micro_version >= micro)))
8048 return 0;
8050 else
8052 printf("\n*** 'sdl-config --version' returned %d.%d.%d, but the minimum version\n", $sdl_major_version, $sdl_minor_version, $sdl_micro_version);
8053 printf("*** of SDL required is %d.%d.%d. If sdl-config is correct, then it is\n", major, minor, micro);
8054 printf("*** best to upgrade to the required version.\n");
8055 printf("*** If sdl-config was wrong, set the environment variable SDL_CONFIG\n");
8056 printf("*** to point to the correct copy of sdl-config, and remove the file\n");
8057 printf("*** config.cache before re-running configure\n");
8058 return 1;
8063 _ACEOF
8064 if ac_fn_c_try_run "$LINENO"; then :
8066 else
8067 no_sdl=yes
8069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
8070 conftest.$ac_objext conftest.beam conftest.$ac_ext
8073 CFLAGS="$ac_save_CFLAGS"
8074 CXXFLAGS="$ac_save_CXXFLAGS"
8075 LIBS="$ac_save_LIBS"
8078 if test "x$no_sdl" = x ; then
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8080 $as_echo "yes" >&6; }
8082 else
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084 $as_echo "no" >&6; }
8085 if test "$SDL_CONFIG" = "no" ; then
8086 echo "*** The sdl-config script installed by SDL could not be found"
8087 echo "*** If SDL was installed in PREFIX, make sure PREFIX/bin is in"
8088 echo "*** your path, or set the SDL_CONFIG environment variable to the"
8089 echo "*** full path to sdl-config."
8090 else
8091 if test -f conf.sdltest ; then
8093 else
8094 echo "*** Could not run SDL test program, checking why..."
8095 CFLAGS="$CFLAGS $SDL_CFLAGS"
8096 CXXFLAGS="$CXXFLAGS $SDL_CFLAGS"
8097 LIBS="$LIBS $SDL_LIBS"
8098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8099 /* end confdefs.h. */
8101 #include <stdio.h>
8102 #include "SDL.h"
8104 int main(int argc, char *argv[])
8105 { return 0; }
8106 #undef main
8107 #define main K_and_R_C_main
8110 main ()
8112 return 0;
8114 return 0;
8116 _ACEOF
8117 if ac_fn_c_try_link "$LINENO"; then :
8118 echo "*** The test program compiled, but did not run. This usually means"
8119 echo "*** that the run-time linker is not finding SDL or finding the wrong"
8120 echo "*** version of SDL. If it is not finding SDL, you'll need to set your"
8121 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
8122 echo "*** to the installed location Also, make sure you have run ldconfig if that"
8123 echo "*** is required on your system"
8124 echo "***"
8125 echo "*** If you have an old version installed, it is best to remove it, although"
8126 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
8127 else
8128 echo "*** The test program failed to compile or link. See the file config.log for the"
8129 echo "*** exact error that occured. This usually means SDL was incorrectly installed"
8130 echo "*** or that you have moved SDL since it was installed. In the latter case, you"
8131 echo "*** may want to edit the sdl-config script: $SDL_CONFIG"
8133 rm -f core conftest.err conftest.$ac_objext \
8134 conftest$ac_exeext conftest.$ac_ext
8135 CFLAGS="$ac_save_CFLAGS"
8136 CXXFLAGS="$ac_save_CXXFLAGS"
8137 LIBS="$ac_save_LIBS"
8140 SDL_CFLAGS=""
8141 SDL_LIBS=""
8142 as_fn_error $? "Test for SDL failed. See the file 'INSTALL' for help." "$LINENO" 5
8146 rm -f conf.sdltest
8151 pkg_failed=no
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPNG" >&5
8153 $as_echo_n "checking for LIBPNG... " >&6; }
8155 if test -n "$LIBPNG_CFLAGS"; then
8156 pkg_cv_LIBPNG_CFLAGS="$LIBPNG_CFLAGS"
8157 elif test -n "$PKG_CONFIG"; then
8158 if test -n "$PKG_CONFIG" && \
8159 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8160 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8161 ac_status=$?
8162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8163 test $ac_status = 0; }; then
8164 pkg_cv_LIBPNG_CFLAGS=`$PKG_CONFIG --cflags "libpng" 2>/dev/null`
8165 test "x$?" != "x0" && pkg_failed=yes
8166 else
8167 pkg_failed=yes
8169 else
8170 pkg_failed=untried
8172 if test -n "$LIBPNG_LIBS"; then
8173 pkg_cv_LIBPNG_LIBS="$LIBPNG_LIBS"
8174 elif test -n "$PKG_CONFIG"; then
8175 if test -n "$PKG_CONFIG" && \
8176 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpng\""; } >&5
8177 ($PKG_CONFIG --exists --print-errors "libpng") 2>&5
8178 ac_status=$?
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; }; then
8181 pkg_cv_LIBPNG_LIBS=`$PKG_CONFIG --libs "libpng" 2>/dev/null`
8182 test "x$?" != "x0" && pkg_failed=yes
8183 else
8184 pkg_failed=yes
8186 else
8187 pkg_failed=untried
8192 if test $pkg_failed = yes; then
8193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8194 $as_echo "no" >&6; }
8196 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
8197 _pkg_short_errors_supported=yes
8198 else
8199 _pkg_short_errors_supported=no
8201 if test $_pkg_short_errors_supported = yes; then
8202 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libpng" 2>&1`
8203 else
8204 LIBPNG_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libpng" 2>&1`
8206 # Put the nasty error message in config.log where it belongs
8207 echo "$LIBPNG_PKG_ERRORS" >&5
8209 as_fn_error $? "Package requirements (libpng) were not met:
8211 $LIBPNG_PKG_ERRORS
8213 Consider adjusting the PKG_CONFIG_PATH environment variable if you
8214 installed software in a non-standard prefix.
8216 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8217 and LIBPNG_LIBS to avoid the need to call pkg-config.
8218 See the pkg-config man page for more details." "$LINENO" 5
8219 elif test $pkg_failed = untried; then
8220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8221 $as_echo "no" >&6; }
8222 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8223 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8224 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
8225 is in your PATH or set the PKG_CONFIG environment variable to the full
8226 path to pkg-config.
8228 Alternatively, you may set the environment variables LIBPNG_CFLAGS
8229 and LIBPNG_LIBS to avoid the need to call pkg-config.
8230 See the pkg-config man page for more details.
8232 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
8233 See \`config.log' for more details" "$LINENO" 5; }
8234 else
8235 LIBPNG_CFLAGS=$pkg_cv_LIBPNG_CFLAGS
8236 LIBPNG_LIBS=$pkg_cv_LIBPNG_LIBS
8237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8238 $as_echo "yes" >&6; }
8240 $as_echo "#define HAVE_LIBPNG 1" >>confdefs.h
8245 ac_config_files="$ac_config_files Makefile po/Makefile.in include/Makefile src/Makefile caves/Makefile docs/Makefile sound/Makefile music/Makefile"
8247 cat >confcache <<\_ACEOF
8248 # This file is a shell script that caches the results of configure
8249 # tests run on this system so they can be shared between configure
8250 # scripts and configure runs, see configure's option --config-cache.
8251 # It is not useful on other systems. If it contains results you don't
8252 # want to keep, you may remove or edit it.
8254 # config.status only pays attention to the cache file if you give it
8255 # the --recheck option to rerun configure.
8257 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8258 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8259 # following values.
8261 _ACEOF
8263 # The following way of writing the cache mishandles newlines in values,
8264 # but we know of no workaround that is simple, portable, and efficient.
8265 # So, we kill variables containing newlines.
8266 # Ultrix sh set writes to stderr and can't be redirected directly,
8267 # and sets the high bit in the cache file unless we assign to the vars.
8269 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8270 eval ac_val=\$$ac_var
8271 case $ac_val in #(
8272 *${as_nl}*)
8273 case $ac_var in #(
8274 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
8275 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
8276 esac
8277 case $ac_var in #(
8278 _ | IFS | as_nl) ;; #(
8279 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
8280 *) { eval $ac_var=; unset $ac_var;} ;;
8281 esac ;;
8282 esac
8283 done
8285 (set) 2>&1 |
8286 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8287 *${as_nl}ac_space=\ *)
8288 # `set' does not quote correctly, so add quotes: double-quote
8289 # substitution turns \\\\ into \\, and sed turns \\ into \.
8290 sed -n \
8291 "s/'/'\\\\''/g;
8292 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8293 ;; #(
8295 # `set' quotes correctly as required by POSIX, so do not add quotes.
8296 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8298 esac |
8299 sort
8301 sed '
8302 /^ac_cv_env_/b end
8303 t clear
8304 :clear
8305 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8306 t end
8307 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8308 :end' >>confcache
8309 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8310 if test -w "$cache_file"; then
8311 if test "x$cache_file" != "x/dev/null"; then
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
8313 $as_echo "$as_me: updating cache $cache_file" >&6;}
8314 if test ! -f "$cache_file" || test -h "$cache_file"; then
8315 cat confcache >"$cache_file"
8316 else
8317 case $cache_file in #(
8318 */* | ?:*)
8319 mv -f confcache "$cache_file"$$ &&
8320 mv -f "$cache_file"$$ "$cache_file" ;; #(
8322 mv -f confcache "$cache_file" ;;
8323 esac
8326 else
8327 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
8328 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8331 rm -f confcache
8333 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8334 # Let make expand exec_prefix.
8335 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8337 DEFS=-DHAVE_CONFIG_H
8339 ac_libobjs=
8340 ac_ltlibobjs=
8342 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8343 # 1. Remove the extension, and $U if already installed.
8344 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8345 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
8346 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8347 # will be set to the directory where LIBOBJS objects are built.
8348 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8349 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
8350 done
8351 LIBOBJS=$ac_libobjs
8353 LTLIBOBJS=$ac_ltlibobjs
8356 if test -n "$EXEEXT"; then
8357 am__EXEEXT_TRUE=
8358 am__EXEEXT_FALSE='#'
8359 else
8360 am__EXEEXT_TRUE='#'
8361 am__EXEEXT_FALSE=
8364 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8365 as_fn_error $? "conditional \"AMDEP\" was never defined.
8366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8368 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8369 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
8370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8372 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8373 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
8374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8376 if test -z "${GTK_TRUE}" && test -z "${GTK_FALSE}"; then
8377 as_fn_error $? "conditional \"GTK\" was never defined.
8378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8380 if test -z "${SDL_TRUE}" && test -z "${SDL_FALSE}"; then
8381 as_fn_error $? "conditional \"SDL\" was never defined.
8382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
8385 : "${CONFIG_STATUS=./config.status}"
8386 ac_write_fail=0
8387 ac_clean_files_save=$ac_clean_files
8388 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
8390 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
8391 as_write_fail=0
8392 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
8393 #! $SHELL
8394 # Generated by $as_me.
8395 # Run this file to recreate the current configuration.
8396 # Compiler output produced by configure, useful for debugging
8397 # configure, is in config.log if it exists.
8399 debug=false
8400 ac_cs_recheck=false
8401 ac_cs_silent=false
8403 SHELL=\${CONFIG_SHELL-$SHELL}
8404 export SHELL
8405 _ASEOF
8406 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
8407 ## -------------------- ##
8408 ## M4sh Initialization. ##
8409 ## -------------------- ##
8411 # Be more Bourne compatible
8412 DUALCASE=1; export DUALCASE # for MKS sh
8413 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
8414 emulate sh
8415 NULLCMD=:
8416 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
8417 # is contrary to our usage. Disable this feature.
8418 alias -g '${1+"$@"}'='"$@"'
8419 setopt NO_GLOB_SUBST
8420 else
8421 case `(set -o) 2>/dev/null` in #(
8422 *posix*) :
8423 set -o posix ;; #(
8424 *) :
8426 esac
8430 as_nl='
8432 export as_nl
8433 # Printing a long string crashes Solaris 7 /usr/bin/printf.
8434 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8435 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
8436 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
8437 # Prefer a ksh shell builtin over an external printf program on Solaris,
8438 # but without wasting forks for bash or zsh.
8439 if test -z "$BASH_VERSION$ZSH_VERSION" \
8440 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
8441 as_echo='print -r --'
8442 as_echo_n='print -rn --'
8443 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
8444 as_echo='printf %s\n'
8445 as_echo_n='printf %s'
8446 else
8447 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
8448 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
8449 as_echo_n='/usr/ucb/echo -n'
8450 else
8451 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
8452 as_echo_n_body='eval
8453 arg=$1;
8454 case $arg in #(
8455 *"$as_nl"*)
8456 expr "X$arg" : "X\\(.*\\)$as_nl";
8457 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
8458 esac;
8459 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
8461 export as_echo_n_body
8462 as_echo_n='sh -c $as_echo_n_body as_echo'
8464 export as_echo_body
8465 as_echo='sh -c $as_echo_body as_echo'
8468 # The user is always right.
8469 if test "${PATH_SEPARATOR+set}" != set; then
8470 PATH_SEPARATOR=:
8471 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
8472 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
8473 PATH_SEPARATOR=';'
8478 # IFS
8479 # We need space, tab and new line, in precisely that order. Quoting is
8480 # there to prevent editors from complaining about space-tab.
8481 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8482 # splitting by setting IFS to empty value.)
8483 IFS=" "" $as_nl"
8485 # Find who we are. Look in the path if we contain no directory separator.
8486 as_myself=
8487 case $0 in #((
8488 *[\\/]* ) as_myself=$0 ;;
8489 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8490 for as_dir in $PATH
8492 IFS=$as_save_IFS
8493 test -z "$as_dir" && as_dir=.
8494 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
8495 done
8496 IFS=$as_save_IFS
8499 esac
8500 # We did not find ourselves, most probably we were run as `sh COMMAND'
8501 # in which case we are not to be found in the path.
8502 if test "x$as_myself" = x; then
8503 as_myself=$0
8505 if test ! -f "$as_myself"; then
8506 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
8507 exit 1
8510 # Unset variables that we do not need and which cause bugs (e.g. in
8511 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
8512 # suppresses any "Segmentation fault" message there. '((' could
8513 # trigger a bug in pdksh 5.2.14.
8514 for as_var in BASH_ENV ENV MAIL MAILPATH
8515 do eval test x\${$as_var+set} = xset \
8516 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
8517 done
8518 PS1='$ '
8519 PS2='> '
8520 PS4='+ '
8522 # NLS nuisances.
8523 LC_ALL=C
8524 export LC_ALL
8525 LANGUAGE=C
8526 export LANGUAGE
8528 # CDPATH.
8529 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
8532 # as_fn_error STATUS ERROR [LINENO LOG_FD]
8533 # ----------------------------------------
8534 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
8535 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
8536 # script with STATUS, using 1 if that was 0.
8537 as_fn_error ()
8539 as_status=$1; test $as_status -eq 0 && as_status=1
8540 if test "$4"; then
8541 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
8542 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
8544 $as_echo "$as_me: error: $2" >&2
8545 as_fn_exit $as_status
8546 } # as_fn_error
8549 # as_fn_set_status STATUS
8550 # -----------------------
8551 # Set $? to STATUS, without forking.
8552 as_fn_set_status ()
8554 return $1
8555 } # as_fn_set_status
8557 # as_fn_exit STATUS
8558 # -----------------
8559 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
8560 as_fn_exit ()
8562 set +e
8563 as_fn_set_status $1
8564 exit $1
8565 } # as_fn_exit
8567 # as_fn_unset VAR
8568 # ---------------
8569 # Portably unset VAR.
8570 as_fn_unset ()
8572 { eval $1=; unset $1;}
8574 as_unset=as_fn_unset
8575 # as_fn_append VAR VALUE
8576 # ----------------------
8577 # Append the text in VALUE to the end of the definition contained in VAR. Take
8578 # advantage of any shell optimizations that allow amortized linear growth over
8579 # repeated appends, instead of the typical quadratic growth present in naive
8580 # implementations.
8581 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
8582 eval 'as_fn_append ()
8584 eval $1+=\$2
8586 else
8587 as_fn_append ()
8589 eval $1=\$$1\$2
8591 fi # as_fn_append
8593 # as_fn_arith ARG...
8594 # ------------------
8595 # Perform arithmetic evaluation on the ARGs, and store the result in the
8596 # global $as_val. Take advantage of shells that can avoid forks. The arguments
8597 # must be portable across $(()) and expr.
8598 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
8599 eval 'as_fn_arith ()
8601 as_val=$(( $* ))
8603 else
8604 as_fn_arith ()
8606 as_val=`expr "$@" || test $? -eq 1`
8608 fi # as_fn_arith
8611 if expr a : '\(a\)' >/dev/null 2>&1 &&
8612 test "X`expr 00001 : '.*\(...\)'`" = X001; then
8613 as_expr=expr
8614 else
8615 as_expr=false
8618 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
8619 as_basename=basename
8620 else
8621 as_basename=false
8624 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
8625 as_dirname=dirname
8626 else
8627 as_dirname=false
8630 as_me=`$as_basename -- "$0" ||
8631 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
8632 X"$0" : 'X\(//\)$' \| \
8633 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
8634 $as_echo X/"$0" |
8635 sed '/^.*\/\([^/][^/]*\)\/*$/{
8636 s//\1/
8639 /^X\/\(\/\/\)$/{
8640 s//\1/
8643 /^X\/\(\/\).*/{
8644 s//\1/
8647 s/.*/./; q'`
8649 # Avoid depending upon Character Ranges.
8650 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8651 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8652 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8653 as_cr_digits='0123456789'
8654 as_cr_alnum=$as_cr_Letters$as_cr_digits
8656 ECHO_C= ECHO_N= ECHO_T=
8657 case `echo -n x` in #(((((
8658 -n*)
8659 case `echo 'xy\c'` in
8660 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
8661 xy) ECHO_C='\c';;
8662 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
8663 ECHO_T=' ';;
8664 esac;;
8666 ECHO_N='-n';;
8667 esac
8669 rm -f conf$$ conf$$.exe conf$$.file
8670 if test -d conf$$.dir; then
8671 rm -f conf$$.dir/conf$$.file
8672 else
8673 rm -f conf$$.dir
8674 mkdir conf$$.dir 2>/dev/null
8676 if (echo >conf$$.file) 2>/dev/null; then
8677 if ln -s conf$$.file conf$$ 2>/dev/null; then
8678 as_ln_s='ln -s'
8679 # ... but there are two gotchas:
8680 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
8681 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
8682 # In both cases, we have to default to `cp -pR'.
8683 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
8684 as_ln_s='cp -pR'
8685 elif ln conf$$.file conf$$ 2>/dev/null; then
8686 as_ln_s=ln
8687 else
8688 as_ln_s='cp -pR'
8690 else
8691 as_ln_s='cp -pR'
8693 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
8694 rmdir conf$$.dir 2>/dev/null
8697 # as_fn_mkdir_p
8698 # -------------
8699 # Create "$as_dir" as a directory, including parents if necessary.
8700 as_fn_mkdir_p ()
8703 case $as_dir in #(
8704 -*) as_dir=./$as_dir;;
8705 esac
8706 test -d "$as_dir" || eval $as_mkdir_p || {
8707 as_dirs=
8708 while :; do
8709 case $as_dir in #(
8710 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
8711 *) as_qdir=$as_dir;;
8712 esac
8713 as_dirs="'$as_qdir' $as_dirs"
8714 as_dir=`$as_dirname -- "$as_dir" ||
8715 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8716 X"$as_dir" : 'X\(//\)[^/]' \| \
8717 X"$as_dir" : 'X\(//\)$' \| \
8718 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
8719 $as_echo X"$as_dir" |
8720 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8721 s//\1/
8724 /^X\(\/\/\)[^/].*/{
8725 s//\1/
8728 /^X\(\/\/\)$/{
8729 s//\1/
8732 /^X\(\/\).*/{
8733 s//\1/
8736 s/.*/./; q'`
8737 test -d "$as_dir" && break
8738 done
8739 test -z "$as_dirs" || eval "mkdir $as_dirs"
8740 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
8743 } # as_fn_mkdir_p
8744 if mkdir -p . 2>/dev/null; then
8745 as_mkdir_p='mkdir -p "$as_dir"'
8746 else
8747 test -d ./-p && rmdir ./-p
8748 as_mkdir_p=false
8752 # as_fn_executable_p FILE
8753 # -----------------------
8754 # Test if FILE is an executable regular file.
8755 as_fn_executable_p ()
8757 test -f "$1" && test -x "$1"
8758 } # as_fn_executable_p
8759 as_test_x='test -x'
8760 as_executable_p=as_fn_executable_p
8762 # Sed expression to map a string onto a valid CPP name.
8763 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
8765 # Sed expression to map a string onto a valid variable name.
8766 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
8769 exec 6>&1
8770 ## ----------------------------------- ##
8771 ## Main body of $CONFIG_STATUS script. ##
8772 ## ----------------------------------- ##
8773 _ASEOF
8774 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
8776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8777 # Save the log message, to keep $0 and so on meaningful, and to
8778 # report actual input values of CONFIG_FILES etc. instead of their
8779 # values after options handling.
8780 ac_log="
8781 This file was extended by GDash $as_me 20130313unstable, which was
8782 generated by GNU Autoconf 2.69. Invocation command line was
8784 CONFIG_FILES = $CONFIG_FILES
8785 CONFIG_HEADERS = $CONFIG_HEADERS
8786 CONFIG_LINKS = $CONFIG_LINKS
8787 CONFIG_COMMANDS = $CONFIG_COMMANDS
8788 $ $0 $@
8790 on `(hostname || uname -n) 2>/dev/null | sed 1q`
8793 _ACEOF
8795 case $ac_config_files in *"
8796 "*) set x $ac_config_files; shift; ac_config_files=$*;;
8797 esac
8799 case $ac_config_headers in *"
8800 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
8801 esac
8804 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8805 # Files that config.status was made for.
8806 config_files="$ac_config_files"
8807 config_headers="$ac_config_headers"
8808 config_commands="$ac_config_commands"
8810 _ACEOF
8812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8813 ac_cs_usage="\
8814 \`$as_me' instantiates files and other configuration actions
8815 from templates according to the current configuration. Unless the files
8816 and actions are specified as TAGs, all are instantiated by default.
8818 Usage: $0 [OPTION]... [TAG]...
8820 -h, --help print this help, then exit
8821 -V, --version print version number and configuration settings, then exit
8822 --config print configuration, then exit
8823 -q, --quiet, --silent
8824 do not print progress messages
8825 -d, --debug don't remove temporary files
8826 --recheck update $as_me by reconfiguring in the same conditions
8827 --file=FILE[:TEMPLATE]
8828 instantiate the configuration file FILE
8829 --header=FILE[:TEMPLATE]
8830 instantiate the configuration header FILE
8832 Configuration files:
8833 $config_files
8835 Configuration headers:
8836 $config_headers
8838 Configuration commands:
8839 $config_commands
8841 Report bugs to <http://code.google.com/p/gdash/>."
8843 _ACEOF
8844 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8845 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
8846 ac_cs_version="\\
8847 GDash config.status 20130313unstable
8848 configured by $0, generated by GNU Autoconf 2.69,
8849 with options \\"\$ac_cs_config\\"
8851 Copyright (C) 2012 Free Software Foundation, Inc.
8852 This config.status script is free software; the Free Software Foundation
8853 gives unlimited permission to copy, distribute and modify it."
8855 ac_pwd='$ac_pwd'
8856 srcdir='$srcdir'
8857 INSTALL='$INSTALL'
8858 MKDIR_P='$MKDIR_P'
8859 AWK='$AWK'
8860 test -n "\$AWK" || AWK=awk
8861 _ACEOF
8863 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8864 # The default lists apply if the user does not specify any file.
8865 ac_need_defaults=:
8866 while test $# != 0
8868 case $1 in
8869 --*=?*)
8870 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8871 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
8872 ac_shift=:
8874 --*=)
8875 ac_option=`expr "X$1" : 'X\([^=]*\)='`
8876 ac_optarg=
8877 ac_shift=:
8880 ac_option=$1
8881 ac_optarg=$2
8882 ac_shift=shift
8884 esac
8886 case $ac_option in
8887 # Handling of the options.
8888 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
8889 ac_cs_recheck=: ;;
8890 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
8891 $as_echo "$ac_cs_version"; exit ;;
8892 --config | --confi | --conf | --con | --co | --c )
8893 $as_echo "$ac_cs_config"; exit ;;
8894 --debug | --debu | --deb | --de | --d | -d )
8895 debug=: ;;
8896 --file | --fil | --fi | --f )
8897 $ac_shift
8898 case $ac_optarg in
8899 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8900 '') as_fn_error $? "missing file argument" ;;
8901 esac
8902 as_fn_append CONFIG_FILES " '$ac_optarg'"
8903 ac_need_defaults=false;;
8904 --header | --heade | --head | --hea )
8905 $ac_shift
8906 case $ac_optarg in
8907 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
8908 esac
8909 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
8910 ac_need_defaults=false;;
8911 --he | --h)
8912 # Conflict between --help and --header
8913 as_fn_error $? "ambiguous option: \`$1'
8914 Try \`$0 --help' for more information.";;
8915 --help | --hel | -h )
8916 $as_echo "$ac_cs_usage"; exit ;;
8917 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
8918 | -silent | --silent | --silen | --sile | --sil | --si | --s)
8919 ac_cs_silent=: ;;
8921 # This is an error.
8922 -*) as_fn_error $? "unrecognized option: \`$1'
8923 Try \`$0 --help' for more information." ;;
8925 *) as_fn_append ac_config_targets " $1"
8926 ac_need_defaults=false ;;
8928 esac
8929 shift
8930 done
8932 ac_configure_extra_args=
8934 if $ac_cs_silent; then
8935 exec 6>/dev/null
8936 ac_configure_extra_args="$ac_configure_extra_args --silent"
8939 _ACEOF
8940 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8941 if \$ac_cs_recheck; then
8942 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
8943 shift
8944 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
8945 CONFIG_SHELL='$SHELL'
8946 export CONFIG_SHELL
8947 exec "\$@"
8950 _ACEOF
8951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8952 exec 5>>config.log
8954 echo
8955 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
8956 ## Running $as_me. ##
8957 _ASBOX
8958 $as_echo "$ac_log"
8959 } >&5
8961 _ACEOF
8962 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8964 # INIT-COMMANDS
8966 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
8967 # Capture the value of obsolete ALL_LINGUAS because we need it to compute
8968 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it
8969 # from automake < 1.5.
8970 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"'
8971 # Capture the value of LINGUAS because we need it to compute CATALOGS.
8972 LINGUAS="${LINGUAS-%UNSET%}"
8975 _ACEOF
8977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8979 # Handling of arguments.
8980 for ac_config_target in $ac_config_targets
8982 case $ac_config_target in
8983 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
8984 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
8985 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;;
8986 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
8987 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;;
8988 "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
8989 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
8990 "caves/Makefile") CONFIG_FILES="$CONFIG_FILES caves/Makefile" ;;
8991 "docs/Makefile") CONFIG_FILES="$CONFIG_FILES docs/Makefile" ;;
8992 "sound/Makefile") CONFIG_FILES="$CONFIG_FILES sound/Makefile" ;;
8993 "music/Makefile") CONFIG_FILES="$CONFIG_FILES music/Makefile" ;;
8995 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
8996 esac
8997 done
9000 # If the user did not use the arguments to specify the items to instantiate,
9001 # then the envvar interface is used. Set only those that are not.
9002 # We use the long form for the default assignment because of an extremely
9003 # bizarre bug on SunOS 4.1.3.
9004 if $ac_need_defaults; then
9005 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9006 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9007 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9010 # Have a temporary directory for convenience. Make it in the build tree
9011 # simply because there is no reason against having it here, and in addition,
9012 # creating and moving files from /tmp can sometimes cause problems.
9013 # Hook for its removal unless debugging.
9014 # Note that there is a small window in which the directory will not be cleaned:
9015 # after its creation but before its name has been assigned to `$tmp'.
9016 $debug ||
9018 tmp= ac_tmp=
9019 trap 'exit_status=$?
9020 : "${ac_tmp:=$tmp}"
9021 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
9023 trap 'as_fn_exit 1' 1 2 13 15
9025 # Create a (secure) tmp directory for tmp files.
9028 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9029 test -d "$tmp"
9030 } ||
9032 tmp=./conf$$-$RANDOM
9033 (umask 077 && mkdir "$tmp")
9034 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
9035 ac_tmp=$tmp
9037 # Set up the scripts for CONFIG_FILES section.
9038 # No need to generate them if there are no CONFIG_FILES.
9039 # This happens for instance with `./config.status config.h'.
9040 if test -n "$CONFIG_FILES"; then
9043 ac_cr=`echo X | tr X '\015'`
9044 # On cygwin, bash can eat \r inside `` if the user requested igncr.
9045 # But we know of no other shell where ac_cr would be empty at this
9046 # point, so we can use a bashism as a fallback.
9047 if test "x$ac_cr" = x; then
9048 eval ac_cr=\$\'\\r\'
9050 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
9051 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
9052 ac_cs_awk_cr='\\r'
9053 else
9054 ac_cs_awk_cr=$ac_cr
9057 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
9058 _ACEOF
9062 echo "cat >conf$$subs.awk <<_ACEOF" &&
9063 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
9064 echo "_ACEOF"
9065 } >conf$$subs.sh ||
9066 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9067 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
9068 ac_delim='%!_!# '
9069 for ac_last_try in false false false false false :; do
9070 . ./conf$$subs.sh ||
9071 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9073 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
9074 if test $ac_delim_n = $ac_delim_num; then
9075 break
9076 elif $ac_last_try; then
9077 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
9078 else
9079 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9081 done
9082 rm -f conf$$subs.sh
9084 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9085 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
9086 _ACEOF
9087 sed -n '
9089 s/^/S["/; s/!.*/"]=/
9092 s/^[^!]*!//
9093 :repl
9094 t repl
9095 s/'"$ac_delim"'$//
9096 t delim
9099 s/\(.\{148\}\)..*/\1/
9100 t more1
9101 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
9104 b repl
9105 :more1
9106 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9109 s/.\{148\}//
9110 t nl
9111 :delim
9113 s/\(.\{148\}\)..*/\1/
9114 t more2
9115 s/["\\]/\\&/g; s/^/"/; s/$/"/
9118 :more2
9119 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
9122 s/.\{148\}//
9123 t delim
9124 ' <conf$$subs.awk | sed '
9125 /^[^""]/{
9127 s/\n//
9129 ' >>$CONFIG_STATUS || ac_write_fail=1
9130 rm -f conf$$subs.awk
9131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9132 _ACAWK
9133 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
9134 for (key in S) S_is_set[key] = 1
9135 FS = "\a"
9139 line = $ 0
9140 nfields = split(line, field, "@")
9141 substed = 0
9142 len = length(field[1])
9143 for (i = 2; i < nfields; i++) {
9144 key = field[i]
9145 keylen = length(key)
9146 if (S_is_set[key]) {
9147 value = S[key]
9148 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
9149 len += length(value) + length(field[++i])
9150 substed = 1
9151 } else
9152 len += 1 + keylen
9155 print line
9158 _ACAWK
9159 _ACEOF
9160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9161 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
9162 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
9163 else
9165 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
9166 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
9167 _ACEOF
9169 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
9170 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
9171 # trailing colons and then remove the whole line if VPATH becomes empty
9172 # (actually we leave an empty line to preserve line numbers).
9173 if test "x$srcdir" = x.; then
9174 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
9176 s///
9177 s/^/:/
9178 s/[ ]*$/:/
9179 s/:\$(srcdir):/:/g
9180 s/:\${srcdir}:/:/g
9181 s/:@srcdir@:/:/g
9182 s/^:*//
9183 s/:*$//
9185 s/\(=[ ]*\).*/\1/
9187 s/\n//
9188 s/^[^=]*=[ ]*$//
9192 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9193 fi # test -n "$CONFIG_FILES"
9195 # Set up the scripts for CONFIG_HEADERS section.
9196 # No need to generate them if there are no CONFIG_HEADERS.
9197 # This happens for instance with `./config.status Makefile'.
9198 if test -n "$CONFIG_HEADERS"; then
9199 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
9200 BEGIN {
9201 _ACEOF
9203 # Transform confdefs.h into an awk script `defines.awk', embedded as
9204 # here-document in config.status, that substitutes the proper values into
9205 # config.h.in to produce config.h.
9207 # Create a delimiter string that does not exist in confdefs.h, to ease
9208 # handling of long lines.
9209 ac_delim='%!_!# '
9210 for ac_last_try in false false :; do
9211 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
9212 if test -z "$ac_tt"; then
9213 break
9214 elif $ac_last_try; then
9215 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
9216 else
9217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9219 done
9221 # For the awk script, D is an array of macro values keyed by name,
9222 # likewise P contains macro parameters if any. Preserve backslash
9223 # newline sequences.
9225 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9226 sed -n '
9227 s/.\{148\}/&'"$ac_delim"'/g
9228 t rset
9229 :rset
9230 s/^[ ]*#[ ]*define[ ][ ]*/ /
9231 t def
9233 :def
9234 s/\\$//
9235 t bsnl
9236 s/["\\]/\\&/g
9237 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9238 D["\1"]=" \3"/p
9239 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
9241 :bsnl
9242 s/["\\]/\\&/g
9243 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
9244 D["\1"]=" \3\\\\\\n"\\/p
9245 t cont
9246 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
9247 t cont
9249 :cont
9251 s/.\{148\}/&'"$ac_delim"'/g
9252 t clear
9253 :clear
9254 s/\\$//
9255 t bsnlc
9256 s/["\\]/\\&/g; s/^/"/; s/$/"/p
9258 :bsnlc
9259 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
9260 b cont
9261 ' <confdefs.h | sed '
9262 s/'"$ac_delim"'/"\\\
9263 "/g' >>$CONFIG_STATUS || ac_write_fail=1
9265 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9266 for (key in D) D_is_set[key] = 1
9267 FS = "\a"
9269 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
9270 line = \$ 0
9271 split(line, arg, " ")
9272 if (arg[1] == "#") {
9273 defundef = arg[2]
9274 mac1 = arg[3]
9275 } else {
9276 defundef = substr(arg[1], 2)
9277 mac1 = arg[2]
9279 split(mac1, mac2, "(") #)
9280 macro = mac2[1]
9281 prefix = substr(line, 1, index(line, defundef) - 1)
9282 if (D_is_set[macro]) {
9283 # Preserve the white space surrounding the "#".
9284 print prefix "define", macro P[macro] D[macro]
9285 next
9286 } else {
9287 # Replace #undef with comments. This is necessary, for example,
9288 # in the case of _POSIX_SOURCE, which is predefined and required
9289 # on some systems where configure will not decide to define it.
9290 if (defundef == "undef") {
9291 print "/*", prefix defundef, macro, "*/"
9292 next
9296 { print }
9297 _ACAWK
9298 _ACEOF
9299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9300 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
9301 fi # test -n "$CONFIG_HEADERS"
9304 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
9305 shift
9306 for ac_tag
9308 case $ac_tag in
9309 :[FHLC]) ac_mode=$ac_tag; continue;;
9310 esac
9311 case $ac_mode$ac_tag in
9312 :[FHL]*:*);;
9313 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
9314 :[FH]-) ac_tag=-:-;;
9315 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9316 esac
9317 ac_save_IFS=$IFS
9318 IFS=:
9319 set x $ac_tag
9320 IFS=$ac_save_IFS
9321 shift
9322 ac_file=$1
9323 shift
9325 case $ac_mode in
9326 :L) ac_source=$1;;
9327 :[FH])
9328 ac_file_inputs=
9329 for ac_f
9331 case $ac_f in
9332 -) ac_f="$ac_tmp/stdin";;
9333 *) # Look for the file first in the build tree, then in the source tree
9334 # (if the path is not absolute). The absolute path cannot be DOS-style,
9335 # because $ac_f cannot contain `:'.
9336 test -f "$ac_f" ||
9337 case $ac_f in
9338 [\\/$]*) false;;
9339 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9340 esac ||
9341 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
9342 esac
9343 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
9344 as_fn_append ac_file_inputs " '$ac_f'"
9345 done
9347 # Let's still pretend it is `configure' which instantiates (i.e., don't
9348 # use $as_me), people would be surprised to read:
9349 # /* config.h. Generated by config.status. */
9350 configure_input='Generated from '`
9351 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
9352 `' by configure.'
9353 if test x"$ac_file" != x-; then
9354 configure_input="$ac_file. $configure_input"
9355 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
9356 $as_echo "$as_me: creating $ac_file" >&6;}
9358 # Neutralize special characters interpreted by sed in replacement strings.
9359 case $configure_input in #(
9360 *\&* | *\|* | *\\* )
9361 ac_sed_conf_input=`$as_echo "$configure_input" |
9362 sed 's/[\\\\&|]/\\\\&/g'`;; #(
9363 *) ac_sed_conf_input=$configure_input;;
9364 esac
9366 case $ac_tag in
9367 *:-:* | *:-) cat >"$ac_tmp/stdin" \
9368 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
9369 esac
9371 esac
9373 ac_dir=`$as_dirname -- "$ac_file" ||
9374 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9375 X"$ac_file" : 'X\(//\)[^/]' \| \
9376 X"$ac_file" : 'X\(//\)$' \| \
9377 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9378 $as_echo X"$ac_file" |
9379 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9380 s//\1/
9383 /^X\(\/\/\)[^/].*/{
9384 s//\1/
9387 /^X\(\/\/\)$/{
9388 s//\1/
9391 /^X\(\/\).*/{
9392 s//\1/
9395 s/.*/./; q'`
9396 as_dir="$ac_dir"; as_fn_mkdir_p
9397 ac_builddir=.
9399 case "$ac_dir" in
9400 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9402 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
9403 # A ".." for each directory in $ac_dir_suffix.
9404 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
9405 case $ac_top_builddir_sub in
9406 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9407 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9408 esac ;;
9409 esac
9410 ac_abs_top_builddir=$ac_pwd
9411 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9412 # for backward compatibility:
9413 ac_top_builddir=$ac_top_build_prefix
9415 case $srcdir in
9416 .) # We are building in place.
9417 ac_srcdir=.
9418 ac_top_srcdir=$ac_top_builddir_sub
9419 ac_abs_top_srcdir=$ac_pwd ;;
9420 [\\/]* | ?:[\\/]* ) # Absolute name.
9421 ac_srcdir=$srcdir$ac_dir_suffix;
9422 ac_top_srcdir=$srcdir
9423 ac_abs_top_srcdir=$srcdir ;;
9424 *) # Relative name.
9425 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9426 ac_top_srcdir=$ac_top_build_prefix$srcdir
9427 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9428 esac
9429 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9432 case $ac_mode in
9435 # CONFIG_FILE
9438 case $INSTALL in
9439 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9440 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9441 esac
9442 ac_MKDIR_P=$MKDIR_P
9443 case $MKDIR_P in
9444 [\\/$]* | ?:[\\/]* ) ;;
9445 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
9446 esac
9447 _ACEOF
9449 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9450 # If the template does not know about datarootdir, expand it.
9451 # FIXME: This hack should be removed a few years after 2.60.
9452 ac_datarootdir_hack=; ac_datarootdir_seen=
9453 ac_sed_dataroot='
9454 /datarootdir/ {
9458 /@datadir@/p
9459 /@docdir@/p
9460 /@infodir@/p
9461 /@localedir@/p
9462 /@mandir@/p'
9463 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
9464 *datarootdir*) ac_datarootdir_seen=yes;;
9465 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9466 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9467 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9468 _ACEOF
9469 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9470 ac_datarootdir_hack='
9471 s&@datadir@&$datadir&g
9472 s&@docdir@&$docdir&g
9473 s&@infodir@&$infodir&g
9474 s&@localedir@&$localedir&g
9475 s&@mandir@&$mandir&g
9476 s&\\\${datarootdir}&$datarootdir&g' ;;
9477 esac
9478 _ACEOF
9480 # Neutralize VPATH when `$srcdir' = `.'.
9481 # Shell code in configure.ac might set extrasub.
9482 # FIXME: do we really want to maintain this feature?
9483 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
9484 ac_sed_extra="$ac_vpsub
9485 $extrasub
9486 _ACEOF
9487 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
9489 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9490 s|@configure_input@|$ac_sed_conf_input|;t t
9491 s&@top_builddir@&$ac_top_builddir_sub&;t t
9492 s&@top_build_prefix@&$ac_top_build_prefix&;t t
9493 s&@srcdir@&$ac_srcdir&;t t
9494 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9495 s&@top_srcdir@&$ac_top_srcdir&;t t
9496 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9497 s&@builddir@&$ac_builddir&;t t
9498 s&@abs_builddir@&$ac_abs_builddir&;t t
9499 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9500 s&@INSTALL@&$ac_INSTALL&;t t
9501 s&@MKDIR_P@&$ac_MKDIR_P&;t t
9502 $ac_datarootdir_hack
9504 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
9505 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9507 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9508 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
9509 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
9510 "$ac_tmp/out"`; test -z "$ac_out"; } &&
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9512 which seems to be undefined. Please make sure it is defined" >&5
9513 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9514 which seems to be undefined. Please make sure it is defined" >&2;}
9516 rm -f "$ac_tmp/stdin"
9517 case $ac_file in
9518 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
9519 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
9520 esac \
9521 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9525 # CONFIG_HEADER
9527 if test x"$ac_file" != x-; then
9529 $as_echo "/* $configure_input */" \
9530 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
9531 } >"$ac_tmp/config.h" \
9532 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9533 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
9534 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
9535 $as_echo "$as_me: $ac_file is unchanged" >&6;}
9536 else
9537 rm -f "$ac_file"
9538 mv "$ac_tmp/config.h" "$ac_file" \
9539 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
9541 else
9542 $as_echo "/* $configure_input */" \
9543 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
9544 || as_fn_error $? "could not create -" "$LINENO" 5
9546 # Compute "$ac_file"'s index in $config_headers.
9547 _am_arg="$ac_file"
9548 _am_stamp_count=1
9549 for _am_header in $config_headers :; do
9550 case $_am_header in
9551 $_am_arg | $_am_arg:* )
9552 break ;;
9554 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
9555 esac
9556 done
9557 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
9558 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9559 X"$_am_arg" : 'X\(//\)[^/]' \| \
9560 X"$_am_arg" : 'X\(//\)$' \| \
9561 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
9562 $as_echo X"$_am_arg" |
9563 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9564 s//\1/
9567 /^X\(\/\/\)[^/].*/{
9568 s//\1/
9571 /^X\(\/\/\)$/{
9572 s//\1/
9575 /^X\(\/\).*/{
9576 s//\1/
9579 s/.*/./; q'`/stamp-h$_am_stamp_count
9582 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
9583 $as_echo "$as_me: executing $ac_file commands" >&6;}
9585 esac
9588 case $ac_file$ac_mode in
9589 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
9590 # Autoconf 2.62 quotes --file arguments for eval, but not when files
9591 # are listed without --file. Let's play safe and only enable the eval
9592 # if we detect the quoting.
9593 case $CONFIG_FILES in
9594 *\'*) eval set x "$CONFIG_FILES" ;;
9595 *) set x $CONFIG_FILES ;;
9596 esac
9597 shift
9598 for mf
9600 # Strip MF so we end up with the name of the file.
9601 mf=`echo "$mf" | sed -e 's/:.*$//'`
9602 # Check whether this is an Automake generated Makefile or not.
9603 # We used to match only the files named `Makefile.in', but
9604 # some people rename them; so instead we look at the file content.
9605 # Grep'ing the first line is not enough: some people post-process
9606 # each Makefile.in and add a new line on top of each file to say so.
9607 # Grep'ing the whole file is not good either: AIX grep has a line
9608 # limit of 2048, but all sed's we know have understand at least 4000.
9609 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
9610 dirpart=`$as_dirname -- "$mf" ||
9611 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9612 X"$mf" : 'X\(//\)[^/]' \| \
9613 X"$mf" : 'X\(//\)$' \| \
9614 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
9615 $as_echo X"$mf" |
9616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9617 s//\1/
9620 /^X\(\/\/\)[^/].*/{
9621 s//\1/
9624 /^X\(\/\/\)$/{
9625 s//\1/
9628 /^X\(\/\).*/{
9629 s//\1/
9632 s/.*/./; q'`
9633 else
9634 continue
9636 # Extract the definition of DEPDIR, am__include, and am__quote
9637 # from the Makefile without running `make'.
9638 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
9639 test -z "$DEPDIR" && continue
9640 am__include=`sed -n 's/^am__include = //p' < "$mf"`
9641 test -z "am__include" && continue
9642 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
9643 # When using ansi2knr, U may be empty or an underscore; expand it
9644 U=`sed -n 's/^U = //p' < "$mf"`
9645 # Find all dependency output files, they are included files with
9646 # $(DEPDIR) in their names. We invoke sed twice because it is the
9647 # simplest approach to changing $(DEPDIR) to its actual value in the
9648 # expansion.
9649 for file in `sed -n "
9650 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
9651 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
9652 # Make sure the directory exists.
9653 test -f "$dirpart/$file" && continue
9654 fdir=`$as_dirname -- "$file" ||
9655 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9656 X"$file" : 'X\(//\)[^/]' \| \
9657 X"$file" : 'X\(//\)$' \| \
9658 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
9659 $as_echo X"$file" |
9660 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9661 s//\1/
9664 /^X\(\/\/\)[^/].*/{
9665 s//\1/
9668 /^X\(\/\/\)$/{
9669 s//\1/
9672 /^X\(\/\).*/{
9673 s//\1/
9676 s/.*/./; q'`
9677 as_dir=$dirpart/$fdir; as_fn_mkdir_p
9678 # echo "creating $dirpart/$file"
9679 echo '# dummy' > "$dirpart/$file"
9680 done
9681 done
9684 "po-directories":C)
9685 for ac_file in $CONFIG_FILES; do
9686 # Support "outfile[:infile[:infile...]]"
9687 case "$ac_file" in
9688 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
9689 esac
9690 # PO directories have a Makefile.in generated from Makefile.in.in.
9691 case "$ac_file" in */Makefile.in)
9692 # Adjust a relative srcdir.
9693 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
9694 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
9695 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
9696 # In autoconf-2.13 it is called $ac_given_srcdir.
9697 # In autoconf-2.50 it is called $srcdir.
9698 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
9699 case "$ac_given_srcdir" in
9700 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
9701 /*) top_srcdir="$ac_given_srcdir" ;;
9702 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
9703 esac
9704 # Treat a directory as a PO directory if and only if it has a
9705 # POTFILES.in file. This allows packages to have multiple PO
9706 # directories under different names or in different locations.
9707 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
9708 rm -f "$ac_dir/POTFILES"
9709 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
9710 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
9711 POMAKEFILEDEPS="POTFILES.in"
9712 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend
9713 # on $ac_dir but don't depend on user-specified configuration
9714 # parameters.
9715 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
9716 # The LINGUAS file contains the set of available languages.
9717 if test -n "$OBSOLETE_ALL_LINGUAS"; then
9718 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
9720 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
9721 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9722 eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
9723 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
9724 else
9725 # The set of available languages was given in configure.in.
9726 # Hide the ALL_LINGUAS assigment from automake < 1.5.
9727 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS'
9729 # Compute POFILES
9730 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po)
9731 # Compute UPDATEPOFILES
9732 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update)
9733 # Compute DUMMYPOFILES
9734 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop)
9735 # Compute GMOFILES
9736 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo)
9737 case "$ac_given_srcdir" in
9738 .) srcdirpre= ;;
9739 *) srcdirpre='$(srcdir)/' ;;
9740 esac
9741 POFILES=
9742 UPDATEPOFILES=
9743 DUMMYPOFILES=
9744 GMOFILES=
9745 for lang in $ALL_LINGUAS; do
9746 POFILES="$POFILES $srcdirpre$lang.po"
9747 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update"
9748 DUMMYPOFILES="$DUMMYPOFILES $lang.nop"
9749 GMOFILES="$GMOFILES $srcdirpre$lang.gmo"
9750 done
9751 # CATALOGS depends on both $ac_dir and the user's LINGUAS
9752 # environment variable.
9753 INST_LINGUAS=
9754 if test -n "$ALL_LINGUAS"; then
9755 for presentlang in $ALL_LINGUAS; do
9756 useit=no
9757 if test "%UNSET%" != "$LINGUAS"; then
9758 desiredlanguages="$LINGUAS"
9759 else
9760 desiredlanguages="$ALL_LINGUAS"
9762 for desiredlang in $desiredlanguages; do
9763 # Use the presentlang catalog if desiredlang is
9764 # a. equal to presentlang, or
9765 # b. a variant of presentlang (because in this case,
9766 # presentlang can be used as a fallback for messages
9767 # which are not translated in the desiredlang catalog).
9768 case "$desiredlang" in
9769 "$presentlang"*) useit=yes;;
9770 esac
9771 done
9772 if test $useit = yes; then
9773 INST_LINGUAS="$INST_LINGUAS $presentlang"
9775 done
9777 CATALOGS=
9778 if test -n "$INST_LINGUAS"; then
9779 for lang in $INST_LINGUAS; do
9780 CATALOGS="$CATALOGS $lang.gmo"
9781 done
9783 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
9784 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"
9785 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do
9786 if test -f "$f"; then
9787 case "$f" in
9788 *.orig | *.bak | *~) ;;
9789 *) cat "$f" >> "$ac_dir/Makefile" ;;
9790 esac
9792 done
9795 esac
9796 done ;;
9798 esac
9799 done # for ac_tag
9802 as_fn_exit 0
9803 _ACEOF
9804 ac_clean_files=$ac_clean_files_save
9806 test $ac_write_fail = 0 ||
9807 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
9810 # configure is writing to config.log, and then calls config.status.
9811 # config.status does its own redirection, appending to config.log.
9812 # Unfortunately, on DOS this fails, as config.log is still kept open
9813 # by configure, so config.status won't be able to write to it; its
9814 # output is simply discarded. So we exec the FD to /dev/null,
9815 # effectively closing config.log, so it can be properly (re)opened and
9816 # appended to by config.status. When coming back to configure, we
9817 # need to make the FD available again.
9818 if test "$no_create" != yes; then
9819 ac_cs_success=:
9820 ac_config_status_args=
9821 test "$silent" = yes &&
9822 ac_config_status_args="$ac_config_status_args --quiet"
9823 exec 5>/dev/null
9824 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
9825 exec 5>>config.log
9826 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
9827 # would make configure fail if this is the last instruction.
9828 $ac_cs_success || as_fn_exit 1
9830 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
9831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
9832 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}