Oops... I still forgot to add some files in WindowMaker submenu.
[wmaker-crm.git] / configure
blob0edb026149290aabcdbdf198eb272362bc0d116e
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 --enable-shared build shared libraries [default=yes]
16 --enable-shared=PKGS only build shared libraries if the current package
17 appears as an element in the PKGS list"
18 ac_help="$ac_help
19 --enable-static build static libraries [default=yes]
20 --enable-static=PKGS only build shared libraries if the current package
21 appears as an element in the PKGS list"
22 ac_help="$ac_help
23 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
24 ac_help="$ac_help
25 --enable-kanji multibyte character support (kanji, Korean etc.)"
26 ac_help="$ac_help
27 --enable-modelock XKB keyboard language status support"
28 ac_help="$ac_help
29 --with-nlsdir=PATH specify where the locale stuff should go "
30 ac_help="$ac_help
31 --enable-gnome enable stuff needed for GNOME "
32 ac_help="$ac_help
33 --enable-kde enable support for KDE window manager (kwm) hints "
34 ac_help="$ac_help
35 --enable-lite disable stuff duplicated in KDE/GNOME "
36 ac_help="$ac_help
37 --with-x use the X Window System"
38 ac_help="$ac_help
39 --disable-shape disable shaped window extension support"
40 ac_help="$ac_help
41 --disable-shm disable usage of MIT-SHM extension"
42 ac_help="$ac_help
43 --with-gfx-libs pass compiler flags to look for gfx libraries"
44 ac_help="$ac_help
45 --with-gfx-incs pass compiler flags to look for gfx header files"
46 ac_help="$ac_help
47 --disable-xpm disable use of XPM pixmaps through libXpm"
48 ac_help="$ac_help
49 --disable-png disable PNG support through libpng"
50 ac_help="$ac_help
51 --disable-jpeg disable JPEG support through libjpeg"
52 ac_help="$ac_help
53 --disable-gif disable GIF support through libgif or libungif"
54 ac_help="$ac_help
55 --disable-tiff disable use of TIFF images through libtiff"
56 ac_help="$ac_help
57 --enable-debug enable debugging "
58 ac_help="$ac_help
59 --disable-sound disable sound support "
60 ac_help="$ac_help
61 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
62 ac_help="$ac_help
63 --with-appspath=PATH specify the path of the GNUstep applications
64 directory"
65 ac_help="$ac_help
66 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
69 # Initialize some variables set by options.
70 # The variables have the same names as the options, with
71 # dashes changed to underlines.
72 build=NONE
73 cache_file=./config.cache
74 exec_prefix=NONE
75 host=NONE
76 no_create=
77 nonopt=NONE
78 no_recursion=
79 prefix=NONE
80 program_prefix=NONE
81 program_suffix=NONE
82 program_transform_name=s,x,x,
83 silent=
84 site=
85 srcdir=
86 target=NONE
87 verbose=
88 x_includes=NONE
89 x_libraries=NONE
90 bindir='${exec_prefix}/bin'
91 sbindir='${exec_prefix}/sbin'
92 libexecdir='${exec_prefix}/libexec'
93 datadir='${prefix}/share'
94 sysconfdir='${prefix}/etc'
95 sharedstatedir='${prefix}/com'
96 localstatedir='${prefix}/var'
97 libdir='${exec_prefix}/lib'
98 includedir='${prefix}/include'
99 oldincludedir='/usr/include'
100 infodir='${prefix}/info'
101 mandir='${prefix}/man'
103 # Initialize some other variables.
104 subdirs=
105 MFLAGS= MAKEFLAGS=
106 # Maximum number of lines to put in a shell here document.
107 ac_max_here_lines=12
109 ac_prev=
110 for ac_option
113 # If the previous option needs an argument, assign it.
114 if test -n "$ac_prev"; then
115 eval "$ac_prev=\$ac_option"
116 ac_prev=
117 continue
120 case "$ac_option" in
121 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
122 *) ac_optarg= ;;
123 esac
125 # Accept the important Cygnus configure options, so we can diagnose typos.
127 case "$ac_option" in
129 -bindir | --bindir | --bindi | --bind | --bin | --bi)
130 ac_prev=bindir ;;
131 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
132 bindir="$ac_optarg" ;;
134 -build | --build | --buil | --bui | --bu)
135 ac_prev=build ;;
136 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
137 build="$ac_optarg" ;;
139 -cache-file | --cache-file | --cache-fil | --cache-fi \
140 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
141 ac_prev=cache_file ;;
142 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
143 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
144 cache_file="$ac_optarg" ;;
146 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
147 ac_prev=datadir ;;
148 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
149 | --da=*)
150 datadir="$ac_optarg" ;;
152 -disable-* | --disable-*)
153 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
154 # Reject names that are not valid shell variable names.
155 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
156 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
158 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
159 eval "enable_${ac_feature}=no" ;;
161 -enable-* | --enable-*)
162 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
163 # Reject names that are not valid shell variable names.
164 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
165 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
167 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
168 case "$ac_option" in
169 *=*) ;;
170 *) ac_optarg=yes ;;
171 esac
172 eval "enable_${ac_feature}='$ac_optarg'" ;;
174 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
175 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
176 | --exec | --exe | --ex)
177 ac_prev=exec_prefix ;;
178 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
179 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
180 | --exec=* | --exe=* | --ex=*)
181 exec_prefix="$ac_optarg" ;;
183 -gas | --gas | --ga | --g)
184 # Obsolete; use --with-gas.
185 with_gas=yes ;;
187 -help | --help | --hel | --he)
188 # Omit some internal or obsolete options to make the list less imposing.
189 # This message is too long to be a string in the A/UX 3.1 sh.
190 cat << EOF
191 Usage: configure [options] [host]
192 Options: [defaults in brackets after descriptions]
193 Configuration:
194 --cache-file=FILE cache test results in FILE
195 --help print this message
196 --no-create do not create output files
197 --quiet, --silent do not print \`checking...' messages
198 --version print the version of autoconf that created configure
199 Directory and file names:
200 --prefix=PREFIX install architecture-independent files in PREFIX
201 [$ac_default_prefix]
202 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
203 [same as prefix]
204 --bindir=DIR user executables in DIR [EPREFIX/bin]
205 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
206 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
207 --datadir=DIR read-only architecture-independent data in DIR
208 [PREFIX/share]
209 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
210 --sharedstatedir=DIR modifiable architecture-independent data in DIR
211 [PREFIX/com]
212 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
213 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
214 --includedir=DIR C header files in DIR [PREFIX/include]
215 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
216 --infodir=DIR info documentation in DIR [PREFIX/info]
217 --mandir=DIR man documentation in DIR [PREFIX/man]
218 --srcdir=DIR find the sources in DIR [configure dir or ..]
219 --program-prefix=PREFIX prepend PREFIX to installed program names
220 --program-suffix=SUFFIX append SUFFIX to installed program names
221 --program-transform-name=PROGRAM
222 run sed PROGRAM on installed program names
224 cat << EOF
225 Host type:
226 --build=BUILD configure for building on BUILD [BUILD=HOST]
227 --host=HOST configure for HOST [guessed]
228 --target=TARGET configure for TARGET [TARGET=HOST]
229 Features and packages:
230 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
231 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
232 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
233 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
234 --x-includes=DIR X include files are in DIR
235 --x-libraries=DIR X library files are in DIR
237 if test -n "$ac_help"; then
238 echo "--enable and --with options recognized:$ac_help"
240 exit 0 ;;
242 -host | --host | --hos | --ho)
243 ac_prev=host ;;
244 -host=* | --host=* | --hos=* | --ho=*)
245 host="$ac_optarg" ;;
247 -includedir | --includedir | --includedi | --included | --include \
248 | --includ | --inclu | --incl | --inc)
249 ac_prev=includedir ;;
250 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
251 | --includ=* | --inclu=* | --incl=* | --inc=*)
252 includedir="$ac_optarg" ;;
254 -infodir | --infodir | --infodi | --infod | --info | --inf)
255 ac_prev=infodir ;;
256 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
257 infodir="$ac_optarg" ;;
259 -libdir | --libdir | --libdi | --libd)
260 ac_prev=libdir ;;
261 -libdir=* | --libdir=* | --libdi=* | --libd=*)
262 libdir="$ac_optarg" ;;
264 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
265 | --libexe | --libex | --libe)
266 ac_prev=libexecdir ;;
267 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
268 | --libexe=* | --libex=* | --libe=*)
269 libexecdir="$ac_optarg" ;;
271 -localstatedir | --localstatedir | --localstatedi | --localstated \
272 | --localstate | --localstat | --localsta | --localst \
273 | --locals | --local | --loca | --loc | --lo)
274 ac_prev=localstatedir ;;
275 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
276 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
277 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
278 localstatedir="$ac_optarg" ;;
280 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
281 ac_prev=mandir ;;
282 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
283 mandir="$ac_optarg" ;;
285 -nfp | --nfp | --nf)
286 # Obsolete; use --without-fp.
287 with_fp=no ;;
289 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
290 | --no-cr | --no-c)
291 no_create=yes ;;
293 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
294 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
295 no_recursion=yes ;;
297 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
298 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
299 | --oldin | --oldi | --old | --ol | --o)
300 ac_prev=oldincludedir ;;
301 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
302 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
303 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
304 oldincludedir="$ac_optarg" ;;
306 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
307 ac_prev=prefix ;;
308 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
309 prefix="$ac_optarg" ;;
311 -program-prefix | --program-prefix | --program-prefi | --program-pref \
312 | --program-pre | --program-pr | --program-p)
313 ac_prev=program_prefix ;;
314 -program-prefix=* | --program-prefix=* | --program-prefi=* \
315 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
316 program_prefix="$ac_optarg" ;;
318 -program-suffix | --program-suffix | --program-suffi | --program-suff \
319 | --program-suf | --program-su | --program-s)
320 ac_prev=program_suffix ;;
321 -program-suffix=* | --program-suffix=* | --program-suffi=* \
322 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
323 program_suffix="$ac_optarg" ;;
325 -program-transform-name | --program-transform-name \
326 | --program-transform-nam | --program-transform-na \
327 | --program-transform-n | --program-transform- \
328 | --program-transform | --program-transfor \
329 | --program-transfo | --program-transf \
330 | --program-trans | --program-tran \
331 | --progr-tra | --program-tr | --program-t)
332 ac_prev=program_transform_name ;;
333 -program-transform-name=* | --program-transform-name=* \
334 | --program-transform-nam=* | --program-transform-na=* \
335 | --program-transform-n=* | --program-transform-=* \
336 | --program-transform=* | --program-transfor=* \
337 | --program-transfo=* | --program-transf=* \
338 | --program-trans=* | --program-tran=* \
339 | --progr-tra=* | --program-tr=* | --program-t=*)
340 program_transform_name="$ac_optarg" ;;
342 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
343 | -silent | --silent | --silen | --sile | --sil)
344 silent=yes ;;
346 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
347 ac_prev=sbindir ;;
348 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
349 | --sbi=* | --sb=*)
350 sbindir="$ac_optarg" ;;
352 -sharedstatedir | --sharedstatedir | --sharedstatedi \
353 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
354 | --sharedst | --shareds | --shared | --share | --shar \
355 | --sha | --sh)
356 ac_prev=sharedstatedir ;;
357 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
358 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
359 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
360 | --sha=* | --sh=*)
361 sharedstatedir="$ac_optarg" ;;
363 -site | --site | --sit)
364 ac_prev=site ;;
365 -site=* | --site=* | --sit=*)
366 site="$ac_optarg" ;;
368 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
369 ac_prev=srcdir ;;
370 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
371 srcdir="$ac_optarg" ;;
373 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
374 | --syscon | --sysco | --sysc | --sys | --sy)
375 ac_prev=sysconfdir ;;
376 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
377 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
378 sysconfdir="$ac_optarg" ;;
380 -target | --target | --targe | --targ | --tar | --ta | --t)
381 ac_prev=target ;;
382 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
383 target="$ac_optarg" ;;
385 -v | -verbose | --verbose | --verbos | --verbo | --verb)
386 verbose=yes ;;
388 -version | --version | --versio | --versi | --vers)
389 echo "configure generated by autoconf version 2.12"
390 exit 0 ;;
392 -with-* | --with-*)
393 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
394 # Reject names that are not valid shell variable names.
395 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
396 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
398 ac_package=`echo $ac_package| sed 's/-/_/g'`
399 case "$ac_option" in
400 *=*) ;;
401 *) ac_optarg=yes ;;
402 esac
403 eval "with_${ac_package}='$ac_optarg'" ;;
405 -without-* | --without-*)
406 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
407 # Reject names that are not valid shell variable names.
408 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
409 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
411 ac_package=`echo $ac_package| sed 's/-/_/g'`
412 eval "with_${ac_package}=no" ;;
414 --x)
415 # Obsolete; use --with-x.
416 with_x=yes ;;
418 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
419 | --x-incl | --x-inc | --x-in | --x-i)
420 ac_prev=x_includes ;;
421 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
422 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
423 x_includes="$ac_optarg" ;;
425 -x-libraries | --x-libraries | --x-librarie | --x-librari \
426 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
427 ac_prev=x_libraries ;;
428 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
429 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
430 x_libraries="$ac_optarg" ;;
432 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
436 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
437 echo "configure: warning: $ac_option: invalid host type" 1>&2
439 if test "x$nonopt" != xNONE; then
440 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
442 nonopt="$ac_option"
445 esac
446 done
448 if test -n "$ac_prev"; then
449 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
452 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
454 # File descriptor usage:
455 # 0 standard input
456 # 1 file creation
457 # 2 errors and warnings
458 # 3 some systems may open it to /dev/tty
459 # 4 used on the Kubota Titan
460 # 6 checking for... messages and results
461 # 5 compiler messages saved in config.log
462 if test "$silent" = yes; then
463 exec 6>/dev/null
464 else
465 exec 6>&1
467 exec 5>./config.log
469 echo "\
470 This file contains any messages produced by compilers while
471 running configure, to aid debugging if configure makes a mistake.
472 " 1>&5
474 # Strip out --no-create and --no-recursion so they do not pile up.
475 # Also quote any args containing shell metacharacters.
476 ac_configure_args=
477 for ac_arg
479 case "$ac_arg" in
480 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
481 | --no-cr | --no-c) ;;
482 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
483 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
484 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
485 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
486 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
487 esac
488 done
490 # NLS nuisances.
491 # Only set these to C if already set. These must not be set unconditionally
492 # because not all systems understand e.g. LANG=C (notably SCO).
493 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
494 # Non-C LC_CTYPE values break the ctype check.
495 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
496 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
497 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
498 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
500 # confdefs.h avoids OS command line length limits that DEFS can exceed.
501 rm -rf conftest* confdefs.h
502 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
503 echo > confdefs.h
505 # A filename unique to this package, relative to the directory that
506 # configure is in, which we can look for to find out if srcdir is correct.
507 ac_unique_file=src/WindowMaker.h
509 # Find the source files, if location was not specified.
510 if test -z "$srcdir"; then
511 ac_srcdir_defaulted=yes
512 # Try the directory containing this script, then its parent.
513 ac_prog=$0
514 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
515 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
516 srcdir=$ac_confdir
517 if test ! -r $srcdir/$ac_unique_file; then
518 srcdir=..
520 else
521 ac_srcdir_defaulted=no
523 if test ! -r $srcdir/$ac_unique_file; then
524 if test "$ac_srcdir_defaulted" = yes; then
525 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
526 else
527 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
530 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
532 # Prefer explicitly selected file to automatically selected ones.
533 if test -z "$CONFIG_SITE"; then
534 if test "x$prefix" != xNONE; then
535 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
536 else
537 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
540 for ac_site_file in $CONFIG_SITE; do
541 if test -r "$ac_site_file"; then
542 echo "loading site script $ac_site_file"
543 . "$ac_site_file"
545 done
547 if test -r "$cache_file"; then
548 echo "loading cache $cache_file"
549 . $cache_file
550 else
551 echo "creating cache $cache_file"
552 > $cache_file
555 ac_ext=c
556 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
557 ac_cpp='$CPP $CPPFLAGS'
558 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
559 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
560 cross_compiling=$ac_cv_prog_cc_cross
562 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
563 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
564 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
565 ac_n= ac_c='
566 ' ac_t=' '
567 else
568 ac_n=-n ac_c= ac_t=
570 else
571 ac_n= ac_c='\c' ac_t=
576 ac_aux_dir=
577 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
578 if 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
582 elif test -f $ac_dir/install.sh; then
583 ac_aux_dir=$ac_dir
584 ac_install_sh="$ac_aux_dir/install.sh -c"
585 break
587 done
588 if test -z "$ac_aux_dir"; then
589 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
591 ac_config_guess=$ac_aux_dir/config.guess
592 ac_config_sub=$ac_aux_dir/config.sub
593 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
595 # Find a good install program. We prefer a C program (faster),
596 # so one script is as good as another. But avoid the broken or
597 # incompatible versions:
598 # SysV /etc/install, /usr/sbin/install
599 # SunOS /usr/etc/install
600 # IRIX /sbin/install
601 # AIX /bin/install
602 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
603 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
604 # ./install, which can be erroneously created by make from ./install.sh.
605 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
606 echo "configure:607: checking for a BSD compatible install" >&5
607 if test -z "$INSTALL"; then
608 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
609 echo $ac_n "(cached) $ac_c" 1>&6
610 else
611 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
612 for ac_dir in $PATH; do
613 # Account for people who put trailing slashes in PATH elements.
614 case "$ac_dir/" in
615 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
617 # OSF1 and SCO ODT 3.0 have their own names for install.
618 for ac_prog in ginstall installbsd scoinst install; do
619 if test -f $ac_dir/$ac_prog; then
620 if test $ac_prog = install &&
621 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
622 # AIX install. It has an incompatible calling convention.
623 # OSF/1 installbsd also uses dspmsg, but is usable.
625 else
626 ac_cv_path_install="$ac_dir/$ac_prog -c"
627 break 2
630 done
632 esac
633 done
634 IFS="$ac_save_IFS"
637 if test "${ac_cv_path_install+set}" = set; then
638 INSTALL="$ac_cv_path_install"
639 else
640 # As a last resort, use the slow shell script. We don't cache a
641 # path for INSTALL within a source directory, because that will
642 # break other packages using the cache if that directory is
643 # removed, or if the path is relative.
644 INSTALL="$ac_install_sh"
647 echo "$ac_t""$INSTALL" 1>&6
649 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
650 # It thinks the first close brace ends the variable substitution.
651 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
653 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
656 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
658 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
659 echo "configure:660: checking whether build environment is sane" >&5
660 # Just in case
661 sleep 1
662 echo timestamp > conftestfile
663 # Do `set' in a subshell so we don't clobber the current shell's
664 # arguments. Must try -L first in case configure is actually a
665 # symlink; some systems play weird games with the mod time of symlinks
666 # (eg FreeBSD returns the mod time of the symlink's containing
667 # directory).
668 if (
669 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
670 if test "$*" = "X"; then
671 # -L didn't work.
672 set X `ls -t $srcdir/configure conftestfile`
674 if test "$*" != "X $srcdir/configure conftestfile" \
675 && test "$*" != "X conftestfile $srcdir/configure"; then
677 # If neither matched, then we have a broken ls. This can happen
678 # if, for instance, CONFIG_SHELL is bash and it inherits a
679 # broken ls alias from the environment. This has actually
680 # happened. Such a system could not be considered "sane".
681 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
682 alias in your environment" 1>&2; exit 1; }
685 test "$2" = conftestfile
687 then
688 # Ok.
690 else
691 { echo "configure: error: newly created file is older than distributed files!
692 Check your system clock" 1>&2; exit 1; }
694 rm -f conftest*
695 echo "$ac_t""yes" 1>&6
696 if test "$program_transform_name" = s,x,x,; then
697 program_transform_name=
698 else
699 # Double any \ or $. echo might interpret backslashes.
700 cat <<\EOF_SED > conftestsed
701 s,\\,\\\\,g; s,\$,$$,g
702 EOF_SED
703 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
704 rm -f conftestsed
706 test "$program_prefix" != NONE &&
707 program_transform_name="s,^,${program_prefix},; $program_transform_name"
708 # Use a double $ so make ignores it.
709 test "$program_suffix" != NONE &&
710 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
712 # sed with no file args requires a program.
713 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
715 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
716 echo "configure:717: checking whether ${MAKE-make} sets \${MAKE}" >&5
717 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
718 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
719 echo $ac_n "(cached) $ac_c" 1>&6
720 else
721 cat > conftestmake <<\EOF
722 all:
723 @echo 'ac_maketemp="${MAKE}"'
725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
726 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
727 if test -n "$ac_maketemp"; then
728 eval ac_cv_prog_make_${ac_make}_set=yes
729 else
730 eval ac_cv_prog_make_${ac_make}_set=no
732 rm -f conftestmake
734 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
735 echo "$ac_t""yes" 1>&6
736 SET_MAKE=
737 else
738 echo "$ac_t""no" 1>&6
739 SET_MAKE="MAKE=${MAKE-make}"
743 PACKAGE=WindowMaker
745 VERSION=0.50.2
747 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
748 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
750 cat >> confdefs.h <<EOF
751 #define PACKAGE "$PACKAGE"
754 cat >> confdefs.h <<EOF
755 #define VERSION "$VERSION"
760 missing_dir=`cd $ac_aux_dir && pwd`
761 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
762 echo "configure:763: checking for working aclocal" >&5
763 # Run test in a subshell; some versions of sh will print an error if
764 # an executable is not found, even if stderr is redirected.
765 # Redirect stdin to placate older versions of autoconf. Sigh.
766 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
767 ACLOCAL=aclocal
768 echo "$ac_t""found" 1>&6
769 else
770 ACLOCAL="$missing_dir/missing aclocal"
771 echo "$ac_t""missing" 1>&6
774 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
775 echo "configure:776: checking for working autoconf" >&5
776 # Run test in a subshell; some versions of sh will print an error if
777 # an executable is not found, even if stderr is redirected.
778 # Redirect stdin to placate older versions of autoconf. Sigh.
779 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
780 AUTOCONF=autoconf
781 echo "$ac_t""found" 1>&6
782 else
783 AUTOCONF="$missing_dir/missing autoconf"
784 echo "$ac_t""missing" 1>&6
787 echo $ac_n "checking for working automake""... $ac_c" 1>&6
788 echo "configure:789: checking for working automake" >&5
789 # Run test in a subshell; some versions of sh will print an error if
790 # an executable is not found, even if stderr is redirected.
791 # Redirect stdin to placate older versions of autoconf. Sigh.
792 if (automake --version) < /dev/null > /dev/null 2>&1; then
793 AUTOMAKE=automake
794 echo "$ac_t""found" 1>&6
795 else
796 AUTOMAKE="$missing_dir/missing automake"
797 echo "$ac_t""missing" 1>&6
800 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
801 echo "configure:802: checking for working autoheader" >&5
802 # Run test in a subshell; some versions of sh will print an error if
803 # an executable is not found, even if stderr is redirected.
804 # Redirect stdin to placate older versions of autoconf. Sigh.
805 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
806 AUTOHEADER=autoheader
807 echo "$ac_t""found" 1>&6
808 else
809 AUTOHEADER="$missing_dir/missing autoheader"
810 echo "$ac_t""missing" 1>&6
813 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
814 echo "configure:815: checking for working makeinfo" >&5
815 # Run test in a subshell; some versions of sh will print an error if
816 # an executable is not found, even if stderr is redirected.
817 # Redirect stdin to placate older versions of autoconf. Sigh.
818 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
819 MAKEINFO=makeinfo
820 echo "$ac_t""found" 1>&6
821 else
822 MAKEINFO="$missing_dir/missing makeinfo"
823 echo "$ac_t""missing" 1>&6
828 # Check whether --enable-shared or --disable-shared was given.
829 if test "${enable_shared+set}" = set; then
830 enableval="$enable_shared"
831 p=${PACKAGE-default}
832 case "$enableval" in
833 yes) enable_shared=yes ;;
834 no) enable_shared=no ;;
836 enable_shared=no
837 # Look at the argument we got. We use all the common list separators.
838 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
839 for pkg in $enableval; do
840 if test "X$pkg" = "X$p"; then
841 enable_shared=yes
843 done
844 IFS="$ac_save_ifs"
846 esac
847 else
848 enable_shared=yes
851 # Check whether --enable-static or --disable-static was given.
852 if test "${enable_static+set}" = set; then
853 enableval="$enable_static"
854 p=${PACKAGE-default}
855 case "$enableval" in
856 yes) enable_static=yes ;;
857 no) enable_static=no ;;
859 enable_static=no
860 # Look at the argument we got. We use all the common list separators.
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
862 for pkg in $enableval; do
863 if test "X$pkg" = "X$p"; then
864 enable_static=yes
866 done
867 IFS="$ac_save_ifs"
869 esac
870 else
871 enable_static=yes
875 # Make sure we can run config.sub.
876 if $ac_config_sub sun4 >/dev/null 2>&1; then :
877 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
880 echo $ac_n "checking host system type""... $ac_c" 1>&6
881 echo "configure:882: checking host system type" >&5
883 host_alias=$host
884 case "$host_alias" in
885 NONE)
886 case $nonopt in
887 NONE)
888 if host_alias=`$ac_config_guess`; then :
889 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
890 fi ;;
891 *) host_alias=$nonopt ;;
892 esac ;;
893 esac
895 host=`$ac_config_sub $host_alias`
896 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
897 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
898 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
899 echo "$ac_t""$host" 1>&6
901 # Extract the first word of "ranlib", so it can be a program name with args.
902 set dummy ranlib; ac_word=$2
903 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
904 echo "configure:905: checking for $ac_word" >&5
905 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
906 echo $ac_n "(cached) $ac_c" 1>&6
907 else
908 if test -n "$RANLIB"; then
909 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
910 else
911 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
912 for ac_dir in $PATH; do
913 test -z "$ac_dir" && ac_dir=.
914 if test -f $ac_dir/$ac_word; then
915 ac_cv_prog_RANLIB="ranlib"
916 break
918 done
919 IFS="$ac_save_ifs"
920 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
923 RANLIB="$ac_cv_prog_RANLIB"
924 if test -n "$RANLIB"; then
925 echo "$ac_t""$RANLIB" 1>&6
926 else
927 echo "$ac_t""no" 1>&6
930 # Extract the first word of "gcc", so it can be a program name with args.
931 set dummy gcc; ac_word=$2
932 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
933 echo "configure:934: checking for $ac_word" >&5
934 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
935 echo $ac_n "(cached) $ac_c" 1>&6
936 else
937 if test -n "$CC"; then
938 ac_cv_prog_CC="$CC" # Let the user override the test.
939 else
940 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
941 for ac_dir in $PATH; do
942 test -z "$ac_dir" && ac_dir=.
943 if test -f $ac_dir/$ac_word; then
944 ac_cv_prog_CC="gcc"
945 break
947 done
948 IFS="$ac_save_ifs"
951 CC="$ac_cv_prog_CC"
952 if test -n "$CC"; then
953 echo "$ac_t""$CC" 1>&6
954 else
955 echo "$ac_t""no" 1>&6
958 if test -z "$CC"; then
959 # Extract the first word of "cc", so it can be a program name with args.
960 set dummy cc; ac_word=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 echo "configure:963: checking for $ac_word" >&5
963 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965 else
966 if test -n "$CC"; then
967 ac_cv_prog_CC="$CC" # Let the user override the test.
968 else
969 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
970 ac_prog_rejected=no
971 for ac_dir in $PATH; do
972 test -z "$ac_dir" && ac_dir=.
973 if test -f $ac_dir/$ac_word; then
974 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
975 ac_prog_rejected=yes
976 continue
978 ac_cv_prog_CC="cc"
979 break
981 done
982 IFS="$ac_save_ifs"
983 if test $ac_prog_rejected = yes; then
984 # We found a bogon in the path, so make sure we never use it.
985 set dummy $ac_cv_prog_CC
986 shift
987 if test $# -gt 0; then
988 # We chose a different compiler from the bogus one.
989 # However, it has the same basename, so the bogon will be chosen
990 # first if we set CC to just the basename; use the full file name.
991 shift
992 set dummy "$ac_dir/$ac_word" "$@"
993 shift
994 ac_cv_prog_CC="$@"
999 CC="$ac_cv_prog_CC"
1000 if test -n "$CC"; then
1001 echo "$ac_t""$CC" 1>&6
1002 else
1003 echo "$ac_t""no" 1>&6
1006 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1009 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1010 echo "configure:1011: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1012 ac_ext=c
1013 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1014 ac_cpp='$CPP $CPPFLAGS'
1015 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1016 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1017 cross_compiling=$ac_cv_prog_cc_cross
1019 cat > conftest.$ac_ext <<EOF
1020 #line 1021 "configure"
1021 #include "confdefs.h"
1022 main(){return(0);}
1024 if { (eval echo configure:1025: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1025 ac_cv_prog_cc_works=yes
1026 # If we can't run a trivial program, we are probably using a cross compiler.
1027 if (./conftest; exit) 2>/dev/null; then
1028 ac_cv_prog_cc_cross=no
1029 else
1030 ac_cv_prog_cc_cross=yes
1032 else
1033 echo "configure: failed program was:" >&5
1034 cat conftest.$ac_ext >&5
1035 ac_cv_prog_cc_works=no
1037 rm -fr conftest*
1039 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1040 if test $ac_cv_prog_cc_works = no; then
1041 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1043 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1044 echo "configure:1045: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1045 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1046 cross_compiling=$ac_cv_prog_cc_cross
1048 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1049 echo "configure:1050: checking whether we are using GNU C" >&5
1050 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1051 echo $ac_n "(cached) $ac_c" 1>&6
1052 else
1053 cat > conftest.c <<EOF
1054 #ifdef __GNUC__
1055 yes;
1056 #endif
1058 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1059: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1059 ac_cv_prog_gcc=yes
1060 else
1061 ac_cv_prog_gcc=no
1065 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1067 if test $ac_cv_prog_gcc = yes; then
1068 GCC=yes
1069 ac_test_CFLAGS="${CFLAGS+set}"
1070 ac_save_CFLAGS="$CFLAGS"
1071 CFLAGS=
1072 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1073 echo "configure:1074: checking whether ${CC-cc} accepts -g" >&5
1074 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1075 echo $ac_n "(cached) $ac_c" 1>&6
1076 else
1077 echo 'void f(){}' > conftest.c
1078 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1079 ac_cv_prog_cc_g=yes
1080 else
1081 ac_cv_prog_cc_g=no
1083 rm -f conftest*
1087 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1088 if test "$ac_test_CFLAGS" = set; then
1089 CFLAGS="$ac_save_CFLAGS"
1090 elif test $ac_cv_prog_cc_g = yes; then
1091 CFLAGS="-g -O2"
1092 else
1093 CFLAGS="-O2"
1095 else
1096 GCC=
1097 test "${CFLAGS+set}" = set || CFLAGS="-g"
1100 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1101 if test "${with_gnu_ld+set}" = set; then
1102 withval="$with_gnu_ld"
1103 test "$withval" = no || with_gnu_ld=yes
1104 else
1105 with_gnu_ld=no
1109 ac_prog=ld
1110 if test "$ac_cv_prog_gcc" = yes; then
1111 # Check if gcc -print-prog-name=ld gives a path.
1112 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1113 echo "configure:1114: checking for ld used by GCC" >&5
1114 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1115 case "$ac_prog" in
1116 # Accept absolute paths.
1117 /* | A-Za-z:\\*)
1118 test -z "$LD" && LD="$ac_prog"
1121 # If it fails, then pretend we aren't using GCC.
1122 ac_prog=ld
1125 # If it is relative, then search for the first ld in PATH.
1126 with_gnu_ld=unknown
1128 esac
1129 elif test "$with_gnu_ld" = yes; then
1130 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1131 echo "configure:1132: checking for GNU ld" >&5
1132 else
1133 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1134 echo "configure:1135: checking for non-GNU ld" >&5
1136 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1137 echo $ac_n "(cached) $ac_c" 1>&6
1138 else
1139 if test -z "$LD"; then
1140 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1141 for ac_dir in $PATH; do
1142 test -z "$ac_dir" && ac_dir=.
1143 if test -f "$ac_dir/$ac_prog"; then
1144 ac_cv_path_LD="$ac_dir/$ac_prog"
1145 # Check to see if the program is GNU ld. I'd rather use --version,
1146 # but apparently some GNU ld's only accept -v.
1147 # Break only if it was the GNU/non-GNU ld that we prefer.
1148 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1149 test "$with_gnu_ld" != no && break
1150 else
1151 test "$with_gnu_ld" != yes && break
1154 done
1155 IFS="$ac_save_ifs"
1156 else
1157 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1161 LD="$ac_cv_path_LD"
1162 if test -n "$LD"; then
1163 echo "$ac_t""$LD" 1>&6
1164 else
1165 echo "$ac_t""no" 1>&6
1167 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1169 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1170 echo "configure:1171: checking if the linker ($LD) is GNU ld" >&5
1171 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1172 echo $ac_n "(cached) $ac_c" 1>&6
1173 else
1174 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1175 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1176 ac_cv_prog_gnu_ld=yes
1177 else
1178 ac_cv_prog_gnu_ld=no
1182 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1185 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1186 echo "configure:1187: checking for BSD-compatible nm" >&5
1187 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1188 echo $ac_n "(cached) $ac_c" 1>&6
1189 else
1190 case "$NM" in
1191 /* | A-Za-z:\\*)
1192 ac_cv_path_NM="$NM" # Let the user override the test with a path.
1195 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1196 for ac_dir in /usr/ucb /usr/ccs/bin $PATH /bin; do
1197 test -z "$ac_dir" && ac_dir=.
1198 if test -f $ac_dir/nm; then
1199 # Check to see if the nm accepts a BSD-compat flag.
1200 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1201 # nm: unknown option "B" ignored
1202 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1203 ac_cv_path_NM="$ac_dir/nm -B"
1204 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1205 ac_cv_path_NM="$ac_dir/nm -p"
1206 else
1207 ac_cv_path_NM="$ac_dir/nm"
1209 break
1211 done
1212 IFS="$ac_save_ifs"
1213 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1215 esac
1218 NM="$ac_cv_path_NM"
1219 echo "$ac_t""$NM" 1>&6
1222 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1223 echo "configure:1224: checking whether ln -s works" >&5
1224 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1225 echo $ac_n "(cached) $ac_c" 1>&6
1226 else
1227 rm -f conftestdata
1228 if ln -s X conftestdata 2>/dev/null
1229 then
1230 rm -f conftestdata
1231 ac_cv_prog_LN_S="ln -s"
1232 else
1233 ac_cv_prog_LN_S=ln
1236 LN_S="$ac_cv_prog_LN_S"
1237 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1238 echo "$ac_t""yes" 1>&6
1239 else
1240 echo "$ac_t""no" 1>&6
1243 # Always use our own libtool.
1244 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1246 # Check for any special flags to pass to ltconfig.
1247 libtool_flags=
1248 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1249 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1250 test "$silent" = yes && libtool_flags="$libtool_flags --silent"
1251 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1252 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1254 # Some flags need to be propagated to the compiler or linker for good
1255 # libtool support.
1256 case "$host" in
1257 *-*-irix6*)
1258 # Find out which ABI we are using.
1259 echo '#line 1260 "configure"' > conftest.$ac_ext
1260 if { (eval echo configure:1261: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1261 case "`/usr/bin/file conftest.o`" in
1262 *32-bit*)
1263 LD="${LD-ld} -32"
1265 *N32*)
1266 LD="${LD-ld} -n32"
1268 *64-bit*)
1269 LD="${LD-ld} -64"
1271 esac
1273 rm -rf conftest*
1276 *-*-sco3.2v5*)
1277 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1278 CFLAGS="$CFLAGS -belf"
1280 esac
1282 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1283 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1284 LD="$LD" NM="$NM" RANLIB="$RANLIB" LN_S="$LN_S" \
1285 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig \
1286 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1287 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1290 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1291 # Turn around -rpath problem with libtool 1.0c
1292 # This define should be improbable enough to not conflict with anything
1293 case ${host} in
1294 *-pc-linux-gnu)
1295 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1296 sed < libtool > libtool-2 \
1297 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1298 mv libtool-2 libtool
1299 chmod 755 libtool
1301 esac
1305 subdirs="libPropList"
1315 # Make sure we can run config.sub.
1316 if $ac_config_sub sun4 >/dev/null 2>&1; then :
1317 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1320 echo $ac_n "checking host system type""... $ac_c" 1>&6
1321 echo "configure:1322: checking host system type" >&5
1323 host_alias=$host
1324 case "$host_alias" in
1325 NONE)
1326 case $nonopt in
1327 NONE)
1328 if host_alias=`$ac_config_guess`; then :
1329 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1330 fi ;;
1331 *) host_alias=$nonopt ;;
1332 esac ;;
1333 esac
1335 host=`$ac_config_sub $host_alias`
1336 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1337 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1338 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1339 echo "$ac_t""$host" 1>&6
1343 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1344 echo "configure:1345: checking for POSIXized ISC" >&5
1345 if test -d /etc/conf/kconfig.d &&
1346 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1347 then
1348 echo "$ac_t""yes" 1>&6
1349 ISC=yes # If later tests want to check for ISC.
1350 cat >> confdefs.h <<\EOF
1351 #define _POSIX_SOURCE 1
1354 if test "$GCC" = yes; then
1355 CC="$CC -posix"
1356 else
1357 CC="$CC -Xp"
1359 else
1360 echo "$ac_t""no" 1>&6
1361 ISC=
1364 # Extract the first word of "gcc", so it can be a program name with args.
1365 set dummy gcc; ac_word=$2
1366 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1367 echo "configure:1368: checking for $ac_word" >&5
1368 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1369 echo $ac_n "(cached) $ac_c" 1>&6
1370 else
1371 if test -n "$CC"; then
1372 ac_cv_prog_CC="$CC" # Let the user override the test.
1373 else
1374 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1375 for ac_dir in $PATH; do
1376 test -z "$ac_dir" && ac_dir=.
1377 if test -f $ac_dir/$ac_word; then
1378 ac_cv_prog_CC="gcc"
1379 break
1381 done
1382 IFS="$ac_save_ifs"
1385 CC="$ac_cv_prog_CC"
1386 if test -n "$CC"; then
1387 echo "$ac_t""$CC" 1>&6
1388 else
1389 echo "$ac_t""no" 1>&6
1392 if test -z "$CC"; then
1393 # Extract the first word of "cc", so it can be a program name with args.
1394 set dummy cc; ac_word=$2
1395 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1396 echo "configure:1397: checking for $ac_word" >&5
1397 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1398 echo $ac_n "(cached) $ac_c" 1>&6
1399 else
1400 if test -n "$CC"; then
1401 ac_cv_prog_CC="$CC" # Let the user override the test.
1402 else
1403 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1404 ac_prog_rejected=no
1405 for ac_dir in $PATH; do
1406 test -z "$ac_dir" && ac_dir=.
1407 if test -f $ac_dir/$ac_word; then
1408 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1409 ac_prog_rejected=yes
1410 continue
1412 ac_cv_prog_CC="cc"
1413 break
1415 done
1416 IFS="$ac_save_ifs"
1417 if test $ac_prog_rejected = yes; then
1418 # We found a bogon in the path, so make sure we never use it.
1419 set dummy $ac_cv_prog_CC
1420 shift
1421 if test $# -gt 0; then
1422 # We chose a different compiler from the bogus one.
1423 # However, it has the same basename, so the bogon will be chosen
1424 # first if we set CC to just the basename; use the full file name.
1425 shift
1426 set dummy "$ac_dir/$ac_word" "$@"
1427 shift
1428 ac_cv_prog_CC="$@"
1433 CC="$ac_cv_prog_CC"
1434 if test -n "$CC"; then
1435 echo "$ac_t""$CC" 1>&6
1436 else
1437 echo "$ac_t""no" 1>&6
1440 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1443 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1444 echo "configure:1445: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1446 ac_ext=c
1447 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1448 ac_cpp='$CPP $CPPFLAGS'
1449 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1450 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1451 cross_compiling=$ac_cv_prog_cc_cross
1453 cat > conftest.$ac_ext <<EOF
1454 #line 1455 "configure"
1455 #include "confdefs.h"
1456 main(){return(0);}
1458 if { (eval echo configure:1459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1459 ac_cv_prog_cc_works=yes
1460 # If we can't run a trivial program, we are probably using a cross compiler.
1461 if (./conftest; exit) 2>/dev/null; then
1462 ac_cv_prog_cc_cross=no
1463 else
1464 ac_cv_prog_cc_cross=yes
1466 else
1467 echo "configure: failed program was:" >&5
1468 cat conftest.$ac_ext >&5
1469 ac_cv_prog_cc_works=no
1471 rm -fr conftest*
1473 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1474 if test $ac_cv_prog_cc_works = no; then
1475 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1477 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1478 echo "configure:1479: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1479 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1480 cross_compiling=$ac_cv_prog_cc_cross
1482 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1483 echo "configure:1484: checking whether we are using GNU C" >&5
1484 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1485 echo $ac_n "(cached) $ac_c" 1>&6
1486 else
1487 cat > conftest.c <<EOF
1488 #ifdef __GNUC__
1489 yes;
1490 #endif
1492 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1493: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1493 ac_cv_prog_gcc=yes
1494 else
1495 ac_cv_prog_gcc=no
1499 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1501 if test $ac_cv_prog_gcc = yes; then
1502 GCC=yes
1503 ac_test_CFLAGS="${CFLAGS+set}"
1504 ac_save_CFLAGS="$CFLAGS"
1505 CFLAGS=
1506 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1507 echo "configure:1508: checking whether ${CC-cc} accepts -g" >&5
1508 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1509 echo $ac_n "(cached) $ac_c" 1>&6
1510 else
1511 echo 'void f(){}' > conftest.c
1512 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1513 ac_cv_prog_cc_g=yes
1514 else
1515 ac_cv_prog_cc_g=no
1517 rm -f conftest*
1521 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1522 if test "$ac_test_CFLAGS" = set; then
1523 CFLAGS="$ac_save_CFLAGS"
1524 elif test $ac_cv_prog_cc_g = yes; then
1525 CFLAGS="-g -O2"
1526 else
1527 CFLAGS="-O2"
1529 else
1530 GCC=
1531 test "${CFLAGS+set}" = set || CFLAGS="-g"
1534 #AC_PROG_RANLIB
1535 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1536 echo "configure:1537: checking whether ln -s works" >&5
1537 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1538 echo $ac_n "(cached) $ac_c" 1>&6
1539 else
1540 rm -f conftestdata
1541 if ln -s X conftestdata 2>/dev/null
1542 then
1543 rm -f conftestdata
1544 ac_cv_prog_LN_S="ln -s"
1545 else
1546 ac_cv_prog_LN_S=ln
1549 LN_S="$ac_cv_prog_LN_S"
1550 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1551 echo "$ac_t""yes" 1>&6
1552 else
1553 echo "$ac_t""no" 1>&6
1556 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1557 echo "configure:1558: checking how to run the C preprocessor" >&5
1558 # On Suns, sometimes $CPP names a directory.
1559 if test -n "$CPP" && test -d "$CPP"; then
1560 CPP=
1562 if test -z "$CPP"; then
1563 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1564 echo $ac_n "(cached) $ac_c" 1>&6
1565 else
1566 # This must be in double quotes, not single quotes, because CPP may get
1567 # substituted into the Makefile and "${CC-cc}" will confuse make.
1568 CPP="${CC-cc} -E"
1569 # On the NeXT, cc -E runs the code through the compiler's parser,
1570 # not just through cpp.
1571 cat > conftest.$ac_ext <<EOF
1572 #line 1573 "configure"
1573 #include "confdefs.h"
1574 #include <assert.h>
1575 Syntax Error
1577 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1578 { (eval echo configure:1579: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1579 ac_err=`grep -v '^ *+' conftest.out`
1580 if test -z "$ac_err"; then
1582 else
1583 echo "$ac_err" >&5
1584 echo "configure: failed program was:" >&5
1585 cat conftest.$ac_ext >&5
1586 rm -rf conftest*
1587 CPP="${CC-cc} -E -traditional-cpp"
1588 cat > conftest.$ac_ext <<EOF
1589 #line 1590 "configure"
1590 #include "confdefs.h"
1591 #include <assert.h>
1592 Syntax Error
1594 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1595 { (eval echo configure:1596: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1596 ac_err=`grep -v '^ *+' conftest.out`
1597 if test -z "$ac_err"; then
1599 else
1600 echo "$ac_err" >&5
1601 echo "configure: failed program was:" >&5
1602 cat conftest.$ac_ext >&5
1603 rm -rf conftest*
1604 CPP=/lib/cpp
1606 rm -f conftest*
1608 rm -f conftest*
1609 ac_cv_prog_CPP="$CPP"
1611 CPP="$ac_cv_prog_CPP"
1612 else
1613 ac_cv_prog_CPP="$CPP"
1615 echo "$ac_t""$CPP" 1>&6
1617 if test $ac_cv_prog_gcc = yes; then
1618 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1619 echo "configure:1620: checking whether ${CC-cc} needs -traditional" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 ac_pattern="Autoconf.*'x'"
1624 cat > conftest.$ac_ext <<EOF
1625 #line 1626 "configure"
1626 #include "confdefs.h"
1627 #include <sgtty.h>
1628 Autoconf TIOCGETP
1630 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1631 egrep "$ac_pattern" >/dev/null 2>&1; then
1632 rm -rf conftest*
1633 ac_cv_prog_gcc_traditional=yes
1634 else
1635 rm -rf conftest*
1636 ac_cv_prog_gcc_traditional=no
1638 rm -f conftest*
1641 if test $ac_cv_prog_gcc_traditional = no; then
1642 cat > conftest.$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1645 #include <termio.h>
1646 Autoconf TCGETA
1648 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1649 egrep "$ac_pattern" >/dev/null 2>&1; then
1650 rm -rf conftest*
1651 ac_cv_prog_gcc_traditional=yes
1653 rm -f conftest*
1658 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1659 if test $ac_cv_prog_gcc_traditional = yes; then
1660 CC="$CC -traditional"
1666 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1667 echo "configure:1668: checking return type of signal handlers" >&5
1668 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1669 echo $ac_n "(cached) $ac_c" 1>&6
1670 else
1671 cat > conftest.$ac_ext <<EOF
1672 #line 1673 "configure"
1673 #include "confdefs.h"
1674 #include <sys/types.h>
1675 #include <signal.h>
1676 #ifdef signal
1677 #undef signal
1678 #endif
1679 #ifdef __cplusplus
1680 extern "C" void (*signal (int, void (*)(int)))(int);
1681 #else
1682 void (*signal ()) ();
1683 #endif
1685 int main() {
1686 int i;
1687 ; return 0; }
1689 if { (eval echo configure:1690: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1690 rm -rf conftest*
1691 ac_cv_type_signal=void
1692 else
1693 echo "configure: failed program was:" >&5
1694 cat conftest.$ac_ext >&5
1695 rm -rf conftest*
1696 ac_cv_type_signal=int
1698 rm -f conftest*
1701 echo "$ac_t""$ac_cv_type_signal" 1>&6
1702 cat >> confdefs.h <<EOF
1703 #define RETSIGTYPE $ac_cv_type_signal
1707 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1708 echo "configure:1709: checking for vprintf" >&5
1709 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1710 echo $ac_n "(cached) $ac_c" 1>&6
1711 else
1712 cat > conftest.$ac_ext <<EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1715 /* System header to define __stub macros and hopefully few prototypes,
1716 which can conflict with char vprintf(); below. */
1717 #include <assert.h>
1718 /* Override any gcc2 internal prototype to avoid an error. */
1719 /* We use char because int might match the return type of a gcc2
1720 builtin and then its argument prototype would still apply. */
1721 char vprintf();
1723 int main() {
1725 /* The GNU C library defines this for functions which it implements
1726 to always fail with ENOSYS. Some functions are actually named
1727 something starting with __ and the normal name is an alias. */
1728 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1729 choke me
1730 #else
1731 vprintf();
1732 #endif
1734 ; return 0; }
1736 if { (eval echo configure:1737: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1737 rm -rf conftest*
1738 eval "ac_cv_func_vprintf=yes"
1739 else
1740 echo "configure: failed program was:" >&5
1741 cat conftest.$ac_ext >&5
1742 rm -rf conftest*
1743 eval "ac_cv_func_vprintf=no"
1745 rm -f conftest*
1748 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1749 echo "$ac_t""yes" 1>&6
1750 cat >> confdefs.h <<\EOF
1751 #define HAVE_VPRINTF 1
1754 else
1755 echo "$ac_t""no" 1>&6
1758 if test "$ac_cv_func_vprintf" != yes; then
1759 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1760 echo "configure:1761: checking for _doprnt" >&5
1761 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1762 echo $ac_n "(cached) $ac_c" 1>&6
1763 else
1764 cat > conftest.$ac_ext <<EOF
1765 #line 1766 "configure"
1766 #include "confdefs.h"
1767 /* System header to define __stub macros and hopefully few prototypes,
1768 which can conflict with char _doprnt(); below. */
1769 #include <assert.h>
1770 /* Override any gcc2 internal prototype to avoid an error. */
1771 /* We use char because int might match the return type of a gcc2
1772 builtin and then its argument prototype would still apply. */
1773 char _doprnt();
1775 int main() {
1777 /* The GNU C library defines this for functions which it implements
1778 to always fail with ENOSYS. Some functions are actually named
1779 something starting with __ and the normal name is an alias. */
1780 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1781 choke me
1782 #else
1783 _doprnt();
1784 #endif
1786 ; return 0; }
1788 if { (eval echo configure:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1789 rm -rf conftest*
1790 eval "ac_cv_func__doprnt=yes"
1791 else
1792 echo "configure: failed program was:" >&5
1793 cat conftest.$ac_ext >&5
1794 rm -rf conftest*
1795 eval "ac_cv_func__doprnt=no"
1797 rm -f conftest*
1800 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1801 echo "$ac_t""yes" 1>&6
1802 cat >> confdefs.h <<\EOF
1803 #define HAVE_DOPRNT 1
1806 else
1807 echo "$ac_t""no" 1>&6
1812 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1813 # for constant arguments. Useless!
1814 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1815 echo "configure:1816: checking for working alloca.h" >&5
1816 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1817 echo $ac_n "(cached) $ac_c" 1>&6
1818 else
1819 cat > conftest.$ac_ext <<EOF
1820 #line 1821 "configure"
1821 #include "confdefs.h"
1822 #include <alloca.h>
1823 int main() {
1824 char *p = alloca(2 * sizeof(int));
1825 ; return 0; }
1827 if { (eval echo configure:1828: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1828 rm -rf conftest*
1829 ac_cv_header_alloca_h=yes
1830 else
1831 echo "configure: failed program was:" >&5
1832 cat conftest.$ac_ext >&5
1833 rm -rf conftest*
1834 ac_cv_header_alloca_h=no
1836 rm -f conftest*
1839 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1840 if test $ac_cv_header_alloca_h = yes; then
1841 cat >> confdefs.h <<\EOF
1842 #define HAVE_ALLOCA_H 1
1847 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1848 echo "configure:1849: checking for alloca" >&5
1849 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1850 echo $ac_n "(cached) $ac_c" 1>&6
1851 else
1852 cat > conftest.$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1856 #ifdef __GNUC__
1857 # define alloca __builtin_alloca
1858 #else
1859 # if HAVE_ALLOCA_H
1860 # include <alloca.h>
1861 # else
1862 # ifdef _AIX
1863 #pragma alloca
1864 # else
1865 # ifndef alloca /* predefined by HP cc +Olibcalls */
1866 char *alloca ();
1867 # endif
1868 # endif
1869 # endif
1870 #endif
1872 int main() {
1873 char *p = (char *) alloca(1);
1874 ; return 0; }
1876 if { (eval echo configure:1877: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1877 rm -rf conftest*
1878 ac_cv_func_alloca_works=yes
1879 else
1880 echo "configure: failed program was:" >&5
1881 cat conftest.$ac_ext >&5
1882 rm -rf conftest*
1883 ac_cv_func_alloca_works=no
1885 rm -f conftest*
1888 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1889 if test $ac_cv_func_alloca_works = yes; then
1890 cat >> confdefs.h <<\EOF
1891 #define HAVE_ALLOCA 1
1896 if test $ac_cv_func_alloca_works = no; then
1897 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1898 # that cause trouble. Some versions do not even contain alloca or
1899 # contain a buggy version. If you still want to use their alloca,
1900 # use ar to extract alloca.o from them instead of compiling alloca.c.
1901 ALLOCA=alloca.o
1902 cat >> confdefs.h <<\EOF
1903 #define C_ALLOCA 1
1907 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1908 echo "configure:1909: checking whether alloca needs Cray hooks" >&5
1909 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1910 echo $ac_n "(cached) $ac_c" 1>&6
1911 else
1912 cat > conftest.$ac_ext <<EOF
1913 #line 1914 "configure"
1914 #include "confdefs.h"
1915 #if defined(CRAY) && ! defined(CRAY2)
1916 webecray
1917 #else
1918 wenotbecray
1919 #endif
1922 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1923 egrep "webecray" >/dev/null 2>&1; then
1924 rm -rf conftest*
1925 ac_cv_os_cray=yes
1926 else
1927 rm -rf conftest*
1928 ac_cv_os_cray=no
1930 rm -f conftest*
1934 echo "$ac_t""$ac_cv_os_cray" 1>&6
1935 if test $ac_cv_os_cray = yes; then
1936 for ac_func in _getb67 GETB67 getb67; do
1937 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1938 echo "configure:1939: checking for $ac_func" >&5
1939 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1940 echo $ac_n "(cached) $ac_c" 1>&6
1941 else
1942 cat > conftest.$ac_ext <<EOF
1943 #line 1944 "configure"
1944 #include "confdefs.h"
1945 /* System header to define __stub macros and hopefully few prototypes,
1946 which can conflict with char $ac_func(); below. */
1947 #include <assert.h>
1948 /* Override any gcc2 internal prototype to avoid an error. */
1949 /* We use char because int might match the return type of a gcc2
1950 builtin and then its argument prototype would still apply. */
1951 char $ac_func();
1953 int main() {
1955 /* The GNU C library defines this for functions which it implements
1956 to always fail with ENOSYS. Some functions are actually named
1957 something starting with __ and the normal name is an alias. */
1958 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1959 choke me
1960 #else
1961 $ac_func();
1962 #endif
1964 ; return 0; }
1966 if { (eval echo configure:1967: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1967 rm -rf conftest*
1968 eval "ac_cv_func_$ac_func=yes"
1969 else
1970 echo "configure: failed program was:" >&5
1971 cat conftest.$ac_ext >&5
1972 rm -rf conftest*
1973 eval "ac_cv_func_$ac_func=no"
1975 rm -f conftest*
1978 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1979 echo "$ac_t""yes" 1>&6
1980 cat >> confdefs.h <<EOF
1981 #define CRAY_STACKSEG_END $ac_func
1984 break
1985 else
1986 echo "$ac_t""no" 1>&6
1989 done
1992 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1993 echo "configure:1994: checking stack direction for C alloca" >&5
1994 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 if test "$cross_compiling" = yes; then
1998 ac_cv_c_stack_direction=0
1999 else
2000 cat > conftest.$ac_ext <<EOF
2001 #line 2002 "configure"
2002 #include "confdefs.h"
2003 find_stack_direction ()
2005 static char *addr = 0;
2006 auto char dummy;
2007 if (addr == 0)
2009 addr = &dummy;
2010 return find_stack_direction ();
2012 else
2013 return (&dummy > addr) ? 1 : -1;
2015 main ()
2017 exit (find_stack_direction() < 0);
2020 if { (eval echo configure:2021: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
2021 then
2022 ac_cv_c_stack_direction=1
2023 else
2024 echo "configure: failed program was:" >&5
2025 cat conftest.$ac_ext >&5
2026 rm -fr conftest*
2027 ac_cv_c_stack_direction=-1
2029 rm -fr conftest*
2034 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2035 cat >> confdefs.h <<EOF
2036 #define STACK_DIRECTION $ac_cv_c_stack_direction
2041 for ac_func in gethostname gettimeofday select poll strerror strncasecmp setpgid
2043 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2044 echo "configure:2045: checking for $ac_func" >&5
2045 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2046 echo $ac_n "(cached) $ac_c" 1>&6
2047 else
2048 cat > conftest.$ac_ext <<EOF
2049 #line 2050 "configure"
2050 #include "confdefs.h"
2051 /* System header to define __stub macros and hopefully few prototypes,
2052 which can conflict with char $ac_func(); below. */
2053 #include <assert.h>
2054 /* Override any gcc2 internal prototype to avoid an error. */
2055 /* We use char because int might match the return type of a gcc2
2056 builtin and then its argument prototype would still apply. */
2057 char $ac_func();
2059 int main() {
2061 /* The GNU C library defines this for functions which it implements
2062 to always fail with ENOSYS. Some functions are actually named
2063 something starting with __ and the normal name is an alias. */
2064 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2065 choke me
2066 #else
2067 $ac_func();
2068 #endif
2070 ; return 0; }
2072 if { (eval echo configure:2073: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2073 rm -rf conftest*
2074 eval "ac_cv_func_$ac_func=yes"
2075 else
2076 echo "configure: failed program was:" >&5
2077 cat conftest.$ac_ext >&5
2078 rm -rf conftest*
2079 eval "ac_cv_func_$ac_func=no"
2081 rm -f conftest*
2084 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2085 echo "$ac_t""yes" 1>&6
2086 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2087 cat >> confdefs.h <<EOF
2088 #define $ac_tr_func 1
2091 else
2092 echo "$ac_t""no" 1>&6
2094 done
2097 if test "$ac_cv_func_gettimeofday" != yes; then
2098 echo "The gettimeofday() system call is not available in your system"
2099 echo "but it is required by Window Maker. Sorry."
2100 exit 1
2103 if test "x$CPP_PATH" = x; then
2104 # Extract the first word of "cpp", so it can be a program name with args.
2105 set dummy cpp; ac_word=$2
2106 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2107 echo "configure:2108: checking for $ac_word" >&5
2108 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2109 echo $ac_n "(cached) $ac_c" 1>&6
2110 else
2111 case "$CPP_PATH" in
2113 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2116 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2117 for ac_dir in /lib /usr/bin /bin /usr/lib /usr/ccs/lib $PATH$ac_dummy; do
2118 test -z "$ac_dir" && ac_dir=.
2119 if test -f $ac_dir/$ac_word; then
2120 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2121 break
2123 done
2124 IFS="$ac_save_ifs"
2125 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2127 esac
2129 CPP_PATH="$ac_cv_path_CPP_PATH"
2130 if test -n "$CPP_PATH"; then
2131 echo "$ac_t""$CPP_PATH" 1>&6
2132 else
2133 echo "$ac_t""no" 1>&6
2138 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2139 if test "$GCC" = "yes"; then
2140 CPP_PATH="gcc -E -x c"
2141 else
2142 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2143 CPP_PATH="$CPP_PATH -B"
2144 else
2145 echo "cpp, the C preprocessor was not found in your system."
2146 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2147 exit
2151 cat >> confdefs.h <<EOF
2152 #define CPP_PATH "$CPP_PATH"
2161 INTLIBS=""
2164 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2165 echo "configure:2166: checking for gettext" >&5
2166 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2167 echo $ac_n "(cached) $ac_c" 1>&6
2168 else
2169 cat > conftest.$ac_ext <<EOF
2170 #line 2171 "configure"
2171 #include "confdefs.h"
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char gettext(); below. */
2174 #include <assert.h>
2175 /* Override any gcc2 internal prototype to avoid an error. */
2176 /* We use char because int might match the return type of a gcc2
2177 builtin and then its argument prototype would still apply. */
2178 char gettext();
2180 int main() {
2182 /* The GNU C library defines this for functions which it implements
2183 to always fail with ENOSYS. Some functions are actually named
2184 something starting with __ and the normal name is an alias. */
2185 #if defined (__stub_gettext) || defined (__stub___gettext)
2186 choke me
2187 #else
2188 gettext();
2189 #endif
2191 ; return 0; }
2193 if { (eval echo configure:2194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2194 rm -rf conftest*
2195 eval "ac_cv_func_gettext=yes"
2196 else
2197 echo "configure: failed program was:" >&5
2198 cat conftest.$ac_ext >&5
2199 rm -rf conftest*
2200 eval "ac_cv_func_gettext=no"
2202 rm -f conftest*
2205 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2206 echo "$ac_t""yes" 1>&6
2207 HAVEGETTEXT="yes"
2208 else
2209 echo "$ac_t""no" 1>&6
2210 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2211 echo "configure:2212: checking for gettext in -lintl" >&5
2212 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2213 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2214 echo $ac_n "(cached) $ac_c" 1>&6
2215 else
2216 ac_save_LIBS="$LIBS"
2217 LIBS="-lintl $LIBS"
2218 cat > conftest.$ac_ext <<EOF
2219 #line 2220 "configure"
2220 #include "confdefs.h"
2221 /* Override any gcc2 internal prototype to avoid an error. */
2222 /* We use char because int might match the return type of a gcc2
2223 builtin and then its argument prototype would still apply. */
2224 char gettext();
2226 int main() {
2227 gettext()
2228 ; return 0; }
2230 if { (eval echo configure:2231: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2231 rm -rf conftest*
2232 eval "ac_cv_lib_$ac_lib_var=yes"
2233 else
2234 echo "configure: failed program was:" >&5
2235 cat conftest.$ac_ext >&5
2236 rm -rf conftest*
2237 eval "ac_cv_lib_$ac_lib_var=no"
2239 rm -f conftest*
2240 LIBS="$ac_save_LIBS"
2243 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2244 echo "$ac_t""yes" 1>&6
2245 INTLIBS="-lintl" HAVEGETTEXT="yes"
2246 else
2247 echo "$ac_t""no" 1>&6
2248 INTLIBS=""
2254 # Extract the first word of "xgettext", so it can be a program name with args.
2255 set dummy xgettext; ac_word=$2
2256 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2257 echo "configure:2258: checking for $ac_word" >&5
2258 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2259 echo $ac_n "(cached) $ac_c" 1>&6
2260 else
2261 if test -n "$XGETTEXT"; then
2262 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2263 else
2264 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2265 for ac_dir in $PATH; do
2266 test -z "$ac_dir" && ac_dir=.
2267 if test -f $ac_dir/$ac_word; then
2268 ac_cv_prog_XGETTEXT="xgettext"
2269 break
2271 done
2272 IFS="$ac_save_ifs"
2275 XGETTEXT="$ac_cv_prog_XGETTEXT"
2276 if test -n "$XGETTEXT"; then
2277 echo "$ac_t""$XGETTEXT" 1>&6
2278 else
2279 echo "$ac_t""no" 1>&6
2283 if test "$XGETTEXT" != ""; then
2284 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2285 echo "xgettext isn't GNU version"
2286 XGETTEXT=""
2290 if test "$LINGUAS" != ""; then
2291 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2292 I18N="-DI18N"
2293 PO=""
2294 # if test "$LINGUAS" = ""; then
2295 # ling=` (cd src/po; /bin/ls *.po) `
2296 # for l in $ling; do
2297 # lcode=`basename $l .po`
2298 # LINGUAS="$LINGUAS $lcode"
2299 # done
2300 # fi
2301 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2302 else
2303 I18N=""
2304 LINGUAS=""
2305 PO=""
2306 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2308 else
2309 INTLIBS=""
2310 MOFILES=""
2311 WPMOFILES=""
2312 PO=""
2317 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2318 supported_wprefs_locales="pt hr fr ko ja cs"
2320 for lang in $LINGUAS; do
2321 ok=0
2322 for l in $supported_locales; do
2323 if test "$l" = "$lang"; then
2324 ok=1
2325 break
2327 done
2328 if test "$ok" = 1; then
2329 MOFILES="$MOFILES $lang.mo"
2330 else
2331 echo "Locale $lang is not supported."
2333 ok=0
2334 for l in $supported_wprefs_locales; do
2335 if test "$l" = "$lang"; then
2336 ok=1
2337 break
2339 done
2340 if test "$ok" = 1; then
2341 WPMOFILES="$WPMOFILES $lang.mo"
2343 done
2346 I18n=no
2347 # Check whether --enable-kanji or --disable-kanji was given.
2348 if test "${enable_kanji+set}" = set; then
2349 enableval="$enable_kanji"
2351 else
2352 enable_kanji=no
2356 if test "$enable_kanji" = yes; then
2357 I18N_MB="#define I18N_MB"
2358 case $host_os in
2359 freebsd*)
2360 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2361 echo "configure:2362: checking for setlocale in -lxpg4" >&5
2362 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2363 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2364 echo $ac_n "(cached) $ac_c" 1>&6
2365 else
2366 ac_save_LIBS="$LIBS"
2367 LIBS="-lxpg4 $LIBS"
2368 cat > conftest.$ac_ext <<EOF
2369 #line 2370 "configure"
2370 #include "confdefs.h"
2371 /* Override any gcc2 internal prototype to avoid an error. */
2372 /* We use char because int might match the return type of a gcc2
2373 builtin and then its argument prototype would still apply. */
2374 char setlocale();
2376 int main() {
2377 setlocale()
2378 ; return 0; }
2380 if { (eval echo configure:2381: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2381 rm -rf conftest*
2382 eval "ac_cv_lib_$ac_lib_var=yes"
2383 else
2384 echo "configure: failed program was:" >&5
2385 cat conftest.$ac_ext >&5
2386 rm -rf conftest*
2387 eval "ac_cv_lib_$ac_lib_var=no"
2389 rm -f conftest*
2390 LIBS="$ac_save_LIBS"
2393 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2394 echo "$ac_t""yes" 1>&6
2395 LIBS="$LIBS -lxpg4"
2396 else
2397 echo "$ac_t""no" 1>&6
2402 esac
2403 else
2404 I18N_MB="#undef I18N_MB"
2409 # Check whether --enable-modelock or --disable-modelock was given.
2410 if test "${enable_modelock+set}" = set; then
2411 enableval="$enable_modelock"
2412 X_CFLAGS="$X_CFLAGS -DXKB_MODELOCK"
2418 # Check whether --with-nlsdir or --without-nlsdir was given.
2419 if test "${with_nlsdir+set}" = set; then
2420 withval="$with_nlsdir"
2425 if test "x$NLSDIR" = "x"; then
2426 if test "x$with_nlsdir" != "x"; then
2427 NLSDIR=$with_nlsdir
2428 else
2429 NLSDIR='$(prefix)/lib/locale'
2444 # Check whether --enable-gnome or --disable-gnome was given.
2445 if test "${enable_gnome+set}" = set; then
2446 enableval="$enable_gnome"
2447 if test x$enableval = xyes; then
2448 cat >> confdefs.h <<\EOF
2449 #define GNOME_STUFF 1
2452 gnome_on=yes
2458 # Check whether --enable-kde or --disable-kde was given.
2459 if test "${enable_kde+set}" = set; then
2460 enableval="$enable_kde"
2461 if test x$enableval = xyes; then
2462 cat >> confdefs.h <<\EOF
2463 #define KWM_HINTS 1
2466 kde_on=yes
2472 LITE=
2473 # Check whether --enable-lite or --disable-lite was given.
2474 if test "${enable_lite+set}" = set; then
2475 enableval="$enable_lite"
2476 if test x$enableval = xyes; then
2477 LITE=-DLITE
2485 # If we find X, set shell vars x_includes and x_libraries to the
2486 # paths, otherwise set no_x=yes.
2487 # Uses ac_ vars as temps to allow command line to override cache and checks.
2488 # --without-x overrides everything else, but does not touch the cache.
2489 echo $ac_n "checking for X""... $ac_c" 1>&6
2490 echo "configure:2491: checking for X" >&5
2492 # Check whether --with-x or --without-x was given.
2493 if test "${with_x+set}" = set; then
2494 withval="$with_x"
2498 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2499 if test "x$with_x" = xno; then
2500 # The user explicitly disabled X.
2501 have_x=disabled
2502 else
2503 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2504 # Both variables are already set.
2505 have_x=yes
2506 else
2507 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2508 echo $ac_n "(cached) $ac_c" 1>&6
2509 else
2510 # One or both of the vars are not set, and there is no cached value.
2511 ac_x_includes=NO ac_x_libraries=NO
2512 rm -fr conftestdir
2513 if mkdir conftestdir; then
2514 cd conftestdir
2515 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2516 cat > Imakefile <<'EOF'
2517 acfindx:
2518 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2520 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2521 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2522 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2523 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2524 for ac_extension in a so sl; do
2525 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2526 test -f $ac_im_libdir/libX11.$ac_extension; then
2527 ac_im_usrlibdir=$ac_im_libdir; break
2529 done
2530 # Screen out bogus values from the imake configuration. They are
2531 # bogus both because they are the default anyway, and because
2532 # using them would break gcc on systems where it needs fixed includes.
2533 case "$ac_im_incroot" in
2534 /usr/include) ;;
2535 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2536 esac
2537 case "$ac_im_usrlibdir" in
2538 /usr/lib | /lib) ;;
2539 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2540 esac
2542 cd ..
2543 rm -fr conftestdir
2546 if test "$ac_x_includes" = NO; then
2547 # Guess where to find include files, by looking for this one X11 .h file.
2548 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2550 # First, try using that file with no special directory specified.
2551 cat > conftest.$ac_ext <<EOF
2552 #line 2553 "configure"
2553 #include "confdefs.h"
2554 #include <$x_direct_test_include>
2556 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2557 { (eval echo configure:2558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2558 ac_err=`grep -v '^ *+' conftest.out`
2559 if test -z "$ac_err"; then
2560 rm -rf conftest*
2561 # We can compile using X headers with no special include directory.
2562 ac_x_includes=
2563 else
2564 echo "$ac_err" >&5
2565 echo "configure: failed program was:" >&5
2566 cat conftest.$ac_ext >&5
2567 rm -rf conftest*
2568 # Look for the header file in a standard set of common directories.
2569 # Check X11 before X11Rn because it is often a symlink to the current release.
2570 for ac_dir in \
2571 /usr/X11/include \
2572 /usr/X11R6/include \
2573 /usr/X11R5/include \
2574 /usr/X11R4/include \
2576 /usr/include/X11 \
2577 /usr/include/X11R6 \
2578 /usr/include/X11R5 \
2579 /usr/include/X11R4 \
2581 /usr/local/X11/include \
2582 /usr/local/X11R6/include \
2583 /usr/local/X11R5/include \
2584 /usr/local/X11R4/include \
2586 /usr/local/include/X11 \
2587 /usr/local/include/X11R6 \
2588 /usr/local/include/X11R5 \
2589 /usr/local/include/X11R4 \
2591 /usr/X386/include \
2592 /usr/x386/include \
2593 /usr/XFree86/include/X11 \
2595 /usr/include \
2596 /usr/local/include \
2597 /usr/unsupported/include \
2598 /usr/athena/include \
2599 /usr/local/x11r5/include \
2600 /usr/lpp/Xamples/include \
2602 /usr/openwin/include \
2603 /usr/openwin/share/include \
2606 if test -r "$ac_dir/$x_direct_test_include"; then
2607 ac_x_includes=$ac_dir
2608 break
2610 done
2612 rm -f conftest*
2613 fi # $ac_x_includes = NO
2615 if test "$ac_x_libraries" = NO; then
2616 # Check for the libraries.
2618 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2619 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2621 # See if we find them without any special options.
2622 # Don't add to $LIBS permanently.
2623 ac_save_LIBS="$LIBS"
2624 LIBS="-l$x_direct_test_library $LIBS"
2625 cat > conftest.$ac_ext <<EOF
2626 #line 2627 "configure"
2627 #include "confdefs.h"
2629 int main() {
2630 ${x_direct_test_function}()
2631 ; return 0; }
2633 if { (eval echo configure:2634: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2634 rm -rf conftest*
2635 LIBS="$ac_save_LIBS"
2636 # We can link X programs with no special library path.
2637 ac_x_libraries=
2638 else
2639 echo "configure: failed program was:" >&5
2640 cat conftest.$ac_ext >&5
2641 rm -rf conftest*
2642 LIBS="$ac_save_LIBS"
2643 # First see if replacing the include by lib works.
2644 # Check X11 before X11Rn because it is often a symlink to the current release.
2645 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2646 /usr/X11/lib \
2647 /usr/X11R6/lib \
2648 /usr/X11R5/lib \
2649 /usr/X11R4/lib \
2651 /usr/lib/X11 \
2652 /usr/lib/X11R6 \
2653 /usr/lib/X11R5 \
2654 /usr/lib/X11R4 \
2656 /usr/local/X11/lib \
2657 /usr/local/X11R6/lib \
2658 /usr/local/X11R5/lib \
2659 /usr/local/X11R4/lib \
2661 /usr/local/lib/X11 \
2662 /usr/local/lib/X11R6 \
2663 /usr/local/lib/X11R5 \
2664 /usr/local/lib/X11R4 \
2666 /usr/X386/lib \
2667 /usr/x386/lib \
2668 /usr/XFree86/lib/X11 \
2670 /usr/lib \
2671 /usr/local/lib \
2672 /usr/unsupported/lib \
2673 /usr/athena/lib \
2674 /usr/local/x11r5/lib \
2675 /usr/lpp/Xamples/lib \
2676 /lib/usr/lib/X11 \
2678 /usr/openwin/lib \
2679 /usr/openwin/share/lib \
2682 for ac_extension in a so sl; do
2683 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2684 ac_x_libraries=$ac_dir
2685 break 2
2687 done
2688 done
2690 rm -f conftest*
2691 fi # $ac_x_libraries = NO
2693 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2694 # Didn't find X anywhere. Cache the known absence of X.
2695 ac_cv_have_x="have_x=no"
2696 else
2697 # Record where we found X for the cache.
2698 ac_cv_have_x="have_x=yes \
2699 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2703 eval "$ac_cv_have_x"
2704 fi # $with_x != no
2706 if test "$have_x" != yes; then
2707 echo "$ac_t""$have_x" 1>&6
2708 no_x=yes
2709 else
2710 # If each of the values was on the command line, it overrides each guess.
2711 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2712 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2713 # Update the cache value to reflect the command line values.
2714 ac_cv_have_x="have_x=yes \
2715 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2716 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2719 if test "$no_x" = yes; then
2720 # Not all programs may use this symbol, but it does not hurt to define it.
2721 cat >> confdefs.h <<\EOF
2722 #define X_DISPLAY_MISSING 1
2725 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2726 else
2727 if test -n "$x_includes"; then
2728 X_CFLAGS="$X_CFLAGS -I$x_includes"
2731 # It would also be nice to do this for all -L options, not just this one.
2732 if test -n "$x_libraries"; then
2733 X_LIBS="$X_LIBS -L$x_libraries"
2734 # For Solaris; some versions of Sun CC require a space after -R and
2735 # others require no space. Words are not sufficient . . . .
2736 case "`(uname -sr) 2>/dev/null`" in
2737 "SunOS 5"*)
2738 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2739 echo "configure:2740: checking whether -R must be followed by a space" >&5
2740 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2741 cat > conftest.$ac_ext <<EOF
2742 #line 2743 "configure"
2743 #include "confdefs.h"
2745 int main() {
2747 ; return 0; }
2749 if { (eval echo configure:2750: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2750 rm -rf conftest*
2751 ac_R_nospace=yes
2752 else
2753 echo "configure: failed program was:" >&5
2754 cat conftest.$ac_ext >&5
2755 rm -rf conftest*
2756 ac_R_nospace=no
2758 rm -f conftest*
2759 if test $ac_R_nospace = yes; then
2760 echo "$ac_t""no" 1>&6
2761 X_LIBS="$X_LIBS -R$x_libraries"
2762 else
2763 LIBS="$ac_xsave_LIBS -R $x_libraries"
2764 cat > conftest.$ac_ext <<EOF
2765 #line 2766 "configure"
2766 #include "confdefs.h"
2768 int main() {
2770 ; return 0; }
2772 if { (eval echo configure:2773: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2773 rm -rf conftest*
2774 ac_R_space=yes
2775 else
2776 echo "configure: failed program was:" >&5
2777 cat conftest.$ac_ext >&5
2778 rm -rf conftest*
2779 ac_R_space=no
2781 rm -f conftest*
2782 if test $ac_R_space = yes; then
2783 echo "$ac_t""yes" 1>&6
2784 X_LIBS="$X_LIBS -R $x_libraries"
2785 else
2786 echo "$ac_t""neither works" 1>&6
2789 LIBS="$ac_xsave_LIBS"
2790 esac
2793 # Check for system-dependent libraries X programs must link with.
2794 # Do this before checking for the system-independent R6 libraries
2795 # (-lICE), since we may need -lsocket or whatever for X linking.
2797 if test "$ISC" = yes; then
2798 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2799 else
2800 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2801 # libraries were built with DECnet support. And karl@cs.umb.edu says
2802 # the Alpha needs dnet_stub (dnet does not exist).
2803 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2804 echo "configure:2805: checking for dnet_ntoa in -ldnet" >&5
2805 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2806 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2807 echo $ac_n "(cached) $ac_c" 1>&6
2808 else
2809 ac_save_LIBS="$LIBS"
2810 LIBS="-ldnet $LIBS"
2811 cat > conftest.$ac_ext <<EOF
2812 #line 2813 "configure"
2813 #include "confdefs.h"
2814 /* Override any gcc2 internal prototype to avoid an error. */
2815 /* We use char because int might match the return type of a gcc2
2816 builtin and then its argument prototype would still apply. */
2817 char dnet_ntoa();
2819 int main() {
2820 dnet_ntoa()
2821 ; return 0; }
2823 if { (eval echo configure:2824: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2824 rm -rf conftest*
2825 eval "ac_cv_lib_$ac_lib_var=yes"
2826 else
2827 echo "configure: failed program was:" >&5
2828 cat conftest.$ac_ext >&5
2829 rm -rf conftest*
2830 eval "ac_cv_lib_$ac_lib_var=no"
2832 rm -f conftest*
2833 LIBS="$ac_save_LIBS"
2836 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2837 echo "$ac_t""yes" 1>&6
2838 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2839 else
2840 echo "$ac_t""no" 1>&6
2843 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2844 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2845 echo "configure:2846: checking for dnet_ntoa in -ldnet_stub" >&5
2846 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2848 echo $ac_n "(cached) $ac_c" 1>&6
2849 else
2850 ac_save_LIBS="$LIBS"
2851 LIBS="-ldnet_stub $LIBS"
2852 cat > conftest.$ac_ext <<EOF
2853 #line 2854 "configure"
2854 #include "confdefs.h"
2855 /* Override any gcc2 internal prototype to avoid an error. */
2856 /* We use char because int might match the return type of a gcc2
2857 builtin and then its argument prototype would still apply. */
2858 char dnet_ntoa();
2860 int main() {
2861 dnet_ntoa()
2862 ; return 0; }
2864 if { (eval echo configure:2865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2865 rm -rf conftest*
2866 eval "ac_cv_lib_$ac_lib_var=yes"
2867 else
2868 echo "configure: failed program was:" >&5
2869 cat conftest.$ac_ext >&5
2870 rm -rf conftest*
2871 eval "ac_cv_lib_$ac_lib_var=no"
2873 rm -f conftest*
2874 LIBS="$ac_save_LIBS"
2877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2880 else
2881 echo "$ac_t""no" 1>&6
2886 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2887 # to get the SysV transport functions.
2888 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2889 # needs -lnsl.
2890 # The nsl library prevents programs from opening the X display
2891 # on Irix 5.2, according to dickey@clark.net.
2892 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2893 echo "configure:2894: checking for gethostbyname" >&5
2894 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2895 echo $ac_n "(cached) $ac_c" 1>&6
2896 else
2897 cat > conftest.$ac_ext <<EOF
2898 #line 2899 "configure"
2899 #include "confdefs.h"
2900 /* System header to define __stub macros and hopefully few prototypes,
2901 which can conflict with char gethostbyname(); below. */
2902 #include <assert.h>
2903 /* Override any gcc2 internal prototype to avoid an error. */
2904 /* We use char because int might match the return type of a gcc2
2905 builtin and then its argument prototype would still apply. */
2906 char gethostbyname();
2908 int main() {
2910 /* The GNU C library defines this for functions which it implements
2911 to always fail with ENOSYS. Some functions are actually named
2912 something starting with __ and the normal name is an alias. */
2913 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2914 choke me
2915 #else
2916 gethostbyname();
2917 #endif
2919 ; return 0; }
2921 if { (eval echo configure:2922: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2922 rm -rf conftest*
2923 eval "ac_cv_func_gethostbyname=yes"
2924 else
2925 echo "configure: failed program was:" >&5
2926 cat conftest.$ac_ext >&5
2927 rm -rf conftest*
2928 eval "ac_cv_func_gethostbyname=no"
2930 rm -f conftest*
2933 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2934 echo "$ac_t""yes" 1>&6
2936 else
2937 echo "$ac_t""no" 1>&6
2940 if test $ac_cv_func_gethostbyname = no; then
2941 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2942 echo "configure:2943: checking for gethostbyname in -lnsl" >&5
2943 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2944 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2945 echo $ac_n "(cached) $ac_c" 1>&6
2946 else
2947 ac_save_LIBS="$LIBS"
2948 LIBS="-lnsl $LIBS"
2949 cat > conftest.$ac_ext <<EOF
2950 #line 2951 "configure"
2951 #include "confdefs.h"
2952 /* Override any gcc2 internal prototype to avoid an error. */
2953 /* We use char because int might match the return type of a gcc2
2954 builtin and then its argument prototype would still apply. */
2955 char gethostbyname();
2957 int main() {
2958 gethostbyname()
2959 ; return 0; }
2961 if { (eval echo configure:2962: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2962 rm -rf conftest*
2963 eval "ac_cv_lib_$ac_lib_var=yes"
2964 else
2965 echo "configure: failed program was:" >&5
2966 cat conftest.$ac_ext >&5
2967 rm -rf conftest*
2968 eval "ac_cv_lib_$ac_lib_var=no"
2970 rm -f conftest*
2971 LIBS="$ac_save_LIBS"
2974 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2975 echo "$ac_t""yes" 1>&6
2976 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2977 else
2978 echo "$ac_t""no" 1>&6
2983 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2984 # socket/setsockopt and other routines are undefined under SCO ODT
2985 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2986 # on later versions), says simon@lia.di.epfl.ch: it contains
2987 # gethostby* variants that don't use the nameserver (or something).
2988 # -lsocket must be given before -lnsl if both are needed.
2989 # We assume that if connect needs -lnsl, so does gethostbyname.
2990 echo $ac_n "checking for connect""... $ac_c" 1>&6
2991 echo "configure:2992: checking for connect" >&5
2992 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2993 echo $ac_n "(cached) $ac_c" 1>&6
2994 else
2995 cat > conftest.$ac_ext <<EOF
2996 #line 2997 "configure"
2997 #include "confdefs.h"
2998 /* System header to define __stub macros and hopefully few prototypes,
2999 which can conflict with char connect(); below. */
3000 #include <assert.h>
3001 /* Override any gcc2 internal prototype to avoid an error. */
3002 /* We use char because int might match the return type of a gcc2
3003 builtin and then its argument prototype would still apply. */
3004 char connect();
3006 int main() {
3008 /* The GNU C library defines this for functions which it implements
3009 to always fail with ENOSYS. Some functions are actually named
3010 something starting with __ and the normal name is an alias. */
3011 #if defined (__stub_connect) || defined (__stub___connect)
3012 choke me
3013 #else
3014 connect();
3015 #endif
3017 ; return 0; }
3019 if { (eval echo configure:3020: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3020 rm -rf conftest*
3021 eval "ac_cv_func_connect=yes"
3022 else
3023 echo "configure: failed program was:" >&5
3024 cat conftest.$ac_ext >&5
3025 rm -rf conftest*
3026 eval "ac_cv_func_connect=no"
3028 rm -f conftest*
3031 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3032 echo "$ac_t""yes" 1>&6
3034 else
3035 echo "$ac_t""no" 1>&6
3038 if test $ac_cv_func_connect = no; then
3039 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3040 echo "configure:3041: checking for connect in -lsocket" >&5
3041 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3042 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3043 echo $ac_n "(cached) $ac_c" 1>&6
3044 else
3045 ac_save_LIBS="$LIBS"
3046 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3047 cat > conftest.$ac_ext <<EOF
3048 #line 3049 "configure"
3049 #include "confdefs.h"
3050 /* Override any gcc2 internal prototype to avoid an error. */
3051 /* We use char because int might match the return type of a gcc2
3052 builtin and then its argument prototype would still apply. */
3053 char connect();
3055 int main() {
3056 connect()
3057 ; return 0; }
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3060 rm -rf conftest*
3061 eval "ac_cv_lib_$ac_lib_var=yes"
3062 else
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 rm -rf conftest*
3066 eval "ac_cv_lib_$ac_lib_var=no"
3068 rm -f conftest*
3069 LIBS="$ac_save_LIBS"
3072 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3073 echo "$ac_t""yes" 1>&6
3074 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3075 else
3076 echo "$ac_t""no" 1>&6
3081 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3082 echo $ac_n "checking for remove""... $ac_c" 1>&6
3083 echo "configure:3084: checking for remove" >&5
3084 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3090 /* System header to define __stub macros and hopefully few prototypes,
3091 which can conflict with char remove(); below. */
3092 #include <assert.h>
3093 /* Override any gcc2 internal prototype to avoid an error. */
3094 /* We use char because int might match the return type of a gcc2
3095 builtin and then its argument prototype would still apply. */
3096 char remove();
3098 int main() {
3100 /* The GNU C library defines this for functions which it implements
3101 to always fail with ENOSYS. Some functions are actually named
3102 something starting with __ and the normal name is an alias. */
3103 #if defined (__stub_remove) || defined (__stub___remove)
3104 choke me
3105 #else
3106 remove();
3107 #endif
3109 ; return 0; }
3111 if { (eval echo configure:3112: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3112 rm -rf conftest*
3113 eval "ac_cv_func_remove=yes"
3114 else
3115 echo "configure: failed program was:" >&5
3116 cat conftest.$ac_ext >&5
3117 rm -rf conftest*
3118 eval "ac_cv_func_remove=no"
3120 rm -f conftest*
3123 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
3124 echo "$ac_t""yes" 1>&6
3126 else
3127 echo "$ac_t""no" 1>&6
3130 if test $ac_cv_func_remove = no; then
3131 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
3132 echo "configure:3133: checking for remove in -lposix" >&5
3133 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
3134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3135 echo $ac_n "(cached) $ac_c" 1>&6
3136 else
3137 ac_save_LIBS="$LIBS"
3138 LIBS="-lposix $LIBS"
3139 cat > conftest.$ac_ext <<EOF
3140 #line 3141 "configure"
3141 #include "confdefs.h"
3142 /* Override any gcc2 internal prototype to avoid an error. */
3143 /* We use char because int might match the return type of a gcc2
3144 builtin and then its argument prototype would still apply. */
3145 char remove();
3147 int main() {
3148 remove()
3149 ; return 0; }
3151 if { (eval echo configure:3152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3152 rm -rf conftest*
3153 eval "ac_cv_lib_$ac_lib_var=yes"
3154 else
3155 echo "configure: failed program was:" >&5
3156 cat conftest.$ac_ext >&5
3157 rm -rf conftest*
3158 eval "ac_cv_lib_$ac_lib_var=no"
3160 rm -f conftest*
3161 LIBS="$ac_save_LIBS"
3164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3165 echo "$ac_t""yes" 1>&6
3166 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
3167 else
3168 echo "$ac_t""no" 1>&6
3173 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
3174 echo $ac_n "checking for shmat""... $ac_c" 1>&6
3175 echo "configure:3176: checking for shmat" >&5
3176 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
3177 echo $ac_n "(cached) $ac_c" 1>&6
3178 else
3179 cat > conftest.$ac_ext <<EOF
3180 #line 3181 "configure"
3181 #include "confdefs.h"
3182 /* System header to define __stub macros and hopefully few prototypes,
3183 which can conflict with char shmat(); below. */
3184 #include <assert.h>
3185 /* Override any gcc2 internal prototype to avoid an error. */
3186 /* We use char because int might match the return type of a gcc2
3187 builtin and then its argument prototype would still apply. */
3188 char shmat();
3190 int main() {
3192 /* The GNU C library defines this for functions which it implements
3193 to always fail with ENOSYS. Some functions are actually named
3194 something starting with __ and the normal name is an alias. */
3195 #if defined (__stub_shmat) || defined (__stub___shmat)
3196 choke me
3197 #else
3198 shmat();
3199 #endif
3201 ; return 0; }
3203 if { (eval echo configure:3204: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3204 rm -rf conftest*
3205 eval "ac_cv_func_shmat=yes"
3206 else
3207 echo "configure: failed program was:" >&5
3208 cat conftest.$ac_ext >&5
3209 rm -rf conftest*
3210 eval "ac_cv_func_shmat=no"
3212 rm -f conftest*
3215 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
3216 echo "$ac_t""yes" 1>&6
3218 else
3219 echo "$ac_t""no" 1>&6
3222 if test $ac_cv_func_shmat = no; then
3223 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
3224 echo "configure:3225: checking for shmat in -lipc" >&5
3225 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
3226 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3227 echo $ac_n "(cached) $ac_c" 1>&6
3228 else
3229 ac_save_LIBS="$LIBS"
3230 LIBS="-lipc $LIBS"
3231 cat > conftest.$ac_ext <<EOF
3232 #line 3233 "configure"
3233 #include "confdefs.h"
3234 /* Override any gcc2 internal prototype to avoid an error. */
3235 /* We use char because int might match the return type of a gcc2
3236 builtin and then its argument prototype would still apply. */
3237 char shmat();
3239 int main() {
3240 shmat()
3241 ; return 0; }
3243 if { (eval echo configure:3244: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3244 rm -rf conftest*
3245 eval "ac_cv_lib_$ac_lib_var=yes"
3246 else
3247 echo "configure: failed program was:" >&5
3248 cat conftest.$ac_ext >&5
3249 rm -rf conftest*
3250 eval "ac_cv_lib_$ac_lib_var=no"
3252 rm -f conftest*
3253 LIBS="$ac_save_LIBS"
3256 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3257 echo "$ac_t""yes" 1>&6
3258 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
3259 else
3260 echo "$ac_t""no" 1>&6
3266 # Check for libraries that X11R6 Xt/Xaw programs need.
3267 ac_save_LDFLAGS="$LDFLAGS"
3268 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3269 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3270 # check for ICE first), but we must link in the order -lSM -lICE or
3271 # we get undefined symbols. So assume we have SM if we have ICE.
3272 # These have to be linked with before -lX11, unlike the other
3273 # libraries we check for below, so use a different variable.
3274 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3275 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3276 echo "configure:3277: checking for IceConnectionNumber in -lICE" >&5
3277 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3278 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3279 echo $ac_n "(cached) $ac_c" 1>&6
3280 else
3281 ac_save_LIBS="$LIBS"
3282 LIBS="-lICE $LIBS"
3283 cat > conftest.$ac_ext <<EOF
3284 #line 3285 "configure"
3285 #include "confdefs.h"
3286 /* Override any gcc2 internal prototype to avoid an error. */
3287 /* We use char because int might match the return type of a gcc2
3288 builtin and then its argument prototype would still apply. */
3289 char IceConnectionNumber();
3291 int main() {
3292 IceConnectionNumber()
3293 ; return 0; }
3295 if { (eval echo configure:3296: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3296 rm -rf conftest*
3297 eval "ac_cv_lib_$ac_lib_var=yes"
3298 else
3299 echo "configure: failed program was:" >&5
3300 cat conftest.$ac_ext >&5
3301 rm -rf conftest*
3302 eval "ac_cv_lib_$ac_lib_var=no"
3304 rm -f conftest*
3305 LIBS="$ac_save_LIBS"
3308 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3309 echo "$ac_t""yes" 1>&6
3310 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3311 else
3312 echo "$ac_t""no" 1>&6
3315 LDFLAGS="$ac_save_LDFLAGS"
3320 XCFLAGS="$X_CFLAGS"
3322 XLFLAGS="$X_LIBS"
3324 XLIBS="$X_EXTRA_LIBS -lX11"
3326 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3327 echo "configure:3328: checking for _Xsetlocale in -lX11" >&5
3328 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3329 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3331 else
3332 ac_save_LIBS="$LIBS"
3333 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3334 cat > conftest.$ac_ext <<EOF
3335 #line 3336 "configure"
3336 #include "confdefs.h"
3337 /* Override any gcc2 internal prototype to avoid an error. */
3338 /* We use char because int might match the return type of a gcc2
3339 builtin and then its argument prototype would still apply. */
3340 char _Xsetlocale();
3342 int main() {
3343 _Xsetlocale()
3344 ; return 0; }
3346 if { (eval echo configure:3347: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3347 rm -rf conftest*
3348 eval "ac_cv_lib_$ac_lib_var=yes"
3349 else
3350 echo "configure: failed program was:" >&5
3351 cat conftest.$ac_ext >&5
3352 rm -rf conftest*
3353 eval "ac_cv_lib_$ac_lib_var=no"
3355 rm -f conftest*
3356 LIBS="$ac_save_LIBS"
3359 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3360 echo "$ac_t""yes" 1>&6
3361 X_LOCALE="-DX_LOCALE"
3362 else
3363 echo "$ac_t""no" 1>&6
3369 shape=yes
3370 # Check whether --enable-shape or --disable-shape was given.
3371 if test "${enable_shape+set}" = set; then
3372 enableval="$enable_shape"
3373 shape=$enableval
3374 else
3375 shape=yes
3379 added_xext=no
3381 if test "$shape" = yes; then
3382 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3383 echo "configure:3384: checking for XShapeSelectInput in -lXext" >&5
3384 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3385 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3386 echo $ac_n "(cached) $ac_c" 1>&6
3387 else
3388 ac_save_LIBS="$LIBS"
3389 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3390 cat > conftest.$ac_ext <<EOF
3391 #line 3392 "configure"
3392 #include "confdefs.h"
3393 /* Override any gcc2 internal prototype to avoid an error. */
3394 /* We use char because int might match the return type of a gcc2
3395 builtin and then its argument prototype would still apply. */
3396 char XShapeSelectInput();
3398 int main() {
3399 XShapeSelectInput()
3400 ; return 0; }
3402 if { (eval echo configure:3403: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3403 rm -rf conftest*
3404 eval "ac_cv_lib_$ac_lib_var=yes"
3405 else
3406 echo "configure: failed program was:" >&5
3407 cat conftest.$ac_ext >&5
3408 rm -rf conftest*
3409 eval "ac_cv_lib_$ac_lib_var=no"
3411 rm -f conftest*
3412 LIBS="$ac_save_LIBS"
3415 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3416 echo "$ac_t""yes" 1>&6
3417 XLIBS="-lXext $XLIBS"
3418 added_xext=yes SHAPE=-DSHAPE
3419 else
3420 echo "$ac_t""no" 1>&6
3421 shape=no
3429 shm=yes
3430 # Check whether --enable-shm or --disable-shm was given.
3431 if test "${enable_shm+set}" = set; then
3432 enableval="$enable_shm"
3433 shm=$enableval
3434 else
3435 shm=yes
3439 if test "$shm" = yes; then
3440 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3441 echo "configure:3442: checking for XShmAttach in -lXext" >&5
3442 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3443 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3444 echo $ac_n "(cached) $ac_c" 1>&6
3445 else
3446 ac_save_LIBS="$LIBS"
3447 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3448 cat > conftest.$ac_ext <<EOF
3449 #line 3450 "configure"
3450 #include "confdefs.h"
3451 /* Override any gcc2 internal prototype to avoid an error. */
3452 /* We use char because int might match the return type of a gcc2
3453 builtin and then its argument prototype would still apply. */
3454 char XShmAttach();
3456 int main() {
3457 XShmAttach()
3458 ; return 0; }
3460 if { (eval echo configure:3461: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3461 rm -rf conftest*
3462 eval "ac_cv_lib_$ac_lib_var=yes"
3463 else
3464 echo "configure: failed program was:" >&5
3465 cat conftest.$ac_ext >&5
3466 rm -rf conftest*
3467 eval "ac_cv_lib_$ac_lib_var=no"
3469 rm -f conftest*
3470 LIBS="$ac_save_LIBS"
3473 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3474 echo "$ac_t""yes" 1>&6
3475 ok=yes
3476 else
3477 echo "$ac_t""no" 1>&6
3478 ok=no
3482 if test "$ok" = yes; then
3483 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3484 echo "configure:3485: checking for shmget" >&5
3485 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3486 echo $ac_n "(cached) $ac_c" 1>&6
3487 else
3488 cat > conftest.$ac_ext <<EOF
3489 #line 3490 "configure"
3490 #include "confdefs.h"
3491 /* System header to define __stub macros and hopefully few prototypes,
3492 which can conflict with char shmget(); below. */
3493 #include <assert.h>
3494 /* Override any gcc2 internal prototype to avoid an error. */
3495 /* We use char because int might match the return type of a gcc2
3496 builtin and then its argument prototype would still apply. */
3497 char shmget();
3499 int main() {
3501 /* The GNU C library defines this for functions which it implements
3502 to always fail with ENOSYS. Some functions are actually named
3503 something starting with __ and the normal name is an alias. */
3504 #if defined (__stub_shmget) || defined (__stub___shmget)
3505 choke me
3506 #else
3507 shmget();
3508 #endif
3510 ; return 0; }
3512 if { (eval echo configure:3513: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3513 rm -rf conftest*
3514 eval "ac_cv_func_shmget=yes"
3515 else
3516 echo "configure: failed program was:" >&5
3517 cat conftest.$ac_ext >&5
3518 rm -rf conftest*
3519 eval "ac_cv_func_shmget=no"
3521 rm -f conftest*
3524 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3525 echo "$ac_t""yes" 1>&6
3526 ok=yes
3527 else
3528 echo "$ac_t""no" 1>&6
3529 ok=no
3534 if test "$ok" = yes; then
3535 if test "$added_xext" = no; then
3536 XLIBS="-lXext $XLIBS"
3538 XSHM=-DXSHM
3548 #AC_DEFINE(R6SM)
3549 #AC_SUBST(XSMPLIBS)
3554 GFXLIBS=""
3555 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3556 if test "${with_gfx_libs+set}" = set; then
3557 withval="$with_gfx_libs"
3558 GFXLFLAGS=$withval
3559 else
3560 GFXLFLAGS=""
3564 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3565 if test "${with_gfx_incs+set}" = set; then
3566 withval="$with_gfx_incs"
3567 GFXFLAGS="$withval" GFX_INC_PATH=$withval
3568 else
3569 GFXFLAGS="" GFX_INC_PATH=""
3576 xpm=yes
3577 # Check whether --enable-xpm or --disable-xpm was given.
3578 if test "${enable_xpm+set}" = set; then
3579 enableval="$enable_xpm"
3580 xpm=$enableval
3581 else
3582 xpm=yes
3586 if test "$xpm" = yes; then
3587 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3588 echo "configure:3589: checking for XpmCreatePixmapFromData in -lXpm" >&5
3589 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3590 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3591 echo $ac_n "(cached) $ac_c" 1>&6
3592 else
3593 ac_save_LIBS="$LIBS"
3594 LIBS="-lXpm $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3595 cat > conftest.$ac_ext <<EOF
3596 #line 3597 "configure"
3597 #include "confdefs.h"
3598 /* Override any gcc2 internal prototype to avoid an error. */
3599 /* We use char because int might match the return type of a gcc2
3600 builtin and then its argument prototype would still apply. */
3601 char XpmCreatePixmapFromData();
3603 int main() {
3604 XpmCreatePixmapFromData()
3605 ; return 0; }
3607 if { (eval echo configure:3608: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3608 rm -rf conftest*
3609 eval "ac_cv_lib_$ac_lib_var=yes"
3610 else
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 eval "ac_cv_lib_$ac_lib_var=no"
3616 rm -f conftest*
3617 LIBS="$ac_save_LIBS"
3620 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3621 echo "$ac_t""yes" 1>&6
3622 my_libok=yes
3623 else
3624 echo "$ac_t""no" 1>&6
3625 my_libok=no
3629 if test "$my_libok" = yes; then
3630 my_old_cppflags=$CPPFLAGS
3631 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3632 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3633 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3634 echo "configure:3635: checking for X11/xpm.h" >&5
3635 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 cat > conftest.$ac_ext <<EOF
3639 #line 3640 "configure"
3640 #include "confdefs.h"
3641 #include <X11/xpm.h>
3643 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3644 { (eval echo configure:3645: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3645 ac_err=`grep -v '^ *+' conftest.out`
3646 if test -z "$ac_err"; then
3647 rm -rf conftest*
3648 eval "ac_cv_header_$ac_safe=yes"
3649 else
3650 echo "$ac_err" >&5
3651 echo "configure: failed program was:" >&5
3652 cat conftest.$ac_ext >&5
3653 rm -rf conftest*
3654 eval "ac_cv_header_$ac_safe=no"
3656 rm -f conftest*
3658 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3659 echo "$ac_t""yes" 1>&6
3660 GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
3661 supported_gfx="XPM"
3662 else
3663 echo "$ac_t""no" 1>&6
3664 supported_gfx="XPM (builtin)"
3667 CPPFLAGS=$my_old_cppflags
3681 png=yes
3682 # Check whether --enable-png or --disable-png was given.
3683 if test "${enable_png+set}" = set; then
3684 enableval="$enable_png"
3685 png=$enableval
3686 else
3687 png=yes
3692 if test "$png" = yes ; then
3693 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3694 echo "configure:3695: checking for png_get_valid in -lpng" >&5
3695 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3696 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3697 echo $ac_n "(cached) $ac_c" 1>&6
3698 else
3699 ac_save_LIBS="$LIBS"
3700 LIBS="-lpng $GFX_INC_PATH $GFXLFLAGS $XLFLAGS -lz -lm $LIBS"
3701 cat > conftest.$ac_ext <<EOF
3702 #line 3703 "configure"
3703 #include "confdefs.h"
3704 /* Override any gcc2 internal prototype to avoid an error. */
3705 /* We use char because int might match the return type of a gcc2
3706 builtin and then its argument prototype would still apply. */
3707 char png_get_valid();
3709 int main() {
3710 png_get_valid()
3711 ; return 0; }
3713 if { (eval echo configure:3714: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3714 rm -rf conftest*
3715 eval "ac_cv_lib_$ac_lib_var=yes"
3716 else
3717 echo "configure: failed program was:" >&5
3718 cat conftest.$ac_ext >&5
3719 rm -rf conftest*
3720 eval "ac_cv_lib_$ac_lib_var=no"
3722 rm -f conftest*
3723 LIBS="$ac_save_LIBS"
3726 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3727 echo "$ac_t""yes" 1>&6
3728 my_libok=yes
3729 else
3730 echo "$ac_t""no" 1>&6
3731 my_libok=no
3735 if test "$my_libok" = yes; then
3736 my_old_cppflags=$CPPFLAGS
3737 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3738 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
3739 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3740 echo "configure:3741: checking for png.h" >&5
3741 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3742 echo $ac_n "(cached) $ac_c" 1>&6
3743 else
3744 cat > conftest.$ac_ext <<EOF
3745 #line 3746 "configure"
3746 #include "confdefs.h"
3747 #include <png.h>
3749 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3750 { (eval echo configure:3751: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3751 ac_err=`grep -v '^ *+' conftest.out`
3752 if test -z "$ac_err"; then
3753 rm -rf conftest*
3754 eval "ac_cv_header_$ac_safe=yes"
3755 else
3756 echo "$ac_err" >&5
3757 echo "configure: failed program was:" >&5
3758 cat conftest.$ac_ext >&5
3759 rm -rf conftest*
3760 eval "ac_cv_header_$ac_safe=no"
3762 rm -f conftest*
3764 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3765 echo "$ac_t""yes" 1>&6
3766 GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG"
3767 supported_gfx="$supported_gfx PNG"
3768 else
3769 echo "$ac_t""no" 1>&6
3772 CPPFLAGS=$my_old_cppflags
3777 jpeg=yes
3778 # Check whether --enable-jpeg or --disable-jpeg was given.
3779 if test "${enable_jpeg+set}" = set; then
3780 enableval="$enable_jpeg"
3781 jpeg=$enableval
3782 else
3783 jpeg=yes
3787 if test "$jpeg" = yes; then
3788 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3789 echo "configure:3790: checking for jpeg_destroy_compress in -ljpeg" >&5
3790 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3791 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3792 echo $ac_n "(cached) $ac_c" 1>&6
3793 else
3794 ac_save_LIBS="$LIBS"
3795 LIBS="-ljpeg $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $LIBS"
3796 cat > conftest.$ac_ext <<EOF
3797 #line 3798 "configure"
3798 #include "confdefs.h"
3799 /* Override any gcc2 internal prototype to avoid an error. */
3800 /* We use char because int might match the return type of a gcc2
3801 builtin and then its argument prototype would still apply. */
3802 char jpeg_destroy_compress();
3804 int main() {
3805 jpeg_destroy_compress()
3806 ; return 0; }
3808 if { (eval echo configure:3809: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3809 rm -rf conftest*
3810 eval "ac_cv_lib_$ac_lib_var=yes"
3811 else
3812 echo "configure: failed program was:" >&5
3813 cat conftest.$ac_ext >&5
3814 rm -rf conftest*
3815 eval "ac_cv_lib_$ac_lib_var=no"
3817 rm -f conftest*
3818 LIBS="$ac_save_LIBS"
3821 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3822 echo "$ac_t""yes" 1>&6
3823 my_libok=yes
3824 else
3825 echo "$ac_t""no" 1>&6
3826 my_libok=no
3830 if test "$my_libok" = yes; then
3831 my_old_cppflags=$CPPFLAGS
3832 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3833 cat > conftest.$ac_ext <<EOF
3834 #line 3835 "configure"
3835 #include "confdefs.h"
3836 jpeglib.h
3838 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3839 { (eval echo configure:3840: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3840 ac_err=`grep -v '^ *+' conftest.out`
3841 if test -z "$ac_err"; then
3842 rm -rf conftest*
3843 GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
3844 supported_gfx="$supported_gfx JPEG"
3845 else
3846 echo "$ac_err" >&5
3847 echo "configure: failed program was:" >&5
3848 cat conftest.$ac_ext >&5
3849 rm -rf conftest*
3850 jpeg_not_found=yes
3852 rm -f conftest*
3853 CPPFLAGS=$my_old_cppflags
3858 gif=yes
3859 # Check whether --enable-gif or --disable-gif was given.
3860 if test "${enable_gif+set}" = set; then
3861 enableval="$enable_gif"
3862 gif=$enableval
3863 else
3864 gif=yes
3868 if test "$gif" = yes; then
3869 retry=no
3870 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3871 echo "configure:3872: checking for DGifOpenFileName in -lungif" >&5
3872 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3873 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3874 echo $ac_n "(cached) $ac_c" 1>&6
3875 else
3876 ac_save_LIBS="$LIBS"
3877 LIBS="-lungif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3878 cat > conftest.$ac_ext <<EOF
3879 #line 3880 "configure"
3880 #include "confdefs.h"
3881 /* Override any gcc2 internal prototype to avoid an error. */
3882 /* We use char because int might match the return type of a gcc2
3883 builtin and then its argument prototype would still apply. */
3884 char DGifOpenFileName();
3886 int main() {
3887 DGifOpenFileName()
3888 ; return 0; }
3890 if { (eval echo configure:3891: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3891 rm -rf conftest*
3892 eval "ac_cv_lib_$ac_lib_var=yes"
3893 else
3894 echo "configure: failed program was:" >&5
3895 cat conftest.$ac_ext >&5
3896 rm -rf conftest*
3897 eval "ac_cv_lib_$ac_lib_var=no"
3899 rm -f conftest*
3900 LIBS="$ac_save_LIBS"
3903 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3904 echo "$ac_t""yes" 1>&6
3905 my_libok=yes my_libname=ungif
3906 else
3907 echo "$ac_t""no" 1>&6
3908 retry=yes my_libok=no
3911 if test "$retry" = yes; then
3912 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3913 echo "configure:3914: checking for DGifOpenFileName in -lgif" >&5
3914 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3915 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3916 echo $ac_n "(cached) $ac_c" 1>&6
3917 else
3918 ac_save_LIBS="$LIBS"
3919 LIBS="-lgif $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $LIBS"
3920 cat > conftest.$ac_ext <<EOF
3921 #line 3922 "configure"
3922 #include "confdefs.h"
3923 /* Override any gcc2 internal prototype to avoid an error. */
3924 /* We use char because int might match the return type of a gcc2
3925 builtin and then its argument prototype would still apply. */
3926 char DGifOpenFileName();
3928 int main() {
3929 DGifOpenFileName()
3930 ; return 0; }
3932 if { (eval echo configure:3933: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3933 rm -rf conftest*
3934 eval "ac_cv_lib_$ac_lib_var=yes"
3935 else
3936 echo "configure: failed program was:" >&5
3937 cat conftest.$ac_ext >&5
3938 rm -rf conftest*
3939 eval "ac_cv_lib_$ac_lib_var=no"
3941 rm -f conftest*
3942 LIBS="$ac_save_LIBS"
3945 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3946 echo "$ac_t""yes" 1>&6
3947 my_libok=yes my_libname=gif
3948 else
3949 echo "$ac_t""no" 1>&6
3950 my_libok=no
3955 if test "$my_libok" = yes; then
3956 my_old_cppflags=$CPPFLAGS
3957 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3958 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3959 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3960 echo "configure:3961: checking for gif_lib.h" >&5
3961 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3962 echo $ac_n "(cached) $ac_c" 1>&6
3963 else
3964 cat > conftest.$ac_ext <<EOF
3965 #line 3966 "configure"
3966 #include "confdefs.h"
3967 #include <gif_lib.h>
3969 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3970 { (eval echo configure:3971: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3971 ac_err=`grep -v '^ *+' conftest.out`
3972 if test -z "$ac_err"; then
3973 rm -rf conftest*
3974 eval "ac_cv_header_$ac_safe=yes"
3975 else
3976 echo "$ac_err" >&5
3977 echo "configure: failed program was:" >&5
3978 cat conftest.$ac_ext >&5
3979 rm -rf conftest*
3980 eval "ac_cv_header_$ac_safe=no"
3982 rm -f conftest*
3984 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3985 echo "$ac_t""yes" 1>&6
3986 GFXLIBS="$GFXLIBS -l$my_libname" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3987 supported_gfx="$supported_gfx GIF"
3988 else
3989 echo "$ac_t""no" 1>&6
3992 CPPFLAGS=$my_old_cppflags
3998 # Check whether --enable-tiff or --disable-tiff was given.
3999 if test "${enable_tiff+set}" = set; then
4000 enableval="$enable_tiff"
4001 tif=$enableval
4002 else
4003 tif=yes
4008 # TIFF can optionally have JPEG and/or zlib support. Must find out
4009 # when they are supported so that correct library flags are passed during
4010 # detection and linkage
4013 # By default use xpm icons if tiff is not found.
4014 ICONEXT="xpm"
4017 if test "$tif" = yes; then
4018 my_libname=""
4019 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4020 echo "configure:4021: checking for TIFFGetVersion in -ltiff" >&5
4021 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4022 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4023 echo $ac_n "(cached) $ac_c" 1>&6
4024 else
4025 ac_save_LIBS="$LIBS"
4026 LIBS="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4027 cat > conftest.$ac_ext <<EOF
4028 #line 4029 "configure"
4029 #include "confdefs.h"
4030 /* Override any gcc2 internal prototype to avoid an error. */
4031 /* We use char because int might match the return type of a gcc2
4032 builtin and then its argument prototype would still apply. */
4033 char TIFFGetVersion();
4035 int main() {
4036 TIFFGetVersion()
4037 ; return 0; }
4039 if { (eval echo configure:4040: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4040 rm -rf conftest*
4041 eval "ac_cv_lib_$ac_lib_var=yes"
4042 else
4043 echo "configure: failed program was:" >&5
4044 cat conftest.$ac_ext >&5
4045 rm -rf conftest*
4046 eval "ac_cv_lib_$ac_lib_var=no"
4048 rm -f conftest*
4049 LIBS="$ac_save_LIBS"
4052 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4053 echo "$ac_t""yes" 1>&6
4054 my_libok=yes my_libname="-ltiff"
4055 else
4056 echo "$ac_t""no" 1>&6
4057 my_libok=no
4060 unset ac_cv_lib_tiff_TIFFGetVersion
4061 if test "$my_libok" = no; then
4062 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
4063 echo "configure:4064: checking for TIFFGetVersion in -ltiff" >&5
4064 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4065 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4066 echo $ac_n "(cached) $ac_c" 1>&6
4067 else
4068 ac_save_LIBS="$LIBS"
4069 LIBS="-ltiff $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* Override any gcc2 internal prototype to avoid an error. */
4074 /* We use char because int might match the return type of a gcc2
4075 builtin and then its argument prototype would still apply. */
4076 char TIFFGetVersion();
4078 int main() {
4079 TIFFGetVersion()
4080 ; return 0; }
4082 if { (eval echo configure:4083: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4083 rm -rf conftest*
4084 eval "ac_cv_lib_$ac_lib_var=yes"
4085 else
4086 echo "configure: failed program was:" >&5
4087 cat conftest.$ac_ext >&5
4088 rm -rf conftest*
4089 eval "ac_cv_lib_$ac_lib_var=no"
4091 rm -f conftest*
4092 LIBS="$ac_save_LIBS"
4095 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4096 echo "$ac_t""yes" 1>&6
4097 my_libok=yes my_libname="-ltiff -lz"
4098 else
4099 echo "$ac_t""no" 1>&6
4100 my_libok=no
4105 if test "$my_libok" = no; then
4106 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
4107 echo "configure:4108: checking for TIFFGetVersion in -ltiff34" >&5
4108 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
4109 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4110 echo $ac_n "(cached) $ac_c" 1>&6
4111 else
4112 ac_save_LIBS="$LIBS"
4113 LIBS="-ltiff34 $GFX_INC_PATH $GFXLFLAGS $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
4114 cat > conftest.$ac_ext <<EOF
4115 #line 4116 "configure"
4116 #include "confdefs.h"
4117 /* Override any gcc2 internal prototype to avoid an error. */
4118 /* We use char because int might match the return type of a gcc2
4119 builtin and then its argument prototype would still apply. */
4120 char TIFFGetVersion();
4122 int main() {
4123 TIFFGetVersion()
4124 ; return 0; }
4126 if { (eval echo configure:4127: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
4127 rm -rf conftest*
4128 eval "ac_cv_lib_$ac_lib_var=yes"
4129 else
4130 echo "configure: failed program was:" >&5
4131 cat conftest.$ac_ext >&5
4132 rm -rf conftest*
4133 eval "ac_cv_lib_$ac_lib_var=no"
4135 rm -f conftest*
4136 LIBS="$ac_save_LIBS"
4139 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4140 echo "$ac_t""yes" 1>&6
4141 my_libok=yes my_libname="-ltiff34"
4142 else
4143 echo "$ac_t""no" 1>&6
4144 my_libok=no
4149 if test "$my_libok" = yes; then
4150 my_old_cppflags=$CPPFLAGS
4151 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
4152 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
4153 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
4154 echo "configure:4155: checking for tiffio.h" >&5
4155 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4156 echo $ac_n "(cached) $ac_c" 1>&6
4157 else
4158 cat > conftest.$ac_ext <<EOF
4159 #line 4160 "configure"
4160 #include "confdefs.h"
4161 #include <tiffio.h>
4163 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4164 { (eval echo configure:4165: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4165 ac_err=`grep -v '^ *+' conftest.out`
4166 if test -z "$ac_err"; then
4167 rm -rf conftest*
4168 eval "ac_cv_header_$ac_safe=yes"
4169 else
4170 echo "$ac_err" >&5
4171 echo "configure: failed program was:" >&5
4172 cat conftest.$ac_ext >&5
4173 rm -rf conftest*
4174 eval "ac_cv_header_$ac_safe=no"
4176 rm -f conftest*
4178 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4179 echo "$ac_t""yes" 1>&6
4180 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="$my_libname $GFXLIBS"
4181 ICONEXT="tiff" supported_gfx="$supported_gfx TIFF"
4182 else
4183 echo "$ac_t""no" 1>&6
4186 CPPFLAGS=$my_old_cppflags
4200 # Check whether --enable-debug or --disable-debug was given.
4201 if test "${enable_debug+set}" = set; then
4202 enableval="$enable_debug"
4204 else
4205 enable_debug=no
4209 if test "$enable_debug" = yes; then
4210 DFLAGS="-g -DDEBUG"
4211 # Efence makes things too slow. Add it by hand in the Makefiles
4212 # if it is really needed.
4213 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4218 sound=yes
4219 # Check whether --enable-sound or --disable-sound was given.
4220 if test "${enable_sound+set}" = set; then
4221 enableval="$enable_sound"
4222 sound=$enableval
4223 else
4224 sound=yes
4227 if test "$sound" = yes; then
4228 SOUND="#define WMSOUND"
4229 else
4230 SOUND="#undef WMSOUND"
4235 # AC_PREFIX_PROGRAM(wmaker)
4237 if test "${prefix}" = "NONE"; then
4238 prefix="/usr/local"
4240 if test "${exec_prefix}" = "NONE"; then
4241 exec_prefix='$(prefix)'
4244 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4245 if test "${with_pixmapdir+set}" = set; then
4246 withval="$with_pixmapdir"
4251 if test "x$with_pixmapdir" != "x"; then
4252 pixmapdir=$with_pixmapdir
4253 else
4254 pixmapdir='$(datadir)/pixmaps'
4261 appspath=""
4263 # Check whether --with-appspath or --without-appspath was given.
4264 if test "${with_appspath+set}" = set; then
4265 withval="$with_appspath"
4266 appspath=$withval
4270 if test "x$appspath" = "x"; then
4271 gnustepdir='$(prefix)/GNUstep'
4273 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4274 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
4275 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
4278 with_appspath=$gnustepdir/Apps
4281 wprefsdir=$with_appspath/WPrefs.app
4287 # Check whether --enable-single-icon or --disable-single-icon was given.
4288 if test "${enable_single_icon+set}" = set; then
4289 enableval="$enable_single_icon"
4290 if test "$enableval" = yes; then
4291 REDUCE_APPICONS="#define REDUCE_APPICONS"
4292 else
4293 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4295 else
4296 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4303 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4304 echo "configure:4305: checking for sys/wait.h that is POSIX.1 compatible" >&5
4305 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4306 echo $ac_n "(cached) $ac_c" 1>&6
4307 else
4308 cat > conftest.$ac_ext <<EOF
4309 #line 4310 "configure"
4310 #include "confdefs.h"
4311 #include <sys/types.h>
4312 #include <sys/wait.h>
4313 #ifndef WEXITSTATUS
4314 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4315 #endif
4316 #ifndef WIFEXITED
4317 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4318 #endif
4319 int main() {
4320 int s;
4321 wait (&s);
4322 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4323 ; return 0; }
4325 if { (eval echo configure:4326: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4326 rm -rf conftest*
4327 ac_cv_header_sys_wait_h=yes
4328 else
4329 echo "configure: failed program was:" >&5
4330 cat conftest.$ac_ext >&5
4331 rm -rf conftest*
4332 ac_cv_header_sys_wait_h=no
4334 rm -f conftest*
4337 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4338 if test $ac_cv_header_sys_wait_h = yes; then
4339 cat >> confdefs.h <<\EOF
4340 #define HAVE_SYS_WAIT_H 1
4345 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
4346 libintl.h sys/select.h poll.h
4348 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4349 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4350 echo "configure:4351: checking for $ac_hdr" >&5
4351 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4352 echo $ac_n "(cached) $ac_c" 1>&6
4353 else
4354 cat > conftest.$ac_ext <<EOF
4355 #line 4356 "configure"
4356 #include "confdefs.h"
4357 #include <$ac_hdr>
4359 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4360 { (eval echo configure:4361: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4361 ac_err=`grep -v '^ *+' conftest.out`
4362 if test -z "$ac_err"; then
4363 rm -rf conftest*
4364 eval "ac_cv_header_$ac_safe=yes"
4365 else
4366 echo "$ac_err" >&5
4367 echo "configure: failed program was:" >&5
4368 cat conftest.$ac_ext >&5
4369 rm -rf conftest*
4370 eval "ac_cv_header_$ac_safe=no"
4372 rm -f conftest*
4374 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4375 echo "$ac_t""yes" 1>&6
4376 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4377 cat >> confdefs.h <<EOF
4378 #define $ac_tr_hdr 1
4381 else
4382 echo "$ac_t""no" 1>&6
4384 done
4389 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4390 echo "configure:4391: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4391 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4392 echo $ac_n "(cached) $ac_c" 1>&6
4393 else
4394 cat > conftest.$ac_ext <<EOF
4395 #line 4396 "configure"
4396 #include "confdefs.h"
4397 #include <sys/types.h>
4398 #include <signal.h>
4399 /* NetBSD declares sys_siglist in unistd.h. */
4400 #ifdef HAVE_UNISTD_H
4401 #include <unistd.h>
4402 #endif
4403 int main() {
4404 char *msg = *(sys_siglist + 1);
4405 ; return 0; }
4407 if { (eval echo configure:4408: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4408 rm -rf conftest*
4409 ac_cv_decl_sys_siglist=yes
4410 else
4411 echo "configure: failed program was:" >&5
4412 cat conftest.$ac_ext >&5
4413 rm -rf conftest*
4414 ac_cv_decl_sys_siglist=no
4416 rm -f conftest*
4419 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4420 if test $ac_cv_decl_sys_siglist = yes; then
4421 cat >> confdefs.h <<\EOF
4422 #define SYS_SIGLIST_DECLARED 1
4427 echo $ac_n "checking for working const""... $ac_c" 1>&6
4428 echo "configure:4429: checking for working const" >&5
4429 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4430 echo $ac_n "(cached) $ac_c" 1>&6
4431 else
4432 cat > conftest.$ac_ext <<EOF
4433 #line 4434 "configure"
4434 #include "confdefs.h"
4436 int main() {
4438 /* Ultrix mips cc rejects this. */
4439 typedef int charset[2]; const charset x;
4440 /* SunOS 4.1.1 cc rejects this. */
4441 char const *const *ccp;
4442 char **p;
4443 /* NEC SVR4.0.2 mips cc rejects this. */
4444 struct point {int x, y;};
4445 static struct point const zero = {0,0};
4446 /* AIX XL C 1.02.0.0 rejects this.
4447 It does not let you subtract one const X* pointer from another in an arm
4448 of an if-expression whose if-part is not a constant expression */
4449 const char *g = "string";
4450 ccp = &g + (g ? g-g : 0);
4451 /* HPUX 7.0 cc rejects these. */
4452 ++ccp;
4453 p = (char**) ccp;
4454 ccp = (char const *const *) p;
4455 { /* SCO 3.2v4 cc rejects this. */
4456 char *t;
4457 char const *s = 0 ? (char *) 0 : (char const *) 0;
4459 *t++ = 0;
4461 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4462 int x[] = {25, 17};
4463 const int *foo = &x[0];
4464 ++foo;
4466 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4467 typedef const int *iptr;
4468 iptr p = 0;
4469 ++p;
4471 { /* AIX XL C 1.02.0.0 rejects this saying
4472 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4473 struct s { int j; const int *ap[3]; };
4474 struct s *b; b->j = 5;
4476 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4477 const int foo = 10;
4480 ; return 0; }
4482 if { (eval echo configure:4483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4483 rm -rf conftest*
4484 ac_cv_c_const=yes
4485 else
4486 echo "configure: failed program was:" >&5
4487 cat conftest.$ac_ext >&5
4488 rm -rf conftest*
4489 ac_cv_c_const=no
4491 rm -f conftest*
4494 echo "$ac_t""$ac_cv_c_const" 1>&6
4495 if test $ac_cv_c_const = no; then
4496 cat >> confdefs.h <<\EOF
4497 #define const
4502 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4503 echo "configure:4504: checking for ANSI C header files" >&5
4504 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4505 echo $ac_n "(cached) $ac_c" 1>&6
4506 else
4507 cat > conftest.$ac_ext <<EOF
4508 #line 4509 "configure"
4509 #include "confdefs.h"
4510 #include <stdlib.h>
4511 #include <stdarg.h>
4512 #include <string.h>
4513 #include <float.h>
4515 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4516 { (eval echo configure:4517: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4517 ac_err=`grep -v '^ *+' conftest.out`
4518 if test -z "$ac_err"; then
4519 rm -rf conftest*
4520 ac_cv_header_stdc=yes
4521 else
4522 echo "$ac_err" >&5
4523 echo "configure: failed program was:" >&5
4524 cat conftest.$ac_ext >&5
4525 rm -rf conftest*
4526 ac_cv_header_stdc=no
4528 rm -f conftest*
4530 if test $ac_cv_header_stdc = yes; then
4531 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4532 cat > conftest.$ac_ext <<EOF
4533 #line 4534 "configure"
4534 #include "confdefs.h"
4535 #include <string.h>
4537 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4538 egrep "memchr" >/dev/null 2>&1; then
4540 else
4541 rm -rf conftest*
4542 ac_cv_header_stdc=no
4544 rm -f conftest*
4548 if test $ac_cv_header_stdc = yes; then
4549 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4550 cat > conftest.$ac_ext <<EOF
4551 #line 4552 "configure"
4552 #include "confdefs.h"
4553 #include <stdlib.h>
4555 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4556 egrep "free" >/dev/null 2>&1; then
4558 else
4559 rm -rf conftest*
4560 ac_cv_header_stdc=no
4562 rm -f conftest*
4566 if test $ac_cv_header_stdc = yes; then
4567 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4568 if test "$cross_compiling" = yes; then
4570 else
4571 cat > conftest.$ac_ext <<EOF
4572 #line 4573 "configure"
4573 #include "confdefs.h"
4574 #include <ctype.h>
4575 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4576 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4577 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4578 int main () { int i; for (i = 0; i < 256; i++)
4579 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4580 exit (0); }
4583 if { (eval echo configure:4584: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4584 then
4586 else
4587 echo "configure: failed program was:" >&5
4588 cat conftest.$ac_ext >&5
4589 rm -fr conftest*
4590 ac_cv_header_stdc=no
4592 rm -fr conftest*
4598 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4599 if test $ac_cv_header_stdc = yes; then
4600 cat >> confdefs.h <<\EOF
4601 #define STDC_HEADERS 1
4606 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4607 echo "configure:4608: checking for size_t" >&5
4608 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
4609 echo $ac_n "(cached) $ac_c" 1>&6
4610 else
4611 cat > conftest.$ac_ext <<EOF
4612 #line 4613 "configure"
4613 #include "confdefs.h"
4614 #include <sys/types.h>
4615 #if STDC_HEADERS
4616 #include <stdlib.h>
4617 #include <stddef.h>
4618 #endif
4620 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4621 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4622 rm -rf conftest*
4623 ac_cv_type_size_t=yes
4624 else
4625 rm -rf conftest*
4626 ac_cv_type_size_t=no
4628 rm -f conftest*
4631 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4632 if test $ac_cv_type_size_t = no; then
4633 cat >> confdefs.h <<\EOF
4634 #define size_t unsigned
4639 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4640 echo "configure:4641: checking for pid_t" >&5
4641 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4642 echo $ac_n "(cached) $ac_c" 1>&6
4643 else
4644 cat > conftest.$ac_ext <<EOF
4645 #line 4646 "configure"
4646 #include "confdefs.h"
4647 #include <sys/types.h>
4648 #if STDC_HEADERS
4649 #include <stdlib.h>
4650 #include <stddef.h>
4651 #endif
4653 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4654 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4655 rm -rf conftest*
4656 ac_cv_type_pid_t=yes
4657 else
4658 rm -rf conftest*
4659 ac_cv_type_pid_t=no
4661 rm -f conftest*
4664 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4665 if test $ac_cv_type_pid_t = no; then
4666 cat >> confdefs.h <<\EOF
4667 #define pid_t int
4672 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4673 echo "configure:4674: checking whether time.h and sys/time.h may both be included" >&5
4674 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4675 echo $ac_n "(cached) $ac_c" 1>&6
4676 else
4677 cat > conftest.$ac_ext <<EOF
4678 #line 4679 "configure"
4679 #include "confdefs.h"
4680 #include <sys/types.h>
4681 #include <sys/time.h>
4682 #include <time.h>
4683 int main() {
4684 struct tm *tp;
4685 ; return 0; }
4687 if { (eval echo configure:4688: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4688 rm -rf conftest*
4689 ac_cv_header_time=yes
4690 else
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4693 rm -rf conftest*
4694 ac_cv_header_time=no
4696 rm -f conftest*
4699 echo "$ac_t""$ac_cv_header_time" 1>&6
4700 if test $ac_cv_header_time = yes; then
4701 cat >> confdefs.h <<\EOF
4702 #define TIME_WITH_SYS_TIME 1
4711 enable_shared=no
4712 #AC_ARG_ENABLE(shared,
4713 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4714 # enable_shared=no)
4716 if test "$enable_shared" = yes; then
4717 if test "$GCC" = yes; then
4718 _CFLAGS="-fPIC"
4719 LDSHARED='$CC -shared'
4720 else
4721 # find system name and corresponding cc options
4722 case `(uname -sr || echo unknown) 2>/dev/null` in
4723 SunOS\ 5*)
4724 _CFLAGS="-fast -xcg89 -KPIC -R."
4725 LDSHARED='$CC -G';;
4726 SunOS\ 4*)
4727 _CFLAGS="-PIC"
4728 LDSHARED="ld";;
4729 IRIX*)
4730 _CFLAGS="-ansi -rpath ."
4731 LDSHARED='$CC -shared';;
4732 SCO_SV\ 3.2*)
4733 _CFLAGS="-dy -KPIC "
4734 LDSHARED='$CC -dy -KPIC -G';;
4735 HP-UX*)
4736 _CFLAGS="+z"
4737 LDSHARED="ld -b"
4738 SHAREDLIBS='libz.sl';;
4740 _CFLAGS=""
4741 LDSHARED='$CC -shared';;
4742 esac
4745 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4746 echo "configure:4747: checking for shared library support" >&5
4748 test=tmptest$$
4749 cat > $test.c <<EOF
4750 int hello() { printf("hello\n"); }
4754 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4755 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4756 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4757 CFLAGS="$CFLAGS $_CFLAGS"
4758 WRASTERLIB='libwraster.so.$(WRASTER_VER)'
4759 WINGSLIB='libWINGs.so.$(WINGS_VER)'
4760 echo "$ac_t""yes, building shared" 1>&6
4761 else
4762 LDSHARED='$CC'
4763 WRASTERLIB='libwraster.a'
4764 WINGSLIB='libWINGs.a'
4765 echo "$ac_t""no, building static" 1>&6
4767 rm -f $test.co $test.so
4770 #AC_SUBST(WRASTER_VER)
4771 #AC_SUBST(WINGS_VER)
4772 #AC_SUBST(WRASTERLIB)
4773 # AC_SUBST(WINGSLIB)
4774 # AC_SUBST(LDSHARED)
4780 trap '' 1 2 15
4781 cat > confcache <<\EOF
4782 # This file is a shell script that caches the results of configure
4783 # tests run on this system so they can be shared between configure
4784 # scripts and configure runs. It is not useful on other systems.
4785 # If it contains results you don't want to keep, you may remove or edit it.
4787 # By default, configure uses ./config.cache as the cache file,
4788 # creating it if it does not exist already. You can give configure
4789 # the --cache-file=FILE option to use a different cache file; that is
4790 # what configure does when it calls configure scripts in
4791 # subdirectories, so they share the cache.
4792 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4793 # config.status only pays attention to the cache file if you give it the
4794 # --recheck option to rerun configure.
4797 # The following way of writing the cache mishandles newlines in values,
4798 # but we know of no workaround that is simple, portable, and efficient.
4799 # So, don't put newlines in cache variables' values.
4800 # Ultrix sh set writes to stderr and can't be redirected directly,
4801 # and sets the high bit in the cache file unless we assign to the vars.
4802 (set) 2>&1 |
4803 case `(ac_space=' '; set) 2>&1` in
4804 *ac_space=\ *)
4805 # `set' does not quote correctly, so add quotes (double-quote substitution
4806 # turns \\\\ into \\, and sed turns \\ into \).
4807 sed -n \
4808 -e "s/'/'\\\\''/g" \
4809 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4812 # `set' quotes correctly as required by POSIX, so do not add quotes.
4813 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4815 esac >> confcache
4816 if cmp -s $cache_file confcache; then
4818 else
4819 if test -w $cache_file; then
4820 echo "updating cache $cache_file"
4821 cat confcache > $cache_file
4822 else
4823 echo "not updating unwritable cache $cache_file"
4826 rm -f confcache
4828 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4830 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4831 # Let make expand exec_prefix.
4832 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4834 # Any assignment to VPATH causes Sun make to only execute
4835 # the first set of double-colon rules, so remove it if not needed.
4836 # If there is a colon in the path, we need to keep it.
4837 if test "x$srcdir" = x.; then
4838 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4841 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4843 DEFS=-DHAVE_CONFIG_H
4845 # Without the "./", some shells look in PATH for config.status.
4846 : ${CONFIG_STATUS=./config.status}
4848 echo creating $CONFIG_STATUS
4849 rm -f $CONFIG_STATUS
4850 cat > $CONFIG_STATUS <<EOF
4851 #! /bin/sh
4852 # Generated automatically by configure.
4853 # Run this file to recreate the current configuration.
4854 # This directory was configured as follows,
4855 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4857 # $0 $ac_configure_args
4859 # Compiler output produced by configure, useful for debugging
4860 # configure, is in ./config.log if it exists.
4862 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4863 for ac_option
4865 case "\$ac_option" in
4866 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4867 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4868 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4869 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4870 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4871 exit 0 ;;
4872 -help | --help | --hel | --he | --h)
4873 echo "\$ac_cs_usage"; exit 0 ;;
4874 *) echo "\$ac_cs_usage"; exit 1 ;;
4875 esac
4876 done
4878 ac_given_srcdir=$srcdir
4879 ac_given_INSTALL="$INSTALL"
4881 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4882 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4883 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4884 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
4885 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
4886 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
4887 WindowMaker/Themes/Makefile \
4888 WindowMaker/Themes/Night.themed/Makefile \
4889 WindowMaker/Themes/Checker.themed/Makefile \
4890 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4891 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4893 cat >> $CONFIG_STATUS <<EOF
4895 # Protect against being on the right side of a sed subst in config.status.
4896 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4897 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4898 $ac_vpsub
4899 $extrasub
4900 s%@CFLAGS@%$CFLAGS%g
4901 s%@CPPFLAGS@%$CPPFLAGS%g
4902 s%@CXXFLAGS@%$CXXFLAGS%g
4903 s%@DEFS@%$DEFS%g
4904 s%@LDFLAGS@%$LDFLAGS%g
4905 s%@LIBS@%$LIBS%g
4906 s%@exec_prefix@%$exec_prefix%g
4907 s%@prefix@%$prefix%g
4908 s%@program_transform_name@%$program_transform_name%g
4909 s%@bindir@%$bindir%g
4910 s%@sbindir@%$sbindir%g
4911 s%@libexecdir@%$libexecdir%g
4912 s%@datadir@%$datadir%g
4913 s%@sysconfdir@%$sysconfdir%g
4914 s%@sharedstatedir@%$sharedstatedir%g
4915 s%@localstatedir@%$localstatedir%g
4916 s%@libdir@%$libdir%g
4917 s%@includedir@%$includedir%g
4918 s%@oldincludedir@%$oldincludedir%g
4919 s%@infodir@%$infodir%g
4920 s%@mandir@%$mandir%g
4921 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4922 s%@INSTALL_DATA@%$INSTALL_DATA%g
4923 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4924 s%@PACKAGE@%$PACKAGE%g
4925 s%@VERSION@%$VERSION%g
4926 s%@ACLOCAL@%$ACLOCAL%g
4927 s%@AUTOCONF@%$AUTOCONF%g
4928 s%@AUTOMAKE@%$AUTOMAKE%g
4929 s%@AUTOHEADER@%$AUTOHEADER%g
4930 s%@MAKEINFO@%$MAKEINFO%g
4931 s%@SET_MAKE@%$SET_MAKE%g
4932 s%@host@%$host%g
4933 s%@host_alias@%$host_alias%g
4934 s%@host_cpu@%$host_cpu%g
4935 s%@host_vendor@%$host_vendor%g
4936 s%@host_os@%$host_os%g
4937 s%@RANLIB@%$RANLIB%g
4938 s%@CC@%$CC%g
4939 s%@LD@%$LD%g
4940 s%@NM@%$NM%g
4941 s%@LN_S@%$LN_S%g
4942 s%@LIBTOOL@%$LIBTOOL%g
4943 s%@subdirs@%$subdirs%g
4944 s%@CPP@%$CPP%g
4945 s%@ALLOCA@%$ALLOCA%g
4946 s%@CPP_PATH@%$CPP_PATH%g
4947 s%@XGETTEXT@%$XGETTEXT%g
4948 s%@I18N_MB@%$I18N_MB%g
4949 s%@I18N@%$I18N%g
4950 s%@INTLIBS@%$INTLIBS%g
4951 s%@NLSDIR@%$NLSDIR%g
4952 s%@MOFILES@%$MOFILES%g
4953 s%@WPMOFILES@%$WPMOFILES%g
4954 s%@LITE@%$LITE%g
4955 s%@X_CFLAGS@%$X_CFLAGS%g
4956 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4957 s%@X_LIBS@%$X_LIBS%g
4958 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4959 s%@X_LOCALE@%$X_LOCALE%g
4960 s%@SHAPE@%$SHAPE%g
4961 s%@XSHM@%$XSHM%g
4962 s%@XLIBS@%$XLIBS%g
4963 s%@XCFLAGS@%$XCFLAGS%g
4964 s%@XLFLAGS@%$XLFLAGS%g
4965 s%@GFXFLAGS@%$GFXFLAGS%g
4966 s%@GFXLFLAGS@%$GFXLFLAGS%g
4967 s%@GFXLIBS@%$GFXLIBS%g
4968 s%@ICONEXT@%$ICONEXT%g
4969 s%@DFLAGS@%$DFLAGS%g
4970 s%@SOUND@%$SOUND%g
4971 s%@pixmapdir@%$pixmapdir%g
4972 s%@wprefsdir@%$wprefsdir%g
4973 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4975 CEOF
4978 cat >> $CONFIG_STATUS <<\EOF
4980 # Split the substitutions into bite-sized pieces for seds with
4981 # small command number limits, like on Digital OSF/1 and HP-UX.
4982 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4983 ac_file=1 # Number of current file.
4984 ac_beg=1 # First line for current file.
4985 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4986 ac_more_lines=:
4987 ac_sed_cmds=""
4988 while $ac_more_lines; do
4989 if test $ac_beg -gt 1; then
4990 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4991 else
4992 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4994 if test ! -s conftest.s$ac_file; then
4995 ac_more_lines=false
4996 rm -f conftest.s$ac_file
4997 else
4998 if test -z "$ac_sed_cmds"; then
4999 ac_sed_cmds="sed -f conftest.s$ac_file"
5000 else
5001 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5003 ac_file=`expr $ac_file + 1`
5004 ac_beg=$ac_end
5005 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5007 done
5008 if test -z "$ac_sed_cmds"; then
5009 ac_sed_cmds=cat
5013 cat >> $CONFIG_STATUS <<EOF
5015 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5016 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5017 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
5018 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5019 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5020 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5021 WindowMaker/Themes/Makefile \
5022 WindowMaker/Themes/Night.themed/Makefile \
5023 WindowMaker/Themes/Checker.themed/Makefile \
5024 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5025 WPrefs.app/po/Makefile "}
5027 cat >> $CONFIG_STATUS <<\EOF
5028 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5029 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5030 case "$ac_file" in
5031 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5032 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5033 *) ac_file_in="${ac_file}.in" ;;
5034 esac
5036 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5038 # Remove last slash and all that follows it. Not all systems have dirname.
5039 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5040 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5041 # The file is in a subdirectory.
5042 test ! -d "$ac_dir" && mkdir "$ac_dir"
5043 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5044 # A "../" for each directory in $ac_dir_suffix.
5045 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5046 else
5047 ac_dir_suffix= ac_dots=
5050 case "$ac_given_srcdir" in
5051 .) srcdir=.
5052 if test -z "$ac_dots"; then top_srcdir=.
5053 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5054 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5055 *) # Relative path.
5056 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5057 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5058 esac
5060 case "$ac_given_INSTALL" in
5061 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5062 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5063 esac
5065 echo creating "$ac_file"
5066 rm -f "$ac_file"
5067 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5068 case "$ac_file" in
5069 *Makefile*) ac_comsub="1i\\
5070 # $configure_input" ;;
5071 *) ac_comsub= ;;
5072 esac
5074 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5075 sed -e "$ac_comsub
5076 s%@configure_input@%$configure_input%g
5077 s%@srcdir@%$srcdir%g
5078 s%@top_srcdir@%$top_srcdir%g
5079 s%@INSTALL@%$INSTALL%g
5080 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5081 fi; done
5082 rm -f conftest.s*
5084 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5085 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5087 # ac_d sets the value in "#define NAME VALUE" lines.
5088 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5089 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5090 ac_dC='\3'
5091 ac_dD='%g'
5092 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5093 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5094 ac_uB='\([ ]\)%\1#\2define\3'
5095 ac_uC=' '
5096 ac_uD='\4%g'
5097 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5098 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5099 ac_eB='$%\1#\2define\3'
5100 ac_eC=' '
5101 ac_eD='%g'
5103 if test "${CONFIG_HEADERS+set}" != set; then
5105 cat >> $CONFIG_STATUS <<EOF
5106 CONFIG_HEADERS="src/config.h"
5108 cat >> $CONFIG_STATUS <<\EOF
5110 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5111 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5112 case "$ac_file" in
5113 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5114 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5115 *) ac_file_in="${ac_file}.in" ;;
5116 esac
5118 echo creating $ac_file
5120 rm -f conftest.frag conftest.in conftest.out
5121 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5122 cat $ac_file_inputs > conftest.in
5126 # Transform confdefs.h into a sed script conftest.vals that substitutes
5127 # the proper values into config.h.in to produce config.h. And first:
5128 # Protect against being on the right side of a sed subst in config.status.
5129 # Protect against being in an unquoted here document in config.status.
5130 rm -f conftest.vals
5131 cat > conftest.hdr <<\EOF
5132 s/[\\&%]/\\&/g
5133 s%[\\$`]%\\&%g
5134 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5135 s%ac_d%ac_u%gp
5136 s%ac_u%ac_e%gp
5138 sed -n -f conftest.hdr confdefs.h > conftest.vals
5139 rm -f conftest.hdr
5141 # This sed command replaces #undef with comments. This is necessary, for
5142 # example, in the case of _POSIX_SOURCE, which is predefined and required
5143 # on some systems where configure will not decide to define it.
5144 cat >> conftest.vals <<\EOF
5145 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5148 # Break up conftest.vals because some shells have a limit on
5149 # the size of here documents, and old seds have small limits too.
5151 rm -f conftest.tail
5152 while :
5154 ac_lines=`grep -c . conftest.vals`
5155 # grep -c gives empty output for an empty file on some AIX systems.
5156 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5157 # Write a limited-size here document to conftest.frag.
5158 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5159 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5160 echo 'CEOF
5161 sed -f conftest.frag conftest.in > conftest.out
5162 rm -f conftest.in
5163 mv conftest.out conftest.in
5164 ' >> $CONFIG_STATUS
5165 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5166 rm -f conftest.vals
5167 mv conftest.tail conftest.vals
5168 done
5169 rm -f conftest.vals
5171 cat >> $CONFIG_STATUS <<\EOF
5172 rm -f conftest.frag conftest.h
5173 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5174 cat conftest.in >> conftest.h
5175 rm -f conftest.in
5176 if cmp -s $ac_file conftest.h 2>/dev/null; then
5177 echo "$ac_file is unchanged"
5178 rm -f conftest.h
5179 else
5180 # Remove last slash and all that follows it. Not all systems have dirname.
5181 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5182 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5183 # The file is in a subdirectory.
5184 test ! -d "$ac_dir" && mkdir "$ac_dir"
5186 rm -f $ac_file
5187 mv conftest.h $ac_file
5189 fi; done
5192 cat >> $CONFIG_STATUS <<EOF
5196 cat >> $CONFIG_STATUS <<\EOF
5197 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5199 exit 0
5201 chmod +x $CONFIG_STATUS
5202 rm -fr confdefs* $ac_clean_files
5203 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5205 if test "$no_recursion" != yes; then
5207 # Remove --cache-file and --srcdir arguments so they do not pile up.
5208 ac_sub_configure_args=
5209 ac_prev=
5210 for ac_arg in $ac_configure_args; do
5211 if test -n "$ac_prev"; then
5212 ac_prev=
5213 continue
5215 case "$ac_arg" in
5216 -cache-file | --cache-file | --cache-fil | --cache-fi \
5217 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5218 ac_prev=cache_file ;;
5219 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5220 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5222 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5223 ac_prev=srcdir ;;
5224 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5226 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5227 esac
5228 done
5230 for ac_config_dir in libPropList; do
5232 # Do not complain, so a configure script can configure whichever
5233 # parts of a large source tree are present.
5234 if test ! -d $srcdir/$ac_config_dir; then
5235 continue
5238 echo configuring in $ac_config_dir
5240 case "$srcdir" in
5241 .) ;;
5243 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5244 else
5245 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5248 esac
5250 ac_popdir=`pwd`
5251 cd $ac_config_dir
5253 # A "../" for each directory in /$ac_config_dir.
5254 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5256 case "$srcdir" in
5257 .) # No --srcdir option. We are building in place.
5258 ac_sub_srcdir=$srcdir ;;
5259 /*) # Absolute path.
5260 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5261 *) # Relative path.
5262 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5263 esac
5265 # Check for guested configure; otherwise get Cygnus style configure.
5266 if test -f $ac_sub_srcdir/configure; then
5267 ac_sub_configure=$ac_sub_srcdir/configure
5268 elif test -f $ac_sub_srcdir/configure.in; then
5269 ac_sub_configure=$ac_configure
5270 else
5271 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5272 ac_sub_configure=
5275 # The recursion is here.
5276 if test -n "$ac_sub_configure"; then
5278 # Make the cache file name correct relative to the subdirectory.
5279 case "$cache_file" in
5280 /*) ac_sub_cache_file=$cache_file ;;
5281 *) # Relative path.
5282 ac_sub_cache_file="$ac_dots$cache_file" ;;
5283 esac
5284 case "$ac_given_INSTALL" in
5285 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5286 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5287 esac
5289 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5290 # The eval makes quoting arguments work.
5291 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5292 then :
5293 else
5294 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5298 cd $ac_popdir
5299 done
5308 cat <<EOF >WINGs-flags
5309 #!/bin/sh
5311 prefix="$prefix"
5312 exec_prefix=\$prefix
5314 WFLAGS="$LIBPL_INC_PATH -I\$prefix/include"
5315 WLIBS="-L\$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm"
5317 usage="Usage: WINGs-flags #lp#--libs#rp# #lp#--incs#rp#"
5319 if test \$# -eq 0; then
5320 echo "\${usage}" 1>&2
5321 exit 1
5324 while test \$# -gt 0; do
5325 case \$1 in
5326 --incs)
5327 echo \$WFLAGS
5329 --libs)
5330 echo \$WLIBS
5333 echo "\${usage}" 1>&2
5334 exit 1
5336 esac
5337 shift
5338 done
5343 sed 's/#lp#/[/g' WINGs-flags | sed 's/#rp#/]/g' > WINGs/WINGs-flags
5345 chmod 755 WINGs/WINGs-flags
5346 rm -f WINGs-flags
5350 supported_gfx="$supported_gfx PPM (built-in)"
5352 if test "x$MOFILES" = "x"; then
5353 mof=none
5354 else
5355 mof=$MOFILES
5358 echo
5359 echo "Window Maker was configured as follows:"
5360 echo
5361 echo "Installation path prefix: $prefix"
5362 echo "Installation path prefix for binaries: $exec_prefix" | sed -e 's|\$(prefix)|'"$prefix|"
5363 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5364 echo "Graphic format libraries: $supported_gfx"
5365 echo "Sound support: $sound"
5366 echo "Translated message files to install: $mof"
5367 if test "x$MOFILES" != "x"; then
5368 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5370 if test x$kde_on != x; then
5371 echo "KDE support enabled"
5373 if test x$LITE != x; then
5374 echo "Duplicated stuff with KDE will be removed"
5376 if test x$gnome_on != x; then
5377 echo "GNOME support enabled"
5380 if test "$jpeg_not_found" = yes; then
5381 echo "JPEG support will not be included because the JPEG library is"
5382 echo "not installed correctly or was not found. Background images"
5383 echo "from themes will not display as they usually are JPEG files."