gif update from Graham Whitted <gbw@sgrail.com>
[wmaker-crm.git] / configure
blob79e000137abebe076162c1887eaf3b8c3132128c
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-xinerama disable XInerama extension support"
48 ac_help="$ac_help
49 --disable-shm disable usage of MIT-SHM extension"
50 ac_help="$ac_help
51 --disable-xpm disable use of XPM pixmaps through libXpm"
52 ac_help="$ac_help
53 --disable-png disable PNG support through libpng"
54 ac_help="$ac_help
55 --disable-jpeg disable JPEG support through libjpeg"
56 ac_help="$ac_help
57 --disable-gif disable GIF support through libgif or libungif"
58 ac_help="$ac_help
59 --disable-tiff disable use of TIFF images through libtiff"
60 ac_help="$ac_help
61 --enable-debug enable debugging "
62 ac_help="$ac_help
63 --disable-sound disable sound support "
64 ac_help="$ac_help
65 --with-pixmapdir=PATH specify where pixmaps are located [DATADIR/pixmaps]"
66 ac_help="$ac_help
67 --with-appspath=PATH specify the directory for GNUstep applications"
68 ac_help="$ac_help
69 --enable-single-icon use single application icon per WM_INSTANCE+WM_CLASS
71 ac_help="$ac_help
72 --enable-usermenu user defined menus for applications
75 # Initialize some variables set by options.
76 # The variables have the same names as the options, with
77 # dashes changed to underlines.
78 build=NONE
79 cache_file=./config.cache
80 exec_prefix=NONE
81 host=NONE
82 no_create=
83 nonopt=NONE
84 no_recursion=
85 prefix=NONE
86 program_prefix=NONE
87 program_suffix=NONE
88 program_transform_name=s,x,x,
89 silent=
90 site=
91 srcdir=
92 target=NONE
93 verbose=
94 x_includes=NONE
95 x_libraries=NONE
96 bindir='${exec_prefix}/bin'
97 sbindir='${exec_prefix}/sbin'
98 libexecdir='${exec_prefix}/libexec'
99 datadir='${prefix}/share'
100 sysconfdir='${prefix}/etc'
101 sharedstatedir='${prefix}/com'
102 localstatedir='${prefix}/var'
103 libdir='${exec_prefix}/lib'
104 includedir='${prefix}/include'
105 oldincludedir='/usr/include'
106 infodir='${prefix}/info'
107 mandir='${prefix}/man'
109 # Initialize some other variables.
110 subdirs=
111 MFLAGS= MAKEFLAGS=
112 SHELL=${CONFIG_SHELL-/bin/sh}
113 # Maximum number of lines to put in a shell here document.
114 ac_max_here_lines=12
116 ac_prev=
117 for ac_option
120 # If the previous option needs an argument, assign it.
121 if test -n "$ac_prev"; then
122 eval "$ac_prev=\$ac_option"
123 ac_prev=
124 continue
127 case "$ac_option" in
128 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
129 *) ac_optarg= ;;
130 esac
132 # Accept the important Cygnus configure options, so we can diagnose typos.
134 case "$ac_option" in
136 -bindir | --bindir | --bindi | --bind | --bin | --bi)
137 ac_prev=bindir ;;
138 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
139 bindir="$ac_optarg" ;;
141 -build | --build | --buil | --bui | --bu)
142 ac_prev=build ;;
143 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
144 build="$ac_optarg" ;;
146 -cache-file | --cache-file | --cache-fil | --cache-fi \
147 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
148 ac_prev=cache_file ;;
149 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
150 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
151 cache_file="$ac_optarg" ;;
153 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
154 ac_prev=datadir ;;
155 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
156 | --da=*)
157 datadir="$ac_optarg" ;;
159 -disable-* | --disable-*)
160 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
161 # Reject names that are not valid shell variable names.
162 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
163 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
165 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
166 eval "enable_${ac_feature}=no" ;;
168 -enable-* | --enable-*)
169 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
170 # Reject names that are not valid shell variable names.
171 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
172 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
174 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
175 case "$ac_option" in
176 *=*) ;;
177 *) ac_optarg=yes ;;
178 esac
179 eval "enable_${ac_feature}='$ac_optarg'" ;;
181 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
182 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
183 | --exec | --exe | --ex)
184 ac_prev=exec_prefix ;;
185 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
186 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
187 | --exec=* | --exe=* | --ex=*)
188 exec_prefix="$ac_optarg" ;;
190 -gas | --gas | --ga | --g)
191 # Obsolete; use --with-gas.
192 with_gas=yes ;;
194 -help | --help | --hel | --he)
195 # Omit some internal or obsolete options to make the list less imposing.
196 # This message is too long to be a string in the A/UX 3.1 sh.
197 cat << EOF
198 Usage: configure [options] [host]
199 Options: [defaults in brackets after descriptions]
200 Configuration:
201 --cache-file=FILE cache test results in FILE
202 --help print this message
203 --no-create do not create output files
204 --quiet, --silent do not print \`checking...' messages
205 --version print the version of autoconf that created configure
206 Directory and file names:
207 --prefix=PREFIX install architecture-independent files in PREFIX
208 [$ac_default_prefix]
209 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
210 [same as prefix]
211 --bindir=DIR user executables in DIR [EPREFIX/bin]
212 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
213 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
214 --datadir=DIR read-only architecture-independent data in DIR
215 [PREFIX/share]
216 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
217 --sharedstatedir=DIR modifiable architecture-independent data in DIR
218 [PREFIX/com]
219 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
220 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
221 --includedir=DIR C header files in DIR [PREFIX/include]
222 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
223 --infodir=DIR info documentation in DIR [PREFIX/info]
224 --mandir=DIR man documentation in DIR [PREFIX/man]
225 --srcdir=DIR find the sources in DIR [configure dir or ..]
226 --program-prefix=PREFIX prepend PREFIX to installed program names
227 --program-suffix=SUFFIX append SUFFIX to installed program names
228 --program-transform-name=PROGRAM
229 run sed PROGRAM on installed program names
231 cat << EOF
232 Host type:
233 --build=BUILD configure for building on BUILD [BUILD=HOST]
234 --host=HOST configure for HOST [guessed]
235 --target=TARGET configure for TARGET [TARGET=HOST]
236 Features and packages:
237 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
238 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
239 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
240 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
241 --x-includes=DIR X include files are in DIR
242 --x-libraries=DIR X library files are in DIR
244 if test -n "$ac_help"; then
245 echo "--enable and --with options recognized:$ac_help"
247 exit 0 ;;
249 -host | --host | --hos | --ho)
250 ac_prev=host ;;
251 -host=* | --host=* | --hos=* | --ho=*)
252 host="$ac_optarg" ;;
254 -includedir | --includedir | --includedi | --included | --include \
255 | --includ | --inclu | --incl | --inc)
256 ac_prev=includedir ;;
257 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
258 | --includ=* | --inclu=* | --incl=* | --inc=*)
259 includedir="$ac_optarg" ;;
261 -infodir | --infodir | --infodi | --infod | --info | --inf)
262 ac_prev=infodir ;;
263 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
264 infodir="$ac_optarg" ;;
266 -libdir | --libdir | --libdi | --libd)
267 ac_prev=libdir ;;
268 -libdir=* | --libdir=* | --libdi=* | --libd=*)
269 libdir="$ac_optarg" ;;
271 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
272 | --libexe | --libex | --libe)
273 ac_prev=libexecdir ;;
274 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
275 | --libexe=* | --libex=* | --libe=*)
276 libexecdir="$ac_optarg" ;;
278 -localstatedir | --localstatedir | --localstatedi | --localstated \
279 | --localstate | --localstat | --localsta | --localst \
280 | --locals | --local | --loca | --loc | --lo)
281 ac_prev=localstatedir ;;
282 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
283 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
284 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
285 localstatedir="$ac_optarg" ;;
287 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
288 ac_prev=mandir ;;
289 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
290 mandir="$ac_optarg" ;;
292 -nfp | --nfp | --nf)
293 # Obsolete; use --without-fp.
294 with_fp=no ;;
296 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
297 | --no-cr | --no-c)
298 no_create=yes ;;
300 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
301 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
302 no_recursion=yes ;;
304 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
305 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
306 | --oldin | --oldi | --old | --ol | --o)
307 ac_prev=oldincludedir ;;
308 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
309 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
310 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
311 oldincludedir="$ac_optarg" ;;
313 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
314 ac_prev=prefix ;;
315 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
316 prefix="$ac_optarg" ;;
318 -program-prefix | --program-prefix | --program-prefi | --program-pref \
319 | --program-pre | --program-pr | --program-p)
320 ac_prev=program_prefix ;;
321 -program-prefix=* | --program-prefix=* | --program-prefi=* \
322 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
323 program_prefix="$ac_optarg" ;;
325 -program-suffix | --program-suffix | --program-suffi | --program-suff \
326 | --program-suf | --program-su | --program-s)
327 ac_prev=program_suffix ;;
328 -program-suffix=* | --program-suffix=* | --program-suffi=* \
329 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
330 program_suffix="$ac_optarg" ;;
332 -program-transform-name | --program-transform-name \
333 | --program-transform-nam | --program-transform-na \
334 | --program-transform-n | --program-transform- \
335 | --program-transform | --program-transfor \
336 | --program-transfo | --program-transf \
337 | --program-trans | --program-tran \
338 | --progr-tra | --program-tr | --program-t)
339 ac_prev=program_transform_name ;;
340 -program-transform-name=* | --program-transform-name=* \
341 | --program-transform-nam=* | --program-transform-na=* \
342 | --program-transform-n=* | --program-transform-=* \
343 | --program-transform=* | --program-transfor=* \
344 | --program-transfo=* | --program-transf=* \
345 | --program-trans=* | --program-tran=* \
346 | --progr-tra=* | --program-tr=* | --program-t=*)
347 program_transform_name="$ac_optarg" ;;
349 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
350 | -silent | --silent | --silen | --sile | --sil)
351 silent=yes ;;
353 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
354 ac_prev=sbindir ;;
355 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
356 | --sbi=* | --sb=*)
357 sbindir="$ac_optarg" ;;
359 -sharedstatedir | --sharedstatedir | --sharedstatedi \
360 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
361 | --sharedst | --shareds | --shared | --share | --shar \
362 | --sha | --sh)
363 ac_prev=sharedstatedir ;;
364 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
365 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
366 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
367 | --sha=* | --sh=*)
368 sharedstatedir="$ac_optarg" ;;
370 -site | --site | --sit)
371 ac_prev=site ;;
372 -site=* | --site=* | --sit=*)
373 site="$ac_optarg" ;;
375 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
376 ac_prev=srcdir ;;
377 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
378 srcdir="$ac_optarg" ;;
380 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
381 | --syscon | --sysco | --sysc | --sys | --sy)
382 ac_prev=sysconfdir ;;
383 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
384 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
385 sysconfdir="$ac_optarg" ;;
387 -target | --target | --targe | --targ | --tar | --ta | --t)
388 ac_prev=target ;;
389 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
390 target="$ac_optarg" ;;
392 -v | -verbose | --verbose | --verbos | --verbo | --verb)
393 verbose=yes ;;
395 -version | --version | --versio | --versi | --vers)
396 echo "configure generated by autoconf version 2.13"
397 exit 0 ;;
399 -with-* | --with-*)
400 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
401 # Reject names that are not valid shell variable names.
402 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
403 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
405 ac_package=`echo $ac_package| sed 's/-/_/g'`
406 case "$ac_option" in
407 *=*) ;;
408 *) ac_optarg=yes ;;
409 esac
410 eval "with_${ac_package}='$ac_optarg'" ;;
412 -without-* | --without-*)
413 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
414 # Reject names that are not valid shell variable names.
415 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
416 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
418 ac_package=`echo $ac_package| sed 's/-/_/g'`
419 eval "with_${ac_package}=no" ;;
421 --x)
422 # Obsolete; use --with-x.
423 with_x=yes ;;
425 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
426 | --x-incl | --x-inc | --x-in | --x-i)
427 ac_prev=x_includes ;;
428 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
429 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
430 x_includes="$ac_optarg" ;;
432 -x-libraries | --x-libraries | --x-librarie | --x-librari \
433 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
434 ac_prev=x_libraries ;;
435 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
436 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
437 x_libraries="$ac_optarg" ;;
439 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
443 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
444 echo "configure: warning: $ac_option: invalid host type" 1>&2
446 if test "x$nonopt" != xNONE; then
447 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
449 nonopt="$ac_option"
452 esac
453 done
455 if test -n "$ac_prev"; then
456 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
459 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
461 # File descriptor usage:
462 # 0 standard input
463 # 1 file creation
464 # 2 errors and warnings
465 # 3 some systems may open it to /dev/tty
466 # 4 used on the Kubota Titan
467 # 6 checking for... messages and results
468 # 5 compiler messages saved in config.log
469 if test "$silent" = yes; then
470 exec 6>/dev/null
471 else
472 exec 6>&1
474 exec 5>./config.log
476 echo "\
477 This file contains any messages produced by compilers while
478 running configure, to aid debugging if configure makes a mistake.
479 " 1>&5
481 # Strip out --no-create and --no-recursion so they do not pile up.
482 # Also quote any args containing shell metacharacters.
483 ac_configure_args=
484 for ac_arg
486 case "$ac_arg" in
487 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
488 | --no-cr | --no-c) ;;
489 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
490 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
491 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
492 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
493 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
494 esac
495 done
497 # NLS nuisances.
498 # Only set these to C if already set. These must not be set unconditionally
499 # because not all systems understand e.g. LANG=C (notably SCO).
500 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
501 # Non-C LC_CTYPE values break the ctype check.
502 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
503 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
504 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
505 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
507 # confdefs.h avoids OS command line length limits that DEFS can exceed.
508 rm -rf conftest* confdefs.h
509 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
510 echo > confdefs.h
512 # A filename unique to this package, relative to the directory that
513 # configure is in, which we can look for to find out if srcdir is correct.
514 ac_unique_file=src/WindowMaker.h
516 # Find the source files, if location was not specified.
517 if test -z "$srcdir"; then
518 ac_srcdir_defaulted=yes
519 # Try the directory containing this script, then its parent.
520 ac_prog=$0
521 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
522 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
523 srcdir=$ac_confdir
524 if test ! -r $srcdir/$ac_unique_file; then
525 srcdir=..
527 else
528 ac_srcdir_defaulted=no
530 if test ! -r $srcdir/$ac_unique_file; then
531 if test "$ac_srcdir_defaulted" = yes; then
532 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
533 else
534 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
537 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
539 # Prefer explicitly selected file to automatically selected ones.
540 if test -z "$CONFIG_SITE"; then
541 if test "x$prefix" != xNONE; then
542 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
543 else
544 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
547 for ac_site_file in $CONFIG_SITE; do
548 if test -r "$ac_site_file"; then
549 echo "loading site script $ac_site_file"
550 . "$ac_site_file"
552 done
554 if test -r "$cache_file"; then
555 echo "loading cache $cache_file"
556 . $cache_file
557 else
558 echo "creating cache $cache_file"
559 > $cache_file
562 ac_ext=c
563 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
564 ac_cpp='$CPP $CPPFLAGS'
565 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
566 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
567 cross_compiling=$ac_cv_prog_cc_cross
569 ac_exeext=
570 ac_objext=o
571 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
572 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
573 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
574 ac_n= ac_c='
575 ' ac_t=' '
576 else
577 ac_n=-n ac_c= ac_t=
579 else
580 ac_n= ac_c='\c' ac_t=
587 ac_aux_dir=
588 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
589 if test -f $ac_dir/install-sh; then
590 ac_aux_dir=$ac_dir
591 ac_install_sh="$ac_aux_dir/install-sh -c"
592 break
593 elif test -f $ac_dir/install.sh; then
594 ac_aux_dir=$ac_dir
595 ac_install_sh="$ac_aux_dir/install.sh -c"
596 break
598 done
599 if test -z "$ac_aux_dir"; then
600 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
602 ac_config_guess=$ac_aux_dir/config.guess
603 ac_config_sub=$ac_aux_dir/config.sub
604 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
606 # Find a good install program. We prefer a C program (faster),
607 # so one script is as good as another. But avoid the broken or
608 # incompatible versions:
609 # SysV /etc/install, /usr/sbin/install
610 # SunOS /usr/etc/install
611 # IRIX /sbin/install
612 # AIX /bin/install
613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
616 # ./install, which can be erroneously created by make from ./install.sh.
617 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
618 echo "configure:619: checking for a BSD compatible install" >&5
619 if test -z "$INSTALL"; then
620 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
621 echo $ac_n "(cached) $ac_c" 1>&6
622 else
623 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
624 for ac_dir in $PATH; do
625 # Account for people who put trailing slashes in PATH elements.
626 case "$ac_dir/" in
627 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
629 # OSF1 and SCO ODT 3.0 have their own names for install.
630 # Don't use installbsd from OSF since it installs stuff as root
631 # by default.
632 for ac_prog in ginstall scoinst install; do
633 if test -f $ac_dir/$ac_prog; then
634 if test $ac_prog = install &&
635 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
636 # AIX install. It has an incompatible calling convention.
638 else
639 ac_cv_path_install="$ac_dir/$ac_prog -c"
640 break 2
643 done
645 esac
646 done
647 IFS="$ac_save_IFS"
650 if test "${ac_cv_path_install+set}" = set; then
651 INSTALL="$ac_cv_path_install"
652 else
653 # As a last resort, use the slow shell script. We don't cache a
654 # path for INSTALL within a source directory, because that will
655 # break other packages using the cache if that directory is
656 # removed, or if the path is relative.
657 INSTALL="$ac_install_sh"
660 echo "$ac_t""$INSTALL" 1>&6
662 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
663 # It thinks the first close brace ends the variable substitution.
664 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
666 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
668 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
670 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
671 echo "configure:672: checking whether build environment is sane" >&5
672 # Just in case
673 sleep 1
674 echo timestamp > conftestfile
675 # Do `set' in a subshell so we don't clobber the current shell's
676 # arguments. Must try -L first in case configure is actually a
677 # symlink; some systems play weird games with the mod time of symlinks
678 # (eg FreeBSD returns the mod time of the symlink's containing
679 # directory).
680 if (
681 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
682 if test "$*" = "X"; then
683 # -L didn't work.
684 set X `ls -t $srcdir/configure conftestfile`
686 if test "$*" != "X $srcdir/configure conftestfile" \
687 && test "$*" != "X conftestfile $srcdir/configure"; then
689 # If neither matched, then we have a broken ls. This can happen
690 # if, for instance, CONFIG_SHELL is bash and it inherits a
691 # broken ls alias from the environment. This has actually
692 # happened. Such a system could not be considered "sane".
693 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
694 alias in your environment" 1>&2; exit 1; }
697 test "$2" = conftestfile
699 then
700 # Ok.
702 else
703 { echo "configure: error: newly created file is older than distributed files!
704 Check your system clock" 1>&2; exit 1; }
706 rm -f conftest*
707 echo "$ac_t""yes" 1>&6
708 if test "$program_transform_name" = s,x,x,; then
709 program_transform_name=
710 else
711 # Double any \ or $. echo might interpret backslashes.
712 cat <<\EOF_SED > conftestsed
713 s,\\,\\\\,g; s,\$,$$,g
714 EOF_SED
715 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
716 rm -f conftestsed
718 test "$program_prefix" != NONE &&
719 program_transform_name="s,^,${program_prefix},; $program_transform_name"
720 # Use a double $ so make ignores it.
721 test "$program_suffix" != NONE &&
722 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
724 # sed with no file args requires a program.
725 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
727 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
728 echo "configure:729: checking whether ${MAKE-make} sets \${MAKE}" >&5
729 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
730 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
731 echo $ac_n "(cached) $ac_c" 1>&6
732 else
733 cat > conftestmake <<\EOF
734 all:
735 @echo 'ac_maketemp="${MAKE}"'
737 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
738 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
739 if test -n "$ac_maketemp"; then
740 eval ac_cv_prog_make_${ac_make}_set=yes
741 else
742 eval ac_cv_prog_make_${ac_make}_set=no
744 rm -f conftestmake
746 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
747 echo "$ac_t""yes" 1>&6
748 SET_MAKE=
749 else
750 echo "$ac_t""no" 1>&6
751 SET_MAKE="MAKE=${MAKE-make}"
755 PACKAGE=WindowMaker
757 VERSION=0.62.0
759 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
760 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
762 cat >> confdefs.h <<EOF
763 #define PACKAGE "$PACKAGE"
766 cat >> confdefs.h <<EOF
767 #define VERSION "$VERSION"
772 missing_dir=`cd $ac_aux_dir && pwd`
773 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
774 echo "configure:775: checking for working aclocal" >&5
775 # Run test in a subshell; some versions of sh will print an error if
776 # an executable is not found, even if stderr is redirected.
777 # Redirect stdin to placate older versions of autoconf. Sigh.
778 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
779 ACLOCAL=aclocal
780 echo "$ac_t""found" 1>&6
781 else
782 ACLOCAL="$missing_dir/missing aclocal"
783 echo "$ac_t""missing" 1>&6
786 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
787 echo "configure:788: checking for working autoconf" >&5
788 # Run test in a subshell; some versions of sh will print an error if
789 # an executable is not found, even if stderr is redirected.
790 # Redirect stdin to placate older versions of autoconf. Sigh.
791 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
792 AUTOCONF=autoconf
793 echo "$ac_t""found" 1>&6
794 else
795 AUTOCONF="$missing_dir/missing autoconf"
796 echo "$ac_t""missing" 1>&6
799 echo $ac_n "checking for working automake""... $ac_c" 1>&6
800 echo "configure:801: checking for working automake" >&5
801 # Run test in a subshell; some versions of sh will print an error if
802 # an executable is not found, even if stderr is redirected.
803 # Redirect stdin to placate older versions of autoconf. Sigh.
804 if (automake --version) < /dev/null > /dev/null 2>&1; then
805 AUTOMAKE=automake
806 echo "$ac_t""found" 1>&6
807 else
808 AUTOMAKE="$missing_dir/missing automake"
809 echo "$ac_t""missing" 1>&6
812 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
813 echo "configure:814: checking for working autoheader" >&5
814 # Run test in a subshell; some versions of sh will print an error if
815 # an executable is not found, even if stderr is redirected.
816 # Redirect stdin to placate older versions of autoconf. Sigh.
817 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
818 AUTOHEADER=autoheader
819 echo "$ac_t""found" 1>&6
820 else
821 AUTOHEADER="$missing_dir/missing autoheader"
822 echo "$ac_t""missing" 1>&6
825 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
826 echo "configure:827: checking for working makeinfo" >&5
827 # Run test in a subshell; some versions of sh will print an error if
828 # an executable is not found, even if stderr is redirected.
829 # Redirect stdin to placate older versions of autoconf. Sigh.
830 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
831 MAKEINFO=makeinfo
832 echo "$ac_t""found" 1>&6
833 else
834 MAKEINFO="$missing_dir/missing makeinfo"
835 echo "$ac_t""missing" 1>&6
840 # Check whether --enable-shared or --disable-shared was given.
841 if test "${enable_shared+set}" = set; then
842 enableval="$enable_shared"
843 p=${PACKAGE-default}
844 case "$enableval" in
845 yes) enable_shared=yes ;;
846 no) enable_shared=no ;;
848 enable_shared=no
849 # Look at the argument we got. We use all the common list separators.
850 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
851 for pkg in $enableval; do
852 if test "X$pkg" = "X$p"; then
853 enable_shared=yes
855 done
856 IFS="$ac_save_ifs"
858 esac
859 else
860 enable_shared=yes
863 # Check whether --enable-static or --disable-static was given.
864 if test "${enable_static+set}" = set; then
865 enableval="$enable_static"
866 p=${PACKAGE-default}
867 case "$enableval" in
868 yes) enable_static=yes ;;
869 no) enable_static=no ;;
871 enable_static=no
872 # Look at the argument we got. We use all the common list separators.
873 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
874 for pkg in $enableval; do
875 if test "X$pkg" = "X$p"; then
876 enable_static=yes
878 done
879 IFS="$ac_save_ifs"
881 esac
882 else
883 enable_static=yes
886 # Check whether --enable-fast-install or --disable-fast-install was given.
887 if test "${enable_fast_install+set}" = set; then
888 enableval="$enable_fast_install"
889 p=${PACKAGE-default}
890 case "$enableval" in
891 yes) enable_fast_install=yes ;;
892 no) enable_fast_install=no ;;
894 enable_fast_install=no
895 # Look at the argument we got. We use all the common list separators.
896 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
897 for pkg in $enableval; do
898 if test "X$pkg" = "X$p"; then
899 enable_fast_install=yes
901 done
902 IFS="$ac_save_ifs"
904 esac
905 else
906 enable_fast_install=yes
910 # Make sure we can run config.sub.
911 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
912 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
915 echo $ac_n "checking host system type""... $ac_c" 1>&6
916 echo "configure:917: checking host system type" >&5
918 host_alias=$host
919 case "$host_alias" in
920 NONE)
921 case $nonopt in
922 NONE)
923 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
924 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
925 fi ;;
926 *) host_alias=$nonopt ;;
927 esac ;;
928 esac
930 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
931 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
932 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
933 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
934 echo "$ac_t""$host" 1>&6
936 echo $ac_n "checking build system type""... $ac_c" 1>&6
937 echo "configure:938: checking build system type" >&5
939 build_alias=$build
940 case "$build_alias" in
941 NONE)
942 case $nonopt in
943 NONE) build_alias=$host_alias ;;
944 *) build_alias=$nonopt ;;
945 esac ;;
946 esac
948 build=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $build_alias`
949 build_cpu=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
950 build_vendor=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
951 build_os=`echo $build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
952 echo "$ac_t""$build" 1>&6
954 # Extract the first word of "ranlib", so it can be a program name with args.
955 set dummy ranlib; ac_word=$2
956 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
957 echo "configure:958: checking for $ac_word" >&5
958 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
959 echo $ac_n "(cached) $ac_c" 1>&6
960 else
961 if test -n "$RANLIB"; then
962 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
963 else
964 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
965 ac_dummy="$PATH"
966 for ac_dir in $ac_dummy; do
967 test -z "$ac_dir" && ac_dir=.
968 if test -f $ac_dir/$ac_word; then
969 ac_cv_prog_RANLIB="ranlib"
970 break
972 done
973 IFS="$ac_save_ifs"
974 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
977 RANLIB="$ac_cv_prog_RANLIB"
978 if test -n "$RANLIB"; then
979 echo "$ac_t""$RANLIB" 1>&6
980 else
981 echo "$ac_t""no" 1>&6
984 # Extract the first word of "gcc", so it can be a program name with args.
985 set dummy gcc; ac_word=$2
986 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
987 echo "configure:988: checking for $ac_word" >&5
988 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
989 echo $ac_n "(cached) $ac_c" 1>&6
990 else
991 if test -n "$CC"; then
992 ac_cv_prog_CC="$CC" # Let the user override the test.
993 else
994 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
995 ac_dummy="$PATH"
996 for ac_dir in $ac_dummy; do
997 test -z "$ac_dir" && ac_dir=.
998 if test -f $ac_dir/$ac_word; then
999 ac_cv_prog_CC="gcc"
1000 break
1002 done
1003 IFS="$ac_save_ifs"
1006 CC="$ac_cv_prog_CC"
1007 if test -n "$CC"; then
1008 echo "$ac_t""$CC" 1>&6
1009 else
1010 echo "$ac_t""no" 1>&6
1013 if test -z "$CC"; then
1014 # Extract the first word of "cc", so it can be a program name with args.
1015 set dummy cc; ac_word=$2
1016 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1017 echo "configure:1018: checking for $ac_word" >&5
1018 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1019 echo $ac_n "(cached) $ac_c" 1>&6
1020 else
1021 if test -n "$CC"; then
1022 ac_cv_prog_CC="$CC" # Let the user override the test.
1023 else
1024 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1025 ac_prog_rejected=no
1026 ac_dummy="$PATH"
1027 for ac_dir in $ac_dummy; do
1028 test -z "$ac_dir" && ac_dir=.
1029 if test -f $ac_dir/$ac_word; then
1030 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1031 ac_prog_rejected=yes
1032 continue
1034 ac_cv_prog_CC="cc"
1035 break
1037 done
1038 IFS="$ac_save_ifs"
1039 if test $ac_prog_rejected = yes; then
1040 # We found a bogon in the path, so make sure we never use it.
1041 set dummy $ac_cv_prog_CC
1042 shift
1043 if test $# -gt 0; then
1044 # We chose a different compiler from the bogus one.
1045 # However, it has the same basename, so the bogon will be chosen
1046 # first if we set CC to just the basename; use the full file name.
1047 shift
1048 set dummy "$ac_dir/$ac_word" "$@"
1049 shift
1050 ac_cv_prog_CC="$@"
1055 CC="$ac_cv_prog_CC"
1056 if test -n "$CC"; then
1057 echo "$ac_t""$CC" 1>&6
1058 else
1059 echo "$ac_t""no" 1>&6
1062 if test -z "$CC"; then
1063 case "`uname -s`" in
1064 *win32* | *WIN32*)
1065 # Extract the first word of "cl", so it can be a program name with args.
1066 set dummy cl; ac_word=$2
1067 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1068 echo "configure:1069: checking for $ac_word" >&5
1069 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1070 echo $ac_n "(cached) $ac_c" 1>&6
1071 else
1072 if test -n "$CC"; then
1073 ac_cv_prog_CC="$CC" # Let the user override the test.
1074 else
1075 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1076 ac_dummy="$PATH"
1077 for ac_dir in $ac_dummy; do
1078 test -z "$ac_dir" && ac_dir=.
1079 if test -f $ac_dir/$ac_word; then
1080 ac_cv_prog_CC="cl"
1081 break
1083 done
1084 IFS="$ac_save_ifs"
1087 CC="$ac_cv_prog_CC"
1088 if test -n "$CC"; then
1089 echo "$ac_t""$CC" 1>&6
1090 else
1091 echo "$ac_t""no" 1>&6
1094 esac
1096 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1099 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1100 echo "configure:1101: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1102 ac_ext=c
1103 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1104 ac_cpp='$CPP $CPPFLAGS'
1105 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1106 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1107 cross_compiling=$ac_cv_prog_cc_cross
1109 cat > conftest.$ac_ext << EOF
1111 #line 1112 "configure"
1112 #include "confdefs.h"
1114 main(){return(0);}
1116 if { (eval echo configure:1117: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1117 ac_cv_prog_cc_works=yes
1118 # If we can't run a trivial program, we are probably using a cross compiler.
1119 if (./conftest; exit) 2>/dev/null; then
1120 ac_cv_prog_cc_cross=no
1121 else
1122 ac_cv_prog_cc_cross=yes
1124 else
1125 echo "configure: failed program was:" >&5
1126 cat conftest.$ac_ext >&5
1127 ac_cv_prog_cc_works=no
1129 rm -fr conftest*
1130 ac_ext=c
1131 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1132 ac_cpp='$CPP $CPPFLAGS'
1133 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1134 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1135 cross_compiling=$ac_cv_prog_cc_cross
1137 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1138 if test $ac_cv_prog_cc_works = no; then
1139 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1141 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1142 echo "configure:1143: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1143 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1144 cross_compiling=$ac_cv_prog_cc_cross
1146 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1147 echo "configure:1148: checking whether we are using GNU C" >&5
1148 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1149 echo $ac_n "(cached) $ac_c" 1>&6
1150 else
1151 cat > conftest.c <<EOF
1152 #ifdef __GNUC__
1153 yes;
1154 #endif
1156 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1157: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1157 ac_cv_prog_gcc=yes
1158 else
1159 ac_cv_prog_gcc=no
1163 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1165 if test $ac_cv_prog_gcc = yes; then
1166 GCC=yes
1167 else
1168 GCC=
1171 ac_test_CFLAGS="${CFLAGS+set}"
1172 ac_save_CFLAGS="$CFLAGS"
1173 CFLAGS=
1174 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1175 echo "configure:1176: checking whether ${CC-cc} accepts -g" >&5
1176 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1177 echo $ac_n "(cached) $ac_c" 1>&6
1178 else
1179 echo 'void f(){}' > conftest.c
1180 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1181 ac_cv_prog_cc_g=yes
1182 else
1183 ac_cv_prog_cc_g=no
1185 rm -f conftest*
1189 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1190 if test "$ac_test_CFLAGS" = set; then
1191 CFLAGS="$ac_save_CFLAGS"
1192 elif test $ac_cv_prog_cc_g = yes; then
1193 if test "$GCC" = yes; then
1194 CFLAGS="-g -O2"
1195 else
1196 CFLAGS="-g"
1198 else
1199 if test "$GCC" = yes; then
1200 CFLAGS="-O2"
1201 else
1202 CFLAGS=
1206 # Check whether --with-gnu-ld or --without-gnu-ld was given.
1207 if test "${with_gnu_ld+set}" = set; then
1208 withval="$with_gnu_ld"
1209 test "$withval" = no || with_gnu_ld=yes
1210 else
1211 with_gnu_ld=no
1214 ac_prog=ld
1215 if test "$ac_cv_prog_gcc" = yes; then
1216 # Check if gcc -print-prog-name=ld gives a path.
1217 echo $ac_n "checking for ld used by GCC""... $ac_c" 1>&6
1218 echo "configure:1219: checking for ld used by GCC" >&5
1219 ac_prog=`($CC -print-prog-name=ld) 2>&5`
1220 case "$ac_prog" in
1221 # Accept absolute paths.
1222 [\\/]* | [A-Za-z]:[\\/]*)
1223 re_direlt='/[^/][^/]*/\.\./'
1224 # Canonicalize the path of ld
1225 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
1226 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
1227 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
1228 done
1229 test -z "$LD" && LD="$ac_prog"
1232 # If it fails, then pretend we aren't using GCC.
1233 ac_prog=ld
1236 # If it is relative, then search for the first ld in PATH.
1237 with_gnu_ld=unknown
1239 esac
1240 elif test "$with_gnu_ld" = yes; then
1241 echo $ac_n "checking for GNU ld""... $ac_c" 1>&6
1242 echo "configure:1243: checking for GNU ld" >&5
1243 else
1244 echo $ac_n "checking for non-GNU ld""... $ac_c" 1>&6
1245 echo "configure:1246: checking for non-GNU ld" >&5
1247 if eval "test \"`echo '$''{'ac_cv_path_LD'+set}'`\" = set"; then
1248 echo $ac_n "(cached) $ac_c" 1>&6
1249 else
1250 if test -z "$LD"; then
1251 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1252 for ac_dir in $PATH; do
1253 test -z "$ac_dir" && ac_dir=.
1254 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
1255 ac_cv_path_LD="$ac_dir/$ac_prog"
1256 # Check to see if the program is GNU ld. I'd rather use --version,
1257 # but apparently some GNU ld's only accept -v.
1258 # Break only if it was the GNU/non-GNU ld that we prefer.
1259 if "$ac_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
1260 test "$with_gnu_ld" != no && break
1261 else
1262 test "$with_gnu_ld" != yes && break
1265 done
1266 IFS="$ac_save_ifs"
1267 else
1268 ac_cv_path_LD="$LD" # Let the user override the test with a path.
1272 LD="$ac_cv_path_LD"
1273 if test -n "$LD"; then
1274 echo "$ac_t""$LD" 1>&6
1275 else
1276 echo "$ac_t""no" 1>&6
1278 test -z "$LD" && { echo "configure: error: no acceptable ld found in \$PATH" 1>&2; exit 1; }
1279 echo $ac_n "checking if the linker ($LD) is GNU ld""... $ac_c" 1>&6
1280 echo "configure:1281: checking if the linker ($LD) is GNU ld" >&5
1281 if eval "test \"`echo '$''{'ac_cv_prog_gnu_ld'+set}'`\" = set"; then
1282 echo $ac_n "(cached) $ac_c" 1>&6
1283 else
1284 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
1285 if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
1286 ac_cv_prog_gnu_ld=yes
1287 else
1288 ac_cv_prog_gnu_ld=no
1292 echo "$ac_t""$ac_cv_prog_gnu_ld" 1>&6
1295 echo $ac_n "checking for BSD-compatible nm""... $ac_c" 1>&6
1296 echo "configure:1297: checking for BSD-compatible nm" >&5
1297 if eval "test \"`echo '$''{'ac_cv_path_NM'+set}'`\" = set"; then
1298 echo $ac_n "(cached) $ac_c" 1>&6
1299 else
1300 if test -n "$NM"; then
1301 # Let the user override the test.
1302 ac_cv_path_NM="$NM"
1303 else
1304 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
1305 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
1306 test -z "$ac_dir" && ac_dir=.
1307 if test -f $ac_dir/nm || test -f $ac_dir/nm$ac_exeext ; then
1308 # Check to see if the nm accepts a BSD-compat flag.
1309 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
1310 # nm: unknown option "B" ignored
1311 if ($ac_dir/nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1312 ac_cv_path_NM="$ac_dir/nm -B"
1313 break
1314 elif ($ac_dir/nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
1315 ac_cv_path_NM="$ac_dir/nm -p"
1316 break
1317 else
1318 ac_cv_path_NM=${ac_cv_path_NM="$ac_dir/nm"} # keep the first match, but
1319 continue # so that we can try to find one that supports BSD flags
1322 done
1323 IFS="$ac_save_ifs"
1324 test -z "$ac_cv_path_NM" && ac_cv_path_NM=nm
1328 NM="$ac_cv_path_NM"
1329 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 case "$target" in
1354 NONE) lt_target="$host" ;;
1355 *) lt_target="$target" ;;
1356 esac
1358 # Check for any special flags to pass to ltconfig.
1359 libtool_flags="--cache-file=$cache_file"
1360 test "$enable_shared" = no && libtool_flags="$libtool_flags --disable-shared"
1361 test "$enable_static" = no && libtool_flags="$libtool_flags --disable-static"
1362 test "$enable_fast_install" = no && libtool_flags="$libtool_flags --disable-fast-install"
1363 test "$ac_cv_prog_gcc" = yes && libtool_flags="$libtool_flags --with-gcc"
1364 test "$ac_cv_prog_gnu_ld" = yes && libtool_flags="$libtool_flags --with-gnu-ld"
1367 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
1368 if test "${enable_libtool_lock+set}" = set; then
1369 enableval="$enable_libtool_lock"
1373 test "x$enable_libtool_lock" = xno && libtool_flags="$libtool_flags --disable-lock"
1374 test x"$silent" = xyes && libtool_flags="$libtool_flags --silent"
1376 # Some flags need to be propagated to the compiler or linker for good
1377 # libtool support.
1378 case "$lt_target" in
1379 *-*-irix6*)
1380 # Find out which ABI we are using.
1381 echo '#line 1382 "configure"' > conftest.$ac_ext
1382 if { (eval echo configure:1383: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1383 case "`/usr/bin/file conftest.o`" in
1384 *32-bit*)
1385 LD="${LD-ld} -32"
1387 *N32*)
1388 LD="${LD-ld} -n32"
1390 *64-bit*)
1391 LD="${LD-ld} -64"
1393 esac
1395 rm -rf conftest*
1398 *-*-sco3.2v5*)
1399 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
1400 SAVE_CFLAGS="$CFLAGS"
1401 CFLAGS="$CFLAGS -belf"
1402 echo $ac_n "checking whether the C compiler needs -belf""... $ac_c" 1>&6
1403 echo "configure:1404: checking whether the C compiler needs -belf" >&5
1404 if eval "test \"`echo '$''{'lt_cv_cc_needs_belf'+set}'`\" = set"; then
1405 echo $ac_n "(cached) $ac_c" 1>&6
1406 else
1407 cat > conftest.$ac_ext <<EOF
1408 #line 1409 "configure"
1409 #include "confdefs.h"
1411 int main() {
1413 ; return 0; }
1415 if { (eval echo configure:1416: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1416 rm -rf conftest*
1417 lt_cv_cc_needs_belf=yes
1418 else
1419 echo "configure: failed program was:" >&5
1420 cat conftest.$ac_ext >&5
1421 rm -rf conftest*
1422 lt_cv_cc_needs_belf=no
1424 rm -f conftest*
1427 echo "$ac_t""$lt_cv_cc_needs_belf" 1>&6
1428 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
1429 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
1430 CFLAGS="$SAVE_CFLAGS"
1435 esac
1438 # Save cache, so that ltconfig can load it
1439 cat > confcache <<\EOF
1440 # This file is a shell script that caches the results of configure
1441 # tests run on this system so they can be shared between configure
1442 # scripts and configure runs. It is not useful on other systems.
1443 # If it contains results you don't want to keep, you may remove or edit it.
1445 # By default, configure uses ./config.cache as the cache file,
1446 # creating it if it does not exist already. You can give configure
1447 # the --cache-file=FILE option to use a different cache file; that is
1448 # what configure does when it calls configure scripts in
1449 # subdirectories, so they share the cache.
1450 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1451 # config.status only pays attention to the cache file if you give it the
1452 # --recheck option to rerun configure.
1455 # The following way of writing the cache mishandles newlines in values,
1456 # but we know of no workaround that is simple, portable, and efficient.
1457 # So, don't put newlines in cache variables' values.
1458 # Ultrix sh set writes to stderr and can't be redirected directly,
1459 # and sets the high bit in the cache file unless we assign to the vars.
1460 (set) 2>&1 |
1461 case `(ac_space=' '; set | grep ac_space) 2>&1` in
1462 *ac_space=\ *)
1463 # `set' does not quote correctly, so add quotes (double-quote substitution
1464 # turns \\\\ into \\, and sed turns \\ into \).
1465 sed -n \
1466 -e "s/'/'\\\\''/g" \
1467 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1470 # `set' quotes correctly as required by POSIX, so do not add quotes.
1471 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1473 esac >> confcache
1474 if cmp -s $cache_file confcache; then
1476 else
1477 if test -w $cache_file; then
1478 echo "updating cache $cache_file"
1479 cat confcache > $cache_file
1480 else
1481 echo "not updating unwritable cache $cache_file"
1484 rm -f confcache
1487 # Actually configure libtool. ac_aux_dir is where install-sh is found.
1488 CC="$CC" CFLAGS="$CFLAGS" CPPFLAGS="$CPPFLAGS" \
1489 LD="$LD" LDFLAGS="$LDFLAGS" LIBS="$LIBS" \
1490 LN_S="$LN_S" NM="$NM" RANLIB="$RANLIB" \
1491 DLLTOOL="$DLLTOOL" AS="$AS" OBJDUMP="$OBJDUMP" \
1492 ${CONFIG_SHELL-/bin/sh} $ac_aux_dir/ltconfig --no-reexec \
1493 $libtool_flags --no-verify $ac_aux_dir/ltmain.sh $lt_target \
1494 || { echo "configure: error: libtool configure failed" 1>&2; exit 1; }
1496 # Reload cache, that may have been modified by ltconfig
1497 if test -r "$cache_file"; then
1498 echo "loading cache $cache_file"
1499 . $cache_file
1500 else
1501 echo "creating cache $cache_file"
1502 > $cache_file
1506 # This can be used to rebuild libtool when needed
1507 LIBTOOL_DEPS="$ac_aux_dir/ltconfig $ac_aux_dir/ltmain.sh"
1509 # Always use our own libtool.
1510 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
1512 # Redirect the config.log output again, so that the ltconfig log is not
1513 # clobbered by the next message.
1514 exec 5>>./config.log
1517 # by Marcelo Magallon <mmagallo@efis.ucr.ac.cr>
1518 # Turn around -rpath problem with libtool 1.0c
1519 # This define should be improbable enough to not conflict with anything
1520 case ${host} in
1521 *-pc-linux-gnu)
1522 echo "$ac_t""Fixing libtool for -rpath problems." 1>&6
1523 sed < libtool > libtool-2 \
1524 's/^hardcode_libdir_flag_spec.*$/hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "/'
1525 mv libtool-2 libtool
1526 chmod 755 libtool
1528 esac
1537 # Make sure we can run config.sub.
1538 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
1539 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
1542 echo $ac_n "checking host system type""... $ac_c" 1>&6
1543 echo "configure:1544: checking host system type" >&5
1545 host_alias=$host
1546 case "$host_alias" in
1547 NONE)
1548 case $nonopt in
1549 NONE)
1550 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
1551 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
1552 fi ;;
1553 *) host_alias=$nonopt ;;
1554 esac ;;
1555 esac
1557 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
1558 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1559 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1560 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1561 echo "$ac_t""$host" 1>&6
1565 echo $ac_n "checking for POSIXized ISC""... $ac_c" 1>&6
1566 echo "configure:1567: checking for POSIXized ISC" >&5
1567 if test -d /etc/conf/kconfig.d &&
1568 grep _POSIX_VERSION /usr/include/sys/unistd.h >/dev/null 2>&1
1569 then
1570 echo "$ac_t""yes" 1>&6
1571 ISC=yes # If later tests want to check for ISC.
1572 cat >> confdefs.h <<\EOF
1573 #define _POSIX_SOURCE 1
1576 if test "$GCC" = yes; then
1577 CC="$CC -posix"
1578 else
1579 CC="$CC -Xp"
1581 else
1582 echo "$ac_t""no" 1>&6
1583 ISC=
1586 # Extract the first word of "gcc", so it can be a program name with args.
1587 set dummy gcc; ac_word=$2
1588 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1589 echo "configure:1590: checking for $ac_word" >&5
1590 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1591 echo $ac_n "(cached) $ac_c" 1>&6
1592 else
1593 if test -n "$CC"; then
1594 ac_cv_prog_CC="$CC" # Let the user override the test.
1595 else
1596 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1597 ac_dummy="$PATH"
1598 for ac_dir in $ac_dummy; do
1599 test -z "$ac_dir" && ac_dir=.
1600 if test -f $ac_dir/$ac_word; then
1601 ac_cv_prog_CC="gcc"
1602 break
1604 done
1605 IFS="$ac_save_ifs"
1608 CC="$ac_cv_prog_CC"
1609 if test -n "$CC"; then
1610 echo "$ac_t""$CC" 1>&6
1611 else
1612 echo "$ac_t""no" 1>&6
1615 if test -z "$CC"; then
1616 # Extract the first word of "cc", so it can be a program name with args.
1617 set dummy cc; ac_word=$2
1618 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1619 echo "configure:1620: checking for $ac_word" >&5
1620 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1621 echo $ac_n "(cached) $ac_c" 1>&6
1622 else
1623 if test -n "$CC"; then
1624 ac_cv_prog_CC="$CC" # Let the user override the test.
1625 else
1626 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1627 ac_prog_rejected=no
1628 ac_dummy="$PATH"
1629 for ac_dir in $ac_dummy; do
1630 test -z "$ac_dir" && ac_dir=.
1631 if test -f $ac_dir/$ac_word; then
1632 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1633 ac_prog_rejected=yes
1634 continue
1636 ac_cv_prog_CC="cc"
1637 break
1639 done
1640 IFS="$ac_save_ifs"
1641 if test $ac_prog_rejected = yes; then
1642 # We found a bogon in the path, so make sure we never use it.
1643 set dummy $ac_cv_prog_CC
1644 shift
1645 if test $# -gt 0; then
1646 # We chose a different compiler from the bogus one.
1647 # However, it has the same basename, so the bogon will be chosen
1648 # first if we set CC to just the basename; use the full file name.
1649 shift
1650 set dummy "$ac_dir/$ac_word" "$@"
1651 shift
1652 ac_cv_prog_CC="$@"
1657 CC="$ac_cv_prog_CC"
1658 if test -n "$CC"; then
1659 echo "$ac_t""$CC" 1>&6
1660 else
1661 echo "$ac_t""no" 1>&6
1664 if test -z "$CC"; then
1665 case "`uname -s`" in
1666 *win32* | *WIN32*)
1667 # Extract the first word of "cl", so it can be a program name with args.
1668 set dummy cl; ac_word=$2
1669 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1670 echo "configure:1671: checking for $ac_word" >&5
1671 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1672 echo $ac_n "(cached) $ac_c" 1>&6
1673 else
1674 if test -n "$CC"; then
1675 ac_cv_prog_CC="$CC" # Let the user override the test.
1676 else
1677 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1678 ac_dummy="$PATH"
1679 for ac_dir in $ac_dummy; do
1680 test -z "$ac_dir" && ac_dir=.
1681 if test -f $ac_dir/$ac_word; then
1682 ac_cv_prog_CC="cl"
1683 break
1685 done
1686 IFS="$ac_save_ifs"
1689 CC="$ac_cv_prog_CC"
1690 if test -n "$CC"; then
1691 echo "$ac_t""$CC" 1>&6
1692 else
1693 echo "$ac_t""no" 1>&6
1696 esac
1698 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1701 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1702 echo "configure:1703: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1704 ac_ext=c
1705 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1706 ac_cpp='$CPP $CPPFLAGS'
1707 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1708 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1709 cross_compiling=$ac_cv_prog_cc_cross
1711 cat > conftest.$ac_ext << EOF
1713 #line 1714 "configure"
1714 #include "confdefs.h"
1716 main(){return(0);}
1718 if { (eval echo configure:1719: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1719 ac_cv_prog_cc_works=yes
1720 # If we can't run a trivial program, we are probably using a cross compiler.
1721 if (./conftest; exit) 2>/dev/null; then
1722 ac_cv_prog_cc_cross=no
1723 else
1724 ac_cv_prog_cc_cross=yes
1726 else
1727 echo "configure: failed program was:" >&5
1728 cat conftest.$ac_ext >&5
1729 ac_cv_prog_cc_works=no
1731 rm -fr conftest*
1732 ac_ext=c
1733 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1734 ac_cpp='$CPP $CPPFLAGS'
1735 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1736 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1737 cross_compiling=$ac_cv_prog_cc_cross
1739 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1740 if test $ac_cv_prog_cc_works = no; then
1741 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1743 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1745 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1746 cross_compiling=$ac_cv_prog_cc_cross
1748 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1749 echo "configure:1750: checking whether we are using GNU C" >&5
1750 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1751 echo $ac_n "(cached) $ac_c" 1>&6
1752 else
1753 cat > conftest.c <<EOF
1754 #ifdef __GNUC__
1755 yes;
1756 #endif
1758 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1759: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1759 ac_cv_prog_gcc=yes
1760 else
1761 ac_cv_prog_gcc=no
1765 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1767 if test $ac_cv_prog_gcc = yes; then
1768 GCC=yes
1769 else
1770 GCC=
1773 ac_test_CFLAGS="${CFLAGS+set}"
1774 ac_save_CFLAGS="$CFLAGS"
1775 CFLAGS=
1776 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1777 echo "configure:1778: checking whether ${CC-cc} accepts -g" >&5
1778 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1779 echo $ac_n "(cached) $ac_c" 1>&6
1780 else
1781 echo 'void f(){}' > conftest.c
1782 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1783 ac_cv_prog_cc_g=yes
1784 else
1785 ac_cv_prog_cc_g=no
1787 rm -f conftest*
1791 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1792 if test "$ac_test_CFLAGS" = set; then
1793 CFLAGS="$ac_save_CFLAGS"
1794 elif test $ac_cv_prog_cc_g = yes; then
1795 if test "$GCC" = yes; then
1796 CFLAGS="-g -O2"
1797 else
1798 CFLAGS="-g"
1800 else
1801 if test "$GCC" = yes; then
1802 CFLAGS="-O2"
1803 else
1804 CFLAGS=
1808 #AC_PROG_RANLIB
1809 echo $ac_n "checking whether ln -s works""... $ac_c" 1>&6
1810 echo "configure:1811: checking whether ln -s works" >&5
1811 if eval "test \"`echo '$''{'ac_cv_prog_LN_S'+set}'`\" = set"; then
1812 echo $ac_n "(cached) $ac_c" 1>&6
1813 else
1814 rm -f conftestdata
1815 if ln -s X conftestdata 2>/dev/null
1816 then
1817 rm -f conftestdata
1818 ac_cv_prog_LN_S="ln -s"
1819 else
1820 ac_cv_prog_LN_S=ln
1823 LN_S="$ac_cv_prog_LN_S"
1824 if test "$ac_cv_prog_LN_S" = "ln -s"; then
1825 echo "$ac_t""yes" 1>&6
1826 else
1827 echo "$ac_t""no" 1>&6
1830 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1831 echo "configure:1832: checking how to run the C preprocessor" >&5
1832 # On Suns, sometimes $CPP names a directory.
1833 if test -n "$CPP" && test -d "$CPP"; then
1834 CPP=
1836 if test -z "$CPP"; then
1837 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1838 echo $ac_n "(cached) $ac_c" 1>&6
1839 else
1840 # This must be in double quotes, not single quotes, because CPP may get
1841 # substituted into the Makefile and "${CC-cc}" will confuse make.
1842 CPP="${CC-cc} -E"
1843 # On the NeXT, cc -E runs the code through the compiler's parser,
1844 # not just through cpp.
1845 cat > conftest.$ac_ext <<EOF
1846 #line 1847 "configure"
1847 #include "confdefs.h"
1848 #include <assert.h>
1849 Syntax Error
1851 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1852 { (eval echo configure:1853: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1853 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1854 if test -z "$ac_err"; then
1856 else
1857 echo "$ac_err" >&5
1858 echo "configure: failed program was:" >&5
1859 cat conftest.$ac_ext >&5
1860 rm -rf conftest*
1861 CPP="${CC-cc} -E -traditional-cpp"
1862 cat > conftest.$ac_ext <<EOF
1863 #line 1864 "configure"
1864 #include "confdefs.h"
1865 #include <assert.h>
1866 Syntax Error
1868 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1869 { (eval echo configure:1870: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1870 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1871 if test -z "$ac_err"; then
1873 else
1874 echo "$ac_err" >&5
1875 echo "configure: failed program was:" >&5
1876 cat conftest.$ac_ext >&5
1877 rm -rf conftest*
1878 CPP="${CC-cc} -nologo -E"
1879 cat > conftest.$ac_ext <<EOF
1880 #line 1881 "configure"
1881 #include "confdefs.h"
1882 #include <assert.h>
1883 Syntax Error
1885 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1886 { (eval echo configure:1887: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1887 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1888 if test -z "$ac_err"; then
1890 else
1891 echo "$ac_err" >&5
1892 echo "configure: failed program was:" >&5
1893 cat conftest.$ac_ext >&5
1894 rm -rf conftest*
1895 CPP=/lib/cpp
1897 rm -f conftest*
1899 rm -f conftest*
1901 rm -f conftest*
1902 ac_cv_prog_CPP="$CPP"
1904 CPP="$ac_cv_prog_CPP"
1905 else
1906 ac_cv_prog_CPP="$CPP"
1908 echo "$ac_t""$CPP" 1>&6
1910 if test $ac_cv_prog_gcc = yes; then
1911 echo $ac_n "checking whether ${CC-cc} needs -traditional""... $ac_c" 1>&6
1912 echo "configure:1913: checking whether ${CC-cc} needs -traditional" >&5
1913 if eval "test \"`echo '$''{'ac_cv_prog_gcc_traditional'+set}'`\" = set"; then
1914 echo $ac_n "(cached) $ac_c" 1>&6
1915 else
1916 ac_pattern="Autoconf.*'x'"
1917 cat > conftest.$ac_ext <<EOF
1918 #line 1919 "configure"
1919 #include "confdefs.h"
1920 #include <sgtty.h>
1921 Autoconf TIOCGETP
1923 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1924 egrep "$ac_pattern" >/dev/null 2>&1; then
1925 rm -rf conftest*
1926 ac_cv_prog_gcc_traditional=yes
1927 else
1928 rm -rf conftest*
1929 ac_cv_prog_gcc_traditional=no
1931 rm -f conftest*
1934 if test $ac_cv_prog_gcc_traditional = no; then
1935 cat > conftest.$ac_ext <<EOF
1936 #line 1937 "configure"
1937 #include "confdefs.h"
1938 #include <termio.h>
1939 Autoconf TCGETA
1941 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1942 egrep "$ac_pattern" >/dev/null 2>&1; then
1943 rm -rf conftest*
1944 ac_cv_prog_gcc_traditional=yes
1946 rm -f conftest*
1951 echo "$ac_t""$ac_cv_prog_gcc_traditional" 1>&6
1952 if test $ac_cv_prog_gcc_traditional = yes; then
1953 CC="$CC -traditional"
1960 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1961 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1964 _bindir=`eval echo $bindir`
1965 _bindir=`eval echo $_bindir`
1967 _libdir=`eval echo $libdir`
1968 _libdir=`eval echo $_libdir`
1969 lib_search_path="-L$_libdir"
1971 inc_search_path=`eval echo $includedir`
1972 inc_search_path="-I`eval echo $inc_search_path`"
1978 # Check whether --with-libs-from or --without-libs-from was given.
1979 if test "${with_libs_from+set}" = set; then
1980 withval="$with_libs_from"
1981 lib_search_path="$withval $lib_search_path"
1985 # Check whether --with-incs-from or --without-incs-from was given.
1986 if test "${with_incs_from+set}" = set; then
1987 withval="$with_incs_from"
1988 inc_search_path="$withval $inc_search_path"
1994 echo $ac_n "checking for vprintf""... $ac_c" 1>&6
1995 echo "configure:1996: checking for vprintf" >&5
1996 if eval "test \"`echo '$''{'ac_cv_func_vprintf'+set}'`\" = set"; then
1997 echo $ac_n "(cached) $ac_c" 1>&6
1998 else
1999 cat > conftest.$ac_ext <<EOF
2000 #line 2001 "configure"
2001 #include "confdefs.h"
2002 /* System header to define __stub macros and hopefully few prototypes,
2003 which can conflict with char vprintf(); below. */
2004 #include <assert.h>
2005 /* Override any gcc2 internal prototype to avoid an error. */
2006 /* We use char because int might match the return type of a gcc2
2007 builtin and then its argument prototype would still apply. */
2008 char vprintf();
2010 int main() {
2012 /* The GNU C library defines this for functions which it implements
2013 to always fail with ENOSYS. Some functions are actually named
2014 something starting with __ and the normal name is an alias. */
2015 #if defined (__stub_vprintf) || defined (__stub___vprintf)
2016 choke me
2017 #else
2018 vprintf();
2019 #endif
2021 ; return 0; }
2023 if { (eval echo configure:2024: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2024 rm -rf conftest*
2025 eval "ac_cv_func_vprintf=yes"
2026 else
2027 echo "configure: failed program was:" >&5
2028 cat conftest.$ac_ext >&5
2029 rm -rf conftest*
2030 eval "ac_cv_func_vprintf=no"
2032 rm -f conftest*
2035 if eval "test \"`echo '$ac_cv_func_'vprintf`\" = yes"; then
2036 echo "$ac_t""yes" 1>&6
2037 cat >> confdefs.h <<\EOF
2038 #define HAVE_VPRINTF 1
2041 else
2042 echo "$ac_t""no" 1>&6
2045 if test "$ac_cv_func_vprintf" != yes; then
2046 echo $ac_n "checking for _doprnt""... $ac_c" 1>&6
2047 echo "configure:2048: checking for _doprnt" >&5
2048 if eval "test \"`echo '$''{'ac_cv_func__doprnt'+set}'`\" = set"; then
2049 echo $ac_n "(cached) $ac_c" 1>&6
2050 else
2051 cat > conftest.$ac_ext <<EOF
2052 #line 2053 "configure"
2053 #include "confdefs.h"
2054 /* System header to define __stub macros and hopefully few prototypes,
2055 which can conflict with char _doprnt(); below. */
2056 #include <assert.h>
2057 /* Override any gcc2 internal prototype to avoid an error. */
2058 /* We use char because int might match the return type of a gcc2
2059 builtin and then its argument prototype would still apply. */
2060 char _doprnt();
2062 int main() {
2064 /* The GNU C library defines this for functions which it implements
2065 to always fail with ENOSYS. Some functions are actually named
2066 something starting with __ and the normal name is an alias. */
2067 #if defined (__stub__doprnt) || defined (__stub____doprnt)
2068 choke me
2069 #else
2070 _doprnt();
2071 #endif
2073 ; return 0; }
2075 if { (eval echo configure:2076: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2076 rm -rf conftest*
2077 eval "ac_cv_func__doprnt=yes"
2078 else
2079 echo "configure: failed program was:" >&5
2080 cat conftest.$ac_ext >&5
2081 rm -rf conftest*
2082 eval "ac_cv_func__doprnt=no"
2084 rm -f conftest*
2087 if eval "test \"`echo '$ac_cv_func_'_doprnt`\" = yes"; then
2088 echo "$ac_t""yes" 1>&6
2089 cat >> confdefs.h <<\EOF
2090 #define HAVE_DOPRNT 1
2093 else
2094 echo "$ac_t""no" 1>&6
2099 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2100 # for constant arguments. Useless!
2101 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2102 echo "configure:2103: checking for working alloca.h" >&5
2103 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2104 echo $ac_n "(cached) $ac_c" 1>&6
2105 else
2106 cat > conftest.$ac_ext <<EOF
2107 #line 2108 "configure"
2108 #include "confdefs.h"
2109 #include <alloca.h>
2110 int main() {
2111 void *p = alloca(2 * sizeof(int));
2112 ; return 0; }
2114 if { (eval echo configure:2115: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2115 rm -rf conftest*
2116 ac_cv_header_alloca_h=yes
2117 else
2118 echo "configure: failed program was:" >&5
2119 cat conftest.$ac_ext >&5
2120 rm -rf conftest*
2121 ac_cv_header_alloca_h=no
2123 rm -f conftest*
2126 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2127 if test $ac_cv_header_alloca_h = yes; then
2128 cat >> confdefs.h <<\EOF
2129 #define HAVE_ALLOCA_H 1
2134 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2135 echo "configure:2136: checking for alloca" >&5
2136 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2137 echo $ac_n "(cached) $ac_c" 1>&6
2138 else
2139 cat > conftest.$ac_ext <<EOF
2140 #line 2141 "configure"
2141 #include "confdefs.h"
2143 #ifdef __GNUC__
2144 # define alloca __builtin_alloca
2145 #else
2146 # ifdef _MSC_VER
2147 # include <malloc.h>
2148 # define alloca _alloca
2149 # else
2150 # if HAVE_ALLOCA_H
2151 # include <alloca.h>
2152 # else
2153 # ifdef _AIX
2154 #pragma alloca
2155 # else
2156 # ifndef alloca /* predefined by HP cc +Olibcalls */
2157 char *alloca ();
2158 # endif
2159 # endif
2160 # endif
2161 # endif
2162 #endif
2164 int main() {
2165 char *p = (char *) alloca(1);
2166 ; return 0; }
2168 if { (eval echo configure:2169: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2169 rm -rf conftest*
2170 ac_cv_func_alloca_works=yes
2171 else
2172 echo "configure: failed program was:" >&5
2173 cat conftest.$ac_ext >&5
2174 rm -rf conftest*
2175 ac_cv_func_alloca_works=no
2177 rm -f conftest*
2180 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2181 if test $ac_cv_func_alloca_works = yes; then
2182 cat >> confdefs.h <<\EOF
2183 #define HAVE_ALLOCA 1
2188 if test $ac_cv_func_alloca_works = no; then
2189 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2190 # that cause trouble. Some versions do not even contain alloca or
2191 # contain a buggy version. If you still want to use their alloca,
2192 # use ar to extract alloca.o from them instead of compiling alloca.c.
2193 ALLOCA=alloca.${ac_objext}
2194 cat >> confdefs.h <<\EOF
2195 #define C_ALLOCA 1
2199 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2200 echo "configure:2201: checking whether alloca needs Cray hooks" >&5
2201 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2202 echo $ac_n "(cached) $ac_c" 1>&6
2203 else
2204 cat > conftest.$ac_ext <<EOF
2205 #line 2206 "configure"
2206 #include "confdefs.h"
2207 #if defined(CRAY) && ! defined(CRAY2)
2208 webecray
2209 #else
2210 wenotbecray
2211 #endif
2214 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2215 egrep "webecray" >/dev/null 2>&1; then
2216 rm -rf conftest*
2217 ac_cv_os_cray=yes
2218 else
2219 rm -rf conftest*
2220 ac_cv_os_cray=no
2222 rm -f conftest*
2226 echo "$ac_t""$ac_cv_os_cray" 1>&6
2227 if test $ac_cv_os_cray = yes; then
2228 for ac_func in _getb67 GETB67 getb67; do
2229 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2230 echo "configure:2231: checking for $ac_func" >&5
2231 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2232 echo $ac_n "(cached) $ac_c" 1>&6
2233 else
2234 cat > conftest.$ac_ext <<EOF
2235 #line 2236 "configure"
2236 #include "confdefs.h"
2237 /* System header to define __stub macros and hopefully few prototypes,
2238 which can conflict with char $ac_func(); below. */
2239 #include <assert.h>
2240 /* Override any gcc2 internal prototype to avoid an error. */
2241 /* We use char because int might match the return type of a gcc2
2242 builtin and then its argument prototype would still apply. */
2243 char $ac_func();
2245 int main() {
2247 /* The GNU C library defines this for functions which it implements
2248 to always fail with ENOSYS. Some functions are actually named
2249 something starting with __ and the normal name is an alias. */
2250 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2251 choke me
2252 #else
2253 $ac_func();
2254 #endif
2256 ; return 0; }
2258 if { (eval echo configure:2259: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2259 rm -rf conftest*
2260 eval "ac_cv_func_$ac_func=yes"
2261 else
2262 echo "configure: failed program was:" >&5
2263 cat conftest.$ac_ext >&5
2264 rm -rf conftest*
2265 eval "ac_cv_func_$ac_func=no"
2267 rm -f conftest*
2270 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 cat >> confdefs.h <<EOF
2273 #define CRAY_STACKSEG_END $ac_func
2276 break
2277 else
2278 echo "$ac_t""no" 1>&6
2281 done
2284 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2285 echo "configure:2286: checking stack direction for C alloca" >&5
2286 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2287 echo $ac_n "(cached) $ac_c" 1>&6
2288 else
2289 if test "$cross_compiling" = yes; then
2290 ac_cv_c_stack_direction=0
2291 else
2292 cat > conftest.$ac_ext <<EOF
2293 #line 2294 "configure"
2294 #include "confdefs.h"
2295 find_stack_direction ()
2297 static char *addr = 0;
2298 auto char dummy;
2299 if (addr == 0)
2301 addr = &dummy;
2302 return find_stack_direction ();
2304 else
2305 return (&dummy > addr) ? 1 : -1;
2307 main ()
2309 exit (find_stack_direction() < 0);
2312 if { (eval echo configure:2313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2313 then
2314 ac_cv_c_stack_direction=1
2315 else
2316 echo "configure: failed program was:" >&5
2317 cat conftest.$ac_ext >&5
2318 rm -fr conftest*
2319 ac_cv_c_stack_direction=-1
2321 rm -fr conftest*
2326 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2327 cat >> confdefs.h <<EOF
2328 #define STACK_DIRECTION $ac_cv_c_stack_direction
2333 for ac_func in gethostname select poll strerror strncasecmp setpgid atexit
2335 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2336 echo "configure:2337: checking for $ac_func" >&5
2337 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2338 echo $ac_n "(cached) $ac_c" 1>&6
2339 else
2340 cat > conftest.$ac_ext <<EOF
2341 #line 2342 "configure"
2342 #include "confdefs.h"
2343 /* System header to define __stub macros and hopefully few prototypes,
2344 which can conflict with char $ac_func(); below. */
2345 #include <assert.h>
2346 /* Override any gcc2 internal prototype to avoid an error. */
2347 /* We use char because int might match the return type of a gcc2
2348 builtin and then its argument prototype would still apply. */
2349 char $ac_func();
2351 int main() {
2353 /* The GNU C library defines this for functions which it implements
2354 to always fail with ENOSYS. Some functions are actually named
2355 something starting with __ and the normal name is an alias. */
2356 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2357 choke me
2358 #else
2359 $ac_func();
2360 #endif
2362 ; return 0; }
2364 if { (eval echo configure:2365: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2365 rm -rf conftest*
2366 eval "ac_cv_func_$ac_func=yes"
2367 else
2368 echo "configure: failed program was:" >&5
2369 cat conftest.$ac_ext >&5
2370 rm -rf conftest*
2371 eval "ac_cv_func_$ac_func=no"
2373 rm -f conftest*
2376 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2377 echo "$ac_t""yes" 1>&6
2378 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2379 cat >> confdefs.h <<EOF
2380 #define $ac_tr_func 1
2383 else
2384 echo "$ac_t""no" 1>&6
2386 done
2391 DLLIBS=""
2393 echo $ac_n "checking for dlopen""... $ac_c" 1>&6
2394 echo "configure:2395: checking for dlopen" >&5
2395 if eval "test \"`echo '$''{'ac_cv_func_dlopen'+set}'`\" = set"; then
2396 echo $ac_n "(cached) $ac_c" 1>&6
2397 else
2398 cat > conftest.$ac_ext <<EOF
2399 #line 2400 "configure"
2400 #include "confdefs.h"
2401 /* System header to define __stub macros and hopefully few prototypes,
2402 which can conflict with char dlopen(); below. */
2403 #include <assert.h>
2404 /* Override any gcc2 internal prototype to avoid an error. */
2405 /* We use char because int might match the return type of a gcc2
2406 builtin and then its argument prototype would still apply. */
2407 char dlopen();
2409 int main() {
2411 /* The GNU C library defines this for functions which it implements
2412 to always fail with ENOSYS. Some functions are actually named
2413 something starting with __ and the normal name is an alias. */
2414 #if defined (__stub_dlopen) || defined (__stub___dlopen)
2415 choke me
2416 #else
2417 dlopen();
2418 #endif
2420 ; return 0; }
2422 if { (eval echo configure:2423: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2423 rm -rf conftest*
2424 eval "ac_cv_func_dlopen=yes"
2425 else
2426 echo "configure: failed program was:" >&5
2427 cat conftest.$ac_ext >&5
2428 rm -rf conftest*
2429 eval "ac_cv_func_dlopen=no"
2431 rm -f conftest*
2434 if eval "test \"`echo '$ac_cv_func_'dlopen`\" = yes"; then
2435 echo "$ac_t""yes" 1>&6
2436 HAVEDL="yes"
2437 else
2438 echo "$ac_t""no" 1>&6
2439 echo $ac_n "checking for dlopen in -ldl""... $ac_c" 1>&6
2440 echo "configure:2441: checking for dlopen in -ldl" >&5
2441 ac_lib_var=`echo dl'_'dlopen | sed 'y%./+-%__p_%'`
2442 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2443 echo $ac_n "(cached) $ac_c" 1>&6
2444 else
2445 ac_save_LIBS="$LIBS"
2446 LIBS="-ldl $LIBS"
2447 cat > conftest.$ac_ext <<EOF
2448 #line 2449 "configure"
2449 #include "confdefs.h"
2450 /* Override any gcc2 internal prototype to avoid an error. */
2451 /* We use char because int might match the return type of a gcc2
2452 builtin and then its argument prototype would still apply. */
2453 char dlopen();
2455 int main() {
2456 dlopen()
2457 ; return 0; }
2459 if { (eval echo configure:2460: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2460 rm -rf conftest*
2461 eval "ac_cv_lib_$ac_lib_var=yes"
2462 else
2463 echo "configure: failed program was:" >&5
2464 cat conftest.$ac_ext >&5
2465 rm -rf conftest*
2466 eval "ac_cv_lib_$ac_lib_var=no"
2468 rm -f conftest*
2469 LIBS="$ac_save_LIBS"
2472 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2473 echo "$ac_t""yes" 1>&6
2474 DLLIBS="-ldl" HAVEDL="yes"
2475 else
2476 echo "$ac_t""no" 1>&6
2477 DLLIBS=""
2483 if test "x$HAVEDL" = xyes; then
2484 for ac_hdr in dlfcn.h
2486 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2487 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2488 echo "configure:2489: checking for $ac_hdr" >&5
2489 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2490 echo $ac_n "(cached) $ac_c" 1>&6
2491 else
2492 cat > conftest.$ac_ext <<EOF
2493 #line 2494 "configure"
2494 #include "confdefs.h"
2495 #include <$ac_hdr>
2497 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2498 { (eval echo configure:2499: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2499 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2500 if test -z "$ac_err"; then
2501 rm -rf conftest*
2502 eval "ac_cv_header_$ac_safe=yes"
2503 else
2504 echo "$ac_err" >&5
2505 echo "configure: failed program was:" >&5
2506 cat conftest.$ac_ext >&5
2507 rm -rf conftest*
2508 eval "ac_cv_header_$ac_safe=no"
2510 rm -f conftest*
2512 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2513 echo "$ac_t""yes" 1>&6
2514 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2515 cat >> confdefs.h <<EOF
2516 #define $ac_tr_hdr 1
2519 else
2520 echo "$ac_t""no" 1>&6
2522 done
2528 if test "x$CPP_PATH" = x; then
2529 # Extract the first word of "cpp", so it can be a program name with args.
2530 set dummy cpp; ac_word=$2
2531 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2532 echo "configure:2533: checking for $ac_word" >&5
2533 if eval "test \"`echo '$''{'ac_cv_path_CPP_PATH'+set}'`\" = set"; then
2534 echo $ac_n "(cached) $ac_c" 1>&6
2535 else
2536 case "$CPP_PATH" in
2538 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a path.
2540 ?:/*)
2541 ac_cv_path_CPP_PATH="$CPP_PATH" # Let the user override the test with a dos path.
2544 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2545 ac_dummy="$PATH:/lib:/usr/bin:/bin:/usr/lib:/usr/ccs/lib"
2546 for ac_dir in $ac_dummy; do
2547 test -z "$ac_dir" && ac_dir=.
2548 if test -f $ac_dir/$ac_word; then
2549 ac_cv_path_CPP_PATH="$ac_dir/$ac_word"
2550 break
2552 done
2553 IFS="$ac_save_ifs"
2554 test -z "$ac_cv_path_CPP_PATH" && ac_cv_path_CPP_PATH="notfound"
2556 esac
2558 CPP_PATH="$ac_cv_path_CPP_PATH"
2559 if test -n "$CPP_PATH"; then
2560 echo "$ac_t""$CPP_PATH" 1>&6
2561 else
2562 echo "$ac_t""no" 1>&6
2567 if test "$CPP_PATH" = "/usr/ccs/lib/cpp" -o "$CPP_PATH" = "notfound" ; then
2568 if test "$GCC" = "yes"; then
2569 CPP_PATH="gcc -E -x c"
2570 else
2571 if test "$CPP_PATH" = "/usr/ccs/lib/cpp"; then
2572 CPP_PATH="$CPP_PATH -B"
2573 else
2574 echo "cpp, the C preprocessor was not found in your system."
2575 echo "Create a symbolic link from it to /lib/cpp and rerun configure"
2576 exit
2580 cat >> confdefs.h <<EOF
2581 #define CPP_PATH "$CPP_PATH"
2587 echo $ac_n "checking for sys/wait.h that is POSIX.1 compatible""... $ac_c" 1>&6
2588 echo "configure:2589: checking for sys/wait.h that is POSIX.1 compatible" >&5
2589 if eval "test \"`echo '$''{'ac_cv_header_sys_wait_h'+set}'`\" = set"; then
2590 echo $ac_n "(cached) $ac_c" 1>&6
2591 else
2592 cat > conftest.$ac_ext <<EOF
2593 #line 2594 "configure"
2594 #include "confdefs.h"
2595 #include <sys/types.h>
2596 #include <sys/wait.h>
2597 #ifndef WEXITSTATUS
2598 #define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
2599 #endif
2600 #ifndef WIFEXITED
2601 #define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
2602 #endif
2603 int main() {
2604 int s;
2605 wait (&s);
2606 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
2607 ; return 0; }
2609 if { (eval echo configure:2610: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2610 rm -rf conftest*
2611 ac_cv_header_sys_wait_h=yes
2612 else
2613 echo "configure: failed program was:" >&5
2614 cat conftest.$ac_ext >&5
2615 rm -rf conftest*
2616 ac_cv_header_sys_wait_h=no
2618 rm -f conftest*
2621 echo "$ac_t""$ac_cv_header_sys_wait_h" 1>&6
2622 if test $ac_cv_header_sys_wait_h = yes; then
2623 cat >> confdefs.h <<\EOF
2624 #define HAVE_SYS_WAIT_H 1
2629 echo $ac_n "checking whether time.h and sys/time.h may both be included""... $ac_c" 1>&6
2630 echo "configure:2631: checking whether time.h and sys/time.h may both be included" >&5
2631 if eval "test \"`echo '$''{'ac_cv_header_time'+set}'`\" = set"; then
2632 echo $ac_n "(cached) $ac_c" 1>&6
2633 else
2634 cat > conftest.$ac_ext <<EOF
2635 #line 2636 "configure"
2636 #include "confdefs.h"
2637 #include <sys/types.h>
2638 #include <sys/time.h>
2639 #include <time.h>
2640 int main() {
2641 struct tm *tp;
2642 ; return 0; }
2644 if { (eval echo configure:2645: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2645 rm -rf conftest*
2646 ac_cv_header_time=yes
2647 else
2648 echo "configure: failed program was:" >&5
2649 cat conftest.$ac_ext >&5
2650 rm -rf conftest*
2651 ac_cv_header_time=no
2653 rm -f conftest*
2656 echo "$ac_t""$ac_cv_header_time" 1>&6
2657 if test $ac_cv_header_time = yes; then
2658 cat >> confdefs.h <<\EOF
2659 #define TIME_WITH_SYS_TIME 1
2664 for ac_hdr in fcntl.h limits.h sys/ioctl.h sys/time.h sys/types.h\
2665 libintl.h sys/select.h poll.h
2667 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2668 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2669 echo "configure:2670: checking for $ac_hdr" >&5
2670 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2671 echo $ac_n "(cached) $ac_c" 1>&6
2672 else
2673 cat > conftest.$ac_ext <<EOF
2674 #line 2675 "configure"
2675 #include "confdefs.h"
2676 #include <$ac_hdr>
2678 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2679 { (eval echo configure:2680: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2680 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2681 if test -z "$ac_err"; then
2682 rm -rf conftest*
2683 eval "ac_cv_header_$ac_safe=yes"
2684 else
2685 echo "$ac_err" >&5
2686 echo "configure: failed program was:" >&5
2687 cat conftest.$ac_ext >&5
2688 rm -rf conftest*
2689 eval "ac_cv_header_$ac_safe=no"
2691 rm -f conftest*
2693 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2694 echo "$ac_t""yes" 1>&6
2695 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2696 cat >> confdefs.h <<EOF
2697 #define $ac_tr_hdr 1
2700 else
2701 echo "$ac_t""no" 1>&6
2703 done
2708 echo $ac_n "checking for sys_siglist declaration in signal.h or unistd.h""... $ac_c" 1>&6
2709 echo "configure:2710: checking for sys_siglist declaration in signal.h or unistd.h" >&5
2710 if eval "test \"`echo '$''{'ac_cv_decl_sys_siglist'+set}'`\" = set"; then
2711 echo $ac_n "(cached) $ac_c" 1>&6
2712 else
2713 cat > conftest.$ac_ext <<EOF
2714 #line 2715 "configure"
2715 #include "confdefs.h"
2716 #include <sys/types.h>
2717 #include <signal.h>
2718 /* NetBSD declares sys_siglist in unistd.h. */
2719 #ifdef HAVE_UNISTD_H
2720 #include <unistd.h>
2721 #endif
2722 int main() {
2723 char *msg = *(sys_siglist + 1);
2724 ; return 0; }
2726 if { (eval echo configure:2727: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2727 rm -rf conftest*
2728 ac_cv_decl_sys_siglist=yes
2729 else
2730 echo "configure: failed program was:" >&5
2731 cat conftest.$ac_ext >&5
2732 rm -rf conftest*
2733 ac_cv_decl_sys_siglist=no
2735 rm -f conftest*
2738 echo "$ac_t""$ac_cv_decl_sys_siglist" 1>&6
2739 if test $ac_cv_decl_sys_siglist = yes; then
2740 cat >> confdefs.h <<\EOF
2741 #define SYS_SIGLIST_DECLARED 1
2746 echo $ac_n "checking for working const""... $ac_c" 1>&6
2747 echo "configure:2748: checking for working const" >&5
2748 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2749 echo $ac_n "(cached) $ac_c" 1>&6
2750 else
2751 cat > conftest.$ac_ext <<EOF
2752 #line 2753 "configure"
2753 #include "confdefs.h"
2755 int main() {
2757 /* Ultrix mips cc rejects this. */
2758 typedef int charset[2]; const charset x = {0,0};
2759 /* SunOS 4.1.1 cc rejects this. */
2760 char const *const *ccp;
2761 char **p;
2762 /* NEC SVR4.0.2 mips cc rejects this. */
2763 struct point {int x, y;};
2764 static struct point const zero = {0,0};
2765 /* AIX XL C 1.02.0.0 rejects this.
2766 It does not let you subtract one const X* pointer from another in an arm
2767 of an if-expression whose if-part is not a constant expression */
2768 const char *g = "string";
2769 ccp = &g + (g ? g-g : 0);
2770 /* HPUX 7.0 cc rejects these. */
2771 ++ccp;
2772 p = (char**) ccp;
2773 ccp = (char const *const *) p;
2774 { /* SCO 3.2v4 cc rejects this. */
2775 char *t;
2776 char const *s = 0 ? (char *) 0 : (char const *) 0;
2778 *t++ = 0;
2780 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2781 int x[] = {25, 17};
2782 const int *foo = &x[0];
2783 ++foo;
2785 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2786 typedef const int *iptr;
2787 iptr p = 0;
2788 ++p;
2790 { /* AIX XL C 1.02.0.0 rejects this saying
2791 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2792 struct s { int j; const int *ap[3]; };
2793 struct s *b; b->j = 5;
2795 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2796 const int foo = 10;
2799 ; return 0; }
2801 if { (eval echo configure:2802: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2802 rm -rf conftest*
2803 ac_cv_c_const=yes
2804 else
2805 echo "configure: failed program was:" >&5
2806 cat conftest.$ac_ext >&5
2807 rm -rf conftest*
2808 ac_cv_c_const=no
2810 rm -f conftest*
2813 echo "$ac_t""$ac_cv_c_const" 1>&6
2814 if test $ac_cv_c_const = no; then
2815 cat >> confdefs.h <<\EOF
2816 #define const
2821 #AC_TYPE_SIZE_T
2822 #AC_TYPE_PID_T
2823 echo $ac_n "checking return type of signal handlers""... $ac_c" 1>&6
2824 echo "configure:2825: checking return type of signal handlers" >&5
2825 if eval "test \"`echo '$''{'ac_cv_type_signal'+set}'`\" = set"; then
2826 echo $ac_n "(cached) $ac_c" 1>&6
2827 else
2828 cat > conftest.$ac_ext <<EOF
2829 #line 2830 "configure"
2830 #include "confdefs.h"
2831 #include <sys/types.h>
2832 #include <signal.h>
2833 #ifdef signal
2834 #undef signal
2835 #endif
2836 #ifdef __cplusplus
2837 extern "C" void (*signal (int, void (*)(int)))(int);
2838 #else
2839 void (*signal ()) ();
2840 #endif
2842 int main() {
2843 int i;
2844 ; return 0; }
2846 if { (eval echo configure:2847: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2847 rm -rf conftest*
2848 ac_cv_type_signal=void
2849 else
2850 echo "configure: failed program was:" >&5
2851 cat conftest.$ac_ext >&5
2852 rm -rf conftest*
2853 ac_cv_type_signal=int
2855 rm -f conftest*
2858 echo "$ac_t""$ac_cv_type_signal" 1>&6
2859 cat >> confdefs.h <<EOF
2860 #define RETSIGTYPE $ac_cv_type_signal
2870 if test "$ac_cv_prog_gcc" = yes; then
2871 x86=0
2872 case "$host_cpu" in
2873 i[3456]86) x86=1
2875 esac
2877 if test $x86 = 1; then
2878 cat >> confdefs.h <<\EOF
2879 #define ASM_X86 1
2883 echo $ac_n "checking whether gcc supports MMX(tm) inline asm""... $ac_c" 1>&6
2884 echo "configure:2885: checking whether gcc supports MMX(tm) inline asm" >&5
2885 if eval "test \"`echo '$''{'ac_cv_c_inline_mmx'+set}'`\" = set"; then
2886 echo $ac_n "(cached) $ac_c" 1>&6
2887 else
2888 cat > conftest.$ac_ext <<EOF
2889 #line 2890 "configure"
2890 #include "confdefs.h"
2892 int main() {
2893 asm ("movq %mm0, %mm1");
2894 ; return 0; }
2896 if { (eval echo configure:2897: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2897 rm -rf conftest*
2898 ac_cv_c_inline_mmx=yes
2899 else
2900 echo "configure: failed program was:" >&5
2901 cat conftest.$ac_ext >&5
2902 rm -rf conftest*
2903 ac_cv_c_inline_mmx=no
2905 rm -f conftest*
2908 echo "$ac_t""$ac_cv_c_inline_mmx" 1>&6
2910 if test "x$ac_cv_c_inline_mmx" = xyes; then
2911 cat >> confdefs.h <<\EOF
2912 #define ASM_X86_MMX 1
2926 INTLIBS=""
2928 echo $ac_n "checking for gettext""... $ac_c" 1>&6
2929 echo "configure:2930: checking for gettext" >&5
2930 if eval "test \"`echo '$''{'ac_cv_func_gettext'+set}'`\" = set"; then
2931 echo $ac_n "(cached) $ac_c" 1>&6
2932 else
2933 cat > conftest.$ac_ext <<EOF
2934 #line 2935 "configure"
2935 #include "confdefs.h"
2936 /* System header to define __stub macros and hopefully few prototypes,
2937 which can conflict with char gettext(); below. */
2938 #include <assert.h>
2939 /* Override any gcc2 internal prototype to avoid an error. */
2940 /* We use char because int might match the return type of a gcc2
2941 builtin and then its argument prototype would still apply. */
2942 char gettext();
2944 int main() {
2946 /* The GNU C library defines this for functions which it implements
2947 to always fail with ENOSYS. Some functions are actually named
2948 something starting with __ and the normal name is an alias. */
2949 #if defined (__stub_gettext) || defined (__stub___gettext)
2950 choke me
2951 #else
2952 gettext();
2953 #endif
2955 ; return 0; }
2957 if { (eval echo configure:2958: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2958 rm -rf conftest*
2959 eval "ac_cv_func_gettext=yes"
2960 else
2961 echo "configure: failed program was:" >&5
2962 cat conftest.$ac_ext >&5
2963 rm -rf conftest*
2964 eval "ac_cv_func_gettext=no"
2966 rm -f conftest*
2969 if eval "test \"`echo '$ac_cv_func_'gettext`\" = yes"; then
2970 echo "$ac_t""yes" 1>&6
2971 HAVEGETTEXT="yes"
2972 else
2973 echo "$ac_t""no" 1>&6
2974 echo $ac_n "checking for gettext in -lintl""... $ac_c" 1>&6
2975 echo "configure:2976: checking for gettext in -lintl" >&5
2976 ac_lib_var=`echo intl'_'gettext | sed 'y%./+-%__p_%'`
2977 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2978 echo $ac_n "(cached) $ac_c" 1>&6
2979 else
2980 ac_save_LIBS="$LIBS"
2981 LIBS="-lintl $LIBS"
2982 cat > conftest.$ac_ext <<EOF
2983 #line 2984 "configure"
2984 #include "confdefs.h"
2985 /* Override any gcc2 internal prototype to avoid an error. */
2986 /* We use char because int might match the return type of a gcc2
2987 builtin and then its argument prototype would still apply. */
2988 char gettext();
2990 int main() {
2991 gettext()
2992 ; return 0; }
2994 if { (eval echo configure:2995: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2995 rm -rf conftest*
2996 eval "ac_cv_lib_$ac_lib_var=yes"
2997 else
2998 echo "configure: failed program was:" >&5
2999 cat conftest.$ac_ext >&5
3000 rm -rf conftest*
3001 eval "ac_cv_lib_$ac_lib_var=no"
3003 rm -f conftest*
3004 LIBS="$ac_save_LIBS"
3007 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3008 echo "$ac_t""yes" 1>&6
3009 INTLIBS="-lintl" HAVEGETTEXT="yes"
3010 else
3011 echo "$ac_t""no" 1>&6
3012 INTLIBS=""
3018 # Extract the first word of "xgettext", so it can be a program name with args.
3019 set dummy xgettext; ac_word=$2
3020 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3021 echo "configure:3022: checking for $ac_word" >&5
3022 if eval "test \"`echo '$''{'ac_cv_prog_XGETTEXT'+set}'`\" = set"; then
3023 echo $ac_n "(cached) $ac_c" 1>&6
3024 else
3025 if test -n "$XGETTEXT"; then
3026 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3027 else
3028 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3029 ac_dummy="$PATH"
3030 for ac_dir in $ac_dummy; do
3031 test -z "$ac_dir" && ac_dir=.
3032 if test -f $ac_dir/$ac_word; then
3033 ac_cv_prog_XGETTEXT="xgettext"
3034 break
3036 done
3037 IFS="$ac_save_ifs"
3040 XGETTEXT="$ac_cv_prog_XGETTEXT"
3041 if test -n "$XGETTEXT"; then
3042 echo "$ac_t""$XGETTEXT" 1>&6
3043 else
3044 echo "$ac_t""no" 1>&6
3048 if test "$XGETTEXT" != ""; then
3049 if $XGETTEXT --help 2>&1 | grep illegal >/dev/null ; then
3050 echo "xgettext isn't GNU version"
3051 XGETTEXT=""
3055 if test "$LINGUAS" != ""; then
3056 if test "$XGETTEXT" != "" -a "$HAVEGETTEXT" != ""; then
3057 cat >> confdefs.h <<\EOF
3058 #define I18N 1
3061 PO=""
3062 # if test "$LINGUAS" = ""; then
3063 # ling=` (cd src/po; /bin/ls *.po) `
3064 # for l in $ling; do
3065 # lcode=`basename $l .po`
3066 # LINGUAS="$LINGUAS $lcode"
3067 # done
3068 # fi
3069 echo "xgettext and gettext() exist; will build i18n support for $LINGUAS"
3070 else
3071 LINGUAS=""
3072 PO=""
3073 echo "xgettext and libintl.a don't both exist; will not build i18n support"
3075 else
3076 INTLIBS=""
3077 MOFILES=""
3078 WPMOFILES=""
3079 PO=""
3084 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"
3085 supported_wprefs_locales="pt hr fr ko ja cs zh_TW.Big5 es zh_CN fi it ru de"
3087 for lang in $LINGUAS; do
3088 ok=0
3089 for l in $supported_locales; do
3090 if test "$l" = "$lang"; then
3091 ok=1
3092 break
3094 done
3095 if test "$ok" = 1; then
3096 MOFILES="$MOFILES $lang.mo"
3097 else
3098 echo "Locale $lang is not supported."
3100 ok=0
3101 for l in $supported_wprefs_locales; do
3102 if test "$l" = "$lang"; then
3103 ok=1
3104 break
3106 done
3107 if test "$ok" = 1; then
3108 WPMOFILES="$WPMOFILES $lang.mo"
3110 done
3114 case $host_os in
3115 freebsd*)
3116 echo $ac_n "checking for setlocale in -lxpg4""... $ac_c" 1>&6
3117 echo "configure:3118: checking for setlocale in -lxpg4" >&5
3118 ac_lib_var=`echo xpg4'_'setlocale | sed 'y%./+-%__p_%'`
3119 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3120 echo $ac_n "(cached) $ac_c" 1>&6
3121 else
3122 ac_save_LIBS="$LIBS"
3123 LIBS="-lxpg4 $LIBS"
3124 cat > conftest.$ac_ext <<EOF
3125 #line 3126 "configure"
3126 #include "confdefs.h"
3127 /* Override any gcc2 internal prototype to avoid an error. */
3128 /* We use char because int might match the return type of a gcc2
3129 builtin and then its argument prototype would still apply. */
3130 char setlocale();
3132 int main() {
3133 setlocale()
3134 ; return 0; }
3136 if { (eval echo configure:3137: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3137 rm -rf conftest*
3138 eval "ac_cv_lib_$ac_lib_var=yes"
3139 else
3140 echo "configure: failed program was:" >&5
3141 cat conftest.$ac_ext >&5
3142 rm -rf conftest*
3143 eval "ac_cv_lib_$ac_lib_var=no"
3145 rm -f conftest*
3146 LIBS="$ac_save_LIBS"
3149 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3150 echo "$ac_t""yes" 1>&6
3151 LIBS="$LIBS -lxpg4"
3152 else
3153 echo "$ac_t""no" 1>&6
3158 esac
3162 # Check whether --with-nlsdir or --without-nlsdir was given.
3163 if test "${with_nlsdir+set}" = set; then
3164 withval="$with_nlsdir"
3170 if test "x$NLSDIR" = "x"; then
3171 if test "x$with_nlsdir" != "x"; then
3172 NLSDIR=$with_nlsdir
3173 else
3174 NLSDIR='$(prefix)/lib/locale'
3190 # Check whether --enable-gnome or --disable-gnome was given.
3191 if test "${enable_gnome+set}" = set; then
3192 enableval="$enable_gnome"
3193 if test x$enableval = xyes; then
3194 cat >> confdefs.h <<\EOF
3195 #define GNOME_STUFF 1
3198 gnome_on=yes
3204 # Check whether --enable-kde or --disable-kde was given.
3205 if test "${enable_kde+set}" = set; then
3206 enableval="$enable_kde"
3207 if test x$enableval = xyes; then
3208 cat >> confdefs.h <<\EOF
3209 #define KWM_HINTS 1
3212 kde_on=yes
3218 # Check whether --enable-openlook or --disable-openlook was given.
3219 if test "${enable_openlook+set}" = set; then
3220 enableval="$enable_openlook"
3221 if test x$enableval = xyes; then
3222 cat >> confdefs.h <<\EOF
3223 #define OLWM_HINTS 1
3226 openlook_on=yes
3232 # Check whether --enable-lite or --disable-lite was given.
3233 if test "${enable_lite+set}" = set; then
3234 enableval="$enable_lite"
3235 if test x$enableval = xyes; then
3236 LITE=yes
3237 cat >> confdefs.h <<\EOF
3238 #define LITE 1
3249 NETLIBS=""
3251 echo $ac_n "checking for connect""... $ac_c" 1>&6
3252 echo "configure:3253: checking for connect" >&5
3253 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
3254 echo $ac_n "(cached) $ac_c" 1>&6
3255 else
3256 cat > conftest.$ac_ext <<EOF
3257 #line 3258 "configure"
3258 #include "confdefs.h"
3259 /* System header to define __stub macros and hopefully few prototypes,
3260 which can conflict with char connect(); below. */
3261 #include <assert.h>
3262 /* Override any gcc2 internal prototype to avoid an error. */
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3265 char connect();
3267 int main() {
3269 /* The GNU C library defines this for functions which it implements
3270 to always fail with ENOSYS. Some functions are actually named
3271 something starting with __ and the normal name is an alias. */
3272 #if defined (__stub_connect) || defined (__stub___connect)
3273 choke me
3274 #else
3275 connect();
3276 #endif
3278 ; return 0; }
3280 if { (eval echo configure:3281: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3281 rm -rf conftest*
3282 eval "ac_cv_func_connect=yes"
3283 else
3284 echo "configure: failed program was:" >&5
3285 cat conftest.$ac_ext >&5
3286 rm -rf conftest*
3287 eval "ac_cv_func_connect=no"
3289 rm -f conftest*
3292 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
3293 echo "$ac_t""yes" 1>&6
3295 else
3296 echo "$ac_t""no" 1>&6
3297 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
3298 echo "configure:3299: checking for connect in -lsocket" >&5
3299 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
3300 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3301 echo $ac_n "(cached) $ac_c" 1>&6
3302 else
3303 ac_save_LIBS="$LIBS"
3304 LIBS="-lsocket $LIBS"
3305 cat > conftest.$ac_ext <<EOF
3306 #line 3307 "configure"
3307 #include "confdefs.h"
3308 /* Override any gcc2 internal prototype to avoid an error. */
3309 /* We use char because int might match the return type of a gcc2
3310 builtin and then its argument prototype would still apply. */
3311 char connect();
3313 int main() {
3314 connect()
3315 ; return 0; }
3317 if { (eval echo configure:3318: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3318 rm -rf conftest*
3319 eval "ac_cv_lib_$ac_lib_var=yes"
3320 else
3321 echo "configure: failed program was:" >&5
3322 cat conftest.$ac_ext >&5
3323 rm -rf conftest*
3324 eval "ac_cv_lib_$ac_lib_var=no"
3326 rm -f conftest*
3327 LIBS="$ac_save_LIBS"
3330 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3331 echo "$ac_t""yes" 1>&6
3332 NETLIBS="$NETLIBS -lsocket"
3333 else
3334 echo "$ac_t""no" 1>&6
3340 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3341 echo "configure:3342: checking for gethostbyname" >&5
3342 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3343 echo $ac_n "(cached) $ac_c" 1>&6
3344 else
3345 cat > conftest.$ac_ext <<EOF
3346 #line 3347 "configure"
3347 #include "confdefs.h"
3348 /* System header to define __stub macros and hopefully few prototypes,
3349 which can conflict with char gethostbyname(); below. */
3350 #include <assert.h>
3351 /* Override any gcc2 internal prototype to avoid an error. */
3352 /* We use char because int might match the return type of a gcc2
3353 builtin and then its argument prototype would still apply. */
3354 char gethostbyname();
3356 int main() {
3358 /* The GNU C library defines this for functions which it implements
3359 to always fail with ENOSYS. Some functions are actually named
3360 something starting with __ and the normal name is an alias. */
3361 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3362 choke me
3363 #else
3364 gethostbyname();
3365 #endif
3367 ; return 0; }
3369 if { (eval echo configure:3370: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3370 rm -rf conftest*
3371 eval "ac_cv_func_gethostbyname=yes"
3372 else
3373 echo "configure: failed program was:" >&5
3374 cat conftest.$ac_ext >&5
3375 rm -rf conftest*
3376 eval "ac_cv_func_gethostbyname=no"
3378 rm -f conftest*
3381 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3382 echo "$ac_t""yes" 1>&6
3384 else
3385 echo "$ac_t""no" 1>&6
3386 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3387 echo "configure:3388: checking for gethostbyname in -lnsl" >&5
3388 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3389 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3390 echo $ac_n "(cached) $ac_c" 1>&6
3391 else
3392 ac_save_LIBS="$LIBS"
3393 LIBS="-lnsl $LIBS"
3394 cat > conftest.$ac_ext <<EOF
3395 #line 3396 "configure"
3396 #include "confdefs.h"
3397 /* Override any gcc2 internal prototype to avoid an error. */
3398 /* We use char because int might match the return type of a gcc2
3399 builtin and then its argument prototype would still apply. */
3400 char gethostbyname();
3402 int main() {
3403 gethostbyname()
3404 ; return 0; }
3406 if { (eval echo configure:3407: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3407 rm -rf conftest*
3408 eval "ac_cv_lib_$ac_lib_var=yes"
3409 else
3410 echo "configure: failed program was:" >&5
3411 cat conftest.$ac_ext >&5
3412 rm -rf conftest*
3413 eval "ac_cv_lib_$ac_lib_var=no"
3415 rm -f conftest*
3416 LIBS="$ac_save_LIBS"
3419 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3420 echo "$ac_t""yes" 1>&6
3421 NETLIBS="$NETLIBS -lnsl"
3422 else
3423 echo "$ac_t""no" 1>&6
3429 echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
3430 echo "configure:3431: checking for inet_aton" >&5
3431 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
3432 echo $ac_n "(cached) $ac_c" 1>&6
3433 else
3434 cat > conftest.$ac_ext <<EOF
3435 #line 3436 "configure"
3436 #include "confdefs.h"
3437 /* System header to define __stub macros and hopefully few prototypes,
3438 which can conflict with char inet_aton(); below. */
3439 #include <assert.h>
3440 /* Override any gcc2 internal prototype to avoid an error. */
3441 /* We use char because int might match the return type of a gcc2
3442 builtin and then its argument prototype would still apply. */
3443 char inet_aton();
3445 int main() {
3447 /* The GNU C library defines this for functions which it implements
3448 to always fail with ENOSYS. Some functions are actually named
3449 something starting with __ and the normal name is an alias. */
3450 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
3451 choke me
3452 #else
3453 inet_aton();
3454 #endif
3456 ; return 0; }
3458 if { (eval echo configure:3459: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3459 rm -rf conftest*
3460 eval "ac_cv_func_inet_aton=yes"
3461 else
3462 echo "configure: failed program was:" >&5
3463 cat conftest.$ac_ext >&5
3464 rm -rf conftest*
3465 eval "ac_cv_func_inet_aton=no"
3467 rm -f conftest*
3470 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
3471 echo "$ac_t""yes" 1>&6
3472 cat >> confdefs.h <<\EOF
3473 #define HAVE_INET_ATON 1
3476 else
3477 echo "$ac_t""no" 1>&6
3478 for lib in resolv socket inet bsd; do
3479 echo $ac_n "checking for inet_aton in -l$lib""... $ac_c" 1>&6
3480 echo "configure:3481: checking for inet_aton in -l$lib" >&5
3481 ac_lib_var=`echo $lib'_'inet_aton | sed 'y%./+-%__p_%'`
3482 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3483 echo $ac_n "(cached) $ac_c" 1>&6
3484 else
3485 ac_save_LIBS="$LIBS"
3486 LIBS="-l$lib $NETLIBS $LIBS"
3487 cat > conftest.$ac_ext <<EOF
3488 #line 3489 "configure"
3489 #include "confdefs.h"
3490 /* Override any gcc2 internal prototype to avoid an error. */
3491 /* We use char because int might match the return type of a gcc2
3492 builtin and then its argument prototype would still apply. */
3493 char inet_aton();
3495 int main() {
3496 inet_aton()
3497 ; return 0; }
3499 if { (eval echo configure:3500: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3500 rm -rf conftest*
3501 eval "ac_cv_lib_$ac_lib_var=yes"
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -rf conftest*
3506 eval "ac_cv_lib_$ac_lib_var=no"
3508 rm -f conftest*
3509 LIBS="$ac_save_LIBS"
3512 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3513 echo "$ac_t""yes" 1>&6
3514 cat >> confdefs.h <<\EOF
3515 #define HAVE_INET_ATON 1
3518 NETLIBS="$NETLIBS -l$lib"; break
3519 else
3520 echo "$ac_t""no" 1>&6
3523 done
3531 # If we find X, set shell vars x_includes and x_libraries to the
3532 # paths, otherwise set no_x=yes.
3533 # Uses ac_ vars as temps to allow command line to override cache and checks.
3534 # --without-x overrides everything else, but does not touch the cache.
3535 echo $ac_n "checking for X""... $ac_c" 1>&6
3536 echo "configure:3537: checking for X" >&5
3538 # Check whether --with-x or --without-x was given.
3539 if test "${with_x+set}" = set; then
3540 withval="$with_x"
3544 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
3545 if test "x$with_x" = xno; then
3546 # The user explicitly disabled X.
3547 have_x=disabled
3548 else
3549 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
3550 # Both variables are already set.
3551 have_x=yes
3552 else
3553 if eval "test \"`echo '$''{'ac_cv_have_x'+set}'`\" = set"; then
3554 echo $ac_n "(cached) $ac_c" 1>&6
3555 else
3556 # One or both of the vars are not set, and there is no cached value.
3557 ac_x_includes=NO ac_x_libraries=NO
3558 rm -fr conftestdir
3559 if mkdir conftestdir; then
3560 cd conftestdir
3561 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
3562 cat > Imakefile <<'EOF'
3563 acfindx:
3564 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
3566 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
3567 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3568 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
3569 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
3570 for ac_extension in a so sl; do
3571 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
3572 test -f $ac_im_libdir/libX11.$ac_extension; then
3573 ac_im_usrlibdir=$ac_im_libdir; break
3575 done
3576 # Screen out bogus values from the imake configuration. They are
3577 # bogus both because they are the default anyway, and because
3578 # using them would break gcc on systems where it needs fixed includes.
3579 case "$ac_im_incroot" in
3580 /usr/include) ;;
3581 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes="$ac_im_incroot" ;;
3582 esac
3583 case "$ac_im_usrlibdir" in
3584 /usr/lib | /lib) ;;
3585 *) test -d "$ac_im_usrlibdir" && ac_x_libraries="$ac_im_usrlibdir" ;;
3586 esac
3588 cd ..
3589 rm -fr conftestdir
3592 if test "$ac_x_includes" = NO; then
3593 # Guess where to find include files, by looking for this one X11 .h file.
3594 test -z "$x_direct_test_include" && x_direct_test_include=X11/Intrinsic.h
3596 # First, try using that file with no special directory specified.
3597 cat > conftest.$ac_ext <<EOF
3598 #line 3599 "configure"
3599 #include "confdefs.h"
3600 #include <$x_direct_test_include>
3602 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3603 { (eval echo configure:3604: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3604 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3605 if test -z "$ac_err"; then
3606 rm -rf conftest*
3607 # We can compile using X headers with no special include directory.
3608 ac_x_includes=
3609 else
3610 echo "$ac_err" >&5
3611 echo "configure: failed program was:" >&5
3612 cat conftest.$ac_ext >&5
3613 rm -rf conftest*
3614 # Look for the header file in a standard set of common directories.
3615 # Check X11 before X11Rn because it is often a symlink to the current release.
3616 for ac_dir in \
3617 /usr/X11/include \
3618 /usr/X11R6/include \
3619 /usr/X11R5/include \
3620 /usr/X11R4/include \
3622 /usr/include/X11 \
3623 /usr/include/X11R6 \
3624 /usr/include/X11R5 \
3625 /usr/include/X11R4 \
3627 /usr/local/X11/include \
3628 /usr/local/X11R6/include \
3629 /usr/local/X11R5/include \
3630 /usr/local/X11R4/include \
3632 /usr/local/include/X11 \
3633 /usr/local/include/X11R6 \
3634 /usr/local/include/X11R5 \
3635 /usr/local/include/X11R4 \
3637 /usr/X386/include \
3638 /usr/x386/include \
3639 /usr/XFree86/include/X11 \
3641 /usr/include \
3642 /usr/local/include \
3643 /usr/unsupported/include \
3644 /usr/athena/include \
3645 /usr/local/x11r5/include \
3646 /usr/lpp/Xamples/include \
3648 /usr/openwin/include \
3649 /usr/openwin/share/include \
3652 if test -r "$ac_dir/$x_direct_test_include"; then
3653 ac_x_includes=$ac_dir
3654 break
3656 done
3658 rm -f conftest*
3659 fi # $ac_x_includes = NO
3661 if test "$ac_x_libraries" = NO; then
3662 # Check for the libraries.
3664 test -z "$x_direct_test_library" && x_direct_test_library=Xt
3665 test -z "$x_direct_test_function" && x_direct_test_function=XtMalloc
3667 # See if we find them without any special options.
3668 # Don't add to $LIBS permanently.
3669 ac_save_LIBS="$LIBS"
3670 LIBS="-l$x_direct_test_library $LIBS"
3671 cat > conftest.$ac_ext <<EOF
3672 #line 3673 "configure"
3673 #include "confdefs.h"
3675 int main() {
3676 ${x_direct_test_function}()
3677 ; return 0; }
3679 if { (eval echo configure:3680: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3680 rm -rf conftest*
3681 LIBS="$ac_save_LIBS"
3682 # We can link X programs with no special library path.
3683 ac_x_libraries=
3684 else
3685 echo "configure: failed program was:" >&5
3686 cat conftest.$ac_ext >&5
3687 rm -rf conftest*
3688 LIBS="$ac_save_LIBS"
3689 # First see if replacing the include by lib works.
3690 # Check X11 before X11Rn because it is often a symlink to the current release.
3691 for ac_dir in `echo "$ac_x_includes" | sed s/include/lib/` \
3692 /usr/X11/lib \
3693 /usr/X11R6/lib \
3694 /usr/X11R5/lib \
3695 /usr/X11R4/lib \
3697 /usr/lib/X11 \
3698 /usr/lib/X11R6 \
3699 /usr/lib/X11R5 \
3700 /usr/lib/X11R4 \
3702 /usr/local/X11/lib \
3703 /usr/local/X11R6/lib \
3704 /usr/local/X11R5/lib \
3705 /usr/local/X11R4/lib \
3707 /usr/local/lib/X11 \
3708 /usr/local/lib/X11R6 \
3709 /usr/local/lib/X11R5 \
3710 /usr/local/lib/X11R4 \
3712 /usr/X386/lib \
3713 /usr/x386/lib \
3714 /usr/XFree86/lib/X11 \
3716 /usr/lib \
3717 /usr/local/lib \
3718 /usr/unsupported/lib \
3719 /usr/athena/lib \
3720 /usr/local/x11r5/lib \
3721 /usr/lpp/Xamples/lib \
3722 /lib/usr/lib/X11 \
3724 /usr/openwin/lib \
3725 /usr/openwin/share/lib \
3728 for ac_extension in a so sl; do
3729 if test -r $ac_dir/lib${x_direct_test_library}.$ac_extension; then
3730 ac_x_libraries=$ac_dir
3731 break 2
3733 done
3734 done
3736 rm -f conftest*
3737 fi # $ac_x_libraries = NO
3739 if test "$ac_x_includes" = NO || test "$ac_x_libraries" = NO; then
3740 # Didn't find X anywhere. Cache the known absence of X.
3741 ac_cv_have_x="have_x=no"
3742 else
3743 # Record where we found X for the cache.
3744 ac_cv_have_x="have_x=yes \
3745 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
3749 eval "$ac_cv_have_x"
3750 fi # $with_x != no
3752 if test "$have_x" != yes; then
3753 echo "$ac_t""$have_x" 1>&6
3754 no_x=yes
3755 else
3756 # If each of the values was on the command line, it overrides each guess.
3757 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
3758 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
3759 # Update the cache value to reflect the command line values.
3760 ac_cv_have_x="have_x=yes \
3761 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
3762 echo "$ac_t""libraries $x_libraries, headers $x_includes" 1>&6
3765 if test "$no_x" = yes; then
3766 # Not all programs may use this symbol, but it does not hurt to define it.
3767 cat >> confdefs.h <<\EOF
3768 #define X_DISPLAY_MISSING 1
3771 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
3772 else
3773 if test -n "$x_includes"; then
3774 X_CFLAGS="$X_CFLAGS -I$x_includes"
3777 # It would also be nice to do this for all -L options, not just this one.
3778 if test -n "$x_libraries"; then
3779 X_LIBS="$X_LIBS -L$x_libraries"
3780 # For Solaris; some versions of Sun CC require a space after -R and
3781 # others require no space. Words are not sufficient . . . .
3782 case "`(uname -sr) 2>/dev/null`" in
3783 "SunOS 5"*)
3784 echo $ac_n "checking whether -R must be followed by a space""... $ac_c" 1>&6
3785 echo "configure:3786: checking whether -R must be followed by a space" >&5
3786 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS -R$x_libraries"
3787 cat > conftest.$ac_ext <<EOF
3788 #line 3789 "configure"
3789 #include "confdefs.h"
3791 int main() {
3793 ; return 0; }
3795 if { (eval echo configure:3796: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3796 rm -rf conftest*
3797 ac_R_nospace=yes
3798 else
3799 echo "configure: failed program was:" >&5
3800 cat conftest.$ac_ext >&5
3801 rm -rf conftest*
3802 ac_R_nospace=no
3804 rm -f conftest*
3805 if test $ac_R_nospace = yes; then
3806 echo "$ac_t""no" 1>&6
3807 X_LIBS="$X_LIBS -R$x_libraries"
3808 else
3809 LIBS="$ac_xsave_LIBS -R $x_libraries"
3810 cat > conftest.$ac_ext <<EOF
3811 #line 3812 "configure"
3812 #include "confdefs.h"
3814 int main() {
3816 ; return 0; }
3818 if { (eval echo configure:3819: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3819 rm -rf conftest*
3820 ac_R_space=yes
3821 else
3822 echo "configure: failed program was:" >&5
3823 cat conftest.$ac_ext >&5
3824 rm -rf conftest*
3825 ac_R_space=no
3827 rm -f conftest*
3828 if test $ac_R_space = yes; then
3829 echo "$ac_t""yes" 1>&6
3830 X_LIBS="$X_LIBS -R $x_libraries"
3831 else
3832 echo "$ac_t""neither works" 1>&6
3835 LIBS="$ac_xsave_LIBS"
3836 esac
3839 # Check for system-dependent libraries X programs must link with.
3840 # Do this before checking for the system-independent R6 libraries
3841 # (-lICE), since we may need -lsocket or whatever for X linking.
3843 if test "$ISC" = yes; then
3844 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
3845 else
3846 # Martyn.Johnson@cl.cam.ac.uk says this is needed for Ultrix, if the X
3847 # libraries were built with DECnet support. And karl@cs.umb.edu says
3848 # the Alpha needs dnet_stub (dnet does not exist).
3849 echo $ac_n "checking for dnet_ntoa in -ldnet""... $ac_c" 1>&6
3850 echo "configure:3851: checking for dnet_ntoa in -ldnet" >&5
3851 ac_lib_var=`echo dnet'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3852 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3853 echo $ac_n "(cached) $ac_c" 1>&6
3854 else
3855 ac_save_LIBS="$LIBS"
3856 LIBS="-ldnet $LIBS"
3857 cat > conftest.$ac_ext <<EOF
3858 #line 3859 "configure"
3859 #include "confdefs.h"
3860 /* Override any gcc2 internal prototype to avoid an error. */
3861 /* We use char because int might match the return type of a gcc2
3862 builtin and then its argument prototype would still apply. */
3863 char dnet_ntoa();
3865 int main() {
3866 dnet_ntoa()
3867 ; return 0; }
3869 if { (eval echo configure:3870: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3870 rm -rf conftest*
3871 eval "ac_cv_lib_$ac_lib_var=yes"
3872 else
3873 echo "configure: failed program was:" >&5
3874 cat conftest.$ac_ext >&5
3875 rm -rf conftest*
3876 eval "ac_cv_lib_$ac_lib_var=no"
3878 rm -f conftest*
3879 LIBS="$ac_save_LIBS"
3882 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3883 echo "$ac_t""yes" 1>&6
3884 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
3885 else
3886 echo "$ac_t""no" 1>&6
3889 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
3890 echo $ac_n "checking for dnet_ntoa in -ldnet_stub""... $ac_c" 1>&6
3891 echo "configure:3892: checking for dnet_ntoa in -ldnet_stub" >&5
3892 ac_lib_var=`echo dnet_stub'_'dnet_ntoa | sed 'y%./+-%__p_%'`
3893 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3894 echo $ac_n "(cached) $ac_c" 1>&6
3895 else
3896 ac_save_LIBS="$LIBS"
3897 LIBS="-ldnet_stub $LIBS"
3898 cat > conftest.$ac_ext <<EOF
3899 #line 3900 "configure"
3900 #include "confdefs.h"
3901 /* Override any gcc2 internal prototype to avoid an error. */
3902 /* We use char because int might match the return type of a gcc2
3903 builtin and then its argument prototype would still apply. */
3904 char dnet_ntoa();
3906 int main() {
3907 dnet_ntoa()
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_lib_$ac_lib_var=yes"
3913 else
3914 echo "configure: failed program was:" >&5
3915 cat conftest.$ac_ext >&5
3916 rm -rf conftest*
3917 eval "ac_cv_lib_$ac_lib_var=no"
3919 rm -f conftest*
3920 LIBS="$ac_save_LIBS"
3923 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
3924 echo "$ac_t""yes" 1>&6
3925 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
3926 else
3927 echo "$ac_t""no" 1>&6
3932 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
3933 # to get the SysV transport functions.
3934 # chad@anasazi.com says the Pyramis MIS-ES running DC/OSx (SVR4)
3935 # needs -lnsl.
3936 # The nsl library prevents programs from opening the X display
3937 # on Irix 5.2, according to dickey@clark.net.
3938 echo $ac_n "checking for gethostbyname""... $ac_c" 1>&6
3939 echo "configure:3940: checking for gethostbyname" >&5
3940 if eval "test \"`echo '$''{'ac_cv_func_gethostbyname'+set}'`\" = set"; then
3941 echo $ac_n "(cached) $ac_c" 1>&6
3942 else
3943 cat > conftest.$ac_ext <<EOF
3944 #line 3945 "configure"
3945 #include "confdefs.h"
3946 /* System header to define __stub macros and hopefully few prototypes,
3947 which can conflict with char gethostbyname(); below. */
3948 #include <assert.h>
3949 /* Override any gcc2 internal prototype to avoid an error. */
3950 /* We use char because int might match the return type of a gcc2
3951 builtin and then its argument prototype would still apply. */
3952 char gethostbyname();
3954 int main() {
3956 /* The GNU C library defines this for functions which it implements
3957 to always fail with ENOSYS. Some functions are actually named
3958 something starting with __ and the normal name is an alias. */
3959 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
3960 choke me
3961 #else
3962 gethostbyname();
3963 #endif
3965 ; return 0; }
3967 if { (eval echo configure:3968: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3968 rm -rf conftest*
3969 eval "ac_cv_func_gethostbyname=yes"
3970 else
3971 echo "configure: failed program was:" >&5
3972 cat conftest.$ac_ext >&5
3973 rm -rf conftest*
3974 eval "ac_cv_func_gethostbyname=no"
3976 rm -f conftest*
3979 if eval "test \"`echo '$ac_cv_func_'gethostbyname`\" = yes"; then
3980 echo "$ac_t""yes" 1>&6
3982 else
3983 echo "$ac_t""no" 1>&6
3986 if test $ac_cv_func_gethostbyname = no; then
3987 echo $ac_n "checking for gethostbyname in -lnsl""... $ac_c" 1>&6
3988 echo "configure:3989: checking for gethostbyname in -lnsl" >&5
3989 ac_lib_var=`echo nsl'_'gethostbyname | sed 'y%./+-%__p_%'`
3990 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
3991 echo $ac_n "(cached) $ac_c" 1>&6
3992 else
3993 ac_save_LIBS="$LIBS"
3994 LIBS="-lnsl $LIBS"
3995 cat > conftest.$ac_ext <<EOF
3996 #line 3997 "configure"
3997 #include "confdefs.h"
3998 /* Override any gcc2 internal prototype to avoid an error. */
3999 /* We use char because int might match the return type of a gcc2
4000 builtin and then its argument prototype would still apply. */
4001 char gethostbyname();
4003 int main() {
4004 gethostbyname()
4005 ; return 0; }
4007 if { (eval echo configure:4008: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4008 rm -rf conftest*
4009 eval "ac_cv_lib_$ac_lib_var=yes"
4010 else
4011 echo "configure: failed program was:" >&5
4012 cat conftest.$ac_ext >&5
4013 rm -rf conftest*
4014 eval "ac_cv_lib_$ac_lib_var=no"
4016 rm -f conftest*
4017 LIBS="$ac_save_LIBS"
4020 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4021 echo "$ac_t""yes" 1>&6
4022 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
4023 else
4024 echo "$ac_t""no" 1>&6
4029 # lieder@skyler.mavd.honeywell.com says without -lsocket,
4030 # socket/setsockopt and other routines are undefined under SCO ODT
4031 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
4032 # on later versions), says simon@lia.di.epfl.ch: it contains
4033 # gethostby* variants that don't use the nameserver (or something).
4034 # -lsocket must be given before -lnsl if both are needed.
4035 # We assume that if connect needs -lnsl, so does gethostbyname.
4036 echo $ac_n "checking for connect""... $ac_c" 1>&6
4037 echo "configure:4038: checking for connect" >&5
4038 if eval "test \"`echo '$''{'ac_cv_func_connect'+set}'`\" = set"; then
4039 echo $ac_n "(cached) $ac_c" 1>&6
4040 else
4041 cat > conftest.$ac_ext <<EOF
4042 #line 4043 "configure"
4043 #include "confdefs.h"
4044 /* System header to define __stub macros and hopefully few prototypes,
4045 which can conflict with char connect(); below. */
4046 #include <assert.h>
4047 /* Override any gcc2 internal prototype to avoid an error. */
4048 /* We use char because int might match the return type of a gcc2
4049 builtin and then its argument prototype would still apply. */
4050 char connect();
4052 int main() {
4054 /* The GNU C library defines this for functions which it implements
4055 to always fail with ENOSYS. Some functions are actually named
4056 something starting with __ and the normal name is an alias. */
4057 #if defined (__stub_connect) || defined (__stub___connect)
4058 choke me
4059 #else
4060 connect();
4061 #endif
4063 ; return 0; }
4065 if { (eval echo configure:4066: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4066 rm -rf conftest*
4067 eval "ac_cv_func_connect=yes"
4068 else
4069 echo "configure: failed program was:" >&5
4070 cat conftest.$ac_ext >&5
4071 rm -rf conftest*
4072 eval "ac_cv_func_connect=no"
4074 rm -f conftest*
4077 if eval "test \"`echo '$ac_cv_func_'connect`\" = yes"; then
4078 echo "$ac_t""yes" 1>&6
4080 else
4081 echo "$ac_t""no" 1>&6
4084 if test $ac_cv_func_connect = no; then
4085 echo $ac_n "checking for connect in -lsocket""... $ac_c" 1>&6
4086 echo "configure:4087: checking for connect in -lsocket" >&5
4087 ac_lib_var=`echo socket'_'connect | sed 'y%./+-%__p_%'`
4088 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4089 echo $ac_n "(cached) $ac_c" 1>&6
4090 else
4091 ac_save_LIBS="$LIBS"
4092 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
4093 cat > conftest.$ac_ext <<EOF
4094 #line 4095 "configure"
4095 #include "confdefs.h"
4096 /* Override any gcc2 internal prototype to avoid an error. */
4097 /* We use char because int might match the return type of a gcc2
4098 builtin and then its argument prototype would still apply. */
4099 char connect();
4101 int main() {
4102 connect()
4103 ; return 0; }
4105 if { (eval echo configure:4106: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4106 rm -rf conftest*
4107 eval "ac_cv_lib_$ac_lib_var=yes"
4108 else
4109 echo "configure: failed program was:" >&5
4110 cat conftest.$ac_ext >&5
4111 rm -rf conftest*
4112 eval "ac_cv_lib_$ac_lib_var=no"
4114 rm -f conftest*
4115 LIBS="$ac_save_LIBS"
4118 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4119 echo "$ac_t""yes" 1>&6
4120 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
4121 else
4122 echo "$ac_t""no" 1>&6
4127 # gomez@mi.uni-erlangen.de says -lposix is necessary on A/UX.
4128 echo $ac_n "checking for remove""... $ac_c" 1>&6
4129 echo "configure:4130: checking for remove" >&5
4130 if eval "test \"`echo '$''{'ac_cv_func_remove'+set}'`\" = set"; then
4131 echo $ac_n "(cached) $ac_c" 1>&6
4132 else
4133 cat > conftest.$ac_ext <<EOF
4134 #line 4135 "configure"
4135 #include "confdefs.h"
4136 /* System header to define __stub macros and hopefully few prototypes,
4137 which can conflict with char remove(); below. */
4138 #include <assert.h>
4139 /* Override any gcc2 internal prototype to avoid an error. */
4140 /* We use char because int might match the return type of a gcc2
4141 builtin and then its argument prototype would still apply. */
4142 char remove();
4144 int main() {
4146 /* The GNU C library defines this for functions which it implements
4147 to always fail with ENOSYS. Some functions are actually named
4148 something starting with __ and the normal name is an alias. */
4149 #if defined (__stub_remove) || defined (__stub___remove)
4150 choke me
4151 #else
4152 remove();
4153 #endif
4155 ; return 0; }
4157 if { (eval echo configure:4158: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4158 rm -rf conftest*
4159 eval "ac_cv_func_remove=yes"
4160 else
4161 echo "configure: failed program was:" >&5
4162 cat conftest.$ac_ext >&5
4163 rm -rf conftest*
4164 eval "ac_cv_func_remove=no"
4166 rm -f conftest*
4169 if eval "test \"`echo '$ac_cv_func_'remove`\" = yes"; then
4170 echo "$ac_t""yes" 1>&6
4172 else
4173 echo "$ac_t""no" 1>&6
4176 if test $ac_cv_func_remove = no; then
4177 echo $ac_n "checking for remove in -lposix""... $ac_c" 1>&6
4178 echo "configure:4179: checking for remove in -lposix" >&5
4179 ac_lib_var=`echo posix'_'remove | sed 'y%./+-%__p_%'`
4180 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4181 echo $ac_n "(cached) $ac_c" 1>&6
4182 else
4183 ac_save_LIBS="$LIBS"
4184 LIBS="-lposix $LIBS"
4185 cat > conftest.$ac_ext <<EOF
4186 #line 4187 "configure"
4187 #include "confdefs.h"
4188 /* Override any gcc2 internal prototype to avoid an error. */
4189 /* We use char because int might match the return type of a gcc2
4190 builtin and then its argument prototype would still apply. */
4191 char remove();
4193 int main() {
4194 remove()
4195 ; return 0; }
4197 if { (eval echo configure:4198: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4198 rm -rf conftest*
4199 eval "ac_cv_lib_$ac_lib_var=yes"
4200 else
4201 echo "configure: failed program was:" >&5
4202 cat conftest.$ac_ext >&5
4203 rm -rf conftest*
4204 eval "ac_cv_lib_$ac_lib_var=no"
4206 rm -f conftest*
4207 LIBS="$ac_save_LIBS"
4210 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4211 echo "$ac_t""yes" 1>&6
4212 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
4213 else
4214 echo "$ac_t""no" 1>&6
4219 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
4220 echo $ac_n "checking for shmat""... $ac_c" 1>&6
4221 echo "configure:4222: checking for shmat" >&5
4222 if eval "test \"`echo '$''{'ac_cv_func_shmat'+set}'`\" = set"; then
4223 echo $ac_n "(cached) $ac_c" 1>&6
4224 else
4225 cat > conftest.$ac_ext <<EOF
4226 #line 4227 "configure"
4227 #include "confdefs.h"
4228 /* System header to define __stub macros and hopefully few prototypes,
4229 which can conflict with char shmat(); below. */
4230 #include <assert.h>
4231 /* Override any gcc2 internal prototype to avoid an error. */
4232 /* We use char because int might match the return type of a gcc2
4233 builtin and then its argument prototype would still apply. */
4234 char shmat();
4236 int main() {
4238 /* The GNU C library defines this for functions which it implements
4239 to always fail with ENOSYS. Some functions are actually named
4240 something starting with __ and the normal name is an alias. */
4241 #if defined (__stub_shmat) || defined (__stub___shmat)
4242 choke me
4243 #else
4244 shmat();
4245 #endif
4247 ; return 0; }
4249 if { (eval echo configure:4250: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4250 rm -rf conftest*
4251 eval "ac_cv_func_shmat=yes"
4252 else
4253 echo "configure: failed program was:" >&5
4254 cat conftest.$ac_ext >&5
4255 rm -rf conftest*
4256 eval "ac_cv_func_shmat=no"
4258 rm -f conftest*
4261 if eval "test \"`echo '$ac_cv_func_'shmat`\" = yes"; then
4262 echo "$ac_t""yes" 1>&6
4264 else
4265 echo "$ac_t""no" 1>&6
4268 if test $ac_cv_func_shmat = no; then
4269 echo $ac_n "checking for shmat in -lipc""... $ac_c" 1>&6
4270 echo "configure:4271: checking for shmat in -lipc" >&5
4271 ac_lib_var=`echo ipc'_'shmat | sed 'y%./+-%__p_%'`
4272 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4273 echo $ac_n "(cached) $ac_c" 1>&6
4274 else
4275 ac_save_LIBS="$LIBS"
4276 LIBS="-lipc $LIBS"
4277 cat > conftest.$ac_ext <<EOF
4278 #line 4279 "configure"
4279 #include "confdefs.h"
4280 /* Override any gcc2 internal prototype to avoid an error. */
4281 /* We use char because int might match the return type of a gcc2
4282 builtin and then its argument prototype would still apply. */
4283 char shmat();
4285 int main() {
4286 shmat()
4287 ; return 0; }
4289 if { (eval echo configure:4290: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4290 rm -rf conftest*
4291 eval "ac_cv_lib_$ac_lib_var=yes"
4292 else
4293 echo "configure: failed program was:" >&5
4294 cat conftest.$ac_ext >&5
4295 rm -rf conftest*
4296 eval "ac_cv_lib_$ac_lib_var=no"
4298 rm -f conftest*
4299 LIBS="$ac_save_LIBS"
4302 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4303 echo "$ac_t""yes" 1>&6
4304 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
4305 else
4306 echo "$ac_t""no" 1>&6
4312 # Check for libraries that X11R6 Xt/Xaw programs need.
4313 ac_save_LDFLAGS="$LDFLAGS"
4314 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
4315 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
4316 # check for ICE first), but we must link in the order -lSM -lICE or
4317 # we get undefined symbols. So assume we have SM if we have ICE.
4318 # These have to be linked with before -lX11, unlike the other
4319 # libraries we check for below, so use a different variable.
4320 # --interran@uluru.Stanford.EDU, kb@cs.umb.edu.
4321 echo $ac_n "checking for IceConnectionNumber in -lICE""... $ac_c" 1>&6
4322 echo "configure:4323: checking for IceConnectionNumber in -lICE" >&5
4323 ac_lib_var=`echo ICE'_'IceConnectionNumber | sed 'y%./+-%__p_%'`
4324 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4325 echo $ac_n "(cached) $ac_c" 1>&6
4326 else
4327 ac_save_LIBS="$LIBS"
4328 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
4329 cat > conftest.$ac_ext <<EOF
4330 #line 4331 "configure"
4331 #include "confdefs.h"
4332 /* Override any gcc2 internal prototype to avoid an error. */
4333 /* We use char because int might match the return type of a gcc2
4334 builtin and then its argument prototype would still apply. */
4335 char IceConnectionNumber();
4337 int main() {
4338 IceConnectionNumber()
4339 ; return 0; }
4341 if { (eval echo configure:4342: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4342 rm -rf conftest*
4343 eval "ac_cv_lib_$ac_lib_var=yes"
4344 else
4345 echo "configure: failed program was:" >&5
4346 cat conftest.$ac_ext >&5
4347 rm -rf conftest*
4348 eval "ac_cv_lib_$ac_lib_var=no"
4350 rm -f conftest*
4351 LIBS="$ac_save_LIBS"
4354 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4355 echo "$ac_t""yes" 1>&6
4356 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
4357 else
4358 echo "$ac_t""no" 1>&6
4361 LDFLAGS="$ac_save_LDFLAGS"
4366 if test $no_x; then
4367 { echo "configure: error: The path for the X11 files not found!
4368 Make sure you have X and it's headers and libraries (the -devel packages
4369 in Linux) installed." 1>&2; exit 1; }
4372 X_LIBRARY_PATH=$x_libraries
4374 XCFLAGS="$X_CFLAGS"
4376 XLFLAGS="$X_LIBS"
4378 XLIBS="-lX11 $X_EXTRA_LIBS"
4381 lib_search_path="$lib_search_path $XLFLAGS"
4382 inc_search_path="$inc_search_path $XCFLAGS"
4389 use_locale=yes
4390 # Check whether --enable-locale or --disable-locale was given.
4391 if test "${enable_locale+set}" = set; then
4392 enableval="$enable_locale"
4393 use_locale=no
4397 if test "$use_locale" = yes; then
4398 echo $ac_n "checking for _Xsetlocale in -lX11""... $ac_c" 1>&6
4399 echo "configure:4400: checking for _Xsetlocale in -lX11" >&5
4400 ac_lib_var=`echo X11'_'_Xsetlocale | sed 'y%./+-%__p_%'`
4401 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4402 echo $ac_n "(cached) $ac_c" 1>&6
4403 else
4404 ac_save_LIBS="$LIBS"
4405 LIBS="-lX11 $XLFLAGS $XLIBS $LIBS"
4406 cat > conftest.$ac_ext <<EOF
4407 #line 4408 "configure"
4408 #include "confdefs.h"
4409 /* Override any gcc2 internal prototype to avoid an error. */
4410 /* We use char because int might match the return type of a gcc2
4411 builtin and then its argument prototype would still apply. */
4412 char _Xsetlocale();
4414 int main() {
4415 _Xsetlocale()
4416 ; return 0; }
4418 if { (eval echo configure:4419: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4419 rm -rf conftest*
4420 eval "ac_cv_lib_$ac_lib_var=yes"
4421 else
4422 echo "configure: failed program was:" >&5
4423 cat conftest.$ac_ext >&5
4424 rm -rf conftest*
4425 eval "ac_cv_lib_$ac_lib_var=no"
4427 rm -f conftest*
4428 LIBS="$ac_save_LIBS"
4431 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4432 echo "$ac_t""yes" 1>&6
4433 cat >> confdefs.h <<\EOF
4434 #define X_LOCALE 1
4437 else
4438 echo "$ac_t""no" 1>&6
4444 # Check whether --enable-modelock or --disable-modelock was given.
4445 if test "${enable_modelock+set}" = set; then
4446 enableval="$enable_modelock"
4447 cat >> confdefs.h <<\EOF
4448 #define XKB_MODELOCK 1
4456 shape=yes
4457 # Check whether --enable-shape or --disable-shape was given.
4458 if test "${enable_shape+set}" = set; then
4459 enableval="$enable_shape"
4460 shape=$enableval
4461 else
4462 shape=yes
4466 added_xext=no
4468 if test "$shape" = yes; then
4469 echo $ac_n "checking for XShapeSelectInput in -lXext""... $ac_c" 1>&6
4470 echo "configure:4471: checking for XShapeSelectInput in -lXext" >&5
4471 ac_lib_var=`echo Xext'_'XShapeSelectInput | sed 'y%./+-%__p_%'`
4472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4473 echo $ac_n "(cached) $ac_c" 1>&6
4474 else
4475 ac_save_LIBS="$LIBS"
4476 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4477 cat > conftest.$ac_ext <<EOF
4478 #line 4479 "configure"
4479 #include "confdefs.h"
4480 /* Override any gcc2 internal prototype to avoid an error. */
4481 /* We use char because int might match the return type of a gcc2
4482 builtin and then its argument prototype would still apply. */
4483 char XShapeSelectInput();
4485 int main() {
4486 XShapeSelectInput()
4487 ; return 0; }
4489 if { (eval echo configure:4490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4490 rm -rf conftest*
4491 eval "ac_cv_lib_$ac_lib_var=yes"
4492 else
4493 echo "configure: failed program was:" >&5
4494 cat conftest.$ac_ext >&5
4495 rm -rf conftest*
4496 eval "ac_cv_lib_$ac_lib_var=no"
4498 rm -f conftest*
4499 LIBS="$ac_save_LIBS"
4502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4503 echo "$ac_t""yes" 1>&6
4504 XLIBS="-lXext $XLIBS"
4505 added_xext=yes
4506 cat >> confdefs.h <<\EOF
4507 #define SHAPE 1
4510 else
4511 echo "$ac_t""no" 1>&6
4512 shape=no
4519 xinerama=yes
4520 # Check whether --enable-xinerama or --disable-xinerama was given.
4521 if test "${enable_xinerama+set}" = set; then
4522 enableval="$enable_xinerama"
4523 xinerama=$enableval
4524 else
4525 xinerama=yes
4529 if test "$xinerama" = yes; then
4530 echo $ac_n "checking for X in -lXext""... $ac_c" 1>&6
4531 echo "configure:4532: checking for X in -lXext" >&5
4532 ac_lib_var=`echo Xext'_'X | sed 'y%./+-%__p_%'`
4533 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4534 echo $ac_n "(cached) $ac_c" 1>&6
4535 else
4536 ac_save_LIBS="$LIBS"
4537 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4538 cat > conftest.$ac_ext <<EOF
4539 #line 4540 "configure"
4540 #include "confdefs.h"
4541 /* Override any gcc2 internal prototype to avoid an error. */
4542 /* We use char because int might match the return type of a gcc2
4543 builtin and then its argument prototype would still apply. */
4544 char X();
4546 int main() {
4548 ; return 0; }
4550 if { (eval echo configure:4551: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4551 rm -rf conftest*
4552 eval "ac_cv_lib_$ac_lib_var=yes"
4553 else
4554 echo "configure: failed program was:" >&5
4555 cat conftest.$ac_ext >&5
4556 rm -rf conftest*
4557 eval "ac_cv_lib_$ac_lib_var=no"
4559 rm -f conftest*
4560 LIBS="$ac_save_LIBS"
4563 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4564 echo "$ac_t""yes" 1>&6
4565 XLIBS="-lXext $XLIBS"
4566 added_xext=yes
4567 cat >> confdefs.h <<\EOF
4568 #define XINERAMA 1
4571 else
4572 echo "$ac_t""no" 1>&6
4573 xinerama=no
4580 shm=yes
4581 # Check whether --enable-shm or --disable-shm was given.
4582 if test "${enable_shm+set}" = set; then
4583 enableval="$enable_shm"
4584 shm=$enableval
4585 else
4586 shm=yes
4590 if test "$shm" = yes; then
4591 echo $ac_n "checking for XShmAttach in -lXext""... $ac_c" 1>&6
4592 echo "configure:4593: checking for XShmAttach in -lXext" >&5
4593 ac_lib_var=`echo Xext'_'XShmAttach | sed 'y%./+-%__p_%'`
4594 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4595 echo $ac_n "(cached) $ac_c" 1>&6
4596 else
4597 ac_save_LIBS="$LIBS"
4598 LIBS="-lXext $XLFLAGS $XLIBS $LIBS"
4599 cat > conftest.$ac_ext <<EOF
4600 #line 4601 "configure"
4601 #include "confdefs.h"
4602 /* Override any gcc2 internal prototype to avoid an error. */
4603 /* We use char because int might match the return type of a gcc2
4604 builtin and then its argument prototype would still apply. */
4605 char XShmAttach();
4607 int main() {
4608 XShmAttach()
4609 ; return 0; }
4611 if { (eval echo configure:4612: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4612 rm -rf conftest*
4613 eval "ac_cv_lib_$ac_lib_var=yes"
4614 else
4615 echo "configure: failed program was:" >&5
4616 cat conftest.$ac_ext >&5
4617 rm -rf conftest*
4618 eval "ac_cv_lib_$ac_lib_var=no"
4620 rm -f conftest*
4621 LIBS="$ac_save_LIBS"
4624 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4625 echo "$ac_t""yes" 1>&6
4626 ok=yes
4627 else
4628 echo "$ac_t""no" 1>&6
4629 ok=no
4633 if test "$ok" = yes; then
4634 echo $ac_n "checking for shmget""... $ac_c" 1>&6
4635 echo "configure:4636: checking for shmget" >&5
4636 if eval "test \"`echo '$''{'ac_cv_func_shmget'+set}'`\" = set"; then
4637 echo $ac_n "(cached) $ac_c" 1>&6
4638 else
4639 cat > conftest.$ac_ext <<EOF
4640 #line 4641 "configure"
4641 #include "confdefs.h"
4642 /* System header to define __stub macros and hopefully few prototypes,
4643 which can conflict with char shmget(); below. */
4644 #include <assert.h>
4645 /* Override any gcc2 internal prototype to avoid an error. */
4646 /* We use char because int might match the return type of a gcc2
4647 builtin and then its argument prototype would still apply. */
4648 char shmget();
4650 int main() {
4652 /* The GNU C library defines this for functions which it implements
4653 to always fail with ENOSYS. Some functions are actually named
4654 something starting with __ and the normal name is an alias. */
4655 #if defined (__stub_shmget) || defined (__stub___shmget)
4656 choke me
4657 #else
4658 shmget();
4659 #endif
4661 ; return 0; }
4663 if { (eval echo configure:4664: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4664 rm -rf conftest*
4665 eval "ac_cv_func_shmget=yes"
4666 else
4667 echo "configure: failed program was:" >&5
4668 cat conftest.$ac_ext >&5
4669 rm -rf conftest*
4670 eval "ac_cv_func_shmget=no"
4672 rm -f conftest*
4675 if eval "test \"`echo '$ac_cv_func_'shmget`\" = yes"; then
4676 echo "$ac_t""yes" 1>&6
4677 ok=yes
4678 else
4679 echo "$ac_t""no" 1>&6
4680 ok=no
4685 if test "$ok" = yes; then
4686 if test "$added_xext" = no; then
4687 XLIBS="-lXext $XLIBS"
4689 cat >> confdefs.h <<\EOF
4690 #define XSHM 1
4700 #AC_DEFINE(R6SM)
4701 #AC_SUBST(XSMPLIBS)
4706 LIBPL=""
4709 LDFLAGS_old="$LDFLAGS"
4710 LDFLAGS="$LDFLAGS $lib_search_path"
4711 echo $ac_n "checking for PLGetString in -lPropList""... $ac_c" 1>&6
4712 echo "configure:4713: checking for PLGetString in -lPropList" >&5
4713 ac_lib_var=`echo PropList'_'PLGetString | sed 'y%./+-%__p_%'`
4714 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4715 echo $ac_n "(cached) $ac_c" 1>&6
4716 else
4717 ac_save_LIBS="$LIBS"
4718 LIBS="-lPropList $X_EXTRA_LIBS $LIBS"
4719 cat > conftest.$ac_ext <<EOF
4720 #line 4721 "configure"
4721 #include "confdefs.h"
4722 /* Override any gcc2 internal prototype to avoid an error. */
4723 /* We use char because int might match the return type of a gcc2
4724 builtin and then its argument prototype would still apply. */
4725 char PLGetString();
4727 int main() {
4728 PLGetString()
4729 ; return 0; }
4731 if { (eval echo configure:4732: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4732 rm -rf conftest*
4733 eval "ac_cv_lib_$ac_lib_var=yes"
4734 else
4735 echo "configure: failed program was:" >&5
4736 cat conftest.$ac_ext >&5
4737 rm -rf conftest*
4738 eval "ac_cv_lib_$ac_lib_var=no"
4740 rm -f conftest*
4741 LIBS="$ac_save_LIBS"
4744 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4745 echo "$ac_t""yes" 1>&6
4746 yes=yes
4747 else
4748 echo "$ac_t""no" 1>&6
4749 no=no
4752 LDFLAGS="$LDFLAGS_old"
4754 if test "x$ac_cv_lib_PropList_PLGetString" = xyes; then
4756 CPPFLAGS_old="$CPPFLAGS"
4757 CPPFLAGS="$CPPFLAGS $inc_search_path"
4758 ac_safe=`echo "proplist.h" | sed 'y%./+-%__p_%'`
4759 echo $ac_n "checking for proplist.h""... $ac_c" 1>&6
4760 echo "configure:4761: checking for proplist.h" >&5
4761 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4762 echo $ac_n "(cached) $ac_c" 1>&6
4763 else
4764 cat > conftest.$ac_ext <<EOF
4765 #line 4766 "configure"
4766 #include "confdefs.h"
4767 #include <proplist.h>
4769 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4770 { (eval echo configure:4771: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4771 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4772 if test -z "$ac_err"; then
4773 rm -rf conftest*
4774 eval "ac_cv_header_$ac_safe=yes"
4775 else
4776 echo "$ac_err" >&5
4777 echo "configure: failed program was:" >&5
4778 cat conftest.$ac_ext >&5
4779 rm -rf conftest*
4780 eval "ac_cv_header_$ac_safe=no"
4782 rm -f conftest*
4784 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4785 echo "$ac_t""yes" 1>&6
4787 else
4788 echo "$ac_t""no" 1>&6
4791 CPPFLAGS="$CPPFLAGS_old"
4793 if test "x$ac_cv_header_proplist_h" = xyes; then
4794 LIBPL="-lPropList"
4798 if test "x$LIBPL" = "x"; then
4799 echo
4800 echo "ERROR!!! libPropList is not installed, or could not be found."
4801 echo " Window Maker requires libPropList to build."
4802 echo " Please read INSTALL to find where you can find libPropList,"
4803 echo " and install it first."
4804 if test x$host_os = xlinux; then
4805 echo " If you're using some prepackaged version of libPropList,"
4806 echo " make sure you install it's \"development\" package as well."
4808 echo " If you already have it installed, try using the"
4809 if test "x$ac_cv_lib_PropList_PLGetString" != xyes; then
4810 echo " --with-libs-from flag to tell configure where the library"
4811 echo " is installed and"
4813 echo " --with-incs-from flag to tell configure where the header"
4814 echo " files are installed"
4815 exit 1
4819 CPPFLAGS_old="$CPPFLAGS"
4820 CPPFLAGS="$CPPFLAGS $inc_search_path"
4821 lPL_major_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
4822 lPL_minor_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
4823 lPL_micro_version=`echo 0.9.5 | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
4824 echo $ac_n "checking whether libPropList is newer than 0.9.5""... $ac_c" 1>&6
4825 echo "configure:4826: checking whether libPropList is newer than 0.9.5" >&5
4826 if eval "test \"`echo '$''{'ac_cv_lib_proplist_version_ok'+set}'`\" = set"; then
4827 echo $ac_n "(cached) $ac_c" 1>&6
4828 else
4829 cat > conftest.$ac_ext <<EOF
4830 #line 4831 "configure"
4831 #include "confdefs.h"
4832 /* Test version of libPropList we have */
4833 #include <proplist.h>
4835 #if !defined(PROPLIST_VERSION) || PROPLIST_VERSION < $lPL_major_version*10000 + $lPL_minor_version*100 + $lPL_micro_version
4836 #error libPropList on this system is too old. Consider upgrading to at least 0.9.5
4837 #endif
4839 int main() {
4841 ; return 0; }
4843 if { (eval echo configure:4844: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4844 rm -rf conftest*
4845 eval "ac_cv_lib_proplist_version_ok=yes"
4846 else
4847 echo "configure: failed program was:" >&5
4848 cat conftest.$ac_ext >&5
4849 rm -rf conftest*
4850 eval "ac_cv_lib_proplist_version_ok=no"
4852 rm -f conftest*
4855 if eval "test \"`echo '$ac_cv_lib_proplist_version_ok'`\" = yes"; then
4856 echo "$ac_t""yes" 1>&6
4857 goodlPL=yes
4858 else
4859 echo "$ac_t""no" 1>&6
4860 goodlPL=no
4862 CPPFLAGS="$CPPFLAGS_old"
4865 if test "$goodlPL" = no; then
4866 echo
4867 echo "ERROR!!! libPropList is an old version. Please consider upgrading"
4868 echo " to at least version 0.9.5. Older versions have bugs that"
4869 echo " may cause Window Maker to crash randomly."
4870 echo " If your libPropList is older than 0.9.2 it will also prevent"
4871 echo " Window Maker from compiling because new functions were"
4872 echo " introduced since that version."
4873 echo " Please read INSTALL to find where you can find libPropList,"
4874 echo " and upgrade it before you proceed."
4875 exit 1
4886 xpm=yes
4887 # Check whether --enable-xpm or --disable-xpm was given.
4888 if test "${enable_xpm+set}" = set; then
4889 enableval="$enable_xpm"
4890 xpm=$enableval
4891 else
4892 xpm=yes
4896 if test "$xpm" = yes; then
4898 LDFLAGS_old="$LDFLAGS"
4899 LDFLAGS="$LDFLAGS $lib_search_path"
4900 echo $ac_n "checking for XpmCreatePixmapFromData in -lXpm""... $ac_c" 1>&6
4901 echo "configure:4902: checking for XpmCreatePixmapFromData in -lXpm" >&5
4902 ac_lib_var=`echo Xpm'_'XpmCreatePixmapFromData | sed 'y%./+-%__p_%'`
4903 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4904 echo $ac_n "(cached) $ac_c" 1>&6
4905 else
4906 ac_save_LIBS="$LIBS"
4907 LIBS="-lXpm $XLFLAGS $XLIBS $LIBS"
4908 cat > conftest.$ac_ext <<EOF
4909 #line 4910 "configure"
4910 #include "confdefs.h"
4911 /* Override any gcc2 internal prototype to avoid an error. */
4912 /* We use char because int might match the return type of a gcc2
4913 builtin and then its argument prototype would still apply. */
4914 char XpmCreatePixmapFromData();
4916 int main() {
4917 XpmCreatePixmapFromData()
4918 ; return 0; }
4920 if { (eval echo configure:4921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4921 rm -rf conftest*
4922 eval "ac_cv_lib_$ac_lib_var=yes"
4923 else
4924 echo "configure: failed program was:" >&5
4925 cat conftest.$ac_ext >&5
4926 rm -rf conftest*
4927 eval "ac_cv_lib_$ac_lib_var=no"
4929 rm -f conftest*
4930 LIBS="$ac_save_LIBS"
4933 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4934 echo "$ac_t""yes" 1>&6
4935 yes=yes
4936 else
4937 echo "$ac_t""no" 1>&6
4938 no=no
4941 LDFLAGS="$LDFLAGS_old"
4944 if test "x$ac_cv_lib_Xpm_XpmCreatePixmapFromData" = xyes; then
4946 CPPFLAGS_old="$CPPFLAGS"
4947 CPPFLAGS="$CPPFLAGS $inc_search_path"
4948 ac_safe=`echo "X11/xpm.h" | sed 'y%./+-%__p_%'`
4949 echo $ac_n "checking for X11/xpm.h""... $ac_c" 1>&6
4950 echo "configure:4951: checking for X11/xpm.h" >&5
4951 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4952 echo $ac_n "(cached) $ac_c" 1>&6
4953 else
4954 cat > conftest.$ac_ext <<EOF
4955 #line 4956 "configure"
4956 #include "confdefs.h"
4957 #include <X11/xpm.h>
4959 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4960 { (eval echo configure:4961: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4961 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4962 if test -z "$ac_err"; then
4963 rm -rf conftest*
4964 eval "ac_cv_header_$ac_safe=yes"
4965 else
4966 echo "$ac_err" >&5
4967 echo "configure: failed program was:" >&5
4968 cat conftest.$ac_ext >&5
4969 rm -rf conftest*
4970 eval "ac_cv_header_$ac_safe=no"
4972 rm -f conftest*
4974 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4975 echo "$ac_t""yes" 1>&6
4977 else
4978 echo "$ac_t""no" 1>&6
4981 CPPFLAGS="$CPPFLAGS_old"
4983 if test "x$ac_cv_header_X11_xpm_h" = xyes; then
4984 GFXLIBS="$GFXLIBS -lXpm"
4985 supported_gfx="XPM"
4986 cat >> confdefs.h <<\EOF
4987 #define USE_XPM 1
4990 else
4991 supported_gfx="builtin-XPM"
4996 # for wmlib
4998 # for test
5006 png=yes
5007 # Check whether --enable-png or --disable-png was given.
5008 if test "${enable_png+set}" = set; then
5009 enableval="$enable_png"
5010 png=$enableval
5011 else
5012 png=yes
5017 if test "$png" = yes ; then
5019 LDFLAGS_old="$LDFLAGS"
5020 LDFLAGS="$LDFLAGS $lib_search_path"
5021 echo $ac_n "checking for png_get_valid in -lpng""... $ac_c" 1>&6
5022 echo "configure:5023: checking for png_get_valid in -lpng" >&5
5023 ac_lib_var=`echo png'_'png_get_valid | sed 'y%./+-%__p_%'`
5024 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5025 echo $ac_n "(cached) $ac_c" 1>&6
5026 else
5027 ac_save_LIBS="$LIBS"
5028 LIBS="-lpng -lz -lm $LIBS"
5029 cat > conftest.$ac_ext <<EOF
5030 #line 5031 "configure"
5031 #include "confdefs.h"
5032 /* Override any gcc2 internal prototype to avoid an error. */
5033 /* We use char because int might match the return type of a gcc2
5034 builtin and then its argument prototype would still apply. */
5035 char png_get_valid();
5037 int main() {
5038 png_get_valid()
5039 ; return 0; }
5041 if { (eval echo configure:5042: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5042 rm -rf conftest*
5043 eval "ac_cv_lib_$ac_lib_var=yes"
5044 else
5045 echo "configure: failed program was:" >&5
5046 cat conftest.$ac_ext >&5
5047 rm -rf conftest*
5048 eval "ac_cv_lib_$ac_lib_var=no"
5050 rm -f conftest*
5051 LIBS="$ac_save_LIBS"
5054 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5055 echo "$ac_t""yes" 1>&6
5056 yes=yes
5057 else
5058 echo "$ac_t""no" 1>&6
5059 no=no
5062 LDFLAGS="$LDFLAGS_old"
5065 if test "x$ac_cv_lib_png_png_get_valid" = xyes; then
5067 CPPFLAGS_old="$CPPFLAGS"
5068 CPPFLAGS="$CPPFLAGS $inc_search_path"
5069 ac_safe=`echo "png.h" | sed 'y%./+-%__p_%'`
5070 echo $ac_n "checking for png.h""... $ac_c" 1>&6
5071 echo "configure:5072: checking for png.h" >&5
5072 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5073 echo $ac_n "(cached) $ac_c" 1>&6
5074 else
5075 cat > conftest.$ac_ext <<EOF
5076 #line 5077 "configure"
5077 #include "confdefs.h"
5078 #include <png.h>
5080 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5081 { (eval echo configure:5082: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5082 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5083 if test -z "$ac_err"; then
5084 rm -rf conftest*
5085 eval "ac_cv_header_$ac_safe=yes"
5086 else
5087 echo "$ac_err" >&5
5088 echo "configure: failed program was:" >&5
5089 cat conftest.$ac_ext >&5
5090 rm -rf conftest*
5091 eval "ac_cv_header_$ac_safe=no"
5093 rm -f conftest*
5095 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5096 echo "$ac_t""yes" 1>&6
5098 else
5099 echo "$ac_t""no" 1>&6
5102 CPPFLAGS="$CPPFLAGS_old"
5104 if test "x$ac_cv_header_png_h" = xyes; then
5105 GFXLIBS="$GFXLIBS -lpng -lz"
5106 supported_gfx="$supported_gfx PNG"
5107 cat >> confdefs.h <<\EOF
5108 #define USE_PNG 1
5116 jpeg=yes
5117 ljpeg=""
5118 # Check whether --enable-jpeg or --disable-jpeg was given.
5119 if test "${enable_jpeg+set}" = set; then
5120 enableval="$enable_jpeg"
5121 jpeg=$enableval
5122 else
5123 jpeg=yes
5127 if test "$jpeg" = yes; then
5129 LDFLAGS_old="$LDFLAGS"
5130 LDFLAGS="$LDFLAGS $lib_search_path"
5131 echo $ac_n "checking for jpeg_destroy_compress in -ljpeg""... $ac_c" 1>&6
5132 echo "configure:5133: checking for jpeg_destroy_compress in -ljpeg" >&5
5133 ac_lib_var=`echo jpeg'_'jpeg_destroy_compress | sed 'y%./+-%__p_%'`
5134 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5135 echo $ac_n "(cached) $ac_c" 1>&6
5136 else
5137 ac_save_LIBS="$LIBS"
5138 LIBS="-ljpeg $LIBS"
5139 cat > conftest.$ac_ext <<EOF
5140 #line 5141 "configure"
5141 #include "confdefs.h"
5142 /* Override any gcc2 internal prototype to avoid an error. */
5143 /* We use char because int might match the return type of a gcc2
5144 builtin and then its argument prototype would still apply. */
5145 char jpeg_destroy_compress();
5147 int main() {
5148 jpeg_destroy_compress()
5149 ; return 0; }
5151 if { (eval echo configure:5152: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5152 rm -rf conftest*
5153 eval "ac_cv_lib_$ac_lib_var=yes"
5154 else
5155 echo "configure: failed program was:" >&5
5156 cat conftest.$ac_ext >&5
5157 rm -rf conftest*
5158 eval "ac_cv_lib_$ac_lib_var=no"
5160 rm -f conftest*
5161 LIBS="$ac_save_LIBS"
5164 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5165 echo "$ac_t""yes" 1>&6
5166 yes=yes
5167 else
5168 echo "$ac_t""no" 1>&6
5169 no=no
5172 LDFLAGS="$LDFLAGS_old"
5175 if test "x$ac_cv_lib_jpeg_jpeg_destroy_compress" = xyes; then
5177 ljpeg="-ljpeg"
5180 CPPFLAGS_old="$CPPFLAGS"
5181 CPPFLAGS="$CPPFLAGS $inc_search_path"
5182 ac_safe=`echo "jpeglib.h" | sed 'y%./+-%__p_%'`
5183 echo $ac_n "checking for jpeglib.h""... $ac_c" 1>&6
5184 echo "configure:5185: checking for jpeglib.h" >&5
5185 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5186 echo $ac_n "(cached) $ac_c" 1>&6
5187 else
5188 cat > conftest.$ac_ext <<EOF
5189 #line 5190 "configure"
5190 #include "confdefs.h"
5191 #include <jpeglib.h>
5193 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5194 { (eval echo configure:5195: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5195 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5196 if test -z "$ac_err"; then
5197 rm -rf conftest*
5198 eval "ac_cv_header_$ac_safe=yes"
5199 else
5200 echo "$ac_err" >&5
5201 echo "configure: failed program was:" >&5
5202 cat conftest.$ac_ext >&5
5203 rm -rf conftest*
5204 eval "ac_cv_header_$ac_safe=no"
5206 rm -f conftest*
5208 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5209 echo "$ac_t""yes" 1>&6
5211 else
5212 echo "$ac_t""no" 1>&6
5215 CPPFLAGS="$CPPFLAGS_old"
5217 if test "x$ac_cv_header_jpeglib_h" = xyes; then
5218 GFXLIBS="$GFXLIBS -ljpeg"
5219 supported_gfx="$supported_gfx JPEG"
5220 cat >> confdefs.h <<\EOF
5221 #define USE_JPEG 1
5229 gif=yes
5230 # Check whether --enable-gif or --disable-gif was given.
5231 if test "${enable_gif+set}" = set; then
5232 enableval="$enable_gif"
5233 gif=$enableval
5234 else
5235 gif=yes
5239 if test "$gif" = yes; then
5240 my_libname=""
5242 LDFLAGS_old="$LDFLAGS"
5243 LDFLAGS="$LDFLAGS $lib_search_path"
5244 echo $ac_n "checking for DGifOpenFileName in -lungif""... $ac_c" 1>&6
5245 echo "configure:5246: checking for DGifOpenFileName in -lungif" >&5
5246 ac_lib_var=`echo ungif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5247 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5248 echo $ac_n "(cached) $ac_c" 1>&6
5249 else
5250 ac_save_LIBS="$LIBS"
5251 LIBS="-lungif $XLFLAGS $XLIBS $LIBS"
5252 cat > conftest.$ac_ext <<EOF
5253 #line 5254 "configure"
5254 #include "confdefs.h"
5255 /* Override any gcc2 internal prototype to avoid an error. */
5256 /* We use char because int might match the return type of a gcc2
5257 builtin and then its argument prototype would still apply. */
5258 char DGifOpenFileName();
5260 int main() {
5261 DGifOpenFileName()
5262 ; return 0; }
5264 if { (eval echo configure:5265: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5265 rm -rf conftest*
5266 eval "ac_cv_lib_$ac_lib_var=yes"
5267 else
5268 echo "configure: failed program was:" >&5
5269 cat conftest.$ac_ext >&5
5270 rm -rf conftest*
5271 eval "ac_cv_lib_$ac_lib_var=no"
5273 rm -f conftest*
5274 LIBS="$ac_save_LIBS"
5277 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5278 echo "$ac_t""yes" 1>&6
5279 yes=yes
5280 else
5281 echo "$ac_t""no" 1>&6
5282 no=no
5285 LDFLAGS="$LDFLAGS_old"
5287 if test "x$ac_cv_lib_ungif_DGifOpenFileName" = xyes; then
5288 my_libname=-lungif
5290 if test "x$my_libname" = x; then
5292 LDFLAGS_old="$LDFLAGS"
5293 LDFLAGS="$LDFLAGS $lib_search_path"
5294 echo $ac_n "checking for DGifOpenFileName in -lgif""... $ac_c" 1>&6
5295 echo "configure:5296: checking for DGifOpenFileName in -lgif" >&5
5296 ac_lib_var=`echo gif'_'DGifOpenFileName | sed 'y%./+-%__p_%'`
5297 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5298 echo $ac_n "(cached) $ac_c" 1>&6
5299 else
5300 ac_save_LIBS="$LIBS"
5301 LIBS="-lgif $XLFLAGS $XLIBS $LIBS"
5302 cat > conftest.$ac_ext <<EOF
5303 #line 5304 "configure"
5304 #include "confdefs.h"
5305 /* Override any gcc2 internal prototype to avoid an error. */
5306 /* We use char because int might match the return type of a gcc2
5307 builtin and then its argument prototype would still apply. */
5308 char DGifOpenFileName();
5310 int main() {
5311 DGifOpenFileName()
5312 ; return 0; }
5314 if { (eval echo configure:5315: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5315 rm -rf conftest*
5316 eval "ac_cv_lib_$ac_lib_var=yes"
5317 else
5318 echo "configure: failed program was:" >&5
5319 cat conftest.$ac_ext >&5
5320 rm -rf conftest*
5321 eval "ac_cv_lib_$ac_lib_var=no"
5323 rm -f conftest*
5324 LIBS="$ac_save_LIBS"
5327 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5328 echo "$ac_t""yes" 1>&6
5329 yes=yes
5330 else
5331 echo "$ac_t""no" 1>&6
5332 no=no
5335 LDFLAGS="$LDFLAGS_old"
5337 if test "x$ac_cv_lib_gif_DGifOpenFileName" = xyes; then
5338 my_libname=-lgif
5342 if test "$my_libname" != x; then
5344 CPPFLAGS_old="$CPPFLAGS"
5345 CPPFLAGS="$CPPFLAGS $inc_search_path"
5346 ac_safe=`echo "gif_lib.h" | sed 'y%./+-%__p_%'`
5347 echo $ac_n "checking for gif_lib.h""... $ac_c" 1>&6
5348 echo "configure:5349: checking for gif_lib.h" >&5
5349 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5350 echo $ac_n "(cached) $ac_c" 1>&6
5351 else
5352 cat > conftest.$ac_ext <<EOF
5353 #line 5354 "configure"
5354 #include "confdefs.h"
5355 #include <gif_lib.h>
5357 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5358 { (eval echo configure:5359: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5359 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5360 if test -z "$ac_err"; then
5361 rm -rf conftest*
5362 eval "ac_cv_header_$ac_safe=yes"
5363 else
5364 echo "$ac_err" >&5
5365 echo "configure: failed program was:" >&5
5366 cat conftest.$ac_ext >&5
5367 rm -rf conftest*
5368 eval "ac_cv_header_$ac_safe=no"
5370 rm -f conftest*
5372 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5373 echo "$ac_t""yes" 1>&6
5375 else
5376 echo "$ac_t""no" 1>&6
5379 CPPFLAGS="$CPPFLAGS_old"
5381 if test "x$ac_cv_header_gif_lib_h" = xyes; then
5382 GFXLIBS="$GFXLIBS $my_libname"
5383 supported_gfx="$supported_gfx GIF"
5384 cat >> confdefs.h <<\EOF
5385 #define USE_GIF 1
5394 # Check whether --enable-tiff or --disable-tiff was given.
5395 if test "${enable_tiff+set}" = set; then
5396 enableval="$enable_tiff"
5397 tif=$enableval
5398 else
5399 tif=yes
5404 # TIFF can optionally have JPEG and/or zlib support. Must find out
5405 # when they are supported so that correct library flags are passed during
5406 # detection and linkage
5409 # By default use xpm icons if tiff is not found.
5410 ICONEXT="xpm"
5413 if test "$tif" = yes; then
5414 my_libname=""
5416 LDFLAGS_old="$LDFLAGS"
5417 LDFLAGS="$LDFLAGS $lib_search_path"
5418 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5419 echo "configure:5420: checking for TIFFGetVersion in -ltiff" >&5
5420 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5421 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5422 echo $ac_n "(cached) $ac_c" 1>&6
5423 else
5424 ac_save_LIBS="$LIBS"
5425 LIBS="-ltiff -lm $LIBS"
5426 cat > conftest.$ac_ext <<EOF
5427 #line 5428 "configure"
5428 #include "confdefs.h"
5429 /* Override any gcc2 internal prototype to avoid an error. */
5430 /* We use char because int might match the return type of a gcc2
5431 builtin and then its argument prototype would still apply. */
5432 char TIFFGetVersion();
5434 int main() {
5435 TIFFGetVersion()
5436 ; return 0; }
5438 if { (eval echo configure:5439: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5439 rm -rf conftest*
5440 eval "ac_cv_lib_$ac_lib_var=yes"
5441 else
5442 echo "configure: failed program was:" >&5
5443 cat conftest.$ac_ext >&5
5444 rm -rf conftest*
5445 eval "ac_cv_lib_$ac_lib_var=no"
5447 rm -f conftest*
5448 LIBS="$ac_save_LIBS"
5451 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5452 echo "$ac_t""yes" 1>&6
5453 yes=yes
5454 else
5455 echo "$ac_t""no" 1>&6
5456 no=no
5459 LDFLAGS="$LDFLAGS_old"
5461 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5462 my_libname="-ltiff"
5464 unset ac_cv_lib_tiff_TIFFGetVersion
5465 if test "x$my_libname" = x; then
5467 LDFLAGS_old="$LDFLAGS"
5468 LDFLAGS="$LDFLAGS $lib_search_path"
5469 echo $ac_n "checking for TIFFGetVersion in -ltiff""... $ac_c" 1>&6
5470 echo "configure:5471: checking for TIFFGetVersion in -ltiff" >&5
5471 ac_lib_var=`echo tiff'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5472 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5473 echo $ac_n "(cached) $ac_c" 1>&6
5474 else
5475 ac_save_LIBS="$LIBS"
5476 LIBS="-ltiff $ljpeg -lz -lm $LIBS"
5477 cat > conftest.$ac_ext <<EOF
5478 #line 5479 "configure"
5479 #include "confdefs.h"
5480 /* Override any gcc2 internal prototype to avoid an error. */
5481 /* We use char because int might match the return type of a gcc2
5482 builtin and then its argument prototype would still apply. */
5483 char TIFFGetVersion();
5485 int main() {
5486 TIFFGetVersion()
5487 ; return 0; }
5489 if { (eval echo configure:5490: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5490 rm -rf conftest*
5491 eval "ac_cv_lib_$ac_lib_var=yes"
5492 else
5493 echo "configure: failed program was:" >&5
5494 cat conftest.$ac_ext >&5
5495 rm -rf conftest*
5496 eval "ac_cv_lib_$ac_lib_var=no"
5498 rm -f conftest*
5499 LIBS="$ac_save_LIBS"
5502 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5503 echo "$ac_t""yes" 1>&6
5504 yes=yes
5505 else
5506 echo "$ac_t""no" 1>&6
5507 no=no
5510 LDFLAGS="$LDFLAGS_old"
5512 if test "x$ac_cv_lib_tiff_TIFFGetVersion" = xyes; then
5513 my_libname="-ltiff -lz"
5517 if test "x$my_libname" = x; then
5519 LDFLAGS_old="$LDFLAGS"
5520 LDFLAGS="$LDFLAGS $lib_search_path"
5521 echo $ac_n "checking for TIFFGetVersion in -ltiff34""... $ac_c" 1>&6
5522 echo "configure:5523: checking for TIFFGetVersion in -ltiff34" >&5
5523 ac_lib_var=`echo tiff34'_'TIFFGetVersion | sed 'y%./+-%__p_%'`
5524 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
5525 echo $ac_n "(cached) $ac_c" 1>&6
5526 else
5527 ac_save_LIBS="$LIBS"
5528 LIBS="-ltiff34 $ljpeg -lm $LIBS"
5529 cat > conftest.$ac_ext <<EOF
5530 #line 5531 "configure"
5531 #include "confdefs.h"
5532 /* Override any gcc2 internal prototype to avoid an error. */
5533 /* We use char because int might match the return type of a gcc2
5534 builtin and then its argument prototype would still apply. */
5535 char TIFFGetVersion();
5537 int main() {
5538 TIFFGetVersion()
5539 ; return 0; }
5541 if { (eval echo configure:5542: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
5542 rm -rf conftest*
5543 eval "ac_cv_lib_$ac_lib_var=yes"
5544 else
5545 echo "configure: failed program was:" >&5
5546 cat conftest.$ac_ext >&5
5547 rm -rf conftest*
5548 eval "ac_cv_lib_$ac_lib_var=no"
5550 rm -f conftest*
5551 LIBS="$ac_save_LIBS"
5554 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
5555 echo "$ac_t""yes" 1>&6
5556 yes=yes
5557 else
5558 echo "$ac_t""no" 1>&6
5559 no=no
5562 LDFLAGS="$LDFLAGS_old"
5564 if test "x$ac_cv_lib_tiff34_TIFFGetVersion" = xyes; then
5565 my_libname="-ltiff34"
5570 if test "x$my_libname" != x; then
5572 CPPFLAGS_old="$CPPFLAGS"
5573 CPPFLAGS="$CPPFLAGS $inc_search_path"
5574 ac_safe=`echo "tiffio.h" | sed 'y%./+-%__p_%'`
5575 echo $ac_n "checking for tiffio.h""... $ac_c" 1>&6
5576 echo "configure:5577: checking for tiffio.h" >&5
5577 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
5578 echo $ac_n "(cached) $ac_c" 1>&6
5579 else
5580 cat > conftest.$ac_ext <<EOF
5581 #line 5582 "configure"
5582 #include "confdefs.h"
5583 #include <tiffio.h>
5585 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
5586 { (eval echo configure:5587: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
5587 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
5588 if test -z "$ac_err"; then
5589 rm -rf conftest*
5590 eval "ac_cv_header_$ac_safe=yes"
5591 else
5592 echo "$ac_err" >&5
5593 echo "configure: failed program was:" >&5
5594 cat conftest.$ac_ext >&5
5595 rm -rf conftest*
5596 eval "ac_cv_header_$ac_safe=no"
5598 rm -f conftest*
5600 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5601 echo "$ac_t""yes" 1>&6
5603 else
5604 echo "$ac_t""no" 1>&6
5607 CPPFLAGS="$CPPFLAGS_old"
5609 if test "x$ac_cv_header_tiffio_h" = xyes; then
5610 GFXLIBS="$my_libname $GFXLIBS"
5611 ICONEXT="tiff"
5612 supported_gfx="$supported_gfx TIFF"
5613 cat >> confdefs.h <<\EOF
5614 #define USE_TIFF 1
5621 LIBRARY_SEARCH_PATH="$lib_search_path"
5622 HEADER_SEARCH_PATH="$inc_search_path"
5634 # Check whether --enable-debug or --disable-debug was given.
5635 if test "${enable_debug+set}" = set; then
5636 enableval="$enable_debug"
5638 else
5639 enable_debug=no
5643 if test "$enable_debug" = yes; then
5644 DFLAGS="-g -DDEBUG"
5645 # Efence makes things too slow. Add it by hand in the Makefiles
5646 # if it is really needed.
5647 # AC_CHECK_LIB(efence, malloc, LIBS="$LIBS -lefence")
5648 else
5649 DFLAGS="-DWITHOUT_NANA"
5654 sound=yes
5655 # Check whether --enable-sound or --disable-sound was given.
5656 if test "${enable_sound+set}" = set; then
5657 enableval="$enable_sound"
5658 sound=$enableval
5659 else
5660 sound=yes
5663 if test "$sound" = yes; then
5664 cat >> confdefs.h <<\EOF
5665 #define WMSOUND 1
5671 # AC_PREFIX_PROGRAM(wmaker)
5673 # Check whether --with-pixmapdir or --without-pixmapdir was given.
5674 if test "${with_pixmapdir+set}" = set; then
5675 withval="$with_pixmapdir"
5680 if test "x$with_pixmapdir" != "x"; then
5681 pixmapdir=$with_pixmapdir
5682 else
5683 pixmapdir=`eval echo ${datadir}/pixmaps`
5686 cat >> confdefs.h <<EOF
5687 #define PIXMAPDIR "$pixmapdir"
5691 pkgdatadir=`eval echo $datadir`
5692 cat >> confdefs.h <<EOF
5693 #define PKGDATADIR "$pkgdatadir/WindowMaker"
5697 _sysconfdir=`eval echo $sysconfdir`
5698 cat >> confdefs.h <<EOF
5699 #define SYSCONFDIR "$_sysconfdir"
5705 appspath=""
5707 # Check whether --with-appspath or --without-appspath was given.
5708 if test "${with_appspath+set}" = set; then
5709 withval="$with_appspath"
5710 appspath=$withval
5714 if test "x$appspath" = "x"; then
5715 gnustepdir='$(prefix)/GNUstep'
5717 if test "x$GNUSTEP_LOCAL_ROOT" != "x" ; then
5718 gnustepdir=`echo "$GNUSTEP_LOCAL_ROOT" | sed -e "s|^${prefix}|prefix|"`
5719 gnustepdir=`echo $gnustepdir | sed -e 's|^prefix|${prefix}|'`
5722 with_appspath=$gnustepdir/Apps
5725 wprefsdir=$with_appspath/WPrefs.app
5731 # Check whether --enable-single-icon or --disable-single-icon was given.
5732 if test "${enable_single_icon+set}" = set; then
5733 enableval="$enable_single_icon"
5734 if test "$enableval" = yes; then
5735 cat >> confdefs.h <<\EOF
5736 #define REDUCE_APPICONS 1
5744 # Check whether --enable-usermenu or --disable-usermenu was given.
5745 if test "${enable_usermenu+set}" = set; then
5746 enableval="$enable_usermenu"
5747 if test "$enableval" = yes; then
5748 cat >> confdefs.h <<\EOF
5749 #define USER_MENU 1
5760 trap '' 1 2 15
5761 cat > confcache <<\EOF
5762 # This file is a shell script that caches the results of configure
5763 # tests run on this system so they can be shared between configure
5764 # scripts and configure runs. It is not useful on other systems.
5765 # If it contains results you don't want to keep, you may remove or edit it.
5767 # By default, configure uses ./config.cache as the cache file,
5768 # creating it if it does not exist already. You can give configure
5769 # the --cache-file=FILE option to use a different cache file; that is
5770 # what configure does when it calls configure scripts in
5771 # subdirectories, so they share the cache.
5772 # Giving --cache-file=/dev/null disables caching, for debugging configure.
5773 # config.status only pays attention to the cache file if you give it the
5774 # --recheck option to rerun configure.
5777 # The following way of writing the cache mishandles newlines in values,
5778 # but we know of no workaround that is simple, portable, and efficient.
5779 # So, don't put newlines in cache variables' values.
5780 # Ultrix sh set writes to stderr and can't be redirected directly,
5781 # and sets the high bit in the cache file unless we assign to the vars.
5782 (set) 2>&1 |
5783 case `(ac_space=' '; set | grep ac_space) 2>&1` in
5784 *ac_space=\ *)
5785 # `set' does not quote correctly, so add quotes (double-quote substitution
5786 # turns \\\\ into \\, and sed turns \\ into \).
5787 sed -n \
5788 -e "s/'/'\\\\''/g" \
5789 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
5792 # `set' quotes correctly as required by POSIX, so do not add quotes.
5793 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
5795 esac >> confcache
5796 if cmp -s $cache_file confcache; then
5798 else
5799 if test -w $cache_file; then
5800 echo "updating cache $cache_file"
5801 cat confcache > $cache_file
5802 else
5803 echo "not updating unwritable cache $cache_file"
5806 rm -f confcache
5808 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
5810 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5811 # Let make expand exec_prefix.
5812 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5814 # Any assignment to VPATH causes Sun make to only execute
5815 # the first set of double-colon rules, so remove it if not needed.
5816 # If there is a colon in the path, we need to keep it.
5817 if test "x$srcdir" = x.; then
5818 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
5821 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
5823 DEFS=-DHAVE_CONFIG_H
5825 # Without the "./", some shells look in PATH for config.status.
5826 : ${CONFIG_STATUS=./config.status}
5828 echo creating $CONFIG_STATUS
5829 rm -f $CONFIG_STATUS
5830 cat > $CONFIG_STATUS <<EOF
5831 #! /bin/sh
5832 # Generated automatically by configure.
5833 # Run this file to recreate the current configuration.
5834 # This directory was configured as follows,
5835 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
5837 # $0 $ac_configure_args
5839 # Compiler output produced by configure, useful for debugging
5840 # configure, is in ./config.log if it exists.
5842 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
5843 for ac_option
5845 case "\$ac_option" in
5846 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5847 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
5848 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
5849 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
5850 echo "$CONFIG_STATUS generated by autoconf version 2.13"
5851 exit 0 ;;
5852 -help | --help | --hel | --he | --h)
5853 echo "\$ac_cs_usage"; exit 0 ;;
5854 *) echo "\$ac_cs_usage"; exit 1 ;;
5855 esac
5856 done
5858 ac_given_srcdir=$srcdir
5859 ac_given_INSTALL="$INSTALL"
5861 trap 'rm -fr `echo "Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5862 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5863 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5864 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5865 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5866 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5867 WindowMaker/Themes/Makefile \
5868 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
5869 WPrefs.app/po/Makefile src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
5871 cat >> $CONFIG_STATUS <<EOF
5873 # Protect against being on the right side of a sed subst in config.status.
5874 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
5875 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
5876 $ac_vpsub
5877 $extrasub
5878 s%@SHELL@%$SHELL%g
5879 s%@CFLAGS@%$CFLAGS%g
5880 s%@CPPFLAGS@%$CPPFLAGS%g
5881 s%@CXXFLAGS@%$CXXFLAGS%g
5882 s%@FFLAGS@%$FFLAGS%g
5883 s%@DEFS@%$DEFS%g
5884 s%@LDFLAGS@%$LDFLAGS%g
5885 s%@LIBS@%$LIBS%g
5886 s%@exec_prefix@%$exec_prefix%g
5887 s%@prefix@%$prefix%g
5888 s%@program_transform_name@%$program_transform_name%g
5889 s%@bindir@%$bindir%g
5890 s%@sbindir@%$sbindir%g
5891 s%@libexecdir@%$libexecdir%g
5892 s%@datadir@%$datadir%g
5893 s%@sysconfdir@%$sysconfdir%g
5894 s%@sharedstatedir@%$sharedstatedir%g
5895 s%@localstatedir@%$localstatedir%g
5896 s%@libdir@%$libdir%g
5897 s%@includedir@%$includedir%g
5898 s%@oldincludedir@%$oldincludedir%g
5899 s%@infodir@%$infodir%g
5900 s%@mandir@%$mandir%g
5901 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
5902 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
5903 s%@INSTALL_DATA@%$INSTALL_DATA%g
5904 s%@PACKAGE@%$PACKAGE%g
5905 s%@VERSION@%$VERSION%g
5906 s%@ACLOCAL@%$ACLOCAL%g
5907 s%@AUTOCONF@%$AUTOCONF%g
5908 s%@AUTOMAKE@%$AUTOMAKE%g
5909 s%@AUTOHEADER@%$AUTOHEADER%g
5910 s%@MAKEINFO@%$MAKEINFO%g
5911 s%@SET_MAKE@%$SET_MAKE%g
5912 s%@host@%$host%g
5913 s%@host_alias@%$host_alias%g
5914 s%@host_cpu@%$host_cpu%g
5915 s%@host_vendor@%$host_vendor%g
5916 s%@host_os@%$host_os%g
5917 s%@build@%$build%g
5918 s%@build_alias@%$build_alias%g
5919 s%@build_cpu@%$build_cpu%g
5920 s%@build_vendor@%$build_vendor%g
5921 s%@build_os@%$build_os%g
5922 s%@RANLIB@%$RANLIB%g
5923 s%@CC@%$CC%g
5924 s%@LN_S@%$LN_S%g
5925 s%@LIBTOOL@%$LIBTOOL%g
5926 s%@CPP@%$CPP%g
5927 s%@ALLOCA@%$ALLOCA%g
5928 s%@CPP_PATH@%$CPP_PATH%g
5929 s%@XGETTEXT@%$XGETTEXT%g
5930 s%@DLLIBS@%$DLLIBS%g
5931 s%@INTLIBS@%$INTLIBS%g
5932 s%@NLSDIR@%$NLSDIR%g
5933 s%@MOFILES@%$MOFILES%g
5934 s%@WPMOFILES@%$WPMOFILES%g
5935 s%@LITE@%$LITE%g
5936 s%@NETLIBS@%$NETLIBS%g
5937 s%@X_CFLAGS@%$X_CFLAGS%g
5938 s%@X_PRE_LIBS@%$X_PRE_LIBS%g
5939 s%@X_LIBS@%$X_LIBS%g
5940 s%@X_EXTRA_LIBS@%$X_EXTRA_LIBS%g
5941 s%@X_LIBRARY_PATH@%$X_LIBRARY_PATH%g
5942 s%@LIBPL@%$LIBPL%g
5943 s%@XCFLAGS@%$XCFLAGS%g
5944 s%@XLFLAGS@%$XLFLAGS%g
5945 s%@XLIBS@%$XLIBS%g
5946 s%@LIBRARY_SEARCH_PATH@%$LIBRARY_SEARCH_PATH%g
5947 s%@HEADER_SEARCH_PATH@%$HEADER_SEARCH_PATH%g
5948 s%@GFXLIBS@%$GFXLIBS%g
5949 s%@ICONEXT@%$ICONEXT%g
5950 s%@DFLAGS@%$DFLAGS%g
5951 s%@wprefsdir@%$wprefsdir%g
5953 CEOF
5956 cat >> $CONFIG_STATUS <<\EOF
5958 # Split the substitutions into bite-sized pieces for seds with
5959 # small command number limits, like on Digital OSF/1 and HP-UX.
5960 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
5961 ac_file=1 # Number of current file.
5962 ac_beg=1 # First line for current file.
5963 ac_end=$ac_max_sed_cmds # Line after last line for current file.
5964 ac_more_lines=:
5965 ac_sed_cmds=""
5966 while $ac_more_lines; do
5967 if test $ac_beg -gt 1; then
5968 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
5969 else
5970 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
5972 if test ! -s conftest.s$ac_file; then
5973 ac_more_lines=false
5974 rm -f conftest.s$ac_file
5975 else
5976 if test -z "$ac_sed_cmds"; then
5977 ac_sed_cmds="sed -f conftest.s$ac_file"
5978 else
5979 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
5981 ac_file=`expr $ac_file + 1`
5982 ac_beg=$ac_end
5983 ac_end=`expr $ac_end + $ac_max_sed_cmds`
5985 done
5986 if test -z "$ac_sed_cmds"; then
5987 ac_sed_cmds=cat
5991 cat >> $CONFIG_STATUS <<EOF
5993 CONFIG_FILES=\${CONFIG_FILES-"Makefile po/Makefile util/Makefile test/Makefile wmlib/Makefile \
5994 WINGs/Makefile WINGs/Resources/Makefile src/Makefile src/wconfig.h \
5995 wrlib/Makefile doc/Makefile WindowMaker/Makefile contrib/Makefile \
5996 WindowMaker/Backgrounds/Makefile WindowMaker/Defaults/Makefile \
5997 WindowMaker/IconSets/Makefile WindowMaker/Icons/Makefile \
5998 WindowMaker/Pixmaps/Makefile WindowMaker/Styles/Makefile \
5999 WindowMaker/Themes/Makefile \
6000 WPrefs.app/Makefile WPrefs.app/tiff/Makefile WPrefs.app/xpm/Makefile \
6001 WPrefs.app/po/Makefile "}
6003 cat >> $CONFIG_STATUS <<\EOF
6004 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
6005 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6006 case "$ac_file" in
6007 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6008 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6009 *) ac_file_in="${ac_file}.in" ;;
6010 esac
6012 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
6014 # Remove last slash and all that follows it. Not all systems have dirname.
6015 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6016 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6017 # The file is in a subdirectory.
6018 test ! -d "$ac_dir" && mkdir "$ac_dir"
6019 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
6020 # A "../" for each directory in $ac_dir_suffix.
6021 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
6022 else
6023 ac_dir_suffix= ac_dots=
6026 case "$ac_given_srcdir" in
6027 .) srcdir=.
6028 if test -z "$ac_dots"; then top_srcdir=.
6029 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
6030 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
6031 *) # Relative path.
6032 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
6033 top_srcdir="$ac_dots$ac_given_srcdir" ;;
6034 esac
6036 case "$ac_given_INSTALL" in
6037 [/$]*) INSTALL="$ac_given_INSTALL" ;;
6038 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
6039 esac
6041 echo creating "$ac_file"
6042 rm -f "$ac_file"
6043 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
6044 case "$ac_file" in
6045 *Makefile*) ac_comsub="1i\\
6046 # $configure_input" ;;
6047 *) ac_comsub= ;;
6048 esac
6050 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6051 sed -e "$ac_comsub
6052 s%@configure_input@%$configure_input%g
6053 s%@srcdir@%$srcdir%g
6054 s%@top_srcdir@%$top_srcdir%g
6055 s%@INSTALL@%$INSTALL%g
6056 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
6057 fi; done
6058 rm -f conftest.s*
6060 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
6061 # NAME is the cpp macro being defined and VALUE is the value it is being given.
6063 # ac_d sets the value in "#define NAME VALUE" lines.
6064 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
6065 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
6066 ac_dC='\3'
6067 ac_dD='%g'
6068 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
6069 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6070 ac_uB='\([ ]\)%\1#\2define\3'
6071 ac_uC=' '
6072 ac_uD='\4%g'
6073 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
6074 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
6075 ac_eB='$%\1#\2define\3'
6076 ac_eC=' '
6077 ac_eD='%g'
6079 if test "${CONFIG_HEADERS+set}" != set; then
6081 cat >> $CONFIG_STATUS <<EOF
6082 CONFIG_HEADERS="src/config.h"
6084 cat >> $CONFIG_STATUS <<\EOF
6086 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
6087 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
6088 case "$ac_file" in
6089 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
6090 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
6091 *) ac_file_in="${ac_file}.in" ;;
6092 esac
6094 echo creating $ac_file
6096 rm -f conftest.frag conftest.in conftest.out
6097 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
6098 cat $ac_file_inputs > conftest.in
6102 # Transform confdefs.h into a sed script conftest.vals that substitutes
6103 # the proper values into config.h.in to produce config.h. And first:
6104 # Protect against being on the right side of a sed subst in config.status.
6105 # Protect against being in an unquoted here document in config.status.
6106 rm -f conftest.vals
6107 cat > conftest.hdr <<\EOF
6108 s/[\\&%]/\\&/g
6109 s%[\\$`]%\\&%g
6110 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
6111 s%ac_d%ac_u%gp
6112 s%ac_u%ac_e%gp
6114 sed -n -f conftest.hdr confdefs.h > conftest.vals
6115 rm -f conftest.hdr
6117 # This sed command replaces #undef with comments. This is necessary, for
6118 # example, in the case of _POSIX_SOURCE, which is predefined and required
6119 # on some systems where configure will not decide to define it.
6120 cat >> conftest.vals <<\EOF
6121 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
6124 # Break up conftest.vals because some shells have a limit on
6125 # the size of here documents, and old seds have small limits too.
6127 rm -f conftest.tail
6128 while :
6130 ac_lines=`grep -c . conftest.vals`
6131 # grep -c gives empty output for an empty file on some AIX systems.
6132 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
6133 # Write a limited-size here document to conftest.frag.
6134 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
6135 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
6136 echo 'CEOF
6137 sed -f conftest.frag conftest.in > conftest.out
6138 rm -f conftest.in
6139 mv conftest.out conftest.in
6140 ' >> $CONFIG_STATUS
6141 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
6142 rm -f conftest.vals
6143 mv conftest.tail conftest.vals
6144 done
6145 rm -f conftest.vals
6147 cat >> $CONFIG_STATUS <<\EOF
6148 rm -f conftest.frag conftest.h
6149 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
6150 cat conftest.in >> conftest.h
6151 rm -f conftest.in
6152 if cmp -s $ac_file conftest.h 2>/dev/null; then
6153 echo "$ac_file is unchanged"
6154 rm -f conftest.h
6155 else
6156 # Remove last slash and all that follows it. Not all systems have dirname.
6157 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
6158 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
6159 # The file is in a subdirectory.
6160 test ! -d "$ac_dir" && mkdir "$ac_dir"
6162 rm -f $ac_file
6163 mv conftest.h $ac_file
6165 fi; done
6168 cat >> $CONFIG_STATUS <<EOF
6172 cat >> $CONFIG_STATUS <<\EOF
6173 test -z "$CONFIG_HEADERS" || echo timestamp > src/stamp-h
6175 exit 0
6177 chmod +x $CONFIG_STATUS
6178 rm -fr confdefs* $ac_clean_files
6179 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
6187 cat <<EOF >get-wraster-flags
6188 #!/bin/sh
6190 prefix="$prefix"
6191 exec_prefix=\$prefix
6193 WCFLAGS="-I\$prefix/include $inc_search_path"
6194 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6195 WLIBS="-lwraster $GFXLIBS $XLIBS -lm"
6197 usage="Usage: get-wraster-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6199 if test \$# -eq 0; then
6200 echo "\${usage}" 1>&2
6201 exit 1
6204 while test \$# -gt 0; do
6205 case \$1 in
6206 --cflags)
6207 echo \$WCFLAGS
6209 --ldflags|--lflags)
6210 echo \$WLFLAGS
6212 --libs)
6213 echo \$WLIBS
6216 echo "\${usage}" 1>&2
6217 exit 1
6219 esac
6220 shift
6221 done
6226 cat <<EOF >get-wings-flags
6227 #!/bin/sh
6229 prefix="$prefix"
6230 exec_prefix=\$prefix
6232 WCFLAGS="-I\$prefix/include $inc_search_path"
6233 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6234 WLIBS="-lWINGs -lwraster $GFXLIBS $XLIBS -lm $NETLIBS -lPropList"
6236 usage="Usage: get-wings-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6238 if test \$# -eq 0; then
6239 echo "\${usage}" 1>&2
6240 exit 1
6243 while test \$# -gt 0; do
6244 case \$1 in
6245 --cflags)
6246 echo \$WCFLAGS
6248 --ldflags|--lflags)
6249 echo \$WLFLAGS
6251 --libs)
6252 echo \$WLIBS
6255 echo "\${usage}" 1>&2
6256 exit 1
6258 esac
6259 shift
6260 done
6265 cat <<EOF >get-wutil-flags
6266 #!/bin/sh
6268 prefix="$prefix"
6269 exec_prefix=\$prefix
6271 WCFLAGS="-I\$prefix/include $inc_search_path"
6272 WLFLAGS="-L\$exec_prefix/lib $lib_search_path"
6273 WLIBS="-lWUtil $NETLIBS -lPropList"
6275 usage="Usage: get-wutil-flags #lp#--cflags#rp# #lp#--ldflags#rp# #lp#--libs#rp#"
6277 if test \$# -eq 0; then
6278 echo "\${usage}" 1>&2
6279 exit 1
6282 while test \$# -gt 0; do
6283 case \$1 in
6284 --cflags)
6285 echo \$WCFLAGS
6287 --ldflags|--lflags)
6288 echo \$WLFLAGS
6290 --libs)
6291 echo \$WLIBS
6294 echo "\${usage}" 1>&2
6295 exit 1
6297 esac
6298 shift
6299 done
6304 sed 's/#lp#/[/g' get-wraster-flags | sed 's/#rp#/]/g' > wrlib/get-wraster-flags
6305 sed 's/#lp#/[/g' get-wings-flags | sed 's/#rp#/]/g' > WINGs/get-wings-flags
6306 sed 's/#lp#/[/g' get-wutil-flags | sed 's/#rp#/]/g' > WINGs/get-wutil-flags
6308 chmod 755 wrlib/get-wraster-flags WINGs/get-wings-flags WINGs/get-wutil-flags
6310 rm -f get-wraster-flags get-wings-flags get-wutil-flags
6314 supported_gfx="$supported_gfx builtin-PPM"
6316 if test "x$MOFILES" = "x"; then
6317 mof=none
6318 else
6319 mof=$MOFILES
6323 echo
6324 echo "Window Maker was configured as follows:"
6325 echo
6326 echo "Installation path prefix: $prefix"
6327 echo "Installation path prefix for binaries: $_bindir"
6328 echo "Installation path for WPrefs.app: $wprefsdir" | sed -e 's|\$(prefix)|'"$prefix|"
6329 echo "Graphic format libraries: $supported_gfx"
6330 echo "Sound support: $sound"
6331 echo "Translated message files to install: $mof"
6332 if test "x$MOFILES" != "x"; then
6333 echo "Installation path of translated messages: $NLSDIR" | sed -e 's|\$(prefix)|'"$prefix|"
6337 if test "x$ac_cv_header_jpeglib_h" != xyes; then
6338 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"
6339 echo
6340 echo "JPEG support will not be included because the JPEG library is"
6341 echo "not installed correctly or was not found. Background images"
6342 echo "from themes will not display as they usually are JPEG files."
6343 echo
6344 echo "To fix, download and install the jpeg library and/or make sure you"
6345 echo "installed all jpeg related packages, SPECIALLY the development packages"
6346 echo "like jpeg-devel (if you use some prepackaged version of libjpeg)."
6347 echo
6348 echo "WARNING WARNING WARNING WARNING WARNING WARNING WARNING"