PCem
view configure @ 170:a0642e86daea
Fixed MMX PANDN instruction.
| author | TomW |
|---|---|
| date | Wed Oct 08 20:43:36 2014 +0100 |
| parents | d0d530adce12 |
| children |
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/
1160 q
1161 }
1162 /^X\(\/\/\)[^/].*/{
1163 s//\1/
1164 q
1165 }
1166 /^X\(\/\/\)$/{
1167 s//\1/
1168 q
1169 }
1170 /^X\(\/\).*/{
1171 s//\1/
1172 q
1173 }
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
1207 #
1208 # Report the --help message.
1209 #
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 ()
1394 {
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 ()
1432 {
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 ()
1471 {
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 ()
1512 {
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
1564 {
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.
1665 {
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,
1675 (
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
1703 )
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.
1971 :
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.
1975 :
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='
2031 '
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
2065 )
2066 then
2067 # Ok.
2068 :
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 ()
2739 {
2741 ;
2742 return 0;
2743 }
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 ()
2880 {
2881 FILE *f = fopen ("conftest.out", "w");
2882 return ferror (f) || fclose (f) != 0;
2884 ;
2885 return 0;
2886 }
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 ()
2944 {
2946 ;
2947 return 0;
2948 }
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 ()
2995 {
2996 #ifndef __GNUC__
2997 choke me
2998 #endif
3000 ;
3001 return 0;
3002 }
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 ()
3036 {
3038 ;
3039 return 0;
3040 }
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 ()
3051 {
3053 ;
3054 return 0;
3055 }
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 ()
3067 {
3069 ;
3070 return 0;
3071 }
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;
3119 {
3120 return p[i];
3121 }
3122 static char *f (char * (*g) (char **, int), char **p, ...)
3123 {
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;
3130 }
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 ()
3154 {
3155 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3156 ;
3157 return 0;
3158 }
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.
3298 #
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 ()
3532 {
3533 #ifndef __GNUC__
3534 choke me
3535 #endif
3537 ;
3538 return 0;
3539 }
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 ()
3573 {
3575 ;
3576 return 0;
3577 }
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 ()
3588 {
3590 ;
3591 return 0;
3592 }
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 ()
3604 {
3606 ;
3607 return 0;
3608 }
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.
3682 #
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 ()
3787 {
3789 ;
3790 return 0;
3791 }
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.
3857 :
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()
4056 {
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, µ) != 3) {
4068 printf("%s, bad version string from allegro-config\n", "$min_allegro_version");
4069 free(tmp_version);
4070 exit(1);
4071 }
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))
4083 {
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;
4089 }
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)))
4104 {
4105 return 0;
4106 }
4107 else
4108 {
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");
4122 }
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; }
4144 :
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
4155 :
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 ()
4168 {
4169 ALLEGRO_TEST_VERSION; return 0;
4170 ;
4171 return 0;
4172 }
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 ()
4226 {
4227 return alGetError ();
4228 ;
4229 return 0;
4230 }
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
4251 \
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 ()
4275 {
4276 return alutInit ();
4277 ;
4278 return 0;
4279 }
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
4300 \
4301 echo "You need to install the ALUT library."
4302 exit -1
4303 fi
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
4307 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
4308 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then :
4309 $as_echo_n "(cached) " >&6
4310 else
4311 ac_check_lib_save_LIBS=$LIBS
4312 LIBS="-lpthread $LIBS"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4316 /* Override any GCC internal prototype to avoid an error.
4317 Use char because int might match the return type of a GCC
4318 builtin and then its argument prototype would still apply. */
4319 #ifdef __cplusplus
4320 extern "C"
4321 #endif
4322 char pthread_create ();
4323 int
4324 main ()
4325 {
4326 return pthread_create ();
4327 ;
4328 return 0;
4329 }
4330 _ACEOF
4331 if ac_fn_c_try_link "$LINENO"; then :
4332 ac_cv_lib_pthread_pthread_create=yes
4333 else
4334 ac_cv_lib_pthread_pthread_create=no
4335 fi
4336 rm -f core conftest.err conftest.$ac_objext \
4337 conftest$ac_exeext conftest.$ac_ext
4338 LIBS=$ac_check_lib_save_LIBS
4339 fi
4340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
4341 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
4342 if test "x$ac_cv_lib_pthread_pthread_create" = x""yes; then :
4343 cat >>confdefs.h <<_ACEOF
4344 #define HAVE_LIBPTHREAD 1
4345 _ACEOF
4347 LIBS="-lpthread $LIBS"
4349 fi
4352 ac_config_files="$ac_config_files Makefile src/Makefile"
4354 cat >confcache <<\_ACEOF
4355 # This file is a shell script that caches the results of configure
4356 # tests run on this system so they can be shared between configure
4357 # scripts and configure runs, see configure's option --config-cache.
4358 # It is not useful on other systems. If it contains results you don't
4359 # want to keep, you may remove or edit it.
4360 #
4361 # config.status only pays attention to the cache file if you give it
4362 # the --recheck option to rerun configure.
4363 #
4364 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4365 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4366 # following values.
4368 _ACEOF
4370 # The following way of writing the cache mishandles newlines in values,
4371 # but we know of no workaround that is simple, portable, and efficient.
4372 # So, we kill variables containing newlines.
4373 # Ultrix sh set writes to stderr and can't be redirected directly,
4374 # and sets the high bit in the cache file unless we assign to the vars.
4375 (
4376 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4377 eval ac_val=\$$ac_var
4378 case $ac_val in #(
4379 *${as_nl}*)
4380 case $ac_var in #(
4381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4383 esac
4384 case $ac_var in #(
4385 _ | IFS | as_nl) ;; #(
4386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4387 *) { eval $ac_var=; unset $ac_var;} ;;
4388 esac ;;
4389 esac
4390 done
4392 (set) 2>&1 |
4393 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4394 *${as_nl}ac_space=\ *)
4395 # `set' does not quote correctly, so add quotes: double-quote
4396 # substitution turns \\\\ into \\, and sed turns \\ into \.
4397 sed -n \
4398 "s/'/'\\\\''/g;
4399 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4400 ;; #(
4401 *)
4402 # `set' quotes correctly as required by POSIX, so do not add quotes.
4403 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4404 ;;
4405 esac |
4406 sort
4407 ) |
4408 sed '
4409 /^ac_cv_env_/b end
4410 t clear
4411 :clear
4412 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4413 t end
4414 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4415 :end' >>confcache
4416 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4417 if test -w "$cache_file"; then
4418 test "x$cache_file" != "x/dev/null" &&
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4420 $as_echo "$as_me: updating cache $cache_file" >&6;}
4421 cat confcache >$cache_file
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4424 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4425 fi
4426 fi
4427 rm -f confcache
4429 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4430 # Let make expand exec_prefix.
4431 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4433 # Transform confdefs.h into DEFS.
4434 # Protect against shell expansion while executing Makefile rules.
4435 # Protect against Makefile macro expansion.
4436 #
4437 # If the first sed substitution is executed (which looks for macros that
4438 # take arguments), then branch to the quote section. Otherwise,
4439 # look for a macro that doesn't take arguments.
4440 ac_script='
4441 :mline
4442 /\\$/{
4443 N
4444 s,\\\n,,
4445 b mline
4446 }
4447 t clear
4448 :clear
4449 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
4450 t quote
4451 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
4452 t quote
4453 b any
4454 :quote
4455 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
4456 s/\[/\\&/g
4457 s/\]/\\&/g
4458 s/\$/$$/g
4459 H
4460 :any
4461 ${
4462 g
4463 s/^\n//
4464 s/\n/ /g
4465 p
4466 }
4467 '
4468 DEFS=`sed -n "$ac_script" confdefs.h`
4471 ac_libobjs=
4472 ac_ltlibobjs=
4473 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4474 # 1. Remove the extension, and $U if already installed.
4475 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4476 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4477 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4478 # will be set to the directory where LIBOBJS objects are built.
4479 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4480 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4481 done
4482 LIBOBJS=$ac_libobjs
4484 LTLIBOBJS=$ac_ltlibobjs
4487 if test -n "$EXEEXT"; then
4488 am__EXEEXT_TRUE=
4489 am__EXEEXT_FALSE='#'
4490 else
4491 am__EXEEXT_TRUE='#'
4492 am__EXEEXT_FALSE=
4493 fi
4495 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
4496 as_fn_error "conditional \"AMDEP\" was never defined.
4497 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4498 fi
4499 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
4500 as_fn_error "conditional \"am__fastdepCC\" was never defined.
4501 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4502 fi
4503 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
4504 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
4505 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4506 fi
4507 if test -z "${OS_WIN_TRUE}" && test -z "${OS_WIN_FALSE}"; then
4508 as_fn_error "conditional \"OS_WIN\" was never defined.
4509 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4510 fi
4511 if test -z "${OS_LINUX_TRUE}" && test -z "${OS_LINUX_FALSE}"; then
4512 as_fn_error "conditional \"OS_LINUX\" was never defined.
4513 Usually this means the macro was only invoked conditionally." "$LINENO" 5
4514 fi
4516 : ${CONFIG_STATUS=./config.status}
4517 ac_write_fail=0
4518 ac_clean_files_save=$ac_clean_files
4519 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4521 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4522 as_write_fail=0
4523 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4524 #! $SHELL
4525 # Generated by $as_me.
4526 # Run this file to recreate the current configuration.
4527 # Compiler output produced by configure, useful for debugging
4528 # configure, is in config.log if it exists.
4530 debug=false
4531 ac_cs_recheck=false
4532 ac_cs_silent=false
4534 SHELL=\${CONFIG_SHELL-$SHELL}
4535 export SHELL
4536 _ASEOF
4537 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4538 ## -------------------- ##
4539 ## M4sh Initialization. ##
4540 ## -------------------- ##
4542 # Be more Bourne compatible
4543 DUALCASE=1; export DUALCASE # for MKS sh
4544 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4545 emulate sh
4546 NULLCMD=:
4547 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4548 # is contrary to our usage. Disable this feature.
4549 alias -g '${1+"$@"}'='"$@"'
4550 setopt NO_GLOB_SUBST
4551 else
4552 case `(set -o) 2>/dev/null` in #(
4553 *posix*) :
4554 set -o posix ;; #(
4555 *) :
4556 ;;
4557 esac
4558 fi
4561 as_nl='
4562 '
4563 export as_nl
4564 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4565 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4566 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4567 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4568 # Prefer a ksh shell builtin over an external printf program on Solaris,
4569 # but without wasting forks for bash or zsh.
4570 if test -z "$BASH_VERSION$ZSH_VERSION" \
4571 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4572 as_echo='print -r --'
4573 as_echo_n='print -rn --'
4574 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4575 as_echo='printf %s\n'
4576 as_echo_n='printf %s'
4577 else
4578 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4579 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4580 as_echo_n='/usr/ucb/echo -n'
4581 else
4582 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4583 as_echo_n_body='eval
4584 arg=$1;
4585 case $arg in #(
4586 *"$as_nl"*)
4587 expr "X$arg" : "X\\(.*\\)$as_nl";
4588 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4589 esac;
4590 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4591 '
4592 export as_echo_n_body
4593 as_echo_n='sh -c $as_echo_n_body as_echo'
4594 fi
4595 export as_echo_body
4596 as_echo='sh -c $as_echo_body as_echo'
4597 fi
4599 # The user is always right.
4600 if test "${PATH_SEPARATOR+set}" != set; then
4601 PATH_SEPARATOR=:
4602 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4603 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4604 PATH_SEPARATOR=';'
4605 }
4606 fi
4609 # IFS
4610 # We need space, tab and new line, in precisely that order. Quoting is
4611 # there to prevent editors from complaining about space-tab.
4612 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4613 # splitting by setting IFS to empty value.)
4614 IFS=" "" $as_nl"
4616 # Find who we are. Look in the path if we contain no directory separator.
4617 case $0 in #((
4618 *[\\/]* ) as_myself=$0 ;;
4619 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4620 for as_dir in $PATH
4621 do
4622 IFS=$as_save_IFS
4623 test -z "$as_dir" && as_dir=.
4624 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4625 done
4626 IFS=$as_save_IFS
4628 ;;
4629 esac
4630 # We did not find ourselves, most probably we were run as `sh COMMAND'
4631 # in which case we are not to be found in the path.
4632 if test "x$as_myself" = x; then
4633 as_myself=$0
4634 fi
4635 if test ! -f "$as_myself"; then
4636 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4637 exit 1
4638 fi
4640 # Unset variables that we do not need and which cause bugs (e.g. in
4641 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4642 # suppresses any "Segmentation fault" message there. '((' could
4643 # trigger a bug in pdksh 5.2.14.
4644 for as_var in BASH_ENV ENV MAIL MAILPATH
4645 do eval test x\${$as_var+set} = xset \
4646 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4647 done
4648 PS1='$ '
4649 PS2='> '
4650 PS4='+ '
4652 # NLS nuisances.
4653 LC_ALL=C
4654 export LC_ALL
4655 LANGUAGE=C
4656 export LANGUAGE
4658 # CDPATH.
4659 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4662 # as_fn_error ERROR [LINENO LOG_FD]
4663 # ---------------------------------
4664 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4665 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4666 # script with status $?, using 1 if that was 0.
4667 as_fn_error ()
4668 {
4669 as_status=$?; test $as_status -eq 0 && as_status=1
4670 if test "$3"; then
4671 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4672 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
4673 fi
4674 $as_echo "$as_me: error: $1" >&2
4675 as_fn_exit $as_status
4676 } # as_fn_error
4679 # as_fn_set_status STATUS
4680 # -----------------------
4681 # Set $? to STATUS, without forking.
4682 as_fn_set_status ()
4683 {
4684 return $1
4685 } # as_fn_set_status
4687 # as_fn_exit STATUS
4688 # -----------------
4689 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4690 as_fn_exit ()
4691 {
4692 set +e
4693 as_fn_set_status $1
4694 exit $1
4695 } # as_fn_exit
4697 # as_fn_unset VAR
4698 # ---------------
4699 # Portably unset VAR.
4700 as_fn_unset ()
4701 {
4702 { eval $1=; unset $1;}
4703 }
4704 as_unset=as_fn_unset
4705 # as_fn_append VAR VALUE
4706 # ----------------------
4707 # Append the text in VALUE to the end of the definition contained in VAR. Take
4708 # advantage of any shell optimizations that allow amortized linear growth over
4709 # repeated appends, instead of the typical quadratic growth present in naive
4710 # implementations.
4711 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4712 eval 'as_fn_append ()
4713 {
4714 eval $1+=\$2
4715 }'
4716 else
4717 as_fn_append ()
4718 {
4719 eval $1=\$$1\$2
4720 }
4721 fi # as_fn_append
4723 # as_fn_arith ARG...
4724 # ------------------
4725 # Perform arithmetic evaluation on the ARGs, and store the result in the
4726 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4727 # must be portable across $(()) and expr.
4728 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4729 eval 'as_fn_arith ()
4730 {
4731 as_val=$(( $* ))
4732 }'
4733 else
4734 as_fn_arith ()
4735 {
4736 as_val=`expr "$@" || test $? -eq 1`
4737 }
4738 fi # as_fn_arith
4741 if expr a : '\(a\)' >/dev/null 2>&1 &&
4742 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4743 as_expr=expr
4744 else
4745 as_expr=false
4746 fi
4748 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4749 as_basename=basename
4750 else
4751 as_basename=false
4752 fi
4754 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4755 as_dirname=dirname
4756 else
4757 as_dirname=false
4758 fi
4760 as_me=`$as_basename -- "$0" ||
4761 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4762 X"$0" : 'X\(//\)$' \| \
4763 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4764 $as_echo X/"$0" |
4765 sed '/^.*\/\([^/][^/]*\)\/*$/{
4766 s//\1/
4767 q
4768 }
4769 /^X\/\(\/\/\)$/{
4770 s//\1/
4771 q
4772 }
4773 /^X\/\(\/\).*/{
4774 s//\1/
4775 q
4776 }
4777 s/.*/./; q'`
4779 # Avoid depending upon Character Ranges.
4780 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4781 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4782 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4783 as_cr_digits='0123456789'
4784 as_cr_alnum=$as_cr_Letters$as_cr_digits
4786 ECHO_C= ECHO_N= ECHO_T=
4787 case `echo -n x` in #(((((
4788 -n*)
4789 case `echo 'xy\c'` in
4790 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4791 xy) ECHO_C='\c';;
4792 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4793 ECHO_T=' ';;
4794 esac;;
4795 *)
4796 ECHO_N='-n';;
4797 esac
4799 rm -f conf$$ conf$$.exe conf$$.file
4800 if test -d conf$$.dir; then
4801 rm -f conf$$.dir/conf$$.file
4802 else
4803 rm -f conf$$.dir
4804 mkdir conf$$.dir 2>/dev/null
4805 fi
4806 if (echo >conf$$.file) 2>/dev/null; then
4807 if ln -s conf$$.file conf$$ 2>/dev/null; then
4808 as_ln_s='ln -s'
4809 # ... but there are two gotchas:
4810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4812 # In both cases, we have to default to `cp -p'.
4813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4814 as_ln_s='cp -p'
4815 elif ln conf$$.file conf$$ 2>/dev/null; then
4816 as_ln_s=ln
4817 else
4818 as_ln_s='cp -p'
4819 fi
4820 else
4821 as_ln_s='cp -p'
4822 fi
4823 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4824 rmdir conf$$.dir 2>/dev/null
4827 # as_fn_mkdir_p
4828 # -------------
4829 # Create "$as_dir" as a directory, including parents if necessary.
4830 as_fn_mkdir_p ()
4831 {
4833 case $as_dir in #(
4834 -*) as_dir=./$as_dir;;
4835 esac
4836 test -d "$as_dir" || eval $as_mkdir_p || {
4837 as_dirs=
4838 while :; do
4839 case $as_dir in #(
4840 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4841 *) as_qdir=$as_dir;;
4842 esac
4843 as_dirs="'$as_qdir' $as_dirs"
4844 as_dir=`$as_dirname -- "$as_dir" ||
4845 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4846 X"$as_dir" : 'X\(//\)[^/]' \| \
4847 X"$as_dir" : 'X\(//\)$' \| \
4848 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4849 $as_echo X"$as_dir" |
4850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4851 s//\1/
4852 q
4853 }
4854 /^X\(\/\/\)[^/].*/{
4855 s//\1/
4856 q
4857 }
4858 /^X\(\/\/\)$/{
4859 s//\1/
4860 q
4861 }
4862 /^X\(\/\).*/{
4863 s//\1/
4864 q
4865 }
4866 s/.*/./; q'`
4867 test -d "$as_dir" && break
4868 done
4869 test -z "$as_dirs" || eval "mkdir $as_dirs"
4870 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
4873 } # as_fn_mkdir_p
4874 if mkdir -p . 2>/dev/null; then
4875 as_mkdir_p='mkdir -p "$as_dir"'
4876 else
4877 test -d ./-p && rmdir ./-p
4878 as_mkdir_p=false
4879 fi
4881 if test -x / >/dev/null 2>&1; then
4882 as_test_x='test -x'
4883 else
4884 if ls -dL / >/dev/null 2>&1; then
4885 as_ls_L_option=L
4886 else
4887 as_ls_L_option=
4888 fi
4889 as_test_x='
4890 eval sh -c '\''
4891 if test -d "$1"; then
4892 test -d "$1/.";
4893 else
4894 case $1 in #(
4895 -*)set "./$1";;
4896 esac;
4897 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
4898 ???[sx]*):;;*)false;;esac;fi
4899 '\'' sh
4900 '
4901 fi
4902 as_executable_p=$as_test_x
4904 # Sed expression to map a string onto a valid CPP name.
4905 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4907 # Sed expression to map a string onto a valid variable name.
4908 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4911 exec 6>&1
4912 ## ----------------------------------- ##
4913 ## Main body of $CONFIG_STATUS script. ##
4914 ## ----------------------------------- ##
4915 _ASEOF
4916 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4918 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4919 # Save the log message, to keep $0 and so on meaningful, and to
4920 # report actual input values of CONFIG_FILES etc. instead of their
4921 # values after options handling.
4922 ac_log="
4923 This file was extended by PCem $as_me v9, which was
4924 generated by GNU Autoconf 2.65. Invocation command line was
4926 CONFIG_FILES = $CONFIG_FILES
4927 CONFIG_HEADERS = $CONFIG_HEADERS
4928 CONFIG_LINKS = $CONFIG_LINKS
4929 CONFIG_COMMANDS = $CONFIG_COMMANDS
4930 $ $0 $@
4932 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4933 "
4935 _ACEOF
4937 case $ac_config_files in *"
4938 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4939 esac
4943 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4944 # Files that config.status was made for.
4945 config_files="$ac_config_files"
4946 config_commands="$ac_config_commands"
4948 _ACEOF
4950 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4951 ac_cs_usage="\
4952 \`$as_me' instantiates files and other configuration actions
4953 from templates according to the current configuration. Unless the files
4954 and actions are specified as TAGs, all are instantiated by default.
4956 Usage: $0 [OPTION]... [TAG]...
4958 -h, --help print this help, then exit
4959 -V, --version print version number and configuration settings, then exit
4960 --config print configuration, then exit
4961 -q, --quiet, --silent
4962 do not print progress messages
4963 -d, --debug don't remove temporary files
4964 --recheck update $as_me by reconfiguring in the same conditions
4965 --file=FILE[:TEMPLATE]
4966 instantiate the configuration file FILE
4968 Configuration files:
4969 $config_files
4971 Configuration commands:
4972 $config_commands
4974 Report bugs to <Tom Walker <tommowalker@tommowalker.co.uk>>."
4976 _ACEOF
4977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4978 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4979 ac_cs_version="\\
4980 PCem config.status v9
4981 configured by $0, generated by GNU Autoconf 2.65,
4982 with options \\"\$ac_cs_config\\"
4984 Copyright (C) 2009 Free Software Foundation, Inc.
4985 This config.status script is free software; the Free Software Foundation
4986 gives unlimited permission to copy, distribute and modify it."
4988 ac_pwd='$ac_pwd'
4989 srcdir='$srcdir'
4990 INSTALL='$INSTALL'
4991 MKDIR_P='$MKDIR_P'
4992 AWK='$AWK'
4993 test -n "\$AWK" || AWK=awk
4994 _ACEOF
4996 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4997 # The default lists apply if the user does not specify any file.
4998 ac_need_defaults=:
4999 while test $# != 0
5000 do
5001 case $1 in
5002 --*=*)
5003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5004 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5005 ac_shift=:
5006 ;;
5007 *)
5008 ac_option=$1
5009 ac_optarg=$2
5010 ac_shift=shift
5011 ;;
5012 esac
5014 case $ac_option in
5015 # Handling of the options.
5016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5017 ac_cs_recheck=: ;;
5018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5019 $as_echo "$ac_cs_version"; exit ;;
5020 --config | --confi | --conf | --con | --co | --c )
5021 $as_echo "$ac_cs_config"; exit ;;
5022 --debug | --debu | --deb | --de | --d | -d )
5023 debug=: ;;
5024 --file | --fil | --fi | --f )
5025 $ac_shift
5026 case $ac_optarg in
5027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5028 esac
5029 as_fn_append CONFIG_FILES " '$ac_optarg'"
5030 ac_need_defaults=false;;
5031 --he | --h | --help | --hel | -h )
5032 $as_echo "$ac_cs_usage"; exit ;;
5033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5034 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5035 ac_cs_silent=: ;;
5037 # This is an error.
5038 -*) as_fn_error "unrecognized option: \`$1'
5039 Try \`$0 --help' for more information." ;;
5041 *) as_fn_append ac_config_targets " $1"
5042 ac_need_defaults=false ;;
5044 esac
5045 shift
5046 done
5048 ac_configure_extra_args=
5050 if $ac_cs_silent; then
5051 exec 6>/dev/null
5052 ac_configure_extra_args="$ac_configure_extra_args --silent"
5053 fi
5055 _ACEOF
5056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5057 if \$ac_cs_recheck; then
5058 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5059 shift
5060 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5061 CONFIG_SHELL='$SHELL'
5062 export CONFIG_SHELL
5063 exec "\$@"
5064 fi
5066 _ACEOF
5067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5068 exec 5>>config.log
5069 {
5070 echo
5071 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5072 ## Running $as_me. ##
5073 _ASBOX
5074 $as_echo "$ac_log"
5075 } >&5
5077 _ACEOF
5078 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5079 #
5080 # INIT-COMMANDS
5081 #
5082 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
5084 _ACEOF
5086 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5088 # Handling of arguments.
5089 for ac_config_target in $ac_config_targets
5090 do
5091 case $ac_config_target in
5092 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
5093 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5094 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
5096 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
5097 esac
5098 done
5101 # If the user did not use the arguments to specify the items to instantiate,
5102 # then the envvar interface is used. Set only those that are not.
5103 # We use the long form for the default assignment because of an extremely
5104 # bizarre bug on SunOS 4.1.3.
5105 if $ac_need_defaults; then
5106 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5107 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
5108 fi
5110 # Have a temporary directory for convenience. Make it in the build tree
5111 # simply because there is no reason against having it here, and in addition,
5112 # creating and moving files from /tmp can sometimes cause problems.
5113 # Hook for its removal unless debugging.
5114 # Note that there is a small window in which the directory will not be cleaned:
5115 # after its creation but before its name has been assigned to `$tmp'.
5116 $debug ||
5117 {
5118 tmp=
5119 trap 'exit_status=$?
5120 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
5121 ' 0
5122 trap 'as_fn_exit 1' 1 2 13 15
5123 }
5124 # Create a (secure) tmp directory for tmp files.
5126 {
5127 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
5128 test -n "$tmp" && test -d "$tmp"
5129 } ||
5130 {
5131 tmp=./conf$$-$RANDOM
5132 (umask 077 && mkdir "$tmp")
5133 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
5135 # Set up the scripts for CONFIG_FILES section.
5136 # No need to generate them if there are no CONFIG_FILES.
5137 # This happens for instance with `./config.status config.h'.
5138 if test -n "$CONFIG_FILES"; then
5141 ac_cr=`echo X | tr X '\015'`
5142 # On cygwin, bash can eat \r inside `` if the user requested igncr.
5143 # But we know of no other shell where ac_cr would be empty at this
5144 # point, so we can use a bashism as a fallback.
5145 if test "x$ac_cr" = x; then
5146 eval ac_cr=\$\'\\r\'
5147 fi
5148 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
5149 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
5150 ac_cs_awk_cr='\r'
5151 else
5152 ac_cs_awk_cr=$ac_cr
5153 fi
5155 echo 'BEGIN {' >"$tmp/subs1.awk" &&
5156 _ACEOF
5159 {
5160 echo "cat >conf$$subs.awk <<_ACEOF" &&
5161 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
5162 echo "_ACEOF"
5163 } >conf$$subs.sh ||
5164 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5165 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
5166 ac_delim='%!_!# '
5167 for ac_last_try in false false false false false :; do
5168 . ./conf$$subs.sh ||
5169 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5171 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
5172 if test $ac_delim_n = $ac_delim_num; then
5173 break
5174 elif $ac_last_try; then
5175 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
5176 else
5177 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
5178 fi
5179 done
5180 rm -f conf$$subs.sh
5182 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5183 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
5184 _ACEOF
5185 sed -n '
5186 h
5187 s/^/S["/; s/!.*/"]=/
5188 p
5189 g
5190 s/^[^!]*!//
5191 :repl
5192 t repl
5193 s/'"$ac_delim"'$//
5194 t delim
5195 :nl
5196 h
5197 s/\(.\{148\}\)..*/\1/
5198 t more1
5199 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
5200 p
5201 n
5202 b repl
5203 :more1
5204 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5205 p
5206 g
5207 s/.\{148\}//
5208 t nl
5209 :delim
5210 h
5211 s/\(.\{148\}\)..*/\1/
5212 t more2
5213 s/["\\]/\\&/g; s/^/"/; s/$/"/
5214 p
5215 b
5216 :more2
5217 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
5218 p
5219 g
5220 s/.\{148\}//
5221 t delim
5222 ' <conf$$subs.awk | sed '
5223 /^[^""]/{
5224 N
5225 s/\n//
5226 }
5227 ' >>$CONFIG_STATUS || ac_write_fail=1
5228 rm -f conf$$subs.awk
5229 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5230 _ACAWK
5231 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
5232 for (key in S) S_is_set[key] = 1
5233 FS = ""
5235 }
5236 {
5237 line = $ 0
5238 nfields = split(line, field, "@")
5239 substed = 0
5240 len = length(field[1])
5241 for (i = 2; i < nfields; i++) {
5242 key = field[i]
5243 keylen = length(key)
5244 if (S_is_set[key]) {
5245 value = S[key]
5246 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
5247 len += length(value) + length(field[++i])
5248 substed = 1
5249 } else
5250 len += 1 + keylen
5251 }
5253 print line
5254 }
5256 _ACAWK
5257 _ACEOF
5258 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5259 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
5260 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
5261 else
5262 cat
5263 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
5264 || as_fn_error "could not setup config files machinery" "$LINENO" 5
5265 _ACEOF
5267 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5268 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5269 # trailing colons and then remove the whole line if VPATH becomes empty
5270 # (actually we leave an empty line to preserve line numbers).
5271 if test "x$srcdir" = x.; then
5272 ac_vpsub='/^[ ]*VPATH[ ]*=/{
5273 s/:*\$(srcdir):*/:/
5274 s/:*\${srcdir}:*/:/
5275 s/:*@srcdir@:*/:/
5276 s/^\([^=]*=[ ]*\):*/\1/
5277 s/:*$//
5278 s/^[^=]*=[ ]*$//
5279 }'
5280 fi
5282 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5283 fi # test -n "$CONFIG_FILES"
5286 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
5287 shift
5288 for ac_tag
5289 do
5290 case $ac_tag in
5291 :[FHLC]) ac_mode=$ac_tag; continue;;
5292 esac
5293 case $ac_mode$ac_tag in
5294 :[FHL]*:*);;
5295 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
5296 :[FH]-) ac_tag=-:-;;
5297 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
5298 esac
5299 ac_save_IFS=$IFS
5300 IFS=:
5301 set x $ac_tag
5302 IFS=$ac_save_IFS
5303 shift
5304 ac_file=$1
5305 shift
5307 case $ac_mode in
5308 :L) ac_source=$1;;
5309 :[FH])
5310 ac_file_inputs=
5311 for ac_f
5312 do
5313 case $ac_f in
5314 -) ac_f="$tmp/stdin";;
5315 *) # Look for the file first in the build tree, then in the source tree
5316 # (if the path is not absolute). The absolute path cannot be DOS-style,
5317 # because $ac_f cannot contain `:'.
5318 test -f "$ac_f" ||
5319 case $ac_f in
5320 [\\/$]*) false;;
5321 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
5322 esac ||
5323 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
5324 esac
5325 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
5326 as_fn_append ac_file_inputs " '$ac_f'"
5327 done
5329 # Let's still pretend it is `configure' which instantiates (i.e., don't
5330 # use $as_me), people would be surprised to read:
5331 # /* config.h. Generated by config.status. */
5332 configure_input='Generated from '`
5333 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
5334 `' by configure.'
5335 if test x"$ac_file" != x-; then
5336 configure_input="$ac_file. $configure_input"
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
5338 $as_echo "$as_me: creating $ac_file" >&6;}
5339 fi
5340 # Neutralize special characters interpreted by sed in replacement strings.
5341 case $configure_input in #(
5342 *\&* | *\|* | *\\* )
5343 ac_sed_conf_input=`$as_echo "$configure_input" |
5344 sed 's/[\\\\&|]/\\\\&/g'`;; #(
5345 *) ac_sed_conf_input=$configure_input;;
5346 esac
5348 case $ac_tag in
5349 *:-:* | *:-) cat >"$tmp/stdin" \
5350 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
5351 esac
5352 ;;
5353 esac
5355 ac_dir=`$as_dirname -- "$ac_file" ||
5356 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5357 X"$ac_file" : 'X\(//\)[^/]' \| \
5358 X"$ac_file" : 'X\(//\)$' \| \
5359 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
5360 $as_echo X"$ac_file" |
5361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5362 s//\1/
5363 q
5364 }
5365 /^X\(\/\/\)[^/].*/{
5366 s//\1/
5367 q
5368 }
5369 /^X\(\/\/\)$/{
5370 s//\1/
5371 q
5372 }
5373 /^X\(\/\).*/{
5374 s//\1/
5375 q
5376 }
5377 s/.*/./; q'`
5378 as_dir="$ac_dir"; as_fn_mkdir_p
5379 ac_builddir=.
5381 case "$ac_dir" in
5382 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
5383 *)
5384 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
5385 # A ".." for each directory in $ac_dir_suffix.
5386 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
5387 case $ac_top_builddir_sub in
5388 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
5389 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
5390 esac ;;
5391 esac
5392 ac_abs_top_builddir=$ac_pwd
5393 ac_abs_builddir=$ac_pwd$ac_dir_suffix
5394 # for backward compatibility:
5395 ac_top_builddir=$ac_top_build_prefix
5397 case $srcdir in
5398 .) # We are building in place.
5399 ac_srcdir=.
5400 ac_top_srcdir=$ac_top_builddir_sub
5401 ac_abs_top_srcdir=$ac_pwd ;;
5402 [\\/]* | ?:[\\/]* ) # Absolute name.
5403 ac_srcdir=$srcdir$ac_dir_suffix;
5404 ac_top_srcdir=$srcdir
5405 ac_abs_top_srcdir=$srcdir ;;
5406 *) # Relative name.
5407 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
5408 ac_top_srcdir=$ac_top_build_prefix$srcdir
5409 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
5410 esac
5411 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
5414 case $ac_mode in
5415 :F)
5416 #
5417 # CONFIG_FILE
5418 #
5420 case $INSTALL in
5421 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5422 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
5423 esac
5424 ac_MKDIR_P=$MKDIR_P
5425 case $MKDIR_P in
5426 [\\/$]* | ?:[\\/]* ) ;;
5427 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
5428 esac
5429 _ACEOF
5431 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5432 # If the template does not know about datarootdir, expand it.
5433 # FIXME: This hack should be removed a few years after 2.60.
5434 ac_datarootdir_hack=; ac_datarootdir_seen=
5435 ac_sed_dataroot='
5436 /datarootdir/ {
5437 p
5438 q
5439 }
5440 /@datadir@/p
5441 /@docdir@/p
5442 /@infodir@/p
5443 /@localedir@/p
5444 /@mandir@/p'
5445 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
5446 *datarootdir*) ac_datarootdir_seen=yes;;
5447 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
5449 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
5450 _ACEOF
5451 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5452 ac_datarootdir_hack='
5453 s&@datadir@&$datadir&g
5454 s&@docdir@&$docdir&g
5455 s&@infodir@&$infodir&g
5456 s&@localedir@&$localedir&g
5457 s&@mandir@&$mandir&g
5458 s&\\\${datarootdir}&$datarootdir&g' ;;
5459 esac
5460 _ACEOF
5462 # Neutralize VPATH when `$srcdir' = `.'.
5463 # Shell code in configure.ac might set extrasub.
5464 # FIXME: do we really want to maintain this feature?
5465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5466 ac_sed_extra="$ac_vpsub
5467 $extrasub
5468 _ACEOF
5469 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5470 :t
5471 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5472 s|@configure_input@|$ac_sed_conf_input|;t t
5473 s&@top_builddir@&$ac_top_builddir_sub&;t t
5474 s&@top_build_prefix@&$ac_top_build_prefix&;t t
5475 s&@srcdir@&$ac_srcdir&;t t
5476 s&@abs_srcdir@&$ac_abs_srcdir&;t t
5477 s&@top_srcdir@&$ac_top_srcdir&;t t
5478 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
5479 s&@builddir@&$ac_builddir&;t t
5480 s&@abs_builddir@&$ac_abs_builddir&;t t
5481 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
5482 s&@INSTALL@&$ac_INSTALL&;t t
5483 s&@MKDIR_P@&$ac_MKDIR_P&;t t
5484 $ac_datarootdir_hack
5485 "
5486 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
5487 || as_fn_error "could not create $ac_file" "$LINENO" 5
5489 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
5490 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
5491 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5493 which seems to be undefined. Please make sure it is defined." >&5
5494 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
5495 which seems to be undefined. Please make sure it is defined." >&2;}
5497 rm -f "$tmp/stdin"
5498 case $ac_file in
5499 -) cat "$tmp/out" && rm -f "$tmp/out";;
5500 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
5501 esac \
5502 || as_fn_error "could not create $ac_file" "$LINENO" 5
5503 ;;
5506 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
5507 $as_echo "$as_me: executing $ac_file commands" >&6;}
5508 ;;
5509 esac
5512 case $ac_file$ac_mode in
5513 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
5514 # Autoconf 2.62 quotes --file arguments for eval, but not when files
5515 # are listed without --file. Let's play safe and only enable the eval
5516 # if we detect the quoting.
5517 case $CONFIG_FILES in
5518 *\'*) eval set x "$CONFIG_FILES" ;;
5519 *) set x $CONFIG_FILES ;;
5520 esac
5521 shift
5522 for mf
5523 do
5524 # Strip MF so we end up with the name of the file.
5525 mf=`echo "$mf" | sed -e 's/:.*$//'`
5526 # Check whether this is an Automake generated Makefile or not.
5527 # We used to match only the files named `Makefile.in', but
5528 # some people rename them; so instead we look at the file content.
5529 # Grep'ing the first line is not enough: some people post-process
5530 # each Makefile.in and add a new line on top of each file to say so.
5531 # Grep'ing the whole file is not good either: AIX grep has a line
5532 # limit of 2048, but all sed's we know have understand at least 4000.
5533 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
5534 dirpart=`$as_dirname -- "$mf" ||
5535 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5536 X"$mf" : 'X\(//\)[^/]' \| \
5537 X"$mf" : 'X\(//\)$' \| \
5538 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
5539 $as_echo X"$mf" |
5540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5541 s//\1/
5542 q
5543 }
5544 /^X\(\/\/\)[^/].*/{
5545 s//\1/
5546 q
5547 }
5548 /^X\(\/\/\)$/{
5549 s//\1/
5550 q
5551 }
5552 /^X\(\/\).*/{
5553 s//\1/
5554 q
5555 }
5556 s/.*/./; q'`
5557 else
5558 continue
5559 fi
5560 # Extract the definition of DEPDIR, am__include, and am__quote
5561 # from the Makefile without running `make'.
5562 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
5563 test -z "$DEPDIR" && continue
5564 am__include=`sed -n 's/^am__include = //p' < "$mf"`
5565 test -z "am__include" && continue
5566 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
5567 # When using ansi2knr, U may be empty or an underscore; expand it
5568 U=`sed -n 's/^U = //p' < "$mf"`
5569 # Find all dependency output files, they are included files with
5570 # $(DEPDIR) in their names. We invoke sed twice because it is the
5571 # simplest approach to changing $(DEPDIR) to its actual value in the
5572 # expansion.
5573 for file in `sed -n "
5574 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
5575 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
5576 # Make sure the directory exists.
5577 test -f "$dirpart/$file" && continue
5578 fdir=`$as_dirname -- "$file" ||
5579 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5580 X"$file" : 'X\(//\)[^/]' \| \
5581 X"$file" : 'X\(//\)$' \| \
5582 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
5583 $as_echo X"$file" |
5584 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5585 s//\1/
5586 q
5587 }
5588 /^X\(\/\/\)[^/].*/{
5589 s//\1/
5590 q
5591 }
5592 /^X\(\/\/\)$/{
5593 s//\1/
5594 q
5595 }
5596 /^X\(\/\).*/{
5597 s//\1/
5598 q
5599 }
5600 s/.*/./; q'`
5601 as_dir=$dirpart/$fdir; as_fn_mkdir_p
5602 # echo "creating $dirpart/$file"
5603 echo '# dummy' > "$dirpart/$file"
5604 done
5605 done
5606 }
5607 ;;
5609 esac
5610 done # for ac_tag
5613 as_fn_exit 0
5614 _ACEOF
5615 ac_clean_files=$ac_clean_files_save
5617 test $ac_write_fail = 0 ||
5618 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
5621 # configure is writing to config.log, and then calls config.status.
5622 # config.status does its own redirection, appending to config.log.
5623 # Unfortunately, on DOS this fails, as config.log is still kept open
5624 # by configure, so config.status won't be able to write to it; its
5625 # output is simply discarded. So we exec the FD to /dev/null,
5626 # effectively closing config.log, so it can be properly (re)opened and
5627 # appended to by config.status. When coming back to configure, we
5628 # need to make the FD available again.
5629 if test "$no_create" != yes; then
5630 ac_cs_success=:
5631 ac_config_status_args=
5632 test "$silent" = yes &&
5633 ac_config_status_args="$ac_config_status_args --quiet"
5634 exec 5>/dev/null
5635 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5636 exec 5>>config.log
5637 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5638 # would make configure fail if this is the last instruction.
5639 $ac_cs_success || as_fn_exit $?
5640 fi
5641 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
5643 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
5644 fi
