~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Wine Cross Reference
wine/configure

Version: ~ [ wine-1.1.33 ] ~ [ wine-1.1.32 ] ~ [ wine-1.1.31 ] ~ [ wine-1.1.30 ] ~ [ wine-1.1.29 ] ~ [ wine-1.1.28 ] ~ [ wine-1.1.27 ] ~ [ wine-1.1.26 ] ~ [ wine-1.1.25 ] ~ [ wine-1.1.24 ] ~ [ wine-1.1.23 ] ~ [ wine-1.1.22 ] ~ [ wine-1.1.21 ] ~ [ wine-1.1.20 ] ~ [ wine-1.1.19 ] ~ [ wine-1.1.18 ] ~ [ wine-1.1.17 ] ~ [ wine-1.1.16 ] ~ [ wine-1.1.15 ] ~ [ wine-1.1.14 ] ~ [ wine-1.1.13 ] ~ [ wine-1.1.12 ] ~ [ wine-1.1.11 ] ~ [ wine-1.1.10 ] ~ [ wine-1.1.9 ] ~ [ wine-1.1.8 ] ~ [ wine-1.1.7 ] ~ [ wine-1.0.1 ] ~ [ wine-1.1.6 ] ~ [ wine-1.1.5 ] ~ [ wine-1.1.4 ] ~ [ wine-1.1.3 ] ~ [ wine-1.1.2 ] ~ [ wine-1.1.1 ] ~ [ wine-1.1.0 ] ~ [ wine-1.0 ] ~

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