Updating to version 0.20.2
[wmaker-crm.git] / configure
blobe09b2f0b94a58f7d2b08f98fbb9a9f1b8d008aa2
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-kanji multibyte character support (kanji, Korean etc.)"
16 ac_help="$ac_help
17 --with-nlsdir=PATH specify where the locale stuff should go "
18 ac_help="$ac_help
19 --with-x use the X Window System"
20 ac_help="$ac_help
21 --disable-shape disable shaped window extension support"
22 ac_help="$ac_help
23 --disable-shm disable usage of MIT-SHM extension"
24 ac_help="$ac_help
25 --with-gfx-libs pass compiler flags to look for gfx libraries"
26 ac_help="$ac_help
27 --with-gfx-incs pass compiler flags to look for gfx header files"
28 ac_help="$ac_help
29 --disable-xpm disable use of XPM pixmaps through libXpm"
30 ac_help="$ac_help
31 --disable-jpeg disable JPEG support through libjpeg"
32 ac_help="$ac_help
33 --disable-gif disable GIF support through libgif or libungif"
34 ac_help="$ac_help
35 --disable-tiff disable use of TIFF images through libtiff"
36 ac_help="$ac_help
37 --enable-debug enable debugging "
38 ac_help="$ac_help
39 --enable-sound enable sound support "
40 ac_help="$ac_help
41 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
42 ac_help="$ac_help
43 --with-appspath=PATH specify the path of the GNUstep applications directory "
44 ac_help="$ac_help
45 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
48 # Initialize some variables set by options.
49 # The variables have the same names as the options, with
50 # dashes changed to underlines.
51 build=NONE
52 cache_file=./config.cache
53 exec_prefix=NONE
54 host=NONE
55 no_create=
56 nonopt=NONE
57 no_recursion=
58 prefix=NONE
59 program_prefix=NONE
60 program_suffix=NONE
61 program_transform_name=s,x,x,
62 silent=
63 site=
64 srcdir=
65 target=NONE
66 verbose=
67 x_includes=NONE
68 x_libraries=NONE
69 bindir='${exec_prefix}/bin'
70 sbindir='${exec_prefix}/sbin'
71 libexecdir='${exec_prefix}/libexec'
72 datadir='${prefix}/share'
73 sysconfdir='${prefix}/etc'
74 sharedstatedir='${prefix}/com'
75 localstatedir='${prefix}/var'
76 libdir='${exec_prefix}/lib'
77 includedir='${prefix}/include'
78 oldincludedir='/usr/include'
79 infodir='${prefix}/info'
80 mandir='${prefix}/man'
82 # Initialize some other variables.
83 subdirs=
84 MFLAGS= MAKEFLAGS=
85 # Maximum number of lines to put in a shell here document.
86 ac_max_here_lines=12
88 ac_prev=
89 for ac_option
92 # If the previous option needs an argument, assign it.
93 if test -n "$ac_prev"; then
94 eval "$ac_prev=\$ac_option"
95 ac_prev=
96 continue
99 case "$ac_option" in
100 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
101 *) ac_optarg= ;;
102 esac
104 # Accept the important Cygnus configure options, so we can diagnose typos.
106 case "$ac_option" in
108 -bindir | --bindir | --bindi | --bind | --bin | --bi)
109 ac_prev=bindir ;;
110 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
111 bindir="$ac_optarg" ;;
113 -build | --build | --buil | --bui | --bu)
114 ac_prev=build ;;
115 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
116 build="$ac_optarg" ;;
118 -cache-file | --cache-file | --cache-fil | --cache-fi \
119 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
120 ac_prev=cache_file ;;
121 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
122 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
123 cache_file="$ac_optarg" ;;
125 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
126 ac_prev=datadir ;;
127 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
128 | --da=*)
129 datadir="$ac_optarg" ;;
131 -disable-* | --disable-*)
132 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
133 # Reject names that are not valid shell variable names.
134 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
135 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
137 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
138 eval "enable_${ac_feature}=no" ;;
140 -enable-* | --enable-*)
141 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
147 case "$ac_option" in
148 *=*) ;;
149 *) ac_optarg=yes ;;
150 esac
151 eval "enable_${ac_feature}='$ac_optarg'" ;;
153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
155 | --exec | --exe | --ex)
156 ac_prev=exec_prefix ;;
157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
159 | --exec=* | --exe=* | --ex=*)
160 exec_prefix="$ac_optarg" ;;
162 -gas | --gas | --ga | --g)
163 # Obsolete; use --with-gas.
164 with_gas=yes ;;
166 -help | --help | --hel | --he)
167 # Omit some internal or obsolete options to make the list less imposing.
168 # This message is too long to be a string in the A/UX 3.1 sh.
169 cat << EOF
170 Usage: configure [options] [host]
171 Options: [defaults in brackets after descriptions]
172 Configuration:
173 --cache-file=FILE cache test results in FILE
174 --help print this message
175 --no-create do not create output files
176 --quiet, --silent do not print \`checking...' messages
177 --version print the version of autoconf that created configure
178 Directory and file names:
179 --prefix=PREFIX install architecture-independent files in PREFIX
180 [$ac_default_prefix]
181 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
182 [same as prefix]
183 --bindir=DIR user executables in DIR [EPREFIX/bin]
184 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
185 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
186 --datadir=DIR read-only architecture-independent data in DIR
187 [PREFIX/share]
188 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
189 --sharedstatedir=DIR modifiable architecture-independent data in DIR
190 [PREFIX/com]
191 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
192 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
193 --includedir=DIR C header files in DIR [PREFIX/include]
194 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
195 --infodir=DIR info documentation in DIR [PREFIX/info]
196 --mandir=DIR man documentation in DIR [PREFIX/man]
197 --srcdir=DIR find the sources in DIR [configure dir or ..]
198 --program-prefix=PREFIX prepend PREFIX to installed program names
199 --program-suffix=SUFFIX append SUFFIX to installed program names
200 --program-transform-name=PROGRAM
201 run sed PROGRAM on installed program names
203 cat << EOF
204 Host type:
205 --build=BUILD configure for building on BUILD [BUILD=HOST]
206 --host=HOST configure for HOST [guessed]
207 --target=TARGET configure for TARGET [TARGET=HOST]
208 Features and packages:
209 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
210 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
211 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
212 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
213 --x-includes=DIR X include files are in DIR
214 --x-libraries=DIR X library files are in DIR
216 if test -n "$ac_help"; then
217 echo "--enable and --with options recognized:$ac_help"
219 exit 0 ;;
221 -host | --host | --hos | --ho)
222 ac_prev=host ;;
223 -host=* | --host=* | --hos=* | --ho=*)
224 host="$ac_optarg" ;;
226 -includedir | --includedir | --includedi | --included | --include \
227 | --includ | --inclu | --incl | --inc)
228 ac_prev=includedir ;;
229 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
230 | --includ=* | --inclu=* | --incl=* | --inc=*)
231 includedir="$ac_optarg" ;;
233 -infodir | --infodir | --infodi | --infod | --info | --inf)
234 ac_prev=infodir ;;
235 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
236 infodir="$ac_optarg" ;;
238 -libdir | --libdir | --libdi | --libd)
239 ac_prev=libdir ;;
240 -libdir=* | --libdir=* | --libdi=* | --libd=*)
241 libdir="$ac_optarg" ;;
243 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
244 | --libexe | --libex | --libe)
245 ac_prev=libexecdir ;;
246 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
247 | --libexe=* | --libex=* | --libe=*)
248 libexecdir="$ac_optarg" ;;
250 -localstatedir | --localstatedir | --localstatedi | --localstated \
251 | --localstate | --localstat | --localsta | --localst \
252 | --locals | --local | --loca | --loc | --lo)
253 ac_prev=localstatedir ;;
254 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
255 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
256 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
257 localstatedir="$ac_optarg" ;;
259 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
260 ac_prev=mandir ;;
261 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
262 mandir="$ac_optarg" ;;
264 -nfp | --nfp | --nf)
265 # Obsolete; use --without-fp.
266 with_fp=no ;;
268 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
269 | --no-cr | --no-c)
270 no_create=yes ;;
272 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
273 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
274 no_recursion=yes ;;
276 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
277 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
278 | --oldin | --oldi | --old | --ol | --o)
279 ac_prev=oldincludedir ;;
280 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
281 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
282 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
283 oldincludedir="$ac_optarg" ;;
285 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
286 ac_prev=prefix ;;
287 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
288 prefix="$ac_optarg" ;;
290 -program-prefix | --program-prefix | --program-prefi | --program-pref \
291 | --program-pre | --program-pr | --program-p)
292 ac_prev=program_prefix ;;
293 -program-prefix=* | --program-prefix=* | --program-prefi=* \
294 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
295 program_prefix="$ac_optarg" ;;
297 -program-suffix | --program-suffix | --program-suffi | --program-suff \
298 | --program-suf | --program-su | --program-s)
299 ac_prev=program_suffix ;;
300 -program-suffix=* | --program-suffix=* | --program-suffi=* \
301 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
302 program_suffix="$ac_optarg" ;;
304 -program-transform-name | --program-transform-name \
305 | --program-transform-nam | --program-transform-na \
306 | --program-transform-n | --program-transform- \
307 | --program-transform | --program-transfor \
308 | --program-transfo | --program-transf \
309 | --program-trans | --program-tran \
310 | --progr-tra | --program-tr | --program-t)
311 ac_prev=program_transform_name ;;
312 -program-transform-name=* | --program-transform-name=* \
313 | --program-transform-nam=* | --program-transform-na=* \
314 | --program-transform-n=* | --program-transform-=* \
315 | --program-transform=* | --program-transfor=* \
316 | --program-transfo=* | --program-transf=* \
317 | --program-trans=* | --program-tran=* \
318 | --progr-tra=* | --program-tr=* | --program-t=*)
319 program_transform_name="$ac_optarg" ;;
321 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
322 | -silent | --silent | --silen | --sile | --sil)
323 silent=yes ;;
325 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
326 ac_prev=sbindir ;;
327 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
328 | --sbi=* | --sb=*)
329 sbindir="$ac_optarg" ;;
331 -sharedstatedir | --sharedstatedir | --sharedstatedi \
332 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
333 | --sharedst | --shareds | --shared | --share | --shar \
334 | --sha | --sh)
335 ac_prev=sharedstatedir ;;
336 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
337 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
338 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
339 | --sha=* | --sh=*)
340 sharedstatedir="$ac_optarg" ;;
342 -site | --site | --sit)
343 ac_prev=site ;;
344 -site=* | --site=* | --sit=*)
345 site="$ac_optarg" ;;
347 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
348 ac_prev=srcdir ;;
349 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
350 srcdir="$ac_optarg" ;;
352 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
353 | --syscon | --sysco | --sysc | --sys | --sy)
354 ac_prev=sysconfdir ;;
355 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
356 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
357 sysconfdir="$ac_optarg" ;;
359 -target | --target | --targe | --targ | --tar | --ta | --t)
360 ac_prev=target ;;
361 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
362 target="$ac_optarg" ;;
364 -v | -verbose | --verbose | --verbos | --verbo | --verb)
365 verbose=yes ;;
367 -version | --version | --versio | --versi | --vers)
368 echo "configure generated by autoconf version 2.12"
369 exit 0 ;;
371 -with-* | --with-*)
372 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
373 # Reject names that are not valid shell variable names.
374 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
375 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
377 ac_package=`echo $ac_package| sed 's/-/_/g'`
378 case "$ac_option" in
379 *=*) ;;
380 *) ac_optarg=yes ;;
381 esac
382 eval "with_${ac_package}='$ac_optarg'" ;;
384 -without-* | --without-*)
385 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
386 # Reject names that are not valid shell variable names.
387 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
388 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
390 ac_package=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}=no" ;;
393 --x)
394 # Obsolete; use --with-x.
395 with_x=yes ;;
397 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
398 | --x-incl | --x-inc | --x-in | --x-i)
399 ac_prev=x_includes ;;
400 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
401 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
402 x_includes="$ac_optarg" ;;
404 -x-libraries | --x-libraries | --x-librarie | --x-librari \
405 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
406 ac_prev=x_libraries ;;
407 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
408 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
409 x_libraries="$ac_optarg" ;;
411 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
415 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
416 echo "configure: warning: $ac_option: invalid host type" 1>&2
418 if test "x$nonopt" != xNONE; then
419 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
421 nonopt="$ac_option"
424 esac
425 done
427 if test -n "$ac_prev"; then
428 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
431 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
433 # File descriptor usage:
434 # 0 standard input
435 # 1 file creation
436 # 2 errors and warnings
437 # 3 some systems may open it to /dev/tty
438 # 4 used on the Kubota Titan
439 # 6 checking for... messages and results
440 # 5 compiler messages saved in config.log
441 if test "$silent" = yes; then
442 exec 6>/dev/null
443 else
444 exec 6>&1
446 exec 5>./config.log
448 echo "\
449 This file contains any messages produced by compilers while
450 running configure, to aid debugging if configure makes a mistake.
451 " 1>&5
453 # Strip out --no-create and --no-recursion so they do not pile up.
454 # Also quote any args containing shell metacharacters.
455 ac_configure_args=
456 for ac_arg
458 case "$ac_arg" in
459 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
460 | --no-cr | --no-c) ;;
461 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
462 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
463 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
464 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
465 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
466 esac
467 done
469 # NLS nuisances.
470 # Only set these to C if already set. These must not be set unconditionally
471 # because not all systems understand e.g. LANG=C (notably SCO).
472 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
473 # Non-C LC_CTYPE values break the ctype check.
474 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
475 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
476 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
477 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
479 # confdefs.h avoids OS command line length limits that DEFS can exceed.
480 rm -rf conftest* confdefs.h
481 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
482 echo > confdefs.h
484 # A filename unique to this package, relative to the directory that
485 # configure is in, which we can look for to find out if srcdir is correct.
486 ac_unique_file=src/WindowMaker.h
488 # Find the source files, if location was not specified.
489 if test -z "$srcdir"; then
490 ac_srcdir_defaulted=yes
491 # Try the directory containing this script, then its parent.
492 ac_prog=$0
493 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
494 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
495 srcdir=$ac_confdir
496 if test ! -r $srcdir/$ac_unique_file; then
497 srcdir=..
499 else
500 ac_srcdir_defaulted=no
502 if test ! -r $srcdir/$ac_unique_file; then
503 if test "$ac_srcdir_defaulted" = yes; then
504 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
505 else
506 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
509 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
511 # Prefer explicitly selected file to automatically selected ones.
512 if test -z "$CONFIG_SITE"; then
513 if test "x$prefix" != xNONE; then
514 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
515 else
516 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
519 for ac_site_file in $CONFIG_SITE; do
520 if test -r "$ac_site_file"; then
521 echo "loading site script $ac_site_file"
522 . "$ac_site_file"
524 done
526 if test -r "$cache_file"; then
527 echo "loading cache $cache_file"
528 . $cache_file
529 else
530 echo "creating cache $cache_file"
531 > $cache_file
534 ac_ext=c
535 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
536 ac_cpp='$CPP $CPPFLAGS'
537 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
538 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
539 cross_compiling=$ac_cv_prog_cc_cross
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='
545 ' ac_t=' '
546 else
547 ac_n=-n ac_c= ac_t=
549 else
550 ac_n= ac_c='\c' ac_t=
555 ac_aux_dir=
556 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
557 if test -f $ac_dir/install-sh; then
558 ac_aux_dir=$ac_dir
559 ac_install_sh="$ac_aux_dir/install-sh -c"
560 break
561 elif test -f $ac_dir/install.sh; then
562 ac_aux_dir=$ac_dir
563 ac_install_sh="$ac_aux_dir/install.sh -c"
564 break
566 done
567 if test -z "$ac_aux_dir"; then
568 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
570 ac_config_guess=$ac_aux_dir/config.guess
571 ac_config_sub=$ac_aux_dir/config.sub
572 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
574 # Find a good install program. We prefer a C program (faster),
575 # so one script is as good as another. But avoid the broken or
576 # incompatible versions:
577 # SysV /etc/install, /usr/sbin/install
578 # SunOS /usr/etc/install
579 # IRIX /sbin/install
580 # AIX /bin/install
581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
583 # ./install, which can be erroneously created by make from ./install.sh.
584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
585 echo "configure:586: checking for a BSD compatible install" >&5
586 if test -z "$INSTALL"; then
587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
589 else
590 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
591 for ac_dir in $PATH; do
592 # Account for people who put trailing slashes in PATH elements.
593 case "$ac_dir/" in
594 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
596 # OSF1 and SCO ODT 3.0 have their own names for install.
597 for ac_prog in ginstall installbsd scoinst install; do
598 if test -f $ac_dir/$ac_prog; then
599 if test $ac_prog = install &&
600 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
601 # AIX install. It has an incompatible calling convention.
602 # OSF/1 installbsd also uses dspmsg, but is usable.
604 else
605 ac_cv_path_install="$ac_dir/$ac_prog -c"
606 break 2
609 done
611 esac
612 done
613 IFS="$ac_save_IFS"
616 if test "${ac_cv_path_install+set}" = set; then
617 INSTALL="$ac_cv_path_install"
618 else
619 # As a last resort, use the slow shell script. We don't cache a
620 # path for INSTALL within a source directory, because that will
621 # break other packages using the cache if that directory is
622 # removed, or if the path is relative.
623 INSTALL="$ac_install_sh"
626 echo "$ac_t""$INSTALL" 1>&6
628 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
629 # It thinks the first close brace ends the variable substitution.
630 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
632 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
635 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
637 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
638 echo "configure:639: checking whether build environment is sane" >&5
639 # Just in case
640 sleep 1
641 echo timestamp > conftestfile
642 # Do `set' in a subshell so we don't clobber the current shell's
643 # arguments. Must try -L first in case configure is actually a
644 # symlink; some systems play weird games with the mod time of symlinks
645 # (eg FreeBSD returns the mod time of the symlink's containing
646 # directory).
647 if (
648 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
649 if test "$*" = "X"; then
650 # -L didn't work.
651 set X `ls -t $srcdir/configure conftestfile`
653 if test "$*" != "X $srcdir/configure conftestfile" \
654 && test "$*" != "X conftestfile $srcdir/configure"; then
656 # If neither matched, then we have a broken ls. This can happen
657 # if, for instance, CONFIG_SHELL is bash and it inherits a
658 # broken ls alias from the environment. This has actually
659 # happened. Such a system could not be considered "sane".
660 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
661 alias in your environment" 1>&2; exit 1; }
664 test "$2" = conftestfile
666 then
667 # Ok.
669 else
670 { echo "configure: error: newly created file is older than distributed files!
671 Check your system clock" 1>&2; exit 1; }
673 rm -f conftest*
674 echo "$ac_t""yes" 1>&6
675 if test "$program_transform_name" = s,x,x,; then
676 program_transform_name=
677 else
678 # Double any \ or $. echo might interpret backslashes.
679 cat <<\EOF_SED > conftestsed
680 s,\\,\\\\,g; s,\$,$$,g
681 EOF_SED
682 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 rm -f conftestsed
685 test "$program_prefix" != NONE &&
686 program_transform_name="s,^,${program_prefix},; $program_transform_name"
687 # Use a double $ so make ignores it.
688 test "$program_suffix" != NONE &&
689 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
691 # sed with no file args requires a program.
692 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
694 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
696 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
697 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 cat > conftestmake <<\EOF
701 all:
702 @echo 'ac_maketemp="${MAKE}"'
704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
705 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
706 if test -n "$ac_maketemp"; then
707 eval ac_cv_prog_make_${ac_make}_set=yes
708 else
709 eval ac_cv_prog_make_${ac_make}_set=no
711 rm -f conftestmake
713 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
714 echo "$ac_t""yes" 1>&6
715 SET_MAKE=
716 else
717 echo "$ac_t""no" 1>&6
718 SET_MAKE="MAKE=${MAKE-make}"
722 PACKAGE=WindowMaker
724 VERSION=0.20.2
726 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
727 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
729 cat >> confdefs.h <<EOF
730 #define PACKAGE "$PACKAGE"
733 cat >> confdefs.h <<EOF
734 #define VERSION "$VERSION"
739 missing_dir=`cd $ac_aux_dir && pwd`
740 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
741 echo "configure:742: checking for working aclocal" >&5
742 # Run test in a subshell; some versions of sh will print an error if
743 # an executable is not found, even if stderr is redirected.
744 # Redirect stdin to placate older versions of autoconf. Sigh.
745 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
746 ACLOCAL=aclocal
747 echo "$ac_t""found" 1>&6
748 else
749 ACLOCAL="$missing_dir/missing aclocal"
750 echo "$ac_t""missing" 1>&6
753 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
754 echo "configure:755: checking for working autoconf" >&5
755 # Run test in a subshell; some versions of sh will print an error if
756 # an executable is not found, even if stderr is redirected.
757 # Redirect stdin to placate older versions of autoconf. Sigh.
758 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
759 AUTOCONF=autoconf
760 echo "$ac_t""found" 1>&6
761 else
762 AUTOCONF="$missing_dir/missing autoconf"
763 echo "$ac_t""missing" 1>&6
766 echo $ac_n "checking for working automake""... $ac_c" 1>&6
767 echo "configure:768: checking for working automake" >&5
768 # Run test in a subshell; some versions of sh will print an error if
769 # an executable is not found, even if stderr is redirected.
770 # Redirect stdin to placate older versions of autoconf. Sigh.
771 if (automake --version) < /dev/null > /dev/null 2>&1; then
772 AUTOMAKE=automake
773 echo "$ac_t""found" 1>&6
774 else
775 AUTOMAKE="$missing_dir/missing automake"
776 echo "$ac_t""missing" 1>&6
779 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
780 echo "configure:781: checking for working autoheader" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
785 AUTOHEADER=autoheader
786 echo "$ac_t""found" 1>&6
787 else
788 AUTOHEADER="$missing_dir/missing autoheader"
789 echo "$ac_t""missing" 1>&6
792 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
793 echo "configure:794: checking for working makeinfo" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
798 MAKEINFO=makeinfo
799 echo "$ac_t""found" 1>&6
800 else
801 MAKEINFO="$missing_dir/missing makeinfo"
802 echo "$ac_t""missing" 1>&6
809 WINGS_VER=0.0.1
810 WRASTER_VER=0.0.1
813 subdirs="libPropList"
823 # Make sure we can run config.sub.
824 if $ac_config_sub sun4 >/dev/null 2>&1; then :
825 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
828 echo $ac_n "checking host system type""... $ac_c" 1>&6
829 echo "configure:830: checking host system type" >&5
831 host_alias=$host
832 case "$host_alias" in
833 NONE)
834 case $nonopt in
835 NONE)
836 if host_alias=`$ac_config_guess`; then :
837 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
838 fi ;;
839 *) host_alias=$nonopt ;;
840 esac ;;
841 esac
843 host=`$ac_config_sub $host_alias`
844 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
845 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
846 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
847 echo "$ac_t""$host" 1>&6
851 # Extract the first word of "gcc", so it can be a program name with args.
852 set dummy gcc; ac_word=$2
853 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
854 echo "configure:855: checking for $ac_word" >&5
855 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
856 echo $ac_n "(cached) $ac_c" 1>&6
857 else
858 if test -n "$CC"; then
859 ac_cv_prog_CC="$CC" # Let the user override the test.
860 else
861 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
862 for ac_dir in $PATH; do
863 test -z "$ac_dir" && ac_dir=.
864 if test -f $ac_dir/$ac_word; then
865 ac_cv_prog_CC="gcc"
866 break
868 done
869 IFS="$ac_save_ifs"
872 CC="$ac_cv_prog_CC"
873 if test -n "$CC"; then
874 echo "$ac_t""$CC" 1>&6
875 else
876 echo "$ac_t""no" 1>&6
879 if test -z "$CC"; then
880 # Extract the first word of "cc", so it can be a program name with args.
881 set dummy cc; ac_word=$2
882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
883 echo "configure:884: checking for $ac_word" >&5
884 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
885 echo $ac_n "(cached) $ac_c" 1>&6
886 else
887 if test -n "$CC"; then
888 ac_cv_prog_CC="$CC" # Let the user override the test.
889 else
890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
891 ac_prog_rejected=no
892 for ac_dir in $PATH; do
893 test -z "$ac_dir" && ac_dir=.
894 if test -f $ac_dir/$ac_word; then
895 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
896 ac_prog_rejected=yes
897 continue
899 ac_cv_prog_CC="cc"
900 break
902 done
903 IFS="$ac_save_ifs"
904 if test $ac_prog_rejected = yes; then
905 # We found a bogon in the path, so make sure we never use it.
906 set dummy $ac_cv_prog_CC
907 shift
908 if test $# -gt 0; then
909 # We chose a different compiler from the bogus one.
910 # However, it has the same basename, so the bogon will be chosen
911 # first if we set CC to just the basename; use the full file name.
912 shift
913 set dummy "$ac_dir/$ac_word" "$@"
914 shift
915 ac_cv_prog_CC="$@"
920 CC="$ac_cv_prog_CC"
921 if test -n "$CC"; then
922 echo "$ac_t""$CC" 1>&6
923 else
924 echo "$ac_t""no" 1>&6
927 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
930 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
931 echo "configure:932: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
933 ac_ext=c
934 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
935 ac_cpp='$CPP $CPPFLAGS'
936 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
937 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
938 cross_compiling=$ac_cv_prog_cc_cross
940 cat > conftest.$ac_ext <<EOF
941 #line 942 "configure"
942 #include "confdefs.h"
943 main(){return(0);}
945 if { (eval echo configure:946: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
946 ac_cv_prog_cc_works=yes
947 # If we can't run a trivial program, we are probably using a cross compiler.
948 if (./conftest; exit) 2>/dev/null; then
949 ac_cv_prog_cc_cross=no
950 else
951 ac_cv_prog_cc_cross=yes
953 else
954 echo "configure: failed program was:" >&5
955 cat conftest.$ac_ext >&5
956 ac_cv_prog_cc_works=no
958 rm -fr conftest*
960 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
961 if test $ac_cv_prog_cc_works = no; then
962 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
964 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
965 echo "configure:966: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
966 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
967 cross_compiling=$ac_cv_prog_cc_cross
969 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
970 echo "configure:971: checking whether we are using GNU C" >&5
971 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
972 echo $ac_n "(cached) $ac_c" 1>&6
973 else
974 cat > conftest.c <<EOF
975 #ifdef __GNUC__
976 yes;
977 #endif
979 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:980: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
980 ac_cv_prog_gcc=yes
981 else
982 ac_cv_prog_gcc=no
986 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
988 if test $ac_cv_prog_gcc = yes; then
989 GCC=yes
990 ac_test_CFLAGS="${CFLAGS+set}"
991 ac_save_CFLAGS="$CFLAGS"
992 CFLAGS=
993 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
994 echo "configure:995: checking whether ${CC-cc} accepts -g" >&5
995 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
996 echo $ac_n "(cached) $ac_c" 1>&6
997 else
998 echo 'void f(){}' > conftest.c
999 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1000 ac_cv_prog_cc_g=yes
1001 else
1002 ac_cv_prog_cc_g=no
1004 rm -f conftest*
1008 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1009 if test "$ac_test_CFLAGS" = set; then
1010 CFLAGS="$ac_save_CFLAGS"
1011 elif test $ac_cv_prog_cc_g = yes; then
1012 CFLAGS="-g -O2"
1013 else
1014 CFLAGS="-O2"
1016 else
1017 GCC=
1018 test "${CFLAGS+set}" = set || CFLAGS="-g"
1021 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1022 echo "configure:1023: checking for POSIXized ISC" >&5
1023 if test -d /etc/conf/kconfig.d &&
1024 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1025 then
1026 echo "$ac_t""yes" 1>&6
1027 ISC=yes # If later tests want to check for ISC.
1028 cat >> confdefs.h <<\EOF
1029 #define _POSIX_SOURCE 1
1032 if test "$GCC" = yes; then
1033 CC="$CC -posix"
1034 else
1035 CC="$CC -Xp"
1037 else
1038 echo "$ac_t""no" 1>&6
1039 ISC=
1042 # Extract the first word of "gcc", so it can be a program name with args.
1043 set dummy gcc; ac_word=$2
1044 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1045 echo "configure:1046: checking for $ac_word" >&5
1046 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1047 echo $ac_n "(cached) $ac_c" 1>&6
1048 else
1049 if test -n "$CC"; then
1050 ac_cv_prog_CC="$CC" # Let the user override the test.
1051 else
1052 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1053 for ac_dir in $PATH; do
1054 test -z "$ac_dir" && ac_dir=.
1055 if test -f $ac_dir/$ac_word; then
1056 ac_cv_prog_CC="gcc"
1057 break
1059 done
1060 IFS="$ac_save_ifs"
1063 CC="$ac_cv_prog_CC"
1064 if test -n "$CC"; then
1065 echo "$ac_t""$CC" 1>&6
1066 else
1067 echo "$ac_t""no" 1>&6
1070 if test -z "$CC"; then
1071 # Extract the first word of "cc", so it can be a program name with args.
1072 set dummy cc; ac_word=$2
1073 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1074 echo "configure:1075: checking for $ac_word" >&5
1075 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1076 echo $ac_n "(cached) $ac_c" 1>&6
1077 else
1078 if test -n "$CC"; then
1079 ac_cv_prog_CC="$CC" # Let the user override the test.
1080 else
1081 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1082 ac_prog_rejected=no
1083 for ac_dir in $PATH; do
1084 test -z "$ac_dir" && ac_dir=.
1085 if test -f $ac_dir/$ac_word; then
1086 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1087 ac_prog_rejected=yes
1088 continue
1090 ac_cv_prog_CC="cc"
1091 break
1093 done
1094 IFS="$ac_save_ifs"
1095 if test $ac_prog_rejected = yes; then
1096 # We found a bogon in the path, so make sure we never use it.
1097 set dummy $ac_cv_prog_CC
1098 shift
1099 if test $# -gt 0; then
1100 # We chose a different compiler from the bogus one.
1101 # However, it has the same basename, so the bogon will be chosen
1102 # first if we set CC to just the basename; use the full file name.
1103 shift
1104 set dummy "$ac_dir/$ac_word" "$@"
1105 shift
1106 ac_cv_prog_CC="$@"
1111 CC="$ac_cv_prog_CC"
1112 if test -n "$CC"; then
1113 echo "$ac_t""$CC" 1>&6
1114 else
1115 echo "$ac_t""no" 1>&6
1118 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1121 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1122 echo "configure:1123: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1124 ac_ext=c
1125 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1126 ac_cpp='$CPP $CPPFLAGS'
1127 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1128 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1129 cross_compiling=$ac_cv_prog_cc_cross
1131 cat > conftest.$ac_ext <<EOF
1132 #line 1133 "configure"
1133 #include "confdefs.h"
1134 main(){return(0);}
1136 if { (eval echo configure:1137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1137 ac_cv_prog_cc_works=yes
1138 # If we can't run a trivial program, we are probably using a cross compiler.
1139 if (./conftest; exit) 2>/dev/null; then
1140 ac_cv_prog_cc_cross=no
1141 else
1142 ac_cv_prog_cc_cross=yes
1144 else
1145 echo "configure: failed program was:" >&5
1146 cat conftest.$ac_ext >&5
1147 ac_cv_prog_cc_works=no
1149 rm -fr conftest*
1151 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1152 if test $ac_cv_prog_cc_works = no; then
1153 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1155 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1156 echo "configure:1157: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1157 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1158 cross_compiling=$ac_cv_prog_cc_cross
1160 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1161 echo "configure:1162: checking whether we are using GNU C" >&5
1162 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1163 echo $ac_n "(cached) $ac_c" 1>&6
1164 else
1165 cat > conftest.c <<EOF
1166 #ifdef __GNUC__
1167 yes;
1168 #endif
1170 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1171: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1171 ac_cv_prog_gcc=yes
1172 else
1173 ac_cv_prog_gcc=no
1177 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1179 if test $ac_cv_prog_gcc = yes; then
1180 GCC=yes
1181 ac_test_CFLAGS="${CFLAGS+set}"
1182 ac_save_CFLAGS="$CFLAGS"
1183 CFLAGS=
1184 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1185 echo "configure:1186: checking whether ${CC-cc} accepts -g" >&5
1186 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1187 echo $ac_n "(cached) $ac_c" 1>&6
1188 else
1189 echo 'void f(){}' > conftest.c
1190 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1191 ac_cv_prog_cc_g=yes
1192 else
1193 ac_cv_prog_cc_g=no
1195 rm -f conftest*
1199 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1200 if test "$ac_test_CFLAGS" = set; then
1201 CFLAGS="$ac_save_CFLAGS"
1202 elif test $ac_cv_prog_cc_g = yes; then
1203 CFLAGS="-g -O2"
1204 else
1205 CFLAGS="-O2"
1207 else
1208 GCC=
1209 test "${CFLAGS+set}" = set || CFLAGS="-g"
1212 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
1213 echo "configure:1214: checking whether ${MAKE-make} sets \${MAKE}" >&5
1214 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
1215 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
1216 echo $ac_n "(cached) $ac_c" 1>&6
1217 else
1218 cat > conftestmake <<\EOF
1219 all:
1220 @echo 'ac_maketemp="${MAKE}"'
1222 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1223 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
1224 if test -n "$ac_maketemp"; then
1225 eval ac_cv_prog_make_${ac_make}_set=yes
1226 else
1227 eval ac_cv_prog_make_${ac_make}_set=no
1229 rm -f conftestmake
1231 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1232 echo "$ac_t""yes" 1>&6
1233 SET_MAKE=
1234 else
1235 echo "$ac_t""no" 1>&6
1236 SET_MAKE="MAKE=${MAKE-make}"
1239 # Extract the first word of "ranlib", so it can be a program name with args.
1240 set dummy ranlib; ac_word=$2
1241 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1242 echo "configure:1243: checking for $ac_word" >&5
1243 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
1244 echo $ac_n "(cached) $ac_c" 1>&6
1245 else
1246 if test -n "$RANLIB"; then
1247 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
1248 else
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1250 for ac_dir in $PATH; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f $ac_dir/$ac_word; then
1253 ac_cv_prog_RANLIB="ranlib"
1254 break
1256 done
1257 IFS="$ac_save_ifs"
1258 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
1261 RANLIB="$ac_cv_prog_RANLIB"
1262 if test -n "$RANLIB"; then
1263 echo "$ac_t""$RANLIB" 1>&6
1264 else
1265 echo "$ac_t""no" 1>&6
1268 # Find a good install program. We prefer a C program (faster),
1269 # so one script is as good as another. But avoid the broken or
1270 # incompatible versions:
1271 # SysV /etc/install, /usr/sbin/install
1272 # SunOS /usr/etc/install
1273 # IRIX /sbin/install
1274 # AIX /bin/install
1275 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1276 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1277 # ./install, which can be erroneously created by make from ./install.sh.
1278 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
1279 echo "configure:1280: checking for a BSD compatible install" >&5
1280 if test -z "$INSTALL"; then
1281 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
1285 for ac_dir in $PATH; do
1286 # Account for people who put trailing slashes in PATH elements.
1287 case "$ac_dir/" in
1288 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
1290 # OSF1 and SCO ODT 3.0 have their own names for install.
1291 for ac_prog in ginstall installbsd scoinst install; do
1292 if test -f $ac_dir/$ac_prog; then
1293 if test $ac_prog = install &&
1294 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
1295 # AIX install. It has an incompatible calling convention.
1296 # OSF/1 installbsd also uses dspmsg, but is usable.
1298 else
1299 ac_cv_path_install="$ac_dir/$ac_prog -c"
1300 break 2
1303 done
1305 esac
1306 done
1307 IFS="$ac_save_IFS"
1310 if test "${ac_cv_path_install+set}" = set; then
1311 INSTALL="$ac_cv_path_install"
1312 else
1313 # As a last resort, use the slow shell script. We don't cache a
1314 # path for INSTALL within a source directory, because that will
1315 # break other packages using the cache if that directory is
1316 # removed, or if the path is relative.
1317 INSTALL="$ac_install_sh"
1320 echo "$ac_t""$INSTALL" 1>&6
1322 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1323 # It thinks the first close brace ends the variable substitution.
1324 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1326 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1328 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1329 echo "configure:1330: checking whether ln -s works" >&5
1330 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1331 echo $ac_n "(cached) $ac_c" 1>&6
1332 else
1333 rm -f conftestdata
1334 if ln -s X conftestdata 2>/dev/null
1335 then
1336 rm -f conftestdata
1337 ac_cv_prog_LN_S="ln -s"
1338 else
1339 ac_cv_prog_LN_S=ln
1342 LN_S="$ac_cv_prog_LN_S"
1343 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1344 echo "$ac_t""yes" 1>&6
1345 else
1346 echo "$ac_t""no" 1>&6
1349 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1350 echo "configure:1351: checking how to run the C preprocessor" >&5
1351 # On Suns, sometimes $CPP names a directory.
1352 if test -n "$CPP" && test -d "$CPP"; then
1353 CPP=
1355 if test -z "$CPP"; then
1356 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1357 echo $ac_n "(cached) $ac_c" 1>&6
1358 else
1359 # This must be in double quotes, not single quotes, because CPP may get
1360 # substituted into the Makefile and "${CC-cc}" will confuse make.
1361 CPP="${CC-cc} -E"
1362 # On the NeXT, cc -E runs the code through the compiler's parser,
1363 # not just through cpp.
1364 cat > conftest.$ac_ext <<EOF
1365 #line 1366 "configure"
1366 #include "confdefs.h"
1367 #include <assert.h>
1368 Syntax Error
1370 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1371 { (eval echo configure:1372: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1372 ac_err=`grep -v '^ *+' conftest.out`
1373 if test -z "$ac_err"; then
1375 else
1376 echo "$ac_err" >&5
1377 echo "configure: failed program was:" >&5
1378 cat conftest.$ac_ext >&5
1379 rm -rf conftest*
1380 CPP="${CC-cc} -E -traditional-cpp"
1381 cat > conftest.$ac_ext <<EOF
1382 #line 1383 "configure"
1383 #include "confdefs.h"
1384 #include <assert.h>
1385 Syntax Error
1387 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1388 { (eval echo configure:1389: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1389 ac_err=`grep -v '^ *+' conftest.out`
1390 if test -z "$ac_err"; then
1392 else
1393 echo "$ac_err" >&5
1394 echo "configure: failed program was:" >&5
1395 cat conftest.$ac_ext >&5
1396 rm -rf conftest*
1397 CPP=/lib/cpp
1399 rm -f conftest*
1401 rm -f conftest*
1402 ac_cv_prog_CPP="$CPP"
1404 CPP="$ac_cv_prog_CPP"
1405 else
1406 ac_cv_prog_CPP="$CPP"
1408 echo "$ac_t""$CPP" 1>&6
1410 if test $ac_cv_prog_gcc = yes; then
1411 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1412 echo "configure:1413: checking whether ${CC-cc} needs -traditional" >&5
1413 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1414 echo $ac_n "(cached) $ac_c" 1>&6
1415 else
1416 ac_pattern="Autoconf.*'x'"
1417 cat > conftest.$ac_ext <<EOF
1418 #line 1419 "configure"
1419 #include "confdefs.h"
1420 #include <sgtty.h>
1421 Autoconf TIOCGETP
1423 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1424 egrep "$ac_pattern" >/dev/null 2>&1; then
1425 rm -rf conftest*
1426 ac_cv_prog_gcc_traditional=yes
1427 else
1428 rm -rf conftest*
1429 ac_cv_prog_gcc_traditional=no
1431 rm -f conftest*
1434 if test $ac_cv_prog_gcc_traditional = no; then
1435 cat > conftest.$ac_ext <<EOF
1436 #line 1437 "configure"
1437 #include "confdefs.h"
1438 #include <termio.h>
1439 Autoconf TCGETA
1441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1442 egrep "$ac_pattern" >/dev/null 2>&1; then
1443 rm -rf conftest*
1444 ac_cv_prog_gcc_traditional=yes
1446 rm -f conftest*
1451 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1452 if test $ac_cv_prog_gcc_traditional = yes; then
1453 CC="$CC -traditional"
1459 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
1460 echo "configure:1461: checking return type of signal handlers" >&5
1461 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
1462 echo $ac_n "(cached) $ac_c" 1>&6
1463 else
1464 cat > conftest.$ac_ext <<EOF
1465 #line 1466 "configure"
1466 #include "confdefs.h"
1467 #include <sys/types.h>
1468 #include <signal.h>
1469 #ifdef signal
1470 #undef signal
1471 #endif
1472 #ifdef __cplusplus
1473 extern "C" void (*signal (int, void (*)(int)))(int);
1474 #else
1475 void (*signal ()) ();
1476 #endif
1478 int main() {
1479 int i;
1480 ; return 0; }
1482 if { (eval echo configure:1483: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1483 rm -rf conftest*
1484 ac_cv_type_signal=void
1485 else
1486 echo "configure: failed program was:" >&5
1487 cat conftest.$ac_ext >&5
1488 rm -rf conftest*
1489 ac_cv_type_signal=int
1491 rm -f conftest*
1494 echo "$ac_t""$ac_cv_type_signal" 1>&6
1495 cat >> confdefs.h <<EOF
1496 #define RETSIGTYPE $ac_cv_type_signal
1500 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1501 echo "configure:1502: checking for vprintf" >&5
1502 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1503 echo $ac_n "(cached) $ac_c" 1>&6
1504 else
1505 cat > conftest.$ac_ext <<EOF
1506 #line 1507 "configure"
1507 #include "confdefs.h"
1508 /* System header to define __stub macros and hopefully few prototypes,
1509 which can conflict with char vprintf(); below. */
1510 #include <assert.h>
1511 /* Override any gcc2 internal prototype to avoid an error. */
1512 /* We use char because int might match the return type of a gcc2
1513 builtin and then its argument prototype would still apply. */
1514 char vprintf();
1516 int main() {
1518 /* The GNU C library defines this for functions which it implements
1519 to always fail with ENOSYS. Some functions are actually named
1520 something starting with __ and the normal name is an alias. */
1521 #if defined (__stub_vprintf) || defined (__stub___vprintf)
1522 choke me
1523 #else
1524 vprintf();
1525 #endif
1527 ; return 0; }
1529 if { (eval echo configure:1530: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1530 rm -rf conftest*
1531 eval "ac_cv_func_vprintf=yes"
1532 else
1533 echo "configure: failed program was:" >&5
1534 cat conftest.$ac_ext >&5
1535 rm -rf conftest*
1536 eval "ac_cv_func_vprintf=no"
1538 rm -f conftest*
1541 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
1542 echo "$ac_t""yes" 1>&6
1543 cat >> confdefs.h <<\EOF
1544 #define HAVE_VPRINTF 1
1547 else
1548 echo "$ac_t""no" 1>&6
1551 if test "$ac_cv_func_vprintf" != yes; then
1552 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
1553 echo "configure:1554: checking for _doprnt" >&5
1554 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
1555 echo $ac_n "(cached) $ac_c" 1>&6
1556 else
1557 cat > conftest.$ac_ext <<EOF
1558 #line 1559 "configure"
1559 #include "confdefs.h"
1560 /* System header to define __stub macros and hopefully few prototypes,
1561 which can conflict with char _doprnt(); below. */
1562 #include <assert.h>
1563 /* Override any gcc2 internal prototype to avoid an error. */
1564 /* We use char because int might match the return type of a gcc2
1565 builtin and then its argument prototype would still apply. */
1566 char _doprnt();
1568 int main() {
1570 /* The GNU C library defines this for functions which it implements
1571 to always fail with ENOSYS. Some functions are actually named
1572 something starting with __ and the normal name is an alias. */
1573 #if defined (__stub__doprnt) || defined (__stub____doprnt)
1574 choke me
1575 #else
1576 _doprnt();
1577 #endif
1579 ; return 0; }
1581 if { (eval echo configure:1582: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1582 rm -rf conftest*
1583 eval "ac_cv_func__doprnt=yes"
1584 else
1585 echo "configure: failed program was:" >&5
1586 cat conftest.$ac_ext >&5
1587 rm -rf conftest*
1588 eval "ac_cv_func__doprnt=no"
1590 rm -f conftest*
1593 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
1594 echo "$ac_t""yes" 1>&6
1595 cat >> confdefs.h <<\EOF
1596 #define HAVE_DOPRNT 1
1599 else
1600 echo "$ac_t""no" 1>&6
1605 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
1606 # for constant arguments. Useless!
1607 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
1608 echo "configure:1609: checking for working alloca.h" >&5
1609 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
1610 echo $ac_n "(cached) $ac_c" 1>&6
1611 else
1612 cat > conftest.$ac_ext <<EOF
1613 #line 1614 "configure"
1614 #include "confdefs.h"
1615 #include <alloca.h>
1616 int main() {
1617 char *p = alloca(2 * sizeof(int));
1618 ; return 0; }
1620 if { (eval echo configure:1621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1621 rm -rf conftest*
1622 ac_cv_header_alloca_h=yes
1623 else
1624 echo "configure: failed program was:" >&5
1625 cat conftest.$ac_ext >&5
1626 rm -rf conftest*
1627 ac_cv_header_alloca_h=no
1629 rm -f conftest*
1632 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
1633 if test $ac_cv_header_alloca_h = yes; then
1634 cat >> confdefs.h <<\EOF
1635 #define HAVE_ALLOCA_H 1
1640 echo $ac_n "checking for alloca""... $ac_c" 1>&6
1641 echo "configure:1642: checking for alloca" >&5
1642 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
1643 echo $ac_n "(cached) $ac_c" 1>&6
1644 else
1645 cat > conftest.$ac_ext <<EOF
1646 #line 1647 "configure"
1647 #include "confdefs.h"
1649 #ifdef __GNUC__
1650 # define alloca __builtin_alloca
1651 #else
1652 # if HAVE_ALLOCA_H
1653 # include <alloca.h>
1654 # else
1655 # ifdef _AIX
1656 #pragma alloca
1657 # else
1658 # ifndef alloca /* predefined by HP cc +Olibcalls */
1659 char *alloca ();
1660 # endif
1661 # endif
1662 # endif
1663 #endif
1665 int main() {
1666 char *p = (char *) alloca(1);
1667 ; return 0; }
1669 if { (eval echo configure:1670: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1670 rm -rf conftest*
1671 ac_cv_func_alloca_works=yes
1672 else
1673 echo "configure: failed program was:" >&5
1674 cat conftest.$ac_ext >&5
1675 rm -rf conftest*
1676 ac_cv_func_alloca_works=no
1678 rm -f conftest*
1681 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
1682 if test $ac_cv_func_alloca_works = yes; then
1683 cat >> confdefs.h <<\EOF
1684 #define HAVE_ALLOCA 1
1689 if test $ac_cv_func_alloca_works = no; then
1690 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
1691 # that cause trouble. Some versions do not even contain alloca or
1692 # contain a buggy version. If you still want to use their alloca,
1693 # use ar to extract alloca.o from them instead of compiling alloca.c.
1694 ALLOCA=alloca.o
1695 cat >> confdefs.h <<\EOF
1696 #define C_ALLOCA 1
1700 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
1701 echo "configure:1702: checking whether alloca needs Cray hooks" >&5
1702 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
1703 echo $ac_n "(cached) $ac_c" 1>&6
1704 else
1705 cat > conftest.$ac_ext <<EOF
1706 #line 1707 "configure"
1707 #include "confdefs.h"
1708 #if defined(CRAY) && ! defined(CRAY2)
1709 webecray
1710 #else
1711 wenotbecray
1712 #endif
1715 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1716 egrep "webecray" >/dev/null 2>&1; then
1717 rm -rf conftest*
1718 ac_cv_os_cray=yes
1719 else
1720 rm -rf conftest*
1721 ac_cv_os_cray=no
1723 rm -f conftest*
1727 echo "$ac_t""$ac_cv_os_cray" 1>&6
1728 if test $ac_cv_os_cray = yes; then
1729 for ac_func in _getb67 GETB67 getb67; do
1730 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1731 echo "configure:1732: checking for $ac_func" >&5
1732 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1733 echo $ac_n "(cached) $ac_c" 1>&6
1734 else
1735 cat > conftest.$ac_ext <<EOF
1736 #line 1737 "configure"
1737 #include "confdefs.h"
1738 /* System header to define __stub macros and hopefully few prototypes,
1739 which can conflict with char $ac_func(); below. */
1740 #include <assert.h>
1741 /* Override any gcc2 internal prototype to avoid an error. */
1742 /* We use char because int might match the return type of a gcc2
1743 builtin and then its argument prototype would still apply. */
1744 char $ac_func();
1746 int main() {
1748 /* The GNU C library defines this for functions which it implements
1749 to always fail with ENOSYS. Some functions are actually named
1750 something starting with __ and the normal name is an alias. */
1751 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1752 choke me
1753 #else
1754 $ac_func();
1755 #endif
1757 ; return 0; }
1759 if { (eval echo configure:1760: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1760 rm -rf conftest*
1761 eval "ac_cv_func_$ac_func=yes"
1762 else
1763 echo "configure: failed program was:" >&5
1764 cat conftest.$ac_ext >&5
1765 rm -rf conftest*
1766 eval "ac_cv_func_$ac_func=no"
1768 rm -f conftest*
1771 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1772 echo "$ac_t""yes" 1>&6
1773 cat >> confdefs.h <<EOF
1774 #define CRAY_STACKSEG_END $ac_func
1777 break
1778 else
1779 echo "$ac_t""no" 1>&6
1782 done
1785 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
1786 echo "configure:1787: checking stack direction for C alloca" >&5
1787 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
1788 echo $ac_n "(cached) $ac_c" 1>&6
1789 else
1790 if test "$cross_compiling" = yes; then
1791 ac_cv_c_stack_direction=0
1792 else
1793 cat > conftest.$ac_ext <<EOF
1794 #line 1795 "configure"
1795 #include "confdefs.h"
1796 find_stack_direction ()
1798 static char *addr = 0;
1799 auto char dummy;
1800 if (addr == 0)
1802 addr = &dummy;
1803 return find_stack_direction ();
1805 else
1806 return (&dummy > addr) ? 1 : -1;
1808 main ()
1810 exit (find_stack_direction() < 0);
1813 if { (eval echo configure:1814: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
1814 then
1815 ac_cv_c_stack_direction=1
1816 else
1817 echo "configure: failed program was:" >&5
1818 cat conftest.$ac_ext >&5
1819 rm -fr conftest*
1820 ac_cv_c_stack_direction=-1
1822 rm -fr conftest*
1827 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
1828 cat >> confdefs.h <<EOF
1829 #define STACK_DIRECTION $ac_cv_c_stack_direction
1834 for ac_func in gethostname gettimeofday select poll strerror strncasecmp setpgid
1836 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
1837 echo "configure:1838: checking for $ac_func" >&5
1838 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
1839 echo $ac_n "(cached) $ac_c" 1>&6
1840 else
1841 cat > conftest.$ac_ext <<EOF
1842 #line 1843 "configure"
1843 #include "confdefs.h"
1844 /* System header to define __stub macros and hopefully few prototypes,
1845 which can conflict with char $ac_func(); below. */
1846 #include <assert.h>
1847 /* Override any gcc2 internal prototype to avoid an error. */
1848 /* We use char because int might match the return type of a gcc2
1849 builtin and then its argument prototype would still apply. */
1850 char $ac_func();
1852 int main() {
1854 /* The GNU C library defines this for functions which it implements
1855 to always fail with ENOSYS. Some functions are actually named
1856 something starting with __ and the normal name is an alias. */
1857 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
1858 choke me
1859 #else
1860 $ac_func();
1861 #endif
1863 ; return 0; }
1865 if { (eval echo configure:1866: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1866 rm -rf conftest*
1867 eval "ac_cv_func_$ac_func=yes"
1868 else
1869 echo "configure: failed program was:" >&5
1870 cat conftest.$ac_ext >&5
1871 rm -rf conftest*
1872 eval "ac_cv_func_$ac_func=no"
1874 rm -f conftest*
1877 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1879 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
1880 cat >> confdefs.h <<EOF
1881 #define $ac_tr_func 1
1884 else
1885 echo "$ac_t""no" 1>&6
1887 done
1891 # Extract the first word of "cpp", so it can be a program name with args.
1892 set dummy cpp; ac_word=$2
1893 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1894 echo "configure:1895: checking for $ac_word" >&5
1895 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
1896 echo $ac_n "(cached) $ac_c" 1>&6
1897 else
1898 case "$CPP_PATH" in
1900 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
1903 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
1904 for ac_dir in /lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib:$PATH$ac_dummy; do
1905 test -z "$ac_dir" && ac_dir=.
1906 if test -f $ac_dir/$ac_word; then
1907 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
1908 break
1910 done
1911 IFS="$ac_save_ifs"
1912 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
1914 esac
1916 CPP_PATH="$ac_cv_path_CPP_PATH"
1917 if test -n "$CPP_PATH"; then
1918 echo "$ac_t""$CPP_PATH" 1>&6
1919 else
1920 echo "$ac_t""no" 1>&6
1924 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
1925 if test "$GCC" = "yes"; then
1926 CPP_PATH="gcc -E -x c"
1927 else
1928 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
1929 CPP_PATH="$CPP_PATH -B"
1930 else
1931 echo "cpp, the C preprocessor was not found in your system."
1932 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
1933 exit
1937 cat >> confdefs.h <<EOF
1938 #define CPP_PATH "$CPP_PATH"
1947 INTLIBS=""
1950 echo $ac_n "checking for gettext""... $ac_c" 1>&6
1951 echo "configure:1952: checking for gettext" >&5
1952 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
1953 echo $ac_n "(cached) $ac_c" 1>&6
1954 else
1955 cat > conftest.$ac_ext <<EOF
1956 #line 1957 "configure"
1957 #include "confdefs.h"
1958 /* System header to define __stub macros and hopefully few prototypes,
1959 which can conflict with char gettext(); below. */
1960 #include <assert.h>
1961 /* Override any gcc2 internal prototype to avoid an error. */
1962 /* We use char because int might match the return type of a gcc2
1963 builtin and then its argument prototype would still apply. */
1964 char gettext();
1966 int main() {
1968 /* The GNU C library defines this for functions which it implements
1969 to always fail with ENOSYS. Some functions are actually named
1970 something starting with __ and the normal name is an alias. */
1971 #if defined (__stub_gettext) || defined (__stub___gettext)
1972 choke me
1973 #else
1974 gettext();
1975 #endif
1977 ; return 0; }
1979 if { (eval echo configure:1980: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1980 rm -rf conftest*
1981 eval "ac_cv_func_gettext=yes"
1982 else
1983 echo "configure: failed program was:" >&5
1984 cat conftest.$ac_ext >&5
1985 rm -rf conftest*
1986 eval "ac_cv_func_gettext=no"
1988 rm -f conftest*
1991 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
1992 echo "$ac_t""yes" 1>&6
1993 HAVEGETTEXT="yes"
1994 else
1995 echo "$ac_t""no" 1>&6
1996 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
1997 echo "configure:1998: checking for gettext in -lintl" >&5
1998 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
1999 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2000 echo $ac_n "(cached) $ac_c" 1>&6
2001 else
2002 ac_save_LIBS="$LIBS"
2003 LIBS="-lintl $LIBS"
2004 cat > conftest.$ac_ext <<EOF
2005 #line 2006 "configure"
2006 #include "confdefs.h"
2007 /* Override any gcc2 internal prototype to avoid an error. */
2008 /* We use char because int might match the return type of a gcc2
2009 builtin and then its argument prototype would still apply. */
2010 char gettext();
2012 int main() {
2013 gettext()
2014 ; return 0; }
2016 if { (eval echo configure:2017: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2017 rm -rf conftest*
2018 eval "ac_cv_lib_$ac_lib_var=yes"
2019 else
2020 echo "configure: failed program was:" >&5
2021 cat conftest.$ac_ext >&5
2022 rm -rf conftest*
2023 eval "ac_cv_lib_$ac_lib_var=no"
2025 rm -f conftest*
2026 LIBS="$ac_save_LIBS"
2029 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2030 echo "$ac_t""yes" 1>&6
2031 INTLIBS="-lintl" HAVEGETTEXT="yes"
2032 else
2033 echo "$ac_t""no" 1>&6
2034 INTLIBS=""
2040 # Extract the first word of "xgettext", so it can be a program name with args.
2041 set dummy xgettext; ac_word=$2
2042 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2043 echo "configure:2044: checking for $ac_word" >&5
2044 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2045 echo $ac_n "(cached) $ac_c" 1>&6
2046 else
2047 if test -n "$XGETTEXT"; then
2048 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2049 else
2050 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
2051 for ac_dir in $PATH; do
2052 test -z "$ac_dir" && ac_dir=.
2053 if test -f $ac_dir/$ac_word; then
2054 ac_cv_prog_XGETTEXT="xgettext"
2055 break
2057 done
2058 IFS="$ac_save_ifs"
2061 XGETTEXT="$ac_cv_prog_XGETTEXT"
2062 if test -n "$XGETTEXT"; then
2063 echo "$ac_t""$XGETTEXT" 1>&6
2064 else
2065 echo "$ac_t""no" 1>&6
2069 if test "$XGETTEXT" != ""; then
2070 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2071 echo "xgettext isn't GNU version"
2072 XGETTEXT=""
2076 if test "$LINGUAS" != ""; then
2077 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
2078 I18N="-DI18N"
2079 PO=""
2080 # if test "$LINGUAS" = ""; then
2081 # ling=` (cd src/po; /bin/ls *.po) `
2082 # for l in $ling; do
2083 # lcode=`basename $l .po`
2084 # LINGUAS="$LINGUAS $lcode"
2085 # done
2086 # fi
2087 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
2088 else
2089 I18N=""
2090 LINGUAS=""
2091 PO=""
2092 echo "xgettext and libintl.a don't both exist; will not build i18n support"
2094 else
2095 INTLIBS=""
2096 MOFILES=""
2097 WPMOFILES=""
2098 PO=""
2103 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro"
2104 supported_wprefs_locales="pt hr fr ko ja"
2106 for lang in $LINGUAS; do
2107 ok=0
2108 for l in $supported_locales; do
2109 if test "$l" = "$lang"; then
2110 ok=1
2111 break
2113 done
2114 if test "$ok" = 1; then
2115 MOFILES="$MOFILES $lang.mo"
2116 else
2117 echo "Locale $lang is not supported."
2119 ok=0
2120 for l in $supported_wprefs_locales; do
2121 if test "$l" = "$lang"; then
2122 ok=1
2123 break
2125 done
2126 if test "$ok" = 1; then
2127 WPMOFILES="$WPMOFILES $lang.mo"
2129 done
2132 I18n=no
2133 # Check whether --enable-kanji or --disable-kanji was given.
2134 if test "${enable_kanji+set}" = set; then
2135 enableval="$enable_kanji"
2137 else
2138 enable_kanji=no
2142 if test "$enable_kanji" = yes; then
2143 I18N_MB="#define I18N_MB"
2144 case $host_os in
2145 freebsd*)
2146 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
2147 echo "configure:2148: checking for setlocale in -lxpg4" >&5
2148 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
2149 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2150 echo $ac_n "(cached) $ac_c" 1>&6
2151 else
2152 ac_save_LIBS="$LIBS"
2153 LIBS="-lxpg4 $LIBS"
2154 cat > conftest.$ac_ext <<EOF
2155 #line 2156 "configure"
2156 #include "confdefs.h"
2157 /* Override any gcc2 internal prototype to avoid an error. */
2158 /* We use char because int might match the return type of a gcc2
2159 builtin and then its argument prototype would still apply. */
2160 char setlocale();
2162 int main() {
2163 setlocale()
2164 ; return 0; }
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2167 rm -rf conftest*
2168 eval "ac_cv_lib_$ac_lib_var=yes"
2169 else
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 rm -rf conftest*
2173 eval "ac_cv_lib_$ac_lib_var=no"
2175 rm -f conftest*
2176 LIBS="$ac_save_LIBS"
2179 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2180 echo "$ac_t""yes" 1>&6
2181 LIBS="$LIBS -lxpg4"
2182 else
2183 echo "$ac_t""no" 1>&6
2188 esac
2189 else
2190 I18N_MB="#undef I18N_MB"
2195 # Check whether --with-nlsdir or --without-nlsdir was given.
2196 if test "${with_nlsdir+set}" = set; then
2197 withval="$with_nlsdir"
2202 if test "x$NLSDIR" = "x"; then
2203 if test "x$with_nlsdir" != "x"; then
2204 NLSDIR=$with_nlsdir
2205 else
2206 NLSDIR="/usr/lib/locale"
2219 # If we find X, set shell vars x_includes and x_libraries to the
2220 # paths, otherwise set no_x=yes.
2221 # Uses ac_ vars as temps to allow command line to override cache and checks.
2222 # --without-x overrides everything else, but does not touch the cache.
2223 echo $ac_n "checking for X""... $ac_c" 1>&6
2224 echo "configure:2225: checking for X" >&5
2226 # Check whether --with-x or --without-x was given.
2227 if test "${with_x+set}" = set; then
2228 withval="$with_x"
2232 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
2233 if test "x$with_x" = xno; then
2234 # The user explicitly disabled X.
2235 have_x=disabled
2236 else
2237 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
2238 # Both variables are already set.
2239 have_x=yes
2240 else
2241 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
2242 echo $ac_n "(cached) $ac_c" 1>&6
2243 else
2244 # One or both of the vars are not set, and there is no cached value.
2245 ac_x_includes=NO ac_x_libraries=NO
2246 rm -fr conftestdir
2247 if mkdir conftestdir; then
2248 cd conftestdir
2249 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
2250 cat > Imakefile <<'EOF'
2251 acfindx:
2252 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
2254 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
2255 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2256 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
2257 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
2258 for ac_extension in a so sl; do
2259 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
2260 test -f $ac_im_libdir/libX11.$ac_extension; then
2261 ac_im_usrlibdir=$ac_im_libdir; break
2263 done
2264 # Screen out bogus values from the imake configuration. They are
2265 # bogus both because they are the default anyway, and because
2266 # using them would break gcc on systems where it needs fixed includes.
2267 case "$ac_im_incroot" in
2268 /usr/include) ;;
2269 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
2270 esac
2271 case "$ac_im_usrlibdir" in
2272 /usr/lib | /lib) ;;
2273 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
2274 esac
2276 cd ..
2277 rm -fr conftestdir
2280 if test "$ac_x_includes" = NO; then
2281 # Guess where to find include files, by looking for this one X11 .h file.
2282 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
2284 # First, try using that file with no special directory specified.
2285 cat > conftest.$ac_ext <<EOF
2286 #line 2287 "configure"
2287 #include "confdefs.h"
2288 #include <$x_direct_test_include>
2290 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2291 { (eval echo configure:2292: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2292 ac_err=`grep -v '^ *+' conftest.out`
2293 if test -z "$ac_err"; then
2294 rm -rf conftest*
2295 # We can compile using X headers with no special include directory.
2296 ac_x_includes=
2297 else
2298 echo "$ac_err" >&5
2299 echo "configure: failed program was:" >&5
2300 cat conftest.$ac_ext >&5
2301 rm -rf conftest*
2302 # Look for the header file in a standard set of common directories.
2303 # Check X11 before X11Rn because it is often a symlink to the current release.
2304 for ac_dir in \
2305 /usr/X11/include \
2306 /usr/X11R6/include \
2307 /usr/X11R5/include \
2308 /usr/X11R4/include \
2310 /usr/include/X11 \
2311 /usr/include/X11R6 \
2312 /usr/include/X11R5 \
2313 /usr/include/X11R4 \
2315 /usr/local/X11/include \
2316 /usr/local/X11R6/include \
2317 /usr/local/X11R5/include \
2318 /usr/local/X11R4/include \
2320 /usr/local/include/X11 \
2321 /usr/local/include/X11R6 \
2322 /usr/local/include/X11R5 \
2323 /usr/local/include/X11R4 \
2325 /usr/X386/include \
2326 /usr/x386/include \
2327 /usr/XFree86/include/X11 \
2329 /usr/include \
2330 /usr/local/include \
2331 /usr/unsupported/include \
2332 /usr/athena/include \
2333 /usr/local/x11r5/include \
2334 /usr/lpp/Xamples/include \
2336 /usr/openwin/include \
2337 /usr/openwin/share/include \
2340 if test -r "$ac_dir/$x_direct_test_include"; then
2341 ac_x_includes=$ac_dir
2342 break
2344 done
2346 rm -f conftest*
2347 fi # $ac_x_includes = NO
2349 if test "$ac_x_libraries" = NO; then
2350 # Check for the libraries.
2352 test -z "$x_direct_test_library" && x_direct_test_library=Xt
2353 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
2355 # See if we find them without any special options.
2356 # Don't add to $LIBS permanently.
2357 ac_save_LIBS="$LIBS"
2358 LIBS="-l$x_direct_test_library $LIBS"
2359 cat > conftest.$ac_ext <<EOF
2360 #line 2361 "configure"
2361 #include "confdefs.h"
2363 int main() {
2364 ${x_direct_test_function}()
2365 ; return 0; }
2367 if { (eval echo configure:2368: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2368 rm -rf conftest*
2369 LIBS="$ac_save_LIBS"
2370 # We can link X programs with no special library path.
2371 ac_x_libraries=
2372 else
2373 echo "configure: failed program was:" >&5
2374 cat conftest.$ac_ext >&5
2375 rm -rf conftest*
2376 LIBS="$ac_save_LIBS"
2377 # First see if replacing the include by lib works.
2378 # Check X11 before X11Rn because it is often a symlink to the current release.
2379 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
2380 /usr/X11/lib \
2381 /usr/X11R6/lib \
2382 /usr/X11R5/lib \
2383 /usr/X11R4/lib \
2385 /usr/lib/X11 \
2386 /usr/lib/X11R6 \
2387 /usr/lib/X11R5 \
2388 /usr/lib/X11R4 \
2390 /usr/local/X11/lib \
2391 /usr/local/X11R6/lib \
2392 /usr/local/X11R5/lib \
2393 /usr/local/X11R4/lib \
2395 /usr/local/lib/X11 \
2396 /usr/local/lib/X11R6 \
2397 /usr/local/lib/X11R5 \
2398 /usr/local/lib/X11R4 \
2400 /usr/X386/lib \
2401 /usr/x386/lib \
2402 /usr/XFree86/lib/X11 \
2404 /usr/lib \
2405 /usr/local/lib \
2406 /usr/unsupported/lib \
2407 /usr/athena/lib \
2408 /usr/local/x11r5/lib \
2409 /usr/lpp/Xamples/lib \
2410 /lib/usr/lib/X11 \
2412 /usr/openwin/lib \
2413 /usr/openwin/share/lib \
2416 for ac_extension in a so sl; do
2417 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
2418 ac_x_libraries=$ac_dir
2419 break 2
2421 done
2422 done
2424 rm -f conftest*
2425 fi # $ac_x_libraries = NO
2427 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
2428 # Didn't find X anywhere. Cache the known absence of X.
2429 ac_cv_have_x="have_x=no"
2430 else
2431 # Record where we found X for the cache.
2432 ac_cv_have_x="have_x=yes \
2433 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
2437 eval "$ac_cv_have_x"
2438 fi # $with_x != no
2440 if test "$have_x" != yes; then
2441 echo "$ac_t""$have_x" 1>&6
2442 no_x=yes
2443 else
2444 # If each of the values was on the command line, it overrides each guess.
2445 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
2446 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
2447 # Update the cache value to reflect the command line values.
2448 ac_cv_have_x="have_x=yes \
2449 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
2450 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
2453 if test "$no_x" = yes; then
2454 # Not all programs may use this symbol, but it does not hurt to define it.
2455 cat >> confdefs.h <<\EOF
2456 #define X_DISPLAY_MISSING 1
2459 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
2460 else
2461 if test -n "$x_includes"; then
2462 X_CFLAGS="$X_CFLAGS -I$x_includes"
2465 # It would also be nice to do this for all -L options, not just this one.
2466 if test -n "$x_libraries"; then
2467 X_LIBS="$X_LIBS -L$x_libraries"
2468 # For Solaris; some versions of Sun CC require a space after -R and
2469 # others require no space. Words are not sufficient . . . .
2470 case "`(uname -sr) 2>/dev/null`" in
2471 "SunOS 5"*)
2472 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
2473 echo "configure:2474: checking whether -R must be followed by a space" >&5
2474 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
2475 cat > conftest.$ac_ext <<EOF
2476 #line 2477 "configure"
2477 #include "confdefs.h"
2479 int main() {
2481 ; return 0; }
2483 if { (eval echo configure:2484: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2484 rm -rf conftest*
2485 ac_R_nospace=yes
2486 else
2487 echo "configure: failed program was:" >&5
2488 cat conftest.$ac_ext >&5
2489 rm -rf conftest*
2490 ac_R_nospace=no
2492 rm -f conftest*
2493 if test $ac_R_nospace = yes; then
2494 echo "$ac_t""no" 1>&6
2495 X_LIBS="$X_LIBS -R$x_libraries"
2496 else
2497 LIBS="$ac_xsave_LIBS -R $x_libraries"
2498 cat > conftest.$ac_ext <<EOF
2499 #line 2500 "configure"
2500 #include "confdefs.h"
2502 int main() {
2504 ; return 0; }
2506 if { (eval echo configure:2507: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2507 rm -rf conftest*
2508 ac_R_space=yes
2509 else
2510 echo "configure: failed program was:" >&5
2511 cat conftest.$ac_ext >&5
2512 rm -rf conftest*
2513 ac_R_space=no
2515 rm -f conftest*
2516 if test $ac_R_space = yes; then
2517 echo "$ac_t""yes" 1>&6
2518 X_LIBS="$X_LIBS -R $x_libraries"
2519 else
2520 echo "$ac_t""neither works" 1>&6
2523 LIBS="$ac_xsave_LIBS"
2524 esac
2527 # Check for system-dependent libraries X programs must link with.
2528 # Do this before checking for the system-independent R6 libraries
2529 # (-lICE), since we may need -lsocket or whatever for X linking.
2531 if test "$ISC" = yes; then
2532 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
2533 else
2534 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
2535 # libraries were built with DECnet support. And karl@cs.umb.edu says
2536 # the Alpha needs dnet_stub (dnet does not exist).
2537 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
2538 echo "configure:2539: checking for dnet_ntoa in -ldnet" >&5
2539 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2540 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2541 echo $ac_n "(cached) $ac_c" 1>&6
2542 else
2543 ac_save_LIBS="$LIBS"
2544 LIBS="-ldnet $LIBS"
2545 cat > conftest.$ac_ext <<EOF
2546 #line 2547 "configure"
2547 #include "confdefs.h"
2548 /* Override any gcc2 internal prototype to avoid an error. */
2549 /* We use char because int might match the return type of a gcc2
2550 builtin and then its argument prototype would still apply. */
2551 char dnet_ntoa();
2553 int main() {
2554 dnet_ntoa()
2555 ; return 0; }
2557 if { (eval echo configure:2558: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2558 rm -rf conftest*
2559 eval "ac_cv_lib_$ac_lib_var=yes"
2560 else
2561 echo "configure: failed program was:" >&5
2562 cat conftest.$ac_ext >&5
2563 rm -rf conftest*
2564 eval "ac_cv_lib_$ac_lib_var=no"
2566 rm -f conftest*
2567 LIBS="$ac_save_LIBS"
2570 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2571 echo "$ac_t""yes" 1>&6
2572 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
2573 else
2574 echo "$ac_t""no" 1>&6
2577 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
2578 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
2579 echo "configure:2580: checking for dnet_ntoa in -ldnet_stub" >&5
2580 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
2581 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2582 echo $ac_n "(cached) $ac_c" 1>&6
2583 else
2584 ac_save_LIBS="$LIBS"
2585 LIBS="-ldnet_stub $LIBS"
2586 cat > conftest.$ac_ext <<EOF
2587 #line 2588 "configure"
2588 #include "confdefs.h"
2589 /* Override any gcc2 internal prototype to avoid an error. */
2590 /* We use char because int might match the return type of a gcc2
2591 builtin and then its argument prototype would still apply. */
2592 char dnet_ntoa();
2594 int main() {
2595 dnet_ntoa()
2596 ; return 0; }
2598 if { (eval echo configure:2599: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2599 rm -rf conftest*
2600 eval "ac_cv_lib_$ac_lib_var=yes"
2601 else
2602 echo "configure: failed program was:" >&5
2603 cat conftest.$ac_ext >&5
2604 rm -rf conftest*
2605 eval "ac_cv_lib_$ac_lib_var=no"
2607 rm -f conftest*
2608 LIBS="$ac_save_LIBS"
2611 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2612 echo "$ac_t""yes" 1>&6
2613 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
2614 else
2615 echo "$ac_t""no" 1>&6
2620 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
2621 # to get the SysV transport functions.
2622 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
2623 # needs -lnsl.
2624 # The nsl library prevents programs from opening the X display
2625 # on Irix 5.2, according to dickey@clark.net.
2626 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
2627 echo "configure:2628: checking for gethostbyname" >&5
2628 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
2629 echo $ac_n "(cached) $ac_c" 1>&6
2630 else
2631 cat > conftest.$ac_ext <<EOF
2632 #line 2633 "configure"
2633 #include "confdefs.h"
2634 /* System header to define __stub macros and hopefully few prototypes,
2635 which can conflict with char gethostbyname(); below. */
2636 #include <assert.h>
2637 /* Override any gcc2 internal prototype to avoid an error. */
2638 /* We use char because int might match the return type of a gcc2
2639 builtin and then its argument prototype would still apply. */
2640 char gethostbyname();
2642 int main() {
2644 /* The GNU C library defines this for functions which it implements
2645 to always fail with ENOSYS. Some functions are actually named
2646 something starting with __ and the normal name is an alias. */
2647 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
2648 choke me
2649 #else
2650 gethostbyname();
2651 #endif
2653 ; return 0; }
2655 if { (eval echo configure:2656: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2656 rm -rf conftest*
2657 eval "ac_cv_func_gethostbyname=yes"
2658 else
2659 echo "configure: failed program was:" >&5
2660 cat conftest.$ac_ext >&5
2661 rm -rf conftest*
2662 eval "ac_cv_func_gethostbyname=no"
2664 rm -f conftest*
2667 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
2668 echo "$ac_t""yes" 1>&6
2670 else
2671 echo "$ac_t""no" 1>&6
2674 if test $ac_cv_func_gethostbyname = no; then
2675 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
2676 echo "configure:2677: checking for gethostbyname in -lnsl" >&5
2677 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
2678 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2679 echo $ac_n "(cached) $ac_c" 1>&6
2680 else
2681 ac_save_LIBS="$LIBS"
2682 LIBS="-lnsl $LIBS"
2683 cat > conftest.$ac_ext <<EOF
2684 #line 2685 "configure"
2685 #include "confdefs.h"
2686 /* Override any gcc2 internal prototype to avoid an error. */
2687 /* We use char because int might match the return type of a gcc2
2688 builtin and then its argument prototype would still apply. */
2689 char gethostbyname();
2691 int main() {
2692 gethostbyname()
2693 ; return 0; }
2695 if { (eval echo configure:2696: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2696 rm -rf conftest*
2697 eval "ac_cv_lib_$ac_lib_var=yes"
2698 else
2699 echo "configure: failed program was:" >&5
2700 cat conftest.$ac_ext >&5
2701 rm -rf conftest*
2702 eval "ac_cv_lib_$ac_lib_var=no"
2704 rm -f conftest*
2705 LIBS="$ac_save_LIBS"
2708 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2709 echo "$ac_t""yes" 1>&6
2710 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
2711 else
2712 echo "$ac_t""no" 1>&6
2717 # lieder@skyler.mavd.honeywell.com says without -lsocket,
2718 # socket/setsockopt and other routines are undefined under SCO ODT
2719 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
2720 # on later versions), says simon@lia.di.epfl.ch: it contains
2721 # gethostby* variants that don't use the nameserver (or something).
2722 # -lsocket must be given before -lnsl if both are needed.
2723 # We assume that if connect needs -lnsl, so does gethostbyname.
2724 echo $ac_n "checking for connect""... $ac_c" 1>&6
2725 echo "configure:2726: checking for connect" >&5
2726 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
2727 echo $ac_n "(cached) $ac_c" 1>&6
2728 else
2729 cat > conftest.$ac_ext <<EOF
2730 #line 2731 "configure"
2731 #include "confdefs.h"
2732 /* System header to define __stub macros and hopefully few prototypes,
2733 which can conflict with char connect(); below. */
2734 #include <assert.h>
2735 /* Override any gcc2 internal prototype to avoid an error. */
2736 /* We use char because int might match the return type of a gcc2
2737 builtin and then its argument prototype would still apply. */
2738 char connect();
2740 int main() {
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined (__stub_connect) || defined (__stub___connect)
2746 choke me
2747 #else
2748 connect();
2749 #endif
2751 ; return 0; }
2753 if { (eval echo configure:2754: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2754 rm -rf conftest*
2755 eval "ac_cv_func_connect=yes"
2756 else
2757 echo "configure: failed program was:" >&5
2758 cat conftest.$ac_ext >&5
2759 rm -rf conftest*
2760 eval "ac_cv_func_connect=no"
2762 rm -f conftest*
2765 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
2766 echo "$ac_t""yes" 1>&6
2768 else
2769 echo "$ac_t""no" 1>&6
2772 if test $ac_cv_func_connect = no; then
2773 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
2774 echo "configure:2775: checking for connect in -lsocket" >&5
2775 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
2776 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2777 echo $ac_n "(cached) $ac_c" 1>&6
2778 else
2779 ac_save_LIBS="$LIBS"
2780 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
2781 cat > conftest.$ac_ext <<EOF
2782 #line 2783 "configure"
2783 #include "confdefs.h"
2784 /* Override any gcc2 internal prototype to avoid an error. */
2785 /* We use char because int might match the return type of a gcc2
2786 builtin and then its argument prototype would still apply. */
2787 char connect();
2789 int main() {
2790 connect()
2791 ; return 0; }
2793 if { (eval echo configure:2794: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2794 rm -rf conftest*
2795 eval "ac_cv_lib_$ac_lib_var=yes"
2796 else
2797 echo "configure: failed program was:" >&5
2798 cat conftest.$ac_ext >&5
2799 rm -rf conftest*
2800 eval "ac_cv_lib_$ac_lib_var=no"
2802 rm -f conftest*
2803 LIBS="$ac_save_LIBS"
2806 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2807 echo "$ac_t""yes" 1>&6
2808 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
2809 else
2810 echo "$ac_t""no" 1>&6
2815 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
2816 echo $ac_n "checking for remove""... $ac_c" 1>&6
2817 echo "configure:2818: checking for remove" >&5
2818 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
2819 echo $ac_n "(cached) $ac_c" 1>&6
2820 else
2821 cat > conftest.$ac_ext <<EOF
2822 #line 2823 "configure"
2823 #include "confdefs.h"
2824 /* System header to define __stub macros and hopefully few prototypes,
2825 which can conflict with char remove(); below. */
2826 #include <assert.h>
2827 /* Override any gcc2 internal prototype to avoid an error. */
2828 /* We use char because int might match the return type of a gcc2
2829 builtin and then its argument prototype would still apply. */
2830 char remove();
2832 int main() {
2834 /* The GNU C library defines this for functions which it implements
2835 to always fail with ENOSYS. Some functions are actually named
2836 something starting with __ and the normal name is an alias. */
2837 #if defined (__stub_remove) || defined (__stub___remove)
2838 choke me
2839 #else
2840 remove();
2841 #endif
2843 ; return 0; }
2845 if { (eval echo configure:2846: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2846 rm -rf conftest*
2847 eval "ac_cv_func_remove=yes"
2848 else
2849 echo "configure: failed program was:" >&5
2850 cat conftest.$ac_ext >&5
2851 rm -rf conftest*
2852 eval "ac_cv_func_remove=no"
2854 rm -f conftest*
2857 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
2858 echo "$ac_t""yes" 1>&6
2860 else
2861 echo "$ac_t""no" 1>&6
2864 if test $ac_cv_func_remove = no; then
2865 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
2866 echo "configure:2867: checking for remove in -lposix" >&5
2867 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
2868 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2869 echo $ac_n "(cached) $ac_c" 1>&6
2870 else
2871 ac_save_LIBS="$LIBS"
2872 LIBS="-lposix $LIBS"
2873 cat > conftest.$ac_ext <<EOF
2874 #line 2875 "configure"
2875 #include "confdefs.h"
2876 /* Override any gcc2 internal prototype to avoid an error. */
2877 /* We use char because int might match the return type of a gcc2
2878 builtin and then its argument prototype would still apply. */
2879 char remove();
2881 int main() {
2882 remove()
2883 ; return 0; }
2885 if { (eval echo configure:2886: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2886 rm -rf conftest*
2887 eval "ac_cv_lib_$ac_lib_var=yes"
2888 else
2889 echo "configure: failed program was:" >&5
2890 cat conftest.$ac_ext >&5
2891 rm -rf conftest*
2892 eval "ac_cv_lib_$ac_lib_var=no"
2894 rm -f conftest*
2895 LIBS="$ac_save_LIBS"
2898 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
2901 else
2902 echo "$ac_t""no" 1>&6
2907 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
2908 echo $ac_n "checking for shmat""... $ac_c" 1>&6
2909 echo "configure:2910: checking for shmat" >&5
2910 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
2911 echo $ac_n "(cached) $ac_c" 1>&6
2912 else
2913 cat > conftest.$ac_ext <<EOF
2914 #line 2915 "configure"
2915 #include "confdefs.h"
2916 /* System header to define __stub macros and hopefully few prototypes,
2917 which can conflict with char shmat(); below. */
2918 #include <assert.h>
2919 /* Override any gcc2 internal prototype to avoid an error. */
2920 /* We use char because int might match the return type of a gcc2
2921 builtin and then its argument prototype would still apply. */
2922 char shmat();
2924 int main() {
2926 /* The GNU C library defines this for functions which it implements
2927 to always fail with ENOSYS. Some functions are actually named
2928 something starting with __ and the normal name is an alias. */
2929 #if defined (__stub_shmat) || defined (__stub___shmat)
2930 choke me
2931 #else
2932 shmat();
2933 #endif
2935 ; return 0; }
2937 if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2938 rm -rf conftest*
2939 eval "ac_cv_func_shmat=yes"
2940 else
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 rm -rf conftest*
2944 eval "ac_cv_func_shmat=no"
2946 rm -f conftest*
2949 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
2950 echo "$ac_t""yes" 1>&6
2952 else
2953 echo "$ac_t""no" 1>&6
2956 if test $ac_cv_func_shmat = no; then
2957 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
2958 echo "configure:2959: checking for shmat in -lipc" >&5
2959 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
2960 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2961 echo $ac_n "(cached) $ac_c" 1>&6
2962 else
2963 ac_save_LIBS="$LIBS"
2964 LIBS="-lipc $LIBS"
2965 cat > conftest.$ac_ext <<EOF
2966 #line 2967 "configure"
2967 #include "confdefs.h"
2968 /* Override any gcc2 internal prototype to avoid an error. */
2969 /* We use char because int might match the return type of a gcc2
2970 builtin and then its argument prototype would still apply. */
2971 char shmat();
2973 int main() {
2974 shmat()
2975 ; return 0; }
2977 if { (eval echo configure:2978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
2978 rm -rf conftest*
2979 eval "ac_cv_lib_$ac_lib_var=yes"
2980 else
2981 echo "configure: failed program was:" >&5
2982 cat conftest.$ac_ext >&5
2983 rm -rf conftest*
2984 eval "ac_cv_lib_$ac_lib_var=no"
2986 rm -f conftest*
2987 LIBS="$ac_save_LIBS"
2990 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2991 echo "$ac_t""yes" 1>&6
2992 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
2993 else
2994 echo "$ac_t""no" 1>&6
3000 # Check for libraries that X11R6 Xt/Xaw programs need.
3001 ac_save_LDFLAGS="$LDFLAGS"
3002 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
3003 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
3004 # check for ICE first), but we must link in the order -lSM -lICE or
3005 # we get undefined symbols. So assume we have SM if we have ICE.
3006 # These have to be linked with before -lX11, unlike the other
3007 # libraries we check for below, so use a different variable.
3008 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
3009 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
3010 echo "configure:3011: checking for IceConnectionNumber in -lICE" >&5
3011 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
3012 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3013 echo $ac_n "(cached) $ac_c" 1>&6
3014 else
3015 ac_save_LIBS="$LIBS"
3016 LIBS="-lICE $LIBS"
3017 cat > conftest.$ac_ext <<EOF
3018 #line 3019 "configure"
3019 #include "confdefs.h"
3020 /* Override any gcc2 internal prototype to avoid an error. */
3021 /* We use char because int might match the return type of a gcc2
3022 builtin and then its argument prototype would still apply. */
3023 char IceConnectionNumber();
3025 int main() {
3026 IceConnectionNumber()
3027 ; return 0; }
3029 if { (eval echo configure:3030: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3030 rm -rf conftest*
3031 eval "ac_cv_lib_$ac_lib_var=yes"
3032 else
3033 echo "configure: failed program was:" >&5
3034 cat conftest.$ac_ext >&5
3035 rm -rf conftest*
3036 eval "ac_cv_lib_$ac_lib_var=no"
3038 rm -f conftest*
3039 LIBS="$ac_save_LIBS"
3042 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3043 echo "$ac_t""yes" 1>&6
3044 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
3045 else
3046 echo "$ac_t""no" 1>&6
3049 LDFLAGS="$ac_save_LDFLAGS"
3054 XCFLAGS="$X_CFLAGS"
3056 XLFLAGS="$X_LIBS"
3058 XLIBS="$X_EXTRA_LIBS -lX11"
3060 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
3061 echo "configure:3062: checking for _Xsetlocale in -lX11" >&5
3062 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
3063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3064 echo $ac_n "(cached) $ac_c" 1>&6
3065 else
3066 ac_save_LIBS="$LIBS"
3067 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
3068 cat > conftest.$ac_ext <<EOF
3069 #line 3070 "configure"
3070 #include "confdefs.h"
3071 /* Override any gcc2 internal prototype to avoid an error. */
3072 /* We use char because int might match the return type of a gcc2
3073 builtin and then its argument prototype would still apply. */
3074 char _Xsetlocale();
3076 int main() {
3077 _Xsetlocale()
3078 ; return 0; }
3080 if { (eval echo configure:3081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3081 rm -rf conftest*
3082 eval "ac_cv_lib_$ac_lib_var=yes"
3083 else
3084 echo "configure: failed program was:" >&5
3085 cat conftest.$ac_ext >&5
3086 rm -rf conftest*
3087 eval "ac_cv_lib_$ac_lib_var=no"
3089 rm -f conftest*
3090 LIBS="$ac_save_LIBS"
3093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3094 echo "$ac_t""yes" 1>&6
3095 X_LOCALE="-DX_LOCALE"
3096 else
3097 echo "$ac_t""no" 1>&6
3103 shape=yes
3104 # Check whether --enable-shape or --disable-shape was given.
3105 if test "${enable_shape+set}" = set; then
3106 enableval="$enable_shape"
3107 shape=$enableval
3108 else
3109 shape=yes
3113 added_xext=no
3115 if test "$shape" = yes; then
3116 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
3117 echo "configure:3118: checking for XShapeSelectInput in -lXext" >&5
3118 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
3119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3121 else
3122 ac_save_LIBS="$LIBS"
3123 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130 char XShapeSelectInput();
3132 int main() {
3133 XShapeSelectInput()
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3137 rm -rf conftest*
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3139 else
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 rm -rf conftest*
3143 eval "ac_cv_lib_$ac_lib_var=no"
3145 rm -f conftest*
3146 LIBS="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 XLIBS="-lXext $XLIBS"
3152 added_xext=yes SHAPE=-DSHAPE
3153 else
3154 echo "$ac_t""no" 1>&6
3155 shape=no
3163 shm=yes
3164 # Check whether --enable-shm or --disable-shm was given.
3165 if test "${enable_shm+set}" = set; then
3166 enableval="$enable_shm"
3167 shm=$enableval
3168 else
3169 shm=yes
3173 if test "$shm" = yes; then
3174 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
3175 echo "configure:3176: checking for XShmAttach in -lXext" >&5
3176 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
3177 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3178 echo $ac_n "(cached) $ac_c" 1>&6
3179 else
3180 ac_save_LIBS="$LIBS"
3181 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
3182 cat > conftest.$ac_ext <<EOF
3183 #line 3184 "configure"
3184 #include "confdefs.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 XShmAttach();
3190 int main() {
3191 XShmAttach()
3192 ; return 0; }
3194 if { (eval echo configure:3195: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3195 rm -rf conftest*
3196 eval "ac_cv_lib_$ac_lib_var=yes"
3197 else
3198 echo "configure: failed program was:" >&5
3199 cat conftest.$ac_ext >&5
3200 rm -rf conftest*
3201 eval "ac_cv_lib_$ac_lib_var=no"
3203 rm -f conftest*
3204 LIBS="$ac_save_LIBS"
3207 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3208 echo "$ac_t""yes" 1>&6
3209 ok=yes
3210 else
3211 echo "$ac_t""no" 1>&6
3212 ok=no
3216 if test "$ok" = yes; then
3217 echo $ac_n "checking for shmget""... $ac_c" 1>&6
3218 echo "configure:3219: checking for shmget" >&5
3219 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
3220 echo $ac_n "(cached) $ac_c" 1>&6
3221 else
3222 cat > conftest.$ac_ext <<EOF
3223 #line 3224 "configure"
3224 #include "confdefs.h"
3225 /* System header to define __stub macros and hopefully few prototypes,
3226 which can conflict with char shmget(); below. */
3227 #include <assert.h>
3228 /* Override any gcc2 internal prototype to avoid an error. */
3229 /* We use char because int might match the return type of a gcc2
3230 builtin and then its argument prototype would still apply. */
3231 char shmget();
3233 int main() {
3235 /* The GNU C library defines this for functions which it implements
3236 to always fail with ENOSYS. Some functions are actually named
3237 something starting with __ and the normal name is an alias. */
3238 #if defined (__stub_shmget) || defined (__stub___shmget)
3239 choke me
3240 #else
3241 shmget();
3242 #endif
3244 ; return 0; }
3246 if { (eval echo configure:3247: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3247 rm -rf conftest*
3248 eval "ac_cv_func_shmget=yes"
3249 else
3250 echo "configure: failed program was:" >&5
3251 cat conftest.$ac_ext >&5
3252 rm -rf conftest*
3253 eval "ac_cv_func_shmget=no"
3255 rm -f conftest*
3258 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
3259 echo "$ac_t""yes" 1>&6
3260 ok=yes
3261 else
3262 echo "$ac_t""no" 1>&6
3263 ok=no
3268 if test "$ok" = yes; then
3269 if test "$added_xext" = no; then
3270 XLIBS="-lXext $XLIBS"
3272 XSHM=-DXSHM
3280 # Check whether --with-gfx-libs or --without-gfx-libs was given.
3281 if test "${with_gfx_libs+set}" = set; then
3282 withval="$with_gfx_libs"
3283 GFXLIBS="$withval" GFX_LIB_PATH=$withval
3284 else
3285 GFXLIBS="" GFX_LIB_PATH=""
3289 # Check whether --with-gfx-incs or --without-gfx-incs was given.
3290 if test "${with_gfx_incs+set}" = set; then
3291 withval="$with_gfx_incs"
3292 GFXFLAGS="$withval" GFX_INC_PATH=$withval
3293 else
3294 GFXFLAGS="" GFX_INC_PATH=""
3301 xpm=yes
3302 # Check whether --enable-xpm or --disable-xpm was given.
3303 if test "${enable_xpm+set}" = set; then
3304 enableval="$enable_xpm"
3305 xpm=$enableval
3306 else
3307 xpm=yes
3311 if test "$xpm" = yes; then
3312 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
3313 echo "configure:3314: checking for XpmCreatePixmapFromData in -lXpm" >&5
3314 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
3315 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3316 echo $ac_n "(cached) $ac_c" 1>&6
3317 else
3318 ac_save_LIBS="$LIBS"
3319 LIBS="-lXpm $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $LIBS"
3320 cat > conftest.$ac_ext <<EOF
3321 #line 3322 "configure"
3322 #include "confdefs.h"
3323 /* Override any gcc2 internal prototype to avoid an error. */
3324 /* We use char because int might match the return type of a gcc2
3325 builtin and then its argument prototype would still apply. */
3326 char XpmCreatePixmapFromData();
3328 int main() {
3329 XpmCreatePixmapFromData()
3330 ; return 0; }
3332 if { (eval echo configure:3333: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3333 rm -rf conftest*
3334 eval "ac_cv_lib_$ac_lib_var=yes"
3335 else
3336 echo "configure: failed program was:" >&5
3337 cat conftest.$ac_ext >&5
3338 rm -rf conftest*
3339 eval "ac_cv_lib_$ac_lib_var=no"
3341 rm -f conftest*
3342 LIBS="$ac_save_LIBS"
3345 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3346 echo "$ac_t""yes" 1>&6
3347 my_libok=yes
3348 else
3349 echo "$ac_t""no" 1>&6
3350 my_libok=no
3354 if test "$my_libok" = yes; then
3355 my_old_cppflags=$CPPFLAGS
3356 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH $XCFLAGS"
3357 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
3358 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
3359 echo "configure:3360: checking for X11/xpm.h" >&5
3360 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3361 echo $ac_n "(cached) $ac_c" 1>&6
3362 else
3363 cat > conftest.$ac_ext <<EOF
3364 #line 3365 "configure"
3365 #include "confdefs.h"
3366 #include <X11/xpm.h>
3368 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3369 { (eval echo configure:3370: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3370 ac_err=`grep -v '^ *+' conftest.out`
3371 if test -z "$ac_err"; then
3372 rm -rf conftest*
3373 eval "ac_cv_header_$ac_safe=yes"
3374 else
3375 echo "$ac_err" >&5
3376 echo "configure: failed program was:" >&5
3377 cat conftest.$ac_ext >&5
3378 rm -rf conftest*
3379 eval "ac_cv_header_$ac_safe=no"
3381 rm -f conftest*
3383 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3384 echo "$ac_t""yes" 1>&6
3385 GFXFLAGS="$GFXFLAGS -DUSE_XPM" GFXLIBS="$GFXLIBS -lXpm"
3386 supported_gfx="XPM"
3387 else
3388 echo "$ac_t""no" 1>&6
3389 supported_gfx="XPM (builtin)"
3392 CPPFLAGS=$my_old_cppflags
3406 echo $ac_n "checking for gzread in -lz""... $ac_c" 1>&6
3407 echo "configure:3408: checking for gzread in -lz" >&5
3408 ac_lib_var=`echo z'_'gzread | sed 'y%./+-%__p_%'`
3409 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3410 echo $ac_n "(cached) $ac_c" 1>&6
3411 else
3412 ac_save_LIBS="$LIBS"
3413 LIBS="-lz $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3414 cat > conftest.$ac_ext <<EOF
3415 #line 3416 "configure"
3416 #include "confdefs.h"
3417 /* Override any gcc2 internal prototype to avoid an error. */
3418 /* We use char because int might match the return type of a gcc2
3419 builtin and then its argument prototype would still apply. */
3420 char gzread();
3422 int main() {
3423 gzread()
3424 ; return 0; }
3426 if { (eval echo configure:3427: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3427 rm -rf conftest*
3428 eval "ac_cv_lib_$ac_lib_var=yes"
3429 else
3430 echo "configure: failed program was:" >&5
3431 cat conftest.$ac_ext >&5
3432 rm -rf conftest*
3433 eval "ac_cv_lib_$ac_lib_var=no"
3435 rm -f conftest*
3436 LIBS="$ac_save_LIBS"
3439 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3440 echo "$ac_t""yes" 1>&6
3441 zlib=yes
3442 else
3443 echo "$ac_t""no" 1>&6
3444 zlib=no
3449 png=yes
3450 # assume libz is present...
3451 #AC_ARG_ENABLE(png,
3452 #[ --disable-png disable PNG support through libpng],
3453 # png=$enableval, png=yes)
3456 if test "$png" = yes -a "$zlib" = yes ; then
3457 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
3458 echo "configure:3459: checking for png_get_valid in -lpng" >&5
3459 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
3460 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3461 echo $ac_n "(cached) $ac_c" 1>&6
3462 else
3463 ac_save_LIBS="$LIBS"
3464 LIBS="-lpng $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS -lz -lm $LIBS"
3465 cat > conftest.$ac_ext <<EOF
3466 #line 3467 "configure"
3467 #include "confdefs.h"
3468 /* Override any gcc2 internal prototype to avoid an error. */
3469 /* We use char because int might match the return type of a gcc2
3470 builtin and then its argument prototype would still apply. */
3471 char png_get_valid();
3473 int main() {
3474 png_get_valid()
3475 ; return 0; }
3477 if { (eval echo configure:3478: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3478 rm -rf conftest*
3479 eval "ac_cv_lib_$ac_lib_var=yes"
3480 else
3481 echo "configure: failed program was:" >&5
3482 cat conftest.$ac_ext >&5
3483 rm -rf conftest*
3484 eval "ac_cv_lib_$ac_lib_var=no"
3486 rm -f conftest*
3487 LIBS="$ac_save_LIBS"
3490 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3491 echo "$ac_t""yes" 1>&6
3492 my_libok=yes
3493 else
3494 echo "$ac_t""no" 1>&6
3495 my_libok=no
3499 if test "$my_libok" = yes; then
3500 my_old_cppflags=$CPPFLAGS
3501 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH"
3502 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
3503 echo $ac_n "checking for png.h""... $ac_c" 1>&6
3504 echo "configure:3505: checking for png.h" >&5
3505 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3506 echo $ac_n "(cached) $ac_c" 1>&6
3507 else
3508 cat > conftest.$ac_ext <<EOF
3509 #line 3510 "configure"
3510 #include "confdefs.h"
3511 #include <png.h>
3513 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3514 { (eval echo configure:3515: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3515 ac_err=`grep -v '^ *+' conftest.out`
3516 if test -z "$ac_err"; then
3517 rm -rf conftest*
3518 eval "ac_cv_header_$ac_safe=yes"
3519 else
3520 echo "$ac_err" >&5
3521 echo "configure: failed program was:" >&5
3522 cat conftest.$ac_ext >&5
3523 rm -rf conftest*
3524 eval "ac_cv_header_$ac_safe=no"
3526 rm -f conftest*
3528 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3529 echo "$ac_t""yes" 1>&6
3530 GFXLIBS="$GFXLIBS -lpng -lz" GFXFLAGS="$GFXFLAGS -DUSE_PNG"
3531 supported_gfx="$supported_gfx PNG"
3532 else
3533 echo "$ac_t""no" 1>&6
3536 CPPFLAGS=$my_old_cppflags
3541 jpeg=yes
3542 # Check whether --enable-jpeg or --disable-jpeg was given.
3543 if test "${enable_jpeg+set}" = set; then
3544 enableval="$enable_jpeg"
3545 jpeg=$enableval
3546 else
3547 jpeg=yes
3551 if test "$jpeg" = yes; then
3552 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
3553 echo "configure:3554: checking for jpeg_destroy_compress in -ljpeg" >&5
3554 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
3555 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3556 echo $ac_n "(cached) $ac_c" 1>&6
3557 else
3558 ac_save_LIBS="$LIBS"
3559 LIBS="-ljpeg $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3560 cat > conftest.$ac_ext <<EOF
3561 #line 3562 "configure"
3562 #include "confdefs.h"
3563 /* Override any gcc2 internal prototype to avoid an error. */
3564 /* We use char because int might match the return type of a gcc2
3565 builtin and then its argument prototype would still apply. */
3566 char jpeg_destroy_compress();
3568 int main() {
3569 jpeg_destroy_compress()
3570 ; return 0; }
3572 if { (eval echo configure:3573: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3573 rm -rf conftest*
3574 eval "ac_cv_lib_$ac_lib_var=yes"
3575 else
3576 echo "configure: failed program was:" >&5
3577 cat conftest.$ac_ext >&5
3578 rm -rf conftest*
3579 eval "ac_cv_lib_$ac_lib_var=no"
3581 rm -f conftest*
3582 LIBS="$ac_save_LIBS"
3585 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3586 echo "$ac_t""yes" 1>&6
3587 my_libok=yes
3588 else
3589 echo "$ac_t""no" 1>&6
3590 my_libok=no
3594 if test "$my_libok" = yes; then
3595 my_old_cppflags=$CPPFLAGS
3596 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH"
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 jpeglib.h
3602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err=`grep -v '^ *+' conftest.out`
3605 if test -z "$ac_err"; then
3606 rm -rf conftest*
3607 GFXLIBS="$GFXLIBS -ljpeg" GFXFLAGS="$GFXFLAGS -DUSE_JPEG"
3608 supported_gfx="$supported_gfx JPEG"
3609 else
3610 echo "$ac_err" >&5
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3614 rm -f conftest*
3615 CPPFLAGS=$my_old_cppflags
3620 jpeg=yes
3621 # Check whether --enable-gif or --disable-gif was given.
3622 if test "${enable_gif+set}" = set; then
3623 enableval="$enable_gif"
3624 gif=$enableval
3625 else
3626 gif=yes
3630 if test "$gif" = yes; then
3631 retry=no
3632 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
3633 echo "configure:3634: checking for DGifOpenFileName in -lungif" >&5
3634 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3635 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3636 echo $ac_n "(cached) $ac_c" 1>&6
3637 else
3638 ac_save_LIBS="$LIBS"
3639 LIBS="-lungif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3640 cat > conftest.$ac_ext <<EOF
3641 #line 3642 "configure"
3642 #include "confdefs.h"
3643 /* Override any gcc2 internal prototype to avoid an error. */
3644 /* We use char because int might match the return type of a gcc2
3645 builtin and then its argument prototype would still apply. */
3646 char DGifOpenFileName();
3648 int main() {
3649 DGifOpenFileName()
3650 ; return 0; }
3652 if { (eval echo configure:3653: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3653 rm -rf conftest*
3654 eval "ac_cv_lib_$ac_lib_var=yes"
3655 else
3656 echo "configure: failed program was:" >&5
3657 cat conftest.$ac_ext >&5
3658 rm -rf conftest*
3659 eval "ac_cv_lib_$ac_lib_var=no"
3661 rm -f conftest*
3662 LIBS="$ac_save_LIBS"
3665 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3666 echo "$ac_t""yes" 1>&6
3667 my_libok=yes my_libname=ungif
3668 else
3669 echo "$ac_t""no" 1>&6
3670 retry=yes my_libok=no
3673 if test "$retry" = yes; then
3674 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
3675 echo "configure:3676: checking for DGifOpenFileName in -lgif" >&5
3676 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
3677 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3678 echo $ac_n "(cached) $ac_c" 1>&6
3679 else
3680 ac_save_LIBS="$LIBS"
3681 LIBS="-lgif $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $LIBS"
3682 cat > conftest.$ac_ext <<EOF
3683 #line 3684 "configure"
3684 #include "confdefs.h"
3685 /* Override any gcc2 internal prototype to avoid an error. */
3686 /* We use char because int might match the return type of a gcc2
3687 builtin and then its argument prototype would still apply. */
3688 char DGifOpenFileName();
3690 int main() {
3691 DGifOpenFileName()
3692 ; return 0; }
3694 if { (eval echo configure:3695: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3695 rm -rf conftest*
3696 eval "ac_cv_lib_$ac_lib_var=yes"
3697 else
3698 echo "configure: failed program was:" >&5
3699 cat conftest.$ac_ext >&5
3700 rm -rf conftest*
3701 eval "ac_cv_lib_$ac_lib_var=no"
3703 rm -f conftest*
3704 LIBS="$ac_save_LIBS"
3707 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3708 echo "$ac_t""yes" 1>&6
3709 my_libok=yes my_libname=gif
3710 else
3711 echo "$ac_t""no" 1>&6
3712 my_libok=no
3717 if test "$my_libok" = yes; then
3718 my_old_cppflags=$CPPFLAGS
3719 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH"
3720 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
3721 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
3722 echo "configure:3723: checking for gif_lib.h" >&5
3723 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3724 echo $ac_n "(cached) $ac_c" 1>&6
3725 else
3726 cat > conftest.$ac_ext <<EOF
3727 #line 3728 "configure"
3728 #include "confdefs.h"
3729 #include <gif_lib.h>
3731 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3732 { (eval echo configure:3733: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3733 ac_err=`grep -v '^ *+' conftest.out`
3734 if test -z "$ac_err"; then
3735 rm -rf conftest*
3736 eval "ac_cv_header_$ac_safe=yes"
3737 else
3738 echo "$ac_err" >&5
3739 echo "configure: failed program was:" >&5
3740 cat conftest.$ac_ext >&5
3741 rm -rf conftest*
3742 eval "ac_cv_header_$ac_safe=no"
3744 rm -f conftest*
3746 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3747 echo "$ac_t""yes" 1>&6
3748 GFXLIBS="$GFXLIBS -l$my_libname" GFXFLAGS="$GFXFLAGS -DUSE_GIF"
3749 supported_gfx="$supported_gfx GIF"
3750 else
3751 echo "$ac_t""no" 1>&6
3754 CPPFLAGS=$my_old_cppflags
3760 # Check whether --enable-tiff or --disable-tiff was given.
3761 if test "${enable_tiff+set}" = set; then
3762 enableval="$enable_tiff"
3763 tif=$enableval
3764 else
3765 tif=yes
3770 # TIFF can optionally have JPEG and/or zlib support. Must find out
3771 # when they are supported so that correct library flags are passed during
3772 # detection and linkage
3775 # By default use xpm icons if tiff is not found.
3776 ICONEXT="xpm"
3779 if test "$tif" = yes; then
3780 my_libname=""
3781 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3782 echo "configure:3783: checking for TIFFGetVersion in -ltiff" >&5
3783 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3784 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3785 echo $ac_n "(cached) $ac_c" 1>&6
3786 else
3787 ac_save_LIBS="$LIBS"
3788 LIBS="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3789 cat > conftest.$ac_ext <<EOF
3790 #line 3791 "configure"
3791 #include "confdefs.h"
3792 /* Override any gcc2 internal prototype to avoid an error. */
3793 /* We use char because int might match the return type of a gcc2
3794 builtin and then its argument prototype would still apply. */
3795 char TIFFGetVersion();
3797 int main() {
3798 TIFFGetVersion()
3799 ; return 0; }
3801 if { (eval echo configure:3802: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3802 rm -rf conftest*
3803 eval "ac_cv_lib_$ac_lib_var=yes"
3804 else
3805 echo "configure: failed program was:" >&5
3806 cat conftest.$ac_ext >&5
3807 rm -rf conftest*
3808 eval "ac_cv_lib_$ac_lib_var=no"
3810 rm -f conftest*
3811 LIBS="$ac_save_LIBS"
3814 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3815 echo "$ac_t""yes" 1>&6
3816 my_libok=yes my_libname="-ltiff"
3817 else
3818 echo "$ac_t""no" 1>&6
3819 my_libok=no
3822 if test "$my_libok" = no; then
3823 if test "$zlib" = "yes"; then
3824 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
3825 echo "configure:3826: checking for TIFFGetVersion in -ltiff" >&5
3826 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3827 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3828 echo $ac_n "(cached) $ac_c" 1>&6
3829 else
3830 ac_save_LIBS="$LIBS"
3831 LIBS="-ltiff $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lz -lm $LIBS"
3832 cat > conftest.$ac_ext <<EOF
3833 #line 3834 "configure"
3834 #include "confdefs.h"
3835 /* Override any gcc2 internal prototype to avoid an error. */
3836 /* We use char because int might match the return type of a gcc2
3837 builtin and then its argument prototype would still apply. */
3838 char TIFFGetVersion();
3840 int main() {
3841 TIFFGetVersion()
3842 ; return 0; }
3844 if { (eval echo configure:3845: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3845 rm -rf conftest*
3846 eval "ac_cv_lib_$ac_lib_var=yes"
3847 else
3848 echo "configure: failed program was:" >&5
3849 cat conftest.$ac_ext >&5
3850 rm -rf conftest*
3851 eval "ac_cv_lib_$ac_lib_var=no"
3853 rm -f conftest*
3854 LIBS="$ac_save_LIBS"
3857 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3858 echo "$ac_t""yes" 1>&6
3859 my_libok=yes my_libname="-ltiff -lz"
3860 else
3861 echo "$ac_t""no" 1>&6
3862 my_libok=no
3868 if test "$my_libok" = no; then
3869 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
3870 echo "configure:3871: checking for TIFFGetVersion in -ltiff34" >&5
3871 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
3872 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3873 echo $ac_n "(cached) $ac_c" 1>&6
3874 else
3875 ac_save_LIBS="$LIBS"
3876 LIBS="-ltiff34 $GFX_INC_PATH $GFX_LIB_PATH $XLFLAGS $XLIBS $GFXLIBS -lm $LIBS"
3877 cat > conftest.$ac_ext <<EOF
3878 #line 3879 "configure"
3879 #include "confdefs.h"
3880 /* Override any gcc2 internal prototype to avoid an error. */
3881 /* We use char because int might match the return type of a gcc2
3882 builtin and then its argument prototype would still apply. */
3883 char TIFFGetVersion();
3885 int main() {
3886 TIFFGetVersion()
3887 ; return 0; }
3889 if { (eval echo configure:3890: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
3890 rm -rf conftest*
3891 eval "ac_cv_lib_$ac_lib_var=yes"
3892 else
3893 echo "configure: failed program was:" >&5
3894 cat conftest.$ac_ext >&5
3895 rm -rf conftest*
3896 eval "ac_cv_lib_$ac_lib_var=no"
3898 rm -f conftest*
3899 LIBS="$ac_save_LIBS"
3902 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3903 echo "$ac_t""yes" 1>&6
3904 my_libok=yes my_libname="-ltiff34"
3905 else
3906 echo "$ac_t""no" 1>&6
3907 my_libok=no
3912 if test "$my_libok" = yes; then
3913 my_old_cppflags=$CPPFLAGS
3914 CPPFLAGS="$CPPFLAGS $GFX_INC_PATH"
3915 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
3916 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
3917 echo "configure:3918: checking for tiffio.h" >&5
3918 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3920 else
3921 cat > conftest.$ac_ext <<EOF
3922 #line 3923 "configure"
3923 #include "confdefs.h"
3924 #include <tiffio.h>
3926 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3927 { (eval echo configure:3928: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3928 ac_err=`grep -v '^ *+' conftest.out`
3929 if test -z "$ac_err"; then
3930 rm -rf conftest*
3931 eval "ac_cv_header_$ac_safe=yes"
3932 else
3933 echo "$ac_err" >&5
3934 echo "configure: failed program was:" >&5
3935 cat conftest.$ac_ext >&5
3936 rm -rf conftest*
3937 eval "ac_cv_header_$ac_safe=no"
3939 rm -f conftest*
3941 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3942 echo "$ac_t""yes" 1>&6
3943 GFXFLAGS="$GFXFLAGS -DUSE_TIFF" GFXLIBS="$my_libname $GFXLIBS"
3944 ICONEXT="tiff" supported_gfx="$supported_gfx TIFF"
3945 else
3946 echo "$ac_t""no" 1>&6
3949 CPPFLAGS=$my_old_cppflags
3963 #LIBPL_LIBS="-L${top_builddir}/libPropList -lPropList"
3964 #LIBPL_INC_PATH="-I${top_srcdir}/libPropList"
3967 #PLPATH=`pwd`/libPropList
3969 #if test -f $PLPATH/libPropList.a; then
3970 # echo "using bundled libPropList, already compiled."
3971 # needtobuild=no
3972 # LIBPL_LIBS="-L$PLPATH -lPropList"
3973 # LIBPL_INC_PATH="-I$PLPATH"
3974 #else
3975 # AC_CHECK_LIB(PropList, PLGetString,
3976 # [LIBPL_LIBS=-lPropList LIBPL_INC_PATH="" needtobuild=no],
3977 # [LIBPL_LIBS="-L$PLPATH -lPropList"
3978 # LIBPL_INC_PATH="-I$PLPATH"
3979 # needtobuild=yes])
3983 #if test "$needtobuild" = yes; then
3984 # if test -f libPropList/libPropList.a; then
3985 # echo "using included libPropList"
3986 # else
3987 # echo "********** WARNING *************"
3988 # echo "libPropList is not installed in your system."
3989 # echo "You need to build it before building Window Maker (if you already"
3990 # echo "did that, remove config.cache and rerun configure)."
3991 # echo "Please read the INSTALL file for detailed instructions."
3992 # echo "Press <Return> to continue configuring Window Maker or"
3993 # echo "type b and <Return> to build it now."
3994 # read foo
3995 # if test "$foo" = b; then
3996 # echo
3997 # echo "Building libPropList..."
3998 # echo
3999 # if test ! -d libPropList; then
4000 # gzip -d -c libPropList.tar.gz | tar xf -
4001 # fi
4002 # ok=no
4003 # if (cd libPropList; ./configure); then
4004 # if (cd libPropList; make); then
4005 # ok=yes
4006 # fi
4007 # fi
4008 # if test "$ok" = no; then
4009 # echo "********** WARNING **********"
4010 # echo "An error occurred while building libPropList"
4011 # echo "Please build it manually."
4012 # echo "Press <Return> to continue."
4013 # read foo
4014 # fi
4015 # echo
4016 # echo "resuming Window Maker configuration..."
4017 # echo
4018 # fi
4019 # fi
4022 #AC_SUBST(LIBPL_LIBS)
4023 #AC_SUBST(LIBPL_INC_PATH)
4026 # Check whether --enable-debug or --disable-debug was given.
4027 if test "${enable_debug+set}" = set; then
4028 enableval="$enable_debug"
4030 else
4031 enable_debug=no
4035 if test "$enable_debug" = yes; then
4036 DFLAGS="-g -DDEBUG"
4037 # Efence makes things too slow. Add it by hand in the Makefiles
4038 # if it is really needed.
4039 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
4044 # Check whether --enable-sound or --disable-sound was given.
4045 if test "${enable_sound+set}" = set; then
4046 enableval="$enable_sound"
4048 else
4049 enable_sound=no
4052 if test "$enable_sound" = yes; then
4053 SOUND="#define WMSOUND"
4054 else
4055 SOUND="#undef WMSOUND"
4060 # AC_PREFIX_PROGRAM(wmaker)
4062 if test "${prefix}" = "NONE"; then
4063 prefix="/usr/local"
4065 if test "${exec_prefix}" = "NONE"; then
4066 exec_prefix="${prefix}"
4069 # Check whether --with-pixmapdir or --without-pixmapdir was given.
4070 if test "${with_pixmapdir+set}" = set; then
4071 withval="$with_pixmapdir"
4076 if test "x$with_pixmapdir" != "x"; then
4077 pixmapdir=$with_pixmapdir
4078 else
4079 pixmapdir="${datadir}/pixmaps"
4086 appspath=""
4088 # Check whether --with-appspath or --without-appspath was given.
4089 if test "${with_appspath+set}" = set; then
4090 withval="$with_appspath"
4095 if test "x$appspath" = "x"; then
4096 gnustepdir="${prefix}/GNUstep"
4098 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
4099 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s%${prefix}%\${prefix}%"`
4102 appspath=$gnustepdir/Apps
4105 wprefsdir=$appspath/WPrefs.app
4110 # Check whether --enable-single-icon or --disable-single-icon was given.
4111 if test "${enable_single_icon+set}" = set; then
4112 enableval="$enable_single_icon"
4113 if test "$enableval" = yes; then
4114 REDUCE_APPICONS="#define REDUCE_APPICONS"
4115 else
4116 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4118 else
4119 REDUCE_APPICONS="#undef REDUCE_APPICONS"
4125 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
4126 echo "configure:4127: checking for sys/wait.h that is POSIX.1 compatible" >&5
4127 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
4128 echo $ac_n "(cached) $ac_c" 1>&6
4129 else
4130 cat > conftest.$ac_ext <<EOF
4131 #line 4132 "configure"
4132 #include "confdefs.h"
4133 #include <sys/types.h>
4134 #include <sys/wait.h>
4135 #ifndef WEXITSTATUS
4136 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
4137 #endif
4138 #ifndef WIFEXITED
4139 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4140 #endif
4141 int main() {
4142 int s;
4143 wait (&s);
4144 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4145 ; return 0; }
4147 if { (eval echo configure:4148: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4148 rm -rf conftest*
4149 ac_cv_header_sys_wait_h=yes
4150 else
4151 echo "configure: failed program was:" >&5
4152 cat conftest.$ac_ext >&5
4153 rm -rf conftest*
4154 ac_cv_header_sys_wait_h=no
4156 rm -f conftest*
4159 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
4160 if test $ac_cv_header_sys_wait_h = yes; then
4161 cat >> confdefs.h <<\EOF
4162 #define HAVE_SYS_WAIT_H 1
4167 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h libintl.h sys/select.h
4169 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4170 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4171 echo "configure:4172: checking for $ac_hdr" >&5
4172 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4173 echo $ac_n "(cached) $ac_c" 1>&6
4174 else
4175 cat > conftest.$ac_ext <<EOF
4176 #line 4177 "configure"
4177 #include "confdefs.h"
4178 #include <$ac_hdr>
4180 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4181 { (eval echo configure:4182: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4182 ac_err=`grep -v '^ *+' conftest.out`
4183 if test -z "$ac_err"; then
4184 rm -rf conftest*
4185 eval "ac_cv_header_$ac_safe=yes"
4186 else
4187 echo "$ac_err" >&5
4188 echo "configure: failed program was:" >&5
4189 cat conftest.$ac_ext >&5
4190 rm -rf conftest*
4191 eval "ac_cv_header_$ac_safe=no"
4193 rm -f conftest*
4195 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4198 cat >> confdefs.h <<EOF
4199 #define $ac_tr_hdr 1
4202 else
4203 echo "$ac_t""no" 1>&6
4205 done
4210 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
4211 echo "configure:4212: checking for sys_siglist declaration in signal.h or unistd.h" >&5
4212 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
4213 echo $ac_n "(cached) $ac_c" 1>&6
4214 else
4215 cat > conftest.$ac_ext <<EOF
4216 #line 4217 "configure"
4217 #include "confdefs.h"
4218 #include <sys/types.h>
4219 #include <signal.h>
4220 /* NetBSD declares sys_siglist in unistd.h. */
4221 #ifdef HAVE_UNISTD_H
4222 #include <unistd.h>
4223 #endif
4224 int main() {
4225 char *msg = *(sys_siglist + 1);
4226 ; return 0; }
4228 if { (eval echo configure:4229: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4229 rm -rf conftest*
4230 ac_cv_decl_sys_siglist=yes
4231 else
4232 echo "configure: failed program was:" >&5
4233 cat conftest.$ac_ext >&5
4234 rm -rf conftest*
4235 ac_cv_decl_sys_siglist=no
4237 rm -f conftest*
4240 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
4241 if test $ac_cv_decl_sys_siglist = yes; then
4242 cat >> confdefs.h <<\EOF
4243 #define SYS_SIGLIST_DECLARED 1
4248 echo $ac_n "checking for working const""... $ac_c" 1>&6
4249 echo "configure:4250: checking for working const" >&5
4250 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
4251 echo $ac_n "(cached) $ac_c" 1>&6
4252 else
4253 cat > conftest.$ac_ext <<EOF
4254 #line 4255 "configure"
4255 #include "confdefs.h"
4257 int main() {
4259 /* Ultrix mips cc rejects this. */
4260 typedef int charset[2]; const charset x;
4261 /* SunOS 4.1.1 cc rejects this. */
4262 char const *const *ccp;
4263 char **p;
4264 /* NEC SVR4.0.2 mips cc rejects this. */
4265 struct point {int x, y;};
4266 static struct point const zero = {0,0};
4267 /* AIX XL C 1.02.0.0 rejects this.
4268 It does not let you subtract one const X* pointer from another in an arm
4269 of an if-expression whose if-part is not a constant expression */
4270 const char *g = "string";
4271 ccp = &g + (g ? g-g : 0);
4272 /* HPUX 7.0 cc rejects these. */
4273 ++ccp;
4274 p = (char**) ccp;
4275 ccp = (char const *const *) p;
4276 { /* SCO 3.2v4 cc rejects this. */
4277 char *t;
4278 char const *s = 0 ? (char *) 0 : (char const *) 0;
4280 *t++ = 0;
4282 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
4283 int x[] = {25, 17};
4284 const int *foo = &x[0];
4285 ++foo;
4287 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
4288 typedef const int *iptr;
4289 iptr p = 0;
4290 ++p;
4292 { /* AIX XL C 1.02.0.0 rejects this saying
4293 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
4294 struct s { int j; const int *ap[3]; };
4295 struct s *b; b->j = 5;
4297 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
4298 const int foo = 10;
4301 ; return 0; }
4303 if { (eval echo configure:4304: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4304 rm -rf conftest*
4305 ac_cv_c_const=yes
4306 else
4307 echo "configure: failed program was:" >&5
4308 cat conftest.$ac_ext >&5
4309 rm -rf conftest*
4310 ac_cv_c_const=no
4312 rm -f conftest*
4315 echo "$ac_t""$ac_cv_c_const" 1>&6
4316 if test $ac_cv_c_const = no; then
4317 cat >> confdefs.h <<\EOF
4318 #define const
4323 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
4324 echo "configure:4325: checking for ANSI C header files" >&5
4325 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
4326 echo $ac_n "(cached) $ac_c" 1>&6
4327 else
4328 cat > conftest.$ac_ext <<EOF
4329 #line 4330 "configure"
4330 #include "confdefs.h"
4331 #include <stdlib.h>
4332 #include <stdarg.h>
4333 #include <string.h>
4334 #include <float.h>
4336 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4337 { (eval echo configure:4338: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4338 ac_err=`grep -v '^ *+' conftest.out`
4339 if test -z "$ac_err"; then
4340 rm -rf conftest*
4341 ac_cv_header_stdc=yes
4342 else
4343 echo "$ac_err" >&5
4344 echo "configure: failed program was:" >&5
4345 cat conftest.$ac_ext >&5
4346 rm -rf conftest*
4347 ac_cv_header_stdc=no
4349 rm -f conftest*
4351 if test $ac_cv_header_stdc = yes; then
4352 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4353 cat > conftest.$ac_ext <<EOF
4354 #line 4355 "configure"
4355 #include "confdefs.h"
4356 #include <string.h>
4358 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4359 egrep "memchr" >/dev/null 2>&1; then
4361 else
4362 rm -rf conftest*
4363 ac_cv_header_stdc=no
4365 rm -f conftest*
4369 if test $ac_cv_header_stdc = yes; then
4370 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4371 cat > conftest.$ac_ext <<EOF
4372 #line 4373 "configure"
4373 #include "confdefs.h"
4374 #include <stdlib.h>
4376 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4377 egrep "free" >/dev/null 2>&1; then
4379 else
4380 rm -rf conftest*
4381 ac_cv_header_stdc=no
4383 rm -f conftest*
4387 if test $ac_cv_header_stdc = yes; then
4388 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4389 if test "$cross_compiling" = yes; then
4391 else
4392 cat > conftest.$ac_ext <<EOF
4393 #line 4394 "configure"
4394 #include "confdefs.h"
4395 #include <ctype.h>
4396 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4397 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4398 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4399 int main () { int i; for (i = 0; i < 256; i++)
4400 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
4401 exit (0); }
4404 if { (eval echo configure:4405: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest && (./conftest; exit) 2>/dev/null
4405 then
4407 else
4408 echo "configure: failed program was:" >&5
4409 cat conftest.$ac_ext >&5
4410 rm -fr conftest*
4411 ac_cv_header_stdc=no
4413 rm -fr conftest*
4419 echo "$ac_t""$ac_cv_header_stdc" 1>&6
4420 if test $ac_cv_header_stdc = yes; then
4421 cat >> confdefs.h <<\EOF
4422 #define STDC_HEADERS 1
4427 echo $ac_n "checking for size_t""... $ac_c" 1>&6
4428 echo "configure:4429: checking for size_t" >&5
4429 if eval "test \"`echo '$''{'ac_cv_type_size_t'+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"
4435 #include <sys/types.h>
4436 #if STDC_HEADERS
4437 #include <stdlib.h>
4438 #include <stddef.h>
4439 #endif
4441 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4442 egrep "size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4443 rm -rf conftest*
4444 ac_cv_type_size_t=yes
4445 else
4446 rm -rf conftest*
4447 ac_cv_type_size_t=no
4449 rm -f conftest*
4452 echo "$ac_t""$ac_cv_type_size_t" 1>&6
4453 if test $ac_cv_type_size_t = no; then
4454 cat >> confdefs.h <<\EOF
4455 #define size_t unsigned
4460 echo $ac_n "checking for pid_t""... $ac_c" 1>&6
4461 echo "configure:4462: checking for pid_t" >&5
4462 if eval "test \"`echo '$''{'ac_cv_type_pid_t'+set}'`\" = set"; then
4463 echo $ac_n "(cached) $ac_c" 1>&6
4464 else
4465 cat > conftest.$ac_ext <<EOF
4466 #line 4467 "configure"
4467 #include "confdefs.h"
4468 #include <sys/types.h>
4469 #if STDC_HEADERS
4470 #include <stdlib.h>
4471 #include <stddef.h>
4472 #endif
4474 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4475 egrep "pid_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
4476 rm -rf conftest*
4477 ac_cv_type_pid_t=yes
4478 else
4479 rm -rf conftest*
4480 ac_cv_type_pid_t=no
4482 rm -f conftest*
4485 echo "$ac_t""$ac_cv_type_pid_t" 1>&6
4486 if test $ac_cv_type_pid_t = no; then
4487 cat >> confdefs.h <<\EOF
4488 #define pid_t int
4493 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
4494 echo "configure:4495: checking whether time.h and sys/time.h may both be included" >&5
4495 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
4496 echo $ac_n "(cached) $ac_c" 1>&6
4497 else
4498 cat > conftest.$ac_ext <<EOF
4499 #line 4500 "configure"
4500 #include "confdefs.h"
4501 #include <sys/types.h>
4502 #include <sys/time.h>
4503 #include <time.h>
4504 int main() {
4505 struct tm *tp;
4506 ; return 0; }
4508 if { (eval echo configure:4509: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
4509 rm -rf conftest*
4510 ac_cv_header_time=yes
4511 else
4512 echo "configure: failed program was:" >&5
4513 cat conftest.$ac_ext >&5
4514 rm -rf conftest*
4515 ac_cv_header_time=no
4517 rm -f conftest*
4520 echo "$ac_t""$ac_cv_header_time" 1>&6
4521 if test $ac_cv_header_time = yes; then
4522 cat >> confdefs.h <<\EOF
4523 #define TIME_WITH_SYS_TIME 1
4530 if test "$GCC" = "yes"; then
4531 # ceflagues=""
4532 # for i in $CFLAGS; do
4533 # if test "$i" != "-g" ; then
4534 # ceflagues="$ceflagues $i"
4535 # fi
4536 # fi
4537 # CFLAGS="$ceflagues -Wall -Wno-implicit-int -finline-functions"
4538 CFLAGS="$CFLAGS -Wall -Wno-implicit-int -Wcast-align"
4543 enable_shared=no
4544 #AC_ARG_ENABLE(shared,
4545 #[ --enable-shared build libraries as shared ], enable_shared=yes,
4546 # enable_shared=no)
4548 if test "$enable_shared" = yes; then
4549 if test "$GCC" = yes; then
4550 _CFLAGS="-fPIC"
4551 LDSHARED='$CC -shared'
4552 else
4553 # find system name and corresponding cc options
4554 case `(uname -sr || echo unknown) 2>/dev/null` in
4555 SunOS\ 5*)
4556 _CFLAGS="-fast -xcg89 -KPIC -R."
4557 LDSHARED='$CC -G';;
4558 SunOS\ 4*)
4559 _CFLAGS="-PIC"
4560 LDSHARED="ld";;
4561 IRIX*)
4562 _CFLAGS="-ansi -rpath ."
4563 LDSHARED='$CC -shared';;
4564 SCO_SV\ 3.2*)
4565 _CFLAGS="-dy -KPIC "
4566 LDSHARED='$CC -dy -KPIC -G';;
4567 HP-UX*)
4568 _CFLAGS="+z"
4569 LDSHARED="ld -b"
4570 SHAREDLIBS='libz.sl';;
4572 _CFLAGS=""
4573 LDSHARED='$CC -shared';;
4574 esac
4577 echo $ac_n "checking for shared library support""... $ac_c" 1>&6
4578 echo "configure:4579: checking for shared library support" >&5
4580 test=tmptest$$
4581 cat > $test.c <<EOF
4582 int hello() { printf("hello\n"); }
4586 # we must test in two steps (cc then ld), required at least on SunOS 4.x
4587 if test "`($CC -c $_CFLAGS $test.c) 2>&1`" = "" &&
4588 test "`($LDSHARED -o $test.so $test.o) 2>&1`" = ""; then
4589 CFLAGS="$CFLAGS $_CFLAGS"
4590 WRASTERLIB='libwraster.so.$(WRASTER_VER)'
4591 WINGSLIB='libWINGs.so.$(WINGS_VER)'
4592 echo "$ac_t""yes, building shared" 1>&6
4593 else
4594 LDSHARED='$CC'
4595 WRASTERLIB='libwraster.a'
4596 WINGSLIB='libWINGs.a'
4597 echo "$ac_t""no, building static" 1>&6
4599 rm -f $test.co $test.so
4602 #AC_SUBST(WRASTER_VER)
4603 #AC_SUBST(WINGS_VER)
4604 #AC_SUBST(WRASTERLIB)
4605 # AC_SUBST(WINGSLIB)
4606 # AC_SUBST(LDSHARED)
4612 trap '' 1 2 15
4613 cat > confcache <<\EOF
4614 # This file is a shell script that caches the results of configure
4615 # tests run on this system so they can be shared between configure
4616 # scripts and configure runs. It is not useful on other systems.
4617 # If it contains results you don't want to keep, you may remove or edit it.
4619 # By default, configure uses ./config.cache as the cache file,
4620 # creating it if it does not exist already. You can give configure
4621 # the --cache-file=FILE option to use a different cache file; that is
4622 # what configure does when it calls configure scripts in
4623 # subdirectories, so they share the cache.
4624 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4625 # config.status only pays attention to the cache file if you give it the
4626 # --recheck option to rerun configure.
4629 # The following way of writing the cache mishandles newlines in values,
4630 # but we know of no workaround that is simple, portable, and efficient.
4631 # So, don't put newlines in cache variables' values.
4632 # Ultrix sh set writes to stderr and can't be redirected directly,
4633 # and sets the high bit in the cache file unless we assign to the vars.
4634 (set) 2>&1 |
4635 case `(ac_space=' '; set) 2>&1` in
4636 *ac_space=\ *)
4637 # `set' does not quote correctly, so add quotes (double-quote substitution
4638 # turns \\\\ into \\, and sed turns \\ into \).
4639 sed -n \
4640 -e "s/'/'\\\\''/g" \
4641 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4644 # `set' quotes correctly as required by POSIX, so do not add quotes.
4645 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4647 esac >> confcache
4648 if cmp -s $cache_file confcache; then
4650 else
4651 if test -w $cache_file; then
4652 echo "updating cache $cache_file"
4653 cat confcache > $cache_file
4654 else
4655 echo "not updating unwritable cache $cache_file"
4658 rm -f confcache
4660 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4662 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4663 # Let make expand exec_prefix.
4664 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4666 # Any assignment to VPATH causes Sun make to only execute
4667 # the first set of double-colon rules, so remove it if not needed.
4668 # If there is a colon in the path, we need to keep it.
4669 if test "x$srcdir" = x.; then
4670 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4673 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4675 DEFS=-DHAVE_CONFIG_H
4677 # Without the "./", some shells look in PATH for config.status.
4678 : ${CONFIG_STATUS=./config.status}
4680 echo creating $CONFIG_STATUS
4681 rm -f $CONFIG_STATUS
4682 cat > $CONFIG_STATUS <<EOF
4683 #! /bin/sh
4684 # Generated automatically by configure.
4685 # Run this file to recreate the current configuration.
4686 # This directory was configured as follows,
4687 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4689 # $0 $ac_configure_args
4691 # Compiler output produced by configure, useful for debugging
4692 # configure, is in ./config.log if it exists.
4694 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4695 for ac_option
4697 case "\$ac_option" in
4698 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4699 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4700 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4701 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4702 echo "$CONFIG_STATUS generated by autoconf version 2.12"
4703 exit 0 ;;
4704 -help | --help | --hel | --he | --h)
4705 echo "\$ac_cs_usage"; exit 0 ;;
4706 *) echo "\$ac_cs_usage"; exit 1 ;;
4707 esac
4708 done
4710 ac_given_srcdir=$srcdir
4711 ac_given_INSTALL="$INSTALL"
4713 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4714 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4715 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4716 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4717 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4718 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4719 WindowMaker/IconSets/Makefile \
4720 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4721 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4723 cat >> $CONFIG_STATUS <<EOF
4725 # Protect against being on the right side of a sed subst in config.status.
4726 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4727 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4728 $ac_vpsub
4729 $extrasub
4730 s%@CFLAGS@%$CFLAGS%g
4731 s%@CPPFLAGS@%$CPPFLAGS%g
4732 s%@CXXFLAGS@%$CXXFLAGS%g
4733 s%@DEFS@%$DEFS%g
4734 s%@LDFLAGS@%$LDFLAGS%g
4735 s%@LIBS@%$LIBS%g
4736 s%@exec_prefix@%$exec_prefix%g
4737 s%@prefix@%$prefix%g
4738 s%@program_transform_name@%$program_transform_name%g
4739 s%@bindir@%$bindir%g
4740 s%@sbindir@%$sbindir%g
4741 s%@libexecdir@%$libexecdir%g
4742 s%@datadir@%$datadir%g
4743 s%@sysconfdir@%$sysconfdir%g
4744 s%@sharedstatedir@%$sharedstatedir%g
4745 s%@localstatedir@%$localstatedir%g
4746 s%@libdir@%$libdir%g
4747 s%@includedir@%$includedir%g
4748 s%@oldincludedir@%$oldincludedir%g
4749 s%@infodir@%$infodir%g
4750 s%@mandir@%$mandir%g
4751 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4752 s%@INSTALL_DATA@%$INSTALL_DATA%g
4753 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4754 s%@PACKAGE@%$PACKAGE%g
4755 s%@VERSION@%$VERSION%g
4756 s%@ACLOCAL@%$ACLOCAL%g
4757 s%@AUTOCONF@%$AUTOCONF%g
4758 s%@AUTOMAKE@%$AUTOMAKE%g
4759 s%@AUTOHEADER@%$AUTOHEADER%g
4760 s%@MAKEINFO@%$MAKEINFO%g
4761 s%@SET_MAKE@%$SET_MAKE%g
4762 s%@subdirs@%$subdirs%g
4763 s%@host@%$host%g
4764 s%@host_alias@%$host_alias%g
4765 s%@host_cpu@%$host_cpu%g
4766 s%@host_vendor@%$host_vendor%g
4767 s%@host_os@%$host_os%g
4768 s%@CC@%$CC%g
4769 s%@RANLIB@%$RANLIB%g
4770 s%@LN_S@%$LN_S%g
4771 s%@CPP@%$CPP%g
4772 s%@ALLOCA@%$ALLOCA%g
4773 s%@CPP_PATH@%$CPP_PATH%g
4774 s%@XGETTEXT@%$XGETTEXT%g
4775 s%@I18N_MB@%$I18N_MB%g
4776 s%@I18N@%$I18N%g
4777 s%@INTLIBS@%$INTLIBS%g
4778 s%@NLSDIR@%$NLSDIR%g
4779 s%@MOFILES@%$MOFILES%g
4780 s%@WPMOFILES@%$WPMOFILES%g
4781 s%@X_CFLAGS@%$X_CFLAGS%g
4782 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
4783 s%@X_LIBS@%$X_LIBS%g
4784 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
4785 s%@X_LOCALE@%$X_LOCALE%g
4786 s%@SHAPE@%$SHAPE%g
4787 s%@XSHM@%$XSHM%g
4788 s%@XLIBS@%$XLIBS%g
4789 s%@XCFLAGS@%$XCFLAGS%g
4790 s%@XLFLAGS@%$XLFLAGS%g
4791 s%@GFXFLAGS@%$GFXFLAGS%g
4792 s%@GFXLIBS@%$GFXLIBS%g
4793 s%@ICONEXT@%$ICONEXT%g
4794 s%@DFLAGS@%$DFLAGS%g
4795 s%@SOUND@%$SOUND%g
4796 s%@pixmapdir@%$pixmapdir%g
4797 s%@wprefsdir@%$wprefsdir%g
4798 s%@REDUCE_APPICONS@%$REDUCE_APPICONS%g
4800 CEOF
4803 cat >> $CONFIG_STATUS <<\EOF
4805 # Split the substitutions into bite-sized pieces for seds with
4806 # small command number limits, like on Digital OSF/1 and HP-UX.
4807 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4808 ac_file=1 # Number of current file.
4809 ac_beg=1 # First line for current file.
4810 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4811 ac_more_lines=:
4812 ac_sed_cmds=""
4813 while $ac_more_lines; do
4814 if test $ac_beg -gt 1; then
4815 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4816 else
4817 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4819 if test ! -s conftest.s$ac_file; then
4820 ac_more_lines=false
4821 rm -f conftest.s$ac_file
4822 else
4823 if test -z "$ac_sed_cmds"; then
4824 ac_sed_cmds="sed -f conftest.s$ac_file"
4825 else
4826 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4828 ac_file=`expr $ac_file + 1`
4829 ac_beg=$ac_end
4830 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4832 done
4833 if test -z "$ac_sed_cmds"; then
4834 ac_sed_cmds=cat
4838 cat >> $CONFIG_STATUS <<EOF
4840 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
4841 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
4842 wrlib/Makefile doc/Makefile WindowMaker/Makefile \
4843 WindowMaker/Defaults/Makefile WindowMaker/Styles/Makefile \
4844 WindowMaker/Themes/Makefile WindowMaker/Backgrounds/Makefile \
4845 WindowMaker/Pixmaps/Makefile WindowMaker/Icons/Makefile \
4846 WindowMaker/IconSets/Makefile \
4847 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
4848 WPrefs.app/po/Makefile "}
4850 cat >> $CONFIG_STATUS <<\EOF
4851 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4852 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4853 case "$ac_file" in
4854 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4855 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4856 *) ac_file_in="${ac_file}.in" ;;
4857 esac
4859 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4861 # Remove last slash and all that follows it. Not all systems have dirname.
4862 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4863 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4864 # The file is in a subdirectory.
4865 test ! -d "$ac_dir" && mkdir "$ac_dir"
4866 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4867 # A "../" for each directory in $ac_dir_suffix.
4868 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4869 else
4870 ac_dir_suffix= ac_dots=
4873 case "$ac_given_srcdir" in
4874 .) srcdir=.
4875 if test -z "$ac_dots"; then top_srcdir=.
4876 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4877 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4878 *) # Relative path.
4879 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4880 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4881 esac
4883 case "$ac_given_INSTALL" in
4884 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4885 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4886 esac
4888 echo creating "$ac_file"
4889 rm -f "$ac_file"
4890 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4891 case "$ac_file" in
4892 *Makefile*) ac_comsub="1i\\
4893 # $configure_input" ;;
4894 *) ac_comsub= ;;
4895 esac
4897 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4898 sed -e "$ac_comsub
4899 s%@configure_input@%$configure_input%g
4900 s%@srcdir@%$srcdir%g
4901 s%@top_srcdir@%$top_srcdir%g
4902 s%@INSTALL@%$INSTALL%g
4903 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4904 fi; done
4905 rm -f conftest.s*
4907 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4908 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4910 # ac_d sets the value in "#define NAME VALUE" lines.
4911 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4912 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4913 ac_dC='\3'
4914 ac_dD='%g'
4915 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4916 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4917 ac_uB='\([ ]\)%\1#\2define\3'
4918 ac_uC=' '
4919 ac_uD='\4%g'
4920 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4921 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4922 ac_eB='$%\1#\2define\3'
4923 ac_eC=' '
4924 ac_eD='%g'
4926 if test "${CONFIG_HEADERS+set}" != set; then
4928 cat >> $CONFIG_STATUS <<EOF
4929 CONFIG_HEADERS="src/config.h"
4931 cat >> $CONFIG_STATUS <<\EOF
4933 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4934 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4935 case "$ac_file" in
4936 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4937 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4938 *) ac_file_in="${ac_file}.in" ;;
4939 esac
4941 echo creating $ac_file
4943 rm -f conftest.frag conftest.in conftest.out
4944 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4945 cat $ac_file_inputs > conftest.in
4949 # Transform confdefs.h into a sed script conftest.vals that substitutes
4950 # the proper values into config.h.in to produce config.h. And first:
4951 # Protect against being on the right side of a sed subst in config.status.
4952 # Protect against being in an unquoted here document in config.status.
4953 rm -f conftest.vals
4954 cat > conftest.hdr <<\EOF
4955 s/[\\&%]/\\&/g
4956 s%[\\$`]%\\&%g
4957 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4958 s%ac_d%ac_u%gp
4959 s%ac_u%ac_e%gp
4961 sed -n -f conftest.hdr confdefs.h > conftest.vals
4962 rm -f conftest.hdr
4964 # This sed command replaces #undef with comments. This is necessary, for
4965 # example, in the case of _POSIX_SOURCE, which is predefined and required
4966 # on some systems where configure will not decide to define it.
4967 cat >> conftest.vals <<\EOF
4968 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4971 # Break up conftest.vals because some shells have a limit on
4972 # the size of here documents, and old seds have small limits too.
4974 rm -f conftest.tail
4975 while :
4977 ac_lines=`grep -c . conftest.vals`
4978 # grep -c gives empty output for an empty file on some AIX systems.
4979 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4980 # Write a limited-size here document to conftest.frag.
4981 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4982 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4983 echo 'CEOF
4984 sed -f conftest.frag conftest.in > conftest.out
4985 rm -f conftest.in
4986 mv conftest.out conftest.in
4987 ' >> $CONFIG_STATUS
4988 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4989 rm -f conftest.vals
4990 mv conftest.tail conftest.vals
4991 done
4992 rm -f conftest.vals
4994 cat >> $CONFIG_STATUS <<\EOF
4995 rm -f conftest.frag conftest.h
4996 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4997 cat conftest.in >> conftest.h
4998 rm -f conftest.in
4999 if cmp -s $ac_file conftest.h 2>/dev/null; then
5000 echo "$ac_file is unchanged"
5001 rm -f conftest.h
5002 else
5003 # Remove last slash and all that follows it. Not all systems have dirname.
5004 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5005 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5006 # The file is in a subdirectory.
5007 test ! -d "$ac_dir" && mkdir "$ac_dir"
5009 rm -f $ac_file
5010 mv conftest.h $ac_file
5012 fi; done
5015 cat >> $CONFIG_STATUS <<EOF
5019 cat >> $CONFIG_STATUS <<\EOF
5020 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5022 exit 0
5024 chmod +x $CONFIG_STATUS
5025 rm -fr confdefs* $ac_clean_files
5026 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5028 if test "$no_recursion" != yes; then
5030 # Remove --cache-file and --srcdir arguments so they do not pile up.
5031 ac_sub_configure_args=
5032 ac_prev=
5033 for ac_arg in $ac_configure_args; do
5034 if test -n "$ac_prev"; then
5035 ac_prev=
5036 continue
5038 case "$ac_arg" in
5039 -cache-file | --cache-file | --cache-fil | --cache-fi \
5040 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
5041 ac_prev=cache_file ;;
5042 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
5043 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
5045 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
5046 ac_prev=srcdir ;;
5047 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
5049 *) ac_sub_configure_args="$ac_sub_configure_args $ac_arg" ;;
5050 esac
5051 done
5053 for ac_config_dir in libPropList; do
5055 # Do not complain, so a configure script can configure whichever
5056 # parts of a large source tree are present.
5057 if test ! -d $srcdir/$ac_config_dir; then
5058 continue
5061 echo configuring in $ac_config_dir
5063 case "$srcdir" in
5064 .) ;;
5066 if test -d ./$ac_config_dir || mkdir ./$ac_config_dir; then :;
5067 else
5068 { echo "configure: error: can not create `pwd`/$ac_config_dir" 1>&2; exit 1; }
5071 esac
5073 ac_popdir=`pwd`
5074 cd $ac_config_dir
5076 # A "../" for each directory in /$ac_config_dir.
5077 ac_dots=`echo $ac_config_dir|sed -e 's%^\./%%' -e 's%[^/]$%&/%' -e 's%[^/]*/%../%g'`
5079 case "$srcdir" in
5080 .) # No --srcdir option. We are building in place.
5081 ac_sub_srcdir=$srcdir ;;
5082 /*) # Absolute path.
5083 ac_sub_srcdir=$srcdir/$ac_config_dir ;;
5084 *) # Relative path.
5085 ac_sub_srcdir=$ac_dots$srcdir/$ac_config_dir ;;
5086 esac
5088 # Check for guested configure; otherwise get Cygnus style configure.
5089 if test -f $ac_sub_srcdir/configure; then
5090 ac_sub_configure=$ac_sub_srcdir/configure
5091 elif test -f $ac_sub_srcdir/configure.in; then
5092 ac_sub_configure=$ac_configure
5093 else
5094 echo "configure: warning: no configuration information is in $ac_config_dir" 1>&2
5095 ac_sub_configure=
5098 # The recursion is here.
5099 if test -n "$ac_sub_configure"; then
5101 # Make the cache file name correct relative to the subdirectory.
5102 case "$cache_file" in
5103 /*) ac_sub_cache_file=$cache_file ;;
5104 *) # Relative path.
5105 ac_sub_cache_file="$ac_dots$cache_file" ;;
5106 esac
5107 case "$ac_given_INSTALL" in
5108 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5109 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5110 esac
5112 echo "running ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir"
5113 # The eval makes quoting arguments work.
5114 if eval ${CONFIG_SHELL-/bin/sh} $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_sub_srcdir
5115 then :
5116 else
5117 { echo "configure: error: $ac_sub_configure failed for $ac_config_dir" 1>&2; exit 1; }
5121 cd $ac_popdir
5122 done
5129 echo "WFLAGS=\"$LIBPL_INC_PATH -I$prefix/include\"" > WINGs-flags
5130 echo "WLIBS=\"-L$exec_prefix/lib -lWINGs -lwraster $LIBPL_LIBS $GFXLIBS -lm\""\
5131 >> WINGs-flags
5135 supported_gfx="$supported_gfx PPM (built-in)"
5137 echo
5138 echo "Window Maker was configured as follows:"
5139 echo
5140 echo "Installation path prefix: $prefix"
5141 echo "Installation path prefix for binaries: $exec_prefix"
5142 echo "Installation path for WPrefs.app: $wprefsdir"
5143 echo "Graphic format libraries: $supported_gfx"
5144 if test "x$MOFILES" = "x"; then
5145 mof=none
5146 else
5147 mof=$MOFILES
5149 echo "Translated message files to install: $mof"
5150 if test "x$MOFILES" != "x"; then
5151 echo "Installation path of translated messages: $NLSDIR"