Fixed some compilation problems for solaris
[wmaker-crm.git] / configure
blobefc920029a1d94d7dba7e038ce56e5afc1ecfcf6
1 #! /bin/sh
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.13
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15 --enable-shared[=PKGS] build shared libraries [default=yes]"
16 ac_help="$ac_help
17 --enable-static[=PKGS] build static libraries [default=yes]"
18 ac_help="$ac_help
19 --enable-fast-install[=PKGS] optimize for fast installation [default=yes]"
20 ac_help="$ac_help
21 --with-gnu-ld assume the C compiler uses GNU ld [default=no]"
22 ac_help="$ac_help
23 --disable-libtool-lock avoid locking (might break parallel builds)"
24 ac_help="$ac_help
25 --with-libs-from pass compiler flags to look for libraries"
26 ac_help="$ac_help
27 --with-incs-from pass compiler flags to look for header files"
28 ac_help="$ac_help
29 --with-nlsdir=PATH specify where the locale stuff should go "
30 ac_help="$ac_help
31 --enable-gnome enable stuff needed for GNOME "
32 ac_help="$ac_help
33 --enable-kde enable support for KDE window manager (kwm) hints "
34 ac_help="$ac_help
35 --enable-openlook enable support for OPEN LOOK(tm) (olwm) hints "
36 ac_help="$ac_help
37 --enable-lite disable some stuff (dont use it) "
38 ac_help="$ac_help
39 --with-x use the X Window System"
40 ac_help="$ac_help
41 --disable-locale disable use of X locale support"
42 ac_help="$ac_help
43 --enable-modelock XKB keyboard language status support"
44 ac_help="$ac_help
45 --disable-shape disable shaped window extension support"
46 ac_help="$ac_help
47 --disable-shm disable usage of MIT-SHM extension"
48 ac_help="$ac_help
49 --disable-xpm disable use of XPM pixmaps through libXpm"
50 ac_help="$ac_help
51 --disable-png disable PNG support through libpng"
52 ac_help="$ac_help
53 --disable-jpeg disable JPEG support through libjpeg"
54 ac_help="$ac_help
55 --disable-gif disable GIF support through libgif or libungif"
56 ac_help="$ac_help
57 --disable-tiff disable use of TIFF images through libtiff"
58 ac_help="$ac_help
59 --enable-debug enable debugging "
60 ac_help="$ac_help
61 --disable-sound disable sound support "
62 ac_help="$ac_help
63 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
64 ac_help="$ac_help
65 --with-appspath=PATH specify the directory for GNUstep applications"
66 ac_help="$ac_help
67 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
69 ac_help="$ac_help
70 --enable-usermenu user defined menus for applications
73 # Initialize some variables set by options.
74 # The variables have the same names as the options, with
75 # dashes changed to underlines.
76 build=NONE
77 cache_file=./config.cache
78 exec_prefix=NONE
79 host=NONE
80 no_create=
81 nonopt=NONE
82 no_recursion=
83 prefix=NONE
84 program_prefix=NONE
85 program_suffix=NONE
86 program_transform_name=s,x,x,
87 silent=
88 site=
89 srcdir=
90 target=NONE
91 verbose=
92 x_includes=NONE
93 x_libraries=NONE
94 bindir='${exec_prefix}/bin'
95 sbindir='${exec_prefix}/sbin'
96 libexecdir='${exec_prefix}/libexec'
97 datadir='${prefix}/share'
98 sysconfdir='${prefix}/etc'
99 sharedstatedir='${prefix}/com'
100 localstatedir='${prefix}/var'
101 libdir='${exec_prefix}/lib'
102 includedir='${prefix}/include'
103 oldincludedir='/usr/include'
104 infodir='${prefix}/info'
105 mandir='${prefix}/man'
107 # Initialize some other variables.
108 subdirs=
109 MFLAGS= MAKEFLAGS=
110 SHELL=${CONFIG_SHELL-/bin/sh}
111 # Maximum number of lines to put in a shell here document.
112 ac_max_here_lines=12
114 ac_prev=
115 for ac_option
118 # If the previous option needs an argument, assign it.
119 if test -n "$ac_prev"; then
120 eval "$ac_prev=\$ac_option"
121 ac_prev=
122 continue
125 case "$ac_option" in
126 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
127 *) ac_optarg= ;;
128 esac
130 # Accept the important Cygnus configure options, so we can diagnose typos.
132 case "$ac_option" in
134 -bindir | --bindir | --bindi | --bind | --bin | --bi)
135 ac_prev=bindir ;;
136 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
137 bindir="$ac_optarg" ;;
139 -build | --build | --buil | --bui | --bu)
140 ac_prev=build ;;
141 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
142 build="$ac_optarg" ;;
144 -cache-file | --cache-file | --cache-fil | --cache-fi \
145 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
146 ac_prev=cache_file ;;
147 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
148 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
149 cache_file="$ac_optarg" ;;
151 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
152 ac_prev=datadir ;;
153 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
154 | --da=*)
155 datadir="$ac_optarg" ;;
157 -disable-* | --disable-*)
158 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
159 # Reject names that are not valid shell variable names.
160 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
161 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
163 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
164 eval "enable_${ac_feature}=no" ;;
166 -enable-* | --enable-*)
167 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
168 # Reject names that are not valid shell variable names.
169 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
170 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
172 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
173 case "$ac_option" in
174 *=*) ;;
175 *) ac_optarg=yes ;;
176 esac
177 eval "enable_${ac_feature}='$ac_optarg'" ;;
179 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
180 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
181 | --exec | --exe | --ex)
182 ac_prev=exec_prefix ;;
183 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
184 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
185 | --exec=* | --exe=* | --ex=*)
186 exec_prefix="$ac_optarg" ;;
188 -gas | --gas | --ga | --g)
189 # Obsolete; use --with-gas.
190 with_gas=yes ;;
192 -help | --help | --hel | --he)
193 # Omit some internal or obsolete options to make the list less imposing.
194 # This message is too long to be a string in the A/UX 3.1 sh.
195 cat << EOF
196 Usage: configure [options] [host]
197 Options: [defaults in brackets after descriptions]
198 Configuration:
199 --cache-file=FILE cache test results in FILE
200 --help print this message
201 --no-create do not create output files
202 --quiet, --silent do not print \`checking...' messages
203 --version print the version of autoconf that created configure
204 Directory and file names:
205 --prefix=PREFIX install architecture-independent files in PREFIX
206 [$ac_default_prefix]
207 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
208 [same as prefix]
209 --bindir=DIR user executables in DIR [EPREFIX/bin]
210 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
211 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
212 --datadir=DIR read-only architecture-independent data in DIR
213 [PREFIX/share]
214 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
215 --sharedstatedir=DIR modifiable architecture-independent data in DIR
216 [PREFIX/com]
217 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
218 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
219 --includedir=DIR C header files in DIR [PREFIX/include]
220 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
221 --infodir=DIR info documentation in DIR [PREFIX/info]
222 --mandir=DIR man documentation in DIR [PREFIX/man]
223 --srcdir=DIR find the sources in DIR [configure dir or ..]
224 --program-prefix=PREFIX prepend PREFIX to installed program names
225 --program-suffix=SUFFIX append SUFFIX to installed program names
226 --program-transform-name=PROGRAM
227 run sed PROGRAM on installed program names
229 cat << EOF
230 Host type:
231 --build=BUILD configure for building on BUILD [BUILD=HOST]
232 --host=HOST configure for HOST [guessed]
233 --target=TARGET configure for TARGET [TARGET=HOST]
234 Features and packages:
235 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
236 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
237 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
238 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
239 --x-includes=DIR X include files are in DIR
240 --x-libraries=DIR X library files are in DIR
242 if test -n "$ac_help"; then
243 echo "--enable and --with options recognized:$ac_help"
245 exit 0 ;;
247 -host | --host | --hos | --ho)
248 ac_prev=host ;;
249 -host=* | --host=* | --hos=* | --ho=*)
250 host="$ac_optarg" ;;
252 -includedir | --includedir | --includedi | --included | --include \
253 | --includ | --inclu | --incl | --inc)
254 ac_prev=includedir ;;
255 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
256 | --includ=* | --inclu=* | --incl=* | --inc=*)
257 includedir="$ac_optarg" ;;
259 -infodir | --infodir | --infodi | --infod | --info | --inf)
260 ac_prev=infodir ;;
261 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
262 infodir="$ac_optarg" ;;
264 -libdir | --libdir | --libdi | --libd)
265 ac_prev=libdir ;;
266 -libdir=* | --libdir=* | --libdi=* | --libd=*)
267 libdir="$ac_optarg" ;;
269 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
270 | --libexe | --libex | --libe)
271 ac_prev=libexecdir ;;
272 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
273 | --libexe=* | --libex=* | --libe=*)
274 libexecdir="$ac_optarg" ;;
276 -localstatedir | --localstatedir | --localstatedi | --localstated \
277 | --localstate | --localstat | --localsta | --localst \
278 | --locals | --local | --loca | --loc | --lo)
279 ac_prev=localstatedir ;;
280 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
281 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
282 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
283 localstatedir="$ac_optarg" ;;
285 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
286 ac_prev=mandir ;;
287 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
288 mandir="$ac_optarg" ;;
290 -nfp | --nfp | --nf)
291 # Obsolete; use --without-fp.
292 with_fp=no ;;
294 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
295 | --no-cr | --no-c)
296 no_create=yes ;;
298 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
299 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
300 no_recursion=yes ;;
302 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
303 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
304 | --oldin | --oldi | --old | --ol | --o)
305 ac_prev=oldincludedir ;;
306 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
307 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
308 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
309 oldincludedir="$ac_optarg" ;;
311 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
312 ac_prev=prefix ;;
313 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
314 prefix="$ac_optarg" ;;
316 -program-prefix | --program-prefix | --program-prefi | --program-pref \
317 | --program-pre | --program-pr | --program-p)
318 ac_prev=program_prefix ;;
319 -program-prefix=* | --program-prefix=* | --program-prefi=* \
320 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
321 program_prefix="$ac_optarg" ;;
323 -program-suffix | --program-suffix | --program-suffi | --program-suff \
324 | --program-suf | --program-su | --program-s)
325 ac_prev=program_suffix ;;
326 -program-suffix=* | --program-suffix=* | --program-suffi=* \
327 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
328 program_suffix="$ac_optarg" ;;
330 -program-transform-name | --program-transform-name \
331 | --program-transform-nam | --program-transform-na \
332 | --program-transform-n | --program-transform- \
333 | --program-transform | --program-transfor \
334 | --program-transfo | --program-transf \
335 | --program-trans | --program-tran \
336 | --progr-tra | --program-tr | --program-t)
337 ac_prev=program_transform_name ;;
338 -program-transform-name=* | --program-transform-name=* \
339 | --program-transform-nam=* | --program-transform-na=* \
340 | --program-transform-n=* | --program-transform-=* \
341 | --program-transform=* | --program-transfor=* \
342 | --program-transfo=* | --program-transf=* \
343 | --program-trans=* | --program-tran=* \
344 | --progr-tra=* | --program-tr=* | --program-t=*)
345 program_transform_name="$ac_optarg" ;;
347 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
348 | -silent | --silent | --silen | --sile | --sil)
349 silent=yes ;;
351 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
352 ac_prev=sbindir ;;
353 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
354 | --sbi=* | --sb=*)
355 sbindir="$ac_optarg" ;;
357 -sharedstatedir | --sharedstatedir | --sharedstatedi \
358 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
359 | --sharedst | --shareds | --shared | --share | --shar \
360 | --sha | --sh)
361 ac_prev=sharedstatedir ;;
362 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
363 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
364 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
365 | --sha=* | --sh=*)
366 sharedstatedir="$ac_optarg" ;;
368 -site | --site | --sit)
369 ac_prev=site ;;
370 -site=* | --site=* | --sit=*)
371 site="$ac_optarg" ;;
373 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
374 ac_prev=srcdir ;;
375 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
376 srcdir="$ac_optarg" ;;
378 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
379 | --syscon | --sysco | --sysc | --sys | --sy)
380 ac_prev=sysconfdir ;;
381 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
382 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
383 sysconfdir="$ac_optarg" ;;
385 -target | --target | --targe | --targ | --tar | --ta | --t)
386 ac_prev=target ;;
387 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
388 target="$ac_optarg" ;;
390 -v | -verbose | --verbose | --verbos | --verbo | --verb)
391 verbose=yes ;;
393 -version | --version | --versio | --versi | --vers)
394 echo "configure generated by autoconf version 2.13"
395 exit 0 ;;
397 -with-* | --with-*)
398 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
399 # Reject names that are not valid shell variable names.
400 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
401 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
403 ac_package=`echo $ac_package| sed 's/-/_/g'`
404 case "$ac_option" in
405 *=*) ;;
406 *) ac_optarg=yes ;;
407 esac
408 eval "with_${ac_package}='$ac_optarg'" ;;
410 -without-* | --without-*)
411 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
412 # Reject names that are not valid shell variable names.
413 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
414 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
416 ac_package=`echo $ac_package| sed 's/-/_/g'`
417 eval "with_${ac_package}=no" ;;
419 --x)
420 # Obsolete; use --with-x.
421 with_x=yes ;;
423 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
424 | --x-incl | --x-inc | --x-in | --x-i)
425 ac_prev=x_includes ;;
426 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
427 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
428 x_includes="$ac_optarg" ;;
430 -x-libraries | --x-libraries | --x-librarie | --x-librari \
431 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
432 ac_prev=x_libraries ;;
433 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
434 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
435 x_libraries="$ac_optarg" ;;
437 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
441 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
442 echo "configure: warning: $ac_option: invalid host type" 1>&2
444 if test "x$nonopt" != xNONE; then
445 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
447 nonopt="$ac_option"
450 esac
451 done
453 if test -n "$ac_prev"; then
454 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
457 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
459 # File descriptor usage:
460 # 0 standard input
461 # 1 file creation
462 # 2 errors and warnings
463 # 3 some systems may open it to /dev/tty
464 # 4 used on the Kubota Titan
465 # 6 checking for... messages and results
466 # 5 compiler messages saved in config.log
467 if test "$silent" = yes; then
468 exec 6>/dev/null
469 else
470 exec 6>&1
472 exec 5>./config.log
474 echo "\
475 This file contains any messages produced by compilers while
476 running configure, to aid debugging if configure makes a mistake.
477 " 1>&5
479 # Strip out --no-create and --no-recursion so they do not pile up.
480 # Also quote any args containing shell metacharacters.
481 ac_configure_args=
482 for ac_arg
484 case "$ac_arg" in
485 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
486 | --no-cr | --no-c) ;;
487 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
488 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
489 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
490 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
491 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
492 esac
493 done
495 # NLS nuisances.
496 # Only set these to C if already set. These must not be set unconditionally
497 # because not all systems understand e.g. LANG=C (notably SCO).
498 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
499 # Non-C LC_CTYPE values break the ctype check.
500 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
501 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
502 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
503 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
505 # confdefs.h avoids OS command line length limits that DEFS can exceed.
506 rm -rf conftest* confdefs.h
507 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
508 echo > confdefs.h
510 # A filename unique to this package, relative to the directory that
511 # configure is in, which we can look for to find out if srcdir is correct.
512 ac_unique_file=src/WindowMaker.h
514 # Find the source files, if location was not specified.
515 if test -z "$srcdir"; then
516 ac_srcdir_defaulted=yes
517 # Try the directory containing this script, then its parent.
518 ac_prog=$0
519 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
520 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
521 srcdir=$ac_confdir
522 if test ! -r $srcdir/$ac_unique_file; then
523 srcdir=..
525 else
526 ac_srcdir_defaulted=no
528 if test ! -r $srcdir/$ac_unique_file; then
529 if test "$ac_srcdir_defaulted" = yes; then
530 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
531 else
532 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
535 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
537 # Prefer explicitly selected file to automatically selected ones.
538 if test -z "$CONFIG_SITE"; then
539 if test "x$prefix" != xNONE; then
540 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
541 else
542 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
545 for ac_site_file in $CONFIG_SITE; do
546 if test -r "$ac_site_file"; then
547 echo "loading site script $ac_site_file"
548 . "$ac_site_file"
550 done
552 if test -r "$cache_file"; then
553 echo "loading cache $cache_file"
554 . $cache_file
555 else
556 echo "creating cache $cache_file"
557 > $cache_file
560 ac_ext=c
561 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
562 ac_cpp='$CPP $CPPFLAGS'
563 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
564 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
565 cross_compiling=$ac_cv_prog_cc_cross
567 ac_exeext=
568 ac_objext=o
569 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
570 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
571 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
572 ac_n= ac_c='
573 ' ac_t=' '
574 else
575 ac_n=-n ac_c= ac_t=
577 else
578 ac_n= ac_c='\c' ac_t=
585 ac_aux_dir=
586 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
587 if test -f $ac_dir/install-sh; then
588 ac_aux_dir=$ac_dir
589 ac_install_sh="$ac_aux_dir/install-sh -c"
590 break
591 elif test -f $ac_dir/install.sh; then
592 ac_aux_dir=$ac_dir
593 ac_install_sh="$ac_aux_dir/install.sh -c"
594 break
596 done
597 if test -z "$ac_aux_dir"; then
598 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
600 ac_config_guess=$ac_aux_dir/config.guess
601 ac_config_sub=$ac_aux_dir/config.sub
602 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
604 # Find a good install program. We prefer a C program (faster),
605 # so one script is as good as another. But avoid the broken or
606 # incompatible versions:
607 # SysV /etc/install, /usr/sbin/install
608 # SunOS /usr/etc/install
609 # IRIX /sbin/install
610 # AIX /bin/install
611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
614 # ./install, which can be erroneously created by make from ./install.sh.
615 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
616 echo "configure:617: checking for a BSD compatible install" >&5
617 if test -z "$INSTALL"; then
618 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
619 echo $ac_n "(cached) $ac_c" 1>&6
620 else
621 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
622 for ac_dir in $PATH; do
623 # Account for people who put trailing slashes in PATH elements.
624 case "$ac_dir/" in
625 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
627 # OSF1 and SCO ODT 3.0 have their own names for install.
628 # Don't use installbsd from OSF since it installs stuff as root
629 # by default.
630 for ac_prog in ginstall scoinst install; do
631 if test -f $ac_dir/$ac_prog; then
632 if test $ac_prog = install &&
633 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
634 # AIX install. It has an incompatible calling convention.
636 else
637 ac_cv_path_install="$ac_dir/$ac_prog -c"
638 break 2
641 done
643 esac
644 done
645 IFS="$ac_save_IFS"
648 if test "${ac_cv_path_install+set}" = set; then
649 INSTALL="$ac_cv_path_install"
650 else
651 # As a last resort, use the slow shell script. We don't cache a
652 # path for INSTALL within a source directory, because that will
653 # break other packages using the cache if that directory is
654 # removed, or if the path is relative.
655 INSTALL="$ac_install_sh"
658 echo "$ac_t""$INSTALL" 1>&6
660 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
661 # It thinks the first close brace ends the variable substitution.
662 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
664 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
666 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
668 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
669 echo "configure:670: checking whether build environment is sane" >&5
670 # Just in case
671 sleep 1
672 echo timestamp > conftestfile
673 # Do `set' in a subshell so we don't clobber the current shell's
674 # arguments. Must try -L first in case configure is actually a
675 # symlink; some systems play weird games with the mod time of symlinks
676 # (eg FreeBSD returns the mod time of the symlink's containing
677 # directory).
678 if (
679 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
680 if test "$*" = "X"; then
681 # -L didn't work.
682 set X `ls -t $srcdir/configure conftestfile`
684 if test "$*" != "X $srcdir/configure conftestfile" \
685 && test "$*" != "X conftestfile $srcdir/configure"; then
687 # If neither matched, then we have a broken ls. This can happen
688 # if, for instance, CONFIG_SHELL is bash and it inherits a
689 # broken ls alias from the environment. This has actually
690 # happened. Such a system could not be considered "sane".
691 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
692 alias in your environment" 1>&2; exit 1; }
695 test "$2" = conftestfile
697 then
698 # Ok.
700 else
701 { echo "configure: error: newly created file is older than distributed files!
702 Check your system clock" 1>&2; exit 1; }
704 rm -f conftest*
705 echo "$ac_t""yes" 1>&6
706 if test "$program_transform_name" = s,x,x,; then
707 program_transform_name=
708 else
709 # Double any \ or $. echo might interpret backslashes.
710 cat <<\EOF_SED > conftestsed
711 s,\\,\\\\,g; s,\$,$$,g
712 EOF_SED
713 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
714 rm -f conftestsed
716 test "$program_prefix" != NONE &&
717 program_transform_name="s,^,${program_prefix},; $program_transform_name"
718 # Use a double $ so make ignores it.
719 test "$program_suffix" != NONE &&
720 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
722 # sed with no file args requires a program.
723 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
725 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
726 echo "configure:727: checking whether ${MAKE-make} sets \${MAKE}" >&5
727 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
728 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
729 echo $ac_n "(cached) $ac_c" 1>&6
730 else
731 cat > conftestmake <<\EOF
732 all:
733 @echo 'ac_maketemp="${MAKE}"'
735 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
736 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
737 if test -n "$ac_maketemp"; then
738 eval ac_cv_prog_make_${ac_make}_set=yes
739 else
740 eval ac_cv_prog_make_${ac_make}_set=no
742 rm -f conftestmake
744 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
745 echo "$ac_t""yes" 1>&6
746 SET_MAKE=
747 else
748 echo "$ac_t""no" 1>&6
749 SET_MAKE="MAKE=${MAKE-make}"
753 PACKAGE=WindowMaker
755 VERSION=0.61.1
757 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
758 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
760 cat >> confdefs.h <<EOF
761 #define PACKAGE "$PACKAGE"
764 cat >> confdefs.h <<EOF
765 #define VERSION "$VERSION"
770 missing_dir=`cd $ac_aux_dir && pwd`
771 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
772 echo "configure:773: checking for working aclocal" >&5
773 # Run test in a subshell; some versions of sh will print an error if
774 # an executable is not found, even if stderr is redirected.
775 # Redirect stdin to placate older versions of autoconf. Sigh.
776 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
777 ACLOCAL=aclocal
778 echo "$ac_t""found" 1>&6
779 else
780 ACLOCAL="$missing_dir/missing aclocal"
781 echo "$ac_t""missing" 1>&6
784 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
785 echo "configure:786: checking for working autoconf" >&5
786 # Run test in a subshell; some versions of sh will print an error if
787 # an executable is not found, even if stderr is redirected.
788 # Redirect stdin to placate older versions of autoconf. Sigh.
789 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
790 AUTOCONF=autoconf
791 echo "$ac_t""found" 1>&6
792 else
793 AUTOCONF="$missing_dir/missing autoconf"
794 echo "$ac_t""missing" 1>&6
797 echo $ac_n "checking for working automake""... $ac_c" 1>&6
798 echo "configure:799: checking for working automake" >&5
799 # Run test in a subshell; some versions of sh will print an error if
800 # an executable is not found, even if stderr is redirected.
801 # Redirect stdin to placate older versions of autoconf. Sigh.
802 if (automake --version) < /dev/null > /dev/null 2>&1; then
803 AUTOMAKE=automake
804 echo "$ac_t""found" 1>&6
805 else
806 AUTOMAKE="$missing_dir/missing automake"
807 echo "$ac_t""missing" 1>&6
810 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
811 echo "configure:812: checking for working autoheader" >&5
812 # Run test in a subshell; some versions of sh will print an error if
813 # an executable is not found, even if stderr is redirected.
814 # Redirect stdin to placate older versions of autoconf. Sigh.
815 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
816 AUTOHEADER=autoheader
817 echo "$ac_t""found" 1>&6
818 else
819 AUTOHEADER="$missing_dir/missing autoheader"
820 echo "$ac_t""missing" 1>&6
823 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
824 echo "configure:825: checking for working makeinfo" >&5
825 # Run test in a subshell; some versions of sh will print an error if
826 # an executable is not found, even if stderr is redirected.
827 # Redirect stdin to placate older versions of autoconf. Sigh.
828 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
829 MAKEINFO=makeinfo
830 echo "$ac_t""found" 1>&6
831 else
832 MAKEINFO="$missing_dir/missing makeinfo"
833 echo "$ac_t""missing" 1>&6
838 # Check whether --enable-shared or --disable-shared was given.
839 if test "${enable_shared+set}" = set; then
840 enableval="$enable_shared"
841 p=${PACKAGE-default}
842 case "$enableval" in
843 yes) enable_shared=yes ;;
844 no) enable_shared=no ;;
846 enable_shared=no
847 # Look at the argument we got. We use all the common list separators.
848 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
849 for pkg in $enableval; do
850 if test "X$pkg" = "X$p"; then
851 enable_shared=yes
853 done
854 IFS="$ac_save_ifs"
856 esac
857 else
858 enable_shared=yes
861 # Check whether --enable-static or --disable-static was given.
862 if test "${enable_static+set}" = set; then
863 enableval="$enable_static"
864 p=${PACKAGE-default}
865 case "$enableval" in
866 yes) enable_static=yes ;;
867 no) enable_static=no ;;
869 enable_static=no
870 # Look at the argument we got. We use all the common list separators.
871 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
872 for pkg in $enableval; do
873 if test "X$pkg" = "X$p"; then
874 enable_static=yes
876 done
877 IFS="$ac_save_ifs"
879 esac
880 else
881 enable_static=yes
884 # Check whether --enable-fast-install or --disable-fast-install was given.
885 if test "${enable_fast_install+set}" = set; then
886 enableval="$enable_fast_install"
887 p=${PACKAGE-default}
888 case "$enableval" in
889 yes) enable_fast_install=yes ;;
890 no) enable_fast_install=no ;;
892 enable_fast_install=no
893 # Look at the argument we got. We use all the common list separators.
894 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
895 for pkg in $enableval; do
896 if test "X$pkg" = "X$p"; then
897 enable_fast_install=yes
899 done
900 IFS="$ac_save_ifs"
902 esac
903 else
904 enable_fast_install=yes
908 # Make sure we can run config.sub.
909 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
910 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
913 echo $ac_n "checking host system type""... $ac_c" 1>&6
914 echo "configure:915: checking host system type" >&5
916 host_alias=$host
917 case "$host_alias" in
918 NONE)
919 case $nonopt in
920 NONE)
921 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
922 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
923 fi ;;
924 *) host_alias=$nonopt ;;
925 esac ;;
926 esac
928 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
929 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
930 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
931 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
932 echo "$ac_t""$host" 1>&6
934 echo $ac_n "checking build system type""... $ac_c" 1>&6
935 echo "configure:936: checking build system type" >&5
937 build_alias=$build
938 case "$build_alias" in
939 NONE)
940 case $nonopt in
941 NONE) build_alias=$host_alias ;;
942 *) build_alias=$nonopt ;;
943 esac ;;
944 esac
946 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
947 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
948 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
949 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
950 echo "$ac_t""$build" 1>&6
952 # Extract the first word of "ranlib", so it can be a program name with args.
953 set dummy ranlib; ac_word=$2
954 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
955 echo "configure:956: checking for $ac_word" >&5
956 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
957 echo $ac_n "(cached) $ac_c" 1>&6
958 else
959 if test -n "$RANLIB"; then
960 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
961 else
962 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
963 ac_dummy="$PATH"
964 for ac_dir in $ac_dummy; do
965 test -z "$ac_dir" && ac_dir=.
966 if test -f $ac_dir/$ac_word; then
967 ac_cv_prog_RANLIB="ranlib"
968 break
970 done
971 IFS="$ac_save_ifs"
972 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
975 RANLIB="$ac_cv_prog_RANLIB"
976 if test -n "$RANLIB"; then
977 echo "$ac_t""$RANLIB" 1>&6
978 else
979 echo "$ac_t""no" 1>&6
982 # Extract the first word of "gcc", so it can be a program name with args.
983 set dummy gcc; ac_word=$2
984 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
985 echo "configure:986: checking for $ac_word" >&5
986 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
987 echo $ac_n "(cached) $ac_c" 1>&6
988 else
989 if test -n "$CC"; then
990 ac_cv_prog_CC="$CC" # Let the user override the test.
991 else
992 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
993 ac_dummy="$PATH"
994 for ac_dir in $ac_dummy; do
995 test -z "$ac_dir" && ac_dir=.
996 if test -f $ac_dir/$ac_word; then
997 ac_cv_prog_CC="gcc"
998 break
1000 done
1001 IFS="$ac_save_ifs"
1004 CC="$ac_cv_prog_CC"
1005 if test -n "$CC"; then
1006 echo "$ac_t""$CC" 1>&6
1007 else
1008 echo "$ac_t""no" 1>&6
1011 if test -z "$CC"; then
1012 # Extract the first word of "cc", so it can be a program name with args.
1013 set dummy cc; ac_word=$2
1014 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1015 echo "configure:1016: checking for $ac_word" >&5
1016 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1017 echo $ac_n "(cached) $ac_c" 1>&6
1018 else
1019 if test -n "$CC"; then
1020 ac_cv_prog_CC="$CC" # Let the user override the test.
1021 else
1022 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1023 ac_prog_rejected=no
1024 ac_dummy="$PATH"
1025 for ac_dir in $ac_dummy; do
1026 test -z "$ac_dir" && ac_dir=.
1027 if test -f $ac_dir/$ac_word; then
1028 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1029 ac_prog_rejected=yes
1030 continue
1032 ac_cv_prog_CC="cc"
1033 break
1035 done
1036 IFS="$ac_save_ifs"
1037 if test $ac_prog_rejected = yes; then
1038 # We found a bogon in the path, so make sure we never use it.
1039 set dummy $ac_cv_prog_CC
1040 shift
1041 if test $# -gt 0; then
1042 # We chose a different compiler from the bogus one.
1043 # However, it has the same basename, so the bogon will be chosen
1044 # first if we set CC to just the basename; use the full file name.
1045 shift
1046 set dummy "$ac_dir/$ac_word" "$@"
1047 shift
1048 ac_cv_prog_CC="$@"
1053 CC="$ac_cv_prog_CC"
1054 if test -n "$CC"; then
1055 echo "$ac_t""$CC" 1>&6
1056 else
1057 echo "$ac_t""no" 1>&6
1060 if test -z "$CC"; then
1061 case "`uname -s`" in
1062 *win32* | *WIN32*)
1063 # Extract the first word of "cl", so it can be a program name with args.
1064 set dummy cl; ac_word=$2
1065 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1066 echo "configure:1067: checking for $ac_word" >&5
1067 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1068 echo $ac_n "(cached) $ac_c" 1>&6
1069 else
1070 if test -n "$CC"; then
1071 ac_cv_prog_CC="$CC" # Let the user override the test.
1072 else
1073 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1074 ac_dummy="$PATH"
1075 for ac_dir in $ac_dummy; do
1076 test -z "$ac_dir" && ac_dir=.
1077 if test -f $ac_dir/$ac_word; then
1078 ac_cv_prog_CC="cl"
1079 break
1081 done
1082 IFS="$ac_save_ifs"
1085 CC="$ac_cv_prog_CC"
1086 if test -n "$CC"; then
1087 echo "$ac_t""$CC" 1>&6
1088 else
1089 echo "$ac_t""no" 1>&6
1092 esac
1094 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1097 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1098 echo "configure:1099: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1100 ac_ext=c
1101 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1102 ac_cpp='$CPP $CPPFLAGS'
1103 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1104 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1105 cross_compiling=$ac_cv_prog_cc_cross
1107 cat > conftest.$ac_ext << EOF
1109 #line 1110 "configure"
1110 #include "confdefs.h"
1112 main(){return(0);}
1114 if { (eval echo configure:1115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1115 ac_cv_prog_cc_works=yes
1116 # If we can't run a trivial program, we are probably using a cross compiler.
1117 if (./conftest; exit) 2>/dev/null; then
1118 ac_cv_prog_cc_cross=no
1119 else
1120 ac_cv_prog_cc_cross=yes
1122 else
1123 echo "configure: failed program was:" >&5
1124 cat conftest.$ac_ext >&5
1125 ac_cv_prog_cc_works=no
1127 rm -fr conftest*
1128 ac_ext=c
1129 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1130 ac_cpp='$CPP $CPPFLAGS'
1131 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1132 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1133 cross_compiling=$ac_cv_prog_cc_cross
1135 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1136 if test $ac_cv_prog_cc_works = no; then
1137 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1139 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1140 echo "configure:1141: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1141 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1142 cross_compiling=$ac_cv_prog_cc_cross
1144 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1145 echo "configure:1146: checking whether we are using GNU C" >&5
1146 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1147 echo $ac_n "(cached) $ac_c" 1>&6
1148 else
1149 cat > conftest.c <<EOF
1150 #ifdef __GNUC__
1151 yes;
1152 #endif
1154 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1155: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1155 ac_cv_prog_gcc=yes
1156 else
1157 ac_cv_prog_gcc=no
1161 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1163 if test $ac_cv_prog_gcc = yes; then
1164 GCC=yes
1165 else
1166 GCC=
1169 ac_test_CFLAGS="${CFLAGS+set}"
1170 ac_save_CFLAGS="$CFLAGS"
1171 CFLAGS=
1172 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1173 echo "configure:1174: checking whether ${CC-cc} accepts -g" >&5
1174 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1175 echo $ac_n "(cached) $ac_c" 1>&6
1176 else
1177 echo 'void f(){}' > conftest.c
1178 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1179 ac_cv_prog_cc_g=yes
1180 else
1181 ac_cv_prog_cc_g=no
1183 rm -f conftest*
1187 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1188 if test "$ac_test_CFLAGS" = set; then
1189 CFLAGS="$ac_save_CFLAGS"
1190 elif test $ac_cv_prog_cc_g = yes; then
1191 if test "$GCC" = yes; then
1192 CFLAGS="-g -O2"
1193 else
1194 CFLAGS="-g"
1196 else
1197 if test "$GCC" = yes; then
1198 CFLAGS="-O2"
1199 else
1200 CFLAGS=
1204 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1205 if test "${with_gnu_ld+set}" = set; then
1206 withval="$with_gnu_ld"
1207 test "$withval" = no || with_gnu_ld=yes
1208 else
1209 with_gnu_ld=no
1212 ac_prog=ld
1213 if test "$ac_cv_prog_gcc" = yes; then
1214 # Check if gcc -print-prog-name=ld gives a path.
1215 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1216 echo "configure:1217: checking for ld used by GCC" >&5
1217 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1218 case "$ac_prog" in
1219 # Accept absolute paths.
1220 [\\/]* | [A-Za-z]:[\\/]*)
1221 re_direlt='/[^/][^/]*/\.\./'
1222 # Canonicalize the path of ld
1223 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1224 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1225 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1226 done
1227 test -z "$LD" && LD="$ac_prog"
1230 # If it fails, then pretend we aren't using GCC.
1231 ac_prog=ld
1234 # If it is relative, then search for the first ld in PATH.
1235 with_gnu_ld=unknown
1237 esac
1238 elif test "$with_gnu_ld" = yes; then
1239 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1240 echo "configure:1241: checking for GNU ld" >&5
1241 else
1242 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1243 echo "configure:1244: checking for non-GNU ld" >&5
1245 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1246 echo $ac_n "(cached) $ac_c" 1>&6
1247 else
1248 if test -z "$LD"; then
1249 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1250 for ac_dir in $PATH; do
1251 test -z "$ac_dir" && ac_dir=.
1252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1253 ac_cv_path_LD="$ac_dir/$ac_prog"
1254 # Check to see if the program is GNU ld. I'd rather use --version,
1255 # but apparently some GNU ld's only accept -v.
1256 # Break only if it was the GNU/non-GNU ld that we prefer.
1257 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1258 test "$with_gnu_ld" != no && break
1259 else
1260 test "$with_gnu_ld" != yes && break
1263 done
1264 IFS="$ac_save_ifs"
1265 else
1266 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1270 LD="$ac_cv_path_LD"
1271 if test -n "$LD"; then
1272 echo "$ac_t""$LD" 1>&6
1273 else
1274 echo "$ac_t""no" 1>&6
1276 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1278 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1279 echo "configure:1280: checking if the linker ($LD) is GNU ld" >&5
1280 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1281 echo $ac_n "(cached) $ac_c" 1>&6
1282 else
1283 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1284 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1285 ac_cv_prog_gnu_ld=yes
1286 else
1287 ac_cv_prog_gnu_ld=no
1291 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1294 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1295 echo "configure:1296: checking for BSD-compatible nm" >&5
1296 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1297 echo $ac_n "(cached) $ac_c" 1>&6
1298 else
1299 if test -n "$NM"; then
1300 # Let the user override the test.
1301 ac_cv_path_NM="$NM"
1302 else
1303 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1304 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1305 test -z "$ac_dir" && ac_dir=.
1306 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1307 # Check to see if the nm accepts a BSD-compat flag.
1308 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1309 # nm: unknown option "B" ignored
1310 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1311 ac_cv_path_NM="$ac_dir/nm -B"
1312 break
1313 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1314 ac_cv_path_NM="$ac_dir/nm -p"
1315 break
1316 else
1317 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1318 continue # so that we can try to find one that supports BSD flags
1321 done
1322 IFS="$ac_save_ifs"
1323 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1327 NM="$ac_cv_path_NM"
1328 echo "$ac_t""$NM" 1>&6
1331 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1332 echo "configure:1333: checking whether ln -s works" >&5
1333 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1334 echo $ac_n "(cached) $ac_c" 1>&6
1335 else
1336 rm -f conftestdata
1337 if ln -s X conftestdata 2>/dev/null
1338 then
1339 rm -f conftestdata
1340 ac_cv_prog_LN_S="ln -s"
1341 else
1342 ac_cv_prog_LN_S=ln
1345 LN_S="$ac_cv_prog_LN_S"
1346 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1347 echo "$ac_t""yes" 1>&6
1348 else
1349 echo "$ac_t""no" 1>&6
1353 # Check for any special flags to pass to ltconfig.
1354 libtool_flags="--cache-file=$cache_file"
1355 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1356 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1357 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1358 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1359 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1362 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1363 if test "${enable_libtool_lock+set}" = set; then
1364 enableval="$enable_libtool_lock"
1368 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1369 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1371 # Some flags need to be propagated to the compiler or linker for good
1372 # libtool support.
1373 case "$host" in
1374 *-*-irix6*)
1375 # Find out which ABI we are using.
1376 echo '#line 1377 "configure"' > conftest.$ac_ext
1377 if { (eval echo configure:1378: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1378 case "`/usr/bin/file conftest.o`" in
1379 *32-bit*)
1380 LD="${LD-ld} -32"
1382 *N32*)
1383 LD="${LD-ld} -n32"
1385 *64-bit*)
1386 LD="${LD-ld} -64"
1388 esac
1390 rm -rf conftest*
1393 *-*-sco3.2v5*)
1394 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1395 SAVE_CFLAGS="$CFLAGS"
1396 CFLAGS="$CFLAGS -belf"
1397 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1398 echo "configure:1399: checking whether the C compiler needs -belf" >&5
1399 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1400 echo $ac_n "(cached) $ac_c" 1>&6
1401 else
1402 cat > conftest.$ac_ext <<EOF
1403 #line 1404 "configure"
1404 #include "confdefs.h"
1406 int main() {
1408 ; return 0; }
1410 if { (eval echo configure:1411: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1411 rm -rf conftest*
1412 lt_cv_cc_needs_belf=yes
1413 else
1414 echo "configure: failed program was:" >&5
1415 cat conftest.$ac_ext >&5
1416 rm -rf conftest*
1417 lt_cv_cc_needs_belf=no
1419 rm -f conftest*
1422 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1423 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1424 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1425 CFLAGS="$SAVE_CFLAGS"
1430 esac
1433 # Save cache, so that ltconfig can load it
1434 cat > confcache <<\EOF
1435 # This file is a shell script that caches the results of configure
1436 # tests run on this system so they can be shared between configure
1437 # scripts and configure runs. It is not useful on other systems.
1438 # If it contains results you don't want to keep, you may remove or edit it.
1440 # By default, configure uses ./config.cache as the cache file,
1441 # creating it if it does not exist already. You can give configure
1442 # the --cache-file=FILE option to use a different cache file; that is
1443 # what configure does when it calls configure scripts in
1444 # subdirectories, so they share the cache.
1445 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1446 # config.status only pays attention to the cache file if you give it the
1447 # --recheck option to rerun configure.
1450 # The following way of writing the cache mishandles newlines in values,
1451 # but we know of no workaround that is simple, portable, and efficient.
1452 # So, don't put newlines in cache variables' values.
1453 # Ultrix sh set writes to stderr and can't be redirected directly,
1454 # and sets the high bit in the cache file unless we assign to the vars.
1455 (set) 2>&1 |
1456 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1457 *ac_space=\ *)
1458 # `set' does not quote correctly, so add quotes (double-quote substitution
1459 # turns \\\\ into \\, and sed turns \\ into \).
1460 sed -n \
1461 -e "s/'/'\\\\''/g" \
1462 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1465 # `set' quotes correctly as required by POSIX, so do not add quotes.
1466 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1468 esac >> confcache
1469 if cmp -s $cache_file confcache; then
1471 else
1472 if test -w $cache_file; then
1473 echo "updating cache $cache_file"
1474 cat confcache > $cache_file
1475 else
1476 echo "not updating unwritable cache $cache_file"
1479 rm -f confcache
1482 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1483 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1484 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1485 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1486 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1487 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1488 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $host \
1489 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1491 # Reload cache, that may have been modified by ltconfig
1492 if test -r "$cache_file"; then
1493 echo "loading cache $cache_file"
1494 . $cache_file
1495 else
1496 echo "creating cache $cache_file"
1497 > $cache_file
1501 # This can be used to rebuild libtool when needed
1502 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1504 # Always use our own libtool.
1505 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1507 # Redirect the config.log output again, so that the ltconfig log is not
1508 # clobbered by the next message.
1509 exec 5>>./config.log
1512 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1513 # Turn around -rpath problem with libtool 1.0c
1514 # This define should be improbable enough to not conflict with anything
1515 case ${host} in
1516 *-pc-linux-gnu)
1517 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1518 sed < libtool > libtool-2 \
1519 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1520 mv libtool-2 libtool
1521 chmod 755 libtool
1523 esac
1525 W_SYSTEM=`uname -s`
1535 # Make sure we can run config.sub.
1536 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1537 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1540 echo $ac_n "checking host system type""... $ac_c" 1>&6
1541 echo "configure:1542: checking host system type" >&5
1543 host_alias=$host
1544 case "$host_alias" in
1545 NONE)
1546 case $nonopt in
1547 NONE)
1548 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1549 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1550 fi ;;
1551 *) host_alias=$nonopt ;;
1552 esac ;;
1553 esac
1555 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1556 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1557 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1558 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1559 echo "$ac_t""$host" 1>&6
1563 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1564 echo "configure:1565: checking for POSIXized ISC" >&5
1565 if test -d /etc/conf/kconfig.d &&
1566 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1567 then
1568 echo "$ac_t""yes" 1>&6
1569 ISC=yes # If later tests want to check for ISC.
1570 cat >> confdefs.h <<\EOF
1571 #define _POSIX_SOURCE 1
1574 if test "$GCC" = yes; then
1575 CC="$CC -posix"
1576 else
1577 CC="$CC -Xp"
1579 else
1580 echo "$ac_t""no" 1>&6
1581 ISC=
1584 # Extract the first word of "gcc", so it can be a program name with args.
1585 set dummy gcc; ac_word=$2
1586 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1587 echo "configure:1588: checking for $ac_word" >&5
1588 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1589 echo $ac_n "(cached) $ac_c" 1>&6
1590 else
1591 if test -n "$CC"; then
1592 ac_cv_prog_CC="$CC" # Let the user override the test.
1593 else
1594 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1595 ac_dummy="$PATH"
1596 for ac_dir in $ac_dummy; do
1597 test -z "$ac_dir" && ac_dir=.
1598 if test -f $ac_dir/$ac_word; then
1599 ac_cv_prog_CC="gcc"
1600 break
1602 done
1603 IFS="$ac_save_ifs"
1606 CC="$ac_cv_prog_CC"
1607 if test -n "$CC"; then
1608 echo "$ac_t""$CC" 1>&6
1609 else
1610 echo "$ac_t""no" 1>&6
1613 if test -z "$CC"; then
1614 # Extract the first word of "cc", so it can be a program name with args.
1615 set dummy cc; ac_word=$2
1616 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1617 echo "configure:1618: checking for $ac_word" >&5
1618 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1619 echo $ac_n "(cached) $ac_c" 1>&6
1620 else
1621 if test -n "$CC"; then
1622 ac_cv_prog_CC="$CC" # Let the user override the test.
1623 else
1624 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1625 ac_prog_rejected=no
1626 ac_dummy="$PATH"
1627 for ac_dir in $ac_dummy; do
1628 test -z "$ac_dir" && ac_dir=.
1629 if test -f $ac_dir/$ac_word; then
1630 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1631 ac_prog_rejected=yes
1632 continue
1634 ac_cv_prog_CC="cc"
1635 break
1637 done
1638 IFS="$ac_save_ifs"
1639 if test $ac_prog_rejected = yes; then
1640 # We found a bogon in the path, so make sure we never use it.
1641 set dummy $ac_cv_prog_CC
1642 shift
1643 if test $# -gt 0; then
1644 # We chose a different compiler from the bogus one.
1645 # However, it has the same basename, so the bogon will be chosen
1646 # first if we set CC to just the basename; use the full file name.
1647 shift
1648 set dummy "$ac_dir/$ac_word" "$@"
1649 shift
1650 ac_cv_prog_CC="$@"
1655 CC="$ac_cv_prog_CC"
1656 if test -n "$CC"; then
1657 echo "$ac_t""$CC" 1>&6
1658 else
1659 echo "$ac_t""no" 1>&6
1662 if test -z "$CC"; then
1663 case "`uname -s`" in
1664 *win32* | *WIN32*)
1665 # Extract the first word of "cl", so it can be a program name with args.
1666 set dummy cl; ac_word=$2
1667 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1668 echo "configure:1669: checking for $ac_word" >&5
1669 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1670 echo $ac_n "(cached) $ac_c" 1>&6
1671 else
1672 if test -n "$CC"; then
1673 ac_cv_prog_CC="$CC" # Let the user override the test.
1674 else
1675 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1676 ac_dummy="$PATH"
1677 for ac_dir in $ac_dummy; do
1678 test -z "$ac_dir" && ac_dir=.
1679 if test -f $ac_dir/$ac_word; then
1680 ac_cv_prog_CC="cl"
1681 break
1683 done
1684 IFS="$ac_save_ifs"
1687 CC="$ac_cv_prog_CC"
1688 if test -n "$CC"; then
1689 echo "$ac_t""$CC" 1>&6
1690 else
1691 echo "$ac_t""no" 1>&6
1694 esac
1696 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1699 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1700 echo "configure:1701: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1702 ac_ext=c
1703 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1704 ac_cpp='$CPP $CPPFLAGS'
1705 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1706 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1707 cross_compiling=$ac_cv_prog_cc_cross
1709 cat > conftest.$ac_ext << EOF
1711 #line 1712 "configure"
1712 #include "confdefs.h"
1714 main(){return(0);}
1716 if { (eval echo configure:1717: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1717 ac_cv_prog_cc_works=yes
1718 # If we can't run a trivial program, we are probably using a cross compiler.
1719 if (./conftest; exit) 2>/dev/null; then
1720 ac_cv_prog_cc_cross=no
1721 else
1722 ac_cv_prog_cc_cross=yes
1724 else
1725 echo "configure: failed program was:" >&5
1726 cat conftest.$ac_ext >&5
1727 ac_cv_prog_cc_works=no
1729 rm -fr conftest*
1730 ac_ext=c
1731 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1732 ac_cpp='$CPP $CPPFLAGS'
1733 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1734 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1735 cross_compiling=$ac_cv_prog_cc_cross
1737 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1738 if test $ac_cv_prog_cc_works = no; then
1739 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1741 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1742 echo "configure:1743: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1743 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1744 cross_compiling=$ac_cv_prog_cc_cross
1746 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1747 echo "configure:1748: checking whether we are using GNU C" >&5
1748 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1749 echo $ac_n "(cached) $ac_c" 1>&6
1750 else
1751 cat > conftest.c <<EOF
1752 #ifdef __GNUC__
1753 yes;
1754 #endif
1756 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1757: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1757 ac_cv_prog_gcc=yes
1758 else
1759 ac_cv_prog_gcc=no
1763 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1765 if test $ac_cv_prog_gcc = yes; then
1766 GCC=yes
1767 else
1768 GCC=
1771 ac_test_CFLAGS="${CFLAGS+set}"
1772 ac_save_CFLAGS="$CFLAGS"
1773 CFLAGS=
1774 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1775 echo "configure:1776: checking whether ${CC-cc} accepts -g" >&5
1776 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1777 echo $ac_n "(cached) $ac_c" 1>&6
1778 else
1779 echo 'void f(){}' > conftest.c
1780 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1781 ac_cv_prog_cc_g=yes
1782 else
1783 ac_cv_prog_cc_g=no
1785 rm -f conftest*
1789 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1790 if test "$ac_test_CFLAGS" = set; then
1791 CFLAGS="$ac_save_CFLAGS"
1792 elif test $ac_cv_prog_cc_g = yes; then
1793 if test "$GCC" = yes; then
1794 CFLAGS="-g -O2"
1795 else
1796 CFLAGS="-g"
1798 else
1799 if test "$GCC" = yes; then
1800 CFLAGS="-O2"
1801 else
1802 CFLAGS=
1806 #AC_PROG_RANLIB
1807 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1808 echo "configure:1809: checking whether ln -s works" >&5
1809 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1811 else
1812 rm -f conftestdata
1813 if ln -s X conftestdata 2>/dev/null
1814 then
1815 rm -f conftestdata
1816 ac_cv_prog_LN_S="ln -s"
1817 else
1818 ac_cv_prog_LN_S=ln
1821 LN_S="$ac_cv_prog_LN_S"
1822 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1823 echo "$ac_t""yes" 1>&6
1824 else
1825 echo "$ac_t""no" 1>&6
1828 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1829 echo "configure:1830: checking how to run the C preprocessor" >&5
1830 # On Suns, sometimes $CPP names a directory.
1831 if test -n "$CPP" && test -d "$CPP"; then
1832 CPP=
1834 if test -z "$CPP"; then
1835 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1836 echo $ac_n "(cached) $ac_c" 1>&6
1837 else
1838 # This must be in double quotes, not single quotes, because CPP may get
1839 # substituted into the Makefile and "${CC-cc}" will confuse make.
1840 CPP="${CC-cc} -E"
1841 # On the NeXT, cc -E runs the code through the compiler's parser,
1842 # not just through cpp.
1843 cat > conftest.$ac_ext <<EOF
1844 #line 1845 "configure"
1845 #include "confdefs.h"
1846 #include <assert.h>
1847 Syntax Error
1849 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1850 { (eval echo configure:1851: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1851 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1852 if test -z "$ac_err"; then
1854 else
1855 echo "$ac_err" >&5
1856 echo "configure: failed program was:" >&5
1857 cat conftest.$ac_ext >&5
1858 rm -rf conftest*
1859 CPP="${CC-cc} -E -traditional-cpp"
1860 cat > conftest.$ac_ext <<EOF
1861 #line 1862 "configure"
1862 #include "confdefs.h"
1863 #include <assert.h>
1864 Syntax Error
1866 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1867 { (eval echo configure:1868: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1868 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1869 if test -z "$ac_err"; then
1871 else
1872 echo "$ac_err" >&5
1873 echo "configure: failed program was:" >&5
1874 cat conftest.$ac_ext >&5
1875 rm -rf conftest*
1876 CPP="${CC-cc} -nologo -E"
1877 cat > conftest.$ac_ext <<EOF
1878 #line 1879 "configure"
1879 #include "confdefs.h"
1880 #include <assert.h>
1881 Syntax Error
1883 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1884 { (eval echo configure:1885: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1885 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1886 if test -z "$ac_err"; then
1888 else
1889 echo "$ac_err" >&5
1890 echo "configure: failed program was:" >&5
1891 cat conftest.$ac_ext >&5
1892 rm -rf conftest*
1893 CPP=/lib/cpp
1895 rm -f conftest*
1897 rm -f conftest*
1899 rm -f conftest*
1900 ac_cv_prog_CPP="$CPP"
1902 CPP="$ac_cv_prog_CPP"
1903 else
1904 ac_cv_prog_CPP="$CPP"
1906 echo "$ac_t""$CPP" 1>&6
1908 if test $ac_cv_prog_gcc = yes; then
1909 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1910 echo "configure:1911: checking whether ${CC-cc} needs -traditional" >&5
1911 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1912 echo $ac_n "(cached) $ac_c" 1>&6
1913 else
1914 ac_pattern="Autoconf.*'x'"
1915 cat > conftest.$ac_ext <<EOF
1916 #line 1917 "configure"
1917 #include "confdefs.h"
1918 #include <sgtty.h>
1919 Autoconf TIOCGETP
1921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1922 egrep "$ac_pattern" >/dev/null 2>&1; then
1923 rm -rf conftest*
1924 ac_cv_prog_gcc_traditional=yes
1925 else
1926 rm -rf conftest*
1927 ac_cv_prog_gcc_traditional=no
1929 rm -f conftest*
1932 if test $ac_cv_prog_gcc_traditional = no; then
1933 cat > conftest.$ac_ext <<EOF
1934 #line 1935 "configure"
1935 #include "confdefs.h"
1936 #include <termio.h>
1937 Autoconf TCGETA
1939 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1940 egrep "$ac_pattern" >/dev/null 2>&1; then
1941 rm -rf conftest*
1942 ac_cv_prog_gcc_traditional=yes
1944 rm -f conftest*
1949 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1950 if test $ac_cv_prog_gcc_traditional = yes; then
1951 CC="$CC -traditional"
1958 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1959 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1962 _bindir=`eval echo $bindir`
1963 _bindir=`eval echo $_bindir`
1965 _libdir=`eval echo $libdir`
1966 _libdir=`eval echo $_libdir`
1967 lib_search_path="-L$_libdir"
1969 inc_search_path=`eval echo $includedir`
1970 inc_search_path="-I`eval echo $inc_search_path`"
1976 # Check whether --with-libs-from or --without-libs-from was given.
1977 if test "${with_libs_from+set}" = set; then
1978 withval="$with_libs_from"
1979 lib_search_path="$withval $lib_search_path"
1983 # Check whether --with-incs-from or --without-incs-from was given.
1984 if test "${with_incs_from+set}" = set; then
1985 withval="$with_incs_from"
1986 inc_search_path="$withval $inc_search_path"
1992 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1993 echo "configure:1994: checking for vprintf" >&5
1994 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1996 else
1997 cat > conftest.$ac_ext <<EOF
1998 #line 1999 "configure"
1999 #include "confdefs.h"
2000 /* System header to define __stub macros and hopefully few prototypes,
2001 which can conflict with char vprintf(); below. */
2002 #include <assert.h>
2003 /* Override any gcc2 internal prototype to avoid an error. */
2004 /* We use char because int might match the return type of a gcc2
2005 builtin and then its argument prototype would still apply. */
2006 char vprintf();
2008 int main() {
2010 /* The GNU C library defines this for functions which it implements
2011 to always fail with ENOSYS. Some functions are actually named
2012 something starting with __ and the normal name is an alias. */
2013 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2014 choke me
2015 #else
2016 vprintf();
2017 #endif
2019 ; return 0; }
2021 if { (eval echo configure:2022: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2022 rm -rf conftest*
2023 eval "ac_cv_func_vprintf=yes"
2024 else
2025 echo "configure: failed program was:" >&5
2026 cat conftest.$ac_ext >&5
2027 rm -rf conftest*
2028 eval "ac_cv_func_vprintf=no"
2030 rm -f conftest*
2033 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2034 echo "$ac_t""yes" 1>&6
2035 cat >> confdefs.h <<\EOF
2036 #define HAVE_VPRINTF 1
2039 else
2040 echo "$ac_t""no" 1>&6
2043 if test "$ac_cv_func_vprintf" != yes; then
2044 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2045 echo "configure:2046: checking for _doprnt" >&5
2046 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2047 echo $ac_n "(cached) $ac_c" 1>&6
2048 else
2049 cat > conftest.$ac_ext <<EOF
2050 #line 2051 "configure"
2051 #include "confdefs.h"
2052 /* System header to define __stub macros and hopefully few prototypes,
2053 which can conflict with char _doprnt(); below. */
2054 #include <assert.h>
2055 /* Override any gcc2 internal prototype to avoid an error. */
2056 /* We use char because int might match the return type of a gcc2
2057 builtin and then its argument prototype would still apply. */
2058 char _doprnt();
2060 int main() {
2062 /* The GNU C library defines this for functions which it implements
2063 to always fail with ENOSYS. Some functions are actually named
2064 something starting with __ and the normal name is an alias. */
2065 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2066 choke me
2067 #else
2068 _doprnt();
2069 #endif
2071 ; return 0; }
2073 if { (eval echo configure:2074: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2074 rm -rf conftest*
2075 eval "ac_cv_func__doprnt=yes"
2076 else
2077 echo "configure: failed program was:" >&5
2078 cat conftest.$ac_ext >&5
2079 rm -rf conftest*
2080 eval "ac_cv_func__doprnt=no"
2082 rm -f conftest*
2085 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2086 echo "$ac_t""yes" 1>&6
2087 cat >> confdefs.h <<\EOF
2088 #define HAVE_DOPRNT 1
2091 else
2092 echo "$ac_t""no" 1>&6
2097 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2098 # for constant arguments. Useless!
2099 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2100 echo "configure:2101: checking for working alloca.h" >&5
2101 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2102 echo $ac_n "(cached) $ac_c" 1>&6
2103 else
2104 cat > conftest.$ac_ext <<EOF
2105 #line 2106 "configure"
2106 #include "confdefs.h"
2107 #include <alloca.h>
2108 int main() {
2109 char *p = alloca(2 * sizeof(int));
2110 ; return 0; }
2112 if { (eval echo configure:2113: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2113 rm -rf conftest*
2114 ac_cv_header_alloca_h=yes
2115 else
2116 echo "configure: failed program was:" >&5
2117 cat conftest.$ac_ext >&5
2118 rm -rf conftest*
2119 ac_cv_header_alloca_h=no
2121 rm -f conftest*
2124 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2125 if test $ac_cv_header_alloca_h = yes; then
2126 cat >> confdefs.h <<\EOF
2127 #define HAVE_ALLOCA_H 1
2132 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2133 echo "configure:2134: checking for alloca" >&5
2134 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2135 echo $ac_n "(cached) $ac_c" 1>&6
2136 else
2137 cat > conftest.$ac_ext <<EOF
2138 #line 2139 "configure"
2139 #include "confdefs.h"
2141 #ifdef __GNUC__
2142 # define alloca __builtin_alloca
2143 #else
2144 # ifdef _MSC_VER
2145 # include <malloc.h>
2146 # define alloca _alloca
2147 # else
2148 # if HAVE_ALLOCA_H
2149 # include <alloca.h>
2150 # else
2151 # ifdef _AIX
2152 #pragma alloca
2153 # else
2154 # ifndef alloca /* predefined by HP cc +Olibcalls */
2155 char *alloca ();
2156 # endif
2157 # endif
2158 # endif
2159 # endif
2160 #endif
2162 int main() {
2163 char *p = (char *) alloca(1);
2164 ; return 0; }
2166 if { (eval echo configure:2167: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2167 rm -rf conftest*
2168 ac_cv_func_alloca_works=yes
2169 else
2170 echo "configure: failed program was:" >&5
2171 cat conftest.$ac_ext >&5
2172 rm -rf conftest*
2173 ac_cv_func_alloca_works=no
2175 rm -f conftest*
2178 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2179 if test $ac_cv_func_alloca_works = yes; then
2180 cat >> confdefs.h <<\EOF
2181 #define HAVE_ALLOCA 1
2186 if test $ac_cv_func_alloca_works = no; then
2187 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2188 # that cause trouble. Some versions do not even contain alloca or
2189 # contain a buggy version. If you still want to use their alloca,
2190 # use ar to extract alloca.o from them instead of compiling alloca.c.
2191 ALLOCA=alloca.${ac_objext}
2192 cat >> confdefs.h <<\EOF
2193 #define C_ALLOCA 1
2197 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2198 echo "configure:2199: checking whether alloca needs Cray hooks" >&5
2199 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2200 echo $ac_n "(cached) $ac_c" 1>&6
2201 else
2202 cat > conftest.$ac_ext <<EOF
2203 #line 2204 "configure"
2204 #include "confdefs.h"
2205 #if defined(CRAY) && ! defined(CRAY2)
2206 webecray
2207 #else
2208 wenotbecray
2209 #endif
2212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2213 egrep "webecray" >/dev/null 2>&1; then
2214 rm -rf conftest*
2215 ac_cv_os_cray=yes
2216 else
2217 rm -rf conftest*
2218 ac_cv_os_cray=no
2220 rm -f conftest*
2224 echo "$ac_t""$ac_cv_os_cray" 1>&6
2225 if test $ac_cv_os_cray = yes; then
2226 for ac_func in _getb67 GETB67 getb67; do
2227 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2228 echo "configure:2229: checking for $ac_func" >&5
2229 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2230 echo $ac_n "(cached) $ac_c" 1>&6
2231 else
2232 cat > conftest.$ac_ext <<EOF
2233 #line 2234 "configure"
2234 #include "confdefs.h"
2235 /* System header to define __stub macros and hopefully few prototypes,
2236 which can conflict with char $ac_func(); below. */
2237 #include <assert.h>
2238 /* Override any gcc2 internal prototype to avoid an error. */
2239 /* We use char because int might match the return type of a gcc2
2240 builtin and then its argument prototype would still apply. */
2241 char $ac_func();
2243 int main() {
2245 /* The GNU C library defines this for functions which it implements
2246 to always fail with ENOSYS. Some functions are actually named
2247 something starting with __ and the normal name is an alias. */
2248 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2249 choke me
2250 #else
2251 $ac_func();
2252 #endif
2254 ; return 0; }
2256 if { (eval echo configure:2257: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2257 rm -rf conftest*
2258 eval "ac_cv_func_$ac_func=yes"
2259 else
2260 echo "configure: failed program was:" >&5
2261 cat conftest.$ac_ext >&5
2262 rm -rf conftest*
2263 eval "ac_cv_func_$ac_func=no"
2265 rm -f conftest*
2268 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2269 echo "$ac_t""yes" 1>&6
2270 cat >> confdefs.h <<EOF
2271 #define CRAY_STACKSEG_END $ac_func
2274 break
2275 else
2276 echo "$ac_t""no" 1>&6
2279 done
2282 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2283 echo "configure:2284: checking stack direction for C alloca" >&5
2284 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2285 echo $ac_n "(cached) $ac_c" 1>&6
2286 else
2287 if test "$cross_compiling" = yes; then
2288 ac_cv_c_stack_direction=0
2289 else
2290 cat > conftest.$ac_ext <<EOF
2291 #line 2292 "configure"
2292 #include "confdefs.h"
2293 find_stack_direction ()
2295 static char *addr = 0;
2296 auto char dummy;
2297 if (addr == 0)
2299 addr = &dummy;
2300 return find_stack_direction ();
2302 else
2303 return (&dummy > addr) ? 1 : -1;
2305 main ()
2307 exit (find_stack_direction() < 0);
2310 if { (eval echo configure:2311: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2311 then
2312 ac_cv_c_stack_direction=1
2313 else
2314 echo "configure: failed program was:" >&5
2315 cat conftest.$ac_ext >&5
2316 rm -fr conftest*
2317 ac_cv_c_stack_direction=-1
2319 rm -fr conftest*
2324 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2325 cat >> confdefs.h <<EOF
2326 #define STACK_DIRECTION $ac_cv_c_stack_direction
2331 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit inet_aton
2333 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2334 echo "configure:2335: checking for $ac_func" >&5
2335 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2336 echo $ac_n "(cached) $ac_c" 1>&6
2337 else
2338 cat > conftest.$ac_ext <<EOF
2339 #line 2340 "configure"
2340 #include "confdefs.h"
2341 /* System header to define __stub macros and hopefully few prototypes,
2342 which can conflict with char $ac_func(); below. */
2343 #include <assert.h>
2344 /* Override any gcc2 internal prototype to avoid an error. */
2345 /* We use char because int might match the return type of a gcc2
2346 builtin and then its argument prototype would still apply. */
2347 char $ac_func();
2349 int main() {
2351 /* The GNU C library defines this for functions which it implements
2352 to always fail with ENOSYS. Some functions are actually named
2353 something starting with __ and the normal name is an alias. */
2354 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2355 choke me
2356 #else
2357 $ac_func();
2358 #endif
2360 ; return 0; }
2362 if { (eval echo configure:2363: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2363 rm -rf conftest*
2364 eval "ac_cv_func_$ac_func=yes"
2365 else
2366 echo "configure: failed program was:" >&5
2367 cat conftest.$ac_ext >&5
2368 rm -rf conftest*
2369 eval "ac_cv_func_$ac_func=no"
2371 rm -f conftest*
2374 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2375 echo "$ac_t""yes" 1>&6
2376 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2377 cat >> confdefs.h <<EOF
2378 #define $ac_tr_func 1
2381 else
2382 echo "$ac_t""no" 1>&6
2384 done
2389 DLLIBS=""
2391 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2392 echo "configure:2393: checking for dlopen" >&5
2393 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2394 echo $ac_n "(cached) $ac_c" 1>&6
2395 else
2396 cat > conftest.$ac_ext <<EOF
2397 #line 2398 "configure"
2398 #include "confdefs.h"
2399 /* System header to define __stub macros and hopefully few prototypes,
2400 which can conflict with char dlopen(); below. */
2401 #include <assert.h>
2402 /* Override any gcc2 internal prototype to avoid an error. */
2403 /* We use char because int might match the return type of a gcc2
2404 builtin and then its argument prototype would still apply. */
2405 char dlopen();
2407 int main() {
2409 /* The GNU C library defines this for functions which it implements
2410 to always fail with ENOSYS. Some functions are actually named
2411 something starting with __ and the normal name is an alias. */
2412 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2413 choke me
2414 #else
2415 dlopen();
2416 #endif
2418 ; return 0; }
2420 if { (eval echo configure:2421: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2421 rm -rf conftest*
2422 eval "ac_cv_func_dlopen=yes"
2423 else
2424 echo "configure: failed program was:" >&5
2425 cat conftest.$ac_ext >&5
2426 rm -rf conftest*
2427 eval "ac_cv_func_dlopen=no"
2429 rm -f conftest*
2432 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2433 echo "$ac_t""yes" 1>&6
2434 HAVEDL="yes"
2435 else
2436 echo "$ac_t""no" 1>&6
2437 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2438 echo "configure:2439: checking for dlopen in -ldl" >&5
2439 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2440 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2441 echo $ac_n "(cached) $ac_c" 1>&6
2442 else
2443 ac_save_LIBS="$LIBS"
2444 LIBS="-ldl $LIBS"
2445 cat > conftest.$ac_ext <<EOF
2446 #line 2447 "configure"
2447 #include "confdefs.h"
2448 /* Override any gcc2 internal prototype to avoid an error. */
2449 /* We use char because int might match the return type of a gcc2
2450 builtin and then its argument prototype would still apply. */
2451 char dlopen();
2453 int main() {
2454 dlopen()
2455 ; return 0; }
2457 if { (eval echo configure:2458: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2458 rm -rf conftest*
2459 eval "ac_cv_lib_$ac_lib_var=yes"
2460 else
2461 echo "configure: failed program was:" >&5
2462 cat conftest.$ac_ext >&5
2463 rm -rf conftest*
2464 eval "ac_cv_lib_$ac_lib_var=no"
2466 rm -f conftest*
2467 LIBS="$ac_save_LIBS"
2470 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2471 echo "$ac_t""yes" 1>&6
2472 DLLIBS="-ldl" HAVEDL="yes"
2473 else
2474 echo "$ac_t""no" 1>&6
2475 DLLIBS=""
2481 if test "x$HAVEDL" = xyes; then
2482 for ac_hdr in dlfcn.h
2484 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2485 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2486 echo "configure:2487: checking for $ac_hdr" >&5
2487 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2488 echo $ac_n "(cached) $ac_c" 1>&6
2489 else
2490 cat > conftest.$ac_ext <<EOF
2491 #line 2492 "configure"
2492 #include "confdefs.h"
2493 #include <$ac_hdr>
2495 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2496 { (eval echo configure:2497: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2497 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2498 if test -z "$ac_err"; then
2499 rm -rf conftest*
2500 eval "ac_cv_header_$ac_safe=yes"
2501 else
2502 echo "$ac_err" >&5
2503 echo "configure: failed program was:" >&5
2504 cat conftest.$ac_ext >&5
2505 rm -rf conftest*
2506 eval "ac_cv_header_$ac_safe=no"
2508 rm -f conftest*
2510 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2511 echo "$ac_t""yes" 1>&6
2512 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2513 cat >> confdefs.h <<EOF
2514 #define $ac_tr_hdr 1
2517 else
2518 echo "$ac_t""no" 1>&6
2520 done
2526 if test "x$CPP_PATH" = x; then
2527 # Extract the first word of "cpp", so it can be a program name with args.
2528 set dummy cpp; ac_word=$2
2529 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2530 echo "configure:2531: checking for $ac_word" >&5
2531 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2532 echo $ac_n "(cached) $ac_c" 1>&6
2533 else
2534 case "$CPP_PATH" in
2536 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2538 ?:/*)
2539 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2542 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2543 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2544 for ac_dir in $ac_dummy; do
2545 test -z "$ac_dir" && ac_dir=.
2546 if test -f $ac_dir/$ac_word; then
2547 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2548 break
2550 done
2551 IFS="$ac_save_ifs"
2552 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2554 esac
2556 CPP_PATH="$ac_cv_path_CPP_PATH"
2557 if test -n "$CPP_PATH"; then
2558 echo "$ac_t""$CPP_PATH" 1>&6
2559 else
2560 echo "$ac_t""no" 1>&6
2565 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2566 if test "$GCC" = "yes"; then
2567 CPP_PATH="gcc -E -x c"
2568 else
2569 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2570 CPP_PATH="$CPP_PATH -B"
2571 else
2572 echo "cpp, the C preprocessor was not found in your system."
2573 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2574 exit
2578 cat >> confdefs.h <<EOF
2579 #define CPP_PATH "$CPP_PATH"
2585 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2586 echo "configure:2587: checking for sys/wait.h that is POSIX.1 compatible" >&5
2587 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2588 echo $ac_n "(cached) $ac_c" 1>&6
2589 else
2590 cat > conftest.$ac_ext <<EOF
2591 #line 2592 "configure"
2592 #include "confdefs.h"
2593 #include <sys/types.h>
2594 #include <sys/wait.h>
2595 #ifndef WEXITSTATUS
2596 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2597 #endif
2598 #ifndef WIFEXITED
2599 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2600 #endif
2601 int main() {
2602 int s;
2603 wait (&s);
2604 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2605 ; return 0; }
2607 if { (eval echo configure:2608: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2608 rm -rf conftest*
2609 ac_cv_header_sys_wait_h=yes
2610 else
2611 echo "configure: failed program was:" >&5
2612 cat conftest.$ac_ext >&5
2613 rm -rf conftest*
2614 ac_cv_header_sys_wait_h=no
2616 rm -f conftest*
2619 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2620 if test $ac_cv_header_sys_wait_h = yes; then
2621 cat >> confdefs.h <<\EOF
2622 #define HAVE_SYS_WAIT_H 1
2627 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2628 echo "configure:2629: checking whether time.h and sys/time.h may both be included" >&5
2629 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2630 echo $ac_n "(cached) $ac_c" 1>&6
2631 else
2632 cat > conftest.$ac_ext <<EOF
2633 #line 2634 "configure"
2634 #include "confdefs.h"
2635 #include <sys/types.h>
2636 #include <sys/time.h>
2637 #include <time.h>
2638 int main() {
2639 struct tm *tp;
2640 ; return 0; }
2642 if { (eval echo configure:2643: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2643 rm -rf conftest*
2644 ac_cv_header_time=yes
2645 else
2646 echo "configure: failed program was:" >&5
2647 cat conftest.$ac_ext >&5
2648 rm -rf conftest*
2649 ac_cv_header_time=no
2651 rm -f conftest*
2654 echo "$ac_t""$ac_cv_header_time" 1>&6
2655 if test $ac_cv_header_time = yes; then
2656 cat >> confdefs.h <<\EOF
2657 #define TIME_WITH_SYS_TIME 1
2662 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2663 libintl.h sys/select.h poll.h
2665 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2666 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2667 echo "configure:2668: checking for $ac_hdr" >&5
2668 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2669 echo $ac_n "(cached) $ac_c" 1>&6
2670 else
2671 cat > conftest.$ac_ext <<EOF
2672 #line 2673 "configure"
2673 #include "confdefs.h"
2674 #include <$ac_hdr>
2676 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2677 { (eval echo configure:2678: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2678 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2679 if test -z "$ac_err"; then
2680 rm -rf conftest*
2681 eval "ac_cv_header_$ac_safe=yes"
2682 else
2683 echo "$ac_err" >&5
2684 echo "configure: failed program was:" >&5
2685 cat conftest.$ac_ext >&5
2686 rm -rf conftest*
2687 eval "ac_cv_header_$ac_safe=no"
2689 rm -f conftest*
2691 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2692 echo "$ac_t""yes" 1>&6
2693 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2694 cat >> confdefs.h <<EOF
2695 #define $ac_tr_hdr 1
2698 else
2699 echo "$ac_t""no" 1>&6
2701 done
2706 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2707 echo "configure:2708: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2708 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2709 echo $ac_n "(cached) $ac_c" 1>&6
2710 else
2711 cat > conftest.$ac_ext <<EOF
2712 #line 2713 "configure"
2713 #include "confdefs.h"
2714 #include <sys/types.h>
2715 #include <signal.h>
2716 /* NetBSD declares sys_siglist in unistd.h. */
2717 #ifdef HAVE_UNISTD_H
2718 #include <unistd.h>
2719 #endif
2720 int main() {
2721 char *msg = *(sys_siglist + 1);
2722 ; return 0; }
2724 if { (eval echo configure:2725: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2725 rm -rf conftest*
2726 ac_cv_decl_sys_siglist=yes
2727 else
2728 echo "configure: failed program was:" >&5
2729 cat conftest.$ac_ext >&5
2730 rm -rf conftest*
2731 ac_cv_decl_sys_siglist=no
2733 rm -f conftest*
2736 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2737 if test $ac_cv_decl_sys_siglist = yes; then
2738 cat >> confdefs.h <<\EOF
2739 #define SYS_SIGLIST_DECLARED 1
2744 echo $ac_n "checking for working const""... $ac_c" 1>&6
2745 echo "configure:2746: checking for working const" >&5
2746 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2747 echo $ac_n "(cached) $ac_c" 1>&6
2748 else
2749 cat > conftest.$ac_ext <<EOF
2750 #line 2751 "configure"
2751 #include "confdefs.h"
2753 int main() {
2755 /* Ultrix mips cc rejects this. */
2756 typedef int charset[2]; const charset x = {0,0};
2757 /* SunOS 4.1.1 cc rejects this. */
2758 char const *const *ccp;
2759 char **p;
2760 /* NEC SVR4.0.2 mips cc rejects this. */
2761 struct point {int x, y;};
2762 static struct point const zero = {0,0};
2763 /* AIX XL C 1.02.0.0 rejects this.
2764 It does not let you subtract one const X* pointer from another in an arm
2765 of an if-expression whose if-part is not a constant expression */
2766 const char *g = "string";
2767 ccp = &g + (g ? g-g : 0);
2768 /* HPUX 7.0 cc rejects these. */
2769 ++ccp;
2770 p = (char**) ccp;
2771 ccp = (char const *const *) p;
2772 { /* SCO 3.2v4 cc rejects this. */
2773 char *t;
2774 char const *s = 0 ? (char *) 0 : (char const *) 0;
2776 *t++ = 0;
2778 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2779 int x[] = {25, 17};
2780 const int *foo = &x[0];
2781 ++foo;
2783 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2784 typedef const int *iptr;
2785 iptr p = 0;
2786 ++p;
2788 { /* AIX XL C 1.02.0.0 rejects this saying
2789 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2790 struct s { int j; const int *ap[3]; };
2791 struct s *b; b->j = 5;
2793 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2794 const int foo = 10;
2797 ; return 0; }
2799 if { (eval echo configure:2800: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2800 rm -rf conftest*
2801 ac_cv_c_const=yes
2802 else
2803 echo "configure: failed program was:" >&5
2804 cat conftest.$ac_ext >&5
2805 rm -rf conftest*
2806 ac_cv_c_const=no
2808 rm -f conftest*
2811 echo "$ac_t""$ac_cv_c_const" 1>&6
2812 if test $ac_cv_c_const = no; then
2813 cat >> confdefs.h <<\EOF
2814 #define const
2819 #AC_TYPE_SIZE_T
2820 #AC_TYPE_PID_T
2821 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2822 echo "configure:2823: checking return type of signal handlers" >&5
2823 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2824 echo $ac_n "(cached) $ac_c" 1>&6
2825 else
2826 cat > conftest.$ac_ext <<EOF
2827 #line 2828 "configure"
2828 #include "confdefs.h"
2829 #include <sys/types.h>
2830 #include <signal.h>
2831 #ifdef signal
2832 #undef signal
2833 #endif
2834 #ifdef __cplusplus
2835 extern "C" void (*signal (int, void (*)(int)))(int);
2836 #else
2837 void (*signal ()) ();
2838 #endif
2840 int main() {
2841 int i;
2842 ; return 0; }
2844 if { (eval echo configure:2845: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2845 rm -rf conftest*
2846 ac_cv_type_signal=void
2847 else
2848 echo "configure: failed program was:" >&5
2849 cat conftest.$ac_ext >&5
2850 rm -rf conftest*
2851 ac_cv_type_signal=int
2853 rm -f conftest*
2856 echo "$ac_t""$ac_cv_type_signal" 1>&6
2857 cat >> confdefs.h <<EOF
2858 #define RETSIGTYPE $ac_cv_type_signal
2869 INTLIBS=""
2871 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2872 echo "configure:2873: checking for gettext" >&5
2873 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2874 echo $ac_n "(cached) $ac_c" 1>&6
2875 else
2876 cat > conftest.$ac_ext <<EOF
2877 #line 2878 "configure"
2878 #include "confdefs.h"
2879 /* System header to define __stub macros and hopefully few prototypes,
2880 which can conflict with char gettext(); below. */
2881 #include <assert.h>
2882 /* Override any gcc2 internal prototype to avoid an error. */
2883 /* We use char because int might match the return type of a gcc2
2884 builtin and then its argument prototype would still apply. */
2885 char gettext();
2887 int main() {
2889 /* The GNU C library defines this for functions which it implements
2890 to always fail with ENOSYS. Some functions are actually named
2891 something starting with __ and the normal name is an alias. */
2892 #if defined (__stub_gettext) || defined (__stub___gettext)
2893 choke me
2894 #else
2895 gettext();
2896 #endif
2898 ; return 0; }
2900 if { (eval echo configure:2901: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2901 rm -rf conftest*
2902 eval "ac_cv_func_gettext=yes"
2903 else
2904 echo "configure: failed program was:" >&5
2905 cat conftest.$ac_ext >&5
2906 rm -rf conftest*
2907 eval "ac_cv_func_gettext=no"
2909 rm -f conftest*
2912 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2913 echo "$ac_t""yes" 1>&6
2914 HAVEGETTEXT="yes"
2915 else
2916 echo "$ac_t""no" 1>&6
2917 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2918 echo "configure:2919: checking for gettext in -lintl" >&5
2919 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2920 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2921 echo $ac_n "(cached) $ac_c" 1>&6
2922 else
2923 ac_save_LIBS="$LIBS"
2924 LIBS="-lintl $LIBS"
2925 cat > conftest.$ac_ext <<EOF
2926 #line 2927 "configure"
2927 #include "confdefs.h"
2928 /* Override any gcc2 internal prototype to avoid an error. */
2929 /* We use char because int might match the return type of a gcc2
2930 builtin and then its argument prototype would still apply. */
2931 char gettext();
2933 int main() {
2934 gettext()
2935 ; return 0; }
2937 if { (eval echo configure:2938: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2938 rm -rf conftest*
2939 eval "ac_cv_lib_$ac_lib_var=yes"
2940 else
2941 echo "configure: failed program was:" >&5
2942 cat conftest.$ac_ext >&5
2943 rm -rf conftest*
2944 eval "ac_cv_lib_$ac_lib_var=no"
2946 rm -f conftest*
2947 LIBS="$ac_save_LIBS"
2950 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2951 echo "$ac_t""yes" 1>&6
2952 INTLIBS="-lintl" HAVEGETTEXT="yes"
2953 else
2954 echo "$ac_t""no" 1>&6
2955 INTLIBS=""
2961 # Extract the first word of "xgettext", so it can be a program name with args.
2962 set dummy xgettext; ac_word=$2
2963 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2964 echo "configure:2965: checking for $ac_word" >&5
2965 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
2966 echo $ac_n "(cached) $ac_c" 1>&6
2967 else
2968 if test -n "$XGETTEXT"; then
2969 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
2970 else
2971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2972 ac_dummy="$PATH"
2973 for ac_dir in $ac_dummy; do
2974 test -z "$ac_dir" && ac_dir=.
2975 if test -f $ac_dir/$ac_word; then
2976 ac_cv_prog_XGETTEXT="xgettext"
2977 break
2979 done
2980 IFS="$ac_save_ifs"
2983 XGETTEXT="$ac_cv_prog_XGETTEXT"
2984 if test -n "$XGETTEXT"; then
2985 echo "$ac_t""$XGETTEXT" 1>&6
2986 else
2987 echo "$ac_t""no" 1>&6
2991 if test "$XGETTEXT" != ""; then
2992 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
2993 echo "xgettext isn't GNU version"
2994 XGETTEXT=""
2998 if test "$LINGUAS" != ""; then
2999 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3000 cat >> confdefs.h <<\EOF
3001 #define I18N 1
3004 PO=""
3005 # if test "$LINGUAS" = ""; then
3006 # ling=` (cd src/po; /bin/ls *.po) `
3007 # for l in $ling; do
3008 # lcode=`basename $l .po`
3009 # LINGUAS="$LINGUAS $lcode"
3010 # done
3011 # fi
3012 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3013 else
3014 LINGUAS=""
3015 PO=""
3016 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3018 else
3019 INTLIBS=""
3020 MOFILES=""
3021 WPMOFILES=""
3022 PO=""
3027 supported_locales="cs de es fr gl it ja ko nl no pt ru se tr fi hr el pl ro da zh_TW.Big5 zh_CN sk"
3028 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3030 for lang in $LINGUAS; do
3031 ok=0
3032 for l in $supported_locales; do
3033 if test "$l" = "$lang"; then
3034 ok=1
3035 break
3037 done
3038 if test "$ok" = 1; then
3039 MOFILES="$MOFILES $lang.mo"
3040 else
3041 echo "Locale $lang is not supported."
3043 ok=0
3044 for l in $supported_wprefs_locales; do
3045 if test "$l" = "$lang"; then
3046 ok=1
3047 break
3049 done
3050 if test "$ok" = 1; then
3051 WPMOFILES="$WPMOFILES $lang.mo"
3053 done
3057 case $host_os in
3058 freebsd*)
3059 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3060 echo "configure:3061: checking for setlocale in -lxpg4" >&5
3061 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3062 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3063 echo $ac_n "(cached) $ac_c" 1>&6
3064 else
3065 ac_save_LIBS="$LIBS"
3066 LIBS="-lxpg4 $LIBS"
3067 cat > conftest.$ac_ext <<EOF
3068 #line 3069 "configure"
3069 #include "confdefs.h"
3070 /* Override any gcc2 internal prototype to avoid an error. */
3071 /* We use char because int might match the return type of a gcc2
3072 builtin and then its argument prototype would still apply. */
3073 char setlocale();
3075 int main() {
3076 setlocale()
3077 ; return 0; }
3079 if { (eval echo configure:3080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3080 rm -rf conftest*
3081 eval "ac_cv_lib_$ac_lib_var=yes"
3082 else
3083 echo "configure: failed program was:" >&5
3084 cat conftest.$ac_ext >&5
3085 rm -rf conftest*
3086 eval "ac_cv_lib_$ac_lib_var=no"
3088 rm -f conftest*
3089 LIBS="$ac_save_LIBS"
3092 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3093 echo "$ac_t""yes" 1>&6
3094 LIBS="$LIBS -lxpg4"
3095 else
3096 echo "$ac_t""no" 1>&6
3101 esac
3105 # Check whether --with-nlsdir or --without-nlsdir was given.
3106 if test "${with_nlsdir+set}" = set; then
3107 withval="$with_nlsdir"
3113 if test "x$NLSDIR" = "x"; then
3114 if test "x$with_nlsdir" != "x"; then
3115 NLSDIR=$with_nlsdir
3116 else
3117 NLSDIR='$(prefix)/lib/locale'
3133 # Check whether --enable-gnome or --disable-gnome was given.
3134 if test "${enable_gnome+set}" = set; then
3135 enableval="$enable_gnome"
3136 if test x$enableval = xyes; then
3137 cat >> confdefs.h <<\EOF
3138 #define GNOME_STUFF 1
3141 gnome_on=yes
3147 # Check whether --enable-kde or --disable-kde was given.
3148 if test "${enable_kde+set}" = set; then
3149 enableval="$enable_kde"
3150 if test x$enableval = xyes; then
3151 cat >> confdefs.h <<\EOF
3152 #define KWM_HINTS 1
3155 kde_on=yes
3161 # Check whether --enable-openlook or --disable-openlook was given.
3162 if test "${enable_openlook+set}" = set; then
3163 enableval="$enable_openlook"
3164 if test x$enableval = xyes; then
3165 cat >> confdefs.h <<\EOF
3166 #define OLWM_HINTS 1
3169 openlook_on=yes
3175 # Check whether --enable-lite or --disable-lite was given.
3176 if test "${enable_lite+set}" = set; then
3177 enableval="$enable_lite"
3178 if test x$enableval = xyes; then
3179 LITE=yes
3180 cat >> confdefs.h <<\EOF
3181 #define LITE 1
3192 XTRALIBS=""
3194 echo $ac_n "checking for connect""... $ac_c" 1>&6
3195 echo "configure:3196: checking for connect" >&5
3196 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3197 echo $ac_n "(cached) $ac_c" 1>&6
3198 else
3199 cat > conftest.$ac_ext <<EOF
3200 #line 3201 "configure"
3201 #include "confdefs.h"
3202 /* System header to define __stub macros and hopefully few prototypes,
3203 which can conflict with char connect(); below. */
3204 #include <assert.h>
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 /* We use char because int might match the return type of a gcc2
3207 builtin and then its argument prototype would still apply. */
3208 char connect();
3210 int main() {
3212 /* The GNU C library defines this for functions which it implements
3213 to always fail with ENOSYS. Some functions are actually named
3214 something starting with __ and the normal name is an alias. */
3215 #if defined (__stub_connect) || defined (__stub___connect)
3216 choke me
3217 #else
3218 connect();
3219 #endif
3221 ; return 0; }
3223 if { (eval echo configure:3224: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3224 rm -rf conftest*
3225 eval "ac_cv_func_connect=yes"
3226 else
3227 echo "configure: failed program was:" >&5
3228 cat conftest.$ac_ext >&5
3229 rm -rf conftest*
3230 eval "ac_cv_func_connect=no"
3232 rm -f conftest*
3235 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3236 echo "$ac_t""yes" 1>&6
3238 else
3239 echo "$ac_t""no" 1>&6
3240 echo $ac_n "checking for socket in -lconnect""... $ac_c" 1>&6
3241 echo "configure:3242: checking for socket in -lconnect" >&5
3242 ac_lib_var=`echo connect'_'socket | sed 'y%./+-%__p_%'`
3243 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3244 echo $ac_n "(cached) $ac_c" 1>&6
3245 else
3246 ac_save_LIBS="$LIBS"
3247 LIBS="-lconnect $LIBS"
3248 cat > conftest.$ac_ext <<EOF
3249 #line 3250 "configure"
3250 #include "confdefs.h"
3251 /* Override any gcc2 internal prototype to avoid an error. */
3252 /* We use char because int might match the return type of a gcc2
3253 builtin and then its argument prototype would still apply. */
3254 char socket();
3256 int main() {
3257 socket()
3258 ; return 0; }
3260 if { (eval echo configure:3261: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3261 rm -rf conftest*
3262 eval "ac_cv_lib_$ac_lib_var=yes"
3263 else
3264 echo "configure: failed program was:" >&5
3265 cat conftest.$ac_ext >&5
3266 rm -rf conftest*
3267 eval "ac_cv_lib_$ac_lib_var=no"
3269 rm -f conftest*
3270 LIBS="$ac_save_LIBS"
3273 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3274 echo "$ac_t""yes" 1>&6
3275 NETLIBS="$NETLIBS -lsocket"
3276 else
3277 echo "$ac_t""no" 1>&6
3283 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3284 echo "configure:3285: checking for gethostbyname" >&5
3285 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3286 echo $ac_n "(cached) $ac_c" 1>&6
3287 else
3288 cat > conftest.$ac_ext <<EOF
3289 #line 3290 "configure"
3290 #include "confdefs.h"
3291 /* System header to define __stub macros and hopefully few prototypes,
3292 which can conflict with char gethostbyname(); below. */
3293 #include <assert.h>
3294 /* Override any gcc2 internal prototype to avoid an error. */
3295 /* We use char because int might match the return type of a gcc2
3296 builtin and then its argument prototype would still apply. */
3297 char gethostbyname();
3299 int main() {
3301 /* The GNU C library defines this for functions which it implements
3302 to always fail with ENOSYS. Some functions are actually named
3303 something starting with __ and the normal name is an alias. */
3304 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3305 choke me
3306 #else
3307 gethostbyname();
3308 #endif
3310 ; return 0; }
3312 if { (eval echo configure:3313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3313 rm -rf conftest*
3314 eval "ac_cv_func_gethostbyname=yes"
3315 else
3316 echo "configure: failed program was:" >&5
3317 cat conftest.$ac_ext >&5
3318 rm -rf conftest*
3319 eval "ac_cv_func_gethostbyname=no"
3321 rm -f conftest*
3324 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3325 echo "$ac_t""yes" 1>&6
3327 else
3328 echo "$ac_t""no" 1>&6
3329 echo $ac_n "checking for nsl in -lgethostbyname""... $ac_c" 1>&6
3330 echo "configure:3331: checking for nsl in -lgethostbyname" >&5
3331 ac_lib_var=`echo gethostbyname'_'nsl | sed 'y%./+-%__p_%'`
3332 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3333 echo $ac_n "(cached) $ac_c" 1>&6
3334 else
3335 ac_save_LIBS="$LIBS"
3336 LIBS="-lgethostbyname $LIBS"
3337 cat > conftest.$ac_ext <<EOF
3338 #line 3339 "configure"
3339 #include "confdefs.h"
3340 /* Override any gcc2 internal prototype to avoid an error. */
3341 /* We use char because int might match the return type of a gcc2
3342 builtin and then its argument prototype would still apply. */
3343 char nsl();
3345 int main() {
3346 nsl()
3347 ; return 0; }
3349 if { (eval echo configure:3350: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3350 rm -rf conftest*
3351 eval "ac_cv_lib_$ac_lib_var=yes"
3352 else
3353 echo "configure: failed program was:" >&5
3354 cat conftest.$ac_ext >&5
3355 rm -rf conftest*
3356 eval "ac_cv_lib_$ac_lib_var=no"
3358 rm -f conftest*
3359 LIBS="$ac_save_LIBS"
3362 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3363 echo "$ac_t""yes" 1>&6
3364 NETLIBS="$NETLIBS -lnsl"
3365 else
3366 echo "$ac_t""no" 1>&6
3376 # If we find X, set shell vars x_includes and x_libraries to the
3377 # paths, otherwise set no_x=yes.
3378 # Uses ac_ vars as temps to allow command line to override cache and checks.
3379 # --without-x overrides everything else, but does not touch the cache.
3380 echo $ac_n "checking for X""... $ac_c" 1>&6
3381 echo "configure:3382: checking for X" >&5
3383 # Check whether --with-x or --without-x was given.
3384 if test "${with_x+set}" = set; then
3385 withval="$with_x"
3389 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3390 if test "x$with_x" = xno; then
3391 # The user explicitly disabled X.
3392 have_x=disabled
3393 else
3394 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3395 # Both variables are already set.
3396 have_x=yes
3397 else
3398 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3399 echo $ac_n "(cached) $ac_c" 1>&6
3400 else
3401 # One or both of the vars are not set, and there is no cached value.
3402 ac_x_includes=NO ac_x_libraries=NO
3403 rm -fr conftestdir
3404 if mkdir conftestdir; then
3405 cd conftestdir
3406 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3407 cat > Imakefile <<'EOF'
3408 acfindx:
3409 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3411 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3412 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3413 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3414 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3415 for ac_extension in a so sl; do
3416 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3417 test -f $ac_im_libdir/libX11.$ac_extension; then
3418 ac_im_usrlibdir=$ac_im_libdir; break
3420 done
3421 # Screen out bogus values from the imake configuration. They are
3422 # bogus both because they are the default anyway, and because
3423 # using them would break gcc on systems where it needs fixed includes.
3424 case "$ac_im_incroot" in
3425 /usr/include) ;;
3426 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3427 esac
3428 case "$ac_im_usrlibdir" in
3429 /usr/lib | /lib) ;;
3430 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3431 esac
3433 cd ..
3434 rm -fr conftestdir
3437 if test "$ac_x_includes" = NO; then
3438 # Guess where to find include files, by looking for this one X11 .h file.
3439 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3441 # First, try using that file with no special directory specified.
3442 cat > conftest.$ac_ext <<EOF
3443 #line 3444 "configure"
3444 #include "confdefs.h"
3445 #include <$x_direct_test_include>
3447 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3448 { (eval echo configure:3449: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3449 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3450 if test -z "$ac_err"; then
3451 rm -rf conftest*
3452 # We can compile using X headers with no special include directory.
3453 ac_x_includes=
3454 else
3455 echo "$ac_err" >&5
3456 echo "configure: failed program was:" >&5
3457 cat conftest.$ac_ext >&5
3458 rm -rf conftest*
3459 # Look for the header file in a standard set of common directories.
3460 # Check X11 before X11Rn because it is often a symlink to the current release.
3461 for ac_dir in \
3462 /usr/X11/include \
3463 /usr/X11R6/include \
3464 /usr/X11R5/include \
3465 /usr/X11R4/include \
3467 /usr/include/X11 \
3468 /usr/include/X11R6 \
3469 /usr/include/X11R5 \
3470 /usr/include/X11R4 \
3472 /usr/local/X11/include \
3473 /usr/local/X11R6/include \
3474 /usr/local/X11R5/include \
3475 /usr/local/X11R4/include \
3477 /usr/local/include/X11 \
3478 /usr/local/include/X11R6 \
3479 /usr/local/include/X11R5 \
3480 /usr/local/include/X11R4 \
3482 /usr/X386/include \
3483 /usr/x386/include \
3484 /usr/XFree86/include/X11 \
3486 /usr/include \
3487 /usr/local/include \
3488 /usr/unsupported/include \
3489 /usr/athena/include \
3490 /usr/local/x11r5/include \
3491 /usr/lpp/Xamples/include \
3493 /usr/openwin/include \
3494 /usr/openwin/share/include \
3497 if test -r "$ac_dir/$x_direct_test_include"; then
3498 ac_x_includes=$ac_dir
3499 break
3501 done
3503 rm -f conftest*
3504 fi # $ac_x_includes = NO
3506 if test "$ac_x_libraries" = NO; then
3507 # Check for the libraries.
3509 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3510 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3512 # See if we find them without any special options.
3513 # Don't add to $LIBS permanently.
3514 ac_save_LIBS="$LIBS"
3515 LIBS="-l$x_direct_test_library $LIBS"
3516 cat > conftest.$ac_ext <<EOF
3517 #line 3518 "configure"
3518 #include "confdefs.h"
3520 int main() {
3521 ${x_direct_test_function}()
3522 ; return 0; }
3524 if { (eval echo configure:3525: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3525 rm -rf conftest*
3526 LIBS="$ac_save_LIBS"
3527 # We can link X programs with no special library path.
3528 ac_x_libraries=
3529 else
3530 echo "configure: failed program was:" >&5
3531 cat conftest.$ac_ext >&5
3532 rm -rf conftest*
3533 LIBS="$ac_save_LIBS"
3534 # First see if replacing the include by lib works.
3535 # Check X11 before X11Rn because it is often a symlink to the current release.
3536 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3537 /usr/X11/lib \
3538 /usr/X11R6/lib \
3539 /usr/X11R5/lib \
3540 /usr/X11R4/lib \
3542 /usr/lib/X11 \
3543 /usr/lib/X11R6 \
3544 /usr/lib/X11R5 \
3545 /usr/lib/X11R4 \
3547 /usr/local/X11/lib \
3548 /usr/local/X11R6/lib \
3549 /usr/local/X11R5/lib \
3550 /usr/local/X11R4/lib \
3552 /usr/local/lib/X11 \
3553 /usr/local/lib/X11R6 \
3554 /usr/local/lib/X11R5 \
3555 /usr/local/lib/X11R4 \
3557 /usr/X386/lib \
3558 /usr/x386/lib \
3559 /usr/XFree86/lib/X11 \
3561 /usr/lib \
3562 /usr/local/lib \
3563 /usr/unsupported/lib \
3564 /usr/athena/lib \
3565 /usr/local/x11r5/lib \
3566 /usr/lpp/Xamples/lib \
3567 /lib/usr/lib/X11 \
3569 /usr/openwin/lib \
3570 /usr/openwin/share/lib \
3573 for ac_extension in a so sl; do
3574 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3575 ac_x_libraries=$ac_dir
3576 break 2
3578 done
3579 done
3581 rm -f conftest*
3582 fi # $ac_x_libraries = NO
3584 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3585 # Didn't find X anywhere. Cache the known absence of X.
3586 ac_cv_have_x="have_x=no"
3587 else
3588 # Record where we found X for the cache.
3589 ac_cv_have_x="have_x=yes \
3590 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3594 eval "$ac_cv_have_x"
3595 fi # $with_x != no
3597 if test "$have_x" != yes; then
3598 echo "$ac_t""$have_x" 1>&6
3599 no_x=yes
3600 else
3601 # If each of the values was on the command line, it overrides each guess.
3602 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3603 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3604 # Update the cache value to reflect the command line values.
3605 ac_cv_have_x="have_x=yes \
3606 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3607 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3610 if test "$no_x" = yes; then
3611 # Not all programs may use this symbol, but it does not hurt to define it.
3612 cat >> confdefs.h <<\EOF
3613 #define X_DISPLAY_MISSING 1
3616 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3617 else
3618 if test -n "$x_includes"; then
3619 X_CFLAGS="$X_CFLAGS -I$x_includes"
3622 # It would also be nice to do this for all -L options, not just this one.
3623 if test -n "$x_libraries"; then
3624 X_LIBS="$X_LIBS -L$x_libraries"
3625 # For Solaris; some versions of Sun CC require a space after -R and
3626 # others require no space. Words are not sufficient . . . .
3627 case "`(uname -sr) 2>/dev/null`" in
3628 "SunOS 5"*)
3629 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3630 echo "configure:3631: checking whether -R must be followed by a space" >&5
3631 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3632 cat > conftest.$ac_ext <<EOF
3633 #line 3634 "configure"
3634 #include "confdefs.h"
3636 int main() {
3638 ; return 0; }
3640 if { (eval echo configure:3641: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3641 rm -rf conftest*
3642 ac_R_nospace=yes
3643 else
3644 echo "configure: failed program was:" >&5
3645 cat conftest.$ac_ext >&5
3646 rm -rf conftest*
3647 ac_R_nospace=no
3649 rm -f conftest*
3650 if test $ac_R_nospace = yes; then
3651 echo "$ac_t""no" 1>&6
3652 X_LIBS="$X_LIBS -R$x_libraries"
3653 else
3654 LIBS="$ac_xsave_LIBS -R $x_libraries"
3655 cat > conftest.$ac_ext <<EOF
3656 #line 3657 "configure"
3657 #include "confdefs.h"
3659 int main() {
3661 ; return 0; }
3663 if { (eval echo configure:3664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3664 rm -rf conftest*
3665 ac_R_space=yes
3666 else
3667 echo "configure: failed program was:" >&5
3668 cat conftest.$ac_ext >&5
3669 rm -rf conftest*
3670 ac_R_space=no
3672 rm -f conftest*
3673 if test $ac_R_space = yes; then
3674 echo "$ac_t""yes" 1>&6
3675 X_LIBS="$X_LIBS -R $x_libraries"
3676 else
3677 echo "$ac_t""neither works" 1>&6
3680 LIBS="$ac_xsave_LIBS"
3681 esac
3684 # Check for system-dependent libraries X programs must link with.
3685 # Do this before checking for the system-independent R6 libraries
3686 # (-lICE), since we may need -lsocket or whatever for X linking.
3688 if test "$ISC" = yes; then
3689 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3690 else
3691 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3692 # libraries were built with DECnet support. And karl@cs.umb.edu says
3693 # the Alpha needs dnet_stub (dnet does not exist).
3694 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3695 echo "configure:3696: checking for dnet_ntoa in -ldnet" >&5
3696 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3697 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3698 echo $ac_n "(cached) $ac_c" 1>&6
3699 else
3700 ac_save_LIBS="$LIBS"
3701 LIBS="-ldnet $LIBS"
3702 cat > conftest.$ac_ext <<EOF
3703 #line 3704 "configure"
3704 #include "confdefs.h"
3705 /* Override any gcc2 internal prototype to avoid an error. */
3706 /* We use char because int might match the return type of a gcc2
3707 builtin and then its argument prototype would still apply. */
3708 char dnet_ntoa();
3710 int main() {
3711 dnet_ntoa()
3712 ; return 0; }
3714 if { (eval echo configure:3715: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3715 rm -rf conftest*
3716 eval "ac_cv_lib_$ac_lib_var=yes"
3717 else
3718 echo "configure: failed program was:" >&5
3719 cat conftest.$ac_ext >&5
3720 rm -rf conftest*
3721 eval "ac_cv_lib_$ac_lib_var=no"
3723 rm -f conftest*
3724 LIBS="$ac_save_LIBS"
3727 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3728 echo "$ac_t""yes" 1>&6
3729 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3730 else
3731 echo "$ac_t""no" 1>&6
3734 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3735 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3736 echo "configure:3737: checking for dnet_ntoa in -ldnet_stub" >&5
3737 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3738 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3739 echo $ac_n "(cached) $ac_c" 1>&6
3740 else
3741 ac_save_LIBS="$LIBS"
3742 LIBS="-ldnet_stub $LIBS"
3743 cat > conftest.$ac_ext <<EOF
3744 #line 3745 "configure"
3745 #include "confdefs.h"
3746 /* Override any gcc2 internal prototype to avoid an error. */
3747 /* We use char because int might match the return type of a gcc2
3748 builtin and then its argument prototype would still apply. */
3749 char dnet_ntoa();
3751 int main() {
3752 dnet_ntoa()
3753 ; return 0; }
3755 if { (eval echo configure:3756: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3756 rm -rf conftest*
3757 eval "ac_cv_lib_$ac_lib_var=yes"
3758 else
3759 echo "configure: failed program was:" >&5
3760 cat conftest.$ac_ext >&5
3761 rm -rf conftest*
3762 eval "ac_cv_lib_$ac_lib_var=no"
3764 rm -f conftest*
3765 LIBS="$ac_save_LIBS"
3768 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3769 echo "$ac_t""yes" 1>&6
3770 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3771 else
3772 echo "$ac_t""no" 1>&6
3777 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3778 # to get the SysV transport functions.
3779 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3780 # needs -lnsl.
3781 # The nsl library prevents programs from opening the X display
3782 # on Irix 5.2, according to dickey@clark.net.
3783 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3784 echo "configure:3785: checking for gethostbyname" >&5
3785 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3786 echo $ac_n "(cached) $ac_c" 1>&6
3787 else
3788 cat > conftest.$ac_ext <<EOF
3789 #line 3790 "configure"
3790 #include "confdefs.h"
3791 /* System header to define __stub macros and hopefully few prototypes,
3792 which can conflict with char gethostbyname(); below. */
3793 #include <assert.h>
3794 /* Override any gcc2 internal prototype to avoid an error. */
3795 /* We use char because int might match the return type of a gcc2
3796 builtin and then its argument prototype would still apply. */
3797 char gethostbyname();
3799 int main() {
3801 /* The GNU C library defines this for functions which it implements
3802 to always fail with ENOSYS. Some functions are actually named
3803 something starting with __ and the normal name is an alias. */
3804 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3805 choke me
3806 #else
3807 gethostbyname();
3808 #endif
3810 ; return 0; }
3812 if { (eval echo configure:3813: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3813 rm -rf conftest*
3814 eval "ac_cv_func_gethostbyname=yes"
3815 else
3816 echo "configure: failed program was:" >&5
3817 cat conftest.$ac_ext >&5
3818 rm -rf conftest*
3819 eval "ac_cv_func_gethostbyname=no"
3821 rm -f conftest*
3824 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3825 echo "$ac_t""yes" 1>&6
3827 else
3828 echo "$ac_t""no" 1>&6
3831 if test $ac_cv_func_gethostbyname = no; then
3832 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3833 echo "configure:3834: checking for gethostbyname in -lnsl" >&5
3834 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3835 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3836 echo $ac_n "(cached) $ac_c" 1>&6
3837 else
3838 ac_save_LIBS="$LIBS"
3839 LIBS="-lnsl $LIBS"
3840 cat > conftest.$ac_ext <<EOF
3841 #line 3842 "configure"
3842 #include "confdefs.h"
3843 /* Override any gcc2 internal prototype to avoid an error. */
3844 /* We use char because int might match the return type of a gcc2
3845 builtin and then its argument prototype would still apply. */
3846 char gethostbyname();
3848 int main() {
3849 gethostbyname()
3850 ; return 0; }
3852 if { (eval echo configure:3853: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3853 rm -rf conftest*
3854 eval "ac_cv_lib_$ac_lib_var=yes"
3855 else
3856 echo "configure: failed program was:" >&5
3857 cat conftest.$ac_ext >&5
3858 rm -rf conftest*
3859 eval "ac_cv_lib_$ac_lib_var=no"
3861 rm -f conftest*
3862 LIBS="$ac_save_LIBS"
3865 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3866 echo "$ac_t""yes" 1>&6
3867 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
3868 else
3869 echo "$ac_t""no" 1>&6
3874 # lieder@skyler.mavd.honeywell.com says without -lsocket,
3875 # socket/setsockopt and other routines are undefined under SCO ODT
3876 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
3877 # on later versions), says simon@lia.di.epfl.ch: it contains
3878 # gethostby* variants that don't use the nameserver (or something).
3879 # -lsocket must be given before -lnsl if both are needed.
3880 # We assume that if connect needs -lnsl, so does gethostbyname.
3881 echo $ac_n "checking for connect""... $ac_c" 1>&6
3882 echo "configure:3883: checking for connect" >&5
3883 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3884 echo $ac_n "(cached) $ac_c" 1>&6
3885 else
3886 cat > conftest.$ac_ext <<EOF
3887 #line 3888 "configure"
3888 #include "confdefs.h"
3889 /* System header to define __stub macros and hopefully few prototypes,
3890 which can conflict with char connect(); below. */
3891 #include <assert.h>
3892 /* Override any gcc2 internal prototype to avoid an error. */
3893 /* We use char because int might match the return type of a gcc2
3894 builtin and then its argument prototype would still apply. */
3895 char connect();
3897 int main() {
3899 /* The GNU C library defines this for functions which it implements
3900 to always fail with ENOSYS. Some functions are actually named
3901 something starting with __ and the normal name is an alias. */
3902 #if defined (__stub_connect) || defined (__stub___connect)
3903 choke me
3904 #else
3905 connect();
3906 #endif
3908 ; return 0; }
3910 if { (eval echo configure:3911: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3911 rm -rf conftest*
3912 eval "ac_cv_func_connect=yes"
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 eval "ac_cv_func_connect=no"
3919 rm -f conftest*
3922 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3923 echo "$ac_t""yes" 1>&6
3925 else
3926 echo "$ac_t""no" 1>&6
3929 if test $ac_cv_func_connect = no; then
3930 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3931 echo "configure:3932: checking for connect in -lsocket" >&5
3932 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3933 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3934 echo $ac_n "(cached) $ac_c" 1>&6
3935 else
3936 ac_save_LIBS="$LIBS"
3937 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
3938 cat > conftest.$ac_ext <<EOF
3939 #line 3940 "configure"
3940 #include "confdefs.h"
3941 /* Override any gcc2 internal prototype to avoid an error. */
3942 /* We use char because int might match the return type of a gcc2
3943 builtin and then its argument prototype would still apply. */
3944 char connect();
3946 int main() {
3947 connect()
3948 ; return 0; }
3950 if { (eval echo configure:3951: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3951 rm -rf conftest*
3952 eval "ac_cv_lib_$ac_lib_var=yes"
3953 else
3954 echo "configure: failed program was:" >&5
3955 cat conftest.$ac_ext >&5
3956 rm -rf conftest*
3957 eval "ac_cv_lib_$ac_lib_var=no"
3959 rm -f conftest*
3960 LIBS="$ac_save_LIBS"
3963 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3964 echo "$ac_t""yes" 1>&6
3965 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
3966 else
3967 echo "$ac_t""no" 1>&6
3972 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
3973 echo $ac_n "checking for remove""... $ac_c" 1>&6
3974 echo "configure:3975: checking for remove" >&5
3975 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
3976 echo $ac_n "(cached) $ac_c" 1>&6
3977 else
3978 cat > conftest.$ac_ext <<EOF
3979 #line 3980 "configure"
3980 #include "confdefs.h"
3981 /* System header to define __stub macros and hopefully few prototypes,
3982 which can conflict with char remove(); below. */
3983 #include <assert.h>
3984 /* Override any gcc2 internal prototype to avoid an error. */
3985 /* We use char because int might match the return type of a gcc2
3986 builtin and then its argument prototype would still apply. */
3987 char remove();
3989 int main() {
3991 /* The GNU C library defines this for functions which it implements
3992 to always fail with ENOSYS. Some functions are actually named
3993 something starting with __ and the normal name is an alias. */
3994 #if defined (__stub_remove) || defined (__stub___remove)
3995 choke me
3996 #else
3997 remove();
3998 #endif
4000 ; return 0; }
4002 if { (eval echo configure:4003: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4003 rm -rf conftest*
4004 eval "ac_cv_func_remove=yes"
4005 else
4006 echo "configure: failed program was:" >&5
4007 cat conftest.$ac_ext >&5
4008 rm -rf conftest*
4009 eval "ac_cv_func_remove=no"
4011 rm -f conftest*
4014 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4015 echo "$ac_t""yes" 1>&6
4017 else
4018 echo "$ac_t""no" 1>&6
4021 if test $ac_cv_func_remove = no; then
4022 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4023 echo "configure:4024: checking for remove in -lposix" >&5
4024 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4025 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4026 echo $ac_n "(cached) $ac_c" 1>&6
4027 else
4028 ac_save_LIBS="$LIBS"
4029 LIBS="-lposix $LIBS"
4030 cat > conftest.$ac_ext <<EOF
4031 #line 4032 "configure"
4032 #include "confdefs.h"
4033 /* Override any gcc2 internal prototype to avoid an error. */
4034 /* We use char because int might match the return type of a gcc2
4035 builtin and then its argument prototype would still apply. */
4036 char remove();
4038 int main() {
4039 remove()
4040 ; return 0; }
4042 if { (eval echo configure:4043: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4043 rm -rf conftest*
4044 eval "ac_cv_lib_$ac_lib_var=yes"
4045 else
4046 echo "configure: failed program was:" >&5
4047 cat conftest.$ac_ext >&5
4048 rm -rf conftest*
4049 eval "ac_cv_lib_$ac_lib_var=no"
4051 rm -f conftest*
4052 LIBS="$ac_save_LIBS"
4055 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4056 echo "$ac_t""yes" 1>&6
4057 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4058 else
4059 echo "$ac_t""no" 1>&6
4064 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4065 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4066 echo "configure:4067: checking for shmat" >&5
4067 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4068 echo $ac_n "(cached) $ac_c" 1>&6
4069 else
4070 cat > conftest.$ac_ext <<EOF
4071 #line 4072 "configure"
4072 #include "confdefs.h"
4073 /* System header to define __stub macros and hopefully few prototypes,
4074 which can conflict with char shmat(); below. */
4075 #include <assert.h>
4076 /* Override any gcc2 internal prototype to avoid an error. */
4077 /* We use char because int might match the return type of a gcc2
4078 builtin and then its argument prototype would still apply. */
4079 char shmat();
4081 int main() {
4083 /* The GNU C library defines this for functions which it implements
4084 to always fail with ENOSYS. Some functions are actually named
4085 something starting with __ and the normal name is an alias. */
4086 #if defined (__stub_shmat) || defined (__stub___shmat)
4087 choke me
4088 #else
4089 shmat();
4090 #endif
4092 ; return 0; }
4094 if { (eval echo configure:4095: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4095 rm -rf conftest*
4096 eval "ac_cv_func_shmat=yes"
4097 else
4098 echo "configure: failed program was:" >&5
4099 cat conftest.$ac_ext >&5
4100 rm -rf conftest*
4101 eval "ac_cv_func_shmat=no"
4103 rm -f conftest*
4106 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4107 echo "$ac_t""yes" 1>&6
4109 else
4110 echo "$ac_t""no" 1>&6
4113 if test $ac_cv_func_shmat = no; then
4114 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4115 echo "configure:4116: checking for shmat in -lipc" >&5
4116 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4119 else
4120 ac_save_LIBS="$LIBS"
4121 LIBS="-lipc $LIBS"
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4128 char shmat();
4130 int main() {
4131 shmat()
4132 ; return 0; }
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 rm -rf conftest*
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4137 else
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 rm -rf conftest*
4141 eval "ac_cv_lib_$ac_lib_var=no"
4143 rm -f conftest*
4144 LIBS="$ac_save_LIBS"
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4150 else
4151 echo "$ac_t""no" 1>&6
4157 # Check for libraries that X11R6 Xt/Xaw programs need.
4158 ac_save_LDFLAGS="$LDFLAGS"
4159 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4160 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4161 # check for ICE first), but we must link in the order -lSM -lICE or
4162 # we get undefined symbols. So assume we have SM if we have ICE.
4163 # These have to be linked with before -lX11, unlike the other
4164 # libraries we check for below, so use a different variable.
4165 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4166 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4167 echo "configure:4168: checking for IceConnectionNumber in -lICE" >&5
4168 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4169 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4170 echo $ac_n "(cached) $ac_c" 1>&6
4171 else
4172 ac_save_LIBS="$LIBS"
4173 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4174 cat > conftest.$ac_ext <<EOF
4175 #line 4176 "configure"
4176 #include "confdefs.h"
4177 /* Override any gcc2 internal prototype to avoid an error. */
4178 /* We use char because int might match the return type of a gcc2
4179 builtin and then its argument prototype would still apply. */
4180 char IceConnectionNumber();
4182 int main() {
4183 IceConnectionNumber()
4184 ; return 0; }
4186 if { (eval echo configure:4187: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4187 rm -rf conftest*
4188 eval "ac_cv_lib_$ac_lib_var=yes"
4189 else
4190 echo "configure: failed program was:" >&5
4191 cat conftest.$ac_ext >&5
4192 rm -rf conftest*
4193 eval "ac_cv_lib_$ac_lib_var=no"
4195 rm -f conftest*
4196 LIBS="$ac_save_LIBS"
4199 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4200 echo "$ac_t""yes" 1>&6
4201 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4202 else
4203 echo "$ac_t""no" 1>&6
4206 LDFLAGS="$ac_save_LDFLAGS"
4211 if test $no_x; then
4212 { echo "configure: error: The path for the X11 files not found!
4213 Make sure you have X and it's headers and libraries (the -devel packages
4214 in Linux) installed." 1>&2; exit 1; }
4217 X_LIBRARY_PATH=$x_libraries
4219 XCFLAGS="$X_CFLAGS"
4221 XLFLAGS="$X_LIBS"
4223 XLIBS="-lX11 $X_EXTRA_LIBS"
4226 lib_search_path="$lib_search_path $XLFLAGS"
4227 inc_search_path="$inc_search_path $XCFLAGS"
4234 use_locale=yes
4235 # Check whether --enable-locale or --disable-locale was given.
4236 if test "${enable_locale+set}" = set; then
4237 enableval="$enable_locale"
4238 use_locale=no
4242 if test "$use_locale" = yes; then
4243 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4244 echo "configure:4245: checking for _Xsetlocale in -lX11" >&5
4245 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4246 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4247 echo $ac_n "(cached) $ac_c" 1>&6
4248 else
4249 ac_save_LIBS="$LIBS"
4250 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4251 cat > conftest.$ac_ext <<EOF
4252 #line 4253 "configure"
4253 #include "confdefs.h"
4254 /* Override any gcc2 internal prototype to avoid an error. */
4255 /* We use char because int might match the return type of a gcc2
4256 builtin and then its argument prototype would still apply. */
4257 char _Xsetlocale();
4259 int main() {
4260 _Xsetlocale()
4261 ; return 0; }
4263 if { (eval echo configure:4264: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4264 rm -rf conftest*
4265 eval "ac_cv_lib_$ac_lib_var=yes"
4266 else
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_lib_$ac_lib_var=no"
4272 rm -f conftest*
4273 LIBS="$ac_save_LIBS"
4276 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4277 echo "$ac_t""yes" 1>&6
4278 cat >> confdefs.h <<\EOF
4279 #define X_LOCALE 1
4282 else
4283 echo "$ac_t""no" 1>&6
4289 # Check whether --enable-modelock or --disable-modelock was given.
4290 if test "${enable_modelock+set}" = set; then
4291 enableval="$enable_modelock"
4292 cat >> confdefs.h <<\EOF
4293 #define XKB_MODELOCK 1
4301 shape=yes
4302 # Check whether --enable-shape or --disable-shape was given.
4303 if test "${enable_shape+set}" = set; then
4304 enableval="$enable_shape"
4305 shape=$enableval
4306 else
4307 shape=yes
4311 added_xext=no
4313 if test "$shape" = yes; then
4314 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4315 echo "configure:4316: checking for XShapeSelectInput in -lXext" >&5
4316 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4317 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4318 echo $ac_n "(cached) $ac_c" 1>&6
4319 else
4320 ac_save_LIBS="$LIBS"
4321 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4322 cat > conftest.$ac_ext <<EOF
4323 #line 4324 "configure"
4324 #include "confdefs.h"
4325 /* Override any gcc2 internal prototype to avoid an error. */
4326 /* We use char because int might match the return type of a gcc2
4327 builtin and then its argument prototype would still apply. */
4328 char XShapeSelectInput();
4330 int main() {
4331 XShapeSelectInput()
4332 ; return 0; }
4334 if { (eval echo configure:4335: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4335 rm -rf conftest*
4336 eval "ac_cv_lib_$ac_lib_var=yes"
4337 else
4338 echo "configure: failed program was:" >&5
4339 cat conftest.$ac_ext >&5
4340 rm -rf conftest*
4341 eval "ac_cv_lib_$ac_lib_var=no"
4343 rm -f conftest*
4344 LIBS="$ac_save_LIBS"
4347 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4348 echo "$ac_t""yes" 1>&6
4349 XLIBS="-lXext $XLIBS"
4350 added_xext=yes
4351 cat >> confdefs.h <<\EOF
4352 #define SHAPE 1
4355 else
4356 echo "$ac_t""no" 1>&6
4357 shape=no
4363 shm=yes
4364 # Check whether --enable-shm or --disable-shm was given.
4365 if test "${enable_shm+set}" = set; then
4366 enableval="$enable_shm"
4367 shm=$enableval
4368 else
4369 shm=yes
4373 if test "$shm" = yes; then
4374 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4375 echo "configure:4376: checking for XShmAttach in -lXext" >&5
4376 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4377 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4378 echo $ac_n "(cached) $ac_c" 1>&6
4379 else
4380 ac_save_LIBS="$LIBS"
4381 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4382 cat > conftest.$ac_ext <<EOF
4383 #line 4384 "configure"
4384 #include "confdefs.h"
4385 /* Override any gcc2 internal prototype to avoid an error. */
4386 /* We use char because int might match the return type of a gcc2
4387 builtin and then its argument prototype would still apply. */
4388 char XShmAttach();
4390 int main() {
4391 XShmAttach()
4392 ; return 0; }
4394 if { (eval echo configure:4395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4395 rm -rf conftest*
4396 eval "ac_cv_lib_$ac_lib_var=yes"
4397 else
4398 echo "configure: failed program was:" >&5
4399 cat conftest.$ac_ext >&5
4400 rm -rf conftest*
4401 eval "ac_cv_lib_$ac_lib_var=no"
4403 rm -f conftest*
4404 LIBS="$ac_save_LIBS"
4407 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4408 echo "$ac_t""yes" 1>&6
4409 ok=yes
4410 else
4411 echo "$ac_t""no" 1>&6
4412 ok=no
4416 if test "$ok" = yes; then
4417 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4418 echo "configure:4419: checking for shmget" >&5
4419 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4420 echo $ac_n "(cached) $ac_c" 1>&6
4421 else
4422 cat > conftest.$ac_ext <<EOF
4423 #line 4424 "configure"
4424 #include "confdefs.h"
4425 /* System header to define __stub macros and hopefully few prototypes,
4426 which can conflict with char shmget(); below. */
4427 #include <assert.h>
4428 /* Override any gcc2 internal prototype to avoid an error. */
4429 /* We use char because int might match the return type of a gcc2
4430 builtin and then its argument prototype would still apply. */
4431 char shmget();
4433 int main() {
4435 /* The GNU C library defines this for functions which it implements
4436 to always fail with ENOSYS. Some functions are actually named
4437 something starting with __ and the normal name is an alias. */
4438 #if defined (__stub_shmget) || defined (__stub___shmget)
4439 choke me
4440 #else
4441 shmget();
4442 #endif
4444 ; return 0; }
4446 if { (eval echo configure:4447: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4447 rm -rf conftest*
4448 eval "ac_cv_func_shmget=yes"
4449 else
4450 echo "configure: failed program was:" >&5
4451 cat conftest.$ac_ext >&5
4452 rm -rf conftest*
4453 eval "ac_cv_func_shmget=no"
4455 rm -f conftest*
4458 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4459 echo "$ac_t""yes" 1>&6
4460 ok=yes
4461 else
4462 echo "$ac_t""no" 1>&6
4463 ok=no
4468 if test "$ok" = yes; then
4469 if test "$added_xext" = no; then
4470 XLIBS="-lXext $XLIBS"
4472 cat >> confdefs.h <<\EOF
4473 #define XSHM 1
4483 #AC_DEFINE(R6SM)
4484 #AC_SUBST(XSMPLIBS)
4489 LIBPL=""
4492 LDFLAGS_old="$LDFLAGS"
4493 LDFLAGS="$LDFLAGS $lib_search_path"
4494 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4495 echo "configure:4496: checking for PLGetString in -lPropList" >&5
4496 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4497 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4498 echo $ac_n "(cached) $ac_c" 1>&6
4499 else
4500 ac_save_LIBS="$LIBS"
4501 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4502 cat > conftest.$ac_ext <<EOF
4503 #line 4504 "configure"
4504 #include "confdefs.h"
4505 /* Override any gcc2 internal prototype to avoid an error. */
4506 /* We use char because int might match the return type of a gcc2
4507 builtin and then its argument prototype would still apply. */
4508 char PLGetString();
4510 int main() {
4511 PLGetString()
4512 ; return 0; }
4514 if { (eval echo configure:4515: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4515 rm -rf conftest*
4516 eval "ac_cv_lib_$ac_lib_var=yes"
4517 else
4518 echo "configure: failed program was:" >&5
4519 cat conftest.$ac_ext >&5
4520 rm -rf conftest*
4521 eval "ac_cv_lib_$ac_lib_var=no"
4523 rm -f conftest*
4524 LIBS="$ac_save_LIBS"
4527 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4528 echo "$ac_t""yes" 1>&6
4529 yes=yes
4530 else
4531 echo "$ac_t""no" 1>&6
4532 no=no
4535 LDFLAGS="$LDFLAGS_old"
4537 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4539 CPPFLAGS_old="$CPPFLAGS"
4540 CPPFLAGS="$CPPFLAGS $inc_search_path"
4541 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4542 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4543 echo "configure:4544: checking for proplist.h" >&5
4544 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4545 echo $ac_n "(cached) $ac_c" 1>&6
4546 else
4547 cat > conftest.$ac_ext <<EOF
4548 #line 4549 "configure"
4549 #include "confdefs.h"
4550 #include <proplist.h>
4552 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4553 { (eval echo configure:4554: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4554 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4555 if test -z "$ac_err"; then
4556 rm -rf conftest*
4557 eval "ac_cv_header_$ac_safe=yes"
4558 else
4559 echo "$ac_err" >&5
4560 echo "configure: failed program was:" >&5
4561 cat conftest.$ac_ext >&5
4562 rm -rf conftest*
4563 eval "ac_cv_header_$ac_safe=no"
4565 rm -f conftest*
4567 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4568 echo "$ac_t""yes" 1>&6
4570 else
4571 echo "$ac_t""no" 1>&6
4574 CPPFLAGS="$CPPFLAGS_old"
4576 if test "x$ac_cv_header_proplist_h" = xyes; then
4577 LIBPL="-lPropList"
4581 if test "x$LIBPL" = "x"; then
4582 echo
4583 echo "ERROR!!! libPropList is not installed, or could not be found."
4584 echo " Window Maker requires libPropList to build."
4585 echo " Please read INSTALL to find where you can find libPropList,"
4586 echo " and install it first."
4587 if test x$W_SYSTEM = xLinux; then
4588 echo " If you're using some prepackaged version of libPropList,"
4589 echo " make sure you install it's \"development\" package as well."
4591 echo " If you already have it installed, try using the"
4592 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4593 echo " --with-libs-from flag to tell configure where the library"
4594 echo " is installed and"
4596 echo " --with-incs-from flag to tell configure where the header"
4597 echo " files are installed"
4598 exit 1
4610 xpm=yes
4611 # Check whether --enable-xpm or --disable-xpm was given.
4612 if test "${enable_xpm+set}" = set; then
4613 enableval="$enable_xpm"
4614 xpm=$enableval
4615 else
4616 xpm=yes
4620 if test "$xpm" = yes; then
4622 LDFLAGS_old="$LDFLAGS"
4623 LDFLAGS="$LDFLAGS $lib_search_path"
4624 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4625 echo "configure:4626: checking for XpmCreatePixmapFromData in -lXpm" >&5
4626 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4627 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4628 echo $ac_n "(cached) $ac_c" 1>&6
4629 else
4630 ac_save_LIBS="$LIBS"
4631 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4632 cat > conftest.$ac_ext <<EOF
4633 #line 4634 "configure"
4634 #include "confdefs.h"
4635 /* Override any gcc2 internal prototype to avoid an error. */
4636 /* We use char because int might match the return type of a gcc2
4637 builtin and then its argument prototype would still apply. */
4638 char XpmCreatePixmapFromData();
4640 int main() {
4641 XpmCreatePixmapFromData()
4642 ; return 0; }
4644 if { (eval echo configure:4645: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4645 rm -rf conftest*
4646 eval "ac_cv_lib_$ac_lib_var=yes"
4647 else
4648 echo "configure: failed program was:" >&5
4649 cat conftest.$ac_ext >&5
4650 rm -rf conftest*
4651 eval "ac_cv_lib_$ac_lib_var=no"
4653 rm -f conftest*
4654 LIBS="$ac_save_LIBS"
4657 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4658 echo "$ac_t""yes" 1>&6
4659 yes=yes
4660 else
4661 echo "$ac_t""no" 1>&6
4662 no=no
4665 LDFLAGS="$LDFLAGS_old"
4668 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4670 CPPFLAGS_old="$CPPFLAGS"
4671 CPPFLAGS="$CPPFLAGS $inc_search_path"
4672 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4673 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4674 echo "configure:4675: checking for X11/xpm.h" >&5
4675 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4676 echo $ac_n "(cached) $ac_c" 1>&6
4677 else
4678 cat > conftest.$ac_ext <<EOF
4679 #line 4680 "configure"
4680 #include "confdefs.h"
4681 #include <X11/xpm.h>
4683 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4684 { (eval echo configure:4685: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4685 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4686 if test -z "$ac_err"; then
4687 rm -rf conftest*
4688 eval "ac_cv_header_$ac_safe=yes"
4689 else
4690 echo "$ac_err" >&5
4691 echo "configure: failed program was:" >&5
4692 cat conftest.$ac_ext >&5
4693 rm -rf conftest*
4694 eval "ac_cv_header_$ac_safe=no"
4696 rm -f conftest*
4698 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4699 echo "$ac_t""yes" 1>&6
4701 else
4702 echo "$ac_t""no" 1>&6
4705 CPPFLAGS="$CPPFLAGS_old"
4707 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4708 GFXLIBS="$GFXLIBS -lXpm"
4709 supported_gfx="XPM"
4710 cat >> confdefs.h <<\EOF
4711 #define USE_XPM 1
4714 else
4715 supported_gfx="builtin-XPM"
4720 # for wmlib
4722 # for test
4730 png=yes
4731 # Check whether --enable-png or --disable-png was given.
4732 if test "${enable_png+set}" = set; then
4733 enableval="$enable_png"
4734 png=$enableval
4735 else
4736 png=yes
4741 if test "$png" = yes ; then
4743 LDFLAGS_old="$LDFLAGS"
4744 LDFLAGS="$LDFLAGS $lib_search_path"
4745 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
4746 echo "configure:4747: checking for png_get_valid in -lpng" >&5
4747 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
4748 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4749 echo $ac_n "(cached) $ac_c" 1>&6
4750 else
4751 ac_save_LIBS="$LIBS"
4752 LIBS="-lpng -lz -lm $LIBS"
4753 cat > conftest.$ac_ext <<EOF
4754 #line 4755 "configure"
4755 #include "confdefs.h"
4756 /* Override any gcc2 internal prototype to avoid an error. */
4757 /* We use char because int might match the return type of a gcc2
4758 builtin and then its argument prototype would still apply. */
4759 char png_get_valid();
4761 int main() {
4762 png_get_valid()
4763 ; return 0; }
4765 if { (eval echo configure:4766: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4766 rm -rf conftest*
4767 eval "ac_cv_lib_$ac_lib_var=yes"
4768 else
4769 echo "configure: failed program was:" >&5
4770 cat conftest.$ac_ext >&5
4771 rm -rf conftest*
4772 eval "ac_cv_lib_$ac_lib_var=no"
4774 rm -f conftest*
4775 LIBS="$ac_save_LIBS"
4778 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4779 echo "$ac_t""yes" 1>&6
4780 yes=yes
4781 else
4782 echo "$ac_t""no" 1>&6
4783 no=no
4786 LDFLAGS="$LDFLAGS_old"
4789 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
4791 CPPFLAGS_old="$CPPFLAGS"
4792 CPPFLAGS="$CPPFLAGS $inc_search_path"
4793 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
4794 echo $ac_n "checking for png.h""... $ac_c" 1>&6
4795 echo "configure:4796: checking for png.h" >&5
4796 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4797 echo $ac_n "(cached) $ac_c" 1>&6
4798 else
4799 cat > conftest.$ac_ext <<EOF
4800 #line 4801 "configure"
4801 #include "confdefs.h"
4802 #include <png.h>
4804 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4805 { (eval echo configure:4806: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4806 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4807 if test -z "$ac_err"; then
4808 rm -rf conftest*
4809 eval "ac_cv_header_$ac_safe=yes"
4810 else
4811 echo "$ac_err" >&5
4812 echo "configure: failed program was:" >&5
4813 cat conftest.$ac_ext >&5
4814 rm -rf conftest*
4815 eval "ac_cv_header_$ac_safe=no"
4817 rm -f conftest*
4819 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4820 echo "$ac_t""yes" 1>&6
4822 else
4823 echo "$ac_t""no" 1>&6
4826 CPPFLAGS="$CPPFLAGS_old"
4828 if test "x$ac_cv_header_png_h" = xyes; then
4829 GFXLIBS="$GFXLIBS -lpng -lz"
4830 supported_gfx="$supported_gfx PNG"
4831 cat >> confdefs.h <<\EOF
4832 #define USE_PNG 1
4840 jpeg=yes
4841 ljpeg=""
4842 # Check whether --enable-jpeg or --disable-jpeg was given.
4843 if test "${enable_jpeg+set}" = set; then
4844 enableval="$enable_jpeg"
4845 jpeg=$enableval
4846 else
4847 jpeg=yes
4851 if test "$jpeg" = yes; then
4853 LDFLAGS_old="$LDFLAGS"
4854 LDFLAGS="$LDFLAGS $lib_search_path"
4855 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
4856 echo "configure:4857: checking for jpeg_destroy_compress in -ljpeg" >&5
4857 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
4858 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4859 echo $ac_n "(cached) $ac_c" 1>&6
4860 else
4861 ac_save_LIBS="$LIBS"
4862 LIBS="-ljpeg $LIBS"
4863 cat > conftest.$ac_ext <<EOF
4864 #line 4865 "configure"
4865 #include "confdefs.h"
4866 /* Override any gcc2 internal prototype to avoid an error. */
4867 /* We use char because int might match the return type of a gcc2
4868 builtin and then its argument prototype would still apply. */
4869 char jpeg_destroy_compress();
4871 int main() {
4872 jpeg_destroy_compress()
4873 ; return 0; }
4875 if { (eval echo configure:4876: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4876 rm -rf conftest*
4877 eval "ac_cv_lib_$ac_lib_var=yes"
4878 else
4879 echo "configure: failed program was:" >&5
4880 cat conftest.$ac_ext >&5
4881 rm -rf conftest*
4882 eval "ac_cv_lib_$ac_lib_var=no"
4884 rm -f conftest*
4885 LIBS="$ac_save_LIBS"
4888 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4889 echo "$ac_t""yes" 1>&6
4890 yes=yes
4891 else
4892 echo "$ac_t""no" 1>&6
4893 no=no
4896 LDFLAGS="$LDFLAGS_old"
4899 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
4901 ljpeg="-ljpeg"
4904 CPPFLAGS_old="$CPPFLAGS"
4905 CPPFLAGS="$CPPFLAGS $inc_search_path"
4906 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
4907 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
4908 echo "configure:4909: checking for jpeglib.h" >&5
4909 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4910 echo $ac_n "(cached) $ac_c" 1>&6
4911 else
4912 cat > conftest.$ac_ext <<EOF
4913 #line 4914 "configure"
4914 #include "confdefs.h"
4915 #include <jpeglib.h>
4917 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4918 { (eval echo configure:4919: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4919 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4920 if test -z "$ac_err"; then
4921 rm -rf conftest*
4922 eval "ac_cv_header_$ac_safe=yes"
4923 else
4924 echo "$ac_err" >&5
4925 echo "configure: failed program was:" >&5
4926 cat conftest.$ac_ext >&5
4927 rm -rf conftest*
4928 eval "ac_cv_header_$ac_safe=no"
4930 rm -f conftest*
4932 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4933 echo "$ac_t""yes" 1>&6
4935 else
4936 echo "$ac_t""no" 1>&6
4939 CPPFLAGS="$CPPFLAGS_old"
4941 if test "x$ac_cv_header_jpeglib_h" = xyes; then
4942 GFXLIBS="$GFXLIBS -ljpeg"
4943 supported_gfx="$supported_gfx JPEG"
4944 cat >> confdefs.h <<\EOF
4945 #define USE_JPEG 1
4953 gif=yes
4954 # Check whether --enable-gif or --disable-gif was given.
4955 if test "${enable_gif+set}" = set; then
4956 enableval="$enable_gif"
4957 gif=$enableval
4958 else
4959 gif=yes
4963 if test "$gif" = yes; then
4964 my_libname=""
4966 LDFLAGS_old="$LDFLAGS"
4967 LDFLAGS="$LDFLAGS $lib_search_path"
4968 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
4969 echo "configure:4970: checking for DGifOpenFileName in -lungif" >&5
4970 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
4971 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4972 echo $ac_n "(cached) $ac_c" 1>&6
4973 else
4974 ac_save_LIBS="$LIBS"
4975 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
4976 cat > conftest.$ac_ext <<EOF
4977 #line 4978 "configure"
4978 #include "confdefs.h"
4979 /* Override any gcc2 internal prototype to avoid an error. */
4980 /* We use char because int might match the return type of a gcc2
4981 builtin and then its argument prototype would still apply. */
4982 char DGifOpenFileName();
4984 int main() {
4985 DGifOpenFileName()
4986 ; return 0; }
4988 if { (eval echo configure:4989: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4989 rm -rf conftest*
4990 eval "ac_cv_lib_$ac_lib_var=yes"
4991 else
4992 echo "configure: failed program was:" >&5
4993 cat conftest.$ac_ext >&5
4994 rm -rf conftest*
4995 eval "ac_cv_lib_$ac_lib_var=no"
4997 rm -f conftest*
4998 LIBS="$ac_save_LIBS"
5001 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5002 echo "$ac_t""yes" 1>&6
5003 yes=yes
5004 else
5005 echo "$ac_t""no" 1>&6
5006 no=no
5009 LDFLAGS="$LDFLAGS_old"
5011 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
5012 my_libname=-lungif
5014 if test "x$my_libname" = x; then
5016 LDFLAGS_old="$LDFLAGS"
5017 LDFLAGS="$LDFLAGS $lib_search_path"
5018 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5019 echo "configure:5020: checking for DGifOpenFileName in -lgif" >&5
5020 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5022 echo $ac_n "(cached) $ac_c" 1>&6
5023 else
5024 ac_save_LIBS="$LIBS"
5025 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
5026 cat > conftest.$ac_ext <<EOF
5027 #line 5028 "configure"
5028 #include "confdefs.h"
5029 /* Override any gcc2 internal prototype to avoid an error. */
5030 /* We use char because int might match the return type of a gcc2
5031 builtin and then its argument prototype would still apply. */
5032 char DGifOpenFileName();
5034 int main() {
5035 DGifOpenFileName()
5036 ; return 0; }
5038 if { (eval echo configure:5039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5039 rm -rf conftest*
5040 eval "ac_cv_lib_$ac_lib_var=yes"
5041 else
5042 echo "configure: failed program was:" >&5
5043 cat conftest.$ac_ext >&5
5044 rm -rf conftest*
5045 eval "ac_cv_lib_$ac_lib_var=no"
5047 rm -f conftest*
5048 LIBS="$ac_save_LIBS"
5051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5052 echo "$ac_t""yes" 1>&6
5053 yes=yes
5054 else
5055 echo "$ac_t""no" 1>&6
5056 no=no
5059 LDFLAGS="$LDFLAGS_old"
5061 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
5062 my_libname=-lgif
5066 if test "$my_libname" != x; then
5068 CPPFLAGS_old="$CPPFLAGS"
5069 CPPFLAGS="$CPPFLAGS $inc_search_path"
5070 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5071 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5072 echo "configure:5073: checking for gif_lib.h" >&5
5073 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5074 echo $ac_n "(cached) $ac_c" 1>&6
5075 else
5076 cat > conftest.$ac_ext <<EOF
5077 #line 5078 "configure"
5078 #include "confdefs.h"
5079 #include <gif_lib.h>
5081 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5082 { (eval echo configure:5083: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5083 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5084 if test -z "$ac_err"; then
5085 rm -rf conftest*
5086 eval "ac_cv_header_$ac_safe=yes"
5087 else
5088 echo "$ac_err" >&5
5089 echo "configure: failed program was:" >&5
5090 cat conftest.$ac_ext >&5
5091 rm -rf conftest*
5092 eval "ac_cv_header_$ac_safe=no"
5094 rm -f conftest*
5096 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5097 echo "$ac_t""yes" 1>&6
5099 else
5100 echo "$ac_t""no" 1>&6
5103 CPPFLAGS="$CPPFLAGS_old"
5105 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5106 GFXLIBS="$GFXLIBS $my_libname"
5107 supported_gfx="$supported_gfx GIF"
5108 cat >> confdefs.h <<\EOF
5109 #define USE_GIF 1
5118 # Check whether --enable-tiff or --disable-tiff was given.
5119 if test "${enable_tiff+set}" = set; then
5120 enableval="$enable_tiff"
5121 tif=$enableval
5122 else
5123 tif=yes
5128 # TIFF can optionally have JPEG and/or zlib support. Must find out
5129 # when they are supported so that correct library flags are passed during
5130 # detection and linkage
5133 # By default use xpm icons if tiff is not found.
5134 ICONEXT="xpm"
5137 if test "$tif" = yes; then
5138 my_libname=""
5140 LDFLAGS_old="$LDFLAGS"
5141 LDFLAGS="$LDFLAGS $lib_search_path"
5142 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5143 echo "configure:5144: checking for TIFFGetVersion in -ltiff" >&5
5144 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5145 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5146 echo $ac_n "(cached) $ac_c" 1>&6
5147 else
5148 ac_save_LIBS="$LIBS"
5149 LIBS="-ltiff -lm $LIBS"
5150 cat > conftest.$ac_ext <<EOF
5151 #line 5152 "configure"
5152 #include "confdefs.h"
5153 /* Override any gcc2 internal prototype to avoid an error. */
5154 /* We use char because int might match the return type of a gcc2
5155 builtin and then its argument prototype would still apply. */
5156 char TIFFGetVersion();
5158 int main() {
5159 TIFFGetVersion()
5160 ; return 0; }
5162 if { (eval echo configure:5163: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5163 rm -rf conftest*
5164 eval "ac_cv_lib_$ac_lib_var=yes"
5165 else
5166 echo "configure: failed program was:" >&5
5167 cat conftest.$ac_ext >&5
5168 rm -rf conftest*
5169 eval "ac_cv_lib_$ac_lib_var=no"
5171 rm -f conftest*
5172 LIBS="$ac_save_LIBS"
5175 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5176 echo "$ac_t""yes" 1>&6
5177 yes=yes
5178 else
5179 echo "$ac_t""no" 1>&6
5180 no=no
5183 LDFLAGS="$LDFLAGS_old"
5185 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5186 my_libname="-ltiff"
5188 unset ac_cv_lib_tiff_TIFFGetVersion
5189 if test "x$my_libname" = x; then
5191 LDFLAGS_old="$LDFLAGS"
5192 LDFLAGS="$LDFLAGS $lib_search_path"
5193 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5194 echo "configure:5195: checking for TIFFGetVersion in -ltiff" >&5
5195 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5196 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5197 echo $ac_n "(cached) $ac_c" 1>&6
5198 else
5199 ac_save_LIBS="$LIBS"
5200 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5201 cat > conftest.$ac_ext <<EOF
5202 #line 5203 "configure"
5203 #include "confdefs.h"
5204 /* Override any gcc2 internal prototype to avoid an error. */
5205 /* We use char because int might match the return type of a gcc2
5206 builtin and then its argument prototype would still apply. */
5207 char TIFFGetVersion();
5209 int main() {
5210 TIFFGetVersion()
5211 ; return 0; }
5213 if { (eval echo configure:5214: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5214 rm -rf conftest*
5215 eval "ac_cv_lib_$ac_lib_var=yes"
5216 else
5217 echo "configure: failed program was:" >&5
5218 cat conftest.$ac_ext >&5
5219 rm -rf conftest*
5220 eval "ac_cv_lib_$ac_lib_var=no"
5222 rm -f conftest*
5223 LIBS="$ac_save_LIBS"
5226 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5227 echo "$ac_t""yes" 1>&6
5228 yes=yes
5229 else
5230 echo "$ac_t""no" 1>&6
5231 no=no
5234 LDFLAGS="$LDFLAGS_old"
5236 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5237 my_libname="-ltiff -lz"
5241 if test "x$my_libname" = x; then
5243 LDFLAGS_old="$LDFLAGS"
5244 LDFLAGS="$LDFLAGS $lib_search_path"
5245 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5246 echo "configure:5247: checking for TIFFGetVersion in -ltiff34" >&5
5247 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5248 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5249 echo $ac_n "(cached) $ac_c" 1>&6
5250 else
5251 ac_save_LIBS="$LIBS"
5252 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5253 cat > conftest.$ac_ext <<EOF
5254 #line 5255 "configure"
5255 #include "confdefs.h"
5256 /* Override any gcc2 internal prototype to avoid an error. */
5257 /* We use char because int might match the return type of a gcc2
5258 builtin and then its argument prototype would still apply. */
5259 char TIFFGetVersion();
5261 int main() {
5262 TIFFGetVersion()
5263 ; return 0; }
5265 if { (eval echo configure:5266: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5266 rm -rf conftest*
5267 eval "ac_cv_lib_$ac_lib_var=yes"
5268 else
5269 echo "configure: failed program was:" >&5
5270 cat conftest.$ac_ext >&5
5271 rm -rf conftest*
5272 eval "ac_cv_lib_$ac_lib_var=no"
5274 rm -f conftest*
5275 LIBS="$ac_save_LIBS"
5278 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5279 echo "$ac_t""yes" 1>&6
5280 yes=yes
5281 else
5282 echo "$ac_t""no" 1>&6
5283 no=no
5286 LDFLAGS="$LDFLAGS_old"
5288 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5289 my_libname="-ltiff34"
5294 if test "x$my_libname" != x; then
5296 CPPFLAGS_old="$CPPFLAGS"
5297 CPPFLAGS="$CPPFLAGS $inc_search_path"
5298 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5299 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5300 echo "configure:5301: checking for tiffio.h" >&5
5301 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5302 echo $ac_n "(cached) $ac_c" 1>&6
5303 else
5304 cat > conftest.$ac_ext <<EOF
5305 #line 5306 "configure"
5306 #include "confdefs.h"
5307 #include <tiffio.h>
5309 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5310 { (eval echo configure:5311: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5311 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5312 if test -z "$ac_err"; then
5313 rm -rf conftest*
5314 eval "ac_cv_header_$ac_safe=yes"
5315 else
5316 echo "$ac_err" >&5
5317 echo "configure: failed program was:" >&5
5318 cat conftest.$ac_ext >&5
5319 rm -rf conftest*
5320 eval "ac_cv_header_$ac_safe=no"
5322 rm -f conftest*
5324 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5325 echo "$ac_t""yes" 1>&6
5327 else
5328 echo "$ac_t""no" 1>&6
5331 CPPFLAGS="$CPPFLAGS_old"
5333 if test "x$ac_cv_header_tiffio_h" = xyes; then
5334 GFXLIBS="$my_libname $GFXLIBS"
5335 ICONEXT="tiff"
5336 supported_gfx="$supported_gfx TIFF"
5337 cat >> confdefs.h <<\EOF
5338 #define USE_TIFF 1
5345 LIBRARY_SEARCH_PATH="$lib_search_path"
5346 HEADER_SEARCH_PATH="$inc_search_path"
5358 # Check whether --enable-debug or --disable-debug was given.
5359 if test "${enable_debug+set}" = set; then
5360 enableval="$enable_debug"
5362 else
5363 enable_debug=no
5367 if test "$enable_debug" = yes; then
5368 DFLAGS="-g -DDEBUG"
5369 # Efence makes things too slow. Add it by hand in the Makefiles
5370 # if it is really needed.
5371 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5372 else
5373 DFLAGS="-DWITHOUT_NANA"
5378 sound=yes
5379 # Check whether --enable-sound or --disable-sound was given.
5380 if test "${enable_sound+set}" = set; then
5381 enableval="$enable_sound"
5382 sound=$enableval
5383 else
5384 sound=yes
5387 if test "$sound" = yes; then
5388 cat >> confdefs.h <<\EOF
5389 #define WMSOUND 1
5395 # AC_PREFIX_PROGRAM(wmaker)
5397 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5398 if test "${with_pixmapdir+set}" = set; then
5399 withval="$with_pixmapdir"
5404 if test "x$with_pixmapdir" != "x"; then
5405 pixmapdir=$with_pixmapdir
5406 else
5407 pixmapdir=`eval echo ${datadir}/pixmaps`
5410 cat >> confdefs.h <<EOF
5411 #define PIXMAPDIR "$pixmapdir"
5415 pkgdatadir=`eval echo $datadir`
5416 cat >> confdefs.h <<EOF
5417 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5421 _sysconfdir=`eval echo $sysconfdir`
5422 cat >> confdefs.h <<EOF
5423 #define SYSCONFDIR "$_sysconfdir"
5429 appspath=""
5431 # Check whether --with-appspath or --without-appspath was given.
5432 if test "${with_appspath+set}" = set; then
5433 withval="$with_appspath"
5434 appspath=$withval
5438 if test "x$appspath" = "x"; then
5439 gnustepdir='$(prefix)/GNUstep'
5441 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5442 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5443 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5446 with_appspath=$gnustepdir/Apps
5449 wprefsdir=$with_appspath/WPrefs.app
5455 # Check whether --enable-single-icon or --disable-single-icon was given.
5456 if test "${enable_single_icon+set}" = set; then
5457 enableval="$enable_single_icon"
5458 if test "$enableval" = yes; then
5459 cat >> confdefs.h <<\EOF
5460 #define REDUCE_APPICONS 1
5468 # Check whether --enable-usermenu or --disable-usermenu was given.
5469 if test "${enable_usermenu+set}" = set; then
5470 enableval="$enable_usermenu"
5471 if test "$enableval" = yes; then
5472 cat >> confdefs.h <<\EOF
5473 #define USER_MENU 1
5484 trap '' 1 2 15
5485 cat > confcache <<\EOF
5486 # This file is a shell script that caches the results of configure
5487 # tests run on this system so they can be shared between configure
5488 # scripts and configure runs. It is not useful on other systems.
5489 # If it contains results you don't want to keep, you may remove or edit it.
5491 # By default, configure uses ./config.cache as the cache file,
5492 # creating it if it does not exist already. You can give configure
5493 # the --cache-file=FILE option to use a different cache file; that is
5494 # what configure does when it calls configure scripts in
5495 # subdirectories, so they share the cache.
5496 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5497 # config.status only pays attention to the cache file if you give it the
5498 # --recheck option to rerun configure.
5501 # The following way of writing the cache mishandles newlines in values,
5502 # but we know of no workaround that is simple, portable, and efficient.
5503 # So, don't put newlines in cache variables' values.
5504 # Ultrix sh set writes to stderr and can't be redirected directly,
5505 # and sets the high bit in the cache file unless we assign to the vars.
5506 (set) 2>&1 |
5507 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5508 *ac_space=\ *)
5509 # `set' does not quote correctly, so add quotes (double-quote substitution
5510 # turns \\\\ into \\, and sed turns \\ into \).
5511 sed -n \
5512 -e "s/'/'\\\\''/g" \
5513 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5516 # `set' quotes correctly as required by POSIX, so do not add quotes.
5517 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5519 esac >> confcache
5520 if cmp -s $cache_file confcache; then
5522 else
5523 if test -w $cache_file; then
5524 echo "updating cache $cache_file"
5525 cat confcache > $cache_file
5526 else
5527 echo "not updating unwritable cache $cache_file"
5530 rm -f confcache
5532 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5535 # Let make expand exec_prefix.
5536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5538 # Any assignment to VPATH causes Sun make to only execute
5539 # the first set of double-colon rules, so remove it if not needed.
5540 # If there is a colon in the path, we need to keep it.
5541 if test "x$srcdir" = x.; then
5542 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5545 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5547 DEFS=-DHAVE_CONFIG_H
5549 # Without the "./", some shells look in PATH for config.status.
5550 : ${CONFIG_STATUS=./config.status}
5552 echo creating $CONFIG_STATUS
5553 rm -f $CONFIG_STATUS
5554 cat > $CONFIG_STATUS <<EOF
5555 #! /bin/sh
5556 # Generated automatically by configure.
5557 # Run this file to recreate the current configuration.
5558 # This directory was configured as follows,
5559 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5561 # $0 $ac_configure_args
5563 # Compiler output produced by configure, useful for debugging
5564 # configure, is in ./config.log if it exists.
5566 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5567 for ac_option
5569 case "\$ac_option" in
5570 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5571 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5572 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5573 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5574 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5575 exit 0 ;;
5576 -help | --help | --hel | --he | --h)
5577 echo "\$ac_cs_usage"; exit 0 ;;
5578 *) echo "\$ac_cs_usage"; exit 1 ;;
5579 esac
5580 done
5582 ac_given_srcdir=$srcdir
5583 ac_given_INSTALL="$INSTALL"
5585 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5586 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5587 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5588 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5589 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5590 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5591 WindowMaker/Themes/Makefile \
5592 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5593 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5595 cat >> $CONFIG_STATUS <<EOF
5597 # Protect against being on the right side of a sed subst in config.status.
5598 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5599 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5600 $ac_vpsub
5601 $extrasub
5602 s%@SHELL@%$SHELL%g
5603 s%@CFLAGS@%$CFLAGS%g
5604 s%@CPPFLAGS@%$CPPFLAGS%g
5605 s%@CXXFLAGS@%$CXXFLAGS%g
5606 s%@FFLAGS@%$FFLAGS%g
5607 s%@DEFS@%$DEFS%g
5608 s%@LDFLAGS@%$LDFLAGS%g
5609 s%@LIBS@%$LIBS%g
5610 s%@exec_prefix@%$exec_prefix%g
5611 s%@prefix@%$prefix%g
5612 s%@program_transform_name@%$program_transform_name%g
5613 s%@bindir@%$bindir%g
5614 s%@sbindir@%$sbindir%g
5615 s%@libexecdir@%$libexecdir%g
5616 s%@datadir@%$datadir%g
5617 s%@sysconfdir@%$sysconfdir%g
5618 s%@sharedstatedir@%$sharedstatedir%g
5619 s%@localstatedir@%$localstatedir%g
5620 s%@libdir@%$libdir%g
5621 s%@includedir@%$includedir%g
5622 s%@oldincludedir@%$oldincludedir%g
5623 s%@infodir@%$infodir%g
5624 s%@mandir@%$mandir%g
5625 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5626 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5627 s%@INSTALL_DATA@%$INSTALL_DATA%g
5628 s%@PACKAGE@%$PACKAGE%g
5629 s%@VERSION@%$VERSION%g
5630 s%@ACLOCAL@%$ACLOCAL%g
5631 s%@AUTOCONF@%$AUTOCONF%g
5632 s%@AUTOMAKE@%$AUTOMAKE%g
5633 s%@AUTOHEADER@%$AUTOHEADER%g
5634 s%@MAKEINFO@%$MAKEINFO%g
5635 s%@SET_MAKE@%$SET_MAKE%g
5636 s%@host@%$host%g
5637 s%@host_alias@%$host_alias%g
5638 s%@host_cpu@%$host_cpu%g
5639 s%@host_vendor@%$host_vendor%g
5640 s%@host_os@%$host_os%g
5641 s%@build@%$build%g
5642 s%@build_alias@%$build_alias%g
5643 s%@build_cpu@%$build_cpu%g
5644 s%@build_vendor@%$build_vendor%g
5645 s%@build_os@%$build_os%g
5646 s%@RANLIB@%$RANLIB%g
5647 s%@CC@%$CC%g
5648 s%@LD@%$LD%g
5649 s%@NM@%$NM%g
5650 s%@LN_S@%$LN_S%g
5651 s%@LIBTOOL@%$LIBTOOL%g
5652 s%@CPP@%$CPP%g
5653 s%@ALLOCA@%$ALLOCA%g
5654 s%@CPP_PATH@%$CPP_PATH%g
5655 s%@XGETTEXT@%$XGETTEXT%g
5656 s%@DLLIBS@%$DLLIBS%g
5657 s%@INTLIBS@%$INTLIBS%g
5658 s%@NLSDIR@%$NLSDIR%g
5659 s%@MOFILES@%$MOFILES%g
5660 s%@WPMOFILES@%$WPMOFILES%g
5661 s%@LITE@%$LITE%g
5662 s%@NETLIBS@%$NETLIBS%g
5663 s%@X_CFLAGS@%$X_CFLAGS%g
5664 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5665 s%@X_LIBS@%$X_LIBS%g
5666 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5667 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5668 s%@LIBPL@%$LIBPL%g
5669 s%@XCFLAGS@%$XCFLAGS%g
5670 s%@XLFLAGS@%$XLFLAGS%g
5671 s%@XLIBS@%$XLIBS%g
5672 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5673 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5674 s%@GFXLIBS@%$GFXLIBS%g
5675 s%@ICONEXT@%$ICONEXT%g
5676 s%@DFLAGS@%$DFLAGS%g
5677 s%@wprefsdir@%$wprefsdir%g
5679 CEOF
5682 cat >> $CONFIG_STATUS <<\EOF
5684 # Split the substitutions into bite-sized pieces for seds with
5685 # small command number limits, like on Digital OSF/1 and HP-UX.
5686 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5687 ac_file=1 # Number of current file.
5688 ac_beg=1 # First line for current file.
5689 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5690 ac_more_lines=:
5691 ac_sed_cmds=""
5692 while $ac_more_lines; do
5693 if test $ac_beg -gt 1; then
5694 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5695 else
5696 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5698 if test ! -s conftest.s$ac_file; then
5699 ac_more_lines=false
5700 rm -f conftest.s$ac_file
5701 else
5702 if test -z "$ac_sed_cmds"; then
5703 ac_sed_cmds="sed -f conftest.s$ac_file"
5704 else
5705 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5707 ac_file=`expr $ac_file + 1`
5708 ac_beg=$ac_end
5709 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5711 done
5712 if test -z "$ac_sed_cmds"; then
5713 ac_sed_cmds=cat
5717 cat >> $CONFIG_STATUS <<EOF
5719 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5720 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5721 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5722 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5723 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5724 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5725 WindowMaker/Themes/Makefile \
5726 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5727 WPrefs.app/po/Makefile "}
5729 cat >> $CONFIG_STATUS <<\EOF
5730 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
5731 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5732 case "$ac_file" in
5733 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5734 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5735 *) ac_file_in="${ac_file}.in" ;;
5736 esac
5738 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
5740 # Remove last slash and all that follows it. Not all systems have dirname.
5741 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5742 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5743 # The file is in a subdirectory.
5744 test ! -d "$ac_dir" && mkdir "$ac_dir"
5745 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
5746 # A "../" for each directory in $ac_dir_suffix.
5747 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
5748 else
5749 ac_dir_suffix= ac_dots=
5752 case "$ac_given_srcdir" in
5753 .) srcdir=.
5754 if test -z "$ac_dots"; then top_srcdir=.
5755 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
5756 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
5757 *) # Relative path.
5758 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
5759 top_srcdir="$ac_dots$ac_given_srcdir" ;;
5760 esac
5762 case "$ac_given_INSTALL" in
5763 [/$]*) INSTALL="$ac_given_INSTALL" ;;
5764 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
5765 esac
5767 echo creating "$ac_file"
5768 rm -f "$ac_file"
5769 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5770 case "$ac_file" in
5771 *Makefile*) ac_comsub="1i\\
5772 # $configure_input" ;;
5773 *) ac_comsub= ;;
5774 esac
5776 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5777 sed -e "$ac_comsub
5778 s%@configure_input@%$configure_input%g
5779 s%@srcdir@%$srcdir%g
5780 s%@top_srcdir@%$top_srcdir%g
5781 s%@INSTALL@%$INSTALL%g
5782 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
5783 fi; done
5784 rm -f conftest.s*
5786 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5787 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5789 # ac_d sets the value in "#define NAME VALUE" lines.
5790 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5791 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
5792 ac_dC='\3'
5793 ac_dD='%g'
5794 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5795 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5796 ac_uB='\([ ]\)%\1#\2define\3'
5797 ac_uC=' '
5798 ac_uD='\4%g'
5799 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5800 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5801 ac_eB='$%\1#\2define\3'
5802 ac_eC=' '
5803 ac_eD='%g'
5805 if test "${CONFIG_HEADERS+set}" != set; then
5807 cat >> $CONFIG_STATUS <<EOF
5808 CONFIG_HEADERS="src/config.h"
5810 cat >> $CONFIG_STATUS <<\EOF
5812 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
5813 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5814 case "$ac_file" in
5815 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
5816 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
5817 *) ac_file_in="${ac_file}.in" ;;
5818 esac
5820 echo creating $ac_file
5822 rm -f conftest.frag conftest.in conftest.out
5823 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5824 cat $ac_file_inputs > conftest.in
5828 # Transform confdefs.h into a sed script conftest.vals that substitutes
5829 # the proper values into config.h.in to produce config.h. And first:
5830 # Protect against being on the right side of a sed subst in config.status.
5831 # Protect against being in an unquoted here document in config.status.
5832 rm -f conftest.vals
5833 cat > conftest.hdr <<\EOF
5834 s/[\\&%]/\\&/g
5835 s%[\\$`]%\\&%g
5836 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5837 s%ac_d%ac_u%gp
5838 s%ac_u%ac_e%gp
5840 sed -n -f conftest.hdr confdefs.h > conftest.vals
5841 rm -f conftest.hdr
5843 # This sed command replaces #undef with comments. This is necessary, for
5844 # example, in the case of _POSIX_SOURCE, which is predefined and required
5845 # on some systems where configure will not decide to define it.
5846 cat >> conftest.vals <<\EOF
5847 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5850 # Break up conftest.vals because some shells have a limit on
5851 # the size of here documents, and old seds have small limits too.
5853 rm -f conftest.tail
5854 while :
5856 ac_lines=`grep -c . conftest.vals`
5857 # grep -c gives empty output for an empty file on some AIX systems.
5858 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5859 # Write a limited-size here document to conftest.frag.
5860 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5861 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5862 echo 'CEOF
5863 sed -f conftest.frag conftest.in > conftest.out
5864 rm -f conftest.in
5865 mv conftest.out conftest.in
5866 ' >> $CONFIG_STATUS
5867 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5868 rm -f conftest.vals
5869 mv conftest.tail conftest.vals
5870 done
5871 rm -f conftest.vals
5873 cat >> $CONFIG_STATUS <<\EOF
5874 rm -f conftest.frag conftest.h
5875 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5876 cat conftest.in >> conftest.h
5877 rm -f conftest.in
5878 if cmp -s $ac_file conftest.h 2>/dev/null; then
5879 echo "$ac_file is unchanged"
5880 rm -f conftest.h
5881 else
5882 # Remove last slash and all that follows it. Not all systems have dirname.
5883 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
5884 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5885 # The file is in a subdirectory.
5886 test ! -d "$ac_dir" && mkdir "$ac_dir"
5888 rm -f $ac_file
5889 mv conftest.h $ac_file
5891 fi; done
5894 cat >> $CONFIG_STATUS <<EOF
5898 cat >> $CONFIG_STATUS <<\EOF
5899 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
5901 exit 0
5903 chmod +x $CONFIG_STATUS
5904 rm -fr confdefs* $ac_clean_files
5905 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5913 cat <<EOF >get-wraster-flags
5914 #!/bin/sh
5916 prefix="$prefix"
5917 exec_prefix=\$prefix
5919 WCFLAGS="-I\$prefix/include $inc_search_path"
5920 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
5921 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
5923 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
5925 if test \$# -eq 0; then
5926 echo "\${usage}" 1>&2
5927 exit 1
5930 while test \$# -gt 0; do
5931 case \$1 in
5932 --cflags)
5933 echo \$WCFLAGS
5935 --ldflags|--lflags)
5936 echo \$WLFLAGS
5938 --libs)
5939 echo \$WLIBS
5942 echo "\${usage}" 1>&2
5943 exit 1
5945 esac
5946 shift
5947 done
5952 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
5954 chmod 755 wrlib/get-wraster-flags
5955 rm -f get-wraster-flags
5959 supported_gfx="$supported_gfx builtin-PPM"
5961 if test "x$MOFILES" = "x"; then
5962 mof=none
5963 else
5964 mof=$MOFILES
5968 echo
5969 echo "Window Maker was configured as follows:"
5970 echo
5971 echo "Installation path prefix: $prefix"
5972 echo "Installation path prefix for binaries: $_bindir"
5973 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
5974 echo "Graphic format libraries: $supported_gfx"
5975 echo "Sound support: $sound"
5976 echo "Translated message files to install: $mof"
5977 if test "x$MOFILES" != "x"; then
5978 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
5982 if test "x$ac_cv_header_jpeglib_h" != xyes; then
5983 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
5984 echo
5985 echo "JPEG support will not be included because the JPEG library is"
5986 echo "not installed correctly or was not found. Background images"
5987 echo "from themes will not display as they usually are JPEG files."
5988 echo
5989 echo "To fix, download and install the jpeg library and/or make sure you"
5990 echo "installed all jpeg related packages, SPECIALLY the development packages"
5991 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
5992 echo
5993 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"