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