/[pcsx2_0.9.7]/trunk/3rdparty/SDL-1.3.0-5387/configure
ViewVC logotype

Contents of /trunk/3rdparty/SDL-1.3.0-5387/configure

Parent Directory Parent Directory | Revision Log Revision Log


Revision 401 - (show annotations) (download)
Fri Feb 25 17:31:09 2011 UTC (9 years, 8 months ago) by william
File size: 896935 byte(s)
Auto Commited Import of: pcsx2-0.9.7-DEBUG (upstream: v0.9.7.4358 local: v0.9.7.313-latest) in ./trunk
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552
553 # Check that we are running under the correct shell.
554 SHELL=${CONFIG_SHELL-/bin/sh}
555
556 case X$lt_ECHO in
557 X*--fallback-echo)
558 # Remove one level of quotation (which was required for Make).
559 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
560 ;;
561 esac
562
563 ECHO=${lt_ECHO-echo}
564 if test "X$1" = X--no-reexec; then
565 # Discard the --no-reexec flag, and continue.
566 shift
567 elif test "X$1" = X--fallback-echo; then
568 # Avoid inline document here, it may be left over
569 :
570 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
571 # Yippee, $ECHO works!
572 :
573 else
574 # Restart under the correct shell.
575 exec $SHELL "$0" --no-reexec ${1+"$@"}
576 fi
577
578 if test "X$1" = X--fallback-echo; then
579 # used as fallback echo
580 shift
581 cat <<_LT_EOF
582 $*
583 _LT_EOF
584 exit 0
585 fi
586
587 # The HP-UX ksh and POSIX shell print the target directory to stdout
588 # if CDPATH is set.
589 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
590
591 if test -z "$lt_ECHO"; then
592 if test "X${echo_test_string+set}" != Xset; then
593 # find a string as large as possible, as long as the shell can cope with it
594 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
595 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
596 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
597 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
598 then
599 break
600 fi
601 done
602 fi
603
604 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
605 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
606 test "X$echo_testing_string" = "X$echo_test_string"; then
607 :
608 else
609 # The Solaris, AIX, and Digital Unix default echo programs unquote
610 # backslashes. This makes it impossible to quote backslashes using
611 # echo "$something" | sed 's/\\/\\\\/g'
612 #
613 # So, first we look for a working echo in the user's PATH.
614
615 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
616 for dir in $PATH /usr/ucb; do
617 IFS="$lt_save_ifs"
618 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
619 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
620 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
621 test "X$echo_testing_string" = "X$echo_test_string"; then
622 ECHO="$dir/echo"
623 break
624 fi
625 done
626 IFS="$lt_save_ifs"
627
628 if test "X$ECHO" = Xecho; then
629 # We didn't find a better echo, so look for alternatives.
630 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
631 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
632 test "X$echo_testing_string" = "X$echo_test_string"; then
633 # This shell has a builtin print -r that does the trick.
634 ECHO='print -r'
635 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
636 test "X$CONFIG_SHELL" != X/bin/ksh; then
637 # If we have ksh, try running configure again with it.
638 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
639 export ORIGINAL_CONFIG_SHELL
640 CONFIG_SHELL=/bin/ksh
641 export CONFIG_SHELL
642 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 else
644 # Try using printf.
645 ECHO='printf %s\n'
646 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
647 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
648 test "X$echo_testing_string" = "X$echo_test_string"; then
649 # Cool, printf works
650 :
651 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
652 test "X$echo_testing_string" = 'X\t' &&
653 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
654 test "X$echo_testing_string" = "X$echo_test_string"; then
655 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
656 export CONFIG_SHELL
657 SHELL="$CONFIG_SHELL"
658 export SHELL
659 ECHO="$CONFIG_SHELL $0 --fallback-echo"
660 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
661 test "X$echo_testing_string" = 'X\t' &&
662 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
663 test "X$echo_testing_string" = "X$echo_test_string"; then
664 ECHO="$CONFIG_SHELL $0 --fallback-echo"
665 else
666 # maybe with a smaller string...
667 prev=:
668
669 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
670 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
671 then
672 break
673 fi
674 prev="$cmd"
675 done
676
677 if test "$prev" != 'sed 50q "$0"'; then
678 echo_test_string=`eval $prev`
679 export echo_test_string
680 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
681 else
682 # Oops. We lost completely, so just stick with echo.
683 ECHO=echo
684 fi
685 fi
686 fi
687 fi
688 fi
689 fi
690
691 # Copy echo and quote the copy suitably for passing to libtool from
692 # the Makefile, instead of quoting the original, which is used later.
693 lt_ECHO=$ECHO
694 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
695 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
696 fi
697
698
699
700
701 exec 7<&0 </dev/null 6>&1
702
703 # Name of the host.
704 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
705 # so uname gets run too.
706 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
707
708 #
709 # Initializations.
710 #
711 ac_default_prefix=/usr/local
712 ac_clean_files=
713 ac_config_libobj_dir=.
714 LIBOBJS=
715 cross_compiling=no
716 subdirs=
717 MFLAGS=
718 MAKEFLAGS=
719 SHELL=${CONFIG_SHELL-/bin/sh}
720
721 # Identity of this package.
722 PACKAGE_NAME=
723 PACKAGE_TARNAME=
724 PACKAGE_VERSION=
725 PACKAGE_STRING=
726 PACKAGE_BUGREPORT=
727
728 ac_unique_file="README"
729 # Factoring default headers for most tests.
730 ac_includes_default="\
731 #include <stdio.h>
732 #ifdef HAVE_SYS_TYPES_H
733 # include <sys/types.h>
734 #endif
735 #ifdef HAVE_SYS_STAT_H
736 # include <sys/stat.h>
737 #endif
738 #ifdef STDC_HEADERS
739 # include <stdlib.h>
740 # include <stddef.h>
741 #else
742 # ifdef HAVE_STDLIB_H
743 # include <stdlib.h>
744 # endif
745 #endif
746 #ifdef HAVE_STRING_H
747 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 # include <memory.h>
749 # endif
750 # include <string.h>
751 #endif
752 #ifdef HAVE_STRINGS_H
753 # include <strings.h>
754 #endif
755 #ifdef HAVE_INTTYPES_H
756 # include <inttypes.h>
757 #endif
758 #ifdef HAVE_STDINT_H
759 # include <stdint.h>
760 #endif
761 #ifdef HAVE_UNISTD_H
762 # include <unistd.h>
763 #endif"
764
765 ac_subst_vars='SHELL
766 PATH_SEPARATOR
767 PACKAGE_NAME
768 PACKAGE_TARNAME
769 PACKAGE_VERSION
770 PACKAGE_STRING
771 PACKAGE_BUGREPORT
772 exec_prefix
773 prefix
774 program_transform_name
775 bindir
776 sbindir
777 libexecdir
778 datarootdir
779 datadir
780 sysconfdir
781 sharedstatedir
782 localstatedir
783 includedir
784 oldincludedir
785 docdir
786 infodir
787 htmldir
788 dvidir
789 pdfdir
790 psdir
791 libdir
792 localedir
793 mandir
794 DEFS
795 ECHO_C
796 ECHO_N
797 ECHO_T
798 LIBS
799 build_alias
800 host_alias
801 target_alias
802 SDL_MAJOR_VERSION
803 SDL_MINOR_VERSION
804 SDL_MICRO_VERSION
805 SDL_INTERFACE_AGE
806 SDL_BINARY_AGE
807 SDL_VERSION
808 AS
809 DLLTOOL
810 OBJDUMP
811 LIBTOOL
812 build
813 build_cpu
814 build_vendor
815 build_os
816 host
817 host_cpu
818 host_vendor
819 host_os
820 CC
821 CFLAGS
822 LDFLAGS
823 CPPFLAGS
824 ac_ct_CC
825 EXEEXT
826 OBJEXT
827 SED
828 GREP
829 EGREP
830 FGREP
831 LD
832 DUMPBIN
833 ac_ct_DUMPBIN
834 NM
835 LN_S
836 AR
837 STRIP
838 RANLIB
839 lt_ECHO
840 DSYMUTIL
841 NMEDIT
842 LIPO
843 OTOOL
844 OTOOL64
845 CPP
846 LT_RELEASE
847 LT_CURRENT
848 LT_REVISION
849 LT_AGE
850 CXX
851 CXXFLAGS
852 ac_ct_CXX
853 CXXCPP
854 INSTALL_PROGRAM
855 INSTALL_SCRIPT
856 INSTALL_DATA
857 SET_MAKE
858 WINDRES
859 ALLOCA
860 LIBOBJS
861 POW_LIB
862 ALSA_CFLAGS
863 ALSA_LIBS
864 ESD_CONFIG
865 ESD_CFLAGS
866 ESD_LIBS
867 PKG_CONFIG
868 ARTSCONFIG
869 XMKMF
870 X_CFLAGS
871 X_PRE_LIBS
872 X_LIBS
873 X_EXTRA_LIBS
874 DIRECTFBCONFIG
875 SDL_CFLAGS
876 SDL_LIBS
877 SDL_STATIC_LIBS
878 SDL_RLD_FLAGS
879 ENABLE_SHARED_TRUE
880 ENABLE_SHARED_FALSE
881 ENABLE_STATIC_TRUE
882 ENABLE_STATIC_FALSE
883 ac_aux_dir
884 INCLUDE
885 OBJECTS
886 VERSION_OBJECTS
887 SDLMAIN_OBJECTS
888 BUILD_CFLAGS
889 EXTRA_CFLAGS
890 BUILD_LDFLAGS
891 EXTRA_LDFLAGS
892 LTLIBOBJS'
893 ac_subst_files=''
894 ac_precious_vars='build_alias
895 host_alias
896 target_alias
897 CC
898 CFLAGS
899 LDFLAGS
900 LIBS
901 CPPFLAGS
902 CPP
903 CXX
904 CXXFLAGS
905 CCC
906 CXXCPP
907 XMKMF'
908
909
910 # Initialize some variables set by options.
911 ac_init_help=
912 ac_init_version=false
913 # The variables have the same names as the options, with
914 # dashes changed to underlines.
915 cache_file=/dev/null
916 exec_prefix=NONE
917 no_create=
918 no_recursion=
919 prefix=NONE
920 program_prefix=NONE
921 program_suffix=NONE
922 program_transform_name=s,x,x,
923 silent=
924 site=
925 srcdir=
926 verbose=
927 x_includes=NONE
928 x_libraries=NONE
929
930 # Installation directory options.
931 # These are left unexpanded so users can "make install exec_prefix=/foo"
932 # and all the variables that are supposed to be based on exec_prefix
933 # by default will actually change.
934 # Use braces instead of parens because sh, perl, etc. also accept them.
935 # (The list follows the same order as the GNU Coding Standards.)
936 bindir='${exec_prefix}/bin'
937 sbindir='${exec_prefix}/sbin'
938 libexecdir='${exec_prefix}/libexec'
939 datarootdir='${prefix}/share'
940 datadir='${datarootdir}'
941 sysconfdir='${prefix}/etc'
942 sharedstatedir='${prefix}/com'
943 localstatedir='${prefix}/var'
944 includedir='${prefix}/include'
945 oldincludedir='/usr/include'
946 docdir='${datarootdir}/doc/${PACKAGE}'
947 infodir='${datarootdir}/info'
948 htmldir='${docdir}'
949 dvidir='${docdir}'
950 pdfdir='${docdir}'
951 psdir='${docdir}'
952 libdir='${exec_prefix}/lib'
953 localedir='${datarootdir}/locale'
954 mandir='${datarootdir}/man'
955
956 ac_prev=
957 ac_dashdash=
958 for ac_option
959 do
960 # If the previous option needs an argument, assign it.
961 if test -n "$ac_prev"; then
962 eval $ac_prev=\$ac_option
963 ac_prev=
964 continue
965 fi
966
967 case $ac_option in
968 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
969 *) ac_optarg=yes ;;
970 esac
971
972 # Accept the important Cygnus configure options, so we can diagnose typos.
973
974 case $ac_dashdash$ac_option in
975 --)
976 ac_dashdash=yes ;;
977
978 -bindir | --bindir | --bindi | --bind | --bin | --bi)
979 ac_prev=bindir ;;
980 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
981 bindir=$ac_optarg ;;
982
983 -build | --build | --buil | --bui | --bu)
984 ac_prev=build_alias ;;
985 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
986 build_alias=$ac_optarg ;;
987
988 -cache-file | --cache-file | --cache-fil | --cache-fi \
989 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
990 ac_prev=cache_file ;;
991 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
992 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
993 cache_file=$ac_optarg ;;
994
995 --config-cache | -C)
996 cache_file=config.cache ;;
997
998 -datadir | --datadir | --datadi | --datad)
999 ac_prev=datadir ;;
1000 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1001 datadir=$ac_optarg ;;
1002
1003 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1004 | --dataroo | --dataro | --datar)
1005 ac_prev=datarootdir ;;
1006 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1007 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1008 datarootdir=$ac_optarg ;;
1009
1010 -disable-* | --disable-*)
1011 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1012 # Reject names that are not valid shell variable names.
1013 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1014 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1015 { (exit 1); exit 1; }; }
1016 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1017 eval enable_$ac_feature=no ;;
1018
1019 -docdir | --docdir | --docdi | --doc | --do)
1020 ac_prev=docdir ;;
1021 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1022 docdir=$ac_optarg ;;
1023
1024 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1025 ac_prev=dvidir ;;
1026 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1027 dvidir=$ac_optarg ;;
1028
1029 -enable-* | --enable-*)
1030 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1033 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
1034 { (exit 1); exit 1; }; }
1035 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
1036 eval enable_$ac_feature=\$ac_optarg ;;
1037
1038 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1039 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1040 | --exec | --exe | --ex)
1041 ac_prev=exec_prefix ;;
1042 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1043 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1044 | --exec=* | --exe=* | --ex=*)
1045 exec_prefix=$ac_optarg ;;
1046
1047 -gas | --gas | --ga | --g)
1048 # Obsolete; use --with-gas.
1049 with_gas=yes ;;
1050
1051 -help | --help | --hel | --he | -h)
1052 ac_init_help=long ;;
1053 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1054 ac_init_help=recursive ;;
1055 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1056 ac_init_help=short ;;
1057
1058 -host | --host | --hos | --ho)
1059 ac_prev=host_alias ;;
1060 -host=* | --host=* | --hos=* | --ho=*)
1061 host_alias=$ac_optarg ;;
1062
1063 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1064 ac_prev=htmldir ;;
1065 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1066 | --ht=*)
1067 htmldir=$ac_optarg ;;
1068
1069 -includedir | --includedir | --includedi | --included | --include \
1070 | --includ | --inclu | --incl | --inc)
1071 ac_prev=includedir ;;
1072 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1073 | --includ=* | --inclu=* | --incl=* | --inc=*)
1074 includedir=$ac_optarg ;;
1075
1076 -infodir | --infodir | --infodi | --infod | --info | --inf)
1077 ac_prev=infodir ;;
1078 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1079 infodir=$ac_optarg ;;
1080
1081 -libdir | --libdir | --libdi | --libd)
1082 ac_prev=libdir ;;
1083 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1084 libdir=$ac_optarg ;;
1085
1086 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1087 | --libexe | --libex | --libe)
1088 ac_prev=libexecdir ;;
1089 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1090 | --libexe=* | --libex=* | --libe=*)
1091 libexecdir=$ac_optarg ;;
1092
1093 -localedir | --localedir | --localedi | --localed | --locale)
1094 ac_prev=localedir ;;
1095 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1096 localedir=$ac_optarg ;;
1097
1098 -localstatedir | --localstatedir | --localstatedi | --localstated \
1099 | --localstate | --localstat | --localsta | --localst | --locals)
1100 ac_prev=localstatedir ;;
1101 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1102 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1103 localstatedir=$ac_optarg ;;
1104
1105 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1106 ac_prev=mandir ;;
1107 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1108 mandir=$ac_optarg ;;
1109
1110 -nfp | --nfp | --nf)
1111 # Obsolete; use --without-fp.
1112 with_fp=no ;;
1113
1114 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1115 | --no-cr | --no-c | -n)
1116 no_create=yes ;;
1117
1118 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1119 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1120 no_recursion=yes ;;
1121
1122 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1123 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1124 | --oldin | --oldi | --old | --ol | --o)
1125 ac_prev=oldincludedir ;;
1126 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1127 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1128 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1129 oldincludedir=$ac_optarg ;;
1130
1131 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1132 ac_prev=prefix ;;
1133 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1134 prefix=$ac_optarg ;;
1135
1136 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1137 | --program-pre | --program-pr | --program-p)
1138 ac_prev=program_prefix ;;
1139 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1140 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1141 program_prefix=$ac_optarg ;;
1142
1143 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1144 | --program-suf | --program-su | --program-s)
1145 ac_prev=program_suffix ;;
1146 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1147 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1148 program_suffix=$ac_optarg ;;
1149
1150 -program-transform-name | --program-transform-name \
1151 | --program-transform-nam | --program-transform-na \
1152 | --program-transform-n | --program-transform- \
1153 | --program-transform | --program-transfor \
1154 | --program-transfo | --program-transf \
1155 | --program-trans | --program-tran \
1156 | --progr-tra | --program-tr | --program-t)
1157 ac_prev=program_transform_name ;;
1158 -program-transform-name=* | --program-transform-name=* \
1159 | --program-transform-nam=* | --program-transform-na=* \
1160 | --program-transform-n=* | --program-transform-=* \
1161 | --program-transform=* | --program-transfor=* \
1162 | --program-transfo=* | --program-transf=* \
1163 | --program-trans=* | --program-tran=* \
1164 | --progr-tra=* | --program-tr=* | --program-t=*)
1165 program_transform_name=$ac_optarg ;;
1166
1167 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1168 ac_prev=pdfdir ;;
1169 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1170 pdfdir=$ac_optarg ;;
1171
1172 -psdir | --psdir | --psdi | --psd | --ps)
1173 ac_prev=psdir ;;
1174 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1175 psdir=$ac_optarg ;;
1176
1177 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1178 | -silent | --silent | --silen | --sile | --sil)
1179 silent=yes ;;
1180
1181 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1182 ac_prev=sbindir ;;
1183 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1184 | --sbi=* | --sb=*)
1185 sbindir=$ac_optarg ;;
1186
1187 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1188 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1189 | --sharedst | --shareds | --shared | --share | --shar \
1190 | --sha | --sh)
1191 ac_prev=sharedstatedir ;;
1192 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1193 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1194 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1195 | --sha=* | --sh=*)
1196 sharedstatedir=$ac_optarg ;;
1197
1198 -site | --site | --sit)
1199 ac_prev=site ;;
1200 -site=* | --site=* | --sit=*)
1201 site=$ac_optarg ;;
1202
1203 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1204 ac_prev=srcdir ;;
1205 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1206 srcdir=$ac_optarg ;;
1207
1208 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1209 | --syscon | --sysco | --sysc | --sys | --sy)
1210 ac_prev=sysconfdir ;;
1211 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1212 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1213 sysconfdir=$ac_optarg ;;
1214
1215 -target | --target | --targe | --targ | --tar | --ta | --t)
1216 ac_prev=target_alias ;;
1217 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1218 target_alias=$ac_optarg ;;
1219
1220 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1221 verbose=yes ;;
1222
1223 -version | --version | --versio | --versi | --vers | -V)
1224 ac_init_version=: ;;
1225
1226 -with-* | --with-*)
1227 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1228 # Reject names that are not valid shell variable names.
1229 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230 { echo "$as_me: error: invalid package name: $ac_package" >&2
1231 { (exit 1); exit 1; }; }
1232 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1233 eval with_$ac_package=\$ac_optarg ;;
1234
1235 -without-* | --without-*)
1236 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1237 # Reject names that are not valid shell variable names.
1238 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1239 { echo "$as_me: error: invalid package name: $ac_package" >&2
1240 { (exit 1); exit 1; }; }
1241 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1242 eval with_$ac_package=no ;;
1243
1244 --x)
1245 # Obsolete; use --with-x.
1246 with_x=yes ;;
1247
1248 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1249 | --x-incl | --x-inc | --x-in | --x-i)
1250 ac_prev=x_includes ;;
1251 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1252 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1253 x_includes=$ac_optarg ;;
1254
1255 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1256 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1257 ac_prev=x_libraries ;;
1258 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1259 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1260 x_libraries=$ac_optarg ;;
1261
1262 -*) { echo "$as_me: error: unrecognized option: $ac_option
1263 Try \`$0 --help' for more information." >&2
1264 { (exit 1); exit 1; }; }
1265 ;;
1266
1267 *=*)
1268 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1269 # Reject names that are not valid shell variable names.
1270 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1271 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1272 { (exit 1); exit 1; }; }
1273 eval $ac_envvar=\$ac_optarg
1274 export $ac_envvar ;;
1275
1276 *)
1277 # FIXME: should be removed in autoconf 3.0.
1278 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1279 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1280 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1281 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1282 ;;
1283
1284 esac
1285 done
1286
1287 if test -n "$ac_prev"; then
1288 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1289 { echo "$as_me: error: missing argument to $ac_option" >&2
1290 { (exit 1); exit 1; }; }
1291 fi
1292
1293 # Be sure to have absolute directory names.
1294 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1295 datadir sysconfdir sharedstatedir localstatedir includedir \
1296 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1297 libdir localedir mandir
1298 do
1299 eval ac_val=\$$ac_var
1300 case $ac_val in
1301 [\\/$]* | ?:[\\/]* ) continue;;
1302 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1303 esac
1304 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1305 { (exit 1); exit 1; }; }
1306 done
1307
1308 # There might be people who depend on the old broken behavior: `$host'
1309 # used to hold the argument of --host etc.
1310 # FIXME: To remove some day.
1311 build=$build_alias
1312 host=$host_alias
1313 target=$target_alias
1314
1315 # FIXME: To remove some day.
1316 if test "x$host_alias" != x; then
1317 if test "x$build_alias" = x; then
1318 cross_compiling=maybe
1319 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1320 If a cross compiler is detected then cross compile mode will be used." >&2
1321 elif test "x$build_alias" != "x$host_alias"; then
1322 cross_compiling=yes
1323 fi
1324 fi
1325
1326 ac_tool_prefix=
1327 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1328
1329 test "$silent" = yes && exec 6>/dev/null
1330
1331
1332 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1333 ac_ls_di=`ls -di .` &&
1334 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1335 { echo "$as_me: error: Working directory cannot be determined" >&2
1336 { (exit 1); exit 1; }; }
1337 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1338 { echo "$as_me: error: pwd does not report name of working directory" >&2
1339 { (exit 1); exit 1; }; }
1340
1341
1342 # Find the source files, if location was not specified.
1343 if test -z "$srcdir"; then
1344 ac_srcdir_defaulted=yes
1345 # Try the directory containing this script, then the parent directory.
1346 ac_confdir=`$as_dirname -- "$0" ||
1347 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1348 X"$0" : 'X\(//\)[^/]' \| \
1349 X"$0" : 'X\(//\)$' \| \
1350 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1351 echo X"$0" |
1352 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1353 s//\1/
1354 q
1355 }
1356 /^X\(\/\/\)[^/].*/{
1357 s//\1/
1358 q
1359 }
1360 /^X\(\/\/\)$/{
1361 s//\1/
1362 q
1363 }
1364 /^X\(\/\).*/{
1365 s//\1/
1366 q
1367 }
1368 s/.*/./; q'`
1369 srcdir=$ac_confdir
1370 if test ! -r "$srcdir/$ac_unique_file"; then
1371 srcdir=..
1372 fi
1373 else
1374 ac_srcdir_defaulted=no
1375 fi
1376 if test ! -r "$srcdir/$ac_unique_file"; then
1377 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1378 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1379 { (exit 1); exit 1; }; }
1380 fi
1381 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1382 ac_abs_confdir=`(
1383 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1384 { (exit 1); exit 1; }; }
1385 pwd)`
1386 # When building in place, set srcdir=.
1387 if test "$ac_abs_confdir" = "$ac_pwd"; then
1388 srcdir=.
1389 fi
1390 # Remove unnecessary trailing slashes from srcdir.
1391 # Double slashes in file names in object file debugging info
1392 # mess up M-x gdb in Emacs.
1393 case $srcdir in
1394 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1395 esac
1396 for ac_var in $ac_precious_vars; do
1397 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1398 eval ac_env_${ac_var}_value=\$${ac_var}
1399 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1400 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1401 done
1402
1403 #
1404 # Report the --help message.
1405 #
1406 if test "$ac_init_help" = "long"; then
1407 # Omit some internal or obsolete options to make the list less imposing.
1408 # This message is too long to be a string in the A/UX 3.1 sh.
1409 cat <<_ACEOF
1410 \`configure' configures this package to adapt to many kinds of systems.
1411
1412 Usage: $0 [OPTION]... [VAR=VALUE]...
1413
1414 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1415 VAR=VALUE. See below for descriptions of some of the useful variables.
1416
1417 Defaults for the options are specified in brackets.
1418
1419 Configuration:
1420 -h, --help display this help and exit
1421 --help=short display options specific to this package
1422 --help=recursive display the short help of all the included packages
1423 -V, --version display version information and exit
1424 -q, --quiet, --silent do not print \`checking...' messages
1425 --cache-file=FILE cache test results in FILE [disabled]
1426 -C, --config-cache alias for \`--cache-file=config.cache'
1427 -n, --no-create do not create output files
1428 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1429
1430 Installation directories:
1431 --prefix=PREFIX install architecture-independent files in PREFIX
1432 [$ac_default_prefix]
1433 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1434 [PREFIX]
1435
1436 By default, \`make install' will install all the files in
1437 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1438 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1439 for instance \`--prefix=\$HOME'.
1440
1441 For better control, use the options below.
1442
1443 Fine tuning of the installation directories:
1444 --bindir=DIR user executables [EPREFIX/bin]
1445 --sbindir=DIR system admin executables [EPREFIX/sbin]
1446 --libexecdir=DIR program executables [EPREFIX/libexec]
1447 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1448 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1449 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1450 --libdir=DIR object code libraries [EPREFIX/lib]
1451 --includedir=DIR C header files [PREFIX/include]
1452 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1453 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1454 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1455 --infodir=DIR info documentation [DATAROOTDIR/info]
1456 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1457 --mandir=DIR man documentation [DATAROOTDIR/man]
1458 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1459 --htmldir=DIR html documentation [DOCDIR]
1460 --dvidir=DIR dvi documentation [DOCDIR]
1461 --pdfdir=DIR pdf documentation [DOCDIR]
1462 --psdir=DIR ps documentation [DOCDIR]
1463 _ACEOF
1464
1465 cat <<\_ACEOF
1466
1467 X features:
1468 --x-includes=DIR X include files are in DIR
1469 --x-libraries=DIR X library files are in DIR
1470
1471 System types:
1472 --build=BUILD configure for building on BUILD [guessed]
1473 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1474 _ACEOF
1475 fi
1476
1477 if test -n "$ac_init_help"; then
1478
1479 cat <<\_ACEOF
1480
1481 Optional Features:
1482 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1483 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1484 --enable-shared[=PKGS] build shared libraries [default=yes]
1485 --enable-static[=PKGS] build static libraries [default=yes]
1486 --enable-fast-install[=PKGS]
1487 optimize for fast installation [default=yes]
1488 --disable-libtool-lock avoid locking (might break parallel builds)
1489 --enable-assertions Enable internal sanity checks
1490 (auto/disabled/release/enabled/paranoid)
1491 [default=auto]
1492 --enable-dependency-tracking
1493 Use gcc -MMD -MT dependency tracking [default=yes]
1494 --enable-libc Use the system C library [default=yes]
1495 --enable-gcc-atomics Use gcc builtin atomics [default=yes]
1496 --enable-atomic Enable the atomic operations subsystem
1497 [default=yes]
1498 --enable-audio Enable the audio subsystem [default=yes]
1499 --enable-video Enable the video subsystem [default=yes]
1500 --enable-render Enable the render subsystem [default=yes]
1501 --enable-events Enable the events subsystem [default=yes]
1502 --enable-joystick Enable the joystick subsystem [default=yes]
1503 --enable-haptic Enable the haptic (force feedback) subsystem
1504 [default=yes]
1505 --enable-power Enable the power subsystem [default=yes]
1506 --enable-threads Enable the threading subsystem [default=yes]
1507 --enable-timers Enable the timer subsystem [default=yes]
1508 --enable-file Enable the file subsystem [default=yes]
1509 --enable-loadso Enable the shared object loading subsystem
1510 [default=yes]
1511 --enable-cpuinfo Enable the cpuinfo subsystem [default=yes]
1512 --enable-atomic Enable the atomic operations [default=yes]
1513 --enable-assembly Enable assembly routines [default=yes]
1514 --enable-ssemath Allow GCC to use SSE floating point math
1515 [default=no]
1516 --enable-mmx use MMX assembly routines [default=yes]
1517 --enable-sse use SSE assembly routines [default=yes]
1518 --enable-sse2 use SSE2 assembly routines [default=no]
1519 --enable-oss support the OSS audio API [default=yes]
1520 --enable-alsa support the ALSA audio API [default=yes]
1521 --disable-alsatest Do not try to compile and run a test Alsa program
1522 --enable-alsa-shared dynamically load ALSA audio support [default=yes]
1523 --enable-esd support the Enlightened Sound Daemon [default=yes]
1524 --disable-esdtest Do not try to compile and run a test ESD program
1525 --enable-esd-shared dynamically load ESD audio support [default=yes]
1526 --enable-pulseaudio use PulseAudio [default=yes]
1527 --enable-pulseaudio-shared
1528 dynamically load PulseAudio support [default=yes]
1529 --enable-arts support the Analog Real Time Synthesizer
1530 [default=yes]
1531 --enable-arts-shared dynamically load aRts audio support [default=yes]
1532 --enable-nas support the NAS audio API [default=yes]
1533 --enable-nas-shared dynamically load NAS audio support [default=yes]
1534 --enable-diskaudio support the disk writer audio driver [default=yes]
1535 --enable-dummyaudio support the dummy audio driver [default=yes]
1536 --enable-video-x11 use X11 video driver [default=yes]
1537 --enable-x11-shared dynamically load X11 support [default=maybe]
1538 --enable-video-x11-vm use X11 VM extension for fullscreen [default=yes]
1539 --enable-video-x11-xv use X11 XvImage extension for video [default=yes]
1540 --enable-video-x11-xinerama
1541 enable X11 Xinerama support [default=yes]
1542 --enable-video-x11-xshape
1543 enable X11 XShape support [default=yes]
1544 --enable-video-x11-xrandr
1545 enable X11 Xrandr extension for fullscreen
1546 [default=yes]
1547 --enable-video-x11-xinput
1548 enable X11 XInput extension for manymouse, tablets,
1549 etc [default=yes]
1550 --enable-video-x11-scrnsaver
1551 enable X11 screensaver extension [default=yes]
1552 --enable-video-cocoa use Cocoa video driver [default=yes]
1553 --enable-video-directfb use DirectFB video driver [default=no]
1554 --enable-directfb-shared
1555 dynamically load directfb support [default=yes]
1556 --enable-fusionsound use FusionSound audio driver [default=no]
1557 --enable-fusionsound-shared
1558 dynamically load fusionsound audio support
1559 [default=yes]
1560 --enable-video-dummy use dummy video driver [default=yes]
1561 --enable-video-opengl include OpenGL support [default=yes]
1562 --enable-input-events use Linux 2.4 unified input interface
1563 [default=yes]
1564 --enable-input-tslib use the Touchscreen library for input
1565 [default=yes]
1566 --enable-pthreads use POSIX threads for multi-threading
1567 [default=yes]
1568 --enable-pthread-sem use pthread semaphores [default=yes]
1569 --enable-directx use DirectX for Windows audio/video [default=yes]
1570 --enable-sdl-dlopen use dlopen for shared object loading [default=yes]
1571 --enable-clock_gettime use clock_gettime() instead of gettimeofday() on
1572 UNIX [default=no]
1573 --enable-rpath use an rpath when linking SDL [default=yes]
1574 --enable-render-d3d enable the Direct3D render driver [default=yes]
1575
1576 Optional Packages:
1577 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1578 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1579 --with-pic try to use only PIC/non-PIC objects [default=use
1580 both]
1581 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1582 --with-alsa-prefix=PFX Prefix where Alsa library is installed(optional)
1583 --with-alsa-inc-prefix=PFX Prefix where include libraries are (optional)
1584 --with-esd-prefix=PFX Prefix where ESD is installed (optional)
1585 --with-esd-exec-prefix=PFX Exec prefix where ESD is installed (optional)
1586 --with-x use the X Window System
1587
1588 Some influential environment variables:
1589 CC C compiler command
1590 CFLAGS C compiler flags
1591 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1592 nonstandard directory <lib dir>
1593 LIBS libraries to pass to the linker, e.g. -l<library>
1594 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1595 you have headers in a nonstandard directory <include dir>
1596 CPP C preprocessor
1597 CXX C++ compiler command
1598 CXXFLAGS C++ compiler flags
1599 CXXCPP C++ preprocessor
1600 XMKMF Path to xmkmf, Makefile generator for X Window System
1601
1602 Use these variables to override the choices made by `configure' or to help
1603 it to find libraries and programs with nonstandard names/locations.
1604
1605 _ACEOF
1606 ac_status=$?
1607 fi
1608
1609 if test "$ac_init_help" = "recursive"; then
1610 # If there are subdirs, report their specific --help.
1611 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1612 test -d "$ac_dir" || continue
1613 ac_builddir=.
1614
1615 case "$ac_dir" in
1616 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1617 *)
1618 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1619 # A ".." for each directory in $ac_dir_suffix.
1620 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1621 case $ac_top_builddir_sub in
1622 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1623 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1624 esac ;;
1625 esac
1626 ac_abs_top_builddir=$ac_pwd
1627 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1628 # for backward compatibility:
1629 ac_top_builddir=$ac_top_build_prefix
1630
1631 case $srcdir in
1632 .) # We are building in place.
1633 ac_srcdir=.
1634 ac_top_srcdir=$ac_top_builddir_sub
1635 ac_abs_top_srcdir=$ac_pwd ;;
1636 [\\/]* | ?:[\\/]* ) # Absolute name.
1637 ac_srcdir=$srcdir$ac_dir_suffix;
1638 ac_top_srcdir=$srcdir
1639 ac_abs_top_srcdir=$srcdir ;;
1640 *) # Relative name.
1641 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1642 ac_top_srcdir=$ac_top_build_prefix$srcdir
1643 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1644 esac
1645 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1646
1647 cd "$ac_dir" || { ac_status=$?; continue; }
1648 # Check for guested configure.
1649 if test -f "$ac_srcdir/configure.gnu"; then
1650 echo &&
1651 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1652 elif test -f "$ac_srcdir/configure"; then
1653 echo &&
1654 $SHELL "$ac_srcdir/configure" --help=recursive
1655 else
1656 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1657 fi || ac_status=$?
1658 cd "$ac_pwd" || { ac_status=$?; break; }
1659 done
1660 fi
1661
1662 test -n "$ac_init_help" && exit $ac_status
1663 if $ac_init_version; then
1664 cat <<\_ACEOF
1665 configure
1666 generated by GNU Autoconf 2.61
1667
1668 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1669 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1670 This configure script is free software; the Free Software Foundation
1671 gives unlimited permission to copy, distribute and modify it.
1672 _ACEOF
1673 exit
1674 fi
1675 cat >config.log <<_ACEOF
1676 This file contains any messages produced by compilers while
1677 running configure, to aid debugging if configure makes a mistake.
1678
1679 It was created by $as_me, which was
1680 generated by GNU Autoconf 2.61. Invocation command line was
1681
1682 $ $0 $@
1683
1684 _ACEOF
1685 exec 5>>config.log
1686 {
1687 cat <<_ASUNAME
1688 ## --------- ##
1689 ## Platform. ##
1690 ## --------- ##
1691
1692 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1693 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1694 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1695 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1696 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1697
1698 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1699 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1700
1701 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1702 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1703 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1704 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1705 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1706 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1707 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1708
1709 _ASUNAME
1710
1711 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1712 for as_dir in $PATH
1713 do
1714 IFS=$as_save_IFS
1715 test -z "$as_dir" && as_dir=.
1716 echo "PATH: $as_dir"
1717 done
1718 IFS=$as_save_IFS
1719
1720 } >&5
1721
1722 cat >&5 <<_ACEOF
1723
1724
1725 ## ----------- ##
1726 ## Core tests. ##
1727 ## ----------- ##
1728
1729 _ACEOF
1730
1731
1732 # Keep a trace of the command line.
1733 # Strip out --no-create and --no-recursion so they do not pile up.
1734 # Strip out --silent because we don't want to record it for future runs.
1735 # Also quote any args containing shell meta-characters.
1736 # Make two passes to allow for proper duplicate-argument suppression.
1737 ac_configure_args=
1738 ac_configure_args0=
1739 ac_configure_args1=
1740 ac_must_keep_next=false
1741 for ac_pass in 1 2
1742 do
1743 for ac_arg
1744 do
1745 case $ac_arg in
1746 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1747 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1748 | -silent | --silent | --silen | --sile | --sil)
1749 continue ;;
1750 *\'*)
1751 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 esac
1753 case $ac_pass in
1754 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1755 2)
1756 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1757 if test $ac_must_keep_next = true; then
1758 ac_must_keep_next=false # Got value, back to normal.
1759 else
1760 case $ac_arg in
1761 *=* | --config-cache | -C | -disable-* | --disable-* \
1762 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1763 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1764 | -with-* | --with-* | -without-* | --without-* | --x)
1765 case "$ac_configure_args0 " in
1766 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1767 esac
1768 ;;
1769 -* ) ac_must_keep_next=true ;;
1770 esac
1771 fi
1772 ac_configure_args="$ac_configure_args '$ac_arg'"
1773 ;;
1774 esac
1775 done
1776 done
1777 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1778 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1779
1780 # When interrupted or exit'd, cleanup temporary files, and complete
1781 # config.log. We remove comments because anyway the quotes in there
1782 # would cause problems or look ugly.
1783 # WARNING: Use '\'' to represent an apostrophe within the trap.
1784 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1785 trap 'exit_status=$?
1786 # Save into config.log some information that might help in debugging.
1787 {
1788 echo
1789
1790 cat <<\_ASBOX
1791 ## ---------------- ##
1792 ## Cache variables. ##
1793 ## ---------------- ##
1794 _ASBOX
1795 echo
1796 # The following way of writing the cache mishandles newlines in values,
1797 (
1798 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in #(
1801 *${as_nl}*)
1802 case $ac_var in #(
1803 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1804 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1805 esac
1806 case $ac_var in #(
1807 _ | IFS | as_nl) ;; #(
1808 *) $as_unset $ac_var ;;
1809 esac ;;
1810 esac
1811 done
1812 (set) 2>&1 |
1813 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1814 *${as_nl}ac_space=\ *)
1815 sed -n \
1816 "s/'\''/'\''\\\\'\'''\''/g;
1817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1818 ;; #(
1819 *)
1820 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1821 ;;
1822 esac |
1823 sort
1824 )
1825 echo
1826
1827 cat <<\_ASBOX
1828 ## ----------------- ##
1829 ## Output variables. ##
1830 ## ----------------- ##
1831 _ASBOX
1832 echo
1833 for ac_var in $ac_subst_vars
1834 do
1835 eval ac_val=\$$ac_var
1836 case $ac_val in
1837 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1838 esac
1839 echo "$ac_var='\''$ac_val'\''"
1840 done | sort
1841 echo
1842
1843 if test -n "$ac_subst_files"; then
1844 cat <<\_ASBOX
1845 ## ------------------- ##
1846 ## File substitutions. ##
1847 ## ------------------- ##
1848 _ASBOX
1849 echo
1850 for ac_var in $ac_subst_files
1851 do
1852 eval ac_val=\$$ac_var
1853 case $ac_val in
1854 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1855 esac
1856 echo "$ac_var='\''$ac_val'\''"
1857 done | sort
1858 echo
1859 fi
1860
1861 if test -s confdefs.h; then
1862 cat <<\_ASBOX
1863 ## ----------- ##
1864 ## confdefs.h. ##
1865 ## ----------- ##
1866 _ASBOX
1867 echo
1868 cat confdefs.h
1869 echo
1870 fi
1871 test "$ac_signal" != 0 &&
1872 echo "$as_me: caught signal $ac_signal"
1873 echo "$as_me: exit $exit_status"
1874 } >&5
1875 rm -f core *.core core.conftest.* &&
1876 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1877 exit $exit_status
1878 ' 0
1879 for ac_signal in 1 2 13 15; do
1880 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1881 done
1882 ac_signal=0
1883
1884 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1885 rm -f -r conftest* confdefs.h
1886
1887 # Predefined preprocessor variables.
1888
1889 cat >>confdefs.h <<_ACEOF
1890 #define PACKAGE_NAME "$PACKAGE_NAME"
1891 _ACEOF
1892
1893
1894 cat >>confdefs.h <<_ACEOF
1895 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1896 _ACEOF
1897
1898
1899 cat >>confdefs.h <<_ACEOF
1900 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1901 _ACEOF
1902
1903
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_STRING "$PACKAGE_STRING"
1906 _ACEOF
1907
1908
1909 cat >>confdefs.h <<_ACEOF
1910 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1911 _ACEOF
1912
1913
1914 # Let the site file select an alternate cache file if it wants to.
1915 # Prefer explicitly selected file to automatically selected ones.
1916 if test -n "$CONFIG_SITE"; then
1917 set x "$CONFIG_SITE"
1918 elif test "x$prefix" != xNONE; then
1919 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1920 else
1921 set x "$ac_default_prefix/share/config.site" \
1922 "$ac_default_prefix/etc/config.site"
1923 fi
1924 shift
1925 for ac_site_file
1926 do
1927 if test -r "$ac_site_file"; then
1928 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1929 echo "$as_me: loading site script $ac_site_file" >&6;}
1930 sed 's/^/| /' "$ac_site_file" >&5
1931 . "$ac_site_file"
1932 fi
1933 done
1934
1935 if test -r "$cache_file"; then
1936 # Some versions of bash will fail to source /dev/null (special
1937 # files actually), so we avoid doing that.
1938 if test -f "$cache_file"; then
1939 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1940 echo "$as_me: loading cache $cache_file" >&6;}
1941 case $cache_file in
1942 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1943 *) . "./$cache_file";;
1944 esac
1945 fi
1946 else
1947 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1948 echo "$as_me: creating cache $cache_file" >&6;}
1949 >$cache_file
1950 fi
1951
1952 # Check that the precious variables saved in the cache have kept the same
1953 # value.
1954 ac_cache_corrupted=false
1955 for ac_var in $ac_precious_vars; do
1956 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1957 eval ac_new_set=\$ac_env_${ac_var}_set
1958 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1959 eval ac_new_val=\$ac_env_${ac_var}_value
1960 case $ac_old_set,$ac_new_set in
1961 set,)
1962 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1963 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1964 ac_cache_corrupted=: ;;
1965 ,set)
1966 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1967 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1968 ac_cache_corrupted=: ;;
1969 ,);;
1970 *)
1971 if test "x$ac_old_val" != "x$ac_new_val"; then
1972 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1973 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1974 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1975 echo "$as_me: former value: $ac_old_val" >&2;}
1976 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1977 echo "$as_me: current value: $ac_new_val" >&2;}
1978 ac_cache_corrupted=:
1979 fi;;
1980 esac
1981 # Pass precious variables to config.status.
1982 if test "$ac_new_set" = set; then
1983 case $ac_new_val in
1984 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1985 *) ac_arg=$ac_var=$ac_new_val ;;
1986 esac
1987 case " $ac_configure_args " in
1988 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1989 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1990 esac
1991 fi
1992 done
1993 if $ac_cache_corrupted; then
1994 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1995 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1996 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1997 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1998 { (exit 1); exit 1; }; }
1999 fi
2000
2001
2002
2003
2004
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017 ac_ext=c
2018 ac_cpp='$CPP $CPPFLAGS'
2019 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2020 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2021 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2022
2023
2024 ac_config_headers="$ac_config_headers include/SDL_config.h"
2025
2026
2027 cat >>confdefs.h <<\_ACEOF
2028 #define _GNU_SOURCE 1
2029 _ACEOF
2030
2031
2032 ac_aux_dir=
2033 for ac_dir in $srcdir/build-scripts; do
2034 if test -f "$ac_dir/install-sh"; then
2035 ac_aux_dir=$ac_dir
2036 ac_install_sh="$ac_aux_dir/install-sh -c"
2037 break
2038 elif test -f "$ac_dir/install.sh"; then
2039 ac_aux_dir=$ac_dir
2040 ac_install_sh="$ac_aux_dir/install.sh -c"
2041 break
2042 elif test -f "$ac_dir/shtool"; then
2043 ac_aux_dir=$ac_dir
2044 ac_install_sh="$ac_aux_dir/shtool install -c"
2045 break
2046 fi
2047 done
2048 if test -z "$ac_aux_dir"; then
2049 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&5
2050 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir/build-scripts" >&2;}
2051 { (exit 1); exit 1; }; }
2052 fi
2053
2054 # These three variables are undocumented and unsupported,
2055 # and are intended to be withdrawn in a future Autoconf release.
2056 # They can cause serious problems if a builder's source tree is in a directory
2057 # whose full name contains unusual characters.
2058 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2059 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2060 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2061
2062
2063
2064 orig_CFLAGS="$CFLAGS"
2065
2066 #
2067 # Making releases:
2068 # Edit include/SDL/SDL_version.h and change the version, then:
2069 # SDL_MICRO_VERSION += 1;
2070 # SDL_INTERFACE_AGE += 1;
2071 # SDL_BINARY_AGE += 1;
2072 # if any functions have been added, set SDL_INTERFACE_AGE to 0.
2073 # if backwards compatibility has been broken,
2074 # set SDL_BINARY_AGE and SDL_INTERFACE_AGE to 0.
2075 #
2076 SDL_MAJOR_VERSION=1
2077 SDL_MINOR_VERSION=3
2078 SDL_MICRO_VERSION=0
2079 SDL_INTERFACE_AGE=0
2080 SDL_BINARY_AGE=0
2081 SDL_VERSION=$SDL_MAJOR_VERSION.$SDL_MINOR_VERSION.$SDL_MICRO_VERSION
2082
2083
2084
2085
2086
2087
2088
2089
2090 # libtool versioning
2091 case `pwd` in
2092 *\ * | *\ *)
2093 { echo "$as_me:$LINENO: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
2094 echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
2095 esac
2096
2097
2098
2099 macro_version='2.2.6'
2100 macro_revision='1.3012'
2101
2102
2103
2104
2105
2106
2107
2108
2109
2110
2111
2112
2113
2114 ltmain="$ac_aux_dir/ltmain.sh"
2115
2116 # Make sure we can run config.sub.
2117 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2118 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2119 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2120 { (exit 1); exit 1; }; }
2121
2122 { echo "$as_me:$LINENO: checking build system type" >&5
2123 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2124 if test "${ac_cv_build+set}" = set; then
2125 echo $ECHO_N "(cached) $ECHO_C" >&6
2126 else
2127 ac_build_alias=$build_alias
2128 test "x$ac_build_alias" = x &&
2129 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2130 test "x$ac_build_alias" = x &&
2131 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2132 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2133 { (exit 1); exit 1; }; }
2134 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2135 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2136 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2137 { (exit 1); exit 1; }; }
2138
2139 fi
2140 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2141 echo "${ECHO_T}$ac_cv_build" >&6; }
2142 case $ac_cv_build in
2143 *-*-*) ;;
2144 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2145 echo "$as_me: error: invalid value of canonical build" >&2;}
2146 { (exit 1); exit 1; }; };;
2147 esac
2148 build=$ac_cv_build
2149 ac_save_IFS=$IFS; IFS='-'
2150 set x $ac_cv_build
2151 shift
2152 build_cpu=$1
2153 build_vendor=$2
2154 shift; shift
2155 # Remember, the first character of IFS is used to create $*,
2156 # except with old shells:
2157 build_os=$*
2158 IFS=$ac_save_IFS
2159 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2160
2161
2162 { echo "$as_me:$LINENO: checking host system type" >&5
2163 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2164 if test "${ac_cv_host+set}" = set; then
2165 echo $ECHO_N "(cached) $ECHO_C" >&6
2166 else
2167 if test "x$host_alias" = x; then
2168 ac_cv_host=$ac_cv_build
2169 else
2170 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2171 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2172 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2173 { (exit 1); exit 1; }; }
2174 fi
2175
2176 fi
2177 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2178 echo "${ECHO_T}$ac_cv_host" >&6; }
2179 case $ac_cv_host in
2180 *-*-*) ;;
2181 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2182 echo "$as_me: error: invalid value of canonical host" >&2;}
2183 { (exit 1); exit 1; }; };;
2184 esac
2185 host=$ac_cv_host
2186 ac_save_IFS=$IFS; IFS='-'
2187 set x $ac_cv_host
2188 shift
2189 host_cpu=$1
2190 host_vendor=$2
2191 shift; shift
2192 # Remember, the first character of IFS is used to create $*,
2193 # except with old shells:
2194 host_os=$*
2195 IFS=$ac_save_IFS
2196 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2197
2198
2199 ac_ext=c
2200 ac_cpp='$CPP $CPPFLAGS'
2201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2204 if test -n "$ac_tool_prefix"; then
2205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2206 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2207 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2208 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2209 if test "${ac_cv_prog_CC+set}" = set; then
2210 echo $ECHO_N "(cached) $ECHO_C" >&6
2211 else
2212 if test -n "$CC"; then
2213 ac_cv_prog_CC="$CC" # Let the user override the test.
2214 else
2215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2216 for as_dir in $PATH
2217 do
2218 IFS=$as_save_IFS
2219 test -z "$as_dir" && as_dir=.
2220 for ac_exec_ext in '' $ac_executable_extensions; do
2221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2222 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2224 break 2
2225 fi
2226 done
2227 done
2228 IFS=$as_save_IFS
2229
2230 fi
2231 fi
2232 CC=$ac_cv_prog_CC
2233 if test -n "$CC"; then
2234 { echo "$as_me:$LINENO: result: $CC" >&5
2235 echo "${ECHO_T}$CC" >&6; }
2236 else
2237 { echo "$as_me:$LINENO: result: no" >&5
2238 echo "${ECHO_T}no" >&6; }
2239 fi
2240
2241
2242 fi
2243 if test -z "$ac_cv_prog_CC"; then
2244 ac_ct_CC=$CC
2245 # Extract the first word of "gcc", so it can be a program name with args.
2246 set dummy gcc; ac_word=$2
2247 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2248 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2249 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2250 echo $ECHO_N "(cached) $ECHO_C" >&6
2251 else
2252 if test -n "$ac_ct_CC"; then
2253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2254 else
2255 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2256 for as_dir in $PATH
2257 do
2258 IFS=$as_save_IFS
2259 test -z "$as_dir" && as_dir=.
2260 for ac_exec_ext in '' $ac_executable_extensions; do
2261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2262 ac_cv_prog_ac_ct_CC="gcc"
2263 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2264 break 2
2265 fi
2266 done
2267 done
2268 IFS=$as_save_IFS
2269
2270 fi
2271 fi
2272 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2273 if test -n "$ac_ct_CC"; then
2274 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2275 echo "${ECHO_T}$ac_ct_CC" >&6; }
2276 else
2277 { echo "$as_me:$LINENO: result: no" >&5
2278 echo "${ECHO_T}no" >&6; }
2279 fi
2280
2281 if test "x$ac_ct_CC" = x; then
2282 CC=""
2283 else
2284 case $cross_compiling:$ac_tool_warned in
2285 yes:)
2286 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2287 whose name does not start with the host triplet. If you think this
2288 configuration is useful to you, please write to autoconf@gnu.org." >&5
2289 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2290 whose name does not start with the host triplet. If you think this
2291 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2292 ac_tool_warned=yes ;;
2293 esac
2294 CC=$ac_ct_CC
2295 fi
2296 else
2297 CC="$ac_cv_prog_CC"
2298 fi
2299
2300 if test -z "$CC"; then
2301 if test -n "$ac_tool_prefix"; then
2302 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2303 set dummy ${ac_tool_prefix}cc; ac_word=$2
2304 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2305 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2306 if test "${ac_cv_prog_CC+set}" = set; then
2307 echo $ECHO_N "(cached) $ECHO_C" >&6
2308 else
2309 if test -n "$CC"; then
2310 ac_cv_prog_CC="$CC" # Let the user override the test.
2311 else
2312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2313 for as_dir in $PATH
2314 do
2315 IFS=$as_save_IFS
2316 test -z "$as_dir" && as_dir=.
2317 for ac_exec_ext in '' $ac_executable_extensions; do
2318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2319 ac_cv_prog_CC="${ac_tool_prefix}cc"
2320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2321 break 2
2322 fi
2323 done
2324 done
2325 IFS=$as_save_IFS
2326
2327 fi
2328 fi
2329 CC=$ac_cv_prog_CC
2330 if test -n "$CC"; then
2331 { echo "$as_me:$LINENO: result: $CC" >&5
2332 echo "${ECHO_T}$CC" >&6; }
2333 else
2334 { echo "$as_me:$LINENO: result: no" >&5
2335 echo "${ECHO_T}no" >&6; }
2336 fi
2337
2338
2339 fi
2340 fi
2341 if test -z "$CC"; then
2342 # Extract the first word of "cc", so it can be a program name with args.
2343 set dummy cc; ac_word=$2
2344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2346 if test "${ac_cv_prog_CC+set}" = set; then
2347 echo $ECHO_N "(cached) $ECHO_C" >&6
2348 else
2349 if test -n "$CC"; then
2350 ac_cv_prog_CC="$CC" # Let the user override the test.
2351 else
2352 ac_prog_rejected=no
2353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2354 for as_dir in $PATH
2355 do
2356 IFS=$as_save_IFS
2357 test -z "$as_dir" && as_dir=.
2358 for ac_exec_ext in '' $ac_executable_extensions; do
2359 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2360 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2361 ac_prog_rejected=yes
2362 continue
2363 fi
2364 ac_cv_prog_CC="cc"
2365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2366 break 2
2367 fi
2368 done
2369 done
2370 IFS=$as_save_IFS
2371
2372 if test $ac_prog_rejected = yes; then
2373 # We found a bogon in the path, so make sure we never use it.
2374 set dummy $ac_cv_prog_CC
2375 shift
2376 if test $# != 0; then
2377 # We chose a different compiler from the bogus one.
2378 # However, it has the same basename, so the bogon will be chosen
2379 # first if we set CC to just the basename; use the full file name.
2380 shift
2381 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2382 fi
2383 fi
2384 fi
2385 fi
2386 CC=$ac_cv_prog_CC
2387 if test -n "$CC"; then
2388 { echo "$as_me:$LINENO: result: $CC" >&5
2389 echo "${ECHO_T}$CC" >&6; }
2390 else
2391 { echo "$as_me:$LINENO: result: no" >&5
2392 echo "${ECHO_T}no" >&6; }
2393 fi
2394
2395
2396 fi
2397 if test -z "$CC"; then
2398 if test -n "$ac_tool_prefix"; then
2399 for ac_prog in cl.exe
2400 do
2401 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2402 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2405 if test "${ac_cv_prog_CC+set}" = set; then
2406 echo $ECHO_N "(cached) $ECHO_C" >&6
2407 else
2408 if test -n "$CC"; then
2409 ac_cv_prog_CC="$CC" # Let the user override the test.
2410 else
2411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2412 for as_dir in $PATH
2413 do
2414 IFS=$as_save_IFS
2415 test -z "$as_dir" && as_dir=.
2416 for ac_exec_ext in '' $ac_executable_extensions; do
2417 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2418 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2419 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2420 break 2
2421 fi
2422 done
2423 done
2424 IFS=$as_save_IFS
2425
2426 fi
2427 fi
2428 CC=$ac_cv_prog_CC
2429 if test -n "$CC"; then
2430 { echo "$as_me:$LINENO: result: $CC" >&5
2431 echo "${ECHO_T}$CC" >&6; }
2432 else
2433 { echo "$as_me:$LINENO: result: no" >&5
2434 echo "${ECHO_T}no" >&6; }
2435 fi
2436
2437
2438 test -n "$CC" && break
2439 done
2440 fi
2441 if test -z "$CC"; then
2442 ac_ct_CC=$CC
2443 for ac_prog in cl.exe
2444 do
2445 # Extract the first word of "$ac_prog", so it can be a program name with args.
2446 set dummy $ac_prog; ac_word=$2
2447 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2448 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2449 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2450 echo $ECHO_N "(cached) $ECHO_C" >&6
2451 else
2452 if test -n "$ac_ct_CC"; then
2453 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2454 else
2455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2456 for as_dir in $PATH
2457 do
2458 IFS=$as_save_IFS
2459 test -z "$as_dir" && as_dir=.
2460 for ac_exec_ext in '' $ac_executable_extensions; do
2461 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2462 ac_cv_prog_ac_ct_CC="$ac_prog"
2463 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2464 break 2
2465 fi
2466 done
2467 done
2468 IFS=$as_save_IFS
2469
2470 fi
2471 fi
2472 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2473 if test -n "$ac_ct_CC"; then
2474 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2475 echo "${ECHO_T}$ac_ct_CC" >&6; }
2476 else
2477 { echo "$as_me:$LINENO: result: no" >&5
2478 echo "${ECHO_T}no" >&6; }
2479 fi
2480
2481
2482 test -n "$ac_ct_CC" && break
2483 done
2484
2485 if test "x$ac_ct_CC" = x; then
2486 CC=""
2487 else
2488 case $cross_compiling:$ac_tool_warned in
2489 yes:)
2490 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2491 whose name does not start with the host triplet. If you think this
2492 configuration is useful to you, please write to autoconf@gnu.org." >&5
2493 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2494 whose name does not start with the host triplet. If you think this
2495 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2496 ac_tool_warned=yes ;;
2497 esac
2498 CC=$ac_ct_CC
2499 fi
2500 fi
2501
2502 fi
2503
2504
2505 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2506 See \`config.log' for more details." >&5
2507 echo "$as_me: error: no acceptable C compiler found in \$PATH
2508 See \`config.log' for more details." >&2;}
2509 { (exit 1); exit 1; }; }
2510
2511 # Provide some information about the compiler.
2512 echo "$as_me:$LINENO: checking for C compiler version" >&5
2513 ac_compiler=`set X $ac_compile; echo $2`
2514 { (ac_try="$ac_compiler --version >&5"
2515 case "(($ac_try" in
2516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2517 *) ac_try_echo=$ac_try;;
2518 esac
2519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2520 (eval "$ac_compiler --version >&5") 2>&5
2521 ac_status=$?
2522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2523 (exit $ac_status); }
2524 { (ac_try="$ac_compiler -v >&5"
2525 case "(($ac_try" in
2526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2527 *) ac_try_echo=$ac_try;;
2528 esac
2529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2530 (eval "$ac_compiler -v >&5") 2>&5
2531 ac_status=$?
2532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2533 (exit $ac_status); }
2534 { (ac_try="$ac_compiler -V >&5"
2535 case "(($ac_try" in
2536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2537 *) ac_try_echo=$ac_try;;
2538 esac
2539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2540 (eval "$ac_compiler -V >&5") 2>&5
2541 ac_status=$?
2542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2543 (exit $ac_status); }
2544
2545 cat >conftest.$ac_ext <<_ACEOF
2546 /* confdefs.h. */
2547 _ACEOF
2548 cat confdefs.h >>conftest.$ac_ext
2549 cat >>conftest.$ac_ext <<_ACEOF
2550 /* end confdefs.h. */
2551
2552 int
2553 main ()
2554 {
2555
2556 ;
2557 return 0;
2558 }
2559 _ACEOF
2560 ac_clean_files_save=$ac_clean_files
2561 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2562 # Try to create an executable without -o first, disregard a.out.
2563 # It will help us diagnose broken compilers, and finding out an intuition
2564 # of exeext.
2565 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2566 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2567 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2568 #
2569 # List of possible output files, starting from the most likely.
2570 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2571 # only as a last resort. b.out is created by i960 compilers.
2572 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2573 #
2574 # The IRIX 6 linker writes into existing files which may not be
2575 # executable, retaining their permissions. Remove them first so a
2576 # subsequent execution test works.
2577 ac_rmfiles=
2578 for ac_file in $ac_files
2579 do
2580 case $ac_file in
2581 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2582 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2583 esac
2584 done
2585 rm -f $ac_rmfiles
2586
2587 if { (ac_try="$ac_link_default"
2588 case "(($ac_try" in
2589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2590 *) ac_try_echo=$ac_try;;
2591 esac
2592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2593 (eval "$ac_link_default") 2>&5
2594 ac_status=$?
2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2596 (exit $ac_status); }; then
2597 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2598 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2599 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2600 # so that the user can short-circuit this test for compilers unknown to
2601 # Autoconf.
2602 for ac_file in $ac_files ''
2603 do
2604 test -f "$ac_file" || continue
2605 case $ac_file in
2606 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2607 ;;
2608 [ab].out )
2609 # We found the default executable, but exeext='' is most
2610 # certainly right.
2611 break;;
2612 *.* )
2613 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2614 then :; else
2615 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2616 fi
2617 # We set ac_cv_exeext here because the later test for it is not
2618 # safe: cross compilers may not add the suffix if given an `-o'
2619 # argument, so we may need to know it at that point already.
2620 # Even if this section looks crufty: it has the advantage of
2621 # actually working.
2622 break;;
2623 * )
2624 break;;
2625 esac
2626 done
2627 test "$ac_cv_exeext" = no && ac_cv_exeext=
2628
2629 else
2630 ac_file=''
2631 fi
2632
2633 { echo "$as_me:$LINENO: result: $ac_file" >&5
2634 echo "${ECHO_T}$ac_file" >&6; }
2635 if test -z "$ac_file"; then
2636 echo "$as_me: failed program was:" >&5
2637 sed 's/^/| /' conftest.$ac_ext >&5
2638
2639 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2640 See \`config.log' for more details." >&5
2641 echo "$as_me: error: C compiler cannot create executables
2642 See \`config.log' for more details." >&2;}
2643 { (exit 77); exit 77; }; }
2644 fi
2645
2646 ac_exeext=$ac_cv_exeext
2647
2648 # Check that the compiler produces executables we can run. If not, either
2649 # the compiler is broken, or we cross compile.
2650 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2651 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2652 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2653 # If not cross compiling, check that we can run a simple program.
2654 if test "$cross_compiling" != yes; then
2655 if { ac_try='./$ac_file'
2656 { (case "(($ac_try" in
2657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2658 *) ac_try_echo=$ac_try;;
2659 esac
2660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2661 (eval "$ac_try") 2>&5
2662 ac_status=$?
2663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2664 (exit $ac_status); }; }; then
2665 cross_compiling=no
2666 else
2667 if test "$cross_compiling" = maybe; then
2668 cross_compiling=yes
2669 else
2670 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2671 If you meant to cross compile, use \`--host'.
2672 See \`config.log' for more details." >&5
2673 echo "$as_me: error: cannot run C compiled programs.
2674 If you meant to cross compile, use \`--host'.
2675 See \`config.log' for more details." >&2;}
2676 { (exit 1); exit 1; }; }
2677 fi
2678 fi
2679 fi
2680 { echo "$as_me:$LINENO: result: yes" >&5
2681 echo "${ECHO_T}yes" >&6; }
2682
2683 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2684 ac_clean_files=$ac_clean_files_save
2685 # Check that the compiler produces executables we can run. If not, either
2686 # the compiler is broken, or we cross compile.
2687 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2688 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2689 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2690 echo "${ECHO_T}$cross_compiling" >&6; }
2691
2692 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2693 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2694 if { (ac_try="$ac_link"
2695 case "(($ac_try" in
2696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2697 *) ac_try_echo=$ac_try;;
2698 esac
2699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2700 (eval "$ac_link") 2>&5
2701 ac_status=$?
2702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2703 (exit $ac_status); }; then
2704 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2705 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2706 # work properly (i.e., refer to `conftest.exe'), while it won't with
2707 # `rm'.
2708 for ac_file in conftest.exe conftest conftest.*; do
2709 test -f "$ac_file" || continue
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2712 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2713 break;;
2714 * ) break;;
2715 esac
2716 done
2717 else
2718 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2719 See \`config.log' for more details." >&5
2720 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2721 See \`config.log' for more details." >&2;}
2722 { (exit 1); exit 1; }; }
2723 fi
2724
2725 rm -f conftest$ac_cv_exeext
2726 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2727 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2728
2729 rm -f conftest.$ac_ext
2730 EXEEXT=$ac_cv_exeext
2731 ac_exeext=$EXEEXT
2732 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2733 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2734 if test "${ac_cv_objext+set}" = set; then
2735 echo $ECHO_N "(cached) $ECHO_C" >&6
2736 else
2737 cat >conftest.$ac_ext <<_ACEOF
2738 /* confdefs.h. */
2739 _ACEOF
2740 cat confdefs.h >>conftest.$ac_ext
2741 cat >>conftest.$ac_ext <<_ACEOF
2742 /* end confdefs.h. */
2743
2744 int
2745 main ()
2746 {
2747
2748 ;
2749 return 0;
2750 }
2751 _ACEOF
2752 rm -f conftest.o conftest.obj
2753 if { (ac_try="$ac_compile"
2754 case "(($ac_try" in
2755 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2756 *) ac_try_echo=$ac_try;;
2757 esac
2758 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2759 (eval "$ac_compile") 2>&5
2760 ac_status=$?
2761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2762 (exit $ac_status); }; then
2763 for ac_file in conftest.o conftest.obj conftest.*; do
2764 test -f "$ac_file" || continue;
2765 case $ac_file in
2766 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2767 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2768 break;;
2769 esac
2770 done
2771 else
2772 echo "$as_me: failed program was:" >&5
2773 sed 's/^/| /' conftest.$ac_ext >&5
2774
2775 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2776 See \`config.log' for more details." >&5
2777 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2778 See \`config.log' for more details." >&2;}
2779 { (exit 1); exit 1; }; }
2780 fi
2781
2782 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2783 fi
2784 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2785 echo "${ECHO_T}$ac_cv_objext" >&6; }
2786 OBJEXT=$ac_cv_objext
2787 ac_objext=$OBJEXT
2788 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2789 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2790 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2791 echo $ECHO_N "(cached) $ECHO_C" >&6
2792 else
2793 cat >conftest.$ac_ext <<_ACEOF
2794 /* confdefs.h. */
2795 _ACEOF
2796 cat confdefs.h >>conftest.$ac_ext
2797 cat >>conftest.$ac_ext <<_ACEOF
2798 /* end confdefs.h. */
2799
2800 int
2801 main ()
2802 {
2803 #ifndef __GNUC__
2804 choke me
2805 #endif
2806
2807 ;
2808 return 0;
2809 }
2810 _ACEOF
2811 rm -f conftest.$ac_objext
2812 if { (ac_try="$ac_compile"
2813 case "(($ac_try" in
2814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2815 *) ac_try_echo=$ac_try;;
2816 esac
2817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2818 (eval "$ac_compile") 2>conftest.er1
2819 ac_status=$?
2820 grep -v '^ *+' conftest.er1 >conftest.err
2821 rm -f conftest.er1
2822 cat conftest.err >&5
2823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2824 (exit $ac_status); } && {
2825 test -z "$ac_c_werror_flag" ||
2826 test ! -s conftest.err
2827 } && test -s conftest.$ac_objext; then
2828 ac_compiler_gnu=yes
2829 else
2830 echo "$as_me: failed program was:" >&5
2831 sed 's/^/| /' conftest.$ac_ext >&5
2832
2833 ac_compiler_gnu=no
2834 fi
2835
2836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2837 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838
2839 fi
2840 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2841 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
2842 GCC=`test $ac_compiler_gnu = yes && echo yes`
2843 ac_test_CFLAGS=${CFLAGS+set}
2844 ac_save_CFLAGS=$CFLAGS
2845 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2846 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
2847 if test "${ac_cv_prog_cc_g+set}" = set; then
2848 echo $ECHO_N "(cached) $ECHO_C" >&6
2849 else
2850 ac_save_c_werror_flag=$ac_c_werror_flag
2851 ac_c_werror_flag=yes
2852 ac_cv_prog_cc_g=no
2853 CFLAGS="-g"
2854 cat >conftest.$ac_ext <<_ACEOF
2855 /* confdefs.h. */
2856 _ACEOF
2857 cat confdefs.h >>conftest.$ac_ext
2858 cat >>conftest.$ac_ext <<_ACEOF
2859 /* end confdefs.h. */
2860
2861 int
2862 main ()
2863 {
2864
2865 ;
2866 return 0;
2867 }
2868 _ACEOF
2869 rm -f conftest.$ac_objext
2870 if { (ac_try="$ac_compile"
2871 case "(($ac_try" in
2872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2873 *) ac_try_echo=$ac_try;;
2874 esac
2875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2876 (eval "$ac_compile") 2>conftest.er1
2877 ac_status=$?
2878 grep -v '^ *+' conftest.er1 >conftest.err
2879 rm -f conftest.er1
2880 cat conftest.err >&5
2881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2882 (exit $ac_status); } && {
2883 test -z "$ac_c_werror_flag" ||
2884 test ! -s conftest.err
2885 } && test -s conftest.$ac_objext; then
2886 ac_cv_prog_cc_g=yes
2887 else
2888 echo "$as_me: failed program was:" >&5
2889 sed 's/^/| /' conftest.$ac_ext >&5
2890
2891 CFLAGS=""
2892 cat >conftest.$ac_ext <<_ACEOF
2893 /* confdefs.h. */
2894 _ACEOF
2895 cat confdefs.h >>conftest.$ac_ext
2896 cat >>conftest.$ac_ext <<_ACEOF
2897 /* end confdefs.h. */
2898
2899 int
2900 main ()
2901 {
2902
2903 ;
2904 return 0;
2905 }
2906 _ACEOF
2907 rm -f conftest.$ac_objext
2908 if { (ac_try="$ac_compile"
2909 case "(($ac_try" in
2910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2911 *) ac_try_echo=$ac_try;;
2912 esac
2913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2914 (eval "$ac_compile") 2>conftest.er1
2915 ac_status=$?
2916 grep -v '^ *+' conftest.er1 >conftest.err
2917 rm -f conftest.er1
2918 cat conftest.err >&5
2919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2920 (exit $ac_status); } && {
2921 test -z "$ac_c_werror_flag" ||
2922 test ! -s conftest.err
2923 } && test -s conftest.$ac_objext; then
2924 :
2925 else
2926 echo "$as_me: failed program was:" >&5
2927 sed 's/^/| /' conftest.$ac_ext >&5
2928
2929 ac_c_werror_flag=$ac_save_c_werror_flag
2930 CFLAGS="-g"
2931 cat >conftest.$ac_ext <<_ACEOF
2932 /* confdefs.h. */
2933 _ACEOF
2934 cat confdefs.h >>conftest.$ac_ext
2935 cat >>conftest.$ac_ext <<_ACEOF
2936 /* end confdefs.h. */
2937
2938 int
2939 main ()
2940 {
2941
2942 ;
2943 return 0;
2944 }
2945 _ACEOF
2946 rm -f conftest.$ac_objext
2947 if { (ac_try="$ac_compile"
2948 case "(($ac_try" in
2949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2950 *) ac_try_echo=$ac_try;;
2951 esac
2952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2953 (eval "$ac_compile") 2>conftest.er1
2954 ac_status=$?
2955 grep -v '^ *+' conftest.er1 >conftest.err
2956 rm -f conftest.er1
2957 cat conftest.err >&5
2958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2959 (exit $ac_status); } && {
2960 test -z "$ac_c_werror_flag" ||
2961 test ! -s conftest.err
2962 } && test -s conftest.$ac_objext; then
2963 ac_cv_prog_cc_g=yes
2964 else
2965 echo "$as_me: failed program was:" >&5
2966 sed 's/^/| /' conftest.$ac_ext >&5
2967
2968
2969 fi
2970
2971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2972 fi
2973
2974 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2975 fi
2976
2977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978 ac_c_werror_flag=$ac_save_c_werror_flag
2979 fi
2980 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2981 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
2982 if test "$ac_test_CFLAGS" = set; then
2983 CFLAGS=$ac_save_CFLAGS
2984 elif test $ac_cv_prog_cc_g = yes; then
2985 if test "$GCC" = yes; then
2986 CFLAGS="-g -O2"
2987 else
2988 CFLAGS="-g"
2989 fi
2990 else
2991 if test "$GCC" = yes; then
2992 CFLAGS="-O2"
2993 else
2994 CFLAGS=
2995 fi
2996 fi
2997 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
2998 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
2999 if test "${ac_cv_prog_cc_c89+set}" = set; then
3000 echo $ECHO_N "(cached) $ECHO_C" >&6
3001 else
3002 ac_cv_prog_cc_c89=no
3003 ac_save_CC=$CC
3004 cat >conftest.$ac_ext <<_ACEOF
3005 /* confdefs.h. */
3006 _ACEOF
3007 cat confdefs.h >>conftest.$ac_ext
3008 cat >>conftest.$ac_ext <<_ACEOF
3009 /* end confdefs.h. */
3010 #include <stdarg.h>
3011 #include <stdio.h>
3012 #include <sys/types.h>
3013 #include <sys/stat.h>
3014 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3015 struct buf { int x; };
3016 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3017 static char *e (p, i)
3018 char **p;
3019 int i;
3020 {
3021 return p[i];
3022 }
3023 static char *f (char * (*g) (char **, int), char **p, ...)
3024 {
3025 char *s;
3026 va_list v;
3027 va_start (v,p);
3028 s = g (p, va_arg (v,int));
3029 va_end (v);
3030 return s;
3031 }
3032
3033 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3034 function prototypes and stuff, but not '\xHH' hex character constants.
3035 These don't provoke an error unfortunately, instead are silently treated
3036 as 'x'. The following induces an error, until -std is added to get
3037 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3038 array size at least. It's necessary to write '\x00'==0 to get something
3039 that's true only with -std. */
3040 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3041
3042 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3043 inside strings and character constants. */
3044 #define FOO(x) 'x'
3045 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3046
3047 int test (int i, double x);
3048 struct s1 {int (*f) (int a);};
3049 struct s2 {int (*f) (double a);};
3050 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3051 int argc;
3052 char **argv;
3053 int
3054 main ()
3055 {
3056 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3057 ;
3058 return 0;
3059 }
3060 _ACEOF
3061 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3062 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3063 do
3064 CC="$ac_save_CC $ac_arg"
3065 rm -f conftest.$ac_objext
3066 if { (ac_try="$ac_compile"
3067 case "(($ac_try" in
3068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3069 *) ac_try_echo=$ac_try;;
3070 esac
3071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3072 (eval "$ac_compile") 2>conftest.er1
3073 ac_status=$?
3074 grep -v '^ *+' conftest.er1 >conftest.err
3075 rm -f conftest.er1
3076 cat conftest.err >&5
3077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3078 (exit $ac_status); } && {
3079 test -z "$ac_c_werror_flag" ||
3080 test ! -s conftest.err
3081 } && test -s conftest.$ac_objext; then
3082 ac_cv_prog_cc_c89=$ac_arg
3083 else
3084 echo "$as_me: failed program was:" >&5
3085 sed 's/^/| /' conftest.$ac_ext >&5
3086
3087
3088 fi
3089
3090 rm -f core conftest.err conftest.$ac_objext
3091 test "x$ac_cv_prog_cc_c89" != "xno" && break
3092 done
3093 rm -f conftest.$ac_ext
3094 CC=$ac_save_CC
3095
3096 fi
3097 # AC_CACHE_VAL
3098 case "x$ac_cv_prog_cc_c89" in
3099 x)
3100 { echo "$as_me:$LINENO: result: none needed" >&5
3101 echo "${ECHO_T}none needed" >&6; } ;;
3102 xno)
3103 { echo "$as_me:$LINENO: result: unsupported" >&5
3104 echo "${ECHO_T}unsupported" >&6; } ;;
3105 *)
3106 CC="$CC $ac_cv_prog_cc_c89"
3107 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3108 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3109 esac
3110
3111
3112 ac_ext=c
3113 ac_cpp='$CPP $CPPFLAGS'
3114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3117
3118 { echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
3119 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6; }
3120 if test "${ac_cv_path_SED+set}" = set; then
3121 echo $ECHO_N "(cached) $ECHO_C" >&6
3122 else
3123 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3124 for ac_i in 1 2 3 4 5 6 7; do
3125 ac_script="$ac_script$as_nl$ac_script"
3126 done
3127 echo "$ac_script" | sed 99q >conftest.sed
3128 $as_unset ac_script || ac_script=
3129 # Extract the first word of "sed gsed" to use in msg output
3130 if test -z "$SED"; then
3131 set dummy sed gsed; ac_prog_name=$2
3132 if test "${ac_cv_path_SED+set}" = set; then
3133 echo $ECHO_N "(cached) $ECHO_C" >&6
3134 else
3135 ac_path_SED_found=false
3136 # Loop through the user's path and test for each of PROGNAME-LIST
3137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3138 for as_dir in $PATH
3139 do
3140 IFS=$as_save_IFS
3141 test -z "$as_dir" && as_dir=.
3142 for ac_prog in sed gsed; do
3143 for ac_exec_ext in '' $ac_executable_extensions; do
3144 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3145 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3146 # Check for GNU ac_path_SED and select it if it is found.
3147 # Check for GNU $ac_path_SED
3148 case `"$ac_path_SED" --version 2>&1` in
3149 *GNU*)
3150 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3151 *)
3152 ac_count=0
3153 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3154 while :
3155 do
3156 cat "conftest.in" "conftest.in" >"conftest.tmp"
3157 mv "conftest.tmp" "conftest.in"
3158 cp "conftest.in" "conftest.nl"
3159 echo '' >> "conftest.nl"
3160 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3161 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3162 ac_count=`expr $ac_count + 1`
3163 if test $ac_count -gt ${ac_path_SED_max-0}; then
3164 # Best one so far, save it but keep looking for a better one
3165 ac_cv_path_SED="$ac_path_SED"
3166 ac_path_SED_max=$ac_count
3167 fi
3168 # 10*(2^10) chars as input seems more than enough
3169 test $ac_count -gt 10 && break
3170 done
3171 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3172 esac
3173
3174
3175 $ac_path_SED_found && break 3
3176 done
3177 done
3178
3179 done
3180 IFS=$as_save_IFS
3181
3182
3183 fi
3184
3185 SED="$ac_cv_path_SED"
3186 if test -z "$SED"; then
3187 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in \$PATH" >&5
3188 echo "$as_me: error: no acceptable $ac_prog_name could be found in \$PATH" >&2;}
3189 { (exit 1); exit 1; }; }
3190 fi
3191
3192 else
3193 ac_cv_path_SED=$SED
3194 fi
3195
3196 fi
3197 { echo "$as_me:$LINENO: result: $ac_cv_path_SED" >&5
3198 echo "${ECHO_T}$ac_cv_path_SED" >&6; }
3199 SED="$ac_cv_path_SED"
3200 rm -f conftest.sed
3201
3202 test -z "$SED" && SED=sed
3203 Xsed="$SED -e 1s/^X//"
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3216 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3217 if test "${ac_cv_path_GREP+set}" = set; then
3218 echo $ECHO_N "(cached) $ECHO_C" >&6
3219 else
3220 # Extract the first word of "grep ggrep" to use in msg output
3221 if test -z "$GREP"; then
3222 set dummy grep ggrep; ac_prog_name=$2
3223 if test "${ac_cv_path_GREP+set}" = set; then
3224 echo $ECHO_N "(cached) $ECHO_C" >&6
3225 else
3226 ac_path_GREP_found=false
3227 # Loop through the user's path and test for each of PROGNAME-LIST
3228 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3229 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3230 do
3231 IFS=$as_save_IFS
3232 test -z "$as_dir" && as_dir=.
3233 for ac_prog in grep ggrep; do
3234 for ac_exec_ext in '' $ac_executable_extensions; do
3235 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3236 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3237 # Check for GNU ac_path_GREP and select it if it is found.
3238 # Check for GNU $ac_path_GREP
3239 case `"$ac_path_GREP" --version 2>&1` in
3240 *GNU*)
3241 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3242 *)
3243 ac_count=0
3244 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3245 while :
3246 do
3247 cat "conftest.in" "conftest.in" >"conftest.tmp"
3248 mv "conftest.tmp" "conftest.in"
3249 cp "conftest.in" "conftest.nl"
3250 echo 'GREP' >> "conftest.nl"
3251 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3252 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3253 ac_count=`expr $ac_count + 1`
3254 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3255 # Best one so far, save it but keep looking for a better one
3256 ac_cv_path_GREP="$ac_path_GREP"
3257 ac_path_GREP_max=$ac_count
3258 fi
3259 # 10*(2^10) chars as input seems more than enough
3260 test $ac_count -gt 10 && break
3261 done
3262 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3263 esac
3264
3265
3266 $ac_path_GREP_found && break 3
3267 done
3268 done
3269
3270 done
3271 IFS=$as_save_IFS
3272
3273
3274 fi
3275
3276 GREP="$ac_cv_path_GREP"
3277 if test -z "$GREP"; then
3278 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3279 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3280 { (exit 1); exit 1; }; }
3281 fi
3282
3283 else
3284 ac_cv_path_GREP=$GREP
3285 fi
3286
3287
3288 fi
3289 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3290 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3291 GREP="$ac_cv_path_GREP"
3292
3293
3294 { echo "$as_me:$LINENO: checking for egrep" >&5
3295 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3296 if test "${ac_cv_path_EGREP+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3300 then ac_cv_path_EGREP="$GREP -E"
3301 else
3302 # Extract the first word of "egrep" to use in msg output
3303 if test -z "$EGREP"; then
3304 set dummy egrep; ac_prog_name=$2
3305 if test "${ac_cv_path_EGREP+set}" = set; then
3306 echo $ECHO_N "(cached) $ECHO_C" >&6
3307 else
3308 ac_path_EGREP_found=false
3309 # Loop through the user's path and test for each of PROGNAME-LIST
3310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3311 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3312 do
3313 IFS=$as_save_IFS
3314 test -z "$as_dir" && as_dir=.
3315 for ac_prog in egrep; do
3316 for ac_exec_ext in '' $ac_executable_extensions; do
3317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3318 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3319 # Check for GNU ac_path_EGREP and select it if it is found.
3320 # Check for GNU $ac_path_EGREP
3321 case `"$ac_path_EGREP" --version 2>&1` in
3322 *GNU*)
3323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3324 *)
3325 ac_count=0
3326 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3327 while :
3328 do
3329 cat "conftest.in" "conftest.in" >"conftest.tmp"
3330 mv "conftest.tmp" "conftest.in"
3331 cp "conftest.in" "conftest.nl"
3332 echo 'EGREP' >> "conftest.nl"
3333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3335 ac_count=`expr $ac_count + 1`
3336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3337 # Best one so far, save it but keep looking for a better one
3338 ac_cv_path_EGREP="$ac_path_EGREP"
3339 ac_path_EGREP_max=$ac_count
3340 fi
3341 # 10*(2^10) chars as input seems more than enough
3342 test $ac_count -gt 10 && break
3343 done
3344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3345 esac
3346
3347
3348 $ac_path_EGREP_found && break 3
3349 done
3350 done
3351
3352 done
3353 IFS=$as_save_IFS
3354
3355
3356 fi
3357
3358 EGREP="$ac_cv_path_EGREP"
3359 if test -z "$EGREP"; then
3360 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3361 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3362 { (exit 1); exit 1; }; }
3363 fi
3364
3365 else
3366 ac_cv_path_EGREP=$EGREP
3367 fi
3368
3369
3370 fi
3371 fi
3372 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3373 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3374 EGREP="$ac_cv_path_EGREP"
3375
3376
3377 { echo "$as_me:$LINENO: checking for fgrep" >&5
3378 echo $ECHO_N "checking for fgrep... $ECHO_C" >&6; }
3379 if test "${ac_cv_path_FGREP+set}" = set; then
3380 echo $ECHO_N "(cached) $ECHO_C" >&6
3381 else
3382 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3383 then ac_cv_path_FGREP="$GREP -F"
3384 else
3385 # Extract the first word of "fgrep" to use in msg output
3386 if test -z "$FGREP"; then
3387 set dummy fgrep; ac_prog_name=$2
3388 if test "${ac_cv_path_FGREP+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 ac_path_FGREP_found=false
3392 # Loop through the user's path and test for each of PROGNAME-LIST
3393 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3394 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3395 do
3396 IFS=$as_save_IFS
3397 test -z "$as_dir" && as_dir=.
3398 for ac_prog in fgrep; do
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3401 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3402 # Check for GNU ac_path_FGREP and select it if it is found.
3403 # Check for GNU $ac_path_FGREP
3404 case `"$ac_path_FGREP" --version 2>&1` in
3405 *GNU*)
3406 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
3407 *)
3408 ac_count=0
3409 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3410 while :
3411 do
3412 cat "conftest.in" "conftest.in" >"conftest.tmp"
3413 mv "conftest.tmp" "conftest.in"
3414 cp "conftest.in" "conftest.nl"
3415 echo 'FGREP' >> "conftest.nl"
3416 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
3417 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3418 ac_count=`expr $ac_count + 1`
3419 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
3420 # Best one so far, save it but keep looking for a better one
3421 ac_cv_path_FGREP="$ac_path_FGREP"
3422 ac_path_FGREP_max=$ac_count
3423 fi
3424 # 10*(2^10) chars as input seems more than enough
3425 test $ac_count -gt 10 && break
3426 done
3427 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3428 esac
3429
3430
3431 $ac_path_FGREP_found && break 3
3432 done
3433 done
3434
3435 done
3436 IFS=$as_save_IFS
3437
3438
3439 fi
3440
3441 FGREP="$ac_cv_path_FGREP"
3442 if test -z "$FGREP"; then
3443 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3444 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3445 { (exit 1); exit 1; }; }
3446 fi
3447
3448 else
3449 ac_cv_path_FGREP=$FGREP
3450 fi
3451
3452
3453 fi
3454 fi
3455 { echo "$as_me:$LINENO: result: $ac_cv_path_FGREP" >&5
3456 echo "${ECHO_T}$ac_cv_path_FGREP" >&6; }
3457 FGREP="$ac_cv_path_FGREP"
3458
3459
3460 test -z "$GREP" && GREP=grep
3461
3462
3463
3464
3465
3466
3467
3468
3469
3470
3471
3472
3473
3474
3475
3476
3477
3478
3479
3480 # Check whether --with-gnu-ld was given.
3481 if test "${with_gnu_ld+set}" = set; then
3482 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
3483 else
3484 with_gnu_ld=no
3485 fi
3486
3487 ac_prog=ld
3488 if test "$GCC" = yes; then
3489 # Check if gcc -print-prog-name=ld gives a path.
3490 { echo "$as_me:$LINENO: checking for ld used by $CC" >&5
3491 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6; }
3492 case $host in
3493 *-*-mingw*)
3494 # gcc leaves a trailing carriage return which upsets mingw
3495 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
3496 *)
3497 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
3498 esac
3499 case $ac_prog in
3500 # Accept absolute paths.
3501 [\\/]* | ?:[\\/]*)
3502 re_direlt='/[^/][^/]*/\.\./'
3503 # Canonicalize the pathname of ld
3504 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
3505 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
3506 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
3507 done
3508 test -z "$LD" && LD="$ac_prog"
3509 ;;
3510 "")
3511 # If it fails, then pretend we aren't using GCC.
3512 ac_prog=ld
3513 ;;
3514 *)
3515 # If it is relative, then search for the first ld in PATH.
3516 with_gnu_ld=unknown
3517 ;;
3518 esac
3519 elif test "$with_gnu_ld" = yes; then
3520 { echo "$as_me:$LINENO: checking for GNU ld" >&5
3521 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6; }
3522 else
3523 { echo "$as_me:$LINENO: checking for non-GNU ld" >&5
3524 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6; }
3525 fi
3526 if test "${lt_cv_path_LD+set}" = set; then
3527 echo $ECHO_N "(cached) $ECHO_C" >&6
3528 else
3529 if test -z "$LD"; then
3530 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3531 for ac_dir in $PATH; do
3532 IFS="$lt_save_ifs"
3533 test -z "$ac_dir" && ac_dir=.
3534 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
3535 lt_cv_path_LD="$ac_dir/$ac_prog"
3536 # Check to see if the program is GNU ld. I'd rather use --version,
3537 # but apparently some variants of GNU ld only accept -v.
3538 # Break only if it was the GNU/non-GNU ld that we prefer.
3539 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
3540 *GNU* | *'with BFD'*)
3541 test "$with_gnu_ld" != no && break
3542 ;;
3543 *)
3544 test "$with_gnu_ld" != yes && break
3545 ;;
3546 esac
3547 fi
3548 done
3549 IFS="$lt_save_ifs"
3550 else
3551 lt_cv_path_LD="$LD" # Let the user override the test with a path.
3552 fi
3553 fi
3554
3555 LD="$lt_cv_path_LD"
3556 if test -n "$LD"; then
3557 { echo "$as_me:$LINENO: result: $LD" >&5
3558 echo "${ECHO_T}$LD" >&6; }
3559 else
3560 { echo "$as_me:$LINENO: result: no" >&5
3561 echo "${ECHO_T}no" >&6; }
3562 fi
3563 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
3564 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
3565 { (exit 1); exit 1; }; }
3566 { echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
3567 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6; }
3568 if test "${lt_cv_prog_gnu_ld+set}" = set; then
3569 echo $ECHO_N "(cached) $ECHO_C" >&6
3570 else
3571 # I'd rather use --version here, but apparently some GNU lds only accept -v.
3572 case `$LD -v 2>&1 </dev/null` in
3573 *GNU* | *'with BFD'*)
3574 lt_cv_prog_gnu_ld=yes
3575 ;;
3576 *)
3577 lt_cv_prog_gnu_ld=no
3578 ;;
3579 esac
3580 fi
3581 { echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
3582 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6; }
3583 with_gnu_ld=$lt_cv_prog_gnu_ld
3584
3585
3586
3587
3588
3589
3590
3591
3592
3593 { echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5
3594 echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6; }
3595 if test "${lt_cv_path_NM+set}" = set; then
3596 echo $ECHO_N "(cached) $ECHO_C" >&6
3597 else
3598 if test -n "$NM"; then
3599 # Let the user override the test.
3600 lt_cv_path_NM="$NM"
3601 else
3602 lt_nm_to_check="${ac_tool_prefix}nm"
3603 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
3604 lt_nm_to_check="$lt_nm_to_check nm"
3605 fi
3606 for lt_tmp_nm in $lt_nm_to_check; do
3607 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
3608 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
3609 IFS="$lt_save_ifs"
3610 test -z "$ac_dir" && ac_dir=.
3611 tmp_nm="$ac_dir/$lt_tmp_nm"
3612 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
3613 # Check to see if the nm accepts a BSD-compat flag.
3614 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
3615 # nm: unknown option "B" ignored
3616 # Tru64's nm complains that /dev/null is an invalid object file
3617 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
3618 */dev/null* | *'Invalid file or object type'*)
3619 lt_cv_path_NM="$tmp_nm -B"
3620 break
3621 ;;
3622 *)
3623 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
3624 */dev/null*)
3625 lt_cv_path_NM="$tmp_nm -p"
3626 break
3627 ;;
3628 *)
3629 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
3630 continue # so that we can try to find one that supports BSD flags
3631 ;;
3632 esac
3633 ;;
3634 esac
3635 fi
3636 done
3637 IFS="$lt_save_ifs"
3638 done
3639 : ${lt_cv_path_NM=no}
3640 fi
3641 fi
3642 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
3643 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
3644 if test "$lt_cv_path_NM" != "no"; then
3645 NM="$lt_cv_path_NM"
3646 else
3647 # Didn't find any BSD compatible name lister, look for dumpbin.
3648 if test -n "$ac_tool_prefix"; then
3649 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3650 do
3651 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3652 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3653 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3654 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3655 if test "${ac_cv_prog_DUMPBIN+set}" = set; then
3656 echo $ECHO_N "(cached) $ECHO_C" >&6
3657 else
3658 if test -n "$DUMPBIN"; then
3659 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
3660 else
3661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3662 for as_dir in $PATH
3663 do
3664 IFS=$as_save_IFS
3665 test -z "$as_dir" && as_dir=.
3666 for ac_exec_ext in '' $ac_executable_extensions; do
3667 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3668 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
3669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3670 break 2
3671 fi
3672 done
3673 done
3674 IFS=$as_save_IFS
3675
3676 fi
3677 fi
3678 DUMPBIN=$ac_cv_prog_DUMPBIN
3679 if test -n "$DUMPBIN"; then
3680 { echo "$as_me:$LINENO: result: $DUMPBIN" >&5
3681 echo "${ECHO_T}$DUMPBIN" >&6; }
3682 else
3683 { echo "$as_me:$LINENO: result: no" >&5
3684 echo "${ECHO_T}no" >&6; }
3685 fi
3686
3687
3688 test -n "$DUMPBIN" && break
3689 done
3690 fi
3691 if test -z "$DUMPBIN"; then
3692 ac_ct_DUMPBIN=$DUMPBIN
3693 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
3694 do
3695 # Extract the first word of "$ac_prog", so it can be a program name with args.
3696 set dummy $ac_prog; ac_word=$2
3697 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3698 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3699 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then
3700 echo $ECHO_N "(cached) $ECHO_C" >&6
3701 else
3702 if test -n "$ac_ct_DUMPBIN"; then
3703 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
3704 else
3705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3706 for as_dir in $PATH
3707 do
3708 IFS=$as_save_IFS
3709 test -z "$as_dir" && as_dir=.
3710 for ac_exec_ext in '' $ac_executable_extensions; do
3711 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3712 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
3713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3715 fi
3716