Code update for Window Maker version 0.50.0
[wmaker-crm.git] / configure
bloba728f6cea48f6ea8fe2e33089e762a2365fc0234
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12
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 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
16 ac_help="$ac_help
17 --enable-shared build shared libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]"
20 ac_help="$ac_help
21 --enable-kanji multibyte character support (kanji, Korean etc.)"
22 ac_help="$ac_help
23 --enable-modelock XKB keyboard language status support"
24 ac_help="$ac_help
25 --with-nlsdir=PATH specify where the locale stuff should go "
26 ac_help="$ac_help
27 --enable-gnome enable stuff needed for GNOME "
28 ac_help="$ac_help
29 --enable-kde enable support for KDE window manager (kwm) hints "
30 ac_help="$ac_help
31 --enable-lite disable stuff duplicated in KDE/GNOME "
32 ac_help="$ac_help
33 --with-x use the X Window System"
34 ac_help="$ac_help
35 --disable-shape disable shaped window extension support"
36 ac_help="$ac_help
37 --disable-shm disable usage of MIT-SHM extension"
38 ac_help="$ac_help
39 --with-gfx-libs pass compiler flags to look for gfx libraries"
40 ac_help="$ac_help
41 --with-gfx-incs pass compiler flags to look for gfx header files"
42 ac_help="$ac_help
43 --disable-xpm disable use of XPM pixmaps through libXpm"
44 ac_help="$ac_help
45 --disable-png disable PNG support through libpng"
46 ac_help="$ac_help
47 --disable-jpeg disable JPEG support through libjpeg"
48 ac_help="$ac_help
49 --disable-gif disable GIF support through libgif or libungif"
50 ac_help="$ac_help
51 --disable-tiff disable use of TIFF images through libtiff"
52 ac_help="$ac_help
53 --enable-debug enable debugging "
54 ac_help="$ac_help
55 --disable-sound disable sound support "
56 ac_help="$ac_help
57 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
58 ac_help="$ac_help
59 --with-appspath=PATH specify the path of the GNUstep applications
60 directory"
61 ac_help="$ac_help
62 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
65 # Initialize some variables set by options.
66 # The variables have the same names as the options, with
67 # dashes changed to underlines.
68 build=NONE
69 cache_file=./config.cache
70 exec_prefix=NONE
71 host=NONE
72 no_create=
73 nonopt=NONE
74 no_recursion=
75 prefix=NONE
76 program_prefix=NONE
77 program_suffix=NONE
78 program_transform_name=s,x,x,
79 silent=
80 site=
81 srcdir=
82 target=NONE
83 verbose=
84 x_includes=NONE
85 x_libraries=NONE
86 bindir='${exec_prefix}/bin'
87 sbindir='${exec_prefix}/sbin'
88 libexecdir='${exec_prefix}/libexec'
89 datadir='${prefix}/share'
90 sysconfdir='${prefix}/etc'
91 sharedstatedir='${prefix}/com'
92 localstatedir='${prefix}/var'
93 libdir='${exec_prefix}/lib'
94 includedir='${prefix}/include'
95 oldincludedir='/usr/include'
96 infodir='${prefix}/info'
97 mandir='${prefix}/man'
99 # Initialize some other variables.
100 subdirs=
101 MFLAGS= MAKEFLAGS=
102 # Maximum number of lines to put in a shell here document.
103 ac_max_here_lines=12
105 ac_prev=
106 for ac_option
109 # If the previous option needs an argument, assign it.
110 if test -n "$ac_prev"; then
111 eval "$ac_prev=\$ac_option"
112 ac_prev=
113 continue
116 case "$ac_option" in
117 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
118 *) ac_optarg= ;;
119 esac
121 # Accept the important Cygnus configure options, so we can diagnose typos.
123 case "$ac_option" in
125 -bindir | --bindir | --bindi | --bind | --bin | --bi)
126 ac_prev=bindir ;;
127 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
128 bindir="$ac_optarg" ;;
130 -build | --build | --buil | --bui | --bu)
131 ac_prev=build ;;
132 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
133 build="$ac_optarg" ;;
135 -cache-file | --cache-file | --cache-fil | --cache-fi \
136 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
137 ac_prev=cache_file ;;
138 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
139 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
140 cache_file="$ac_optarg" ;;
142 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
143 ac_prev=datadir ;;
144 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
145 | --da=*)
146 datadir="$ac_optarg" ;;
148 -disable-* | --disable-*)
149 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
150 # Reject names that are not valid shell variable names.
151 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
152 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
154 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
155 eval "enable_${ac_feature}=no" ;;
157 -enable-* | --enable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 case "$ac_option" in
165 *=*) ;;
166 *) ac_optarg=yes ;;
167 esac
168 eval "enable_${ac_feature}='$ac_optarg'" ;;
170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
172 | --exec | --exe | --ex)
173 ac_prev=exec_prefix ;;
174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
176 | --exec=* | --exe=* | --ex=*)
177 exec_prefix="$ac_optarg" ;;
179 -gas | --gas | --ga | --g)
180 # Obsolete; use --with-gas.
181 with_gas=yes ;;
183 -help | --help | --hel | --he)
184 # Omit some internal or obsolete options to make the list less imposing.
185 # This message is too long to be a string in the A/UX 3.1 sh.
186 cat << EOF
187 Usage: configure [options] [host]
188 Options: [defaults in brackets after descriptions]
189 Configuration:
190 --cache-file=FILE cache test results in FILE
191 --help print this message
192 --no-create do not create output files
193 --quiet, --silent do not print \`checking...' messages
194 --version print the version of autoconf that created configure
195 Directory and file names:
196 --prefix=PREFIX install architecture-independent files in PREFIX
197 [$ac_default_prefix]
198 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
199 [same as prefix]
200 --bindir=DIR user executables in DIR [EPREFIX/bin]
201 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
202 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
203 --datadir=DIR read-only architecture-independent data in DIR
204 [PREFIX/share]
205 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
206 --sharedstatedir=DIR modifiable architecture-independent data in DIR
207 [PREFIX/com]
208 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
209 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
210 --includedir=DIR C header files in DIR [PREFIX/include]
211 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
212 --infodir=DIR info documentation in DIR [PREFIX/info]
213 --mandir=DIR man documentation in DIR [PREFIX/man]
214 --srcdir=DIR find the sources in DIR [configure dir or ..]
215 --program-prefix=PREFIX prepend PREFIX to installed program names
216 --program-suffix=SUFFIX append SUFFIX to installed program names
217 --program-transform-name=PROGRAM
218 run sed PROGRAM on installed program names
220 cat << EOF
221 Host type:
222 --build=BUILD configure for building on BUILD [BUILD=HOST]
223 --host=HOST configure for HOST [guessed]
224 --target=TARGET configure for TARGET [TARGET=HOST]
225 Features and packages:
226 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
227 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
228 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
229 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
230 --x-includes=DIR X include files are in DIR
231 --x-libraries=DIR X library files are in DIR
233 if test -n "$ac_help"; then
234 echo "--enable and --with options recognized:$ac_help"
236 exit 0 ;;
238 -host | --host | --hos | --ho)
239 ac_prev=host ;;
240 -host=* | --host=* | --hos=* | --ho=*)
241 host="$ac_optarg" ;;
243 -includedir | --includedir | --includedi | --included | --include \
244 | --includ | --inclu | --incl | --inc)
245 ac_prev=includedir ;;
246 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
247 | --includ=* | --inclu=* | --incl=* | --inc=*)
248 includedir="$ac_optarg" ;;
250 -infodir | --infodir | --infodi | --infod | --info | --inf)
251 ac_prev=infodir ;;
252 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
253 infodir="$ac_optarg" ;;
255 -libdir | --libdir | --libdi | --libd)
256 ac_prev=libdir ;;
257 -libdir=* | --libdir=* | --libdi=* | --libd=*)
258 libdir="$ac_optarg" ;;
260 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
261 | --libexe | --libex | --libe)
262 ac_prev=libexecdir ;;
263 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
264 | --libexe=* | --libex=* | --libe=*)
265 libexecdir="$ac_optarg" ;;
267 -localstatedir | --localstatedir | --localstatedi | --localstated \
268 | --localstate | --localstat | --localsta | --localst \
269 | --locals | --local | --loca | --loc | --lo)
270 ac_prev=localstatedir ;;
271 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
272 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
273 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
274 localstatedir="$ac_optarg" ;;
276 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
277 ac_prev=mandir ;;
278 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
279 mandir="$ac_optarg" ;;
281 -nfp | --nfp | --nf)
282 # Obsolete; use --without-fp.
283 with_fp=no ;;
285 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
286 | --no-cr | --no-c)
287 no_create=yes ;;
289 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
290 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
291 no_recursion=yes ;;
293 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
294 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
295 | --oldin | --oldi | --old | --ol | --o)
296 ac_prev=oldincludedir ;;
297 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
298 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
299 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
300 oldincludedir="$ac_optarg" ;;
302 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
303 ac_prev=prefix ;;
304 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
305 prefix="$ac_optarg" ;;
307 -program-prefix | --program-prefix | --program-prefi | --program-pref \
308 | --program-pre | --program-pr | --program-p)
309 ac_prev=program_prefix ;;
310 -program-prefix=* | --program-prefix=* | --program-prefi=* \
311 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
312 program_prefix="$ac_optarg" ;;
314 -program-suffix | --program-suffix | --program-suffi | --program-suff \
315 | --program-suf | --program-su | --program-s)
316 ac_prev=program_suffix ;;
317 -program-suffix=* | --program-suffix=* | --program-suffi=* \
318 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
319 program_suffix="$ac_optarg" ;;
321 -program-transform-name | --program-transform-name \
322 | --program-transform-nam | --program-transform-na \
323 | --program-transform-n | --program-transform- \
324 | --program-transform | --program-transfor \
325 | --program-transfo | --program-transf \
326 | --program-trans | --program-tran \
327 | --progr-tra | --program-tr | --program-t)
328 ac_prev=program_transform_name ;;
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 program_transform_name="$ac_optarg" ;;
338 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
339 | -silent | --silent | --silen | --sile | --sil)
340 silent=yes ;;
342 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
343 ac_prev=sbindir ;;
344 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
345 | --sbi=* | --sb=*)
346 sbindir="$ac_optarg" ;;
348 -sharedstatedir | --sharedstatedir | --sharedstatedi \
349 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
350 | --sharedst | --shareds | --shared | --share | --shar \
351 | --sha | --sh)
352 ac_prev=sharedstatedir ;;
353 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
354 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
355 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
356 | --sha=* | --sh=*)
357 sharedstatedir="$ac_optarg" ;;
359 -site | --site | --sit)
360 ac_prev=site ;;
361 -site=* | --site=* | --sit=*)
362 site="$ac_optarg" ;;
364 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
365 ac_prev=srcdir ;;
366 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
367 srcdir="$ac_optarg" ;;
369 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
370 | --syscon | --sysco | --sysc | --sys | --sy)
371 ac_prev=sysconfdir ;;
372 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
373 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
374 sysconfdir="$ac_optarg" ;;
376 -target | --target | --targe | --targ | --tar | --ta | --t)
377 ac_prev=target ;;
378 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
379 target="$ac_optarg" ;;
381 -v | -verbose | --verbose | --verbos | --verbo | --verb)
382 verbose=yes ;;
384 -version | --version | --versio | --versi | --vers)
385 echo "configure generated by autoconf version 2.12"
386 exit 0 ;;
388 -with-* | --with-*)
389 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
390 # Reject names that are not valid shell variable names.
391 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
392 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
394 ac_package=`echo $ac_package| sed 's/-/_/g'`
395 case "$ac_option" in
396 *=*) ;;
397 *) ac_optarg=yes ;;
398 esac
399 eval "with_${ac_package}='$ac_optarg'" ;;
401 -without-* | --without-*)
402 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
403 # Reject names that are not valid shell variable names.
404 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
405 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
407 ac_package=`echo $ac_package| sed 's/-/_/g'`
408 eval "with_${ac_package}=no" ;;
410 --x)
411 # Obsolete; use --with-x.
412 with_x=yes ;;
414 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
415 | --x-incl | --x-inc | --x-in | --x-i)
416 ac_prev=x_includes ;;
417 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
418 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
419 x_includes="$ac_optarg" ;;
421 -x-libraries | --x-libraries | --x-librarie | --x-librari \
422 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
423 ac_prev=x_libraries ;;
424 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
425 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
426 x_libraries="$ac_optarg" ;;
428 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
432 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
433 echo "configure: warning: $ac_option: invalid host type" 1>&2
435 if test "x$nonopt" != xNONE; then
436 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
438 nonopt="$ac_option"
441 esac
442 done
444 if test -n "$ac_prev"; then
445 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
448 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
450 # File descriptor usage:
451 # 0 standard input
452 # 1 file creation
453 # 2 errors and warnings
454 # 3 some systems may open it to /dev/tty
455 # 4 used on the Kubota Titan
456 # 6 checking for... messages and results
457 # 5 compiler messages saved in config.log
458 if test "$silent" = yes; then
459 exec 6>/dev/null
460 else
461 exec 6>&1
463 exec 5>./config.log
465 echo "\
466 This file contains any messages produced by compilers while
467 running configure, to aid debugging if configure makes a mistake.
468 " 1>&5
470 # Strip out --no-create and --no-recursion so they do not pile up.
471 # Also quote any args containing shell metacharacters.
472 ac_configure_args=
473 for ac_arg
475 case "$ac_arg" in
476 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
477 | --no-cr | --no-c) ;;
478 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
479 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
480 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
481 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
482 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
483 esac
484 done
486 # NLS nuisances.
487 # Only set these to C if already set. These must not be set unconditionally
488 # because not all systems understand e.g. LANG=C (notably SCO).
489 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
490 # Non-C LC_CTYPE values break the ctype check.
491 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
492 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
493 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
494 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
496 # confdefs.h avoids OS command line length limits that DEFS can exceed.
497 rm -rf conftest* confdefs.h
498 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
499 echo > confdefs.h
501 # A filename unique to this package, relative to the directory that
502 # configure is in, which we can look for to find out if srcdir is correct.
503 ac_unique_file=src/WindowMaker.h
505 # Find the source files, if location was not specified.
506 if test -z "$srcdir"; then
507 ac_srcdir_defaulted=yes
508 # Try the directory containing this script, then its parent.
509 ac_prog=$0
510 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
511 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
512 srcdir=$ac_confdir
513 if test ! -r $srcdir/$ac_unique_file; then
514 srcdir=..
516 else
517 ac_srcdir_defaulted=no
519 if test ! -r $srcdir/$ac_unique_file; then
520 if test "$ac_srcdir_defaulted" = yes; then
521 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
522 else
523 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
526 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
528 # Prefer explicitly selected file to automatically selected ones.
529 if test -z "$CONFIG_SITE"; then
530 if test "x$prefix" != xNONE; then
531 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
532 else
533 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
536 for ac_site_file in $CONFIG_SITE; do
537 if test -r "$ac_site_file"; then
538 echo "loading site script $ac_site_file"
539 . "$ac_site_file"
541 done
543 if test -r "$cache_file"; then
544 echo "loading cache $cache_file"
545 . $cache_file
546 else
547 echo "creating cache $cache_file"
548 > $cache_file
551 ac_ext=c
552 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
553 ac_cpp='$CPP $CPPFLAGS'
554 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
555 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
556 cross_compiling=$ac_cv_prog_cc_cross
558 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
559 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
560 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
561 ac_n= ac_c='
562 ' ac_t=' '
563 else
564 ac_n=-n ac_c= ac_t=
566 else
567 ac_n= ac_c='\c' ac_t=
572 ac_aux_dir=
573 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
574 if test -f $ac_dir/install-sh; then
575 ac_aux_dir=$ac_dir
576 ac_install_sh="$ac_aux_dir/install-sh -c"
577 break
578 elif test -f $ac_dir/install.sh; then
579 ac_aux_dir=$ac_dir
580 ac_install_sh="$ac_aux_dir/install.sh -c"
581 break
583 done
584 if test -z "$ac_aux_dir"; then
585 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
587 ac_config_guess=$ac_aux_dir/config.guess
588 ac_config_sub=$ac_aux_dir/config.sub
589 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
591 # Find a good install program. We prefer a C program (faster),
592 # so one script is as good as another. But avoid the broken or
593 # incompatible versions:
594 # SysV /etc/install, /usr/sbin/install
595 # SunOS /usr/etc/install
596 # IRIX /sbin/install
597 # AIX /bin/install
598 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
599 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
600 # ./install, which can be erroneously created by make from ./install.sh.
601 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
602 echo "configure:603: checking for a BSD compatible install" >&5
603 if test -z "$INSTALL"; then
604 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
605 echo $ac_n "(cached) $ac_c" 1>&6
606 else
607 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
608 for ac_dir in $PATH; do
609 # Account for people who put trailing slashes in PATH elements.
610 case "$ac_dir/" in
611 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
613 # OSF1 and SCO ODT 3.0 have their own names for install.
614 for ac_prog in ginstall installbsd scoinst install; do
615 if test -f $ac_dir/$ac_prog; then
616 if test $ac_prog = install &&
617 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
618 # AIX install. It has an incompatible calling convention.
619 # OSF/1 installbsd also uses dspmsg, but is usable.
621 else
622 ac_cv_path_install="$ac_dir/$ac_prog -c"
623 break 2
626 done
628 esac
629 done
630 IFS="$ac_save_IFS"
633 if test "${ac_cv_path_install+set}" = set; then
634 INSTALL="$ac_cv_path_install"
635 else
636 # As a last resort, use the slow shell script. We don't cache a
637 # path for INSTALL within a source directory, because that will
638 # break other packages using the cache if that directory is
639 # removed, or if the path is relative.
640 INSTALL="$ac_install_sh"
643 echo "$ac_t""$INSTALL" 1>&6
645 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
646 # It thinks the first close brace ends the variable substitution.
647 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
649 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
652 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
654 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
655 echo "configure:656: checking whether build environment is sane" >&5
656 # Just in case
657 sleep 1
658 echo timestamp > conftestfile
659 # Do `set' in a subshell so we don't clobber the current shell's
660 # arguments. Must try -L first in case configure is actually a
661 # symlink; some systems play weird games with the mod time of symlinks
662 # (eg FreeBSD returns the mod time of the symlink's containing
663 # directory).
664 if (
665 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
666 if test "$*" = "X"; then
667 # -L didn't work.
668 set X `ls -t $srcdir/configure conftestfile`
670 if test "$*" != "X $srcdir/configure conftestfile" \
671 && test "$*" != "X conftestfile $srcdir/configure"; then
673 # If neither matched, then we have a broken ls. This can happen
674 # if, for instance, CONFIG_SHELL is bash and it inherits a
675 # broken ls alias from the environment. This has actually
676 # happened. Such a system could not be considered "sane".
677 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
678 alias in your environment" 1>&2; exit 1; }
681 test "$2" = conftestfile
683 then
684 # Ok.
686 else
687 { echo "configure: error: newly created file is older than distributed files!
688 Check your system clock" 1>&2; exit 1; }
690 rm -f conftest*
691 echo "$ac_t""yes" 1>&6
692 if test "$program_transform_name" = s,x,x,; then
693 program_transform_name=
694 else
695 # Double any \ or $. echo might interpret backslashes.
696 cat <<\EOF_SED > conftestsed
697 s,\\,\\\\,g; s,\$,$$,g
698 EOF_SED
699 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
700 rm -f conftestsed
702 test "$program_prefix" != NONE &&
703 program_transform_name="s,^,${program_prefix},; $program_transform_name"
704 # Use a double $ so make ignores it.
705 test "$program_suffix" != NONE &&
706 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
708 # sed with no file args requires a program.
709 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
711 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
712 echo "configure:713: checking whether ${MAKE-make} sets \${MAKE}" >&5
713 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
714 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
715 echo $ac_n "(cached) $ac_c" 1>&6
716 else
717 cat > conftestmake <<\EOF
718 all:
719 @echo 'ac_maketemp="${MAKE}"'
721 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
722 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
723 if test -n "$ac_maketemp"; then
724 eval ac_cv_prog_make_${ac_make}_set=yes
725 else
726 eval ac_cv_prog_make_${ac_make}_set=no
728 rm -f conftestmake
730 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
731 echo "$ac_t""yes" 1>&6
732 SET_MAKE=
733 else
734 echo "$ac_t""no" 1>&6
735 SET_MAKE="MAKE=${MAKE-make}"
739 PACKAGE=WindowMaker
741 VERSION=0.50.0
743 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
744 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
746 cat >> confdefs.h <<EOF
747 #define PACKAGE "$PACKAGE"
750 cat >> confdefs.h <<EOF
751 #define VERSION "$VERSION"
756 missing_dir=`cd $ac_aux_dir && pwd`
757 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
758 echo "configure:759: checking for working aclocal" >&5
759 # Run test in a subshell; some versions of sh will print an error if
760 # an executable is not found, even if stderr is redirected.
761 # Redirect stdin to placate older versions of autoconf. Sigh.
762 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
763 ACLOCAL=aclocal
764 echo "$ac_t""found" 1>&6
765 else
766 ACLOCAL="$missing_dir/missing aclocal"
767 echo "$ac_t""missing" 1>&6
770 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
771 echo "configure:772: checking for working autoconf" >&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 (autoconf --version) < /dev/null > /dev/null 2>&1; then
776 AUTOCONF=autoconf
777 echo "$ac_t""found" 1>&6
778 else
779 AUTOCONF="$missing_dir/missing autoconf"
780 echo "$ac_t""missing" 1>&6
783 echo $ac_n "checking for working automake""... $ac_c" 1>&6
784 echo "configure:785: checking for working automake" >&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 (automake --version) < /dev/null > /dev/null 2>&1; then
789 AUTOMAKE=automake
790 echo "$ac_t""found" 1>&6
791 else
792 AUTOMAKE="$missing_dir/missing automake"
793 echo "$ac_t""missing" 1>&6
796 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
797 echo "configure:798: checking for working autoheader" >&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 (autoheader --version) < /dev/null > /dev/null 2>&1; then
802 AUTOHEADER=autoheader
803 echo "$ac_t""found" 1>&6
804 else
805 AUTOHEADER="$missing_dir/missing autoheader"
806 echo "$ac_t""missing" 1>&6
809 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
810 echo "configure:811: checking for working makeinfo" >&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 (makeinfo --version) < /dev/null > /dev/null 2>&1; then
815 MAKEINFO=makeinfo
816 echo "$ac_t""found" 1>&6
817 else
818 MAKEINFO="$missing_dir/missing makeinfo"
819 echo "$ac_t""missing" 1>&6
825 # Make sure we can run config.sub.
826 if $ac_config_sub sun4 >/dev/null 2>&1; then :
827 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
830 echo $ac_n "checking host system type""... $ac_c" 1>&6
831 echo "configure:832: checking host system type" >&5
833 host_alias=$host
834 case "$host_alias" in
835 NONE)
836 case $nonopt in
837 NONE)
838 if host_alias=`$ac_config_guess`; then :
839 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
840 fi ;;
841 *) host_alias=$nonopt ;;
842 esac ;;
843 esac
845 host=`$ac_config_sub $host_alias`
846 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
847 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
848 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
849 echo "$ac_t""$host" 1>&6
851 # Extract the first word of "gcc", so it can be a program name with args.
852 set dummy gcc; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
860 else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
862 for ac_dir in $PATH; do
863 test -z "$ac_dir" && ac_dir=.
864 if test -f $ac_dir/$ac_word; then
865 ac_cv_prog_CC="gcc"
866 break
868 done
869 IFS="$ac_save_ifs"
872 CC="$ac_cv_prog_CC"
873 if test -n "$CC"; then
874 echo "$ac_t""$CC" 1>&6
875 else
876 echo "$ac_t""no" 1>&6
879 if test -z "$CC"; then
880 # Extract the first word of "cc", so it can be a program name with args.
881 set dummy cc; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 if test -n "$CC"; then
888 ac_cv_prog_CC="$CC" # Let the user override the test.
889 else
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
891 ac_prog_rejected=no
892 for ac_dir in $PATH; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
896 ac_prog_rejected=yes
897 continue
899 ac_cv_prog_CC="cc"
900 break
902 done
903 IFS="$ac_save_ifs"
904 if test $ac_prog_rejected = yes; then
905 # We found a bogon in the path, so make sure we never use it.
906 set dummy $ac_cv_prog_CC
907 shift
908 if test $# -gt 0; then
909 # We chose a different compiler from the bogus one.
910 # However, it has the same basename, so the bogon will be chosen
911 # first if we set CC to just the basename; use the full file name.
912 shift
913 set dummy "$ac_dir/$ac_word" "$@"
914 shift
915 ac_cv_prog_CC="$@"
920 CC="$ac_cv_prog_CC"
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
933 ac_ext=c
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 main(){return(0);}
945 if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
946 ac_cv_prog_cc_works=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (./conftest; exit) 2>/dev/null; then
949 ac_cv_prog_cc_cross=no
950 else
951 ac_cv_prog_cc_cross=yes
953 else
954 echo "configure: failed program was:" >&5
955 cat conftest.$ac_ext >&5
956 ac_cv_prog_cc_works=no
958 rm -fr conftest*
960 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
961 if test $ac_cv_prog_cc_works = no; then
962 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
964 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
965 echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
966 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
970 echo "configure:971: checking whether we are using GNU C" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
973 else
974 cat > conftest.c <<EOF
975 #ifdef __GNUC__
976 yes;
977 #endif
979 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
980 ac_cv_prog_gcc=yes
981 else
982 ac_cv_prog_gcc=no
986 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
988 if test $ac_cv_prog_gcc = yes; then
989 GCC=yes
990 ac_test_CFLAGS="${CFLAGS+set}"
991 ac_save_CFLAGS="$CFLAGS"
992 CFLAGS=
993 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
994 echo "configure:995: checking whether ${CC-cc} accepts -g" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997 else
998 echo 'void f(){}' > conftest.c
999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1000 ac_cv_prog_cc_g=yes
1001 else
1002 ac_cv_prog_cc_g=no
1004 rm -f conftest*
1008 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1009 if test "$ac_test_CFLAGS" = set; then
1010 CFLAGS="$ac_save_CFLAGS"
1011 elif test $ac_cv_prog_cc_g = yes; then
1012 CFLAGS="-g -O2"
1013 else
1014 CFLAGS="-O2"
1016 else
1017 GCC=
1018 test "${CFLAGS+set}" = set || CFLAGS="-g"
1021 # Extract the first word of "ranlib", so it can be a program name with args.
1022 set dummy ranlib; 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_RANLIB'+set}'`\" = set"; then
1026 echo $ac_n "(cached) $ac_c" 1>&6
1027 else
1028 if test -n "$RANLIB"; then
1029 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1030 else
1031 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1032 for ac_dir in $PATH; do
1033 test -z "$ac_dir" && ac_dir=.
1034 if test -f $ac_dir/$ac_word; then
1035 ac_cv_prog_RANLIB="ranlib"
1036 break
1038 done
1039 IFS="$ac_save_ifs"
1040 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1043 RANLIB="$ac_cv_prog_RANLIB"
1044 if test -n "$RANLIB"; then
1045 echo "$ac_t""$RANLIB" 1>&6
1046 else
1047 echo "$ac_t""no" 1>&6
1050 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1051 if test "${with_gnu_ld+set}" = set; then
1052 withval="$with_gnu_ld"
1053 test "$withval" = no || with_gnu_ld=yes
1054 else
1055 with_gnu_ld=no
1058 if test "$with_gnu_ld" = yes; then
1059 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1060 echo "configure:1061: checking for GNU ld" >&5
1061 else
1062 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1063 echo "configure:1064: checking for non-GNU ld" >&5
1065 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1066 echo $ac_n "(cached) $ac_c" 1>&6
1067 else
1068 case "$LD" in
1070 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1074 for ac_dir in $PATH; do
1075 test -z "$ac_dir" && ac_dir=.
1076 if test -f "$ac_dir/ld"; then
1077 ac_cv_path_LD="$ac_dir/ld"
1078 # Check to see if the program is GNU ld. I'd rather use --version,
1079 # but apparently some GNU ld's only accept -v.
1080 # Break only if it was the GNU/non-GNU ld that we prefer.
1081 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1082 test "$with_gnu_ld" = yes && break
1083 else
1084 test "$with_gnu_ld" != yes && break
1087 done
1088 IFS="$ac_save_ifs"
1090 esac
1093 LD="$ac_cv_path_LD"
1094 if test -n "$LD"; then
1095 echo "$ac_t""$LD" 1>&6
1096 else
1097 echo "$ac_t""no" 1>&6
1099 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1101 echo $ac_n "checking whether we are using GNU ld""... $ac_c" 1>&6
1102 echo "configure:1103: checking whether we are using GNU ld" >&5
1103 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1104 echo $ac_n "(cached) $ac_c" 1>&6
1105 else
1106 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1107 if $LD -v 2>&1 </dev/null | egrep '(GNU ld|with BFD)' > /dev/null; then
1108 ac_cv_prog_gnu_ld=yes
1109 else
1110 ac_cv_prog_gnu_ld=no
1114 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1117 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1118 echo "configure:1119: checking whether ln -s works" >&5
1119 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1120 echo $ac_n "(cached) $ac_c" 1>&6
1121 else
1122 rm -f conftestdata
1123 if ln -s X conftestdata 2>/dev/null
1124 then
1125 rm -f conftestdata
1126 ac_cv_prog_LN_S="ln -s"
1127 else
1128 ac_cv_prog_LN_S=ln
1131 LN_S="$ac_cv_prog_LN_S"
1132 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1133 echo "$ac_t""yes" 1>&6
1134 else
1135 echo "$ac_t""no" 1>&6
1144 # Always use our own libtool.
1145 LIBTOOL='$(top_builddir)/libtool'
1148 # Check whether --enable-shared or --disable-shared was given.
1149 if test "${enable_shared+set}" = set; then
1150 enableval="$enable_shared"
1151 test "$enableval" = no && libtool_shared=" --disable-shared"
1152 else
1153 libtool_shared=
1157 # Check whether --enable-static or --disable-static was given.
1158 if test "${enable_static+set}" = set; then
1159 enableval="$enable_static"
1160 test "$enableval" = no && libtool_static=" --disable-static"
1161 else
1162 libtool_static=
1166 libtool_flags="$libtool_shared$libtool_static"
1167 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1168 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1169 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1171 # Some flags need to be propagated to the compiler or linker for good
1172 # libtool support.
1173 case "$host" in
1174 *-*-irix6*)
1175 for f in '-32' '-64' '-cckr' '-n32' '-mips1' '-mips2' '-mips3' '-mips4'; do
1176 if echo " $CC $CFLAGS " | egrep -e "[ ]$f[ ]" > /dev/null; then
1177 LD="${LD-ld} $f"
1179 done
1182 *-*-sco3.2v5*)
1183 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1184 CFLAGS="$CFLAGS -belf"
1186 esac
1188 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1189 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1190 LD="$LD" RANLIB="$RANLIB" LN_S="$LN_S" \
1191 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1192 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1193 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1197 subdirs="libPropList"
1207 # Make sure we can run config.sub.
1208 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1209 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1212 echo $ac_n "checking host system type""... $ac_c" 1>&6
1213 echo "configure:1214: checking host system type" >&5
1215 host_alias=$host
1216 case "$host_alias" in
1217 NONE)
1218 case $nonopt in
1219 NONE)
1220 if host_alias=`$ac_config_guess`; then :
1221 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1222 fi ;;
1223 *) host_alias=$nonopt ;;
1224 esac ;;
1225 esac
1227 host=`$ac_config_sub $host_alias`
1228 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1229 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1230 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1231 echo "$ac_t""$host" 1>&6
1235 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1236 echo "configure:1237: checking for POSIXized ISC" >&5
1237 if test -d /etc/conf/kconfig.d &&
1238 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1239 then
1240 echo "$ac_t""yes" 1>&6
1241 ISC=yes # If later tests want to check for ISC.
1242 cat >> confdefs.h <<\EOF
1243 #define _POSIX_SOURCE 1
1246 if test "$GCC" = yes; then
1247 CC="$CC -posix"
1248 else
1249 CC="$CC -Xp"
1251 else
1252 echo "$ac_t""no" 1>&6
1253 ISC=
1256 # Extract the first word of "gcc", so it can be a program name with args.
1257 set dummy gcc; ac_word=$2
1258 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1259 echo "configure:1260: checking for $ac_word" >&5
1260 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1261 echo $ac_n "(cached) $ac_c" 1>&6
1262 else
1263 if test -n "$CC"; then
1264 ac_cv_prog_CC="$CC" # Let the user override the test.
1265 else
1266 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1267 for ac_dir in $PATH; do
1268 test -z "$ac_dir" && ac_dir=.
1269 if test -f $ac_dir/$ac_word; then
1270 ac_cv_prog_CC="gcc"
1271 break
1273 done
1274 IFS="$ac_save_ifs"
1277 CC="$ac_cv_prog_CC"
1278 if test -n "$CC"; then
1279 echo "$ac_t""$CC" 1>&6
1280 else
1281 echo "$ac_t""no" 1>&6
1284 if test -z "$CC"; then
1285 # Extract the first word of "cc", so it can be a program name with args.
1286 set dummy cc; ac_word=$2
1287 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1288 echo "configure:1289: checking for $ac_word" >&5
1289 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1290 echo $ac_n "(cached) $ac_c" 1>&6
1291 else
1292 if test -n "$CC"; then
1293 ac_cv_prog_CC="$CC" # Let the user override the test.
1294 else
1295 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1296 ac_prog_rejected=no
1297 for ac_dir in $PATH; do
1298 test -z "$ac_dir" && ac_dir=.
1299 if test -f $ac_dir/$ac_word; then
1300 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1301 ac_prog_rejected=yes
1302 continue
1304 ac_cv_prog_CC="cc"
1305 break
1307 done
1308 IFS="$ac_save_ifs"
1309 if test $ac_prog_rejected = yes; then
1310 # We found a bogon in the path, so make sure we never use it.
1311 set dummy $ac_cv_prog_CC
1312 shift
1313 if test $# -gt 0; then
1314 # We chose a different compiler from the bogus one.
1315 # However, it has the same basename, so the bogon will be chosen
1316 # first if we set CC to just the basename; use the full file name.
1317 shift
1318 set dummy "$ac_dir/$ac_word" "$@"
1319 shift
1320 ac_cv_prog_CC="$@"
1325 CC="$ac_cv_prog_CC"
1326 if test -n "$CC"; then
1327 echo "$ac_t""$CC" 1>&6
1328 else
1329 echo "$ac_t""no" 1>&6
1332 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1335 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1336 echo "configure:1337: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1338 ac_ext=c
1339 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1340 ac_cpp='$CPP $CPPFLAGS'
1341 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1342 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1343 cross_compiling=$ac_cv_prog_cc_cross
1345 cat > conftest.$ac_ext <<EOF
1346 #line 1347 "configure"
1347 #include "confdefs.h"
1348 main(){return(0);}
1350 if { (eval echo configure:1351: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1351 ac_cv_prog_cc_works=yes
1352 # If we can't run a trivial program, we are probably using a cross compiler.
1353 if (./conftest; exit) 2>/dev/null; then
1354 ac_cv_prog_cc_cross=no
1355 else
1356 ac_cv_prog_cc_cross=yes
1358 else
1359 echo "configure: failed program was:" >&5
1360 cat conftest.$ac_ext >&5
1361 ac_cv_prog_cc_works=no
1363 rm -fr conftest*
1365 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1366 if test $ac_cv_prog_cc_works = no; then
1367 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1369 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1370 echo "configure:1371: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1371 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1372 cross_compiling=$ac_cv_prog_cc_cross
1374 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1375 echo "configure:1376: checking whether we are using GNU C" >&5
1376 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1377 echo $ac_n "(cached) $ac_c" 1>&6
1378 else
1379 cat > conftest.c <<EOF
1380 #ifdef __GNUC__
1381 yes;
1382 #endif
1384 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1385: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1385 ac_cv_prog_gcc=yes
1386 else
1387 ac_cv_prog_gcc=no
1391 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1393 if test $ac_cv_prog_gcc = yes; then
1394 GCC=yes
1395 ac_test_CFLAGS="${CFLAGS+set}"
1396 ac_save_CFLAGS="$CFLAGS"
1397 CFLAGS=
1398 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1399 echo "configure:1400: checking whether ${CC-cc} accepts -g" >&5
1400 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1401 echo $ac_n "(cached) $ac_c" 1>&6
1402 else
1403 echo 'void f(){}' > conftest.c
1404 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1405 ac_cv_prog_cc_g=yes
1406 else
1407 ac_cv_prog_cc_g=no
1409 rm -f conftest*
1413 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1414 if test "$ac_test_CFLAGS" = set; then
1415 CFLAGS="$ac_save_CFLAGS"
1416 elif test $ac_cv_prog_cc_g = yes; then
1417 CFLAGS="-g -O2"
1418 else
1419 CFLAGS="-O2"
1421 else
1422 GCC=
1423 test "${CFLAGS+set}" = set || CFLAGS="-g"
1426 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1427 echo "configure:1428: checking whether ${MAKE-make} sets \${MAKE}" >&5
1428 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1429 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1430 echo $ac_n "(cached) $ac_c" 1>&6
1431 else
1432 cat > conftestmake <<\EOF
1433 all:
1434 @echo 'ac_maketemp="${MAKE}"'
1436 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1437 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1438 if test -n "$ac_maketemp"; then
1439 eval ac_cv_prog_make_${ac_make}_set=yes
1440 else
1441 eval ac_cv_prog_make_${ac_make}_set=no
1443 rm -f conftestmake
1445 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1446 echo "$ac_t""yes" 1>&6
1447 SET_MAKE=
1448 else
1449 echo "$ac_t""no" 1>&6
1450 SET_MAKE="MAKE=${MAKE-make}"
1453 #AC_PROG_RANLIB
1454 # Find a good install program. We prefer a C program (faster),
1455 # so one script is as good as another. But avoid the broken or
1456 # incompatible versions:
1457 # SysV /etc/install, /usr/sbin/install
1458 # SunOS /usr/etc/install
1459 # IRIX /sbin/install
1460 # AIX /bin/install
1461 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1462 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1463 # ./install, which can be erroneously created by make from ./install.sh.
1464 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1465 echo "configure:1466: checking for a BSD compatible install" >&5
1466 if test -z "$INSTALL"; then
1467 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1468 echo $ac_n "(cached) $ac_c" 1>&6
1469 else
1470 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1471 for ac_dir in $PATH; do
1472 # Account for people who put trailing slashes in PATH elements.
1473 case "$ac_dir/" in
1474 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1476 # OSF1 and SCO ODT 3.0 have their own names for install.
1477 for ac_prog in ginstall installbsd scoinst install; do
1478 if test -f $ac_dir/$ac_prog; then
1479 if test $ac_prog = install &&
1480 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1481 # AIX install. It has an incompatible calling convention.
1482 # OSF/1 installbsd also uses dspmsg, but is usable.
1484 else
1485 ac_cv_path_install="$ac_dir/$ac_prog -c"
1486 break 2
1489 done
1491 esac
1492 done
1493 IFS="$ac_save_IFS"
1496 if test "${ac_cv_path_install+set}" = set; then
1497 INSTALL="$ac_cv_path_install"
1498 else
1499 # As a last resort, use the slow shell script. We don't cache a
1500 # path for INSTALL within a source directory, because that will
1501 # break other packages using the cache if that directory is
1502 # removed, or if the path is relative.
1503 INSTALL="$ac_install_sh"
1506 echo "$ac_t""$INSTALL" 1>&6
1508 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1509 # It thinks the first close brace ends the variable substitution.
1510 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1512 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1514 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1515 echo "configure:1516: checking whether ln -s works" >&5
1516 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1517 echo $ac_n "(cached) $ac_c" 1>&6
1518 else
1519 rm -f conftestdata
1520 if ln -s X conftestdata 2>/dev/null
1521 then
1522 rm -f conftestdata
1523 ac_cv_prog_LN_S="ln -s"
1524 else
1525 ac_cv_prog_LN_S=ln
1528 LN_S="$ac_cv_prog_LN_S"
1529 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1530 echo "$ac_t""yes" 1>&6
1531 else
1532 echo "$ac_t""no" 1>&6
1535 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1536 echo "configure:1537: checking how to run the C preprocessor" >&5
1537 # On Suns, sometimes $CPP names a directory.
1538 if test -n "$CPP" && test -d "$CPP"; then
1539 CPP=
1541 if test -z "$CPP"; then
1542 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1543 echo $ac_n "(cached) $ac_c" 1>&6
1544 else
1545 # This must be in double quotes, not single quotes, because CPP may get
1546 # substituted into the Makefile and "${CC-cc}" will confuse make.
1547 CPP="${CC-cc} -E"
1548 # On the NeXT, cc -E runs the code through the compiler's parser,
1549 # not just through cpp.
1550 cat > conftest.$ac_ext <<EOF
1551 #line 1552 "configure"
1552 #include "confdefs.h"
1553 #include <assert.h>
1554 Syntax Error
1556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1557 { (eval echo configure:1558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1558 ac_err=`grep -v '^ *+' conftest.out`
1559 if test -z "$ac_err"; then
1561 else
1562 echo "$ac_err" >&5
1563 echo "configure: failed program was:" >&5
1564 cat conftest.$ac_ext >&5
1565 rm -rf conftest*
1566 CPP="${CC-cc} -E -traditional-cpp"
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <assert.h>
1571 Syntax Error
1573 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1574 { (eval echo configure:1575: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1575 ac_err=`grep -v '^ *+' conftest.out`
1576 if test -z "$ac_err"; then
1578 else
1579 echo "$ac_err" >&5
1580 echo "configure: failed program was:" >&5
1581 cat conftest.$ac_ext >&5
1582 rm -rf conftest*
1583 CPP=/lib/cpp
1585 rm -f conftest*
1587 rm -f conftest*
1588 ac_cv_prog_CPP="$CPP"
1590 CPP="$ac_cv_prog_CPP"
1591 else
1592 ac_cv_prog_CPP="$CPP"
1594 echo "$ac_t""$CPP" 1>&6
1596 if test $ac_cv_prog_gcc = yes; then
1597 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1598 echo "configure:1599: checking whether ${CC-cc} needs -traditional" >&5
1599 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1600 echo $ac_n "(cached) $ac_c" 1>&6
1601 else
1602 ac_pattern="Autoconf.*'x'"
1603 cat > conftest.$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1606 #include <sgtty.h>
1607 Autoconf TIOCGETP
1609 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1610 egrep "$ac_pattern" >/dev/null 2>&1; then
1611 rm -rf conftest*
1612 ac_cv_prog_gcc_traditional=yes
1613 else
1614 rm -rf conftest*
1615 ac_cv_prog_gcc_traditional=no
1617 rm -f conftest*
1620 if test $ac_cv_prog_gcc_traditional = no; then
1621 cat > conftest.$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1624 #include <termio.h>
1625 Autoconf TCGETA
1627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1628 egrep "$ac_pattern" >/dev/null 2>&1; then
1629 rm -rf conftest*
1630 ac_cv_prog_gcc_traditional=yes
1632 rm -f conftest*
1637 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1638 if test $ac_cv_prog_gcc_traditional = yes; then
1639 CC="$CC -traditional"
1645 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1646 echo "configure:1647: checking return type of signal handlers" >&5
1647 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1648 echo $ac_n "(cached) $ac_c" 1>&6
1649 else
1650 cat > conftest.$ac_ext <<EOF
1651 #line 1652 "configure"
1652 #include "confdefs.h"
1653 #include <sys/types.h>
1654 #include <signal.h>
1655 #ifdef signal
1656 #undef signal
1657 #endif
1658 #ifdef __cplusplus
1659 extern "C" void (*signal (int, void (*)(int)))(int);
1660 #else
1661 void (*signal ()) ();
1662 #endif
1664 int main() {
1665 int i;
1666 ; return 0; }
1668 if { (eval echo configure:1669: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1669 rm -rf conftest*
1670 ac_cv_type_signal=void
1671 else
1672 echo "configure: failed program was:" >&5
1673 cat conftest.$ac_ext >&5
1674 rm -rf conftest*
1675 ac_cv_type_signal=int
1677 rm -f conftest*
1680 echo "$ac_t""$ac_cv_type_signal" 1>&6
1681 cat >> confdefs.h <<EOF
1682 #define RETSIGTYPE $ac_cv_type_signal
1686 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1687 echo "configure:1688: checking for vprintf" >&5
1688 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1689 echo $ac_n "(cached) $ac_c" 1>&6
1690 else
1691 cat > conftest.$ac_ext <<EOF
1692 #line 1693 "configure"
1693 #include "confdefs.h"
1694 /* System header to define __stub macros and hopefully few prototypes,
1695 which can conflict with char vprintf(); below. */
1696 #include <assert.h>
1697 /* Override any gcc2 internal prototype to avoid an error. */
1698 /* We use char because int might match the return type of a gcc2
1699 builtin and then its argument prototype would still apply. */
1700 char vprintf();
1702 int main() {
1704 /* The GNU C library defines this for functions which it implements
1705 to always fail with ENOSYS. Some functions are actually named
1706 something starting with __ and the normal name is an alias. */
1707 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1708 choke me
1709 #else
1710 vprintf();
1711 #endif
1713 ; return 0; }
1715 if { (eval echo configure:1716: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1716 rm -rf conftest*
1717 eval "ac_cv_func_vprintf=yes"
1718 else
1719 echo "configure: failed program was:" >&5
1720 cat conftest.$ac_ext >&5
1721 rm -rf conftest*
1722 eval "ac_cv_func_vprintf=no"
1724 rm -f conftest*
1727 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1728 echo "$ac_t""yes" 1>&6
1729 cat >> confdefs.h <<\EOF
1730 #define HAVE_VPRINTF 1
1733 else
1734 echo "$ac_t""no" 1>&6
1737 if test "$ac_cv_func_vprintf" != yes; then
1738 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1739 echo "configure:1740: checking for _doprnt" >&5
1740 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1741 echo $ac_n "(cached) $ac_c" 1>&6
1742 else
1743 cat > conftest.$ac_ext <<EOF
1744 #line 1745 "configure"
1745 #include "confdefs.h"
1746 /* System header to define __stub macros and hopefully few prototypes,
1747 which can conflict with char _doprnt(); below. */
1748 #include <assert.h>
1749 /* Override any gcc2 internal prototype to avoid an error. */
1750 /* We use char because int might match the return type of a gcc2
1751 builtin and then its argument prototype would still apply. */
1752 char _doprnt();
1754 int main() {
1756 /* The GNU C library defines this for functions which it implements
1757 to always fail with ENOSYS. Some functions are actually named
1758 something starting with __ and the normal name is an alias. */
1759 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1760 choke me
1761 #else
1762 _doprnt();
1763 #endif
1765 ; return 0; }
1767 if { (eval echo configure:1768: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1768 rm -rf conftest*
1769 eval "ac_cv_func__doprnt=yes"
1770 else
1771 echo "configure: failed program was:" >&5
1772 cat conftest.$ac_ext >&5
1773 rm -rf conftest*
1774 eval "ac_cv_func__doprnt=no"
1776 rm -f conftest*
1779 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1780 echo "$ac_t""yes" 1>&6
1781 cat >> confdefs.h <<\EOF
1782 #define HAVE_DOPRNT 1
1785 else
1786 echo "$ac_t""no" 1>&6
1791 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1792 # for constant arguments. Useless!
1793 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1794 echo "configure:1795: checking for working alloca.h" >&5
1795 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1796 echo $ac_n "(cached) $ac_c" 1>&6
1797 else
1798 cat > conftest.$ac_ext <<EOF
1799 #line 1800 "configure"
1800 #include "confdefs.h"
1801 #include <alloca.h>
1802 int main() {
1803 char *p = alloca(2 * sizeof(int));
1804 ; return 0; }
1806 if { (eval echo configure:1807: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1807 rm -rf conftest*
1808 ac_cv_header_alloca_h=yes
1809 else
1810 echo "configure: failed program was:" >&5
1811 cat conftest.$ac_ext >&5
1812 rm -rf conftest*
1813 ac_cv_header_alloca_h=no
1815 rm -f conftest*
1818 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1819 if test $ac_cv_header_alloca_h = yes; then
1820 cat >> confdefs.h <<\EOF
1821 #define HAVE_ALLOCA_H 1
1826 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1827 echo "configure:1828: checking for alloca" >&5
1828 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1829 echo $ac_n "(cached) $ac_c" 1>&6
1830 else
1831 cat > conftest.$ac_ext <<EOF
1832 #line 1833 "configure"
1833 #include "confdefs.h"
1835 #ifdef __GNUC__
1836 # define alloca __builtin_alloca
1837 #else
1838 # if HAVE_ALLOCA_H
1839 # include <alloca.h>
1840 # else
1841 # ifdef _AIX
1842 #pragma alloca
1843 # else
1844 # ifndef alloca /* predefined by HP cc +Olibcalls */
1845 char *alloca ();
1846 # endif
1847 # endif
1848 # endif
1849 #endif
1851 int main() {
1852 char *p = (char *) alloca(1);
1853 ; return 0; }
1855 if { (eval echo configure:1856: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1856 rm -rf conftest*
1857 ac_cv_func_alloca_works=yes
1858 else
1859 echo "configure: failed program was:" >&5
1860 cat conftest.$ac_ext >&5
1861 rm -rf conftest*
1862 ac_cv_func_alloca_works=no
1864 rm -f conftest*
1867 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1868 if test $ac_cv_func_alloca_works = yes; then
1869 cat >> confdefs.h <<\EOF
1870 #define HAVE_ALLOCA 1
1875 if test $ac_cv_func_alloca_works = no; then
1876 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1877 # that cause trouble. Some versions do not even contain alloca or
1878 # contain a buggy version. If you still want to use their alloca,
1879 # use ar to extract alloca.o from them instead of compiling alloca.c.
1880 ALLOCA=alloca.o
1881 cat >> confdefs.h <<\EOF
1882 #define C_ALLOCA 1
1886 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1887 echo "configure:1888: checking whether alloca needs Cray hooks" >&5
1888 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1889 echo $ac_n "(cached) $ac_c" 1>&6
1890 else
1891 cat > conftest.$ac_ext <<EOF
1892 #line 1893 "configure"
1893 #include "confdefs.h"
1894 #if defined(CRAY) && ! defined(CRAY2)
1895 webecray
1896 #else
1897 wenotbecray
1898 #endif
1901 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1902 egrep "webecray" >/dev/null 2>&1; then
1903 rm -rf conftest*
1904 ac_cv_os_cray=yes
1905 else
1906 rm -rf conftest*
1907 ac_cv_os_cray=no
1909 rm -f conftest*
1913 echo "$ac_t""$ac_cv_os_cray" 1>&6
1914 if test $ac_cv_os_cray = yes; then
1915 for ac_func in _getb67 GETB67 getb67; do
1916 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1917 echo "configure:1918: checking for $ac_func" >&5
1918 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1919 echo $ac_n "(cached) $ac_c" 1>&6
1920 else
1921 cat > conftest.$ac_ext <<EOF
1922 #line 1923 "configure"
1923 #include "confdefs.h"
1924 /* System header to define __stub macros and hopefully few prototypes,
1925 which can conflict with char $ac_func(); below. */
1926 #include <assert.h>
1927 /* Override any gcc2 internal prototype to avoid an error. */
1928 /* We use char because int might match the return type of a gcc2
1929 builtin and then its argument prototype would still apply. */
1930 char $ac_func();
1932 int main() {
1934 /* The GNU C library defines this for functions which it implements
1935 to always fail with ENOSYS. Some functions are actually named
1936 something starting with __ and the normal name is an alias. */
1937 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1938 choke me
1939 #else
1940 $ac_func();
1941 #endif
1943 ; return 0; }
1945 if { (eval echo configure:1946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1946 rm -rf conftest*
1947 eval "ac_cv_func_$ac_func=yes"
1948 else
1949 echo "configure: failed program was:" >&5
1950 cat conftest.$ac_ext >&5
1951 rm -rf conftest*
1952 eval "ac_cv_func_$ac_func=no"
1954 rm -f conftest*
1957 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1958 echo "$ac_t""yes" 1>&6
1959 cat >> confdefs.h <<EOF
1960 #define CRAY_STACKSEG_END $ac_func
1963 break
1964 else
1965 echo "$ac_t""no" 1>&6
1968 done
1971 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1972 echo "configure:1973: checking stack direction for C alloca" >&5
1973 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1974 echo $ac_n "(cached) $ac_c" 1>&6
1975 else
1976 if test "$cross_compiling" = yes; then
1977 ac_cv_c_stack_direction=0
1978 else
1979 cat > conftest.$ac_ext <<EOF
1980 #line 1981 "configure"
1981 #include "confdefs.h"
1982 find_stack_direction ()
1984 static char *addr = 0;
1985 auto char dummy;
1986 if (addr == 0)
1988 addr = &dummy;
1989 return find_stack_direction ();
1991 else
1992 return (&dummy > addr) ? 1 : -1;
1994 main ()
1996 exit (find_stack_direction() < 0);
1999 if { (eval echo configure:2000: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2000 then
2001 ac_cv_c_stack_direction=1
2002 else
2003 echo "configure: failed program was:" >&5
2004 cat conftest.$ac_ext >&5
2005 rm -fr conftest*
2006 ac_cv_c_stack_direction=-1
2008 rm -fr conftest*
2013 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2014 cat >> confdefs.h <<EOF
2015 #define STACK_DIRECTION $ac_cv_c_stack_direction
2020 for ac_func in gethostname gettimeofday select poll strerror strncasecmp setpgid
2022 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2023 echo "configure:2024: checking for $ac_func" >&5
2024 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2025 echo $ac_n "(cached) $ac_c" 1>&6
2026 else
2027 cat > conftest.$ac_ext <<EOF
2028 #line 2029 "configure"
2029 #include "confdefs.h"
2030 /* System header to define __stub macros and hopefully few prototypes,
2031 which can conflict with char $ac_func(); below. */
2032 #include <assert.h>
2033 /* Override any gcc2 internal prototype to avoid an error. */
2034 /* We use char because int might match the return type of a gcc2
2035 builtin and then its argument prototype would still apply. */
2036 char $ac_func();
2038 int main() {
2040 /* The GNU C library defines this for functions which it implements
2041 to always fail with ENOSYS. Some functions are actually named
2042 something starting with __ and the normal name is an alias. */
2043 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2044 choke me
2045 #else
2046 $ac_func();
2047 #endif
2049 ; return 0; }
2051 if { (eval echo configure:2052: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2052 rm -rf conftest*
2053 eval "ac_cv_func_$ac_func=yes"
2054 else
2055 echo "configure: failed program was:" >&5
2056 cat conftest.$ac_ext >&5
2057 rm -rf conftest*
2058 eval "ac_cv_func_$ac_func=no"
2060 rm -f conftest*
2063 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2064 echo "$ac_t""yes" 1>&6
2065 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2066 cat >> confdefs.h <<EOF
2067 #define $ac_tr_func 1
2070 else
2071 echo "$ac_t""no" 1>&6
2073 done
2076 if test "$ac_cv_func_gettimeofday" != yes; then
2077 echo "The gettimeofday() system call is not available in your system"
2078 echo "but it is required by Window Maker. Sorry."
2079 exit 1
2082 if test "x$CPP_PATH" = x; then
2083 # Extract the first word of "cpp", so it can be a program name with args.
2084 set dummy cpp; ac_word=$2
2085 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2086 echo "configure:2087: checking for $ac_word" >&5
2087 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2088 echo $ac_n "(cached) $ac_c" 1>&6
2089 else
2090 case "$CPP_PATH" in
2092 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2095 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2096 for ac_dir in /lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH$ac_dummy; do
2097 test -z "$ac_dir" && ac_dir=.
2098 if test -f $ac_dir/$ac_word; then
2099 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2100 break
2102 done
2103 IFS="$ac_save_ifs"
2104 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2106 esac
2108 CPP_PATH="$ac_cv_path_CPP_PATH"
2109 if test -n "$CPP_PATH"; then
2110 echo "$ac_t""$CPP_PATH" 1>&6
2111 else
2112 echo "$ac_t""no" 1>&6
2117 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2118 if test "$GCC" = "yes"; then
2119 CPP_PATH="gcc -E -x c"
2120 else
2121 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2122 CPP_PATH="$CPP_PATH -B"
2123 else
2124 echo "cpp, the C preprocessor was not found in your system."
2125 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2126 exit
2130 cat >> confdefs.h <<EOF
2131 #define CPP_PATH "$CPP_PATH"
2140 INTLIBS=""
2143 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2144 echo "configure:2145: checking for gettext" >&5
2145 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2146 echo $ac_n "(cached) $ac_c" 1>&6
2147 else
2148 cat > conftest.$ac_ext <<EOF
2149 #line 2150 "configure"
2150 #include "confdefs.h"
2151 /* System header to define __stub macros and hopefully few prototypes,
2152 which can conflict with char gettext(); below. */
2153 #include <assert.h>
2154 /* Override any gcc2 internal prototype to avoid an error. */
2155 /* We use char because int might match the return type of a gcc2
2156 builtin and then its argument prototype would still apply. */
2157 char gettext();
2159 int main() {
2161 /* The GNU C library defines this for functions which it implements
2162 to always fail with ENOSYS. Some functions are actually named
2163 something starting with __ and the normal name is an alias. */
2164 #if defined (__stub_gettext) || defined (__stub___gettext)
2165 choke me
2166 #else
2167 gettext();
2168 #endif
2170 ; return 0; }
2172 if { (eval echo configure:2173: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2173 rm -rf conftest*
2174 eval "ac_cv_func_gettext=yes"
2175 else
2176 echo "configure: failed program was:" >&5
2177 cat conftest.$ac_ext >&5
2178 rm -rf conftest*
2179 eval "ac_cv_func_gettext=no"
2181 rm -f conftest*
2184 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2185 echo "$ac_t""yes" 1>&6
2186 HAVEGETTEXT="yes"
2187 else
2188 echo "$ac_t""no" 1>&6
2189 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2190 echo "configure:2191: checking for gettext in -lintl" >&5
2191 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2192 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2193 echo $ac_n "(cached) $ac_c" 1>&6
2194 else
2195 ac_save_LIBS="$LIBS"
2196 LIBS="-lintl $LIBS"
2197 cat > conftest.$ac_ext <<EOF
2198 #line 2199 "configure"
2199 #include "confdefs.h"
2200 /* Override any gcc2 internal prototype to avoid an error. */
2201 /* We use char because int might match the return type of a gcc2
2202 builtin and then its argument prototype would still apply. */
2203 char gettext();
2205 int main() {
2206 gettext()
2207 ; return 0; }
2209 if { (eval echo configure:2210: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2210 rm -rf conftest*
2211 eval "ac_cv_lib_$ac_lib_var=yes"
2212 else
2213 echo "configure: failed program was:" >&5
2214 cat conftest.$ac_ext >&5
2215 rm -rf conftest*
2216 eval "ac_cv_lib_$ac_lib_var=no"
2218 rm -f conftest*
2219 LIBS="$ac_save_LIBS"
2222 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2223 echo "$ac_t""yes" 1>&6
2224 INTLIBS="-lintl" HAVEGETTEXT="yes"
2225 else
2226 echo "$ac_t""no" 1>&6
2227 INTLIBS=""
2233 # Extract the first word of "xgettext", so it can be a program name with args.
2234 set dummy xgettext; ac_word=$2
2235 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2236 echo "configure:2237: checking for $ac_word" >&5
2237 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2238 echo $ac_n "(cached) $ac_c" 1>&6
2239 else
2240 if test -n "$XGETTEXT"; then
2241 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2242 else
2243 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2244 for ac_dir in $PATH; do
2245 test -z "$ac_dir" && ac_dir=.
2246 if test -f $ac_dir/$ac_word; then
2247 ac_cv_prog_XGETTEXT="xgettext"
2248 break
2250 done
2251 IFS="$ac_save_ifs"
2254 XGETTEXT="$ac_cv_prog_XGETTEXT"
2255 if test -n "$XGETTEXT"; then
2256 echo "$ac_t""$XGETTEXT" 1>&6
2257 else
2258 echo "$ac_t""no" 1>&6
2262 if test "$XGETTEXT" != ""; then
2263 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2264 echo "xgettext isn't GNU version"
2265 XGETTEXT=""
2269 if test "$LINGUAS" != ""; then
2270 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2271 I18N="-DI18N"
2272 PO=""
2273 # if test "$LINGUAS" = ""; then
2274 # ling=` (cd src/po; /bin/ls *.po) `
2275 # for l in $ling; do
2276 # lcode=`basename $l .po`
2277 # LINGUAS="$LINGUAS $lcode"
2278 # done
2279 # fi
2280 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2281 else
2282 I18N=""
2283 LINGUAS=""
2284 PO=""
2285 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2287 else
2288 INTLIBS=""
2289 MOFILES=""
2290 WPMOFILES=""
2291 PO=""
2296 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2297 supported_wprefs_locales="pt hr fr ko ja"
2299 for lang in $LINGUAS; do
2300 ok=0
2301 for l in $supported_locales; do
2302 if test "$l" = "$lang"; then
2303 ok=1
2304 break
2306 done
2307 if test "$ok" = 1; then
2308 MOFILES="$MOFILES $lang.mo"
2309 else
2310 echo "Locale $lang is not supported."
2312 ok=0
2313 for l in $supported_wprefs_locales; do
2314 if test "$l" = "$lang"; then
2315 ok=1
2316 break
2318 done
2319 if test "$ok" = 1; then
2320 WPMOFILES="$WPMOFILES $lang.mo"
2322 done
2325 I18n=no
2326 # Check whether --enable-kanji or --disable-kanji was given.
2327 if test "${enable_kanji+set}" = set; then
2328 enableval="$enable_kanji"
2330 else
2331 enable_kanji=no
2335 if test "$enable_kanji" = yes; then
2336 I18N_MB="#define I18N_MB"
2337 case $host_os in
2338 freebsd*)
2339 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2340 echo "configure:2341: checking for setlocale in -lxpg4" >&5
2341 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2342 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2343 echo $ac_n "(cached) $ac_c" 1>&6
2344 else
2345 ac_save_LIBS="$LIBS"
2346 LIBS="-lxpg4 $LIBS"
2347 cat > conftest.$ac_ext <<EOF
2348 #line 2349 "configure"
2349 #include "confdefs.h"
2350 /* Override any gcc2 internal prototype to avoid an error. */
2351 /* We use char because int might match the return type of a gcc2
2352 builtin and then its argument prototype would still apply. */
2353 char setlocale();
2355 int main() {
2356 setlocale()
2357 ; return 0; }
2359 if { (eval echo configure:2360: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2360 rm -rf conftest*
2361 eval "ac_cv_lib_$ac_lib_var=yes"
2362 else
2363 echo "configure: failed program was:" >&5
2364 cat conftest.$ac_ext >&5
2365 rm -rf conftest*
2366 eval "ac_cv_lib_$ac_lib_var=no"
2368 rm -f conftest*
2369 LIBS="$ac_save_LIBS"
2372 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2373 echo "$ac_t""yes" 1>&6
2374 LIBS="$LIBS -lxpg4"
2375 else
2376 echo "$ac_t""no" 1>&6
2381 esac
2382 else
2383 I18N_MB="#undef I18N_MB"
2388 # Check whether --enable-modelock or --disable-modelock was given.
2389 if test "${enable_modelock+set}" = set; then
2390 enableval="$enable_modelock"
2391 X_CFLAGS="$X_CFLAGS -DXKB_MODELOCK"
2397 # Check whether --with-nlsdir or --without-nlsdir was given.
2398 if test "${with_nlsdir+set}" = set; then
2399 withval="$with_nlsdir"
2404 if test "x$NLSDIR" = "x"; then
2405 if test "x$with_nlsdir" != "x"; then
2406 NLSDIR=$with_nlsdir
2407 else
2408 NLSDIR='$(prefix)/lib/locale'
2423 # Check whether --enable-gnome or --disable-gnome was given.
2424 if test "${enable_gnome+set}" = set; then
2425 enableval="$enable_gnome"
2426 if test x$enableval = xyes; then
2427 cat >> confdefs.h <<\EOF
2428 #define GNOME_STUFF 1
2431 gnome_on=yes
2437 # Check whether --enable-kde or --disable-kde was given.
2438 if test "${enable_kde+set}" = set; then
2439 enableval="$enable_kde"
2440 if test x$enableval = xyes; then
2441 cat >> confdefs.h <<\EOF
2442 #define KWM_HINTS 1
2445 kde_on=yes
2451 LITE=
2452 # Check whether --enable-lite or --disable-lite was given.
2453 if test "${enable_lite+set}" = set; then
2454 enableval="$enable_lite"
2455 if test x$enableval = xyes; then
2456 LITE=-DLITE
2464 # If we find X, set shell vars x_includes and x_libraries to the
2465 # paths, otherwise set no_x=yes.
2466 # Uses ac_ vars as temps to allow command line to override cache and checks.
2467 # --without-x overrides everything else, but does not touch the cache.
2468 echo $ac_n "checking for X""... $ac_c" 1>&6
2469 echo "configure:2470: checking for X" >&5
2471 # Check whether --with-x or --without-x was given.
2472 if test "${with_x+set}" = set; then
2473 withval="$with_x"
2477 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2478 if test "x$with_x" = xno; then
2479 # The user explicitly disabled X.
2480 have_x=disabled
2481 else
2482 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2483 # Both variables are already set.
2484 have_x=yes
2485 else
2486 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2487 echo $ac_n "(cached) $ac_c" 1>&6
2488 else
2489 # One or both of the vars are not set, and there is no cached value.
2490 ac_x_includes=NO ac_x_libraries=NO
2491 rm -fr conftestdir
2492 if mkdir conftestdir; then
2493 cd conftestdir
2494 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2495 cat > Imakefile <<'EOF'
2496 acfindx:
2497 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2499 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2500 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2501 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2502 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2503 for ac_extension in a so sl; do
2504 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2505 test -f $ac_im_libdir/libX11.$ac_extension; then
2506 ac_im_usrlibdir=$ac_im_libdir; break
2508 done
2509 # Screen out bogus values from the imake configuration. They are
2510 # bogus both because they are the default anyway, and because
2511 # using them would break gcc on systems where it needs fixed includes.
2512 case "$ac_im_incroot" in
2513 /usr/include) ;;
2514 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2515 esac
2516 case "$ac_im_usrlibdir" in
2517 /usr/lib | /lib) ;;
2518 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2519 esac
2521 cd ..
2522 rm -fr conftestdir
2525 if test "$ac_x_includes" = NO; then
2526 # Guess where to find include files, by looking for this one X11 .h file.
2527 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2529 # First, try using that file with no special directory specified.
2530 cat > conftest.$ac_ext <<EOF
2531 #line 2532 "configure"
2532 #include "confdefs.h"
2533 #include <$x_direct_test_include>
2535 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2536 { (eval echo configure:2537: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2537 ac_err=`grep -v '^ *+' conftest.out`
2538 if test -z "$ac_err"; then
2539 rm -rf conftest*
2540 # We can compile using X headers with no special include directory.
2541 ac_x_includes=
2542 else
2543 echo "$ac_err" >&5
2544 echo "configure: failed program was:" >&5
2545 cat conftest.$ac_ext >&5
2546 rm -rf conftest*
2547 # Look for the header file in a standard set of common directories.
2548 # Check X11 before X11Rn because it is often a symlink to the current release.
2549 for ac_dir in \
2550 /usr/X11/include \
2551 /usr/X11R6/include \
2552 /usr/X11R5/include \
2553 /usr/X11R4/include \
2555 /usr/include/X11 \
2556 /usr/include/X11R6 \
2557 /usr/include/X11R5 \
2558 /usr/include/X11R4 \
2560 /usr/local/X11/include \
2561 /usr/local/X11R6/include \
2562 /usr/local/X11R5/include \
2563 /usr/local/X11R4/include \
2565 /usr/local/include/X11 \
2566 /usr/local/include/X11R6 \
2567 /usr/local/include/X11R5 \
2568 /usr/local/include/X11R4 \
2570 /usr/X386/include \
2571 /usr/x386/include \
2572 /usr/XFree86/include/X11 \
2574 /usr/include \
2575 /usr/local/include \
2576 /usr/unsupported/include \
2577 /usr/athena/include \
2578 /usr/local/x11r5/include \
2579 /usr/lpp/Xamples/include \
2581 /usr/openwin/include \
2582 /usr/openwin/share/include \
2585 if test -r "$ac_dir/$x_direct_test_include"; then
2586 ac_x_includes=$ac_dir
2587 break
2589 done
2591 rm -f conftest*
2592 fi # $ac_x_includes = NO
2594 if test "$ac_x_libraries" = NO; then
2595 # Check for the libraries.
2597 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2598 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2600 # See if we find them without any special options.
2601 # Don't add to $LIBS permanently.
2602 ac_save_LIBS="$LIBS"
2603 LIBS="-l$x_direct_test_library $LIBS"
2604 cat > conftest.$ac_ext <<EOF
2605 #line 2606 "configure"
2606 #include "confdefs.h"
2608 int main() {
2609 ${x_direct_test_function}()
2610 ; return 0; }
2612 if { (eval echo configure:2613: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2613 rm -rf conftest*
2614 LIBS="$ac_save_LIBS"
2615 # We can link X programs with no special library path.
2616 ac_x_libraries=
2617 else
2618 echo "configure: failed program was:" >&5
2619 cat conftest.$ac_ext >&5
2620 rm -rf conftest*
2621 LIBS="$ac_save_LIBS"
2622 # First see if replacing the include by lib works.
2623 # Check X11 before X11Rn because it is often a symlink to the current release.
2624 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2625 /usr/X11/lib \
2626 /usr/X11R6/lib \
2627 /usr/X11R5/lib \
2628 /usr/X11R4/lib \
2630 /usr/lib/X11 \
2631 /usr/lib/X11R6 \
2632 /usr/lib/X11R5 \
2633 /usr/lib/X11R4 \
2635 /usr/local/X11/lib \
2636 /usr/local/X11R6/lib \
2637 /usr/local/X11R5/lib \
2638 /usr/local/X11R4/lib \
2640 /usr/local/lib/X11 \
2641 /usr/local/lib/X11R6 \
2642 /usr/local/lib/X11R5 \
2643 /usr/local/lib/X11R4 \
2645 /usr/X386/lib \
2646 /usr/x386/lib \
2647 /usr/XFree86/lib/X11 \
2649 /usr/lib \
2650 /usr/local/lib \
2651 /usr/unsupported/lib \
2652 /usr/athena/lib \
2653 /usr/local/x11r5/lib \
2654 /usr/lpp/Xamples/lib \
2655 /lib/usr/lib/X11 \
2657 /usr/openwin/lib \
2658 /usr/openwin/share/lib \
2661 for ac_extension in a so sl; do
2662 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2663 ac_x_libraries=$ac_dir
2664 break 2
2666 done
2667 done
2669 rm -f conftest*
2670 fi # $ac_x_libraries = NO
2672 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2673 # Didn't find X anywhere. Cache the known absence of X.
2674 ac_cv_have_x="have_x=no"
2675 else
2676 # Record where we found X for the cache.
2677 ac_cv_have_x="have_x=yes \
2678 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2682 eval "$ac_cv_have_x"
2683 fi # $with_x != no
2685 if test "$have_x" != yes; then
2686 echo "$ac_t""$have_x" 1>&6
2687 no_x=yes
2688 else
2689 # If each of the values was on the command line, it overrides each guess.
2690 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2691 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2692 # Update the cache value to reflect the command line values.
2693 ac_cv_have_x="have_x=yes \
2694 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2695 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2698 if test "$no_x" = yes; then
2699 # Not all programs may use this symbol, but it does not hurt to define it.
2700 cat >> confdefs.h <<\EOF
2701 #define X_DISPLAY_MISSING 1
2704 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2705 else
2706 if test -n "$x_includes"; then
2707 X_CFLAGS="$X_CFLAGS -I$x_includes"
2710 # It would also be nice to do this for all -L options, not just this one.
2711 if test -n "$x_libraries"; then
2712 X_LIBS="$X_LIBS -L$x_libraries"
2713 # For Solaris; some versions of Sun CC require a space after -R and
2714 # others require no space. Words are not sufficient . . . .
2715 case "`(uname -sr) 2>/dev/null`" in
2716 "SunOS 5"*)
2717 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2718 echo "configure:2719: checking whether -R must be followed by a space" >&5
2719 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2720 cat > conftest.$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2724 int main() {
2726 ; return 0; }
2728 if { (eval echo configure:2729: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2729 rm -rf conftest*
2730 ac_R_nospace=yes
2731 else
2732 echo "configure: failed program was:" >&5
2733 cat conftest.$ac_ext >&5
2734 rm -rf conftest*
2735 ac_R_nospace=no
2737 rm -f conftest*
2738 if test $ac_R_nospace = yes; then
2739 echo "$ac_t""no" 1>&6
2740 X_LIBS="$X_LIBS -R$x_libraries"
2741 else
2742 LIBS="$ac_xsave_LIBS -R $x_libraries"
2743 cat > conftest.$ac_ext <<EOF
2744 #line 2745 "configure"
2745 #include "confdefs.h"
2747 int main() {
2749 ; return 0; }
2751 if { (eval echo configure:2752: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2752 rm -rf conftest*
2753 ac_R_space=yes
2754 else
2755 echo "configure: failed program was:" >&5
2756 cat conftest.$ac_ext >&5
2757 rm -rf conftest*
2758 ac_R_space=no
2760 rm -f conftest*
2761 if test $ac_R_space = yes; then
2762 echo "$ac_t""yes" 1>&6
2763 X_LIBS="$X_LIBS -R $x_libraries"
2764 else
2765 echo "$ac_t""neither works" 1>&6
2768 LIBS="$ac_xsave_LIBS"
2769 esac
2772 # Check for system-dependent libraries X programs must link with.
2773 # Do this before checking for the system-independent R6 libraries
2774 # (-lICE), since we may need -lsocket or whatever for X linking.
2776 if test "$ISC" = yes; then
2777 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2778 else
2779 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2780 # libraries were built with DECnet support. And karl@cs.umb.edu says
2781 # the Alpha needs dnet_stub (dnet does not exist).
2782 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2783 echo "configure:2784: checking for dnet_ntoa in -ldnet" >&5
2784 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2785 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2786 echo $ac_n "(cached) $ac_c" 1>&6
2787 else
2788 ac_save_LIBS="$LIBS"
2789 LIBS="-ldnet $LIBS"
2790 cat > conftest.$ac_ext <<EOF
2791 #line 2792 "configure"
2792 #include "confdefs.h"
2793 /* Override any gcc2 internal prototype to avoid an error. */
2794 /* We use char because int might match the return type of a gcc2
2795 builtin and then its argument prototype would still apply. */
2796 char dnet_ntoa();
2798 int main() {
2799 dnet_ntoa()
2800 ; return 0; }
2802 if { (eval echo configure:2803: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2803 rm -rf conftest*
2804 eval "ac_cv_lib_$ac_lib_var=yes"
2805 else
2806 echo "configure: failed program was:" >&5
2807 cat conftest.$ac_ext >&5
2808 rm -rf conftest*
2809 eval "ac_cv_lib_$ac_lib_var=no"
2811 rm -f conftest*
2812 LIBS="$ac_save_LIBS"
2815 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2816 echo "$ac_t""yes" 1>&6
2817 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2818 else
2819 echo "$ac_t""no" 1>&6
2822 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2823 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2824 echo "configure:2825: checking for dnet_ntoa in -ldnet_stub" >&5
2825 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2826 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2827 echo $ac_n "(cached) $ac_c" 1>&6
2828 else
2829 ac_save_LIBS="$LIBS"
2830 LIBS="-ldnet_stub $LIBS"
2831 cat > conftest.$ac_ext <<EOF
2832 #line 2833 "configure"
2833 #include "confdefs.h"
2834 /* Override any gcc2 internal prototype to avoid an error. */
2835 /* We use char because int might match the return type of a gcc2
2836 builtin and then its argument prototype would still apply. */
2837 char dnet_ntoa();
2839 int main() {
2840 dnet_ntoa()
2841 ; return 0; }
2843 if { (eval echo configure:2844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2844 rm -rf conftest*
2845 eval "ac_cv_lib_$ac_lib_var=yes"
2846 else
2847 echo "configure: failed program was:" >&5
2848 cat conftest.$ac_ext >&5
2849 rm -rf conftest*
2850 eval "ac_cv_lib_$ac_lib_var=no"
2852 rm -f conftest*
2853 LIBS="$ac_save_LIBS"
2856 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2857 echo "$ac_t""yes" 1>&6
2858 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2859 else
2860 echo "$ac_t""no" 1>&6
2865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2866 # to get the SysV transport functions.
2867 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2868 # needs -lnsl.
2869 # The nsl library prevents programs from opening the X display
2870 # on Irix 5.2, according to dickey@clark.net.
2871 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2872 echo "configure:2873: checking for gethostbyname" >&5
2873 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875 else
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* System header to define __stub macros and hopefully few prototypes,
2880 which can conflict with char gethostbyname(); below. */
2881 #include <assert.h>
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2885 char gethostbyname();
2887 int main() {
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2893 choke me
2894 #else
2895 gethostbyname();
2896 #endif
2898 ; return 0; }
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2901 rm -rf conftest*
2902 eval "ac_cv_func_gethostbyname=yes"
2903 else
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 rm -rf conftest*
2907 eval "ac_cv_func_gethostbyname=no"
2909 rm -f conftest*
2912 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2915 else
2916 echo "$ac_t""no" 1>&6
2919 if test $ac_cv_func_gethostbyname = no; then
2920 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2921 echo "configure:2922: checking for gethostbyname in -lnsl" >&5
2922 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2923 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2924 echo $ac_n "(cached) $ac_c" 1>&6
2925 else
2926 ac_save_LIBS="$LIBS"
2927 LIBS="-lnsl $LIBS"
2928 cat > conftest.$ac_ext <<EOF
2929 #line 2930 "configure"
2930 #include "confdefs.h"
2931 /* Override any gcc2 internal prototype to avoid an error. */
2932 /* We use char because int might match the return type of a gcc2
2933 builtin and then its argument prototype would still apply. */
2934 char gethostbyname();
2936 int main() {
2937 gethostbyname()
2938 ; return 0; }
2940 if { (eval echo configure:2941: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2941 rm -rf conftest*
2942 eval "ac_cv_lib_$ac_lib_var=yes"
2943 else
2944 echo "configure: failed program was:" >&5
2945 cat conftest.$ac_ext >&5
2946 rm -rf conftest*
2947 eval "ac_cv_lib_$ac_lib_var=no"
2949 rm -f conftest*
2950 LIBS="$ac_save_LIBS"
2953 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2954 echo "$ac_t""yes" 1>&6
2955 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2956 else
2957 echo "$ac_t""no" 1>&6
2962 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2963 # socket/setsockopt and other routines are undefined under SCO ODT
2964 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2965 # on later versions), says simon@lia.di.epfl.ch: it contains
2966 # gethostby* variants that don't use the nameserver (or something).
2967 # -lsocket must be given before -lnsl if both are needed.
2968 # We assume that if connect needs -lnsl, so does gethostbyname.
2969 echo $ac_n "checking for connect""... $ac_c" 1>&6
2970 echo "configure:2971: checking for connect" >&5
2971 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2972 echo $ac_n "(cached) $ac_c" 1>&6
2973 else
2974 cat > conftest.$ac_ext <<EOF
2975 #line 2976 "configure"
2976 #include "confdefs.h"
2977 /* System header to define __stub macros and hopefully few prototypes,
2978 which can conflict with char connect(); below. */
2979 #include <assert.h>
2980 /* Override any gcc2 internal prototype to avoid an error. */
2981 /* We use char because int might match the return type of a gcc2
2982 builtin and then its argument prototype would still apply. */
2983 char connect();
2985 int main() {
2987 /* The GNU C library defines this for functions which it implements
2988 to always fail with ENOSYS. Some functions are actually named
2989 something starting with __ and the normal name is an alias. */
2990 #if defined (__stub_connect) || defined (__stub___connect)
2991 choke me
2992 #else
2993 connect();
2994 #endif
2996 ; return 0; }
2998 if { (eval echo configure:2999: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2999 rm -rf conftest*
3000 eval "ac_cv_func_connect=yes"
3001 else
3002 echo "configure: failed program was:" >&5
3003 cat conftest.$ac_ext >&5
3004 rm -rf conftest*
3005 eval "ac_cv_func_connect=no"
3007 rm -f conftest*
3010 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3011 echo "$ac_t""yes" 1>&6
3013 else
3014 echo "$ac_t""no" 1>&6
3017 if test $ac_cv_func_connect = no; then
3018 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3019 echo "configure:3020: checking for connect in -lsocket" >&5
3020 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3022 echo $ac_n "(cached) $ac_c" 1>&6
3023 else
3024 ac_save_LIBS="$LIBS"
3025 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3026 cat > conftest.$ac_ext <<EOF
3027 #line 3028 "configure"
3028 #include "confdefs.h"
3029 /* Override any gcc2 internal prototype to avoid an error. */
3030 /* We use char because int might match the return type of a gcc2
3031 builtin and then its argument prototype would still apply. */
3032 char connect();
3034 int main() {
3035 connect()
3036 ; return 0; }
3038 if { (eval echo configure:3039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3039 rm -rf conftest*
3040 eval "ac_cv_lib_$ac_lib_var=yes"
3041 else
3042 echo "configure: failed program was:" >&5
3043 cat conftest.$ac_ext >&5
3044 rm -rf conftest*
3045 eval "ac_cv_lib_$ac_lib_var=no"
3047 rm -f conftest*
3048 LIBS="$ac_save_LIBS"
3051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3052 echo "$ac_t""yes" 1>&6
3053 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3054 else
3055 echo "$ac_t""no" 1>&6
3060 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3061 echo $ac_n "checking for remove""... $ac_c" 1>&6
3062 echo "configure:3063: checking for remove" >&5
3063 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066 cat > conftest.$ac_ext <<EOF
3067 #line 3068 "configure"
3068 #include "confdefs.h"
3069 /* System header to define __stub macros and hopefully few prototypes,
3070 which can conflict with char remove(); below. */
3071 #include <assert.h>
3072 /* Override any gcc2 internal prototype to avoid an error. */
3073 /* We use char because int might match the return type of a gcc2
3074 builtin and then its argument prototype would still apply. */
3075 char remove();
3077 int main() {
3079 /* The GNU C library defines this for functions which it implements
3080 to always fail with ENOSYS. Some functions are actually named
3081 something starting with __ and the normal name is an alias. */
3082 #if defined (__stub_remove) || defined (__stub___remove)
3083 choke me
3084 #else
3085 remove();
3086 #endif
3088 ; return 0; }
3090 if { (eval echo configure:3091: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3091 rm -rf conftest*
3092 eval "ac_cv_func_remove=yes"
3093 else
3094 echo "configure: failed program was:" >&5
3095 cat conftest.$ac_ext >&5
3096 rm -rf conftest*
3097 eval "ac_cv_func_remove=no"
3099 rm -f conftest*
3102 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3103 echo "$ac_t""yes" 1>&6
3105 else
3106 echo "$ac_t""no" 1>&6
3109 if test $ac_cv_func_remove = no; then
3110 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3111 echo "configure:3112: checking for remove in -lposix" >&5
3112 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3113 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3114 echo $ac_n "(cached) $ac_c" 1>&6
3115 else
3116 ac_save_LIBS="$LIBS"
3117 LIBS="-lposix $LIBS"
3118 cat > conftest.$ac_ext <<EOF
3119 #line 3120 "configure"
3120 #include "confdefs.h"
3121 /* Override any gcc2 internal prototype to avoid an error. */
3122 /* We use char because int might match the return type of a gcc2
3123 builtin and then its argument prototype would still apply. */
3124 char remove();
3126 int main() {
3127 remove()
3128 ; return 0; }
3130 if { (eval echo configure:3131: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3131 rm -rf conftest*
3132 eval "ac_cv_lib_$ac_lib_var=yes"
3133 else
3134 echo "configure: failed program was:" >&5
3135 cat conftest.$ac_ext >&5
3136 rm -rf conftest*
3137 eval "ac_cv_lib_$ac_lib_var=no"
3139 rm -f conftest*
3140 LIBS="$ac_save_LIBS"
3143 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3144 echo "$ac_t""yes" 1>&6
3145 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3146 else
3147 echo "$ac_t""no" 1>&6
3152 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3153 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3154 echo "configure:3155: checking for shmat" >&5
3155 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3156 echo $ac_n "(cached) $ac_c" 1>&6
3157 else
3158 cat > conftest.$ac_ext <<EOF
3159 #line 3160 "configure"
3160 #include "confdefs.h"
3161 /* System header to define __stub macros and hopefully few prototypes,
3162 which can conflict with char shmat(); below. */
3163 #include <assert.h>
3164 /* Override any gcc2 internal prototype to avoid an error. */
3165 /* We use char because int might match the return type of a gcc2
3166 builtin and then its argument prototype would still apply. */
3167 char shmat();
3169 int main() {
3171 /* The GNU C library defines this for functions which it implements
3172 to always fail with ENOSYS. Some functions are actually named
3173 something starting with __ and the normal name is an alias. */
3174 #if defined (__stub_shmat) || defined (__stub___shmat)
3175 choke me
3176 #else
3177 shmat();
3178 #endif
3180 ; return 0; }
3182 if { (eval echo configure:3183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3183 rm -rf conftest*
3184 eval "ac_cv_func_shmat=yes"
3185 else
3186 echo "configure: failed program was:" >&5
3187 cat conftest.$ac_ext >&5
3188 rm -rf conftest*
3189 eval "ac_cv_func_shmat=no"
3191 rm -f conftest*
3194 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3195 echo "$ac_t""yes" 1>&6
3197 else
3198 echo "$ac_t""no" 1>&6
3201 if test $ac_cv_func_shmat = no; then
3202 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3203 echo "configure:3204: checking for shmat in -lipc" >&5
3204 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3205 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3206 echo $ac_n "(cached) $ac_c" 1>&6
3207 else
3208 ac_save_LIBS="$LIBS"
3209 LIBS="-lipc $LIBS"
3210 cat > conftest.$ac_ext <<EOF
3211 #line 3212 "configure"
3212 #include "confdefs.h"
3213 /* Override any gcc2 internal prototype to avoid an error. */
3214 /* We use char because int might match the return type of a gcc2
3215 builtin and then its argument prototype would still apply. */
3216 char shmat();
3218 int main() {
3219 shmat()
3220 ; return 0; }
3222 if { (eval echo configure:3223: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3223 rm -rf conftest*
3224 eval "ac_cv_lib_$ac_lib_var=yes"
3225 else
3226 echo "configure: failed program was:" >&5
3227 cat conftest.$ac_ext >&5
3228 rm -rf conftest*
3229 eval "ac_cv_lib_$ac_lib_var=no"
3231 rm -f conftest*
3232 LIBS="$ac_save_LIBS"
3235 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3237 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3238 else
3239 echo "$ac_t""no" 1>&6
3245 # Check for libraries that X11R6 Xt/Xaw programs need.
3246 ac_save_LDFLAGS="$LDFLAGS"
3247 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3248 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3249 # check for ICE first), but we must link in the order -lSM -lICE or
3250 # we get undefined symbols. So assume we have SM if we have ICE.
3251 # These have to be linked with before -lX11, unlike the other
3252 # libraries we check for below, so use a different variable.
3253 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3254 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3255 echo "configure:3256: checking for IceConnectionNumber in -lICE" >&5
3256 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3257 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3258 echo $ac_n "(cached) $ac_c" 1>&6
3259 else
3260 ac_save_LIBS="$LIBS"
3261 LIBS="-lICE $LIBS"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 /* Override any gcc2 internal prototype to avoid an error. */
3266 /* We use char because int might match the return type of a gcc2
3267 builtin and then its argument prototype would still apply. */
3268 char IceConnectionNumber();
3270 int main() {
3271 IceConnectionNumber()
3272 ; return 0; }
3274 if { (eval echo configure:3275: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3275 rm -rf conftest*
3276 eval "ac_cv_lib_$ac_lib_var=yes"
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3280 rm -rf conftest*
3281 eval "ac_cv_lib_$ac_lib_var=no"
3283 rm -f conftest*
3284 LIBS="$ac_save_LIBS"
3287 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3288 echo "$ac_t""yes" 1>&6
3289 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3290 else
3291 echo "$ac_t""no" 1>&6
3294 LDFLAGS="$ac_save_LDFLAGS"
3299 XCFLAGS="$X_CFLAGS"
3301 XLFLAGS="$X_LIBS"
3303 XLIBS="$X_EXTRA_LIBS -lX11"
3305 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3306 echo "configure:3307: checking for _Xsetlocale in -lX11" >&5
3307 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3308 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3309 echo $ac_n "(cached) $ac_c" 1>&6
3310 else
3311 ac_save_LIBS="$LIBS"
3312 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3313 cat > conftest.$ac_ext <<EOF
3314 #line 3315 "configure"
3315 #include "confdefs.h"
3316 /* Override any gcc2 internal prototype to avoid an error. */
3317 /* We use char because int might match the return type of a gcc2
3318 builtin and then its argument prototype would still apply. */
3319 char _Xsetlocale();
3321 int main() {
3322 _Xsetlocale()
3323 ; return 0; }
3325 if { (eval echo configure:3326: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3326 rm -rf conftest*
3327 eval "ac_cv_lib_$ac_lib_var=yes"
3328 else
3329 echo "configure: failed program was:" >&5
3330 cat conftest.$ac_ext >&5
3331 rm -rf conftest*
3332 eval "ac_cv_lib_$ac_lib_var=no"
3334 rm -f conftest*
3335 LIBS="$ac_save_LIBS"
3338 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3339 echo "$ac_t""yes" 1>&6
3340 X_LOCALE="-DX_LOCALE"
3341 else
3342 echo "$ac_t""no" 1>&6
3348 shape=yes
3349 # Check whether --enable-shape or --disable-shape was given.
3350 if test "${enable_shape+set}" = set; then
3351 enableval="$enable_shape"
3352 shape=$enableval
3353 else
3354 shape=yes
3358 added_xext=no
3360 if test "$shape" = yes; then
3361 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3362 echo "configure:3363: checking for XShapeSelectInput in -lXext" >&5
3363 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3364 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3365 echo $ac_n "(cached) $ac_c" 1>&6
3366 else
3367 ac_save_LIBS="$LIBS"
3368 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3369 cat > conftest.$ac_ext <<EOF
3370 #line 3371 "configure"
3371 #include "confdefs.h"
3372 /* Override any gcc2 internal prototype to avoid an error. */
3373 /* We use char because int might match the return type of a gcc2
3374 builtin and then its argument prototype would still apply. */
3375 char XShapeSelectInput();
3377 int main() {
3378 XShapeSelectInput()
3379 ; return 0; }
3381 if { (eval echo configure:3382: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3382 rm -rf conftest*
3383 eval "ac_cv_lib_$ac_lib_var=yes"
3384 else
3385 echo "configure: failed program was:" >&5
3386 cat conftest.$ac_ext >&5
3387 rm -rf conftest*
3388 eval "ac_cv_lib_$ac_lib_var=no"
3390 rm -f conftest*
3391 LIBS="$ac_save_LIBS"
3394 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3395 echo "$ac_t""yes" 1>&6
3396 XLIBS="-lXext $XLIBS"
3397 added_xext=yes SHAPE=-DSHAPE
3398 else
3399 echo "$ac_t""no" 1>&6
3400 shape=no
3408 shm=yes
3409 # Check whether --enable-shm or --disable-shm was given.
3410 if test "${enable_shm+set}" = set; then
3411 enableval="$enable_shm"
3412 shm=$enableval
3413 else
3414 shm=yes
3418 if test "$shm" = yes; then
3419 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3420 echo "configure:3421: checking for XShmAttach in -lXext" >&5
3421 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3422 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3423 echo $ac_n "(cached) $ac_c" 1>&6
3424 else
3425 ac_save_LIBS="$LIBS"
3426 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3427 cat > conftest.$ac_ext <<EOF
3428 #line 3429 "configure"
3429 #include "confdefs.h"
3430 /* Override any gcc2 internal prototype to avoid an error. */
3431 /* We use char because int might match the return type of a gcc2
3432 builtin and then its argument prototype would still apply. */
3433 char XShmAttach();
3435 int main() {
3436 XShmAttach()
3437 ; return 0; }
3439 if { (eval echo configure:3440: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3440 rm -rf conftest*
3441 eval "ac_cv_lib_$ac_lib_var=yes"
3442 else
3443 echo "configure: failed program was:" >&5
3444 cat conftest.$ac_ext >&5
3445 rm -rf conftest*
3446 eval "ac_cv_lib_$ac_lib_var=no"
3448 rm -f conftest*
3449 LIBS="$ac_save_LIBS"
3452 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3453 echo "$ac_t""yes" 1>&6
3454 ok=yes
3455 else
3456 echo "$ac_t""no" 1>&6
3457 ok=no
3461 if test "$ok" = yes; then
3462 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3463 echo "configure:3464: checking for shmget" >&5
3464 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3465 echo $ac_n "(cached) $ac_c" 1>&6
3466 else
3467 cat > conftest.$ac_ext <<EOF
3468 #line 3469 "configure"
3469 #include "confdefs.h"
3470 /* System header to define __stub macros and hopefully few prototypes,
3471 which can conflict with char shmget(); below. */
3472 #include <assert.h>
3473 /* Override any gcc2 internal prototype to avoid an error. */
3474 /* We use char because int might match the return type of a gcc2
3475 builtin and then its argument prototype would still apply. */
3476 char shmget();
3478 int main() {
3480 /* The GNU C library defines this for functions which it implements
3481 to always fail with ENOSYS. Some functions are actually named
3482 something starting with __ and the normal name is an alias. */
3483 #if defined (__stub_shmget) || defined (__stub___shmget)
3484 choke me
3485 #else
3486 shmget();
3487 #endif
3489 ; return 0; }
3491 if { (eval echo configure:3492: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3492 rm -rf conftest*
3493 eval "ac_cv_func_shmget=yes"
3494 else
3495 echo "configure: failed program was:" >&5
3496 cat conftest.$ac_ext >&5
3497 rm -rf conftest*
3498 eval "ac_cv_func_shmget=no"
3500 rm -f conftest*
3503 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3504 echo "$ac_t""yes" 1>&6
3505 ok=yes
3506 else
3507 echo "$ac_t""no" 1>&6
3508 ok=no
3513 if test "$ok" = yes; then
3514 if test "$added_xext" = no; then
3515 XLIBS="-lXext $XLIBS"
3517 XSHM=-DXSHM
3527 #AC_DEFINE(R6SM)
3528 #AC_SUBST(XSMPLIBS)
3533 GFXLIBS=""
3534 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3535 if test "${with_gfx_libs+set}" = set; then
3536 withval="$with_gfx_libs"
3537 GFXLFLAGS=$withval
3538 else
3539 GFXLFLAGS=""
3543 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3544 if test "${with_gfx_incs+set}" = set; then
3545 withval="$with_gfx_incs"
3546 GFXFLAGS="$withval" GFX_INC_PATH=$withval
3547 else
3548 GFXFLAGS="" GFX_INC_PATH=""
3555 xpm=yes
3556 # Check whether --enable-xpm or --disable-xpm was given.
3557 if test "${enable_xpm+set}" = set; then
3558 enableval="$enable_xpm"
3559 xpm=$enableval
3560 else
3561 xpm=yes
3565 if test "$xpm" = yes; then
3566 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3567 echo "configure:3568: checking for XpmCreatePixmapFromData in -lXpm" >&5
3568 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3569 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3570 echo $ac_n "(cached) $ac_c" 1>&6
3571 else
3572 ac_save_LIBS="$LIBS"
3573 LIBS="-lXpm $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3574 cat > conftest.$ac_ext <<EOF
3575 #line 3576 "configure"
3576 #include "confdefs.h"
3577 /* Override any gcc2 internal prototype to avoid an error. */
3578 /* We use char because int might match the return type of a gcc2
3579 builtin and then its argument prototype would still apply. */
3580 char XpmCreatePixmapFromData();
3582 int main() {
3583 XpmCreatePixmapFromData()
3584 ; return 0; }
3586 if { (eval echo configure:3587: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3587 rm -rf conftest*
3588 eval "ac_cv_lib_$ac_lib_var=yes"
3589 else
3590 echo "configure: failed program was:" >&5
3591 cat conftest.$ac_ext >&5
3592 rm -rf conftest*
3593 eval "ac_cv_lib_$ac_lib_var=no"
3595 rm -f conftest*
3596 LIBS="$ac_save_LIBS"
3599 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3600 echo "$ac_t""yes" 1>&6
3601 my_libok=yes
3602 else
3603 echo "$ac_t""no" 1>&6
3604 my_libok=no
3608 if test "$my_libok" = yes; then
3609 my_old_cppflags=$CPPFLAGS
3610 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3611 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3612 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3613 echo "configure:3614: checking for X11/xpm.h" >&5
3614 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3615 echo $ac_n "(cached) $ac_c" 1>&6
3616 else
3617 cat > conftest.$ac_ext <<EOF
3618 #line 3619 "configure"
3619 #include "confdefs.h"
3620 #include <X11/xpm.h>
3622 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3623 { (eval echo configure:3624: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3624 ac_err=`grep -v '^ *+' conftest.out`
3625 if test -z "$ac_err"; then
3626 rm -rf conftest*
3627 eval "ac_cv_header_$ac_safe=yes"
3628 else
3629 echo "$ac_err" >&5
3630 echo "configure: failed program was:" >&5
3631 cat conftest.$ac_ext >&5
3632 rm -rf conftest*
3633 eval "ac_cv_header_$ac_safe=no"
3635 rm -f conftest*
3637 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3638 echo "$ac_t""yes" 1>&6
3639 GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
3640 supported_gfx="XPM"
3641 else
3642 echo "$ac_t""no" 1>&6
3643 supported_gfx="XPM (builtin)"
3646 CPPFLAGS=$my_old_cppflags
3660 png=yes
3661 # Check whether --enable-png or --disable-png was given.
3662 if test "${enable_png+set}" = set; then
3663 enableval="$enable_png"
3664 png=$enableval
3665 else
3666 png=yes
3671 if test "$png" = yes ; then
3672 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3673 echo "configure:3674: checking for png_get_valid in -lpng" >&5
3674 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3675 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3676 echo $ac_n "(cached) $ac_c" 1>&6
3677 else
3678 ac_save_LIBS="$LIBS"
3679 LIBS="-lpng $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm $LIBS"
3680 cat > conftest.$ac_ext <<EOF
3681 #line 3682 "configure"
3682 #include "confdefs.h"
3683 /* Override any gcc2 internal prototype to avoid an error. */
3684 /* We use char because int might match the return type of a gcc2
3685 builtin and then its argument prototype would still apply. */
3686 char png_get_valid();
3688 int main() {
3689 png_get_valid()
3690 ; return 0; }
3692 if { (eval echo configure:3693: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3693 rm -rf conftest*
3694 eval "ac_cv_lib_$ac_lib_var=yes"
3695 else
3696 echo "configure: failed program was:" >&5
3697 cat conftest.$ac_ext >&5
3698 rm -rf conftest*
3699 eval "ac_cv_lib_$ac_lib_var=no"
3701 rm -f conftest*
3702 LIBS="$ac_save_LIBS"
3705 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3706 echo "$ac_t""yes" 1>&6
3707 my_libok=yes
3708 else
3709 echo "$ac_t""no" 1>&6
3710 my_libok=no
3714 if test "$my_libok" = yes; then
3715 my_old_cppflags=$CPPFLAGS
3716 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3717 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
3718 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3719 echo "configure:3720: checking for png.h" >&5
3720 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3721 echo $ac_n "(cached) $ac_c" 1>&6
3722 else
3723 cat > conftest.$ac_ext <<EOF
3724 #line 3725 "configure"
3725 #include "confdefs.h"
3726 #include <png.h>
3728 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3729 { (eval echo configure:3730: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3730 ac_err=`grep -v '^ *+' conftest.out`
3731 if test -z "$ac_err"; then
3732 rm -rf conftest*
3733 eval "ac_cv_header_$ac_safe=yes"
3734 else
3735 echo "$ac_err" >&5
3736 echo "configure: failed program was:" >&5
3737 cat conftest.$ac_ext >&5
3738 rm -rf conftest*
3739 eval "ac_cv_header_$ac_safe=no"
3741 rm -f conftest*
3743 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3744 echo "$ac_t""yes" 1>&6
3745 GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG"
3746 supported_gfx="$supported_gfx PNG"
3747 else
3748 echo "$ac_t""no" 1>&6
3751 CPPFLAGS=$my_old_cppflags
3756 jpeg=yes
3757 # Check whether --enable-jpeg or --disable-jpeg was given.
3758 if test "${enable_jpeg+set}" = set; then
3759 enableval="$enable_jpeg"
3760 jpeg=$enableval
3761 else
3762 jpeg=yes
3766 if test "$jpeg" = yes; then
3767 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3768 echo "configure:3769: checking for jpeg_destroy_compress in -ljpeg" >&5
3769 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3770 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3771 echo $ac_n "(cached) $ac_c" 1>&6
3772 else
3773 ac_save_LIBS="$LIBS"
3774 LIBS="-ljpeg $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3775 cat > conftest.$ac_ext <<EOF
3776 #line 3777 "configure"
3777 #include "confdefs.h"
3778 /* Override any gcc2 internal prototype to avoid an error. */
3779 /* We use char because int might match the return type of a gcc2
3780 builtin and then its argument prototype would still apply. */
3781 char jpeg_destroy_compress();
3783 int main() {
3784 jpeg_destroy_compress()
3785 ; return 0; }
3787 if { (eval echo configure:3788: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3788 rm -rf conftest*
3789 eval "ac_cv_lib_$ac_lib_var=yes"
3790 else
3791 echo "configure: failed program was:" >&5
3792 cat conftest.$ac_ext >&5
3793 rm -rf conftest*
3794 eval "ac_cv_lib_$ac_lib_var=no"
3796 rm -f conftest*
3797 LIBS="$ac_save_LIBS"
3800 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3801 echo "$ac_t""yes" 1>&6
3802 my_libok=yes
3803 else
3804 echo "$ac_t""no" 1>&6
3805 my_libok=no
3809 if test "$my_libok" = yes; then
3810 my_old_cppflags=$CPPFLAGS
3811 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3812 cat > conftest.$ac_ext <<EOF
3813 #line 3814 "configure"
3814 #include "confdefs.h"
3815 jpeglib.h
3817 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3818 { (eval echo configure:3819: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3819 ac_err=`grep -v '^ *+' conftest.out`
3820 if test -z "$ac_err"; then
3821 rm -rf conftest*
3822 GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
3823 supported_gfx="$supported_gfx JPEG"
3824 else
3825 echo "$ac_err" >&5
3826 echo "configure: failed program was:" >&5
3827 cat conftest.$ac_ext >&5
3828 rm -rf conftest*
3829 jpeg_not_found=yes
3831 rm -f conftest*
3832 CPPFLAGS=$my_old_cppflags
3837 gif=yes
3838 # Check whether --enable-gif or --disable-gif was given.
3839 if test "${enable_gif+set}" = set; then
3840 enableval="$enable_gif"
3841 gif=$enableval
3842 else
3843 gif=yes
3847 if test "$gif" = yes; then
3848 retry=no
3849 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3850 echo "configure:3851: checking for DGifOpenFileName in -lungif" >&5
3851 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 ac_save_LIBS="$LIBS"
3856 LIBS="-lungif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863 char DGifOpenFileName();
3865 int main() {
3866 DGifOpenFileName()
3867 ; return 0; }
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3870 rm -rf conftest*
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3872 else
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=no"
3878 rm -f conftest*
3879 LIBS="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 my_libok=yes my_libname=ungif
3885 else
3886 echo "$ac_t""no" 1>&6
3887 retry=yes my_libok=no
3890 if test "$retry" = yes; then
3891 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3892 echo "configure:3893: checking for DGifOpenFileName in -lgif" >&5
3893 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3894 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3895 echo $ac_n "(cached) $ac_c" 1>&6
3896 else
3897 ac_save_LIBS="$LIBS"
3898 LIBS="-lgif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3899 cat > conftest.$ac_ext <<EOF
3900 #line 3901 "configure"
3901 #include "confdefs.h"
3902 /* Override any gcc2 internal prototype to avoid an error. */
3903 /* We use char because int might match the return type of a gcc2
3904 builtin and then its argument prototype would still apply. */
3905 char DGifOpenFileName();
3907 int main() {
3908 DGifOpenFileName()
3909 ; return 0; }
3911 if { (eval echo configure:3912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3912 rm -rf conftest*
3913 eval "ac_cv_lib_$ac_lib_var=yes"
3914 else
3915 echo "configure: failed program was:" >&5
3916 cat conftest.$ac_ext >&5
3917 rm -rf conftest*
3918 eval "ac_cv_lib_$ac_lib_var=no"
3920 rm -f conftest*
3921 LIBS="$ac_save_LIBS"
3924 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3925 echo "$ac_t""yes" 1>&6
3926 my_libok=yes my_libname=gif
3927 else
3928 echo "$ac_t""no" 1>&6
3929 my_libok=no
3934 if test "$my_libok" = yes; then
3935 my_old_cppflags=$CPPFLAGS
3936 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3937 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3938 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3939 echo "configure:3940: checking for gif_lib.h" >&5
3940 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942 else
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 #include <gif_lib.h>
3948 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3949 { (eval echo configure:3950: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3950 ac_err=`grep -v '^ *+' conftest.out`
3951 if test -z "$ac_err"; then
3952 rm -rf conftest*
3953 eval "ac_cv_header_$ac_safe=yes"
3954 else
3955 echo "$ac_err" >&5
3956 echo "configure: failed program was:" >&5
3957 cat conftest.$ac_ext >&5
3958 rm -rf conftest*
3959 eval "ac_cv_header_$ac_safe=no"
3961 rm -f conftest*
3963 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 GFXLIBS="$GFXLIBS -l$my_libname" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3966 supported_gfx="$supported_gfx GIF"
3967 else
3968 echo "$ac_t""no" 1>&6
3971 CPPFLAGS=$my_old_cppflags
3977 # Check whether --enable-tiff or --disable-tiff was given.
3978 if test "${enable_tiff+set}" = set; then
3979 enableval="$enable_tiff"
3980 tif=$enableval
3981 else
3982 tif=yes
3987 # TIFF can optionally have JPEG and/or zlib support. Must find out
3988 # when they are supported so that correct library flags are passed during
3989 # detection and linkage
3992 # By default use xpm icons if tiff is not found.
3993 ICONEXT="xpm"
3996 if test "$tif" = yes; then
3997 my_libname=""
3998 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3999 echo "configure:4000: checking for TIFFGetVersion in -ltiff" >&5
4000 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4001 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4002 echo $ac_n "(cached) $ac_c" 1>&6
4003 else
4004 ac_save_LIBS="$LIBS"
4005 LIBS="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4006 cat > conftest.$ac_ext <<EOF
4007 #line 4008 "configure"
4008 #include "confdefs.h"
4009 /* Override any gcc2 internal prototype to avoid an error. */
4010 /* We use char because int might match the return type of a gcc2
4011 builtin and then its argument prototype would still apply. */
4012 char TIFFGetVersion();
4014 int main() {
4015 TIFFGetVersion()
4016 ; return 0; }
4018 if { (eval echo configure:4019: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4019 rm -rf conftest*
4020 eval "ac_cv_lib_$ac_lib_var=yes"
4021 else
4022 echo "configure: failed program was:" >&5
4023 cat conftest.$ac_ext >&5
4024 rm -rf conftest*
4025 eval "ac_cv_lib_$ac_lib_var=no"
4027 rm -f conftest*
4028 LIBS="$ac_save_LIBS"
4031 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4032 echo "$ac_t""yes" 1>&6
4033 my_libok=yes my_libname="-ltiff"
4034 else
4035 echo "$ac_t""no" 1>&6
4036 my_libok=no
4039 unset ac_cv_lib_tiff_TIFFGetVersion
4040 if test "$my_libok" = no; then
4041 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4042 echo "configure:4043: checking for TIFFGetVersion in -ltiff" >&5
4043 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4044 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4045 echo $ac_n "(cached) $ac_c" 1>&6
4046 else
4047 ac_save_LIBS="$LIBS"
4048 LIBS="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
4049 cat > conftest.$ac_ext <<EOF
4050 #line 4051 "configure"
4051 #include "confdefs.h"
4052 /* Override any gcc2 internal prototype to avoid an error. */
4053 /* We use char because int might match the return type of a gcc2
4054 builtin and then its argument prototype would still apply. */
4055 char TIFFGetVersion();
4057 int main() {
4058 TIFFGetVersion()
4059 ; return 0; }
4061 if { (eval echo configure:4062: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4062 rm -rf conftest*
4063 eval "ac_cv_lib_$ac_lib_var=yes"
4064 else
4065 echo "configure: failed program was:" >&5
4066 cat conftest.$ac_ext >&5
4067 rm -rf conftest*
4068 eval "ac_cv_lib_$ac_lib_var=no"
4070 rm -f conftest*
4071 LIBS="$ac_save_LIBS"
4074 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4075 echo "$ac_t""yes" 1>&6
4076 my_libok=yes my_libname="-ltiff -lz"
4077 else
4078 echo "$ac_t""no" 1>&6
4079 my_libok=no
4084 if test "$my_libok" = no; then
4085 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4086 echo "configure:4087: checking for TIFFGetVersion in -ltiff34" >&5
4087 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-ltiff34 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char TIFFGetVersion();
4101 int main() {
4102 TIFFGetVersion()
4103 ; return 0; }
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4106 rm -rf conftest*
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4108 else
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -rf conftest*
4112 eval "ac_cv_lib_$ac_lib_var=no"
4114 rm -f conftest*
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 my_libok=yes my_libname="-ltiff34"
4121 else
4122 echo "$ac_t""no" 1>&6
4123 my_libok=no
4128 if test "$my_libok" = yes; then
4129 my_old_cppflags=$CPPFLAGS
4130 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
4131 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4132 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4133 echo "configure:4134: checking for tiffio.h" >&5
4134 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4135 echo $ac_n "(cached) $ac_c" 1>&6
4136 else
4137 cat > conftest.$ac_ext <<EOF
4138 #line 4139 "configure"
4139 #include "confdefs.h"
4140 #include <tiffio.h>
4142 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4143 { (eval echo configure:4144: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4144 ac_err=`grep -v '^ *+' conftest.out`
4145 if test -z "$ac_err"; then
4146 rm -rf conftest*
4147 eval "ac_cv_header_$ac_safe=yes"
4148 else
4149 echo "$ac_err" >&5
4150 echo "configure: failed program was:" >&5
4151 cat conftest.$ac_ext >&5
4152 rm -rf conftest*
4153 eval "ac_cv_header_$ac_safe=no"
4155 rm -f conftest*
4157 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4158 echo "$ac_t""yes" 1>&6
4159 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="$my_libname $GFXLIBS"
4160 ICONEXT="tiff" supported_gfx="$supported_gfx TIFF"
4161 else
4162 echo "$ac_t""no" 1>&6
4165 CPPFLAGS=$my_old_cppflags
4179 # Check whether --enable-debug or --disable-debug was given.
4180 if test "${enable_debug+set}" = set; then
4181 enableval="$enable_debug"
4183 else
4184 enable_debug=no
4188 if test "$enable_debug" = yes; then
4189 DFLAGS="-g -DDEBUG"
4190 # Efence makes things too slow. Add it by hand in the Makefiles
4191 # if it is really needed.
4192 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4197 sound=yes
4198 # Check whether --enable-sound or --disable-sound was given.
4199 if test "${enable_sound+set}" = set; then
4200 enableval="$enable_sound"
4201 sound=$enableval
4202 else
4203 sound=yes
4206 if test "$sound" = yes; then
4207 SOUND="#define WMSOUND"
4208 else
4209 SOUND="#undef WMSOUND"
4214 # AC_PREFIX_PROGRAM(wmaker)
4216 if test "${prefix}" = "NONE"; then
4217 prefix="/usr/local"
4219 if test "${exec_prefix}" = "NONE"; then
4220 exec_prefix='$(prefix)'
4223 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4224 if test "${with_pixmapdir+set}" = set; then
4225 withval="$with_pixmapdir"
4230 if test "x$with_pixmapdir" != "x"; then
4231 pixmapdir=$with_pixmapdir
4232 else
4233 pixmapdir='$(datadir)/pixmaps'
4240 appspath=""
4242 # Check whether --with-appspath or --without-appspath was given.
4243 if test "${with_appspath+set}" = set; then
4244 withval="$with_appspath"
4245 appspath=$withval
4249 if test "x$appspath" = "x"; then
4250 gnustepdir='$(prefix)/GNUstep'
4252 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4253 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
4254 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
4257 with_appspath=$gnustepdir/Apps
4260 wprefsdir=$with_appspath/WPrefs.app
4266 # Check whether --enable-single-icon or --disable-single-icon was given.
4267 if test "${enable_single_icon+set}" = set; then
4268 enableval="$enable_single_icon"
4269 if test "$enableval" = yes; then
4270 REDUCE_APPICONS="#define REDUCE_APPICONS"
4271 else
4272 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4274 else
4275 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4282 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4283 echo "configure:4284: checking for sys/wait.h that is POSIX.1 compatible" >&5
4284 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4285 echo $ac_n "(cached) $ac_c" 1>&6
4286 else
4287 cat > conftest.$ac_ext <<EOF
4288 #line 4289 "configure"
4289 #include "confdefs.h"
4290 #include <sys/types.h>
4291 #include <sys/wait.h>
4292 #ifndef WEXITSTATUS
4293 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4294 #endif
4295 #ifndef WIFEXITED
4296 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4297 #endif
4298 int main() {
4299 int s;
4300 wait (&s);
4301 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4302 ; return 0; }
4304 if { (eval echo configure:4305: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4305 rm -rf conftest*
4306 ac_cv_header_sys_wait_h=yes
4307 else
4308 echo "configure: failed program was:" >&5
4309 cat conftest.$ac_ext >&5
4310 rm -rf conftest*
4311 ac_cv_header_sys_wait_h=no
4313 rm -f conftest*
4316 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4317 if test $ac_cv_header_sys_wait_h = yes; then
4318 cat >> confdefs.h <<\EOF
4319 #define HAVE_SYS_WAIT_H 1
4324 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
4325 libintl.h sys/select.h poll.h
4327 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4328 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4329 echo "configure:4330: checking for $ac_hdr" >&5
4330 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4331 echo $ac_n "(cached) $ac_c" 1>&6
4332 else
4333 cat > conftest.$ac_ext <<EOF
4334 #line 4335 "configure"
4335 #include "confdefs.h"
4336 #include <$ac_hdr>
4338 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4339 { (eval echo configure:4340: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4340 ac_err=`grep -v '^ *+' conftest.out`
4341 if test -z "$ac_err"; then
4342 rm -rf conftest*
4343 eval "ac_cv_header_$ac_safe=yes"
4344 else
4345 echo "$ac_err" >&5
4346 echo "configure: failed program was:" >&5
4347 cat conftest.$ac_ext >&5
4348 rm -rf conftest*
4349 eval "ac_cv_header_$ac_safe=no"
4351 rm -f conftest*
4353 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4354 echo "$ac_t""yes" 1>&6
4355 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4356 cat >> confdefs.h <<EOF
4357 #define $ac_tr_hdr 1
4360 else
4361 echo "$ac_t""no" 1>&6
4363 done
4368 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4369 echo "configure:4370: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4370 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4371 echo $ac_n "(cached) $ac_c" 1>&6
4372 else
4373 cat > conftest.$ac_ext <<EOF
4374 #line 4375 "configure"
4375 #include "confdefs.h"
4376 #include <sys/types.h>
4377 #include <signal.h>
4378 /* NetBSD declares sys_siglist in unistd.h. */
4379 #ifdef HAVE_UNISTD_H
4380 #include <unistd.h>
4381 #endif
4382 int main() {
4383 char *msg = *(sys_siglist + 1);
4384 ; return 0; }
4386 if { (eval echo configure:4387: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4387 rm -rf conftest*
4388 ac_cv_decl_sys_siglist=yes
4389 else
4390 echo "configure: failed program was:" >&5
4391 cat conftest.$ac_ext >&5
4392 rm -rf conftest*
4393 ac_cv_decl_sys_siglist=no
4395 rm -f conftest*
4398 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4399 if test $ac_cv_decl_sys_siglist = yes; then
4400 cat >> confdefs.h <<\EOF
4401 #define SYS_SIGLIST_DECLARED 1
4406 echo $ac_n "checking for working const""... $ac_c" 1>&6
4407 echo "configure:4408: checking for working const" >&5
4408 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4409 echo $ac_n "(cached) $ac_c" 1>&6
4410 else
4411 cat > conftest.$ac_ext <<EOF
4412 #line 4413 "configure"
4413 #include "confdefs.h"
4415 int main() {
4417 /* Ultrix mips cc rejects this. */
4418 typedef int charset[2]; const charset x;
4419 /* SunOS 4.1.1 cc rejects this. */
4420 char const *const *ccp;
4421 char **p;
4422 /* NEC SVR4.0.2 mips cc rejects this. */
4423 struct point {int x, y;};
4424 static struct point const zero = {0,0};
4425 /* AIX XL C 1.02.0.0 rejects this.
4426 It does not let you subtract one const X* pointer from another in an arm
4427 of an if-expression whose if-part is not a constant expression */
4428 const char *g = "string";
4429 ccp = &g + (g ? g-g : 0);
4430 /* HPUX 7.0 cc rejects these. */
4431 ++ccp;
4432 p = (char**) ccp;
4433 ccp = (char const *const *) p;
4434 { /* SCO 3.2v4 cc rejects this. */
4435 char *t;
4436 char const *s = 0 ? (char *) 0 : (char const *) 0;
4438 *t++ = 0;
4440 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4441 int x[] = {25, 17};
4442 const int *foo = &x[0];
4443 ++foo;
4445 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4446 typedef const int *iptr;
4447 iptr p = 0;
4448 ++p;
4450 { /* AIX XL C 1.02.0.0 rejects this saying
4451 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4452 struct s { int j; const int *ap[3]; };
4453 struct s *b; b->j = 5;
4455 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4456 const int foo = 10;
4459 ; return 0; }
4461 if { (eval echo configure:4462: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4462 rm -rf conftest*
4463 ac_cv_c_const=yes
4464 else
4465 echo "configure: failed program was:" >&5
4466 cat conftest.$ac_ext >&5
4467 rm -rf conftest*
4468 ac_cv_c_const=no
4470 rm -f conftest*
4473 echo "$ac_t""$ac_cv_c_const" 1>&6
4474 if test $ac_cv_c_const = no; then
4475 cat >> confdefs.h <<\EOF
4476 #define const
4481 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4482 echo "configure:4483: checking for ANSI C header files" >&5
4483 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4484 echo $ac_n "(cached) $ac_c" 1>&6
4485 else
4486 cat > conftest.$ac_ext <<EOF
4487 #line 4488 "configure"
4488 #include "confdefs.h"
4489 #include <stdlib.h>
4490 #include <stdarg.h>
4491 #include <string.h>
4492 #include <float.h>
4494 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4495 { (eval echo configure:4496: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4496 ac_err=`grep -v '^ *+' conftest.out`
4497 if test -z "$ac_err"; then
4498 rm -rf conftest*
4499 ac_cv_header_stdc=yes
4500 else
4501 echo "$ac_err" >&5
4502 echo "configure: failed program was:" >&5
4503 cat conftest.$ac_ext >&5
4504 rm -rf conftest*
4505 ac_cv_header_stdc=no
4507 rm -f conftest*
4509 if test $ac_cv_header_stdc = yes; then
4510 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4511 cat > conftest.$ac_ext <<EOF
4512 #line 4513 "configure"
4513 #include "confdefs.h"
4514 #include <string.h>
4516 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4517 egrep "memchr" >/dev/null 2>&1; then
4519 else
4520 rm -rf conftest*
4521 ac_cv_header_stdc=no
4523 rm -f conftest*
4527 if test $ac_cv_header_stdc = yes; then
4528 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4529 cat > conftest.$ac_ext <<EOF
4530 #line 4531 "configure"
4531 #include "confdefs.h"
4532 #include <stdlib.h>
4534 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4535 egrep "free" >/dev/null 2>&1; then
4537 else
4538 rm -rf conftest*
4539 ac_cv_header_stdc=no
4541 rm -f conftest*
4545 if test $ac_cv_header_stdc = yes; then
4546 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4547 if test "$cross_compiling" = yes; then
4549 else
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <ctype.h>
4554 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4555 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4556 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4557 int main () { int i; for (i = 0; i < 256; i++)
4558 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4559 exit (0); }
4562 if { (eval echo configure:4563: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4563 then
4565 else
4566 echo "configure: failed program was:" >&5
4567 cat conftest.$ac_ext >&5
4568 rm -fr conftest*
4569 ac_cv_header_stdc=no
4571 rm -fr conftest*
4577 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4578 if test $ac_cv_header_stdc = yes; then
4579 cat >> confdefs.h <<\EOF
4580 #define STDC_HEADERS 1
4585 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4586 echo "configure:4587: checking for size_t" >&5
4587 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4588 echo $ac_n "(cached) $ac_c" 1>&6
4589 else
4590 cat > conftest.$ac_ext <<EOF
4591 #line 4592 "configure"
4592 #include "confdefs.h"
4593 #include <sys/types.h>
4594 #if STDC_HEADERS
4595 #include <stdlib.h>
4596 #include <stddef.h>
4597 #endif
4599 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4600 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4601 rm -rf conftest*
4602 ac_cv_type_size_t=yes
4603 else
4604 rm -rf conftest*
4605 ac_cv_type_size_t=no
4607 rm -f conftest*
4610 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4611 if test $ac_cv_type_size_t = no; then
4612 cat >> confdefs.h <<\EOF
4613 #define size_t unsigned
4618 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4619 echo "configure:4620: checking for pid_t" >&5
4620 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4621 echo $ac_n "(cached) $ac_c" 1>&6
4622 else
4623 cat > conftest.$ac_ext <<EOF
4624 #line 4625 "configure"
4625 #include "confdefs.h"
4626 #include <sys/types.h>
4627 #if STDC_HEADERS
4628 #include <stdlib.h>
4629 #include <stddef.h>
4630 #endif
4632 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4633 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4634 rm -rf conftest*
4635 ac_cv_type_pid_t=yes
4636 else
4637 rm -rf conftest*
4638 ac_cv_type_pid_t=no
4640 rm -f conftest*
4643 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4644 if test $ac_cv_type_pid_t = no; then
4645 cat >> confdefs.h <<\EOF
4646 #define pid_t int
4651 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4652 echo "configure:4653: checking whether time.h and sys/time.h may both be included" >&5
4653 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4654 echo $ac_n "(cached) $ac_c" 1>&6
4655 else
4656 cat > conftest.$ac_ext <<EOF
4657 #line 4658 "configure"
4658 #include "confdefs.h"
4659 #include <sys/types.h>
4660 #include <sys/time.h>
4661 #include <time.h>
4662 int main() {
4663 struct tm *tp;
4664 ; return 0; }
4666 if { (eval echo configure:4667: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4667 rm -rf conftest*
4668 ac_cv_header_time=yes
4669 else
4670 echo "configure: failed program was:" >&5
4671 cat conftest.$ac_ext >&5
4672 rm -rf conftest*
4673 ac_cv_header_time=no
4675 rm -f conftest*
4678 echo "$ac_t""$ac_cv_header_time" 1>&6
4679 if test $ac_cv_header_time = yes; then
4680 cat >> confdefs.h <<\EOF
4681 #define TIME_WITH_SYS_TIME 1
4690 enable_shared=no
4691 #AC_ARG_ENABLE(shared,
4692 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4693 # enable_shared=no)
4695 if test "$enable_shared" = yes; then
4696 if test "$GCC" = yes; then
4697 _CFLAGS="-fPIC"
4698 LDSHARED='$CC -shared'
4699 else
4700 # find system name and corresponding cc options
4701 case `(uname -sr || echo unknown) 2>/dev/null` in
4702 SunOS\ 5*)
4703 _CFLAGS="-fast -xcg89 -KPIC -R."
4704 LDSHARED='$CC -G';;
4705 SunOS\ 4*)
4706 _CFLAGS="-PIC"
4707 LDSHARED="ld";;
4708 IRIX*)
4709 _CFLAGS="-ansi -rpath ."
4710 LDSHARED='$CC -shared';;
4711 SCO_SV\ 3.2*)
4712 _CFLAGS="-dy -KPIC "
4713 LDSHARED='$CC -dy -KPIC -G';;
4714 HP-UX*)
4715 _CFLAGS="+z"
4716 LDSHARED="ld -b"
4717 SHAREDLIBS='libz.sl';;
4719 _CFLAGS=""
4720 LDSHARED='$CC -shared';;
4721 esac
4724 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4725 echo "configure:4726: checking for shared library support" >&5
4727 test=tmptest$$
4728 cat > $test.c <<EOF
4729 int hello() { printf("hello\n"); }
4733 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4734 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4735 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4736 CFLAGS="$CFLAGS $_CFLAGS"
4737 WRASTERLIB='libwraster.so.$(WRASTER_VER)'
4738 WINGSLIB='libWINGs.so.$(WINGS_VER)'
4739 echo "$ac_t""yes, building shared" 1>&6
4740 else
4741 LDSHARED='$CC'
4742 WRASTERLIB='libwraster.a'
4743 WINGSLIB='libWINGs.a'
4744 echo "$ac_t""no, building static" 1>&6
4746 rm -f $test.co $test.so
4749 #AC_SUBST(WRASTER_VER)
4750 #AC_SUBST(WINGS_VER)
4751 #AC_SUBST(WRASTERLIB)
4752 # AC_SUBST(WINGSLIB)
4753 # AC_SUBST(LDSHARED)
4759 trap '' 1 2 15
4760 cat > confcache <<\EOF
4761 # This file is a shell script that caches the results of configure
4762 # tests run on this system so they can be shared between configure
4763 # scripts and configure runs. It is not useful on other systems.
4764 # If it contains results you don't want to keep, you may remove or edit it.
4766 # By default, configure uses ./config.cache as the cache file,
4767 # creating it if it does not exist already. You can give configure
4768 # the --cache-file=FILE option to use a different cache file; that is
4769 # what configure does when it calls configure scripts in
4770 # subdirectories, so they share the cache.
4771 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4772 # config.status only pays attention to the cache file if you give it the
4773 # --recheck option to rerun configure.
4776 # The following way of writing the cache mishandles newlines in values,
4777 # but we know of no workaround that is simple, portable, and efficient.
4778 # So, don't put newlines in cache variables' values.
4779 # Ultrix sh set writes to stderr and can't be redirected directly,
4780 # and sets the high bit in the cache file unless we assign to the vars.
4781 (set) 2>&1 |
4782 case `(ac_space=' '; set) 2>&1` in
4783 *ac_space=\ *)
4784 # `set' does not quote correctly, so add quotes (double-quote substitution
4785 # turns \\\\ into \\, and sed turns \\ into \).
4786 sed -n \
4787 -e "s/'/'\\\\''/g" \
4788 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4791 # `set' quotes correctly as required by POSIX, so do not add quotes.
4792 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4794 esac >> confcache
4795 if cmp -s $cache_file confcache; then
4797 else
4798 if test -w $cache_file; then
4799 echo "updating cache $cache_file"
4800 cat confcache > $cache_file
4801 else
4802 echo "not updating unwritable cache $cache_file"
4805 rm -f confcache
4807 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4809 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4810 # Let make expand exec_prefix.
4811 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4813 # Any assignment to VPATH causes Sun make to only execute
4814 # the first set of double-colon rules, so remove it if not needed.
4815 # If there is a colon in the path, we need to keep it.
4816 if test "x$srcdir" = x.; then
4817 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4820 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4822 DEFS=-DHAVE_CONFIG_H
4824 # Without the "./", some shells look in PATH for config.status.
4825 : ${CONFIG_STATUS=./config.status}
4827 echo creating $CONFIG_STATUS
4828 rm -f $CONFIG_STATUS
4829 cat > $CONFIG_STATUS <<EOF
4830 #! /bin/sh
4831 # Generated automatically by configure.
4832 # Run this file to recreate the current configuration.
4833 # This directory was configured as follows,
4834 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4836 # $0 $ac_configure_args
4838 # Compiler output produced by configure, useful for debugging
4839 # configure, is in ./config.log if it exists.
4841 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4842 for ac_option
4844 case "\$ac_option" in
4845 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4846 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4847 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4848 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4849 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4850 exit 0 ;;
4851 -help | --help | --hel | --he | --h)
4852 echo "\$ac_cs_usage"; exit 0 ;;
4853 *) echo "\$ac_cs_usage"; exit 1 ;;
4854 esac
4855 done
4857 ac_given_srcdir=$srcdir
4858 ac_given_INSTALL="$INSTALL"
4860 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4861 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4862 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4863 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
4864 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
4865 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
4866 WindowMaker/Themes/Makefile \
4867 WindowMaker/Themes/Night.themed/Makefile \
4868 WindowMaker/Themes/Checker.themed/Makefile \
4869 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4870 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4872 cat >> $CONFIG_STATUS <<EOF
4874 # Protect against being on the right side of a sed subst in config.status.
4875 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4876 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4877 $ac_vpsub
4878 $extrasub
4879 s%@CFLAGS@%$CFLAGS%g
4880 s%@CPPFLAGS@%$CPPFLAGS%g
4881 s%@CXXFLAGS@%$CXXFLAGS%g
4882 s%@DEFS@%$DEFS%g
4883 s%@LDFLAGS@%$LDFLAGS%g
4884 s%@LIBS@%$LIBS%g
4885 s%@exec_prefix@%$exec_prefix%g
4886 s%@prefix@%$prefix%g
4887 s%@program_transform_name@%$program_transform_name%g
4888 s%@bindir@%$bindir%g
4889 s%@sbindir@%$sbindir%g
4890 s%@libexecdir@%$libexecdir%g
4891 s%@datadir@%$datadir%g
4892 s%@sysconfdir@%$sysconfdir%g
4893 s%@sharedstatedir@%$sharedstatedir%g
4894 s%@localstatedir@%$localstatedir%g
4895 s%@libdir@%$libdir%g
4896 s%@includedir@%$includedir%g
4897 s%@oldincludedir@%$oldincludedir%g
4898 s%@infodir@%$infodir%g
4899 s%@mandir@%$mandir%g
4900 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4901 s%@INSTALL_DATA@%$INSTALL_DATA%g
4902 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4903 s%@PACKAGE@%$PACKAGE%g
4904 s%@VERSION@%$VERSION%g
4905 s%@ACLOCAL@%$ACLOCAL%g
4906 s%@AUTOCONF@%$AUTOCONF%g
4907 s%@AUTOMAKE@%$AUTOMAKE%g
4908 s%@AUTOHEADER@%$AUTOHEADER%g
4909 s%@MAKEINFO@%$MAKEINFO%g
4910 s%@SET_MAKE@%$SET_MAKE%g
4911 s%@host@%$host%g
4912 s%@host_alias@%$host_alias%g
4913 s%@host_cpu@%$host_cpu%g
4914 s%@host_vendor@%$host_vendor%g
4915 s%@host_os@%$host_os%g
4916 s%@CC@%$CC%g
4917 s%@RANLIB@%$RANLIB%g
4918 s%@LD@%$LD%g
4919 s%@LN_S@%$LN_S%g
4920 s%@LIBTOOL@%$LIBTOOL%g
4921 s%@subdirs@%$subdirs%g
4922 s%@CPP@%$CPP%g
4923 s%@ALLOCA@%$ALLOCA%g
4924 s%@CPP_PATH@%$CPP_PATH%g
4925 s%@XGETTEXT@%$XGETTEXT%g
4926 s%@I18N_MB@%$I18N_MB%g
4927 s%@I18N@%$I18N%g
4928 s%@INTLIBS@%$INTLIBS%g
4929 s%@NLSDIR@%$NLSDIR%g
4930 s%@MOFILES@%$MOFILES%g
4931 s%@WPMOFILES@%$WPMOFILES%g
4932 s%@LITE@%$LITE%g
4933 s%@X_CFLAGS@%$X_CFLAGS%g
4934 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4935 s%@X_LIBS@%$X_LIBS%g
4936 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4937 s%@X_LOCALE@%$X_LOCALE%g
4938 s%@SHAPE@%$SHAPE%g
4939 s%@XSHM@%$XSHM%g
4940 s%@XLIBS@%$XLIBS%g
4941 s%@XCFLAGS@%$XCFLAGS%g
4942 s%@XLFLAGS@%$XLFLAGS%g
4943 s%@GFXFLAGS@%$GFXFLAGS%g
4944 s%@GFXLFLAGS@%$GFXLFLAGS%g
4945 s%@GFXLIBS@%$GFXLIBS%g
4946 s%@ICONEXT@%$ICONEXT%g
4947 s%@DFLAGS@%$DFLAGS%g
4948 s%@SOUND@%$SOUND%g
4949 s%@pixmapdir@%$pixmapdir%g
4950 s%@wprefsdir@%$wprefsdir%g
4951 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4953 CEOF
4956 cat >> $CONFIG_STATUS <<\EOF
4958 # Split the substitutions into bite-sized pieces for seds with
4959 # small command number limits, like on Digital OSF/1 and HP-UX.
4960 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4961 ac_file=1 # Number of current file.
4962 ac_beg=1 # First line for current file.
4963 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4964 ac_more_lines=:
4965 ac_sed_cmds=""
4966 while $ac_more_lines; do
4967 if test $ac_beg -gt 1; then
4968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4969 else
4970 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4972 if test ! -s conftest.s$ac_file; then
4973 ac_more_lines=false
4974 rm -f conftest.s$ac_file
4975 else
4976 if test -z "$ac_sed_cmds"; then
4977 ac_sed_cmds="sed -f conftest.s$ac_file"
4978 else
4979 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4981 ac_file=`expr $ac_file + 1`
4982 ac_beg=$ac_end
4983 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4985 done
4986 if test -z "$ac_sed_cmds"; then
4987 ac_sed_cmds=cat
4991 cat >> $CONFIG_STATUS <<EOF
4993 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4994 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4995 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4996 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
4997 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
4998 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
4999 WindowMaker/Themes/Makefile \
5000 WindowMaker/Themes/Night.themed/Makefile \
5001 WindowMaker/Themes/Checker.themed/Makefile \
5002 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5003 WPrefs.app/po/Makefile "}
5005 cat >> $CONFIG_STATUS <<\EOF
5006 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5007 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5008 case "$ac_file" in
5009 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5010 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5011 *) ac_file_in="${ac_file}.in" ;;
5012 esac
5014 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5016 # Remove last slash and all that follows it. Not all systems have dirname.
5017 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5018 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5019 # The file is in a subdirectory.
5020 test ! -d "$ac_dir" && mkdir "$ac_dir"
5021 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5022 # A "../" for each directory in $ac_dir_suffix.
5023 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5024 else
5025 ac_dir_suffix= ac_dots=
5028 case "$ac_given_srcdir" in
5029 .) srcdir=.
5030 if test -z "$ac_dots"; then top_srcdir=.
5031 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5032 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5033 *) # Relative path.
5034 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5035 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5036 esac
5038 case "$ac_given_INSTALL" in
5039 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5040 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5041 esac
5043 echo creating "$ac_file"
5044 rm -f "$ac_file"
5045 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5046 case "$ac_file" in
5047 *Makefile*) ac_comsub="1i\\
5048 # $configure_input" ;;
5049 *) ac_comsub= ;;
5050 esac
5052 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5053 sed -e "$ac_comsub
5054 s%@configure_input@%$configure_input%g
5055 s%@srcdir@%$srcdir%g
5056 s%@top_srcdir@%$top_srcdir%g
5057 s%@INSTALL@%$INSTALL%g
5058 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5059 fi; done
5060 rm -f conftest.s*
5062 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5063 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5065 # ac_d sets the value in "#define NAME VALUE" lines.
5066 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5067 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5068 ac_dC='\3'
5069 ac_dD='%g'
5070 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5071 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5072 ac_uB='\([ ]\)%\1#\2define\3'
5073 ac_uC=' '
5074 ac_uD='\4%g'
5075 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5076 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5077 ac_eB='$%\1#\2define\3'
5078 ac_eC=' '
5079 ac_eD='%g'
5081 if test "${CONFIG_HEADERS+set}" != set; then
5083 cat >> $CONFIG_STATUS <<EOF
5084 CONFIG_HEADERS="src/config.h"
5086 cat >> $CONFIG_STATUS <<\EOF
5088 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5089 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5090 case "$ac_file" in
5091 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5092 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5093 *) ac_file_in="${ac_file}.in" ;;
5094 esac
5096 echo creating $ac_file
5098 rm -f conftest.frag conftest.in conftest.out
5099 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5100 cat $ac_file_inputs > conftest.in
5104 # Transform confdefs.h into a sed script conftest.vals that substitutes
5105 # the proper values into config.h.in to produce config.h. And first:
5106 # Protect against being on the right side of a sed subst in config.status.
5107 # Protect against being in an unquoted here document in config.status.
5108 rm -f conftest.vals
5109 cat > conftest.hdr <<\EOF
5110 s/[\\&%]/\\&/g
5111 s%[\\$`]%\\&%g
5112 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5113 s%ac_d%ac_u%gp
5114 s%ac_u%ac_e%gp
5116 sed -n -f conftest.hdr confdefs.h > conftest.vals
5117 rm -f conftest.hdr
5119 # This sed command replaces #undef with comments. This is necessary, for
5120 # example, in the case of _POSIX_SOURCE, which is predefined and required
5121 # on some systems where configure will not decide to define it.
5122 cat >> conftest.vals <<\EOF
5123 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5126 # Break up conftest.vals because some shells have a limit on
5127 # the size of here documents, and old seds have small limits too.
5129 rm -f conftest.tail
5130 while :
5132 ac_lines=`grep -c . conftest.vals`
5133 # grep -c gives empty output for an empty file on some AIX systems.
5134 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5135 # Write a limited-size here document to conftest.frag.
5136 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5137 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5138 echo 'CEOF
5139 sed -f conftest.frag conftest.in > conftest.out
5140 rm -f conftest.in
5141 mv conftest.out conftest.in
5142 ' >> $CONFIG_STATUS
5143 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5144 rm -f conftest.vals
5145 mv conftest.tail conftest.vals
5146 done
5147 rm -f conftest.vals
5149 cat >> $CONFIG_STATUS <<\EOF
5150 rm -f conftest.frag conftest.h
5151 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5152 cat conftest.in >> conftest.h
5153 rm -f conftest.in
5154 if cmp -s $ac_file conftest.h 2>/dev/null; then
5155 echo "$ac_file is unchanged"
5156 rm -f conftest.h
5157 else
5158 # Remove last slash and all that follows it. Not all systems have dirname.
5159 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5160 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5161 # The file is in a subdirectory.
5162 test ! -d "$ac_dir" && mkdir "$ac_dir"
5164 rm -f $ac_file
5165 mv conftest.h $ac_file
5167 fi; done
5170 cat >> $CONFIG_STATUS <<EOF
5174 cat >> $CONFIG_STATUS <<\EOF
5175 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5177 exit 0
5179 chmod +x $CONFIG_STATUS
5180 rm -fr confdefs* $ac_clean_files
5181 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5183 if test "$no_recursion" != yes; then
5185 # Remove --cache-file and --srcdir arguments so they do not pile up.
5186 ac_sub_configure_args=
5187 ac_prev=
5188 for ac_arg in $ac_configure_args; do
5189 if test -n "$ac_prev"; then
5190 ac_prev=
5191 continue
5193 case "$ac_arg" in
5194 -cache-file | --cache-file | --cache-fil | --cache-fi \
5195 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5196 ac_prev=cache_file ;;
5197 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5198 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5200 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5201 ac_prev=srcdir ;;
5202 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5204 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5205 esac
5206 done
5208 for ac_config_dir in libPropList; do
5210 # Do not complain, so a configure script can configure whichever
5211 # parts of a large source tree are present.
5212 if test ! -d $srcdir/$ac_config_dir; then
5213 continue
5216 echo configuring in $ac_config_dir
5218 case "$srcdir" in
5219 .) ;;
5221 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5222 else
5223 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5226 esac
5228 ac_popdir=`pwd`
5229 cd $ac_config_dir
5231 # A "../" for each directory in /$ac_config_dir.
5232 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5234 case "$srcdir" in
5235 .) # No --srcdir option. We are building in place.
5236 ac_sub_srcdir=$srcdir ;;
5237 /*) # Absolute path.
5238 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5239 *) # Relative path.
5240 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5241 esac
5243 # Check for guested configure; otherwise get Cygnus style configure.
5244 if test -f $ac_sub_srcdir/configure; then
5245 ac_sub_configure=$ac_sub_srcdir/configure
5246 elif test -f $ac_sub_srcdir/configure.in; then
5247 ac_sub_configure=$ac_configure
5248 else
5249 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5250 ac_sub_configure=
5253 # The recursion is here.
5254 if test -n "$ac_sub_configure"; then
5256 # Make the cache file name correct relative to the subdirectory.
5257 case "$cache_file" in
5258 /*) ac_sub_cache_file=$cache_file ;;
5259 *) # Relative path.
5260 ac_sub_cache_file="$ac_dots$cache_file" ;;
5261 esac
5262 case "$ac_given_INSTALL" in
5263 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5264 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5265 esac
5267 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5268 # The eval makes quoting arguments work.
5269 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5270 then :
5271 else
5272 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5276 cd $ac_popdir
5277 done
5284 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5285 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5286 | sed -e 's|\$(prefix)|'"$prefix|" >> WINGs-flags
5290 supported_gfx="$supported_gfx PPM (built-in)"
5292 if test "x$MOFILES" = "x"; then
5293 mof=none
5294 else
5295 mof=$MOFILES
5298 echo
5299 echo "Window Maker was configured as follows:"
5300 echo
5301 echo "Installation path prefix: $prefix"
5302 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
5303 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5304 echo "Graphic format libraries: $supported_gfx"
5305 echo "Sound support: $sound"
5306 echo "Translated message files to install: $mof"
5307 if test "x$MOFILES" != "x"; then
5308 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5310 if test x$kde_on != x; then
5311 echo "KDE support enabled"
5313 if test x$LITE != x; then
5314 echo "Duplicated stuff with KDE will be removed"
5316 if test x$gnome_on != x; then
5317 echo "GNOME support enabled"
5320 if test "$jpeg_not_found" = yes; then
5321 echo "JPEG support will not be included because the JPEG library is"
5322 echo "not installed correctly or was not found. Background images"
5323 echo "from themes will not display as they usually are JPEG files."