3 # From configure.in configure.in 1.00
4 # Guess values for system-dependent variables and create Makefiles.
5 # Generated automatically using autoconf version 2.12
6 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
8 # This configure script is free software; the Free Software Foundation
9 # gives unlimited permission to copy, distribute and modify it.
13 ac_default_prefix=/usr/local
14 # Any additions from configure.in:
16 --disable-emulator build only the Wine library, not the emulator"
18 --enable-dll build the Wine library as a DLL"
20 --with-x use the X Window System"
22 # Initialize some variables set by options.
23 # The variables have the same names as the options, with
24 # dashes changed to underlines.
26 cache_file=./config.cache
35 program_transform_name=s,x,x,
43 bindir='${exec_prefix}/bin'
44 sbindir='${exec_prefix}/sbin'
45 libexecdir='${exec_prefix}/libexec'
46 datadir='${prefix}/share'
47 sysconfdir='${prefix}/etc'
48 sharedstatedir='${prefix}/com'
49 localstatedir='${prefix}/var'
50 libdir='${exec_prefix}/lib'
51 includedir='${prefix}/include'
52 oldincludedir='/usr/include'
53 infodir='${prefix}/info'
54 mandir='${prefix}/man'
56 # Initialize some other variables.
59 # Maximum number of lines to put in a shell here document.
66 # If the previous option needs an argument, assign it.
67 if test -n "$ac_prev"; then
68 eval "$ac_prev=\$ac_option"
74 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
78 # Accept the important Cygnus configure options, so we can diagnose typos.
82 -bindir | --bindir | --bindi | --bind | --bin | --bi)
84 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
85 bindir="$ac_optarg" ;;
87 -build | --build | --buil | --bui | --bu)
89 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
92 -cache-file | --cache-file | --cache-fil | --cache-fi \
93 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
95 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
96 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
97 cache_file="$ac_optarg" ;;
99 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
101 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
103 datadir="$ac_optarg" ;;
105 -disable-* | --disable-*)
106 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
107 # Reject names that are not valid shell variable names.
108 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
109 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
111 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
112 eval "enable_${ac_feature}=no" ;;
114 -enable-* | --enable-*)
115 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
116 # Reject names that are not valid shell variable names.
117 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
118 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
120 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
125 eval "enable_${ac_feature}='$ac_optarg'" ;;
127 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
128 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
129 | --exec | --exe | --ex)
130 ac_prev=exec_prefix ;;
131 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
132 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
133 | --exec=* | --exe=* | --ex=*)
134 exec_prefix="$ac_optarg" ;;
136 -gas | --gas | --ga | --g)
137 # Obsolete; use --with-gas.
140 -help | --help | --hel | --he)
141 # Omit some internal or obsolete options to make the list less imposing.
142 # This message is too long to be a string in the A/UX 3.1 sh.
144 Usage: configure [options] [host]
145 Options: [defaults in brackets after descriptions]
147 --cache-file=FILE cache test results in FILE
148 --help print this message
149 --no-create do not create output files
150 --quiet, --silent do not print \`checking...' messages
151 --version print the version of autoconf that created configure
152 Directory and file names:
153 --prefix=PREFIX install architecture-independent files in PREFIX
155 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
157 --bindir=DIR user executables in DIR [EPREFIX/bin]
158 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
159 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
160 --datadir=DIR read-only architecture-independent data in DIR
162 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
163 --sharedstatedir=DIR modifiable architecture-independent data in DIR
165 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
166 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
167 --includedir=DIR C header files in DIR [PREFIX/include]
168 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
169 --infodir=DIR info documentation in DIR [PREFIX/info]
170 --mandir=DIR man documentation in DIR [PREFIX/man]
171 --srcdir=DIR find the sources in DIR [configure dir or ..]
172 --program-prefix=PREFIX prepend PREFIX to installed program names
173 --program-suffix=SUFFIX append SUFFIX to installed program names
174 --program-transform-name=PROGRAM
175 run sed PROGRAM on installed program names
179 --build=BUILD configure for building on BUILD [BUILD=HOST]
180 --host=HOST configure for HOST [guessed]
181 --target=TARGET configure for TARGET [TARGET=HOST]
182 Features and packages:
183 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
184 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
185 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
186 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
187 --x-includes=DIR X include files are in DIR
188 --x-libraries=DIR X library files are in DIR
190 if test -n "$ac_help"; then
191 echo "--enable and --with options recognized:$ac_help"
195 -host | --host | --hos | --ho)
197 -host=* | --host=* | --hos=* | --ho=*)
200 -includedir | --includedir | --includedi | --included | --include \
201 | --includ | --inclu | --incl | --inc)
202 ac_prev=includedir ;;
203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
204 | --includ=* | --inclu=* | --incl=* | --inc=*)
205 includedir="$ac_optarg" ;;
207 -infodir | --infodir | --infodi | --infod | --info | --inf)
209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
210 infodir="$ac_optarg" ;;
212 -libdir | --libdir | --libdi | --libd)
214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
215 libdir="$ac_optarg" ;;
217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
218 | --libexe | --libex | --libe)
219 ac_prev=libexecdir ;;
220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
221 | --libexe=* | --libex=* | --libe=*)
222 libexecdir="$ac_optarg" ;;
224 -localstatedir | --localstatedir | --localstatedi | --localstated \
225 | --localstate | --localstat | --localsta | --localst \
226 | --locals | --local | --loca | --loc | --lo)
227 ac_prev=localstatedir ;;
228 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
229 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
230 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
231 localstatedir="$ac_optarg" ;;
233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
236 mandir="$ac_optarg" ;;
239 # Obsolete; use --without-fp.
242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
252 | --oldin | --oldi | --old | --ol | --o)
253 ac_prev=oldincludedir ;;
254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
257 oldincludedir="$ac_optarg" ;;
259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
262 prefix="$ac_optarg" ;;
264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
265 | --program-pre | --program-pr | --program-p)
266 ac_prev=program_prefix ;;
267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
269 program_prefix="$ac_optarg" ;;
271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
272 | --program-suf | --program-su | --program-s)
273 ac_prev=program_suffix ;;
274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
276 program_suffix="$ac_optarg" ;;
278 -program-transform-name | --program-transform-name \
279 | --program-transform-nam | --program-transform-na \
280 | --program-transform-n | --program-transform- \
281 | --program-transform | --program-transfor \
282 | --program-transfo | --program-transf \
283 | --program-trans | --program-tran \
284 | --progr-tra | --program-tr | --program-t)
285 ac_prev=program_transform_name ;;
286 -program-transform-name=* | --program-transform-name=* \
287 | --program-transform-nam=* | --program-transform-na=* \
288 | --program-transform-n=* | --program-transform-=* \
289 | --program-transform=* | --program-transfor=* \
290 | --program-transfo=* | --program-transf=* \
291 | --program-trans=* | --program-tran=* \
292 | --progr-tra=* | --program-tr=* | --program-t=*)
293 program_transform_name="$ac_optarg" ;;
295 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
296 | -silent | --silent | --silen | --sile | --sil)
299 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
301 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
303 sbindir="$ac_optarg" ;;
305 -sharedstatedir | --sharedstatedir | --sharedstatedi \
306 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
307 | --sharedst | --shareds | --shared | --share | --shar \
309 ac_prev=sharedstatedir ;;
310 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
311 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
312 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
314 sharedstatedir="$ac_optarg" ;;
316 -site | --site | --sit)
318 -site=* | --site=* | --sit=*)
321 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
323 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
324 srcdir="$ac_optarg" ;;
326 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
327 | --syscon | --sysco | --sysc | --sys | --sy)
328 ac_prev=sysconfdir ;;
329 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
330 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
331 sysconfdir="$ac_optarg" ;;
333 -target | --target | --targe | --targ | --tar | --ta | --t)
335 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
336 target="$ac_optarg" ;;
338 -v | -verbose | --verbose | --verbos | --verbo | --verb)
341 -version | --version | --versio | --versi | --vers)
342 echo "configure generated by autoconf version 2.12"
346 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
347 # Reject names that are not valid shell variable names.
348 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
349 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
351 ac_package=`echo $ac_package| sed 's/-/_/g'`
356 eval "with_${ac_package}='$ac_optarg'" ;;
358 -without-* | --without-*)
359 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
360 # Reject names that are not valid shell variable names.
361 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
362 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
364 ac_package=`echo $ac_package| sed 's/-/_/g'`
365 eval "with_${ac_package}=no" ;;
368 # Obsolete; use --with-x.
371 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
372 | --x-incl | --x-inc | --x-in | --x-i)
373 ac_prev=x_includes ;;
374 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
375 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
376 x_includes="$ac_optarg" ;;
378 -x-libraries | --x-libraries | --x-librarie | --x-librari \
379 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
380 ac_prev=x_libraries ;;
381 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
382 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
383 x_libraries="$ac_optarg" ;;
385 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
389 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
390 echo "configure: warning: $ac_option: invalid host type" 1>&2
392 if test "x$nonopt" != xNONE; then
393 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
401 if test -n "$ac_prev"; then
402 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
405 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
407 # File descriptor usage:
410 # 2 errors and warnings
411 # 3 some systems may open it to /dev/tty
412 # 4 used on the Kubota Titan
413 # 6 checking for... messages and results
414 # 5 compiler messages saved in config.log
415 if test "$silent" = yes; then
423 This file contains any messages produced by compilers while
424 running configure, to aid debugging if configure makes a mistake.
427 # Strip out --no-create and --no-recursion so they do not pile up.
428 # Also quote any args containing shell metacharacters.
433 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
434 | --no-cr | --no-c) ;;
435 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
436 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
437 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
438 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
439 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
444 # Only set these to C if already set. These must not be set unconditionally
445 # because not all systems understand e.g. LANG=C (notably SCO).
446 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
447 # Non-C LC_CTYPE values break the ctype check.
448 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
449 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
450 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
451 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
454 rm -rf conftest* confdefs.h
455 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
458 # A filename unique to this package, relative to the directory that
459 # configure is in, which we can look for to find out if srcdir is correct.
460 ac_unique_file=controls/edit.c
462 # Find the source files, if location was not specified.
463 if test -z "$srcdir"; then
464 ac_srcdir_defaulted=yes
465 # Try the directory containing this script, then its parent.
467 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
468 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
470 if test ! -r $srcdir/$ac_unique_file; then
474 ac_srcdir_defaulted=no
476 if test ! -r $srcdir/$ac_unique_file; then
477 if test "$ac_srcdir_defaulted" = yes; then
478 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
480 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
483 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
485 # Prefer explicitly selected file to automatically selected ones.
486 if test -z "$CONFIG_SITE"; then
487 if test "x$prefix" != xNONE; then
488 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
490 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
493 for ac_site_file in $CONFIG_SITE; do
494 if test -r "$ac_site_file"; then
495 echo "loading site script $ac_site_file"
500 if test -r "$cache_file"; then
501 echo "loading cache $cache_file"
504 echo "creating cache $cache_file"
509 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
510 ac_cpp='$CPP $CPPFLAGS'
511 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
512 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
513 cross_compiling=$ac_cv_prog_cc_cross
515 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
516 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
517 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
524 ac_n= ac_c='\c' ac_t=
530 for ac_dir in tools $srcdir/tools; do
531 if test -f $ac_dir/install-sh; then
533 ac_install_sh="$ac_aux_dir/install-sh -c"
535 elif test -f $ac_dir/install.sh; then
537 ac_install_sh="$ac_aux_dir/install.sh -c"
541 if test -z "$ac_aux_dir"; then
542 { echo "configure: error: can not find install-sh or install.sh in tools $srcdir/tools" 1>&2; exit 1; }
544 ac_config_guess=$ac_aux_dir/config.guess
545 ac_config_sub=$ac_aux_dir/config.sub
546 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
549 # We want these before the checks, so the checks can modify their values.
551 test -z "$PROGEXT" && PROGEXT=""
557 # Check whether --enable-emulator or --disable-emulator was given.
558 if test "${enable_emulator+set}" = set; then
559 enableval="$enable_emulator"
560 if test "$enableval" = "no"; then MAIN_TARGET="lib"; fi
564 # Check whether --enable-dll or --disable-dll was given.
565 if test "${enable_dll+set}" = set; then
566 enableval="$enable_dll"
567 if test "$enableval" = "no"; then : ; else LIB_TARGET="libwine.so.1.0"; fi
577 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
578 echo "configure:579: checking whether ${MAKE-make} sets \${MAKE}" >&5
579 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
580 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
581 echo $ac_n "(cached) $ac_c" 1>&6
583 cat > conftestmake <<\EOF
585 @echo 'ac_maketemp="${MAKE}"'
587 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
588 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
589 if test -n "$ac_maketemp"; then
590 eval ac_cv_prog_make_${ac_make}_set=yes
592 eval ac_cv_prog_make_${ac_make}_set=no
596 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
597 echo "$ac_t""yes" 1>&6
600 echo "$ac_t""no" 1>&6
601 SET_MAKE="MAKE=${MAKE-make}"
604 # Extract the first word of "gcc", so it can be a program name with args.
605 set dummy gcc; ac_word=$2
606 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
607 echo "configure:608: checking for $ac_word" >&5
608 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
611 if test -n "$CC"; then
612 ac_cv_prog_CC="$CC" # Let the user override the test.
614 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
615 for ac_dir in $PATH; do
616 test -z "$ac_dir" && ac_dir=.
617 if test -f $ac_dir/$ac_word; then
626 if test -n "$CC"; then
627 echo "$ac_t""$CC" 1>&6
629 echo "$ac_t""no" 1>&6
632 if test -z "$CC"; then
633 # Extract the first word of "cc", so it can be a program name with args.
634 set dummy cc; ac_word=$2
635 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
636 echo "configure:637: checking for $ac_word" >&5
637 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
638 echo $ac_n "(cached) $ac_c" 1>&6
640 if test -n "$CC"; then
641 ac_cv_prog_CC="$CC" # Let the user override the test.
643 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
645 for ac_dir in $PATH; do
646 test -z "$ac_dir" && ac_dir=.
647 if test -f $ac_dir/$ac_word; then
648 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
657 if test $ac_prog_rejected = yes; then
658 # We found a bogon in the path, so make sure we never use it.
659 set dummy $ac_cv_prog_CC
661 if test $# -gt 0; then
662 # We chose a different compiler from the bogus one.
663 # However, it has the same basename, so the bogon will be chosen
664 # first if we set CC to just the basename; use the full file name.
666 set dummy "$ac_dir/$ac_word" "$@"
674 if test -n "$CC"; then
675 echo "$ac_t""$CC" 1>&6
677 echo "$ac_t""no" 1>&6
680 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
683 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
684 echo "configure:685: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
687 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
688 ac_cpp='$CPP $CPPFLAGS'
689 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
690 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
691 cross_compiling=$ac_cv_prog_cc_cross
693 cat > conftest.$ac_ext <<EOF
694 #line 695 "configure"
695 #include "confdefs.h"
698 if { (eval echo configure:699: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
699 ac_cv_prog_cc_works=yes
700 # If we can't run a trivial program, we are probably using a cross compiler.
701 if (./conftest; exit) 2>/dev/null; then
702 ac_cv_prog_cc_cross=no
704 ac_cv_prog_cc_cross=yes
707 echo "configure: failed program was:" >&5
708 cat conftest.$ac_ext >&5
709 ac_cv_prog_cc_works=no
713 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
714 if test $ac_cv_prog_cc_works = no; then
715 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
717 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
718 echo "configure:719: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
719 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
720 cross_compiling=$ac_cv_prog_cc_cross
722 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
723 echo "configure:724: checking whether we are using GNU C" >&5
724 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
725 echo $ac_n "(cached) $ac_c" 1>&6
727 cat > conftest.c <<EOF
732 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
739 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
741 if test $ac_cv_prog_gcc = yes; then
743 ac_test_CFLAGS="${CFLAGS+set}"
744 ac_save_CFLAGS="$CFLAGS"
746 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
747 echo "configure:748: checking whether ${CC-cc} accepts -g" >&5
748 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
749 echo $ac_n "(cached) $ac_c" 1>&6
751 echo 'void f(){}' > conftest.c
752 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
761 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
762 if test "$ac_test_CFLAGS" = set; then
763 CFLAGS="$ac_save_CFLAGS"
764 elif test $ac_cv_prog_cc_g = yes; then
771 test "${CFLAGS+set}" = set || CFLAGS="-g"
774 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
775 echo "configure:776: checking how to run the C preprocessor" >&5
776 # On Suns, sometimes $CPP names a directory.
777 if test -n "$CPP" && test -d "$CPP"; then
780 if test -z "$CPP"; then
781 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
782 echo $ac_n "(cached) $ac_c" 1>&6
784 # This must be in double quotes, not single quotes, because CPP may get
785 # substituted into the Makefile and "${CC-cc}" will confuse make.
787 # On the NeXT, cc -E runs the code through the compiler's parser,
788 # not just through cpp.
789 cat > conftest.$ac_ext <<EOF
790 #line 791 "configure"
791 #include "confdefs.h"
795 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
796 { (eval echo configure:797: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
797 ac_err=`grep -v '^ *+' conftest.out`
798 if test -z "$ac_err"; then
802 echo "configure: failed program was:" >&5
803 cat conftest.$ac_ext >&5
805 CPP="${CC-cc} -E -traditional-cpp"
806 cat > conftest.$ac_ext <<EOF
807 #line 808 "configure"
808 #include "confdefs.h"
812 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
813 { (eval echo configure:814: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
814 ac_err=`grep -v '^ *+' conftest.out`
815 if test -z "$ac_err"; then
819 echo "configure: failed program was:" >&5
820 cat conftest.$ac_ext >&5
827 ac_cv_prog_CPP="$CPP"
829 CPP="$ac_cv_prog_CPP"
831 ac_cv_prog_CPP="$CPP"
833 echo "$ac_t""$CPP" 1>&6
835 # If we find X, set shell vars x_includes and x_libraries to the
836 # paths, otherwise set no_x=yes.
837 # Uses ac_ vars as temps to allow command line to override cache and checks.
838 # --without-x overrides everything else, but does not touch the cache.
839 echo $ac_n "checking for X""... $ac_c" 1>&6
840 echo "configure:841: checking for X" >&5
842 # Check whether --with-x or --without-x was given.
843 if test "${with_x+set}" = set; then
848 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
849 if test "x$with_x" = xno; then
850 # The user explicitly disabled X.
853 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
854 # Both variables are already set.
857 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
858 echo $ac_n "(cached) $ac_c" 1>&6
860 # One or both of the vars are not set, and there is no cached value.
861 ac_x_includes=NO ac_x_libraries=NO
863 if mkdir conftestdir; then
865 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
866 cat > Imakefile <<'EOF'
868 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
870 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
871 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
872 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
873 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
874 for ac_extension in a so sl; do
875 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
876 test -f $ac_im_libdir/libX11.$ac_extension; then
877 ac_im_usrlibdir=$ac_im_libdir; break
880 # Screen out bogus values from the imake configuration. They are
881 # bogus both because they are the default anyway, and because
882 # using them would break gcc on systems where it needs fixed includes.
883 case "$ac_im_incroot" in
885 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
887 case "$ac_im_usrlibdir" in
889 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
896 if test "$ac_x_includes" = NO; then
897 # Guess where to find include files, by looking for this one X11 .h file.
898 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
900 # First, try using that file with no special directory specified.
901 cat > conftest.$ac_ext <<EOF
902 #line 903 "configure"
903 #include "confdefs.h"
904 #include <$x_direct_test_include>
906 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
907 { (eval echo configure:908: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
908 ac_err=`grep -v '^ *+' conftest.out`
909 if test -z "$ac_err"; then
911 # We can compile using X headers with no special include directory.
915 echo "configure: failed program was:" >&5
916 cat conftest.$ac_ext >&5
918 # Look for the header file in a standard set of common directories.
919 # Check X11 before X11Rn because it is often a symlink to the current release.
931 /usr/local/X11/include \
932 /usr/local/X11R6/include \
933 /usr/local/X11R5/include \
934 /usr/local/X11R4/include \
936 /usr/local/include/X11 \
937 /usr/local/include/X11R6 \
938 /usr/local/include/X11R5 \
939 /usr/local/include/X11R4 \
943 /usr/XFree86/include/X11 \
947 /usr/unsupported/include \
948 /usr/athena/include \
949 /usr/local/x11r5/include \
950 /usr/lpp/Xamples/include \
952 /usr/openwin/include \
953 /usr/openwin/share/include \
956 if test -r "$ac_dir/$x_direct_test_include"; then
957 ac_x_includes=$ac_dir
963 fi # $ac_x_includes = NO
965 if test "$ac_x_libraries" = NO; then
966 # Check for the libraries.
968 test -z "$x_direct_test_library" && x_direct_test_library=Xt
969 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
971 # See if we find them without any special options.
972 # Don't add to $LIBS permanently.
974 LIBS="-l$x_direct_test_library $LIBS"
975 cat > conftest.$ac_ext <<EOF
976 #line 977 "configure"
977 #include "confdefs.h"
980 ${x_direct_test_function}()
983 if { (eval echo configure:984: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
986 # We can link X programs with no special library path.
989 echo "configure: failed program was:" >&5
990 cat conftest.$ac_ext >&5
993 # First see if replacing the include by lib works.
994 # Check X11 before X11Rn because it is often a symlink to the current release.
995 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
1006 /usr/local/X11/lib \
1007 /usr/local/X11R6/lib \
1008 /usr/local/X11R5/lib \
1009 /usr/local/X11R4/lib \
1011 /usr/local/lib/X11 \
1012 /usr/local/lib/X11R6 \
1013 /usr/local/lib/X11R5 \
1014 /usr/local/lib/X11R4 \
1018 /usr/XFree86/lib/X11 \
1022 /usr/unsupported/lib \
1024 /usr/local/x11r5/lib \
1025 /usr/lpp/Xamples/lib \
1029 /usr/openwin/share/lib \
1032 for ac_extension in a so sl; do
1033 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
1034 ac_x_libraries=$ac_dir
1041 fi # $ac_x_libraries = NO
1043 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
1044 # Didn't find X anywhere. Cache the known absence of X.
1045 ac_cv_have_x="have_x=no"
1047 # Record where we found X for the cache.
1048 ac_cv_have_x="have_x=yes \
1049 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
1053 eval "$ac_cv_have_x"
1056 if test "$have_x" != yes; then
1057 echo "$ac_t""$have_x" 1>&6
1060 # If each of the values was on the command line, it overrides each guess.
1061 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
1062 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
1063 # Update the cache value to reflect the command line values.
1064 ac_cv_have_x="have_x=yes \
1065 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
1066 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
1069 if test "$no_x" = yes; then
1070 # Not all programs may use this symbol, but it does not hurt to define it.
1071 cat >> confdefs.h <<\EOF
1072 #define X_DISPLAY_MISSING 1
1075 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
1077 if test -n "$x_includes"; then
1078 X_CFLAGS="$X_CFLAGS -I$x_includes"
1081 # It would also be nice to do this for all -L options, not just this one.
1082 if test -n "$x_libraries"; then
1083 X_LIBS="$X_LIBS -L$x_libraries"
1084 # For Solaris; some versions of Sun CC require a space after -R and
1085 # others require no space. Words are not sufficient . . . .
1086 case "`(uname -sr) 2>/dev/null`" in
1088 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
1089 echo "configure:1090: checking whether -R must be followed by a space" >&5
1090 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
1091 cat > conftest.$ac_ext <<EOF
1092 #line 1093 "configure"
1093 #include "confdefs.h"
1099 if { (eval echo configure:1100: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1103 echo "configure: failed program was:" >&5
1104 cat conftest.$ac_ext >&5
1109 if test $ac_R_nospace = yes; then
1110 echo "$ac_t""no" 1>&6
1111 X_LIBS="$X_LIBS -R$x_libraries"
1113 LIBS="$ac_xsave_LIBS -R $x_libraries"
1114 cat > conftest.$ac_ext <<EOF
1115 #line 1116 "configure"
1116 #include "confdefs.h"
1122 if { (eval echo configure:1123: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1126 echo "configure: failed program was:" >&5
1127 cat conftest.$ac_ext >&5
1132 if test $ac_R_space = yes; then
1133 echo "$ac_t""yes" 1>&6
1134 X_LIBS="$X_LIBS -R $x_libraries"
1136 echo "$ac_t""neither works" 1>&6
1139 LIBS="$ac_xsave_LIBS"
1143 # Check for system-dependent libraries X programs must link with.
1144 # Do this before checking for the system-independent R6 libraries
1145 # (-lICE), since we may need -lsocket or whatever for X linking.
1147 if test "$ISC" = yes; then
1148 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
1150 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
1151 # libraries were built with DECnet support. And karl@cs.umb.edu says
1152 # the Alpha needs dnet_stub (dnet does not exist).
1153 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
1154 echo "configure:1155: checking for dnet_ntoa in -ldnet" >&5
1155 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1156 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1157 echo $ac_n "(cached) $ac_c" 1>&6
1159 ac_save_LIBS="$LIBS"
1161 cat > conftest.$ac_ext <<EOF
1162 #line 1163 "configure"
1163 #include "confdefs.h"
1164 /* Override any gcc2 internal prototype to avoid an error. */
1165 /* We use char because int might match the return type of a gcc2
1166 builtin and then its argument prototype would still apply. */
1173 if { (eval echo configure:1174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1175 eval "ac_cv_lib_$ac_lib_var=yes"
1177 echo "configure: failed program was:" >&5
1178 cat conftest.$ac_ext >&5
1180 eval "ac_cv_lib_$ac_lib_var=no"
1183 LIBS="$ac_save_LIBS"
1186 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1187 echo "$ac_t""yes" 1>&6
1188 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
1190 echo "$ac_t""no" 1>&6
1193 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
1194 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
1195 echo "configure:1196: checking for dnet_ntoa in -ldnet_stub" >&5
1196 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
1197 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1198 echo $ac_n "(cached) $ac_c" 1>&6
1200 ac_save_LIBS="$LIBS"
1201 LIBS="-ldnet_stub $LIBS"
1202 cat > conftest.$ac_ext <<EOF
1203 #line 1204 "configure"
1204 #include "confdefs.h"
1205 /* Override any gcc2 internal prototype to avoid an error. */
1206 /* We use char because int might match the return type of a gcc2
1207 builtin and then its argument prototype would still apply. */
1214 if { (eval echo configure:1215: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1216 eval "ac_cv_lib_$ac_lib_var=yes"
1218 echo "configure: failed program was:" >&5
1219 cat conftest.$ac_ext >&5
1221 eval "ac_cv_lib_$ac_lib_var=no"
1224 LIBS="$ac_save_LIBS"
1227 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1228 echo "$ac_t""yes" 1>&6
1229 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
1231 echo "$ac_t""no" 1>&6
1236 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
1237 # to get the SysV transport functions.
1238 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
1240 # The nsl library prevents programs from opening the X display
1241 # on Irix 5.2, according to dickey@clark.net.
1242 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
1243 echo "configure:1244: checking for gethostbyname" >&5
1244 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
1245 echo $ac_n "(cached) $ac_c" 1>&6
1247 cat > conftest.$ac_ext <<EOF
1248 #line 1249 "configure"
1249 #include "confdefs.h"
1250 /* System header to define __stub macros and hopefully few prototypes,
1251 which can conflict with char gethostbyname(); below. */
1253 /* Override any gcc2 internal prototype to avoid an error. */
1254 /* We use char because int might match the return type of a gcc2
1255 builtin and then its argument prototype would still apply. */
1256 char gethostbyname();
1260 /* The GNU C library defines this for functions which it implements
1261 to always fail with ENOSYS. Some functions are actually named
1262 something starting with __ and the normal name is an alias. */
1263 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
1271 if { (eval echo configure:1272: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1273 eval "ac_cv_func_gethostbyname=yes"
1275 echo "configure: failed program was:" >&5
1276 cat conftest.$ac_ext >&5
1278 eval "ac_cv_func_gethostbyname=no"
1283 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
1284 echo "$ac_t""yes" 1>&6
1287 echo "$ac_t""no" 1>&6
1290 if test $ac_cv_func_gethostbyname = no; then
1291 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
1292 echo "configure:1293: checking for gethostbyname in -lnsl" >&5
1293 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
1294 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1295 echo $ac_n "(cached) $ac_c" 1>&6
1297 ac_save_LIBS="$LIBS"
1299 cat > conftest.$ac_ext <<EOF
1300 #line 1301 "configure"
1301 #include "confdefs.h"
1302 /* Override any gcc2 internal prototype to avoid an error. */
1303 /* We use char because int might match the return type of a gcc2
1304 builtin and then its argument prototype would still apply. */
1305 char gethostbyname();
1311 if { (eval echo configure:1312: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1313 eval "ac_cv_lib_$ac_lib_var=yes"
1315 echo "configure: failed program was:" >&5
1316 cat conftest.$ac_ext >&5
1318 eval "ac_cv_lib_$ac_lib_var=no"
1321 LIBS="$ac_save_LIBS"
1324 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1325 echo "$ac_t""yes" 1>&6
1326 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
1328 echo "$ac_t""no" 1>&6
1333 # lieder@skyler.mavd.honeywell.com says without -lsocket,
1334 # socket/setsockopt and other routines are undefined under SCO ODT
1335 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
1336 # on later versions), says simon@lia.di.epfl.ch: it contains
1337 # gethostby* variants that don't use the nameserver (or something).
1338 # -lsocket must be given before -lnsl if both are needed.
1339 # We assume that if connect needs -lnsl, so does gethostbyname.
1340 echo $ac_n "checking for connect""... $ac_c" 1>&6
1341 echo "configure:1342: checking for connect" >&5
1342 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
1343 echo $ac_n "(cached) $ac_c" 1>&6
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1348 /* System header to define __stub macros and hopefully few prototypes,
1349 which can conflict with char connect(); below. */
1351 /* Override any gcc2 internal prototype to avoid an error. */
1352 /* We use char because int might match the return type of a gcc2
1353 builtin and then its argument prototype would still apply. */
1358 /* The GNU C library defines this for functions which it implements
1359 to always fail with ENOSYS. Some functions are actually named
1360 something starting with __ and the normal name is an alias. */
1361 #if defined (__stub_connect) || defined (__stub___connect)
1369 if { (eval echo configure:1370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1371 eval "ac_cv_func_connect=yes"
1373 echo "configure: failed program was:" >&5
1374 cat conftest.$ac_ext >&5
1376 eval "ac_cv_func_connect=no"
1381 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
1382 echo "$ac_t""yes" 1>&6
1385 echo "$ac_t""no" 1>&6
1388 if test $ac_cv_func_connect = no; then
1389 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
1390 echo "configure:1391: checking for connect in -lsocket" >&5
1391 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
1392 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1393 echo $ac_n "(cached) $ac_c" 1>&6
1395 ac_save_LIBS="$LIBS"
1396 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
1397 cat > conftest.$ac_ext <<EOF
1398 #line 1399 "configure"
1399 #include "confdefs.h"
1400 /* Override any gcc2 internal prototype to avoid an error. */
1401 /* We use char because int might match the return type of a gcc2
1402 builtin and then its argument prototype would still apply. */
1409 if { (eval echo configure:1410: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1411 eval "ac_cv_lib_$ac_lib_var=yes"
1413 echo "configure: failed program was:" >&5
1414 cat conftest.$ac_ext >&5
1416 eval "ac_cv_lib_$ac_lib_var=no"
1419 LIBS="$ac_save_LIBS"
1422 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1423 echo "$ac_t""yes" 1>&6
1424 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
1426 echo "$ac_t""no" 1>&6
1431 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
1432 echo $ac_n "checking for remove""... $ac_c" 1>&6
1433 echo "configure:1434: checking for remove" >&5
1434 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
1435 echo $ac_n "(cached) $ac_c" 1>&6
1437 cat > conftest.$ac_ext <<EOF
1438 #line 1439 "configure"
1439 #include "confdefs.h"
1440 /* System header to define __stub macros and hopefully few prototypes,
1441 which can conflict with char remove(); below. */
1443 /* Override any gcc2 internal prototype to avoid an error. */
1444 /* We use char because int might match the return type of a gcc2
1445 builtin and then its argument prototype would still apply. */
1450 /* The GNU C library defines this for functions which it implements
1451 to always fail with ENOSYS. Some functions are actually named
1452 something starting with __ and the normal name is an alias. */
1453 #if defined (__stub_remove) || defined (__stub___remove)
1461 if { (eval echo configure:1462: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1463 eval "ac_cv_func_remove=yes"
1465 echo "configure: failed program was:" >&5
1466 cat conftest.$ac_ext >&5
1468 eval "ac_cv_func_remove=no"
1473 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
1474 echo "$ac_t""yes" 1>&6
1477 echo "$ac_t""no" 1>&6
1480 if test $ac_cv_func_remove = no; then
1481 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
1482 echo "configure:1483: checking for remove in -lposix" >&5
1483 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
1484 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1487 ac_save_LIBS="$LIBS"
1488 LIBS="-lposix $LIBS"
1489 cat > conftest.$ac_ext <<EOF
1490 #line 1491 "configure"
1491 #include "confdefs.h"
1492 /* Override any gcc2 internal prototype to avoid an error. */
1493 /* We use char because int might match the return type of a gcc2
1494 builtin and then its argument prototype would still apply. */
1501 if { (eval echo configure:1502: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1503 eval "ac_cv_lib_$ac_lib_var=yes"
1505 echo "configure: failed program was:" >&5
1506 cat conftest.$ac_ext >&5
1508 eval "ac_cv_lib_$ac_lib_var=no"
1511 LIBS="$ac_save_LIBS"
1514 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1515 echo "$ac_t""yes" 1>&6
1516 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
1518 echo "$ac_t""no" 1>&6
1523 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
1524 echo $ac_n "checking for shmat""... $ac_c" 1>&6
1525 echo "configure:1526: checking for shmat" >&5
1526 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
1527 echo $ac_n "(cached) $ac_c" 1>&6
1529 cat > conftest.$ac_ext <<EOF
1530 #line 1531 "configure"
1531 #include "confdefs.h"
1532 /* System header to define __stub macros and hopefully few prototypes,
1533 which can conflict with char shmat(); below. */
1535 /* Override any gcc2 internal prototype to avoid an error. */
1536 /* We use char because int might match the return type of a gcc2
1537 builtin and then its argument prototype would still apply. */
1542 /* The GNU C library defines this for functions which it implements
1543 to always fail with ENOSYS. Some functions are actually named
1544 something starting with __ and the normal name is an alias. */
1545 #if defined (__stub_shmat) || defined (__stub___shmat)
1553 if { (eval echo configure:1554: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1555 eval "ac_cv_func_shmat=yes"
1557 echo "configure: failed program was:" >&5
1558 cat conftest.$ac_ext >&5
1560 eval "ac_cv_func_shmat=no"
1565 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
1566 echo "$ac_t""yes" 1>&6
1569 echo "$ac_t""no" 1>&6
1572 if test $ac_cv_func_shmat = no; then
1573 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
1574 echo "configure:1575: checking for shmat in -lipc" >&5
1575 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
1576 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1577 echo $ac_n "(cached) $ac_c" 1>&6
1579 ac_save_LIBS="$LIBS"
1581 cat > conftest.$ac_ext <<EOF
1582 #line 1583 "configure"
1583 #include "confdefs.h"
1584 /* Override any gcc2 internal prototype to avoid an error. */
1585 /* We use char because int might match the return type of a gcc2
1586 builtin and then its argument prototype would still apply. */
1593 if { (eval echo configure:1594: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1595 eval "ac_cv_lib_$ac_lib_var=yes"
1597 echo "configure: failed program was:" >&5
1598 cat conftest.$ac_ext >&5
1600 eval "ac_cv_lib_$ac_lib_var=no"
1603 LIBS="$ac_save_LIBS"
1606 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1607 echo "$ac_t""yes" 1>&6
1608 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
1610 echo "$ac_t""no" 1>&6
1616 # Check for libraries that X11R6 Xt/Xaw programs need.
1617 ac_save_LDFLAGS="$LDFLAGS"
1618 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
1619 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
1620 # check for ICE first), but we must link in the order -lSM -lICE or
1621 # we get undefined symbols. So assume we have SM if we have ICE.
1622 # These have to be linked with before -lX11, unlike the other
1623 # libraries we check for below, so use a different variable.
1624 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
1625 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
1626 echo "configure:1627: checking for IceConnectionNumber in -lICE" >&5
1627 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
1628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1629 echo $ac_n "(cached) $ac_c" 1>&6
1631 ac_save_LIBS="$LIBS"
1633 cat > conftest.$ac_ext <<EOF
1634 #line 1635 "configure"
1635 #include "confdefs.h"
1636 /* Override any gcc2 internal prototype to avoid an error. */
1637 /* We use char because int might match the return type of a gcc2
1638 builtin and then its argument prototype would still apply. */
1639 char IceConnectionNumber();
1642 IceConnectionNumber()
1645 if { (eval echo configure:1646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1647 eval "ac_cv_lib_$ac_lib_var=yes"
1649 echo "configure: failed program was:" >&5
1650 cat conftest.$ac_ext >&5
1652 eval "ac_cv_lib_$ac_lib_var=no"
1655 LIBS="$ac_save_LIBS"
1658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1659 echo "$ac_t""yes" 1>&6
1660 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
1662 echo "$ac_t""no" 1>&6
1665 LDFLAGS="$ac_save_LDFLAGS"
1669 for ac_prog in 'bison -y' byacc
1671 # Extract the first word of "$ac_prog", so it can be a program name with args.
1672 set dummy $ac_prog; ac_word=$2
1673 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1674 echo "configure:1675: checking for $ac_word" >&5
1675 if eval "test \"`echo '$''{'ac_cv_prog_YACC'+set}'`\" = set"; then
1676 echo $ac_n "(cached) $ac_c" 1>&6
1678 if test -n "$YACC"; then
1679 ac_cv_prog_YACC="$YACC" # Let the user override the test.
1681 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1682 for ac_dir in $PATH; do
1683 test -z "$ac_dir" && ac_dir=.
1684 if test -f $ac_dir/$ac_word; then
1685 ac_cv_prog_YACC="$ac_prog"
1692 YACC="$ac_cv_prog_YACC"
1693 if test -n "$YACC"; then
1694 echo "$ac_t""$YACC" 1>&6
1696 echo "$ac_t""no" 1>&6
1699 test -n "$YACC" && break
1701 test -n "$YACC" || YACC="yacc"
1703 # Extract the first word of "flex", so it can be a program name with args.
1704 set dummy flex; ac_word=$2
1705 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1706 echo "configure:1707: checking for $ac_word" >&5
1707 if eval "test \"`echo '$''{'ac_cv_prog_LEX'+set}'`\" = set"; then
1708 echo $ac_n "(cached) $ac_c" 1>&6
1710 if test -n "$LEX"; then
1711 ac_cv_prog_LEX="$LEX" # Let the user override the test.
1713 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1714 for ac_dir in $PATH; do
1715 test -z "$ac_dir" && ac_dir=.
1716 if test -f $ac_dir/$ac_word; then
1717 ac_cv_prog_LEX="flex"
1722 test -z "$ac_cv_prog_LEX" && ac_cv_prog_LEX="lex"
1725 LEX="$ac_cv_prog_LEX"
1726 if test -n "$LEX"; then
1727 echo "$ac_t""$LEX" 1>&6
1729 echo "$ac_t""no" 1>&6
1732 if test -z "$LEXLIB"
1738 echo $ac_n "checking for yywrap in -l$ac_lib""... $ac_c" 1>&6
1739 echo "configure:1740: checking for yywrap in -l$ac_lib" >&5
1740 ac_lib_var=`echo $ac_lib'_'yywrap | sed 'y%./+-%__p_%'`
1741 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1742 echo $ac_n "(cached) $ac_c" 1>&6
1744 ac_save_LIBS="$LIBS"
1745 LIBS="-l$ac_lib $LIBS"
1746 cat > conftest.$ac_ext <<EOF
1747 #line 1748 "configure"
1748 #include "confdefs.h"
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1758 if { (eval echo configure:1759: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1760 eval "ac_cv_lib_$ac_lib_var=yes"
1762 echo "configure: failed program was:" >&5
1763 cat conftest.$ac_ext >&5
1765 eval "ac_cv_lib_$ac_lib_var=no"
1768 LIBS="$ac_save_LIBS"
1771 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1775 echo "$ac_t""no" 1>&6
1780 # Extract the first word of "ranlib", so it can be a program name with args.
1781 set dummy ranlib; ac_word=$2
1782 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1783 echo "configure:1784: checking for $ac_word" >&5
1784 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1785 echo $ac_n "(cached) $ac_c" 1>&6
1787 if test -n "$RANLIB"; then
1788 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1790 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1791 for ac_dir in $PATH; do
1792 test -z "$ac_dir" && ac_dir=.
1793 if test -f $ac_dir/$ac_word; then
1794 ac_cv_prog_RANLIB="ranlib"
1799 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1802 RANLIB="$ac_cv_prog_RANLIB"
1803 if test -n "$RANLIB"; then
1804 echo "$ac_t""$RANLIB" 1>&6
1806 echo "$ac_t""no" 1>&6
1809 # Find a good install program. We prefer a C program (faster),
1810 # so one script is as good as another. But avoid the broken or
1811 # incompatible versions:
1812 # SysV /etc/install, /usr/sbin/install
1813 # SunOS /usr/etc/install
1814 # IRIX /sbin/install
1816 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1817 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1818 # ./install, which can be erroneously created by make from ./install.sh.
1819 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1820 echo "configure:1821: checking for a BSD compatible install" >&5
1821 if test -z "$INSTALL"; then
1822 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1823 echo $ac_n "(cached) $ac_c" 1>&6
1825 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1826 for ac_dir in $PATH; do
1827 # Account for people who put trailing slashes in PATH elements.
1829 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1831 # OSF1 and SCO ODT 3.0 have their own names for install.
1832 for ac_prog in ginstall installbsd scoinst install; do
1833 if test -f $ac_dir/$ac_prog; then
1834 if test $ac_prog = install &&
1835 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1836 # AIX install. It has an incompatible calling convention.
1837 # OSF/1 installbsd also uses dspmsg, but is usable.
1840 ac_cv_path_install="$ac_dir/$ac_prog -c"
1851 if test "${ac_cv_path_install+set}" = set; then
1852 INSTALL="$ac_cv_path_install"
1854 # As a last resort, use the slow shell script. We don't cache a
1855 # path for INSTALL within a source directory, because that will
1856 # break other packages using the cache if that directory is
1857 # removed, or if the path is relative.
1858 INSTALL="$ac_install_sh"
1861 echo "$ac_t""$INSTALL" 1>&6
1863 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1864 # It thinks the first close brace ends the variable substitution.
1865 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1867 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1869 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1870 echo "configure:1871: checking whether ln -s works" >&5
1871 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1872 echo $ac_n "(cached) $ac_c" 1>&6
1875 if ln -s X conftestdata 2>/dev/null
1878 ac_cv_prog_LN_S="ln -s"
1883 LN_S="$ac_cv_prog_LN_S"
1884 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1885 echo "$ac_t""yes" 1>&6
1887 echo "$ac_t""no" 1>&6
1892 echo $ac_n "checking for i386_set_ldt in -li386""... $ac_c" 1>&6
1893 echo "configure:1894: checking for i386_set_ldt in -li386" >&5
1894 ac_lib_var=`echo i386'_'i386_set_ldt | sed 'y%./+-%__p_%'`
1895 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1898 ac_save_LIBS="$LIBS"
1900 cat > conftest.$ac_ext <<EOF
1901 #line 1902 "configure"
1902 #include "confdefs.h"
1903 /* Override any gcc2 internal prototype to avoid an error. */
1904 /* We use char because int might match the return type of a gcc2
1905 builtin and then its argument prototype would still apply. */
1906 char i386_set_ldt();
1912 if { (eval echo configure:1913: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1914 eval "ac_cv_lib_$ac_lib_var=yes"
1916 echo "configure: failed program was:" >&5
1917 cat conftest.$ac_ext >&5
1919 eval "ac_cv_lib_$ac_lib_var=no"
1922 LIBS="$ac_save_LIBS"
1925 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1926 echo "$ac_t""yes" 1>&6
1927 ac_tr_lib=HAVE_LIB`echo i386 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1928 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1929 cat >> confdefs.h <<EOF
1930 #define $ac_tr_lib 1
1936 echo "$ac_t""no" 1>&6
1939 echo $ac_n "checking for iswalnum in -lw""... $ac_c" 1>&6
1940 echo "configure:1941: checking for iswalnum in -lw" >&5
1941 ac_lib_var=`echo w'_'iswalnum | sed 'y%./+-%__p_%'`
1942 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1945 ac_save_LIBS="$LIBS"
1947 cat > conftest.$ac_ext <<EOF
1948 #line 1949 "configure"
1949 #include "confdefs.h"
1950 /* Override any gcc2 internal prototype to avoid an error. */
1951 /* We use char because int might match the return type of a gcc2
1952 builtin and then its argument prototype would still apply. */
1959 if { (eval echo configure:1960: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1961 eval "ac_cv_lib_$ac_lib_var=yes"
1963 echo "configure: failed program was:" >&5
1964 cat conftest.$ac_ext >&5
1966 eval "ac_cv_lib_$ac_lib_var=no"
1969 LIBS="$ac_save_LIBS"
1972 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1973 echo "$ac_t""yes" 1>&6
1974 ac_tr_lib=HAVE_LIB`echo w | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1975 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1976 cat >> confdefs.h <<EOF
1977 #define $ac_tr_lib 1
1983 echo "$ac_t""no" 1>&6
1986 echo $ac_n "checking for XF86DGAQueryExtension in -lXxf86dga""... $ac_c" 1>&6
1987 echo "configure:1988: checking for XF86DGAQueryExtension in -lXxf86dga" >&5
1988 ac_lib_var=`echo Xxf86dga'_'XF86DGAQueryExtension | sed 'y%./+-%__p_%'`
1989 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1990 echo $ac_n "(cached) $ac_c" 1>&6
1992 ac_save_LIBS="$LIBS"
1993 LIBS="-lXxf86dga $X_LIBS -lXext -lX11 $LIBS"
1994 cat > conftest.$ac_ext <<EOF
1995 #line 1996 "configure"
1996 #include "confdefs.h"
1997 /* Override any gcc2 internal prototype to avoid an error. */
1998 /* We use char because int might match the return type of a gcc2
1999 builtin and then its argument prototype would still apply. */
2000 char XF86DGAQueryExtension();
2003 XF86DGAQueryExtension()
2006 if { (eval echo configure:2007: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2008 eval "ac_cv_lib_$ac_lib_var=yes"
2010 echo "configure: failed program was:" >&5
2011 cat conftest.$ac_ext >&5
2013 eval "ac_cv_lib_$ac_lib_var=no"
2016 LIBS="$ac_save_LIBS"
2019 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2020 echo "$ac_t""yes" 1>&6
2021 cat >> confdefs.h <<\EOF
2022 #define HAVE_LIBXXF86DGA 1
2024 X_PRE_LIBS="$X_PRE_LIBS -lXxf86dga"
2026 echo "$ac_t""no" 1>&6
2031 echo $ac_n "checking "for Open Sound System"""... $ac_c" 1>&6
2032 echo "configure:2033: checking "for Open Sound System"" >&5
2033 if eval "test \"`echo '$''{'ac_cv_c_opensoundsystem'+set}'`\" = set"; then
2034 echo $ac_n "(cached) $ac_c" 1>&6
2036 cat > conftest.$ac_ext <<EOF
2037 #line 2038 "configure"
2038 #include "confdefs.h"
2039 #include <sys/soundcard.h>
2042 /* check for open sound system and one of the SNDCTL_ defines to be sure */
2043 #if !defined(OPEN_SOUND_SYSTEM) || !defined(SNDCTL_DSP_STEREO)
2044 #error No open sound system
2049 if { (eval echo configure:2050: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2051 ac_cv_c_opensoundsystem="yes"
2053 echo "configure: failed program was:" >&5
2054 cat conftest.$ac_ext >&5
2056 ac_cv_c_opensoundsystem="no"
2061 echo "$ac_t""$ac_cv_c_opensoundsystem" 1>&6
2063 if test "$ac_cv_c_opensoundsystem" = "yes"
2065 cat >> confdefs.h <<\EOF
2072 echo $ac_n "checking "for union semun"""... $ac_c" 1>&6
2073 echo "configure:2074: checking "for union semun"" >&5
2074 if eval "test \"`echo '$''{'ac_cv_c_union_semun'+set}'`\" = set"; then
2075 echo $ac_n "(cached) $ac_c" 1>&6
2077 cat > conftest.$ac_ext <<EOF
2078 #line 2079 "configure"
2079 #include "confdefs.h"
2080 #include <sys/sem.h>
2085 if { (eval echo configure:2086: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2087 ac_cv_c_union_semun="yes"
2089 echo "configure: failed program was:" >&5
2090 cat conftest.$ac_ext >&5
2092 ac_cv_c_union_semun="no"
2097 echo "$ac_t""$ac_cv_c_union_semun" 1>&6
2098 if test "$ac_cv_c_union_semun" = "yes"
2100 cat >> confdefs.h <<\EOF
2101 #define HAVE_UNION_SEMUN 1
2106 if test "$ac_cv_prog_LN_S" = "ln -s"; then : ; else LN_S=cp ; fi
2109 if test "x${GCC}" = "xyes"
2111 CFLAGS="$CFLAGS -Wall"
2112 echo $ac_n "checking "for gcc strength-reduce bug"""... $ac_c" 1>&6
2113 echo "configure:2114: checking "for gcc strength-reduce bug"" >&5
2114 if eval "test \"`echo '$''{'ac_cv_c_gcc_strength_bug'+set}'`\" = set"; then
2115 echo $ac_n "(cached) $ac_c" 1>&6
2117 if test "$cross_compiling" = yes; then
2118 ac_cv_c_gcc_strength_bug="yes"
2120 cat > conftest.$ac_ext <<EOF
2121 #line 2122 "configure"
2122 #include "confdefs.h"
2125 static int Array[3];
2128 for(i=0; i<B; i++) Array[i] = i - 3;
2129 exit( Array[1] != -2 );
2132 if { (eval echo configure:2133: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2134 ac_cv_c_gcc_strength_bug="no"
2136 echo "configure: failed program was:" >&5
2137 cat conftest.$ac_ext >&5
2139 ac_cv_c_gcc_strength_bug="yes"
2146 echo "$ac_t""$ac_cv_c_gcc_strength_bug" 1>&6
2147 if test "$ac_cv_c_gcc_strength_bug" = "yes"
2149 CFLAGS="$CFLAGS -fno-strength-reduce"
2154 echo $ac_n "checking "whether external symbols need an underscore prefix"""... $ac_c" 1>&6
2155 echo "configure:2156: checking "whether external symbols need an underscore prefix"" >&5
2156 if eval "test \"`echo '$''{'ac_cv_c_extern_prefix'+set}'`\" = set"; then
2157 echo $ac_n "(cached) $ac_c" 1>&6
2160 LIBS="conftest_asm.s $LIBS"
2161 cat > conftest_asm.s <<EOF
2166 cat > conftest.$ac_ext <<EOF
2167 #line 2168 "configure"
2168 #include "confdefs.h"
2171 if (ac_test) return 1
2174 if { (eval echo configure:2175: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2176 ac_cv_c_extern_prefix="yes"
2178 echo "configure: failed program was:" >&5
2179 cat conftest.$ac_ext >&5
2181 ac_cv_c_extern_prefix="no"
2187 echo "$ac_t""$ac_cv_c_extern_prefix" 1>&6
2188 if test "$ac_cv_c_extern_prefix" = "yes"
2190 cat >> confdefs.h <<\EOF
2191 #define NEED_UNDERSCORE_PREFIX 1
2197 echo $ac_n "checking "whether assembler accepts .string"""... $ac_c" 1>&6
2198 echo "configure:2199: checking "whether assembler accepts .string"" >&5
2199 if eval "test \"`echo '$''{'ac_cv_c_asm_string'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2203 LIBS="conftest_asm.s $LIBS"
2204 cat > conftest_asm.s <<EOF
2207 cat > conftest.$ac_ext <<EOF
2208 #line 2209 "configure"
2209 #include "confdefs.h"
2215 if { (eval echo configure:2216: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2217 ac_cv_c_asm_string="yes"
2219 echo "configure: failed program was:" >&5
2220 cat conftest.$ac_ext >&5
2222 ac_cv_c_asm_string="no"
2228 echo "$ac_t""$ac_cv_c_asm_string" 1>&6
2229 if test "$ac_cv_c_asm_string" = "yes"
2231 cat >> confdefs.h <<\EOF
2232 #define HAVE_ASM_STRING 1
2239 if test "$LIB_TARGET" = "libwine.so.1.0"
2241 echo $ac_n "checking "whether we can build a dll"""... $ac_c" 1>&6
2242 echo "configure:2243: checking "whether we can build a dll"" >&5
2243 if eval "test \"`echo '$''{'ac_cv_c_dll'+set}'`\" = set"; then
2244 echo $ac_n "(cached) $ac_c" 1>&6
2246 saved_cflags=$CFLAGS
2247 CFLAGS="$CFLAGS -fPIC -shared -Wl,-soname,conftest.so.1.0"
2248 cat > conftest.$ac_ext <<EOF
2249 #line 2250 "configure"
2250 #include "confdefs.h"
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2266 CFLAGS=$saved_cflags
2270 echo "$ac_t""$ac_cv_c_dll" 1>&6
2271 if test "$ac_cv_c_dll" = "yes"
2275 LIB_TARGET="libwine.a"
2281 for ac_func in clone memmove strerror tcgetattr usleep wait4 waitpid
2283 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2284 echo "configure:2285: checking for $ac_func" >&5
2285 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2286 echo $ac_n "(cached) $ac_c" 1>&6
2288 cat > conftest.$ac_ext <<EOF
2289 #line 2290 "configure"
2290 #include "confdefs.h"
2291 /* System header to define __stub macros and hopefully few prototypes,
2292 which can conflict with char $ac_func(); below. */
2294 /* Override any gcc2 internal prototype to avoid an error. */
2295 /* We use char because int might match the return type of a gcc2
2296 builtin and then its argument prototype would still apply. */
2301 /* The GNU C library defines this for functions which it implements
2302 to always fail with ENOSYS. Some functions are actually named
2303 something starting with __ and the normal name is an alias. */
2304 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2314 eval "ac_cv_func_$ac_func=yes"
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2319 eval "ac_cv_func_$ac_func=no"
2324 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2325 echo "$ac_t""yes" 1>&6
2326 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2327 cat >> confdefs.h <<EOF
2328 #define $ac_tr_func 1
2332 echo "$ac_t""no" 1>&6
2336 for ac_hdr in wctype.h
2338 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2339 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2340 echo "configure:2341: checking for $ac_hdr" >&5
2341 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2342 echo $ac_n "(cached) $ac_c" 1>&6
2344 cat > conftest.$ac_ext <<EOF
2345 #line 2346 "configure"
2346 #include "confdefs.h"
2349 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2350 { (eval echo configure:2351: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2351 ac_err=`grep -v '^ *+' conftest.out`
2352 if test -z "$ac_err"; then
2354 eval "ac_cv_header_$ac_safe=yes"
2357 echo "configure: failed program was:" >&5
2358 cat conftest.$ac_ext >&5
2360 eval "ac_cv_header_$ac_safe=no"
2364 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_hdr 1
2372 echo "$ac_t""no" 1>&6
2376 echo $ac_n "checking whether stat file-mode macros are broken""... $ac_c" 1>&6
2377 echo "configure:2378: checking whether stat file-mode macros are broken" >&5
2378 if eval "test \"`echo '$''{'ac_cv_header_stat_broken'+set}'`\" = set"; then
2379 echo $ac_n "(cached) $ac_c" 1>&6
2381 cat > conftest.$ac_ext <<EOF
2382 #line 2383 "configure"
2383 #include "confdefs.h"
2384 #include <sys/types.h>
2385 #include <sys/stat.h>
2387 #if defined(S_ISBLK) && defined(S_IFDIR)
2388 # if S_ISBLK (S_IFDIR)
2393 #if defined(S_ISBLK) && defined(S_IFCHR)
2394 # if S_ISBLK (S_IFCHR)
2399 #if defined(S_ISLNK) && defined(S_IFREG)
2400 # if S_ISLNK (S_IFREG)
2405 #if defined(S_ISSOCK) && defined(S_IFREG)
2406 # if S_ISSOCK (S_IFREG)
2412 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2413 egrep "You lose" >/dev/null 2>&1; then
2415 ac_cv_header_stat_broken=yes
2418 ac_cv_header_stat_broken=no
2424 echo "$ac_t""$ac_cv_header_stat_broken" 1>&6
2425 if test $ac_cv_header_stat_broken = yes; then
2426 cat >> confdefs.h <<\EOF
2427 #define STAT_MACROS_BROKEN 1
2432 echo $ac_n "checking for working const""... $ac_c" 1>&6
2433 echo "configure:2434: checking for working const" >&5
2434 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2435 echo $ac_n "(cached) $ac_c" 1>&6
2437 cat > conftest.$ac_ext <<EOF
2438 #line 2439 "configure"
2439 #include "confdefs.h"
2443 /* Ultrix mips cc rejects this. */
2444 typedef int charset[2]; const charset x;
2445 /* SunOS 4.1.1 cc rejects this. */
2446 char const *const *ccp;
2448 /* NEC SVR4.0.2 mips cc rejects this. */
2449 struct point {int x, y;};
2450 static struct point const zero = {0,0};
2451 /* AIX XL C 1.02.0.0 rejects this.
2452 It does not let you subtract one const X* pointer from another in an arm
2453 of an if-expression whose if-part is not a constant expression */
2454 const char *g = "string";
2455 ccp = &g + (g ? g-g : 0);
2456 /* HPUX 7.0 cc rejects these. */
2459 ccp = (char const *const *) p;
2460 { /* SCO 3.2v4 cc rejects this. */
2462 char const *s = 0 ? (char *) 0 : (char const *) 0;
2466 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2468 const int *foo = &x[0];
2471 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2472 typedef const int *iptr;
2476 { /* AIX XL C 1.02.0.0 rejects this saying
2477 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2478 struct s { int j; const int *ap[3]; };
2479 struct s *b; b->j = 5;
2481 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2487 if { (eval echo configure:2488: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 echo "configure: failed program was:" >&5
2492 cat conftest.$ac_ext >&5
2499 echo "$ac_t""$ac_cv_c_const" 1>&6
2500 if test $ac_cv_c_const = no; then
2501 cat >> confdefs.h <<\EOF
2507 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
2508 echo "configure:2509: checking for ANSI C header files" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2521 { (eval echo configure:2522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2522 ac_err=`grep -v '^ *+' conftest.out`
2523 if test -z "$ac_err"; then
2525 ac_cv_header_stdc=yes
2528 echo "configure: failed program was:" >&5
2529 cat conftest.$ac_ext >&5
2531 ac_cv_header_stdc=no
2535 if test $ac_cv_header_stdc = yes; then
2536 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2537 cat > conftest.$ac_ext <<EOF
2538 #line 2539 "configure"
2539 #include "confdefs.h"
2542 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2543 egrep "memchr" >/dev/null 2>&1; then
2547 ac_cv_header_stdc=no
2553 if test $ac_cv_header_stdc = yes; then
2554 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2555 cat > conftest.$ac_ext <<EOF
2556 #line 2557 "configure"
2557 #include "confdefs.h"
2560 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2561 egrep "free" >/dev/null 2>&1; then
2565 ac_cv_header_stdc=no
2571 if test $ac_cv_header_stdc = yes; then
2572 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2573 if test "$cross_compiling" = yes; then
2576 cat > conftest.$ac_ext <<EOF
2577 #line 2578 "configure"
2578 #include "confdefs.h"
2580 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2581 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2582 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2583 int main () { int i; for (i = 0; i < 256; i++)
2584 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
2588 if { (eval echo configure:2589: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2592 echo "configure: failed program was:" >&5
2593 cat conftest.$ac_ext >&5
2595 ac_cv_header_stdc=no
2603 echo "$ac_t""$ac_cv_header_stdc" 1>&6
2604 if test $ac_cv_header_stdc = yes; then
2605 cat >> confdefs.h <<\EOF
2606 #define STDC_HEADERS 1
2611 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2612 echo "configure:2613: checking for size_t" >&5
2613 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2614 echo $ac_n "(cached) $ac_c" 1>&6
2616 cat > conftest.$ac_ext <<EOF
2617 #line 2618 "configure"
2618 #include "confdefs.h"
2619 #include <sys/types.h>
2625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2626 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2628 ac_cv_type_size_t=yes
2631 ac_cv_type_size_t=no
2636 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2637 if test $ac_cv_type_size_t = no; then
2638 cat >> confdefs.h <<\EOF
2639 #define size_t unsigned
2646 MAKE_RULES=Make.rules
2650 cat > confcache <<\EOF
2651 # This file is a shell script that caches the results of configure
2652 # tests run on this system so they can be shared between configure
2653 # scripts and configure runs. It is not useful on other systems.
2654 # If it contains results you don't want to keep, you may remove or edit it.
2656 # By default, configure uses ./config.cache as the cache file,
2657 # creating it if it does not exist already. You can give configure
2658 # the --cache-file=FILE option to use a different cache file; that is
2659 # what configure does when it calls configure scripts in
2660 # subdirectories, so they share the cache.
2661 # Giving --cache-file=/dev/null disables caching, for debugging configure.
2662 # config.status only pays attention to the cache file if you give it the
2663 # --recheck option to rerun configure.
2666 # The following way of writing the cache mishandles newlines in values,
2667 # but we know of no workaround that is simple, portable, and efficient.
2668 # So, don't put newlines in cache variables' values.
2669 # Ultrix sh set writes to stderr and can't be redirected directly,
2670 # and sets the high bit in the cache file unless we assign to the vars.
2672 case `(ac_space=' '; set) 2>&1` in
2674 # `set' does not quote correctly, so add quotes (double-quote substitution
2675 # turns \\\\ into \\, and sed turns \\ into \).
2677 -e "s/'/'\\\\''/g" \
2678 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
2681 # `set' quotes correctly as required by POSIX, so do not add quotes.
2682 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
2685 if cmp -s $cache_file confcache; then
2688 if test -w $cache_file; then
2689 echo "updating cache $cache_file"
2690 cat confcache > $cache_file
2692 echo "not updating unwritable cache $cache_file"
2697 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
2699 test "x$prefix" = xNONE && prefix=$ac_default_prefix
2700 # Let make expand exec_prefix.
2701 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
2703 # Any assignment to VPATH causes Sun make to only execute
2704 # the first set of double-colon rules, so remove it if not needed.
2705 # If there is a colon in the path, we need to keep it.
2706 if test "x$srcdir" = x.; then
2707 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
2710 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
2712 DEFS=-DHAVE_CONFIG_H
2714 # Without the "./", some shells look in PATH for config.status.
2715 : ${CONFIG_STATUS=./config.status}
2717 echo creating $CONFIG_STATUS
2718 rm -f $CONFIG_STATUS
2719 cat > $CONFIG_STATUS <<EOF
2721 # Generated automatically by configure.
2722 # Run this file to recreate the current configuration.
2723 # This directory was configured as follows,
2724 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
2726 # $0 $ac_configure_args
2728 # Compiler output produced by configure, useful for debugging
2729 # configure, is in ./config.log if it exists.
2731 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
2734 case "\$ac_option" in
2735 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
2736 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
2737 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
2738 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
2739 echo "$CONFIG_STATUS generated by autoconf version 2.12"
2741 -help | --help | --hel | --he | --h)
2742 echo "\$ac_cs_usage"; exit 0 ;;
2743 *) echo "\$ac_cs_usage"; exit 1 ;;
2747 ac_given_srcdir=$srcdir
2748 ac_given_INSTALL="$INSTALL"
2750 trap 'rm -fr `echo "
2755 documentation/Makefile
2758 graphics/metafiledrv/Makefile
2759 graphics/win16drv/Makefile
2760 graphics/x11drv/Makefile
2774 programs/notepad/Makefile
2775 programs/progman/Makefile
2776 programs/winhelp/Makefile
2777 programs/winver/Makefile
2784 windows/Makefile include/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
2786 cat >> $CONFIG_STATUS <<EOF
2788 # Protect against being on the right side of a sed subst in config.status.
2789 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
2790 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
2793 s%@CFLAGS@%$CFLAGS%g
2794 s%@CPPFLAGS@%$CPPFLAGS%g
2795 s%@CXXFLAGS@%$CXXFLAGS%g
2797 s%@LDFLAGS@%$LDFLAGS%g
2799 s%@exec_prefix@%$exec_prefix%g
2800 s%@prefix@%$prefix%g
2801 s%@program_transform_name@%$program_transform_name%g
2802 s%@bindir@%$bindir%g
2803 s%@sbindir@%$sbindir%g
2804 s%@libexecdir@%$libexecdir%g
2805 s%@datadir@%$datadir%g
2806 s%@sysconfdir@%$sysconfdir%g
2807 s%@sharedstatedir@%$sharedstatedir%g
2808 s%@localstatedir@%$localstatedir%g
2809 s%@libdir@%$libdir%g
2810 s%@includedir@%$includedir%g
2811 s%@oldincludedir@%$oldincludedir%g
2812 s%@infodir@%$infodir%g
2813 s%@mandir@%$mandir%g
2814 s%@PROGEXT@%$PROGEXT%g
2815 s%@MAIN_TARGET@%$MAIN_TARGET%g
2816 s%@LIB_TARGET@%$LIB_TARGET%g
2817 s%@OPTIONS@%$OPTIONS%g
2818 s%@SET_MAKE@%$SET_MAKE%g
2821 s%@X_CFLAGS@%$X_CFLAGS%g
2822 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
2823 s%@X_LIBS@%$X_LIBS%g
2824 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
2827 s%@LEXLIB@%$LEXLIB%g
2828 s%@RANLIB@%$RANLIB%g
2829 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
2830 s%@INSTALL_DATA@%$INSTALL_DATA%g
2832 s%@DLLFLAGS@%$DLLFLAGS%g
2833 /@MAKE_RULES@/r $MAKE_RULES
2839 cat >> $CONFIG_STATUS <<\EOF
2841 # Split the substitutions into bite-sized pieces for seds with
2842 # small command number limits, like on Digital OSF/1 and HP-UX.
2843 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
2844 ac_file=1 # Number of current file.
2845 ac_beg=1 # First line for current file.
2846 ac_end=$ac_max_sed_cmds # Line after last line for current file.
2849 while $ac_more_lines; do
2850 if test $ac_beg -gt 1; then
2851 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
2853 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
2855 if test ! -s conftest.s$ac_file; then
2857 rm -f conftest.s$ac_file
2859 if test -z "$ac_sed_cmds"; then
2860 ac_sed_cmds="sed -f conftest.s$ac_file"
2862 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
2864 ac_file=`expr $ac_file + 1`
2866 ac_end=`expr $ac_end + $ac_max_sed_cmds`
2869 if test -z "$ac_sed_cmds"; then
2874 cat >> $CONFIG_STATUS <<EOF
2876 CONFIG_FILES=\${CONFIG_FILES-"Make.rules
2880 documentation/Makefile
2883 graphics/metafiledrv/Makefile
2884 graphics/win16drv/Makefile
2885 graphics/x11drv/Makefile
2899 programs/notepad/Makefile
2900 programs/progman/Makefile
2901 programs/winhelp/Makefile
2902 programs/winver/Makefile
2911 cat >> $CONFIG_STATUS <<\EOF
2912 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
2913 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2915 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2916 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2917 *) ac_file_in="${ac_file}.in" ;;
2920 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
2922 # Remove last slash and all that follows it. Not all systems have dirname.
2923 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
2924 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
2925 # The file is in a subdirectory.
2926 test ! -d "$ac_dir" && mkdir "$ac_dir"
2927 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
2928 # A "../" for each directory in $ac_dir_suffix.
2929 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
2931 ac_dir_suffix= ac_dots=
2934 case "$ac_given_srcdir" in
2936 if test -z "$ac_dots"; then top_srcdir=.
2937 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
2938 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
2940 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
2941 top_srcdir="$ac_dots$ac_given_srcdir" ;;
2944 case "$ac_given_INSTALL" in
2945 [/$]*) INSTALL="$ac_given_INSTALL" ;;
2946 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
2949 echo creating "$ac_file"
2951 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
2953 *Makefile*) ac_comsub="1i\\
2954 # $configure_input" ;;
2958 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
2960 s%@configure_input@%$configure_input%g
2961 s%@srcdir@%$srcdir%g
2962 s%@top_srcdir@%$top_srcdir%g
2963 s%@INSTALL@%$INSTALL%g
2964 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
2968 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
2969 # NAME is the cpp macro being defined and VALUE is the value it is being given.
2971 # ac_d sets the value in "#define NAME VALUE" lines.
2972 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
2973 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
2976 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
2977 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2978 ac_uB='\([ ]\)%\1#\2define\3'
2981 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
2982 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
2983 ac_eB='$%\1#\2define\3'
2987 if test "${CONFIG_HEADERS+set}" != set; then
2989 cat >> $CONFIG_STATUS <<EOF
2990 CONFIG_HEADERS="include/config.h"
2992 cat >> $CONFIG_STATUS <<\EOF
2994 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
2995 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
2997 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
2998 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
2999 *) ac_file_in="${ac_file}.in" ;;
3002 echo creating $ac_file
3004 rm -f conftest.frag conftest.in conftest.out
3005 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
3006 cat $ac_file_inputs > conftest.in
3010 # Transform confdefs.h into a sed script conftest.vals that substitutes
3011 # the proper values into config.h.in to produce config.h. And first:
3012 # Protect against being on the right side of a sed subst in config.status.
3013 # Protect against being in an unquoted here document in config.status.
3015 cat > conftest.hdr <<\EOF
3018 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
3022 sed -n -f conftest.hdr confdefs.h > conftest.vals
3025 # This sed command replaces #undef with comments. This is necessary, for
3026 # example, in the case of _POSIX_SOURCE, which is predefined and required
3027 # on some systems where configure will not decide to define it.
3028 cat >> conftest.vals <<\EOF
3029 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
3032 # Break up conftest.vals because some shells have a limit on
3033 # the size of here documents, and old seds have small limits too.
3038 ac_lines=`grep -c . conftest.vals`
3039 # grep -c gives empty output for an empty file on some AIX systems.
3040 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
3041 # Write a limited-size here document to conftest.frag.
3042 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
3043 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
3045 sed -f conftest.frag conftest.in > conftest.out
3047 mv conftest.out conftest.in
3049 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
3051 mv conftest.tail conftest.vals
3055 cat >> $CONFIG_STATUS <<\EOF
3056 rm -f conftest.frag conftest.h
3057 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
3058 cat conftest.in >> conftest.h
3060 if cmp -s $ac_file conftest.h 2>/dev/null; then
3061 echo "$ac_file is unchanged"
3064 # Remove last slash and all that follows it. Not all systems have dirname.
3065 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
3066 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
3067 # The file is in a subdirectory.
3068 test ! -d "$ac_dir" && mkdir "$ac_dir"
3071 mv conftest.h $ac_file
3076 cat >> $CONFIG_STATUS <<EOF
3079 cat >> $CONFIG_STATUS <<\EOF
3083 chmod +x $CONFIG_STATUS
3084 rm -fr confdefs* $ac_clean_files
3085 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
3089 echo "Configure finished. Do 'make depend; make' to compile Wine."