syncing with latst changes, because cvs will be moved
[wmaker-crm.git] / configure
blob954c0ceb0ffc51e779627a7f20466cd0e32aa5ba
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --enable-kanji multibyte character support (kanji, Korean etc.)"
30 ac_help="$ac_help
31 --with-nlsdir=PATH specify where the locale stuff should go "
32 ac_help="$ac_help
33 --enable-gnome enable stuff needed for GNOME "
34 ac_help="$ac_help
35 --enable-kde enable support for KDE window manager (kwm) hints "
36 ac_help="$ac_help
37 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
38 ac_help="$ac_help
39 --enable-lite disable stuff duplicated in KDE/GNOME "
40 ac_help="$ac_help
41 --with-x use the X Window System"
42 ac_help="$ac_help
43 --disable-locale disable use of X locale support"
44 ac_help="$ac_help
45 --enable-modelock XKB keyboard language status support"
46 ac_help="$ac_help
47 --disable-shape disable shaped window extension support"
48 ac_help="$ac_help
49 --disable-shm disable usage of MIT-SHM extension"
50 ac_help="$ac_help
51 --disable-xpm disable use of XPM pixmaps through libXpm"
52 ac_help="$ac_help
53 --disable-png disable PNG support through libpng"
54 ac_help="$ac_help
55 --disable-jpeg disable JPEG support through libjpeg"
56 ac_help="$ac_help
57 --disable-gif disable GIF support through libgif or libungif"
58 ac_help="$ac_help
59 --disable-tiff disable use of TIFF images through libtiff"
60 ac_help="$ac_help
61 --enable-debug enable debugging "
62 ac_help="$ac_help
63 --disable-sound disable sound support "
64 ac_help="$ac_help
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
66 ac_help="$ac_help
67 --with-appspath=PATH specify the directory for GNUstep applications"
68 ac_help="$ac_help
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
72 # Initialize some variables set by options.
73 # The variables have the same names as the options, with
74 # dashes changed to underlines.
75 build=NONE
76 cache_file=./config.cache
77 exec_prefix=NONE
78 host=NONE
79 no_create=
80 nonopt=NONE
81 no_recursion=
82 prefix=NONE
83 program_prefix=NONE
84 program_suffix=NONE
85 program_transform_name=s,x,x,
86 silent=
87 site=
88 srcdir=
89 target=NONE
90 verbose=
91 x_includes=NONE
92 x_libraries=NONE
93 bindir='${exec_prefix}/bin'
94 sbindir='${exec_prefix}/sbin'
95 libexecdir='${exec_prefix}/libexec'
96 datadir='${prefix}/share'
97 sysconfdir='${prefix}/etc'
98 sharedstatedir='${prefix}/com'
99 localstatedir='${prefix}/var'
100 libdir='${exec_prefix}/lib'
101 includedir='${prefix}/include'
102 oldincludedir='/usr/include'
103 infodir='${prefix}/info'
104 mandir='${prefix}/man'
106 # Initialize some other variables.
107 subdirs=
108 MFLAGS= MAKEFLAGS=
109 SHELL=${CONFIG_SHELL-/bin/sh}
110 # Maximum number of lines to put in a shell here document.
111 ac_max_here_lines=12
113 ac_prev=
114 for ac_option
117 # If the previous option needs an argument, assign it.
118 if test -n "$ac_prev"; then
119 eval "$ac_prev=\$ac_option"
120 ac_prev=
121 continue
124 case "$ac_option" in
125 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
126 *) ac_optarg= ;;
127 esac
129 # Accept the important Cygnus configure options, so we can diagnose typos.
131 case "$ac_option" in
133 -bindir | --bindir | --bindi | --bind | --bin | --bi)
134 ac_prev=bindir ;;
135 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
136 bindir="$ac_optarg" ;;
138 -build | --build | --buil | --bui | --bu)
139 ac_prev=build ;;
140 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
141 build="$ac_optarg" ;;
143 -cache-file | --cache-file | --cache-fil | --cache-fi \
144 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
145 ac_prev=cache_file ;;
146 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
147 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
148 cache_file="$ac_optarg" ;;
150 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
151 ac_prev=datadir ;;
152 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
153 | --da=*)
154 datadir="$ac_optarg" ;;
156 -disable-* | --disable-*)
157 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
158 # Reject names that are not valid shell variable names.
159 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
160 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
162 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
163 eval "enable_${ac_feature}=no" ;;
165 -enable-* | --enable-*)
166 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
167 # Reject names that are not valid shell variable names.
168 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
169 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
171 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
172 case "$ac_option" in
173 *=*) ;;
174 *) ac_optarg=yes ;;
175 esac
176 eval "enable_${ac_feature}='$ac_optarg'" ;;
178 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
179 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
180 | --exec | --exe | --ex)
181 ac_prev=exec_prefix ;;
182 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
183 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
184 | --exec=* | --exe=* | --ex=*)
185 exec_prefix="$ac_optarg" ;;
187 -gas | --gas | --ga | --g)
188 # Obsolete; use --with-gas.
189 with_gas=yes ;;
191 -help | --help | --hel | --he)
192 # Omit some internal or obsolete options to make the list less imposing.
193 # This message is too long to be a string in the A/UX 3.1 sh.
194 cat << EOF
195 Usage: configure [options] [host]
196 Options: [defaults in brackets after descriptions]
197 Configuration:
198 --cache-file=FILE cache test results in FILE
199 --help print this message
200 --no-create do not create output files
201 --quiet, --silent do not print \`checking...' messages
202 --version print the version of autoconf that created configure
203 Directory and file names:
204 --prefix=PREFIX install architecture-independent files in PREFIX
205 [$ac_default_prefix]
206 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
207 [same as prefix]
208 --bindir=DIR user executables in DIR [EPREFIX/bin]
209 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
210 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
211 --datadir=DIR read-only architecture-independent data in DIR
212 [PREFIX/share]
213 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
214 --sharedstatedir=DIR modifiable architecture-independent data in DIR
215 [PREFIX/com]
216 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
217 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
218 --includedir=DIR C header files in DIR [PREFIX/include]
219 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
220 --infodir=DIR info documentation in DIR [PREFIX/info]
221 --mandir=DIR man documentation in DIR [PREFIX/man]
222 --srcdir=DIR find the sources in DIR [configure dir or ..]
223 --program-prefix=PREFIX prepend PREFIX to installed program names
224 --program-suffix=SUFFIX append SUFFIX to installed program names
225 --program-transform-name=PROGRAM
226 run sed PROGRAM on installed program names
228 cat << EOF
229 Host type:
230 --build=BUILD configure for building on BUILD [BUILD=HOST]
231 --host=HOST configure for HOST [guessed]
232 --target=TARGET configure for TARGET [TARGET=HOST]
233 Features and packages:
234 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
235 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
236 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
237 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
238 --x-includes=DIR X include files are in DIR
239 --x-libraries=DIR X library files are in DIR
241 if test -n "$ac_help"; then
242 echo "--enable and --with options recognized:$ac_help"
244 exit 0 ;;
246 -host | --host | --hos | --ho)
247 ac_prev=host ;;
248 -host=* | --host=* | --hos=* | --ho=*)
249 host="$ac_optarg" ;;
251 -includedir | --includedir | --includedi | --included | --include \
252 | --includ | --inclu | --incl | --inc)
253 ac_prev=includedir ;;
254 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
255 | --includ=* | --inclu=* | --incl=* | --inc=*)
256 includedir="$ac_optarg" ;;
258 -infodir | --infodir | --infodi | --infod | --info | --inf)
259 ac_prev=infodir ;;
260 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
261 infodir="$ac_optarg" ;;
263 -libdir | --libdir | --libdi | --libd)
264 ac_prev=libdir ;;
265 -libdir=* | --libdir=* | --libdi=* | --libd=*)
266 libdir="$ac_optarg" ;;
268 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
269 | --libexe | --libex | --libe)
270 ac_prev=libexecdir ;;
271 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
272 | --libexe=* | --libex=* | --libe=*)
273 libexecdir="$ac_optarg" ;;
275 -localstatedir | --localstatedir | --localstatedi | --localstated \
276 | --localstate | --localstat | --localsta | --localst \
277 | --locals | --local | --loca | --loc | --lo)
278 ac_prev=localstatedir ;;
279 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
280 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
281 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
282 localstatedir="$ac_optarg" ;;
284 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
285 ac_prev=mandir ;;
286 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
287 mandir="$ac_optarg" ;;
289 -nfp | --nfp | --nf)
290 # Obsolete; use --without-fp.
291 with_fp=no ;;
293 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
294 | --no-cr | --no-c)
295 no_create=yes ;;
297 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
298 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
299 no_recursion=yes ;;
301 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
302 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
303 | --oldin | --oldi | --old | --ol | --o)
304 ac_prev=oldincludedir ;;
305 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
306 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
307 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
308 oldincludedir="$ac_optarg" ;;
310 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
311 ac_prev=prefix ;;
312 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
313 prefix="$ac_optarg" ;;
315 -program-prefix | --program-prefix | --program-prefi | --program-pref \
316 | --program-pre | --program-pr | --program-p)
317 ac_prev=program_prefix ;;
318 -program-prefix=* | --program-prefix=* | --program-prefi=* \
319 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
320 program_prefix="$ac_optarg" ;;
322 -program-suffix | --program-suffix | --program-suffi | --program-suff \
323 | --program-suf | --program-su | --program-s)
324 ac_prev=program_suffix ;;
325 -program-suffix=* | --program-suffix=* | --program-suffi=* \
326 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
327 program_suffix="$ac_optarg" ;;
329 -program-transform-name | --program-transform-name \
330 | --program-transform-nam | --program-transform-na \
331 | --program-transform-n | --program-transform- \
332 | --program-transform | --program-transfor \
333 | --program-transfo | --program-transf \
334 | --program-trans | --program-tran \
335 | --progr-tra | --program-tr | --program-t)
336 ac_prev=program_transform_name ;;
337 -program-transform-name=* | --program-transform-name=* \
338 | --program-transform-nam=* | --program-transform-na=* \
339 | --program-transform-n=* | --program-transform-=* \
340 | --program-transform=* | --program-transfor=* \
341 | --program-transfo=* | --program-transf=* \
342 | --program-trans=* | --program-tran=* \
343 | --progr-tra=* | --program-tr=* | --program-t=*)
344 program_transform_name="$ac_optarg" ;;
346 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
347 | -silent | --silent | --silen | --sile | --sil)
348 silent=yes ;;
350 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
351 ac_prev=sbindir ;;
352 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
353 | --sbi=* | --sb=*)
354 sbindir="$ac_optarg" ;;
356 -sharedstatedir | --sharedstatedir | --sharedstatedi \
357 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
358 | --sharedst | --shareds | --shared | --share | --shar \
359 | --sha | --sh)
360 ac_prev=sharedstatedir ;;
361 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
362 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
363 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
364 | --sha=* | --sh=*)
365 sharedstatedir="$ac_optarg" ;;
367 -site | --site | --sit)
368 ac_prev=site ;;
369 -site=* | --site=* | --sit=*)
370 site="$ac_optarg" ;;
372 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
373 ac_prev=srcdir ;;
374 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
375 srcdir="$ac_optarg" ;;
377 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
378 | --syscon | --sysco | --sysc | --sys | --sy)
379 ac_prev=sysconfdir ;;
380 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
381 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
382 sysconfdir="$ac_optarg" ;;
384 -target | --target | --targe | --targ | --tar | --ta | --t)
385 ac_prev=target ;;
386 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
387 target="$ac_optarg" ;;
389 -v | -verbose | --verbose | --verbos | --verbo | --verb)
390 verbose=yes ;;
392 -version | --version | --versio | --versi | --vers)
393 echo "configure generated by autoconf version 2.13"
394 exit 0 ;;
396 -with-* | --with-*)
397 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
398 # Reject names that are not valid shell variable names.
399 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
400 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
402 ac_package=`echo $ac_package| sed 's/-/_/g'`
403 case "$ac_option" in
404 *=*) ;;
405 *) ac_optarg=yes ;;
406 esac
407 eval "with_${ac_package}='$ac_optarg'" ;;
409 -without-* | --without-*)
410 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
411 # Reject names that are not valid shell variable names.
412 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
413 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
415 ac_package=`echo $ac_package| sed 's/-/_/g'`
416 eval "with_${ac_package}=no" ;;
418 --x)
419 # Obsolete; use --with-x.
420 with_x=yes ;;
422 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
423 | --x-incl | --x-inc | --x-in | --x-i)
424 ac_prev=x_includes ;;
425 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
426 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
427 x_includes="$ac_optarg" ;;
429 -x-libraries | --x-libraries | --x-librarie | --x-librari \
430 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
431 ac_prev=x_libraries ;;
432 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
433 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
434 x_libraries="$ac_optarg" ;;
436 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
440 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
441 echo "configure: warning: $ac_option: invalid host type" 1>&2
443 if test "x$nonopt" != xNONE; then
444 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
446 nonopt="$ac_option"
449 esac
450 done
452 if test -n "$ac_prev"; then
453 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
456 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
458 # File descriptor usage:
459 # 0 standard input
460 # 1 file creation
461 # 2 errors and warnings
462 # 3 some systems may open it to /dev/tty
463 # 4 used on the Kubota Titan
464 # 6 checking for... messages and results
465 # 5 compiler messages saved in config.log
466 if test "$silent" = yes; then
467 exec 6>/dev/null
468 else
469 exec 6>&1
471 exec 5>./config.log
473 echo "\
474 This file contains any messages produced by compilers while
475 running configure, to aid debugging if configure makes a mistake.
476 " 1>&5
478 # Strip out --no-create and --no-recursion so they do not pile up.
479 # Also quote any args containing shell metacharacters.
480 ac_configure_args=
481 for ac_arg
483 case "$ac_arg" in
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c) ;;
486 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
487 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
488 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
489 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
490 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
491 esac
492 done
494 # NLS nuisances.
495 # Only set these to C if already set. These must not be set unconditionally
496 # because not all systems understand e.g. LANG=C (notably SCO).
497 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
498 # Non-C LC_CTYPE values break the ctype check.
499 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
500 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
501 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
502 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
504 # confdefs.h avoids OS command line length limits that DEFS can exceed.
505 rm -rf conftest* confdefs.h
506 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
507 echo > confdefs.h
509 # A filename unique to this package, relative to the directory that
510 # configure is in, which we can look for to find out if srcdir is correct.
511 ac_unique_file=src/WindowMaker.h
513 # Find the source files, if location was not specified.
514 if test -z "$srcdir"; then
515 ac_srcdir_defaulted=yes
516 # Try the directory containing this script, then its parent.
517 ac_prog=$0
518 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
519 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
520 srcdir=$ac_confdir
521 if test ! -r $srcdir/$ac_unique_file; then
522 srcdir=..
524 else
525 ac_srcdir_defaulted=no
527 if test ! -r $srcdir/$ac_unique_file; then
528 if test "$ac_srcdir_defaulted" = yes; then
529 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
530 else
531 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
534 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
536 # Prefer explicitly selected file to automatically selected ones.
537 if test -z "$CONFIG_SITE"; then
538 if test "x$prefix" != xNONE; then
539 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
540 else
541 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
544 for ac_site_file in $CONFIG_SITE; do
545 if test -r "$ac_site_file"; then
546 echo "loading site script $ac_site_file"
547 . "$ac_site_file"
549 done
551 if test -r "$cache_file"; then
552 echo "loading cache $cache_file"
553 . $cache_file
554 else
555 echo "creating cache $cache_file"
556 > $cache_file
559 ac_ext=c
560 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
561 ac_cpp='$CPP $CPPFLAGS'
562 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
563 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
564 cross_compiling=$ac_cv_prog_cc_cross
566 ac_exeext=
567 ac_objext=o
568 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
569 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
570 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
571 ac_n= ac_c='
572 ' ac_t=' '
573 else
574 ac_n=-n ac_c= ac_t=
576 else
577 ac_n= ac_c='\c' ac_t=
584 ac_aux_dir=
585 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
586 if test -f $ac_dir/install-sh; then
587 ac_aux_dir=$ac_dir
588 ac_install_sh="$ac_aux_dir/install-sh -c"
589 break
590 elif test -f $ac_dir/install.sh; then
591 ac_aux_dir=$ac_dir
592 ac_install_sh="$ac_aux_dir/install.sh -c"
593 break
595 done
596 if test -z "$ac_aux_dir"; then
597 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
599 ac_config_guess=$ac_aux_dir/config.guess
600 ac_config_sub=$ac_aux_dir/config.sub
601 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
603 # Find a good install program. We prefer a C program (faster),
604 # so one script is as good as another. But avoid the broken or
605 # incompatible versions:
606 # SysV /etc/install, /usr/sbin/install
607 # SunOS /usr/etc/install
608 # IRIX /sbin/install
609 # AIX /bin/install
610 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
611 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
612 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
613 # ./install, which can be erroneously created by make from ./install.sh.
614 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
615 echo "configure:616: checking for a BSD compatible install" >&5
616 if test -z "$INSTALL"; then
617 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
618 echo $ac_n "(cached) $ac_c" 1>&6
619 else
620 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
621 for ac_dir in $PATH; do
622 # Account for people who put trailing slashes in PATH elements.
623 case "$ac_dir/" in
624 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
626 # OSF1 and SCO ODT 3.0 have their own names for install.
627 # Don't use installbsd from OSF since it installs stuff as root
628 # by default.
629 for ac_prog in ginstall scoinst install; do
630 if test -f $ac_dir/$ac_prog; then
631 if test $ac_prog = install &&
632 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
633 # AIX install. It has an incompatible calling convention.
635 else
636 ac_cv_path_install="$ac_dir/$ac_prog -c"
637 break 2
640 done
642 esac
643 done
644 IFS="$ac_save_IFS"
647 if test "${ac_cv_path_install+set}" = set; then
648 INSTALL="$ac_cv_path_install"
649 else
650 # As a last resort, use the slow shell script. We don't cache a
651 # path for INSTALL within a source directory, because that will
652 # break other packages using the cache if that directory is
653 # removed, or if the path is relative.
654 INSTALL="$ac_install_sh"
657 echo "$ac_t""$INSTALL" 1>&6
659 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
660 # It thinks the first close brace ends the variable substitution.
661 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
663 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
665 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
667 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
668 echo "configure:669: checking whether build environment is sane" >&5
669 # Just in case
670 sleep 1
671 echo timestamp > conftestfile
672 # Do `set' in a subshell so we don't clobber the current shell's
673 # arguments. Must try -L first in case configure is actually a
674 # symlink; some systems play weird games with the mod time of symlinks
675 # (eg FreeBSD returns the mod time of the symlink's containing
676 # directory).
677 if (
678 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
679 if test "$*" = "X"; then
680 # -L didn't work.
681 set X `ls -t $srcdir/configure conftestfile`
683 if test "$*" != "X $srcdir/configure conftestfile" \
684 && test "$*" != "X conftestfile $srcdir/configure"; then
686 # If neither matched, then we have a broken ls. This can happen
687 # if, for instance, CONFIG_SHELL is bash and it inherits a
688 # broken ls alias from the environment. This has actually
689 # happened. Such a system could not be considered "sane".
690 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
691 alias in your environment" 1>&2; exit 1; }
694 test "$2" = conftestfile
696 then
697 # Ok.
699 else
700 { echo "configure: error: newly created file is older than distributed files!
701 Check your system clock" 1>&2; exit 1; }
703 rm -f conftest*
704 echo "$ac_t""yes" 1>&6
705 if test "$program_transform_name" = s,x,x,; then
706 program_transform_name=
707 else
708 # Double any \ or $. echo might interpret backslashes.
709 cat <<\EOF_SED > conftestsed
710 s,\\,\\\\,g; s,\$,$$,g
711 EOF_SED
712 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
713 rm -f conftestsed
715 test "$program_prefix" != NONE &&
716 program_transform_name="s,^,${program_prefix},; $program_transform_name"
717 # Use a double $ so make ignores it.
718 test "$program_suffix" != NONE &&
719 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
721 # sed with no file args requires a program.
722 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
724 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
725 echo "configure:726: checking whether ${MAKE-make} sets \${MAKE}" >&5
726 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
727 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
728 echo $ac_n "(cached) $ac_c" 1>&6
729 else
730 cat > conftestmake <<\EOF
731 all:
732 @echo 'ac_maketemp="${MAKE}"'
734 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
735 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
736 if test -n "$ac_maketemp"; then
737 eval ac_cv_prog_make_${ac_make}_set=yes
738 else
739 eval ac_cv_prog_make_${ac_make}_set=no
741 rm -f conftestmake
743 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
744 echo "$ac_t""yes" 1>&6
745 SET_MAKE=
746 else
747 echo "$ac_t""no" 1>&6
748 SET_MAKE="MAKE=${MAKE-make}"
752 PACKAGE=WindowMaker
754 VERSION=0.51.1
756 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
757 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
759 cat >> confdefs.h <<EOF
760 #define PACKAGE "$PACKAGE"
763 cat >> confdefs.h <<EOF
764 #define VERSION "$VERSION"
769 missing_dir=`cd $ac_aux_dir && pwd`
770 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
771 echo "configure:772: checking for working aclocal" >&5
772 # Run test in a subshell; some versions of sh will print an error if
773 # an executable is not found, even if stderr is redirected.
774 # Redirect stdin to placate older versions of autoconf. Sigh.
775 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
776 ACLOCAL=aclocal
777 echo "$ac_t""found" 1>&6
778 else
779 ACLOCAL="$missing_dir/missing aclocal"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
784 echo "configure:785: checking for working autoconf" >&5
785 # Run test in a subshell; some versions of sh will print an error if
786 # an executable is not found, even if stderr is redirected.
787 # Redirect stdin to placate older versions of autoconf. Sigh.
788 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
789 AUTOCONF=autoconf
790 echo "$ac_t""found" 1>&6
791 else
792 AUTOCONF="$missing_dir/missing autoconf"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working automake""... $ac_c" 1>&6
797 echo "configure:798: checking for working automake" >&5
798 # Run test in a subshell; some versions of sh will print an error if
799 # an executable is not found, even if stderr is redirected.
800 # Redirect stdin to placate older versions of autoconf. Sigh.
801 if (automake --version) < /dev/null > /dev/null 2>&1; then
802 AUTOMAKE=automake
803 echo "$ac_t""found" 1>&6
804 else
805 AUTOMAKE="$missing_dir/missing automake"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
810 echo "configure:811: checking for working autoheader" >&5
811 # Run test in a subshell; some versions of sh will print an error if
812 # an executable is not found, even if stderr is redirected.
813 # Redirect stdin to placate older versions of autoconf. Sigh.
814 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
815 AUTOHEADER=autoheader
816 echo "$ac_t""found" 1>&6
817 else
818 AUTOHEADER="$missing_dir/missing autoheader"
819 echo "$ac_t""missing" 1>&6
822 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
823 echo "configure:824: checking for working makeinfo" >&5
824 # Run test in a subshell; some versions of sh will print an error if
825 # an executable is not found, even if stderr is redirected.
826 # Redirect stdin to placate older versions of autoconf. Sigh.
827 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
828 MAKEINFO=makeinfo
829 echo "$ac_t""found" 1>&6
830 else
831 MAKEINFO="$missing_dir/missing makeinfo"
832 echo "$ac_t""missing" 1>&6
837 # Check whether --enable-shared or --disable-shared was given.
838 if test "${enable_shared+set}" = set; then
839 enableval="$enable_shared"
840 p=${PACKAGE-default}
841 case "$enableval" in
842 yes) enable_shared=yes ;;
843 no) enable_shared=no ;;
845 enable_shared=no
846 # Look at the argument we got. We use all the common list separators.
847 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
848 for pkg in $enableval; do
849 if test "X$pkg" = "X$p"; then
850 enable_shared=yes
852 done
853 IFS="$ac_save_ifs"
855 esac
856 else
857 enable_shared=yes
860 # Check whether --enable-static or --disable-static was given.
861 if test "${enable_static+set}" = set; then
862 enableval="$enable_static"
863 p=${PACKAGE-default}
864 case "$enableval" in
865 yes) enable_static=yes ;;
866 no) enable_static=no ;;
868 enable_static=no
869 # Look at the argument we got. We use all the common list separators.
870 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
871 for pkg in $enableval; do
872 if test "X$pkg" = "X$p"; then
873 enable_static=yes
875 done
876 IFS="$ac_save_ifs"
878 esac
879 else
880 enable_static=yes
884 # Make sure we can run config.sub.
885 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
886 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
889 echo $ac_n "checking host system type""... $ac_c" 1>&6
890 echo "configure:891: checking host system type" >&5
892 host_alias=$host
893 case "$host_alias" in
894 NONE)
895 case $nonopt in
896 NONE)
897 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
898 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
899 fi ;;
900 *) host_alias=$nonopt ;;
901 esac ;;
902 esac
904 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
905 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
906 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
907 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
908 echo "$ac_t""$host" 1>&6
910 # Extract the first word of "ranlib", so it can be a program name with args.
911 set dummy ranlib; ac_word=$2
912 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
913 echo "configure:914: checking for $ac_word" >&5
914 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
915 echo $ac_n "(cached) $ac_c" 1>&6
916 else
917 if test -n "$RANLIB"; then
918 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
919 else
920 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
921 ac_dummy="$PATH"
922 for ac_dir in $ac_dummy; do
923 test -z "$ac_dir" && ac_dir=.
924 if test -f $ac_dir/$ac_word; then
925 ac_cv_prog_RANLIB="ranlib"
926 break
928 done
929 IFS="$ac_save_ifs"
930 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
933 RANLIB="$ac_cv_prog_RANLIB"
934 if test -n "$RANLIB"; then
935 echo "$ac_t""$RANLIB" 1>&6
936 else
937 echo "$ac_t""no" 1>&6
940 # Extract the first word of "gcc", so it can be a program name with args.
941 set dummy gcc; ac_word=$2
942 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
943 echo "configure:944: checking for $ac_word" >&5
944 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
945 echo $ac_n "(cached) $ac_c" 1>&6
946 else
947 if test -n "$CC"; then
948 ac_cv_prog_CC="$CC" # Let the user override the test.
949 else
950 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
951 ac_dummy="$PATH"
952 for ac_dir in $ac_dummy; do
953 test -z "$ac_dir" && ac_dir=.
954 if test -f $ac_dir/$ac_word; then
955 ac_cv_prog_CC="gcc"
956 break
958 done
959 IFS="$ac_save_ifs"
962 CC="$ac_cv_prog_CC"
963 if test -n "$CC"; then
964 echo "$ac_t""$CC" 1>&6
965 else
966 echo "$ac_t""no" 1>&6
969 if test -z "$CC"; then
970 # Extract the first word of "cc", so it can be a program name with args.
971 set dummy cc; ac_word=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
976 else
977 if test -n "$CC"; then
978 ac_cv_prog_CC="$CC" # Let the user override the test.
979 else
980 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
981 ac_prog_rejected=no
982 ac_dummy="$PATH"
983 for ac_dir in $ac_dummy; do
984 test -z "$ac_dir" && ac_dir=.
985 if test -f $ac_dir/$ac_word; then
986 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
987 ac_prog_rejected=yes
988 continue
990 ac_cv_prog_CC="cc"
991 break
993 done
994 IFS="$ac_save_ifs"
995 if test $ac_prog_rejected = yes; then
996 # We found a bogon in the path, so make sure we never use it.
997 set dummy $ac_cv_prog_CC
998 shift
999 if test $# -gt 0; then
1000 # We chose a different compiler from the bogus one.
1001 # However, it has the same basename, so the bogon will be chosen
1002 # first if we set CC to just the basename; use the full file name.
1003 shift
1004 set dummy "$ac_dir/$ac_word" "$@"
1005 shift
1006 ac_cv_prog_CC="$@"
1011 CC="$ac_cv_prog_CC"
1012 if test -n "$CC"; then
1013 echo "$ac_t""$CC" 1>&6
1014 else
1015 echo "$ac_t""no" 1>&6
1018 if test -z "$CC"; then
1019 case "`uname -s`" in
1020 *win32* | *WIN32*)
1021 # Extract the first word of "cl", so it can be a program name with args.
1022 set dummy cl; ac_word=$2
1023 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1024 echo "configure:1025: checking for $ac_word" >&5
1025 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$CC"; then
1029 ac_cv_prog_CC="$CC" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1032 ac_dummy="$PATH"
1033 for ac_dir in $ac_dummy; do
1034 test -z "$ac_dir" && ac_dir=.
1035 if test -f $ac_dir/$ac_word; then
1036 ac_cv_prog_CC="cl"
1037 break
1039 done
1040 IFS="$ac_save_ifs"
1043 CC="$ac_cv_prog_CC"
1044 if test -n "$CC"; then
1045 echo "$ac_t""$CC" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 esac
1052 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1055 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1056 echo "configure:1057: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1058 ac_ext=c
1059 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1060 ac_cpp='$CPP $CPPFLAGS'
1061 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1062 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1063 cross_compiling=$ac_cv_prog_cc_cross
1065 cat > conftest.$ac_ext << EOF
1067 #line 1068 "configure"
1068 #include "confdefs.h"
1070 main(){return(0);}
1072 if { (eval echo configure:1073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1073 ac_cv_prog_cc_works=yes
1074 # If we can't run a trivial program, we are probably using a cross compiler.
1075 if (./conftest; exit) 2>/dev/null; then
1076 ac_cv_prog_cc_cross=no
1077 else
1078 ac_cv_prog_cc_cross=yes
1080 else
1081 echo "configure: failed program was:" >&5
1082 cat conftest.$ac_ext >&5
1083 ac_cv_prog_cc_works=no
1085 rm -fr conftest*
1086 ac_ext=c
1087 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1088 ac_cpp='$CPP $CPPFLAGS'
1089 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1090 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1091 cross_compiling=$ac_cv_prog_cc_cross
1093 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1094 if test $ac_cv_prog_cc_works = no; then
1095 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1099 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1100 cross_compiling=$ac_cv_prog_cc_cross
1102 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1103 echo "configure:1104: checking whether we are using GNU C" >&5
1104 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1105 echo $ac_n "(cached) $ac_c" 1>&6
1106 else
1107 cat > conftest.c <<EOF
1108 #ifdef __GNUC__
1109 yes;
1110 #endif
1112 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1113: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1113 ac_cv_prog_gcc=yes
1114 else
1115 ac_cv_prog_gcc=no
1119 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1121 if test $ac_cv_prog_gcc = yes; then
1122 GCC=yes
1123 else
1124 GCC=
1127 ac_test_CFLAGS="${CFLAGS+set}"
1128 ac_save_CFLAGS="$CFLAGS"
1129 CFLAGS=
1130 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1131 echo "configure:1132: checking whether ${CC-cc} accepts -g" >&5
1132 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1133 echo $ac_n "(cached) $ac_c" 1>&6
1134 else
1135 echo 'void f(){}' > conftest.c
1136 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1137 ac_cv_prog_cc_g=yes
1138 else
1139 ac_cv_prog_cc_g=no
1141 rm -f conftest*
1145 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1146 if test "$ac_test_CFLAGS" = set; then
1147 CFLAGS="$ac_save_CFLAGS"
1148 elif test $ac_cv_prog_cc_g = yes; then
1149 if test "$GCC" = yes; then
1150 CFLAGS="-g -O2"
1151 else
1152 CFLAGS="-g"
1154 else
1155 if test "$GCC" = yes; then
1156 CFLAGS="-O2"
1157 else
1158 CFLAGS=
1162 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1163 if test "${with_gnu_ld+set}" = set; then
1164 withval="$with_gnu_ld"
1165 test "$withval" = no || with_gnu_ld=yes
1166 else
1167 with_gnu_ld=no
1171 ac_prog=ld
1172 if test "$ac_cv_prog_gcc" = yes; then
1173 # Check if gcc -print-prog-name=ld gives a path.
1174 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1175 echo "configure:1176: checking for ld used by GCC" >&5
1176 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1177 case "$ac_prog" in
1178 # Accept absolute paths.
1179 /* | A-Za-z:\\*)
1180 test -z "$LD" && LD="$ac_prog"
1183 # If it fails, then pretend we aren't using GCC.
1184 ac_prog=ld
1187 # If it is relative, then search for the first ld in PATH.
1188 with_gnu_ld=unknown
1190 esac
1191 elif test "$with_gnu_ld" = yes; then
1192 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1193 echo "configure:1194: checking for GNU ld" >&5
1194 else
1195 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1196 echo "configure:1197: checking for non-GNU ld" >&5
1198 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1199 echo $ac_n "(cached) $ac_c" 1>&6
1200 else
1201 if test -z "$LD"; then
1202 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1203 for ac_dir in $PATH; do
1204 test -z "$ac_dir" && ac_dir=.
1205 if test -f "$ac_dir/$ac_prog"; then
1206 ac_cv_path_LD="$ac_dir/$ac_prog"
1207 # Check to see if the program is GNU ld. I'd rather use --version,
1208 # but apparently some GNU ld's only accept -v.
1209 # Break only if it was the GNU/non-GNU ld that we prefer.
1210 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1211 test "$with_gnu_ld" != no && break
1212 else
1213 test "$with_gnu_ld" != yes && break
1216 done
1217 IFS="$ac_save_ifs"
1218 else
1219 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1223 LD="$ac_cv_path_LD"
1224 if test -n "$LD"; then
1225 echo "$ac_t""$LD" 1>&6
1226 else
1227 echo "$ac_t""no" 1>&6
1229 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1231 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1232 echo "configure:1233: checking if the linker ($LD) is GNU ld" >&5
1233 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1234 echo $ac_n "(cached) $ac_c" 1>&6
1235 else
1236 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1237 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1238 ac_cv_prog_gnu_ld=yes
1239 else
1240 ac_cv_prog_gnu_ld=no
1244 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1247 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1248 echo "configure:1249: checking for BSD-compatible nm" >&5
1249 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1250 echo $ac_n "(cached) $ac_c" 1>&6
1251 else
1252 case "$NM" in
1253 /* | A-Za-z:\\*)
1254 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1257 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1258 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1259 test -z "$ac_dir" && ac_dir=.
1260 if test -f $ac_dir/nm; then
1261 # Check to see if the nm accepts a BSD-compat flag.
1262 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1263 # nm: unknown option "B" ignored
1264 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1265 ac_cv_path_NM="$ac_dir/nm -B"
1266 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1267 ac_cv_path_NM="$ac_dir/nm -p"
1268 else
1269 ac_cv_path_NM="$ac_dir/nm"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1275 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1277 esac
1280 NM="$ac_cv_path_NM"
1281 echo "$ac_t""$NM" 1>&6
1284 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1285 echo "configure:1286: checking whether ln -s works" >&5
1286 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1287 echo $ac_n "(cached) $ac_c" 1>&6
1288 else
1289 rm -f conftestdata
1290 if ln -s X conftestdata 2>/dev/null
1291 then
1292 rm -f conftestdata
1293 ac_cv_prog_LN_S="ln -s"
1294 else
1295 ac_cv_prog_LN_S=ln
1298 LN_S="$ac_cv_prog_LN_S"
1299 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1300 echo "$ac_t""yes" 1>&6
1301 else
1302 echo "$ac_t""no" 1>&6
1305 # Always use our own libtool.
1306 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1308 # Check for any special flags to pass to ltconfig.
1309 libtool_flags=
1310 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1311 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1312 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1313 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1314 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1316 # Some flags need to be propagated to the compiler or linker for good
1317 # libtool support.
1318 case "$host" in
1319 *-*-irix6*)
1320 # Find out which ABI we are using.
1321 echo '#line 1322 "configure"' > conftest.$ac_ext
1322 if { (eval echo configure:1323: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1323 case "`/usr/bin/file conftest.o`" in
1324 *32-bit*)
1325 LD="${LD-ld} -32"
1327 *N32*)
1328 LD="${LD-ld} -n32"
1330 *64-bit*)
1331 LD="${LD-ld} -64"
1333 esac
1335 rm -rf conftest*
1338 *-*-sco3.2v5*)
1339 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1340 CFLAGS="$CFLAGS -belf"
1342 esac
1344 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1345 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1346 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1347 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1348 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1349 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1352 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1353 # Turn around -rpath problem with libtool 1.0c
1354 # This define should be improbable enough to not conflict with anything
1355 case ${host} in
1356 *-pc-linux-gnu)
1357 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1358 sed < libtool > libtool-2 \
1359 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1360 mv libtool-2 libtool
1361 chmod 755 libtool
1363 esac
1373 # Make sure we can run config.sub.
1374 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1375 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1378 echo $ac_n "checking host system type""... $ac_c" 1>&6
1379 echo "configure:1380: checking host system type" >&5
1381 host_alias=$host
1382 case "$host_alias" in
1383 NONE)
1384 case $nonopt in
1385 NONE)
1386 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1387 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1388 fi ;;
1389 *) host_alias=$nonopt ;;
1390 esac ;;
1391 esac
1393 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1394 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1395 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1396 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1397 echo "$ac_t""$host" 1>&6
1401 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1402 echo "configure:1403: checking for POSIXized ISC" >&5
1403 if test -d /etc/conf/kconfig.d &&
1404 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1405 then
1406 echo "$ac_t""yes" 1>&6
1407 ISC=yes # If later tests want to check for ISC.
1408 cat >> confdefs.h <<\EOF
1409 #define _POSIX_SOURCE 1
1412 if test "$GCC" = yes; then
1413 CC="$CC -posix"
1414 else
1415 CC="$CC -Xp"
1417 else
1418 echo "$ac_t""no" 1>&6
1419 ISC=
1422 # Extract the first word of "gcc", so it can be a program name with args.
1423 set dummy gcc; ac_word=$2
1424 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1425 echo "configure:1426: checking for $ac_word" >&5
1426 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1427 echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429 if test -n "$CC"; then
1430 ac_cv_prog_CC="$CC" # Let the user override the test.
1431 else
1432 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1433 ac_dummy="$PATH"
1434 for ac_dir in $ac_dummy; do
1435 test -z "$ac_dir" && ac_dir=.
1436 if test -f $ac_dir/$ac_word; then
1437 ac_cv_prog_CC="gcc"
1438 break
1440 done
1441 IFS="$ac_save_ifs"
1444 CC="$ac_cv_prog_CC"
1445 if test -n "$CC"; then
1446 echo "$ac_t""$CC" 1>&6
1447 else
1448 echo "$ac_t""no" 1>&6
1451 if test -z "$CC"; then
1452 # Extract the first word of "cc", so it can be a program name with args.
1453 set dummy cc; ac_word=$2
1454 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1455 echo "configure:1456: checking for $ac_word" >&5
1456 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1457 echo $ac_n "(cached) $ac_c" 1>&6
1458 else
1459 if test -n "$CC"; then
1460 ac_cv_prog_CC="$CC" # Let the user override the test.
1461 else
1462 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1463 ac_prog_rejected=no
1464 ac_dummy="$PATH"
1465 for ac_dir in $ac_dummy; do
1466 test -z "$ac_dir" && ac_dir=.
1467 if test -f $ac_dir/$ac_word; then
1468 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1469 ac_prog_rejected=yes
1470 continue
1472 ac_cv_prog_CC="cc"
1473 break
1475 done
1476 IFS="$ac_save_ifs"
1477 if test $ac_prog_rejected = yes; then
1478 # We found a bogon in the path, so make sure we never use it.
1479 set dummy $ac_cv_prog_CC
1480 shift
1481 if test $# -gt 0; then
1482 # We chose a different compiler from the bogus one.
1483 # However, it has the same basename, so the bogon will be chosen
1484 # first if we set CC to just the basename; use the full file name.
1485 shift
1486 set dummy "$ac_dir/$ac_word" "$@"
1487 shift
1488 ac_cv_prog_CC="$@"
1493 CC="$ac_cv_prog_CC"
1494 if test -n "$CC"; then
1495 echo "$ac_t""$CC" 1>&6
1496 else
1497 echo "$ac_t""no" 1>&6
1500 if test -z "$CC"; then
1501 case "`uname -s`" in
1502 *win32* | *WIN32*)
1503 # Extract the first word of "cl", so it can be a program name with args.
1504 set dummy cl; ac_word=$2
1505 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1506 echo "configure:1507: checking for $ac_word" >&5
1507 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1508 echo $ac_n "(cached) $ac_c" 1>&6
1509 else
1510 if test -n "$CC"; then
1511 ac_cv_prog_CC="$CC" # Let the user override the test.
1512 else
1513 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1514 ac_dummy="$PATH"
1515 for ac_dir in $ac_dummy; do
1516 test -z "$ac_dir" && ac_dir=.
1517 if test -f $ac_dir/$ac_word; then
1518 ac_cv_prog_CC="cl"
1519 break
1521 done
1522 IFS="$ac_save_ifs"
1525 CC="$ac_cv_prog_CC"
1526 if test -n "$CC"; then
1527 echo "$ac_t""$CC" 1>&6
1528 else
1529 echo "$ac_t""no" 1>&6
1532 esac
1534 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1537 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1538 echo "configure:1539: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1540 ac_ext=c
1541 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1542 ac_cpp='$CPP $CPPFLAGS'
1543 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1544 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1545 cross_compiling=$ac_cv_prog_cc_cross
1547 cat > conftest.$ac_ext << EOF
1549 #line 1550 "configure"
1550 #include "confdefs.h"
1552 main(){return(0);}
1554 if { (eval echo configure:1555: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1555 ac_cv_prog_cc_works=yes
1556 # If we can't run a trivial program, we are probably using a cross compiler.
1557 if (./conftest; exit) 2>/dev/null; then
1558 ac_cv_prog_cc_cross=no
1559 else
1560 ac_cv_prog_cc_cross=yes
1562 else
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 ac_cv_prog_cc_works=no
1567 rm -fr conftest*
1568 ac_ext=c
1569 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1570 ac_cpp='$CPP $CPPFLAGS'
1571 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1572 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1573 cross_compiling=$ac_cv_prog_cc_cross
1575 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1576 if test $ac_cv_prog_cc_works = no; then
1577 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1579 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1580 echo "configure:1581: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1581 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1582 cross_compiling=$ac_cv_prog_cc_cross
1584 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1585 echo "configure:1586: checking whether we are using GNU C" >&5
1586 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1587 echo $ac_n "(cached) $ac_c" 1>&6
1588 else
1589 cat > conftest.c <<EOF
1590 #ifdef __GNUC__
1591 yes;
1592 #endif
1594 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1595: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1595 ac_cv_prog_gcc=yes
1596 else
1597 ac_cv_prog_gcc=no
1601 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1603 if test $ac_cv_prog_gcc = yes; then
1604 GCC=yes
1605 else
1606 GCC=
1609 ac_test_CFLAGS="${CFLAGS+set}"
1610 ac_save_CFLAGS="$CFLAGS"
1611 CFLAGS=
1612 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1613 echo "configure:1614: checking whether ${CC-cc} accepts -g" >&5
1614 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1615 echo $ac_n "(cached) $ac_c" 1>&6
1616 else
1617 echo 'void f(){}' > conftest.c
1618 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1619 ac_cv_prog_cc_g=yes
1620 else
1621 ac_cv_prog_cc_g=no
1623 rm -f conftest*
1627 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1628 if test "$ac_test_CFLAGS" = set; then
1629 CFLAGS="$ac_save_CFLAGS"
1630 elif test $ac_cv_prog_cc_g = yes; then
1631 if test "$GCC" = yes; then
1632 CFLAGS="-g -O2"
1633 else
1634 CFLAGS="-g"
1636 else
1637 if test "$GCC" = yes; then
1638 CFLAGS="-O2"
1639 else
1640 CFLAGS=
1644 #AC_PROG_RANLIB
1645 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1646 echo "configure:1647: checking whether ln -s works" >&5
1647 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 rm -f conftestdata
1651 if ln -s X conftestdata 2>/dev/null
1652 then
1653 rm -f conftestdata
1654 ac_cv_prog_LN_S="ln -s"
1655 else
1656 ac_cv_prog_LN_S=ln
1659 LN_S="$ac_cv_prog_LN_S"
1660 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1661 echo "$ac_t""yes" 1>&6
1662 else
1663 echo "$ac_t""no" 1>&6
1666 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1667 echo "configure:1668: checking how to run the C preprocessor" >&5
1668 # On Suns, sometimes $CPP names a directory.
1669 if test -n "$CPP" && test -d "$CPP"; then
1670 CPP=
1672 if test -z "$CPP"; then
1673 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1674 echo $ac_n "(cached) $ac_c" 1>&6
1675 else
1676 # This must be in double quotes, not single quotes, because CPP may get
1677 # substituted into the Makefile and "${CC-cc}" will confuse make.
1678 CPP="${CC-cc} -E"
1679 # On the NeXT, cc -E runs the code through the compiler's parser,
1680 # not just through cpp.
1681 cat > conftest.$ac_ext <<EOF
1682 #line 1683 "configure"
1683 #include "confdefs.h"
1684 #include <assert.h>
1685 Syntax Error
1687 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1688 { (eval echo configure:1689: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1689 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1690 if test -z "$ac_err"; then
1692 else
1693 echo "$ac_err" >&5
1694 echo "configure: failed program was:" >&5
1695 cat conftest.$ac_ext >&5
1696 rm -rf conftest*
1697 CPP="${CC-cc} -E -traditional-cpp"
1698 cat > conftest.$ac_ext <<EOF
1699 #line 1700 "configure"
1700 #include "confdefs.h"
1701 #include <assert.h>
1702 Syntax Error
1704 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1705 { (eval echo configure:1706: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1706 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1707 if test -z "$ac_err"; then
1709 else
1710 echo "$ac_err" >&5
1711 echo "configure: failed program was:" >&5
1712 cat conftest.$ac_ext >&5
1713 rm -rf conftest*
1714 CPP="${CC-cc} -nologo -E"
1715 cat > conftest.$ac_ext <<EOF
1716 #line 1717 "configure"
1717 #include "confdefs.h"
1718 #include <assert.h>
1719 Syntax Error
1721 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1722 { (eval echo configure:1723: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1723 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1724 if test -z "$ac_err"; then
1726 else
1727 echo "$ac_err" >&5
1728 echo "configure: failed program was:" >&5
1729 cat conftest.$ac_ext >&5
1730 rm -rf conftest*
1731 CPP=/lib/cpp
1733 rm -f conftest*
1735 rm -f conftest*
1737 rm -f conftest*
1738 ac_cv_prog_CPP="$CPP"
1740 CPP="$ac_cv_prog_CPP"
1741 else
1742 ac_cv_prog_CPP="$CPP"
1744 echo "$ac_t""$CPP" 1>&6
1746 if test $ac_cv_prog_gcc = yes; then
1747 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1748 echo "configure:1749: checking whether ${CC-cc} needs -traditional" >&5
1749 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1750 echo $ac_n "(cached) $ac_c" 1>&6
1751 else
1752 ac_pattern="Autoconf.*'x'"
1753 cat > conftest.$ac_ext <<EOF
1754 #line 1755 "configure"
1755 #include "confdefs.h"
1756 #include <sgtty.h>
1757 Autoconf TIOCGETP
1759 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1760 egrep "$ac_pattern" >/dev/null 2>&1; then
1761 rm -rf conftest*
1762 ac_cv_prog_gcc_traditional=yes
1763 else
1764 rm -rf conftest*
1765 ac_cv_prog_gcc_traditional=no
1767 rm -f conftest*
1770 if test $ac_cv_prog_gcc_traditional = no; then
1771 cat > conftest.$ac_ext <<EOF
1772 #line 1773 "configure"
1773 #include "confdefs.h"
1774 #include <termio.h>
1775 Autoconf TCGETA
1777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1778 egrep "$ac_pattern" >/dev/null 2>&1; then
1779 rm -rf conftest*
1780 ac_cv_prog_gcc_traditional=yes
1782 rm -f conftest*
1787 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1788 if test $ac_cv_prog_gcc_traditional = yes; then
1789 CC="$CC -traditional"
1796 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1797 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1800 _bindir=`eval echo $bindir`
1801 _bindir=`eval echo $_bindir`
1803 _libdir=`eval echo $libdir`
1804 _libdir=`eval echo $_libdir`
1805 lib_search_path="-L$_libdir"
1807 inc_search_path=`eval echo $includedir`
1808 inc_search_path="-I`eval echo $inc_search_path`"
1813 echo $ac_n "checking for RedHat system""... $ac_c" 1>&6
1814 echo "configure:1815: checking for RedHat system" >&5
1815 wm_check_flag='no :)'
1816 if test -f /etc/redhat-release; then
1817 wm_check_flag=yes
1819 echo "$ac_t""$wm_check_flag" 1>&6
1821 mins_found=no
1822 bugs_found=no
1823 if test "$wm_check_flag" = yes; then
1824 echo
1825 echo "configure: warning: it seems you are using a system packaged by RedHat.
1826 I will now do some checks for RedHat specific bugs. If some check
1827 fail, please read the INSTALL file regarding RedHat, resolve the
1828 problem and retry to configure." 1>&2
1829 echo
1831 # Check old wmaker from RedHat
1833 if test "$prefix" != "/usr/X11R6" -a "$prefix" != "/usr/X11"; then
1834 echo $ac_n "checking for multiple installed wmaker versions""... $ac_c" 1>&6
1835 echo "configure:1836: checking for multiple installed wmaker versions" >&5
1836 if test -f /usr/X11R6/bin/wmaker; then
1837 echo "$ac_t""uh oh" 1>&6
1838 echo "configure: warning: you seem to have an old version of Window Maker
1839 installed at /usr/X11R6/bin. It is recommended that you uninstall
1840 any previously installed packages of WindowMaker before installing
1841 a new one." 1>&2
1842 mins_found=yes
1843 else
1844 echo "$ac_t""no apparent problems" 1>&6
1848 # Check for infamous en_RN bug
1849 # Wont work because autoconf will change LANG in the beginning of the
1850 # script.
1853 #AC_MSG_CHECKING(for silly en_RN joke that only causes headaches)
1854 #echo $LANG
1855 #if test "x$LANG" = xen_RN; then
1856 #AC_MSG_RESULT(uh oh)
1857 #AC_MSG_WARN([the LANG environment variable is set to the en_RN
1858 #locale. Please unset it or you will have mysterious problems when
1859 #using various software packages.])
1860 #bugs_found=yes
1861 #else
1862 #AC_MSG_RESULT(no problem)
1865 # If binary installation path is /usr/local/bin, check if it's in PATH
1867 if test "$_bindir" = "/usr/local/bin"; then
1868 echo $ac_n "checking if /usr/local/bin is in the search PATH""... $ac_c" 1>&6
1869 echo "configure:1870: checking if /usr/local/bin is in the search PATH" >&5
1870 wm_check_flag=no
1871 old_IFS="$IFS"
1872 IFS=":"
1873 for i in $PATH; do
1874 if test "x$i" = "x/usr/local/bin"; then
1875 wm_check_flag=yes
1876 break;
1878 done
1879 IFS="$old_IFS"
1880 if test "$wm_check_flag" = no; then
1881 echo "$ac_t""uh oh" 1>&6
1882 echo "configure: warning: /usr/local/bin is not in the PATH environment variable.
1883 Please resolve the problem." 1>&2
1884 bugs_found=yes
1885 else
1886 echo "$ac_t""no problem" 1>&6
1890 # If library installation path is /usr/local/lib,
1891 # check if it's in /etc/ld.so.conf
1893 if test "$_libdir" = "/usr/local/lib"; then
1894 wm_check_flag=yes
1895 echo $ac_n "checking if /usr/local/lib is in /etc/ld.so.conf""... $ac_c" 1>&6
1896 echo "configure:1897: checking if /usr/local/lib is in /etc/ld.so.conf" >&5
1897 test -z "`grep /usr/local/lib /etc/ld.so.conf`"
1898 test "$?" -eq 0 && wm_check_flag=no
1899 if test "$wm_check_flag" = no; then
1900 echo "$ac_t""uh oh" 1>&6
1901 echo "configure: warning: /usr/local/lib is not in the /etc/ld.so.conf file.
1902 Please add it there." 1>&2
1903 bugs_found=yes
1904 else
1905 echo "$ac_t""no problem" 1>&6
1909 # Check for symbolic links
1911 echo $ac_n "checking for /usr/X11 symbolic link""... $ac_c" 1>&6
1912 echo "configure:1913: checking for /usr/X11 symbolic link" >&5
1913 if test -d "/usr/X11"; then
1914 echo "$ac_t""found" 1>&6
1915 else
1916 echo "$ac_t""uh oh" 1>&6
1917 echo "configure: warning: Please create a symbolic link from /usr/X11R6 to /usr/X11." 1>&2
1918 mins_found=yes
1920 echo $ac_n "checking for /usr/include/X11 symbolic link""... $ac_c" 1>&6
1921 echo "configure:1922: checking for /usr/include/X11 symbolic link" >&5
1922 if test -d "/usr/include/X11"; then
1923 echo "$ac_t""found" 1>&6
1924 else
1925 echo "$ac_t""uh oh" 1>&6
1926 echo "configure: warning: Please create a symbolic link from /usr/X11R6/include/X11
1927 to /usr/include/X11." 1>&2
1928 mins_found=yes
1932 # Check for /lib/cpp
1934 echo $ac_n "checking for /lib/cpp""... $ac_c" 1>&6
1935 echo "configure:1936: checking for /lib/cpp" >&5
1936 if test -f "/lib/cpp"; then
1937 echo "$ac_t""found" 1>&6
1938 else
1939 echo "$ac_t""uh oh" 1>&6
1940 echo "configure: warning: Please create a symbolic link from the cpp (C preprocessor)
1941 program to /lib/cpp" 1>&2
1942 bugs_found=yes
1945 if test "x$bugs_found" = xyes; then
1946 { echo "configure: error: Some bugs that can potentially cause problems during
1947 installation/execution were found. Please correct these problems
1948 and retry later." 1>&2; exit 1; }
1949 exit 1
1950 elif test "x$mins_found" = xyes; then
1951 echo "configure: warning: Some minor problems that might or might not cause
1952 problems were found. If you have any problems during
1953 installation/execution, please resolve the pointed problems and try
1954 to reinstall." 1>&2
1955 echo "Press <Return> to continue."
1956 read blabla
1957 else
1958 echo
1959 echo "None of the RedHat problems known to this script were found."
1960 echo
1966 # Check whether --with-libs-from or --without-libs-from was given.
1967 if test "${with_libs_from+set}" = set; then
1968 withval="$with_libs_from"
1969 lib_search_path="$withval $lib_search_path"
1973 # Check whether --with-incs-from or --without-incs-from was given.
1974 if test "${with_incs_from+set}" = set; then
1975 withval="$with_incs_from"
1976 inc_search_path="$withval $inc_search_path"
1982 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1983 echo "configure:1984: checking for vprintf" >&5
1984 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1985 echo $ac_n "(cached) $ac_c" 1>&6
1986 else
1987 cat > conftest.$ac_ext <<EOF
1988 #line 1989 "configure"
1989 #include "confdefs.h"
1990 /* System header to define __stub macros and hopefully few prototypes,
1991 which can conflict with char vprintf(); below. */
1992 #include <assert.h>
1993 /* Override any gcc2 internal prototype to avoid an error. */
1994 /* We use char because int might match the return type of a gcc2
1995 builtin and then its argument prototype would still apply. */
1996 char vprintf();
1998 int main() {
2000 /* The GNU C library defines this for functions which it implements
2001 to always fail with ENOSYS. Some functions are actually named
2002 something starting with __ and the normal name is an alias. */
2003 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2004 choke me
2005 #else
2006 vprintf();
2007 #endif
2009 ; return 0; }
2011 if { (eval echo configure:2012: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2012 rm -rf conftest*
2013 eval "ac_cv_func_vprintf=yes"
2014 else
2015 echo "configure: failed program was:" >&5
2016 cat conftest.$ac_ext >&5
2017 rm -rf conftest*
2018 eval "ac_cv_func_vprintf=no"
2020 rm -f conftest*
2023 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2024 echo "$ac_t""yes" 1>&6
2025 cat >> confdefs.h <<\EOF
2026 #define HAVE_VPRINTF 1
2029 else
2030 echo "$ac_t""no" 1>&6
2033 if test "$ac_cv_func_vprintf" != yes; then
2034 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2035 echo "configure:2036: checking for _doprnt" >&5
2036 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2037 echo $ac_n "(cached) $ac_c" 1>&6
2038 else
2039 cat > conftest.$ac_ext <<EOF
2040 #line 2041 "configure"
2041 #include "confdefs.h"
2042 /* System header to define __stub macros and hopefully few prototypes,
2043 which can conflict with char _doprnt(); below. */
2044 #include <assert.h>
2045 /* Override any gcc2 internal prototype to avoid an error. */
2046 /* We use char because int might match the return type of a gcc2
2047 builtin and then its argument prototype would still apply. */
2048 char _doprnt();
2050 int main() {
2052 /* The GNU C library defines this for functions which it implements
2053 to always fail with ENOSYS. Some functions are actually named
2054 something starting with __ and the normal name is an alias. */
2055 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2056 choke me
2057 #else
2058 _doprnt();
2059 #endif
2061 ; return 0; }
2063 if { (eval echo configure:2064: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2064 rm -rf conftest*
2065 eval "ac_cv_func__doprnt=yes"
2066 else
2067 echo "configure: failed program was:" >&5
2068 cat conftest.$ac_ext >&5
2069 rm -rf conftest*
2070 eval "ac_cv_func__doprnt=no"
2072 rm -f conftest*
2075 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2076 echo "$ac_t""yes" 1>&6
2077 cat >> confdefs.h <<\EOF
2078 #define HAVE_DOPRNT 1
2081 else
2082 echo "$ac_t""no" 1>&6
2087 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2088 # for constant arguments. Useless!
2089 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2090 echo "configure:2091: checking for working alloca.h" >&5
2091 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2092 echo $ac_n "(cached) $ac_c" 1>&6
2093 else
2094 cat > conftest.$ac_ext <<EOF
2095 #line 2096 "configure"
2096 #include "confdefs.h"
2097 #include <alloca.h>
2098 int main() {
2099 char *p = alloca(2 * sizeof(int));
2100 ; return 0; }
2102 if { (eval echo configure:2103: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2103 rm -rf conftest*
2104 ac_cv_header_alloca_h=yes
2105 else
2106 echo "configure: failed program was:" >&5
2107 cat conftest.$ac_ext >&5
2108 rm -rf conftest*
2109 ac_cv_header_alloca_h=no
2111 rm -f conftest*
2114 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2115 if test $ac_cv_header_alloca_h = yes; then
2116 cat >> confdefs.h <<\EOF
2117 #define HAVE_ALLOCA_H 1
2122 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2123 echo "configure:2124: checking for alloca" >&5
2124 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2125 echo $ac_n "(cached) $ac_c" 1>&6
2126 else
2127 cat > conftest.$ac_ext <<EOF
2128 #line 2129 "configure"
2129 #include "confdefs.h"
2131 #ifdef __GNUC__
2132 # define alloca __builtin_alloca
2133 #else
2134 # ifdef _MSC_VER
2135 # include <malloc.h>
2136 # define alloca _alloca
2137 # else
2138 # if HAVE_ALLOCA_H
2139 # include <alloca.h>
2140 # else
2141 # ifdef _AIX
2142 #pragma alloca
2143 # else
2144 # ifndef alloca /* predefined by HP cc +Olibcalls */
2145 char *alloca ();
2146 # endif
2147 # endif
2148 # endif
2149 # endif
2150 #endif
2152 int main() {
2153 char *p = (char *) alloca(1);
2154 ; return 0; }
2156 if { (eval echo configure:2157: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2157 rm -rf conftest*
2158 ac_cv_func_alloca_works=yes
2159 else
2160 echo "configure: failed program was:" >&5
2161 cat conftest.$ac_ext >&5
2162 rm -rf conftest*
2163 ac_cv_func_alloca_works=no
2165 rm -f conftest*
2168 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2169 if test $ac_cv_func_alloca_works = yes; then
2170 cat >> confdefs.h <<\EOF
2171 #define HAVE_ALLOCA 1
2176 if test $ac_cv_func_alloca_works = no; then
2177 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2178 # that cause trouble. Some versions do not even contain alloca or
2179 # contain a buggy version. If you still want to use their alloca,
2180 # use ar to extract alloca.o from them instead of compiling alloca.c.
2181 ALLOCA=alloca.${ac_objext}
2182 cat >> confdefs.h <<\EOF
2183 #define C_ALLOCA 1
2187 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2188 echo "configure:2189: checking whether alloca needs Cray hooks" >&5
2189 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2190 echo $ac_n "(cached) $ac_c" 1>&6
2191 else
2192 cat > conftest.$ac_ext <<EOF
2193 #line 2194 "configure"
2194 #include "confdefs.h"
2195 #if defined(CRAY) && ! defined(CRAY2)
2196 webecray
2197 #else
2198 wenotbecray
2199 #endif
2202 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2203 egrep "webecray" >/dev/null 2>&1; then
2204 rm -rf conftest*
2205 ac_cv_os_cray=yes
2206 else
2207 rm -rf conftest*
2208 ac_cv_os_cray=no
2210 rm -f conftest*
2214 echo "$ac_t""$ac_cv_os_cray" 1>&6
2215 if test $ac_cv_os_cray = yes; then
2216 for ac_func in _getb67 GETB67 getb67; do
2217 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2218 echo "configure:2219: checking for $ac_func" >&5
2219 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2220 echo $ac_n "(cached) $ac_c" 1>&6
2221 else
2222 cat > conftest.$ac_ext <<EOF
2223 #line 2224 "configure"
2224 #include "confdefs.h"
2225 /* System header to define __stub macros and hopefully few prototypes,
2226 which can conflict with char $ac_func(); below. */
2227 #include <assert.h>
2228 /* Override any gcc2 internal prototype to avoid an error. */
2229 /* We use char because int might match the return type of a gcc2
2230 builtin and then its argument prototype would still apply. */
2231 char $ac_func();
2233 int main() {
2235 /* The GNU C library defines this for functions which it implements
2236 to always fail with ENOSYS. Some functions are actually named
2237 something starting with __ and the normal name is an alias. */
2238 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2239 choke me
2240 #else
2241 $ac_func();
2242 #endif
2244 ; return 0; }
2246 if { (eval echo configure:2247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2247 rm -rf conftest*
2248 eval "ac_cv_func_$ac_func=yes"
2249 else
2250 echo "configure: failed program was:" >&5
2251 cat conftest.$ac_ext >&5
2252 rm -rf conftest*
2253 eval "ac_cv_func_$ac_func=no"
2255 rm -f conftest*
2258 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2259 echo "$ac_t""yes" 1>&6
2260 cat >> confdefs.h <<EOF
2261 #define CRAY_STACKSEG_END $ac_func
2264 break
2265 else
2266 echo "$ac_t""no" 1>&6
2269 done
2272 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2273 echo "configure:2274: checking stack direction for C alloca" >&5
2274 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2275 echo $ac_n "(cached) $ac_c" 1>&6
2276 else
2277 if test "$cross_compiling" = yes; then
2278 ac_cv_c_stack_direction=0
2279 else
2280 cat > conftest.$ac_ext <<EOF
2281 #line 2282 "configure"
2282 #include "confdefs.h"
2283 find_stack_direction ()
2285 static char *addr = 0;
2286 auto char dummy;
2287 if (addr == 0)
2289 addr = &dummy;
2290 return find_stack_direction ();
2292 else
2293 return (&dummy > addr) ? 1 : -1;
2295 main ()
2297 exit (find_stack_direction() < 0);
2300 if { (eval echo configure:2301: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2301 then
2302 ac_cv_c_stack_direction=1
2303 else
2304 echo "configure: failed program was:" >&5
2305 cat conftest.$ac_ext >&5
2306 rm -fr conftest*
2307 ac_cv_c_stack_direction=-1
2309 rm -fr conftest*
2314 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2315 cat >> confdefs.h <<EOF
2316 #define STACK_DIRECTION $ac_cv_c_stack_direction
2321 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2323 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2324 echo "configure:2325: checking for $ac_func" >&5
2325 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2326 echo $ac_n "(cached) $ac_c" 1>&6
2327 else
2328 cat > conftest.$ac_ext <<EOF
2329 #line 2330 "configure"
2330 #include "confdefs.h"
2331 /* System header to define __stub macros and hopefully few prototypes,
2332 which can conflict with char $ac_func(); below. */
2333 #include <assert.h>
2334 /* Override any gcc2 internal prototype to avoid an error. */
2335 /* We use char because int might match the return type of a gcc2
2336 builtin and then its argument prototype would still apply. */
2337 char $ac_func();
2339 int main() {
2341 /* The GNU C library defines this for functions which it implements
2342 to always fail with ENOSYS. Some functions are actually named
2343 something starting with __ and the normal name is an alias. */
2344 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2345 choke me
2346 #else
2347 $ac_func();
2348 #endif
2350 ; return 0; }
2352 if { (eval echo configure:2353: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2353 rm -rf conftest*
2354 eval "ac_cv_func_$ac_func=yes"
2355 else
2356 echo "configure: failed program was:" >&5
2357 cat conftest.$ac_ext >&5
2358 rm -rf conftest*
2359 eval "ac_cv_func_$ac_func=no"
2361 rm -f conftest*
2364 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2365 echo "$ac_t""yes" 1>&6
2366 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2367 cat >> confdefs.h <<EOF
2368 #define $ac_tr_func 1
2371 else
2372 echo "$ac_t""no" 1>&6
2374 done
2377 if test "x$CPP_PATH" = x; then
2378 # Extract the first word of "cpp", so it can be a program name with args.
2379 set dummy cpp; ac_word=$2
2380 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2381 echo "configure:2382: checking for $ac_word" >&5
2382 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2383 echo $ac_n "(cached) $ac_c" 1>&6
2384 else
2385 case "$CPP_PATH" in
2387 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2389 ?:/*)
2390 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2393 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2394 ac_dummy="/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH"
2395 for ac_dir in $ac_dummy; do
2396 test -z "$ac_dir" && ac_dir=.
2397 if test -f $ac_dir/$ac_word; then
2398 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2399 break
2401 done
2402 IFS="$ac_save_ifs"
2403 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2405 esac
2407 CPP_PATH="$ac_cv_path_CPP_PATH"
2408 if test -n "$CPP_PATH"; then
2409 echo "$ac_t""$CPP_PATH" 1>&6
2410 else
2411 echo "$ac_t""no" 1>&6
2416 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2417 if test "$GCC" = "yes"; then
2418 CPP_PATH="gcc -E -x c"
2419 else
2420 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2421 CPP_PATH="$CPP_PATH -B"
2422 else
2423 echo "cpp, the C preprocessor was not found in your system."
2424 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2425 exit
2429 cat >> confdefs.h <<EOF
2430 #define CPP_PATH "$CPP_PATH"
2436 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2437 echo "configure:2438: checking for sys/wait.h that is POSIX.1 compatible" >&5
2438 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2439 echo $ac_n "(cached) $ac_c" 1>&6
2440 else
2441 cat > conftest.$ac_ext <<EOF
2442 #line 2443 "configure"
2443 #include "confdefs.h"
2444 #include <sys/types.h>
2445 #include <sys/wait.h>
2446 #ifndef WEXITSTATUS
2447 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2448 #endif
2449 #ifndef WIFEXITED
2450 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2451 #endif
2452 int main() {
2453 int s;
2454 wait (&s);
2455 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2456 ; return 0; }
2458 if { (eval echo configure:2459: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2459 rm -rf conftest*
2460 ac_cv_header_sys_wait_h=yes
2461 else
2462 echo "configure: failed program was:" >&5
2463 cat conftest.$ac_ext >&5
2464 rm -rf conftest*
2465 ac_cv_header_sys_wait_h=no
2467 rm -f conftest*
2470 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2471 if test $ac_cv_header_sys_wait_h = yes; then
2472 cat >> confdefs.h <<\EOF
2473 #define HAVE_SYS_WAIT_H 1
2478 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2479 echo "configure:2480: checking whether time.h and sys/time.h may both be included" >&5
2480 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2481 echo $ac_n "(cached) $ac_c" 1>&6
2482 else
2483 cat > conftest.$ac_ext <<EOF
2484 #line 2485 "configure"
2485 #include "confdefs.h"
2486 #include <sys/types.h>
2487 #include <sys/time.h>
2488 #include <time.h>
2489 int main() {
2490 struct tm *tp;
2491 ; return 0; }
2493 if { (eval echo configure:2494: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2494 rm -rf conftest*
2495 ac_cv_header_time=yes
2496 else
2497 echo "configure: failed program was:" >&5
2498 cat conftest.$ac_ext >&5
2499 rm -rf conftest*
2500 ac_cv_header_time=no
2502 rm -f conftest*
2505 echo "$ac_t""$ac_cv_header_time" 1>&6
2506 if test $ac_cv_header_time = yes; then
2507 cat >> confdefs.h <<\EOF
2508 #define TIME_WITH_SYS_TIME 1
2513 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2514 libintl.h sys/select.h poll.h
2516 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2517 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2518 echo "configure:2519: checking for $ac_hdr" >&5
2519 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2520 echo $ac_n "(cached) $ac_c" 1>&6
2521 else
2522 cat > conftest.$ac_ext <<EOF
2523 #line 2524 "configure"
2524 #include "confdefs.h"
2525 #include <$ac_hdr>
2527 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2528 { (eval echo configure:2529: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2529 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2530 if test -z "$ac_err"; then
2531 rm -rf conftest*
2532 eval "ac_cv_header_$ac_safe=yes"
2533 else
2534 echo "$ac_err" >&5
2535 echo "configure: failed program was:" >&5
2536 cat conftest.$ac_ext >&5
2537 rm -rf conftest*
2538 eval "ac_cv_header_$ac_safe=no"
2540 rm -f conftest*
2542 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2543 echo "$ac_t""yes" 1>&6
2544 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2545 cat >> confdefs.h <<EOF
2546 #define $ac_tr_hdr 1
2549 else
2550 echo "$ac_t""no" 1>&6
2552 done
2557 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2558 echo "configure:2559: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2559 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2560 echo $ac_n "(cached) $ac_c" 1>&6
2561 else
2562 cat > conftest.$ac_ext <<EOF
2563 #line 2564 "configure"
2564 #include "confdefs.h"
2565 #include <sys/types.h>
2566 #include <signal.h>
2567 /* NetBSD declares sys_siglist in unistd.h. */
2568 #ifdef HAVE_UNISTD_H
2569 #include <unistd.h>
2570 #endif
2571 int main() {
2572 char *msg = *(sys_siglist + 1);
2573 ; return 0; }
2575 if { (eval echo configure:2576: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2576 rm -rf conftest*
2577 ac_cv_decl_sys_siglist=yes
2578 else
2579 echo "configure: failed program was:" >&5
2580 cat conftest.$ac_ext >&5
2581 rm -rf conftest*
2582 ac_cv_decl_sys_siglist=no
2584 rm -f conftest*
2587 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2588 if test $ac_cv_decl_sys_siglist = yes; then
2589 cat >> confdefs.h <<\EOF
2590 #define SYS_SIGLIST_DECLARED 1
2595 echo $ac_n "checking for working const""... $ac_c" 1>&6
2596 echo "configure:2597: checking for working const" >&5
2597 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2598 echo $ac_n "(cached) $ac_c" 1>&6
2599 else
2600 cat > conftest.$ac_ext <<EOF
2601 #line 2602 "configure"
2602 #include "confdefs.h"
2604 int main() {
2606 /* Ultrix mips cc rejects this. */
2607 typedef int charset[2]; const charset x;
2608 /* SunOS 4.1.1 cc rejects this. */
2609 char const *const *ccp;
2610 char **p;
2611 /* NEC SVR4.0.2 mips cc rejects this. */
2612 struct point {int x, y;};
2613 static struct point const zero = {0,0};
2614 /* AIX XL C 1.02.0.0 rejects this.
2615 It does not let you subtract one const X* pointer from another in an arm
2616 of an if-expression whose if-part is not a constant expression */
2617 const char *g = "string";
2618 ccp = &g + (g ? g-g : 0);
2619 /* HPUX 7.0 cc rejects these. */
2620 ++ccp;
2621 p = (char**) ccp;
2622 ccp = (char const *const *) p;
2623 { /* SCO 3.2v4 cc rejects this. */
2624 char *t;
2625 char const *s = 0 ? (char *) 0 : (char const *) 0;
2627 *t++ = 0;
2629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2630 int x[] = {25, 17};
2631 const int *foo = &x[0];
2632 ++foo;
2634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2635 typedef const int *iptr;
2636 iptr p = 0;
2637 ++p;
2639 { /* AIX XL C 1.02.0.0 rejects this saying
2640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2641 struct s { int j; const int *ap[3]; };
2642 struct s *b; b->j = 5;
2644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2645 const int foo = 10;
2648 ; return 0; }
2650 if { (eval echo configure:2651: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2651 rm -rf conftest*
2652 ac_cv_c_const=yes
2653 else
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 rm -rf conftest*
2657 ac_cv_c_const=no
2659 rm -f conftest*
2662 echo "$ac_t""$ac_cv_c_const" 1>&6
2663 if test $ac_cv_c_const = no; then
2664 cat >> confdefs.h <<\EOF
2665 #define const
2670 #AC_TYPE_SIZE_T
2671 #AC_TYPE_PID_T
2672 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2673 echo "configure:2674: checking return type of signal handlers" >&5
2674 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2675 echo $ac_n "(cached) $ac_c" 1>&6
2676 else
2677 cat > conftest.$ac_ext <<EOF
2678 #line 2679 "configure"
2679 #include "confdefs.h"
2680 #include <sys/types.h>
2681 #include <signal.h>
2682 #ifdef signal
2683 #undef signal
2684 #endif
2685 #ifdef __cplusplus
2686 extern "C" void (*signal (int, void (*)(int)))(int);
2687 #else
2688 void (*signal ()) ();
2689 #endif
2691 int main() {
2692 int i;
2693 ; return 0; }
2695 if { (eval echo configure:2696: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2696 rm -rf conftest*
2697 ac_cv_type_signal=void
2698 else
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2701 rm -rf conftest*
2702 ac_cv_type_signal=int
2704 rm -f conftest*
2707 echo "$ac_t""$ac_cv_type_signal" 1>&6
2708 cat >> confdefs.h <<EOF
2709 #define RETSIGTYPE $ac_cv_type_signal
2720 INTLIBS=""
2723 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2724 echo "configure:2725: checking for gettext" >&5
2725 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2726 echo $ac_n "(cached) $ac_c" 1>&6
2727 else
2728 cat > conftest.$ac_ext <<EOF
2729 #line 2730 "configure"
2730 #include "confdefs.h"
2731 /* System header to define __stub macros and hopefully few prototypes,
2732 which can conflict with char gettext(); below. */
2733 #include <assert.h>
2734 /* Override any gcc2 internal prototype to avoid an error. */
2735 /* We use char because int might match the return type of a gcc2
2736 builtin and then its argument prototype would still apply. */
2737 char gettext();
2739 int main() {
2741 /* The GNU C library defines this for functions which it implements
2742 to always fail with ENOSYS. Some functions are actually named
2743 something starting with __ and the normal name is an alias. */
2744 #if defined (__stub_gettext) || defined (__stub___gettext)
2745 choke me
2746 #else
2747 gettext();
2748 #endif
2750 ; return 0; }
2752 if { (eval echo configure:2753: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2753 rm -rf conftest*
2754 eval "ac_cv_func_gettext=yes"
2755 else
2756 echo "configure: failed program was:" >&5
2757 cat conftest.$ac_ext >&5
2758 rm -rf conftest*
2759 eval "ac_cv_func_gettext=no"
2761 rm -f conftest*
2764 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2765 echo "$ac_t""yes" 1>&6
2766 HAVEGETTEXT="yes"
2767 else
2768 echo "$ac_t""no" 1>&6
2769 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2770 echo "configure:2771: checking for gettext in -lintl" >&5
2771 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2772 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2773 echo $ac_n "(cached) $ac_c" 1>&6
2774 else
2775 ac_save_LIBS="$LIBS"
2776 LIBS="-lintl $LIBS"
2777 cat > conftest.$ac_ext <<EOF
2778 #line 2779 "configure"
2779 #include "confdefs.h"
2780 /* Override any gcc2 internal prototype to avoid an error. */
2781 /* We use char because int might match the return type of a gcc2
2782 builtin and then its argument prototype would still apply. */
2783 char gettext();
2785 int main() {
2786 gettext()
2787 ; return 0; }
2789 if { (eval echo configure:2790: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2790 rm -rf conftest*
2791 eval "ac_cv_lib_$ac_lib_var=yes"
2792 else
2793 echo "configure: failed program was:" >&5
2794 cat conftest.$ac_ext >&5
2795 rm -rf conftest*
2796 eval "ac_cv_lib_$ac_lib_var=no"
2798 rm -f conftest*
2799 LIBS="$ac_save_LIBS"
2802 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2803 echo "$ac_t""yes" 1>&6
2804 INTLIBS="-lintl" HAVEGETTEXT="yes"
2805 else
2806 echo "$ac_t""no" 1>&6
2807 INTLIBS=""
2813 # Extract the first word of "xgettext", so it can be a program name with args.
2814 set dummy xgettext; ac_word=$2
2815 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2816 echo "configure:2817: checking for $ac_word" >&5
2817 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2818 echo $ac_n "(cached) $ac_c" 1>&6
2819 else
2820 if test -n "$XGETTEXT"; then
2821 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2822 else
2823 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2824 ac_dummy="$PATH"
2825 for ac_dir in $ac_dummy; do
2826 test -z "$ac_dir" && ac_dir=.
2827 if test -f $ac_dir/$ac_word; then
2828 ac_cv_prog_XGETTEXT="xgettext"
2829 break
2831 done
2832 IFS="$ac_save_ifs"
2835 XGETTEXT="$ac_cv_prog_XGETTEXT"
2836 if test -n "$XGETTEXT"; then
2837 echo "$ac_t""$XGETTEXT" 1>&6
2838 else
2839 echo "$ac_t""no" 1>&6
2843 if test "$XGETTEXT" != ""; then
2844 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2845 echo "xgettext isn't GNU version"
2846 XGETTEXT=""
2850 if test "$LINGUAS" != ""; then
2851 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2852 cat >> confdefs.h <<\EOF
2853 #define I18N 1
2856 PO=""
2857 # if test "$LINGUAS" = ""; then
2858 # ling=` (cd src/po; /bin/ls *.po) `
2859 # for l in $ling; do
2860 # lcode=`basename $l .po`
2861 # LINGUAS="$LINGUAS $lcode"
2862 # done
2863 # fi
2864 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2865 else
2866 LINGUAS=""
2867 PO=""
2868 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2870 else
2871 INTLIBS=""
2872 MOFILES=""
2873 WPMOFILES=""
2874 PO=""
2879 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro dk zh_TW.Big5"
2880 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5"
2882 for lang in $LINGUAS; do
2883 ok=0
2884 for l in $supported_locales; do
2885 if test "$l" = "$lang"; then
2886 ok=1
2887 break
2889 done
2890 if test "$ok" = 1; then
2891 MOFILES="$MOFILES $lang.mo"
2892 else
2893 echo "Locale $lang is not supported."
2895 ok=0
2896 for l in $supported_wprefs_locales; do
2897 if test "$l" = "$lang"; then
2898 ok=1
2899 break
2901 done
2902 if test "$ok" = 1; then
2903 WPMOFILES="$WPMOFILES $lang.mo"
2905 done
2908 I18n=no
2909 # Check whether --enable-kanji or --disable-kanji was given.
2910 if test "${enable_kanji+set}" = set; then
2911 enableval="$enable_kanji"
2913 else
2914 enable_kanji=no
2918 if test "$enable_kanji" = yes; then
2919 case $host_os in
2920 freebsd*)
2921 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2922 echo "configure:2923: checking for setlocale in -lxpg4" >&5
2923 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2924 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2925 echo $ac_n "(cached) $ac_c" 1>&6
2926 else
2927 ac_save_LIBS="$LIBS"
2928 LIBS="-lxpg4 $LIBS"
2929 cat > conftest.$ac_ext <<EOF
2930 #line 2931 "configure"
2931 #include "confdefs.h"
2932 /* Override any gcc2 internal prototype to avoid an error. */
2933 /* We use char because int might match the return type of a gcc2
2934 builtin and then its argument prototype would still apply. */
2935 char setlocale();
2937 int main() {
2938 setlocale()
2939 ; return 0; }
2941 if { (eval echo configure:2942: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2942 rm -rf conftest*
2943 eval "ac_cv_lib_$ac_lib_var=yes"
2944 else
2945 echo "configure: failed program was:" >&5
2946 cat conftest.$ac_ext >&5
2947 rm -rf conftest*
2948 eval "ac_cv_lib_$ac_lib_var=no"
2950 rm -f conftest*
2951 LIBS="$ac_save_LIBS"
2954 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2955 echo "$ac_t""yes" 1>&6
2956 LIBS="$LIBS -lxpg4"
2957 else
2958 echo "$ac_t""no" 1>&6
2963 esac
2964 cat >> confdefs.h <<\EOF
2965 #define I18N_MB 1
2972 # Check whether --with-nlsdir or --without-nlsdir was given.
2973 if test "${with_nlsdir+set}" = set; then
2974 withval="$with_nlsdir"
2980 if test "x$NLSDIR" = "x"; then
2981 if test "x$with_nlsdir" != "x"; then
2982 NLSDIR=$with_nlsdir
2983 else
2984 NLSDIR='$(prefix)/lib/locale'
2997 # Check whether --enable-gnome or --disable-gnome was given.
2998 if test "${enable_gnome+set}" = set; then
2999 enableval="$enable_gnome"
3000 if test x$enableval = xyes; then
3001 cat >> confdefs.h <<\EOF
3002 #define GNOME_STUFF 1
3005 gnome_on=yes
3011 # Check whether --enable-kde or --disable-kde was given.
3012 if test "${enable_kde+set}" = set; then
3013 enableval="$enable_kde"
3014 if test x$enableval = xyes; then
3015 cat >> confdefs.h <<\EOF
3016 #define KWM_HINTS 1
3019 kde_on=yes
3025 # Check whether --enable-openlook or --disable-openlook was given.
3026 if test "${enable_openlook+set}" = set; then
3027 enableval="$enable_openlook"
3028 if test x$enableval = xyes; then
3029 cat >> confdefs.h <<\EOF
3030 #define OLWM_HINTS 1
3033 openlook_on=yes
3039 # Check whether --enable-lite or --disable-lite was given.
3040 if test "${enable_lite+set}" = set; then
3041 enableval="$enable_lite"
3042 if test x$enableval = xyes; then
3043 LITE=yes
3044 cat >> confdefs.h <<\EOF
3045 #define LITE 1
3056 # If we find X, set shell vars x_includes and x_libraries to the
3057 # paths, otherwise set no_x=yes.
3058 # Uses ac_ vars as temps to allow command line to override cache and checks.
3059 # --without-x overrides everything else, but does not touch the cache.
3060 echo $ac_n "checking for X""... $ac_c" 1>&6
3061 echo "configure:3062: checking for X" >&5
3063 # Check whether --with-x or --without-x was given.
3064 if test "${with_x+set}" = set; then
3065 withval="$with_x"
3069 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3070 if test "x$with_x" = xno; then
3071 # The user explicitly disabled X.
3072 have_x=disabled
3073 else
3074 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3075 # Both variables are already set.
3076 have_x=yes
3077 else
3078 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3079 echo $ac_n "(cached) $ac_c" 1>&6
3080 else
3081 # One or both of the vars are not set, and there is no cached value.
3082 ac_x_includes=NO ac_x_libraries=NO
3083 rm -fr conftestdir
3084 if mkdir conftestdir; then
3085 cd conftestdir
3086 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3087 cat > Imakefile <<'EOF'
3088 acfindx:
3089 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3091 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3092 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3093 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3094 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3095 for ac_extension in a so sl; do
3096 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3097 test -f $ac_im_libdir/libX11.$ac_extension; then
3098 ac_im_usrlibdir=$ac_im_libdir; break
3100 done
3101 # Screen out bogus values from the imake configuration. They are
3102 # bogus both because they are the default anyway, and because
3103 # using them would break gcc on systems where it needs fixed includes.
3104 case "$ac_im_incroot" in
3105 /usr/include) ;;
3106 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3107 esac
3108 case "$ac_im_usrlibdir" in
3109 /usr/lib | /lib) ;;
3110 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3111 esac
3113 cd ..
3114 rm -fr conftestdir
3117 if test "$ac_x_includes" = NO; then
3118 # Guess where to find include files, by looking for this one X11 .h file.
3119 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3121 # First, try using that file with no special directory specified.
3122 cat > conftest.$ac_ext <<EOF
3123 #line 3124 "configure"
3124 #include "confdefs.h"
3125 #include <$x_direct_test_include>
3127 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3128 { (eval echo configure:3129: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3129 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3130 if test -z "$ac_err"; then
3131 rm -rf conftest*
3132 # We can compile using X headers with no special include directory.
3133 ac_x_includes=
3134 else
3135 echo "$ac_err" >&5
3136 echo "configure: failed program was:" >&5
3137 cat conftest.$ac_ext >&5
3138 rm -rf conftest*
3139 # Look for the header file in a standard set of common directories.
3140 # Check X11 before X11Rn because it is often a symlink to the current release.
3141 for ac_dir in \
3142 /usr/X11/include \
3143 /usr/X11R6/include \
3144 /usr/X11R5/include \
3145 /usr/X11R4/include \
3147 /usr/include/X11 \
3148 /usr/include/X11R6 \
3149 /usr/include/X11R5 \
3150 /usr/include/X11R4 \
3152 /usr/local/X11/include \
3153 /usr/local/X11R6/include \
3154 /usr/local/X11R5/include \
3155 /usr/local/X11R4/include \
3157 /usr/local/include/X11 \
3158 /usr/local/include/X11R6 \
3159 /usr/local/include/X11R5 \
3160 /usr/local/include/X11R4 \
3162 /usr/X386/include \
3163 /usr/x386/include \
3164 /usr/XFree86/include/X11 \
3166 /usr/include \
3167 /usr/local/include \
3168 /usr/unsupported/include \
3169 /usr/athena/include \
3170 /usr/local/x11r5/include \
3171 /usr/lpp/Xamples/include \
3173 /usr/openwin/include \
3174 /usr/openwin/share/include \
3177 if test -r "$ac_dir/$x_direct_test_include"; then
3178 ac_x_includes=$ac_dir
3179 break
3181 done
3183 rm -f conftest*
3184 fi # $ac_x_includes = NO
3186 if test "$ac_x_libraries" = NO; then
3187 # Check for the libraries.
3189 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3190 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3192 # See if we find them without any special options.
3193 # Don't add to $LIBS permanently.
3194 ac_save_LIBS="$LIBS"
3195 LIBS="-l$x_direct_test_library $LIBS"
3196 cat > conftest.$ac_ext <<EOF
3197 #line 3198 "configure"
3198 #include "confdefs.h"
3200 int main() {
3201 ${x_direct_test_function}()
3202 ; return 0; }
3204 if { (eval echo configure:3205: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3205 rm -rf conftest*
3206 LIBS="$ac_save_LIBS"
3207 # We can link X programs with no special library path.
3208 ac_x_libraries=
3209 else
3210 echo "configure: failed program was:" >&5
3211 cat conftest.$ac_ext >&5
3212 rm -rf conftest*
3213 LIBS="$ac_save_LIBS"
3214 # First see if replacing the include by lib works.
3215 # Check X11 before X11Rn because it is often a symlink to the current release.
3216 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3217 /usr/X11/lib \
3218 /usr/X11R6/lib \
3219 /usr/X11R5/lib \
3220 /usr/X11R4/lib \
3222 /usr/lib/X11 \
3223 /usr/lib/X11R6 \
3224 /usr/lib/X11R5 \
3225 /usr/lib/X11R4 \
3227 /usr/local/X11/lib \
3228 /usr/local/X11R6/lib \
3229 /usr/local/X11R5/lib \
3230 /usr/local/X11R4/lib \
3232 /usr/local/lib/X11 \
3233 /usr/local/lib/X11R6 \
3234 /usr/local/lib/X11R5 \
3235 /usr/local/lib/X11R4 \
3237 /usr/X386/lib \
3238 /usr/x386/lib \
3239 /usr/XFree86/lib/X11 \
3241 /usr/lib \
3242 /usr/local/lib \
3243 /usr/unsupported/lib \
3244 /usr/athena/lib \
3245 /usr/local/x11r5/lib \
3246 /usr/lpp/Xamples/lib \
3247 /lib/usr/lib/X11 \
3249 /usr/openwin/lib \
3250 /usr/openwin/share/lib \
3253 for ac_extension in a so sl; do
3254 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3255 ac_x_libraries=$ac_dir
3256 break 2
3258 done
3259 done
3261 rm -f conftest*
3262 fi # $ac_x_libraries = NO
3264 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3265 # Didn't find X anywhere. Cache the known absence of X.
3266 ac_cv_have_x="have_x=no"
3267 else
3268 # Record where we found X for the cache.
3269 ac_cv_have_x="have_x=yes \
3270 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3274 eval "$ac_cv_have_x"
3275 fi # $with_x != no
3277 if test "$have_x" != yes; then
3278 echo "$ac_t""$have_x" 1>&6
3279 no_x=yes
3280 else
3281 # If each of the values was on the command line, it overrides each guess.
3282 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3283 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3284 # Update the cache value to reflect the command line values.
3285 ac_cv_have_x="have_x=yes \
3286 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3287 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3290 if test "$no_x" = yes; then
3291 # Not all programs may use this symbol, but it does not hurt to define it.
3292 cat >> confdefs.h <<\EOF
3293 #define X_DISPLAY_MISSING 1
3296 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3297 else
3298 if test -n "$x_includes"; then
3299 X_CFLAGS="$X_CFLAGS -I$x_includes"
3302 # It would also be nice to do this for all -L options, not just this one.
3303 if test -n "$x_libraries"; then
3304 X_LIBS="$X_LIBS -L$x_libraries"
3305 # For Solaris; some versions of Sun CC require a space after -R and
3306 # others require no space. Words are not sufficient . . . .
3307 case "`(uname -sr) 2>/dev/null`" in
3308 "SunOS 5"*)
3309 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3310 echo "configure:3311: checking whether -R must be followed by a space" >&5
3311 ac_xsave_LIBS="$LIBS"; LIBS="$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_nospace=yes
3323 else
3324 echo "configure: failed program was:" >&5
3325 cat conftest.$ac_ext >&5
3326 rm -rf conftest*
3327 ac_R_nospace=no
3329 rm -f conftest*
3330 if test $ac_R_nospace = yes; then
3331 echo "$ac_t""no" 1>&6
3332 X_LIBS="$X_LIBS -R$x_libraries"
3333 else
3334 LIBS="$ac_xsave_LIBS -R $x_libraries"
3335 cat > conftest.$ac_ext <<EOF
3336 #line 3337 "configure"
3337 #include "confdefs.h"
3339 int main() {
3341 ; return 0; }
3343 if { (eval echo configure:3344: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3344 rm -rf conftest*
3345 ac_R_space=yes
3346 else
3347 echo "configure: failed program was:" >&5
3348 cat conftest.$ac_ext >&5
3349 rm -rf conftest*
3350 ac_R_space=no
3352 rm -f conftest*
3353 if test $ac_R_space = yes; then
3354 echo "$ac_t""yes" 1>&6
3355 X_LIBS="$X_LIBS -R $x_libraries"
3356 else
3357 echo "$ac_t""neither works" 1>&6
3360 LIBS="$ac_xsave_LIBS"
3361 esac
3364 # Check for system-dependent libraries X programs must link with.
3365 # Do this before checking for the system-independent R6 libraries
3366 # (-lICE), since we may need -lsocket or whatever for X linking.
3368 if test "$ISC" = yes; then
3369 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3370 else
3371 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3372 # libraries were built with DECnet support. And karl@cs.umb.edu says
3373 # the Alpha needs dnet_stub (dnet does not exist).
3374 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3375 echo "configure:3376: checking for dnet_ntoa in -ldnet" >&5
3376 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3378 echo $ac_n "(cached) $ac_c" 1>&6
3379 else
3380 ac_save_LIBS="$LIBS"
3381 LIBS="-ldnet $LIBS"
3382 cat > conftest.$ac_ext <<EOF
3383 #line 3384 "configure"
3384 #include "confdefs.h"
3385 /* Override any gcc2 internal prototype to avoid an error. */
3386 /* We use char because int might match the return type of a gcc2
3387 builtin and then its argument prototype would still apply. */
3388 char dnet_ntoa();
3390 int main() {
3391 dnet_ntoa()
3392 ; return 0; }
3394 if { (eval echo configure:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3395 rm -rf conftest*
3396 eval "ac_cv_lib_$ac_lib_var=yes"
3397 else
3398 echo "configure: failed program was:" >&5
3399 cat conftest.$ac_ext >&5
3400 rm -rf conftest*
3401 eval "ac_cv_lib_$ac_lib_var=no"
3403 rm -f conftest*
3404 LIBS="$ac_save_LIBS"
3407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3408 echo "$ac_t""yes" 1>&6
3409 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3410 else
3411 echo "$ac_t""no" 1>&6
3414 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3415 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3416 echo "configure:3417: checking for dnet_ntoa in -ldnet_stub" >&5
3417 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3418 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3420 else
3421 ac_save_LIBS="$LIBS"
3422 LIBS="-ldnet_stub $LIBS"
3423 cat > conftest.$ac_ext <<EOF
3424 #line 3425 "configure"
3425 #include "confdefs.h"
3426 /* Override any gcc2 internal prototype to avoid an error. */
3427 /* We use char because int might match the return type of a gcc2
3428 builtin and then its argument prototype would still apply. */
3429 char dnet_ntoa();
3431 int main() {
3432 dnet_ntoa()
3433 ; return 0; }
3435 if { (eval echo configure:3436: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3436 rm -rf conftest*
3437 eval "ac_cv_lib_$ac_lib_var=yes"
3438 else
3439 echo "configure: failed program was:" >&5
3440 cat conftest.$ac_ext >&5
3441 rm -rf conftest*
3442 eval "ac_cv_lib_$ac_lib_var=no"
3444 rm -f conftest*
3445 LIBS="$ac_save_LIBS"
3448 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3449 echo "$ac_t""yes" 1>&6
3450 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3451 else
3452 echo "$ac_t""no" 1>&6
3457 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3458 # to get the SysV transport functions.
3459 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3460 # needs -lnsl.
3461 # The nsl library prevents programs from opening the X display
3462 # on Irix 5.2, according to dickey@clark.net.
3463 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3464 echo "configure:3465: checking for gethostbyname" >&5
3465 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3466 echo $ac_n "(cached) $ac_c" 1>&6
3467 else
3468 cat > conftest.$ac_ext <<EOF
3469 #line 3470 "configure"
3470 #include "confdefs.h"
3471 /* System header to define __stub macros and hopefully few prototypes,
3472 which can conflict with char gethostbyname(); below. */
3473 #include <assert.h>
3474 /* Override any gcc2 internal prototype to avoid an error. */
3475 /* We use char because int might match the return type of a gcc2
3476 builtin and then its argument prototype would still apply. */
3477 char gethostbyname();
3479 int main() {
3481 /* The GNU C library defines this for functions which it implements
3482 to always fail with ENOSYS. Some functions are actually named
3483 something starting with __ and the normal name is an alias. */
3484 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3485 choke me
3486 #else
3487 gethostbyname();
3488 #endif
3490 ; return 0; }
3492 if { (eval echo configure:3493: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3493 rm -rf conftest*
3494 eval "ac_cv_func_gethostbyname=yes"
3495 else
3496 echo "configure: failed program was:" >&5
3497 cat conftest.$ac_ext >&5
3498 rm -rf conftest*
3499 eval "ac_cv_func_gethostbyname=no"
3501 rm -f conftest*
3504 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3505 echo "$ac_t""yes" 1>&6
3507 else
3508 echo "$ac_t""no" 1>&6
3511 if test $ac_cv_func_gethostbyname = no; then
3512 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3513 echo "configure:3514: checking for gethostbyname in -lnsl" >&5
3514 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3515 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3516 echo $ac_n "(cached) $ac_c" 1>&6
3517 else
3518 ac_save_LIBS="$LIBS"
3519 LIBS="-lnsl $LIBS"
3520 cat > conftest.$ac_ext <<EOF
3521 #line 3522 "configure"
3522 #include "confdefs.h"
3523 /* Override any gcc2 internal prototype to avoid an error. */
3524 /* We use char because int might match the return type of a gcc2
3525 builtin and then its argument prototype would still apply. */
3526 char gethostbyname();
3528 int main() {
3529 gethostbyname()
3530 ; return 0; }
3532 if { (eval echo configure:3533: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3533 rm -rf conftest*
3534 eval "ac_cv_lib_$ac_lib_var=yes"
3535 else
3536 echo "configure: failed program was:" >&5
3537 cat conftest.$ac_ext >&5
3538 rm -rf conftest*
3539 eval "ac_cv_lib_$ac_lib_var=no"
3541 rm -f conftest*
3542 LIBS="$ac_save_LIBS"
3545 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3546 echo "$ac_t""yes" 1>&6
3547 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3548 else
3549 echo "$ac_t""no" 1>&6
3554 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3555 # socket/setsockopt and other routines are undefined under SCO ODT
3556 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3557 # on later versions), says simon@lia.di.epfl.ch: it contains
3558 # gethostby* variants that don't use the nameserver (or something).
3559 # -lsocket must be given before -lnsl if both are needed.
3560 # We assume that if connect needs -lnsl, so does gethostbyname.
3561 echo $ac_n "checking for connect""... $ac_c" 1>&6
3562 echo "configure:3563: checking for connect" >&5
3563 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3564 echo $ac_n "(cached) $ac_c" 1>&6
3565 else
3566 cat > conftest.$ac_ext <<EOF
3567 #line 3568 "configure"
3568 #include "confdefs.h"
3569 /* System header to define __stub macros and hopefully few prototypes,
3570 which can conflict with char connect(); below. */
3571 #include <assert.h>
3572 /* Override any gcc2 internal prototype to avoid an error. */
3573 /* We use char because int might match the return type of a gcc2
3574 builtin and then its argument prototype would still apply. */
3575 char connect();
3577 int main() {
3579 /* The GNU C library defines this for functions which it implements
3580 to always fail with ENOSYS. Some functions are actually named
3581 something starting with __ and the normal name is an alias. */
3582 #if defined (__stub_connect) || defined (__stub___connect)
3583 choke me
3584 #else
3585 connect();
3586 #endif
3588 ; return 0; }
3590 if { (eval echo configure:3591: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3591 rm -rf conftest*
3592 eval "ac_cv_func_connect=yes"
3593 else
3594 echo "configure: failed program was:" >&5
3595 cat conftest.$ac_ext >&5
3596 rm -rf conftest*
3597 eval "ac_cv_func_connect=no"
3599 rm -f conftest*
3602 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3603 echo "$ac_t""yes" 1>&6
3605 else
3606 echo "$ac_t""no" 1>&6
3609 if test $ac_cv_func_connect = no; then
3610 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3611 echo "configure:3612: checking for connect in -lsocket" >&5
3612 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3613 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3614 echo $ac_n "(cached) $ac_c" 1>&6
3615 else
3616 ac_save_LIBS="$LIBS"
3617 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3618 cat > conftest.$ac_ext <<EOF
3619 #line 3620 "configure"
3620 #include "confdefs.h"
3621 /* Override any gcc2 internal prototype to avoid an error. */
3622 /* We use char because int might match the return type of a gcc2
3623 builtin and then its argument prototype would still apply. */
3624 char connect();
3626 int main() {
3627 connect()
3628 ; return 0; }
3630 if { (eval echo configure:3631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3631 rm -rf conftest*
3632 eval "ac_cv_lib_$ac_lib_var=yes"
3633 else
3634 echo "configure: failed program was:" >&5
3635 cat conftest.$ac_ext >&5
3636 rm -rf conftest*
3637 eval "ac_cv_lib_$ac_lib_var=no"
3639 rm -f conftest*
3640 LIBS="$ac_save_LIBS"
3643 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3644 echo "$ac_t""yes" 1>&6
3645 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3646 else
3647 echo "$ac_t""no" 1>&6
3652 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3653 echo $ac_n "checking for remove""... $ac_c" 1>&6
3654 echo "configure:3655: checking for remove" >&5
3655 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3656 echo $ac_n "(cached) $ac_c" 1>&6
3657 else
3658 cat > conftest.$ac_ext <<EOF
3659 #line 3660 "configure"
3660 #include "confdefs.h"
3661 /* System header to define __stub macros and hopefully few prototypes,
3662 which can conflict with char remove(); below. */
3663 #include <assert.h>
3664 /* Override any gcc2 internal prototype to avoid an error. */
3665 /* We use char because int might match the return type of a gcc2
3666 builtin and then its argument prototype would still apply. */
3667 char remove();
3669 int main() {
3671 /* The GNU C library defines this for functions which it implements
3672 to always fail with ENOSYS. Some functions are actually named
3673 something starting with __ and the normal name is an alias. */
3674 #if defined (__stub_remove) || defined (__stub___remove)
3675 choke me
3676 #else
3677 remove();
3678 #endif
3680 ; return 0; }
3682 if { (eval echo configure:3683: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3683 rm -rf conftest*
3684 eval "ac_cv_func_remove=yes"
3685 else
3686 echo "configure: failed program was:" >&5
3687 cat conftest.$ac_ext >&5
3688 rm -rf conftest*
3689 eval "ac_cv_func_remove=no"
3691 rm -f conftest*
3694 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3695 echo "$ac_t""yes" 1>&6
3697 else
3698 echo "$ac_t""no" 1>&6
3701 if test $ac_cv_func_remove = no; then
3702 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3703 echo "configure:3704: checking for remove in -lposix" >&5
3704 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3705 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3706 echo $ac_n "(cached) $ac_c" 1>&6
3707 else
3708 ac_save_LIBS="$LIBS"
3709 LIBS="-lposix $LIBS"
3710 cat > conftest.$ac_ext <<EOF
3711 #line 3712 "configure"
3712 #include "confdefs.h"
3713 /* Override any gcc2 internal prototype to avoid an error. */
3714 /* We use char because int might match the return type of a gcc2
3715 builtin and then its argument prototype would still apply. */
3716 char remove();
3718 int main() {
3719 remove()
3720 ; return 0; }
3722 if { (eval echo configure:3723: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3723 rm -rf conftest*
3724 eval "ac_cv_lib_$ac_lib_var=yes"
3725 else
3726 echo "configure: failed program was:" >&5
3727 cat conftest.$ac_ext >&5
3728 rm -rf conftest*
3729 eval "ac_cv_lib_$ac_lib_var=no"
3731 rm -f conftest*
3732 LIBS="$ac_save_LIBS"
3735 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3736 echo "$ac_t""yes" 1>&6
3737 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3738 else
3739 echo "$ac_t""no" 1>&6
3744 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3745 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3746 echo "configure:3747: checking for shmat" >&5
3747 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3748 echo $ac_n "(cached) $ac_c" 1>&6
3749 else
3750 cat > conftest.$ac_ext <<EOF
3751 #line 3752 "configure"
3752 #include "confdefs.h"
3753 /* System header to define __stub macros and hopefully few prototypes,
3754 which can conflict with char shmat(); below. */
3755 #include <assert.h>
3756 /* Override any gcc2 internal prototype to avoid an error. */
3757 /* We use char because int might match the return type of a gcc2
3758 builtin and then its argument prototype would still apply. */
3759 char shmat();
3761 int main() {
3763 /* The GNU C library defines this for functions which it implements
3764 to always fail with ENOSYS. Some functions are actually named
3765 something starting with __ and the normal name is an alias. */
3766 #if defined (__stub_shmat) || defined (__stub___shmat)
3767 choke me
3768 #else
3769 shmat();
3770 #endif
3772 ; return 0; }
3774 if { (eval echo configure:3775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3775 rm -rf conftest*
3776 eval "ac_cv_func_shmat=yes"
3777 else
3778 echo "configure: failed program was:" >&5
3779 cat conftest.$ac_ext >&5
3780 rm -rf conftest*
3781 eval "ac_cv_func_shmat=no"
3783 rm -f conftest*
3786 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3787 echo "$ac_t""yes" 1>&6
3789 else
3790 echo "$ac_t""no" 1>&6
3793 if test $ac_cv_func_shmat = no; then
3794 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3795 echo "configure:3796: checking for shmat in -lipc" >&5
3796 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3797 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3798 echo $ac_n "(cached) $ac_c" 1>&6
3799 else
3800 ac_save_LIBS="$LIBS"
3801 LIBS="-lipc $LIBS"
3802 cat > conftest.$ac_ext <<EOF
3803 #line 3804 "configure"
3804 #include "confdefs.h"
3805 /* Override any gcc2 internal prototype to avoid an error. */
3806 /* We use char because int might match the return type of a gcc2
3807 builtin and then its argument prototype would still apply. */
3808 char shmat();
3810 int main() {
3811 shmat()
3812 ; return 0; }
3814 if { (eval echo configure:3815: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3815 rm -rf conftest*
3816 eval "ac_cv_lib_$ac_lib_var=yes"
3817 else
3818 echo "configure: failed program was:" >&5
3819 cat conftest.$ac_ext >&5
3820 rm -rf conftest*
3821 eval "ac_cv_lib_$ac_lib_var=no"
3823 rm -f conftest*
3824 LIBS="$ac_save_LIBS"
3827 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3828 echo "$ac_t""yes" 1>&6
3829 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3830 else
3831 echo "$ac_t""no" 1>&6
3837 # Check for libraries that X11R6 Xt/Xaw programs need.
3838 ac_save_LDFLAGS="$LDFLAGS"
3839 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3840 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3841 # check for ICE first), but we must link in the order -lSM -lICE or
3842 # we get undefined symbols. So assume we have SM if we have ICE.
3843 # These have to be linked with before -lX11, unlike the other
3844 # libraries we check for below, so use a different variable.
3845 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3846 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3847 echo "configure:3848: checking for IceConnectionNumber in -lICE" >&5
3848 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3849 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3850 echo $ac_n "(cached) $ac_c" 1>&6
3851 else
3852 ac_save_LIBS="$LIBS"
3853 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
3854 cat > conftest.$ac_ext <<EOF
3855 #line 3856 "configure"
3856 #include "confdefs.h"
3857 /* Override any gcc2 internal prototype to avoid an error. */
3858 /* We use char because int might match the return type of a gcc2
3859 builtin and then its argument prototype would still apply. */
3860 char IceConnectionNumber();
3862 int main() {
3863 IceConnectionNumber()
3864 ; return 0; }
3866 if { (eval echo configure:3867: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3867 rm -rf conftest*
3868 eval "ac_cv_lib_$ac_lib_var=yes"
3869 else
3870 echo "configure: failed program was:" >&5
3871 cat conftest.$ac_ext >&5
3872 rm -rf conftest*
3873 eval "ac_cv_lib_$ac_lib_var=no"
3875 rm -f conftest*
3876 LIBS="$ac_save_LIBS"
3879 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3880 echo "$ac_t""yes" 1>&6
3881 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3882 else
3883 echo "$ac_t""no" 1>&6
3886 LDFLAGS="$ac_save_LDFLAGS"
3891 XCFLAGS="$X_CFLAGS"
3893 XLFLAGS="$X_LIBS"
3895 XLIBS="-lX11 $X_EXTRA_LIBS"
3898 lib_search_path="$lib_search_path $XLFLAGS"
3899 inc_search_path="$inc_search_path $XCFLAGS"
3902 use_locale=yes
3903 # Check whether --enable-locale or --disable-locale was given.
3904 if test "${enable_locale+set}" = set; then
3905 enableval="$enable_locale"
3906 use_locale=no
3910 if test "$use_locale" = yes; then
3911 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3912 echo "configure:3913: checking for _Xsetlocale in -lX11" >&5
3913 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3914 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3915 echo $ac_n "(cached) $ac_c" 1>&6
3916 else
3917 ac_save_LIBS="$LIBS"
3918 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3919 cat > conftest.$ac_ext <<EOF
3920 #line 3921 "configure"
3921 #include "confdefs.h"
3922 /* Override any gcc2 internal prototype to avoid an error. */
3923 /* We use char because int might match the return type of a gcc2
3924 builtin and then its argument prototype would still apply. */
3925 char _Xsetlocale();
3927 int main() {
3928 _Xsetlocale()
3929 ; return 0; }
3931 if { (eval echo configure:3932: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3932 rm -rf conftest*
3933 eval "ac_cv_lib_$ac_lib_var=yes"
3934 else
3935 echo "configure: failed program was:" >&5
3936 cat conftest.$ac_ext >&5
3937 rm -rf conftest*
3938 eval "ac_cv_lib_$ac_lib_var=no"
3940 rm -f conftest*
3941 LIBS="$ac_save_LIBS"
3944 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3945 echo "$ac_t""yes" 1>&6
3946 cat >> confdefs.h <<\EOF
3947 #define X_LOCALE 1
3950 else
3951 echo "$ac_t""no" 1>&6
3957 # Check whether --enable-modelock or --disable-modelock was given.
3958 if test "${enable_modelock+set}" = set; then
3959 enableval="$enable_modelock"
3960 X_CFLAGS="$X_CFLAGS -DXKB_MODELOCK"
3966 shape=yes
3967 # Check whether --enable-shape or --disable-shape was given.
3968 if test "${enable_shape+set}" = set; then
3969 enableval="$enable_shape"
3970 shape=$enableval
3971 else
3972 shape=yes
3976 added_xext=no
3978 if test "$shape" = yes; then
3979 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3980 echo "configure:3981: checking for XShapeSelectInput in -lXext" >&5
3981 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3982 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3983 echo $ac_n "(cached) $ac_c" 1>&6
3984 else
3985 ac_save_LIBS="$LIBS"
3986 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3987 cat > conftest.$ac_ext <<EOF
3988 #line 3989 "configure"
3989 #include "confdefs.h"
3990 /* Override any gcc2 internal prototype to avoid an error. */
3991 /* We use char because int might match the return type of a gcc2
3992 builtin and then its argument prototype would still apply. */
3993 char XShapeSelectInput();
3995 int main() {
3996 XShapeSelectInput()
3997 ; return 0; }
3999 if { (eval echo configure:4000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4000 rm -rf conftest*
4001 eval "ac_cv_lib_$ac_lib_var=yes"
4002 else
4003 echo "configure: failed program was:" >&5
4004 cat conftest.$ac_ext >&5
4005 rm -rf conftest*
4006 eval "ac_cv_lib_$ac_lib_var=no"
4008 rm -f conftest*
4009 LIBS="$ac_save_LIBS"
4012 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4013 echo "$ac_t""yes" 1>&6
4014 XLIBS="-lXext $XLIBS"
4015 added_xext=yes
4016 cat >> confdefs.h <<\EOF
4017 #define SHAPE 1
4020 else
4021 echo "$ac_t""no" 1>&6
4022 shape=no
4028 shm=yes
4029 # Check whether --enable-shm or --disable-shm was given.
4030 if test "${enable_shm+set}" = set; then
4031 enableval="$enable_shm"
4032 shm=$enableval
4033 else
4034 shm=yes
4038 if test "$shm" = yes; then
4039 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4040 echo "configure:4041: checking for XShmAttach in -lXext" >&5
4041 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4043 echo $ac_n "(cached) $ac_c" 1>&6
4044 else
4045 ac_save_LIBS="$LIBS"
4046 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4047 cat > conftest.$ac_ext <<EOF
4048 #line 4049 "configure"
4049 #include "confdefs.h"
4050 /* Override any gcc2 internal prototype to avoid an error. */
4051 /* We use char because int might match the return type of a gcc2
4052 builtin and then its argument prototype would still apply. */
4053 char XShmAttach();
4055 int main() {
4056 XShmAttach()
4057 ; return 0; }
4059 if { (eval echo configure:4060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4060 rm -rf conftest*
4061 eval "ac_cv_lib_$ac_lib_var=yes"
4062 else
4063 echo "configure: failed program was:" >&5
4064 cat conftest.$ac_ext >&5
4065 rm -rf conftest*
4066 eval "ac_cv_lib_$ac_lib_var=no"
4068 rm -f conftest*
4069 LIBS="$ac_save_LIBS"
4072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4073 echo "$ac_t""yes" 1>&6
4074 ok=yes
4075 else
4076 echo "$ac_t""no" 1>&6
4077 ok=no
4081 if test "$ok" = yes; then
4082 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4083 echo "configure:4084: checking for shmget" >&5
4084 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4085 echo $ac_n "(cached) $ac_c" 1>&6
4086 else
4087 cat > conftest.$ac_ext <<EOF
4088 #line 4089 "configure"
4089 #include "confdefs.h"
4090 /* System header to define __stub macros and hopefully few prototypes,
4091 which can conflict with char shmget(); below. */
4092 #include <assert.h>
4093 /* Override any gcc2 internal prototype to avoid an error. */
4094 /* We use char because int might match the return type of a gcc2
4095 builtin and then its argument prototype would still apply. */
4096 char shmget();
4098 int main() {
4100 /* The GNU C library defines this for functions which it implements
4101 to always fail with ENOSYS. Some functions are actually named
4102 something starting with __ and the normal name is an alias. */
4103 #if defined (__stub_shmget) || defined (__stub___shmget)
4104 choke me
4105 #else
4106 shmget();
4107 #endif
4109 ; return 0; }
4111 if { (eval echo configure:4112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4112 rm -rf conftest*
4113 eval "ac_cv_func_shmget=yes"
4114 else
4115 echo "configure: failed program was:" >&5
4116 cat conftest.$ac_ext >&5
4117 rm -rf conftest*
4118 eval "ac_cv_func_shmget=no"
4120 rm -f conftest*
4123 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4124 echo "$ac_t""yes" 1>&6
4125 ok=yes
4126 else
4127 echo "$ac_t""no" 1>&6
4128 ok=no
4133 if test "$ok" = yes; then
4134 if test "$added_xext" = no; then
4135 XLIBS="-lXext $XLIBS"
4137 cat >> confdefs.h <<\EOF
4138 #define XSHM 1
4148 #AC_DEFINE(R6SM)
4149 #AC_SUBST(XSMPLIBS)
4154 LIBPL=""
4157 LDFLAGS_old="$LDFLAGS"
4158 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4159 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4160 echo "configure:4161: checking for PLGetString in -lPropList" >&5
4161 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4164 else
4165 ac_save_LIBS="$LIBS"
4166 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4167 cat > conftest.$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4173 char PLGetString();
4175 int main() {
4176 PLGetString()
4177 ; return 0; }
4179 if { (eval echo configure:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4180 rm -rf conftest*
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4182 else
4183 echo "configure: failed program was:" >&5
4184 cat conftest.$ac_ext >&5
4185 rm -rf conftest*
4186 eval "ac_cv_lib_$ac_lib_var=no"
4188 rm -f conftest*
4189 LIBS="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4194 yes=yes
4195 else
4196 echo "$ac_t""no" 1>&6
4197 no=no
4200 LDFLAGS="$LDFLAGS_old"
4202 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4204 CPPFLAGS_old="$CPPFLAGS"
4205 CPPFLAGS="$CPPFLAGS $inc_search_path"
4206 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4207 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4208 echo "configure:4209: checking for proplist.h" >&5
4209 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4210 echo $ac_n "(cached) $ac_c" 1>&6
4211 else
4212 cat > conftest.$ac_ext <<EOF
4213 #line 4214 "configure"
4214 #include "confdefs.h"
4215 #include <proplist.h>
4217 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4218 { (eval echo configure:4219: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4219 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4220 if test -z "$ac_err"; then
4221 rm -rf conftest*
4222 eval "ac_cv_header_$ac_safe=yes"
4223 else
4224 echo "$ac_err" >&5
4225 echo "configure: failed program was:" >&5
4226 cat conftest.$ac_ext >&5
4227 rm -rf conftest*
4228 eval "ac_cv_header_$ac_safe=no"
4230 rm -f conftest*
4232 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4233 echo "$ac_t""yes" 1>&6
4235 else
4236 echo "$ac_t""no" 1>&6
4239 CPPFLAGS="$CPPFLAGS_old"
4241 if test "x$ac_cv_header_proplist_h" = xyes; then
4242 LIBPL="-lPropList"
4246 if test "x$LIBPL" = "x"; then
4247 echo
4248 echo "ERROR!!! libPropList is not installed, or could not be found."
4249 echo " Window Maker requires libPropList to build."
4250 echo " Please read INSTALL to find where you can find libPropList,"
4251 echo " and install it first."
4252 echo " If you already have it installed, try using the"
4253 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4254 echo " --with-libs-from flag to tell configure where the library"
4255 echo " is installed and"
4257 echo " --with-incs-from flag to tell configure where the header"
4258 echo " files are installed"
4259 exit 1
4271 xpm=yes
4272 # Check whether --enable-xpm or --disable-xpm was given.
4273 if test "${enable_xpm+set}" = set; then
4274 enableval="$enable_xpm"
4275 xpm=$enableval
4276 else
4277 xpm=yes
4281 if test "$xpm" = yes; then
4283 LDFLAGS_old="$LDFLAGS"
4284 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4285 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4286 echo "configure:4287: checking for XpmCreatePixmapFromData in -lXpm" >&5
4287 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4288 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4289 echo $ac_n "(cached) $ac_c" 1>&6
4290 else
4291 ac_save_LIBS="$LIBS"
4292 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4293 cat > conftest.$ac_ext <<EOF
4294 #line 4295 "configure"
4295 #include "confdefs.h"
4296 /* Override any gcc2 internal prototype to avoid an error. */
4297 /* We use char because int might match the return type of a gcc2
4298 builtin and then its argument prototype would still apply. */
4299 char XpmCreatePixmapFromData();
4301 int main() {
4302 XpmCreatePixmapFromData()
4303 ; return 0; }
4305 if { (eval echo configure:4306: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4306 rm -rf conftest*
4307 eval "ac_cv_lib_$ac_lib_var=yes"
4308 else
4309 echo "configure: failed program was:" >&5
4310 cat conftest.$ac_ext >&5
4311 rm -rf conftest*
4312 eval "ac_cv_lib_$ac_lib_var=no"
4314 rm -f conftest*
4315 LIBS="$ac_save_LIBS"
4318 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4319 echo "$ac_t""yes" 1>&6
4320 yes=yes
4321 else
4322 echo "$ac_t""no" 1>&6
4323 no=no
4326 LDFLAGS="$LDFLAGS_old"
4329 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4331 CPPFLAGS_old="$CPPFLAGS"
4332 CPPFLAGS="$CPPFLAGS $inc_search_path"
4333 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4334 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4335 echo "configure:4336: checking for X11/xpm.h" >&5
4336 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4337 echo $ac_n "(cached) $ac_c" 1>&6
4338 else
4339 cat > conftest.$ac_ext <<EOF
4340 #line 4341 "configure"
4341 #include "confdefs.h"
4342 #include <X11/xpm.h>
4344 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4345 { (eval echo configure:4346: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4346 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4347 if test -z "$ac_err"; then
4348 rm -rf conftest*
4349 eval "ac_cv_header_$ac_safe=yes"
4350 else
4351 echo "$ac_err" >&5
4352 echo "configure: failed program was:" >&5
4353 cat conftest.$ac_ext >&5
4354 rm -rf conftest*
4355 eval "ac_cv_header_$ac_safe=no"
4357 rm -f conftest*
4359 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4360 echo "$ac_t""yes" 1>&6
4362 else
4363 echo "$ac_t""no" 1>&6
4366 CPPFLAGS="$CPPFLAGS_old"
4368 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4369 GFXLIBS="$GFXLIBS -lXpm"
4370 supported_gfx="XPM"
4371 cat >> confdefs.h <<\EOF
4372 #define USE_XPM 1
4375 else
4376 supported_gfx="builtin-XPM"
4381 # for wmlib
4383 # for test
4391 png=yes
4392 # Check whether --enable-png or --disable-png was given.
4393 if test "${enable_png+set}" = set; then
4394 enableval="$enable_png"
4395 png=$enableval
4396 else
4397 png=yes
4402 if test "$png" = yes ; then
4404 LDFLAGS_old="$LDFLAGS"
4405 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4406 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4407 echo "configure:4408: checking for png_get_valid in -lpng" >&5
4408 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4410 echo $ac_n "(cached) $ac_c" 1>&6
4411 else
4412 ac_save_LIBS="$LIBS"
4413 LIBS="-lpng -lz -lm $LIBS"
4414 cat > conftest.$ac_ext <<EOF
4415 #line 4416 "configure"
4416 #include "confdefs.h"
4417 /* Override any gcc2 internal prototype to avoid an error. */
4418 /* We use char because int might match the return type of a gcc2
4419 builtin and then its argument prototype would still apply. */
4420 char png_get_valid();
4422 int main() {
4423 png_get_valid()
4424 ; return 0; }
4426 if { (eval echo configure:4427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4427 rm -rf conftest*
4428 eval "ac_cv_lib_$ac_lib_var=yes"
4429 else
4430 echo "configure: failed program was:" >&5
4431 cat conftest.$ac_ext >&5
4432 rm -rf conftest*
4433 eval "ac_cv_lib_$ac_lib_var=no"
4435 rm -f conftest*
4436 LIBS="$ac_save_LIBS"
4439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4440 echo "$ac_t""yes" 1>&6
4441 yes=yes
4442 else
4443 echo "$ac_t""no" 1>&6
4444 no=no
4447 LDFLAGS="$LDFLAGS_old"
4450 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4452 CPPFLAGS_old="$CPPFLAGS"
4453 CPPFLAGS="$CPPFLAGS $inc_search_path"
4454 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4455 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4456 echo "configure:4457: checking for png.h" >&5
4457 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4458 echo $ac_n "(cached) $ac_c" 1>&6
4459 else
4460 cat > conftest.$ac_ext <<EOF
4461 #line 4462 "configure"
4462 #include "confdefs.h"
4463 #include <png.h>
4465 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4466 { (eval echo configure:4467: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4467 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4468 if test -z "$ac_err"; then
4469 rm -rf conftest*
4470 eval "ac_cv_header_$ac_safe=yes"
4471 else
4472 echo "$ac_err" >&5
4473 echo "configure: failed program was:" >&5
4474 cat conftest.$ac_ext >&5
4475 rm -rf conftest*
4476 eval "ac_cv_header_$ac_safe=no"
4478 rm -f conftest*
4480 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4483 else
4484 echo "$ac_t""no" 1>&6
4487 CPPFLAGS="$CPPFLAGS_old"
4489 if test "x$ac_cv_header_png_h" = xyes; then
4490 GFXLIBS="$GFXLIBS -lpng -lz"
4491 supported_gfx="$supported_gfx PNG"
4492 cat >> confdefs.h <<\EOF
4493 #define USE_PNG 1
4501 jpeg=yes
4502 # Check whether --enable-jpeg or --disable-jpeg was given.
4503 if test "${enable_jpeg+set}" = set; then
4504 enableval="$enable_jpeg"
4505 jpeg=$enableval
4506 else
4507 jpeg=yes
4511 if test "$jpeg" = yes; then
4513 LDFLAGS_old="$LDFLAGS"
4514 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4515 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4516 echo "configure:4517: checking for jpeg_destroy_compress in -ljpeg" >&5
4517 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4518 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4519 echo $ac_n "(cached) $ac_c" 1>&6
4520 else
4521 ac_save_LIBS="$LIBS"
4522 LIBS="-ljpeg $LIBS"
4523 cat > conftest.$ac_ext <<EOF
4524 #line 4525 "configure"
4525 #include "confdefs.h"
4526 /* Override any gcc2 internal prototype to avoid an error. */
4527 /* We use char because int might match the return type of a gcc2
4528 builtin and then its argument prototype would still apply. */
4529 char jpeg_destroy_compress();
4531 int main() {
4532 jpeg_destroy_compress()
4533 ; return 0; }
4535 if { (eval echo configure:4536: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4536 rm -rf conftest*
4537 eval "ac_cv_lib_$ac_lib_var=yes"
4538 else
4539 echo "configure: failed program was:" >&5
4540 cat conftest.$ac_ext >&5
4541 rm -rf conftest*
4542 eval "ac_cv_lib_$ac_lib_var=no"
4544 rm -f conftest*
4545 LIBS="$ac_save_LIBS"
4548 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4549 echo "$ac_t""yes" 1>&6
4550 yes=yes
4551 else
4552 echo "$ac_t""no" 1>&6
4553 no=no
4556 LDFLAGS="$LDFLAGS_old"
4559 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4561 CPPFLAGS_old="$CPPFLAGS"
4562 CPPFLAGS="$CPPFLAGS $inc_search_path"
4563 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4564 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4565 echo "configure:4566: checking for jpeglib.h" >&5
4566 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4567 echo $ac_n "(cached) $ac_c" 1>&6
4568 else
4569 cat > conftest.$ac_ext <<EOF
4570 #line 4571 "configure"
4571 #include "confdefs.h"
4572 #include <jpeglib.h>
4574 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4575 { (eval echo configure:4576: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4576 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4577 if test -z "$ac_err"; then
4578 rm -rf conftest*
4579 eval "ac_cv_header_$ac_safe=yes"
4580 else
4581 echo "$ac_err" >&5
4582 echo "configure: failed program was:" >&5
4583 cat conftest.$ac_ext >&5
4584 rm -rf conftest*
4585 eval "ac_cv_header_$ac_safe=no"
4587 rm -f conftest*
4589 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4590 echo "$ac_t""yes" 1>&6
4592 else
4593 echo "$ac_t""no" 1>&6
4596 CPPFLAGS="$CPPFLAGS_old"
4598 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4599 GFXLIBS="$GFXLIBS -ljpeg"
4600 supported_gfx="$supported_gfx JPEG"
4601 cat >> confdefs.h <<\EOF
4602 #define USE_JPEG 1
4610 gif=yes
4611 # Check whether --enable-gif or --disable-gif was given.
4612 if test "${enable_gif+set}" = set; then
4613 enableval="$enable_gif"
4614 gif=$enableval
4615 else
4616 gif=yes
4620 if test "$gif" = yes; then
4621 my_libname=""
4623 LDFLAGS_old="$LDFLAGS"
4624 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4625 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4626 echo "configure:4627: checking for DGifOpenFileName in -lungif" >&5
4627 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4628 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4629 echo $ac_n "(cached) $ac_c" 1>&6
4630 else
4631 ac_save_LIBS="$LIBS"
4632 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4633 cat > conftest.$ac_ext <<EOF
4634 #line 4635 "configure"
4635 #include "confdefs.h"
4636 /* Override any gcc2 internal prototype to avoid an error. */
4637 /* We use char because int might match the return type of a gcc2
4638 builtin and then its argument prototype would still apply. */
4639 char DGifOpenFileName();
4641 int main() {
4642 DGifOpenFileName()
4643 ; return 0; }
4645 if { (eval echo configure:4646: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4646 rm -rf conftest*
4647 eval "ac_cv_lib_$ac_lib_var=yes"
4648 else
4649 echo "configure: failed program was:" >&5
4650 cat conftest.$ac_ext >&5
4651 rm -rf conftest*
4652 eval "ac_cv_lib_$ac_lib_var=no"
4654 rm -f conftest*
4655 LIBS="$ac_save_LIBS"
4658 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4659 echo "$ac_t""yes" 1>&6
4660 yes=yes
4661 else
4662 echo "$ac_t""no" 1>&6
4663 no=no
4666 LDFLAGS="$LDFLAGS_old"
4668 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
4669 my_libname=ungif
4671 if test "x$my_libname" = x; then
4673 LDFLAGS_old="$LDFLAGS"
4674 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4675 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
4676 echo "configure:4677: checking for DGifOpenFileName in -lgif" >&5
4677 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4679 echo $ac_n "(cached) $ac_c" 1>&6
4680 else
4681 ac_save_LIBS="$LIBS"
4682 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
4683 cat > conftest.$ac_ext <<EOF
4684 #line 4685 "configure"
4685 #include "confdefs.h"
4686 /* Override any gcc2 internal prototype to avoid an error. */
4687 /* We use char because int might match the return type of a gcc2
4688 builtin and then its argument prototype would still apply. */
4689 char DGifOpenFileName();
4691 int main() {
4692 DGifOpenFileName()
4693 ; return 0; }
4695 if { (eval echo configure:4696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4696 rm -rf conftest*
4697 eval "ac_cv_lib_$ac_lib_var=yes"
4698 else
4699 echo "configure: failed program was:" >&5
4700 cat conftest.$ac_ext >&5
4701 rm -rf conftest*
4702 eval "ac_cv_lib_$ac_lib_var=no"
4704 rm -f conftest*
4705 LIBS="$ac_save_LIBS"
4708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4709 echo "$ac_t""yes" 1>&6
4710 yes=yes
4711 else
4712 echo "$ac_t""no" 1>&6
4713 no=no
4716 LDFLAGS="$LDFLAGS_old"
4718 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
4719 my_libname=gif
4723 if test "$my_libname" != x; then
4725 CPPFLAGS_old="$CPPFLAGS"
4726 CPPFLAGS="$CPPFLAGS $inc_search_path"
4727 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
4728 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
4729 echo "configure:4730: checking for gif_lib.h" >&5
4730 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4731 echo $ac_n "(cached) $ac_c" 1>&6
4732 else
4733 cat > conftest.$ac_ext <<EOF
4734 #line 4735 "configure"
4735 #include "confdefs.h"
4736 #include <gif_lib.h>
4738 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4739 { (eval echo configure:4740: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4740 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4741 if test -z "$ac_err"; then
4742 rm -rf conftest*
4743 eval "ac_cv_header_$ac_safe=yes"
4744 else
4745 echo "$ac_err" >&5
4746 echo "configure: failed program was:" >&5
4747 cat conftest.$ac_ext >&5
4748 rm -rf conftest*
4749 eval "ac_cv_header_$ac_safe=no"
4751 rm -f conftest*
4753 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4754 echo "$ac_t""yes" 1>&6
4756 else
4757 echo "$ac_t""no" 1>&6
4760 CPPFLAGS="$CPPFLAGS_old"
4762 if test "x$ac_cv_header_gif_lib_h" = xyes; then
4763 GFXLIBS="$GFXLIBS -l$my_libname"
4764 supported_gfx="$supported_gfx GIF"
4765 cat >> confdefs.h <<\EOF
4766 #define USE_GIF 1
4775 # Check whether --enable-tiff or --disable-tiff was given.
4776 if test "${enable_tiff+set}" = set; then
4777 enableval="$enable_tiff"
4778 tif=$enableval
4779 else
4780 tif=yes
4785 # TIFF can optionally have JPEG and/or zlib support. Must find out
4786 # when they are supported so that correct library flags are passed during
4787 # detection and linkage
4790 # By default use xpm icons if tiff is not found.
4791 ICONEXT="xpm"
4794 if test "$tif" = yes; then
4795 my_libname=""
4797 LDFLAGS_old="$LDFLAGS"
4798 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4799 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4800 echo "configure:4801: checking for TIFFGetVersion in -ltiff" >&5
4801 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4802 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4803 echo $ac_n "(cached) $ac_c" 1>&6
4804 else
4805 ac_save_LIBS="$LIBS"
4806 LIBS="-ltiff -lm $LIBS"
4807 cat > conftest.$ac_ext <<EOF
4808 #line 4809 "configure"
4809 #include "confdefs.h"
4810 /* Override any gcc2 internal prototype to avoid an error. */
4811 /* We use char because int might match the return type of a gcc2
4812 builtin and then its argument prototype would still apply. */
4813 char TIFFGetVersion();
4815 int main() {
4816 TIFFGetVersion()
4817 ; return 0; }
4819 if { (eval echo configure:4820: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4820 rm -rf conftest*
4821 eval "ac_cv_lib_$ac_lib_var=yes"
4822 else
4823 echo "configure: failed program was:" >&5
4824 cat conftest.$ac_ext >&5
4825 rm -rf conftest*
4826 eval "ac_cv_lib_$ac_lib_var=no"
4828 rm -f conftest*
4829 LIBS="$ac_save_LIBS"
4832 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4833 echo "$ac_t""yes" 1>&6
4834 yes=yes
4835 else
4836 echo "$ac_t""no" 1>&6
4837 no=no
4840 LDFLAGS="$LDFLAGS_old"
4842 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4843 my_libname="-ltiff"
4845 unset ac_cv_lib_tiff_TIFFGetVersion
4846 if test "x$my_libname" = x; then
4848 LDFLAGS_old="$LDFLAGS"
4849 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4850 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4851 echo "configure:4852: checking for TIFFGetVersion in -ltiff" >&5
4852 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4853 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4854 echo $ac_n "(cached) $ac_c" 1>&6
4855 else
4856 ac_save_LIBS="$LIBS"
4857 LIBS="-ltiff -lz -lm $LIBS"
4858 cat > conftest.$ac_ext <<EOF
4859 #line 4860 "configure"
4860 #include "confdefs.h"
4861 /* Override any gcc2 internal prototype to avoid an error. */
4862 /* We use char because int might match the return type of a gcc2
4863 builtin and then its argument prototype would still apply. */
4864 char TIFFGetVersion();
4866 int main() {
4867 TIFFGetVersion()
4868 ; return 0; }
4870 if { (eval echo configure:4871: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4871 rm -rf conftest*
4872 eval "ac_cv_lib_$ac_lib_var=yes"
4873 else
4874 echo "configure: failed program was:" >&5
4875 cat conftest.$ac_ext >&5
4876 rm -rf conftest*
4877 eval "ac_cv_lib_$ac_lib_var=no"
4879 rm -f conftest*
4880 LIBS="$ac_save_LIBS"
4883 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4884 echo "$ac_t""yes" 1>&6
4885 yes=yes
4886 else
4887 echo "$ac_t""no" 1>&6
4888 no=no
4891 LDFLAGS="$LDFLAGS_old"
4893 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
4894 my_libname="-ltiff -lz"
4898 if test "x$my_libname" = x; then
4900 LDFLAGS_old="$LDFLAGS"
4901 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4902 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4903 echo "configure:4904: checking for TIFFGetVersion in -ltiff34" >&5
4904 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4905 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4906 echo $ac_n "(cached) $ac_c" 1>&6
4907 else
4908 ac_save_LIBS="$LIBS"
4909 LIBS="-ltiff34 -lm $LIBS"
4910 cat > conftest.$ac_ext <<EOF
4911 #line 4912 "configure"
4912 #include "confdefs.h"
4913 /* Override any gcc2 internal prototype to avoid an error. */
4914 /* We use char because int might match the return type of a gcc2
4915 builtin and then its argument prototype would still apply. */
4916 char TIFFGetVersion();
4918 int main() {
4919 TIFFGetVersion()
4920 ; return 0; }
4922 if { (eval echo configure:4923: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4923 rm -rf conftest*
4924 eval "ac_cv_lib_$ac_lib_var=yes"
4925 else
4926 echo "configure: failed program was:" >&5
4927 cat conftest.$ac_ext >&5
4928 rm -rf conftest*
4929 eval "ac_cv_lib_$ac_lib_var=no"
4931 rm -f conftest*
4932 LIBS="$ac_save_LIBS"
4935 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4936 echo "$ac_t""yes" 1>&6
4937 yes=yes
4938 else
4939 echo "$ac_t""no" 1>&6
4940 no=no
4943 LDFLAGS="$LDFLAGS_old"
4945 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
4946 my_libname="-ltiff34"
4951 # why the heck does debian name libtiff this way!?
4953 if test "x$my_libname" = x; then
4955 LDFLAGS_old="$LDFLAGS"
4956 LDFLAGS="-DBEGIN $LDFLAGS -DEND $lib_search_path"
4957 echo $ac_n "checking for TIFFGetVersion in -ltiff3g""... $ac_c" 1>&6
4958 echo "configure:4959: checking for TIFFGetVersion in -ltiff3g" >&5
4959 ac_lib_var=`echo tiff3g'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4961 echo $ac_n "(cached) $ac_c" 1>&6
4962 else
4963 ac_save_LIBS="$LIBS"
4964 LIBS="-ltiff3g -lm $LIBS"
4965 cat > conftest.$ac_ext <<EOF
4966 #line 4967 "configure"
4967 #include "confdefs.h"
4968 /* Override any gcc2 internal prototype to avoid an error. */
4969 /* We use char because int might match the return type of a gcc2
4970 builtin and then its argument prototype would still apply. */
4971 char TIFFGetVersion();
4973 int main() {
4974 TIFFGetVersion()
4975 ; return 0; }
4977 if { (eval echo configure:4978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4978 rm -rf conftest*
4979 eval "ac_cv_lib_$ac_lib_var=yes"
4980 else
4981 echo "configure: failed program was:" >&5
4982 cat conftest.$ac_ext >&5
4983 rm -rf conftest*
4984 eval "ac_cv_lib_$ac_lib_var=no"
4986 rm -f conftest*
4987 LIBS="$ac_save_LIBS"
4990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4991 echo "$ac_t""yes" 1>&6
4992 yes=yes
4993 else
4994 echo "$ac_t""no" 1>&6
4995 no=no
4998 LDFLAGS="$LDFLAGS_old"
5000 if test "x$ac_cv_lib_tiff3g_TIFFGetVersion" = xyes; then
5001 my_libname="-ltiff3g"
5005 if test "x$my_libname" != x; then
5007 CPPFLAGS_old="$CPPFLAGS"
5008 CPPFLAGS="$CPPFLAGS $inc_search_path"
5009 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5010 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5011 echo "configure:5012: checking for tiffio.h" >&5
5012 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5013 echo $ac_n "(cached) $ac_c" 1>&6
5014 else
5015 cat > conftest.$ac_ext <<EOF
5016 #line 5017 "configure"
5017 #include "confdefs.h"
5018 #include <tiffio.h>
5020 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5021 { (eval echo configure:5022: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5022 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5023 if test -z "$ac_err"; then
5024 rm -rf conftest*
5025 eval "ac_cv_header_$ac_safe=yes"
5026 else
5027 echo "$ac_err" >&5
5028 echo "configure: failed program was:" >&5
5029 cat conftest.$ac_ext >&5
5030 rm -rf conftest*
5031 eval "ac_cv_header_$ac_safe=no"
5033 rm -f conftest*
5035 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5036 echo "$ac_t""yes" 1>&6
5038 else
5039 echo "$ac_t""no" 1>&6
5042 CPPFLAGS="$CPPFLAGS_old"
5044 if test "x$ac_cv_header_tiffio_h" = xyes; then
5045 GFXLIBS="$my_libname $GFXLIBS"
5046 ICONEXT="tiff"
5047 supported_gfx="$supported_gfx TIFF"
5048 cat >> confdefs.h <<\EOF
5049 #define USE_TIFF 1
5056 LIBRARY_SEARCH_PATH="$lib_search_path"
5057 HEADER_SEARCH_PATH="$inc_search_path"
5069 # Check whether --enable-debug or --disable-debug was given.
5070 if test "${enable_debug+set}" = set; then
5071 enableval="$enable_debug"
5073 else
5074 enable_debug=no
5078 if test "$enable_debug" = yes; then
5079 DFLAGS="-g -DDEBUG"
5080 # Efence makes things too slow. Add it by hand in the Makefiles
5081 # if it is really needed.
5082 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5087 sound=yes
5088 # Check whether --enable-sound or --disable-sound was given.
5089 if test "${enable_sound+set}" = set; then
5090 enableval="$enable_sound"
5091 sound=$enableval
5092 else
5093 sound=yes
5096 if test "$sound" = yes; then
5097 cat >> confdefs.h <<\EOF
5098 #define WMSOUND 1
5104 # AC_PREFIX_PROGRAM(wmaker)
5106 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5107 if test "${with_pixmapdir+set}" = set; then
5108 withval="$with_pixmapdir"
5113 if test "x$with_pixmapdir" != "x"; then
5114 pixmapdir=$with_pixmapdir
5115 else
5116 pixmapdir=`eval echo ${datadir}/pixmaps`
5119 cat >> confdefs.h <<EOF
5120 #define PIXMAPDIR "$pixmapdir"
5124 pkgdatadir=`eval echo $datadir`
5125 cat >> confdefs.h <<EOF
5126 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5130 sysconfdir=`eval echo $sysconfdir`
5131 cat >> confdefs.h <<EOF
5132 #define SYSCONFDIR "$sysconfdir/WindowMaker"
5138 appspath=""
5140 # Check whether --with-appspath or --without-appspath was given.
5141 if test "${with_appspath+set}" = set; then
5142 withval="$with_appspath"
5143 appspath=$withval
5147 if test "x$appspath" = "x"; then
5148 gnustepdir='$(prefix)/GNUstep'
5150 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5151 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5152 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5155 with_appspath=$gnustepdir/Apps
5158 wprefsdir=$with_appspath/WPrefs.app
5164 # Check whether --enable-single-icon or --disable-single-icon was given.
5165 if test "${enable_single_icon+set}" = set; then
5166 enableval="$enable_single_icon"
5167 if test "$enableval" = yes; then
5168 cat >> confdefs.h <<\EOF
5169 #define REDUCE_APPICONS 1
5180 trap '' 1 2 15
5181 cat > confcache <<\EOF
5182 # This file is a shell script that caches the results of configure
5183 # tests run on this system so they can be shared between configure
5184 # scripts and configure runs. It is not useful on other systems.
5185 # If it contains results you don't want to keep, you may remove or edit it.
5187 # By default, configure uses ./config.cache as the cache file,
5188 # creating it if it does not exist already. You can give configure
5189 # the --cache-file=FILE option to use a different cache file; that is
5190 # what configure does when it calls configure scripts in
5191 # subdirectories, so they share the cache.
5192 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5193 # config.status only pays attention to the cache file if you give it the
5194 # --recheck option to rerun configure.
5197 # The following way of writing the cache mishandles newlines in values,
5198 # but we know of no workaround that is simple, portable, and efficient.
5199 # So, don't put newlines in cache variables' values.
5200 # Ultrix sh set writes to stderr and can't be redirected directly,
5201 # and sets the high bit in the cache file unless we assign to the vars.
5202 (set) 2>&1 |
5203 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5204 *ac_space=\ *)
5205 # `set' does not quote correctly, so add quotes (double-quote substitution
5206 # turns \\\\ into \\, and sed turns \\ into \).
5207 sed -n \
5208 -e "s/'/'\\\\''/g" \
5209 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5212 # `set' quotes correctly as required by POSIX, so do not add quotes.
5213 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5215 esac >> confcache
5216 if cmp -s $cache_file confcache; then
5218 else
5219 if test -w $cache_file; then
5220 echo "updating cache $cache_file"
5221 cat confcache > $cache_file
5222 else
5223 echo "not updating unwritable cache $cache_file"
5226 rm -f confcache
5228 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5230 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5231 # Let make expand exec_prefix.
5232 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5234 # Any assignment to VPATH causes Sun make to only execute
5235 # the first set of double-colon rules, so remove it if not needed.
5236 # If there is a colon in the path, we need to keep it.
5237 if test "x$srcdir" = x.; then
5238 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5241 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5243 DEFS=-DHAVE_CONFIG_H
5245 # Without the "./", some shells look in PATH for config.status.
5246 : ${CONFIG_STATUS=./config.status}
5248 echo creating $CONFIG_STATUS
5249 rm -f $CONFIG_STATUS
5250 cat > $CONFIG_STATUS <<EOF
5251 #! /bin/sh
5252 # Generated automatically by configure.
5253 # Run this file to recreate the current configuration.
5254 # This directory was configured as follows,
5255 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5257 # $0 $ac_configure_args
5259 # Compiler output produced by configure, useful for debugging
5260 # configure, is in ./config.log if it exists.
5262 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5263 for ac_option
5265 case "\$ac_option" in
5266 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5267 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5268 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5269 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5270 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5271 exit 0 ;;
5272 -help | --help | --hel | --he | --h)
5273 echo "\$ac_cs_usage"; exit 0 ;;
5274 *) echo "\$ac_cs_usage"; exit 1 ;;
5275 esac
5276 done
5278 ac_given_srcdir=$srcdir
5279 ac_given_INSTALL="$INSTALL"
5281 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5282 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5283 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5284 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5285 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5286 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5287 WindowMaker/Themes/Makefile \
5288 WindowMaker/Themes/Night.themed/Makefile \
5289 WindowMaker/Themes/Checker.themed/Makefile \
5290 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5291 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5293 cat >> $CONFIG_STATUS <<EOF
5295 # Protect against being on the right side of a sed subst in config.status.
5296 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5297 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5298 $ac_vpsub
5299 $extrasub
5300 s%@SHELL@%$SHELL%g
5301 s%@CFLAGS@%$CFLAGS%g
5302 s%@CPPFLAGS@%$CPPFLAGS%g
5303 s%@CXXFLAGS@%$CXXFLAGS%g
5304 s%@FFLAGS@%$FFLAGS%g
5305 s%@DEFS@%$DEFS%g
5306 s%@LDFLAGS@%$LDFLAGS%g
5307 s%@LIBS@%$LIBS%g
5308 s%@exec_prefix@%$exec_prefix%g
5309 s%@prefix@%$prefix%g
5310 s%@program_transform_name@%$program_transform_name%g
5311 s%@bindir@%$bindir%g
5312 s%@sbindir@%$sbindir%g
5313 s%@libexecdir@%$libexecdir%g
5314 s%@datadir@%$datadir%g
5315 s%@sysconfdir@%$sysconfdir%g
5316 s%@sharedstatedir@%$sharedstatedir%g
5317 s%@localstatedir@%$localstatedir%g
5318 s%@libdir@%$libdir%g
5319 s%@includedir@%$includedir%g
5320 s%@oldincludedir@%$oldincludedir%g
5321 s%@infodir@%$infodir%g
5322 s%@mandir@%$mandir%g
5323 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5324 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5325 s%@INSTALL_DATA@%$INSTALL_DATA%g
5326 s%@PACKAGE@%$PACKAGE%g
5327 s%@VERSION@%$VERSION%g
5328 s%@ACLOCAL@%$ACLOCAL%g
5329 s%@AUTOCONF@%$AUTOCONF%g
5330 s%@AUTOMAKE@%$AUTOMAKE%g
5331 s%@AUTOHEADER@%$AUTOHEADER%g
5332 s%@MAKEINFO@%$MAKEINFO%g
5333 s%@SET_MAKE@%$SET_MAKE%g
5334 s%@host@%$host%g
5335 s%@host_alias@%$host_alias%g
5336 s%@host_cpu@%$host_cpu%g
5337 s%@host_vendor@%$host_vendor%g
5338 s%@host_os@%$host_os%g
5339 s%@RANLIB@%$RANLIB%g
5340 s%@CC@%$CC%g
5341 s%@LD@%$LD%g
5342 s%@NM@%$NM%g
5343 s%@LN_S@%$LN_S%g
5344 s%@LIBTOOL@%$LIBTOOL%g
5345 s%@CPP@%$CPP%g
5346 s%@ALLOCA@%$ALLOCA%g
5347 s%@CPP_PATH@%$CPP_PATH%g
5348 s%@XGETTEXT@%$XGETTEXT%g
5349 s%@INTLIBS@%$INTLIBS%g
5350 s%@NLSDIR@%$NLSDIR%g
5351 s%@MOFILES@%$MOFILES%g
5352 s%@WPMOFILES@%$WPMOFILES%g
5353 s%@LITE@%$LITE%g
5354 s%@X_CFLAGS@%$X_CFLAGS%g
5355 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5356 s%@X_LIBS@%$X_LIBS%g
5357 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5358 s%@LIBPL@%$LIBPL%g
5359 s%@XCFLAGS@%$XCFLAGS%g
5360 s%@XLFLAGS@%$XLFLAGS%g
5361 s%@XLIBS@%$XLIBS%g
5362 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5363 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5364 s%@GFXLIBS@%$GFXLIBS%g
5365 s%@ICONEXT@%$ICONEXT%g
5366 s%@DFLAGS@%$DFLAGS%g
5367 s%@wprefsdir@%$wprefsdir%g
5369 CEOF
5372 cat >> $CONFIG_STATUS <<\EOF
5374 # Split the substitutions into bite-sized pieces for seds with
5375 # small command number limits, like on Digital OSF/1 and HP-UX.
5376 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5377 ac_file=1 # Number of current file.
5378 ac_beg=1 # First line for current file.
5379 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5380 ac_more_lines=:
5381 ac_sed_cmds=""
5382 while $ac_more_lines; do
5383 if test $ac_beg -gt 1; then
5384 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5385 else
5386 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5388 if test ! -s conftest.s$ac_file; then
5389 ac_more_lines=false
5390 rm -f conftest.s$ac_file
5391 else
5392 if test -z "$ac_sed_cmds"; then
5393 ac_sed_cmds="sed -f conftest.s$ac_file"
5394 else
5395 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5397 ac_file=`expr $ac_file + 1`
5398 ac_beg=$ac_end
5399 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5401 done
5402 if test -z "$ac_sed_cmds"; then
5403 ac_sed_cmds=cat
5407 cat >> $CONFIG_STATUS <<EOF
5409 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5410 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5411 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5412 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5413 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5414 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5415 WindowMaker/Themes/Makefile \
5416 WindowMaker/Themes/Night.themed/Makefile \
5417 WindowMaker/Themes/Checker.themed/Makefile \
5418 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5419 WPrefs.app/po/Makefile "}
5421 cat >> $CONFIG_STATUS <<\EOF
5422 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5423 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5424 case "$ac_file" in
5425 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5426 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5427 *) ac_file_in="${ac_file}.in" ;;
5428 esac
5430 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5432 # Remove last slash and all that follows it. Not all systems have dirname.
5433 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5434 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5435 # The file is in a subdirectory.
5436 test ! -d "$ac_dir" && mkdir "$ac_dir"
5437 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5438 # A "../" for each directory in $ac_dir_suffix.
5439 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5440 else
5441 ac_dir_suffix= ac_dots=
5444 case "$ac_given_srcdir" in
5445 .) srcdir=.
5446 if test -z "$ac_dots"; then top_srcdir=.
5447 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5448 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5449 *) # Relative path.
5450 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5451 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5452 esac
5454 case "$ac_given_INSTALL" in
5455 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5456 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5457 esac
5459 echo creating "$ac_file"
5460 rm -f "$ac_file"
5461 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5462 case "$ac_file" in
5463 *Makefile*) ac_comsub="1i\\
5464 # $configure_input" ;;
5465 *) ac_comsub= ;;
5466 esac
5468 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5469 sed -e "$ac_comsub
5470 s%@configure_input@%$configure_input%g
5471 s%@srcdir@%$srcdir%g
5472 s%@top_srcdir@%$top_srcdir%g
5473 s%@INSTALL@%$INSTALL%g
5474 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5475 fi; done
5476 rm -f conftest.s*
5478 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5479 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5481 # ac_d sets the value in "#define NAME VALUE" lines.
5482 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5483 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5484 ac_dC='\3'
5485 ac_dD='%g'
5486 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5487 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5488 ac_uB='\([ ]\)%\1#\2define\3'
5489 ac_uC=' '
5490 ac_uD='\4%g'
5491 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5492 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5493 ac_eB='$%\1#\2define\3'
5494 ac_eC=' '
5495 ac_eD='%g'
5497 if test "${CONFIG_HEADERS+set}" != set; then
5499 cat >> $CONFIG_STATUS <<EOF
5500 CONFIG_HEADERS="src/config.h"
5502 cat >> $CONFIG_STATUS <<\EOF
5504 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5505 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5506 case "$ac_file" in
5507 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5508 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5509 *) ac_file_in="${ac_file}.in" ;;
5510 esac
5512 echo creating $ac_file
5514 rm -f conftest.frag conftest.in conftest.out
5515 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5516 cat $ac_file_inputs > conftest.in
5520 # Transform confdefs.h into a sed script conftest.vals that substitutes
5521 # the proper values into config.h.in to produce config.h. And first:
5522 # Protect against being on the right side of a sed subst in config.status.
5523 # Protect against being in an unquoted here document in config.status.
5524 rm -f conftest.vals
5525 cat > conftest.hdr <<\EOF
5526 s/[\\&%]/\\&/g
5527 s%[\\$`]%\\&%g
5528 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5529 s%ac_d%ac_u%gp
5530 s%ac_u%ac_e%gp
5532 sed -n -f conftest.hdr confdefs.h > conftest.vals
5533 rm -f conftest.hdr
5535 # This sed command replaces #undef with comments. This is necessary, for
5536 # example, in the case of _POSIX_SOURCE, which is predefined and required
5537 # on some systems where configure will not decide to define it.
5538 cat >> conftest.vals <<\EOF
5539 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5542 # Break up conftest.vals because some shells have a limit on
5543 # the size of here documents, and old seds have small limits too.
5545 rm -f conftest.tail
5546 while :
5548 ac_lines=`grep -c . conftest.vals`
5549 # grep -c gives empty output for an empty file on some AIX systems.
5550 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5551 # Write a limited-size here document to conftest.frag.
5552 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5553 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5554 echo 'CEOF
5555 sed -f conftest.frag conftest.in > conftest.out
5556 rm -f conftest.in
5557 mv conftest.out conftest.in
5558 ' >> $CONFIG_STATUS
5559 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5560 rm -f conftest.vals
5561 mv conftest.tail conftest.vals
5562 done
5563 rm -f conftest.vals
5565 cat >> $CONFIG_STATUS <<\EOF
5566 rm -f conftest.frag conftest.h
5567 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5568 cat conftest.in >> conftest.h
5569 rm -f conftest.in
5570 if cmp -s $ac_file conftest.h 2>/dev/null; then
5571 echo "$ac_file is unchanged"
5572 rm -f conftest.h
5573 else
5574 # Remove last slash and all that follows it. Not all systems have dirname.
5575 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5576 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5577 # The file is in a subdirectory.
5578 test ! -d "$ac_dir" && mkdir "$ac_dir"
5580 rm -f $ac_file
5581 mv conftest.h $ac_file
5583 fi; done
5586 cat >> $CONFIG_STATUS <<EOF
5590 cat >> $CONFIG_STATUS <<\EOF
5591 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5593 exit 0
5595 chmod +x $CONFIG_STATUS
5596 rm -fr confdefs* $ac_clean_files
5597 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5605 cat <<EOF >get-wraster-flags
5606 #!/bin/sh
5608 prefix="$prefix"
5609 exec_prefix=\$prefix
5611 WCFLAGS="-I\$prefix/include $inc_search_path"
5612 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5613 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5615 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--lflags#rp# #lp#--libs#rp#"
5617 if test \$# -eq 0; then
5618 echo "\${usage}" 1>&2
5619 exit 1
5622 while test \$# -gt 0; do
5623 case \$1 in
5624 --cflags)
5625 echo \$WCFLAGS
5627 --lflags)
5628 echo \$WLFLAGS
5630 --libs)
5631 echo \$WLIBS
5634 echo "\${usage}" 1>&2
5635 exit 1
5637 esac
5638 shift
5639 done
5644 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5646 chmod 755 wrlib/get-wraster-flags
5647 rm -f get-wraster-flags
5651 supported_gfx="$supported_gfx builtin-PPM"
5653 if test "x$MOFILES" = "x"; then
5654 mof=none
5655 else
5656 mof=$MOFILES
5660 echo
5661 echo "Window Maker was configured as follows:"
5662 echo
5663 echo "Installation path prefix: $prefix"
5664 echo "Installation path prefix for binaries: $_bindir"
5665 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5666 echo "Graphic format libraries: $supported_gfx"
5667 echo "Sound support: $sound"
5668 echo "Translated message files to install: $mof"
5669 if test "x$MOFILES" != "x"; then
5670 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5674 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5675 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5676 echo
5677 echo "JPEG support will not be included because the JPEG library is"
5678 echo "not installed correctly or was not found. Background images"
5679 echo "from themes will not display as they usually are JPEG files."
5680 echo
5681 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"