Update for 0.52.0. This is a test version, which brings the Appearance
[wmaker-crm.git] / configure
blob6944a7cf1b16fb95ce72d888bf6cd5022a133cc8
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --enable-kanji multibyte character support (kanji, Korean etc.)"
30 ac_help="$ac_help
31 --with-nlsdir=PATH specify where the locale stuff should go "
32 ac_help="$ac_help
33 --enable-gnome enable stuff needed for GNOME "
34 ac_help="$ac_help
35 --enable-kde enable support for KDE window manager (kwm) hints "
36 ac_help="$ac_help
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
38 ac_help="$ac_help
39 --enable-lite disable stuff duplicated in KDE/GNOME "
40 ac_help="$ac_help
41 --with-x use the X Window System"
42 ac_help="$ac_help
43 --disable-locale disable use of X locale support"
44 ac_help="$ac_help
45 --enable-modelock XKB keyboard language status support"
46 ac_help="$ac_help
47 --disable-shape disable shaped window extension support"
48 ac_help="$ac_help
49 --disable-shm disable usage of MIT-SHM extension"
50 ac_help="$ac_help
51 --disable-xpm disable use of XPM pixmaps through libXpm"
52 ac_help="$ac_help
53 --disable-png disable PNG support through libpng"
54 ac_help="$ac_help
55 --disable-jpeg disable JPEG support through libjpeg"
56 ac_help="$ac_help
57 --disable-gif disable GIF support through libgif or libungif"
58 ac_help="$ac_help
59 --disable-tiff disable use of TIFF images through libtiff"
60 ac_help="$ac_help
61 --enable-debug enable debugging "
62 ac_help="$ac_help
63 --disable-sound disable sound support "
64 ac_help="$ac_help
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
66 ac_help="$ac_help
67 --with-appspath=PATH specify the directory for GNUstep applications"
68 ac_help="$ac_help
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/WindowMaker.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
584 ac_aux_dir=
585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586 if test -f $ac_dir/install-sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install-sh -c"
589 break
590 elif test -f $ac_dir/install.sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install.sh -c"
593 break
595 done
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess=$ac_aux_dir/config.guess
600 ac_config_sub=$ac_aux_dir/config.sub
601 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
608 # IRIX /sbin/install
609 # AIX /bin/install
610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
613 # ./install, which can be erroneously created by make from ./install.sh.
614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
615 echo "configure:616: checking for a BSD compatible install" >&5
616 if test -z "$INSTALL"; then
617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
621 for ac_dir in $PATH; do
622 # Account for people who put trailing slashes in PATH elements.
623 case "$ac_dir/" in
624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
626 # OSF1 and SCO ODT 3.0 have their own names for install.
627 # Don't use installbsd from OSF since it installs stuff as root
628 # by default.
629 for ac_prog in ginstall scoinst install; do
630 if test -f $ac_dir/$ac_prog; then
631 if test $ac_prog = install &&
632 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
633 # AIX install. It has an incompatible calling convention.
635 else
636 ac_cv_path_install="$ac_dir/$ac_prog -c"
637 break 2
640 done
642 esac
643 done
644 IFS="$ac_save_IFS"
647 if test "${ac_cv_path_install+set}" = set; then
648 INSTALL="$ac_cv_path_install"
649 else
650 # As a last resort, use the slow shell script. We don't cache a
651 # path for INSTALL within a source directory, because that will
652 # break other packages using the cache if that directory is
653 # removed, or if the path is relative.
654 INSTALL="$ac_install_sh"
657 echo "$ac_t""$INSTALL" 1>&6
659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
660 # It thinks the first close brace ends the variable substitution.
661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
667 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
668 echo "configure:669: checking whether build environment is sane" >&5
669 # Just in case
670 sleep 1
671 echo timestamp > conftestfile
672 # Do `set' in a subshell so we don't clobber the current shell's
673 # arguments. Must try -L first in case configure is actually a
674 # symlink; some systems play weird games with the mod time of symlinks
675 # (eg FreeBSD returns the mod time of the symlink's containing
676 # directory).
677 if (
678 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
679 if test "$*" = "X"; then
680 # -L didn't work.
681 set X `ls -t $srcdir/configure conftestfile`
683 if test "$*" != "X $srcdir/configure conftestfile" \
684 && test "$*" != "X conftestfile $srcdir/configure"; then
686 # If neither matched, then we have a broken ls. This can happen
687 # if, for instance, CONFIG_SHELL is bash and it inherits a
688 # broken ls alias from the environment. This has actually
689 # happened. Such a system could not be considered "sane".
690 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
691 alias in your environment" 1>&2; exit 1; }
694 test "$2" = conftestfile
696 then
697 # Ok.
699 else
700 { echo "configure: error: newly created file is older than distributed files!
701 Check your system clock" 1>&2; exit 1; }
703 rm -f conftest*
704 echo "$ac_t""yes" 1>&6
705 if test "$program_transform_name" = s,x,x,; then
706 program_transform_name=
707 else
708 # Double any \ or $. echo might interpret backslashes.
709 cat <<\EOF_SED > conftestsed
710 s,\\,\\\\,g; s,\$,$$,g
711 EOF_SED
712 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
713 rm -f conftestsed
715 test "$program_prefix" != NONE &&
716 program_transform_name="s,^,${program_prefix},; $program_transform_name"
717 # Use a double $ so make ignores it.
718 test "$program_suffix" != NONE &&
719 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
721 # sed with no file args requires a program.
722 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
724 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
725 echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
727 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 cat > conftestmake <<\EOF
731 all:
732 @echo 'ac_maketemp="${MAKE}"'
734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
735 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
736 if test -n "$ac_maketemp"; then
737 eval ac_cv_prog_make_${ac_make}_set=yes
738 else
739 eval ac_cv_prog_make_${ac_make}_set=no
741 rm -f conftestmake
743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
744 echo "$ac_t""yes" 1>&6
745 SET_MAKE=
746 else
747 echo "$ac_t""no" 1>&6
748 SET_MAKE="MAKE=${MAKE-make}"
752 PACKAGE=WindowMaker
754 VERSION=0.52.0
756 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
757 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
759 cat >> confdefs.h <<EOF
760 #define PACKAGE "$PACKAGE"
763 cat >> confdefs.h <<EOF
764 #define VERSION "$VERSION"
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
776 ACLOCAL=aclocal
777 echo "$ac_t""found" 1>&6
778 else
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
789 AUTOCONF=autoconf
790 echo "$ac_t""found" 1>&6
791 else
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
802 AUTOMAKE=automake
803 echo "$ac_t""found" 1>&6
804 else
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
817 else
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
828 MAKEINFO=makeinfo
829 echo "$ac_t""found" 1>&6
830 else
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
837 # Check whether --enable-shared or --disable-shared was given.
838 if test "${enable_shared+set}" = set; then
839 enableval="$enable_shared"
840 p=${PACKAGE-default}
841 case "$enableval" in
842 yes) enable_shared=yes ;;
843 no) enable_shared=no ;;
845 enable_shared=no
846 # Look at the argument we got. We use all the common list separators.
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
848 for pkg in $enableval; do
849 if test "X$pkg" = "X$p"; then
850 enable_shared=yes
852 done
853 IFS="$ac_save_ifs"
855 esac
856 else
857 enable_shared=yes
860 # Check whether --enable-static or --disable-static was given.
861 if test "${enable_static+set}" = set; then
862 enableval="$enable_static"
863 p=${PACKAGE-default}
864 case "$enableval" in
865 yes) enable_static=yes ;;
866 no) enable_static=no ;;
868 enable_static=no
869 # Look at the argument we got. We use all the common list separators.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
871 for pkg in $enableval; do
872 if test "X$pkg" = "X$p"; then
873 enable_static=yes
875 done
876 IFS="$ac_save_ifs"
878 esac
879 else
880 enable_static=yes
884 # Make sure we can run config.sub.
885 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
886 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
892 host_alias=$host
893 case "$host_alias" in
894 NONE)
895 case $nonopt in
896 NONE)
897 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 fi ;;
900 *) host_alias=$nonopt ;;
901 esac ;;
902 esac
904 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
905 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo "$ac_t""$host" 1>&6
910 # Extract the first word of "ranlib", so it can be a program name with args.
911 set dummy ranlib; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 echo "configure:914: checking for $ac_word" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916 else
917 if test -n "$RANLIB"; then
918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
919 else
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 ac_dummy="$PATH"
922 for ac_dir in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_RANLIB="ranlib"
926 break
928 done
929 IFS="$ac_save_ifs"
930 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
933 RANLIB="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
936 else
937 echo "$ac_t""no" 1>&6
940 # Extract the first word of "gcc", so it can be a program name with args.
941 set dummy gcc; ac_word=$2
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
943 echo "configure:944: checking for $ac_word" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946 else
947 if test -n "$CC"; then
948 ac_cv_prog_CC="$CC" # Let the user override the test.
949 else
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
951 ac_dummy="$PATH"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 ac_cv_prog_CC="gcc"
956 break
958 done
959 IFS="$ac_save_ifs"
962 CC="$ac_cv_prog_CC"
963 if test -n "$CC"; then
964 echo "$ac_t""$CC" 1>&6
965 else
966 echo "$ac_t""no" 1>&6
969 if test -z "$CC"; then
970 # Extract the first word of "cc", so it can be a program name with args.
971 set dummy cc; ac_word=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 if test -n "$CC"; then
978 ac_cv_prog_CC="$CC" # Let the user override the test.
979 else
980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 ac_prog_rejected=no
982 ac_dummy="$PATH"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
987 ac_prog_rejected=yes
988 continue
990 ac_cv_prog_CC="cc"
991 break
993 done
994 IFS="$ac_save_ifs"
995 if test $ac_prog_rejected = yes; then
996 # We found a bogon in the path, so make sure we never use it.
997 set dummy $ac_cv_prog_CC
998 shift
999 if test $# -gt 0; then
1000 # We chose a different compiler from the bogus one.
1001 # However, it has the same basename, so the bogon will be chosen
1002 # first if we set CC to just the basename; use the full file name.
1003 shift
1004 set dummy "$ac_dir/$ac_word" "$@"
1005 shift
1006 ac_cv_prog_CC="$@"
1011 CC="$ac_cv_prog_CC"
1012 if test -n "$CC"; then
1013 echo "$ac_t""$CC" 1>&6
1014 else
1015 echo "$ac_t""no" 1>&6
1018 if test -z "$CC"; then
1019 case "`uname -s`" in
1020 *win32* | *WIN32*)
1021 # Extract the first word of "cl", so it can be a program name with args.
1022 set dummy cl; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 ac_dummy="$PATH"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 ac_cv_prog_CC="cl"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1043 CC="$ac_cv_prog_CC"
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 esac
1052 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058 ac_ext=c
1059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1060 ac_cpp='$CPP $CPPFLAGS'
1061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1063 cross_compiling=$ac_cv_prog_cc_cross
1065 cat > conftest.$ac_ext << EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1070 main(){return(0);}
1072 if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1073 ac_cv_prog_cc_works=yes
1074 # If we can't run a trivial program, we are probably using a cross compiler.
1075 if (./conftest; exit) 2>/dev/null; then
1076 ac_cv_prog_cc_cross=no
1077 else
1078 ac_cv_prog_cc_cross=yes
1080 else
1081 echo "configure: failed program was:" >&5
1082 cat conftest.$ac_ext >&5
1083 ac_cv_prog_cc_works=no
1085 rm -fr conftest*
1086 ac_ext=c
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp='$CPP $CPPFLAGS'
1089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling=$ac_cv_prog_cc_cross
1093 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1094 if test $ac_cv_prog_cc_works = no; then
1095 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1099 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1100 cross_compiling=$ac_cv_prog_cc_cross
1102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 cat > conftest.c <<EOF
1108 #ifdef __GNUC__
1109 yes;
1110 #endif
1112 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1113 ac_cv_prog_gcc=yes
1114 else
1115 ac_cv_prog_gcc=no
1119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1121 if test $ac_cv_prog_gcc = yes; then
1122 GCC=yes
1123 else
1124 GCC=
1127 ac_test_CFLAGS="${CFLAGS+set}"
1128 ac_save_CFLAGS="$CFLAGS"
1129 CFLAGS=
1130 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CC-cc} accepts -g" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 echo 'void f(){}' > conftest.c
1136 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1137 ac_cv_prog_cc_g=yes
1138 else
1139 ac_cv_prog_cc_g=no
1141 rm -f conftest*
1145 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1146 if test "$ac_test_CFLAGS" = set; then
1147 CFLAGS="$ac_save_CFLAGS"
1148 elif test $ac_cv_prog_cc_g = yes; then
1149 if test "$GCC" = yes; then
1150 CFLAGS="-g -O2"
1151 else
1152 CFLAGS="-g"
1154 else
1155 if test "$GCC" = yes; then
1156 CFLAGS="-O2"
1157 else
1158 CFLAGS=
1162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1163 if test "${with_gnu_ld+set}" = set; then
1164 withval="$with_gnu_ld"
1165 test "$withval" = no || with_gnu_ld=yes
1166 else
1167 with_gnu_ld=no
1171 ac_prog=ld
1172 if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ld used by GCC" >&5
1176 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1177 case "$ac_prog" in
1178 # Accept absolute paths.
1179 /* | A-Za-z:\\*)
1180 test -z "$LD" && LD="$ac_prog"
1183 # If it fails, then pretend we aren't using GCC.
1184 ac_prog=ld
1187 # If it is relative, then search for the first ld in PATH.
1188 with_gnu_ld=unknown
1190 esac
1191 elif test "$with_gnu_ld" = yes; then
1192 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1193 echo "configure:1194: checking for GNU ld" >&5
1194 else
1195 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1196 echo "configure:1197: checking for non-GNU ld" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -z "$LD"; then
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1203 for ac_dir in $PATH; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f "$ac_dir/$ac_prog"; then
1206 ac_cv_path_LD="$ac_dir/$ac_prog"
1207 # Check to see if the program is GNU ld. I'd rather use --version,
1208 # but apparently some GNU ld's only accept -v.
1209 # Break only if it was the GNU/non-GNU ld that we prefer.
1210 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1211 test "$with_gnu_ld" != no && break
1212 else
1213 test "$with_gnu_ld" != yes && break
1216 done
1217 IFS="$ac_save_ifs"
1218 else
1219 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1223 LD="$ac_cv_path_LD"
1224 if test -n "$LD"; then
1225 echo "$ac_t""$LD" 1>&6
1226 else
1227 echo "$ac_t""no" 1>&6
1229 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1232 echo "configure:1233: checking if the linker ($LD) is GNU ld" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1237 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1238 ac_cv_prog_gnu_ld=yes
1239 else
1240 ac_cv_prog_gnu_ld=no
1244 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1247 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1248 echo "configure:1249: checking for BSD-compatible nm" >&5
1249 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 case "$NM" in
1253 /* | A-Za-z:\\*)
1254 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/nm; then
1261 # Check to see if the nm accepts a BSD-compat flag.
1262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1263 # nm: unknown option "B" ignored
1264 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1265 ac_cv_path_NM="$ac_dir/nm -B"
1266 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1267 ac_cv_path_NM="$ac_dir/nm -p"
1268 else
1269 ac_cv_path_NM="$ac_dir/nm"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1277 esac
1280 NM="$ac_cv_path_NM"
1281 echo "$ac_t""$NM" 1>&6
1284 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ln -s works" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 rm -f conftestdata
1290 if ln -s X conftestdata 2>/dev/null
1291 then
1292 rm -f conftestdata
1293 ac_cv_prog_LN_S="ln -s"
1294 else
1295 ac_cv_prog_LN_S=ln
1298 LN_S="$ac_cv_prog_LN_S"
1299 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1300 echo "$ac_t""yes" 1>&6
1301 else
1302 echo "$ac_t""no" 1>&6
1305 # Always use our own libtool.
1306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1308 # Check for any special flags to pass to ltconfig.
1309 libtool_flags=
1310 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1311 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1312 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1313 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1314 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1316 # Some flags need to be propagated to the compiler or linker for good
1317 # libtool support.
1318 case "$host" in
1319 *-*-irix6*)
1320 # Find out which ABI we are using.
1321 echo '#line 1322 "configure"' > conftest.$ac_ext
1322 if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 case "`/usr/bin/file conftest.o`" in
1324 *32-bit*)
1325 LD="${LD-ld} -32"
1327 *N32*)
1328 LD="${LD-ld} -n32"
1330 *64-bit*)
1331 LD="${LD-ld} -64"
1333 esac
1335 rm -rf conftest*
1338 *-*-sco3.2v5*)
1339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1340 CFLAGS="$CFLAGS -belf"
1342 esac
1344 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1345 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1346 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1347 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1348 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1349 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1352 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1353 # Turn around -rpath problem with libtool 1.0c
1354 # This define should be improbable enough to not conflict with anything
1355 case ${host} in
1356 *-pc-linux-gnu)
1357 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1358 sed < libtool > libtool-2 \
1359 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1360 mv libtool-2 libtool
1361 chmod 755 libtool
1363 esac
1373 # Make sure we can run config.sub.
1374 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1375 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1378 echo $ac_n "checking host system type""... $ac_c" 1>&6
1379 echo "configure:1380: checking host system type" >&5
1381 host_alias=$host
1382 case "$host_alias" in
1383 NONE)
1384 case $nonopt in
1385 NONE)
1386 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1387 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1388 fi ;;
1389 *) host_alias=$nonopt ;;
1390 esac ;;
1391 esac
1393 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1394 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$ac_t""$host" 1>&6
1401 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1402 echo "configure:1403: checking for POSIXized ISC" >&5
1403 if test -d /etc/conf/kconfig.d &&
1404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1405 then
1406 echo "$ac_t""yes" 1>&6
1407 ISC=yes # If later tests want to check for ISC.
1408 cat >> confdefs.h <<\EOF
1409 #define _POSIX_SOURCE 1
1412 if test "$GCC" = yes; then
1413 CC="$CC -posix"
1414 else
1415 CC="$CC -Xp"
1417 else
1418 echo "$ac_t""no" 1>&6
1419 ISC=
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_CC="gcc"
1438 break
1440 done
1441 IFS="$ac_save_ifs"
1444 CC="$ac_cv_prog_CC"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 if test -z "$CC"; then
1452 # Extract the first word of "cc", so it can be a program name with args.
1453 set dummy cc; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1463 ac_prog_rejected=no
1464 ac_dummy="$PATH"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1469 ac_prog_rejected=yes
1470 continue
1472 ac_cv_prog_CC="cc"
1473 break
1475 done
1476 IFS="$ac_save_ifs"
1477 if test $ac_prog_rejected = yes; then
1478 # We found a bogon in the path, so make sure we never use it.
1479 set dummy $ac_cv_prog_CC
1480 shift
1481 if test $# -gt 0; then
1482 # We chose a different compiler from the bogus one.
1483 # However, it has the same basename, so the bogon will be chosen
1484 # first if we set CC to just the basename; use the full file name.
1485 shift
1486 set dummy "$ac_dir/$ac_word" "$@"
1487 shift
1488 ac_cv_prog_CC="$@"
1493 CC="$ac_cv_prog_CC"
1494 if test -n "$CC"; then
1495 echo "$ac_t""$CC" 1>&6
1496 else
1497 echo "$ac_t""no" 1>&6
1500 if test -z "$CC"; then
1501 case "`uname -s`" in
1502 *win32* | *WIN32*)
1503 # Extract the first word of "cl", so it can be a program name with args.
1504 set dummy cl; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_CC="cl"
1519 break
1521 done
1522 IFS="$ac_save_ifs"
1525 CC="$ac_cv_prog_CC"
1526 if test -n "$CC"; then
1527 echo "$ac_t""$CC" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 esac
1534 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1540 ac_ext=c
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling=$ac_cv_prog_cc_cross
1547 cat > conftest.$ac_ext << EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1552 main(){return(0);}
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 ac_cv_prog_cc_works=yes
1556 # If we can't run a trivial program, we are probably using a cross compiler.
1557 if (./conftest; exit) 2>/dev/null; then
1558 ac_cv_prog_cc_cross=no
1559 else
1560 ac_cv_prog_cc_cross=yes
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 ac_cv_prog_cc_works=no
1567 rm -fr conftest*
1568 ac_ext=c
1569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp='$CPP $CPPFLAGS'
1571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling=$ac_cv_prog_cc_cross
1575 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1576 if test $ac_cv_prog_cc_works = no; then
1577 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1581 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1582 cross_compiling=$ac_cv_prog_cc_cross
1584 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether we are using GNU C" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.c <<EOF
1590 #ifdef __GNUC__
1591 yes;
1592 #endif
1594 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1595 ac_cv_prog_gcc=yes
1596 else
1597 ac_cv_prog_gcc=no
1601 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1603 if test $ac_cv_prog_gcc = yes; then
1604 GCC=yes
1605 else
1606 GCC=
1609 ac_test_CFLAGS="${CFLAGS+set}"
1610 ac_save_CFLAGS="$CFLAGS"
1611 CFLAGS=
1612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether ${CC-cc} accepts -g" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 echo 'void f(){}' > conftest.c
1618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1619 ac_cv_prog_cc_g=yes
1620 else
1621 ac_cv_prog_cc_g=no
1623 rm -f conftest*
1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1628 if test "$ac_test_CFLAGS" = set; then
1629 CFLAGS="$ac_save_CFLAGS"
1630 elif test $ac_cv_prog_cc_g = yes; then
1631 if test "$GCC" = yes; then
1632 CFLAGS="-g -O2"
1633 else
1634 CFLAGS="-g"
1636 else
1637 if test "$GCC" = yes; then
1638 CFLAGS="-O2"
1639 else
1640 CFLAGS=
1644 #AC_PROG_RANLIB
1645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether ln -s works" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 rm -f conftestdata
1651 if ln -s X conftestdata 2>/dev/null
1652 then
1653 rm -f conftestdata
1654 ac_cv_prog_LN_S="ln -s"
1655 else
1656 ac_cv_prog_LN_S=ln
1659 LN_S="$ac_cv_prog_LN_S"
1660 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1661 echo "$ac_t""yes" 1>&6
1662 else
1663 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1667 echo "configure:1668: checking how to run the C preprocessor" >&5
1668 # On Suns, sometimes $CPP names a directory.
1669 if test -n "$CPP" && test -d "$CPP"; then
1670 CPP=
1672 if test -z "$CPP"; then
1673 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675 else
1676 # This must be in double quotes, not single quotes, because CPP may get
1677 # substituted into the Makefile and "${CC-cc}" will confuse make.
1678 CPP="${CC-cc} -E"
1679 # On the NeXT, cc -E runs the code through the compiler's parser,
1680 # not just through cpp.
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 #include <assert.h>
1685 Syntax Error
1687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1688 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1690 if test -z "$ac_err"; then
1692 else
1693 echo "$ac_err" >&5
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 CPP="${CC-cc} -E -traditional-cpp"
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 #include <assert.h>
1702 Syntax Error
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1709 else
1710 echo "$ac_err" >&5
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 rm -rf conftest*
1714 CPP="${CC-cc} -nologo -E"
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <assert.h>
1719 Syntax Error
1721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1726 else
1727 echo "$ac_err" >&5
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 CPP=/lib/cpp
1733 rm -f conftest*
1735 rm -f conftest*
1737 rm -f conftest*
1738 ac_cv_prog_CPP="$CPP"
1740 CPP="$ac_cv_prog_CPP"
1741 else
1742 ac_cv_prog_CPP="$CPP"
1744 echo "$ac_t""$CPP" 1>&6
1746 if test $ac_cv_prog_gcc = yes; then
1747 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_pattern="Autoconf.*'x'"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #include <sgtty.h>
1757 Autoconf TIOCGETP
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "$ac_pattern" >/dev/null 2>&1; then
1761 rm -rf conftest*
1762 ac_cv_prog_gcc_traditional=yes
1763 else
1764 rm -rf conftest*
1765 ac_cv_prog_gcc_traditional=no
1767 rm -f conftest*
1770 if test $ac_cv_prog_gcc_traditional = no; then
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <termio.h>
1775 Autoconf TCGETA
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "$ac_pattern" >/dev/null 2>&1; then
1779 rm -rf conftest*
1780 ac_cv_prog_gcc_traditional=yes
1782 rm -f conftest*
1787 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1788 if test $ac_cv_prog_gcc_traditional = yes; then
1789 CC="$CC -traditional"
1796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1800 _bindir=`eval echo $bindir`
1801 _bindir=`eval echo $_bindir`
1803 _libdir=`eval echo $libdir`
1804 _libdir=`eval echo $_libdir`
1805 lib_search_path="-L$_libdir"
1807 inc_search_path=`eval echo $includedir`
1808 inc_search_path="-I`eval echo $inc_search_path`"
1813 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1814 echo "configure:1815: checking for RedHat system" >&5
1815 wm_check_flag='no :)'
1816 rh_is_redhat=no
1817 if test -f /etc/redhat-release; then
1818 wm_check_flag=yes
1819 rh_is_redhat=yes
1821 echo "$ac_t""$wm_check_flag" 1>&6
1823 mins_found=no
1824 bugs_found=no
1825 if test "$wm_check_flag" = yes; then
1826 echo
1827 echo "configure: warning: Red Hat system; checking for Red-Hat-specific bugs." 1>&2
1828 echo
1830 # Check old wmaker from RedHat
1832 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1833 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1834 echo "configure:1835: checking for multiple installed wmaker versions" >&5
1835 if test -f /usr/X11R6/bin/wmaker; then
1836 echo "$ac_t""uh oh" 1>&6
1837 mins_found=yes
1838 rh_old_wmaker=yes
1839 else
1840 rh_old_wmaker=no
1841 echo "$ac_t""no apparent problems" 1>&6
1845 # Check for infamous en_RN bug
1846 # Wont work because autoconf will change LANG in the beginning of the
1847 # script.
1850 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
1851 #echo $LANG
1852 #if test "x$LANG" = xen_RN; then
1853 #AC_MSG_RESULT(uh oh)
1854 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
1855 #locale. Please unset it or you will have mysterious problems when
1856 #using various software packages.])
1857 #bugs_found=yes
1858 #else
1859 #AC_MSG_RESULT(no problem)
1862 # If binary installation path is /usr/local/bin, check if it's in PATH
1864 if test "$_bindir" = "/usr/local/bin"; then
1865 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
1866 echo "configure:1867: checking if /usr/local/bin is in the search PATH" >&5
1867 wm_check_flag=no
1868 rh_missing_usr_local_bin=yes
1869 old_IFS="$IFS"
1870 IFS=":"
1871 for i in $PATH; do
1872 if test "x$i" = "x/usr/local/bin"; then
1873 wm_check_flag=yes
1874 rh_missing_usr_local_bin=no
1875 break;
1877 done
1878 IFS="$old_IFS"
1879 if test "$wm_check_flag" = no; then
1880 echo "$ac_t""uh oh" 1>&6
1881 bugs_found=yes
1882 else
1883 echo "$ac_t""no problem" 1>&6
1887 # If library installation path is /usr/local/lib,
1888 # check if it's in /etc/ld.so.conf
1890 if test "$_libdir" = "/usr/local/lib"; then
1891 wm_check_flag=yes
1892 rh_missing_usr_local_lib=no
1893 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
1894 echo "configure:1895: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
1895 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
1896 test "$?" -eq 0 && wm_check_flag=no
1897 if test "$wm_check_flag" = no; then
1898 echo "$ac_t""uh oh" 1>&6
1899 rh_missing_usr_local_lib=yes
1900 bugs_found=yes
1901 else
1902 echo "$ac_t""no problem" 1>&6
1906 # Check for symbolic links
1908 echo $ac_n "checking for /usr/X11 symbolic link""... $ac_c" 1>&6
1909 echo "configure:1910: checking for /usr/X11 symbolic link" >&5
1910 rh_missing_usr_x11=no
1911 if test -d "/usr/X11"; then
1912 echo "$ac_t""found" 1>&6
1913 else
1914 echo "$ac_t""uh oh" 1>&6
1915 rh_missing_usr_x11=yes
1916 mins_found=yes
1918 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
1919 echo "configure:1920: checking for /usr/include/X11 symbolic link" >&5
1920 rh_missing_usr_include_x11=no
1921 if test -d "/usr/include/X11"; then
1922 echo "$ac_t""found" 1>&6
1923 else
1924 echo "$ac_t""uh oh" 1>&6
1925 rh_missing_usr_include_x11=yes
1926 mins_found=yes
1930 # Check for /lib/cpp
1932 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
1933 echo "configure:1934: checking for /lib/cpp" >&5
1934 rh_missing_lib_cpp=no
1935 if test -f "/lib/cpp"; then
1936 echo "$ac_t""found" 1>&6
1937 else
1938 echo "$ac_t""uh oh" 1>&6
1939 rh_missing_lib_cpp=yes
1940 bugs_found=yes
1943 echo
1948 # Check whether --with-libs-from or --without-libs-from was given.
1949 if test "${with_libs_from+set}" = set; then
1950 withval="$with_libs_from"
1951 lib_search_path="$withval $lib_search_path"
1955 # Check whether --with-incs-from or --without-incs-from was given.
1956 if test "${with_incs_from+set}" = set; then
1957 withval="$with_incs_from"
1958 inc_search_path="$withval $inc_search_path"
1964 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1965 echo "configure:1966: checking for vprintf" >&5
1966 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1967 echo $ac_n "(cached) $ac_c" 1>&6
1968 else
1969 cat > conftest.$ac_ext <<EOF
1970 #line 1971 "configure"
1971 #include "confdefs.h"
1972 /* System header to define __stub macros and hopefully few prototypes,
1973 which can conflict with char vprintf(); below. */
1974 #include <assert.h>
1975 /* Override any gcc2 internal prototype to avoid an error. */
1976 /* We use char because int might match the return type of a gcc2
1977 builtin and then its argument prototype would still apply. */
1978 char vprintf();
1980 int main() {
1982 /* The GNU C library defines this for functions which it implements
1983 to always fail with ENOSYS. Some functions are actually named
1984 something starting with __ and the normal name is an alias. */
1985 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1986 choke me
1987 #else
1988 vprintf();
1989 #endif
1991 ; return 0; }
1993 if { (eval echo configure:1994: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1994 rm -rf conftest*
1995 eval "ac_cv_func_vprintf=yes"
1996 else
1997 echo "configure: failed program was:" >&5
1998 cat conftest.$ac_ext >&5
1999 rm -rf conftest*
2000 eval "ac_cv_func_vprintf=no"
2002 rm -f conftest*
2005 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2006 echo "$ac_t""yes" 1>&6
2007 cat >> confdefs.h <<\EOF
2008 #define HAVE_VPRINTF 1
2011 else
2012 echo "$ac_t""no" 1>&6
2015 if test "$ac_cv_func_vprintf" != yes; then
2016 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2017 echo "configure:2018: checking for _doprnt" >&5
2018 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2019 echo $ac_n "(cached) $ac_c" 1>&6
2020 else
2021 cat > conftest.$ac_ext <<EOF
2022 #line 2023 "configure"
2023 #include "confdefs.h"
2024 /* System header to define __stub macros and hopefully few prototypes,
2025 which can conflict with char _doprnt(); below. */
2026 #include <assert.h>
2027 /* Override any gcc2 internal prototype to avoid an error. */
2028 /* We use char because int might match the return type of a gcc2
2029 builtin and then its argument prototype would still apply. */
2030 char _doprnt();
2032 int main() {
2034 /* The GNU C library defines this for functions which it implements
2035 to always fail with ENOSYS. Some functions are actually named
2036 something starting with __ and the normal name is an alias. */
2037 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2038 choke me
2039 #else
2040 _doprnt();
2041 #endif
2043 ; return 0; }
2045 if { (eval echo configure:2046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2046 rm -rf conftest*
2047 eval "ac_cv_func__doprnt=yes"
2048 else
2049 echo "configure: failed program was:" >&5
2050 cat conftest.$ac_ext >&5
2051 rm -rf conftest*
2052 eval "ac_cv_func__doprnt=no"
2054 rm -f conftest*
2057 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2058 echo "$ac_t""yes" 1>&6
2059 cat >> confdefs.h <<\EOF
2060 #define HAVE_DOPRNT 1
2063 else
2064 echo "$ac_t""no" 1>&6
2069 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2070 # for constant arguments. Useless!
2071 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2072 echo "configure:2073: checking for working alloca.h" >&5
2073 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2074 echo $ac_n "(cached) $ac_c" 1>&6
2075 else
2076 cat > conftest.$ac_ext <<EOF
2077 #line 2078 "configure"
2078 #include "confdefs.h"
2079 #include <alloca.h>
2080 int main() {
2081 char *p = alloca(2 * sizeof(int));
2082 ; return 0; }
2084 if { (eval echo configure:2085: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2085 rm -rf conftest*
2086 ac_cv_header_alloca_h=yes
2087 else
2088 echo "configure: failed program was:" >&5
2089 cat conftest.$ac_ext >&5
2090 rm -rf conftest*
2091 ac_cv_header_alloca_h=no
2093 rm -f conftest*
2096 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2097 if test $ac_cv_header_alloca_h = yes; then
2098 cat >> confdefs.h <<\EOF
2099 #define HAVE_ALLOCA_H 1
2104 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2105 echo "configure:2106: checking for alloca" >&5
2106 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2107 echo $ac_n "(cached) $ac_c" 1>&6
2108 else
2109 cat > conftest.$ac_ext <<EOF
2110 #line 2111 "configure"
2111 #include "confdefs.h"
2113 #ifdef __GNUC__
2114 # define alloca __builtin_alloca
2115 #else
2116 # ifdef _MSC_VER
2117 # include <malloc.h>
2118 # define alloca _alloca
2119 # else
2120 # if HAVE_ALLOCA_H
2121 # include <alloca.h>
2122 # else
2123 # ifdef _AIX
2124 #pragma alloca
2125 # else
2126 # ifndef alloca /* predefined by HP cc +Olibcalls */
2127 char *alloca ();
2128 # endif
2129 # endif
2130 # endif
2131 # endif
2132 #endif
2134 int main() {
2135 char *p = (char *) alloca(1);
2136 ; return 0; }
2138 if { (eval echo configure:2139: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2139 rm -rf conftest*
2140 ac_cv_func_alloca_works=yes
2141 else
2142 echo "configure: failed program was:" >&5
2143 cat conftest.$ac_ext >&5
2144 rm -rf conftest*
2145 ac_cv_func_alloca_works=no
2147 rm -f conftest*
2150 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2151 if test $ac_cv_func_alloca_works = yes; then
2152 cat >> confdefs.h <<\EOF
2153 #define HAVE_ALLOCA 1
2158 if test $ac_cv_func_alloca_works = no; then
2159 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2160 # that cause trouble. Some versions do not even contain alloca or
2161 # contain a buggy version. If you still want to use their alloca,
2162 # use ar to extract alloca.o from them instead of compiling alloca.c.
2163 ALLOCA=alloca.${ac_objext}
2164 cat >> confdefs.h <<\EOF
2165 #define C_ALLOCA 1
2169 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2170 echo "configure:2171: checking whether alloca needs Cray hooks" >&5
2171 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2172 echo $ac_n "(cached) $ac_c" 1>&6
2173 else
2174 cat > conftest.$ac_ext <<EOF
2175 #line 2176 "configure"
2176 #include "confdefs.h"
2177 #if defined(CRAY) && ! defined(CRAY2)
2178 webecray
2179 #else
2180 wenotbecray
2181 #endif
2184 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2185 egrep "webecray" >/dev/null 2>&1; then
2186 rm -rf conftest*
2187 ac_cv_os_cray=yes
2188 else
2189 rm -rf conftest*
2190 ac_cv_os_cray=no
2192 rm -f conftest*
2196 echo "$ac_t""$ac_cv_os_cray" 1>&6
2197 if test $ac_cv_os_cray = yes; then
2198 for ac_func in _getb67 GETB67 getb67; do
2199 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2200 echo "configure:2201: checking for $ac_func" >&5
2201 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 /* System header to define __stub macros and hopefully few prototypes,
2208 which can conflict with char $ac_func(); below. */
2209 #include <assert.h>
2210 /* Override any gcc2 internal prototype to avoid an error. */
2211 /* We use char because int might match the return type of a gcc2
2212 builtin and then its argument prototype would still apply. */
2213 char $ac_func();
2215 int main() {
2217 /* The GNU C library defines this for functions which it implements
2218 to always fail with ENOSYS. Some functions are actually named
2219 something starting with __ and the normal name is an alias. */
2220 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2221 choke me
2222 #else
2223 $ac_func();
2224 #endif
2226 ; return 0; }
2228 if { (eval echo configure:2229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2229 rm -rf conftest*
2230 eval "ac_cv_func_$ac_func=yes"
2231 else
2232 echo "configure: failed program was:" >&5
2233 cat conftest.$ac_ext >&5
2234 rm -rf conftest*
2235 eval "ac_cv_func_$ac_func=no"
2237 rm -f conftest*
2240 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2241 echo "$ac_t""yes" 1>&6
2242 cat >> confdefs.h <<EOF
2243 #define CRAY_STACKSEG_END $ac_func
2246 break
2247 else
2248 echo "$ac_t""no" 1>&6
2251 done
2254 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2255 echo "configure:2256: checking stack direction for C alloca" >&5
2256 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2257 echo $ac_n "(cached) $ac_c" 1>&6
2258 else
2259 if test "$cross_compiling" = yes; then
2260 ac_cv_c_stack_direction=0
2261 else
2262 cat > conftest.$ac_ext <<EOF
2263 #line 2264 "configure"
2264 #include "confdefs.h"
2265 find_stack_direction ()
2267 static char *addr = 0;
2268 auto char dummy;
2269 if (addr == 0)
2271 addr = &dummy;
2272 return find_stack_direction ();
2274 else
2275 return (&dummy > addr) ? 1 : -1;
2277 main ()
2279 exit (find_stack_direction() < 0);
2282 if { (eval echo configure:2283: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2283 then
2284 ac_cv_c_stack_direction=1
2285 else
2286 echo "configure: failed program was:" >&5
2287 cat conftest.$ac_ext >&5
2288 rm -fr conftest*
2289 ac_cv_c_stack_direction=-1
2291 rm -fr conftest*
2296 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2297 cat >> confdefs.h <<EOF
2298 #define STACK_DIRECTION $ac_cv_c_stack_direction
2303 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2305 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2306 echo "configure:2307: checking for $ac_func" >&5
2307 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2308 echo $ac_n "(cached) $ac_c" 1>&6
2309 else
2310 cat > conftest.$ac_ext <<EOF
2311 #line 2312 "configure"
2312 #include "confdefs.h"
2313 /* System header to define __stub macros and hopefully few prototypes,
2314 which can conflict with char $ac_func(); below. */
2315 #include <assert.h>
2316 /* Override any gcc2 internal prototype to avoid an error. */
2317 /* We use char because int might match the return type of a gcc2
2318 builtin and then its argument prototype would still apply. */
2319 char $ac_func();
2321 int main() {
2323 /* The GNU C library defines this for functions which it implements
2324 to always fail with ENOSYS. Some functions are actually named
2325 something starting with __ and the normal name is an alias. */
2326 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2327 choke me
2328 #else
2329 $ac_func();
2330 #endif
2332 ; return 0; }
2334 if { (eval echo configure:2335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2335 rm -rf conftest*
2336 eval "ac_cv_func_$ac_func=yes"
2337 else
2338 echo "configure: failed program was:" >&5
2339 cat conftest.$ac_ext >&5
2340 rm -rf conftest*
2341 eval "ac_cv_func_$ac_func=no"
2343 rm -f conftest*
2346 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2347 echo "$ac_t""yes" 1>&6
2348 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2349 cat >> confdefs.h <<EOF
2350 #define $ac_tr_func 1
2353 else
2354 echo "$ac_t""no" 1>&6
2356 done
2359 if test "x$CPP_PATH" = x; then
2360 # Extract the first word of "cpp", so it can be a program name with args.
2361 set dummy cpp; ac_word=$2
2362 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2363 echo "configure:2364: checking for $ac_word" >&5
2364 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2365 echo $ac_n "(cached) $ac_c" 1>&6
2366 else
2367 case "$CPP_PATH" in
2369 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2371 ?:/*)
2372 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2375 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2376 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2377 for ac_dir in $ac_dummy; do
2378 test -z "$ac_dir" && ac_dir=.
2379 if test -f $ac_dir/$ac_word; then
2380 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2381 break
2383 done
2384 IFS="$ac_save_ifs"
2385 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2387 esac
2389 CPP_PATH="$ac_cv_path_CPP_PATH"
2390 if test -n "$CPP_PATH"; then
2391 echo "$ac_t""$CPP_PATH" 1>&6
2392 else
2393 echo "$ac_t""no" 1>&6
2398 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2399 if test "$GCC" = "yes"; then
2400 CPP_PATH="gcc -E -x c"
2401 else
2402 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2403 CPP_PATH="$CPP_PATH -B"
2404 else
2405 echo "cpp, the C preprocessor was not found in your system."
2406 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2407 exit
2411 cat >> confdefs.h <<EOF
2412 #define CPP_PATH "$CPP_PATH"
2418 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2419 echo "configure:2420: checking for sys/wait.h that is POSIX.1 compatible" >&5
2420 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2421 echo $ac_n "(cached) $ac_c" 1>&6
2422 else
2423 cat > conftest.$ac_ext <<EOF
2424 #line 2425 "configure"
2425 #include "confdefs.h"
2426 #include <sys/types.h>
2427 #include <sys/wait.h>
2428 #ifndef WEXITSTATUS
2429 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2430 #endif
2431 #ifndef WIFEXITED
2432 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2433 #endif
2434 int main() {
2435 int s;
2436 wait (&s);
2437 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2438 ; return 0; }
2440 if { (eval echo configure:2441: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2441 rm -rf conftest*
2442 ac_cv_header_sys_wait_h=yes
2443 else
2444 echo "configure: failed program was:" >&5
2445 cat conftest.$ac_ext >&5
2446 rm -rf conftest*
2447 ac_cv_header_sys_wait_h=no
2449 rm -f conftest*
2452 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2453 if test $ac_cv_header_sys_wait_h = yes; then
2454 cat >> confdefs.h <<\EOF
2455 #define HAVE_SYS_WAIT_H 1
2460 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2461 echo "configure:2462: checking whether time.h and sys/time.h may both be included" >&5
2462 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2463 echo $ac_n "(cached) $ac_c" 1>&6
2464 else
2465 cat > conftest.$ac_ext <<EOF
2466 #line 2467 "configure"
2467 #include "confdefs.h"
2468 #include <sys/types.h>
2469 #include <sys/time.h>
2470 #include <time.h>
2471 int main() {
2472 struct tm *tp;
2473 ; return 0; }
2475 if { (eval echo configure:2476: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2476 rm -rf conftest*
2477 ac_cv_header_time=yes
2478 else
2479 echo "configure: failed program was:" >&5
2480 cat conftest.$ac_ext >&5
2481 rm -rf conftest*
2482 ac_cv_header_time=no
2484 rm -f conftest*
2487 echo "$ac_t""$ac_cv_header_time" 1>&6
2488 if test $ac_cv_header_time = yes; then
2489 cat >> confdefs.h <<\EOF
2490 #define TIME_WITH_SYS_TIME 1
2495 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2496 libintl.h sys/select.h poll.h
2498 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2499 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2500 echo "configure:2501: checking for $ac_hdr" >&5
2501 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2502 echo $ac_n "(cached) $ac_c" 1>&6
2503 else
2504 cat > conftest.$ac_ext <<EOF
2505 #line 2506 "configure"
2506 #include "confdefs.h"
2507 #include <$ac_hdr>
2509 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2510 { (eval echo configure:2511: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2511 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2512 if test -z "$ac_err"; then
2513 rm -rf conftest*
2514 eval "ac_cv_header_$ac_safe=yes"
2515 else
2516 echo "$ac_err" >&5
2517 echo "configure: failed program was:" >&5
2518 cat conftest.$ac_ext >&5
2519 rm -rf conftest*
2520 eval "ac_cv_header_$ac_safe=no"
2522 rm -f conftest*
2524 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2525 echo "$ac_t""yes" 1>&6
2526 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2527 cat >> confdefs.h <<EOF
2528 #define $ac_tr_hdr 1
2531 else
2532 echo "$ac_t""no" 1>&6
2534 done
2539 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2540 echo "configure:2541: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2541 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2542 echo $ac_n "(cached) $ac_c" 1>&6
2543 else
2544 cat > conftest.$ac_ext <<EOF
2545 #line 2546 "configure"
2546 #include "confdefs.h"
2547 #include <sys/types.h>
2548 #include <signal.h>
2549 /* NetBSD declares sys_siglist in unistd.h. */
2550 #ifdef HAVE_UNISTD_H
2551 #include <unistd.h>
2552 #endif
2553 int main() {
2554 char *msg = *(sys_siglist + 1);
2555 ; return 0; }
2557 if { (eval echo configure:2558: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2558 rm -rf conftest*
2559 ac_cv_decl_sys_siglist=yes
2560 else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 ac_cv_decl_sys_siglist=no
2566 rm -f conftest*
2569 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2570 if test $ac_cv_decl_sys_siglist = yes; then
2571 cat >> confdefs.h <<\EOF
2572 #define SYS_SIGLIST_DECLARED 1
2577 echo $ac_n "checking for working const""... $ac_c" 1>&6
2578 echo "configure:2579: checking for working const" >&5
2579 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2580 echo $ac_n "(cached) $ac_c" 1>&6
2581 else
2582 cat > conftest.$ac_ext <<EOF
2583 #line 2584 "configure"
2584 #include "confdefs.h"
2586 int main() {
2588 /* Ultrix mips cc rejects this. */
2589 typedef int charset[2]; const charset x;
2590 /* SunOS 4.1.1 cc rejects this. */
2591 char const *const *ccp;
2592 char **p;
2593 /* NEC SVR4.0.2 mips cc rejects this. */
2594 struct point {int x, y;};
2595 static struct point const zero = {0,0};
2596 /* AIX XL C 1.02.0.0 rejects this.
2597 It does not let you subtract one const X* pointer from another in an arm
2598 of an if-expression whose if-part is not a constant expression */
2599 const char *g = "string";
2600 ccp = &g + (g ? g-g : 0);
2601 /* HPUX 7.0 cc rejects these. */
2602 ++ccp;
2603 p = (char**) ccp;
2604 ccp = (char const *const *) p;
2605 { /* SCO 3.2v4 cc rejects this. */
2606 char *t;
2607 char const *s = 0 ? (char *) 0 : (char const *) 0;
2609 *t++ = 0;
2611 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2612 int x[] = {25, 17};
2613 const int *foo = &x[0];
2614 ++foo;
2616 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2617 typedef const int *iptr;
2618 iptr p = 0;
2619 ++p;
2621 { /* AIX XL C 1.02.0.0 rejects this saying
2622 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2623 struct s { int j; const int *ap[3]; };
2624 struct s *b; b->j = 5;
2626 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2627 const int foo = 10;
2630 ; return 0; }
2632 if { (eval echo configure:2633: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2633 rm -rf conftest*
2634 ac_cv_c_const=yes
2635 else
2636 echo "configure: failed program was:" >&5
2637 cat conftest.$ac_ext >&5
2638 rm -rf conftest*
2639 ac_cv_c_const=no
2641 rm -f conftest*
2644 echo "$ac_t""$ac_cv_c_const" 1>&6
2645 if test $ac_cv_c_const = no; then
2646 cat >> confdefs.h <<\EOF
2647 #define const
2652 #AC_TYPE_SIZE_T
2653 #AC_TYPE_PID_T
2654 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2655 echo "configure:2656: checking return type of signal handlers" >&5
2656 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2657 echo $ac_n "(cached) $ac_c" 1>&6
2658 else
2659 cat > conftest.$ac_ext <<EOF
2660 #line 2661 "configure"
2661 #include "confdefs.h"
2662 #include <sys/types.h>
2663 #include <signal.h>
2664 #ifdef signal
2665 #undef signal
2666 #endif
2667 #ifdef __cplusplus
2668 extern "C" void (*signal (int, void (*)(int)))(int);
2669 #else
2670 void (*signal ()) ();
2671 #endif
2673 int main() {
2674 int i;
2675 ; return 0; }
2677 if { (eval echo configure:2678: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2678 rm -rf conftest*
2679 ac_cv_type_signal=void
2680 else
2681 echo "configure: failed program was:" >&5
2682 cat conftest.$ac_ext >&5
2683 rm -rf conftest*
2684 ac_cv_type_signal=int
2686 rm -f conftest*
2689 echo "$ac_t""$ac_cv_type_signal" 1>&6
2690 cat >> confdefs.h <<EOF
2691 #define RETSIGTYPE $ac_cv_type_signal
2702 INTLIBS=""
2705 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2706 echo "configure:2707: checking for gettext" >&5
2707 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2708 echo $ac_n "(cached) $ac_c" 1>&6
2709 else
2710 cat > conftest.$ac_ext <<EOF
2711 #line 2712 "configure"
2712 #include "confdefs.h"
2713 /* System header to define __stub macros and hopefully few prototypes,
2714 which can conflict with char gettext(); below. */
2715 #include <assert.h>
2716 /* Override any gcc2 internal prototype to avoid an error. */
2717 /* We use char because int might match the return type of a gcc2
2718 builtin and then its argument prototype would still apply. */
2719 char gettext();
2721 int main() {
2723 /* The GNU C library defines this for functions which it implements
2724 to always fail with ENOSYS. Some functions are actually named
2725 something starting with __ and the normal name is an alias. */
2726 #if defined (__stub_gettext) || defined (__stub___gettext)
2727 choke me
2728 #else
2729 gettext();
2730 #endif
2732 ; return 0; }
2734 if { (eval echo configure:2735: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2735 rm -rf conftest*
2736 eval "ac_cv_func_gettext=yes"
2737 else
2738 echo "configure: failed program was:" >&5
2739 cat conftest.$ac_ext >&5
2740 rm -rf conftest*
2741 eval "ac_cv_func_gettext=no"
2743 rm -f conftest*
2746 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2747 echo "$ac_t""yes" 1>&6
2748 HAVEGETTEXT="yes"
2749 else
2750 echo "$ac_t""no" 1>&6
2751 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2752 echo "configure:2753: checking for gettext in -lintl" >&5
2753 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2754 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2755 echo $ac_n "(cached) $ac_c" 1>&6
2756 else
2757 ac_save_LIBS="$LIBS"
2758 LIBS="-lintl $LIBS"
2759 cat > conftest.$ac_ext <<EOF
2760 #line 2761 "configure"
2761 #include "confdefs.h"
2762 /* Override any gcc2 internal prototype to avoid an error. */
2763 /* We use char because int might match the return type of a gcc2
2764 builtin and then its argument prototype would still apply. */
2765 char gettext();
2767 int main() {
2768 gettext()
2769 ; return 0; }
2771 if { (eval echo configure:2772: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2772 rm -rf conftest*
2773 eval "ac_cv_lib_$ac_lib_var=yes"
2774 else
2775 echo "configure: failed program was:" >&5
2776 cat conftest.$ac_ext >&5
2777 rm -rf conftest*
2778 eval "ac_cv_lib_$ac_lib_var=no"
2780 rm -f conftest*
2781 LIBS="$ac_save_LIBS"
2784 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2785 echo "$ac_t""yes" 1>&6
2786 INTLIBS="-lintl" HAVEGETTEXT="yes"
2787 else
2788 echo "$ac_t""no" 1>&6
2789 INTLIBS=""
2795 # Extract the first word of "xgettext", so it can be a program name with args.
2796 set dummy xgettext; ac_word=$2
2797 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2798 echo "configure:2799: checking for $ac_word" >&5
2799 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2800 echo $ac_n "(cached) $ac_c" 1>&6
2801 else
2802 if test -n "$XGETTEXT"; then
2803 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2804 else
2805 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2806 ac_dummy="$PATH"
2807 for ac_dir in $ac_dummy; do
2808 test -z "$ac_dir" && ac_dir=.
2809 if test -f $ac_dir/$ac_word; then
2810 ac_cv_prog_XGETTEXT="xgettext"
2811 break
2813 done
2814 IFS="$ac_save_ifs"
2817 XGETTEXT="$ac_cv_prog_XGETTEXT"
2818 if test -n "$XGETTEXT"; then
2819 echo "$ac_t""$XGETTEXT" 1>&6
2820 else
2821 echo "$ac_t""no" 1>&6
2825 if test "$XGETTEXT" != ""; then
2826 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2827 echo "xgettext isn't GNU version"
2828 XGETTEXT=""
2832 if test "$LINGUAS" != ""; then
2833 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2834 cat >> confdefs.h <<\EOF
2835 #define I18N 1
2838 PO=""
2839 # if test "$LINGUAS" = ""; then
2840 # ling=` (cd src/po; /bin/ls *.po) `
2841 # for l in $ling; do
2842 # lcode=`basename $l .po`
2843 # LINGUAS="$LINGUAS $lcode"
2844 # done
2845 # fi
2846 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2847 else
2848 LINGUAS=""
2849 PO=""
2850 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2852 else
2853 INTLIBS=""
2854 MOFILES=""
2855 WPMOFILES=""
2856 PO=""
2861 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro dk zh_TW.Big5"
2862 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5"
2864 for lang in $LINGUAS; do
2865 ok=0
2866 for l in $supported_locales; do
2867 if test "$l" = "$lang"; then
2868 ok=1
2869 break
2871 done
2872 if test "$ok" = 1; then
2873 MOFILES="$MOFILES $lang.mo"
2874 else
2875 echo "Locale $lang is not supported."
2877 ok=0
2878 for l in $supported_wprefs_locales; do
2879 if test "$l" = "$lang"; then
2880 ok=1
2881 break
2883 done
2884 if test "$ok" = 1; then
2885 WPMOFILES="$WPMOFILES $lang.mo"
2887 done
2890 I18n=no
2891 # Check whether --enable-kanji or --disable-kanji was given.
2892 if test "${enable_kanji+set}" = set; then
2893 enableval="$enable_kanji"
2895 else
2896 enable_kanji=no
2900 if test "$enable_kanji" = yes; then
2901 case $host_os in
2902 freebsd*)
2903 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2904 echo "configure:2905: checking for setlocale in -lxpg4" >&5
2905 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2906 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2907 echo $ac_n "(cached) $ac_c" 1>&6
2908 else
2909 ac_save_LIBS="$LIBS"
2910 LIBS="-lxpg4 $LIBS"
2911 cat > conftest.$ac_ext <<EOF
2912 #line 2913 "configure"
2913 #include "confdefs.h"
2914 /* Override any gcc2 internal prototype to avoid an error. */
2915 /* We use char because int might match the return type of a gcc2
2916 builtin and then its argument prototype would still apply. */
2917 char setlocale();
2919 int main() {
2920 setlocale()
2921 ; return 0; }
2923 if { (eval echo configure:2924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2924 rm -rf conftest*
2925 eval "ac_cv_lib_$ac_lib_var=yes"
2926 else
2927 echo "configure: failed program was:" >&5
2928 cat conftest.$ac_ext >&5
2929 rm -rf conftest*
2930 eval "ac_cv_lib_$ac_lib_var=no"
2932 rm -f conftest*
2933 LIBS="$ac_save_LIBS"
2936 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2937 echo "$ac_t""yes" 1>&6
2938 LIBS="$LIBS -lxpg4"
2939 else
2940 echo "$ac_t""no" 1>&6
2945 esac
2946 cat >> confdefs.h <<\EOF
2947 #define I18N_MB 1
2954 # Check whether --with-nlsdir or --without-nlsdir was given.
2955 if test "${with_nlsdir+set}" = set; then
2956 withval="$with_nlsdir"
2962 if test "x$NLSDIR" = "x"; then
2963 if test "x$with_nlsdir" != "x"; then
2964 NLSDIR=$with_nlsdir
2965 else
2966 NLSDIR='$(prefix)/lib/locale'
2979 # Check whether --enable-gnome or --disable-gnome was given.
2980 if test "${enable_gnome+set}" = set; then
2981 enableval="$enable_gnome"
2982 if test x$enableval = xyes; then
2983 cat >> confdefs.h <<\EOF
2984 #define GNOME_STUFF 1
2987 gnome_on=yes
2993 # Check whether --enable-kde or --disable-kde was given.
2994 if test "${enable_kde+set}" = set; then
2995 enableval="$enable_kde"
2996 if test x$enableval = xyes; then
2997 cat >> confdefs.h <<\EOF
2998 #define KWM_HINTS 1
3001 kde_on=yes
3007 # Check whether --enable-openlook or --disable-openlook was given.
3008 if test "${enable_openlook+set}" = set; then
3009 enableval="$enable_openlook"
3010 if test x$enableval = xyes; then
3011 cat >> confdefs.h <<\EOF
3012 #define OLWM_HINTS 1
3015 openlook_on=yes
3021 # Check whether --enable-lite or --disable-lite was given.
3022 if test "${enable_lite+set}" = set; then
3023 enableval="$enable_lite"
3024 if test x$enableval = xyes; then
3025 LITE=yes
3026 cat >> confdefs.h <<\EOF
3027 #define LITE 1
3038 # If we find X, set shell vars x_includes and x_libraries to the
3039 # paths, otherwise set no_x=yes.
3040 # Uses ac_ vars as temps to allow command line to override cache and checks.
3041 # --without-x overrides everything else, but does not touch the cache.
3042 echo $ac_n "checking for X""... $ac_c" 1>&6
3043 echo "configure:3044: checking for X" >&5
3045 # Check whether --with-x or --without-x was given.
3046 if test "${with_x+set}" = set; then
3047 withval="$with_x"
3051 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3052 if test "x$with_x" = xno; then
3053 # The user explicitly disabled X.
3054 have_x=disabled
3055 else
3056 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3057 # Both variables are already set.
3058 have_x=yes
3059 else
3060 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3061 echo $ac_n "(cached) $ac_c" 1>&6
3062 else
3063 # One or both of the vars are not set, and there is no cached value.
3064 ac_x_includes=NO ac_x_libraries=NO
3065 rm -fr conftestdir
3066 if mkdir conftestdir; then
3067 cd conftestdir
3068 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3069 cat > Imakefile <<'EOF'
3070 acfindx:
3071 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3073 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3074 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3075 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3076 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3077 for ac_extension in a so sl; do
3078 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3079 test -f $ac_im_libdir/libX11.$ac_extension; then
3080 ac_im_usrlibdir=$ac_im_libdir; break
3082 done
3083 # Screen out bogus values from the imake configuration. They are
3084 # bogus both because they are the default anyway, and because
3085 # using them would break gcc on systems where it needs fixed includes.
3086 case "$ac_im_incroot" in
3087 /usr/include) ;;
3088 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3089 esac
3090 case "$ac_im_usrlibdir" in
3091 /usr/lib | /lib) ;;
3092 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3093 esac
3095 cd ..
3096 rm -fr conftestdir
3099 if test "$ac_x_includes" = NO; then
3100 # Guess where to find include files, by looking for this one X11 .h file.
3101 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3103 # First, try using that file with no special directory specified.
3104 cat > conftest.$ac_ext <<EOF
3105 #line 3106 "configure"
3106 #include "confdefs.h"
3107 #include <$x_direct_test_include>
3109 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3110 { (eval echo configure:3111: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3111 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3112 if test -z "$ac_err"; then
3113 rm -rf conftest*
3114 # We can compile using X headers with no special include directory.
3115 ac_x_includes=
3116 else
3117 echo "$ac_err" >&5
3118 echo "configure: failed program was:" >&5
3119 cat conftest.$ac_ext >&5
3120 rm -rf conftest*
3121 # Look for the header file in a standard set of common directories.
3122 # Check X11 before X11Rn because it is often a symlink to the current release.
3123 for ac_dir in \
3124 /usr/X11/include \
3125 /usr/X11R6/include \
3126 /usr/X11R5/include \
3127 /usr/X11R4/include \
3129 /usr/include/X11 \
3130 /usr/include/X11R6 \
3131 /usr/include/X11R5 \
3132 /usr/include/X11R4 \
3134 /usr/local/X11/include \
3135 /usr/local/X11R6/include \
3136 /usr/local/X11R5/include \
3137 /usr/local/X11R4/include \
3139 /usr/local/include/X11 \
3140 /usr/local/include/X11R6 \
3141 /usr/local/include/X11R5 \
3142 /usr/local/include/X11R4 \
3144 /usr/X386/include \
3145 /usr/x386/include \
3146 /usr/XFree86/include/X11 \
3148 /usr/include \
3149 /usr/local/include \
3150 /usr/unsupported/include \
3151 /usr/athena/include \
3152 /usr/local/x11r5/include \
3153 /usr/lpp/Xamples/include \
3155 /usr/openwin/include \
3156 /usr/openwin/share/include \
3159 if test -r "$ac_dir/$x_direct_test_include"; then
3160 ac_x_includes=$ac_dir
3161 break
3163 done
3165 rm -f conftest*
3166 fi # $ac_x_includes = NO
3168 if test "$ac_x_libraries" = NO; then
3169 # Check for the libraries.
3171 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3172 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3174 # See if we find them without any special options.
3175 # Don't add to $LIBS permanently.
3176 ac_save_LIBS="$LIBS"
3177 LIBS="-l$x_direct_test_library $LIBS"
3178 cat > conftest.$ac_ext <<EOF
3179 #line 3180 "configure"
3180 #include "confdefs.h"
3182 int main() {
3183 ${x_direct_test_function}()
3184 ; return 0; }
3186 if { (eval echo configure:3187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3187 rm -rf conftest*
3188 LIBS="$ac_save_LIBS"
3189 # We can link X programs with no special library path.
3190 ac_x_libraries=
3191 else
3192 echo "configure: failed program was:" >&5
3193 cat conftest.$ac_ext >&5
3194 rm -rf conftest*
3195 LIBS="$ac_save_LIBS"
3196 # First see if replacing the include by lib works.
3197 # Check X11 before X11Rn because it is often a symlink to the current release.
3198 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3199 /usr/X11/lib \
3200 /usr/X11R6/lib \
3201 /usr/X11R5/lib \
3202 /usr/X11R4/lib \
3204 /usr/lib/X11 \
3205 /usr/lib/X11R6 \
3206 /usr/lib/X11R5 \
3207 /usr/lib/X11R4 \
3209 /usr/local/X11/lib \
3210 /usr/local/X11R6/lib \
3211 /usr/local/X11R5/lib \
3212 /usr/local/X11R4/lib \
3214 /usr/local/lib/X11 \
3215 /usr/local/lib/X11R6 \
3216 /usr/local/lib/X11R5 \
3217 /usr/local/lib/X11R4 \
3219 /usr/X386/lib \
3220 /usr/x386/lib \
3221 /usr/XFree86/lib/X11 \
3223 /usr/lib \
3224 /usr/local/lib \
3225 /usr/unsupported/lib \
3226 /usr/athena/lib \
3227 /usr/local/x11r5/lib \
3228 /usr/lpp/Xamples/lib \
3229 /lib/usr/lib/X11 \
3231 /usr/openwin/lib \
3232 /usr/openwin/share/lib \
3235 for ac_extension in a so sl; do
3236 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3237 ac_x_libraries=$ac_dir
3238 break 2
3240 done
3241 done
3243 rm -f conftest*
3244 fi # $ac_x_libraries = NO
3246 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3247 # Didn't find X anywhere. Cache the known absence of X.
3248 ac_cv_have_x="have_x=no"
3249 else
3250 # Record where we found X for the cache.
3251 ac_cv_have_x="have_x=yes \
3252 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3256 eval "$ac_cv_have_x"
3257 fi # $with_x != no
3259 if test "$have_x" != yes; then
3260 echo "$ac_t""$have_x" 1>&6
3261 no_x=yes
3262 else
3263 # If each of the values was on the command line, it overrides each guess.
3264 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3265 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3266 # Update the cache value to reflect the command line values.
3267 ac_cv_have_x="have_x=yes \
3268 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3269 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3272 if test "$no_x" = yes; then
3273 # Not all programs may use this symbol, but it does not hurt to define it.
3274 cat >> confdefs.h <<\EOF
3275 #define X_DISPLAY_MISSING 1
3278 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3279 else
3280 if test -n "$x_includes"; then
3281 X_CFLAGS="$X_CFLAGS -I$x_includes"
3284 # It would also be nice to do this for all -L options, not just this one.
3285 if test -n "$x_libraries"; then
3286 X_LIBS="$X_LIBS -L$x_libraries"
3287 # For Solaris; some versions of Sun CC require a space after -R and
3288 # others require no space. Words are not sufficient . . . .
3289 case "`(uname -sr) 2>/dev/null`" in
3290 "SunOS 5"*)
3291 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3292 echo "configure:3293: checking whether -R must be followed by a space" >&5
3293 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3294 cat > conftest.$ac_ext <<EOF
3295 #line 3296 "configure"
3296 #include "confdefs.h"
3298 int main() {
3300 ; return 0; }
3302 if { (eval echo configure:3303: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3303 rm -rf conftest*
3304 ac_R_nospace=yes
3305 else
3306 echo "configure: failed program was:" >&5
3307 cat conftest.$ac_ext >&5
3308 rm -rf conftest*
3309 ac_R_nospace=no
3311 rm -f conftest*
3312 if test $ac_R_nospace = yes; then
3313 echo "$ac_t""no" 1>&6
3314 X_LIBS="$X_LIBS -R$x_libraries"
3315 else
3316 LIBS="$ac_xsave_LIBS -R $x_libraries"
3317 cat > conftest.$ac_ext <<EOF
3318 #line 3319 "configure"
3319 #include "confdefs.h"
3321 int main() {
3323 ; return 0; }
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3326 rm -rf conftest*
3327 ac_R_space=yes
3328 else
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 rm -rf conftest*
3332 ac_R_space=no
3334 rm -f conftest*
3335 if test $ac_R_space = yes; then
3336 echo "$ac_t""yes" 1>&6
3337 X_LIBS="$X_LIBS -R $x_libraries"
3338 else
3339 echo "$ac_t""neither works" 1>&6
3342 LIBS="$ac_xsave_LIBS"
3343 esac
3346 # Check for system-dependent libraries X programs must link with.
3347 # Do this before checking for the system-independent R6 libraries
3348 # (-lICE), since we may need -lsocket or whatever for X linking.
3350 if test "$ISC" = yes; then
3351 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3352 else
3353 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3354 # libraries were built with DECnet support. And karl@cs.umb.edu says
3355 # the Alpha needs dnet_stub (dnet does not exist).
3356 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3357 echo "configure:3358: checking for dnet_ntoa in -ldnet" >&5
3358 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3359 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3360 echo $ac_n "(cached) $ac_c" 1>&6
3361 else
3362 ac_save_LIBS="$LIBS"
3363 LIBS="-ldnet $LIBS"
3364 cat > conftest.$ac_ext <<EOF
3365 #line 3366 "configure"
3366 #include "confdefs.h"
3367 /* Override any gcc2 internal prototype to avoid an error. */
3368 /* We use char because int might match the return type of a gcc2
3369 builtin and then its argument prototype would still apply. */
3370 char dnet_ntoa();
3372 int main() {
3373 dnet_ntoa()
3374 ; return 0; }
3376 if { (eval echo configure:3377: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3377 rm -rf conftest*
3378 eval "ac_cv_lib_$ac_lib_var=yes"
3379 else
3380 echo "configure: failed program was:" >&5
3381 cat conftest.$ac_ext >&5
3382 rm -rf conftest*
3383 eval "ac_cv_lib_$ac_lib_var=no"
3385 rm -f conftest*
3386 LIBS="$ac_save_LIBS"
3389 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3390 echo "$ac_t""yes" 1>&6
3391 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3392 else
3393 echo "$ac_t""no" 1>&6
3396 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3397 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3398 echo "configure:3399: checking for dnet_ntoa in -ldnet_stub" >&5
3399 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3401 echo $ac_n "(cached) $ac_c" 1>&6
3402 else
3403 ac_save_LIBS="$LIBS"
3404 LIBS="-ldnet_stub $LIBS"
3405 cat > conftest.$ac_ext <<EOF
3406 #line 3407 "configure"
3407 #include "confdefs.h"
3408 /* Override any gcc2 internal prototype to avoid an error. */
3409 /* We use char because int might match the return type of a gcc2
3410 builtin and then its argument prototype would still apply. */
3411 char dnet_ntoa();
3413 int main() {
3414 dnet_ntoa()
3415 ; return 0; }
3417 if { (eval echo configure:3418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=yes"
3420 else
3421 echo "configure: failed program was:" >&5
3422 cat conftest.$ac_ext >&5
3423 rm -rf conftest*
3424 eval "ac_cv_lib_$ac_lib_var=no"
3426 rm -f conftest*
3427 LIBS="$ac_save_LIBS"
3430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3431 echo "$ac_t""yes" 1>&6
3432 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3433 else
3434 echo "$ac_t""no" 1>&6
3439 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3440 # to get the SysV transport functions.
3441 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3442 # needs -lnsl.
3443 # The nsl library prevents programs from opening the X display
3444 # on Irix 5.2, according to dickey@clark.net.
3445 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3446 echo "configure:3447: checking for gethostbyname" >&5
3447 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3448 echo $ac_n "(cached) $ac_c" 1>&6
3449 else
3450 cat > conftest.$ac_ext <<EOF
3451 #line 3452 "configure"
3452 #include "confdefs.h"
3453 /* System header to define __stub macros and hopefully few prototypes,
3454 which can conflict with char gethostbyname(); below. */
3455 #include <assert.h>
3456 /* Override any gcc2 internal prototype to avoid an error. */
3457 /* We use char because int might match the return type of a gcc2
3458 builtin and then its argument prototype would still apply. */
3459 char gethostbyname();
3461 int main() {
3463 /* The GNU C library defines this for functions which it implements
3464 to always fail with ENOSYS. Some functions are actually named
3465 something starting with __ and the normal name is an alias. */
3466 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3467 choke me
3468 #else
3469 gethostbyname();
3470 #endif
3472 ; return 0; }
3474 if { (eval echo configure:3475: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3475 rm -rf conftest*
3476 eval "ac_cv_func_gethostbyname=yes"
3477 else
3478 echo "configure: failed program was:" >&5
3479 cat conftest.$ac_ext >&5
3480 rm -rf conftest*
3481 eval "ac_cv_func_gethostbyname=no"
3483 rm -f conftest*
3486 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3487 echo "$ac_t""yes" 1>&6
3489 else
3490 echo "$ac_t""no" 1>&6
3493 if test $ac_cv_func_gethostbyname = no; then
3494 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3495 echo "configure:3496: checking for gethostbyname in -lnsl" >&5
3496 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3498 echo $ac_n "(cached) $ac_c" 1>&6
3499 else
3500 ac_save_LIBS="$LIBS"
3501 LIBS="-lnsl $LIBS"
3502 cat > conftest.$ac_ext <<EOF
3503 #line 3504 "configure"
3504 #include "confdefs.h"
3505 /* Override any gcc2 internal prototype to avoid an error. */
3506 /* We use char because int might match the return type of a gcc2
3507 builtin and then its argument prototype would still apply. */
3508 char gethostbyname();
3510 int main() {
3511 gethostbyname()
3512 ; return 0; }
3514 if { (eval echo configure:3515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3515 rm -rf conftest*
3516 eval "ac_cv_lib_$ac_lib_var=yes"
3517 else
3518 echo "configure: failed program was:" >&5
3519 cat conftest.$ac_ext >&5
3520 rm -rf conftest*
3521 eval "ac_cv_lib_$ac_lib_var=no"
3523 rm -f conftest*
3524 LIBS="$ac_save_LIBS"
3527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3528 echo "$ac_t""yes" 1>&6
3529 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3530 else
3531 echo "$ac_t""no" 1>&6
3536 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3537 # socket/setsockopt and other routines are undefined under SCO ODT
3538 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3539 # on later versions), says simon@lia.di.epfl.ch: it contains
3540 # gethostby* variants that don't use the nameserver (or something).
3541 # -lsocket must be given before -lnsl if both are needed.
3542 # We assume that if connect needs -lnsl, so does gethostbyname.
3543 echo $ac_n "checking for connect""... $ac_c" 1>&6
3544 echo "configure:3545: checking for connect" >&5
3545 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3546 echo $ac_n "(cached) $ac_c" 1>&6
3547 else
3548 cat > conftest.$ac_ext <<EOF
3549 #line 3550 "configure"
3550 #include "confdefs.h"
3551 /* System header to define __stub macros and hopefully few prototypes,
3552 which can conflict with char connect(); below. */
3553 #include <assert.h>
3554 /* Override any gcc2 internal prototype to avoid an error. */
3555 /* We use char because int might match the return type of a gcc2
3556 builtin and then its argument prototype would still apply. */
3557 char connect();
3559 int main() {
3561 /* The GNU C library defines this for functions which it implements
3562 to always fail with ENOSYS. Some functions are actually named
3563 something starting with __ and the normal name is an alias. */
3564 #if defined (__stub_connect) || defined (__stub___connect)
3565 choke me
3566 #else
3567 connect();
3568 #endif
3570 ; return 0; }
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3573 rm -rf conftest*
3574 eval "ac_cv_func_connect=yes"
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 eval "ac_cv_func_connect=no"
3581 rm -f conftest*
3584 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3585 echo "$ac_t""yes" 1>&6
3587 else
3588 echo "$ac_t""no" 1>&6
3591 if test $ac_cv_func_connect = no; then
3592 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3593 echo "configure:3594: checking for connect in -lsocket" >&5
3594 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3595 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3596 echo $ac_n "(cached) $ac_c" 1>&6
3597 else
3598 ac_save_LIBS="$LIBS"
3599 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3600 cat > conftest.$ac_ext <<EOF
3601 #line 3602 "configure"
3602 #include "confdefs.h"
3603 /* Override any gcc2 internal prototype to avoid an error. */
3604 /* We use char because int might match the return type of a gcc2
3605 builtin and then its argument prototype would still apply. */
3606 char connect();
3608 int main() {
3609 connect()
3610 ; return 0; }
3612 if { (eval echo configure:3613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=yes"
3615 else
3616 echo "configure: failed program was:" >&5
3617 cat conftest.$ac_ext >&5
3618 rm -rf conftest*
3619 eval "ac_cv_lib_$ac_lib_var=no"
3621 rm -f conftest*
3622 LIBS="$ac_save_LIBS"
3625 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3626 echo "$ac_t""yes" 1>&6
3627 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3628 else
3629 echo "$ac_t""no" 1>&6
3634 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3635 echo $ac_n "checking for remove""... $ac_c" 1>&6
3636 echo "configure:3637: checking for remove" >&5
3637 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3638 echo $ac_n "(cached) $ac_c" 1>&6
3639 else
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* System header to define __stub macros and hopefully few prototypes,
3644 which can conflict with char remove(); below. */
3645 #include <assert.h>
3646 /* Override any gcc2 internal prototype to avoid an error. */
3647 /* We use char because int might match the return type of a gcc2
3648 builtin and then its argument prototype would still apply. */
3649 char remove();
3651 int main() {
3653 /* The GNU C library defines this for functions which it implements
3654 to always fail with ENOSYS. Some functions are actually named
3655 something starting with __ and the normal name is an alias. */
3656 #if defined (__stub_remove) || defined (__stub___remove)
3657 choke me
3658 #else
3659 remove();
3660 #endif
3662 ; return 0; }
3664 if { (eval echo configure:3665: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3665 rm -rf conftest*
3666 eval "ac_cv_func_remove=yes"
3667 else
3668 echo "configure: failed program was:" >&5
3669 cat conftest.$ac_ext >&5
3670 rm -rf conftest*
3671 eval "ac_cv_func_remove=no"
3673 rm -f conftest*
3676 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3677 echo "$ac_t""yes" 1>&6
3679 else
3680 echo "$ac_t""no" 1>&6
3683 if test $ac_cv_func_remove = no; then
3684 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3685 echo "configure:3686: checking for remove in -lposix" >&5
3686 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3687 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3688 echo $ac_n "(cached) $ac_c" 1>&6
3689 else
3690 ac_save_LIBS="$LIBS"
3691 LIBS="-lposix $LIBS"
3692 cat > conftest.$ac_ext <<EOF
3693 #line 3694 "configure"
3694 #include "confdefs.h"
3695 /* Override any gcc2 internal prototype to avoid an error. */
3696 /* We use char because int might match the return type of a gcc2
3697 builtin and then its argument prototype would still apply. */
3698 char remove();
3700 int main() {
3701 remove()
3702 ; return 0; }
3704 if { (eval echo configure:3705: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3705 rm -rf conftest*
3706 eval "ac_cv_lib_$ac_lib_var=yes"
3707 else
3708 echo "configure: failed program was:" >&5
3709 cat conftest.$ac_ext >&5
3710 rm -rf conftest*
3711 eval "ac_cv_lib_$ac_lib_var=no"
3713 rm -f conftest*
3714 LIBS="$ac_save_LIBS"
3717 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3718 echo "$ac_t""yes" 1>&6
3719 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3720 else
3721 echo "$ac_t""no" 1>&6
3726 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3727 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3728 echo "configure:3729: checking for shmat" >&5
3729 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3730 echo $ac_n "(cached) $ac_c" 1>&6
3731 else
3732 cat > conftest.$ac_ext <<EOF
3733 #line 3734 "configure"
3734 #include "confdefs.h"
3735 /* System header to define __stub macros and hopefully few prototypes,
3736 which can conflict with char shmat(); below. */
3737 #include <assert.h>
3738 /* Override any gcc2 internal prototype to avoid an error. */
3739 /* We use char because int might match the return type of a gcc2
3740 builtin and then its argument prototype would still apply. */
3741 char shmat();
3743 int main() {
3745 /* The GNU C library defines this for functions which it implements
3746 to always fail with ENOSYS. Some functions are actually named
3747 something starting with __ and the normal name is an alias. */
3748 #if defined (__stub_shmat) || defined (__stub___shmat)
3749 choke me
3750 #else
3751 shmat();
3752 #endif
3754 ; return 0; }
3756 if { (eval echo configure:3757: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3757 rm -rf conftest*
3758 eval "ac_cv_func_shmat=yes"
3759 else
3760 echo "configure: failed program was:" >&5
3761 cat conftest.$ac_ext >&5
3762 rm -rf conftest*
3763 eval "ac_cv_func_shmat=no"
3765 rm -f conftest*
3768 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3771 else
3772 echo "$ac_t""no" 1>&6
3775 if test $ac_cv_func_shmat = no; then
3776 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3777 echo "configure:3778: checking for shmat in -lipc" >&5
3778 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3779 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3780 echo $ac_n "(cached) $ac_c" 1>&6
3781 else
3782 ac_save_LIBS="$LIBS"
3783 LIBS="-lipc $LIBS"
3784 cat > conftest.$ac_ext <<EOF
3785 #line 3786 "configure"
3786 #include "confdefs.h"
3787 /* Override any gcc2 internal prototype to avoid an error. */
3788 /* We use char because int might match the return type of a gcc2
3789 builtin and then its argument prototype would still apply. */
3790 char shmat();
3792 int main() {
3793 shmat()
3794 ; return 0; }
3796 if { (eval echo configure:3797: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3797 rm -rf conftest*
3798 eval "ac_cv_lib_$ac_lib_var=yes"
3799 else
3800 echo "configure: failed program was:" >&5
3801 cat conftest.$ac_ext >&5
3802 rm -rf conftest*
3803 eval "ac_cv_lib_$ac_lib_var=no"
3805 rm -f conftest*
3806 LIBS="$ac_save_LIBS"
3809 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3810 echo "$ac_t""yes" 1>&6
3811 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3812 else
3813 echo "$ac_t""no" 1>&6
3819 # Check for libraries that X11R6 Xt/Xaw programs need.
3820 ac_save_LDFLAGS="$LDFLAGS"
3821 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3822 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3823 # check for ICE first), but we must link in the order -lSM -lICE or
3824 # we get undefined symbols. So assume we have SM if we have ICE.
3825 # These have to be linked with before -lX11, unlike the other
3826 # libraries we check for below, so use a different variable.
3827 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3828 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3829 echo "configure:3830: checking for IceConnectionNumber in -lICE" >&5
3830 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3831 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3832 echo $ac_n "(cached) $ac_c" 1>&6
3833 else
3834 ac_save_LIBS="$LIBS"
3835 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3836 cat > conftest.$ac_ext <<EOF
3837 #line 3838 "configure"
3838 #include "confdefs.h"
3839 /* Override any gcc2 internal prototype to avoid an error. */
3840 /* We use char because int might match the return type of a gcc2
3841 builtin and then its argument prototype would still apply. */
3842 char IceConnectionNumber();
3844 int main() {
3845 IceConnectionNumber()
3846 ; return 0; }
3848 if { (eval echo configure:3849: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3849 rm -rf conftest*
3850 eval "ac_cv_lib_$ac_lib_var=yes"
3851 else
3852 echo "configure: failed program was:" >&5
3853 cat conftest.$ac_ext >&5
3854 rm -rf conftest*
3855 eval "ac_cv_lib_$ac_lib_var=no"
3857 rm -f conftest*
3858 LIBS="$ac_save_LIBS"
3861 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3862 echo "$ac_t""yes" 1>&6
3863 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3864 else
3865 echo "$ac_t""no" 1>&6
3868 LDFLAGS="$ac_save_LDFLAGS"
3873 XCFLAGS="$X_CFLAGS"
3875 XLFLAGS="$X_LIBS"
3877 XLIBS="-lX11 $X_EXTRA_LIBS"
3880 lib_search_path="$lib_search_path $XLFLAGS"
3881 inc_search_path="$inc_search_path $XCFLAGS"
3884 use_locale=yes
3885 # Check whether --enable-locale or --disable-locale was given.
3886 if test "${enable_locale+set}" = set; then
3887 enableval="$enable_locale"
3888 use_locale=no
3892 if test "$use_locale" = yes; then
3893 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3894 echo "configure:3895: checking for _Xsetlocale in -lX11" >&5
3895 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3896 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3897 echo $ac_n "(cached) $ac_c" 1>&6
3898 else
3899 ac_save_LIBS="$LIBS"
3900 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3901 cat > conftest.$ac_ext <<EOF
3902 #line 3903 "configure"
3903 #include "confdefs.h"
3904 /* Override any gcc2 internal prototype to avoid an error. */
3905 /* We use char because int might match the return type of a gcc2
3906 builtin and then its argument prototype would still apply. */
3907 char _Xsetlocale();
3909 int main() {
3910 _Xsetlocale()
3911 ; return 0; }
3913 if { (eval echo configure:3914: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3914 rm -rf conftest*
3915 eval "ac_cv_lib_$ac_lib_var=yes"
3916 else
3917 echo "configure: failed program was:" >&5
3918 cat conftest.$ac_ext >&5
3919 rm -rf conftest*
3920 eval "ac_cv_lib_$ac_lib_var=no"
3922 rm -f conftest*
3923 LIBS="$ac_save_LIBS"
3926 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3927 echo "$ac_t""yes" 1>&6
3928 cat >> confdefs.h <<\EOF
3929 #define X_LOCALE 1
3932 else
3933 echo "$ac_t""no" 1>&6
3939 # Check whether --enable-modelock or --disable-modelock was given.
3940 if test "${enable_modelock+set}" = set; then
3941 enableval="$enable_modelock"
3942 cat >> confdefs.h <<\EOF
3943 #define XKB_MODELOCK 1
3951 shape=yes
3952 # Check whether --enable-shape or --disable-shape was given.
3953 if test "${enable_shape+set}" = set; then
3954 enableval="$enable_shape"
3955 shape=$enableval
3956 else
3957 shape=yes
3961 added_xext=no
3963 if test "$shape" = yes; then
3964 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3965 echo "configure:3966: checking for XShapeSelectInput in -lXext" >&5
3966 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3967 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3968 echo $ac_n "(cached) $ac_c" 1>&6
3969 else
3970 ac_save_LIBS="$LIBS"
3971 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3972 cat > conftest.$ac_ext <<EOF
3973 #line 3974 "configure"
3974 #include "confdefs.h"
3975 /* Override any gcc2 internal prototype to avoid an error. */
3976 /* We use char because int might match the return type of a gcc2
3977 builtin and then its argument prototype would still apply. */
3978 char XShapeSelectInput();
3980 int main() {
3981 XShapeSelectInput()
3982 ; return 0; }
3984 if { (eval echo configure:3985: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3985 rm -rf conftest*
3986 eval "ac_cv_lib_$ac_lib_var=yes"
3987 else
3988 echo "configure: failed program was:" >&5
3989 cat conftest.$ac_ext >&5
3990 rm -rf conftest*
3991 eval "ac_cv_lib_$ac_lib_var=no"
3993 rm -f conftest*
3994 LIBS="$ac_save_LIBS"
3997 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3998 echo "$ac_t""yes" 1>&6
3999 XLIBS="-lXext $XLIBS"
4000 added_xext=yes
4001 cat >> confdefs.h <<\EOF
4002 #define SHAPE 1
4005 else
4006 echo "$ac_t""no" 1>&6
4007 shape=no
4013 shm=yes
4014 # Check whether --enable-shm or --disable-shm was given.
4015 if test "${enable_shm+set}" = set; then
4016 enableval="$enable_shm"
4017 shm=$enableval
4018 else
4019 shm=yes
4023 if test "$shm" = yes; then
4024 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4025 echo "configure:4026: checking for XShmAttach in -lXext" >&5
4026 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4027 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4028 echo $ac_n "(cached) $ac_c" 1>&6
4029 else
4030 ac_save_LIBS="$LIBS"
4031 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4032 cat > conftest.$ac_ext <<EOF
4033 #line 4034 "configure"
4034 #include "confdefs.h"
4035 /* Override any gcc2 internal prototype to avoid an error. */
4036 /* We use char because int might match the return type of a gcc2
4037 builtin and then its argument prototype would still apply. */
4038 char XShmAttach();
4040 int main() {
4041 XShmAttach()
4042 ; return 0; }
4044 if { (eval echo configure:4045: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=yes"
4047 else
4048 echo "configure: failed program was:" >&5
4049 cat conftest.$ac_ext >&5
4050 rm -rf conftest*
4051 eval "ac_cv_lib_$ac_lib_var=no"
4053 rm -f conftest*
4054 LIBS="$ac_save_LIBS"
4057 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4058 echo "$ac_t""yes" 1>&6
4059 ok=yes
4060 else
4061 echo "$ac_t""no" 1>&6
4062 ok=no
4066 if test "$ok" = yes; then
4067 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4068 echo "configure:4069: checking for shmget" >&5
4069 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072 cat > conftest.$ac_ext <<EOF
4073 #line 4074 "configure"
4074 #include "confdefs.h"
4075 /* System header to define __stub macros and hopefully few prototypes,
4076 which can conflict with char shmget(); below. */
4077 #include <assert.h>
4078 /* Override any gcc2 internal prototype to avoid an error. */
4079 /* We use char because int might match the return type of a gcc2
4080 builtin and then its argument prototype would still apply. */
4081 char shmget();
4083 int main() {
4085 /* The GNU C library defines this for functions which it implements
4086 to always fail with ENOSYS. Some functions are actually named
4087 something starting with __ and the normal name is an alias. */
4088 #if defined (__stub_shmget) || defined (__stub___shmget)
4089 choke me
4090 #else
4091 shmget();
4092 #endif
4094 ; return 0; }
4096 if { (eval echo configure:4097: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4097 rm -rf conftest*
4098 eval "ac_cv_func_shmget=yes"
4099 else
4100 echo "configure: failed program was:" >&5
4101 cat conftest.$ac_ext >&5
4102 rm -rf conftest*
4103 eval "ac_cv_func_shmget=no"
4105 rm -f conftest*
4108 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4109 echo "$ac_t""yes" 1>&6
4110 ok=yes
4111 else
4112 echo "$ac_t""no" 1>&6
4113 ok=no
4118 if test "$ok" = yes; then
4119 if test "$added_xext" = no; then
4120 XLIBS="-lXext $XLIBS"
4122 cat >> confdefs.h <<\EOF
4123 #define XSHM 1
4133 #AC_DEFINE(R6SM)
4134 #AC_SUBST(XSMPLIBS)
4139 LIBPL=""
4142 LDFLAGS_old="$LDFLAGS"
4143 LDFLAGS="$LDFLAGS $lib_search_path"
4144 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4145 echo "configure:4146: checking for PLGetString in -lPropList" >&5
4146 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4147 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4148 echo $ac_n "(cached) $ac_c" 1>&6
4149 else
4150 ac_save_LIBS="$LIBS"
4151 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4152 cat > conftest.$ac_ext <<EOF
4153 #line 4154 "configure"
4154 #include "confdefs.h"
4155 /* Override any gcc2 internal prototype to avoid an error. */
4156 /* We use char because int might match the return type of a gcc2
4157 builtin and then its argument prototype would still apply. */
4158 char PLGetString();
4160 int main() {
4161 PLGetString()
4162 ; return 0; }
4164 if { (eval echo configure:4165: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4165 rm -rf conftest*
4166 eval "ac_cv_lib_$ac_lib_var=yes"
4167 else
4168 echo "configure: failed program was:" >&5
4169 cat conftest.$ac_ext >&5
4170 rm -rf conftest*
4171 eval "ac_cv_lib_$ac_lib_var=no"
4173 rm -f conftest*
4174 LIBS="$ac_save_LIBS"
4177 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4178 echo "$ac_t""yes" 1>&6
4179 yes=yes
4180 else
4181 echo "$ac_t""no" 1>&6
4182 no=no
4185 LDFLAGS="$LDFLAGS_old"
4187 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4189 CPPFLAGS_old="$CPPFLAGS"
4190 CPPFLAGS="$CPPFLAGS $inc_search_path"
4191 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4192 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4193 echo "configure:4194: checking for proplist.h" >&5
4194 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4195 echo $ac_n "(cached) $ac_c" 1>&6
4196 else
4197 cat > conftest.$ac_ext <<EOF
4198 #line 4199 "configure"
4199 #include "confdefs.h"
4200 #include <proplist.h>
4202 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4203 { (eval echo configure:4204: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4204 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4205 if test -z "$ac_err"; then
4206 rm -rf conftest*
4207 eval "ac_cv_header_$ac_safe=yes"
4208 else
4209 echo "$ac_err" >&5
4210 echo "configure: failed program was:" >&5
4211 cat conftest.$ac_ext >&5
4212 rm -rf conftest*
4213 eval "ac_cv_header_$ac_safe=no"
4215 rm -f conftest*
4217 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4218 echo "$ac_t""yes" 1>&6
4220 else
4221 echo "$ac_t""no" 1>&6
4224 CPPFLAGS="$CPPFLAGS_old"
4226 if test "x$ac_cv_header_proplist_h" = xyes; then
4227 LIBPL="-lPropList"
4231 if test "x$LIBPL" = "x"; then
4232 echo
4233 echo "ERROR!!! libPropList is not installed, or could not be found."
4234 echo " Window Maker requires libPropList to build."
4235 echo " Please read INSTALL to find where you can find libPropList,"
4236 echo " and install it first."
4237 echo " If you already have it installed, try using the"
4238 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4239 echo " --with-libs-from flag to tell configure where the library"
4240 echo " is installed and"
4242 echo " --with-incs-from flag to tell configure where the header"
4243 echo " files are installed"
4244 exit 1
4256 xpm=yes
4257 # Check whether --enable-xpm or --disable-xpm was given.
4258 if test "${enable_xpm+set}" = set; then
4259 enableval="$enable_xpm"
4260 xpm=$enableval
4261 else
4262 xpm=yes
4266 if test "$xpm" = yes; then
4268 LDFLAGS_old="$LDFLAGS"
4269 LDFLAGS="$LDFLAGS $lib_search_path"
4270 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4271 echo "configure:4272: checking for XpmCreatePixmapFromData in -lXpm" >&5
4272 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4273 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4274 echo $ac_n "(cached) $ac_c" 1>&6
4275 else
4276 ac_save_LIBS="$LIBS"
4277 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4278 cat > conftest.$ac_ext <<EOF
4279 #line 4280 "configure"
4280 #include "confdefs.h"
4281 /* Override any gcc2 internal prototype to avoid an error. */
4282 /* We use char because int might match the return type of a gcc2
4283 builtin and then its argument prototype would still apply. */
4284 char XpmCreatePixmapFromData();
4286 int main() {
4287 XpmCreatePixmapFromData()
4288 ; return 0; }
4290 if { (eval echo configure:4291: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4291 rm -rf conftest*
4292 eval "ac_cv_lib_$ac_lib_var=yes"
4293 else
4294 echo "configure: failed program was:" >&5
4295 cat conftest.$ac_ext >&5
4296 rm -rf conftest*
4297 eval "ac_cv_lib_$ac_lib_var=no"
4299 rm -f conftest*
4300 LIBS="$ac_save_LIBS"
4303 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4304 echo "$ac_t""yes" 1>&6
4305 yes=yes
4306 else
4307 echo "$ac_t""no" 1>&6
4308 no=no
4311 LDFLAGS="$LDFLAGS_old"
4314 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4316 CPPFLAGS_old="$CPPFLAGS"
4317 CPPFLAGS="$CPPFLAGS $inc_search_path"
4318 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4319 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4320 echo "configure:4321: checking for X11/xpm.h" >&5
4321 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4322 echo $ac_n "(cached) $ac_c" 1>&6
4323 else
4324 cat > conftest.$ac_ext <<EOF
4325 #line 4326 "configure"
4326 #include "confdefs.h"
4327 #include <X11/xpm.h>
4329 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4330 { (eval echo configure:4331: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4331 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4332 if test -z "$ac_err"; then
4333 rm -rf conftest*
4334 eval "ac_cv_header_$ac_safe=yes"
4335 else
4336 echo "$ac_err" >&5
4337 echo "configure: failed program was:" >&5
4338 cat conftest.$ac_ext >&5
4339 rm -rf conftest*
4340 eval "ac_cv_header_$ac_safe=no"
4342 rm -f conftest*
4344 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4345 echo "$ac_t""yes" 1>&6
4347 else
4348 echo "$ac_t""no" 1>&6
4351 CPPFLAGS="$CPPFLAGS_old"
4353 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4354 GFXLIBS="$GFXLIBS -lXpm"
4355 supported_gfx="XPM"
4356 cat >> confdefs.h <<\EOF
4357 #define USE_XPM 1
4360 else
4361 supported_gfx="builtin-XPM"
4366 # for wmlib
4368 # for test
4376 png=yes
4377 # Check whether --enable-png or --disable-png was given.
4378 if test "${enable_png+set}" = set; then
4379 enableval="$enable_png"
4380 png=$enableval
4381 else
4382 png=yes
4387 if test "$png" = yes ; then
4389 LDFLAGS_old="$LDFLAGS"
4390 LDFLAGS="$LDFLAGS $lib_search_path"
4391 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4392 echo "configure:4393: checking for png_get_valid in -lpng" >&5
4393 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4394 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4395 echo $ac_n "(cached) $ac_c" 1>&6
4396 else
4397 ac_save_LIBS="$LIBS"
4398 LIBS="-lpng -lz -lm $LIBS"
4399 cat > conftest.$ac_ext <<EOF
4400 #line 4401 "configure"
4401 #include "confdefs.h"
4402 /* Override any gcc2 internal prototype to avoid an error. */
4403 /* We use char because int might match the return type of a gcc2
4404 builtin and then its argument prototype would still apply. */
4405 char png_get_valid();
4407 int main() {
4408 png_get_valid()
4409 ; return 0; }
4411 if { (eval echo configure:4412: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4412 rm -rf conftest*
4413 eval "ac_cv_lib_$ac_lib_var=yes"
4414 else
4415 echo "configure: failed program was:" >&5
4416 cat conftest.$ac_ext >&5
4417 rm -rf conftest*
4418 eval "ac_cv_lib_$ac_lib_var=no"
4420 rm -f conftest*
4421 LIBS="$ac_save_LIBS"
4424 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4425 echo "$ac_t""yes" 1>&6
4426 yes=yes
4427 else
4428 echo "$ac_t""no" 1>&6
4429 no=no
4432 LDFLAGS="$LDFLAGS_old"
4435 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4437 CPPFLAGS_old="$CPPFLAGS"
4438 CPPFLAGS="$CPPFLAGS $inc_search_path"
4439 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4440 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4441 echo "configure:4442: checking for png.h" >&5
4442 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4443 echo $ac_n "(cached) $ac_c" 1>&6
4444 else
4445 cat > conftest.$ac_ext <<EOF
4446 #line 4447 "configure"
4447 #include "confdefs.h"
4448 #include <png.h>
4450 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4451 { (eval echo configure:4452: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4452 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4453 if test -z "$ac_err"; then
4454 rm -rf conftest*
4455 eval "ac_cv_header_$ac_safe=yes"
4456 else
4457 echo "$ac_err" >&5
4458 echo "configure: failed program was:" >&5
4459 cat conftest.$ac_ext >&5
4460 rm -rf conftest*
4461 eval "ac_cv_header_$ac_safe=no"
4463 rm -f conftest*
4465 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4466 echo "$ac_t""yes" 1>&6
4468 else
4469 echo "$ac_t""no" 1>&6
4472 CPPFLAGS="$CPPFLAGS_old"
4474 if test "x$ac_cv_header_png_h" = xyes; then
4475 GFXLIBS="$GFXLIBS -lpng -lz"
4476 supported_gfx="$supported_gfx PNG"
4477 cat >> confdefs.h <<\EOF
4478 #define USE_PNG 1
4486 jpeg=yes
4487 ljpeg=""
4488 # Check whether --enable-jpeg or --disable-jpeg was given.
4489 if test "${enable_jpeg+set}" = set; then
4490 enableval="$enable_jpeg"
4491 jpeg=$enableval
4492 else
4493 jpeg=yes
4497 if test "$jpeg" = yes; then
4499 LDFLAGS_old="$LDFLAGS"
4500 LDFLAGS="$LDFLAGS $lib_search_path"
4501 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4502 echo "configure:4503: checking for jpeg_destroy_compress in -ljpeg" >&5
4503 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4504 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507 ac_save_LIBS="$LIBS"
4508 LIBS="-ljpeg $LIBS"
4509 cat > conftest.$ac_ext <<EOF
4510 #line 4511 "configure"
4511 #include "confdefs.h"
4512 /* Override any gcc2 internal prototype to avoid an error. */
4513 /* We use char because int might match the return type of a gcc2
4514 builtin and then its argument prototype would still apply. */
4515 char jpeg_destroy_compress();
4517 int main() {
4518 jpeg_destroy_compress()
4519 ; return 0; }
4521 if { (eval echo configure:4522: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4522 rm -rf conftest*
4523 eval "ac_cv_lib_$ac_lib_var=yes"
4524 else
4525 echo "configure: failed program was:" >&5
4526 cat conftest.$ac_ext >&5
4527 rm -rf conftest*
4528 eval "ac_cv_lib_$ac_lib_var=no"
4530 rm -f conftest*
4531 LIBS="$ac_save_LIBS"
4534 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4535 echo "$ac_t""yes" 1>&6
4536 yes=yes
4537 else
4538 echo "$ac_t""no" 1>&6
4539 no=no
4542 LDFLAGS="$LDFLAGS_old"
4545 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4547 ljpeg="-ljpeg"
4550 CPPFLAGS_old="$CPPFLAGS"
4551 CPPFLAGS="$CPPFLAGS $inc_search_path"
4552 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4553 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4554 echo "configure:4555: checking for jpeglib.h" >&5
4555 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4556 echo $ac_n "(cached) $ac_c" 1>&6
4557 else
4558 cat > conftest.$ac_ext <<EOF
4559 #line 4560 "configure"
4560 #include "confdefs.h"
4561 #include <jpeglib.h>
4563 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4564 { (eval echo configure:4565: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4565 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4566 if test -z "$ac_err"; then
4567 rm -rf conftest*
4568 eval "ac_cv_header_$ac_safe=yes"
4569 else
4570 echo "$ac_err" >&5
4571 echo "configure: failed program was:" >&5
4572 cat conftest.$ac_ext >&5
4573 rm -rf conftest*
4574 eval "ac_cv_header_$ac_safe=no"
4576 rm -f conftest*
4578 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4579 echo "$ac_t""yes" 1>&6
4581 else
4582 echo "$ac_t""no" 1>&6
4585 CPPFLAGS="$CPPFLAGS_old"
4587 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4588 GFXLIBS="$GFXLIBS -ljpeg"
4589 supported_gfx="$supported_gfx JPEG"
4590 cat >> confdefs.h <<\EOF
4591 #define USE_JPEG 1
4599 gif=yes
4600 # Check whether --enable-gif or --disable-gif was given.
4601 if test "${enable_gif+set}" = set; then
4602 enableval="$enable_gif"
4603 gif=$enableval
4604 else
4605 gif=yes
4609 if test "$gif" = yes; then
4610 my_libname=""
4612 LDFLAGS_old="$LDFLAGS"
4613 LDFLAGS="$LDFLAGS $lib_search_path"
4614 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4615 echo "configure:4616: checking for DGifOpenFileName in -lungif" >&5
4616 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4617 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4618 echo $ac_n "(cached) $ac_c" 1>&6
4619 else
4620 ac_save_LIBS="$LIBS"
4621 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4622 cat > conftest.$ac_ext <<EOF
4623 #line 4624 "configure"
4624 #include "confdefs.h"
4625 /* Override any gcc2 internal prototype to avoid an error. */
4626 /* We use char because int might match the return type of a gcc2
4627 builtin and then its argument prototype would still apply. */
4628 char DGifOpenFileName();
4630 int main() {
4631 DGifOpenFileName()
4632 ; return 0; }
4634 if { (eval echo configure:4635: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4635 rm -rf conftest*
4636 eval "ac_cv_lib_$ac_lib_var=yes"
4637 else
4638 echo "configure: failed program was:" >&5
4639 cat conftest.$ac_ext >&5
4640 rm -rf conftest*
4641 eval "ac_cv_lib_$ac_lib_var=no"
4643 rm -f conftest*
4644 LIBS="$ac_save_LIBS"
4647 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4648 echo "$ac_t""yes" 1>&6
4649 yes=yes
4650 else
4651 echo "$ac_t""no" 1>&6
4652 no=no
4655 LDFLAGS="$LDFLAGS_old"
4657 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4658 my_libname=ungif
4660 if test "x$my_libname" = x; then
4662 LDFLAGS_old="$LDFLAGS"
4663 LDFLAGS="$LDFLAGS $lib_search_path"
4664 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4665 echo "configure:4666: checking for DGifOpenFileName in -lgif" >&5
4666 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4667 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4668 echo $ac_n "(cached) $ac_c" 1>&6
4669 else
4670 ac_save_LIBS="$LIBS"
4671 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4672 cat > conftest.$ac_ext <<EOF
4673 #line 4674 "configure"
4674 #include "confdefs.h"
4675 /* Override any gcc2 internal prototype to avoid an error. */
4676 /* We use char because int might match the return type of a gcc2
4677 builtin and then its argument prototype would still apply. */
4678 char DGifOpenFileName();
4680 int main() {
4681 DGifOpenFileName()
4682 ; return 0; }
4684 if { (eval echo configure:4685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4685 rm -rf conftest*
4686 eval "ac_cv_lib_$ac_lib_var=yes"
4687 else
4688 echo "configure: failed program was:" >&5
4689 cat conftest.$ac_ext >&5
4690 rm -rf conftest*
4691 eval "ac_cv_lib_$ac_lib_var=no"
4693 rm -f conftest*
4694 LIBS="$ac_save_LIBS"
4697 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4698 echo "$ac_t""yes" 1>&6
4699 yes=yes
4700 else
4701 echo "$ac_t""no" 1>&6
4702 no=no
4705 LDFLAGS="$LDFLAGS_old"
4707 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
4708 my_libname=gif
4712 if test "$my_libname" != x; then
4714 CPPFLAGS_old="$CPPFLAGS"
4715 CPPFLAGS="$CPPFLAGS $inc_search_path"
4716 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4717 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4718 echo "configure:4719: checking for gif_lib.h" >&5
4719 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4720 echo $ac_n "(cached) $ac_c" 1>&6
4721 else
4722 cat > conftest.$ac_ext <<EOF
4723 #line 4724 "configure"
4724 #include "confdefs.h"
4725 #include <gif_lib.h>
4727 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4728 { (eval echo configure:4729: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4729 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4730 if test -z "$ac_err"; then
4731 rm -rf conftest*
4732 eval "ac_cv_header_$ac_safe=yes"
4733 else
4734 echo "$ac_err" >&5
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -rf conftest*
4738 eval "ac_cv_header_$ac_safe=no"
4740 rm -f conftest*
4742 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4743 echo "$ac_t""yes" 1>&6
4745 else
4746 echo "$ac_t""no" 1>&6
4749 CPPFLAGS="$CPPFLAGS_old"
4751 if test "x$ac_cv_header_gif_lib_h" = xyes; then
4752 GFXLIBS="$GFXLIBS -l$my_libname"
4753 supported_gfx="$supported_gfx GIF"
4754 cat >> confdefs.h <<\EOF
4755 #define USE_GIF 1
4764 # Check whether --enable-tiff or --disable-tiff was given.
4765 if test "${enable_tiff+set}" = set; then
4766 enableval="$enable_tiff"
4767 tif=$enableval
4768 else
4769 tif=yes
4774 # TIFF can optionally have JPEG and/or zlib support. Must find out
4775 # when they are supported so that correct library flags are passed during
4776 # detection and linkage
4779 # By default use xpm icons if tiff is not found.
4780 ICONEXT="xpm"
4783 if test "$tif" = yes; then
4784 my_libname=""
4786 LDFLAGS_old="$LDFLAGS"
4787 LDFLAGS="$LDFLAGS $lib_search_path"
4788 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4789 echo "configure:4790: checking for TIFFGetVersion in -ltiff" >&5
4790 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4792 echo $ac_n "(cached) $ac_c" 1>&6
4793 else
4794 ac_save_LIBS="$LIBS"
4795 LIBS="-ltiff -lm $LIBS"
4796 cat > conftest.$ac_ext <<EOF
4797 #line 4798 "configure"
4798 #include "confdefs.h"
4799 /* Override any gcc2 internal prototype to avoid an error. */
4800 /* We use char because int might match the return type of a gcc2
4801 builtin and then its argument prototype would still apply. */
4802 char TIFFGetVersion();
4804 int main() {
4805 TIFFGetVersion()
4806 ; return 0; }
4808 if { (eval echo configure:4809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4809 rm -rf conftest*
4810 eval "ac_cv_lib_$ac_lib_var=yes"
4811 else
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 rm -rf conftest*
4815 eval "ac_cv_lib_$ac_lib_var=no"
4817 rm -f conftest*
4818 LIBS="$ac_save_LIBS"
4821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4822 echo "$ac_t""yes" 1>&6
4823 yes=yes
4824 else
4825 echo "$ac_t""no" 1>&6
4826 no=no
4829 LDFLAGS="$LDFLAGS_old"
4831 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4832 my_libname="-ltiff"
4834 unset ac_cv_lib_tiff_TIFFGetVersion
4835 if test "x$my_libname" = x; then
4837 LDFLAGS_old="$LDFLAGS"
4838 LDFLAGS="$LDFLAGS $lib_search_path"
4839 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4840 echo "configure:4841: checking for TIFFGetVersion in -ltiff" >&5
4841 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4842 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4843 echo $ac_n "(cached) $ac_c" 1>&6
4844 else
4845 ac_save_LIBS="$LIBS"
4846 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
4847 cat > conftest.$ac_ext <<EOF
4848 #line 4849 "configure"
4849 #include "confdefs.h"
4850 /* Override any gcc2 internal prototype to avoid an error. */
4851 /* We use char because int might match the return type of a gcc2
4852 builtin and then its argument prototype would still apply. */
4853 char TIFFGetVersion();
4855 int main() {
4856 TIFFGetVersion()
4857 ; return 0; }
4859 if { (eval echo configure:4860: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4860 rm -rf conftest*
4861 eval "ac_cv_lib_$ac_lib_var=yes"
4862 else
4863 echo "configure: failed program was:" >&5
4864 cat conftest.$ac_ext >&5
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=no"
4868 rm -f conftest*
4869 LIBS="$ac_save_LIBS"
4872 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4873 echo "$ac_t""yes" 1>&6
4874 yes=yes
4875 else
4876 echo "$ac_t""no" 1>&6
4877 no=no
4880 LDFLAGS="$LDFLAGS_old"
4882 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4883 my_libname="-ltiff -lz"
4887 if test "x$my_libname" = x; then
4889 LDFLAGS_old="$LDFLAGS"
4890 LDFLAGS="$LDFLAGS $lib_search_path"
4891 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4892 echo "configure:4893: checking for TIFFGetVersion in -ltiff34" >&5
4893 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4895 echo $ac_n "(cached) $ac_c" 1>&6
4896 else
4897 ac_save_LIBS="$LIBS"
4898 LIBS="-ltiff34 $ljpeg -lm $LIBS"
4899 cat > conftest.$ac_ext <<EOF
4900 #line 4901 "configure"
4901 #include "confdefs.h"
4902 /* Override any gcc2 internal prototype to avoid an error. */
4903 /* We use char because int might match the return type of a gcc2
4904 builtin and then its argument prototype would still apply. */
4905 char TIFFGetVersion();
4907 int main() {
4908 TIFFGetVersion()
4909 ; return 0; }
4911 if { (eval echo configure:4912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4912 rm -rf conftest*
4913 eval "ac_cv_lib_$ac_lib_var=yes"
4914 else
4915 echo "configure: failed program was:" >&5
4916 cat conftest.$ac_ext >&5
4917 rm -rf conftest*
4918 eval "ac_cv_lib_$ac_lib_var=no"
4920 rm -f conftest*
4921 LIBS="$ac_save_LIBS"
4924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4925 echo "$ac_t""yes" 1>&6
4926 yes=yes
4927 else
4928 echo "$ac_t""no" 1>&6
4929 no=no
4932 LDFLAGS="$LDFLAGS_old"
4934 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
4935 my_libname="-ltiff34"
4940 if test "x$my_libname" != x; then
4942 CPPFLAGS_old="$CPPFLAGS"
4943 CPPFLAGS="$CPPFLAGS $inc_search_path"
4944 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4945 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4946 echo "configure:4947: checking for tiffio.h" >&5
4947 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4948 echo $ac_n "(cached) $ac_c" 1>&6
4949 else
4950 cat > conftest.$ac_ext <<EOF
4951 #line 4952 "configure"
4952 #include "confdefs.h"
4953 #include <tiffio.h>
4955 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4956 { (eval echo configure:4957: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4957 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4958 if test -z "$ac_err"; then
4959 rm -rf conftest*
4960 eval "ac_cv_header_$ac_safe=yes"
4961 else
4962 echo "$ac_err" >&5
4963 echo "configure: failed program was:" >&5
4964 cat conftest.$ac_ext >&5
4965 rm -rf conftest*
4966 eval "ac_cv_header_$ac_safe=no"
4968 rm -f conftest*
4970 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4971 echo "$ac_t""yes" 1>&6
4973 else
4974 echo "$ac_t""no" 1>&6
4977 CPPFLAGS="$CPPFLAGS_old"
4979 if test "x$ac_cv_header_tiffio_h" = xyes; then
4980 GFXLIBS="$my_libname $GFXLIBS"
4981 ICONEXT="tiff"
4982 supported_gfx="$supported_gfx TIFF"
4983 cat >> confdefs.h <<\EOF
4984 #define USE_TIFF 1
4991 LIBRARY_SEARCH_PATH="$lib_search_path"
4992 HEADER_SEARCH_PATH="$inc_search_path"
5004 # Check whether --enable-debug or --disable-debug was given.
5005 if test "${enable_debug+set}" = set; then
5006 enableval="$enable_debug"
5008 else
5009 enable_debug=no
5013 if test "$enable_debug" = yes; then
5014 DFLAGS="-g -DDEBUG"
5015 # Efence makes things too slow. Add it by hand in the Makefiles
5016 # if it is really needed.
5017 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5022 sound=yes
5023 # Check whether --enable-sound or --disable-sound was given.
5024 if test "${enable_sound+set}" = set; then
5025 enableval="$enable_sound"
5026 sound=$enableval
5027 else
5028 sound=yes
5031 if test "$sound" = yes; then
5032 cat >> confdefs.h <<\EOF
5033 #define WMSOUND 1
5039 # AC_PREFIX_PROGRAM(wmaker)
5041 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5042 if test "${with_pixmapdir+set}" = set; then
5043 withval="$with_pixmapdir"
5048 if test "x$with_pixmapdir" != "x"; then
5049 pixmapdir=$with_pixmapdir
5050 else
5051 pixmapdir=`eval echo ${datadir}/pixmaps`
5054 cat >> confdefs.h <<EOF
5055 #define PIXMAPDIR "$pixmapdir"
5059 pkgdatadir=`eval echo $datadir`
5060 cat >> confdefs.h <<EOF
5061 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5065 _sysconfdir=`eval echo $sysconfdir`
5066 cat >> confdefs.h <<EOF
5067 #define SYSCONFDIR "$_sysconfdir/WindowMaker"
5073 appspath=""
5075 # Check whether --with-appspath or --without-appspath was given.
5076 if test "${with_appspath+set}" = set; then
5077 withval="$with_appspath"
5078 appspath=$withval
5082 if test "x$appspath" = "x"; then
5083 gnustepdir='$(prefix)/GNUstep'
5085 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5086 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5087 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5090 with_appspath=$gnustepdir/Apps
5093 wprefsdir=$with_appspath/WPrefs.app
5099 # Check whether --enable-single-icon or --disable-single-icon was given.
5100 if test "${enable_single_icon+set}" = set; then
5101 enableval="$enable_single_icon"
5102 if test "$enableval" = yes; then
5103 cat >> confdefs.h <<\EOF
5104 #define REDUCE_APPICONS 1
5115 trap '' 1 2 15
5116 cat > confcache <<\EOF
5117 # This file is a shell script that caches the results of configure
5118 # tests run on this system so they can be shared between configure
5119 # scripts and configure runs. It is not useful on other systems.
5120 # If it contains results you don't want to keep, you may remove or edit it.
5122 # By default, configure uses ./config.cache as the cache file,
5123 # creating it if it does not exist already. You can give configure
5124 # the --cache-file=FILE option to use a different cache file; that is
5125 # what configure does when it calls configure scripts in
5126 # subdirectories, so they share the cache.
5127 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5128 # config.status only pays attention to the cache file if you give it the
5129 # --recheck option to rerun configure.
5132 # The following way of writing the cache mishandles newlines in values,
5133 # but we know of no workaround that is simple, portable, and efficient.
5134 # So, don't put newlines in cache variables' values.
5135 # Ultrix sh set writes to stderr and can't be redirected directly,
5136 # and sets the high bit in the cache file unless we assign to the vars.
5137 (set) 2>&1 |
5138 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5139 *ac_space=\ *)
5140 # `set' does not quote correctly, so add quotes (double-quote substitution
5141 # turns \\\\ into \\, and sed turns \\ into \).
5142 sed -n \
5143 -e "s/'/'\\\\''/g" \
5144 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5147 # `set' quotes correctly as required by POSIX, so do not add quotes.
5148 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5150 esac >> confcache
5151 if cmp -s $cache_file confcache; then
5153 else
5154 if test -w $cache_file; then
5155 echo "updating cache $cache_file"
5156 cat confcache > $cache_file
5157 else
5158 echo "not updating unwritable cache $cache_file"
5161 rm -f confcache
5163 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5165 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5166 # Let make expand exec_prefix.
5167 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5169 # Any assignment to VPATH causes Sun make to only execute
5170 # the first set of double-colon rules, so remove it if not needed.
5171 # If there is a colon in the path, we need to keep it.
5172 if test "x$srcdir" = x.; then
5173 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5176 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5178 DEFS=-DHAVE_CONFIG_H
5180 # Without the "./", some shells look in PATH for config.status.
5181 : ${CONFIG_STATUS=./config.status}
5183 echo creating $CONFIG_STATUS
5184 rm -f $CONFIG_STATUS
5185 cat > $CONFIG_STATUS <<EOF
5186 #! /bin/sh
5187 # Generated automatically by configure.
5188 # Run this file to recreate the current configuration.
5189 # This directory was configured as follows,
5190 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5192 # $0 $ac_configure_args
5194 # Compiler output produced by configure, useful for debugging
5195 # configure, is in ./config.log if it exists.
5197 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5198 for ac_option
5200 case "\$ac_option" in
5201 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5202 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5203 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5204 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5205 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5206 exit 0 ;;
5207 -help | --help | --hel | --he | --h)
5208 echo "\$ac_cs_usage"; exit 0 ;;
5209 *) echo "\$ac_cs_usage"; exit 1 ;;
5210 esac
5211 done
5213 ac_given_srcdir=$srcdir
5214 ac_given_INSTALL="$INSTALL"
5216 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5217 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5218 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5219 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5220 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5221 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5222 WindowMaker/Themes/Makefile \
5223 WindowMaker/Themes/Night.themed/Makefile \
5224 WindowMaker/Themes/LeetWM.themed/Makefile \
5225 WindowMaker/Themes/Checker.themed/Makefile \
5226 WindowMaker/Themes/STEP2000.themed/Makefile \
5227 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5228 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5230 cat >> $CONFIG_STATUS <<EOF
5232 # Protect against being on the right side of a sed subst in config.status.
5233 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5234 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5235 $ac_vpsub
5236 $extrasub
5237 s%@SHELL@%$SHELL%g
5238 s%@CFLAGS@%$CFLAGS%g
5239 s%@CPPFLAGS@%$CPPFLAGS%g
5240 s%@CXXFLAGS@%$CXXFLAGS%g
5241 s%@FFLAGS@%$FFLAGS%g
5242 s%@DEFS@%$DEFS%g
5243 s%@LDFLAGS@%$LDFLAGS%g
5244 s%@LIBS@%$LIBS%g
5245 s%@exec_prefix@%$exec_prefix%g
5246 s%@prefix@%$prefix%g
5247 s%@program_transform_name@%$program_transform_name%g
5248 s%@bindir@%$bindir%g
5249 s%@sbindir@%$sbindir%g
5250 s%@libexecdir@%$libexecdir%g
5251 s%@datadir@%$datadir%g
5252 s%@sysconfdir@%$sysconfdir%g
5253 s%@sharedstatedir@%$sharedstatedir%g
5254 s%@localstatedir@%$localstatedir%g
5255 s%@libdir@%$libdir%g
5256 s%@includedir@%$includedir%g
5257 s%@oldincludedir@%$oldincludedir%g
5258 s%@infodir@%$infodir%g
5259 s%@mandir@%$mandir%g
5260 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5261 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5262 s%@INSTALL_DATA@%$INSTALL_DATA%g
5263 s%@PACKAGE@%$PACKAGE%g
5264 s%@VERSION@%$VERSION%g
5265 s%@ACLOCAL@%$ACLOCAL%g
5266 s%@AUTOCONF@%$AUTOCONF%g
5267 s%@AUTOMAKE@%$AUTOMAKE%g
5268 s%@AUTOHEADER@%$AUTOHEADER%g
5269 s%@MAKEINFO@%$MAKEINFO%g
5270 s%@SET_MAKE@%$SET_MAKE%g
5271 s%@host@%$host%g
5272 s%@host_alias@%$host_alias%g
5273 s%@host_cpu@%$host_cpu%g
5274 s%@host_vendor@%$host_vendor%g
5275 s%@host_os@%$host_os%g
5276 s%@RANLIB@%$RANLIB%g
5277 s%@CC@%$CC%g
5278 s%@LD@%$LD%g
5279 s%@NM@%$NM%g
5280 s%@LN_S@%$LN_S%g
5281 s%@LIBTOOL@%$LIBTOOL%g
5282 s%@CPP@%$CPP%g
5283 s%@ALLOCA@%$ALLOCA%g
5284 s%@CPP_PATH@%$CPP_PATH%g
5285 s%@XGETTEXT@%$XGETTEXT%g
5286 s%@INTLIBS@%$INTLIBS%g
5287 s%@NLSDIR@%$NLSDIR%g
5288 s%@MOFILES@%$MOFILES%g
5289 s%@WPMOFILES@%$WPMOFILES%g
5290 s%@LITE@%$LITE%g
5291 s%@X_CFLAGS@%$X_CFLAGS%g
5292 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5293 s%@X_LIBS@%$X_LIBS%g
5294 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5295 s%@LIBPL@%$LIBPL%g
5296 s%@XCFLAGS@%$XCFLAGS%g
5297 s%@XLFLAGS@%$XLFLAGS%g
5298 s%@XLIBS@%$XLIBS%g
5299 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5300 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5301 s%@GFXLIBS@%$GFXLIBS%g
5302 s%@ICONEXT@%$ICONEXT%g
5303 s%@DFLAGS@%$DFLAGS%g
5304 s%@wprefsdir@%$wprefsdir%g
5306 CEOF
5309 cat >> $CONFIG_STATUS <<\EOF
5311 # Split the substitutions into bite-sized pieces for seds with
5312 # small command number limits, like on Digital OSF/1 and HP-UX.
5313 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5314 ac_file=1 # Number of current file.
5315 ac_beg=1 # First line for current file.
5316 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5317 ac_more_lines=:
5318 ac_sed_cmds=""
5319 while $ac_more_lines; do
5320 if test $ac_beg -gt 1; then
5321 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5322 else
5323 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5325 if test ! -s conftest.s$ac_file; then
5326 ac_more_lines=false
5327 rm -f conftest.s$ac_file
5328 else
5329 if test -z "$ac_sed_cmds"; then
5330 ac_sed_cmds="sed -f conftest.s$ac_file"
5331 else
5332 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5334 ac_file=`expr $ac_file + 1`
5335 ac_beg=$ac_end
5336 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5338 done
5339 if test -z "$ac_sed_cmds"; then
5340 ac_sed_cmds=cat
5344 cat >> $CONFIG_STATUS <<EOF
5346 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5347 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5348 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5349 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5350 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5351 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5352 WindowMaker/Themes/Makefile \
5353 WindowMaker/Themes/Night.themed/Makefile \
5354 WindowMaker/Themes/LeetWM.themed/Makefile \
5355 WindowMaker/Themes/Checker.themed/Makefile \
5356 WindowMaker/Themes/STEP2000.themed/Makefile \
5357 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5358 WPrefs.app/po/Makefile "}
5360 cat >> $CONFIG_STATUS <<\EOF
5361 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5362 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5363 case "$ac_file" in
5364 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5365 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5366 *) ac_file_in="${ac_file}.in" ;;
5367 esac
5369 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5371 # Remove last slash and all that follows it. Not all systems have dirname.
5372 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5373 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5374 # The file is in a subdirectory.
5375 test ! -d "$ac_dir" && mkdir "$ac_dir"
5376 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5377 # A "../" for each directory in $ac_dir_suffix.
5378 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5379 else
5380 ac_dir_suffix= ac_dots=
5383 case "$ac_given_srcdir" in
5384 .) srcdir=.
5385 if test -z "$ac_dots"; then top_srcdir=.
5386 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5387 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5388 *) # Relative path.
5389 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5390 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5391 esac
5393 case "$ac_given_INSTALL" in
5394 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5395 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5396 esac
5398 echo creating "$ac_file"
5399 rm -f "$ac_file"
5400 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5401 case "$ac_file" in
5402 *Makefile*) ac_comsub="1i\\
5403 # $configure_input" ;;
5404 *) ac_comsub= ;;
5405 esac
5407 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5408 sed -e "$ac_comsub
5409 s%@configure_input@%$configure_input%g
5410 s%@srcdir@%$srcdir%g
5411 s%@top_srcdir@%$top_srcdir%g
5412 s%@INSTALL@%$INSTALL%g
5413 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5414 fi; done
5415 rm -f conftest.s*
5417 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5418 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5420 # ac_d sets the value in "#define NAME VALUE" lines.
5421 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5422 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5423 ac_dC='\3'
5424 ac_dD='%g'
5425 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5426 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5427 ac_uB='\([ ]\)%\1#\2define\3'
5428 ac_uC=' '
5429 ac_uD='\4%g'
5430 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5431 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5432 ac_eB='$%\1#\2define\3'
5433 ac_eC=' '
5434 ac_eD='%g'
5436 if test "${CONFIG_HEADERS+set}" != set; then
5438 cat >> $CONFIG_STATUS <<EOF
5439 CONFIG_HEADERS="src/config.h"
5441 cat >> $CONFIG_STATUS <<\EOF
5443 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5444 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5445 case "$ac_file" in
5446 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5447 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5448 *) ac_file_in="${ac_file}.in" ;;
5449 esac
5451 echo creating $ac_file
5453 rm -f conftest.frag conftest.in conftest.out
5454 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5455 cat $ac_file_inputs > conftest.in
5459 # Transform confdefs.h into a sed script conftest.vals that substitutes
5460 # the proper values into config.h.in to produce config.h. And first:
5461 # Protect against being on the right side of a sed subst in config.status.
5462 # Protect against being in an unquoted here document in config.status.
5463 rm -f conftest.vals
5464 cat > conftest.hdr <<\EOF
5465 s/[\\&%]/\\&/g
5466 s%[\\$`]%\\&%g
5467 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5468 s%ac_d%ac_u%gp
5469 s%ac_u%ac_e%gp
5471 sed -n -f conftest.hdr confdefs.h > conftest.vals
5472 rm -f conftest.hdr
5474 # This sed command replaces #undef with comments. This is necessary, for
5475 # example, in the case of _POSIX_SOURCE, which is predefined and required
5476 # on some systems where configure will not decide to define it.
5477 cat >> conftest.vals <<\EOF
5478 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5481 # Break up conftest.vals because some shells have a limit on
5482 # the size of here documents, and old seds have small limits too.
5484 rm -f conftest.tail
5485 while :
5487 ac_lines=`grep -c . conftest.vals`
5488 # grep -c gives empty output for an empty file on some AIX systems.
5489 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5490 # Write a limited-size here document to conftest.frag.
5491 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5492 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5493 echo 'CEOF
5494 sed -f conftest.frag conftest.in > conftest.out
5495 rm -f conftest.in
5496 mv conftest.out conftest.in
5497 ' >> $CONFIG_STATUS
5498 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5499 rm -f conftest.vals
5500 mv conftest.tail conftest.vals
5501 done
5502 rm -f conftest.vals
5504 cat >> $CONFIG_STATUS <<\EOF
5505 rm -f conftest.frag conftest.h
5506 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5507 cat conftest.in >> conftest.h
5508 rm -f conftest.in
5509 if cmp -s $ac_file conftest.h 2>/dev/null; then
5510 echo "$ac_file is unchanged"
5511 rm -f conftest.h
5512 else
5513 # Remove last slash and all that follows it. Not all systems have dirname.
5514 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5515 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5516 # The file is in a subdirectory.
5517 test ! -d "$ac_dir" && mkdir "$ac_dir"
5519 rm -f $ac_file
5520 mv conftest.h $ac_file
5522 fi; done
5525 cat >> $CONFIG_STATUS <<EOF
5529 cat >> $CONFIG_STATUS <<\EOF
5530 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5532 exit 0
5534 chmod +x $CONFIG_STATUS
5535 rm -fr confdefs* $ac_clean_files
5536 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5544 cat <<EOF >get-wraster-flags
5545 #!/bin/sh
5547 prefix="$prefix"
5548 exec_prefix=\$prefix
5550 WCFLAGS="-I\$prefix/include $inc_search_path"
5551 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5552 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5554 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--lflags#rp# #lp#--libs#rp#"
5556 if test \$# -eq 0; then
5557 echo "\${usage}" 1>&2
5558 exit 1
5561 while test \$# -gt 0; do
5562 case \$1 in
5563 --cflags)
5564 echo \$WCFLAGS
5566 --lflags)
5567 echo \$WLFLAGS
5569 --libs)
5570 echo \$WLIBS
5573 echo "\${usage}" 1>&2
5574 exit 1
5576 esac
5577 shift
5578 done
5583 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5585 chmod 755 wrlib/get-wraster-flags
5586 rm -f get-wraster-flags
5590 supported_gfx="$supported_gfx builtin-PPM"
5592 if test "x$MOFILES" = "x"; then
5593 mof=none
5594 else
5595 mof=$MOFILES
5599 echo
5600 echo "Window Maker was configured as follows:"
5601 echo
5602 echo "Installation path prefix: $prefix"
5603 echo "Installation path prefix for binaries: $_bindir"
5604 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5605 echo "Graphic format libraries: $supported_gfx"
5606 echo "Sound support: $sound"
5607 echo "Translated message files to install: $mof"
5608 if test "x$MOFILES" != "x"; then
5609 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5613 if test "$rh_is_redhat" = yes; then
5614 if test "$mins_found" = yes -o "$bugs_found" = yes; then
5615 echo
5616 echo "configure: warning: It seems you are using a system packaged by Red Hat.
5617 I have done some checks for Red-Hat-specific bugs, and I found some
5618 problems. Please read the INSTALL file regarding Red Hat, resolve
5619 the problems, and try to run configure again.
5621 Here are the problems I found:
5622 " 1>&2
5623 if test "x$rh_old_wmaker" = xyes; then
5624 echo "Problem: Old version of Window Maker in /usr/X11R6/bin."
5625 echo "Description: You seem to have an old version of Window Maker"
5626 echo " installed in /usr/X11R6/bin. It is recommended"
5627 echo " that you uninstall any previously installed"
5628 echo " packages of WindowMaker before installing a new one."
5629 echo
5631 if test "x$rh_missing_usr_local_bin" = xyes; then
5632 echo "Problem: PATH is missing /usr/local/bin."
5633 echo "Description: Your PATH environment variable does not appear to"
5634 echo " contain the directory /usr/local/bin. Please add it."
5635 echo
5637 if test "x$rh_missing_usr_local_lib" = xyes; then
5638 echo "Problem: /etc/ld.so.conf missing /usr/local/lib"
5639 echo "Description: Your /etc/ld.so.conf file does not appear to contain"
5640 echo " the directory /usr/local/lib. Please add it."
5641 echo
5643 if test "x$rh_missing_usr_x11" = xyes; then
5644 echo "Problem: Missing /usr/X11 symbolic link."
5645 echo "Description: Your system is missing a symbolic link from"
5646 echo " /usr/X11R6 to /usr/X11. Please create one."
5647 echo
5649 if test "x$rh_missing_usr_include_x11" = xyes; then
5650 echo "Problem: Missing /usr/include/X11 symbolic link."
5651 echo "Description: Your system is missing a symbolic link from"
5652 echo " /usr/X11R6/include/X11 to /usr/include/X11."
5653 echo " Please create one."
5654 echo
5656 if test "x$rh_missing_lib_cpp" = xyes; then
5657 echo "Problem: Missing /lib/cpp symbolic link."
5658 echo "Description: Your system is missing a symbolic link from the"
5659 echo " cpp (C preprocessor) program to /lib/cpp."
5660 echo " Please create one."
5661 echo
5663 if test "x$bugs_found" = xyes; then
5664 { echo "configure: error: One or more of the problems above can potentially
5665 cause Window Maker not to install or run properly. Please resolve
5666 the problems and try to run configure again." 1>&2; exit 1; }
5667 exit 1
5668 elif test "x$mins_found" = xyes; then
5669 echo "configure: warning: The problems above may or may not cause Window Maker
5670 not to install or run properly. If you have any problems during
5671 installation or execution, please resolve the problems and try to
5672 install Window Maker again." 1>&2
5673 echo
5675 else
5676 echo
5677 echo "You appear to have a system packaged by Red Hat, but I could"
5678 echo "not find any Red-Hat-specific problems that I know about."
5679 echo
5684 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5685 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5686 echo
5687 echo "JPEG support will not be included because the JPEG library is"
5688 echo "not installed correctly or was not found. Background images"
5689 echo "from themes will not display as they usually are JPEG files."
5690 echo
5691 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"