1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.63 for Wine 1.1.15.
4 #
5 # Report bugs to <wine-devel@winehq.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in
26 *posix*) set -o posix ;;
27 esac
28
29 fi
30
31
32
33
34 # PATH needs CR
35 # Avoid depending upon Character Ranges.
36 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
38 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
39 as_cr_digits='0123456789'
40 as_cr_alnum=$as_cr_Letters$as_cr_digits
41
42 as_nl='
43 '
44 export as_nl
45 # Printing a long string crashes Solaris 7 /usr/bin/printf.
46 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
47 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
48 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
49 if (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52 else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81 fi
82
83 # Support unset when possible.
84 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
85 as_unset=unset
86 else
87 as_unset=false
88 fi
89
90
91 # IFS
92 # We need space, tab and new line, in precisely that order. Quoting is
93 # there to prevent editors from complaining about space-tab.
94 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
95 # splitting by setting IFS to empty value.)
96 IFS=" "" $as_nl"
97
98 # Find who we are. Look in the path if we contain no directory separator.
99 case $0 in
100 *[\\/]* ) as_myself=$0 ;;
101 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
102 for as_dir in $PATH
103 do
104 IFS=$as_save_IFS
105 test -z "$as_dir" && as_dir=.
106 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 done
108 IFS=$as_save_IFS
109
110 ;;
111 esac
112 # We did not find ourselves, most probably we were run as `sh COMMAND'
113 # in which case we are not to be found in the path.
114 if test "x$as_myself" = x; then
115 as_myself=$0
116 fi
117 if test ! -f "$as_myself"; then
118 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
119 { (exit 1); exit 1; }
120 fi
121
122 # Work around bugs in pre-3.0 UWIN ksh.
123 for as_var in ENV MAIL MAILPATH
124 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
125 done
126 PS1='$ '
127 PS2='> '
128 PS4='+ '
129
130 # NLS nuisances.
131 LC_ALL=C
132 export LC_ALL
133 LANGUAGE=C
134 export LANGUAGE
135
136 # Required to use basename.
137 if expr a : '\(a\)' >/dev/null 2>&1 &&
138 test "X`expr 00001 : '.*\(...\)'`" = X001; then
139 as_expr=expr
140 else
141 as_expr=false
142 fi
143
144 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
145 as_basename=basename
146 else
147 as_basename=false
148 fi
149
150
151 # Name of the executable.
152 as_me=`$as_basename -- "$0" ||
153 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
154 X"$0" : 'X\(//\)$' \| \
155 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
156 $as_echo X/"$0" |
157 sed '/^.*\/\([^/][^/]*\)\/*$/{
158 s//\1/
159 q
160 }
161 /^X\/\(\/\/\)$/{
162 s//\1/
163 q
164 }
165 /^X\/\(\/\).*/{
166 s//\1/
167 q
168 }
169 s/.*/./; q'`
170
171 # CDPATH.
172 $as_unset CDPATH
173
174
175 if test "x$CONFIG_SHELL" = x; then
176 if (eval ":") 2>/dev/null; then
177 as_have_required=yes
178 else
179 as_have_required=no
180 fi
181
182 if test $as_have_required = yes && (eval ":
183 (as_func_return () {
184 (exit \$1)
185 }
186 as_func_success () {
187 as_func_return 0
188 }
189 as_func_failure () {
190 as_func_return 1
191 }
192 as_func_ret_success () {
193 return 0
194 }
195 as_func_ret_failure () {
196 return 1
197 }
198
199 exitcode=0
200 if as_func_success; then
201 :
202 else
203 exitcode=1
204 echo as_func_success failed.
205 fi
206
207 if as_func_failure; then
208 exitcode=1
209 echo as_func_failure succeeded.
210 fi
211
212 if as_func_ret_success; then
213 :
214 else
215 exitcode=1
216 echo as_func_ret_success failed.
217 fi
218
219 if as_func_ret_failure; then
220 exitcode=1
221 echo as_func_ret_failure succeeded.
222 fi
223
224 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
225 :
226 else
227 exitcode=1
228 echo positional parameters were not saved.
229 fi
230
231 test \$exitcode = 0) || { (exit 1); exit 1; }
232
233 (
234 as_lineno_1=\$LINENO
235 as_lineno_2=\$LINENO
236 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
237 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
238 ") 2> /dev/null; then
239 :
240 else
241 as_candidate_shells=
242 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
243 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
244 do
245 IFS=$as_save_IFS
246 test -z "$as_dir" && as_dir=.
247 case $as_dir in
248 /*)
249 for as_base in sh bash ksh sh5; do
250 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
251 done;;
252 esac
253 done
254 IFS=$as_save_IFS
255
256
257 for as_shell in $as_candidate_shells $SHELL; do
258 # Try only shells that exist, to save several forks.
259 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
260 { ("$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 # Pre-4.2 versions of Zsh do 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 _ASEOF
278 }; then
279 CONFIG_SHELL=$as_shell
280 as_have_required=yes
281 if { "$as_shell" 2> /dev/null <<\_ASEOF
282 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
283 emulate sh
284 NULLCMD=:
285 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
286 # is contrary to our usage. Disable this feature.
287 alias -g '${1+"$@"}'='"$@"'
288 setopt NO_GLOB_SUBST
289 else
290 case `(set -o) 2>/dev/null` in
291 *posix*) set -o posix ;;
292 esac
293
294 fi
295
296
297 :
298 (as_func_return () {
299 (exit $1)
300 }
301 as_func_success () {
302 as_func_return 0
303 }
304 as_func_failure () {
305 as_func_return 1
306 }
307 as_func_ret_success () {
308 return 0
309 }
310 as_func_ret_failure () {
311 return 1
312 }
313
314 exitcode=0
315 if as_func_success; then
316 :
317 else
318 exitcode=1
319 echo as_func_success failed.
320 fi
321
322 if as_func_failure; then
323 exitcode=1
324 echo as_func_failure succeeded.
325 fi
326
327 if as_func_ret_success; then
328 :
329 else
330 exitcode=1
331 echo as_func_ret_success failed.
332 fi
333
334 if as_func_ret_failure; then
335 exitcode=1
336 echo as_func_ret_failure succeeded.
337 fi
338
339 if ( set x; as_func_ret_success y && test x = "$1" ); then
340 :
341 else
342 exitcode=1
343 echo positional parameters were not saved.
344 fi
345
346 test $exitcode = 0) || { (exit 1); exit 1; }
347
348 (
349 as_lineno_1=$LINENO
350 as_lineno_2=$LINENO
351 test "x$as_lineno_1" != "x$as_lineno_2" &&
352 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
353
354 _ASEOF
355 }; then
356 break
357 fi
358
359 fi
360
361 done
362
363 if test "x$CONFIG_SHELL" != x; then
364 for as_var in BASH_ENV ENV
365 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
366 done
367 export CONFIG_SHELL
368 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
369 fi
370
371
372 if test $as_have_required = no; then
373 echo This script requires a shell more modern than all the
374 echo shells that I found on your system. Please install a
375 echo modern shell, or manually run the script under such a
376 echo shell if you do have one.
377 { (exit 1); exit 1; }
378 fi
379
380
381 fi
382
383 fi
384
385
386
387 (eval "as_func_return () {
388 (exit \$1)
389 }
390 as_func_success () {
391 as_func_return 0
392 }
393 as_func_failure () {
394 as_func_return 1
395 }
396 as_func_ret_success () {
397 return 0
398 }
399 as_func_ret_failure () {
400 return 1
401 }
402
403 exitcode=0
404 if as_func_success; then
405 :
406 else
407 exitcode=1
408 echo as_func_success failed.
409 fi
410
411 if as_func_failure; then
412 exitcode=1
413 echo as_func_failure succeeded.
414 fi
415
416 if as_func_ret_success; then
417 :
418 else
419 exitcode=1
420 echo as_func_ret_success failed.
421 fi
422
423 if as_func_ret_failure; then
424 exitcode=1
425 echo as_func_ret_failure succeeded.
426 fi
427
428 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
429 :
430 else
431 exitcode=1
432 echo positional parameters were not saved.
433 fi
434
435 test \$exitcode = 0") || {
436 echo No shell found that supports shell functions.
437 echo Please tell bug-autoconf@gnu.org about your system,
438 echo including any error possibly output before this message.
439 echo This can help us improve future autoconf versions.
440 echo Configuration will now proceed without shell functions.
441 }
442
443
444
445 as_lineno_1=$LINENO
446 as_lineno_2=$LINENO
447 test "x$as_lineno_1" != "x$as_lineno_2" &&
448 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
449
450 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
451 # uniformly replaced by the line number. The first 'sed' inserts a
452 # line-number line after each line using $LINENO; the second 'sed'
453 # does the real work. The second script uses 'N' to pair each
454 # line-number line with the line containing $LINENO, and appends
455 # trailing '-' during substitution so that $LINENO is not a special
456 # case at line end.
457 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
458 # scripts with optimization help from Paolo Bonzini. Blame Lee
459 # E. McMahon (1931-1989) for sed's syntax. :-)
460 sed -n '
461 p
462 /[$]LINENO/=
463 ' <$as_myself |
464 sed '
465 s/[$]LINENO.*/&-/
466 t lineno
467 b
468 :lineno
469 N
470 :loop
471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
472 t loop
473 s/-\n.*//
474 ' >$as_me.lineno &&
475 chmod +x "$as_me.lineno" ||
476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
477 { (exit 1); exit 1; }; }
478
479 # Don't try to exec as it changes $[0], causing all sort of problems
480 # (the dirname of $[0] is not the place where we might find the
481 # original and so on. Autoconf is especially sensitive to this).
482 . "./$as_me.lineno"
483 # Exit status is that of the last command.
484 exit
485 }
486
487
488 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
489 as_dirname=dirname
490 else
491 as_dirname=false
492 fi
493
494 ECHO_C= ECHO_N= ECHO_T=
495 case `echo -n x` in
496 -n*)
497 case `echo 'x\c'` in
498 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
499 *) ECHO_C='\c';;
500 esac;;
501 *)
502 ECHO_N='-n';;
503 esac
504 if expr a : '\(a\)' >/dev/null 2>&1 &&
505 test "X`expr 00001 : '.*\(...\)'`" = X001; then
506 as_expr=expr
507 else
508 as_expr=false
509 fi
510
511 rm -f conf$$ conf$$.exe conf$$.file
512 if test -d conf$$.dir; then
513 rm -f conf$$.dir/conf$$.file
514 else
515 rm -f conf$$.dir
516 mkdir conf$$.dir 2>/dev/null
517 fi
518 if (echo >conf$$.file) 2>/dev/null; then
519 if ln -s conf$$.file conf$$ 2>/dev/null; then
520 as_ln_s='ln -s'
521 # ... but there are two gotchas:
522 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
523 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
524 # In both cases, we have to default to `cp -p'.
525 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
526 as_ln_s='cp -p'
527 elif ln conf$$.file conf$$ 2>/dev/null; then
528 as_ln_s=ln
529 else
530 as_ln_s='cp -p'
531 fi
532 else
533 as_ln_s='cp -p'
534 fi
535 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
536 rmdir conf$$.dir 2>/dev/null
537
538 if mkdir -p . 2>/dev/null; then
539 as_mkdir_p=:
540 else
541 test -d ./-p && rmdir ./-p
542 as_mkdir_p=false
543 fi
544
545 if test -x / >/dev/null 2>&1; then
546 as_test_x='test -x'
547 else
548 if ls -dL / >/dev/null 2>&1; then
549 as_ls_L_option=L
550 else
551 as_ls_L_option=
552 fi
553 as_test_x='
554 eval sh -c '\''
555 if test -d "$1"; then
556 test -d "$1/.";
557 else
558 case $1 in
559 -*)set "./$1";;
560 esac;
561 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
562 ???[sx]*):;;*)false;;esac;fi
563 '\'' sh
564 '
565 fi
566 as_executable_p=$as_test_x
567
568 # Sed expression to map a string onto a valid CPP name.
569 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
570
571 # Sed expression to map a string onto a valid variable name.
572 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
573
574
575
576 exec 7<&0 </dev/null 6>&1
577
578 # Name of the host.
579 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
580 # so uname gets run too.
581 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
582
583 #
584 # Initializations.
585 #
586 ac_default_prefix=/usr/local
587 ac_clean_files=
588 ac_config_libobj_dir=.
589 LIBOBJS=
590 cross_compiling=no
591 subdirs=
592 MFLAGS=
593 MAKEFLAGS=
594 SHELL=${CONFIG_SHELL-/bin/sh}
595
596 # Identity of this package.
597 PACKAGE_NAME='Wine'
598 PACKAGE_TARNAME='wine'
599 PACKAGE_VERSION='1.1.15'
600 PACKAGE_STRING='Wine 1.1.15'
601 PACKAGE_BUGREPORT='wine-devel@winehq.org'
602
603 ac_unique_file="server/atom.c"
604 # Factoring default headers for most tests.
605 ac_includes_default="\
606 #include <stdio.h>
607 #ifdef HAVE_SYS_TYPES_H
608 # include <sys/types.h>
609 #endif
610 #ifdef HAVE_SYS_STAT_H
611 # include <sys/stat.h>
612 #endif
613 #ifdef STDC_HEADERS
614 # include <stdlib.h>
615 # include <stddef.h>
616 #else
617 # ifdef HAVE_STDLIB_H
618 # include <stdlib.h>
619 # endif
620 #endif
621 #ifdef HAVE_STRING_H
622 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
623 # include <memory.h>
624 # endif
625 # include <string.h>
626 #endif
627 #ifdef HAVE_STRINGS_H
628 # include <strings.h>
629 #endif
630 #ifdef HAVE_INTTYPES_H
631 # include <inttypes.h>
632 #endif
633 #ifdef HAVE_STDINT_H
634 # include <stdint.h>
635 #endif
636 #ifdef HAVE_UNISTD_H
637 # include <unistd.h>
638 #endif"
639
640 ac_subst_vars='LTLIBOBJS
641 LIBOBJS
642 ALL_WINETEST_DEPENDS
643 ALL_PROGRAM_BIN_INSTALL_DIRS
644 ALL_PROGRAM_INSTALL_DIRS
645 ALL_PROGRAM_DIRS
646 ALL_TEST_DIRS
647 ALL_IMPLIB_DIRS
648 ALL_DLL_DIRS
649 ALL_TOP_DIRS
650 ALL_MAKEFILE_DEPENDS
651 ALL_MAKEFILES
652 ALL_MAKERULES
653 DEPENDENCIES
654 LDAPLIBS
655 LIBPOLL
656 LIBDL
657 EXTRA_BINARIES
658 MAIN_BINARY
659 SOCKETLIBS
660 CRTLIBS
661 LDPATH
662 BUILTINFLAG
663 EXTRACFLAGS
664 FONTCONFIGINCL
665 CUPSINCL
666 AUDIOIOLIBS
667 ALSALIBS
668 ESDLIBS
669 ESDINCL
670 ESDCONFIG
671 FREETYPEINCL
672 FREETYPELIBS
673 ft_devel
674 LCMSLIBS
675 RESOLVLIBS
676 GPHOTO2INCL
677 GPHOTO2LIBS
678 gphoto2port_devel
679 gphoto2_devel
680 SANEINCL
681 sane_devel
682 GNUTLSINCL
683 HALINCL
684 XSLTINCL
685 XML2INCL
686 XML2LIBS
687 NASLIBS
688 X_EXTRA_LIBS
689 X_LIBS
690 X_PRE_LIBS
691 X_CFLAGS
692 XMKMF
693 LIBPTHREAD
694 CROSSTEST
695 CROSSWINDRES
696 CROSSCC
697 CARBONLIB
698 COREAUDIO
699 DISKARBITRATIONLIB
700 LDEXECFLAGS
701 IOKITLIB
702 COREFOUNDATIONLIB
703 SECURITYLIB
704 MINGWAR
705 DLLWRAP
706 DLLTOOL
707 LDD
708 LDRPATH_LOCAL
709 LDRPATH_INSTALL
710 IMPLIBEXT
711 LIBEXT
712 LDDLLFLAGS
713 LDSHARED
714 DLLFLAGS
715 DLLEXT
716 CPP
717 OPENGL_LIBS
718 XLIB
719 PRELINK
720 ICOTOOL
721 RSVG
722 PKG_CONFIG
723 FONTFORGE
724 LINTFLAGS
725 LINT
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 LDCONFIG
730 EGREP
731 GREP
732 LN
733 LN_S
734 WINDRES
735 STRIP
736 RANLIB
737 ARFLAGS
738 ac_ct_AR
739 AR
740 ac_ct_NM
741 NM
742 ac_ct_LD
743 LD
744 ac_ct_AS
745 AS
746 BISON
747 FLEX
748 TOOLSDIR
749 WIN16_INSTALL
750 WIN16_FILES
751 TARGETFLAGS
752 CPPBIN
753 ac_ct_CXX
754 CXXFLAGS
755 CXX
756 OBJEXT
757 EXEEXT
758 ac_ct_CC
759 CPPFLAGS
760 LDFLAGS
761 CFLAGS
762 CC
763 SET_MAKE
764 host_os
765 host_vendor
766 host_cpu
767 host
768 build_os
769 build_vendor
770 build_cpu
771 build
772 MAINTAINER_MODE
773 target_alias
774 host_alias
775 build_alias
776 LIBS
777 ECHO_T
778 ECHO_N
779 ECHO_C
780 DEFS
781 mandir
782 localedir
783 libdir
784 psdir
785 pdfdir
786 dvidir
787 htmldir
788 infodir
789 docdir
790 oldincludedir
791 includedir
792 localstatedir
793 sharedstatedir
794 sysconfdir
795 datadir
796 datarootdir
797 libexecdir
798 sbindir
799 bindir
800 program_transform_name
801 prefix
802 exec_prefix
803 PACKAGE_BUGREPORT
804 PACKAGE_STRING
805 PACKAGE_VERSION
806 PACKAGE_TARNAME
807 PACKAGE_NAME
808 PATH_SEPARATOR
809 SHELL'
810 ac_subst_files='MAKE_RULES
811 MAKE_DLL_RULES
812 MAKE_IMPLIB_RULES
813 MAKE_TEST_RULES
814 MAKE_PROG_RULES'
815 ac_user_opts='
816 enable_option_checking
817 enable_win16
818 enable_win64
819 enable_tests
820 enable_maintainer_mode
821 with_alsa
822 with_audioio
823 with_capi
824 with_cms
825 with_coreaudio
826 with_cups
827 with_curses
828 with_esd
829 with_fontconfig
830 with_freetype
831 with_gphoto
832 with_glu
833 with_gnutls
834 with_hal
835 with_jack
836 with_jpeg
837 with_ldap
838 with_nas
839 with_opengl
840 with_openssl
841 with_oss
842 with_png
843 with_pthread
844 with_sane
845 with_xcomposite
846 with_xcursor
847 with_xinerama
848 with_xinput
849 with_xml
850 with_xrandr
851 with_xrender
852 with_xshape
853 with_xshm
854 with_xslt
855 with_xxf86vm
856 with_wine_tools
857 with_x
858 '
859 ac_precious_vars='build_alias
860 host_alias
861 target_alias
862 CC
863 CFLAGS
864 LDFLAGS
865 LIBS
866 CPPFLAGS
867 CXX
868 CXXFLAGS
869 CCC
870 CPP
871 XMKMF'
872
873
874 # Initialize some variables set by options.
875 ac_init_help=
876 ac_init_version=false
877 ac_unrecognized_opts=
878 ac_unrecognized_sep=
879 # The variables have the same names as the options, with
880 # dashes changed to underlines.
881 cache_file=/dev/null
882 exec_prefix=NONE
883 no_create=
884 no_recursion=
885 prefix=NONE
886 program_prefix=NONE
887 program_suffix=NONE
888 program_transform_name=s,x,x,
889 silent=
890 site=
891 srcdir=
892 verbose=
893 x_includes=NONE
894 x_libraries=NONE
895
896 # Installation directory options.
897 # These are left unexpanded so users can "make install exec_prefix=/foo"
898 # and all the variables that are supposed to be based on exec_prefix
899 # by default will actually change.
900 # Use braces instead of parens because sh, perl, etc. also accept them.
901 # (The list follows the same order as the GNU Coding Standards.)
902 bindir='${exec_prefix}/bin'
903 sbindir='${exec_prefix}/sbin'
904 libexecdir='${exec_prefix}/libexec'
905 datarootdir='${prefix}/share'
906 datadir='${datarootdir}'
907 sysconfdir='${prefix}/etc'
908 sharedstatedir='${prefix}/com'
909 localstatedir='${prefix}/var'
910 includedir='${prefix}/include'
911 oldincludedir='/usr/include'
912 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
913 infodir='${datarootdir}/info'
914 htmldir='${docdir}'
915 dvidir='${docdir}'
916 pdfdir='${docdir}'
917 psdir='${docdir}'
918 libdir='${exec_prefix}/lib'
919 localedir='${datarootdir}/locale'
920 mandir='${datarootdir}/man'
921
922 ac_prev=
923 ac_dashdash=
924 for ac_option
925 do
926 # If the previous option needs an argument, assign it.
927 if test -n "$ac_prev"; then
928 eval $ac_prev=\$ac_option
929 ac_prev=
930 continue
931 fi
932
933 case $ac_option in
934 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
935 *) ac_optarg=yes ;;
936 esac
937
938 # Accept the important Cygnus configure options, so we can diagnose typos.
939
940 case $ac_dashdash$ac_option in
941 --)
942 ac_dashdash=yes ;;
943
944 -bindir | --bindir | --bindi | --bind | --bin | --bi)
945 ac_prev=bindir ;;
946 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
947 bindir=$ac_optarg ;;
948
949 -build | --build | --buil | --bui | --bu)
950 ac_prev=build_alias ;;
951 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
952 build_alias=$ac_optarg ;;
953
954 -cache-file | --cache-file | --cache-fil | --cache-fi \
955 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
956 ac_prev=cache_file ;;
957 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
958 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
959 cache_file=$ac_optarg ;;
960
961 --config-cache | -C)
962 cache_file=config.cache ;;
963
964 -datadir | --datadir | --datadi | --datad)
965 ac_prev=datadir ;;
966 -datadir=* | --datadir=* | --datadi=* | --datad=*)
967 datadir=$ac_optarg ;;
968
969 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
970 | --dataroo | --dataro | --datar)
971 ac_prev=datarootdir ;;
972 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
973 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
974 datarootdir=$ac_optarg ;;
975
976 -disable-* | --disable-*)
977 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
978 # Reject names that are not valid shell variable names.
979 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
980 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
981 { (exit 1); exit 1; }; }
982 ac_useropt_orig=$ac_useropt
983 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
984 case $ac_user_opts in
985 *"
986 "enable_$ac_useropt"
987 "*) ;;
988 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
989 ac_unrecognized_sep=', ';;
990 esac
991 eval enable_$ac_useropt=no ;;
992
993 -docdir | --docdir | --docdi | --doc | --do)
994 ac_prev=docdir ;;
995 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
996 docdir=$ac_optarg ;;
997
998 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
999 ac_prev=dvidir ;;
1000 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1001 dvidir=$ac_optarg ;;
1002
1003 -enable-* | --enable-*)
1004 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1005 # Reject names that are not valid shell variable names.
1006 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1007 { $as_echo "$as_me: error: invalid feature name: $ac_useropt" >&2
1008 { (exit 1); exit 1; }; }
1009 ac_useropt_orig=$ac_useropt
1010 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1011 case $ac_user_opts in
1012 *"
1013 "enable_$ac_useropt"
1014 "*) ;;
1015 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1016 ac_unrecognized_sep=', ';;
1017 esac
1018 eval enable_$ac_useropt=\$ac_optarg ;;
1019
1020 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1021 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1022 | --exec | --exe | --ex)
1023 ac_prev=exec_prefix ;;
1024 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1025 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1026 | --exec=* | --exe=* | --ex=*)
1027 exec_prefix=$ac_optarg ;;
1028
1029 -gas | --gas | --ga | --g)
1030 # Obsolete; use --with-gas.
1031 with_gas=yes ;;
1032
1033 -help | --help | --hel | --he | -h)
1034 ac_init_help=long ;;
1035 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1036 ac_init_help=recursive ;;
1037 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1038 ac_init_help=short ;;
1039
1040 -host | --host | --hos | --ho)
1041 ac_prev=host_alias ;;
1042 -host=* | --host=* | --hos=* | --ho=*)
1043 host_alias=$ac_optarg ;;
1044
1045 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1046 ac_prev=htmldir ;;
1047 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1048 | --ht=*)
1049 htmldir=$ac_optarg ;;
1050
1051 -includedir | --includedir | --includedi | --included | --include \
1052 | --includ | --inclu | --incl | --inc)
1053 ac_prev=includedir ;;
1054 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1055 | --includ=* | --inclu=* | --incl=* | --inc=*)
1056 includedir=$ac_optarg ;;
1057
1058 -infodir | --infodir | --infodi | --infod | --info | --inf)
1059 ac_prev=infodir ;;
1060 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1061 infodir=$ac_optarg ;;
1062
1063 -libdir | --libdir | --libdi | --libd)
1064 ac_prev=libdir ;;
1065 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1066 libdir=$ac_optarg ;;
1067
1068 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1069 | --libexe | --libex | --libe)
1070 ac_prev=libexecdir ;;
1071 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1072 | --libexe=* | --libex=* | --libe=*)
1073 libexecdir=$ac_optarg ;;
1074
1075 -localedir | --localedir | --localedi | --localed | --locale)
1076 ac_prev=localedir ;;
1077 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1078 localedir=$ac_optarg ;;
1079
1080 -localstatedir | --localstatedir | --localstatedi | --localstated \
1081 | --localstate | --localstat | --localsta | --localst | --locals)
1082 ac_prev=localstatedir ;;
1083 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1084 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1085 localstatedir=$ac_optarg ;;
1086
1087 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1088 ac_prev=mandir ;;
1089 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1090 mandir=$ac_optarg ;;
1091
1092 -nfp | --nfp | --nf)
1093 # Obsolete; use --without-fp.
1094 with_fp=no ;;
1095
1096 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1097 | --no-cr | --no-c | -n)
1098 no_create=yes ;;
1099
1100 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1101 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1102 no_recursion=yes ;;
1103
1104 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1105 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1106 | --oldin | --oldi | --old | --ol | --o)
1107 ac_prev=oldincludedir ;;
1108 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1109 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1110 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1111 oldincludedir=$ac_optarg ;;
1112
1113 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1114 ac_prev=prefix ;;
1115 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1116 prefix=$ac_optarg ;;
1117
1118 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1119 | --program-pre | --program-pr | --program-p)
1120 ac_prev=program_prefix ;;
1121 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1122 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1123 program_prefix=$ac_optarg ;;
1124
1125 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1126 | --program-suf | --program-su | --program-s)
1127 ac_prev=program_suffix ;;
1128 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1129 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1130 program_suffix=$ac_optarg ;;
1131
1132 -program-transform-name | --program-transform-name \
1133 | --program-transform-nam | --program-transform-na \
1134 | --program-transform-n | --program-transform- \
1135 | --program-transform | --program-transfor \
1136 | --program-transfo | --program-transf \
1137 | --program-trans | --program-tran \
1138 | --progr-tra | --program-tr | --program-t)
1139 ac_prev=program_transform_name ;;
1140 -program-transform-name=* | --program-transform-name=* \
1141 | --program-transform-nam=* | --program-transform-na=* \
1142 | --program-transform-n=* | --program-transform-=* \
1143 | --program-transform=* | --program-transfor=* \
1144 | --program-transfo=* | --program-transf=* \
1145 | --program-trans=* | --program-tran=* \
1146 | --progr-tra=* | --program-tr=* | --program-t=*)
1147 program_transform_name=$ac_optarg ;;
1148
1149 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1150 ac_prev=pdfdir ;;
1151 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1152 pdfdir=$ac_optarg ;;
1153
1154 -psdir | --psdir | --psdi | --psd | --ps)
1155 ac_prev=psdir ;;
1156 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1157 psdir=$ac_optarg ;;
1158
1159 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1160 | -silent | --silent | --silen | --sile | --sil)
1161 silent=yes ;;
1162
1163 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1164 ac_prev=sbindir ;;
1165 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1166 | --sbi=* | --sb=*)
1167 sbindir=$ac_optarg ;;
1168
1169 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1170 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1171 | --sharedst | --shareds | --shared | --share | --shar \
1172 | --sha | --sh)
1173 ac_prev=sharedstatedir ;;
1174 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1175 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1176 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1177 | --sha=* | --sh=*)
1178 sharedstatedir=$ac_optarg ;;
1179
1180 -site | --site | --sit)
1181 ac_prev=site ;;
1182 -site=* | --site=* | --sit=*)
1183 site=$ac_optarg ;;
1184
1185 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1186 ac_prev=srcdir ;;
1187 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1188 srcdir=$ac_optarg ;;
1189
1190 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1191 | --syscon | --sysco | --sysc | --sys | --sy)
1192 ac_prev=sysconfdir ;;
1193 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1194 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1195 sysconfdir=$ac_optarg ;;
1196
1197 -target | --target | --targe | --targ | --tar | --ta | --t)
1198 ac_prev=target_alias ;;
1199 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1200 target_alias=$ac_optarg ;;
1201
1202 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1203 verbose=yes ;;
1204
1205 -version | --version | --versio | --versi | --vers | -V)
1206 ac_init_version=: ;;
1207
1208 -with-* | --with-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1213 { (exit 1); exit 1; }; }
1214 ac_useropt_orig=$ac_useropt
1215 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216 case $ac_user_opts in
1217 *"
1218 "with_$ac_useropt"
1219 "*) ;;
1220 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1221 ac_unrecognized_sep=', ';;
1222 esac
1223 eval with_$ac_useropt=\$ac_optarg ;;
1224
1225 -without-* | --without-*)
1226 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1227 # Reject names that are not valid shell variable names.
1228 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1229 { $as_echo "$as_me: error: invalid package name: $ac_useropt" >&2
1230 { (exit 1); exit 1; }; }
1231 ac_useropt_orig=$ac_useropt
1232 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1233 case $ac_user_opts in
1234 *"
1235 "with_$ac_useropt"
1236 "*) ;;
1237 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1238 ac_unrecognized_sep=', ';;
1239 esac
1240 eval with_$ac_useropt=no ;;
1241
1242 --x)
1243 # Obsolete; use --with-x.
1244 with_x=yes ;;
1245
1246 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1247 | --x-incl | --x-inc | --x-in | --x-i)
1248 ac_prev=x_includes ;;
1249 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1250 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1251 x_includes=$ac_optarg ;;
1252
1253 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1254 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1255 ac_prev=x_libraries ;;
1256 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1257 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1258 x_libraries=$ac_optarg ;;
1259
1260 -*) { $as_echo "$as_me: error: unrecognized option: $ac_option
1261 Try \`$0 --help' for more information." >&2
1262 { (exit 1); exit 1; }; }
1263 ;;
1264
1265 *=*)
1266 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1267 # Reject names that are not valid shell variable names.
1268 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1269 { $as_echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1270 { (exit 1); exit 1; }; }
1271 eval $ac_envvar=\$ac_optarg
1272 export $ac_envvar ;;
1273
1274 *)
1275 # FIXME: should be removed in autoconf 3.0.
1276 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1277 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1278 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1279 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1280 ;;
1281
1282 esac
1283 done
1284
1285 if test -n "$ac_prev"; then
1286 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1287 { $as_echo "$as_me: error: missing argument to $ac_option" >&2
1288 { (exit 1); exit 1; }; }
1289 fi
1290
1291 if test -n "$ac_unrecognized_opts"; then
1292 case $enable_option_checking in
1293 no) ;;
1294 fatal) { $as_echo "$as_me: error: unrecognized options: $ac_unrecognized_opts" >&2
1295 { (exit 1); exit 1; }; } ;;
1296 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1297 esac
1298 fi
1299
1300 # Check all directory arguments for consistency.
1301 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1302 datadir sysconfdir sharedstatedir localstatedir includedir \
1303 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1304 libdir localedir mandir
1305 do
1306 eval ac_val=\$$ac_var
1307 # Remove trailing slashes.
1308 case $ac_val in
1309 */ )
1310 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1311 eval $ac_var=\$ac_val;;
1312 esac
1313 # Be sure to have absolute directory names.
1314 case $ac_val in
1315 [\\/$]* | ?:[\\/]* ) continue;;
1316 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1317 esac
1318 { $as_echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1319 { (exit 1); exit 1; }; }
1320 done
1321
1322 # There might be people who depend on the old broken behavior: `$host'
1323 # used to hold the argument of --host etc.
1324 # FIXME: To remove some day.
1325 build=$build_alias
1326 host=$host_alias
1327 target=$target_alias
1328
1329 # FIXME: To remove some day.
1330 if test "x$host_alias" != x; then
1331 if test "x$build_alias" = x; then
1332 cross_compiling=maybe
1333 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1334 If a cross compiler is detected then cross compile mode will be used." >&2
1335 elif test "x$build_alias" != "x$host_alias"; then
1336 cross_compiling=yes
1337 fi
1338 fi
1339
1340 ac_tool_prefix=
1341 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1342
1343 test "$silent" = yes && exec 6>/dev/null
1344
1345
1346 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1347 ac_ls_di=`ls -di .` &&
1348 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1349 { $as_echo "$as_me: error: working directory cannot be determined" >&2
1350 { (exit 1); exit 1; }; }
1351 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1352 { $as_echo "$as_me: error: pwd does not report name of working directory" >&2
1353 { (exit 1); exit 1; }; }
1354
1355
1356 # Find the source files, if location was not specified.
1357 if test -z "$srcdir"; then
1358 ac_srcdir_defaulted=yes
1359 # Try the directory containing this script, then the parent directory.
1360 ac_confdir=`$as_dirname -- "$as_myself" ||
1361 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1362 X"$as_myself" : 'X\(//\)[^/]' \| \
1363 X"$as_myself" : 'X\(//\)$' \| \
1364 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1365 $as_echo X"$as_myself" |
1366 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1367 s//\1/
1368 q
1369 }
1370 /^X\(\/\/\)[^/].*/{
1371 s//\1/
1372 q
1373 }
1374 /^X\(\/\/\)$/{
1375 s//\1/
1376 q
1377 }
1378 /^X\(\/\).*/{
1379 s//\1/
1380 q
1381 }
1382 s/.*/./; q'`
1383 srcdir=$ac_confdir
1384 if test ! -r "$srcdir/$ac_unique_file"; then
1385 srcdir=..
1386 fi
1387 else
1388 ac_srcdir_defaulted=no
1389 fi
1390 if test ! -r "$srcdir/$ac_unique_file"; then
1391 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1392 { $as_echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1393 { (exit 1); exit 1; }; }
1394 fi
1395 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1396 ac_abs_confdir=`(
1397 cd "$srcdir" && test -r "./$ac_unique_file" || { $as_echo "$as_me: error: $ac_msg" >&2
1398 { (exit 1); exit 1; }; }
1399 pwd)`
1400 # When building in place, set srcdir=.
1401 if test "$ac_abs_confdir" = "$ac_pwd"; then
1402 srcdir=.
1403 fi
1404 # Remove unnecessary trailing slashes from srcdir.
1405 # Double slashes in file names in object file debugging info
1406 # mess up M-x gdb in Emacs.
1407 case $srcdir in
1408 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1409 esac
1410 for ac_var in $ac_precious_vars; do
1411 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1412 eval ac_env_${ac_var}_value=\$${ac_var}
1413 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1414 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1415 done
1416
1417 #
1418 # Report the --help message.
1419 #
1420 if test "$ac_init_help" = "long"; then
1421 # Omit some internal or obsolete options to make the list less imposing.
1422 # This message is too long to be a string in the A/UX 3.1 sh.
1423 cat <<_ACEOF
1424 \`configure' configures Wine 1.1.15 to adapt to many kinds of systems.
1425
1426 Usage: $0 [OPTION]... [VAR=VALUE]...
1427
1428 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1429 VAR=VALUE. See below for descriptions of some of the useful variables.
1430
1431 Defaults for the options are specified in brackets.
1432
1433 Configuration:
1434 -h, --help display this help and exit
1435 --help=short display options specific to this package
1436 --help=recursive display the short help of all the included packages
1437 -V, --version display version information and exit
1438 -q, --quiet, --silent do not print \`checking...' messages
1439 --cache-file=FILE cache test results in FILE [disabled]
1440 -C, --config-cache alias for \`--cache-file=config.cache'
1441 -n, --no-create do not create output files
1442 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1443
1444 Installation directories:
1445 --prefix=PREFIX install architecture-independent files in PREFIX
1446 [$ac_default_prefix]
1447 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1448 [PREFIX]
1449
1450 By default, \`make install' will install all the files in
1451 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1452 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1453 for instance \`--prefix=\$HOME'.
1454
1455 For better control, use the options below.
1456
1457 Fine tuning of the installation directories:
1458 --bindir=DIR user executables [EPREFIX/bin]
1459 --sbindir=DIR system admin executables [EPREFIX/sbin]
1460 --libexecdir=DIR program executables [EPREFIX/libexec]
1461 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1462 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1463 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1464 --libdir=DIR object code libraries [EPREFIX/lib]
1465 --includedir=DIR C header files [PREFIX/include]
1466 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1467 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1468 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1469 --infodir=DIR info documentation [DATAROOTDIR/info]
1470 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1471 --mandir=DIR man documentation [DATAROOTDIR/man]
1472 --docdir=DIR documentation root [DATAROOTDIR/doc/wine]
1473 --htmldir=DIR html documentation [DOCDIR]
1474 --dvidir=DIR dvi documentation [DOCDIR]
1475 --pdfdir=DIR pdf documentation [DOCDIR]
1476 --psdir=DIR ps documentation [DOCDIR]
1477 _ACEOF
1478
1479 cat <<\_ACEOF
1480
1481 X features:
1482 --x-includes=DIR X include files are in DIR
1483 --x-libraries=DIR X library files are in DIR
1484
1485 System types:
1486 --build=BUILD configure for building on BUILD [guessed]
1487 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1488 _ACEOF
1489 fi
1490
1491 if test -n "$ac_init_help"; then
1492 case $ac_init_help in
1493 short | recursive ) echo "Configuration of Wine 1.1.15:";;
1494 esac
1495 cat <<\_ACEOF
1496
1497 Optional Features:
1498 --disable-option-checking ignore unrecognized --enable/--with options
1499 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1500 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1501 --disable-win16 do not include Win16 support
1502 --enable-win64 build a Win64 emulator on AMD64 (won't run Win32
1503 binaries)
1504 --disable-tests do not build the regression tests
1505 --enable-maintainer-mode
1506 enable maintainer-specific build rules
1507
1508 Optional Packages:
1509 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1510 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1511 --without-alsa do not use the Alsa sound support
1512 --without-audioio do not use the AudioIO sound support
1513 --without-capi do not use CAPI (ISDN support)
1514 --without-cms do not use CMS (color management support)
1515 --without-coreaudio do not use the CoreAudio sound support
1516 --without-cups do not use CUPS
1517 --without-curses do not use (n)curses
1518 --without-esd do not use the EsounD sound support
1519 --without-fontconfig do not use fontconfig
1520 --without-freetype do not use the FreeType library
1521 --without-gphoto do not use gphoto (Digital Camera support)
1522 --without-glu do not use the GLU library
1523 --without-gnutls do not use GnuTLS (schannel support)
1524 --without-hal do not use HAL (dynamic device support)
1525 --without-jack do not use the Jack sound support
1526 --without-jpeg do not use JPEG
1527 --without-ldap do not use LDAP
1528 --without-nas do not use the NAS sound support
1529 --without-opengl do not use OpenGL
1530 --without-openssl do not use OpenSSL
1531 --without-oss do not use the OSS sound support
1532 --without-png do not use PNG
1533 --without-pthread do not use the pthread library
1534 --without-sane do not use SANE (scanner support)
1535 --without-xcomposite do not use the Xcomposite extension
1536 --without-xcursor do not use the Xcursor extension
1537 --without-xinerama do not use Xinerama (multi-monitor support)
1538 --without-xinput do not use the Xinput extension
1539 --without-xml do not use XML
1540 --without-xrandr do not use Xrandr (resolution changes)
1541 --without-xrender do not use the Xrender extension
1542 --without-xshape do not use the Xshape extension
1543 --without-xshm do not use XShm (shared memory extension)
1544 --without-xslt do not use XSLT
1545 --without-xxf86vm do not use XFree video mode extension
1546 --with-wine-tools=DIR use Wine tools from directory DIR
1547 --with-x use the X Window System
1548
1549 Some influential environment variables:
1550 CC C compiler command
1551 CFLAGS C compiler flags
1552 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1553 nonstandard directory <lib dir>
1554 LIBS libraries to pass to the linker, e.g. -l<library>
1555 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1556 you have headers in a nonstandard directory <include dir>
1557 CXX C++ compiler command
1558 CXXFLAGS C++ compiler flags
1559 CPP C preprocessor
1560 XMKMF Path to xmkmf, Makefile generator for X Window System
1561
1562 Use these variables to override the choices made by `configure' or to help
1563 it to find libraries and programs with nonstandard names/locations.
1564
1565 Report bugs to <wine-devel@winehq.org>.
1566 _ACEOF
1567 ac_status=$?
1568 fi
1569
1570 if test "$ac_init_help" = "recursive"; then
1571 # If there are subdirs, report their specific --help.
1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1573 test -d "$ac_dir" ||
1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1575 continue
1576 ac_builddir=.
1577
1578 case "$ac_dir" in
1579 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1580 *)
1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1582 # A ".." for each directory in $ac_dir_suffix.
1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1584 case $ac_top_builddir_sub in
1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1587 esac ;;
1588 esac
1589 ac_abs_top_builddir=$ac_pwd
1590 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1591 # for backward compatibility:
1592 ac_top_builddir=$ac_top_build_prefix
1593
1594 case $srcdir in
1595 .) # We are building in place.
1596 ac_srcdir=.
1597 ac_top_srcdir=$ac_top_builddir_sub
1598 ac_abs_top_srcdir=$ac_pwd ;;
1599 [\\/]* | ?:[\\/]* ) # Absolute name.
1600 ac_srcdir=$srcdir$ac_dir_suffix;
1601 ac_top_srcdir=$srcdir
1602 ac_abs_top_srcdir=$srcdir ;;
1603 *) # Relative name.
1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1605 ac_top_srcdir=$ac_top_build_prefix$srcdir
1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1607 esac
1608 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1609
1610 cd "$ac_dir" || { ac_status=$?; continue; }
1611 # Check for guested configure.
1612 if test -f "$ac_srcdir/configure.gnu"; then
1613 echo &&
1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1615 elif test -f "$ac_srcdir/configure"; then
1616 echo &&
1617 $SHELL "$ac_srcdir/configure" --help=recursive
1618 else
1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1620 fi || ac_status=$?
1621 cd "$ac_pwd" || { ac_status=$?; break; }
1622 done
1623 fi
1624
1625 test -n "$ac_init_help" && exit $ac_status
1626 if $ac_init_version; then
1627 cat <<\_ACEOF
1628 Wine configure 1.1.15
1629 generated by GNU Autoconf 2.63
1630
1631 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1632 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
1633 This configure script is free software; the Free Software Foundation
1634 gives unlimited permission to copy, distribute and modify it.
1635 _ACEOF
1636 exit
1637 fi
1638 cat >config.log <<_ACEOF
1639 This file contains any messages produced by compilers while
1640 running configure, to aid debugging if configure makes a mistake.
1641
1642 It was created by Wine $as_me 1.1.15, which was
1643 generated by GNU Autoconf 2.63. Invocation command line was
1644
1645 $ $0 $@
1646
1647 _ACEOF
1648 exec 5>>config.log
1649 {
1650 cat <<_ASUNAME
1651 ## --------- ##
1652 ## Platform. ##
1653 ## --------- ##
1654
1655 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1656 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1657 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1658 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1659 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1660
1661 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1662 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1663
1664 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1665 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1666 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1667 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1668 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1669 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1670 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1671
1672 _ASUNAME
1673
1674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1675 for as_dir in $PATH
1676 do
1677 IFS=$as_save_IFS
1678 test -z "$as_dir" && as_dir=.
1679 $as_echo "PATH: $as_dir"
1680 done
1681 IFS=$as_save_IFS
1682
1683 } >&5
1684
1685 cat >&5 <<_ACEOF
1686
1687
1688 ## ----------- ##
1689 ## Core tests. ##
1690 ## ----------- ##
1691
1692 _ACEOF
1693
1694
1695 # Keep a trace of the command line.
1696 # Strip out --no-create and --no-recursion so they do not pile up.
1697 # Strip out --silent because we don't want to record it for future runs.
1698 # Also quote any args containing shell meta-characters.
1699 # Make two passes to allow for proper duplicate-argument suppression.
1700 ac_configure_args=
1701 ac_configure_args0=
1702 ac_configure_args1=
1703 ac_must_keep_next=false
1704 for ac_pass in 1 2
1705 do
1706 for ac_arg
1707 do
1708 case $ac_arg in
1709 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1710 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1711 | -silent | --silent | --silen | --sile | --sil)
1712 continue ;;
1713 *\'*)
1714 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1715 esac
1716 case $ac_pass in
1717 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1718 2)
1719 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1720 if test $ac_must_keep_next = true; then
1721 ac_must_keep_next=false # Got value, back to normal.
1722 else
1723 case $ac_arg in
1724 *=* | --config-cache | -C | -disable-* | --disable-* \
1725 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1726 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1727 | -with-* | --with-* | -without-* | --without-* | --x)
1728 case "$ac_configure_args0 " in
1729 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1730 esac
1731 ;;
1732 -* ) ac_must_keep_next=true ;;
1733 esac
1734 fi
1735 ac_configure_args="$ac_configure_args '$ac_arg'"
1736 ;;
1737 esac
1738 done
1739 done
1740 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1741 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1742
1743 # When interrupted or exit'd, cleanup temporary files, and complete
1744 # config.log. We remove comments because anyway the quotes in there
1745 # would cause problems or look ugly.
1746 # WARNING: Use '\'' to represent an apostrophe within the trap.
1747 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1748 trap 'exit_status=$?
1749 # Save into config.log some information that might help in debugging.
1750 {
1751 echo
1752
1753 cat <<\_ASBOX
1754 ## ---------------- ##
1755 ## Cache variables. ##
1756 ## ---------------- ##
1757 _ASBOX
1758 echo
1759 # The following way of writing the cache mishandles newlines in values,
1760 (
1761 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1762 eval ac_val=\$$ac_var
1763 case $ac_val in #(
1764 *${as_nl}*)
1765 case $ac_var in #(
1766 *_cv_*) { $as_echo "$as_me:$LINENO: WARNING: cache variable $ac_var contains a newline" >&5
1767 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1768 esac
1769 case $ac_var in #(
1770 _ | IFS | as_nl) ;; #(
1771 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1772 *) $as_unset $ac_var ;;
1773 esac ;;
1774 esac
1775 done
1776 (set) 2>&1 |
1777 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1778 *${as_nl}ac_space=\ *)
1779 sed -n \
1780 "s/'\''/'\''\\\\'\'''\''/g;
1781 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1782 ;; #(
1783 *)
1784 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1785 ;;
1786 esac |
1787 sort
1788 )
1789 echo
1790
1791 cat <<\_ASBOX
1792 ## ----------------- ##
1793 ## Output variables. ##
1794 ## ----------------- ##
1795 _ASBOX
1796 echo
1797 for ac_var in $ac_subst_vars
1798 do
1799 eval ac_val=\$$ac_var
1800 case $ac_val in
1801 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1802 esac
1803 $as_echo "$ac_var='\''$ac_val'\''"
1804 done | sort
1805 echo
1806
1807 if test -n "$ac_subst_files"; then
1808 cat <<\_ASBOX
1809 ## ------------------- ##
1810 ## File substitutions. ##
1811 ## ------------------- ##
1812 _ASBOX
1813 echo
1814 for ac_var in $ac_subst_files
1815 do
1816 eval ac_val=\$$ac_var
1817 case $ac_val in
1818 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1819 esac
1820 $as_echo "$ac_var='\''$ac_val'\''"
1821 done | sort
1822 echo
1823 fi
1824
1825 if test -s confdefs.h; then
1826 cat <<\_ASBOX
1827 ## ----------- ##
1828 ## confdefs.h. ##
1829 ## ----------- ##
1830 _ASBOX
1831 echo
1832 cat confdefs.h
1833 echo
1834 fi
1835 test "$ac_signal" != 0 &&
1836 $as_echo "$as_me: caught signal $ac_signal"
1837 $as_echo "$as_me: exit $exit_status"
1838 } >&5
1839 rm -f core *.core core.conftest.* &&
1840 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1841 exit $exit_status
1842 ' 0
1843 for ac_signal in 1 2 13 15; do
1844 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1845 done
1846 ac_signal=0
1847
1848 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1849 rm -f -r conftest* confdefs.h
1850
1851 # Predefined preprocessor variables.
1852
1853 cat >>confdefs.h <<_ACEOF
1854 #define PACKAGE_NAME "$PACKAGE_NAME"
1855 _ACEOF
1856
1857
1858 cat >>confdefs.h <<_ACEOF
1859 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1860 _ACEOF
1861
1862
1863 cat >>confdefs.h <<_ACEOF
1864 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1865 _ACEOF
1866
1867
1868 cat >>confdefs.h <<_ACEOF
1869 #define PACKAGE_STRING "$PACKAGE_STRING"
1870 _ACEOF
1871
1872
1873 cat >>confdefs.h <<_ACEOF
1874 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1875 _ACEOF
1876
1877
1878 # Let the site file select an alternate cache file if it wants to.
1879 # Prefer an explicitly selected file to automatically selected ones.
1880 ac_site_file1=NONE
1881 ac_site_file2=NONE
1882 if test -n "$CONFIG_SITE"; then
1883 ac_site_file1=$CONFIG_SITE
1884 elif test "x$prefix" != xNONE; then
1885 ac_site_file1=$prefix/share/config.site
1886 ac_site_file2=$prefix/etc/config.site
1887 else
1888 ac_site_file1=$ac_default_prefix/share/config.site
1889 ac_site_file2=$ac_default_prefix/etc/config.site
1890 fi
1891 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1892 do
1893 test "x$ac_site_file" = xNONE && continue
1894 if test -r "$ac_site_file"; then
1895 { $as_echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1896 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1897 sed 's/^/| /' "$ac_site_file" >&5
1898 . "$ac_site_file"
1899 fi
1900 done
1901
1902 if test -r "$cache_file"; then
1903 # Some versions of bash will fail to source /dev/null (special
1904 # files actually), so we avoid doing that.
1905 if test -f "$cache_file"; then
1906 { $as_echo "$as_me:$LINENO: loading cache $cache_file" >&5
1907 $as_echo "$as_me: loading cache $cache_file" >&6;}
1908 case $cache_file in
1909 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1910 *) . "./$cache_file";;
1911 esac
1912 fi
1913 else
1914 { $as_echo "$as_me:$LINENO: creating cache $cache_file" >&5
1915 $as_echo "$as_me: creating cache $cache_file" >&6;}
1916 >$cache_file
1917 fi
1918
1919 # Check that the precious variables saved in the cache have kept the same
1920 # value.
1921 ac_cache_corrupted=false
1922 for ac_var in $ac_precious_vars; do
1923 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1924 eval ac_new_set=\$ac_env_${ac_var}_set
1925 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1926 eval ac_new_val=\$ac_env_${ac_var}_value
1927 case $ac_old_set,$ac_new_set in
1928 set,)
1929 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1930 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1931 ac_cache_corrupted=: ;;
1932 ,set)
1933 { $as_echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1934 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1935 ac_cache_corrupted=: ;;
1936 ,);;
1937 *)
1938 if test "x$ac_old_val" != "x$ac_new_val"; then
1939 # differences in whitespace do not lead to failure.
1940 ac_old_val_w=`echo x $ac_old_val`
1941 ac_new_val_w=`echo x $ac_new_val`
1942 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1943 { $as_echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1944 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1945 ac_cache_corrupted=:
1946 else
1947 { $as_echo "$as_me:$LINENO: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
1948 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
1949 eval $ac_var=\$ac_old_val
1950 fi
1951 { $as_echo "$as_me:$LINENO: former value: \`$ac_old_val'" >&5
1952 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
1953 { $as_echo "$as_me:$LINENO: current value: \`$ac_new_val'" >&5
1954 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
1955 fi;;
1956 esac
1957 # Pass precious variables to config.status.
1958 if test "$ac_new_set" = set; then
1959 case $ac_new_val in
1960 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1961 *) ac_arg=$ac_var=$ac_new_val ;;
1962 esac
1963 case " $ac_configure_args " in
1964 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1965 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1966 esac
1967 fi
1968 done
1969 if $ac_cache_corrupted; then
1970 { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
1971 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1972 { $as_echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1973 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1974 { { $as_echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1975 $as_echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1976 { (exit 1); exit 1; }; }
1977 fi
1978
1979
1980
1981
1982
1983
1984
1985
1986
1987
1988
1989
1990
1991
1992
1993
1994
1995
1996
1997
1998
1999
2000
2001
2002
2003 ac_ext=c
2004 ac_cpp='$CPP $CPPFLAGS'
2005 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2006 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2007 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2008
2009
2010
2011 ac_config_headers="$ac_config_headers include/config.h"
2012
2013 ac_aux_dir=
2014 for ac_dir in tools "$srcdir"/tools; do
2015 if test -f "$ac_dir/install-sh"; then
2016 ac_aux_dir=$ac_dir
2017 ac_install_sh="$ac_aux_dir/install-sh -c"
2018 break
2019 elif test -f "$ac_dir/install.sh"; then
2020 ac_aux_dir=$ac_dir
2021 ac_install_sh="$ac_aux_dir/install.sh -c"
2022 break
2023 elif test -f "$ac_dir/shtool"; then
2024 ac_aux_dir=$ac_dir
2025 ac_install_sh="$ac_aux_dir/shtool install -c"
2026 break
2027 fi
2028 done
2029 if test -z "$ac_aux_dir"; then
2030 { { $as_echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&5
2031 $as_echo "$as_me: error: cannot find install-sh or install.sh in tools \"$srcdir\"/tools" >&2;}
2032 { (exit 1); exit 1; }; }
2033 fi
2034
2035 # These three variables are undocumented and unsupported,
2036 # and are intended to be withdrawn in a future Autoconf release.
2037 # They can cause serious problems if a builder's source tree is in a directory
2038 # whose full name contains unusual characters.
2039 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2040 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2041 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2042
2043
2044
2045
2046 # Check whether --enable-win16 was given.
2047 if test "${enable_win16+set}" = set; then
2048 enableval=$enable_win16;
2049 fi
2050
2051 # Check whether --enable-win64 was given.
2052 if test "${enable_win64+set}" = set; then
2053 enableval=$enable_win64;
2054 fi
2055
2056 # Check whether --enable-tests was given.
2057 if test "${enable_tests+set}" = set; then
2058 enableval=$enable_tests;
2059 fi
2060
2061 # Check whether --enable-maintainer-mode was given.
2062 if test "${enable_maintainer_mode+set}" = set; then
2063 enableval=$enable_maintainer_mode;
2064 else
2065 MAINTAINER_MODE=\#
2066
2067 fi
2068
2069
2070
2071 # Check whether --with-alsa was given.
2072 if test "${with_alsa+set}" = set; then
2073 withval=$with_alsa; if test "x$withval" = "xno"; then ac_cv_header_sys_asoundlib_h=no; ac_cv_header_alsa_asoundlib_h=no; fi
2074 fi
2075
2076
2077 # Check whether --with-audioio was given.
2078 if test "${with_audioio+set}" = set; then
2079 withval=$with_audioio; if test "x$withval" = "xno"; then ac_cv_header_libaudioio_h=no; fi
2080 fi
2081
2082
2083 # Check whether --with-capi was given.
2084 if test "${with_capi+set}" = set; then
2085 withval=$with_capi; if test "x$withval" = "xno"; then ac_cv_header_capi20_h=no; ac_cv_header_linux_capi_h=no; fi
2086 fi
2087
2088
2089 # Check whether --with-cms was given.
2090 if test "${with_cms+set}" = set; then
2091 withval=$with_cms; if test "x$withval" = "xno"; then ac_cv_header_lcms_h=no; ac_cv_header_lcms_lcms_h=no; fi
2092 fi
2093
2094
2095 # Check whether --with-coreaudio was given.
2096 if test "${with_coreaudio+set}" = set; then
2097 withval=$with_coreaudio; if test "x$withval" = "xno"; then ac_cv_header_CoreAudio_CoreAudio_h=no; fi
2098 fi
2099
2100
2101 # Check whether --with-cups was given.
2102 if test "${with_cups+set}" = set; then
2103 withval=$with_cups;
2104 fi
2105
2106
2107 # Check whether --with-curses was given.
2108 if test "${with_curses+set}" = set; then
2109 withval=$with_curses; if test "x$withval" = "xno"; then ac_cv_header_ncurses_h=no; ac_cv_header_curses_h=no; fi
2110 fi
2111
2112
2113 # Check whether --with-esd was given.
2114 if test "${with_esd+set}" = set; then
2115 withval=$with_esd;
2116 fi
2117
2118
2119 # Check whether --with-fontconfig was given.
2120 if test "${with_fontconfig+set}" = set; then
2121 withval=$with_fontconfig; if test "x$withval" = "xno"; then ac_cv_header_fontconfig_fontconfig_h=no; fi
2122 fi
2123
2124
2125 # Check whether --with-freetype was given.
2126 if test "${with_freetype+set}" = set; then
2127 withval=$with_freetype;
2128 fi
2129
2130
2131 # Check whether --with-gphoto was given.
2132 if test "${with_gphoto+set}" = set; then
2133 withval=$with_gphoto;
2134 fi
2135
2136
2137 # Check whether --with-glu was given.
2138 if test "${with_glu+set}" = set; then
2139 withval=$with_glu; if test "x$withval" = "xno"; then ac_cv_header_GL_glu_h=no; fi
2140 fi
2141
2142
2143 # Check whether --with-gnutls was given.
2144 if test "${with_gnutls+set}" = set; then
2145 withval=$with_gnutls;
2146 fi
2147
2148
2149 # Check whether --with-hal was given.
2150 if test "${with_hal+set}" = set; then
2151 withval=$with_hal;
2152 fi
2153
2154
2155 # Check whether --with-jack was given.
2156 if test "${with_jack+set}" = set; then
2157 withval=$with_jack; if test "x$withval" = "xno"; then ac_cv_header_jack_jack_h=no; fi
2158 fi
2159
2160
2161 # Check whether --with-jpeg was given.
2162 if test "${with_jpeg+set}" = set; then
2163 withval=$with_jpeg; if test "x$withval" = "xno"; then ac_cv_header_jpeglib_h=no; fi
2164 fi
2165
2166
2167 # Check whether --with-ldap was given.
2168 if test "${with_ldap+set}" = set; then
2169 withval=$with_ldap; if test "x$withval" = "xno"; then ac_cv_header_ldap_h=no; ac_cv_header_lber_h=no; fi
2170 fi
2171
2172
2173 # Check whether --with-nas was given.
2174 if test "${with_nas+set}" = set; then
2175 withval=$with_nas; if test "x$withval" = "xno"; then ac_cv_header_audio_audiolib_h=no; fi
2176 fi
2177
2178
2179 # Check whether --with-opengl was given.
2180 if test "${with_opengl+set}" = set; then
2181 withval=$with_opengl;
2182 fi
2183
2184
2185 # Check whether --with-openssl was given.
2186 if test "${with_openssl+set}" = set; then
2187 withval=$with_openssl; if test "x$withval" = "xno"; then ac_cv_header_openssl_err_h=no; ac_cv_header_openssl_ssl_h=no; fi
2188 fi
2189
2190
2191 # Check whether --with-oss was given.
2192 if test "${with_oss+set}" = set; then
2193 withval=$with_oss; if test "x$withval" = "xno"; then ac_cv_header_soundcard_h=no; ac_cv_header_sys_soundcard_h=no; ac_cv_header_machine_soundcard_h=no; fi
2194 fi
2195
2196
2197 # Check whether --with-png was given.
2198 if test "${with_png+set}" = set; then
2199 withval=$with_png; if test "x$withval" = "xno"; then ac_cv_header_png_h=no; fi
2200 fi
2201
2202
2203 # Check whether --with-pthread was given.
2204 if test "${with_pthread+set}" = set; then
2205 withval=$with_pthread; if test "x$withval" = "xno"; then ac_cv_header_pthread_h=no; fi
2206 fi
2207
2208
2209 # Check whether --with-sane was given.
2210 if test "${with_sane+set}" = set; then
2211 withval=$with_sane;
2212 fi
2213
2214
2215 # Check whether --with-xcomposite was given.
2216 if test "${with_xcomposite+set}" = set; then
2217 withval=$with_xcomposite; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xcomposite_h=no; fi
2218 fi
2219
2220
2221 # Check whether --with-xcursor was given.
2222 if test "${with_xcursor+set}" = set; then
2223 withval=$with_xcursor; if test "x$withval" = "xno"; then ac_cv_header_X11_Xcursor_Xcursor_h=no; fi
2224 fi
2225
2226
2227 # Check whether --with-xinerama was given.
2228 if test "${with_xinerama+set}" = set; then
2229 withval=$with_xinerama; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xinerama_h=no; fi
2230 fi
2231
2232
2233 # Check whether --with-xinput was given.
2234 if test "${with_xinput+set}" = set; then
2235 withval=$with_xinput; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XInput_h=no; fi
2236 fi
2237
2238
2239 # Check whether --with-xml was given.
2240 if test "${with_xml+set}" = set; then
2241 withval=$with_xml;
2242 fi
2243
2244
2245 # Check whether --with-xrandr was given.
2246 if test "${with_xrandr+set}" = set; then
2247 withval=$with_xrandr; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrandr_h=no; fi
2248 fi
2249
2250
2251 # Check whether --with-xrender was given.
2252 if test "${with_xrender+set}" = set; then
2253 withval=$with_xrender; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_Xrender_h=no; fi
2254 fi
2255
2256
2257 # Check whether --with-xshape was given.
2258 if test "${with_xshape+set}" = set; then
2259 withval=$with_xshape; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_shape_h=no; fi
2260 fi
2261
2262
2263 # Check whether --with-xshm was given.
2264 if test "${with_xshm+set}" = set; then
2265 withval=$with_xshm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_XShm_h=no; fi
2266 fi
2267
2268
2269 # Check whether --with-xslt was given.
2270 if test "${with_xslt+set}" = set; then
2271 withval=$with_xslt;
2272 fi
2273
2274
2275 # Check whether --with-xxf86vm was given.
2276 if test "${with_xxf86vm+set}" = set; then
2277 withval=$with_xxf86vm; if test "x$withval" = "xno"; then ac_cv_header_X11_extensions_xf86vmode_h=no; fi
2278 fi
2279
2280
2281
2282 # Check whether --with-wine-tools was given.
2283 if test "${with_wine_tools+set}" = set; then
2284 withval=$with_wine_tools;
2285 fi
2286
2287
2288 # Make sure we can run config.sub.
2289 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2290 { { $as_echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2291 $as_echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2292 { (exit 1); exit 1; }; }
2293
2294 { $as_echo "$as_me:$LINENO: checking build system type" >&5
2295 $as_echo_n "checking build system type... " >&6; }
2296 if test "${ac_cv_build+set}" = set; then
2297 $as_echo_n "(cached) " >&6
2298 else
2299 ac_build_alias=$build_alias
2300 test "x$ac_build_alias" = x &&
2301 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2302 test "x$ac_build_alias" = x &&
2303 { { $as_echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2304 $as_echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2305 { (exit 1); exit 1; }; }
2306 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2307 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2308 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2309 { (exit 1); exit 1; }; }
2310
2311 fi
2312 { $as_echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2313 $as_echo "$ac_cv_build" >&6; }
2314 case $ac_cv_build in
2315 *-*-*) ;;
2316 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2317 $as_echo "$as_me: error: invalid value of canonical build" >&2;}
2318 { (exit 1); exit 1; }; };;
2319 esac
2320 build=$ac_cv_build
2321 ac_save_IFS=$IFS; IFS='-'
2322 set x $ac_cv_build
2323 shift
2324 build_cpu=$1
2325 build_vendor=$2
2326 shift; shift
2327 # Remember, the first character of IFS is used to create $*,
2328 # except with old shells:
2329 build_os=$*
2330 IFS=$ac_save_IFS
2331 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2332
2333
2334 { $as_echo "$as_me:$LINENO: checking host system type" >&5
2335 $as_echo_n "checking host system type... " >&6; }
2336 if test "${ac_cv_host+set}" = set; then
2337 $as_echo_n "(cached) " >&6
2338 else
2339 if test "x$host_alias" = x; then
2340 ac_cv_host=$ac_cv_build
2341 else
2342 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2343 { { $as_echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2344 $as_echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2345 { (exit 1); exit 1; }; }
2346 fi
2347
2348 fi
2349 { $as_echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2350 $as_echo "$ac_cv_host" >&6; }
2351 case $ac_cv_host in
2352 *-*-*) ;;
2353 *) { { $as_echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2354 $as_echo "$as_me: error: invalid value of canonical host" >&2;}
2355 { (exit 1); exit 1; }; };;
2356 esac
2357 host=$ac_cv_host
2358 ac_save_IFS=$IFS; IFS='-'
2359 set x $ac_cv_host
2360 shift
2361 host_cpu=$1
2362 host_vendor=$2
2363 shift; shift
2364 # Remember, the first character of IFS is used to create $*,
2365 # except with old shells:
2366 host_os=$*
2367 IFS=$ac_save_IFS
2368 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2369
2370
2371
2372 case "$srcdir" in
2373 .) ;;
2374 *) if test -f "$srcdir/Makefile" -o -f "$srcdir/include/config.h"; then
2375 { { $as_echo "$as_me:$LINENO: error: you are building out of the source tree, but the source tree contains object files.
2376 You need to run 'make distclean' in the source tree first." >&5
2377 $as_echo "$as_me: error: you are building out of the source tree, but the source tree contains object files.
2378 You need to run 'make distclean' in the source tree first." >&2;}
2379 { (exit 1); exit 1; }; }
2380 fi ;;
2381 esac
2382
2383
2384 { $as_echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2385 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2386 set x ${MAKE-make}
2387 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2388 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2389 $as_echo_n "(cached) " >&6
2390 else
2391 cat >conftest.make <<\_ACEOF
2392 SHELL = /bin/sh
2393 all:
2394 @echo '@@@%%%=$(MAKE)=@@@%%%'
2395 _ACEOF
2396 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2397 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2398 *@@@%%%=?*=@@@%%%*)
2399 eval ac_cv_prog_make_${ac_make}_set=yes;;
2400 *)
2401 eval ac_cv_prog_make_${ac_make}_set=no;;
2402 esac
2403 rm -f conftest.make
2404 fi
2405 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2406 { $as_echo "$as_me:$LINENO: result: yes" >&5
2407 $as_echo "yes" >&6; }
2408 SET_MAKE=
2409 else
2410 { $as_echo "$as_me:$LINENO: result: no" >&5
2411 $as_echo "no" >&6; }
2412 SET_MAKE="MAKE=${MAKE-make}"
2413 fi
2414
2415 ac_ext=c
2416 ac_cpp='$CPP $CPPFLAGS'
2417 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2418 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2419 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2420 if test -n "$ac_tool_prefix"; then
2421 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2422 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2423 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2424 $as_echo_n "checking for $ac_word... " >&6; }
2425 if test "${ac_cv_prog_CC+set}" = set; then
2426 $as_echo_n "(cached) " >&6
2427 else
2428 if test -n "$CC"; then
2429 ac_cv_prog_CC="$CC" # Let the user override the test.
2430 else
2431 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2432 for as_dir in $PATH
2433 do
2434 IFS=$as_save_IFS
2435 test -z "$as_dir" && as_dir=.
2436 for ac_exec_ext in '' $ac_executable_extensions; do
2437 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2438 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2439 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 break 2
2441 fi
2442 done
2443 done
2444 IFS=$as_save_IFS
2445
2446 fi
2447 fi
2448 CC=$ac_cv_prog_CC
2449 if test -n "$CC"; then
2450 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2451 $as_echo "$CC" >&6; }
2452 else
2453 { $as_echo "$as_me:$LINENO: result: no" >&5
2454 $as_echo "no" >&6; }
2455 fi
2456
2457
2458 fi
2459 if test -z "$ac_cv_prog_CC"; then
2460 ac_ct_CC=$CC
2461 # Extract the first word of "gcc", so it can be a program name with args.
2462 set dummy gcc; ac_word=$2
2463 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2464 $as_echo_n "checking for $ac_word... " >&6; }
2465 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2466 $as_echo_n "(cached) " >&6
2467 else
2468 if test -n "$ac_ct_CC"; then
2469 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2470 else
2471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2472 for as_dir in $PATH
2473 do
2474 IFS=$as_save_IFS
2475 test -z "$as_dir" && as_dir=.
2476 for ac_exec_ext in '' $ac_executable_extensions; do
2477 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2478 ac_cv_prog_ac_ct_CC="gcc"
2479 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2480 break 2
2481 fi
2482 done
2483 done
2484 IFS=$as_save_IFS
2485
2486 fi
2487 fi
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 $as_echo "$ac_ct_CC" >&6; }
2492 else
2493 { $as_echo "$as_me:$LINENO: result: no" >&5
2494 $as_echo "no" >&6; }
2495 fi
2496
2497 if test "x$ac_ct_CC" = x; then
2498 CC=""
2499 else
2500 case $cross_compiling:$ac_tool_warned in
2501 yes:)
2502 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2503 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2504 ac_tool_warned=yes ;;
2505 esac
2506 CC=$ac_ct_CC
2507 fi
2508 else
2509 CC="$ac_cv_prog_CC"
2510 fi
2511
2512 if test -z "$CC"; then
2513 if test -n "$ac_tool_prefix"; then
2514 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2515 set dummy ${ac_tool_prefix}cc; ac_word=$2
2516 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2517 $as_echo_n "checking for $ac_word... " >&6; }
2518 if test "${ac_cv_prog_CC+set}" = set; then
2519 $as_echo_n "(cached) " >&6
2520 else
2521 if test -n "$CC"; then
2522 ac_cv_prog_CC="$CC" # Let the user override the test.
2523 else
2524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2525 for as_dir in $PATH
2526 do
2527 IFS=$as_save_IFS
2528 test -z "$as_dir" && as_dir=.
2529 for ac_exec_ext in '' $ac_executable_extensions; do
2530 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2531 ac_cv_prog_CC="${ac_tool_prefix}cc"
2532 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2533 break 2
2534 fi
2535 done
2536 done
2537 IFS=$as_save_IFS
2538
2539 fi
2540 fi
2541 CC=$ac_cv_prog_CC
2542 if test -n "$CC"; then
2543 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2544 $as_echo "$CC" >&6; }
2545 else
2546 { $as_echo "$as_me:$LINENO: result: no" >&5
2547 $as_echo "no" >&6; }
2548 fi
2549
2550
2551 fi
2552 fi
2553 if test -z "$CC"; then
2554 # Extract the first word of "cc", so it can be a program name with args.
2555 set dummy cc; ac_word=$2
2556 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2557 $as_echo_n "checking for $ac_word... " >&6; }
2558 if test "${ac_cv_prog_CC+set}" = set; then
2559 $as_echo_n "(cached) " >&6
2560 else
2561 if test -n "$CC"; then
2562 ac_cv_prog_CC="$CC" # Let the user override the test.
2563 else
2564 ac_prog_rejected=no
2565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2566 for as_dir in $PATH
2567 do
2568 IFS=$as_save_IFS
2569 test -z "$as_dir" && as_dir=.
2570 for ac_exec_ext in '' $ac_executable_extensions; do
2571 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2572 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2573 ac_prog_rejected=yes
2574 continue
2575 fi
2576 ac_cv_prog_CC="cc"
2577 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2578 break 2
2579 fi
2580 done
2581 done
2582 IFS=$as_save_IFS
2583
2584 if test $ac_prog_rejected = yes; then
2585 # We found a bogon in the path, so make sure we never use it.
2586 set dummy $ac_cv_prog_CC
2587 shift
2588 if test $# != 0; then
2589 # We chose a different compiler from the bogus one.
2590 # However, it has the same basename, so the bogon will be chosen
2591 # first if we set CC to just the basename; use the full file name.
2592 shift
2593 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2594 fi
2595 fi
2596 fi
2597 fi
2598 CC=$ac_cv_prog_CC
2599 if test -n "$CC"; then
2600 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2601 $as_echo "$CC" >&6; }
2602 else
2603 { $as_echo "$as_me:$LINENO: result: no" >&5
2604 $as_echo "no" >&6; }
2605 fi
2606
2607
2608 fi
2609 if test -z "$CC"; then
2610 if test -n "$ac_tool_prefix"; then
2611 for ac_prog in cl.exe
2612 do
2613 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2614 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2615 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2616 $as_echo_n "checking for $ac_word... " >&6; }
2617 if test "${ac_cv_prog_CC+set}" = set; then
2618 $as_echo_n "(cached) " >&6
2619 else
2620 if test -n "$CC"; then
2621 ac_cv_prog_CC="$CC" # Let the user override the test.
2622 else
2623 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2624 for as_dir in $PATH
2625 do
2626 IFS=$as_save_IFS
2627 test -z "$as_dir" && as_dir=.
2628 for ac_exec_ext in '' $ac_executable_extensions; do
2629 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2630 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2631 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2632 break 2
2633 fi
2634 done
2635 done
2636 IFS=$as_save_IFS
2637
2638 fi
2639 fi
2640 CC=$ac_cv_prog_CC
2641 if test -n "$CC"; then
2642 { $as_echo "$as_me:$LINENO: result: $CC" >&5
2643 $as_echo "$CC" >&6; }
2644 else
2645 { $as_echo "$as_me:$LINENO: result: no" >&5
2646 $as_echo "no" >&6; }
2647 fi
2648
2649
2650 test -n "$CC" && break
2651 done
2652 fi
2653 if test -z "$CC"; then
2654 ac_ct_CC=$CC
2655 for ac_prog in cl.exe
2656 do
2657 # Extract the first word of "$ac_prog", so it can be a program name with args.
2658 set dummy $ac_prog; ac_word=$2
2659 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
2660 $as_echo_n "checking for $ac_word... " >&6; }
2661 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2662 $as_echo_n "(cached) " >&6
2663 else
2664 if test -n "$ac_ct_CC"; then
2665 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2666 else
2667 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2668 for as_dir in $PATH
2669 do
2670 IFS=$as_save_IFS
2671 test -z "$as_dir" && as_dir=.
2672 for ac_exec_ext in '' $ac_executable_extensions; do
2673 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2674 ac_cv_prog_ac_ct_CC="$ac_prog"
2675 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2676 break 2
2677 fi
2678 done
2679 done
2680 IFS=$as_save_IFS
2681
2682 fi
2683 fi
2684 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2685 if test -n "$ac_ct_CC"; then
2686 { $as_echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2687 $as_echo "$ac_ct_CC" >&6; }
2688 else
2689 { $as_echo "$as_me:$LINENO: result: no" >&5
2690 $as_echo "no" >&6; }
2691 fi
2692
2693
2694 test -n "$ac_ct_CC" && break
2695 done
2696
2697 if test "x$ac_ct_CC" = x; then
2698 CC=""
2699 else
2700 case $cross_compiling:$ac_tool_warned in
2701 yes:)
2702 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
2703 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2704 ac_tool_warned=yes ;;
2705 esac
2706 CC=$ac_ct_CC
2707 fi
2708 fi
2709
2710 fi
2711
2712
2713 test -z "$CC" && { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2714 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2715 { { $as_echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2716 See \`config.log' for more details." >&5
2717 $as_echo "$as_me: error: no acceptable C compiler found in \$PATH
2718 See \`config.log' for more details." >&2;}
2719 { (exit 1); exit 1; }; }; }
2720
2721 # Provide some information about the compiler.
2722 $as_echo "$as_me:$LINENO: checking for C compiler version" >&5
2723 set X $ac_compile
2724 ac_compiler=$2
2725 { (ac_try="$ac_compiler --version >&5"
2726 case "(($ac_try" in
2727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2728 *) ac_try_echo=$ac_try;;
2729 esac
2730 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2731 $as_echo "$ac_try_echo") >&5
2732 (eval "$ac_compiler --version >&5") 2>&5
2733 ac_status=$?
2734 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2735 (exit $ac_status); }
2736 { (ac_try="$ac_compiler -v >&5"
2737 case "(($ac_try" in
2738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739 *) ac_try_echo=$ac_try;;
2740 esac
2741 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2742 $as_echo "$ac_try_echo") >&5
2743 (eval "$ac_compiler -v >&5") 2>&5
2744 ac_status=$?
2745 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2746 (exit $ac_status); }
2747 { (ac_try="$ac_compiler -V >&5"
2748 case "(($ac_try" in
2749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2750 *) ac_try_echo=$ac_try;;
2751 esac
2752 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2753 $as_echo "$ac_try_echo") >&5
2754 (eval "$ac_compiler -V >&5") 2>&5
2755 ac_status=$?
2756 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2757 (exit $ac_status); }
2758
2759 cat >conftest.$ac_ext <<_ACEOF
2760 /* confdefs.h. */
2761 _ACEOF
2762 cat confdefs.h >>conftest.$ac_ext
2763 cat >>conftest.$ac_ext <<_ACEOF
2764 /* end confdefs.h. */
2765
2766 int
2767 main ()
2768 {
2769
2770 ;
2771 return 0;
2772 }
2773 _ACEOF
2774 ac_clean_files_save=$ac_clean_files
2775 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2776 # Try to create an executable without -o first, disregard a.out.
2777 # It will help us diagnose broken compilers, and finding out an intuition
2778 # of exeext.
2779 { $as_echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2780 $as_echo_n "checking for C compiler default output file name... " >&6; }
2781 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2782
2783 # The possible output files:
2784 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2785
2786 ac_rmfiles=
2787 for ac_file in $ac_files
2788 do
2789 case $ac_file in
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2791 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2792 esac
2793 done
2794 rm -f $ac_rmfiles
2795
2796 if { (ac_try="$ac_link_default"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2802 $as_echo "$ac_try_echo") >&5
2803 (eval "$ac_link_default") 2>&5
2804 ac_status=$?
2805 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2806 (exit $ac_status); }; then
2807 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2808 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2809 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2810 # so that the user can short-circuit this test for compilers unknown to
2811 # Autoconf.
2812 for ac_file in $ac_files ''
2813 do
2814 test -f "$ac_file" || continue
2815 case $ac_file in
2816 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2817 ;;
2818 [ab].out )
2819 # We found the default executable, but exeext='' is most
2820 # certainly right.
2821 break;;
2822 *.* )
2823 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2824 then :; else
2825 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826 fi
2827 # We set ac_cv_exeext here because the later test for it is not
2828 # safe: cross compilers may not add the suffix if given an `-o'
2829 # argument, so we may need to know it at that point already.
2830 # Even if this section looks crufty: it has the advantage of
2831 # actually working.
2832 break;;
2833 * )
2834 break;;
2835 esac
2836 done
2837 test "$ac_cv_exeext" = no && ac_cv_exeext=
2838
2839 else
2840 ac_file=''
2841 fi
2842
2843 { $as_echo "$as_me:$LINENO: result: $ac_file" >&5
2844 $as_echo "$ac_file" >&6; }
2845 if test -z "$ac_file"; then
2846 $as_echo "$as_me: failed program was:" >&5
2847 sed 's/^/| /' conftest.$ac_ext >&5
2848
2849 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2851 { { $as_echo "$as_me:$LINENO: error: C compiler cannot create executables
2852 See \`config.log' for more details." >&5
2853 $as_echo "$as_me: error: C compiler cannot create executables
2854 See \`config.log' for more details." >&2;}
2855 { (exit 77); exit 77; }; }; }
2856 fi
2857
2858 ac_exeext=$ac_cv_exeext
2859
2860 # Check that the compiler produces executables we can run. If not, either
2861 # the compiler is broken, or we cross compile.
2862 { $as_echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2863 $as_echo_n "checking whether the C compiler works... " >&6; }
2864 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2865 # If not cross compiling, check that we can run a simple program.
2866 if test "$cross_compiling" != yes; then
2867 if { ac_try='./$ac_file'
2868 { (case "(($ac_try" in
2869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2870 *) ac_try_echo=$ac_try;;
2871 esac
2872 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2873 $as_echo "$ac_try_echo") >&5
2874 (eval "$ac_try") 2>&5
2875 ac_status=$?
2876 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2877 (exit $ac_status); }; }; then
2878 cross_compiling=no
2879 else
2880 if test "$cross_compiling" = maybe; then
2881 cross_compiling=yes
2882 else
2883 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2884 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2885 { { $as_echo "$as_me:$LINENO: error: cannot run C compiled programs.
2886 If you meant to cross compile, use \`--host'.
2887 See \`config.log' for more details." >&5
2888 $as_echo "$as_me: error: cannot run C compiled programs.
2889 If you meant to cross compile, use \`--host'.
2890 See \`config.log' for more details." >&2;}
2891 { (exit 1); exit 1; }; }; }
2892 fi
2893 fi
2894 fi
2895 { $as_echo "$as_me:$LINENO: result: yes" >&5
2896 $as_echo "yes" >&6; }
2897
2898 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2899 ac_clean_files=$ac_clean_files_save
2900 # Check that the compiler produces executables we can run. If not, either
2901 # the compiler is broken, or we cross compile.
2902 { $as_echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2903 $as_echo_n "checking whether we are cross compiling... " >&6; }
2904 { $as_echo "$as_me:$LINENO: result: $cross_compiling" >&5
2905 $as_echo "$cross_compiling" >&6; }
2906
2907 { $as_echo "$as_me:$LINENO: checking for suffix of executables" >&5
2908 $as_echo_n "checking for suffix of executables... " >&6; }
2909 if { (ac_try="$ac_link"
2910 case "(($ac_try" in
2911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2912 *) ac_try_echo=$ac_try;;
2913 esac
2914 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2915 $as_echo "$ac_try_echo") >&5
2916 (eval "$ac_link") 2>&5
2917 ac_status=$?
2918 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); }; then
2920 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2921 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2922 # work properly (i.e., refer to `conftest.exe'), while it won't with
2923 # `rm'.
2924 for ac_file in conftest.exe conftest conftest.*; do
2925 test -f "$ac_file" || continue
2926 case $ac_file in
2927 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2928 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2929 break;;
2930 * ) break;;
2931 esac
2932 done
2933 else
2934 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2935 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2936 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2937 See \`config.log' for more details." >&5
2938 $as_echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2939 See \`config.log' for more details." >&2;}
2940 { (exit 1); exit 1; }; }; }
2941 fi
2942
2943 rm -f conftest$ac_cv_exeext
2944 { $as_echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2945 $as_echo "$ac_cv_exeext" >&6; }
2946
2947 rm -f conftest.$ac_ext
2948 EXEEXT=$ac_cv_exeext
2949 ac_exeext=$EXEEXT
2950 { $as_echo "$as_me:$LINENO: checking for suffix of object files" >&5
2951 $as_echo_n "checking for suffix of object files... " >&6; }
2952 if test "${ac_cv_objext+set}" = set; then
2953 $as_echo_n "(cached) " >&6
2954 else
2955 cat >conftest.$ac_ext <<_ACEOF
2956 /* confdefs.h. */
2957 _ACEOF
2958 cat confdefs.h >>conftest.$ac_ext
2959 cat >>conftest.$ac_ext <<_ACEOF
2960 /* end confdefs.h. */
2961
2962 int
2963 main ()
2964 {
2965
2966 ;
2967 return 0;
2968 }
2969 _ACEOF
2970 rm -f conftest.o conftest.obj
2971 if { (ac_try="$ac_compile"
2972 case "(($ac_try" in
2973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2974 *) ac_try_echo=$ac_try;;
2975 esac
2976 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
2977 $as_echo "$ac_try_echo") >&5
2978 (eval "$ac_compile") 2>&5
2979 ac_status=$?
2980 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
2981 (exit $ac_status); }; then
2982 for ac_file in conftest.o conftest.obj conftest.*; do
2983 test -f "$ac_file" || continue;
2984 case $ac_file in
2985 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2986 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2987 break;;
2988 esac
2989 done
2990 else
2991 $as_echo "$as_me: failed program was:" >&5
2992 sed 's/^/| /' conftest.$ac_ext >&5
2993
2994 { { $as_echo "$as_me:$LINENO: error: in \`$ac_pwd':" >&5
2995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2996 { { $as_echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2997 See \`config.log' for more details." >&5
2998 $as_echo "$as_me: error: cannot compute suffix of object files: cannot compile
2999 See \`config.log' for more details." >&2;}
3000 { (exit 1); exit 1; }; }; }
3001 fi
3002
3003 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3004 fi
3005 { $as_echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3006 $as_echo "$ac_cv_objext" >&6; }
3007 OBJEXT=$ac_cv_objext
3008 ac_objext=$OBJEXT
3009 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3010 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3011 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3012 $as_echo_n "(cached) " >&6
3013 else
3014 cat >conftest.$ac_ext <<_ACEOF
3015 /* confdefs.h. */
3016 _ACEOF
3017 cat confdefs.h >>conftest.$ac_ext
3018 cat >>conftest.$ac_ext <<_ACEOF
3019 /* end confdefs.h. */
3020
3021 int
3022 main ()
3023 {
3024 #ifndef __GNUC__
3025 choke me
3026 #endif
3027
3028 ;
3029 return 0;
3030 }
3031 _ACEOF
3032 rm -f conftest.$ac_objext
3033 if { (ac_try="$ac_compile"
3034 case "(($ac_try" in
3035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3036 *) ac_try_echo=$ac_try;;
3037 esac
3038 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3039 $as_echo "$ac_try_echo") >&5
3040 (eval "$ac_compile") 2>conftest.er1
3041 ac_status=$?
3042 grep -v '^ *+' conftest.er1 >conftest.err
3043 rm -f conftest.er1
3044 cat conftest.err >&5
3045 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046 (exit $ac_status); } && {
3047 test -z "$ac_c_werror_flag" ||
3048 test ! -s conftest.err
3049 } && test -s conftest.$ac_objext; then
3050 ac_compiler_gnu=yes
3051 else
3052 $as_echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 ac_compiler_gnu=no
3056 fi
3057
3058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3059 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3060
3061 fi
3062 { $as_echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3063 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3064 if test $ac_compiler_gnu = yes; then
3065 GCC=yes
3066 else
3067 GCC=
3068 fi
3069 ac_test_CFLAGS=${CFLAGS+set}
3070 ac_save_CFLAGS=$CFLAGS
3071 { $as_echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3072 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3073 if test "${ac_cv_prog_cc_g+set}" = set; then
3074 $as_echo_n "(cached) " >&6
3075 else
3076 ac_save_c_werror_flag=$ac_c_werror_flag
3077 ac_c_werror_flag=yes
3078 ac_cv_prog_cc_g=no
3079 CFLAGS="-g"
3080 cat >conftest.$ac_ext <<_ACEOF
3081 /* confdefs.h. */
3082 _ACEOF
3083 cat confdefs.h >>conftest.$ac_ext
3084 cat >>conftest.$ac_ext <<_ACEOF
3085 /* end confdefs.h. */
3086
3087 int
3088 main ()
3089 {
3090
3091 ;
3092 return 0;
3093 }
3094 _ACEOF
3095 rm -f conftest.$ac_objext
3096 if { (ac_try="$ac_compile"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3102 $as_echo "$ac_try_echo") >&5
3103 (eval "$ac_compile") 2>conftest.er1
3104 ac_status=$?
3105 grep -v '^ *+' conftest.er1 >conftest.err
3106 rm -f conftest.er1
3107 cat conftest.err >&5
3108 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3109 (exit $ac_status); } && {
3110 test -z "$ac_c_werror_flag" ||
3111 test ! -s conftest.err
3112 } && test -s conftest.$ac_objext; then
3113 ac_cv_prog_cc_g=yes
3114 else
3115 $as_echo "$as_me: failed program was:" >&5
3116 sed 's/^/| /' conftest.$ac_ext >&5
3117
3118 CFLAGS=""
3119 cat >conftest.$ac_ext <<_ACEOF
3120 /* confdefs.h. */
3121 _ACEOF
3122 cat confdefs.h >>conftest.$ac_ext
3123 cat >>conftest.$ac_ext <<_ACEOF
3124 /* end confdefs.h. */
3125
3126 int
3127 main ()
3128 {
3129
3130 ;
3131 return 0;
3132 }
3133 _ACEOF
3134 rm -f conftest.$ac_objext
3135 if { (ac_try="$ac_compile"
3136 case "(($ac_try" in
3137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138 *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3141 $as_echo "$ac_try_echo") >&5
3142 (eval "$ac_compile") 2>conftest.er1
3143 ac_status=$?
3144 grep -v '^ *+' conftest.er1 >conftest.err
3145 rm -f conftest.er1
3146 cat conftest.err >&5
3147 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3148 (exit $ac_status); } && {
3149 test -z "$ac_c_werror_flag" ||
3150 test ! -s conftest.err
3151 } && test -s conftest.$ac_objext; then
3152 :
3153 else
3154 $as_echo "$as_me: failed program was:" >&5
3155 sed 's/^/| /' conftest.$ac_ext >&5
3156
3157 ac_c_werror_flag=$ac_save_c_werror_flag
3158 CFLAGS="-g"
3159 cat >conftest.$ac_ext <<_ACEOF
3160 /* confdefs.h. */
3161 _ACEOF
3162 cat confdefs.h >>conftest.$ac_ext
3163 cat >>conftest.$ac_ext <<_ACEOF
3164 /* end confdefs.h. */
3165
3166 int
3167 main ()
3168 {
3169
3170 ;
3171 return 0;
3172 }
3173 _ACEOF
3174 rm -f conftest.$ac_objext
3175 if { (ac_try="$ac_compile"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3181 $as_echo "$ac_try_echo") >&5
3182 (eval "$ac_compile") 2>conftest.er1
3183 ac_status=$?
3184 grep -v '^ *+' conftest.er1 >conftest.err
3185 rm -f conftest.er1
3186 cat conftest.err >&5
3187 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3188 (exit $ac_status); } && {
3189 test -z "$ac_c_werror_flag" ||
3190 test ! -s conftest.err
3191 } && test -s conftest.$ac_objext; then
3192 ac_cv_prog_cc_g=yes
3193 else
3194 $as_echo "$as_me: failed program was:" >&5
3195 sed 's/^/| /' conftest.$ac_ext >&5
3196
3197
3198 fi
3199
3200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3201 fi
3202
3203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3204 fi
3205
3206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3207 ac_c_werror_flag=$ac_save_c_werror_flag
3208 fi
3209 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3210 $as_echo "$ac_cv_prog_cc_g" >&6; }
3211 if test "$ac_test_CFLAGS" = set; then
3212 CFLAGS=$ac_save_CFLAGS
3213 elif test $ac_cv_prog_cc_g = yes; then
3214 if test "$GCC" = yes; then
3215 CFLAGS="-g -O2"
3216 else
3217 CFLAGS="-g"
3218 fi
3219 else
3220 if test "$GCC" = yes; then
3221 CFLAGS="-O2"
3222 else
3223 CFLAGS=
3224 fi
3225 fi
3226 { $as_echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3227 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3228 if test "${ac_cv_prog_cc_c89+set}" = set; then
3229 $as_echo_n "(cached) " >&6
3230 else
3231 ac_cv_prog_cc_c89=no
3232 ac_save_CC=$CC
3233 cat >conftest.$ac_ext <<_ACEOF
3234 /* confdefs.h. */
3235 _ACEOF
3236 cat confdefs.h >>conftest.$ac_ext
3237 cat >>conftest.$ac_ext <<_ACEOF
3238 /* end confdefs.h. */
3239 #include <stdarg.h>
3240 #include <stdio.h>
3241 #include <sys/types.h>
3242 #include <sys/stat.h>
3243 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3244 struct buf { int x; };
3245 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3246 static char *e (p, i)
3247 char **p;
3248 int i;
3249 {
3250 return p[i];
3251 }
3252 static char *f (char * (*g) (char **, int), char **p, ...)
3253 {
3254 char *s;
3255 va_list v;
3256 va_start (v,p);
3257 s = g (p, va_arg (v,int));
3258 va_end (v);
3259 return s;
3260 }
3261
3262 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3263 function prototypes and stuff, but not '\xHH' hex character constants.
3264 These don't provoke an error unfortunately, instead are silently treated
3265 as 'x'. The following induces an error, until -std is added to get
3266 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3267 array size at least. It's necessary to write '\x00'==0 to get something
3268 that's true only with -std. */
3269 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3270
3271 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3272 inside strings and character constants. */
3273 #define FOO(x) 'x'
3274 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3275
3276 int test (int i, double x);
3277 struct s1 {int (*f) (int a);};
3278 struct s2 {int (*f) (double a);};
3279 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3280 int argc;
3281 char **argv;
3282 int
3283 main ()
3284 {
3285 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3286 ;
3287 return 0;
3288 }
3289 _ACEOF
3290 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3291 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3292 do
3293 CC="$ac_save_CC $ac_arg"
3294 rm -f conftest.$ac_objext
3295 if { (ac_try="$ac_compile"
3296 case "(($ac_try" in
3297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3298 *) ac_try_echo=$ac_try;;
3299 esac
3300 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3301 $as_echo "$ac_try_echo") >&5
3302 (eval "$ac_compile") 2>conftest.er1
3303 ac_status=$?
3304 grep -v '^ *+' conftest.er1 >conftest.err
3305 rm -f conftest.er1
3306 cat conftest.err >&5
3307 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3308 (exit $ac_status); } && {
3309 test -z "$ac_c_werror_flag" ||
3310 test ! -s conftest.err
3311 } && test -s conftest.$ac_objext; then
3312 ac_cv_prog_cc_c89=$ac_arg
3313 else
3314 $as_echo "$as_me: failed program was:" >&5
3315 sed 's/^/| /' conftest.$ac_ext >&5
3316
3317
3318 fi
3319
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3325
3326 fi
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3329 x)
3330 { $as_echo "$as_me:$LINENO: result: none needed" >&5
3331 $as_echo "none needed" >&6; } ;;
3332 xno)
3333 { $as_echo "$as_me:$LINENO: result: unsupported" >&5
3334 $as_echo "unsupported" >&6; } ;;
3335 *)
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340
3341
3342 ac_ext=c
3343 ac_cpp='$CPP $CPPFLAGS'
3344 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3345 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3346 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3347
3348 ac_ext=cpp
3349 ac_cpp='$CXXCPP $CPPFLAGS'
3350 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3351 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3352 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3353 if test -z "$CXX"; then
3354 if test -n "$CCC"; then
3355 CXX=$CCC
3356 else
3357 if test -n "$ac_tool_prefix"; then
3358 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3359 do
3360 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3361 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3362 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if test "${ac_cv_prog_CXX+set}" = set; then
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$CXX"; then
3368 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3372 do
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3377 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3378 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3380 fi
3381 done
3382 done
3383 IFS=$as_save_IFS
3384
3385 fi
3386 fi
3387 CXX=$ac_cv_prog_CXX
3388 if test -n "$CXX"; then
3389 { $as_echo "$as_me:$LINENO: result: $CXX" >&5
3390 $as_echo "$CXX" >&6; }
3391 else
3392 { $as_echo "$as_me:$LINENO: result: no" >&5
3393 $as_echo "no" >&6; }
3394 fi
3395
3396
3397 test -n "$CXX" && break
3398 done
3399 fi
3400 if test -z "$CXX"; then
3401 ac_ct_CXX=$CXX
3402 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3403 do
3404 # Extract the first word of "$ac_prog", so it can be a program name with args.
3405 set dummy $ac_prog; ac_word=$2
3406 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3407 $as_echo_n "checking for $ac_word... " >&6; }
3408 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3409 $as_echo_n "(cached) " >&6
3410 else
3411 if test -n "$ac_ct_CXX"; then
3412 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3413 else
3414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3415 for as_dir in $PATH
3416 do
3417 IFS=$as_save_IFS
3418 test -z "$as_dir" && as_dir=.
3419 for ac_exec_ext in '' $ac_executable_extensions; do
3420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3421 ac_cv_prog_ac_ct_CXX="$ac_prog"
3422 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3423 break 2
3424 fi
3425 done
3426 done
3427 IFS=$as_save_IFS
3428
3429 fi
3430 fi
3431 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3432 if test -n "$ac_ct_CXX"; then
3433 { $as_echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3434 $as_echo "$ac_ct_CXX" >&6; }
3435 else
3436 { $as_echo "$as_me:$LINENO: result: no" >&5
3437 $as_echo "no" >&6; }
3438 fi
3439
3440
3441 test -n "$ac_ct_CXX" && break
3442 done
3443
3444 if test "x$ac_ct_CXX" = x; then
3445 CXX="g++"
3446 else
3447 case $cross_compiling:$ac_tool_warned in
3448 yes:)
3449 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3450 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CXX=$ac_ct_CXX
3454 fi
3455 fi
3456
3457 fi
3458 fi
3459 # Provide some information about the compiler.
3460 $as_echo "$as_me:$LINENO: checking for C++ compiler version" >&5
3461 set X $ac_compile
3462 ac_compiler=$2
3463 { (ac_try="$ac_compiler --version >&5"
3464 case "(($ac_try" in
3465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3466 *) ac_try_echo=$ac_try;;
3467 esac
3468 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3469 $as_echo "$ac_try_echo") >&5
3470 (eval "$ac_compiler --version >&5") 2>&5
3471 ac_status=$?
3472 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3473 (exit $ac_status); }
3474 { (ac_try="$ac_compiler -v >&5"
3475 case "(($ac_try" in
3476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477 *) ac_try_echo=$ac_try;;
3478 esac
3479 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3480 $as_echo "$ac_try_echo") >&5
3481 (eval "$ac_compiler -v >&5") 2>&5
3482 ac_status=$?
3483 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3484 (exit $ac_status); }
3485 { (ac_try="$ac_compiler -V >&5"
3486 case "(($ac_try" in
3487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3488 *) ac_try_echo=$ac_try;;
3489 esac
3490 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3491 $as_echo "$ac_try_echo") >&5
3492 (eval "$ac_compiler -V >&5") 2>&5
3493 ac_status=$?
3494 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496
3497 { $as_echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3498 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3499 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3500 $as_echo_n "(cached) " >&6
3501 else
3502 cat >conftest.$ac_ext <<_ACEOF
3503 /* confdefs.h. */
3504 _ACEOF
3505 cat confdefs.h >>conftest.$ac_ext
3506 cat >>conftest.$ac_ext <<_ACEOF
3507 /* end confdefs.h. */
3508
3509 int
3510 main ()
3511 {
3512 #ifndef __GNUC__
3513 choke me
3514 #endif
3515
3516 ;
3517 return 0;
3518 }
3519 _ACEOF
3520 rm -f conftest.$ac_objext
3521 if { (ac_try="$ac_compile"
3522 case "(($ac_try" in
3523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3524 *) ac_try_echo=$ac_try;;
3525 esac
3526 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3527 $as_echo "$ac_try_echo") >&5
3528 (eval "$ac_compile") 2>conftest.er1
3529 ac_status=$?
3530 grep -v '^ *+' conftest.er1 >conftest.err
3531 rm -f conftest.er1
3532 cat conftest.err >&5
3533 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3534 (exit $ac_status); } && {
3535 test -z "$ac_cxx_werror_flag" ||
3536 test ! -s conftest.err
3537 } && test -s conftest.$ac_objext; then
3538 ac_compiler_gnu=yes
3539 else
3540 $as_echo "$as_me: failed program was:" >&5
3541 sed 's/^/| /' conftest.$ac_ext >&5
3542
3543 ac_compiler_gnu=no
3544 fi
3545
3546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3547 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3548
3549 fi
3550 { $as_echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3551 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3552 if test $ac_compiler_gnu = yes; then
3553 GXX=yes
3554 else
3555 GXX=
3556 fi
3557 ac_test_CXXFLAGS=${CXXFLAGS+set}
3558 ac_save_CXXFLAGS=$CXXFLAGS
3559 { $as_echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3560 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3561 if test "${ac_cv_prog_cxx_g+set}" = set; then
3562 $as_echo_n "(cached) " >&6
3563 else
3564 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3565 ac_cxx_werror_flag=yes
3566 ac_cv_prog_cxx_g=no
3567 CXXFLAGS="-g"
3568 cat >conftest.$ac_ext <<_ACEOF
3569 /* confdefs.h. */
3570 _ACEOF
3571 cat confdefs.h >>conftest.$ac_ext
3572 cat >>conftest.$ac_ext <<_ACEOF
3573 /* end confdefs.h. */
3574
3575 int
3576 main ()
3577 {
3578
3579 ;
3580 return 0;
3581 }
3582 _ACEOF
3583 rm -f conftest.$ac_objext
3584 if { (ac_try="$ac_compile"
3585 case "(($ac_try" in
3586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3587 *) ac_try_echo=$ac_try;;
3588 esac
3589 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3590 $as_echo "$ac_try_echo") >&5
3591 (eval "$ac_compile") 2>conftest.er1
3592 ac_status=$?
3593 grep -v '^ *+' conftest.er1 >conftest.err
3594 rm -f conftest.er1
3595 cat conftest.err >&5
3596 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3597 (exit $ac_status); } && {
3598 test -z "$ac_cxx_werror_flag" ||
3599 test ! -s conftest.err
3600 } && test -s conftest.$ac_objext; then
3601 ac_cv_prog_cxx_g=yes
3602 else
3603 $as_echo "$as_me: failed program was:" >&5
3604 sed 's/^/| /' conftest.$ac_ext >&5
3605
3606 CXXFLAGS=""
3607 cat >conftest.$ac_ext <<_ACEOF
3608 /* confdefs.h. */
3609 _ACEOF
3610 cat confdefs.h >>conftest.$ac_ext
3611 cat >>conftest.$ac_ext <<_ACEOF
3612 /* end confdefs.h. */
3613
3614 int
3615 main ()
3616 {
3617
3618 ;
3619 return 0;
3620 }
3621 _ACEOF
3622 rm -f conftest.$ac_objext
3623 if { (ac_try="$ac_compile"
3624 case "(($ac_try" in
3625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3626 *) ac_try_echo=$ac_try;;
3627 esac
3628 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3629 $as_echo "$ac_try_echo") >&5
3630 (eval "$ac_compile") 2>conftest.er1
3631 ac_status=$?
3632 grep -v '^ *+' conftest.er1 >conftest.err
3633 rm -f conftest.er1
3634 cat conftest.err >&5
3635 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); } && {
3637 test -z "$ac_cxx_werror_flag" ||
3638 test ! -s conftest.err
3639 } && test -s conftest.$ac_objext; then
3640 :
3641 else
3642 $as_echo "$as_me: failed program was:" >&5
3643 sed 's/^/| /' conftest.$ac_ext >&5
3644
3645 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3646 CXXFLAGS="-g"
3647 cat >conftest.$ac_ext <<_ACEOF
3648 /* confdefs.h. */
3649 _ACEOF
3650 cat confdefs.h >>conftest.$ac_ext
3651 cat >>conftest.$ac_ext <<_ACEOF
3652 /* end confdefs.h. */
3653
3654 int
3655 main ()
3656 {
3657
3658 ;
3659 return 0;
3660 }
3661 _ACEOF
3662 rm -f conftest.$ac_objext
3663 if { (ac_try="$ac_compile"
3664 case "(($ac_try" in
3665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3666 *) ac_try_echo=$ac_try;;
3667 esac
3668 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3669 $as_echo "$ac_try_echo") >&5
3670 (eval "$ac_compile") 2>conftest.er1
3671 ac_status=$?
3672 grep -v '^ *+' conftest.er1 >conftest.err
3673 rm -f conftest.er1
3674 cat conftest.err >&5
3675 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); } && {
3677 test -z "$ac_cxx_werror_flag" ||
3678 test ! -s conftest.err
3679 } && test -s conftest.$ac_objext; then
3680 ac_cv_prog_cxx_g=yes
3681 else
3682 $as_echo "$as_me: failed program was:" >&5
3683 sed 's/^/| /' conftest.$ac_ext >&5
3684
3685
3686 fi
3687
3688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3689 fi
3690
3691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3692 fi
3693
3694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3695 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3696 fi
3697 { $as_echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3698 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3699 if test "$ac_test_CXXFLAGS" = set; then
3700 CXXFLAGS=$ac_save_CXXFLAGS
3701 elif test $ac_cv_prog_cxx_g = yes; then
3702 if test "$GXX" = yes; then
3703 CXXFLAGS="-g -O2"
3704 else
3705 CXXFLAGS="-g"
3706 fi
3707 else
3708 if test "$GXX" = yes; then
3709 CXXFLAGS="-O2"
3710 else
3711 CXXFLAGS=
3712 fi
3713 fi
3714 ac_ext=c
3715 ac_cpp='$CPP $CPPFLAGS'
3716 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3717 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3718 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3719
3720 if test -n "$ac_tool_prefix"; then
3721 # Extract the first word of "${ac_tool_prefix}cpp", so it can be a program name with args.
3722 set dummy ${ac_tool_prefix}cpp; ac_word=$2
3723 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CPPBIN+set}" = set; then
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -n "$CPPBIN"; then
3729 ac_cv_prog_CPPBIN="$CPPBIN" # Let the user override the test.
3730 else
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH
3733 do
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3738 ac_cv_prog_CPPBIN="${ac_tool_prefix}cpp"
3739 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3740 break 2
3741 fi
3742 done
3743 done
3744 IFS=$as_save_IFS
3745
3746 fi
3747 fi
3748 CPPBIN=$ac_cv_prog_CPPBIN
3749 if test -n "$CPPBIN"; then
3750 { $as_echo "$as_me:$LINENO: result: $CPPBIN" >&5
3751 $as_echo "$CPPBIN" >&6; }
3752 else
3753 { $as_echo "$as_me:$LINENO: result: no" >&5
3754 $as_echo "no" >&6; }
3755 fi
3756
3757
3758 fi
3759 if test -z "$ac_cv_prog_CPPBIN"; then
3760 ac_ct_CPPBIN=$CPPBIN
3761 # Extract the first word of "cpp", so it can be a program name with args.
3762 set dummy cpp; ac_word=$2
3763 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3764 $as_echo_n "checking for $ac_word... " >&6; }
3765 if test "${ac_cv_prog_ac_ct_CPPBIN+set}" = set; then
3766 $as_echo_n "(cached) " >&6
3767 else
3768 if test -n "$ac_ct_CPPBIN"; then
3769 ac_cv_prog_ac_ct_CPPBIN="$ac_ct_CPPBIN" # Let the user override the test.
3770 else
3771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 for as_dir in $PATH
3773 do
3774 IFS=$as_save_IFS
3775 test -z "$as_dir" && as_dir=.
3776 for ac_exec_ext in '' $ac_executable_extensions; do
3777 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3778 ac_cv_prog_ac_ct_CPPBIN="cpp"
3779 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3780 break 2
3781 fi
3782 done
3783 done
3784 IFS=$as_save_IFS
3785
3786 fi
3787 fi
3788 ac_ct_CPPBIN=$ac_cv_prog_ac_ct_CPPBIN
3789 if test -n "$ac_ct_CPPBIN"; then
3790 { $as_echo "$as_me:$LINENO: result: $ac_ct_CPPBIN" >&5
3791 $as_echo "$ac_ct_CPPBIN" >&6; }
3792 else
3793 { $as_echo "$as_me:$LINENO: result: no" >&5
3794 $as_echo "no" >&6; }
3795 fi
3796
3797 if test "x$ac_ct_CPPBIN" = x; then
3798 CPPBIN="cpp"
3799 else
3800 case $cross_compiling:$ac_tool_warned in
3801 yes:)
3802 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
3803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3804 ac_tool_warned=yes ;;
3805 esac
3806 CPPBIN=$ac_ct_CPPBIN
3807 fi
3808 else
3809 CPPBIN="$ac_cv_prog_CPPBIN"
3810 fi
3811
3812
3813 case $host in
3814 x86_64*)
3815 if test "x$enable_win64" != "xyes" -a "$cross_compiling" != "yes"
3816 then
3817 CC="$CC -m32"
3818 CXX="$CXX -m32"
3819 { $as_echo "$as_me:$LINENO: checking whether $CC works" >&5
3820 $as_echo_n "checking whether $CC works... " >&6; }
3821
3822 cat >conftest.$ac_ext <<_ACEOF
3823 /* confdefs.h. */
3824 _ACEOF
3825 cat confdefs.h >>conftest.$ac_ext
3826 cat >>conftest.$ac_ext <<_ACEOF
3827 /* end confdefs.h. */
3828
3829 int
3830 main ()
3831 {
3832
3833 ;
3834 return 0;
3835 }
3836 _ACEOF
3837 rm -f conftest.$ac_objext conftest$ac_exeext
3838 if { (ac_try="$ac_link"
3839 case "(($ac_try" in
3840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3841 *) ac_try_echo=$ac_try;;
3842 esac
3843 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
3844 $as_echo "$ac_try_echo") >&5
3845 (eval "$ac_link") 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } && {
3852 test -z "$ac_c_werror_flag" ||
3853 test ! -s conftest.err
3854 } && test -s conftest$ac_exeext && {
3855 test "$cross_compiling" = yes ||
3856 $as_test_x conftest$ac_exeext
3857 }; then
3858 { $as_echo "$as_me:$LINENO: result: yes" >&5
3859 $as_echo "yes" >&6; }
3860 else
3861 $as_echo "$as_me: failed program was:" >&5
3862 sed 's/^/| /' conftest.$ac_ext >&5
3863
3864 { $as_echo "$as_me:$LINENO: result: no" >&5
3865 $as_echo "no" >&6; }
3866 { { $as_echo "$as_me:$LINENO: error: Cannot build a 32-bit program, you need to install 32-bit development libraries." >&5
3867 $as_echo "$as_me: error: Cannot build a 32-bit program, you need to install 32-bit development libraries." >&2;}
3868 { (exit 1); exit 1; }; }
3869 fi
3870
3871 rm -rf conftest.dSYM
3872 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3873 conftest$ac_exeext conftest.$ac_ext
3874 LD="${LD:-ld} -m elf_i386"
3875 AS="${AS:-as} --32"
3876 host_cpu="i386"
3877 notice_platform="32-bit "
3878 TARGETFLAGS="-m32"
3879
3880 else
3881 TARGETFLAGS="-m64"
3882
3883 fi
3884 ;;
3885 esac
3886
3887 case $host_cpu in
3888 *i[3456789]86*)
3889 enable_win16=${enable_win16:-yes}
3890 ;;
3891 *)
3892 enable_win16=${enable_win16:-no}
3893 enable_ifsmgr_vxd=${enable_ifsmgr_vxd:-no}
3894 enable_mmdevldr_vxd=${enable_mmdevldr_vxd:-no}
3895 enable_monodebg_vxd=${enable_monodebg_vxd:-no}
3896 enable_vdhcp_vxd=${enable_vdhcp_vxd:-no}
3897 enable_vmm_vxd=${enable_vmm_vxd:-no}
3898 enable_vnbt_vxd=${enable_vnbt_vxd:-no}
3899 enable_vnetbios_vxd=${enable_vnetbios_vxd:-no}
3900 enable_vtdapi_vxd=${enable_vtdapi_vxd:-no}
3901 enable_vwin32_vxd=${enable_vwin32_vxd:-no}
3902 enable_w32skrnl=${enable_w32skrnl:-no}
3903 enable_winedos=${enable_winedos:-no}
3904 enable_winevdm=${enable_winevdm:-no}
3905 ;;
3906 esac
3907
3908 WIN16_FILES="\$(WIN16_FILES)"
3909
3910 WIN16_INSTALL="\$(WIN16_INSTALL)"
3911
3912 if test "x$enable_win16" != "xyes"
3913 then
3914 WIN16_FILES=""
3915 WIN16_INSTALL=""
3916 fi
3917
3918 { $as_echo "$as_me:$LINENO: checking for the directory containing the Wine tools" >&5
3919 $as_echo_n "checking for the directory containing the Wine tools... " >&6; }
3920 if test "${wine_cv_toolsdir+set}" = set; then
3921 $as_echo_n "(cached) " >&6
3922 else
3923 if test -z "$with_wine_tools"; then
3924 if test "$cross_compiling" = "yes"; then
3925 { { $as_echo "$as_me:$LINENO: error: you must use the --with-wine-tools option when cross-compiling." >&5
3926 $as_echo "$as_me: error: you must use the --with-wine-tools option when cross-compiling." >&2;}
3927 { (exit 1); exit 1; }; }
3928 else
3929 wine_cv_toolsdir="\$(TOPOBJDIR)"
3930 fi
3931 elif test -d "$with_wine_tools/tools/winebuild"; then
3932 case $with_wine_tools in
3933 /*) wine_cv_toolsdir="$with_wine_tools" ;;
3934 *) wine_cv_toolsdir="\$(TOPOBJDIR)/$with_wine_tools" ;;
3935 esac
3936 else
3937 { { $as_echo "$as_me:$LINENO: error: could not find Wine tools in $with_wine_tools." >&5
3938 $as_echo "$as_me: error: could not find Wine tools in $with_wine_tools." >&2;}
3939 { (exit 1); exit 1; }; }
3940 fi
3941 fi
3942 { $as_echo "$as_me:$LINENO: result: $wine_cv_toolsdir" >&5
3943 $as_echo "$wine_cv_toolsdir" >&6; }
3944 TOOLSDIR=$wine_cv_toolsdir
3945
3946 if test -n "$host_alias"
3947 then
3948 TARGETFLAGS="-b $host_alias $TARGETFLAGS"
3949
3950 fi
3951
3952 for ac_prog in flex
3953 do
3954 # Extract the first word of "$ac_prog", so it can be a program name with args.
3955 set dummy $ac_prog; ac_word=$2
3956 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 $as_echo_n "checking for $ac_word... " >&6; }
3958 if test "${ac_cv_prog_FLEX+set}" = set; then
3959 $as_echo_n "(cached) " >&6
3960 else
3961 if test -n "$FLEX"; then
3962 ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3966 do
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3971 ac_cv_prog_FLEX="$ac_prog"
3972 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3974 fi
3975 done
3976 done
3977 IFS=$as_save_IFS
3978
3979 fi
3980 fi
3981 FLEX=$ac_cv_prog_FLEX
3982 if test -n "$FLEX"; then
3983 { $as_echo "$as_me:$LINENO: result: $FLEX" >&5
3984 $as_echo "$FLEX" >&6; }
3985 else
3986 { $as_echo "$as_me:$LINENO: result: no" >&5
3987 $as_echo "no" >&6; }
3988 fi
3989
3990
3991 test -n "$FLEX" && break
3992 done
3993 test -n "$FLEX" || FLEX="none"
3994
3995 if test "$FLEX" = "none"
3996 then
3997 { { $as_echo "$as_me:$LINENO: error: no suitable flex found. Please install the 'flex' package." >&5
3998 $as_echo "$as_me: error: no suitable flex found. Please install the 'flex' package." >&2;}
3999 { (exit 1); exit 1; }; }
4000 fi
4001
4002 for ac_prog in bison
4003 do
4004 # Extract the first word of "$ac_prog", so it can be a program name with args.
4005 set dummy $ac_prog; ac_word=$2
4006 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4007 $as_echo_n "checking for $ac_word... " >&6; }
4008 if test "${ac_cv_prog_BISON+set}" = set; then
4009 $as_echo_n "(cached) " >&6
4010 else
4011 if test -n "$BISON"; then
4012 ac_cv_prog_BISON="$BISON" # Let the user override the test.
4013 else
4014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015 for as_dir in $PATH
4016 do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4021 ac_cv_prog_BISON="$ac_prog"
4022 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025 done
4026 done
4027 IFS=$as_save_IFS
4028
4029 fi
4030 fi
4031 BISON=$ac_cv_prog_BISON
4032 if test -n "$BISON"; then
4033 { $as_echo "$as_me:$LINENO: result: $BISON" >&5
4034 $as_echo "$BISON" >&6; }
4035 else
4036 { $as_echo "$as_me:$LINENO: result: no" >&5
4037 $as_echo "no" >&6; }
4038 fi
4039
4040
4041 test -n "$BISON" && break
4042 done
4043 test -n "$BISON" || BISON="none"
4044
4045 if test "$BISON" = "none"
4046 then
4047 { { $as_echo "$as_me:$LINENO: error: no suitable bison found. Please install the 'bison' package." >&5
4048 $as_echo "$as_me: error: no suitable bison found. Please install the 'bison' package." >&2;}
4049 { (exit 1); exit 1; }; }
4050 fi
4051
4052 if test -n "$ac_tool_prefix"; then
4053 for ac_prog in gas as
4054 do
4055 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4056 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4057 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4058 $as_echo_n "checking for $ac_word... " >&6; }
4059 if test "${ac_cv_prog_AS+set}" = set; then
4060 $as_echo_n "(cached) " >&6
4061 else
4062 if test -n "$AS"; then
4063 ac_cv_prog_AS="$AS" # Let the user override the test.
4064 else
4065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4066 for as_dir in $PATH
4067 do
4068 IFS=$as_save_IFS
4069 test -z "$as_dir" && as_dir=.
4070 for ac_exec_ext in '' $ac_executable_extensions; do
4071 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4072 ac_cv_prog_AS="$ac_tool_prefix$ac_prog"
4073 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4074 break 2
4075 fi
4076 done
4077 done
4078 IFS=$as_save_IFS
4079
4080 fi
4081 fi
4082 AS=$ac_cv_prog_AS
4083 if test -n "$AS"; then
4084 { $as_echo "$as_me:$LINENO: result: $AS" >&5
4085 $as_echo "$AS" >&6; }
4086 else
4087 { $as_echo "$as_me:$LINENO: result: no" >&5
4088 $as_echo "no" >&6; }
4089 fi
4090
4091
4092 test -n "$AS" && break
4093 done
4094 fi
4095 if test -z "$AS"; then
4096 ac_ct_AS=$AS
4097 for ac_prog in gas as
4098 do
4099 # Extract the first word of "$ac_prog", so it can be a program name with args.
4100 set dummy $ac_prog; ac_word=$2
4101 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4102 $as_echo_n "checking for $ac_word... " >&6; }
4103 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
4104 $as_echo_n "(cached) " >&6
4105 else
4106 if test -n "$ac_ct_AS"; then
4107 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4108 else
4109 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4110 for as_dir in $PATH
4111 do
4112 IFS=$as_save_IFS
4113 test -z "$as_dir" && as_dir=.
4114 for ac_exec_ext in '' $ac_executable_extensions; do
4115 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4116 ac_cv_prog_ac_ct_AS="$ac_prog"
4117 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4118 break 2
4119 fi
4120 done
4121 done
4122 IFS=$as_save_IFS
4123
4124 fi
4125 fi
4126 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4127 if test -n "$ac_ct_AS"; then
4128 { $as_echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
4129 $as_echo "$ac_ct_AS" >&6; }
4130 else
4131 { $as_echo "$as_me:$LINENO: result: no" >&5
4132 $as_echo "no" >&6; }
4133 fi
4134
4135
4136 test -n "$ac_ct_AS" && break
4137 done
4138
4139 if test "x$ac_ct_AS" = x; then
4140 AS="as"
4141 else
4142 case $cross_compiling:$ac_tool_warned in
4143 yes:)
4144 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4145 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4146 ac_tool_warned=yes ;;
4147 esac
4148 AS=$ac_ct_AS
4149 fi
4150 fi
4151
4152 if test -n "$ac_tool_prefix"; then
4153 for ac_prog in ld gld
4154 do
4155 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4156 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4157 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4158 $as_echo_n "checking for $ac_word... " >&6; }
4159 if test "${ac_cv_prog_LD+set}" = set; then
4160 $as_echo_n "(cached) " >&6
4161 else
4162 if test -n "$LD"; then
4163 ac_cv_prog_LD="$LD" # Let the user override the test.
4164 else
4165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4166 for as_dir in $PATH
4167 do
4168 IFS=$as_save_IFS
4169 test -z "$as_dir" && as_dir=.
4170 for ac_exec_ext in '' $ac_executable_extensions; do
4171 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4172 ac_cv_prog_LD="$ac_tool_prefix$ac_prog"
4173 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4174 break 2
4175 fi
4176 done
4177 done
4178 IFS=$as_save_IFS
4179
4180 fi
4181 fi
4182 LD=$ac_cv_prog_LD
4183 if test -n "$LD"; then
4184 { $as_echo "$as_me:$LINENO: result: $LD" >&5
4185 $as_echo "$LD" >&6; }
4186 else
4187 { $as_echo "$as_me:$LINENO: result: no" >&5
4188 $as_echo "no" >&6; }
4189 fi
4190
4191
4192 test -n "$LD" && break
4193 done
4194 fi
4195 if test -z "$LD"; then
4196 ac_ct_LD=$LD
4197 for ac_prog in ld gld
4198 do
4199 # Extract the first word of "$ac_prog", so it can be a program name with args.
4200 set dummy $ac_prog; ac_word=$2
4201 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4202 $as_echo_n "checking for $ac_word... " >&6; }
4203 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
4204 $as_echo_n "(cached) " >&6
4205 else
4206 if test -n "$ac_ct_LD"; then
4207 ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
4208 else
4209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4210 for as_dir in $PATH
4211 do
4212 IFS=$as_save_IFS
4213 test -z "$as_dir" && as_dir=.
4214 for ac_exec_ext in '' $ac_executable_extensions; do
4215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4216 ac_cv_prog_ac_ct_LD="$ac_prog"
4217 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4218 break 2
4219 fi
4220 done
4221 done
4222 IFS=$as_save_IFS
4223
4224 fi
4225 fi
4226 ac_ct_LD=$ac_cv_prog_ac_ct_LD
4227 if test -n "$ac_ct_LD"; then
4228 { $as_echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
4229 $as_echo "$ac_ct_LD" >&6; }
4230 else
4231 { $as_echo "$as_me:$LINENO: result: no" >&5
4232 $as_echo "no" >&6; }
4233 fi
4234
4235
4236 test -n "$ac_ct_LD" && break
4237 done
4238
4239 if test "x$ac_ct_LD" = x; then
4240 LD="ld"
4241 else
4242 case $cross_compiling:$ac_tool_warned in
4243 yes:)
4244 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4246 ac_tool_warned=yes ;;
4247 esac
4248 LD=$ac_ct_LD
4249 fi
4250 fi
4251
4252 if test -n "$ac_tool_prefix"; then
4253 for ac_prog in nm gnm
4254 do
4255 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4256 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4257 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4258 $as_echo_n "checking for $ac_word... " >&6; }
4259 if test "${ac_cv_prog_NM+set}" = set; then
4260 $as_echo_n "(cached) " >&6
4261 else
4262 if test -n "$NM"; then
4263 ac_cv_prog_NM="$NM" # Let the user override the test.
4264 else
4265 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4266 for as_dir in $PATH
4267 do
4268 IFS=$as_save_IFS
4269 test -z "$as_dir" && as_dir=.
4270 for ac_exec_ext in '' $ac_executable_extensions; do
4271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4272 ac_cv_prog_NM="$ac_tool_prefix$ac_prog"
4273 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4274 break 2
4275 fi
4276 done
4277 done
4278 IFS=$as_save_IFS
4279
4280 fi
4281 fi
4282 NM=$ac_cv_prog_NM
4283 if test -n "$NM"; then
4284 { $as_echo "$as_me:$LINENO: result: $NM" >&5
4285 $as_echo "$NM" >&6; }
4286 else
4287 { $as_echo "$as_me:$LINENO: result: no" >&5
4288 $as_echo "no" >&6; }
4289 fi
4290
4291
4292 test -n "$NM" && break
4293 done
4294 fi
4295 if test -z "$NM"; then
4296 ac_ct_NM=$NM
4297 for ac_prog in nm gnm
4298 do
4299 # Extract the first word of "$ac_prog", so it can be a program name with args.
4300 set dummy $ac_prog; ac_word=$2
4301 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4302 $as_echo_n "checking for $ac_word... " >&6; }
4303 if test "${ac_cv_prog_ac_ct_NM+set}" = set; then
4304 $as_echo_n "(cached) " >&6
4305 else
4306 if test -n "$ac_ct_NM"; then
4307 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
4308 else
4309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4310 for as_dir in $PATH
4311 do
4312 IFS=$as_save_IFS
4313 test -z "$as_dir" && as_dir=.
4314 for ac_exec_ext in '' $ac_executable_extensions; do
4315 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4316 ac_cv_prog_ac_ct_NM="$ac_prog"
4317 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4318 break 2
4319 fi
4320 done
4321 done
4322 IFS=$as_save_IFS
4323
4324 fi
4325 fi
4326 ac_ct_NM=$ac_cv_prog_ac_ct_NM
4327 if test -n "$ac_ct_NM"; then
4328 { $as_echo "$as_me:$LINENO: result: $ac_ct_NM" >&5
4329 $as_echo "$ac_ct_NM" >&6; }
4330 else
4331 { $as_echo "$as_me:$LINENO: result: no" >&5
4332 $as_echo "no" >&6; }
4333 fi
4334
4335
4336 test -n "$ac_ct_NM" && break
4337 done
4338
4339 if test "x$ac_ct_NM" = x; then
4340 NM="nm"
4341 else
4342 case $cross_compiling:$ac_tool_warned in
4343 yes:)
4344 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4345 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4346 ac_tool_warned=yes ;;
4347 esac
4348 NM=$ac_ct_NM
4349 fi
4350 fi
4351
4352 if test -n "$ac_tool_prefix"; then
4353 for ac_prog in ar gar
4354 do
4355 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4356 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4357 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4358 $as_echo_n "checking for $ac_word... " >&6; }
4359 if test "${ac_cv_prog_AR+set}" = set; then
4360 $as_echo_n "(cached) " >&6
4361 else
4362 if test -n "$AR"; then
4363 ac_cv_prog_AR="$AR" # Let the user override the test.
4364 else
4365 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4366 for as_dir in $PATH
4367 do
4368 IFS=$as_save_IFS
4369 test -z "$as_dir" && as_dir=.
4370 for ac_exec_ext in '' $ac_executable_extensions; do
4371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4372 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
4373 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4374 break 2
4375 fi
4376 done
4377 done
4378 IFS=$as_save_IFS
4379
4380 fi
4381 fi
4382 AR=$ac_cv_prog_AR
4383 if test -n "$AR"; then
4384 { $as_echo "$as_me:$LINENO: result: $AR" >&5
4385 $as_echo "$AR" >&6; }
4386 else
4387 { $as_echo "$as_me:$LINENO: result: no" >&5
4388 $as_echo "no" >&6; }
4389 fi
4390
4391
4392 test -n "$AR" && break
4393 done
4394 fi
4395 if test -z "$AR"; then
4396 ac_ct_AR=$AR
4397 for ac_prog in ar gar
4398 do
4399 # Extract the first word of "$ac_prog", so it can be a program name with args.
4400 set dummy $ac_prog; ac_word=$2
4401 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4402 $as_echo_n "checking for $ac_word... " >&6; }
4403 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
4404 $as_echo_n "(cached) " >&6
4405 else
4406 if test -n "$ac_ct_AR"; then
4407 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4408 else
4409 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4410 for as_dir in $PATH
4411 do
4412 IFS=$as_save_IFS
4413 test -z "$as_dir" && as_dir=.
4414 for ac_exec_ext in '' $ac_executable_extensions; do
4415 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4416 ac_cv_prog_ac_ct_AR="$ac_prog"
4417 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4418 break 2
4419 fi
4420 done
4421 done
4422 IFS=$as_save_IFS
4423
4424 fi
4425 fi
4426 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4427 if test -n "$ac_ct_AR"; then
4428 { $as_echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
4429 $as_echo "$ac_ct_AR" >&6; }
4430 else
4431 { $as_echo "$as_me:$LINENO: result: no" >&5
4432 $as_echo "no" >&6; }
4433 fi
4434
4435
4436 test -n "$ac_ct_AR" && break
4437 done
4438
4439 if test "x$ac_ct_AR" = x; then
4440 AR="ar"
4441 else
4442 case $cross_compiling:$ac_tool_warned in
4443 yes:)
4444 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4445 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4446 ac_tool_warned=yes ;;
4447 esac
4448 AR=$ac_ct_AR
4449 fi
4450 fi
4451
4452 ARFLAGS=rc
4453
4454 if test -n "$ac_tool_prefix"; then
4455 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4456 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4457 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4458 $as_echo_n "checking for $ac_word... " >&6; }
4459 if test "${ac_cv_prog_RANLIB+set}" = set; then
4460 $as_echo_n "(cached) " >&6
4461 else
4462 if test -n "$RANLIB"; then
4463 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4464 else
4465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4466 for as_dir in $PATH
4467 do
4468 IFS=$as_save_IFS
4469 test -z "$as_dir" && as_dir=.
4470 for ac_exec_ext in '' $ac_executable_extensions; do
4471 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4472 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4473 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4474 break 2
4475 fi
4476 done
4477 done
4478 IFS=$as_save_IFS
4479
4480 fi
4481 fi
4482 RANLIB=$ac_cv_prog_RANLIB
4483 if test -n "$RANLIB"; then
4484 { $as_echo "$as_me:$LINENO: result: $RANLIB" >&5
4485 $as_echo "$RANLIB" >&6; }
4486 else
4487 { $as_echo "$as_me:$LINENO: result: no" >&5
4488 $as_echo "no" >&6; }
4489 fi
4490
4491
4492 fi
4493 if test -z "$ac_cv_prog_RANLIB"; then
4494 ac_ct_RANLIB=$RANLIB
4495 # Extract the first word of "ranlib", so it can be a program name with args.
4496 set dummy ranlib; ac_word=$2
4497 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4498 $as_echo_n "checking for $ac_word... " >&6; }
4499 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4500 $as_echo_n "(cached) " >&6
4501 else
4502 if test -n "$ac_ct_RANLIB"; then
4503 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4504 else
4505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4506 for as_dir in $PATH
4507 do
4508 IFS=$as_save_IFS
4509 test -z "$as_dir" && as_dir=.
4510 for ac_exec_ext in '' $ac_executable_extensions; do
4511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4512 ac_cv_prog_ac_ct_RANLIB="ranlib"
4513 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4514 break 2
4515 fi
4516 done
4517 done
4518 IFS=$as_save_IFS
4519
4520 fi
4521 fi
4522 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4523 if test -n "$ac_ct_RANLIB"; then
4524 { $as_echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4525 $as_echo "$ac_ct_RANLIB" >&6; }
4526 else
4527 { $as_echo "$as_me:$LINENO: result: no" >&5
4528 $as_echo "no" >&6; }
4529 fi
4530
4531 if test "x$ac_ct_RANLIB" = x; then
4532 RANLIB=":"
4533 else
4534 case $cross_compiling:$ac_tool_warned in
4535 yes:)
4536 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4537 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4538 ac_tool_warned=yes ;;
4539 esac
4540 RANLIB=$ac_ct_RANLIB
4541 fi
4542 else
4543 RANLIB="$ac_cv_prog_RANLIB"
4544 fi
4545
4546 if test -n "$ac_tool_prefix"; then
4547 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4548 set dummy ${ac_tool_prefix}strip; ac_word=$2
4549 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4550 $as_echo_n "checking for $ac_word... " >&6; }
4551 if test "${ac_cv_prog_STRIP+set}" = set; then
4552 $as_echo_n "(cached) " >&6
4553 else
4554 if test -n "$STRIP"; then
4555 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4556 else
4557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4558 for as_dir in $PATH
4559 do
4560 IFS=$as_save_IFS
4561 test -z "$as_dir" && as_dir=.
4562 for ac_exec_ext in '' $ac_executable_extensions; do
4563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4564 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4565 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4566 break 2
4567 fi
4568 done
4569 done
4570 IFS=$as_save_IFS
4571
4572 fi
4573 fi
4574 STRIP=$ac_cv_prog_STRIP
4575 if test -n "$STRIP"; then
4576 { $as_echo "$as_me:$LINENO: result: $STRIP" >&5
4577 $as_echo "$STRIP" >&6; }
4578 else
4579 { $as_echo "$as_me:$LINENO: result: no" >&5
4580 $as_echo "no" >&6; }
4581 fi
4582
4583
4584 fi
4585 if test -z "$ac_cv_prog_STRIP"; then
4586 ac_ct_STRIP=$STRIP
4587 # Extract the first word of "strip", so it can be a program name with args.
4588 set dummy strip; ac_word=$2
4589 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4590 $as_echo_n "checking for $ac_word... " >&6; }
4591 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
4592 $as_echo_n "(cached) " >&6
4593 else
4594 if test -n "$ac_ct_STRIP"; then
4595 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4596 else
4597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4598 for as_dir in $PATH
4599 do
4600 IFS=$as_save_IFS
4601 test -z "$as_dir" && as_dir=.
4602 for ac_exec_ext in '' $ac_executable_extensions; do
4603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4604 ac_cv_prog_ac_ct_STRIP="strip"
4605 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4606 break 2
4607 fi
4608 done
4609 done
4610 IFS=$as_save_IFS
4611
4612 fi
4613 fi
4614 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4615 if test -n "$ac_ct_STRIP"; then
4616 { $as_echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
4617 $as_echo "$ac_ct_STRIP" >&6; }
4618 else
4619 { $as_echo "$as_me:$LINENO: result: no" >&5
4620 $as_echo "no" >&6; }
4621 fi
4622
4623 if test "x$ac_ct_STRIP" = x; then
4624 STRIP="strip"
4625 else
4626 case $cross_compiling:$ac_tool_warned in
4627 yes:)
4628 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4629 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4630 ac_tool_warned=yes ;;
4631 esac
4632 STRIP=$ac_ct_STRIP
4633 fi
4634 else
4635 STRIP="$ac_cv_prog_STRIP"
4636 fi
4637
4638 if test -n "$ac_tool_prefix"; then
4639 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4640 set dummy ${ac_tool_prefix}windres; ac_word=$2
4641 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4642 $as_echo_n "checking for $ac_word... " >&6; }
4643 if test "${ac_cv_prog_WINDRES+set}" = set; then
4644 $as_echo_n "(cached) " >&6
4645 else
4646 if test -n "$WINDRES"; then
4647 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4648 else
4649 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4650 for as_dir in $PATH
4651 do
4652 IFS=$as_save_IFS
4653 test -z "$as_dir" && as_dir=.
4654 for ac_exec_ext in '' $ac_executable_extensions; do
4655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4656 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4657 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4658 break 2
4659 fi
4660 done
4661 done
4662 IFS=$as_save_IFS
4663
4664 fi
4665 fi
4666 WINDRES=$ac_cv_prog_WINDRES
4667 if test -n "$WINDRES"; then
4668 { $as_echo "$as_me:$LINENO: result: $WINDRES" >&5
4669 $as_echo "$WINDRES" >&6; }
4670 else
4671 { $as_echo "$as_me:$LINENO: result: no" >&5
4672 $as_echo "no" >&6; }
4673 fi
4674
4675
4676 fi
4677 if test -z "$ac_cv_prog_WINDRES"; then
4678 ac_ct_WINDRES=$WINDRES
4679 # Extract the first word of "windres", so it can be a program name with args.
4680 set dummy windres; ac_word=$2
4681 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4682 $as_echo_n "checking for $ac_word... " >&6; }
4683 if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then
4684 $as_echo_n "(cached) " >&6
4685 else
4686 if test -n "$ac_ct_WINDRES"; then
4687 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
4688 else
4689 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 for as_dir in $PATH
4691 do
4692 IFS=$as_save_IFS
4693 test -z "$as_dir" && as_dir=.
4694 for ac_exec_ext in '' $ac_executable_extensions; do
4695 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4696 ac_cv_prog_ac_ct_WINDRES="windres"
4697 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4698 break 2
4699 fi
4700 done
4701 done
4702 IFS=$as_save_IFS
4703
4704 fi
4705 fi
4706 ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
4707 if test -n "$ac_ct_WINDRES"; then
4708 { $as_echo "$as_me:$LINENO: result: $ac_ct_WINDRES" >&5
4709 $as_echo "$ac_ct_WINDRES" >&6; }
4710 else
4711 { $as_echo "$as_me:$LINENO: result: no" >&5
4712 $as_echo "no" >&6; }
4713 fi
4714
4715 if test "x$ac_ct_WINDRES" = x; then
4716 WINDRES="false"
4717 else
4718 case $cross_compiling:$ac_tool_warned in
4719 yes:)
4720 { $as_echo "$as_me:$LINENO: WARNING: using cross tools not prefixed with host triplet" >&5
4721 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4722 ac_tool_warned=yes ;;
4723 esac
4724 WINDRES=$ac_ct_WINDRES
4725 fi
4726 else
4727 WINDRES="$ac_cv_prog_WINDRES"
4728 fi
4729
4730 { $as_echo "$as_me:$LINENO: checking whether ln -s works" >&5
4731 $as_echo_n "checking whether ln -s works... " >&6; }
4732 LN_S=$as_ln_s
4733 if test "$LN_S" = "ln -s"; then
4734 { $as_echo "$as_me:$LINENO: result: yes" >&5
4735 $as_echo "yes" >&6; }
4736 else
4737 { $as_echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4738 $as_echo "no, using $LN_S" >&6; }
4739 fi
4740
4741 { $as_echo "$as_me:$LINENO: checking whether ln works" >&5
4742 $as_echo_n "checking whether ln works... " >&6; }
4743 rm -f conf$$ conf$$.file
4744 echo >conf$$.file
4745 if ln conf$$.file conf$$ 2>/dev/null; then
4746 LN=ln
4747
4748 { $as_echo "$as_me:$LINENO: result: yes" >&5
4749 $as_echo "yes" >&6; }
4750 else
4751 LN="cp -p"
4752
4753 { $as_echo "$as_me:$LINENO: result: no, using $LN" >&5
4754 $as_echo "no, using $LN" >&6; }
4755 fi
4756 rm -f conf$$ conf$$.file
4757 { $as_echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4758 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4759 if test "${ac_cv_path_GREP+set}" = set; then
4760 $as_echo_n "(cached) " >&6
4761 else
4762 if test -z "$GREP"; then
4763 ac_path_GREP_found=false
4764 # Loop through the user's path and test for each of PROGNAME-LIST
4765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4766 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4767 do
4768 IFS=$as_save_IFS
4769 test -z "$as_dir" && as_dir=.
4770 for ac_prog in grep ggrep; do
4771 for ac_exec_ext in '' $ac_executable_extensions; do
4772 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4773 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4774 # Check for GNU ac_path_GREP and select it if it is found.
4775 # Check for GNU $ac_path_GREP
4776 case `"$ac_path_GREP" --version 2>&1` in
4777 *GNU*)
4778 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4779 *)
4780 ac_count=0
4781 $as_echo_n 0123456789 >"conftest.in"
4782 while :
4783 do
4784 cat "conftest.in" "conftest.in" >"conftest.tmp"
4785 mv "conftest.tmp" "conftest.in"
4786 cp "conftest.in" "conftest.nl"
4787 $as_echo 'GREP' >> "conftest.nl"
4788 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4789 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4790 ac_count=`expr $ac_count + 1`
4791 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4792 # Best one so far, save it but keep looking for a better one
4793 ac_cv_path_GREP="$ac_path_GREP"
4794 ac_path_GREP_max=$ac_count
4795 fi
4796 # 10*(2^10) chars as input seems more than enough
4797 test $ac_count -gt 10 && break
4798 done
4799 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4800 esac
4801
4802 $ac_path_GREP_found && break 3
4803 done
4804 done
4805 done
4806 IFS=$as_save_IFS
4807 if test -z "$ac_cv_path_GREP"; then
4808 { { $as_echo "$as_me:$LINENO: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4809 $as_echo "$as_me: error: no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4810 { (exit 1); exit 1; }; }
4811 fi
4812 else
4813 ac_cv_path_GREP=$GREP
4814 fi
4815
4816 fi
4817 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4818 $as_echo "$ac_cv_path_GREP" >&6; }
4819 GREP="$ac_cv_path_GREP"
4820
4821
4822 { $as_echo "$as_me:$LINENO: checking for egrep" >&5
4823 $as_echo_n "checking for egrep... " >&6; }
4824 if test "${ac_cv_path_EGREP+set}" = set; then
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4828 then ac_cv_path_EGREP="$GREP -E"
4829 else
4830 if test -z "$EGREP"; then
4831 ac_path_EGREP_found=false
4832 # Loop through the user's path and test for each of PROGNAME-LIST
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4835 do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_prog in egrep; do
4839 for ac_exec_ext in '' $ac_executable_extensions; do
4840 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4841 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4842 # Check for GNU ac_path_EGREP and select it if it is found.
4843 # Check for GNU $ac_path_EGREP
4844 case `"$ac_path_EGREP" --version 2>&1` in
4845 *GNU*)
4846 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4847 *)
4848 ac_count=0
4849 $as_echo_n 0123456789 >"conftest.in"
4850 while :
4851 do
4852 cat "conftest.in" "conftest.in" >"conftest.tmp"
4853 mv "conftest.tmp" "conftest.in"
4854 cp "conftest.in" "conftest.nl"
4855 $as_echo 'EGREP' >> "conftest.nl"
4856 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4857 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4858 ac_count=`expr $ac_count + 1`
4859 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4860 # Best one so far, save it but keep looking for a better one
4861 ac_cv_path_EGREP="$ac_path_EGREP"
4862 ac_path_EGREP_max=$ac_count
4863 fi
4864 # 10*(2^10) chars as input seems more than enough
4865 test $ac_count -gt 10 && break
4866 done
4867 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4868 esac
4869
4870 $ac_path_EGREP_found && break 3
4871 done
4872 done
4873 done
4874 IFS=$as_save_IFS
4875 if test -z "$ac_cv_path_EGREP"; then
4876 { { $as_echo "$as_me:$LINENO: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4877 $as_echo "$as_me: error: no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4878 { (exit 1); exit 1; }; }
4879 fi
4880 else
4881 ac_cv_path_EGREP=$EGREP
4882 fi
4883
4884 fi
4885 fi
4886 { $as_echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4887 $as_echo "$ac_cv_path_EGREP" >&6; }
4888 EGREP="$ac_cv_path_EGREP"
4889
4890
4891 # Extract the first word of "ldconfig", so it can be a program name with args.
4892 set dummy ldconfig; ac_word=$2
4893 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
4894 $as_echo_n "checking for $ac_word... " >&6; }
4895 if test "${ac_cv_path_LDCONFIG+set}" = set; then
4896 $as_echo_n "(cached) " >&6
4897 else
4898 case $LDCONFIG in
4899 [\\/]* | ?:[\\/]*)
4900 ac_cv_path_LDCONFIG="$LDCONFIG" # Let the user override the test with a path.
4901 ;;
4902 *)
4903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4904 for as_dir in /sbin /usr/sbin $PATH
4905 do
4906 IFS=$as_save_IFS
4907 test -z "$as_dir" && as_dir=.
4908 for ac_exec_ext in '' $ac_executable_extensions; do
4909 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4910 ac_cv_path_LDCONFIG="$as_dir/$ac_word$ac_exec_ext"
4911 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4912 break 2
4913 fi
4914 done
4915 done
4916 IFS=$as_save_IFS
4917
4918 test -z "$ac_cv_path_LDCONFIG" && ac_cv_path_LDCONFIG="true"
4919 ;;
4920 esac
4921 fi
4922 LDCONFIG=$ac_cv_path_LDCONFIG
4923 if test -n "$LDCONFIG"; then
4924 { $as_echo "$as_me:$LINENO: result: $LDCONFIG" >&5
4925 $as_echo "$LDCONFIG" >&6; }
4926 else
4927 { $as_echo "$as_me:$LINENO: result: no" >&5
4928 $as_echo "no" >&6; }
4929 fi
4930
4931
4932 # Find a good install program. We prefer a C program (faster),
4933 # so one script is as good as another. But avoid the broken or
4934 # incompatible versions:
4935 # SysV /etc/install, /usr/sbin/install
4936 # SunOS /usr/etc/install
4937 # IRIX /sbin/install
4938 # AIX /bin/install
4939 # AmigaOS /C/install, which installs bootblocks on floppy discs
4940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4943 # OS/2's system install, which has a completely different semantic
4944 # ./install, which can be erroneously created by make from ./install.sh.
4945 # Reject install programs that cannot install multiple files.
4946 { $as_echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4948 if test -z "$INSTALL"; then
4949 if test "${ac_cv_path_install+set}" = set; then
4950 $as_echo_n "(cached) " >&6
4951 else
4952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4953 for as_dir in $PATH
4954 do
4955 IFS=$as_save_IFS
4956 test -z "$as_dir" && as_dir=.
4957 # Account for people who put trailing slashes in PATH elements.
4958 case $as_dir/ in
4959 ./ | .// | /cC/* | \
4960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4961 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4962 /usr/ucb/* ) ;;
4963 *)
4964 # OSF1 and SCO ODT 3.0 have their own names for install.
4965 # Don't use installbsd from OSF since it installs stuff as root
4966 # by default.
4967 for ac_prog in ginstall scoinst install; do
4968 for ac_exec_ext in '' $ac_executable_extensions; do
4969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4970 if test $ac_prog = install &&
4971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4972 # AIX install. It has an incompatible calling convention.
4973 :
4974 elif test $ac_prog = install &&
4975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4976 # program-specific install script used by HP pwplus--don't use.
4977 :
4978 else
4979 rm -rf conftest.one conftest.two conftest.dir
4980 echo one > conftest.one
4981 echo two > conftest.two
4982 mkdir conftest.dir
4983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4984 test -s conftest.one && test -s conftest.two &&
4985 test -s conftest.dir/conftest.one &&
4986 test -s conftest.dir/conftest.two
4987 then
4988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4989 break 3
4990 fi
4991 fi
4992 fi
4993 done
4994 done
4995 ;;
4996 esac
4997
4998 done
4999 IFS=$as_save_IFS
5000
5001 rm -rf conftest.one conftest.two conftest.dir
5002
5003 fi
5004 if test "${ac_cv_path_install+set}" = set; then
5005 INSTALL=$ac_cv_path_install
5006 else
5007 # As a last resort, use the slow shell script. Don't cache a
5008 # value for INSTALL within a source directory, because that will
5009 # break other packages using the cache if that directory is
5010 # removed, or if the value is a relative name.
5011 INSTALL=$ac_install_sh
5012 fi
5013 fi
5014 { $as_echo "$as_me:$LINENO: result: $INSTALL" >&5
5015 $as_echo "$INSTALL" >&6; }
5016
5017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5018 # It thinks the first close brace ends the variable substitution.
5019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5020
5021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5022
5023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5024
5025 case "$INSTALL" in
5026 [\\/$]* | ?:[\\/]* ) ;;
5027 *) INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
5028 esac
5029
5030 for ac_prog in lclint lint
5031 do
5032 # Extract the first word of "$ac_prog", so it can be a program name with args.
5033 set dummy $ac_prog; ac_word=$2
5034 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5035 $as_echo_n "checking for $ac_word... " >&6; }
5036 if test "${ac_cv_prog_LINT+set}" = set; then
5037 $as_echo_n "(cached) " >&6
5038 else
5039 if test -n "$LINT"; then
5040 ac_cv_prog_LINT="$LINT" # Let the user override the test.
5041 else
5042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5043 for as_dir in $PATH
5044 do
5045 IFS=$as_save_IFS
5046 test -z "$as_dir" && as_dir=.
5047 for ac_exec_ext in '' $ac_executable_extensions; do
5048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5049 ac_cv_prog_LINT="$ac_prog"
5050 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5051 break 2
5052 fi
5053 done
5054 done
5055 IFS=$as_save_IFS
5056
5057 fi
5058 fi
5059 LINT=$ac_cv_prog_LINT
5060 if test -n "$LINT"; then
5061 { $as_echo "$as_me:$LINENO: result: $LINT" >&5
5062 $as_echo "$LINT" >&6; }
5063 else
5064 { $as_echo "$as_me:$LINENO: result: no" >&5
5065 $as_echo "no" >&6; }
5066 fi
5067
5068
5069 test -n "$LINT" && break
5070 done
5071
5072 if test "$LINT" = "lint"
5073 then
5074 LINTFLAGS="$LINTFLAGS -errchk=%all,no%longptr64 -errhdr=%user -Ncheck=macro -Nlevel=4"
5075 fi
5076
5077
5078
5079 for ac_prog in fontforge
5080 do
5081 # Extract the first word of "$ac_prog", so it can be a program name with args.
5082 set dummy $ac_prog; ac_word=$2
5083 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_FONTFORGE+set}" = set; then
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$FONTFORGE"; then
5089 ac_cv_prog_FONTFORGE="$FONTFORGE" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5093 do
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_FONTFORGE="$ac_prog"
5099 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5101 fi
5102 done
5103 done
5104 IFS=$as_save_IFS
5105
5106 fi
5107 fi
5108 FONTFORGE=$ac_cv_prog_FONTFORGE
5109 if test -n "$FONTFORGE"; then
5110 { $as_echo "$as_me:$LINENO: result: $FONTFORGE" >&5
5111 $as_echo "$FONTFORGE" >&6; }
5112 else
5113 { $as_echo "$as_me:$LINENO: result: no" >&5
5114 $as_echo "no" >&6; }
5115 fi
5116
5117
5118 test -n "$FONTFORGE" && break
5119 done
5120 test -n "$FONTFORGE" || FONTFORGE="false"
5121
5122 for ac_prog in pkg-config
5123 do
5124 # Extract the first word of "$ac_prog", so it can be a program name with args.
5125 set dummy $ac_prog; ac_word=$2
5126 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5127 $as_echo_n "checking for $ac_word... " >&6; }
5128 if test "${ac_cv_prog_PKG_CONFIG+set}" = set; then
5129 $as_echo_n "(cached) " >&6
5130 else
5131 if test -n "$PKG_CONFIG"; then
5132 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
5133 else
5134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5135 for as_dir in $PATH
5136 do
5137 IFS=$as_save_IFS
5138 test -z "$as_dir" && as_dir=.
5139 for ac_exec_ext in '' $ac_executable_extensions; do
5140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5141 ac_cv_prog_PKG_CONFIG="$ac_prog"
5142 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5143 break 2
5144 fi
5145 done
5146 done
5147 IFS=$as_save_IFS
5148
5149 fi
5150 fi
5151 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
5152 if test -n "$PKG_CONFIG"; then
5153 { $as_echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
5154 $as_echo "$PKG_CONFIG" >&6; }
5155 else
5156 { $as_echo "$as_me:$LINENO: result: no" >&5
5157 $as_echo "no" >&6; }
5158 fi
5159
5160
5161 test -n "$PKG_CONFIG" && break
5162 done
5163 test -n "$PKG_CONFIG" || PKG_CONFIG="false"
5164
5165 for ac_prog in rsvg
5166 do
5167 # Extract the first word of "$ac_prog", so it can be a program name with args.
5168 set dummy $ac_prog; ac_word=$2
5169 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5170 $as_echo_n "checking for $ac_word... " >&6; }
5171 if test "${ac_cv_prog_RSVG+set}" = set; then
5172 $as_echo_n "(cached) " >&6
5173 else
5174 if test -n "$RSVG"; then
5175 ac_cv_prog_RSVG="$RSVG" # Let the user override the test.
5176 else
5177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5178 for as_dir in $PATH
5179 do
5180 IFS=$as_save_IFS
5181 test -z "$as_dir" && as_dir=.
5182 for ac_exec_ext in '' $ac_executable_extensions; do
5183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5184 ac_cv_prog_RSVG="$ac_prog"
5185 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5186 break 2
5187 fi
5188 done
5189 done
5190 IFS=$as_save_IFS
5191
5192 fi
5193 fi
5194 RSVG=$ac_cv_prog_RSVG
5195 if test -n "$RSVG"; then
5196 { $as_echo "$as_me:$LINENO: result: $RSVG" >&5
5197 $as_echo "$RSVG" >&6; }
5198 else
5199 { $as_echo "$as_me:$LINENO: result: no" >&5
5200 $as_echo "no" >&6; }
5201 fi
5202
5203
5204 test -n "$RSVG" && break
5205 done
5206 test -n "$RSVG" || RSVG="false"
5207
5208 for ac_prog in icotool
5209 do
5210 # Extract the first word of "$ac_prog", so it can be a program name with args.
5211 set dummy $ac_prog; ac_word=$2
5212 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 $as_echo_n "checking for $ac_word... " >&6; }
5214 if test "${ac_cv_prog_ICOTOOL+set}" = set; then
5215 $as_echo_n "(cached) " >&6
5216 else
5217 if test -n "$ICOTOOL"; then
5218 ac_cv_prog_ICOTOOL="$ICOTOOL" # Let the user override the test.
5219 else
5220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5221 for as_dir in $PATH
5222 do
5223 IFS=$as_save_IFS
5224 test -z "$as_dir" && as_dir=.
5225 for ac_exec_ext in '' $ac_executable_extensions; do
5226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5227 ac_cv_prog_ICOTOOL="$ac_prog"
5228 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5229 break 2
5230 fi
5231 done
5232 done
5233 IFS=$as_save_IFS
5234
5235 fi
5236 fi
5237 ICOTOOL=$ac_cv_prog_ICOTOOL
5238 if test -n "$ICOTOOL"; then
5239 { $as_echo "$as_me:$LINENO: result: $ICOTOOL" >&5
5240 $as_echo "$ICOTOOL" >&6; }
5241 else
5242 { $as_echo "$as_me:$LINENO: result: no" >&5
5243 $as_echo "no" >&6; }
5244 fi
5245
5246
5247 test -n "$ICOTOOL" && break
5248 done
5249 test -n "$ICOTOOL" || ICOTOOL="false"
5250
5251
5252 if test "${enable_maintainer_mode+set}" = set
5253 then
5254 if test "$FONTFORGE" = "false"; then wine_warnings="$wine_warnings|fontforge is missing, fonts can't be rebuilt."; fi
5255 if test "$RSVG" = "false"; then wine_warnings="$wine_warnings|rsvg is missing, icons can't be rebuilt."; fi
5256 if test "$ICOTOOL" = "false"; then wine_warnings="$wine_warnings|icotool is missing, icons can't be rebuilt."; fi
5257 fi
5258
5259 case $host_cpu in
5260 *i[3456789]86*)
5261 # Extract the first word of "prelink", so it can be a program name with args.
5262 set dummy prelink; ac_word=$2
5263 { $as_echo "$as_me:$LINENO: checking for $ac_word" >&5
5264 $as_echo_n "checking for $ac_word... " >&6; }
5265 if test "${ac_cv_path_PRELINK+set}" = set; then
5266 $as_echo_n "(cached) " >&6
5267 else
5268 case $PRELINK in
5269 [\\/]* | ?:[\\/]*)
5270 ac_cv_path_PRELINK="$PRELINK" # Let the user override the test with a path.
5271 ;;
5272 *)
5273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5274 for as_dir in /sbin /usr/sbin $PATH
5275 do
5276 IFS=$as_save_IFS
5277 test -z "$as_dir" && as_dir=.
5278 for ac_exec_ext in '' $ac_executable_extensions; do
5279 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5280 ac_cv_path_PRELINK="$as_dir/$ac_word$ac_exec_ext"
5281 $as_echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5282 break 2
5283 fi
5284 done
5285 done
5286 IFS=$as_save_IFS
5287
5288 test -z "$ac_cv_path_PRELINK" && ac_cv_path_PRELINK="false"
5289 ;;
5290 esac
5291 fi
5292 PRELINK=$ac_cv_path_PRELINK
5293 if test -n "$PRELINK"; then
5294 { $as_echo "$as_me:$LINENO: result: $PRELINK" >&5
5295 $as_echo "$PRELINK" >&6; }
5296 else
5297 { $as_echo "$as_me:$LINENO: result: no" >&5
5298 $as_echo "no" >&6; }
5299 fi
5300
5301
5302 ;;
5303 esac
5304
5305
5306
5307 { $as_echo "$as_me:$LINENO: checking for i386_set_ldt in -li386" >&5
5308 $as_echo_n "checking for i386_set_ldt in -li386... " >&6; }
5309 if test "${ac_cv_lib_i386_i386_set_ldt+set}" = set; then
5310 $as_echo_n "(cached) " >&6
5311 else
5312 ac_check_lib_save_LIBS=$LIBS
5313 LIBS="-li386 $LIBS"
5314 cat >conftest.$ac_ext <<_ACEOF
5315 /* confdefs.h. */
5316 _ACEOF
5317 cat confdefs.h >>conftest.$ac_ext
5318 cat >>conftest.$ac_ext <<_ACEOF
5319 /* end confdefs.h. */
5320
5321 /* Override any GCC internal prototype to avoid an error.
5322 Use char because int might match the return type of a GCC
5323 builtin and then its argument prototype would still apply. */
5324 #ifdef __cplusplus
5325 extern "C"
5326 #endif
5327 char i386_set_ldt ();
5328 int
5329 main ()
5330 {
5331 return i386_set_ldt ();
5332 ;
5333 return 0;
5334 }
5335 _ACEOF
5336 rm -f conftest.$ac_objext conftest$ac_exeext
5337 if { (ac_try="$ac_link"
5338 case "(($ac_try" in
5339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5340 *) ac_try_echo=$ac_try;;
5341 esac
5342 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5343 $as_echo "$ac_try_echo") >&5
5344 (eval "$ac_link") 2>conftest.er1
5345 ac_status=$?
5346 grep -v '^ *+' conftest.er1 >conftest.err
5347 rm -f conftest.er1
5348 cat conftest.err >&5
5349 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5350 (exit $ac_status); } && {
5351 test -z "$ac_c_werror_flag" ||
5352 test ! -s conftest.err
5353 } && test -s conftest$ac_exeext && {
5354 test "$cross_compiling" = yes ||
5355 $as_test_x conftest$ac_exeext
5356 }; then
5357 ac_cv_lib_i386_i386_set_ldt=yes
5358 else
5359 $as_echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362 ac_cv_lib_i386_i386_set_ldt=no
5363 fi
5364
5365 rm -rf conftest.dSYM
5366 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5367 conftest$ac_exeext conftest.$ac_ext
5368 LIBS=$ac_check_lib_save_LIBS
5369 fi
5370 { $as_echo "$as_me:$LINENO: result: $ac_cv_lib_i386_i386_set_ldt" >&5
5371 $as_echo "$ac_cv_lib_i386_i386_set_ldt" >&6; }
5372 if test "x$ac_cv_lib_i386_i386_set_ldt" = x""yes; then
5373 cat >>confdefs.h <<_ACEOF
5374 #define HAVE_LIBI386 1
5375 _ACEOF
5376
5377 LIBS="-li386 $LIBS"
5378
5379 fi
5380
5381
5382 { $as_echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5383 $as_echo_n "checking for _oss_ioctl in -lossaudio... " >&6; }
5384 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5385 $as_echo_n "(cached) " >&6
5386 else
5387 ac_check_lib_save_LIBS=$LIBS
5388 LIBS="-lossaudio $LIBS"
5389 cat >conftest.$ac_ext <<_ACEOF
5390 /* confdefs.h. */
5391 _ACEOF
5392 cat confdefs.h >>conftest.$ac_ext
5393 cat >>conftest.$ac_ext <<_ACEOF
5394 /* end confdefs.h. */
5395
5396 /* Override any GCC internal prototype to avoid an error.
5397 Use char because int might match the return type of a GCC
5398 builtin and then its argument prototype would still apply. */
5399 #ifdef __cplusplus
5400 extern "C"
5401 #endif
5402 char _oss_ioctl ();
5403 int
5404 main ()
5405 {
5406 return _oss_ioctl ();
5407 ;
5408 return 0;
5409 }
5410 _ACEOF
5411 rm -f conftest.$ac_objext conftest$ac_exeext
5412 if { (ac_try="$ac_link"
5413 case "(($ac_try" in
5414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5415 *) ac_try_echo=$ac_try;;
5416 esac
5417 eval ac_try_echo="\"\$as_me:$LINENO: $ac_try_echo\""
5418 $as_echo "$ac_try_echo") >&5
5419 (eval "$ac_link") 2>conftest.er1
5420 ac_status=$?
5421 grep -v '^ *+' conftest.er1 >conftest.err
5422 rm -f conftest.er1
5423 cat conftest.err >&5
5424 $as_echo "$as_me:$LINENO: \$? = $ac_status" >&5
5425 (exit $ac_status); } && {
5426 test -z "$ac_c_werror_flag" ||
5427 test ! -s conftest.err
5428 } && test -s conftest$ac_exeext && {
5429 test "$cross_compiling" = yes ||
5430