updated default window attributes for IgnoreGeometryHints
[wmaker-crm.git] / configure
bloba67e87aced87a3836cea99afbd334792386cde2f
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 --with-nlsdir=PATH specify where the locale stuff should go "
30 ac_help="$ac_help
31 --enable-gnome enable stuff needed for GNOME "
32 ac_help="$ac_help
33 --enable-kde enable support for KDE window manager (kwm) hints "
34 ac_help="$ac_help
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
36 ac_help="$ac_help
37 --enable-lite disable some stuff (dont use it) "
38 ac_help="$ac_help
39 --with-x use the X Window System"
40 ac_help="$ac_help
41 --disable-locale disable use of X locale support"
42 ac_help="$ac_help
43 --enable-modelock XKB keyboard language status support"
44 ac_help="$ac_help
45 --disable-shape disable shaped window extension support"
46 ac_help="$ac_help
47 --disable-shm disable usage of MIT-SHM extension"
48 ac_help="$ac_help
49 --disable-xpm disable use of XPM pixmaps through libXpm"
50 ac_help="$ac_help
51 --disable-png disable PNG support through libpng"
52 ac_help="$ac_help
53 --disable-jpeg disable JPEG support through libjpeg"
54 ac_help="$ac_help
55 --disable-gif disable GIF support through libgif or libungif"
56 ac_help="$ac_help
57 --disable-tiff disable use of TIFF images through libtiff"
58 ac_help="$ac_help
59 --enable-debug enable debugging "
60 ac_help="$ac_help
61 --disable-sound disable sound support "
62 ac_help="$ac_help
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
64 ac_help="$ac_help
65 --with-appspath=PATH specify the directory for GNUstep applications"
66 ac_help="$ac_help
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
69 ac_help="$ac_help
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
206 [$ac_default_prefix]
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 [same as prefix]
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
213 [PREFIX/share]
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 [PREFIX/com]
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
229 cat << EOF
230 Host type:
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
245 exit 0 ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host="$ac_optarg" ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=src/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 else
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
548 . "$ac_site_file"
550 done
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
554 . $cache_file
555 else
556 echo "creating cache $cache_file"
557 > $cache_file
560 ac_ext=c
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
567 ac_exeext=
568 ac_objext=o
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='
573 ' ac_t=' '
574 else
575 ac_n=-n ac_c= ac_t=
577 else
578 ac_n= ac_c='\c' ac_t=
585 ac_aux_dir=
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
596 done
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
609 # IRIX /sbin/install
610 # AIX /bin/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620 else
621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
622 for ac_dir in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
624 case "$ac_dir/" in
625 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
629 # by default.
630 for ac_prog in ginstall scoinst install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
634 # AIX install. It has an incompatible calling convention.
636 else
637 ac_cv_path_install="$ac_dir/$ac_prog -c"
638 break 2
641 done
643 esac
644 done
645 IFS="$ac_save_IFS"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL="$ac_cv_path_install"
650 else
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
670 # Just in case
671 sleep 1
672 echo timestamp > conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
677 # directory).
678 if (
679 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
681 # -L didn't work.
682 set X `ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
697 then
698 # Ok.
700 else
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
704 rm -f conftest*
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s,x,x,; then
707 program_transform_name=
708 else
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED > conftestsed
711 s,\\,\\\\,g; s,\$,$$,g
712 EOF_SED
713 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
714 rm -f conftestsed
716 test "$program_prefix" != NONE &&
717 program_transform_name="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE &&
720 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730 else
731 cat > conftestmake <<\EOF
732 all:
733 @echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_${ac_make}_set=yes
739 else
740 eval ac_cv_prog_make_${ac_make}_set=no
742 rm -f conftestmake
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
746 SET_MAKE=
747 else
748 echo "$ac_t""no" 1>&6
749 SET_MAKE="MAKE=${MAKE-make}"
753 PACKAGE=WindowMaker
755 VERSION=0.61.0
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
758 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
760 cat >> confdefs.h <<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h <<EOF
765 #define VERSION "$VERSION"
770 missing_dir=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 ACLOCAL=aclocal
778 echo "$ac_t""found" 1>&6
779 else
780 ACLOCAL="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 AUTOCONF=autoconf
791 echo "$ac_t""found" 1>&6
792 else
793 AUTOCONF="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 AUTOMAKE=automake
804 echo "$ac_t""found" 1>&6
805 else
806 AUTOMAKE="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
816 AUTOHEADER=autoheader
817 echo "$ac_t""found" 1>&6
818 else
819 AUTOHEADER="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 MAKEINFO=makeinfo
830 echo "$ac_t""found" 1>&6
831 else
832 MAKEINFO="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval="$enable_shared"
841 p=${PACKAGE-default}
842 case "$enableval" in
843 yes) enable_shared=yes ;;
844 no) enable_shared=no ;;
846 enable_shared=no
847 # Look at the argument we got. We use all the common list separators.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
849 for pkg in $enableval; do
850 if test "X$pkg" = "X$p"; then
851 enable_shared=yes
853 done
854 IFS="$ac_save_ifs"
856 esac
857 else
858 enable_shared=yes
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval="$enable_static"
864 p=${PACKAGE-default}
865 case "$enableval" in
866 yes) enable_static=yes ;;
867 no) enable_static=no ;;
869 enable_static=no
870 # Look at the argument we got. We use all the common list separators.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
872 for pkg in $enableval; do
873 if test "X$pkg" = "X$p"; then
874 enable_static=yes
876 done
877 IFS="$ac_save_ifs"
879 esac
880 else
881 enable_static=yes
885 # Make sure we can run config.sub.
886 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
887 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
890 echo $ac_n "checking host system type""... $ac_c" 1>&6
891 echo "configure:892: checking host system type" >&5
893 host_alias=$host
894 case "$host_alias" in
895 NONE)
896 case $nonopt in
897 NONE)
898 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
899 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
900 fi ;;
901 *) host_alias=$nonopt ;;
902 esac ;;
903 esac
905 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
906 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
907 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
908 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
909 echo "$ac_t""$host" 1>&6
911 # Extract the first word of "ranlib", so it can be a program name with args.
912 set dummy ranlib; ac_word=$2
913 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
914 echo "configure:915: checking for $ac_word" >&5
915 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
916 echo $ac_n "(cached) $ac_c" 1>&6
917 else
918 if test -n "$RANLIB"; then
919 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
920 else
921 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
922 ac_dummy="$PATH"
923 for ac_dir in $ac_dummy; do
924 test -z "$ac_dir" && ac_dir=.
925 if test -f $ac_dir/$ac_word; then
926 ac_cv_prog_RANLIB="ranlib"
927 break
929 done
930 IFS="$ac_save_ifs"
931 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
934 RANLIB="$ac_cv_prog_RANLIB"
935 if test -n "$RANLIB"; then
936 echo "$ac_t""$RANLIB" 1>&6
937 else
938 echo "$ac_t""no" 1>&6
941 # Extract the first word of "gcc", so it can be a program name with args.
942 set dummy gcc; ac_word=$2
943 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
944 echo "configure:945: checking for $ac_word" >&5
945 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
946 echo $ac_n "(cached) $ac_c" 1>&6
947 else
948 if test -n "$CC"; then
949 ac_cv_prog_CC="$CC" # Let the user override the test.
950 else
951 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
952 ac_dummy="$PATH"
953 for ac_dir in $ac_dummy; do
954 test -z "$ac_dir" && ac_dir=.
955 if test -f $ac_dir/$ac_word; then
956 ac_cv_prog_CC="gcc"
957 break
959 done
960 IFS="$ac_save_ifs"
963 CC="$ac_cv_prog_CC"
964 if test -n "$CC"; then
965 echo "$ac_t""$CC" 1>&6
966 else
967 echo "$ac_t""no" 1>&6
970 if test -z "$CC"; then
971 # Extract the first word of "cc", so it can be a program name with args.
972 set dummy cc; ac_word=$2
973 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
974 echo "configure:975: checking for $ac_word" >&5
975 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
976 echo $ac_n "(cached) $ac_c" 1>&6
977 else
978 if test -n "$CC"; then
979 ac_cv_prog_CC="$CC" # Let the user override the test.
980 else
981 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
982 ac_prog_rejected=no
983 ac_dummy="$PATH"
984 for ac_dir in $ac_dummy; do
985 test -z "$ac_dir" && ac_dir=.
986 if test -f $ac_dir/$ac_word; then
987 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
988 ac_prog_rejected=yes
989 continue
991 ac_cv_prog_CC="cc"
992 break
994 done
995 IFS="$ac_save_ifs"
996 if test $ac_prog_rejected = yes; then
997 # We found a bogon in the path, so make sure we never use it.
998 set dummy $ac_cv_prog_CC
999 shift
1000 if test $# -gt 0; then
1001 # We chose a different compiler from the bogus one.
1002 # However, it has the same basename, so the bogon will be chosen
1003 # first if we set CC to just the basename; use the full file name.
1004 shift
1005 set dummy "$ac_dir/$ac_word" "$@"
1006 shift
1007 ac_cv_prog_CC="$@"
1012 CC="$ac_cv_prog_CC"
1013 if test -n "$CC"; then
1014 echo "$ac_t""$CC" 1>&6
1015 else
1016 echo "$ac_t""no" 1>&6
1019 if test -z "$CC"; then
1020 case "`uname -s`" in
1021 *win32* | *WIN32*)
1022 # Extract the first word of "cl", so it can be a program name with args.
1023 set dummy cl; ac_word=$2
1024 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1025 echo "configure:1026: checking for $ac_word" >&5
1026 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1027 echo $ac_n "(cached) $ac_c" 1>&6
1028 else
1029 if test -n "$CC"; then
1030 ac_cv_prog_CC="$CC" # Let the user override the test.
1031 else
1032 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1033 ac_dummy="$PATH"
1034 for ac_dir in $ac_dummy; do
1035 test -z "$ac_dir" && ac_dir=.
1036 if test -f $ac_dir/$ac_word; then
1037 ac_cv_prog_CC="cl"
1038 break
1040 done
1041 IFS="$ac_save_ifs"
1044 CC="$ac_cv_prog_CC"
1045 if test -n "$CC"; then
1046 echo "$ac_t""$CC" 1>&6
1047 else
1048 echo "$ac_t""no" 1>&6
1051 esac
1053 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1056 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1057 echo "configure:1058: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1059 ac_ext=c
1060 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1061 ac_cpp='$CPP $CPPFLAGS'
1062 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1063 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1064 cross_compiling=$ac_cv_prog_cc_cross
1066 cat > conftest.$ac_ext << EOF
1068 #line 1069 "configure"
1069 #include "confdefs.h"
1071 main(){return(0);}
1073 if { (eval echo configure:1074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1074 ac_cv_prog_cc_works=yes
1075 # If we can't run a trivial program, we are probably using a cross compiler.
1076 if (./conftest; exit) 2>/dev/null; then
1077 ac_cv_prog_cc_cross=no
1078 else
1079 ac_cv_prog_cc_cross=yes
1081 else
1082 echo "configure: failed program was:" >&5
1083 cat conftest.$ac_ext >&5
1084 ac_cv_prog_cc_works=no
1086 rm -fr conftest*
1087 ac_ext=c
1088 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1089 ac_cpp='$CPP $CPPFLAGS'
1090 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1091 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1092 cross_compiling=$ac_cv_prog_cc_cross
1094 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1095 if test $ac_cv_prog_cc_works = no; then
1096 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1098 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1099 echo "configure:1100: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1100 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1101 cross_compiling=$ac_cv_prog_cc_cross
1103 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1104 echo "configure:1105: checking whether we are using GNU C" >&5
1105 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1106 echo $ac_n "(cached) $ac_c" 1>&6
1107 else
1108 cat > conftest.c <<EOF
1109 #ifdef __GNUC__
1110 yes;
1111 #endif
1113 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1114: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1114 ac_cv_prog_gcc=yes
1115 else
1116 ac_cv_prog_gcc=no
1120 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1122 if test $ac_cv_prog_gcc = yes; then
1123 GCC=yes
1124 else
1125 GCC=
1128 ac_test_CFLAGS="${CFLAGS+set}"
1129 ac_save_CFLAGS="$CFLAGS"
1130 CFLAGS=
1131 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1132 echo "configure:1133: checking whether ${CC-cc} accepts -g" >&5
1133 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1134 echo $ac_n "(cached) $ac_c" 1>&6
1135 else
1136 echo 'void f(){}' > conftest.c
1137 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1138 ac_cv_prog_cc_g=yes
1139 else
1140 ac_cv_prog_cc_g=no
1142 rm -f conftest*
1146 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1147 if test "$ac_test_CFLAGS" = set; then
1148 CFLAGS="$ac_save_CFLAGS"
1149 elif test $ac_cv_prog_cc_g = yes; then
1150 if test "$GCC" = yes; then
1151 CFLAGS="-g -O2"
1152 else
1153 CFLAGS="-g"
1155 else
1156 if test "$GCC" = yes; then
1157 CFLAGS="-O2"
1158 else
1159 CFLAGS=
1163 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1164 if test "${with_gnu_ld+set}" = set; then
1165 withval="$with_gnu_ld"
1166 test "$withval" = no || with_gnu_ld=yes
1167 else
1168 with_gnu_ld=no
1172 ac_prog=ld
1173 if test "$ac_cv_prog_gcc" = yes; then
1174 # Check if gcc -print-prog-name=ld gives a path.
1175 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1176 echo "configure:1177: checking for ld used by GCC" >&5
1177 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1178 case "$ac_prog" in
1179 # Accept absolute paths.
1180 /* | A-Za-z:\\*)
1181 test -z "$LD" && LD="$ac_prog"
1184 # If it fails, then pretend we aren't using GCC.
1185 ac_prog=ld
1188 # If it is relative, then search for the first ld in PATH.
1189 with_gnu_ld=unknown
1191 esac
1192 elif test "$with_gnu_ld" = yes; then
1193 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1194 echo "configure:1195: checking for GNU ld" >&5
1195 else
1196 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1197 echo "configure:1198: checking for non-GNU ld" >&5
1199 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1200 echo $ac_n "(cached) $ac_c" 1>&6
1201 else
1202 if test -z "$LD"; then
1203 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1204 for ac_dir in $PATH; do
1205 test -z "$ac_dir" && ac_dir=.
1206 if test -f "$ac_dir/$ac_prog"; then
1207 ac_cv_path_LD="$ac_dir/$ac_prog"
1208 # Check to see if the program is GNU ld. I'd rather use --version,
1209 # but apparently some GNU ld's only accept -v.
1210 # Break only if it was the GNU/non-GNU ld that we prefer.
1211 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1212 test "$with_gnu_ld" != no && break
1213 else
1214 test "$with_gnu_ld" != yes && break
1217 done
1218 IFS="$ac_save_ifs"
1219 else
1220 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1224 LD="$ac_cv_path_LD"
1225 if test -n "$LD"; then
1226 echo "$ac_t""$LD" 1>&6
1227 else
1228 echo "$ac_t""no" 1>&6
1230 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1232 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1233 echo "configure:1234: checking if the linker ($LD) is GNU ld" >&5
1234 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1235 echo $ac_n "(cached) $ac_c" 1>&6
1236 else
1237 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1238 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1239 ac_cv_prog_gnu_ld=yes
1240 else
1241 ac_cv_prog_gnu_ld=no
1245 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1248 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1249 echo "configure:1250: checking for BSD-compatible nm" >&5
1250 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1251 echo $ac_n "(cached) $ac_c" 1>&6
1252 else
1253 case "$NM" in
1254 /* | A-Za-z:\\*)
1255 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1258 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1259 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1260 test -z "$ac_dir" && ac_dir=.
1261 if test -f $ac_dir/nm; then
1262 # Check to see if the nm accepts a BSD-compat flag.
1263 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1264 # nm: unknown option "B" ignored
1265 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1266 ac_cv_path_NM="$ac_dir/nm -B"
1267 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1268 ac_cv_path_NM="$ac_dir/nm -p"
1269 else
1270 ac_cv_path_NM="$ac_dir/nm"
1272 break
1274 done
1275 IFS="$ac_save_ifs"
1276 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1278 esac
1281 NM="$ac_cv_path_NM"
1282 echo "$ac_t""$NM" 1>&6
1285 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1286 echo "configure:1287: checking whether ln -s works" >&5
1287 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1288 echo $ac_n "(cached) $ac_c" 1>&6
1289 else
1290 rm -f conftestdata
1291 if ln -s X conftestdata 2>/dev/null
1292 then
1293 rm -f conftestdata
1294 ac_cv_prog_LN_S="ln -s"
1295 else
1296 ac_cv_prog_LN_S=ln
1299 LN_S="$ac_cv_prog_LN_S"
1300 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1301 echo "$ac_t""yes" 1>&6
1302 else
1303 echo "$ac_t""no" 1>&6
1306 # Always use our own libtool.
1307 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1309 # Check for any special flags to pass to ltconfig.
1310 libtool_flags=
1311 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1312 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1313 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1314 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1315 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1317 # Some flags need to be propagated to the compiler or linker for good
1318 # libtool support.
1319 case "$host" in
1320 *-*-irix6*)
1321 # Find out which ABI we are using.
1322 echo '#line 1323 "configure"' > conftest.$ac_ext
1323 if { (eval echo configure:1324: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1324 case "`/usr/bin/file conftest.o`" in
1325 *32-bit*)
1326 LD="${LD-ld} -32"
1328 *N32*)
1329 LD="${LD-ld} -n32"
1331 *64-bit*)
1332 LD="${LD-ld} -64"
1334 esac
1336 rm -rf conftest*
1339 *-*-sco3.2v5*)
1340 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1341 CFLAGS="$CFLAGS -belf"
1343 esac
1345 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1346 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1347 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1348 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1349 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1350 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1353 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1354 # Turn around -rpath problem with libtool 1.0c
1355 # This define should be improbable enough to not conflict with anything
1356 case ${host} in
1357 *-pc-linux-gnu)
1358 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1359 sed < libtool > libtool-2 \
1360 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1361 mv libtool-2 libtool
1362 chmod 755 libtool
1364 esac
1366 W_SYSTEM=`uname -s`
1376 # Make sure we can run config.sub.
1377 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1378 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1381 echo $ac_n "checking host system type""... $ac_c" 1>&6
1382 echo "configure:1383: checking host system type" >&5
1384 host_alias=$host
1385 case "$host_alias" in
1386 NONE)
1387 case $nonopt in
1388 NONE)
1389 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1390 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1391 fi ;;
1392 *) host_alias=$nonopt ;;
1393 esac ;;
1394 esac
1396 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1397 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1398 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1399 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1400 echo "$ac_t""$host" 1>&6
1404 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1405 echo "configure:1406: checking for POSIXized ISC" >&5
1406 if test -d /etc/conf/kconfig.d &&
1407 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1408 then
1409 echo "$ac_t""yes" 1>&6
1410 ISC=yes # If later tests want to check for ISC.
1411 cat >> confdefs.h <<\EOF
1412 #define _POSIX_SOURCE 1
1415 if test "$GCC" = yes; then
1416 CC="$CC -posix"
1417 else
1418 CC="$CC -Xp"
1420 else
1421 echo "$ac_t""no" 1>&6
1422 ISC=
1425 # Extract the first word of "gcc", so it can be a program name with args.
1426 set dummy gcc; ac_word=$2
1427 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1428 echo "configure:1429: checking for $ac_word" >&5
1429 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 if test -n "$CC"; then
1433 ac_cv_prog_CC="$CC" # Let the user override the test.
1434 else
1435 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1436 ac_dummy="$PATH"
1437 for ac_dir in $ac_dummy; do
1438 test -z "$ac_dir" && ac_dir=.
1439 if test -f $ac_dir/$ac_word; then
1440 ac_cv_prog_CC="gcc"
1441 break
1443 done
1444 IFS="$ac_save_ifs"
1447 CC="$ac_cv_prog_CC"
1448 if test -n "$CC"; then
1449 echo "$ac_t""$CC" 1>&6
1450 else
1451 echo "$ac_t""no" 1>&6
1454 if test -z "$CC"; then
1455 # Extract the first word of "cc", so it can be a program name with args.
1456 set dummy cc; ac_word=$2
1457 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1458 echo "configure:1459: checking for $ac_word" >&5
1459 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1460 echo $ac_n "(cached) $ac_c" 1>&6
1461 else
1462 if test -n "$CC"; then
1463 ac_cv_prog_CC="$CC" # Let the user override the test.
1464 else
1465 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1466 ac_prog_rejected=no
1467 ac_dummy="$PATH"
1468 for ac_dir in $ac_dummy; do
1469 test -z "$ac_dir" && ac_dir=.
1470 if test -f $ac_dir/$ac_word; then
1471 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1472 ac_prog_rejected=yes
1473 continue
1475 ac_cv_prog_CC="cc"
1476 break
1478 done
1479 IFS="$ac_save_ifs"
1480 if test $ac_prog_rejected = yes; then
1481 # We found a bogon in the path, so make sure we never use it.
1482 set dummy $ac_cv_prog_CC
1483 shift
1484 if test $# -gt 0; then
1485 # We chose a different compiler from the bogus one.
1486 # However, it has the same basename, so the bogon will be chosen
1487 # first if we set CC to just the basename; use the full file name.
1488 shift
1489 set dummy "$ac_dir/$ac_word" "$@"
1490 shift
1491 ac_cv_prog_CC="$@"
1496 CC="$ac_cv_prog_CC"
1497 if test -n "$CC"; then
1498 echo "$ac_t""$CC" 1>&6
1499 else
1500 echo "$ac_t""no" 1>&6
1503 if test -z "$CC"; then
1504 case "`uname -s`" in
1505 *win32* | *WIN32*)
1506 # Extract the first word of "cl", so it can be a program name with args.
1507 set dummy cl; ac_word=$2
1508 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1509 echo "configure:1510: checking for $ac_word" >&5
1510 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1511 echo $ac_n "(cached) $ac_c" 1>&6
1512 else
1513 if test -n "$CC"; then
1514 ac_cv_prog_CC="$CC" # Let the user override the test.
1515 else
1516 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1517 ac_dummy="$PATH"
1518 for ac_dir in $ac_dummy; do
1519 test -z "$ac_dir" && ac_dir=.
1520 if test -f $ac_dir/$ac_word; then
1521 ac_cv_prog_CC="cl"
1522 break
1524 done
1525 IFS="$ac_save_ifs"
1528 CC="$ac_cv_prog_CC"
1529 if test -n "$CC"; then
1530 echo "$ac_t""$CC" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1535 esac
1537 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1540 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1541 echo "configure:1542: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1543 ac_ext=c
1544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1545 ac_cpp='$CPP $CPPFLAGS'
1546 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1547 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1548 cross_compiling=$ac_cv_prog_cc_cross
1550 cat > conftest.$ac_ext << EOF
1552 #line 1553 "configure"
1553 #include "confdefs.h"
1555 main(){return(0);}
1557 if { (eval echo configure:1558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1558 ac_cv_prog_cc_works=yes
1559 # If we can't run a trivial program, we are probably using a cross compiler.
1560 if (./conftest; exit) 2>/dev/null; then
1561 ac_cv_prog_cc_cross=no
1562 else
1563 ac_cv_prog_cc_cross=yes
1565 else
1566 echo "configure: failed program was:" >&5
1567 cat conftest.$ac_ext >&5
1568 ac_cv_prog_cc_works=no
1570 rm -fr conftest*
1571 ac_ext=c
1572 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1573 ac_cpp='$CPP $CPPFLAGS'
1574 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1575 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1576 cross_compiling=$ac_cv_prog_cc_cross
1578 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1579 if test $ac_cv_prog_cc_works = no; then
1580 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1582 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1583 echo "configure:1584: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1584 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1585 cross_compiling=$ac_cv_prog_cc_cross
1587 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1588 echo "configure:1589: checking whether we are using GNU C" >&5
1589 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1590 echo $ac_n "(cached) $ac_c" 1>&6
1591 else
1592 cat > conftest.c <<EOF
1593 #ifdef __GNUC__
1594 yes;
1595 #endif
1597 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1598: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1598 ac_cv_prog_gcc=yes
1599 else
1600 ac_cv_prog_gcc=no
1604 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1606 if test $ac_cv_prog_gcc = yes; then
1607 GCC=yes
1608 else
1609 GCC=
1612 ac_test_CFLAGS="${CFLAGS+set}"
1613 ac_save_CFLAGS="$CFLAGS"
1614 CFLAGS=
1615 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1616 echo "configure:1617: checking whether ${CC-cc} accepts -g" >&5
1617 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1618 echo $ac_n "(cached) $ac_c" 1>&6
1619 else
1620 echo 'void f(){}' > conftest.c
1621 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1622 ac_cv_prog_cc_g=yes
1623 else
1624 ac_cv_prog_cc_g=no
1626 rm -f conftest*
1630 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1631 if test "$ac_test_CFLAGS" = set; then
1632 CFLAGS="$ac_save_CFLAGS"
1633 elif test $ac_cv_prog_cc_g = yes; then
1634 if test "$GCC" = yes; then
1635 CFLAGS="-g -O2"
1636 else
1637 CFLAGS="-g"
1639 else
1640 if test "$GCC" = yes; then
1641 CFLAGS="-O2"
1642 else
1643 CFLAGS=
1647 #AC_PROG_RANLIB
1648 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1649 echo "configure:1650: checking whether ln -s works" >&5
1650 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1651 echo $ac_n "(cached) $ac_c" 1>&6
1652 else
1653 rm -f conftestdata
1654 if ln -s X conftestdata 2>/dev/null
1655 then
1656 rm -f conftestdata
1657 ac_cv_prog_LN_S="ln -s"
1658 else
1659 ac_cv_prog_LN_S=ln
1662 LN_S="$ac_cv_prog_LN_S"
1663 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1664 echo "$ac_t""yes" 1>&6
1665 else
1666 echo "$ac_t""no" 1>&6
1669 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1670 echo "configure:1671: checking how to run the C preprocessor" >&5
1671 # On Suns, sometimes $CPP names a directory.
1672 if test -n "$CPP" && test -d "$CPP"; then
1673 CPP=
1675 if test -z "$CPP"; then
1676 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1677 echo $ac_n "(cached) $ac_c" 1>&6
1678 else
1679 # This must be in double quotes, not single quotes, because CPP may get
1680 # substituted into the Makefile and "${CC-cc}" will confuse make.
1681 CPP="${CC-cc} -E"
1682 # On the NeXT, cc -E runs the code through the compiler's parser,
1683 # not just through cpp.
1684 cat > conftest.$ac_ext <<EOF
1685 #line 1686 "configure"
1686 #include "confdefs.h"
1687 #include <assert.h>
1688 Syntax Error
1690 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1691 { (eval echo configure:1692: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1692 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1693 if test -z "$ac_err"; then
1695 else
1696 echo "$ac_err" >&5
1697 echo "configure: failed program was:" >&5
1698 cat conftest.$ac_ext >&5
1699 rm -rf conftest*
1700 CPP="${CC-cc} -E -traditional-cpp"
1701 cat > conftest.$ac_ext <<EOF
1702 #line 1703 "configure"
1703 #include "confdefs.h"
1704 #include <assert.h>
1705 Syntax Error
1707 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1708 { (eval echo configure:1709: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1709 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1710 if test -z "$ac_err"; then
1712 else
1713 echo "$ac_err" >&5
1714 echo "configure: failed program was:" >&5
1715 cat conftest.$ac_ext >&5
1716 rm -rf conftest*
1717 CPP="${CC-cc} -nologo -E"
1718 cat > conftest.$ac_ext <<EOF
1719 #line 1720 "configure"
1720 #include "confdefs.h"
1721 #include <assert.h>
1722 Syntax Error
1724 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1725 { (eval echo configure:1726: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1726 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1727 if test -z "$ac_err"; then
1729 else
1730 echo "$ac_err" >&5
1731 echo "configure: failed program was:" >&5
1732 cat conftest.$ac_ext >&5
1733 rm -rf conftest*
1734 CPP=/lib/cpp
1736 rm -f conftest*
1738 rm -f conftest*
1740 rm -f conftest*
1741 ac_cv_prog_CPP="$CPP"
1743 CPP="$ac_cv_prog_CPP"
1744 else
1745 ac_cv_prog_CPP="$CPP"
1747 echo "$ac_t""$CPP" 1>&6
1749 if test $ac_cv_prog_gcc = yes; then
1750 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1751 echo "configure:1752: checking whether ${CC-cc} needs -traditional" >&5
1752 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1753 echo $ac_n "(cached) $ac_c" 1>&6
1754 else
1755 ac_pattern="Autoconf.*'x'"
1756 cat > conftest.$ac_ext <<EOF
1757 #line 1758 "configure"
1758 #include "confdefs.h"
1759 #include <sgtty.h>
1760 Autoconf TIOCGETP
1762 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1763 egrep "$ac_pattern" >/dev/null 2>&1; then
1764 rm -rf conftest*
1765 ac_cv_prog_gcc_traditional=yes
1766 else
1767 rm -rf conftest*
1768 ac_cv_prog_gcc_traditional=no
1770 rm -f conftest*
1773 if test $ac_cv_prog_gcc_traditional = no; then
1774 cat > conftest.$ac_ext <<EOF
1775 #line 1776 "configure"
1776 #include "confdefs.h"
1777 #include <termio.h>
1778 Autoconf TCGETA
1780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1781 egrep "$ac_pattern" >/dev/null 2>&1; then
1782 rm -rf conftest*
1783 ac_cv_prog_gcc_traditional=yes
1785 rm -f conftest*
1790 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1791 if test $ac_cv_prog_gcc_traditional = yes; then
1792 CC="$CC -traditional"
1799 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1800 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1803 _bindir=`eval echo $bindir`
1804 _bindir=`eval echo $_bindir`
1806 _libdir=`eval echo $libdir`
1807 _libdir=`eval echo $_libdir`
1808 lib_search_path="-L$_libdir"
1810 inc_search_path=`eval echo $includedir`
1811 inc_search_path="-I`eval echo $inc_search_path`"
1817 # Check whether --with-libs-from or --without-libs-from was given.
1818 if test "${with_libs_from+set}" = set; then
1819 withval="$with_libs_from"
1820 lib_search_path="$withval $lib_search_path"
1824 # Check whether --with-incs-from or --without-incs-from was given.
1825 if test "${with_incs_from+set}" = set; then
1826 withval="$with_incs_from"
1827 inc_search_path="$withval $inc_search_path"
1833 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1834 echo "configure:1835: checking for vprintf" >&5
1835 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 cat > conftest.$ac_ext <<EOF
1839 #line 1840 "configure"
1840 #include "confdefs.h"
1841 /* System header to define __stub macros and hopefully few prototypes,
1842 which can conflict with char vprintf(); below. */
1843 #include <assert.h>
1844 /* Override any gcc2 internal prototype to avoid an error. */
1845 /* We use char because int might match the return type of a gcc2
1846 builtin and then its argument prototype would still apply. */
1847 char vprintf();
1849 int main() {
1851 /* The GNU C library defines this for functions which it implements
1852 to always fail with ENOSYS. Some functions are actually named
1853 something starting with __ and the normal name is an alias. */
1854 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1855 choke me
1856 #else
1857 vprintf();
1858 #endif
1860 ; return 0; }
1862 if { (eval echo configure:1863: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1863 rm -rf conftest*
1864 eval "ac_cv_func_vprintf=yes"
1865 else
1866 echo "configure: failed program was:" >&5
1867 cat conftest.$ac_ext >&5
1868 rm -rf conftest*
1869 eval "ac_cv_func_vprintf=no"
1871 rm -f conftest*
1874 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1875 echo "$ac_t""yes" 1>&6
1876 cat >> confdefs.h <<\EOF
1877 #define HAVE_VPRINTF 1
1880 else
1881 echo "$ac_t""no" 1>&6
1884 if test "$ac_cv_func_vprintf" != yes; then
1885 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1886 echo "configure:1887: checking for _doprnt" >&5
1887 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1888 echo $ac_n "(cached) $ac_c" 1>&6
1889 else
1890 cat > conftest.$ac_ext <<EOF
1891 #line 1892 "configure"
1892 #include "confdefs.h"
1893 /* System header to define __stub macros and hopefully few prototypes,
1894 which can conflict with char _doprnt(); below. */
1895 #include <assert.h>
1896 /* Override any gcc2 internal prototype to avoid an error. */
1897 /* We use char because int might match the return type of a gcc2
1898 builtin and then its argument prototype would still apply. */
1899 char _doprnt();
1901 int main() {
1903 /* The GNU C library defines this for functions which it implements
1904 to always fail with ENOSYS. Some functions are actually named
1905 something starting with __ and the normal name is an alias. */
1906 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1907 choke me
1908 #else
1909 _doprnt();
1910 #endif
1912 ; return 0; }
1914 if { (eval echo configure:1915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1915 rm -rf conftest*
1916 eval "ac_cv_func__doprnt=yes"
1917 else
1918 echo "configure: failed program was:" >&5
1919 cat conftest.$ac_ext >&5
1920 rm -rf conftest*
1921 eval "ac_cv_func__doprnt=no"
1923 rm -f conftest*
1926 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1927 echo "$ac_t""yes" 1>&6
1928 cat >> confdefs.h <<\EOF
1929 #define HAVE_DOPRNT 1
1932 else
1933 echo "$ac_t""no" 1>&6
1938 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1939 # for constant arguments. Useless!
1940 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1941 echo "configure:1942: checking for working alloca.h" >&5
1942 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1943 echo $ac_n "(cached) $ac_c" 1>&6
1944 else
1945 cat > conftest.$ac_ext <<EOF
1946 #line 1947 "configure"
1947 #include "confdefs.h"
1948 #include <alloca.h>
1949 int main() {
1950 char *p = alloca(2 * sizeof(int));
1951 ; return 0; }
1953 if { (eval echo configure:1954: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1954 rm -rf conftest*
1955 ac_cv_header_alloca_h=yes
1956 else
1957 echo "configure: failed program was:" >&5
1958 cat conftest.$ac_ext >&5
1959 rm -rf conftest*
1960 ac_cv_header_alloca_h=no
1962 rm -f conftest*
1965 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1966 if test $ac_cv_header_alloca_h = yes; then
1967 cat >> confdefs.h <<\EOF
1968 #define HAVE_ALLOCA_H 1
1973 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1974 echo "configure:1975: checking for alloca" >&5
1975 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1976 echo $ac_n "(cached) $ac_c" 1>&6
1977 else
1978 cat > conftest.$ac_ext <<EOF
1979 #line 1980 "configure"
1980 #include "confdefs.h"
1982 #ifdef __GNUC__
1983 # define alloca __builtin_alloca
1984 #else
1985 # ifdef _MSC_VER
1986 # include <malloc.h>
1987 # define alloca _alloca
1988 # else
1989 # if HAVE_ALLOCA_H
1990 # include <alloca.h>
1991 # else
1992 # ifdef _AIX
1993 #pragma alloca
1994 # else
1995 # ifndef alloca /* predefined by HP cc +Olibcalls */
1996 char *alloca ();
1997 # endif
1998 # endif
1999 # endif
2000 # endif
2001 #endif
2003 int main() {
2004 char *p = (char *) alloca(1);
2005 ; return 0; }
2007 if { (eval echo configure:2008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2008 rm -rf conftest*
2009 ac_cv_func_alloca_works=yes
2010 else
2011 echo "configure: failed program was:" >&5
2012 cat conftest.$ac_ext >&5
2013 rm -rf conftest*
2014 ac_cv_func_alloca_works=no
2016 rm -f conftest*
2019 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2020 if test $ac_cv_func_alloca_works = yes; then
2021 cat >> confdefs.h <<\EOF
2022 #define HAVE_ALLOCA 1
2027 if test $ac_cv_func_alloca_works = no; then
2028 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2029 # that cause trouble. Some versions do not even contain alloca or
2030 # contain a buggy version. If you still want to use their alloca,
2031 # use ar to extract alloca.o from them instead of compiling alloca.c.
2032 ALLOCA=alloca.${ac_objext}
2033 cat >> confdefs.h <<\EOF
2034 #define C_ALLOCA 1
2038 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2039 echo "configure:2040: checking whether alloca needs Cray hooks" >&5
2040 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2041 echo $ac_n "(cached) $ac_c" 1>&6
2042 else
2043 cat > conftest.$ac_ext <<EOF
2044 #line 2045 "configure"
2045 #include "confdefs.h"
2046 #if defined(CRAY) && ! defined(CRAY2)
2047 webecray
2048 #else
2049 wenotbecray
2050 #endif
2053 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2054 egrep "webecray" >/dev/null 2>&1; then
2055 rm -rf conftest*
2056 ac_cv_os_cray=yes
2057 else
2058 rm -rf conftest*
2059 ac_cv_os_cray=no
2061 rm -f conftest*
2065 echo "$ac_t""$ac_cv_os_cray" 1>&6
2066 if test $ac_cv_os_cray = yes; then
2067 for ac_func in _getb67 GETB67 getb67; do
2068 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2069 echo "configure:2070: checking for $ac_func" >&5
2070 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2071 echo $ac_n "(cached) $ac_c" 1>&6
2072 else
2073 cat > conftest.$ac_ext <<EOF
2074 #line 2075 "configure"
2075 #include "confdefs.h"
2076 /* System header to define __stub macros and hopefully few prototypes,
2077 which can conflict with char $ac_func(); below. */
2078 #include <assert.h>
2079 /* Override any gcc2 internal prototype to avoid an error. */
2080 /* We use char because int might match the return type of a gcc2
2081 builtin and then its argument prototype would still apply. */
2082 char $ac_func();
2084 int main() {
2086 /* The GNU C library defines this for functions which it implements
2087 to always fail with ENOSYS. Some functions are actually named
2088 something starting with __ and the normal name is an alias. */
2089 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2090 choke me
2091 #else
2092 $ac_func();
2093 #endif
2095 ; return 0; }
2097 if { (eval echo configure:2098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2098 rm -rf conftest*
2099 eval "ac_cv_func_$ac_func=yes"
2100 else
2101 echo "configure: failed program was:" >&5
2102 cat conftest.$ac_ext >&5
2103 rm -rf conftest*
2104 eval "ac_cv_func_$ac_func=no"
2106 rm -f conftest*
2109 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2110 echo "$ac_t""yes" 1>&6
2111 cat >> confdefs.h <<EOF
2112 #define CRAY_STACKSEG_END $ac_func
2115 break
2116 else
2117 echo "$ac_t""no" 1>&6
2120 done
2123 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2124 echo "configure:2125: checking stack direction for C alloca" >&5
2125 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2126 echo $ac_n "(cached) $ac_c" 1>&6
2127 else
2128 if test "$cross_compiling" = yes; then
2129 ac_cv_c_stack_direction=0
2130 else
2131 cat > conftest.$ac_ext <<EOF
2132 #line 2133 "configure"
2133 #include "confdefs.h"
2134 find_stack_direction ()
2136 static char *addr = 0;
2137 auto char dummy;
2138 if (addr == 0)
2140 addr = &dummy;
2141 return find_stack_direction ();
2143 else
2144 return (&dummy > addr) ? 1 : -1;
2146 main ()
2148 exit (find_stack_direction() < 0);
2151 if { (eval echo configure:2152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2152 then
2153 ac_cv_c_stack_direction=1
2154 else
2155 echo "configure: failed program was:" >&5
2156 cat conftest.$ac_ext >&5
2157 rm -fr conftest*
2158 ac_cv_c_stack_direction=-1
2160 rm -fr conftest*
2165 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2166 cat >> confdefs.h <<EOF
2167 #define STACK_DIRECTION $ac_cv_c_stack_direction
2172 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2174 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2175 echo "configure:2176: checking for $ac_func" >&5
2176 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2177 echo $ac_n "(cached) $ac_c" 1>&6
2178 else
2179 cat > conftest.$ac_ext <<EOF
2180 #line 2181 "configure"
2181 #include "confdefs.h"
2182 /* System header to define __stub macros and hopefully few prototypes,
2183 which can conflict with char $ac_func(); below. */
2184 #include <assert.h>
2185 /* Override any gcc2 internal prototype to avoid an error. */
2186 /* We use char because int might match the return type of a gcc2
2187 builtin and then its argument prototype would still apply. */
2188 char $ac_func();
2190 int main() {
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2196 choke me
2197 #else
2198 $ac_func();
2199 #endif
2201 ; return 0; }
2203 if { (eval echo configure:2204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2204 rm -rf conftest*
2205 eval "ac_cv_func_$ac_func=yes"
2206 else
2207 echo "configure: failed program was:" >&5
2208 cat conftest.$ac_ext >&5
2209 rm -rf conftest*
2210 eval "ac_cv_func_$ac_func=no"
2212 rm -f conftest*
2215 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2216 echo "$ac_t""yes" 1>&6
2217 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2218 cat >> confdefs.h <<EOF
2219 #define $ac_tr_func 1
2222 else
2223 echo "$ac_t""no" 1>&6
2225 done
2230 DLLIBS=""
2232 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2233 echo "configure:2234: checking for dlopen" >&5
2234 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2236 else
2237 cat > conftest.$ac_ext <<EOF
2238 #line 2239 "configure"
2239 #include "confdefs.h"
2240 /* System header to define __stub macros and hopefully few prototypes,
2241 which can conflict with char dlopen(); below. */
2242 #include <assert.h>
2243 /* Override any gcc2 internal prototype to avoid an error. */
2244 /* We use char because int might match the return type of a gcc2
2245 builtin and then its argument prototype would still apply. */
2246 char dlopen();
2248 int main() {
2250 /* The GNU C library defines this for functions which it implements
2251 to always fail with ENOSYS. Some functions are actually named
2252 something starting with __ and the normal name is an alias. */
2253 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2254 choke me
2255 #else
2256 dlopen();
2257 #endif
2259 ; return 0; }
2261 if { (eval echo configure:2262: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2262 rm -rf conftest*
2263 eval "ac_cv_func_dlopen=yes"
2264 else
2265 echo "configure: failed program was:" >&5
2266 cat conftest.$ac_ext >&5
2267 rm -rf conftest*
2268 eval "ac_cv_func_dlopen=no"
2270 rm -f conftest*
2273 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2274 echo "$ac_t""yes" 1>&6
2275 HAVEDL="yes"
2276 else
2277 echo "$ac_t""no" 1>&6
2278 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2279 echo "configure:2280: checking for dlopen in -ldl" >&5
2280 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2281 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2283 else
2284 ac_save_LIBS="$LIBS"
2285 LIBS="-ldl $LIBS"
2286 cat > conftest.$ac_ext <<EOF
2287 #line 2288 "configure"
2288 #include "confdefs.h"
2289 /* Override any gcc2 internal prototype to avoid an error. */
2290 /* We use char because int might match the return type of a gcc2
2291 builtin and then its argument prototype would still apply. */
2292 char dlopen();
2294 int main() {
2295 dlopen()
2296 ; return 0; }
2298 if { (eval echo configure:2299: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2299 rm -rf conftest*
2300 eval "ac_cv_lib_$ac_lib_var=yes"
2301 else
2302 echo "configure: failed program was:" >&5
2303 cat conftest.$ac_ext >&5
2304 rm -rf conftest*
2305 eval "ac_cv_lib_$ac_lib_var=no"
2307 rm -f conftest*
2308 LIBS="$ac_save_LIBS"
2311 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2312 echo "$ac_t""yes" 1>&6
2313 DLLIBS="-ldl" HAVEDL="yes"
2314 else
2315 echo "$ac_t""no" 1>&6
2316 DLLIBS=""
2322 if test "x$HAVEDL" = xyes; then
2323 for ac_hdr in dlfcn.h
2325 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2326 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2327 echo "configure:2328: checking for $ac_hdr" >&5
2328 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2329 echo $ac_n "(cached) $ac_c" 1>&6
2330 else
2331 cat > conftest.$ac_ext <<EOF
2332 #line 2333 "configure"
2333 #include "confdefs.h"
2334 #include <$ac_hdr>
2336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2337 { (eval echo configure:2338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2338 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2339 if test -z "$ac_err"; then
2340 rm -rf conftest*
2341 eval "ac_cv_header_$ac_safe=yes"
2342 else
2343 echo "$ac_err" >&5
2344 echo "configure: failed program was:" >&5
2345 cat conftest.$ac_ext >&5
2346 rm -rf conftest*
2347 eval "ac_cv_header_$ac_safe=no"
2349 rm -f conftest*
2351 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2352 echo "$ac_t""yes" 1>&6
2353 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2354 cat >> confdefs.h <<EOF
2355 #define $ac_tr_hdr 1
2358 else
2359 echo "$ac_t""no" 1>&6
2361 done
2367 if test "x$CPP_PATH" = x; then
2368 # Extract the first word of "cpp", so it can be a program name with args.
2369 set dummy cpp; ac_word=$2
2370 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2371 echo "configure:2372: checking for $ac_word" >&5
2372 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2373 echo $ac_n "(cached) $ac_c" 1>&6
2374 else
2375 case "$CPP_PATH" in
2377 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2379 ?:/*)
2380 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2383 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2384 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2385 for ac_dir in $ac_dummy; do
2386 test -z "$ac_dir" && ac_dir=.
2387 if test -f $ac_dir/$ac_word; then
2388 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2389 break
2391 done
2392 IFS="$ac_save_ifs"
2393 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2395 esac
2397 CPP_PATH="$ac_cv_path_CPP_PATH"
2398 if test -n "$CPP_PATH"; then
2399 echo "$ac_t""$CPP_PATH" 1>&6
2400 else
2401 echo "$ac_t""no" 1>&6
2406 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2407 if test "$GCC" = "yes"; then
2408 CPP_PATH="gcc -E -x c"
2409 else
2410 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2411 CPP_PATH="$CPP_PATH -B"
2412 else
2413 echo "cpp, the C preprocessor was not found in your system."
2414 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2415 exit
2419 cat >> confdefs.h <<EOF
2420 #define CPP_PATH "$CPP_PATH"
2426 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2427 echo "configure:2428: checking for sys/wait.h that is POSIX.1 compatible" >&5
2428 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2429 echo $ac_n "(cached) $ac_c" 1>&6
2430 else
2431 cat > conftest.$ac_ext <<EOF
2432 #line 2433 "configure"
2433 #include "confdefs.h"
2434 #include <sys/types.h>
2435 #include <sys/wait.h>
2436 #ifndef WEXITSTATUS
2437 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2438 #endif
2439 #ifndef WIFEXITED
2440 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2441 #endif
2442 int main() {
2443 int s;
2444 wait (&s);
2445 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2446 ; return 0; }
2448 if { (eval echo configure:2449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2449 rm -rf conftest*
2450 ac_cv_header_sys_wait_h=yes
2451 else
2452 echo "configure: failed program was:" >&5
2453 cat conftest.$ac_ext >&5
2454 rm -rf conftest*
2455 ac_cv_header_sys_wait_h=no
2457 rm -f conftest*
2460 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2461 if test $ac_cv_header_sys_wait_h = yes; then
2462 cat >> confdefs.h <<\EOF
2463 #define HAVE_SYS_WAIT_H 1
2468 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2469 echo "configure:2470: checking whether time.h and sys/time.h may both be included" >&5
2470 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2471 echo $ac_n "(cached) $ac_c" 1>&6
2472 else
2473 cat > conftest.$ac_ext <<EOF
2474 #line 2475 "configure"
2475 #include "confdefs.h"
2476 #include <sys/types.h>
2477 #include <sys/time.h>
2478 #include <time.h>
2479 int main() {
2480 struct tm *tp;
2481 ; return 0; }
2483 if { (eval echo configure:2484: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2484 rm -rf conftest*
2485 ac_cv_header_time=yes
2486 else
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 ac_cv_header_time=no
2492 rm -f conftest*
2495 echo "$ac_t""$ac_cv_header_time" 1>&6
2496 if test $ac_cv_header_time = yes; then
2497 cat >> confdefs.h <<\EOF
2498 #define TIME_WITH_SYS_TIME 1
2503 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2504 libintl.h sys/select.h poll.h
2506 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2507 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2508 echo "configure:2509: checking for $ac_hdr" >&5
2509 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2510 echo $ac_n "(cached) $ac_c" 1>&6
2511 else
2512 cat > conftest.$ac_ext <<EOF
2513 #line 2514 "configure"
2514 #include "confdefs.h"
2515 #include <$ac_hdr>
2517 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2518 { (eval echo configure:2519: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2519 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2520 if test -z "$ac_err"; then
2521 rm -rf conftest*
2522 eval "ac_cv_header_$ac_safe=yes"
2523 else
2524 echo "$ac_err" >&5
2525 echo "configure: failed program was:" >&5
2526 cat conftest.$ac_ext >&5
2527 rm -rf conftest*
2528 eval "ac_cv_header_$ac_safe=no"
2530 rm -f conftest*
2532 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2533 echo "$ac_t""yes" 1>&6
2534 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2535 cat >> confdefs.h <<EOF
2536 #define $ac_tr_hdr 1
2539 else
2540 echo "$ac_t""no" 1>&6
2542 done
2547 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2548 echo "configure:2549: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2549 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2550 echo $ac_n "(cached) $ac_c" 1>&6
2551 else
2552 cat > conftest.$ac_ext <<EOF
2553 #line 2554 "configure"
2554 #include "confdefs.h"
2555 #include <sys/types.h>
2556 #include <signal.h>
2557 /* NetBSD declares sys_siglist in unistd.h. */
2558 #ifdef HAVE_UNISTD_H
2559 #include <unistd.h>
2560 #endif
2561 int main() {
2562 char *msg = *(sys_siglist + 1);
2563 ; return 0; }
2565 if { (eval echo configure:2566: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2566 rm -rf conftest*
2567 ac_cv_decl_sys_siglist=yes
2568 else
2569 echo "configure: failed program was:" >&5
2570 cat conftest.$ac_ext >&5
2571 rm -rf conftest*
2572 ac_cv_decl_sys_siglist=no
2574 rm -f conftest*
2577 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2578 if test $ac_cv_decl_sys_siglist = yes; then
2579 cat >> confdefs.h <<\EOF
2580 #define SYS_SIGLIST_DECLARED 1
2585 echo $ac_n "checking for working const""... $ac_c" 1>&6
2586 echo "configure:2587: checking for working const" >&5
2587 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2594 int main() {
2596 /* Ultrix mips cc rejects this. */
2597 typedef int charset[2]; const charset x;
2598 /* SunOS 4.1.1 cc rejects this. */
2599 char const *const *ccp;
2600 char **p;
2601 /* NEC SVR4.0.2 mips cc rejects this. */
2602 struct point {int x, y;};
2603 static struct point const zero = {0,0};
2604 /* AIX XL C 1.02.0.0 rejects this.
2605 It does not let you subtract one const X* pointer from another in an arm
2606 of an if-expression whose if-part is not a constant expression */
2607 const char *g = "string";
2608 ccp = &g + (g ? g-g : 0);
2609 /* HPUX 7.0 cc rejects these. */
2610 ++ccp;
2611 p = (char**) ccp;
2612 ccp = (char const *const *) p;
2613 { /* SCO 3.2v4 cc rejects this. */
2614 char *t;
2615 char const *s = 0 ? (char *) 0 : (char const *) 0;
2617 *t++ = 0;
2619 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2620 int x[] = {25, 17};
2621 const int *foo = &x[0];
2622 ++foo;
2624 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2625 typedef const int *iptr;
2626 iptr p = 0;
2627 ++p;
2629 { /* AIX XL C 1.02.0.0 rejects this saying
2630 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2631 struct s { int j; const int *ap[3]; };
2632 struct s *b; b->j = 5;
2634 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2635 const int foo = 10;
2638 ; return 0; }
2640 if { (eval echo configure:2641: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2641 rm -rf conftest*
2642 ac_cv_c_const=yes
2643 else
2644 echo "configure: failed program was:" >&5
2645 cat conftest.$ac_ext >&5
2646 rm -rf conftest*
2647 ac_cv_c_const=no
2649 rm -f conftest*
2652 echo "$ac_t""$ac_cv_c_const" 1>&6
2653 if test $ac_cv_c_const = no; then
2654 cat >> confdefs.h <<\EOF
2655 #define const
2660 #AC_TYPE_SIZE_T
2661 #AC_TYPE_PID_T
2662 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2663 echo "configure:2664: checking return type of signal handlers" >&5
2664 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2665 echo $ac_n "(cached) $ac_c" 1>&6
2666 else
2667 cat > conftest.$ac_ext <<EOF
2668 #line 2669 "configure"
2669 #include "confdefs.h"
2670 #include <sys/types.h>
2671 #include <signal.h>
2672 #ifdef signal
2673 #undef signal
2674 #endif
2675 #ifdef __cplusplus
2676 extern "C" void (*signal (int, void (*)(int)))(int);
2677 #else
2678 void (*signal ()) ();
2679 #endif
2681 int main() {
2682 int i;
2683 ; return 0; }
2685 if { (eval echo configure:2686: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2686 rm -rf conftest*
2687 ac_cv_type_signal=void
2688 else
2689 echo "configure: failed program was:" >&5
2690 cat conftest.$ac_ext >&5
2691 rm -rf conftest*
2692 ac_cv_type_signal=int
2694 rm -f conftest*
2697 echo "$ac_t""$ac_cv_type_signal" 1>&6
2698 cat >> confdefs.h <<EOF
2699 #define RETSIGTYPE $ac_cv_type_signal
2710 INTLIBS=""
2712 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2713 echo "configure:2714: checking for gettext" >&5
2714 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2715 echo $ac_n "(cached) $ac_c" 1>&6
2716 else
2717 cat > conftest.$ac_ext <<EOF
2718 #line 2719 "configure"
2719 #include "confdefs.h"
2720 /* System header to define __stub macros and hopefully few prototypes,
2721 which can conflict with char gettext(); below. */
2722 #include <assert.h>
2723 /* Override any gcc2 internal prototype to avoid an error. */
2724 /* We use char because int might match the return type of a gcc2
2725 builtin and then its argument prototype would still apply. */
2726 char gettext();
2728 int main() {
2730 /* The GNU C library defines this for functions which it implements
2731 to always fail with ENOSYS. Some functions are actually named
2732 something starting with __ and the normal name is an alias. */
2733 #if defined (__stub_gettext) || defined (__stub___gettext)
2734 choke me
2735 #else
2736 gettext();
2737 #endif
2739 ; return 0; }
2741 if { (eval echo configure:2742: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2742 rm -rf conftest*
2743 eval "ac_cv_func_gettext=yes"
2744 else
2745 echo "configure: failed program was:" >&5
2746 cat conftest.$ac_ext >&5
2747 rm -rf conftest*
2748 eval "ac_cv_func_gettext=no"
2750 rm -f conftest*
2753 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2754 echo "$ac_t""yes" 1>&6
2755 HAVEGETTEXT="yes"
2756 else
2757 echo "$ac_t""no" 1>&6
2758 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2759 echo "configure:2760: checking for gettext in -lintl" >&5
2760 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2761 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2762 echo $ac_n "(cached) $ac_c" 1>&6
2763 else
2764 ac_save_LIBS="$LIBS"
2765 LIBS="-lintl $LIBS"
2766 cat > conftest.$ac_ext <<EOF
2767 #line 2768 "configure"
2768 #include "confdefs.h"
2769 /* Override any gcc2 internal prototype to avoid an error. */
2770 /* We use char because int might match the return type of a gcc2
2771 builtin and then its argument prototype would still apply. */
2772 char gettext();
2774 int main() {
2775 gettext()
2776 ; return 0; }
2778 if { (eval echo configure:2779: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2779 rm -rf conftest*
2780 eval "ac_cv_lib_$ac_lib_var=yes"
2781 else
2782 echo "configure: failed program was:" >&5
2783 cat conftest.$ac_ext >&5
2784 rm -rf conftest*
2785 eval "ac_cv_lib_$ac_lib_var=no"
2787 rm -f conftest*
2788 LIBS="$ac_save_LIBS"
2791 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2792 echo "$ac_t""yes" 1>&6
2793 INTLIBS="-lintl" HAVEGETTEXT="yes"
2794 else
2795 echo "$ac_t""no" 1>&6
2796 INTLIBS=""
2802 # Extract the first word of "xgettext", so it can be a program name with args.
2803 set dummy xgettext; ac_word=$2
2804 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2805 echo "configure:2806: checking for $ac_word" >&5
2806 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 if test -n "$XGETTEXT"; then
2810 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2811 else
2812 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2813 ac_dummy="$PATH"
2814 for ac_dir in $ac_dummy; do
2815 test -z "$ac_dir" && ac_dir=.
2816 if test -f $ac_dir/$ac_word; then
2817 ac_cv_prog_XGETTEXT="xgettext"
2818 break
2820 done
2821 IFS="$ac_save_ifs"
2824 XGETTEXT="$ac_cv_prog_XGETTEXT"
2825 if test -n "$XGETTEXT"; then
2826 echo "$ac_t""$XGETTEXT" 1>&6
2827 else
2828 echo "$ac_t""no" 1>&6
2832 if test "$XGETTEXT" != ""; then
2833 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2834 echo "xgettext isn't GNU version"
2835 XGETTEXT=""
2839 if test "$LINGUAS" != ""; then
2840 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2841 cat >> confdefs.h <<\EOF
2842 #define I18N 1
2845 PO=""
2846 # if test "$LINGUAS" = ""; then
2847 # ling=` (cd src/po; /bin/ls *.po) `
2848 # for l in $ling; do
2849 # lcode=`basename $l .po`
2850 # LINGUAS="$LINGUAS $lcode"
2851 # done
2852 # fi
2853 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2854 else
2855 LINGUAS=""
2856 PO=""
2857 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2859 else
2860 INTLIBS=""
2861 MOFILES=""
2862 WPMOFILES=""
2863 PO=""
2868 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
2869 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
2871 for lang in $LINGUAS; do
2872 ok=0
2873 for l in $supported_locales; do
2874 if test "$l" = "$lang"; then
2875 ok=1
2876 break
2878 done
2879 if test "$ok" = 1; then
2880 MOFILES="$MOFILES $lang.mo"
2881 else
2882 echo "Locale $lang is not supported."
2884 ok=0
2885 for l in $supported_wprefs_locales; do
2886 if test "$l" = "$lang"; then
2887 ok=1
2888 break
2890 done
2891 if test "$ok" = 1; then
2892 WPMOFILES="$WPMOFILES $lang.mo"
2894 done
2898 case $host_os in
2899 freebsd*)
2900 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2901 echo "configure:2902: checking for setlocale in -lxpg4" >&5
2902 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2904 echo $ac_n "(cached) $ac_c" 1>&6
2905 else
2906 ac_save_LIBS="$LIBS"
2907 LIBS="-lxpg4 $LIBS"
2908 cat > conftest.$ac_ext <<EOF
2909 #line 2910 "configure"
2910 #include "confdefs.h"
2911 /* Override any gcc2 internal prototype to avoid an error. */
2912 /* We use char because int might match the return type of a gcc2
2913 builtin and then its argument prototype would still apply. */
2914 char setlocale();
2916 int main() {
2917 setlocale()
2918 ; return 0; }
2920 if { (eval echo configure:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2921 rm -rf conftest*
2922 eval "ac_cv_lib_$ac_lib_var=yes"
2923 else
2924 echo "configure: failed program was:" >&5
2925 cat conftest.$ac_ext >&5
2926 rm -rf conftest*
2927 eval "ac_cv_lib_$ac_lib_var=no"
2929 rm -f conftest*
2930 LIBS="$ac_save_LIBS"
2933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2935 LIBS="$LIBS -lxpg4"
2936 else
2937 echo "$ac_t""no" 1>&6
2942 esac
2946 # Check whether --with-nlsdir or --without-nlsdir was given.
2947 if test "${with_nlsdir+set}" = set; then
2948 withval="$with_nlsdir"
2954 if test "x$NLSDIR" = "x"; then
2955 if test "x$with_nlsdir" != "x"; then
2956 NLSDIR=$with_nlsdir
2957 else
2958 NLSDIR='$(prefix)/lib/locale'
2974 # Check whether --enable-gnome or --disable-gnome was given.
2975 if test "${enable_gnome+set}" = set; then
2976 enableval="$enable_gnome"
2977 if test x$enableval = xyes; then
2978 cat >> confdefs.h <<\EOF
2979 #define GNOME_STUFF 1
2982 gnome_on=yes
2988 # Check whether --enable-kde or --disable-kde was given.
2989 if test "${enable_kde+set}" = set; then
2990 enableval="$enable_kde"
2991 if test x$enableval = xyes; then
2992 cat >> confdefs.h <<\EOF
2993 #define KWM_HINTS 1
2996 kde_on=yes
3002 # Check whether --enable-openlook or --disable-openlook was given.
3003 if test "${enable_openlook+set}" = set; then
3004 enableval="$enable_openlook"
3005 if test x$enableval = xyes; then
3006 cat >> confdefs.h <<\EOF
3007 #define OLWM_HINTS 1
3010 openlook_on=yes
3016 # Check whether --enable-lite or --disable-lite was given.
3017 if test "${enable_lite+set}" = set; then
3018 enableval="$enable_lite"
3019 if test x$enableval = xyes; then
3020 LITE=yes
3021 cat >> confdefs.h <<\EOF
3022 #define LITE 1
3033 # If we find X, set shell vars x_includes and x_libraries to the
3034 # paths, otherwise set no_x=yes.
3035 # Uses ac_ vars as temps to allow command line to override cache and checks.
3036 # --without-x overrides everything else, but does not touch the cache.
3037 echo $ac_n "checking for X""... $ac_c" 1>&6
3038 echo "configure:3039: checking for X" >&5
3040 # Check whether --with-x or --without-x was given.
3041 if test "${with_x+set}" = set; then
3042 withval="$with_x"
3046 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3047 if test "x$with_x" = xno; then
3048 # The user explicitly disabled X.
3049 have_x=disabled
3050 else
3051 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3052 # Both variables are already set.
3053 have_x=yes
3054 else
3055 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3056 echo $ac_n "(cached) $ac_c" 1>&6
3057 else
3058 # One or both of the vars are not set, and there is no cached value.
3059 ac_x_includes=NO ac_x_libraries=NO
3060 rm -fr conftestdir
3061 if mkdir conftestdir; then
3062 cd conftestdir
3063 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3064 cat > Imakefile <<'EOF'
3065 acfindx:
3066 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3068 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3069 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3070 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3071 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3072 for ac_extension in a so sl; do
3073 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3074 test -f $ac_im_libdir/libX11.$ac_extension; then
3075 ac_im_usrlibdir=$ac_im_libdir; break
3077 done
3078 # Screen out bogus values from the imake configuration. They are
3079 # bogus both because they are the default anyway, and because
3080 # using them would break gcc on systems where it needs fixed includes.
3081 case "$ac_im_incroot" in
3082 /usr/include) ;;
3083 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3084 esac
3085 case "$ac_im_usrlibdir" in
3086 /usr/lib | /lib) ;;
3087 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3088 esac
3090 cd ..
3091 rm -fr conftestdir
3094 if test "$ac_x_includes" = NO; then
3095 # Guess where to find include files, by looking for this one X11 .h file.
3096 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3098 # First, try using that file with no special directory specified.
3099 cat > conftest.$ac_ext <<EOF
3100 #line 3101 "configure"
3101 #include "confdefs.h"
3102 #include <$x_direct_test_include>
3104 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3105 { (eval echo configure:3106: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3106 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3107 if test -z "$ac_err"; then
3108 rm -rf conftest*
3109 # We can compile using X headers with no special include directory.
3110 ac_x_includes=
3111 else
3112 echo "$ac_err" >&5
3113 echo "configure: failed program was:" >&5
3114 cat conftest.$ac_ext >&5
3115 rm -rf conftest*
3116 # Look for the header file in a standard set of common directories.
3117 # Check X11 before X11Rn because it is often a symlink to the current release.
3118 for ac_dir in \
3119 /usr/X11/include \
3120 /usr/X11R6/include \
3121 /usr/X11R5/include \
3122 /usr/X11R4/include \
3124 /usr/include/X11 \
3125 /usr/include/X11R6 \
3126 /usr/include/X11R5 \
3127 /usr/include/X11R4 \
3129 /usr/local/X11/include \
3130 /usr/local/X11R6/include \
3131 /usr/local/X11R5/include \
3132 /usr/local/X11R4/include \
3134 /usr/local/include/X11 \
3135 /usr/local/include/X11R6 \
3136 /usr/local/include/X11R5 \
3137 /usr/local/include/X11R4 \
3139 /usr/X386/include \
3140 /usr/x386/include \
3141 /usr/XFree86/include/X11 \
3143 /usr/include \
3144 /usr/local/include \
3145 /usr/unsupported/include \
3146 /usr/athena/include \
3147 /usr/local/x11r5/include \
3148 /usr/lpp/Xamples/include \
3150 /usr/openwin/include \
3151 /usr/openwin/share/include \
3154 if test -r "$ac_dir/$x_direct_test_include"; then
3155 ac_x_includes=$ac_dir
3156 break
3158 done
3160 rm -f conftest*
3161 fi # $ac_x_includes = NO
3163 if test "$ac_x_libraries" = NO; then
3164 # Check for the libraries.
3166 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3167 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3169 # See if we find them without any special options.
3170 # Don't add to $LIBS permanently.
3171 ac_save_LIBS="$LIBS"
3172 LIBS="-l$x_direct_test_library $LIBS"
3173 cat > conftest.$ac_ext <<EOF
3174 #line 3175 "configure"
3175 #include "confdefs.h"
3177 int main() {
3178 ${x_direct_test_function}()
3179 ; return 0; }
3181 if { (eval echo configure:3182: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3182 rm -rf conftest*
3183 LIBS="$ac_save_LIBS"
3184 # We can link X programs with no special library path.
3185 ac_x_libraries=
3186 else
3187 echo "configure: failed program was:" >&5
3188 cat conftest.$ac_ext >&5
3189 rm -rf conftest*
3190 LIBS="$ac_save_LIBS"
3191 # First see if replacing the include by lib works.
3192 # Check X11 before X11Rn because it is often a symlink to the current release.
3193 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3194 /usr/X11/lib \
3195 /usr/X11R6/lib \
3196 /usr/X11R5/lib \
3197 /usr/X11R4/lib \
3199 /usr/lib/X11 \
3200 /usr/lib/X11R6 \
3201 /usr/lib/X11R5 \
3202 /usr/lib/X11R4 \
3204 /usr/local/X11/lib \
3205 /usr/local/X11R6/lib \
3206 /usr/local/X11R5/lib \
3207 /usr/local/X11R4/lib \
3209 /usr/local/lib/X11 \
3210 /usr/local/lib/X11R6 \
3211 /usr/local/lib/X11R5 \
3212 /usr/local/lib/X11R4 \
3214 /usr/X386/lib \
3215 /usr/x386/lib \
3216 /usr/XFree86/lib/X11 \
3218 /usr/lib \
3219 /usr/local/lib \
3220 /usr/unsupported/lib \
3221 /usr/athena/lib \
3222 /usr/local/x11r5/lib \
3223 /usr/lpp/Xamples/lib \
3224 /lib/usr/lib/X11 \
3226 /usr/openwin/lib \
3227 /usr/openwin/share/lib \
3230 for ac_extension in a so sl; do
3231 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3232 ac_x_libraries=$ac_dir
3233 break 2
3235 done
3236 done
3238 rm -f conftest*
3239 fi # $ac_x_libraries = NO
3241 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3242 # Didn't find X anywhere. Cache the known absence of X.
3243 ac_cv_have_x="have_x=no"
3244 else
3245 # Record where we found X for the cache.
3246 ac_cv_have_x="have_x=yes \
3247 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3251 eval "$ac_cv_have_x"
3252 fi # $with_x != no
3254 if test "$have_x" != yes; then
3255 echo "$ac_t""$have_x" 1>&6
3256 no_x=yes
3257 else
3258 # If each of the values was on the command line, it overrides each guess.
3259 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3260 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3261 # Update the cache value to reflect the command line values.
3262 ac_cv_have_x="have_x=yes \
3263 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3264 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3267 if test "$no_x" = yes; then
3268 # Not all programs may use this symbol, but it does not hurt to define it.
3269 cat >> confdefs.h <<\EOF
3270 #define X_DISPLAY_MISSING 1
3273 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3274 else
3275 if test -n "$x_includes"; then
3276 X_CFLAGS="$X_CFLAGS -I$x_includes"
3279 # It would also be nice to do this for all -L options, not just this one.
3280 if test -n "$x_libraries"; then
3281 X_LIBS="$X_LIBS -L$x_libraries"
3282 # For Solaris; some versions of Sun CC require a space after -R and
3283 # others require no space. Words are not sufficient . . . .
3284 case "`(uname -sr) 2>/dev/null`" in
3285 "SunOS 5"*)
3286 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3287 echo "configure:3288: checking whether -R must be followed by a space" >&5
3288 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3289 cat > conftest.$ac_ext <<EOF
3290 #line 3291 "configure"
3291 #include "confdefs.h"
3293 int main() {
3295 ; return 0; }
3297 if { (eval echo configure:3298: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3298 rm -rf conftest*
3299 ac_R_nospace=yes
3300 else
3301 echo "configure: failed program was:" >&5
3302 cat conftest.$ac_ext >&5
3303 rm -rf conftest*
3304 ac_R_nospace=no
3306 rm -f conftest*
3307 if test $ac_R_nospace = yes; then
3308 echo "$ac_t""no" 1>&6
3309 X_LIBS="$X_LIBS -R$x_libraries"
3310 else
3311 LIBS="$ac_xsave_LIBS -R $x_libraries"
3312 cat > conftest.$ac_ext <<EOF
3313 #line 3314 "configure"
3314 #include "confdefs.h"
3316 int main() {
3318 ; return 0; }
3320 if { (eval echo configure:3321: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3321 rm -rf conftest*
3322 ac_R_space=yes
3323 else
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 ac_R_space=no
3329 rm -f conftest*
3330 if test $ac_R_space = yes; then
3331 echo "$ac_t""yes" 1>&6
3332 X_LIBS="$X_LIBS -R $x_libraries"
3333 else
3334 echo "$ac_t""neither works" 1>&6
3337 LIBS="$ac_xsave_LIBS"
3338 esac
3341 # Check for system-dependent libraries X programs must link with.
3342 # Do this before checking for the system-independent R6 libraries
3343 # (-lICE), since we may need -lsocket or whatever for X linking.
3345 if test "$ISC" = yes; then
3346 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3347 else
3348 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3349 # libraries were built with DECnet support. And karl@cs.umb.edu says
3350 # the Alpha needs dnet_stub (dnet does not exist).
3351 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3352 echo "configure:3353: checking for dnet_ntoa in -ldnet" >&5
3353 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3354 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3355 echo $ac_n "(cached) $ac_c" 1>&6
3356 else
3357 ac_save_LIBS="$LIBS"
3358 LIBS="-ldnet $LIBS"
3359 cat > conftest.$ac_ext <<EOF
3360 #line 3361 "configure"
3361 #include "confdefs.h"
3362 /* Override any gcc2 internal prototype to avoid an error. */
3363 /* We use char because int might match the return type of a gcc2
3364 builtin and then its argument prototype would still apply. */
3365 char dnet_ntoa();
3367 int main() {
3368 dnet_ntoa()
3369 ; return 0; }
3371 if { (eval echo configure:3372: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3372 rm -rf conftest*
3373 eval "ac_cv_lib_$ac_lib_var=yes"
3374 else
3375 echo "configure: failed program was:" >&5
3376 cat conftest.$ac_ext >&5
3377 rm -rf conftest*
3378 eval "ac_cv_lib_$ac_lib_var=no"
3380 rm -f conftest*
3381 LIBS="$ac_save_LIBS"
3384 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3385 echo "$ac_t""yes" 1>&6
3386 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3387 else
3388 echo "$ac_t""no" 1>&6
3391 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3392 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3393 echo "configure:3394: checking for dnet_ntoa in -ldnet_stub" >&5
3394 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3395 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3396 echo $ac_n "(cached) $ac_c" 1>&6
3397 else
3398 ac_save_LIBS="$LIBS"
3399 LIBS="-ldnet_stub $LIBS"
3400 cat > conftest.$ac_ext <<EOF
3401 #line 3402 "configure"
3402 #include "confdefs.h"
3403 /* Override any gcc2 internal prototype to avoid an error. */
3404 /* We use char because int might match the return type of a gcc2
3405 builtin and then its argument prototype would still apply. */
3406 char dnet_ntoa();
3408 int main() {
3409 dnet_ntoa()
3410 ; return 0; }
3412 if { (eval echo configure:3413: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3413 rm -rf conftest*
3414 eval "ac_cv_lib_$ac_lib_var=yes"
3415 else
3416 echo "configure: failed program was:" >&5
3417 cat conftest.$ac_ext >&5
3418 rm -rf conftest*
3419 eval "ac_cv_lib_$ac_lib_var=no"
3421 rm -f conftest*
3422 LIBS="$ac_save_LIBS"
3425 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3426 echo "$ac_t""yes" 1>&6
3427 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3428 else
3429 echo "$ac_t""no" 1>&6
3434 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3435 # to get the SysV transport functions.
3436 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3437 # needs -lnsl.
3438 # The nsl library prevents programs from opening the X display
3439 # on Irix 5.2, according to dickey@clark.net.
3440 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3441 echo "configure:3442: checking for gethostbyname" >&5
3442 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3443 echo $ac_n "(cached) $ac_c" 1>&6
3444 else
3445 cat > conftest.$ac_ext <<EOF
3446 #line 3447 "configure"
3447 #include "confdefs.h"
3448 /* System header to define __stub macros and hopefully few prototypes,
3449 which can conflict with char gethostbyname(); below. */
3450 #include <assert.h>
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char gethostbyname();
3456 int main() {
3458 /* The GNU C library defines this for functions which it implements
3459 to always fail with ENOSYS. Some functions are actually named
3460 something starting with __ and the normal name is an alias. */
3461 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3462 choke me
3463 #else
3464 gethostbyname();
3465 #endif
3467 ; return 0; }
3469 if { (eval echo configure:3470: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3470 rm -rf conftest*
3471 eval "ac_cv_func_gethostbyname=yes"
3472 else
3473 echo "configure: failed program was:" >&5
3474 cat conftest.$ac_ext >&5
3475 rm -rf conftest*
3476 eval "ac_cv_func_gethostbyname=no"
3478 rm -f conftest*
3481 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3482 echo "$ac_t""yes" 1>&6
3484 else
3485 echo "$ac_t""no" 1>&6
3488 if test $ac_cv_func_gethostbyname = no; then
3489 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3490 echo "configure:3491: checking for gethostbyname in -lnsl" >&5
3491 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3492 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3493 echo $ac_n "(cached) $ac_c" 1>&6
3494 else
3495 ac_save_LIBS="$LIBS"
3496 LIBS="-lnsl $LIBS"
3497 cat > conftest.$ac_ext <<EOF
3498 #line 3499 "configure"
3499 #include "confdefs.h"
3500 /* Override any gcc2 internal prototype to avoid an error. */
3501 /* We use char because int might match the return type of a gcc2
3502 builtin and then its argument prototype would still apply. */
3503 char gethostbyname();
3505 int main() {
3506 gethostbyname()
3507 ; return 0; }
3509 if { (eval echo configure:3510: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3510 rm -rf conftest*
3511 eval "ac_cv_lib_$ac_lib_var=yes"
3512 else
3513 echo "configure: failed program was:" >&5
3514 cat conftest.$ac_ext >&5
3515 rm -rf conftest*
3516 eval "ac_cv_lib_$ac_lib_var=no"
3518 rm -f conftest*
3519 LIBS="$ac_save_LIBS"
3522 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3523 echo "$ac_t""yes" 1>&6
3524 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3525 else
3526 echo "$ac_t""no" 1>&6
3531 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3532 # socket/setsockopt and other routines are undefined under SCO ODT
3533 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3534 # on later versions), says simon@lia.di.epfl.ch: it contains
3535 # gethostby* variants that don't use the nameserver (or something).
3536 # -lsocket must be given before -lnsl if both are needed.
3537 # We assume that if connect needs -lnsl, so does gethostbyname.
3538 echo $ac_n "checking for connect""... $ac_c" 1>&6
3539 echo "configure:3540: checking for connect" >&5
3540 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3541 echo $ac_n "(cached) $ac_c" 1>&6
3542 else
3543 cat > conftest.$ac_ext <<EOF
3544 #line 3545 "configure"
3545 #include "confdefs.h"
3546 /* System header to define __stub macros and hopefully few prototypes,
3547 which can conflict with char connect(); below. */
3548 #include <assert.h>
3549 /* Override any gcc2 internal prototype to avoid an error. */
3550 /* We use char because int might match the return type of a gcc2
3551 builtin and then its argument prototype would still apply. */
3552 char connect();
3554 int main() {
3556 /* The GNU C library defines this for functions which it implements
3557 to always fail with ENOSYS. Some functions are actually named
3558 something starting with __ and the normal name is an alias. */
3559 #if defined (__stub_connect) || defined (__stub___connect)
3560 choke me
3561 #else
3562 connect();
3563 #endif
3565 ; return 0; }
3567 if { (eval echo configure:3568: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3568 rm -rf conftest*
3569 eval "ac_cv_func_connect=yes"
3570 else
3571 echo "configure: failed program was:" >&5
3572 cat conftest.$ac_ext >&5
3573 rm -rf conftest*
3574 eval "ac_cv_func_connect=no"
3576 rm -f conftest*
3579 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3580 echo "$ac_t""yes" 1>&6
3582 else
3583 echo "$ac_t""no" 1>&6
3586 if test $ac_cv_func_connect = no; then
3587 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3588 echo "configure:3589: checking for connect in -lsocket" >&5
3589 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 ac_save_LIBS="$LIBS"
3594 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char connect();
3603 int main() {
3604 connect()
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3610 else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=no"
3616 rm -f conftest*
3617 LIBS="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3623 else
3624 echo "$ac_t""no" 1>&6
3629 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3630 echo $ac_n "checking for remove""... $ac_c" 1>&6
3631 echo "configure:3632: checking for remove" >&5
3632 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3633 echo $ac_n "(cached) $ac_c" 1>&6
3634 else
3635 cat > conftest.$ac_ext <<EOF
3636 #line 3637 "configure"
3637 #include "confdefs.h"
3638 /* System header to define __stub macros and hopefully few prototypes,
3639 which can conflict with char remove(); below. */
3640 #include <assert.h>
3641 /* Override any gcc2 internal prototype to avoid an error. */
3642 /* We use char because int might match the return type of a gcc2
3643 builtin and then its argument prototype would still apply. */
3644 char remove();
3646 int main() {
3648 /* The GNU C library defines this for functions which it implements
3649 to always fail with ENOSYS. Some functions are actually named
3650 something starting with __ and the normal name is an alias. */
3651 #if defined (__stub_remove) || defined (__stub___remove)
3652 choke me
3653 #else
3654 remove();
3655 #endif
3657 ; return 0; }
3659 if { (eval echo configure:3660: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3660 rm -rf conftest*
3661 eval "ac_cv_func_remove=yes"
3662 else
3663 echo "configure: failed program was:" >&5
3664 cat conftest.$ac_ext >&5
3665 rm -rf conftest*
3666 eval "ac_cv_func_remove=no"
3668 rm -f conftest*
3671 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3672 echo "$ac_t""yes" 1>&6
3674 else
3675 echo "$ac_t""no" 1>&6
3678 if test $ac_cv_func_remove = no; then
3679 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3680 echo "configure:3681: checking for remove in -lposix" >&5
3681 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3682 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3683 echo $ac_n "(cached) $ac_c" 1>&6
3684 else
3685 ac_save_LIBS="$LIBS"
3686 LIBS="-lposix $LIBS"
3687 cat > conftest.$ac_ext <<EOF
3688 #line 3689 "configure"
3689 #include "confdefs.h"
3690 /* Override any gcc2 internal prototype to avoid an error. */
3691 /* We use char because int might match the return type of a gcc2
3692 builtin and then its argument prototype would still apply. */
3693 char remove();
3695 int main() {
3696 remove()
3697 ; return 0; }
3699 if { (eval echo configure:3700: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3700 rm -rf conftest*
3701 eval "ac_cv_lib_$ac_lib_var=yes"
3702 else
3703 echo "configure: failed program was:" >&5
3704 cat conftest.$ac_ext >&5
3705 rm -rf conftest*
3706 eval "ac_cv_lib_$ac_lib_var=no"
3708 rm -f conftest*
3709 LIBS="$ac_save_LIBS"
3712 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3713 echo "$ac_t""yes" 1>&6
3714 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3715 else
3716 echo "$ac_t""no" 1>&6
3721 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3722 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3723 echo "configure:3724: checking for shmat" >&5
3724 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3725 echo $ac_n "(cached) $ac_c" 1>&6
3726 else
3727 cat > conftest.$ac_ext <<EOF
3728 #line 3729 "configure"
3729 #include "confdefs.h"
3730 /* System header to define __stub macros and hopefully few prototypes,
3731 which can conflict with char shmat(); below. */
3732 #include <assert.h>
3733 /* Override any gcc2 internal prototype to avoid an error. */
3734 /* We use char because int might match the return type of a gcc2
3735 builtin and then its argument prototype would still apply. */
3736 char shmat();
3738 int main() {
3740 /* The GNU C library defines this for functions which it implements
3741 to always fail with ENOSYS. Some functions are actually named
3742 something starting with __ and the normal name is an alias. */
3743 #if defined (__stub_shmat) || defined (__stub___shmat)
3744 choke me
3745 #else
3746 shmat();
3747 #endif
3749 ; return 0; }
3751 if { (eval echo configure:3752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3752 rm -rf conftest*
3753 eval "ac_cv_func_shmat=yes"
3754 else
3755 echo "configure: failed program was:" >&5
3756 cat conftest.$ac_ext >&5
3757 rm -rf conftest*
3758 eval "ac_cv_func_shmat=no"
3760 rm -f conftest*
3763 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3764 echo "$ac_t""yes" 1>&6
3766 else
3767 echo "$ac_t""no" 1>&6
3770 if test $ac_cv_func_shmat = no; then
3771 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3772 echo "configure:3773: checking for shmat in -lipc" >&5
3773 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3774 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3775 echo $ac_n "(cached) $ac_c" 1>&6
3776 else
3777 ac_save_LIBS="$LIBS"
3778 LIBS="-lipc $LIBS"
3779 cat > conftest.$ac_ext <<EOF
3780 #line 3781 "configure"
3781 #include "confdefs.h"
3782 /* Override any gcc2 internal prototype to avoid an error. */
3783 /* We use char because int might match the return type of a gcc2
3784 builtin and then its argument prototype would still apply. */
3785 char shmat();
3787 int main() {
3788 shmat()
3789 ; return 0; }
3791 if { (eval echo configure:3792: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3792 rm -rf conftest*
3793 eval "ac_cv_lib_$ac_lib_var=yes"
3794 else
3795 echo "configure: failed program was:" >&5
3796 cat conftest.$ac_ext >&5
3797 rm -rf conftest*
3798 eval "ac_cv_lib_$ac_lib_var=no"
3800 rm -f conftest*
3801 LIBS="$ac_save_LIBS"
3804 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3805 echo "$ac_t""yes" 1>&6
3806 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3807 else
3808 echo "$ac_t""no" 1>&6
3814 # Check for libraries that X11R6 Xt/Xaw programs need.
3815 ac_save_LDFLAGS="$LDFLAGS"
3816 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3817 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3818 # check for ICE first), but we must link in the order -lSM -lICE or
3819 # we get undefined symbols. So assume we have SM if we have ICE.
3820 # These have to be linked with before -lX11, unlike the other
3821 # libraries we check for below, so use a different variable.
3822 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3823 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3824 echo "configure:3825: checking for IceConnectionNumber in -lICE" >&5
3825 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3827 echo $ac_n "(cached) $ac_c" 1>&6
3828 else
3829 ac_save_LIBS="$LIBS"
3830 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3831 cat > conftest.$ac_ext <<EOF
3832 #line 3833 "configure"
3833 #include "confdefs.h"
3834 /* Override any gcc2 internal prototype to avoid an error. */
3835 /* We use char because int might match the return type of a gcc2
3836 builtin and then its argument prototype would still apply. */
3837 char IceConnectionNumber();
3839 int main() {
3840 IceConnectionNumber()
3841 ; return 0; }
3843 if { (eval echo configure:3844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3844 rm -rf conftest*
3845 eval "ac_cv_lib_$ac_lib_var=yes"
3846 else
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 eval "ac_cv_lib_$ac_lib_var=no"
3852 rm -f conftest*
3853 LIBS="$ac_save_LIBS"
3856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3857 echo "$ac_t""yes" 1>&6
3858 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3859 else
3860 echo "$ac_t""no" 1>&6
3863 LDFLAGS="$ac_save_LDFLAGS"
3868 X_LIBRARY_PATH=$x_libraries
3870 XCFLAGS="$X_CFLAGS"
3872 XLFLAGS="$X_LIBS"
3874 XLIBS="-lX11 $X_EXTRA_LIBS"
3877 lib_search_path="$lib_search_path $XLFLAGS"
3878 inc_search_path="$inc_search_path $XCFLAGS"
3885 use_locale=yes
3886 # Check whether --enable-locale or --disable-locale was given.
3887 if test "${enable_locale+set}" = set; then
3888 enableval="$enable_locale"
3889 use_locale=no
3893 if test "$use_locale" = yes; then
3894 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3895 echo "configure:3896: checking for _Xsetlocale in -lX11" >&5
3896 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3897 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3898 echo $ac_n "(cached) $ac_c" 1>&6
3899 else
3900 ac_save_LIBS="$LIBS"
3901 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3902 cat > conftest.$ac_ext <<EOF
3903 #line 3904 "configure"
3904 #include "confdefs.h"
3905 /* Override any gcc2 internal prototype to avoid an error. */
3906 /* We use char because int might match the return type of a gcc2
3907 builtin and then its argument prototype would still apply. */
3908 char _Xsetlocale();
3910 int main() {
3911 _Xsetlocale()
3912 ; return 0; }
3914 if { (eval echo configure:3915: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3915 rm -rf conftest*
3916 eval "ac_cv_lib_$ac_lib_var=yes"
3917 else
3918 echo "configure: failed program was:" >&5
3919 cat conftest.$ac_ext >&5
3920 rm -rf conftest*
3921 eval "ac_cv_lib_$ac_lib_var=no"
3923 rm -f conftest*
3924 LIBS="$ac_save_LIBS"
3927 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3928 echo "$ac_t""yes" 1>&6
3929 cat >> confdefs.h <<\EOF
3930 #define X_LOCALE 1
3933 else
3934 echo "$ac_t""no" 1>&6
3940 # Check whether --enable-modelock or --disable-modelock was given.
3941 if test "${enable_modelock+set}" = set; then
3942 enableval="$enable_modelock"
3943 cat >> confdefs.h <<\EOF
3944 #define XKB_MODELOCK 1
3952 shape=yes
3953 # Check whether --enable-shape or --disable-shape was given.
3954 if test "${enable_shape+set}" = set; then
3955 enableval="$enable_shape"
3956 shape=$enableval
3957 else
3958 shape=yes
3962 added_xext=no
3964 if test "$shape" = yes; then
3965 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3966 echo "configure:3967: checking for XShapeSelectInput in -lXext" >&5
3967 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3968 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3969 echo $ac_n "(cached) $ac_c" 1>&6
3970 else
3971 ac_save_LIBS="$LIBS"
3972 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3973 cat > conftest.$ac_ext <<EOF
3974 #line 3975 "configure"
3975 #include "confdefs.h"
3976 /* Override any gcc2 internal prototype to avoid an error. */
3977 /* We use char because int might match the return type of a gcc2
3978 builtin and then its argument prototype would still apply. */
3979 char XShapeSelectInput();
3981 int main() {
3982 XShapeSelectInput()
3983 ; return 0; }
3985 if { (eval echo configure:3986: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3986 rm -rf conftest*
3987 eval "ac_cv_lib_$ac_lib_var=yes"
3988 else
3989 echo "configure: failed program was:" >&5
3990 cat conftest.$ac_ext >&5
3991 rm -rf conftest*
3992 eval "ac_cv_lib_$ac_lib_var=no"
3994 rm -f conftest*
3995 LIBS="$ac_save_LIBS"
3998 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3999 echo "$ac_t""yes" 1>&6
4000 XLIBS="-lXext $XLIBS"
4001 added_xext=yes
4002 cat >> confdefs.h <<\EOF
4003 #define SHAPE 1
4006 else
4007 echo "$ac_t""no" 1>&6
4008 shape=no
4014 shm=yes
4015 # Check whether --enable-shm or --disable-shm was given.
4016 if test "${enable_shm+set}" = set; then
4017 enableval="$enable_shm"
4018 shm=$enableval
4019 else
4020 shm=yes
4024 if test "$shm" = yes; then
4025 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4026 echo "configure:4027: checking for XShmAttach in -lXext" >&5
4027 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4028 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4029 echo $ac_n "(cached) $ac_c" 1>&6
4030 else
4031 ac_save_LIBS="$LIBS"
4032 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4033 cat > conftest.$ac_ext <<EOF
4034 #line 4035 "configure"
4035 #include "confdefs.h"
4036 /* Override any gcc2 internal prototype to avoid an error. */
4037 /* We use char because int might match the return type of a gcc2
4038 builtin and then its argument prototype would still apply. */
4039 char XShmAttach();
4041 int main() {
4042 XShmAttach()
4043 ; return 0; }
4045 if { (eval echo configure:4046: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4046 rm -rf conftest*
4047 eval "ac_cv_lib_$ac_lib_var=yes"
4048 else
4049 echo "configure: failed program was:" >&5
4050 cat conftest.$ac_ext >&5
4051 rm -rf conftest*
4052 eval "ac_cv_lib_$ac_lib_var=no"
4054 rm -f conftest*
4055 LIBS="$ac_save_LIBS"
4058 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4059 echo "$ac_t""yes" 1>&6
4060 ok=yes
4061 else
4062 echo "$ac_t""no" 1>&6
4063 ok=no
4067 if test "$ok" = yes; then
4068 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4069 echo "configure:4070: checking for shmget" >&5
4070 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4071 echo $ac_n "(cached) $ac_c" 1>&6
4072 else
4073 cat > conftest.$ac_ext <<EOF
4074 #line 4075 "configure"
4075 #include "confdefs.h"
4076 /* System header to define __stub macros and hopefully few prototypes,
4077 which can conflict with char shmget(); below. */
4078 #include <assert.h>
4079 /* Override any gcc2 internal prototype to avoid an error. */
4080 /* We use char because int might match the return type of a gcc2
4081 builtin and then its argument prototype would still apply. */
4082 char shmget();
4084 int main() {
4086 /* The GNU C library defines this for functions which it implements
4087 to always fail with ENOSYS. Some functions are actually named
4088 something starting with __ and the normal name is an alias. */
4089 #if defined (__stub_shmget) || defined (__stub___shmget)
4090 choke me
4091 #else
4092 shmget();
4093 #endif
4095 ; return 0; }
4097 if { (eval echo configure:4098: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4098 rm -rf conftest*
4099 eval "ac_cv_func_shmget=yes"
4100 else
4101 echo "configure: failed program was:" >&5
4102 cat conftest.$ac_ext >&5
4103 rm -rf conftest*
4104 eval "ac_cv_func_shmget=no"
4106 rm -f conftest*
4109 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4110 echo "$ac_t""yes" 1>&6
4111 ok=yes
4112 else
4113 echo "$ac_t""no" 1>&6
4114 ok=no
4119 if test "$ok" = yes; then
4120 if test "$added_xext" = no; then
4121 XLIBS="-lXext $XLIBS"
4123 cat >> confdefs.h <<\EOF
4124 #define XSHM 1
4134 #AC_DEFINE(R6SM)
4135 #AC_SUBST(XSMPLIBS)
4140 LIBPL=""
4143 LDFLAGS_old="$LDFLAGS"
4144 LDFLAGS="$LDFLAGS $lib_search_path"
4145 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4146 echo "configure:4147: checking for PLGetString in -lPropList" >&5
4147 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4148 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4149 echo $ac_n "(cached) $ac_c" 1>&6
4150 else
4151 ac_save_LIBS="$LIBS"
4152 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4153 cat > conftest.$ac_ext <<EOF
4154 #line 4155 "configure"
4155 #include "confdefs.h"
4156 /* Override any gcc2 internal prototype to avoid an error. */
4157 /* We use char because int might match the return type of a gcc2
4158 builtin and then its argument prototype would still apply. */
4159 char PLGetString();
4161 int main() {
4162 PLGetString()
4163 ; return 0; }
4165 if { (eval echo configure:4166: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4166 rm -rf conftest*
4167 eval "ac_cv_lib_$ac_lib_var=yes"
4168 else
4169 echo "configure: failed program was:" >&5
4170 cat conftest.$ac_ext >&5
4171 rm -rf conftest*
4172 eval "ac_cv_lib_$ac_lib_var=no"
4174 rm -f conftest*
4175 LIBS="$ac_save_LIBS"
4178 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 yes=yes
4181 else
4182 echo "$ac_t""no" 1>&6
4183 no=no
4186 LDFLAGS="$LDFLAGS_old"
4188 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4190 CPPFLAGS_old="$CPPFLAGS"
4191 CPPFLAGS="$CPPFLAGS $inc_search_path"
4192 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4193 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4194 echo "configure:4195: checking for proplist.h" >&5
4195 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4196 echo $ac_n "(cached) $ac_c" 1>&6
4197 else
4198 cat > conftest.$ac_ext <<EOF
4199 #line 4200 "configure"
4200 #include "confdefs.h"
4201 #include <proplist.h>
4203 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4204 { (eval echo configure:4205: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4205 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4206 if test -z "$ac_err"; then
4207 rm -rf conftest*
4208 eval "ac_cv_header_$ac_safe=yes"
4209 else
4210 echo "$ac_err" >&5
4211 echo "configure: failed program was:" >&5
4212 cat conftest.$ac_ext >&5
4213 rm -rf conftest*
4214 eval "ac_cv_header_$ac_safe=no"
4216 rm -f conftest*
4218 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4219 echo "$ac_t""yes" 1>&6
4221 else
4222 echo "$ac_t""no" 1>&6
4225 CPPFLAGS="$CPPFLAGS_old"
4227 if test "x$ac_cv_header_proplist_h" = xyes; then
4228 LIBPL="-lPropList"
4232 if test "x$LIBPL" = "x"; then
4233 echo
4234 echo "ERROR!!! libPropList is not installed, or could not be found."
4235 echo " Window Maker requires libPropList to build."
4236 echo " Please read INSTALL to find where you can find libPropList,"
4237 echo " and install it first."
4238 if test x$W_SYSTEM = xLinux; then
4239 echo " If you're using some prepackaged version of libPropList,"
4240 echo " make sure you install it's \"development\" package as well."
4242 echo " If you already have it installed, try using the"
4243 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4244 echo " --with-libs-from flag to tell configure where the library"
4245 echo " is installed and"
4247 echo " --with-incs-from flag to tell configure where the header"
4248 echo " files are installed"
4249 exit 1
4261 xpm=yes
4262 # Check whether --enable-xpm or --disable-xpm was given.
4263 if test "${enable_xpm+set}" = set; then
4264 enableval="$enable_xpm"
4265 xpm=$enableval
4266 else
4267 xpm=yes
4271 if test "$xpm" = yes; then
4273 LDFLAGS_old="$LDFLAGS"
4274 LDFLAGS="$LDFLAGS $lib_search_path"
4275 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4276 echo "configure:4277: checking for XpmCreatePixmapFromData in -lXpm" >&5
4277 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4279 echo $ac_n "(cached) $ac_c" 1>&6
4280 else
4281 ac_save_LIBS="$LIBS"
4282 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4283 cat > conftest.$ac_ext <<EOF
4284 #line 4285 "configure"
4285 #include "confdefs.h"
4286 /* Override any gcc2 internal prototype to avoid an error. */
4287 /* We use char because int might match the return type of a gcc2
4288 builtin and then its argument prototype would still apply. */
4289 char XpmCreatePixmapFromData();
4291 int main() {
4292 XpmCreatePixmapFromData()
4293 ; return 0; }
4295 if { (eval echo configure:4296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4296 rm -rf conftest*
4297 eval "ac_cv_lib_$ac_lib_var=yes"
4298 else
4299 echo "configure: failed program was:" >&5
4300 cat conftest.$ac_ext >&5
4301 rm -rf conftest*
4302 eval "ac_cv_lib_$ac_lib_var=no"
4304 rm -f conftest*
4305 LIBS="$ac_save_LIBS"
4308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4309 echo "$ac_t""yes" 1>&6
4310 yes=yes
4311 else
4312 echo "$ac_t""no" 1>&6
4313 no=no
4316 LDFLAGS="$LDFLAGS_old"
4319 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4321 CPPFLAGS_old="$CPPFLAGS"
4322 CPPFLAGS="$CPPFLAGS $inc_search_path"
4323 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4324 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4325 echo "configure:4326: checking for X11/xpm.h" >&5
4326 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4327 echo $ac_n "(cached) $ac_c" 1>&6
4328 else
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 #include <X11/xpm.h>
4334 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4335 { (eval echo configure:4336: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4336 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4337 if test -z "$ac_err"; then
4338 rm -rf conftest*
4339 eval "ac_cv_header_$ac_safe=yes"
4340 else
4341 echo "$ac_err" >&5
4342 echo "configure: failed program was:" >&5
4343 cat conftest.$ac_ext >&5
4344 rm -rf conftest*
4345 eval "ac_cv_header_$ac_safe=no"
4347 rm -f conftest*
4349 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4350 echo "$ac_t""yes" 1>&6
4352 else
4353 echo "$ac_t""no" 1>&6
4356 CPPFLAGS="$CPPFLAGS_old"
4358 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4359 GFXLIBS="$GFXLIBS -lXpm"
4360 supported_gfx="XPM"
4361 cat >> confdefs.h <<\EOF
4362 #define USE_XPM 1
4365 else
4366 supported_gfx="builtin-XPM"
4371 # for wmlib
4373 # for test
4381 png=yes
4382 # Check whether --enable-png or --disable-png was given.
4383 if test "${enable_png+set}" = set; then
4384 enableval="$enable_png"
4385 png=$enableval
4386 else
4387 png=yes
4392 if test "$png" = yes ; then
4394 LDFLAGS_old="$LDFLAGS"
4395 LDFLAGS="$LDFLAGS $lib_search_path"
4396 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4397 echo "configure:4398: checking for png_get_valid in -lpng" >&5
4398 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4399 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4400 echo $ac_n "(cached) $ac_c" 1>&6
4401 else
4402 ac_save_LIBS="$LIBS"
4403 LIBS="-lpng -lz -lm $LIBS"
4404 cat > conftest.$ac_ext <<EOF
4405 #line 4406 "configure"
4406 #include "confdefs.h"
4407 /* Override any gcc2 internal prototype to avoid an error. */
4408 /* We use char because int might match the return type of a gcc2
4409 builtin and then its argument prototype would still apply. */
4410 char png_get_valid();
4412 int main() {
4413 png_get_valid()
4414 ; return 0; }
4416 if { (eval echo configure:4417: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4417 rm -rf conftest*
4418 eval "ac_cv_lib_$ac_lib_var=yes"
4419 else
4420 echo "configure: failed program was:" >&5
4421 cat conftest.$ac_ext >&5
4422 rm -rf conftest*
4423 eval "ac_cv_lib_$ac_lib_var=no"
4425 rm -f conftest*
4426 LIBS="$ac_save_LIBS"
4429 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4430 echo "$ac_t""yes" 1>&6
4431 yes=yes
4432 else
4433 echo "$ac_t""no" 1>&6
4434 no=no
4437 LDFLAGS="$LDFLAGS_old"
4440 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4442 CPPFLAGS_old="$CPPFLAGS"
4443 CPPFLAGS="$CPPFLAGS $inc_search_path"
4444 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4445 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4446 echo "configure:4447: checking for png.h" >&5
4447 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4448 echo $ac_n "(cached) $ac_c" 1>&6
4449 else
4450 cat > conftest.$ac_ext <<EOF
4451 #line 4452 "configure"
4452 #include "confdefs.h"
4453 #include <png.h>
4455 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4456 { (eval echo configure:4457: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4457 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4458 if test -z "$ac_err"; then
4459 rm -rf conftest*
4460 eval "ac_cv_header_$ac_safe=yes"
4461 else
4462 echo "$ac_err" >&5
4463 echo "configure: failed program was:" >&5
4464 cat conftest.$ac_ext >&5
4465 rm -rf conftest*
4466 eval "ac_cv_header_$ac_safe=no"
4468 rm -f conftest*
4470 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4471 echo "$ac_t""yes" 1>&6
4473 else
4474 echo "$ac_t""no" 1>&6
4477 CPPFLAGS="$CPPFLAGS_old"
4479 if test "x$ac_cv_header_png_h" = xyes; then
4480 GFXLIBS="$GFXLIBS -lpng -lz"
4481 supported_gfx="$supported_gfx PNG"
4482 cat >> confdefs.h <<\EOF
4483 #define USE_PNG 1
4491 jpeg=yes
4492 ljpeg=""
4493 # Check whether --enable-jpeg or --disable-jpeg was given.
4494 if test "${enable_jpeg+set}" = set; then
4495 enableval="$enable_jpeg"
4496 jpeg=$enableval
4497 else
4498 jpeg=yes
4502 if test "$jpeg" = yes; then
4504 LDFLAGS_old="$LDFLAGS"
4505 LDFLAGS="$LDFLAGS $lib_search_path"
4506 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4507 echo "configure:4508: checking for jpeg_destroy_compress in -ljpeg" >&5
4508 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4509 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4510 echo $ac_n "(cached) $ac_c" 1>&6
4511 else
4512 ac_save_LIBS="$LIBS"
4513 LIBS="-ljpeg $LIBS"
4514 cat > conftest.$ac_ext <<EOF
4515 #line 4516 "configure"
4516 #include "confdefs.h"
4517 /* Override any gcc2 internal prototype to avoid an error. */
4518 /* We use char because int might match the return type of a gcc2
4519 builtin and then its argument prototype would still apply. */
4520 char jpeg_destroy_compress();
4522 int main() {
4523 jpeg_destroy_compress()
4524 ; return 0; }
4526 if { (eval echo configure:4527: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4527 rm -rf conftest*
4528 eval "ac_cv_lib_$ac_lib_var=yes"
4529 else
4530 echo "configure: failed program was:" >&5
4531 cat conftest.$ac_ext >&5
4532 rm -rf conftest*
4533 eval "ac_cv_lib_$ac_lib_var=no"
4535 rm -f conftest*
4536 LIBS="$ac_save_LIBS"
4539 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4540 echo "$ac_t""yes" 1>&6
4541 yes=yes
4542 else
4543 echo "$ac_t""no" 1>&6
4544 no=no
4547 LDFLAGS="$LDFLAGS_old"
4550 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4552 ljpeg="-ljpeg"
4555 CPPFLAGS_old="$CPPFLAGS"
4556 CPPFLAGS="$CPPFLAGS $inc_search_path"
4557 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4558 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4559 echo "configure:4560: checking for jpeglib.h" >&5
4560 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4561 echo $ac_n "(cached) $ac_c" 1>&6
4562 else
4563 cat > conftest.$ac_ext <<EOF
4564 #line 4565 "configure"
4565 #include "confdefs.h"
4566 #include <jpeglib.h>
4568 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4569 { (eval echo configure:4570: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4570 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4571 if test -z "$ac_err"; then
4572 rm -rf conftest*
4573 eval "ac_cv_header_$ac_safe=yes"
4574 else
4575 echo "$ac_err" >&5
4576 echo "configure: failed program was:" >&5
4577 cat conftest.$ac_ext >&5
4578 rm -rf conftest*
4579 eval "ac_cv_header_$ac_safe=no"
4581 rm -f conftest*
4583 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4584 echo "$ac_t""yes" 1>&6
4586 else
4587 echo "$ac_t""no" 1>&6
4590 CPPFLAGS="$CPPFLAGS_old"
4592 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4593 GFXLIBS="$GFXLIBS -ljpeg"
4594 supported_gfx="$supported_gfx JPEG"
4595 cat >> confdefs.h <<\EOF
4596 #define USE_JPEG 1
4604 gif=yes
4605 # Check whether --enable-gif or --disable-gif was given.
4606 if test "${enable_gif+set}" = set; then
4607 enableval="$enable_gif"
4608 gif=$enableval
4609 else
4610 gif=yes
4614 if test "$gif" = yes; then
4615 my_libname=""
4617 LDFLAGS_old="$LDFLAGS"
4618 LDFLAGS="$LDFLAGS $lib_search_path"
4619 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4620 echo "configure:4621: checking for DGifOpenFileName in -lungif" >&5
4621 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4622 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4623 echo $ac_n "(cached) $ac_c" 1>&6
4624 else
4625 ac_save_LIBS="$LIBS"
4626 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4627 cat > conftest.$ac_ext <<EOF
4628 #line 4629 "configure"
4629 #include "confdefs.h"
4630 /* Override any gcc2 internal prototype to avoid an error. */
4631 /* We use char because int might match the return type of a gcc2
4632 builtin and then its argument prototype would still apply. */
4633 char DGifOpenFileName();
4635 int main() {
4636 DGifOpenFileName()
4637 ; return 0; }
4639 if { (eval echo configure:4640: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4640 rm -rf conftest*
4641 eval "ac_cv_lib_$ac_lib_var=yes"
4642 else
4643 echo "configure: failed program was:" >&5
4644 cat conftest.$ac_ext >&5
4645 rm -rf conftest*
4646 eval "ac_cv_lib_$ac_lib_var=no"
4648 rm -f conftest*
4649 LIBS="$ac_save_LIBS"
4652 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4653 echo "$ac_t""yes" 1>&6
4654 yes=yes
4655 else
4656 echo "$ac_t""no" 1>&6
4657 no=no
4660 LDFLAGS="$LDFLAGS_old"
4662 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4663 my_libname=-lungif
4665 if test "x$my_libname" = x; then
4667 LDFLAGS_old="$LDFLAGS"
4668 LDFLAGS="$LDFLAGS $lib_search_path"
4669 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4670 echo "configure:4671: checking for DGifOpenFileName in -lgif" >&5
4671 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4672 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4673 echo $ac_n "(cached) $ac_c" 1>&6
4674 else
4675 ac_save_LIBS="$LIBS"
4676 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 /* Override any gcc2 internal prototype to avoid an error. */
4681 /* We use char because int might match the return type of a gcc2
4682 builtin and then its argument prototype would still apply. */
4683 char DGifOpenFileName();
4685 int main() {
4686 DGifOpenFileName()
4687 ; return 0; }
4689 if { (eval echo configure:4690: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4690 rm -rf conftest*
4691 eval "ac_cv_lib_$ac_lib_var=yes"
4692 else
4693 echo "configure: failed program was:" >&5
4694 cat conftest.$ac_ext >&5
4695 rm -rf conftest*
4696 eval "ac_cv_lib_$ac_lib_var=no"
4698 rm -f conftest*
4699 LIBS="$ac_save_LIBS"
4702 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4703 echo "$ac_t""yes" 1>&6
4704 yes=yes
4705 else
4706 echo "$ac_t""no" 1>&6
4707 no=no
4710 LDFLAGS="$LDFLAGS_old"
4712 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
4713 my_libname=-lgif
4717 if test "$my_libname" != x; then
4719 CPPFLAGS_old="$CPPFLAGS"
4720 CPPFLAGS="$CPPFLAGS $inc_search_path"
4721 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4722 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4723 echo "configure:4724: checking for gif_lib.h" >&5
4724 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4725 echo $ac_n "(cached) $ac_c" 1>&6
4726 else
4727 cat > conftest.$ac_ext <<EOF
4728 #line 4729 "configure"
4729 #include "confdefs.h"
4730 #include <gif_lib.h>
4732 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4733 { (eval echo configure:4734: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4734 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4735 if test -z "$ac_err"; then
4736 rm -rf conftest*
4737 eval "ac_cv_header_$ac_safe=yes"
4738 else
4739 echo "$ac_err" >&5
4740 echo "configure: failed program was:" >&5
4741 cat conftest.$ac_ext >&5
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=no"
4745 rm -f conftest*
4747 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4748 echo "$ac_t""yes" 1>&6
4750 else
4751 echo "$ac_t""no" 1>&6
4754 CPPFLAGS="$CPPFLAGS_old"
4756 if test "x$ac_cv_header_gif_lib_h" = xyes; then
4757 GFXLIBS="$GFXLIBS $my_libname"
4758 supported_gfx="$supported_gfx GIF"
4759 cat >> confdefs.h <<\EOF
4760 #define USE_GIF 1
4769 # Check whether --enable-tiff or --disable-tiff was given.
4770 if test "${enable_tiff+set}" = set; then
4771 enableval="$enable_tiff"
4772 tif=$enableval
4773 else
4774 tif=yes
4779 # TIFF can optionally have JPEG and/or zlib support. Must find out
4780 # when they are supported so that correct library flags are passed during
4781 # detection and linkage
4784 # By default use xpm icons if tiff is not found.
4785 ICONEXT="xpm"
4788 if test "$tif" = yes; then
4789 my_libname=""
4791 LDFLAGS_old="$LDFLAGS"
4792 LDFLAGS="$LDFLAGS $lib_search_path"
4793 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4794 echo "configure:4795: checking for TIFFGetVersion in -ltiff" >&5
4795 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4796 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 ac_save_LIBS="$LIBS"
4800 LIBS="-ltiff -lm $LIBS"
4801 cat > conftest.$ac_ext <<EOF
4802 #line 4803 "configure"
4803 #include "confdefs.h"
4804 /* Override any gcc2 internal prototype to avoid an error. */
4805 /* We use char because int might match the return type of a gcc2
4806 builtin and then its argument prototype would still apply. */
4807 char TIFFGetVersion();
4809 int main() {
4810 TIFFGetVersion()
4811 ; return 0; }
4813 if { (eval echo configure:4814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4814 rm -rf conftest*
4815 eval "ac_cv_lib_$ac_lib_var=yes"
4816 else
4817 echo "configure: failed program was:" >&5
4818 cat conftest.$ac_ext >&5
4819 rm -rf conftest*
4820 eval "ac_cv_lib_$ac_lib_var=no"
4822 rm -f conftest*
4823 LIBS="$ac_save_LIBS"
4826 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4827 echo "$ac_t""yes" 1>&6
4828 yes=yes
4829 else
4830 echo "$ac_t""no" 1>&6
4831 no=no
4834 LDFLAGS="$LDFLAGS_old"
4836 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4837 my_libname="-ltiff"
4839 unset ac_cv_lib_tiff_TIFFGetVersion
4840 if test "x$my_libname" = x; then
4842 LDFLAGS_old="$LDFLAGS"
4843 LDFLAGS="$LDFLAGS $lib_search_path"
4844 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4845 echo "configure:4846: checking for TIFFGetVersion in -ltiff" >&5
4846 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4848 echo $ac_n "(cached) $ac_c" 1>&6
4849 else
4850 ac_save_LIBS="$LIBS"
4851 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
4852 cat > conftest.$ac_ext <<EOF
4853 #line 4854 "configure"
4854 #include "confdefs.h"
4855 /* Override any gcc2 internal prototype to avoid an error. */
4856 /* We use char because int might match the return type of a gcc2
4857 builtin and then its argument prototype would still apply. */
4858 char TIFFGetVersion();
4860 int main() {
4861 TIFFGetVersion()
4862 ; return 0; }
4864 if { (eval echo configure:4865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4865 rm -rf conftest*
4866 eval "ac_cv_lib_$ac_lib_var=yes"
4867 else
4868 echo "configure: failed program was:" >&5
4869 cat conftest.$ac_ext >&5
4870 rm -rf conftest*
4871 eval "ac_cv_lib_$ac_lib_var=no"
4873 rm -f conftest*
4874 LIBS="$ac_save_LIBS"
4877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4878 echo "$ac_t""yes" 1>&6
4879 yes=yes
4880 else
4881 echo "$ac_t""no" 1>&6
4882 no=no
4885 LDFLAGS="$LDFLAGS_old"
4887 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4888 my_libname="-ltiff -lz"
4892 if test "x$my_libname" = x; then
4894 LDFLAGS_old="$LDFLAGS"
4895 LDFLAGS="$LDFLAGS $lib_search_path"
4896 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4897 echo "configure:4898: checking for TIFFGetVersion in -ltiff34" >&5
4898 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4899 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4900 echo $ac_n "(cached) $ac_c" 1>&6
4901 else
4902 ac_save_LIBS="$LIBS"
4903 LIBS="-ltiff34 $ljpeg -lm $LIBS"
4904 cat > conftest.$ac_ext <<EOF
4905 #line 4906 "configure"
4906 #include "confdefs.h"
4907 /* Override any gcc2 internal prototype to avoid an error. */
4908 /* We use char because int might match the return type of a gcc2
4909 builtin and then its argument prototype would still apply. */
4910 char TIFFGetVersion();
4912 int main() {
4913 TIFFGetVersion()
4914 ; return 0; }
4916 if { (eval echo configure:4917: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4917 rm -rf conftest*
4918 eval "ac_cv_lib_$ac_lib_var=yes"
4919 else
4920 echo "configure: failed program was:" >&5
4921 cat conftest.$ac_ext >&5
4922 rm -rf conftest*
4923 eval "ac_cv_lib_$ac_lib_var=no"
4925 rm -f conftest*
4926 LIBS="$ac_save_LIBS"
4929 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4930 echo "$ac_t""yes" 1>&6
4931 yes=yes
4932 else
4933 echo "$ac_t""no" 1>&6
4934 no=no
4937 LDFLAGS="$LDFLAGS_old"
4939 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
4940 my_libname="-ltiff34"
4945 if test "x$my_libname" != x; then
4947 CPPFLAGS_old="$CPPFLAGS"
4948 CPPFLAGS="$CPPFLAGS $inc_search_path"
4949 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4950 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4951 echo "configure:4952: checking for tiffio.h" >&5
4952 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4953 echo $ac_n "(cached) $ac_c" 1>&6
4954 else
4955 cat > conftest.$ac_ext <<EOF
4956 #line 4957 "configure"
4957 #include "confdefs.h"
4958 #include <tiffio.h>
4960 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4961 { (eval echo configure:4962: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4962 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4963 if test -z "$ac_err"; then
4964 rm -rf conftest*
4965 eval "ac_cv_header_$ac_safe=yes"
4966 else
4967 echo "$ac_err" >&5
4968 echo "configure: failed program was:" >&5
4969 cat conftest.$ac_ext >&5
4970 rm -rf conftest*
4971 eval "ac_cv_header_$ac_safe=no"
4973 rm -f conftest*
4975 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4976 echo "$ac_t""yes" 1>&6
4978 else
4979 echo "$ac_t""no" 1>&6
4982 CPPFLAGS="$CPPFLAGS_old"
4984 if test "x$ac_cv_header_tiffio_h" = xyes; then
4985 GFXLIBS="$my_libname $GFXLIBS"
4986 ICONEXT="tiff"
4987 supported_gfx="$supported_gfx TIFF"
4988 cat >> confdefs.h <<\EOF
4989 #define USE_TIFF 1
4996 LIBRARY_SEARCH_PATH="$lib_search_path"
4997 HEADER_SEARCH_PATH="$inc_search_path"
5009 # Check whether --enable-debug or --disable-debug was given.
5010 if test "${enable_debug+set}" = set; then
5011 enableval="$enable_debug"
5013 else
5014 enable_debug=no
5018 if test "$enable_debug" = yes; then
5019 DFLAGS="-g -DDEBUG"
5020 # Efence makes things too slow. Add it by hand in the Makefiles
5021 # if it is really needed.
5022 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5027 sound=yes
5028 # Check whether --enable-sound or --disable-sound was given.
5029 if test "${enable_sound+set}" = set; then
5030 enableval="$enable_sound"
5031 sound=$enableval
5032 else
5033 sound=yes
5036 if test "$sound" = yes; then
5037 cat >> confdefs.h <<\EOF
5038 #define WMSOUND 1
5044 # AC_PREFIX_PROGRAM(wmaker)
5046 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5047 if test "${with_pixmapdir+set}" = set; then
5048 withval="$with_pixmapdir"
5053 if test "x$with_pixmapdir" != "x"; then
5054 pixmapdir=$with_pixmapdir
5055 else
5056 pixmapdir=`eval echo ${datadir}/pixmaps`
5059 cat >> confdefs.h <<EOF
5060 #define PIXMAPDIR "$pixmapdir"
5064 pkgdatadir=`eval echo $datadir`
5065 cat >> confdefs.h <<EOF
5066 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5070 _sysconfdir=`eval echo $sysconfdir`
5071 cat >> confdefs.h <<EOF
5072 #define SYSCONFDIR "$_sysconfdir"
5078 appspath=""
5080 # Check whether --with-appspath or --without-appspath was given.
5081 if test "${with_appspath+set}" = set; then
5082 withval="$with_appspath"
5083 appspath=$withval
5087 if test "x$appspath" = "x"; then
5088 gnustepdir='$(prefix)/GNUstep'
5090 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5091 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5092 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5095 with_appspath=$gnustepdir/Apps
5098 wprefsdir=$with_appspath/WPrefs.app
5104 # Check whether --enable-single-icon or --disable-single-icon was given.
5105 if test "${enable_single_icon+set}" = set; then
5106 enableval="$enable_single_icon"
5107 if test "$enableval" = yes; then
5108 cat >> confdefs.h <<\EOF
5109 #define REDUCE_APPICONS 1
5117 # Check whether --enable-usermenu or --disable-usermenu was given.
5118 if test "${enable_usermenu+set}" = set; then
5119 enableval="$enable_usermenu"
5120 if test "$enableval" = yes; then
5121 cat >> confdefs.h <<\EOF
5122 #define USER_MENU 1
5133 trap '' 1 2 15
5134 cat > confcache <<\EOF
5135 # This file is a shell script that caches the results of configure
5136 # tests run on this system so they can be shared between configure
5137 # scripts and configure runs. It is not useful on other systems.
5138 # If it contains results you don't want to keep, you may remove or edit it.
5140 # By default, configure uses ./config.cache as the cache file,
5141 # creating it if it does not exist already. You can give configure
5142 # the --cache-file=FILE option to use a different cache file; that is
5143 # what configure does when it calls configure scripts in
5144 # subdirectories, so they share the cache.
5145 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5146 # config.status only pays attention to the cache file if you give it the
5147 # --recheck option to rerun configure.
5150 # The following way of writing the cache mishandles newlines in values,
5151 # but we know of no workaround that is simple, portable, and efficient.
5152 # So, don't put newlines in cache variables' values.
5153 # Ultrix sh set writes to stderr and can't be redirected directly,
5154 # and sets the high bit in the cache file unless we assign to the vars.
5155 (set) 2>&1 |
5156 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5157 *ac_space=\ *)
5158 # `set' does not quote correctly, so add quotes (double-quote substitution
5159 # turns \\\\ into \\, and sed turns \\ into \).
5160 sed -n \
5161 -e "s/'/'\\\\''/g" \
5162 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5165 # `set' quotes correctly as required by POSIX, so do not add quotes.
5166 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5168 esac >> confcache
5169 if cmp -s $cache_file confcache; then
5171 else
5172 if test -w $cache_file; then
5173 echo "updating cache $cache_file"
5174 cat confcache > $cache_file
5175 else
5176 echo "not updating unwritable cache $cache_file"
5179 rm -f confcache
5181 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5183 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5184 # Let make expand exec_prefix.
5185 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5187 # Any assignment to VPATH causes Sun make to only execute
5188 # the first set of double-colon rules, so remove it if not needed.
5189 # If there is a colon in the path, we need to keep it.
5190 if test "x$srcdir" = x.; then
5191 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5194 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5196 DEFS=-DHAVE_CONFIG_H
5198 # Without the "./", some shells look in PATH for config.status.
5199 : ${CONFIG_STATUS=./config.status}
5201 echo creating $CONFIG_STATUS
5202 rm -f $CONFIG_STATUS
5203 cat > $CONFIG_STATUS <<EOF
5204 #! /bin/sh
5205 # Generated automatically by configure.
5206 # Run this file to recreate the current configuration.
5207 # This directory was configured as follows,
5208 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5210 # $0 $ac_configure_args
5212 # Compiler output produced by configure, useful for debugging
5213 # configure, is in ./config.log if it exists.
5215 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5216 for ac_option
5218 case "\$ac_option" in
5219 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5220 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5221 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5222 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5223 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5224 exit 0 ;;
5225 -help | --help | --hel | --he | --h)
5226 echo "\$ac_cs_usage"; exit 0 ;;
5227 *) echo "\$ac_cs_usage"; exit 1 ;;
5228 esac
5229 done
5231 ac_given_srcdir=$srcdir
5232 ac_given_INSTALL="$INSTALL"
5234 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5235 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5236 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5237 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5238 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5239 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5240 WindowMaker/Themes/Makefile \
5241 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5242 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5244 cat >> $CONFIG_STATUS <<EOF
5246 # Protect against being on the right side of a sed subst in config.status.
5247 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5248 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5249 $ac_vpsub
5250 $extrasub
5251 s%@SHELL@%$SHELL%g
5252 s%@CFLAGS@%$CFLAGS%g
5253 s%@CPPFLAGS@%$CPPFLAGS%g
5254 s%@CXXFLAGS@%$CXXFLAGS%g
5255 s%@FFLAGS@%$FFLAGS%g
5256 s%@DEFS@%$DEFS%g
5257 s%@LDFLAGS@%$LDFLAGS%g
5258 s%@LIBS@%$LIBS%g
5259 s%@exec_prefix@%$exec_prefix%g
5260 s%@prefix@%$prefix%g
5261 s%@program_transform_name@%$program_transform_name%g
5262 s%@bindir@%$bindir%g
5263 s%@sbindir@%$sbindir%g
5264 s%@libexecdir@%$libexecdir%g
5265 s%@datadir@%$datadir%g
5266 s%@sysconfdir@%$sysconfdir%g
5267 s%@sharedstatedir@%$sharedstatedir%g
5268 s%@localstatedir@%$localstatedir%g
5269 s%@libdir@%$libdir%g
5270 s%@includedir@%$includedir%g
5271 s%@oldincludedir@%$oldincludedir%g
5272 s%@infodir@%$infodir%g
5273 s%@mandir@%$mandir%g
5274 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5275 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5276 s%@INSTALL_DATA@%$INSTALL_DATA%g
5277 s%@PACKAGE@%$PACKAGE%g
5278 s%@VERSION@%$VERSION%g
5279 s%@ACLOCAL@%$ACLOCAL%g
5280 s%@AUTOCONF@%$AUTOCONF%g
5281 s%@AUTOMAKE@%$AUTOMAKE%g
5282 s%@AUTOHEADER@%$AUTOHEADER%g
5283 s%@MAKEINFO@%$MAKEINFO%g
5284 s%@SET_MAKE@%$SET_MAKE%g
5285 s%@host@%$host%g
5286 s%@host_alias@%$host_alias%g
5287 s%@host_cpu@%$host_cpu%g
5288 s%@host_vendor@%$host_vendor%g
5289 s%@host_os@%$host_os%g
5290 s%@RANLIB@%$RANLIB%g
5291 s%@CC@%$CC%g
5292 s%@LD@%$LD%g
5293 s%@NM@%$NM%g
5294 s%@LN_S@%$LN_S%g
5295 s%@LIBTOOL@%$LIBTOOL%g
5296 s%@CPP@%$CPP%g
5297 s%@ALLOCA@%$ALLOCA%g
5298 s%@CPP_PATH@%$CPP_PATH%g
5299 s%@XGETTEXT@%$XGETTEXT%g
5300 s%@DLLIBS@%$DLLIBS%g
5301 s%@INTLIBS@%$INTLIBS%g
5302 s%@NLSDIR@%$NLSDIR%g
5303 s%@MOFILES@%$MOFILES%g
5304 s%@WPMOFILES@%$WPMOFILES%g
5305 s%@LITE@%$LITE%g
5306 s%@X_CFLAGS@%$X_CFLAGS%g
5307 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5308 s%@X_LIBS@%$X_LIBS%g
5309 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5310 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5311 s%@LIBPL@%$LIBPL%g
5312 s%@XCFLAGS@%$XCFLAGS%g
5313 s%@XLFLAGS@%$XLFLAGS%g
5314 s%@XLIBS@%$XLIBS%g
5315 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5316 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5317 s%@GFXLIBS@%$GFXLIBS%g
5318 s%@ICONEXT@%$ICONEXT%g
5319 s%@DFLAGS@%$DFLAGS%g
5320 s%@wprefsdir@%$wprefsdir%g
5322 CEOF
5325 cat >> $CONFIG_STATUS <<\EOF
5327 # Split the substitutions into bite-sized pieces for seds with
5328 # small command number limits, like on Digital OSF/1 and HP-UX.
5329 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5330 ac_file=1 # Number of current file.
5331 ac_beg=1 # First line for current file.
5332 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5333 ac_more_lines=:
5334 ac_sed_cmds=""
5335 while $ac_more_lines; do
5336 if test $ac_beg -gt 1; then
5337 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5338 else
5339 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5341 if test ! -s conftest.s$ac_file; then
5342 ac_more_lines=false
5343 rm -f conftest.s$ac_file
5344 else
5345 if test -z "$ac_sed_cmds"; then
5346 ac_sed_cmds="sed -f conftest.s$ac_file"
5347 else
5348 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5350 ac_file=`expr $ac_file + 1`
5351 ac_beg=$ac_end
5352 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5354 done
5355 if test -z "$ac_sed_cmds"; then
5356 ac_sed_cmds=cat
5360 cat >> $CONFIG_STATUS <<EOF
5362 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5363 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5364 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5365 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5366 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5367 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5368 WindowMaker/Themes/Makefile \
5369 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5370 WPrefs.app/po/Makefile "}
5372 cat >> $CONFIG_STATUS <<\EOF
5373 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5374 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5375 case "$ac_file" in
5376 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5377 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5378 *) ac_file_in="${ac_file}.in" ;;
5379 esac
5381 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5383 # Remove last slash and all that follows it. Not all systems have dirname.
5384 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5385 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5386 # The file is in a subdirectory.
5387 test ! -d "$ac_dir" && mkdir "$ac_dir"
5388 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5389 # A "../" for each directory in $ac_dir_suffix.
5390 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5391 else
5392 ac_dir_suffix= ac_dots=
5395 case "$ac_given_srcdir" in
5396 .) srcdir=.
5397 if test -z "$ac_dots"; then top_srcdir=.
5398 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5399 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5400 *) # Relative path.
5401 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5402 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5403 esac
5405 case "$ac_given_INSTALL" in
5406 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5407 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5408 esac
5410 echo creating "$ac_file"
5411 rm -f "$ac_file"
5412 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5413 case "$ac_file" in
5414 *Makefile*) ac_comsub="1i\\
5415 # $configure_input" ;;
5416 *) ac_comsub= ;;
5417 esac
5419 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5420 sed -e "$ac_comsub
5421 s%@configure_input@%$configure_input%g
5422 s%@srcdir@%$srcdir%g
5423 s%@top_srcdir@%$top_srcdir%g
5424 s%@INSTALL@%$INSTALL%g
5425 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5426 fi; done
5427 rm -f conftest.s*
5429 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5430 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5432 # ac_d sets the value in "#define NAME VALUE" lines.
5433 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5434 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5435 ac_dC='\3'
5436 ac_dD='%g'
5437 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5438 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5439 ac_uB='\([ ]\)%\1#\2define\3'
5440 ac_uC=' '
5441 ac_uD='\4%g'
5442 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5443 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5444 ac_eB='$%\1#\2define\3'
5445 ac_eC=' '
5446 ac_eD='%g'
5448 if test "${CONFIG_HEADERS+set}" != set; then
5450 cat >> $CONFIG_STATUS <<EOF
5451 CONFIG_HEADERS="src/config.h"
5453 cat >> $CONFIG_STATUS <<\EOF
5455 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5456 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5457 case "$ac_file" in
5458 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5459 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5460 *) ac_file_in="${ac_file}.in" ;;
5461 esac
5463 echo creating $ac_file
5465 rm -f conftest.frag conftest.in conftest.out
5466 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5467 cat $ac_file_inputs > conftest.in
5471 # Transform confdefs.h into a sed script conftest.vals that substitutes
5472 # the proper values into config.h.in to produce config.h. And first:
5473 # Protect against being on the right side of a sed subst in config.status.
5474 # Protect against being in an unquoted here document in config.status.
5475 rm -f conftest.vals
5476 cat > conftest.hdr <<\EOF
5477 s/[\\&%]/\\&/g
5478 s%[\\$`]%\\&%g
5479 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5480 s%ac_d%ac_u%gp
5481 s%ac_u%ac_e%gp
5483 sed -n -f conftest.hdr confdefs.h > conftest.vals
5484 rm -f conftest.hdr
5486 # This sed command replaces #undef with comments. This is necessary, for
5487 # example, in the case of _POSIX_SOURCE, which is predefined and required
5488 # on some systems where configure will not decide to define it.
5489 cat >> conftest.vals <<\EOF
5490 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5493 # Break up conftest.vals because some shells have a limit on
5494 # the size of here documents, and old seds have small limits too.
5496 rm -f conftest.tail
5497 while :
5499 ac_lines=`grep -c . conftest.vals`
5500 # grep -c gives empty output for an empty file on some AIX systems.
5501 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5502 # Write a limited-size here document to conftest.frag.
5503 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5504 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5505 echo 'CEOF
5506 sed -f conftest.frag conftest.in > conftest.out
5507 rm -f conftest.in
5508 mv conftest.out conftest.in
5509 ' >> $CONFIG_STATUS
5510 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5511 rm -f conftest.vals
5512 mv conftest.tail conftest.vals
5513 done
5514 rm -f conftest.vals
5516 cat >> $CONFIG_STATUS <<\EOF
5517 rm -f conftest.frag conftest.h
5518 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5519 cat conftest.in >> conftest.h
5520 rm -f conftest.in
5521 if cmp -s $ac_file conftest.h 2>/dev/null; then
5522 echo "$ac_file is unchanged"
5523 rm -f conftest.h
5524 else
5525 # Remove last slash and all that follows it. Not all systems have dirname.
5526 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5527 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5528 # The file is in a subdirectory.
5529 test ! -d "$ac_dir" && mkdir "$ac_dir"
5531 rm -f $ac_file
5532 mv conftest.h $ac_file
5534 fi; done
5537 cat >> $CONFIG_STATUS <<EOF
5541 cat >> $CONFIG_STATUS <<\EOF
5542 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5544 exit 0
5546 chmod +x $CONFIG_STATUS
5547 rm -fr confdefs* $ac_clean_files
5548 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5556 cat <<EOF >get-wraster-flags
5557 #!/bin/sh
5559 prefix="$prefix"
5560 exec_prefix=\$prefix
5562 WCFLAGS="-I\$prefix/include $inc_search_path"
5563 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5564 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5566 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5568 if test \$# -eq 0; then
5569 echo "\${usage}" 1>&2
5570 exit 1
5573 while test \$# -gt 0; do
5574 case \$1 in
5575 --cflags)
5576 echo \$WCFLAGS
5578 --ldflags|--lflags)
5579 echo \$WLFLAGS
5581 --libs)
5582 echo \$WLIBS
5585 echo "\${usage}" 1>&2
5586 exit 1
5588 esac
5589 shift
5590 done
5595 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5597 chmod 755 wrlib/get-wraster-flags
5598 rm -f get-wraster-flags
5602 supported_gfx="$supported_gfx builtin-PPM"
5604 if test "x$MOFILES" = "x"; then
5605 mof=none
5606 else
5607 mof=$MOFILES
5611 echo
5612 echo "Window Maker was configured as follows:"
5613 echo
5614 echo "Installation path prefix: $prefix"
5615 echo "Installation path prefix for binaries: $_bindir"
5616 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5617 echo "Graphic format libraries: $supported_gfx"
5618 echo "Sound support: $sound"
5619 echo "Translated message files to install: $mof"
5620 if test "x$MOFILES" != "x"; then
5621 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5625 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5626 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5627 echo
5628 echo "JPEG support will not be included because the JPEG library is"
5629 echo "not installed correctly or was not found. Background images"
5630 echo "from themes will not display as they usually are JPEG files."
5631 echo
5632 echo "To fix, download and install the jpeg library and/or make sure you"
5633 echo "installed all jpeg related packages, SPECIALLY the development packages"
5634 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
5635 echo
5636 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"