PCem

view configure @ 154:d0d530adce12

Initial port to Linux (using Allegro). 64-bit fixes. Some changes to aid portability. A few other tweaks.
author TomW
date Thu Sep 04 21:07:24 2014 +0100
parents
children e0714e10b44e
line source
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for PCem v9.
4 #
5 # Report bugs to <Tom Walker <tommowalker@tommowalker.co.uk>>.
6 #
7 #
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
10 # Inc.
11 #
12 #
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE=1; export DUALCASE # for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 emulate sh
23 NULLCMD=:
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
27 setopt NO_GLOB_SUBST
28 else
29 case `(set -o) 2>/dev/null` in #(
30 *posix*) :
31 set -o posix ;; #(
32 *) :
33 ;;
34 esac
35 fi
38 as_nl='
39 '
40 export as_nl
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49 as_echo='print -r --'
50 as_echo_n='print -rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52 as_echo='printf %s\n'
53 as_echo_n='printf %s'
54 else
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57 as_echo_n='/usr/ucb/echo -n'
58 else
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 as_echo_n_body='eval
61 arg=$1;
62 case $arg in #(
63 *"$as_nl"*)
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66 esac;
67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 '
69 export as_echo_n_body
70 as_echo_n='sh -c $as_echo_n_body as_echo'
71 fi
72 export as_echo_body
73 as_echo='sh -c $as_echo_body as_echo'
74 fi
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
78 PATH_SEPARATOR=:
79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81 PATH_SEPARATOR=';'
82 }
83 fi
86 # IFS
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
91 IFS=" "" $as_nl"
93 # Find who we are. Look in the path if we contain no directory separator.
94 case $0 in #((
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 for as_dir in $PATH
98 do
99 IFS=$as_save_IFS
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102 done
103 IFS=$as_save_IFS
105 ;;
106 esac
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x; then
110 as_myself=$0
111 fi
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 exit 1
115 fi
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\${$as_var+set} = xset \
123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124 done
125 PS1='$ '
126 PS2='> '
127 PS4='+ '
129 # NLS nuisances.
130 LC_ALL=C
131 export LC_ALL
132 LANGUAGE=C
133 export LANGUAGE
135 # CDPATH.
136 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x; then
139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140 emulate sh
141 NULLCMD=:
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
145 setopt NO_GLOB_SUBST
146 else
147 case \`(set -o) 2>/dev/null\` in #(
148 *posix*) :
149 set -o posix ;; #(
150 *) :
151 ;;
152 esac
153 fi
154 "
155 as_required="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
161 exitcode=0
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 else
169 exitcode=1; echo positional parameters were not saved.
170 fi
171 test x\$exitcode = x0 || exit 1"
172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183 else
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
185 as_found=false
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
187 do
188 IFS=$as_save_IFS
189 test -z "$as_dir" && as_dir=.
190 as_found=:
191 case $as_dir in #(
192 /*)
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
200 break 2
201 fi
202 fi
203 done;;
204 esac
205 as_found=false
206 done
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
210 fi; }
211 IFS=$as_save_IFS
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 BASH_ENV=/dev/null
219 ENV=/dev/null
220 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
221 export CONFIG_SHELL
222 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
223 fi
225 if test x$as_have_required = xno; then :
226 $as_echo "$0: This script requires a shell more modern than all"
227 $as_echo "$0: the shells that I found on your system."
228 if test x${ZSH_VERSION+set} = xset ; then
229 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
230 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
231 else
232 $as_echo "$0: Please tell bug-autoconf@gnu.org and Tom Walker
233 $0: <tommowalker@tommowalker.co.uk> about your system,
234 $0: including any error possibly output before this
235 $0: message. Then install a modern shell, or manually run
236 $0: the script under such a shell if you do have one."
237 fi
238 exit 1
239 fi
240 fi
241 fi
242 SHELL=${CONFIG_SHELL-/bin/sh}
243 export SHELL
244 # Unset more variables known to interfere with behavior of common tools.
245 CLICOLOR_FORCE= GREP_OPTIONS=
246 unset CLICOLOR_FORCE GREP_OPTIONS
248 ## --------------------- ##
249 ## M4sh Shell Functions. ##
250 ## --------------------- ##
251 # as_fn_unset VAR
252 # ---------------
253 # Portably unset VAR.
254 as_fn_unset ()
255 {
256 { eval $1=; unset $1;}
257 }
258 as_unset=as_fn_unset
260 # as_fn_set_status STATUS
261 # -----------------------
262 # Set $? to STATUS, without forking.
263 as_fn_set_status ()
264 {
265 return $1
266 } # as_fn_set_status
268 # as_fn_exit STATUS
269 # -----------------
270 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
271 as_fn_exit ()
272 {
273 set +e
274 as_fn_set_status $1
275 exit $1
276 } # as_fn_exit
278 # as_fn_mkdir_p
279 # -------------
280 # Create "$as_dir" as a directory, including parents if necessary.
281 as_fn_mkdir_p ()
282 {
284 case $as_dir in #(
285 -*) as_dir=./$as_dir;;
286 esac
287 test -d "$as_dir" || eval $as_mkdir_p || {
288 as_dirs=
289 while :; do
290 case $as_dir in #(
291 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
292 *) as_qdir=$as_dir;;
293 esac
294 as_dirs="'$as_qdir' $as_dirs"
295 as_dir=`$as_dirname -- "$as_dir" ||
296 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
297 X"$as_dir" : 'X\(//\)[^/]' \| \
298 X"$as_dir" : 'X\(//\)$' \| \
299 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
300 $as_echo X"$as_dir" |
301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
302 s//\1/
303 q
304 }
305 /^X\(\/\/\)[^/].*/{
306 s//\1/
307 q
308 }
309 /^X\(\/\/\)$/{
310 s//\1/
311 q
312 }
313 /^X\(\/\).*/{
314 s//\1/
315 q
316 }
317 s/.*/./; q'`
318 test -d "$as_dir" && break
319 done
320 test -z "$as_dirs" || eval "mkdir $as_dirs"
321 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
324 } # as_fn_mkdir_p
325 # as_fn_append VAR VALUE
326 # ----------------------
327 # Append the text in VALUE to the end of the definition contained in VAR. Take
328 # advantage of any shell optimizations that allow amortized linear growth over
329 # repeated appends, instead of the typical quadratic growth present in naive
330 # implementations.
331 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
332 eval 'as_fn_append ()
333 {
334 eval $1+=\$2
335 }'
336 else
337 as_fn_append ()
338 {
339 eval $1=\$$1\$2
340 }
341 fi # as_fn_append
343 # as_fn_arith ARG...
344 # ------------------
345 # Perform arithmetic evaluation on the ARGs, and store the result in the
346 # global $as_val. Take advantage of shells that can avoid forks. The arguments
347 # must be portable across $(()) and expr.
348 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
349 eval 'as_fn_arith ()
350 {
351 as_val=$(( $* ))
352 }'
353 else
354 as_fn_arith ()
355 {
356 as_val=`expr "$@" || test $? -eq 1`
357 }
358 fi # as_fn_arith
361 # as_fn_error ERROR [LINENO LOG_FD]
362 # ---------------------------------
363 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
364 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
365 # script with status $?, using 1 if that was 0.
366 as_fn_error ()
367 {
368 as_status=$?; test $as_status -eq 0 && as_status=1
369 if test "$3"; then
370 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
371 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
372 fi
373 $as_echo "$as_me: error: $1" >&2
374 as_fn_exit $as_status
375 } # as_fn_error
377 if expr a : '\(a\)' >/dev/null 2>&1 &&
378 test "X`expr 00001 : '.*\(...\)'`" = X001; then
379 as_expr=expr
380 else
381 as_expr=false
382 fi
384 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
385 as_basename=basename
386 else
387 as_basename=false
388 fi
390 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
391 as_dirname=dirname
392 else
393 as_dirname=false
394 fi
396 as_me=`$as_basename -- "$0" ||
397 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
398 X"$0" : 'X\(//\)$' \| \
399 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
400 $as_echo X/"$0" |
401 sed '/^.*\/\([^/][^/]*\)\/*$/{
402 s//\1/
403 q
404 }
405 /^X\/\(\/\/\)$/{
406 s//\1/
407 q
408 }
409 /^X\/\(\/\).*/{
410 s//\1/
411 q
412 }
413 s/.*/./; q'`
415 # Avoid depending upon Character Ranges.
416 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
417 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
418 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
419 as_cr_digits='0123456789'
420 as_cr_alnum=$as_cr_Letters$as_cr_digits
423 as_lineno_1=$LINENO as_lineno_1a=$LINENO
424 as_lineno_2=$LINENO as_lineno_2a=$LINENO
425 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
426 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
427 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
428 sed -n '
429 p
430 /[$]LINENO/=
431 ' <$as_myself |
432 sed '
433 s/[$]LINENO.*/&-/
434 t lineno
435 b
436 :lineno
437 N
438 :loop
439 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
440 t loop
441 s/-\n.*//
442 ' >$as_me.lineno &&
443 chmod +x "$as_me.lineno" ||
444 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446 # Don't try to exec as it changes $[0], causing all sort of problems
447 # (the dirname of $[0] is not the place where we might find the
448 # original and so on. Autoconf is especially sensitive to this).
449 . "./$as_me.lineno"
450 # Exit status is that of the last command.
451 exit
452 }
454 ECHO_C= ECHO_N= ECHO_T=
455 case `echo -n x` in #(((((
456 -n*)
457 case `echo 'xy\c'` in
458 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
459 xy) ECHO_C='\c';;
460 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
461 ECHO_T=' ';;
462 esac;;
463 *)
464 ECHO_N='-n';;
465 esac
467 rm -f conf$$ conf$$.exe conf$$.file
468 if test -d conf$$.dir; then
469 rm -f conf$$.dir/conf$$.file
470 else
471 rm -f conf$$.dir
472 mkdir conf$$.dir 2>/dev/null
473 fi
474 if (echo >conf$$.file) 2>/dev/null; then
475 if ln -s conf$$.file conf$$ 2>/dev/null; then
476 as_ln_s='ln -s'
477 # ... but there are two gotchas:
478 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
479 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
480 # In both cases, we have to default to `cp -p'.
481 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
482 as_ln_s='cp -p'
483 elif ln conf$$.file conf$$ 2>/dev/null; then
484 as_ln_s=ln
485 else
486 as_ln_s='cp -p'
487 fi
488 else
489 as_ln_s='cp -p'
490 fi
491 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
492 rmdir conf$$.dir 2>/dev/null
494 if mkdir -p . 2>/dev/null; then
495 as_mkdir_p='mkdir -p "$as_dir"'
496 else
497 test -d ./-p && rmdir ./-p
498 as_mkdir_p=false
499 fi
501 if test -x / >/dev/null 2>&1; then
502 as_test_x='test -x'
503 else
504 if ls -dL / >/dev/null 2>&1; then
505 as_ls_L_option=L
506 else
507 as_ls_L_option=
508 fi
509 as_test_x='
510 eval sh -c '\''
511 if test -d "$1"; then
512 test -d "$1/.";
513 else
514 case $1 in #(
515 -*)set "./$1";;
516 esac;
517 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
518 ???[sx]*):;;*)false;;esac;fi
519 '\'' sh
520 '
521 fi
522 as_executable_p=$as_test_x
524 # Sed expression to map a string onto a valid CPP name.
525 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527 # Sed expression to map a string onto a valid variable name.
528 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
531 test -n "$DJDIR" || exec 7<&0 </dev/null
532 exec 6>&1
534 # Name of the host.
535 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
536 # so uname gets run too.
537 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539 #
540 # Initializations.
541 #
542 ac_default_prefix=/usr/local
543 ac_clean_files=
544 ac_config_libobj_dir=.
545 LIBOBJS=
546 cross_compiling=no
547 subdirs=
548 MFLAGS=
549 MAKEFLAGS=
551 # Identity of this package.
552 PACKAGE_NAME='PCem'
553 PACKAGE_TARNAME='pcem'
554 PACKAGE_VERSION='v9'
555 PACKAGE_STRING='PCem v9'
556 PACKAGE_BUGREPORT='Tom Walker <tommowalker@tommowalker.co.uk>'
557 PACKAGE_URL=''
559 ac_subst_vars='am__EXEEXT_FALSE
560 am__EXEEXT_TRUE
561 LTLIBOBJS
562 LIBOBJS
563 allegro_LIBS
564 allegro_CFLAGS
565 ALLEGRO_CONFIG
566 OS_LINUX_FALSE
567 OS_LINUX_TRUE
568 OS_WIN_FALSE
569 OS_WIN_TRUE
570 am__fastdepCXX_FALSE
571 am__fastdepCXX_TRUE
572 CXXDEPMODE
573 ac_ct_CXX
574 CXXFLAGS
575 CXX
576 am__fastdepCC_FALSE
577 am__fastdepCC_TRUE
578 CCDEPMODE
579 AMDEPBACKSLASH
580 AMDEP_FALSE
581 AMDEP_TRUE
582 am__quote
583 am__include
584 DEPDIR
585 OBJEXT
586 EXEEXT
587 ac_ct_CC
588 CPPFLAGS
589 LDFLAGS
590 CFLAGS
591 CC
592 am__untar
593 am__tar
594 AMTAR
595 am__leading_dot
596 SET_MAKE
597 AWK
598 mkdir_p
599 MKDIR_P
600 INSTALL_STRIP_PROGRAM
601 STRIP
602 install_sh
603 MAKEINFO
604 AUTOHEADER
605 AUTOMAKE
606 AUTOCONF
607 ACLOCAL
608 VERSION
609 PACKAGE
610 CYGPATH_W
611 am__isrc
612 INSTALL_DATA
613 INSTALL_SCRIPT
614 INSTALL_PROGRAM
615 target_alias
616 host_alias
617 build_alias
618 LIBS
619 ECHO_T
620 ECHO_N
621 ECHO_C
622 DEFS
623 mandir
624 localedir
625 libdir
626 psdir
627 pdfdir
628 dvidir
629 htmldir
630 infodir
631 docdir
632 oldincludedir
633 includedir
634 localstatedir
635 sharedstatedir
636 sysconfdir
637 datadir
638 datarootdir
639 libexecdir
640 sbindir
641 bindir
642 program_transform_name
643 prefix
644 exec_prefix
645 PACKAGE_URL
646 PACKAGE_BUGREPORT
647 PACKAGE_STRING
648 PACKAGE_VERSION
649 PACKAGE_TARNAME
650 PACKAGE_NAME
651 PATH_SEPARATOR
652 SHELL'
653 ac_subst_files=''
654 ac_user_opts='
655 enable_option_checking
656 enable_dependency_tracking
657 enable_debug
658 with_allegro_prefix
659 with_allegro_exec_prefix
660 enable_allegrotest
661 '
662 ac_precious_vars='build_alias
663 host_alias
664 target_alias
665 CC
666 CFLAGS
667 LDFLAGS
668 LIBS
669 CPPFLAGS
670 CXX
671 CXXFLAGS
672 CCC'
675 # Initialize some variables set by options.
676 ac_init_help=
677 ac_init_version=false
678 ac_unrecognized_opts=
679 ac_unrecognized_sep=
680 # The variables have the same names as the options, with
681 # dashes changed to underlines.
682 cache_file=/dev/null
683 exec_prefix=NONE
684 no_create=
685 no_recursion=
686 prefix=NONE
687 program_prefix=NONE
688 program_suffix=NONE
689 program_transform_name=s,x,x,
690 silent=
691 site=
692 srcdir=
693 verbose=
694 x_includes=NONE
695 x_libraries=NONE
697 # Installation directory options.
698 # These are left unexpanded so users can "make install exec_prefix=/foo"
699 # and all the variables that are supposed to be based on exec_prefix
700 # by default will actually change.
701 # Use braces instead of parens because sh, perl, etc. also accept them.
702 # (The list follows the same order as the GNU Coding Standards.)
703 bindir='${exec_prefix}/bin'
704 sbindir='${exec_prefix}/sbin'
705 libexecdir='${exec_prefix}/libexec'
706 datarootdir='${prefix}/share'
707 datadir='${datarootdir}'
708 sysconfdir='${prefix}/etc'
709 sharedstatedir='${prefix}/com'
710 localstatedir='${prefix}/var'
711 includedir='${prefix}/include'
712 oldincludedir='/usr/include'
713 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
714 infodir='${datarootdir}/info'
715 htmldir='${docdir}'
716 dvidir='${docdir}'
717 pdfdir='${docdir}'
718 psdir='${docdir}'
719 libdir='${exec_prefix}/lib'
720 localedir='${datarootdir}/locale'
721 mandir='${datarootdir}/man'
723 ac_prev=
724 ac_dashdash=
725 for ac_option
726 do
727 # If the previous option needs an argument, assign it.
728 if test -n "$ac_prev"; then
729 eval $ac_prev=\$ac_option
730 ac_prev=
731 continue
732 fi
734 case $ac_option in
735 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
736 *) ac_optarg=yes ;;
737 esac
739 # Accept the important Cygnus configure options, so we can diagnose typos.
741 case $ac_dashdash$ac_option in
742 --)
743 ac_dashdash=yes ;;
745 -bindir | --bindir | --bindi | --bind | --bin | --bi)
746 ac_prev=bindir ;;
747 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
748 bindir=$ac_optarg ;;
750 -build | --build | --buil | --bui | --bu)
751 ac_prev=build_alias ;;
752 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
753 build_alias=$ac_optarg ;;
755 -cache-file | --cache-file | --cache-fil | --cache-fi \
756 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
757 ac_prev=cache_file ;;
758 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
759 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
760 cache_file=$ac_optarg ;;
762 --config-cache | -C)
763 cache_file=config.cache ;;
765 -datadir | --datadir | --datadi | --datad)
766 ac_prev=datadir ;;
767 -datadir=* | --datadir=* | --datadi=* | --datad=*)
768 datadir=$ac_optarg ;;
770 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
771 | --dataroo | --dataro | --datar)
772 ac_prev=datarootdir ;;
773 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
774 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
775 datarootdir=$ac_optarg ;;
777 -disable-* | --disable-*)
778 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
781 as_fn_error "invalid feature name: $ac_useropt"
782 ac_useropt_orig=$ac_useropt
783 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
784 case $ac_user_opts in
785 *"
786 "enable_$ac_useropt"
787 "*) ;;
788 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
789 ac_unrecognized_sep=', ';;
790 esac
791 eval enable_$ac_useropt=no ;;
793 -docdir | --docdir | --docdi | --doc | --do)
794 ac_prev=docdir ;;
795 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
796 docdir=$ac_optarg ;;
798 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
799 ac_prev=dvidir ;;
800 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
801 dvidir=$ac_optarg ;;
803 -enable-* | --enable-*)
804 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
805 # Reject names that are not valid shell variable names.
806 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
807 as_fn_error "invalid feature name: $ac_useropt"
808 ac_useropt_orig=$ac_useropt
809 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
810 case $ac_user_opts in
811 *"
812 "enable_$ac_useropt"
813 "*) ;;
814 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
815 ac_unrecognized_sep=', ';;
816 esac
817 eval enable_$ac_useropt=\$ac_optarg ;;
819 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
820 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
821 | --exec | --exe | --ex)
822 ac_prev=exec_prefix ;;
823 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
824 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
825 | --exec=* | --exe=* | --ex=*)
826 exec_prefix=$ac_optarg ;;
828 -gas | --gas | --ga | --g)
829 # Obsolete; use --with-gas.
830 with_gas=yes ;;
832 -help | --help | --hel | --he | -h)
833 ac_init_help=long ;;
834 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
835 ac_init_help=recursive ;;
836 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
837 ac_init_help=short ;;
839 -host | --host | --hos | --ho)
840 ac_prev=host_alias ;;
841 -host=* | --host=* | --hos=* | --ho=*)
842 host_alias=$ac_optarg ;;
844 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
845 ac_prev=htmldir ;;
846 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
847 | --ht=*)
848 htmldir=$ac_optarg ;;
850 -includedir | --includedir | --includedi | --included | --include \
851 | --includ | --inclu | --incl | --inc)
852 ac_prev=includedir ;;
853 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
854 | --includ=* | --inclu=* | --incl=* | --inc=*)
855 includedir=$ac_optarg ;;
857 -infodir | --infodir | --infodi | --infod | --info | --inf)
858 ac_prev=infodir ;;
859 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
860 infodir=$ac_optarg ;;
862 -libdir | --libdir | --libdi | --libd)
863 ac_prev=libdir ;;
864 -libdir=* | --libdir=* | --libdi=* | --libd=*)
865 libdir=$ac_optarg ;;
867 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
868 | --libexe | --libex | --libe)
869 ac_prev=libexecdir ;;
870 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
871 | --libexe=* | --libex=* | --libe=*)
872 libexecdir=$ac_optarg ;;
874 -localedir | --localedir | --localedi | --localed | --locale)
875 ac_prev=localedir ;;
876 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
877 localedir=$ac_optarg ;;
879 -localstatedir | --localstatedir | --localstatedi | --localstated \
880 | --localstate | --localstat | --localsta | --localst | --locals)
881 ac_prev=localstatedir ;;
882 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
883 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
884 localstatedir=$ac_optarg ;;
886 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
887 ac_prev=mandir ;;
888 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
889 mandir=$ac_optarg ;;
891 -nfp | --nfp | --nf)
892 # Obsolete; use --without-fp.
893 with_fp=no ;;
895 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
896 | --no-cr | --no-c | -n)
897 no_create=yes ;;
899 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
900 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
901 no_recursion=yes ;;
903 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
904 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
905 | --oldin | --oldi | --old | --ol | --o)
906 ac_prev=oldincludedir ;;
907 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
908 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
909 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
910 oldincludedir=$ac_optarg ;;
912 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
913 ac_prev=prefix ;;
914 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
915 prefix=$ac_optarg ;;
917 -program-prefix | --program-prefix | --program-prefi | --program-pref \
918 | --program-pre | --program-pr | --program-p)
919 ac_prev=program_prefix ;;
920 -program-prefix=* | --program-prefix=* | --program-prefi=* \
921 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
922 program_prefix=$ac_optarg ;;
924 -program-suffix | --program-suffix | --program-suffi | --program-suff \
925 | --program-suf | --program-su | --program-s)
926 ac_prev=program_suffix ;;
927 -program-suffix=* | --program-suffix=* | --program-suffi=* \
928 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
929 program_suffix=$ac_optarg ;;
931 -program-transform-name | --program-transform-name \
932 | --program-transform-nam | --program-transform-na \
933 | --program-transform-n | --program-transform- \
934 | --program-transform | --program-transfor \
935 | --program-transfo | --program-transf \
936 | --program-trans | --program-tran \
937 | --progr-tra | --program-tr | --program-t)
938 ac_prev=program_transform_name ;;
939 -program-transform-name=* | --program-transform-name=* \
940 | --program-transform-nam=* | --program-transform-na=* \
941 | --program-transform-n=* | --program-transform-=* \
942 | --program-transform=* | --program-transfor=* \
943 | --program-transfo=* | --program-transf=* \
944 | --program-trans=* | --program-tran=* \
945 | --progr-tra=* | --program-tr=* | --program-t=*)
946 program_transform_name=$ac_optarg ;;
948 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
949 ac_prev=pdfdir ;;
950 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
951 pdfdir=$ac_optarg ;;
953 -psdir | --psdir | --psdi | --psd | --ps)
954 ac_prev=psdir ;;
955 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
956 psdir=$ac_optarg ;;
958 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
959 | -silent | --silent | --silen | --sile | --sil)
960 silent=yes ;;
962 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
963 ac_prev=sbindir ;;
964 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
965 | --sbi=* | --sb=*)
966 sbindir=$ac_optarg ;;
968 -sharedstatedir | --sharedstatedir | --sharedstatedi \
969 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
970 | --sharedst | --shareds | --shared | --share | --shar \
971 | --sha | --sh)
972 ac_prev=sharedstatedir ;;
973 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
974 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
975 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
976 | --sha=* | --sh=*)
977 sharedstatedir=$ac_optarg ;;
979 -site | --site | --sit)
980 ac_prev=site ;;
981 -site=* | --site=* | --sit=*)
982 site=$ac_optarg ;;
984 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
985 ac_prev=srcdir ;;
986 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
987 srcdir=$ac_optarg ;;
989 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
990 | --syscon | --sysco | --sysc | --sys | --sy)
991 ac_prev=sysconfdir ;;
992 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
993 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
994 sysconfdir=$ac_optarg ;;
996 -target | --target | --targe | --targ | --tar | --ta | --t)
997 ac_prev=target_alias ;;
998 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
999 target_alias=$ac_optarg ;;
1001 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1002 verbose=yes ;;
1004 -version | --version | --versio | --versi | --vers | -V)
1005 ac_init_version=: ;;
1007 -with-* | --with-*)
1008 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1009 # Reject names that are not valid shell variable names.
1010 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1011 as_fn_error "invalid package name: $ac_useropt"
1012 ac_useropt_orig=$ac_useropt
1013 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1014 case $ac_user_opts in
1015 *"
1016 "with_$ac_useropt"
1017 "*) ;;
1018 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1019 ac_unrecognized_sep=', ';;
1020 esac
1021 eval with_$ac_useropt=\$ac_optarg ;;
1023 -without-* | --without-*)
1024 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1025 # Reject names that are not valid shell variable names.
1026 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1027 as_fn_error "invalid package name: $ac_useropt"
1028 ac_useropt_orig=$ac_useropt
1029 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1030 case $ac_user_opts in
1031 *"
1032 "with_$ac_useropt"
1033 "*) ;;
1034 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1035 ac_unrecognized_sep=', ';;
1036 esac
1037 eval with_$ac_useropt=no ;;
1039 --x)
1040 # Obsolete; use --with-x.
1041 with_x=yes ;;
1043 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1044 | --x-incl | --x-inc | --x-in | --x-i)
1045 ac_prev=x_includes ;;
1046 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1047 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1048 x_includes=$ac_optarg ;;
1050 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1051 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1052 ac_prev=x_libraries ;;
1053 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1054 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1055 x_libraries=$ac_optarg ;;
1057 -*) as_fn_error "unrecognized option: \`$ac_option'
1058 Try \`$0 --help' for more information."
1059 ;;
1061 *=*)
1062 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1063 # Reject names that are not valid shell variable names.
1064 case $ac_envvar in #(
1065 '' | [0-9]* | *[!_$as_cr_alnum]* )
1066 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1067 esac
1068 eval $ac_envvar=\$ac_optarg
1069 export $ac_envvar ;;
1071 *)
1072 # FIXME: should be removed in autoconf 3.0.
1073 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1074 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1076 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1077 ;;
1079 esac
1080 done
1082 if test -n "$ac_prev"; then
1083 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1084 as_fn_error "missing argument to $ac_option"
1085 fi
1087 if test -n "$ac_unrecognized_opts"; then
1088 case $enable_option_checking in
1089 no) ;;
1090 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1091 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1092 esac
1093 fi
1095 # Check all directory arguments for consistency.
1096 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1097 datadir sysconfdir sharedstatedir localstatedir includedir \
1098 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1099 libdir localedir mandir
1100 do
1101 eval ac_val=\$$ac_var
1102 # Remove trailing slashes.
1103 case $ac_val in
1104 */ )
1105 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1106 eval $ac_var=\$ac_val;;
1107 esac
1108 # Be sure to have absolute directory names.
1109 case $ac_val in
1110 [\\/$]* | ?:[\\/]* ) continue;;
1111 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1112 esac
1113 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1114 done
1116 # There might be people who depend on the old broken behavior: `$host'
1117 # used to hold the argument of --host etc.
1118 # FIXME: To remove some day.
1119 build=$build_alias
1120 host=$host_alias
1121 target=$target_alias
1123 # FIXME: To remove some day.
1124 if test "x$host_alias" != x; then
1125 if test "x$build_alias" = x; then
1126 cross_compiling=maybe
1127 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1128 If a cross compiler is detected then cross compile mode will be used." >&2
1129 elif test "x$build_alias" != "x$host_alias"; then
1130 cross_compiling=yes
1131 fi
1132 fi
1134 ac_tool_prefix=
1135 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1137 test "$silent" = yes && exec 6>/dev/null
1140 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1141 ac_ls_di=`ls -di .` &&
1142 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1143 as_fn_error "working directory cannot be determined"
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 as_fn_error "pwd does not report name of working directory"
1148 # Find the source files, if location was not specified.
1149 if test -z "$srcdir"; then
1150 ac_srcdir_defaulted=yes
1151 # Try the directory containing this script, then the parent directory.
1152 ac_confdir=`$as_dirname -- "$as_myself" ||
1153 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1154 X"$as_myself" : 'X\(//\)[^/]' \| \
1155 X"$as_myself" : 'X\(//\)$' \| \
1156 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1157 $as_echo X"$as_myself" |
1158 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1159 s//\1/
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1166 /^X\(\/\/\)$/{
1167 s//\1/
1170 /^X\(\/\).*/{
1171 s//\1/
1174 s/.*/./; q'`
1175 srcdir=$ac_confdir
1176 if test ! -r "$srcdir/$ac_unique_file"; then
1177 srcdir=..
1178 fi
1179 else
1180 ac_srcdir_defaulted=no
1181 fi
1182 if test ! -r "$srcdir/$ac_unique_file"; then
1183 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1184 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1185 fi
1186 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1187 ac_abs_confdir=`(
1188 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1189 pwd)`
1190 # When building in place, set srcdir=.
1191 if test "$ac_abs_confdir" = "$ac_pwd"; then
1192 srcdir=.
1193 fi
1194 # Remove unnecessary trailing slashes from srcdir.
1195 # Double slashes in file names in object file debugging info
1196 # mess up M-x gdb in Emacs.
1197 case $srcdir in
1198 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1199 esac
1200 for ac_var in $ac_precious_vars; do
1201 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1202 eval ac_env_${ac_var}_value=\$${ac_var}
1203 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1204 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1205 done
1208 # Report the --help message.
1210 if test "$ac_init_help" = "long"; then
1211 # Omit some internal or obsolete options to make the list less imposing.
1212 # This message is too long to be a string in the A/UX 3.1 sh.
1213 cat <<_ACEOF
1214 \`configure' configures PCem v9 to adapt to many kinds of systems.
1216 Usage: $0 [OPTION]... [VAR=VALUE]...
1218 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1219 VAR=VALUE. See below for descriptions of some of the useful variables.
1221 Defaults for the options are specified in brackets.
1223 Configuration:
1224 -h, --help display this help and exit
1225 --help=short display options specific to this package
1226 --help=recursive display the short help of all the included packages
1227 -V, --version display version information and exit
1228 -q, --quiet, --silent do not print \`checking...' messages
1229 --cache-file=FILE cache test results in FILE [disabled]
1230 -C, --config-cache alias for \`--cache-file=config.cache'
1231 -n, --no-create do not create output files
1232 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1234 Installation directories:
1235 --prefix=PREFIX install architecture-independent files in PREFIX
1236 [$ac_default_prefix]
1237 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1238 [PREFIX]
1240 By default, \`make install' will install all the files in
1241 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1242 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1243 for instance \`--prefix=\$HOME'.
1245 For better control, use the options below.
1247 Fine tuning of the installation directories:
1248 --bindir=DIR user executables [EPREFIX/bin]
1249 --sbindir=DIR system admin executables [EPREFIX/sbin]
1250 --libexecdir=DIR program executables [EPREFIX/libexec]
1251 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1252 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1253 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1254 --libdir=DIR object code libraries [EPREFIX/lib]
1255 --includedir=DIR C header files [PREFIX/include]
1256 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1257 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1258 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1259 --infodir=DIR info documentation [DATAROOTDIR/info]
1260 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1261 --mandir=DIR man documentation [DATAROOTDIR/man]
1262 --docdir=DIR documentation root [DATAROOTDIR/doc/pcem]
1263 --htmldir=DIR html documentation [DOCDIR]
1264 --dvidir=DIR dvi documentation [DOCDIR]
1265 --pdfdir=DIR pdf documentation [DOCDIR]
1266 --psdir=DIR ps documentation [DOCDIR]
1267 _ACEOF
1269 cat <<\_ACEOF
1271 Program names:
1272 --program-prefix=PREFIX prepend PREFIX to installed program names
1273 --program-suffix=SUFFIX append SUFFIX to installed program names
1274 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1275 _ACEOF
1276 fi
1278 if test -n "$ac_init_help"; then
1279 case $ac_init_help in
1280 short | recursive ) echo "Configuration of PCem v9:";;
1281 esac
1282 cat <<\_ACEOF
1284 Optional Features:
1285 --disable-option-checking ignore unrecognized --enable/--with options
1286 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1287 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1288 --disable-dependency-tracking speeds up one-time build
1289 --enable-dependency-tracking do not reject slow dependency extractors
1290 --enable-debug build debug executable
1291 --disable-allegrotest Do not try to compile and run a test LIBallegro program
1293 Optional Packages:
1294 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1295 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1296 --with-allegro-prefix=PFX Prefix where liballegro is installed (optional)
1297 --with-allegro-exec-prefix=PFX Exec prefix where liballegro is installed (optional)
1299 Some influential environment variables:
1300 CC C compiler command
1301 CFLAGS C compiler flags
1302 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1303 nonstandard directory <lib dir>
1304 LIBS libraries to pass to the linker, e.g. -l<library>
1305 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1306 you have headers in a nonstandard directory <include dir>
1307 CXX C++ compiler command
1308 CXXFLAGS C++ compiler flags
1310 Use these variables to override the choices made by `configure' or to help
1311 it to find libraries and programs with nonstandard names/locations.
1313 Report bugs to <Tom Walker <tommowalker@tommowalker.co.uk>>.
1314 _ACEOF
1315 ac_status=$?
1316 fi
1318 if test "$ac_init_help" = "recursive"; then
1319 # If there are subdirs, report their specific --help.
1320 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1321 test -d "$ac_dir" ||
1322 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1323 continue
1324 ac_builddir=.
1326 case "$ac_dir" in
1327 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1328 *)
1329 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1330 # A ".." for each directory in $ac_dir_suffix.
1331 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1332 case $ac_top_builddir_sub in
1333 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1334 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1335 esac ;;
1336 esac
1337 ac_abs_top_builddir=$ac_pwd
1338 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1339 # for backward compatibility:
1340 ac_top_builddir=$ac_top_build_prefix
1342 case $srcdir in
1343 .) # We are building in place.
1344 ac_srcdir=.
1345 ac_top_srcdir=$ac_top_builddir_sub
1346 ac_abs_top_srcdir=$ac_pwd ;;
1347 [\\/]* | ?:[\\/]* ) # Absolute name.
1348 ac_srcdir=$srcdir$ac_dir_suffix;
1349 ac_top_srcdir=$srcdir
1350 ac_abs_top_srcdir=$srcdir ;;
1351 *) # Relative name.
1352 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1353 ac_top_srcdir=$ac_top_build_prefix$srcdir
1354 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1355 esac
1356 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1358 cd "$ac_dir" || { ac_status=$?; continue; }
1359 # Check for guested configure.
1360 if test -f "$ac_srcdir/configure.gnu"; then
1361 echo &&
1362 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1363 elif test -f "$ac_srcdir/configure"; then
1364 echo &&
1365 $SHELL "$ac_srcdir/configure" --help=recursive
1366 else
1367 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1368 fi || ac_status=$?
1369 cd "$ac_pwd" || { ac_status=$?; break; }
1370 done
1371 fi
1373 test -n "$ac_init_help" && exit $ac_status
1374 if $ac_init_version; then
1375 cat <<\_ACEOF
1376 PCem configure v9
1377 generated by GNU Autoconf 2.65
1379 Copyright (C) 2009 Free Software Foundation, Inc.
1380 This configure script is free software; the Free Software Foundation
1381 gives unlimited permission to copy, distribute and modify it.
1382 _ACEOF
1383 exit
1384 fi
1386 ## ------------------------ ##
1387 ## Autoconf initialization. ##
1388 ## ------------------------ ##
1390 # ac_fn_c_try_compile LINENO
1391 # --------------------------
1392 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1393 ac_fn_c_try_compile ()
1395 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1396 rm -f conftest.$ac_objext
1397 if { { ac_try="$ac_compile"
1398 case "(($ac_try" in
1399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1400 *) ac_try_echo=$ac_try;;
1401 esac
1402 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1403 $as_echo "$ac_try_echo"; } >&5
1404 (eval "$ac_compile") 2>conftest.err
1405 ac_status=$?
1406 if test -s conftest.err; then
1407 grep -v '^ *+' conftest.err >conftest.er1
1408 cat conftest.er1 >&5
1409 mv -f conftest.er1 conftest.err
1410 fi
1411 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1412 test $ac_status = 0; } && {
1413 test -z "$ac_c_werror_flag" ||
1414 test ! -s conftest.err
1415 } && test -s conftest.$ac_objext; then :
1416 ac_retval=0
1417 else
1418 $as_echo "$as_me: failed program was:" >&5
1419 sed 's/^/| /' conftest.$ac_ext >&5
1421 ac_retval=1
1422 fi
1423 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1424 as_fn_set_status $ac_retval
1426 } # ac_fn_c_try_compile
1428 # ac_fn_cxx_try_compile LINENO
1429 # ----------------------------
1430 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1431 ac_fn_cxx_try_compile ()
1433 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1434 rm -f conftest.$ac_objext
1435 if { { ac_try="$ac_compile"
1436 case "(($ac_try" in
1437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1438 *) ac_try_echo=$ac_try;;
1439 esac
1440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1441 $as_echo "$ac_try_echo"; } >&5
1442 (eval "$ac_compile") 2>conftest.err
1443 ac_status=$?
1444 if test -s conftest.err; then
1445 grep -v '^ *+' conftest.err >conftest.er1
1446 cat conftest.er1 >&5
1447 mv -f conftest.er1 conftest.err
1448 fi
1449 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1450 test $ac_status = 0; } && {
1451 test -z "$ac_cxx_werror_flag" ||
1452 test ! -s conftest.err
1453 } && test -s conftest.$ac_objext; then :
1454 ac_retval=0
1455 else
1456 $as_echo "$as_me: failed program was:" >&5
1457 sed 's/^/| /' conftest.$ac_ext >&5
1459 ac_retval=1
1460 fi
1461 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1462 as_fn_set_status $ac_retval
1464 } # ac_fn_cxx_try_compile
1466 # ac_fn_c_try_run LINENO
1467 # ----------------------
1468 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1469 # that executables *can* be run.
1470 ac_fn_c_try_run ()
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 if { { ac_try="$ac_link"
1474 case "(($ac_try" in
1475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1476 *) ac_try_echo=$ac_try;;
1477 esac
1478 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1479 $as_echo "$ac_try_echo"; } >&5
1480 (eval "$ac_link") 2>&5
1481 ac_status=$?
1482 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1483 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1484 { { case "(($ac_try" in
1485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1486 *) ac_try_echo=$ac_try;;
1487 esac
1488 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1489 $as_echo "$ac_try_echo"; } >&5
1490 (eval "$ac_try") 2>&5
1491 ac_status=$?
1492 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1493 test $ac_status = 0; }; }; then :
1494 ac_retval=0
1495 else
1496 $as_echo "$as_me: program exited with status $ac_status" >&5
1497 $as_echo "$as_me: failed program was:" >&5
1498 sed 's/^/| /' conftest.$ac_ext >&5
1500 ac_retval=$ac_status
1501 fi
1502 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1503 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1504 as_fn_set_status $ac_retval
1506 } # ac_fn_c_try_run
1508 # ac_fn_c_try_link LINENO
1509 # -----------------------
1510 # Try to link conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_link ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext conftest$ac_exeext
1515 if { { ac_try="$ac_link"
1516 case "(($ac_try" in
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1519 esac
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_link") 2>conftest.err
1523 ac_status=$?
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1528 fi
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest$ac_exeext && {
1534 test "$cross_compiling" = yes ||
1535 $as_test_x conftest$ac_exeext
1536 }; then :
1537 ac_retval=0
1538 else
1539 $as_echo "$as_me: failed program was:" >&5
1540 sed 's/^/| /' conftest.$ac_ext >&5
1542 ac_retval=1
1543 fi
1544 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1545 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1546 # interfere with the next link command; also delete a directory that is
1547 # left behind by Apple's compiler. We do this before executing the actions.
1548 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1550 as_fn_set_status $ac_retval
1552 } # ac_fn_c_try_link
1553 cat >config.log <<_ACEOF
1554 This file contains any messages produced by compilers while
1555 running configure, to aid debugging if configure makes a mistake.
1557 It was created by PCem $as_me v9, which was
1558 generated by GNU Autoconf 2.65. Invocation command line was
1560 $ $0 $@
1562 _ACEOF
1563 exec 5>>config.log
1565 cat <<_ASUNAME
1566 ## --------- ##
1567 ## Platform. ##
1568 ## --------- ##
1570 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1571 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1572 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1573 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1574 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1576 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1577 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1579 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1580 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1581 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1582 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1583 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1584 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1585 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1587 _ASUNAME
1589 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1590 for as_dir in $PATH
1591 do
1592 IFS=$as_save_IFS
1593 test -z "$as_dir" && as_dir=.
1594 $as_echo "PATH: $as_dir"
1595 done
1596 IFS=$as_save_IFS
1598 } >&5
1600 cat >&5 <<_ACEOF
1603 ## ----------- ##
1604 ## Core tests. ##
1605 ## ----------- ##
1607 _ACEOF
1610 # Keep a trace of the command line.
1611 # Strip out --no-create and --no-recursion so they do not pile up.
1612 # Strip out --silent because we don't want to record it for future runs.
1613 # Also quote any args containing shell meta-characters.
1614 # Make two passes to allow for proper duplicate-argument suppression.
1615 ac_configure_args=
1616 ac_configure_args0=
1617 ac_configure_args1=
1618 ac_must_keep_next=false
1619 for ac_pass in 1 2
1620 do
1621 for ac_arg
1622 do
1623 case $ac_arg in
1624 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1625 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1626 | -silent | --silent | --silen | --sile | --sil)
1627 continue ;;
1628 *\'*)
1629 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1630 esac
1631 case $ac_pass in
1632 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1633 2)
1634 as_fn_append ac_configure_args1 " '$ac_arg'"
1635 if test $ac_must_keep_next = true; then
1636 ac_must_keep_next=false # Got value, back to normal.
1637 else
1638 case $ac_arg in
1639 *=* | --config-cache | -C | -disable-* | --disable-* \
1640 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1641 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1642 | -with-* | --with-* | -without-* | --without-* | --x)
1643 case "$ac_configure_args0 " in
1644 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1645 esac
1646 ;;
1647 -* ) ac_must_keep_next=true ;;
1648 esac
1649 fi
1650 as_fn_append ac_configure_args " '$ac_arg'"
1651 ;;
1652 esac
1653 done
1654 done
1655 { ac_configure_args0=; unset ac_configure_args0;}
1656 { ac_configure_args1=; unset ac_configure_args1;}
1658 # When interrupted or exit'd, cleanup temporary files, and complete
1659 # config.log. We remove comments because anyway the quotes in there
1660 # would cause problems or look ugly.
1661 # WARNING: Use '\'' to represent an apostrophe within the trap.
1662 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1663 trap 'exit_status=$?
1664 # Save into config.log some information that might help in debugging.
1666 echo
1668 cat <<\_ASBOX
1669 ## ---------------- ##
1670 ## Cache variables. ##
1671 ## ---------------- ##
1672 _ASBOX
1673 echo
1674 # The following way of writing the cache mishandles newlines in values,
1676 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1677 eval ac_val=\$$ac_var
1678 case $ac_val in #(
1679 *${as_nl}*)
1680 case $ac_var in #(
1681 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1682 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1683 esac
1684 case $ac_var in #(
1685 _ | IFS | as_nl) ;; #(
1686 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1687 *) { eval $ac_var=; unset $ac_var;} ;;
1688 esac ;;
1689 esac
1690 done
1691 (set) 2>&1 |
1692 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1693 *${as_nl}ac_space=\ *)
1694 sed -n \
1695 "s/'\''/'\''\\\\'\'''\''/g;
1696 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1697 ;; #(
1698 *)
1699 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1700 ;;
1701 esac |
1702 sort
1704 echo
1706 cat <<\_ASBOX
1707 ## ----------------- ##
1708 ## Output variables. ##
1709 ## ----------------- ##
1710 _ASBOX
1711 echo
1712 for ac_var in $ac_subst_vars
1713 do
1714 eval ac_val=\$$ac_var
1715 case $ac_val in
1716 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1717 esac
1718 $as_echo "$ac_var='\''$ac_val'\''"
1719 done | sort
1720 echo
1722 if test -n "$ac_subst_files"; then
1723 cat <<\_ASBOX
1724 ## ------------------- ##
1725 ## File substitutions. ##
1726 ## ------------------- ##
1727 _ASBOX
1728 echo
1729 for ac_var in $ac_subst_files
1730 do
1731 eval ac_val=\$$ac_var
1732 case $ac_val in
1733 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1734 esac
1735 $as_echo "$ac_var='\''$ac_val'\''"
1736 done | sort
1737 echo
1738 fi
1740 if test -s confdefs.h; then
1741 cat <<\_ASBOX
1742 ## ----------- ##
1743 ## confdefs.h. ##
1744 ## ----------- ##
1745 _ASBOX
1746 echo
1747 cat confdefs.h
1748 echo
1749 fi
1750 test "$ac_signal" != 0 &&
1751 $as_echo "$as_me: caught signal $ac_signal"
1752 $as_echo "$as_me: exit $exit_status"
1753 } >&5
1754 rm -f core *.core core.conftest.* &&
1755 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1756 exit $exit_status
1757 ' 0
1758 for ac_signal in 1 2 13 15; do
1759 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1760 done
1761 ac_signal=0
1763 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1764 rm -f -r conftest* confdefs.h
1766 $as_echo "/* confdefs.h */" > confdefs.h
1768 # Predefined preprocessor variables.
1770 cat >>confdefs.h <<_ACEOF
1771 #define PACKAGE_NAME "$PACKAGE_NAME"
1772 _ACEOF
1774 cat >>confdefs.h <<_ACEOF
1775 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1776 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1782 cat >>confdefs.h <<_ACEOF
1783 #define PACKAGE_STRING "$PACKAGE_STRING"
1784 _ACEOF
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 _ACEOF
1790 cat >>confdefs.h <<_ACEOF
1791 #define PACKAGE_URL "$PACKAGE_URL"
1792 _ACEOF
1795 # Let the site file select an alternate cache file if it wants to.
1796 # Prefer an explicitly selected file to automatically selected ones.
1797 ac_site_file1=NONE
1798 ac_site_file2=NONE
1799 if test -n "$CONFIG_SITE"; then
1800 ac_site_file1=$CONFIG_SITE
1801 elif test "x$prefix" != xNONE; then
1802 ac_site_file1=$prefix/share/config.site
1803 ac_site_file2=$prefix/etc/config.site
1804 else
1805 ac_site_file1=$ac_default_prefix/share/config.site
1806 ac_site_file2=$ac_default_prefix/etc/config.site
1807 fi
1808 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1809 do
1810 test "x$ac_site_file" = xNONE && continue
1811 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1812 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1813 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1814 sed 's/^/| /' "$ac_site_file" >&5
1815 . "$ac_site_file"
1816 fi
1817 done
1819 if test -r "$cache_file"; then
1820 # Some versions of bash will fail to source /dev/null (special files
1821 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1822 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1823 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1824 $as_echo "$as_me: loading cache $cache_file" >&6;}
1825 case $cache_file in
1826 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1827 *) . "./$cache_file";;
1828 esac
1829 fi
1830 else
1831 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1832 $as_echo "$as_me: creating cache $cache_file" >&6;}
1833 >$cache_file
1834 fi
1836 # Check that the precious variables saved in the cache have kept the same
1837 # value.
1838 ac_cache_corrupted=false
1839 for ac_var in $ac_precious_vars; do
1840 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1841 eval ac_new_set=\$ac_env_${ac_var}_set
1842 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1843 eval ac_new_val=\$ac_env_${ac_var}_value
1844 case $ac_old_set,$ac_new_set in
1845 set,)
1846 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1847 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1848 ac_cache_corrupted=: ;;
1849 ,set)
1850 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1851 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1852 ac_cache_corrupted=: ;;
1853 ,);;
1854 *)
1855 if test "x$ac_old_val" != "x$ac_new_val"; then
1856 # differences in whitespace do not lead to failure.
1857 ac_old_val_w=`echo x $ac_old_val`
1858 ac_new_val_w=`echo x $ac_new_val`
1859 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1860 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1861 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1862 ac_cache_corrupted=:
1863 else
1864 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1865 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1866 eval $ac_var=\$ac_old_val
1867 fi
1868 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
1869 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1870 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
1871 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1872 fi;;
1873 esac
1874 # Pass precious variables to config.status.
1875 if test "$ac_new_set" = set; then
1876 case $ac_new_val in
1877 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1878 *) ac_arg=$ac_var=$ac_new_val ;;
1879 esac
1880 case " $ac_configure_args " in
1881 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1882 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
1883 esac
1884 fi
1885 done
1886 if $ac_cache_corrupted; then
1887 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1888 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
1890 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1891 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
1892 fi
1893 ## -------------------- ##
1894 ## Main body of script. ##
1895 ## -------------------- ##
1897 ac_ext=c
1898 ac_cpp='$CPP $CPPFLAGS'
1899 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1900 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1901 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1905 am__api_version='1.11'
1907 ac_aux_dir=
1908 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1909 for ac_t in install-sh install.sh shtool; do
1910 if test -f "$ac_dir/$ac_t"; then
1911 ac_aux_dir=$ac_dir
1912 ac_install_sh="$ac_aux_dir/$ac_t -c"
1913 break 2
1914 fi
1915 done
1916 done
1917 if test -z "$ac_aux_dir"; then
1918 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
1919 fi
1921 # These three variables are undocumented and unsupported,
1922 # and are intended to be withdrawn in a future Autoconf release.
1923 # They can cause serious problems if a builder's source tree is in a directory
1924 # whose full name contains unusual characters.
1925 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1926 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1927 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1930 # Find a good install program. We prefer a C program (faster),
1931 # so one script is as good as another. But avoid the broken or
1932 # incompatible versions:
1933 # SysV /etc/install, /usr/sbin/install
1934 # SunOS /usr/etc/install
1935 # IRIX /sbin/install
1936 # AIX /bin/install
1937 # AmigaOS /C/install, which installs bootblocks on floppy discs
1938 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1939 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1940 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1941 # OS/2's system install, which has a completely different semantic
1942 # ./install, which can be erroneously created by make from ./install.sh.
1943 # Reject install programs that cannot install multiple files.
1944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
1945 $as_echo_n "checking for a BSD-compatible install... " >&6; }
1946 if test -z "$INSTALL"; then
1947 if test "${ac_cv_path_install+set}" = set; then :
1948 $as_echo_n "(cached) " >&6
1949 else
1950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1951 for as_dir in $PATH
1952 do
1953 IFS=$as_save_IFS
1954 test -z "$as_dir" && as_dir=.
1955 # Account for people who put trailing slashes in PATH elements.
1956 case $as_dir/ in #((
1957 ./ | .// | /[cC]/* | \
1958 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1959 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
1960 /usr/ucb/* ) ;;
1961 *)
1962 # OSF1 and SCO ODT 3.0 have their own names for install.
1963 # Don't use installbsd from OSF since it installs stuff as root
1964 # by default.
1965 for ac_prog in ginstall scoinst install; do
1966 for ac_exec_ext in '' $ac_executable_extensions; do
1967 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
1968 if test $ac_prog = install &&
1969 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1970 # AIX install. It has an incompatible calling convention.
1972 elif test $ac_prog = install &&
1973 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1974 # program-specific install script used by HP pwplus--don't use.
1976 else
1977 rm -rf conftest.one conftest.two conftest.dir
1978 echo one > conftest.one
1979 echo two > conftest.two
1980 mkdir conftest.dir
1981 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
1982 test -s conftest.one && test -s conftest.two &&
1983 test -s conftest.dir/conftest.one &&
1984 test -s conftest.dir/conftest.two
1985 then
1986 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1987 break 3
1988 fi
1989 fi
1990 fi
1991 done
1992 done
1993 ;;
1994 esac
1996 done
1997 IFS=$as_save_IFS
1999 rm -rf conftest.one conftest.two conftest.dir
2001 fi
2002 if test "${ac_cv_path_install+set}" = set; then
2003 INSTALL=$ac_cv_path_install
2004 else
2005 # As a last resort, use the slow shell script. Don't cache a
2006 # value for INSTALL within a source directory, because that will
2007 # break other packages using the cache if that directory is
2008 # removed, or if the value is a relative name.
2009 INSTALL=$ac_install_sh
2010 fi
2011 fi
2012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2013 $as_echo "$INSTALL" >&6; }
2015 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2016 # It thinks the first close brace ends the variable substitution.
2017 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2019 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2021 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2024 $as_echo_n "checking whether build environment is sane... " >&6; }
2025 # Just in case
2026 sleep 1
2027 echo timestamp > conftest.file
2028 # Reject unsafe characters in $srcdir or the absolute working directory
2029 # name. Accept space and tab only in the latter.
2030 am_lf='
2032 case `pwd` in
2033 *[\\\"\#\$\&\'\`$am_lf]*)
2034 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2035 esac
2036 case $srcdir in
2037 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2038 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2039 esac
2041 # Do `set' in a subshell so we don't clobber the current shell's
2042 # arguments. Must try -L first in case configure is actually a
2043 # symlink; some systems play weird games with the mod time of symlinks
2044 # (eg FreeBSD returns the mod time of the symlink's containing
2045 # directory).
2046 if (
2047 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2048 if test "$*" = "X"; then
2049 # -L didn't work.
2050 set X `ls -t "$srcdir/configure" conftest.file`
2051 fi
2052 rm -f conftest.file
2053 if test "$*" != "X $srcdir/configure conftest.file" \
2054 && test "$*" != "X conftest.file $srcdir/configure"; then
2056 # If neither matched, then we have a broken ls. This can happen
2057 # if, for instance, CONFIG_SHELL is bash and it inherits a
2058 # broken ls alias from the environment. This has actually
2059 # happened. Such a system could not be considered "sane".
2060 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2061 alias in your environment" "$LINENO" 5
2062 fi
2064 test "$2" = conftest.file
2066 then
2067 # Ok.
2069 else
2070 as_fn_error "newly created file is older than distributed files!
2071 Check your system clock" "$LINENO" 5
2072 fi
2073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2074 $as_echo "yes" >&6; }
2075 test "$program_prefix" != NONE &&
2076 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2077 # Use a double $ so make ignores it.
2078 test "$program_suffix" != NONE &&
2079 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2080 # Double any \ or $.
2081 # By default was `s,x,x', remove it if useless.
2082 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2083 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2085 # expand $ac_aux_dir to an absolute path
2086 am_aux_dir=`cd $ac_aux_dir && pwd`
2088 if test x"${MISSING+set}" != xset; then
2089 case $am_aux_dir in
2090 *\ * | *\ *)
2091 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2092 *)
2093 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2094 esac
2095 fi
2096 # Use eval to expand $SHELL
2097 if eval "$MISSING --run true"; then
2098 am_missing_run="$MISSING --run "
2099 else
2100 am_missing_run=
2101 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2102 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2103 fi
2105 if test x"${install_sh}" != xset; then
2106 case $am_aux_dir in
2107 *\ * | *\ *)
2108 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2109 *)
2110 install_sh="\${SHELL} $am_aux_dir/install-sh"
2111 esac
2112 fi
2114 # Installed binaries are usually stripped using `strip' when the user
2115 # run `make install-strip'. However `strip' might not be the right
2116 # tool to use in cross-compilation environments, therefore Automake
2117 # will honor the `STRIP' environment variable to overrule this program.
2118 if test "$cross_compiling" != no; then
2119 if test -n "$ac_tool_prefix"; then
2120 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2121 set dummy ${ac_tool_prefix}strip; ac_word=$2
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2123 $as_echo_n "checking for $ac_word... " >&6; }
2124 if test "${ac_cv_prog_STRIP+set}" = set; then :
2125 $as_echo_n "(cached) " >&6
2126 else
2127 if test -n "$STRIP"; then
2128 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2129 else
2130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2131 for as_dir in $PATH
2132 do
2133 IFS=$as_save_IFS
2134 test -z "$as_dir" && as_dir=.
2135 for ac_exec_ext in '' $ac_executable_extensions; do
2136 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2137 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2139 break 2
2140 fi
2141 done
2142 done
2143 IFS=$as_save_IFS
2145 fi
2146 fi
2147 STRIP=$ac_cv_prog_STRIP
2148 if test -n "$STRIP"; then
2149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2150 $as_echo "$STRIP" >&6; }
2151 else
2152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2153 $as_echo "no" >&6; }
2154 fi
2157 fi
2158 if test -z "$ac_cv_prog_STRIP"; then
2159 ac_ct_STRIP=$STRIP
2160 # Extract the first word of "strip", so it can be a program name with args.
2161 set dummy strip; ac_word=$2
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2163 $as_echo_n "checking for $ac_word... " >&6; }
2164 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2165 $as_echo_n "(cached) " >&6
2166 else
2167 if test -n "$ac_ct_STRIP"; then
2168 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2169 else
2170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2171 for as_dir in $PATH
2172 do
2173 IFS=$as_save_IFS
2174 test -z "$as_dir" && as_dir=.
2175 for ac_exec_ext in '' $ac_executable_extensions; do
2176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2177 ac_cv_prog_ac_ct_STRIP="strip"
2178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2179 break 2
2180 fi
2181 done
2182 done
2183 IFS=$as_save_IFS
2185 fi
2186 fi
2187 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2188 if test -n "$ac_ct_STRIP"; then
2189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2190 $as_echo "$ac_ct_STRIP" >&6; }
2191 else
2192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2193 $as_echo "no" >&6; }
2194 fi
2196 if test "x$ac_ct_STRIP" = x; then
2197 STRIP=":"
2198 else
2199 case $cross_compiling:$ac_tool_warned in
2200 yes:)
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2203 ac_tool_warned=yes ;;
2204 esac
2205 STRIP=$ac_ct_STRIP
2206 fi
2207 else
2208 STRIP="$ac_cv_prog_STRIP"
2209 fi
2211 fi
2212 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2215 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2216 if test -z "$MKDIR_P"; then
2217 if test "${ac_cv_path_mkdir+set}" = set; then :
2218 $as_echo_n "(cached) " >&6
2219 else
2220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2221 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2222 do
2223 IFS=$as_save_IFS
2224 test -z "$as_dir" && as_dir=.
2225 for ac_prog in mkdir gmkdir; do
2226 for ac_exec_ext in '' $ac_executable_extensions; do
2227 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
2228 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2229 'mkdir (GNU coreutils) '* | \
2230 'mkdir (coreutils) '* | \
2231 'mkdir (fileutils) '4.1*)
2232 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2233 break 3;;
2234 esac
2235 done
2236 done
2237 done
2238 IFS=$as_save_IFS
2240 fi
2242 test -d ./--version && rmdir ./--version
2243 if test "${ac_cv_path_mkdir+set}" = set; then
2244 MKDIR_P="$ac_cv_path_mkdir -p"
2245 else
2246 # As a last resort, use the slow shell script. Don't cache a
2247 # value for MKDIR_P within a source directory, because that will
2248 # break other packages using the cache if that directory is
2249 # removed, or if the value is a relative name.
2250 MKDIR_P="$ac_install_sh -d"
2251 fi
2252 fi
2253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2254 $as_echo "$MKDIR_P" >&6; }
2256 mkdir_p="$MKDIR_P"
2257 case $mkdir_p in
2258 [\\/$]* | ?:[\\/]*) ;;
2259 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
2260 esac
2262 for ac_prog in gawk mawk nawk awk
2263 do
2264 # Extract the first word of "$ac_prog", so it can be a program name with args.
2265 set dummy $ac_prog; ac_word=$2
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2267 $as_echo_n "checking for $ac_word... " >&6; }
2268 if test "${ac_cv_prog_AWK+set}" = set; then :
2269 $as_echo_n "(cached) " >&6
2270 else
2271 if test -n "$AWK"; then
2272 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2273 else
2274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2275 for as_dir in $PATH
2276 do
2277 IFS=$as_save_IFS
2278 test -z "$as_dir" && as_dir=.
2279 for ac_exec_ext in '' $ac_executable_extensions; do
2280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2281 ac_cv_prog_AWK="$ac_prog"
2282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2283 break 2
2284 fi
2285 done
2286 done
2287 IFS=$as_save_IFS
2289 fi
2290 fi
2291 AWK=$ac_cv_prog_AWK
2292 if test -n "$AWK"; then
2293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2294 $as_echo "$AWK" >&6; }
2295 else
2296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2297 $as_echo "no" >&6; }
2298 fi
2301 test -n "$AWK" && break
2302 done
2304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2305 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2306 set x ${MAKE-make}
2307 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2308 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2309 $as_echo_n "(cached) " >&6
2310 else
2311 cat >conftest.make <<\_ACEOF
2312 SHELL = /bin/sh
2313 all:
2314 @echo '@@@%%%=$(MAKE)=@@@%%%'
2315 _ACEOF
2316 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2317 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2318 *@@@%%%=?*=@@@%%%*)
2319 eval ac_cv_prog_make_${ac_make}_set=yes;;
2320 *)
2321 eval ac_cv_prog_make_${ac_make}_set=no;;
2322 esac
2323 rm -f conftest.make
2324 fi
2325 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2327 $as_echo "yes" >&6; }
2328 SET_MAKE=
2329 else
2330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2331 $as_echo "no" >&6; }
2332 SET_MAKE="MAKE=${MAKE-make}"
2333 fi
2335 rm -rf .tst 2>/dev/null
2336 mkdir .tst 2>/dev/null
2337 if test -d .tst; then
2338 am__leading_dot=.
2339 else
2340 am__leading_dot=_
2341 fi
2342 rmdir .tst 2>/dev/null
2344 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2345 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2346 # is not polluted with repeated "-I."
2347 am__isrc=' -I$(srcdir)'
2348 # test to see if srcdir already configured
2349 if test -f $srcdir/config.status; then
2350 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2351 fi
2352 fi
2354 # test whether we have cygpath
2355 if test -z "$CYGPATH_W"; then
2356 if (cygpath --version) >/dev/null 2>/dev/null; then
2357 CYGPATH_W='cygpath -w'
2358 else
2359 CYGPATH_W=echo
2360 fi
2361 fi
2364 # Define the identity of the package.
2365 PACKAGE='pcem'
2366 VERSION='v9'
2369 cat >>confdefs.h <<_ACEOF
2370 #define PACKAGE "$PACKAGE"
2371 _ACEOF
2374 cat >>confdefs.h <<_ACEOF
2375 #define VERSION "$VERSION"
2376 _ACEOF
2378 # Some tools Automake needs.
2380 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2383 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2386 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2389 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2392 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2394 # We need awk for the "check" target. The system "awk" is bad on
2395 # some platforms.
2396 # Always define AMTAR for backward compatibility.
2398 AMTAR=${AMTAR-"${am_missing_run}tar"}
2400 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2406 ac_ext=c
2407 ac_cpp='$CPP $CPPFLAGS'
2408 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2409 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2410 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2411 if test -n "$ac_tool_prefix"; then
2412 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2413 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if test "${ac_cv_prog_CC+set}" = set; then :
2417 $as_echo_n "(cached) " >&6
2418 else
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 else
2422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2423 for as_dir in $PATH
2424 do
2425 IFS=$as_save_IFS
2426 test -z "$as_dir" && as_dir=.
2427 for ac_exec_ext in '' $ac_executable_extensions; do
2428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2429 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2431 break 2
2432 fi
2433 done
2434 done
2435 IFS=$as_save_IFS
2437 fi
2438 fi
2439 CC=$ac_cv_prog_CC
2440 if test -n "$CC"; then
2441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2442 $as_echo "$CC" >&6; }
2443 else
2444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2445 $as_echo "no" >&6; }
2446 fi
2449 fi
2450 if test -z "$ac_cv_prog_CC"; then
2451 ac_ct_CC=$CC
2452 # Extract the first word of "gcc", so it can be a program name with args.
2453 set dummy gcc; ac_word=$2
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2455 $as_echo_n "checking for $ac_word... " >&6; }
2456 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2457 $as_echo_n "(cached) " >&6
2458 else
2459 if test -n "$ac_ct_CC"; then
2460 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2461 else
2462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2463 for as_dir in $PATH
2464 do
2465 IFS=$as_save_IFS
2466 test -z "$as_dir" && as_dir=.
2467 for ac_exec_ext in '' $ac_executable_extensions; do
2468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2469 ac_cv_prog_ac_ct_CC="gcc"
2470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2471 break 2
2472 fi
2473 done
2474 done
2475 IFS=$as_save_IFS
2477 fi
2478 fi
2479 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2480 if test -n "$ac_ct_CC"; then
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2482 $as_echo "$ac_ct_CC" >&6; }
2483 else
2484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2485 $as_echo "no" >&6; }
2486 fi
2488 if test "x$ac_ct_CC" = x; then
2489 CC=""
2490 else
2491 case $cross_compiling:$ac_tool_warned in
2492 yes:)
2493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2495 ac_tool_warned=yes ;;
2496 esac
2497 CC=$ac_ct_CC
2498 fi
2499 else
2500 CC="$ac_cv_prog_CC"
2501 fi
2503 if test -z "$CC"; then
2504 if test -n "$ac_tool_prefix"; then
2505 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2506 set dummy ${ac_tool_prefix}cc; ac_word=$2
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2508 $as_echo_n "checking for $ac_word... " >&6; }
2509 if test "${ac_cv_prog_CC+set}" = set; then :
2510 $as_echo_n "(cached) " >&6
2511 else
2512 if test -n "$CC"; then
2513 ac_cv_prog_CC="$CC" # Let the user override the test.
2514 else
2515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2516 for as_dir in $PATH
2517 do
2518 IFS=$as_save_IFS
2519 test -z "$as_dir" && as_dir=.
2520 for ac_exec_ext in '' $ac_executable_extensions; do
2521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2522 ac_cv_prog_CC="${ac_tool_prefix}cc"
2523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2524 break 2
2525 fi
2526 done
2527 done
2528 IFS=$as_save_IFS
2530 fi
2531 fi
2532 CC=$ac_cv_prog_CC
2533 if test -n "$CC"; then
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2535 $as_echo "$CC" >&6; }
2536 else
2537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2538 $as_echo "no" >&6; }
2539 fi
2542 fi
2543 fi
2544 if test -z "$CC"; then
2545 # Extract the first word of "cc", so it can be a program name with args.
2546 set dummy cc; ac_word=$2
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2548 $as_echo_n "checking for $ac_word... " >&6; }
2549 if test "${ac_cv_prog_CC+set}" = set; then :
2550 $as_echo_n "(cached) " >&6
2551 else
2552 if test -n "$CC"; then
2553 ac_cv_prog_CC="$CC" # Let the user override the test.
2554 else
2555 ac_prog_rejected=no
2556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2557 for as_dir in $PATH
2558 do
2559 IFS=$as_save_IFS
2560 test -z "$as_dir" && as_dir=.
2561 for ac_exec_ext in '' $ac_executable_extensions; do
2562 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2563 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2564 ac_prog_rejected=yes
2565 continue
2566 fi
2567 ac_cv_prog_CC="cc"
2568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2569 break 2
2570 fi
2571 done
2572 done
2573 IFS=$as_save_IFS
2575 if test $ac_prog_rejected = yes; then
2576 # We found a bogon in the path, so make sure we never use it.
2577 set dummy $ac_cv_prog_CC
2578 shift
2579 if test $# != 0; then
2580 # We chose a different compiler from the bogus one.
2581 # However, it has the same basename, so the bogon will be chosen
2582 # first if we set CC to just the basename; use the full file name.
2583 shift
2584 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2585 fi
2586 fi
2587 fi
2588 fi
2589 CC=$ac_cv_prog_CC
2590 if test -n "$CC"; then
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2592 $as_echo "$CC" >&6; }
2593 else
2594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2595 $as_echo "no" >&6; }
2596 fi
2599 fi
2600 if test -z "$CC"; then
2601 if test -n "$ac_tool_prefix"; then
2602 for ac_prog in cl.exe
2603 do
2604 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2605 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2607 $as_echo_n "checking for $ac_word... " >&6; }
2608 if test "${ac_cv_prog_CC+set}" = set; then :
2609 $as_echo_n "(cached) " >&6
2610 else
2611 if test -n "$CC"; then
2612 ac_cv_prog_CC="$CC" # Let the user override the test.
2613 else
2614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2615 for as_dir in $PATH
2616 do
2617 IFS=$as_save_IFS
2618 test -z "$as_dir" && as_dir=.
2619 for ac_exec_ext in '' $ac_executable_extensions; do
2620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2621 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2623 break 2
2624 fi
2625 done
2626 done
2627 IFS=$as_save_IFS
2629 fi
2630 fi
2631 CC=$ac_cv_prog_CC
2632 if test -n "$CC"; then
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2634 $as_echo "$CC" >&6; }
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2637 $as_echo "no" >&6; }
2638 fi
2641 test -n "$CC" && break
2642 done
2643 fi
2644 if test -z "$CC"; then
2645 ac_ct_CC=$CC
2646 for ac_prog in cl.exe
2647 do
2648 # Extract the first word of "$ac_prog", so it can be a program name with args.
2649 set dummy $ac_prog; ac_word=$2
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2651 $as_echo_n "checking for $ac_word... " >&6; }
2652 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2653 $as_echo_n "(cached) " >&6
2654 else
2655 if test -n "$ac_ct_CC"; then
2656 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2657 else
2658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2659 for as_dir in $PATH
2660 do
2661 IFS=$as_save_IFS
2662 test -z "$as_dir" && as_dir=.
2663 for ac_exec_ext in '' $ac_executable_extensions; do
2664 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2665 ac_cv_prog_ac_ct_CC="$ac_prog"
2666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2667 break 2
2668 fi
2669 done
2670 done
2671 IFS=$as_save_IFS
2673 fi
2674 fi
2675 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2676 if test -n "$ac_ct_CC"; then
2677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2678 $as_echo "$ac_ct_CC" >&6; }
2679 else
2680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2681 $as_echo "no" >&6; }
2682 fi
2685 test -n "$ac_ct_CC" && break
2686 done
2688 if test "x$ac_ct_CC" = x; then
2689 CC=""
2690 else
2691 case $cross_compiling:$ac_tool_warned in
2692 yes:)
2693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2695 ac_tool_warned=yes ;;
2696 esac
2697 CC=$ac_ct_CC
2698 fi
2699 fi
2701 fi
2704 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2705 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2706 as_fn_error "no acceptable C compiler found in \$PATH
2707 See \`config.log' for more details." "$LINENO" 5; }
2709 # Provide some information about the compiler.
2710 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2711 set X $ac_compile
2712 ac_compiler=$2
2713 for ac_option in --version -v -V -qversion; do
2714 { { ac_try="$ac_compiler $ac_option >&5"
2715 case "(($ac_try" in
2716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717 *) ac_try_echo=$ac_try;;
2718 esac
2719 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2720 $as_echo "$ac_try_echo"; } >&5
2721 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2722 ac_status=$?
2723 if test -s conftest.err; then
2724 sed '10a\
2725 ... rest of stderr output deleted ...
2726 10q' conftest.err >conftest.er1
2727 cat conftest.er1 >&5
2728 fi
2729 rm -f conftest.er1 conftest.err
2730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2731 test $ac_status = 0; }
2732 done
2734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2735 /* end confdefs.h. */
2737 int
2738 main ()
2742 return 0;
2744 _ACEOF
2745 ac_clean_files_save=$ac_clean_files
2746 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2747 # Try to create an executable without -o first, disregard a.out.
2748 # It will help us diagnose broken compilers, and finding out an intuition
2749 # of exeext.
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2751 $as_echo_n "checking whether the C compiler works... " >&6; }
2752 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2754 # The possible output files:
2755 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2757 ac_rmfiles=
2758 for ac_file in $ac_files
2759 do
2760 case $ac_file in
2761 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2762 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2763 esac
2764 done
2765 rm -f $ac_rmfiles
2767 if { { ac_try="$ac_link_default"
2768 case "(($ac_try" in
2769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2770 *) ac_try_echo=$ac_try;;
2771 esac
2772 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2773 $as_echo "$ac_try_echo"; } >&5
2774 (eval "$ac_link_default") 2>&5
2775 ac_status=$?
2776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2777 test $ac_status = 0; }; then :
2778 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2779 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2780 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2781 # so that the user can short-circuit this test for compilers unknown to
2782 # Autoconf.
2783 for ac_file in $ac_files ''
2784 do
2785 test -f "$ac_file" || continue
2786 case $ac_file in
2787 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2788 ;;
2789 [ab].out )
2790 # We found the default executable, but exeext='' is most
2791 # certainly right.
2792 break;;
2793 *.* )
2794 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2795 then :; else
2796 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2797 fi
2798 # We set ac_cv_exeext here because the later test for it is not
2799 # safe: cross compilers may not add the suffix if given an `-o'
2800 # argument, so we may need to know it at that point already.
2801 # Even if this section looks crufty: it has the advantage of
2802 # actually working.
2803 break;;
2804 * )
2805 break;;
2806 esac
2807 done
2808 test "$ac_cv_exeext" = no && ac_cv_exeext=
2810 else
2811 ac_file=''
2812 fi
2813 if test -z "$ac_file"; then :
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2815 $as_echo "no" >&6; }
2816 $as_echo "$as_me: failed program was:" >&5
2817 sed 's/^/| /' conftest.$ac_ext >&5
2819 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2820 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2821 { as_fn_set_status 77
2822 as_fn_error "C compiler cannot create executables
2823 See \`config.log' for more details." "$LINENO" 5; }; }
2824 else
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2826 $as_echo "yes" >&6; }
2827 fi
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2829 $as_echo_n "checking for C compiler default output file name... " >&6; }
2830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2831 $as_echo "$ac_file" >&6; }
2832 ac_exeext=$ac_cv_exeext
2834 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2835 ac_clean_files=$ac_clean_files_save
2836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2837 $as_echo_n "checking for suffix of executables... " >&6; }
2838 if { { ac_try="$ac_link"
2839 case "(($ac_try" in
2840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841 *) ac_try_echo=$ac_try;;
2842 esac
2843 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2844 $as_echo "$ac_try_echo"; } >&5
2845 (eval "$ac_link") 2>&5
2846 ac_status=$?
2847 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2848 test $ac_status = 0; }; then :
2849 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2850 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2851 # work properly (i.e., refer to `conftest.exe'), while it won't with
2852 # `rm'.
2853 for ac_file in conftest.exe conftest conftest.*; do
2854 test -f "$ac_file" || continue
2855 case $ac_file in
2856 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2857 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2858 break;;
2859 * ) break;;
2860 esac
2861 done
2862 else
2863 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2864 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2865 as_fn_error "cannot compute suffix of executables: cannot compile and link
2866 See \`config.log' for more details." "$LINENO" 5; }
2867 fi
2868 rm -f conftest conftest$ac_cv_exeext
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2870 $as_echo "$ac_cv_exeext" >&6; }
2872 rm -f conftest.$ac_ext
2873 EXEEXT=$ac_cv_exeext
2874 ac_exeext=$EXEEXT
2875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2876 /* end confdefs.h. */
2877 #include <stdio.h>
2878 int
2879 main ()
2881 FILE *f = fopen ("conftest.out", "w");
2882 return ferror (f) || fclose (f) != 0;
2885 return 0;
2887 _ACEOF
2888 ac_clean_files="$ac_clean_files conftest.out"
2889 # Check that the compiler produces executables we can run. If not, either
2890 # the compiler is broken, or we cross compile.
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2892 $as_echo_n "checking whether we are cross compiling... " >&6; }
2893 if test "$cross_compiling" != yes; then
2894 { { ac_try="$ac_link"
2895 case "(($ac_try" in
2896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2897 *) ac_try_echo=$ac_try;;
2898 esac
2899 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2900 $as_echo "$ac_try_echo"; } >&5
2901 (eval "$ac_link") 2>&5
2902 ac_status=$?
2903 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2904 test $ac_status = 0; }
2905 if { ac_try='./conftest$ac_cv_exeext'
2906 { { case "(($ac_try" in
2907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2908 *) ac_try_echo=$ac_try;;
2909 esac
2910 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2911 $as_echo "$ac_try_echo"; } >&5
2912 (eval "$ac_try") 2>&5
2913 ac_status=$?
2914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2915 test $ac_status = 0; }; }; then
2916 cross_compiling=no
2917 else
2918 if test "$cross_compiling" = maybe; then
2919 cross_compiling=yes
2920 else
2921 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2922 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2923 as_fn_error "cannot run C compiled programs.
2924 If you meant to cross compile, use \`--host'.
2925 See \`config.log' for more details." "$LINENO" 5; }
2926 fi
2927 fi
2928 fi
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2930 $as_echo "$cross_compiling" >&6; }
2932 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2933 ac_clean_files=$ac_clean_files_save
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2935 $as_echo_n "checking for suffix of object files... " >&6; }
2936 if test "${ac_cv_objext+set}" = set; then :
2937 $as_echo_n "(cached) " >&6
2938 else
2939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2940 /* end confdefs.h. */
2942 int
2943 main ()
2947 return 0;
2949 _ACEOF
2950 rm -f conftest.o conftest.obj
2951 if { { ac_try="$ac_compile"
2952 case "(($ac_try" in
2953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2954 *) ac_try_echo=$ac_try;;
2955 esac
2956 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2957 $as_echo "$ac_try_echo"; } >&5
2958 (eval "$ac_compile") 2>&5
2959 ac_status=$?
2960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2961 test $ac_status = 0; }; then :
2962 for ac_file in conftest.o conftest.obj conftest.*; do
2963 test -f "$ac_file" || continue;
2964 case $ac_file in
2965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2967 break;;
2968 esac
2969 done
2970 else
2971 $as_echo "$as_me: failed program was:" >&5
2972 sed 's/^/| /' conftest.$ac_ext >&5
2974 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2975 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2976 as_fn_error "cannot compute suffix of object files: cannot compile
2977 See \`config.log' for more details." "$LINENO" 5; }
2978 fi
2979 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2980 fi
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2982 $as_echo "$ac_cv_objext" >&6; }
2983 OBJEXT=$ac_cv_objext
2984 ac_objext=$OBJEXT
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2986 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2987 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2988 $as_echo_n "(cached) " >&6
2989 else
2990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2991 /* end confdefs.h. */
2993 int
2994 main ()
2996 #ifndef __GNUC__
2997 choke me
2998 #endif
3001 return 0;
3003 _ACEOF
3004 if ac_fn_c_try_compile "$LINENO"; then :
3005 ac_compiler_gnu=yes
3006 else
3007 ac_compiler_gnu=no
3008 fi
3009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3010 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3012 fi
3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3014 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3015 if test $ac_compiler_gnu = yes; then
3016 GCC=yes
3017 else
3018 GCC=
3019 fi
3020 ac_test_CFLAGS=${CFLAGS+set}
3021 ac_save_CFLAGS=$CFLAGS
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3023 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3024 if test "${ac_cv_prog_cc_g+set}" = set; then :
3025 $as_echo_n "(cached) " >&6
3026 else
3027 ac_save_c_werror_flag=$ac_c_werror_flag
3028 ac_c_werror_flag=yes
3029 ac_cv_prog_cc_g=no
3030 CFLAGS="-g"
3031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3032 /* end confdefs.h. */
3034 int
3035 main ()
3039 return 0;
3041 _ACEOF
3042 if ac_fn_c_try_compile "$LINENO"; then :
3043 ac_cv_prog_cc_g=yes
3044 else
3045 CFLAGS=""
3046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3047 /* end confdefs.h. */
3049 int
3050 main ()
3054 return 0;
3056 _ACEOF
3057 if ac_fn_c_try_compile "$LINENO"; then :
3059 else
3060 ac_c_werror_flag=$ac_save_c_werror_flag
3061 CFLAGS="-g"
3062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3063 /* end confdefs.h. */
3065 int
3066 main ()
3070 return 0;
3072 _ACEOF
3073 if ac_fn_c_try_compile "$LINENO"; then :
3074 ac_cv_prog_cc_g=yes
3075 fi
3076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3077 fi
3078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3079 fi
3080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3081 ac_c_werror_flag=$ac_save_c_werror_flag
3082 fi
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3084 $as_echo "$ac_cv_prog_cc_g" >&6; }
3085 if test "$ac_test_CFLAGS" = set; then
3086 CFLAGS=$ac_save_CFLAGS
3087 elif test $ac_cv_prog_cc_g = yes; then
3088 if test "$GCC" = yes; then
3089 CFLAGS="-g -O2"
3090 else
3091 CFLAGS="-g"
3092 fi
3093 else
3094 if test "$GCC" = yes; then
3095 CFLAGS="-O2"
3096 else
3097 CFLAGS=
3098 fi
3099 fi
3100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3101 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3102 if test "${ac_cv_prog_cc_c89+set}" = set; then :
3103 $as_echo_n "(cached) " >&6
3104 else
3105 ac_cv_prog_cc_c89=no
3106 ac_save_CC=$CC
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <stdarg.h>
3110 #include <stdio.h>
3111 #include <sys/types.h>
3112 #include <sys/stat.h>
3113 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3114 struct buf { int x; };
3115 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3116 static char *e (p, i)
3117 char **p;
3118 int i;
3120 return p[i];
3122 static char *f (char * (*g) (char **, int), char **p, ...)
3124 char *s;
3125 va_list v;
3126 va_start (v,p);
3127 s = g (p, va_arg (v,int));
3128 va_end (v);
3129 return s;
3132 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3133 function prototypes and stuff, but not '\xHH' hex character constants.
3134 These don't provoke an error unfortunately, instead are silently treated
3135 as 'x'. The following induces an error, until -std is added to get
3136 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3137 array size at least. It's necessary to write '\x00'==0 to get something
3138 that's true only with -std. */
3139 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3141 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3142 inside strings and character constants. */
3143 #define FOO(x) 'x'
3144 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3146 int test (int i, double x);
3147 struct s1 {int (*f) (int a);};
3148 struct s2 {int (*f) (double a);};
3149 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3150 int argc;
3151 char **argv;
3152 int
3153 main ()
3155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3157 return 0;
3159 _ACEOF
3160 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3161 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3162 do
3163 CC="$ac_save_CC $ac_arg"
3164 if ac_fn_c_try_compile "$LINENO"; then :
3165 ac_cv_prog_cc_c89=$ac_arg
3166 fi
3167 rm -f core conftest.err conftest.$ac_objext
3168 test "x$ac_cv_prog_cc_c89" != "xno" && break
3169 done
3170 rm -f conftest.$ac_ext
3171 CC=$ac_save_CC
3173 fi
3174 # AC_CACHE_VAL
3175 case "x$ac_cv_prog_cc_c89" in
3176 x)
3177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3178 $as_echo "none needed" >&6; } ;;
3179 xno)
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3181 $as_echo "unsupported" >&6; } ;;
3182 *)
3183 CC="$CC $ac_cv_prog_cc_c89"
3184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3185 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3186 esac
3187 if test "x$ac_cv_prog_cc_c89" != xno; then :
3189 fi
3191 ac_ext=c
3192 ac_cpp='$CPP $CPPFLAGS'
3193 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3194 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3195 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3196 DEPDIR="${am__leading_dot}deps"
3198 ac_config_commands="$ac_config_commands depfiles"
3201 am_make=${MAKE-make}
3202 cat > confinc << 'END'
3203 am__doit:
3204 @echo this is the am__doit target
3205 .PHONY: am__doit
3206 END
3207 # If we don't find an include directive, just comment out the code.
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3209 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3210 am__include="#"
3211 am__quote=
3212 _am_result=none
3213 # First try GNU make style include.
3214 echo "include confinc" > confmf
3215 # Ignore all kinds of additional output from `make'.
3216 case `$am_make -s -f confmf 2> /dev/null` in #(
3217 *the\ am__doit\ target*)
3218 am__include=include
3219 am__quote=
3220 _am_result=GNU
3221 ;;
3222 esac
3223 # Now try BSD make style include.
3224 if test "$am__include" = "#"; then
3225 echo '.include "confinc"' > confmf
3226 case `$am_make -s -f confmf 2> /dev/null` in #(
3227 *the\ am__doit\ target*)
3228 am__include=.include
3229 am__quote="\""
3230 _am_result=BSD
3231 ;;
3232 esac
3233 fi
3236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3237 $as_echo "$_am_result" >&6; }
3238 rm -f confinc confmf
3240 # Check whether --enable-dependency-tracking was given.
3241 if test "${enable_dependency_tracking+set}" = set; then :
3242 enableval=$enable_dependency_tracking;
3243 fi
3245 if test "x$enable_dependency_tracking" != xno; then
3246 am_depcomp="$ac_aux_dir/depcomp"
3247 AMDEPBACKSLASH='\'
3248 fi
3249 if test "x$enable_dependency_tracking" != xno; then
3250 AMDEP_TRUE=
3251 AMDEP_FALSE='#'
3252 else
3253 AMDEP_TRUE='#'
3254 AMDEP_FALSE=
3255 fi
3259 depcc="$CC" am_compiler_list=
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3262 $as_echo_n "checking dependency style of $depcc... " >&6; }
3263 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
3264 $as_echo_n "(cached) " >&6
3265 else
3266 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3267 # We make a subdir and do the tests there. Otherwise we can end up
3268 # making bogus files that we don't know about and never remove. For
3269 # instance it was reported that on HP-UX the gcc test will end up
3270 # making a dummy file named `D' -- because `-MD' means `put the output
3271 # in D'.
3272 mkdir conftest.dir
3273 # Copy depcomp to subdir because otherwise we won't find it if we're
3274 # using a relative directory.
3275 cp "$am_depcomp" conftest.dir
3276 cd conftest.dir
3277 # We will build objects and dependencies in a subdirectory because
3278 # it helps to detect inapplicable dependency modes. For instance
3279 # both Tru64's cc and ICC support -MD to output dependencies as a
3280 # side effect of compilation, but ICC will put the dependencies in
3281 # the current directory while Tru64 will put them in the object
3282 # directory.
3283 mkdir sub
3285 am_cv_CC_dependencies_compiler_type=none
3286 if test "$am_compiler_list" = ""; then
3287 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3288 fi
3289 am__universal=false
3290 case " $depcc " in #(
3291 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3292 esac
3294 for depmode in $am_compiler_list; do
3295 # Setup a source with many dependencies, because some compilers
3296 # like to wrap large dependency lists on column 80 (with \), and
3297 # we should not choose a depcomp mode which is confused by this.
3299 # We need to recreate these files for each test, as the compiler may
3300 # overwrite some of them when testing with obscure command lines.
3301 # This happens at least with the AIX C compiler.
3302 : > sub/conftest.c
3303 for i in 1 2 3 4 5 6; do
3304 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3305 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3306 # Solaris 8's {/usr,}/bin/sh.
3307 touch sub/conftst$i.h
3308 done
3309 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3311 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3312 # mode. It turns out that the SunPro C++ compiler does not properly
3313 # handle `-M -o', and we need to detect this. Also, some Intel
3314 # versions had trouble with output in subdirs
3315 am__obj=sub/conftest.${OBJEXT-o}
3316 am__minus_obj="-o $am__obj"
3317 case $depmode in
3318 gcc)
3319 # This depmode causes a compiler race in universal mode.
3320 test "$am__universal" = false || continue
3321 ;;
3322 nosideeffect)
3323 # after this tag, mechanisms are not by side-effect, so they'll
3324 # only be used when explicitly requested
3325 if test "x$enable_dependency_tracking" = xyes; then
3326 continue
3327 else
3328 break
3329 fi
3330 ;;
3331 msvisualcpp | msvcmsys)
3332 # This compiler won't grok `-c -o', but also, the minuso test has
3333 # not run yet. These depmodes are late enough in the game, and
3334 # so weak that their functioning should not be impacted.
3335 am__obj=conftest.${OBJEXT-o}
3336 am__minus_obj=
3337 ;;
3338 none) break ;;
3339 esac
3340 if depmode=$depmode \
3341 source=sub/conftest.c object=$am__obj \
3342 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3343 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3344 >/dev/null 2>conftest.err &&
3345 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3346 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3347 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3348 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3349 # icc doesn't choke on unknown options, it will just issue warnings
3350 # or remarks (even with -Werror). So we grep stderr for any message
3351 # that says an option was ignored or not supported.
3352 # When given -MP, icc 7.0 and 7.1 complain thusly:
3353 # icc: Command line warning: ignoring option '-M'; no argument required
3354 # The diagnosis changed in icc 8.0:
3355 # icc: Command line remark: option '-MP' not supported
3356 if (grep 'ignoring option' conftest.err ||
3357 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3358 am_cv_CC_dependencies_compiler_type=$depmode
3359 break
3360 fi
3361 fi
3362 done
3364 cd ..
3365 rm -rf conftest.dir
3366 else
3367 am_cv_CC_dependencies_compiler_type=none
3368 fi
3370 fi
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
3372 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
3373 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3375 if
3376 test "x$enable_dependency_tracking" != xno \
3377 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3378 am__fastdepCC_TRUE=
3379 am__fastdepCC_FALSE='#'
3380 else
3381 am__fastdepCC_TRUE='#'
3382 am__fastdepCC_FALSE=
3383 fi
3386 ac_ext=cpp
3387 ac_cpp='$CXXCPP $CPPFLAGS'
3388 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3389 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3390 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3391 if test -z "$CXX"; then
3392 if test -n "$CCC"; then
3393 CXX=$CCC
3394 else
3395 if test -n "$ac_tool_prefix"; then
3396 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3397 do
3398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3401 $as_echo_n "checking for $ac_word... " >&6; }
3402 if test "${ac_cv_prog_CXX+set}" = set; then :
3403 $as_echo_n "(cached) " >&6
3404 else
3405 if test -n "$CXX"; then
3406 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3407 else
3408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3409 for as_dir in $PATH
3410 do
3411 IFS=$as_save_IFS
3412 test -z "$as_dir" && as_dir=.
3413 for ac_exec_ext in '' $ac_executable_extensions; do
3414 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3415 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3417 break 2
3418 fi
3419 done
3420 done
3421 IFS=$as_save_IFS
3423 fi
3424 fi
3425 CXX=$ac_cv_prog_CXX
3426 if test -n "$CXX"; then
3427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3428 $as_echo "$CXX" >&6; }
3429 else
3430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3431 $as_echo "no" >&6; }
3432 fi
3435 test -n "$CXX" && break
3436 done
3437 fi
3438 if test -z "$CXX"; then
3439 ac_ct_CXX=$CXX
3440 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3441 do
3442 # Extract the first word of "$ac_prog", so it can be a program name with args.
3443 set dummy $ac_prog; ac_word=$2
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3445 $as_echo_n "checking for $ac_word... " >&6; }
3446 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
3447 $as_echo_n "(cached) " >&6
3448 else
3449 if test -n "$ac_ct_CXX"; then
3450 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3451 else
3452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3453 for as_dir in $PATH
3454 do
3455 IFS=$as_save_IFS
3456 test -z "$as_dir" && as_dir=.
3457 for ac_exec_ext in '' $ac_executable_extensions; do
3458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3459 ac_cv_prog_ac_ct_CXX="$ac_prog"
3460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3461 break 2
3462 fi
3463 done
3464 done
3465 IFS=$as_save_IFS
3467 fi
3468 fi
3469 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3470 if test -n "$ac_ct_CXX"; then
3471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3472 $as_echo "$ac_ct_CXX" >&6; }
3473 else
3474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3475 $as_echo "no" >&6; }
3476 fi
3479 test -n "$ac_ct_CXX" && break
3480 done
3482 if test "x$ac_ct_CXX" = x; then
3483 CXX="g++"
3484 else
3485 case $cross_compiling:$ac_tool_warned in
3486 yes:)
3487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3489 ac_tool_warned=yes ;;
3490 esac
3491 CXX=$ac_ct_CXX
3492 fi
3493 fi
3495 fi
3496 fi
3497 # Provide some information about the compiler.
3498 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3499 set X $ac_compile
3500 ac_compiler=$2
3501 for ac_option in --version -v -V -qversion; do
3502 { { ac_try="$ac_compiler $ac_option >&5"
3503 case "(($ac_try" in
3504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3505 *) ac_try_echo=$ac_try;;
3506 esac
3507 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3508 $as_echo "$ac_try_echo"; } >&5
3509 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3510 ac_status=$?
3511 if test -s conftest.err; then
3512 sed '10a\
3513 ... rest of stderr output deleted ...
3514 10q' conftest.err >conftest.er1
3515 cat conftest.er1 >&5
3516 fi
3517 rm -f conftest.er1 conftest.err
3518 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3519 test $ac_status = 0; }
3520 done
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3523 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3524 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3525 $as_echo_n "(cached) " >&6
3526 else
3527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3528 /* end confdefs.h. */
3530 int
3531 main ()
3533 #ifndef __GNUC__
3534 choke me
3535 #endif
3538 return 0;
3540 _ACEOF
3541 if ac_fn_cxx_try_compile "$LINENO"; then :
3542 ac_compiler_gnu=yes
3543 else
3544 ac_compiler_gnu=no
3545 fi
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3549 fi
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3553 GXX=yes
3554 else
3555 GXX=
3556 fi
3557 ac_test_CXXFLAGS=${CXXFLAGS+set}
3558 ac_save_CXXFLAGS=$CXXFLAGS
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3561 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3565 ac_cxx_werror_flag=yes
3566 ac_cv_prog_cxx_g=no
3567 CXXFLAGS="-g"
3568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3569 /* end confdefs.h. */
3571 int
3572 main ()
3576 return 0;
3578 _ACEOF
3579 if ac_fn_cxx_try_compile "$LINENO"; then :
3580 ac_cv_prog_cxx_g=yes
3581 else
3582 CXXFLAGS=""
3583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3584 /* end confdefs.h. */
3586 int
3587 main ()
3591 return 0;
3593 _ACEOF
3594 if ac_fn_cxx_try_compile "$LINENO"; then :
3596 else
3597 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3598 CXXFLAGS="-g"
3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3600 /* end confdefs.h. */
3602 int
3603 main ()
3607 return 0;
3609 _ACEOF
3610 if ac_fn_cxx_try_compile "$LINENO"; then :
3611 ac_cv_prog_cxx_g=yes
3612 fi
3613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3614 fi
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3616 fi
3617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3618 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3619 fi
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3621 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3622 if test "$ac_test_CXXFLAGS" = set; then
3623 CXXFLAGS=$ac_save_CXXFLAGS
3624 elif test $ac_cv_prog_cxx_g = yes; then
3625 if test "$GXX" = yes; then
3626 CXXFLAGS="-g -O2"
3627 else
3628 CXXFLAGS="-g"
3629 fi
3630 else
3631 if test "$GXX" = yes; then
3632 CXXFLAGS="-O2"
3633 else
3634 CXXFLAGS=
3635 fi
3636 fi
3637 ac_ext=c
3638 ac_cpp='$CPP $CPPFLAGS'
3639 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3640 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3641 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3643 depcc="$CXX" am_compiler_list=
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3646 $as_echo_n "checking dependency style of $depcc... " >&6; }
3647 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3648 $as_echo_n "(cached) " >&6
3649 else
3650 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3651 # We make a subdir and do the tests there. Otherwise we can end up
3652 # making bogus files that we don't know about and never remove. For
3653 # instance it was reported that on HP-UX the gcc test will end up
3654 # making a dummy file named `D' -- because `-MD' means `put the output
3655 # in D'.
3656 mkdir conftest.dir
3657 # Copy depcomp to subdir because otherwise we won't find it if we're
3658 # using a relative directory.
3659 cp "$am_depcomp" conftest.dir
3660 cd conftest.dir
3661 # We will build objects and dependencies in a subdirectory because
3662 # it helps to detect inapplicable dependency modes. For instance
3663 # both Tru64's cc and ICC support -MD to output dependencies as a
3664 # side effect of compilation, but ICC will put the dependencies in
3665 # the current directory while Tru64 will put them in the object
3666 # directory.
3667 mkdir sub
3669 am_cv_CXX_dependencies_compiler_type=none
3670 if test "$am_compiler_list" = ""; then
3671 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3672 fi
3673 am__universal=false
3674 case " $depcc " in #(
3675 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3676 esac
3678 for depmode in $am_compiler_list; do
3679 # Setup a source with many dependencies, because some compilers
3680 # like to wrap large dependency lists on column 80 (with \), and
3681 # we should not choose a depcomp mode which is confused by this.
3683 # We need to recreate these files for each test, as the compiler may
3684 # overwrite some of them when testing with obscure command lines.
3685 # This happens at least with the AIX C compiler.
3686 : > sub/conftest.c
3687 for i in 1 2 3 4 5 6; do
3688 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3689 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3690 # Solaris 8's {/usr,}/bin/sh.
3691 touch sub/conftst$i.h
3692 done
3693 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3695 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3696 # mode. It turns out that the SunPro C++ compiler does not properly
3697 # handle `-M -o', and we need to detect this. Also, some Intel
3698 # versions had trouble with output in subdirs
3699 am__obj=sub/conftest.${OBJEXT-o}
3700 am__minus_obj="-o $am__obj"
3701 case $depmode in
3702 gcc)
3703 # This depmode causes a compiler race in universal mode.
3704 test "$am__universal" = false || continue
3705 ;;
3706 nosideeffect)
3707 # after this tag, mechanisms are not by side-effect, so they'll
3708 # only be used when explicitly requested
3709 if test "x$enable_dependency_tracking" = xyes; then
3710 continue
3711 else
3712 break
3713 fi
3714 ;;
3715 msvisualcpp | msvcmsys)
3716 # This compiler won't grok `-c -o', but also, the minuso test has
3717 # not run yet. These depmodes are late enough in the game, and
3718 # so weak that their functioning should not be impacted.
3719 am__obj=conftest.${OBJEXT-o}
3720 am__minus_obj=
3721 ;;
3722 none) break ;;
3723 esac
3724 if depmode=$depmode \
3725 source=sub/conftest.c object=$am__obj \
3726 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3727 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3728 >/dev/null 2>conftest.err &&
3729 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3730 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3731 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3732 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3733 # icc doesn't choke on unknown options, it will just issue warnings
3734 # or remarks (even with -Werror). So we grep stderr for any message
3735 # that says an option was ignored or not supported.
3736 # When given -MP, icc 7.0 and 7.1 complain thusly:
3737 # icc: Command line warning: ignoring option '-M'; no argument required
3738 # The diagnosis changed in icc 8.0:
3739 # icc: Command line remark: option '-MP' not supported
3740 if (grep 'ignoring option' conftest.err ||
3741 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3742 am_cv_CXX_dependencies_compiler_type=$depmode
3743 break
3744 fi
3745 fi
3746 done
3748 cd ..
3749 rm -rf conftest.dir
3750 else
3751 am_cv_CXX_dependencies_compiler_type=none
3752 fi
3754 fi
3755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3756 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3757 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3759 if
3760 test "x$enable_dependency_tracking" != xno \
3761 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3762 am__fastdepCXX_TRUE=
3763 am__fastdepCXX_FALSE='#'
3764 else
3765 am__fastdepCXX_TRUE='#'
3766 am__fastdepCXX_FALSE=
3767 fi
3770 if test "x$CC" != xcc; then
3771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3772 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3773 else
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3775 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3776 fi
3777 set dummy $CC; ac_cc=`$as_echo "$2" |
3778 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3779 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
3780 $as_echo_n "(cached) " >&6
3781 else
3782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3783 /* end confdefs.h. */
3785 int
3786 main ()
3790 return 0;
3792 _ACEOF
3793 # Make sure it works both with $CC and with simple cc.
3794 # We do the test twice because some compilers refuse to overwrite an
3795 # existing .o file with -o, though they will create one.
3796 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3797 rm -f conftest2.*
3798 if { { case "(($ac_try" in
3799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3800 *) ac_try_echo=$ac_try;;
3801 esac
3802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3803 $as_echo "$ac_try_echo"; } >&5
3804 (eval "$ac_try") 2>&5
3805 ac_status=$?
3806 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3807 test $ac_status = 0; } &&
3808 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3810 *) ac_try_echo=$ac_try;;
3811 esac
3812 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3813 $as_echo "$ac_try_echo"; } >&5
3814 (eval "$ac_try") 2>&5
3815 ac_status=$?
3816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3817 test $ac_status = 0; };
3818 then
3819 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3820 if test "x$CC" != xcc; then
3821 # Test first that cc exists at all.
3822 if { ac_try='cc -c conftest.$ac_ext >&5'
3823 { { case "(($ac_try" in
3824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3825 *) ac_try_echo=$ac_try;;
3826 esac
3827 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3828 $as_echo "$ac_try_echo"; } >&5
3829 (eval "$ac_try") 2>&5
3830 ac_status=$?
3831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3832 test $ac_status = 0; }; }; then
3833 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3834 rm -f conftest2.*
3835 if { { case "(($ac_try" in
3836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3837 *) ac_try_echo=$ac_try;;
3838 esac
3839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3840 $as_echo "$ac_try_echo"; } >&5
3841 (eval "$ac_try") 2>&5
3842 ac_status=$?
3843 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3844 test $ac_status = 0; } &&
3845 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_try") 2>&5
3852 ac_status=$?
3853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3854 test $ac_status = 0; };
3855 then
3856 # cc works too.
3858 else
3859 # cc exists but doesn't like -o.
3860 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3861 fi
3862 fi
3863 fi
3864 else
3865 eval ac_cv_prog_cc_${ac_cc}_c_o=no
3866 fi
3867 rm -f core conftest*
3869 fi
3870 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3872 $as_echo "yes" >&6; }
3873 else
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3875 $as_echo "no" >&6; }
3877 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3879 fi
3881 # FIXME: we rely on the cache variable name because
3882 # there is no other way.
3883 set dummy $CC
3884 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3885 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
3886 if test "$am_t" != yes; then
3887 # Losing compiler, so override with the script.
3888 # FIXME: It is wrong to rewrite CC.
3889 # But if we don't then we get into trouble of one sort or another.
3890 # A longer-term fix would be to have automake use am__CC in this case,
3891 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3892 CC="$am_aux_dir/compile $CC"
3893 fi
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable debugging" >&5
3900 $as_echo_n "checking whether to enable debugging... " >&6; }
3901 # Check whether --enable-debug was given.
3902 if test "${enable_debug+set}" = set; then :
3903 enableval=$enable_debug;
3904 fi
3906 if test "$enable_debug" = "yes"; then
3907 CFLAGS="-Wall -O0 -g -D_DEBUG"
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3909 $as_echo "yes" >&6; }
3910 else
3911 CFLAGS="-O3"
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3913 $as_echo "no" >&6; }
3914 fi
3916 #AC_MSG_CHECKING([for libz])
3917 #AX_CHECK_ZLIB
3919 if test "$OS" = "win"; then
3920 OS_WIN_TRUE=
3921 OS_WIN_FALSE='#'
3922 else
3923 OS_WIN_TRUE='#'
3924 OS_WIN_FALSE=
3925 fi
3927 if test "$OS" = "linux"; then
3928 OS_LINUX_TRUE=
3929 OS_LINUX_FALSE='#'
3930 else
3931 OS_LINUX_TRUE='#'
3932 OS_LINUX_FALSE=
3933 fi
3936 # Do not run test for Allegro with Win32/MinGW version, as binary builds have
3937 # `allegro-config' missing.
3938 # NOTE: For the following Autoconf macro to be supported, you need to extract
3939 # allegro.m4 from the DOS/Windows Allegro sources (the file is contained
3940 # in `misc') and copy it to this directory or MSYS's `/share/aclocal'.
3941 if test "$OS" != "win"; then
3945 # Check whether --with-allegro-prefix was given.
3946 if test "${with_allegro_prefix+set}" = set; then :
3947 withval=$with_allegro_prefix; ALLEGRO_CONFIG_prefix="$withval"
3948 else
3949 ALLEGRO_CONFIG_prefix=""
3950 fi
3953 # Check whether --with-allegro-exec-prefix was given.
3954 if test "${with_allegro_exec_prefix+set}" = set; then :
3955 withval=$with_allegro_exec_prefix; ALLEGRO_CONFIG_exec_prefix="$withval"
3956 else
3957 ALLEGRO_CONFIG_exec_prefix=""
3958 fi
3960 # Check whether --enable-allegrotest was given.
3961 if test "${enable_allegrotest+set}" = set; then :
3962 enableval=$enable_allegrotest;
3963 else
3964 enable_allegrotest=yes
3965 fi
3968 if test x$ALLEGRO_CONFIG_exec_prefix != x ; then
3969 ALLEGRO_CONFIG_args="$ALLEGRO_CONFIG_args --exec-prefix=$ALLEGRO_CONFIG_exec_prefix"
3970 if test x${ALLEGRO_CONFIG+set} != xset ; then
3971 ALLEGRO_CONFIG=$ALLEGRO_CONFIG_exec_prefix/bin/allegro-config
3972 fi
3973 fi
3974 if test x$ALLEGRO_CONFIG_prefix != x ; then
3975 ALLEGRO_CONFIG_args="$ALLEGRO_CONFIG_args --prefix=$ALLEGRO_CONFIG_prefix"
3976 if test x${ALLEGRO_CONFIG+set} != xset ; then
3977 ALLEGRO_CONFIG=$ALLEGRO_CONFIG_prefix/bin/allegro-config
3978 fi
3979 fi
3981 # Extract the first word of "allegro-config", so it can be a program name with args.
3982 set dummy allegro-config; ac_word=$2
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3984 $as_echo_n "checking for $ac_word... " >&6; }
3985 if test "${ac_cv_path_ALLEGRO_CONFIG+set}" = set; then :
3986 $as_echo_n "(cached) " >&6
3987 else
3988 case $ALLEGRO_CONFIG in
3989 [\\/]* | ?:[\\/]*)
3990 ac_cv_path_ALLEGRO_CONFIG="$ALLEGRO_CONFIG" # Let the user override the test with a path.
3991 ;;
3992 *)
3993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3994 for as_dir in $PATH
3995 do
3996 IFS=$as_save_IFS
3997 test -z "$as_dir" && as_dir=.
3998 for ac_exec_ext in '' $ac_executable_extensions; do
3999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4000 ac_cv_path_ALLEGRO_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4002 break 2
4003 fi
4004 done
4005 done
4006 IFS=$as_save_IFS
4008 test -z "$ac_cv_path_ALLEGRO_CONFIG" && ac_cv_path_ALLEGRO_CONFIG="no"
4009 ;;
4010 esac
4011 fi
4012 ALLEGRO_CONFIG=$ac_cv_path_ALLEGRO_CONFIG
4013 if test -n "$ALLEGRO_CONFIG"; then
4014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ALLEGRO_CONFIG" >&5
4015 $as_echo "$ALLEGRO_CONFIG" >&6; }
4016 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4018 $as_echo "no" >&6; }
4019 fi
4022 min_allegro_version=4.0.0
4023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Allegro - version >= $min_allegro_version" >&5
4024 $as_echo_n "checking for Allegro - version >= $min_allegro_version... " >&6; }
4025 no_allegro=""
4026 if test "$ALLEGRO_CONFIG" = "no" ; then
4027 no_allegro=yes
4028 else
4029 allegro_CFLAGS=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --cflags`
4030 allegro_LIBS=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --libs`
4031 ALLEGRO_CONFIG_major_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
4032 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4033 ALLEGRO_CONFIG_minor_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
4034 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4035 ALLEGRO_CONFIG_micro_version=`$ALLEGRO_CONFIG $ALLEGRO_CONFIG_args --version | \
4036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4037 if test "x$enable_allegrotest" = "xyes" ; then
4038 ac_save_CFLAGS="$CFLAGS"
4039 ac_save_LIBS="$LIBS"
4040 CFLAGS="$CFLAGS $allegro_CFLAGS"
4041 LIBS="$allegro_LIBS $LIBS"
4042 rm -f conf.allegrotest
4043 if test "$cross_compiling" = yes; then :
4044 echo $ac_n "cross compiling; assumed OK... $ac_c"
4045 else
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4049 #include <stdlib.h>
4050 #include <stdio.h>
4051 #include <string.h>
4052 #include <allegro.h>
4054 int
4055 main()
4057 int allegro_major_version, allegro_minor_version, allegro_micro_version;
4058 int major, minor, micro;
4059 char *tmp_version;
4060 int tmp_int_version;
4062 system("touch conf.allegrotest");
4064 /* Capture allegro-config output via autoconf/configure variables */
4065 /* HP/UX 9 (%@#!) writes to sscanf strings */
4066 tmp_version = (char *)strdup("$min_allegro_version");
4067 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
4068 printf("%s, bad version string from allegro-config\n", "$min_allegro_version");
4069 free(tmp_version);
4070 exit(1);
4072 free(tmp_version);
4074 /* Capture the version information from the header files */
4075 allegro_major_version = ALLEGRO_VERSION;
4076 allegro_minor_version = ALLEGRO_SUB_VERSION;
4077 allegro_micro_version = ALLEGRO_WIP_VERSION;
4079 /* Compare allegro-config output to the Allegro headers */
4080 if ((allegro_major_version != $ALLEGRO_CONFIG_major_version) ||
4081 (allegro_minor_version != $ALLEGRO_CONFIG_minor_version))
4084 printf("*** Allegro header files (version %d.%d.%d) do not match\n",
4085 allegro_major_version, allegro_minor_version, allegro_micro_version);
4086 printf("*** allegro-config (version %d.%d.%d)\n",
4087 $ALLEGRO_CONFIG_major_version, $ALLEGRO_CONFIG_minor_version, $ALLEGRO_CONFIG_micro_version);
4088 return 1;
4090 /* Compare the headers to the library to make sure we match */
4091 /* Less than ideal -- doesn't provide us with return value feedback,
4092 * only exits if there's a serious mismatch between header and library.
4093 */
4094 /* TODO:
4095 * This doesnt work!
4096 */
4097 /* ALLEGRO_TEST_VERSION; */
4099 /* Test that the library is greater than our minimum version */
4100 if (($ALLEGRO_CONFIG_major_version > major) ||
4101 (($ALLEGRO_CONFIG_major_version == major) && ($ALLEGRO_CONFIG_minor_version > minor)) ||
4102 (($ALLEGRO_CONFIG_major_version == major) && ($ALLEGRO_CONFIG_minor_version == minor) &&
4103 ($ALLEGRO_CONFIG_micro_version >= micro)))
4105 return 0;
4107 else
4109 printf("\n*** An old version of Allegro (%d.%d.%d) was found.\n",
4110 allegro_major_version, allegro_minor_version, allegro_micro_version);
4111 printf("*** You need a version of Allegro newer than %d.%d.%d. The latest version of\n",
4112 major, minor, micro);
4113 printf("*** Allegro is always available from http://alleg.sf.net.\n");
4114 printf("***\n");
4115 printf("*** If you have already installed a sufficiently new version, this error\n");
4116 printf("*** probably means that the wrong copy of the allegro-config shell script is\n");
4117 printf("*** being found. The easiest way to fix this is to remove the old version\n");
4118 printf("*** of Allegro, but you can also set the ALLEGRO_CONFIG environment to point to the\n");
4119 printf("*** correct copy of allegro-config. (In this case, you will have to\n");
4120 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
4121 printf("*** so that the correct libraries are found at run-time))\n");
4123 return 1;
4124 } END_OF_MAIN()
4126 _ACEOF
4127 if ac_fn_c_try_run "$LINENO"; then :
4129 else
4130 no_allegro=yes
4131 fi
4132 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4133 conftest.$ac_objext conftest.beam conftest.$ac_ext
4134 fi
4136 CFLAGS="$ac_save_CFLAGS"
4137 LIBS="$ac_save_LIBS"
4138 fi
4139 fi
4141 if test "x$no_allegro" = x ; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $ALLEGRO_CONFIG_major_version.$ALLEGRO_CONFIG_minor_version.$ALLEGRO_CONFIG_micro_version)" >&5
4143 $as_echo "yes (version $ALLEGRO_CONFIG_major_version.$ALLEGRO_CONFIG_minor_version.$ALLEGRO_CONFIG_micro_version)" >&6; }
4145 else
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4147 $as_echo "no" >&6; }
4148 if test "$ALLEGRO_CONFIG" = "no" ; then
4149 echo "*** The allegro-config script installed by Allegro could not be found"
4150 echo "*** If Allegro was installed in PREFIX, make sure PREFIX/bin is in"
4151 echo "*** your path, or set the ALLEGRO_CONFIG environment variable to the"
4152 echo "*** full path to allegro-config."
4153 else
4154 if test -f conf.allegrotest ; then
4156 else
4157 echo "*** Could not run Allegro test program, checking why..."
4158 CFLAGS="$CFLAGS $allegro_CFLAGS"
4159 LIBS="$LIBS $allegro_LIBS"
4160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4161 /* end confdefs.h. */
4163 #include <allegro.h>
4164 #include <stdio.h>
4166 int
4167 main ()
4169 ALLEGRO_TEST_VERSION; return 0;
4171 return 0;
4173 _ACEOF
4174 if ac_fn_c_try_link "$LINENO"; then :
4175 echo "*** The test program compiled, but did not run. This usually means"
4176 echo "*** that the run-time linker is not finding Allegro or finding the wrong"
4177 echo "*** version of Allegro. If it is not finding Allegro, you'll need to set your"
4178 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
4179 echo "*** to the installed location Also, make sure you have run ldconfig if that"
4180 echo "*** is required on your system"
4181 echo "***"
4182 echo "*** If you have an old version installed, it is best to remove it, although"
4183 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
4184 else
4185 echo "*** The test program failed to compile or link. See the file config.log for the"
4186 echo "*** exact error that occured. This usually means Allegro was incorrectly installed"
4187 echo "*** or that you have moved Allegro since it was installed. In the latter case, you"
4188 echo "*** may want to edit the allegro-config script: $ALLEGRO_CONFIG"
4189 fi
4190 rm -f core conftest.err conftest.$ac_objext \
4191 conftest$ac_exeext conftest.$ac_ext
4192 CFLAGS="$ac_save_CFLAGS"
4193 LIBS="$ac_save_LIBS"
4194 fi
4195 fi
4197 allegro_CFLAGS=""
4198 allegro_LIBS=""
4199 as_fn_error "building B-em requires Allegro to be installed" "$LINENO" 5
4200 fi
4203 rm -f conf.allegrotest
4205 fi
4207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alGetError in -lopenal" >&5
4208 $as_echo_n "checking for alGetError in -lopenal... " >&6; }
4209 if test "${ac_cv_lib_openal_alGetError+set}" = set; then :
4210 $as_echo_n "(cached) " >&6
4211 else
4212 ac_check_lib_save_LIBS=$LIBS
4213 LIBS="-lopenal $LIBS"
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4217 /* Override any GCC internal prototype to avoid an error.
4218 Use char because int might match the return type of a GCC
4219 builtin and then its argument prototype would still apply. */
4220 #ifdef __cplusplus
4221 extern "C"
4222 #endif
4223 char alGetError ();
4224 int
4225 main ()
4227 return alGetError ();
4229 return 0;
4231 _ACEOF
4232 if ac_fn_c_try_link "$LINENO"; then :
4233 ac_cv_lib_openal_alGetError=yes
4234 else
4235 ac_cv_lib_openal_alGetError=no
4236 fi
4237 rm -f core conftest.err conftest.$ac_objext \
4238 conftest$ac_exeext conftest.$ac_ext
4239 LIBS=$ac_check_lib_save_LIBS
4240 fi
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_openal_alGetError" >&5
4242 $as_echo "$ac_cv_lib_openal_alGetError" >&6; }
4243 if test "x$ac_cv_lib_openal_alGetError" = x""yes; then :
4244 cat >>confdefs.h <<_ACEOF
4245 #define HAVE_LIBOPENAL 1
4246 _ACEOF
4248 LIBS="-lopenal $LIBS"
4250 else
4252 echo "You need to install the OpenAL library."
4253 exit -1
4254 fi
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alutInit in -lalut" >&5
4257 $as_echo_n "checking for alutInit in -lalut... " >&6; }
4258 if test "${ac_cv_lib_alut_alutInit+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 ac_check_lib_save_LIBS=$LIBS
4262 LIBS="-lalut $LIBS"
4263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4264 /* end confdefs.h. */
4266 /* Override any GCC internal prototype to avoid an error.
4267 Use char because int might match the return type of a GCC
4268 builtin and then its argument prototype would still apply. */
4269 #ifdef __cplusplus
4270 extern "C"
4271 #endif
4272 char alutInit ();
4273 int
4274 main ()
4276 return alutInit ();
4278 return 0;
4280 _ACEOF
4281 if ac_fn_c_try_link "$LINENO"; then :
4282 ac_cv_lib_alut_alutInit=yes
4283 else
4284 ac_cv_lib_alut_alutInit=no
4285 fi
4286 rm -f core conftest.err conftest.$ac_objext \
4287 conftest$ac_exeext conftest.$ac_ext
4288 LIBS=$ac_check_lib_save_LIBS
4289 fi
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_alut_alutInit" >&5
4291 $as_echo "$ac_cv_lib_alut_alutInit" >&6; }
4292 if test "x$ac_cv_lib_alut_alutInit" = x""yes; then :
4293 cat >>confdefs.h <<_ACEOF
4294 #define HAVE_LIBALUT 1
4295 _ACEOF
4297 LIBS="-lalut $LIBS"
4299 else
4301 echo "You need to install the ALUT library."
4302 exit -1
4303 fi
4307 ac_config_files="$ac_config_files Makefile src/Makefile"
4309 cat >confcache <<\_ACEOF
4310 # This file is a shell script that caches the results of configure
4311 # tests run on this system so they can be shared between configure
4312 # scripts and configure runs, see configure's option --config-cache.
4313 # It is not useful on other systems. If it contains results you don't
4314 # want to keep, you may remove or edit it.
4316 # config.status only pays attention to the cache file if you give it
4317 # the --recheck option to rerun configure.
4319 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4320 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4321 # following values.
4323 _ACEOF
4325 # The following way of writing the cache mishandles newlines in values,
4326 # but we know of no workaround that is simple, portable, and efficient.
4327 # So, we kill variables containing newlines.
4328 # Ultrix sh set writes to stderr and can't be redirected directly,
4329 # and sets the high bit in the cache file unless we assign to the vars.
4331 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4332 eval ac_val=\$$ac_var
4333 case $ac_val in #(
4334 *${as_nl}*)
4335 case $ac_var in #(
4336 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4337 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4338 esac
4339 case $ac_var in #(
4340 _ | IFS | as_nl) ;; #(
4341 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4342 *) { eval $ac_var=; unset $ac_var;} ;;
4343 esac ;;
4344 esac
4345 done
4347 (set) 2>&1 |
4348 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4349 *${as_nl}ac_space=\ *)
4350 # `set' does not quote correctly, so add quotes: double-quote
4351 # substitution turns \\\\ into \\, and sed turns \\ into \.
4352 sed -n \
4353 "s/'/'\\\\''/g;
4354 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4355 ;; #(
4356 *)
4357 # `set' quotes correctly as required by POSIX, so do not add quotes.
4358 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4359 ;;
4360 esac |
4361 sort
4362 ) |
4363 sed '
4364 /^ac_cv_env_/b end
4365 t clear
4366 :clear
4367 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4368 t end
4369 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4370 :end' >>confcache
4371 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4372 if test -w "$cache_file"; then
4373 test "x$cache_file" != "x/dev/null" &&
4374 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4375 $as_echo "$as_me: updating cache $cache_file" >&6;}
4376 cat confcache >$cache_file
4377 else
4378 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4379 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4380 fi
4381 fi
4382 rm -f confcache
4384 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4385 # Let make expand exec_prefix.
4386 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4388 # Transform confdefs.h into DEFS.
4389 # Protect against shell expansion while executing Makefile rules.
4390 # Protect against Makefile macro expansion.
4392 # If the first sed substitution is executed (which looks for macros that
4393 # take arguments), then branch to the quote section. Otherwise,
4394 # look for a macro that doesn't take arguments.
4395 ac_script='
4396 :mline
4397 /\\$/{
4399 s,\\\n,,
4400 b mline
4402 t clear
4403 :clear
4404 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4405 t quote
4406 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4407 t quote
4408 b any
4409 :quote
4410 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4411 s/\[/\\&/g
4412 s/\]/\\&/g
4413 s/\$/$$/g
4415 :any
4416 ${
4418 s/^\n//
4419 s/\n/ /g
4423 DEFS=`sed -n "$ac_script" confdefs.h`
4426 ac_libobjs=
4427 ac_ltlibobjs=
4428 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4429 # 1. Remove the extension, and $U if already installed.
4430 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4431 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4432 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4433 # will be set to the directory where LIBOBJS objects are built.
4434 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4435 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4436 done
4437 LIBOBJS=$ac_libobjs
4439 LTLIBOBJS=$ac_ltlibobjs
4442 if test -n "$EXEEXT"; then
4443 am__EXEEXT_TRUE=
4444 am__EXEEXT_FALSE='#'
4445 else
4446 am__EXEEXT_TRUE='#'
4447 am__EXEEXT_FALSE=
4448 fi
4450 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4451 as_fn_error "conditional \"AMDEP\" was never defined.
4452 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4453 fi
4454 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4455 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4456 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4457 fi
4458 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
4459 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
4460 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4461 fi
4462 if test -z "${OS_WIN_TRUE}" && test -z "${OS_WIN_FALSE}"; then
4463 as_fn_error "conditional \"OS_WIN\" was never defined.
4464 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4465 fi
4466 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
4467 as_fn_error "conditional \"OS_LINUX\" was never defined.
4468 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4469 fi
4471 : ${CONFIG_STATUS=./config.status}
4472 ac_write_fail=0
4473 ac_clean_files_save=$ac_clean_files
4474 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4476 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4477 as_write_fail=0
4478 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4479 #! $SHELL
4480 # Generated by $as_me.
4481 # Run this file to recreate the current configuration.
4482 # Compiler output produced by configure, useful for debugging
4483 # configure, is in config.log if it exists.
4485 debug=false
4486 ac_cs_recheck=false
4487 ac_cs_silent=false
4489 SHELL=\${CONFIG_SHELL-$SHELL}
4490 export SHELL
4491 _ASEOF
4492 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4493 ## -------------------- ##
4494 ## M4sh Initialization. ##
4495 ## -------------------- ##
4497 # Be more Bourne compatible
4498 DUALCASE=1; export DUALCASE # for MKS sh
4499 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4500 emulate sh
4501 NULLCMD=:
4502 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4503 # is contrary to our usage. Disable this feature.
4504 alias -g '${1+"$@"}'='"$@"'
4505 setopt NO_GLOB_SUBST
4506 else
4507 case `(set -o) 2>/dev/null` in #(
4508 *posix*) :
4509 set -o posix ;; #(
4510 *) :
4511 ;;
4512 esac
4513 fi
4516 as_nl='
4518 export as_nl
4519 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4520 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4521 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4522 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4523 # Prefer a ksh shell builtin over an external printf program on Solaris,
4524 # but without wasting forks for bash or zsh.
4525 if test -z "$BASH_VERSION$ZSH_VERSION" \
4526 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4527 as_echo='print -r --'
4528 as_echo_n='print -rn --'
4529 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4530 as_echo='printf %s\n'
4531 as_echo_n='printf %s'
4532 else
4533 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4534 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4535 as_echo_n='/usr/ucb/echo -n'
4536 else
4537 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4538 as_echo_n_body='eval
4539 arg=$1;
4540 case $arg in #(
4541 *"$as_nl"*)
4542 expr "X$arg" : "X\\(.*\\)$as_nl";
4543 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4544 esac;
4545 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4547 export as_echo_n_body
4548 as_echo_n='sh -c $as_echo_n_body as_echo'
4549 fi
4550 export as_echo_body
4551 as_echo='sh -c $as_echo_body as_echo'
4552 fi
4554 # The user is always right.
4555 if test "${PATH_SEPARATOR+set}" != set; then
4556 PATH_SEPARATOR=:
4557 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4558 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4559 PATH_SEPARATOR=';'
4561 fi
4564 # IFS
4565 # We need space, tab and new line, in precisely that order. Quoting is
4566 # there to prevent editors from complaining about space-tab.
4567 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4568 # splitting by setting IFS to empty value.)
4569 IFS=" "" $as_nl"
4571 # Find who we are. Look in the path if we contain no directory separator.
4572 case $0 in #((
4573 *[\\/]* ) as_myself=$0 ;;
4574 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4575 for as_dir in $PATH
4576 do
4577 IFS=$as_save_IFS
4578 test -z "$as_dir" && as_dir=.
4579 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4580 done
4581 IFS=$as_save_IFS
4583 ;;
4584 esac
4585 # We did not find ourselves, most probably we were run as `sh COMMAND'
4586 # in which case we are not to be found in the path.
4587 if test "x$as_myself" = x; then
4588 as_myself=$0
4589 fi
4590 if test ! -f "$as_myself"; then
4591 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4592 exit 1
4593 fi
4595 # Unset variables that we do not need and which cause bugs (e.g. in
4596 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4597 # suppresses any "Segmentation fault" message there. '((' could
4598 # trigger a bug in pdksh 5.2.14.
4599 for as_var in BASH_ENV ENV MAIL MAILPATH
4600 do eval test x\${$as_var+set} = xset \
4601 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4602 done
4603 PS1='$ '
4604 PS2='> '
4605 PS4='+ '
4607 # NLS nuisances.
4608 LC_ALL=C
4609 export LC_ALL
4610 LANGUAGE=C
4611 export LANGUAGE
4613 # CDPATH.
4614 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4617 # as_fn_error ERROR [LINENO LOG_FD]
4618 # ---------------------------------
4619 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4620 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4621 # script with status $?, using 1 if that was 0.
4622 as_fn_error ()
4624 as_status=$?; test $as_status -eq 0 && as_status=1
4625 if test "$3"; then
4626 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4627 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4628 fi
4629 $as_echo "$as_me: error: $1" >&2
4630 as_fn_exit $as_status
4631 } # as_fn_error
4634 # as_fn_set_status STATUS
4635 # -----------------------
4636 # Set $? to STATUS, without forking.
4637 as_fn_set_status ()
4639 return $1
4640 } # as_fn_set_status
4642 # as_fn_exit STATUS
4643 # -----------------
4644 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4645 as_fn_exit ()
4647 set +e
4648 as_fn_set_status $1
4649 exit $1
4650 } # as_fn_exit
4652 # as_fn_unset VAR
4653 # ---------------
4654 # Portably unset VAR.
4655 as_fn_unset ()
4657 { eval $1=; unset $1;}
4659 as_unset=as_fn_unset
4660 # as_fn_append VAR VALUE
4661 # ----------------------
4662 # Append the text in VALUE to the end of the definition contained in VAR. Take
4663 # advantage of any shell optimizations that allow amortized linear growth over
4664 # repeated appends, instead of the typical quadratic growth present in naive
4665 # implementations.
4666 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4667 eval 'as_fn_append ()
4669 eval $1+=\$2
4670 }'
4671 else
4672 as_fn_append ()
4674 eval $1=\$$1\$2
4676 fi # as_fn_append
4678 # as_fn_arith ARG...
4679 # ------------------
4680 # Perform arithmetic evaluation on the ARGs, and store the result in the
4681 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4682 # must be portable across $(()) and expr.
4683 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4684 eval 'as_fn_arith ()
4686 as_val=$(( $* ))
4687 }'
4688 else
4689 as_fn_arith ()
4691 as_val=`expr "$@" || test $? -eq 1`
4693 fi # as_fn_arith
4696 if expr a : '\(a\)' >/dev/null 2>&1 &&
4697 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4698 as_expr=expr
4699 else
4700 as_expr=false
4701 fi
4703 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4704 as_basename=basename
4705 else
4706 as_basename=false
4707 fi
4709 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4710 as_dirname=dirname
4711 else
4712 as_dirname=false
4713 fi
4715 as_me=`$as_basename -- "$0" ||
4716 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4717 X"$0" : 'X\(//\)$' \| \
4718 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4719 $as_echo X/"$0" |
4720 sed '/^.*\/\([^/][^/]*\)\/*$/{
4721 s//\1/
4724 /^X\/\(\/\/\)$/{
4725 s//\1/
4728 /^X\/\(\/\).*/{
4729 s//\1/
4732 s/.*/./; q'`
4734 # Avoid depending upon Character Ranges.
4735 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4736 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4737 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4738 as_cr_digits='0123456789'
4739 as_cr_alnum=$as_cr_Letters$as_cr_digits
4741 ECHO_C= ECHO_N= ECHO_T=
4742 case `echo -n x` in #(((((
4743 -n*)
4744 case `echo 'xy\c'` in
4745 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4746 xy) ECHO_C='\c';;
4747 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4748 ECHO_T=' ';;
4749 esac;;
4750 *)
4751 ECHO_N='-n';;
4752 esac
4754 rm -f conf$$ conf$$.exe conf$$.file
4755 if test -d conf$$.dir; then
4756 rm -f conf$$.dir/conf$$.file
4757 else
4758 rm -f conf$$.dir
4759 mkdir conf$$.dir 2>/dev/null
4760 fi
4761 if (echo >conf$$.file) 2>/dev/null; then
4762 if ln -s conf$$.file conf$$ 2>/dev/null; then
4763 as_ln_s='ln -s'
4764 # ... but there are two gotchas:
4765 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4766 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4767 # In both cases, we have to default to `cp -p'.
4768 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4769 as_ln_s='cp -p'
4770 elif ln conf$$.file conf$$ 2>/dev/null; then
4771 as_ln_s=ln
4772 else
4773 as_ln_s='cp -p'
4774 fi
4775 else
4776 as_ln_s='cp -p'
4777 fi
4778 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4779 rmdir conf$$.dir 2>/dev/null
4782 # as_fn_mkdir_p
4783 # -------------
4784 # Create "$as_dir" as a directory, including parents if necessary.
4785 as_fn_mkdir_p ()
4788 case $as_dir in #(
4789 -*) as_dir=./$as_dir;;
4790 esac
4791 test -d "$as_dir" || eval $as_mkdir_p || {
4792 as_dirs=
4793 while :; do
4794 case $as_dir in #(
4795 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4796 *) as_qdir=$as_dir;;
4797 esac
4798 as_dirs="'$as_qdir' $as_dirs"
4799 as_dir=`$as_dirname -- "$as_dir" ||
4800 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4801 X"$as_dir" : 'X\(//\)[^/]' \| \
4802 X"$as_dir" : 'X\(//\)$' \| \
4803 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4804 $as_echo X"$as_dir" |
4805 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4806 s//\1/
4809 /^X\(\/\/\)[^/].*/{
4810 s//\1/
4813 /^X\(\/\/\)$/{
4814 s//\1/
4817 /^X\(\/\).*/{
4818 s//\1/
4821 s/.*/./; q'`
4822 test -d "$as_dir" && break
4823 done
4824 test -z "$as_dirs" || eval "mkdir $as_dirs"
4825 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4828 } # as_fn_mkdir_p
4829 if mkdir -p . 2>/dev/null; then
4830 as_mkdir_p='mkdir -p "$as_dir"'
4831 else
4832 test -d ./-p && rmdir ./-p
4833 as_mkdir_p=false
4834 fi
4836 if test -x / >/dev/null 2>&1; then
4837 as_test_x='test -x'
4838 else
4839 if ls -dL / >/dev/null 2>&1; then
4840 as_ls_L_option=L
4841 else
4842 as_ls_L_option=
4843 fi
4844 as_test_x='
4845 eval sh -c '\''
4846 if test -d "$1"; then
4847 test -d "$1/.";
4848 else
4849 case $1 in #(
4850 -*)set "./$1";;
4851 esac;
4852 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4853 ???[sx]*):;;*)false;;esac;fi
4854 '\'' sh
4856 fi
4857 as_executable_p=$as_test_x
4859 # Sed expression to map a string onto a valid CPP name.
4860 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4862 # Sed expression to map a string onto a valid variable name.
4863 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4866 exec 6>&1
4867 ## ----------------------------------- ##
4868 ## Main body of $CONFIG_STATUS script. ##
4869 ## ----------------------------------- ##
4870 _ASEOF
4871 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4874 # Save the log message, to keep $0 and so on meaningful, and to
4875 # report actual input values of CONFIG_FILES etc. instead of their
4876 # values after options handling.
4877 ac_log="
4878 This file was extended by PCem $as_me v9, which was
4879 generated by GNU Autoconf 2.65. Invocation command line was
4881 CONFIG_FILES = $CONFIG_FILES
4882 CONFIG_HEADERS = $CONFIG_HEADERS
4883 CONFIG_LINKS = $CONFIG_LINKS
4884 CONFIG_COMMANDS = $CONFIG_COMMANDS
4885 $ $0 $@
4887 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4890 _ACEOF
4892 case $ac_config_files in *"
4893 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4894 esac
4898 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4899 # Files that config.status was made for.
4900 config_files="$ac_config_files"
4901 config_commands="$ac_config_commands"
4903 _ACEOF
4905 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4906 ac_cs_usage="\
4907 \`$as_me' instantiates files and other configuration actions
4908 from templates according to the current configuration. Unless the files
4909 and actions are specified as TAGs, all are instantiated by default.
4911 Usage: $0 [OPTION]... [TAG]...
4913 -h, --help print this help, then exit
4914 -V, --version print version number and configuration settings, then exit
4915 --config print configuration, then exit
4916 -q, --quiet, --silent
4917 do not print progress messages
4918 -d, --debug don't remove temporary files
4919 --recheck update $as_me by reconfiguring in the same conditions
4920 --file=FILE[:TEMPLATE]
4921 instantiate the configuration file FILE
4923 Configuration files:
4924 $config_files
4926 Configuration commands:
4927 $config_commands
4929 Report bugs to <Tom Walker <tommowalker@tommowalker.co.uk>>."
4931 _ACEOF
4932 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4933 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4934 ac_cs_version="\\
4935 PCem config.status v9
4936 configured by $0, generated by GNU Autoconf 2.65,
4937 with options \\"\$ac_cs_config\\"
4939 Copyright (C) 2009 Free Software Foundation, Inc.
4940 This config.status script is free software; the Free Software Foundation
4941 gives unlimited permission to copy, distribute and modify it."
4943 ac_pwd='$ac_pwd'
4944 srcdir='$srcdir'
4945 INSTALL='$INSTALL'
4946 MKDIR_P='$MKDIR_P'
4947 AWK='$AWK'
4948 test -n "\$AWK" || AWK=awk
4949 _ACEOF
4951 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4952 # The default lists apply if the user does not specify any file.
4953 ac_need_defaults=:
4954 while test $# != 0
4955 do
4956 case $1 in
4957 --*=*)
4958 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4959 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4960 ac_shift=:
4961 ;;
4962 *)
4963 ac_option=$1
4964 ac_optarg=$2
4965 ac_shift=shift
4966 ;;
4967 esac
4969 case $ac_option in
4970 # Handling of the options.
4971 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4972 ac_cs_recheck=: ;;
4973 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4974 $as_echo "$ac_cs_version"; exit ;;
4975 --config | --confi | --conf | --con | --co | --c )
4976 $as_echo "$ac_cs_config"; exit ;;
4977 --debug | --debu | --deb | --de | --d | -d )
4978 debug=: ;;
4979 --file | --fil | --fi | --f )
4980 $ac_shift
4981 case $ac_optarg in
4982 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4983 esac
4984 as_fn_append CONFIG_FILES " '$ac_optarg'"
4985 ac_need_defaults=false;;
4986 --he | --h | --help | --hel | -h )
4987 $as_echo "$ac_cs_usage"; exit ;;
4988 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4989 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4990 ac_cs_silent=: ;;
4992 # This is an error.
4993 -*) as_fn_error "unrecognized option: \`$1'
4994 Try \`$0 --help' for more information." ;;
4996 *) as_fn_append ac_config_targets " $1"
4997 ac_need_defaults=false ;;
4999 esac
5000 shift
5001 done
5003 ac_configure_extra_args=
5005 if $ac_cs_silent; then
5006 exec 6>/dev/null
5007 ac_configure_extra_args="$ac_configure_extra_args --silent"
5008 fi
5010 _ACEOF
5011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5012 if \$ac_cs_recheck; then
5013 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5014 shift
5015 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5016 CONFIG_SHELL='$SHELL'
5017 export CONFIG_SHELL
5018 exec "\$@"
5019 fi
5021 _ACEOF
5022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5023 exec 5>>config.log
5025 echo
5026 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5027 ## Running $as_me. ##
5028 _ASBOX
5029 $as_echo "$ac_log"
5030 } >&5
5032 _ACEOF
5033 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5035 # INIT-COMMANDS
5037 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5039 _ACEOF
5041 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5043 # Handling of arguments.
5044 for ac_config_target in $ac_config_targets
5045 do
5046 case $ac_config_target in
5047 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5048 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5049 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5051 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5052 esac
5053 done
5056 # If the user did not use the arguments to specify the items to instantiate,
5057 # then the envvar interface is used. Set only those that are not.
5058 # We use the long form for the default assignment because of an extremely
5059 # bizarre bug on SunOS 4.1.3.
5060 if $ac_need_defaults; then
5061 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5062 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5063 fi
5065 # Have a temporary directory for convenience. Make it in the build tree
5066 # simply because there is no reason against having it here, and in addition,
5067 # creating and moving files from /tmp can sometimes cause problems.
5068 # Hook for its removal unless debugging.
5069 # Note that there is a small window in which the directory will not be cleaned:
5070 # after its creation but before its name has been assigned to `$tmp'.
5071 $debug ||
5073 tmp=
5074 trap 'exit_status=$?
5075 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5076 ' 0
5077 trap 'as_fn_exit 1' 1 2 13 15
5079 # Create a (secure) tmp directory for tmp files.
5082 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5083 test -n "$tmp" && test -d "$tmp"
5084 } ||
5086 tmp=./conf$$-$RANDOM
5087 (umask 077 && mkdir "$tmp")
5088 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5090 # Set up the scripts for CONFIG_FILES section.
5091 # No need to generate them if there are no CONFIG_FILES.
5092 # This happens for instance with `./config.status config.h'.
5093 if test -n "$CONFIG_FILES"; then
5096 ac_cr=`echo X | tr X '\015'`
5097 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5098 # But we know of no other shell where ac_cr would be empty at this
5099 # point, so we can use a bashism as a fallback.
5100 if test "x$ac_cr" = x; then
5101 eval ac_cr=\$\'\\r\'
5102 fi
5103 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5104 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5105 ac_cs_awk_cr='\r'
5106 else
5107 ac_cs_awk_cr=$ac_cr
5108 fi
5110 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5111 _ACEOF
5115 echo "cat >conf$$subs.awk <<_ACEOF" &&
5116 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5117 echo "_ACEOF"
5118 } >conf$$subs.sh ||
5119 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5120 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5121 ac_delim='%!_!# '
5122 for ac_last_try in false false false false false :; do
5123 . ./conf$$subs.sh ||
5124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5126 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5127 if test $ac_delim_n = $ac_delim_num; then
5128 break
5129 elif $ac_last_try; then
5130 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5131 else
5132 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5133 fi
5134 done
5135 rm -f conf$$subs.sh
5137 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5138 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5139 _ACEOF
5140 sed -n '
5142 s/^/S["/; s/!.*/"]=/
5145 s/^[^!]*!//
5146 :repl
5147 t repl
5148 s/'"$ac_delim"'$//
5149 t delim
5150 :nl
5152 s/\(.\{148\}\)..*/\1/
5153 t more1
5154 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5157 b repl
5158 :more1
5159 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5162 s/.\{148\}//
5163 t nl
5164 :delim
5166 s/\(.\{148\}\)..*/\1/
5167 t more2
5168 s/["\\]/\\&/g; s/^/"/; s/$/"/
5171 :more2
5172 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5175 s/.\{148\}//
5176 t delim
5177 ' <conf$$subs.awk | sed '
5178 /^[^""]/{
5180 s/\n//
5182 ' >>$CONFIG_STATUS || ac_write_fail=1
5183 rm -f conf$$subs.awk
5184 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5185 _ACAWK
5186 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5187 for (key in S) S_is_set[key] = 1
5188 FS = ""
5192 line = $ 0
5193 nfields = split(line, field, "@")
5194 substed = 0
5195 len = length(field[1])
5196 for (i = 2; i < nfields; i++) {
5197 key = field[i]
5198 keylen = length(key)
5199 if (S_is_set[key]) {
5200 value = S[key]
5201 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5202 len += length(value) + length(field[++i])
5203 substed = 1
5204 } else
5205 len += 1 + keylen
5208 print line
5211 _ACAWK
5212 _ACEOF
5213 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5214 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5215 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5216 else
5217 cat
5218 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5219 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5220 _ACEOF
5222 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5223 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5224 # trailing colons and then remove the whole line if VPATH becomes empty
5225 # (actually we leave an empty line to preserve line numbers).
5226 if test "x$srcdir" = x.; then
5227 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5228 s/:*\$(srcdir):*/:/
5229 s/:*\${srcdir}:*/:/
5230 s/:*@srcdir@:*/:/
5231 s/^\([^=]*=[ ]*\):*/\1/
5232 s/:*$//
5233 s/^[^=]*=[ ]*$//
5234 }'
5235 fi
5237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5238 fi # test -n "$CONFIG_FILES"
5241 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5242 shift
5243 for ac_tag
5244 do
5245 case $ac_tag in
5246 :[FHLC]) ac_mode=$ac_tag; continue;;
5247 esac
5248 case $ac_mode$ac_tag in
5249 :[FHL]*:*);;
5250 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5251 :[FH]-) ac_tag=-:-;;
5252 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5253 esac
5254 ac_save_IFS=$IFS
5255 IFS=:
5256 set x $ac_tag
5257 IFS=$ac_save_IFS
5258 shift
5259 ac_file=$1
5260 shift
5262 case $ac_mode in
5263 :L) ac_source=$1;;
5264 :[FH])
5265 ac_file_inputs=
5266 for ac_f
5267 do
5268 case $ac_f in
5269 -) ac_f="$tmp/stdin";;
5270 *) # Look for the file first in the build tree, then in the source tree
5271 # (if the path is not absolute). The absolute path cannot be DOS-style,
5272 # because $ac_f cannot contain `:'.
5273 test -f "$ac_f" ||
5274 case $ac_f in
5275 [\\/$]*) false;;
5276 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5277 esac ||
5278 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5279 esac
5280 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5281 as_fn_append ac_file_inputs " '$ac_f'"
5282 done
5284 # Let's still pretend it is `configure' which instantiates (i.e., don't
5285 # use $as_me), people would be surprised to read:
5286 # /* config.h. Generated by config.status. */
5287 configure_input='Generated from '`
5288 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5289 `' by configure.'
5290 if test x"$ac_file" != x-; then
5291 configure_input="$ac_file. $configure_input"
5292 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5293 $as_echo "$as_me: creating $ac_file" >&6;}
5294 fi
5295 # Neutralize special characters interpreted by sed in replacement strings.
5296 case $configure_input in #(
5297 *\&* | *\|* | *\\* )
5298 ac_sed_conf_input=`$as_echo "$configure_input" |
5299 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5300 *) ac_sed_conf_input=$configure_input;;
5301 esac
5303 case $ac_tag in
5304 *:-:* | *:-) cat >"$tmp/stdin" \
5305 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5306 esac
5307 ;;
5308 esac
5310 ac_dir=`$as_dirname -- "$ac_file" ||
5311 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5312 X"$ac_file" : 'X\(//\)[^/]' \| \
5313 X"$ac_file" : 'X\(//\)$' \| \
5314 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5315 $as_echo X"$ac_file" |
5316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5317 s//\1/
5320 /^X\(\/\/\)[^/].*/{
5321 s//\1/
5324 /^X\(\/\/\)$/{
5325 s//\1/
5328 /^X\(\/\).*/{
5329 s//\1/
5332 s/.*/./; q'`
5333 as_dir="$ac_dir"; as_fn_mkdir_p
5334 ac_builddir=.
5336 case "$ac_dir" in
5337 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5338 *)
5339 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5340 # A ".." for each directory in $ac_dir_suffix.
5341 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5342 case $ac_top_builddir_sub in
5343 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5344 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5345 esac ;;
5346 esac
5347 ac_abs_top_builddir=$ac_pwd
5348 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5349 # for backward compatibility:
5350 ac_top_builddir=$ac_top_build_prefix
5352 case $srcdir in
5353 .) # We are building in place.
5354 ac_srcdir=.
5355 ac_top_srcdir=$ac_top_builddir_sub
5356 ac_abs_top_srcdir=$ac_pwd ;;
5357 [\\/]* | ?:[\\/]* ) # Absolute name.
5358 ac_srcdir=$srcdir$ac_dir_suffix;
5359 ac_top_srcdir=$srcdir
5360 ac_abs_top_srcdir=$srcdir ;;
5361 *) # Relative name.
5362 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5363 ac_top_srcdir=$ac_top_build_prefix$srcdir
5364 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5365 esac
5366 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5369 case $ac_mode in
5370 :F)
5372 # CONFIG_FILE
5375 case $INSTALL in
5376 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5377 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5378 esac
5379 ac_MKDIR_P=$MKDIR_P
5380 case $MKDIR_P in
5381 [\\/$]* | ?:[\\/]* ) ;;
5382 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5383 esac
5384 _ACEOF
5386 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5387 # If the template does not know about datarootdir, expand it.
5388 # FIXME: This hack should be removed a few years after 2.60.
5389 ac_datarootdir_hack=; ac_datarootdir_seen=
5390 ac_sed_dataroot='
5391 /datarootdir/ {
5395 /@datadir@/p
5396 /@docdir@/p
5397 /@infodir@/p
5398 /@localedir@/p
5399 /@mandir@/p'
5400 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5401 *datarootdir*) ac_datarootdir_seen=yes;;
5402 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5404 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5405 _ACEOF
5406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5407 ac_datarootdir_hack='
5408 s&@datadir@&$datadir&g
5409 s&@docdir@&$docdir&g
5410 s&@infodir@&$infodir&g
5411 s&@localedir@&$localedir&g
5412 s&@mandir@&$mandir&g
5413 s&\\\${datarootdir}&$datarootdir&g' ;;
5414 esac
5415 _ACEOF
5417 # Neutralize VPATH when `$srcdir' = `.'.
5418 # Shell code in configure.ac might set extrasub.
5419 # FIXME: do we really want to maintain this feature?
5420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5421 ac_sed_extra="$ac_vpsub
5422 $extrasub
5423 _ACEOF
5424 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5425 :t
5426 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5427 s|@configure_input@|$ac_sed_conf_input|;t t
5428 s&@top_builddir@&$ac_top_builddir_sub&;t t
5429 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5430 s&@srcdir@&$ac_srcdir&;t t
5431 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5432 s&@top_srcdir@&$ac_top_srcdir&;t t
5433 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5434 s&@builddir@&$ac_builddir&;t t
5435 s&@abs_builddir@&$ac_abs_builddir&;t t
5436 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5437 s&@INSTALL@&$ac_INSTALL&;t t
5438 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5439 $ac_datarootdir_hack
5441 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5442 || as_fn_error "could not create $ac_file" "$LINENO" 5
5444 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5445 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5446 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5448 which seems to be undefined. Please make sure it is defined." >&5
5449 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5450 which seems to be undefined. Please make sure it is defined." >&2;}
5452 rm -f "$tmp/stdin"
5453 case $ac_file in
5454 -) cat "$tmp/out" && rm -f "$tmp/out";;
5455 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5456 esac \
5457 || as_fn_error "could not create $ac_file" "$LINENO" 5
5458 ;;
5461 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5462 $as_echo "$as_me: executing $ac_file commands" >&6;}
5463 ;;
5464 esac
5467 case $ac_file$ac_mode in
5468 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5469 # Autoconf 2.62 quotes --file arguments for eval, but not when files
5470 # are listed without --file. Let's play safe and only enable the eval
5471 # if we detect the quoting.
5472 case $CONFIG_FILES in
5473 *\'*) eval set x "$CONFIG_FILES" ;;
5474 *) set x $CONFIG_FILES ;;
5475 esac
5476 shift
5477 for mf
5478 do
5479 # Strip MF so we end up with the name of the file.
5480 mf=`echo "$mf" | sed -e 's/:.*$//'`
5481 # Check whether this is an Automake generated Makefile or not.
5482 # We used to match only the files named `Makefile.in', but
5483 # some people rename them; so instead we look at the file content.
5484 # Grep'ing the first line is not enough: some people post-process
5485 # each Makefile.in and add a new line on top of each file to say so.
5486 # Grep'ing the whole file is not good either: AIX grep has a line
5487 # limit of 2048, but all sed's we know have understand at least 4000.
5488 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5489 dirpart=`$as_dirname -- "$mf" ||
5490 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5491 X"$mf" : 'X\(//\)[^/]' \| \
5492 X"$mf" : 'X\(//\)$' \| \
5493 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5494 $as_echo X"$mf" |
5495 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5496 s//\1/
5499 /^X\(\/\/\)[^/].*/{
5500 s//\1/
5503 /^X\(\/\/\)$/{
5504 s//\1/
5507 /^X\(\/\).*/{
5508 s//\1/
5511 s/.*/./; q'`
5512 else
5513 continue
5514 fi
5515 # Extract the definition of DEPDIR, am__include, and am__quote
5516 # from the Makefile without running `make'.
5517 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5518 test -z "$DEPDIR" && continue
5519 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5520 test -z "am__include" && continue
5521 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5522 # When using ansi2knr, U may be empty or an underscore; expand it
5523 U=`sed -n 's/^U = //p' < "$mf"`
5524 # Find all dependency output files, they are included files with
5525 # $(DEPDIR) in their names. We invoke sed twice because it is the
5526 # simplest approach to changing $(DEPDIR) to its actual value in the
5527 # expansion.
5528 for file in `sed -n "
5529 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5530 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5531 # Make sure the directory exists.
5532 test -f "$dirpart/$file" && continue
5533 fdir=`$as_dirname -- "$file" ||
5534 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5535 X"$file" : 'X\(//\)[^/]' \| \
5536 X"$file" : 'X\(//\)$' \| \
5537 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5538 $as_echo X"$file" |
5539 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5540 s//\1/
5543 /^X\(\/\/\)[^/].*/{
5544 s//\1/
5547 /^X\(\/\/\)$/{
5548 s//\1/
5551 /^X\(\/\).*/{
5552 s//\1/
5555 s/.*/./; q'`
5556 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5557 # echo "creating $dirpart/$file"
5558 echo '# dummy' > "$dirpart/$file"
5559 done
5560 done
5562 ;;
5564 esac
5565 done # for ac_tag
5568 as_fn_exit 0
5569 _ACEOF
5570 ac_clean_files=$ac_clean_files_save
5572 test $ac_write_fail = 0 ||
5573 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5576 # configure is writing to config.log, and then calls config.status.
5577 # config.status does its own redirection, appending to config.log.
5578 # Unfortunately, on DOS this fails, as config.log is still kept open
5579 # by configure, so config.status won't be able to write to it; its
5580 # output is simply discarded. So we exec the FD to /dev/null,
5581 # effectively closing config.log, so it can be properly (re)opened and
5582 # appended to by config.status. When coming back to configure, we
5583 # need to make the FD available again.
5584 if test "$no_create" != yes; then
5585 ac_cs_success=:
5586 ac_config_status_args=
5587 test "$silent" = yes &&
5588 ac_config_status_args="$ac_config_status_args --quiet"
5589 exec 5>/dev/null
5590 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5591 exec 5>>config.log
5592 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5593 # would make configure fail if this is the last instruction.
5594 $ac_cs_success || as_fn_exit $?
5595 fi
5596 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5597 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5598 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5599 fi