improved about text
[gpiv.git] / configure
blob5b5f03b9c7428303b6d075fae3796e8d32cf1bd1
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 --with-gnome-includes Specify location of GNOME headers"
16 ac_help="$ac_help
17 --with-gnome-libs Specify location of GNOME libs"
18 ac_help="$ac_help
19 --with-gnome Specify prefix for GNOME files"
20 ac_help="$ac_help
21 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
22 ac_help="$ac_help
23 --enable-iso-c Try to warn if code is not ISO C "
24 ac_help="$ac_help
25 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
26 ac_help="$ac_help
27 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
28 ac_help="$ac_help
29 --disable-gtktest Do not try to compile and run a test GTK program"
30 ac_help="$ac_help
31 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
32 ac_help="$ac_help
33 --disable-nls do not use Native Language Support"
34 ac_help="$ac_help
35 --with-included-gettext use the GNU gettext library included here"
36 ac_help="$ac_help
37 --enable-img-width=WIDTH maximum image width to \
38 be used (default SVGA)"
39 ac_help="$ac_help
40 --enable-img-height=HEIGHT maximum image height to \
41 be used (default SVGA)"
42 ac_help="$ac_help
43 --enable-debug debug version (more verbose)"
45 # Initialize some variables set by options.
46 # The variables have the same names as the options, with
47 # dashes changed to underlines.
48 build=NONE
49 cache_file=./config.cache
50 exec_prefix=NONE
51 host=NONE
52 no_create=
53 nonopt=NONE
54 no_recursion=
55 prefix=NONE
56 program_prefix=NONE
57 program_suffix=NONE
58 program_transform_name=s,x,x,
59 silent=
60 site=
61 srcdir=
62 target=NONE
63 verbose=
64 x_includes=NONE
65 x_libraries=NONE
66 bindir='${exec_prefix}/bin'
67 sbindir='${exec_prefix}/sbin'
68 libexecdir='${exec_prefix}/libexec'
69 datadir='${prefix}/share'
70 sysconfdir='${prefix}/etc'
71 sharedstatedir='${prefix}/com'
72 localstatedir='${prefix}/var'
73 libdir='${exec_prefix}/lib'
74 includedir='${prefix}/include'
75 oldincludedir='/usr/include'
76 infodir='${prefix}/info'
77 mandir='${prefix}/man'
79 # Initialize some other variables.
80 subdirs=
81 MFLAGS= MAKEFLAGS=
82 SHELL=${CONFIG_SHELL-/bin/sh}
83 # Maximum number of lines to put in a shell here document.
84 ac_max_here_lines=12
86 ac_prev=
87 for ac_option
90 # If the previous option needs an argument, assign it.
91 if test -n "$ac_prev"; then
92 eval "$ac_prev=\$ac_option"
93 ac_prev=
94 continue
97 case "$ac_option" in
98 -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
99 *) ac_optarg= ;;
100 esac
102 # Accept the important Cygnus configure options, so we can diagnose typos.
104 case "$ac_option" in
106 -bindir | --bindir | --bindi | --bind | --bin | --bi)
107 ac_prev=bindir ;;
108 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
109 bindir="$ac_optarg" ;;
111 -build | --build | --buil | --bui | --bu)
112 ac_prev=build ;;
113 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
114 build="$ac_optarg" ;;
116 -cache-file | --cache-file | --cache-fil | --cache-fi \
117 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
118 ac_prev=cache_file ;;
119 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
120 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
121 cache_file="$ac_optarg" ;;
123 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
124 ac_prev=datadir ;;
125 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
126 | --da=*)
127 datadir="$ac_optarg" ;;
129 -disable-* | --disable-*)
130 ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
131 # Reject names that are not valid shell variable names.
132 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
133 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
135 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
136 eval "enable_${ac_feature}=no" ;;
138 -enable-* | --enable-*)
139 ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
140 # Reject names that are not valid shell variable names.
141 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
142 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
144 ac_feature=`echo $ac_feature| sed 's/-/_/g'`
145 case "$ac_option" in
146 *=*) ;;
147 *) ac_optarg=yes ;;
148 esac
149 eval "enable_${ac_feature}='$ac_optarg'" ;;
151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
153 | --exec | --exe | --ex)
154 ac_prev=exec_prefix ;;
155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
157 | --exec=* | --exe=* | --ex=*)
158 exec_prefix="$ac_optarg" ;;
160 -gas | --gas | --ga | --g)
161 # Obsolete; use --with-gas.
162 with_gas=yes ;;
164 -help | --help | --hel | --he)
165 # Omit some internal or obsolete options to make the list less imposing.
166 # This message is too long to be a string in the A/UX 3.1 sh.
167 cat << EOF
168 Usage: configure [options] [host]
169 Options: [defaults in brackets after descriptions]
170 Configuration:
171 --cache-file=FILE cache test results in FILE
172 --help print this message
173 --no-create do not create output files
174 --quiet, --silent do not print \`checking...' messages
175 --version print the version of autoconf that created configure
176 Directory and file names:
177 --prefix=PREFIX install architecture-independent files in PREFIX
178 [$ac_default_prefix]
179 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
180 [same as prefix]
181 --bindir=DIR user executables in DIR [EPREFIX/bin]
182 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
183 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
184 --datadir=DIR read-only architecture-independent data in DIR
185 [PREFIX/share]
186 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
187 --sharedstatedir=DIR modifiable architecture-independent data in DIR
188 [PREFIX/com]
189 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
190 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
191 --includedir=DIR C header files in DIR [PREFIX/include]
192 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
193 --infodir=DIR info documentation in DIR [PREFIX/info]
194 --mandir=DIR man documentation in DIR [PREFIX/man]
195 --srcdir=DIR find the sources in DIR [configure dir or ..]
196 --program-prefix=PREFIX prepend PREFIX to installed program names
197 --program-suffix=SUFFIX append SUFFIX to installed program names
198 --program-transform-name=PROGRAM
199 run sed PROGRAM on installed program names
201 cat << EOF
202 Host type:
203 --build=BUILD configure for building on BUILD [BUILD=HOST]
204 --host=HOST configure for HOST [guessed]
205 --target=TARGET configure for TARGET [TARGET=HOST]
206 Features and packages:
207 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
208 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
209 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
210 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
211 --x-includes=DIR X include files are in DIR
212 --x-libraries=DIR X library files are in DIR
214 if test -n "$ac_help"; then
215 echo "--enable and --with options recognized:$ac_help"
217 exit 0 ;;
219 -host | --host | --hos | --ho)
220 ac_prev=host ;;
221 -host=* | --host=* | --hos=* | --ho=*)
222 host="$ac_optarg" ;;
224 -includedir | --includedir | --includedi | --included | --include \
225 | --includ | --inclu | --incl | --inc)
226 ac_prev=includedir ;;
227 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
228 | --includ=* | --inclu=* | --incl=* | --inc=*)
229 includedir="$ac_optarg" ;;
231 -infodir | --infodir | --infodi | --infod | --info | --inf)
232 ac_prev=infodir ;;
233 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
234 infodir="$ac_optarg" ;;
236 -libdir | --libdir | --libdi | --libd)
237 ac_prev=libdir ;;
238 -libdir=* | --libdir=* | --libdi=* | --libd=*)
239 libdir="$ac_optarg" ;;
241 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
242 | --libexe | --libex | --libe)
243 ac_prev=libexecdir ;;
244 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
245 | --libexe=* | --libex=* | --libe=*)
246 libexecdir="$ac_optarg" ;;
248 -localstatedir | --localstatedir | --localstatedi | --localstated \
249 | --localstate | --localstat | --localsta | --localst \
250 | --locals | --local | --loca | --loc | --lo)
251 ac_prev=localstatedir ;;
252 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
253 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
254 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
255 localstatedir="$ac_optarg" ;;
257 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
258 ac_prev=mandir ;;
259 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
260 mandir="$ac_optarg" ;;
262 -nfp | --nfp | --nf)
263 # Obsolete; use --without-fp.
264 with_fp=no ;;
266 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
267 | --no-cr | --no-c)
268 no_create=yes ;;
270 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
271 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
272 no_recursion=yes ;;
274 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
275 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
276 | --oldin | --oldi | --old | --ol | --o)
277 ac_prev=oldincludedir ;;
278 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
279 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
280 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
281 oldincludedir="$ac_optarg" ;;
283 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
284 ac_prev=prefix ;;
285 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
286 prefix="$ac_optarg" ;;
288 -program-prefix | --program-prefix | --program-prefi | --program-pref \
289 | --program-pre | --program-pr | --program-p)
290 ac_prev=program_prefix ;;
291 -program-prefix=* | --program-prefix=* | --program-prefi=* \
292 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
293 program_prefix="$ac_optarg" ;;
295 -program-suffix | --program-suffix | --program-suffi | --program-suff \
296 | --program-suf | --program-su | --program-s)
297 ac_prev=program_suffix ;;
298 -program-suffix=* | --program-suffix=* | --program-suffi=* \
299 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
300 program_suffix="$ac_optarg" ;;
302 -program-transform-name | --program-transform-name \
303 | --program-transform-nam | --program-transform-na \
304 | --program-transform-n | --program-transform- \
305 | --program-transform | --program-transfor \
306 | --program-transfo | --program-transf \
307 | --program-trans | --program-tran \
308 | --progr-tra | --program-tr | --program-t)
309 ac_prev=program_transform_name ;;
310 -program-transform-name=* | --program-transform-name=* \
311 | --program-transform-nam=* | --program-transform-na=* \
312 | --program-transform-n=* | --program-transform-=* \
313 | --program-transform=* | --program-transfor=* \
314 | --program-transfo=* | --program-transf=* \
315 | --program-trans=* | --program-tran=* \
316 | --progr-tra=* | --program-tr=* | --program-t=*)
317 program_transform_name="$ac_optarg" ;;
319 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
320 | -silent | --silent | --silen | --sile | --sil)
321 silent=yes ;;
323 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
324 ac_prev=sbindir ;;
325 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
326 | --sbi=* | --sb=*)
327 sbindir="$ac_optarg" ;;
329 -sharedstatedir | --sharedstatedir | --sharedstatedi \
330 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
331 | --sharedst | --shareds | --shared | --share | --shar \
332 | --sha | --sh)
333 ac_prev=sharedstatedir ;;
334 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
335 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
336 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
337 | --sha=* | --sh=*)
338 sharedstatedir="$ac_optarg" ;;
340 -site | --site | --sit)
341 ac_prev=site ;;
342 -site=* | --site=* | --sit=*)
343 site="$ac_optarg" ;;
345 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
346 ac_prev=srcdir ;;
347 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
348 srcdir="$ac_optarg" ;;
350 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
351 | --syscon | --sysco | --sysc | --sys | --sy)
352 ac_prev=sysconfdir ;;
353 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
354 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
355 sysconfdir="$ac_optarg" ;;
357 -target | --target | --targe | --targ | --tar | --ta | --t)
358 ac_prev=target ;;
359 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
360 target="$ac_optarg" ;;
362 -v | -verbose | --verbose | --verbos | --verbo | --verb)
363 verbose=yes ;;
365 -version | --version | --versio | --versi | --vers)
366 echo "configure generated by autoconf version 2.13"
367 exit 0 ;;
369 -with-* | --with-*)
370 ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
371 # Reject names that are not valid shell variable names.
372 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
373 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
375 ac_package=`echo $ac_package| sed 's/-/_/g'`
376 case "$ac_option" in
377 *=*) ;;
378 *) ac_optarg=yes ;;
379 esac
380 eval "with_${ac_package}='$ac_optarg'" ;;
382 -without-* | --without-*)
383 ac_package=`echo $ac_option|sed -e 's/-*without-//'`
384 # Reject names that are not valid shell variable names.
385 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
386 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
388 ac_package=`echo $ac_package| sed 's/-/_/g'`
389 eval "with_${ac_package}=no" ;;
391 --x)
392 # Obsolete; use --with-x.
393 with_x=yes ;;
395 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
396 | --x-incl | --x-inc | --x-in | --x-i)
397 ac_prev=x_includes ;;
398 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
399 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
400 x_includes="$ac_optarg" ;;
402 -x-libraries | --x-libraries | --x-librarie | --x-librari \
403 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
404 ac_prev=x_libraries ;;
405 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
406 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
407 x_libraries="$ac_optarg" ;;
409 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
413 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
414 echo "configure: warning: $ac_option: invalid host type" 1>&2
416 if test "x$nonopt" != xNONE; then
417 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
419 nonopt="$ac_option"
422 esac
423 done
425 if test -n "$ac_prev"; then
426 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
429 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
431 # File descriptor usage:
432 # 0 standard input
433 # 1 file creation
434 # 2 errors and warnings
435 # 3 some systems may open it to /dev/tty
436 # 4 used on the Kubota Titan
437 # 6 checking for... messages and results
438 # 5 compiler messages saved in config.log
439 if test "$silent" = yes; then
440 exec 6>/dev/null
441 else
442 exec 6>&1
444 exec 5>./config.log
446 echo "\
447 This file contains any messages produced by compilers while
448 running configure, to aid debugging if configure makes a mistake.
449 " 1>&5
451 # Strip out --no-create and --no-recursion so they do not pile up.
452 # Also quote any args containing shell metacharacters.
453 ac_configure_args=
454 for ac_arg
456 case "$ac_arg" in
457 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
458 | --no-cr | --no-c) ;;
459 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
460 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
461 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
462 ac_configure_args="$ac_configure_args '$ac_arg'" ;;
463 *) ac_configure_args="$ac_configure_args $ac_arg" ;;
464 esac
465 done
467 # NLS nuisances.
468 # Only set these to C if already set. These must not be set unconditionally
469 # because not all systems understand e.g. LANG=C (notably SCO).
470 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
471 # Non-C LC_CTYPE values break the ctype check.
472 if test "${LANG+set}" = set; then LANG=C; export LANG; fi
473 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
474 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
475 if test "${LC_CTYPE+set}" = set; then LC_CTYPE=C; export LC_CTYPE; fi
477 # confdefs.h avoids OS command line length limits that DEFS can exceed.
478 rm -rf conftest* confdefs.h
479 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
480 echo > confdefs.h
482 # A filename unique to this package, relative to the directory that
483 # configure is in, which we can look for to find out if srcdir is correct.
484 ac_unique_file=configure.in
486 # Find the source files, if location was not specified.
487 if test -z "$srcdir"; then
488 ac_srcdir_defaulted=yes
489 # Try the directory containing this script, then its parent.
490 ac_prog=$0
491 ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
492 test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
493 srcdir=$ac_confdir
494 if test ! -r $srcdir/$ac_unique_file; then
495 srcdir=..
497 else
498 ac_srcdir_defaulted=no
500 if test ! -r $srcdir/$ac_unique_file; then
501 if test "$ac_srcdir_defaulted" = yes; then
502 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
503 else
504 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
507 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
509 # Prefer explicitly selected file to automatically selected ones.
510 if test -z "$CONFIG_SITE"; then
511 if test "x$prefix" != xNONE; then
512 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
513 else
514 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
517 for ac_site_file in $CONFIG_SITE; do
518 if test -r "$ac_site_file"; then
519 echo "loading site script $ac_site_file"
520 . "$ac_site_file"
522 done
524 if test -r "$cache_file"; then
525 echo "loading cache $cache_file"
526 . $cache_file
527 else
528 echo "creating cache $cache_file"
529 > $cache_file
532 ac_ext=c
533 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
534 ac_cpp='$CPP $CPPFLAGS'
535 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
536 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
537 cross_compiling=$ac_cv_prog_cc_cross
539 ac_exeext=
540 ac_objext=o
541 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
542 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
543 if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
544 ac_n= ac_c='
545 ' ac_t=' '
546 else
547 ac_n=-n ac_c= ac_t=
549 else
550 ac_n= ac_c='\c' ac_t=
554 ac_aux_dir=
555 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
556 if test -f $ac_dir/install-sh; then
557 ac_aux_dir=$ac_dir
558 ac_install_sh="$ac_aux_dir/install-sh -c"
559 break
560 elif test -f $ac_dir/install.sh; then
561 ac_aux_dir=$ac_dir
562 ac_install_sh="$ac_aux_dir/install.sh -c"
563 break
565 done
566 if test -z "$ac_aux_dir"; then
567 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
569 ac_config_guess=$ac_aux_dir/config.guess
570 ac_config_sub=$ac_aux_dir/config.sub
571 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
573 # Find a good install program. We prefer a C program (faster),
574 # so one script is as good as another. But avoid the broken or
575 # incompatible versions:
576 # SysV /etc/install, /usr/sbin/install
577 # SunOS /usr/etc/install
578 # IRIX /sbin/install
579 # AIX /bin/install
580 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
581 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
582 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
583 # ./install, which can be erroneously created by make from ./install.sh.
584 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
585 echo "configure:586: checking for a BSD compatible install" >&5
586 if test -z "$INSTALL"; then
587 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
588 echo $ac_n "(cached) $ac_c" 1>&6
589 else
590 IFS="${IFS= }"; ac_save_IFS="$IFS"; IFS=":"
591 for ac_dir in $PATH; do
592 # Account for people who put trailing slashes in PATH elements.
593 case "$ac_dir/" in
594 /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
596 # OSF1 and SCO ODT 3.0 have their own names for install.
597 # Don't use installbsd from OSF since it installs stuff as root
598 # by default.
599 for ac_prog in ginstall scoinst install; do
600 if test -f $ac_dir/$ac_prog; then
601 if test $ac_prog = install &&
602 grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
603 # AIX install. It has an incompatible calling convention.
605 else
606 ac_cv_path_install="$ac_dir/$ac_prog -c"
607 break 2
610 done
612 esac
613 done
614 IFS="$ac_save_IFS"
617 if test "${ac_cv_path_install+set}" = set; then
618 INSTALL="$ac_cv_path_install"
619 else
620 # As a last resort, use the slow shell script. We don't cache a
621 # path for INSTALL within a source directory, because that will
622 # break other packages using the cache if that directory is
623 # removed, or if the path is relative.
624 INSTALL="$ac_install_sh"
627 echo "$ac_t""$INSTALL" 1>&6
629 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
630 # It thinks the first close brace ends the variable substitution.
631 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
633 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL_PROGRAM}'
635 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
637 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
638 echo "configure:639: checking whether build environment is sane" >&5
639 # Just in case
640 sleep 1
641 echo timestamp > conftestfile
642 # Do `set' in a subshell so we don't clobber the current shell's
643 # arguments. Must try -L first in case configure is actually a
644 # symlink; some systems play weird games with the mod time of symlinks
645 # (eg FreeBSD returns the mod time of the symlink's containing
646 # directory).
647 if (
648 set X `ls -Lt $srcdir/configure conftestfile 2> /dev/null`
649 if test "$*" = "X"; then
650 # -L didn't work.
651 set X `ls -t $srcdir/configure conftestfile`
653 if test "$*" != "X $srcdir/configure conftestfile" \
654 && test "$*" != "X conftestfile $srcdir/configure"; then
656 # If neither matched, then we have a broken ls. This can happen
657 # if, for instance, CONFIG_SHELL is bash and it inherits a
658 # broken ls alias from the environment. This has actually
659 # happened. Such a system could not be considered "sane".
660 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
661 alias in your environment" 1>&2; exit 1; }
664 test "$2" = conftestfile
666 then
667 # Ok.
669 else
670 { echo "configure: error: newly created file is older than distributed files!
671 Check your system clock" 1>&2; exit 1; }
673 rm -f conftest*
674 echo "$ac_t""yes" 1>&6
675 if test "$program_transform_name" = s,x,x,; then
676 program_transform_name=
677 else
678 # Double any \ or $. echo might interpret backslashes.
679 cat <<\EOF_SED > conftestsed
680 s,\\,\\\\,g; s,\$,$$,g
681 EOF_SED
682 program_transform_name="`echo $program_transform_name|sed -f conftestsed`"
683 rm -f conftestsed
685 test "$program_prefix" != NONE &&
686 program_transform_name="s,^,${program_prefix},; $program_transform_name"
687 # Use a double $ so make ignores it.
688 test "$program_suffix" != NONE &&
689 program_transform_name="s,\$\$,${program_suffix},; $program_transform_name"
691 # sed with no file args requires a program.
692 test "$program_transform_name" = "" && program_transform_name="s,x,x,"
694 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${MAKE-make} sets \${MAKE}" >&5
696 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y%./+-%__p_%'`
697 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
698 echo $ac_n "(cached) $ac_c" 1>&6
699 else
700 cat > conftestmake <<\EOF
701 all:
702 @echo 'ac_maketemp="${MAKE}"'
704 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
705 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
706 if test -n "$ac_maketemp"; then
707 eval ac_cv_prog_make_${ac_make}_set=yes
708 else
709 eval ac_cv_prog_make_${ac_make}_set=no
711 rm -f conftestmake
713 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
714 echo "$ac_t""yes" 1>&6
715 SET_MAKE=
716 else
717 echo "$ac_t""no" 1>&6
718 SET_MAKE="MAKE=${MAKE-make}"
722 PACKAGE=gpiv
724 VERSION=0.1.1
726 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status; then
727 { echo "configure: error: source directory already configured; run "make distclean" there first" 1>&2; exit 1; }
729 cat >> confdefs.h <<EOF
730 #define PACKAGE "$PACKAGE"
733 cat >> confdefs.h <<EOF
734 #define VERSION "$VERSION"
739 missing_dir=`cd $ac_aux_dir && pwd`
740 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
741 echo "configure:742: checking for working aclocal" >&5
742 # Run test in a subshell; some versions of sh will print an error if
743 # an executable is not found, even if stderr is redirected.
744 # Redirect stdin to placate older versions of autoconf. Sigh.
745 if (aclocal --version) < /dev/null > /dev/null 2>&1; then
746 ACLOCAL=aclocal
747 echo "$ac_t""found" 1>&6
748 else
749 ACLOCAL="$missing_dir/missing aclocal"
750 echo "$ac_t""missing" 1>&6
753 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
754 echo "configure:755: checking for working autoconf" >&5
755 # Run test in a subshell; some versions of sh will print an error if
756 # an executable is not found, even if stderr is redirected.
757 # Redirect stdin to placate older versions of autoconf. Sigh.
758 if (autoconf --version) < /dev/null > /dev/null 2>&1; then
759 AUTOCONF=autoconf
760 echo "$ac_t""found" 1>&6
761 else
762 AUTOCONF="$missing_dir/missing autoconf"
763 echo "$ac_t""missing" 1>&6
766 echo $ac_n "checking for working automake""... $ac_c" 1>&6
767 echo "configure:768: checking for working automake" >&5
768 # Run test in a subshell; some versions of sh will print an error if
769 # an executable is not found, even if stderr is redirected.
770 # Redirect stdin to placate older versions of autoconf. Sigh.
771 if (automake --version) < /dev/null > /dev/null 2>&1; then
772 AUTOMAKE=automake
773 echo "$ac_t""found" 1>&6
774 else
775 AUTOMAKE="$missing_dir/missing automake"
776 echo "$ac_t""missing" 1>&6
779 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
780 echo "configure:781: checking for working autoheader" >&5
781 # Run test in a subshell; some versions of sh will print an error if
782 # an executable is not found, even if stderr is redirected.
783 # Redirect stdin to placate older versions of autoconf. Sigh.
784 if (autoheader --version) < /dev/null > /dev/null 2>&1; then
785 AUTOHEADER=autoheader
786 echo "$ac_t""found" 1>&6
787 else
788 AUTOHEADER="$missing_dir/missing autoheader"
789 echo "$ac_t""missing" 1>&6
792 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
793 echo "configure:794: checking for working makeinfo" >&5
794 # Run test in a subshell; some versions of sh will print an error if
795 # an executable is not found, even if stderr is redirected.
796 # Redirect stdin to placate older versions of autoconf. Sigh.
797 if (makeinfo --version) < /dev/null > /dev/null 2>&1; then
798 MAKEINFO=makeinfo
799 echo "$ac_t""found" 1>&6
800 else
801 MAKEINFO="$missing_dir/missing makeinfo"
802 echo "$ac_t""missing" 1>&6
813 if test x = y; then
814 INSIDE_GNOME_COMMON_TRUE=
815 INSIDE_GNOME_COMMON_FALSE='#'
816 else
817 INSIDE_GNOME_COMMON_TRUE='#'
818 INSIDE_GNOME_COMMON_FALSE=
821 test -n "$ACLOCAL_FLAGS" && ACLOCAL="$ACLOCAL $ACLOCAL_FLAGS"
823 for k in macros ; do ACLOCAL="$ACLOCAL -I $k" ; done
836 # Check whether --with-gnome-includes or --without-gnome-includes was given.
837 if test "${with_gnome_includes+set}" = set; then
838 withval="$with_gnome_includes"
840 CFLAGS="$CFLAGS -I$withval"
845 # Check whether --with-gnome-libs or --without-gnome-libs was given.
846 if test "${with_gnome_libs+set}" = set; then
847 withval="$with_gnome_libs"
849 LDFLAGS="$LDFLAGS -L$withval"
850 gnome_prefix=$withval
855 # Check whether --with-gnome or --without-gnome was given.
856 if test "${with_gnome+set}" = set; then
857 withval="$with_gnome"
858 if test x$withval = xyes; then
859 want_gnome=yes
861 else
862 if test "x$withval" = xno; then
863 want_gnome=no
864 else
865 want_gnome=yes
866 LDFLAGS="$LDFLAGS -L$withval/lib"
867 CFLAGS="$CFLAGS -I$withval/include"
868 gnome_prefix=$withval/lib
871 else
872 want_gnome=yes
876 if test "x$want_gnome" = xyes; then
878 # Extract the first word of "gnome-config", so it can be a program name with args.
879 set dummy gnome-config; ac_word=$2
880 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
881 echo "configure:882: checking for $ac_word" >&5
882 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
883 echo $ac_n "(cached) $ac_c" 1>&6
884 else
885 case "$GNOME_CONFIG" in
887 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a path.
889 ?:/*)
890 ac_cv_path_GNOME_CONFIG="$GNOME_CONFIG" # Let the user override the test with a dos path.
893 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
894 ac_dummy="$PATH"
895 for ac_dir in $ac_dummy; do
896 test -z "$ac_dir" && ac_dir=.
897 if test -f $ac_dir/$ac_word; then
898 ac_cv_path_GNOME_CONFIG="$ac_dir/$ac_word"
899 break
901 done
902 IFS="$ac_save_ifs"
903 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG="no"
905 esac
907 GNOME_CONFIG="$ac_cv_path_GNOME_CONFIG"
908 if test -n "$GNOME_CONFIG"; then
909 echo "$ac_t""$GNOME_CONFIG" 1>&6
910 else
911 echo "$ac_t""no" 1>&6
914 if test "$GNOME_CONFIG" = "no"; then
915 no_gnome_config="yes"
916 else
917 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
918 echo "configure:919: checking if $GNOME_CONFIG works" >&5
919 if $GNOME_CONFIG --libs-only-l gnome >/dev/null 2>&1; then
920 echo "$ac_t""yes" 1>&6
923 # Extract the first word of "orbit-config", so it can be a program name with args.
924 set dummy orbit-config; ac_word=$2
925 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
926 echo "configure:927: checking for $ac_word" >&5
927 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
928 echo $ac_n "(cached) $ac_c" 1>&6
929 else
930 case "$ORBIT_CONFIG" in
932 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a path.
934 ?:/*)
935 ac_cv_path_ORBIT_CONFIG="$ORBIT_CONFIG" # Let the user override the test with a dos path.
938 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
939 ac_dummy="$PATH"
940 for ac_dir in $ac_dummy; do
941 test -z "$ac_dir" && ac_dir=.
942 if test -f $ac_dir/$ac_word; then
943 ac_cv_path_ORBIT_CONFIG="$ac_dir/$ac_word"
944 break
946 done
947 IFS="$ac_save_ifs"
948 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG="no"
950 esac
952 ORBIT_CONFIG="$ac_cv_path_ORBIT_CONFIG"
953 if test -n "$ORBIT_CONFIG"; then
954 echo "$ac_t""$ORBIT_CONFIG" 1>&6
955 else
956 echo "$ac_t""no" 1>&6
959 # Extract the first word of "orbit-idl", so it can be a program name with args.
960 set dummy orbit-idl; ac_word=$2
961 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
962 echo "configure:963: checking for $ac_word" >&5
963 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
964 echo $ac_n "(cached) $ac_c" 1>&6
965 else
966 case "$ORBIT_IDL" in
968 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a path.
970 ?:/*)
971 ac_cv_path_ORBIT_IDL="$ORBIT_IDL" # Let the user override the test with a dos path.
974 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
975 ac_dummy="$PATH"
976 for ac_dir in $ac_dummy; do
977 test -z "$ac_dir" && ac_dir=.
978 if test -f $ac_dir/$ac_word; then
979 ac_cv_path_ORBIT_IDL="$ac_dir/$ac_word"
980 break
982 done
983 IFS="$ac_save_ifs"
984 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL="no"
986 esac
988 ORBIT_IDL="$ac_cv_path_ORBIT_IDL"
989 if test -n "$ORBIT_IDL"; then
990 echo "$ac_t""$ORBIT_IDL" 1>&6
991 else
992 echo "$ac_t""no" 1>&6
995 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
996 echo "configure:997: checking for working ORBit environment" >&5
997 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
998 echo $ac_n "(cached) $ac_c" 1>&6
999 else
1001 if test x$ORBIT_CONFIG = xno -o x$ORBIT_IDL = xno; then
1002 gnome_cv_orbit_found=no
1003 else
1004 gnome_cv_orbit_found=yes
1009 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1012 if test x$gnome_cv_orbit_found = xyes; then
1013 HAVE_ORBIT_TRUE=
1014 HAVE_ORBIT_FALSE='#'
1015 else
1016 HAVE_ORBIT_TRUE='#'
1017 HAVE_ORBIT_FALSE=
1019 if test x$gnome_cv_orbit_found = xyes; then
1021 ORBIT_CFLAGS=`orbit-config --cflags client server`
1022 ORBIT_LIBS=`orbit-config --use-service=name --libs client server`
1025 else
1026 if test xfail = xfailure; then
1027 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1031 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1032 echo "configure:1033: checking for gnorba libraries" >&5
1033 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1034 echo $ac_n "(cached) $ac_c" 1>&6
1035 else
1037 gnome_cv_gnorba_found=no
1038 if test x$gnome_cv_orbit_found = xyes; then
1039 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1040 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1041 if test -n "$GNORBA_LIBS"; then
1042 gnome_cv_gnorba_found=yes
1048 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1051 if test x$gnome_cv_gnorba_found = xyes; then
1052 HAVE_GNORBA_TRUE=
1053 HAVE_GNORBA_FALSE='#'
1054 else
1055 HAVE_GNORBA_TRUE='#'
1056 HAVE_GNORBA_FALSE=
1058 if test x$gnome_cv_orbit_found = xyes; then
1060 GNORBA_CFLAGS="`gnome-config --cflags gnorba gnomeui`"
1061 GNORBA_LIBS="`gnome-config --libs gnorba gnomeui`"
1064 else
1065 if test xfail = xfailure; then
1066 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1070 GNOME_LIBS="`$GNOME_CONFIG --libs-only-l gnome`"
1071 GNOMEUI_LIBS="`$GNOME_CONFIG --libs-only-l gnomeui`"
1072 GNOMEGNORBA_LIBS="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1073 GTKXMHTML_LIBS="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1074 ZVT_LIBS="`$GNOME_CONFIG --libs-only-l zvt`"
1075 GNOME_LIBDIR="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1076 GNOME_INCLUDEDIR="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1078 else
1079 echo "$ac_t""no" 1>&6
1080 no_gnome_config="yes"
1084 if test x$exec_prefix = xNONE; then
1085 if test x$prefix = xNONE; then
1086 gnome_prefix=$ac_default_prefix/lib
1087 else
1088 gnome_prefix=$prefix/lib
1090 else
1091 gnome_prefix=`eval echo \`echo $libdir\``
1094 if test "$no_gnome_config" = "yes"; then
1095 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1096 echo "configure:1097: checking for gnomeConf.sh file in $gnome_prefix" >&5
1097 if test -f $gnome_prefix/gnomeConf.sh; then
1098 echo "$ac_t""found" 1>&6
1099 echo "loading gnome configuration from" \
1100 "$gnome_prefix/gnomeConf.sh"
1101 . $gnome_prefix/gnomeConf.sh
1103 else
1104 echo "$ac_t""not found" 1>&6
1105 if test xfail = xfail; then
1106 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1112 if test -n ""; then
1113 n=""
1114 for i in $n; do
1115 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1116 echo "configure:1117: checking extra library \"$i\"" >&5
1117 case $i in
1118 applets)
1120 GNOME_APPLETS_LIBS=`$GNOME_CONFIG --libs-only-l applets`
1121 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1122 docklets)
1124 GNOME_DOCKLETS_LIBS=`$GNOME_CONFIG --libs-only-l docklets`
1125 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1126 capplet)
1128 GNOME_CAPPLET_LIBS=`$GNOME_CONFIG --libs-only-l capplet`
1129 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1131 echo "$ac_t""unknown library" 1>&6
1132 esac
1133 done
1138 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1139 echo "configure:1140: checking for strerror in -lcposix" >&5
1140 ac_lib_var=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1141 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1142 echo $ac_n "(cached) $ac_c" 1>&6
1143 else
1144 ac_save_LIBS="$LIBS"
1145 LIBS="-lcposix $LIBS"
1146 cat > conftest.$ac_ext <<EOF
1147 #line 1148 "configure"
1148 #include "confdefs.h"
1149 /* Override any gcc2 internal prototype to avoid an error. */
1150 /* We use char because int might match the return type of a gcc2
1151 builtin and then its argument prototype would still apply. */
1152 char strerror();
1154 int main() {
1155 strerror()
1156 ; return 0; }
1158 if { (eval echo configure:1159: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1159 rm -rf conftest*
1160 eval "ac_cv_lib_$ac_lib_var=yes"
1161 else
1162 echo "configure: failed program was:" >&5
1163 cat conftest.$ac_ext >&5
1164 rm -rf conftest*
1165 eval "ac_cv_lib_$ac_lib_var=no"
1167 rm -f conftest*
1168 LIBS="$ac_save_LIBS"
1171 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1172 echo "$ac_t""yes" 1>&6
1173 LIBS="$LIBS -lcposix"
1174 else
1175 echo "$ac_t""no" 1>&6
1180 # Extract the first word of "gcc", so it can be a program name with args.
1181 set dummy gcc; ac_word=$2
1182 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1183 echo "configure:1184: checking for $ac_word" >&5
1184 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1185 echo $ac_n "(cached) $ac_c" 1>&6
1186 else
1187 if test -n "$CC"; then
1188 ac_cv_prog_CC="$CC" # Let the user override the test.
1189 else
1190 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1191 ac_dummy="$PATH"
1192 for ac_dir in $ac_dummy; do
1193 test -z "$ac_dir" && ac_dir=.
1194 if test -f $ac_dir/$ac_word; then
1195 ac_cv_prog_CC="gcc"
1196 break
1198 done
1199 IFS="$ac_save_ifs"
1202 CC="$ac_cv_prog_CC"
1203 if test -n "$CC"; then
1204 echo "$ac_t""$CC" 1>&6
1205 else
1206 echo "$ac_t""no" 1>&6
1209 if test -z "$CC"; then
1210 # Extract the first word of "cc", so it can be a program name with args.
1211 set dummy cc; ac_word=$2
1212 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1213 echo "configure:1214: checking for $ac_word" >&5
1214 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1215 echo $ac_n "(cached) $ac_c" 1>&6
1216 else
1217 if test -n "$CC"; then
1218 ac_cv_prog_CC="$CC" # Let the user override the test.
1219 else
1220 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1221 ac_prog_rejected=no
1222 ac_dummy="$PATH"
1223 for ac_dir in $ac_dummy; do
1224 test -z "$ac_dir" && ac_dir=.
1225 if test -f $ac_dir/$ac_word; then
1226 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1227 ac_prog_rejected=yes
1228 continue
1230 ac_cv_prog_CC="cc"
1231 break
1233 done
1234 IFS="$ac_save_ifs"
1235 if test $ac_prog_rejected = yes; then
1236 # We found a bogon in the path, so make sure we never use it.
1237 set dummy $ac_cv_prog_CC
1238 shift
1239 if test $# -gt 0; then
1240 # We chose a different compiler from the bogus one.
1241 # However, it has the same basename, so the bogon will be chosen
1242 # first if we set CC to just the basename; use the full file name.
1243 shift
1244 set dummy "$ac_dir/$ac_word" "$@"
1245 shift
1246 ac_cv_prog_CC="$@"
1251 CC="$ac_cv_prog_CC"
1252 if test -n "$CC"; then
1253 echo "$ac_t""$CC" 1>&6
1254 else
1255 echo "$ac_t""no" 1>&6
1258 if test -z "$CC"; then
1259 case "`uname -s`" in
1260 *win32* | *WIN32*)
1261 # Extract the first word of "cl", so it can be a program name with args.
1262 set dummy cl; ac_word=$2
1263 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1264 echo "configure:1265: checking for $ac_word" >&5
1265 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1266 echo $ac_n "(cached) $ac_c" 1>&6
1267 else
1268 if test -n "$CC"; then
1269 ac_cv_prog_CC="$CC" # Let the user override the test.
1270 else
1271 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1272 ac_dummy="$PATH"
1273 for ac_dir in $ac_dummy; do
1274 test -z "$ac_dir" && ac_dir=.
1275 if test -f $ac_dir/$ac_word; then
1276 ac_cv_prog_CC="cl"
1277 break
1279 done
1280 IFS="$ac_save_ifs"
1283 CC="$ac_cv_prog_CC"
1284 if test -n "$CC"; then
1285 echo "$ac_t""$CC" 1>&6
1286 else
1287 echo "$ac_t""no" 1>&6
1290 esac
1292 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1295 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1296 echo "configure:1297: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1298 ac_ext=c
1299 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1300 ac_cpp='$CPP $CPPFLAGS'
1301 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1302 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1303 cross_compiling=$ac_cv_prog_cc_cross
1305 cat > conftest.$ac_ext << EOF
1307 #line 1308 "configure"
1308 #include "confdefs.h"
1310 main(){return(0);}
1312 if { (eval echo configure:1313: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1313 ac_cv_prog_cc_works=yes
1314 # If we can't run a trivial program, we are probably using a cross compiler.
1315 if (./conftest; exit) 2>/dev/null; then
1316 ac_cv_prog_cc_cross=no
1317 else
1318 ac_cv_prog_cc_cross=yes
1320 else
1321 echo "configure: failed program was:" >&5
1322 cat conftest.$ac_ext >&5
1323 ac_cv_prog_cc_works=no
1325 rm -fr conftest*
1326 ac_ext=c
1327 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1328 ac_cpp='$CPP $CPPFLAGS'
1329 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1330 ac_link='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1331 cross_compiling=$ac_cv_prog_cc_cross
1333 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1334 if test $ac_cv_prog_cc_works = no; then
1335 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1337 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1338 echo "configure:1339: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1339 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1340 cross_compiling=$ac_cv_prog_cc_cross
1342 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1343 echo "configure:1344: checking whether we are using GNU C" >&5
1344 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1345 echo $ac_n "(cached) $ac_c" 1>&6
1346 else
1347 cat > conftest.c <<EOF
1348 #ifdef __GNUC__
1349 yes;
1350 #endif
1352 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:1353: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
1353 ac_cv_prog_gcc=yes
1354 else
1355 ac_cv_prog_gcc=no
1359 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1361 if test $ac_cv_prog_gcc = yes; then
1362 GCC=yes
1363 else
1364 GCC=
1367 ac_test_CFLAGS="${CFLAGS+set}"
1368 ac_save_CFLAGS="$CFLAGS"
1369 CFLAGS=
1370 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1371 echo "configure:1372: checking whether ${CC-cc} accepts -g" >&5
1372 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1373 echo $ac_n "(cached) $ac_c" 1>&6
1374 else
1375 echo 'void f(){}' > conftest.c
1376 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1377 ac_cv_prog_cc_g=yes
1378 else
1379 ac_cv_prog_cc_g=no
1381 rm -f conftest*
1385 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1386 if test "$ac_test_CFLAGS" = set; then
1387 CFLAGS="$ac_save_CFLAGS"
1388 elif test $ac_cv_prog_cc_g = yes; then
1389 if test "$GCC" = yes; then
1390 CFLAGS="-g -O2"
1391 else
1392 CFLAGS="-g"
1394 else
1395 if test "$GCC" = yes; then
1396 CFLAGS="-O2"
1397 else
1398 CFLAGS=
1405 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1406 echo "configure:1407: checking for ${CC-cc} option to accept ANSI C" >&5
1407 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1408 echo $ac_n "(cached) $ac_c" 1>&6
1409 else
1410 am_cv_prog_cc_stdc=no
1411 ac_save_CC="$CC"
1412 # Don't try gcc -ansi; that turns off useful extensions and
1413 # breaks some systems' header files.
1414 # AIX -qlanglvl=ansi
1415 # Ultrix and OSF/1 -std1
1416 # HP-UX -Aa -D_HPUX_SOURCE
1417 # SVR4 -Xc -D__EXTENSIONS__
1418 for ac_arg in "" -qlanglvl=ansi -std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1420 CC="$ac_save_CC $ac_arg"
1421 cat > conftest.$ac_ext <<EOF
1422 #line 1423 "configure"
1423 #include "confdefs.h"
1424 #include <stdarg.h>
1425 #include <stdio.h>
1426 #include <sys/types.h>
1427 #include <sys/stat.h>
1428 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1429 struct buf { int x; };
1430 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1431 static char *e (p, i)
1432 char **p;
1433 int i;
1435 return p[i];
1437 static char *f (char * (*g) (char **, int), char **p, ...)
1439 char *s;
1440 va_list v;
1441 va_start (v,p);
1442 s = g (p, va_arg (v,int));
1443 va_end (v);
1444 return s;
1446 int test (int i, double x);
1447 struct s1 {int (*f) (int a);};
1448 struct s2 {int (*f) (double a);};
1449 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1450 int argc;
1451 char **argv;
1453 int main() {
1455 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1457 ; return 0; }
1459 if { (eval echo configure:1460: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1460 rm -rf conftest*
1461 am_cv_prog_cc_stdc="$ac_arg"; break
1462 else
1463 echo "configure: failed program was:" >&5
1464 cat conftest.$ac_ext >&5
1466 rm -f conftest*
1467 done
1468 CC="$ac_save_CC"
1472 if test -z "$am_cv_prog_cc_stdc"; then
1473 echo "$ac_t""none needed" 1>&6
1474 else
1475 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1477 case "x$am_cv_prog_cc_stdc" in
1478 x|xno) ;;
1479 *) CC="$CC $am_cv_prog_cc_stdc" ;;
1480 esac
1482 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1483 echo "configure:1484: checking how to run the C preprocessor" >&5
1484 # On Suns, sometimes $CPP names a directory.
1485 if test -n "$CPP" && test -d "$CPP"; then
1486 CPP=
1488 if test -z "$CPP"; then
1489 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1490 echo $ac_n "(cached) $ac_c" 1>&6
1491 else
1492 # This must be in double quotes, not single quotes, because CPP may get
1493 # substituted into the Makefile and "${CC-cc}" will confuse make.
1494 CPP="${CC-cc} -E"
1495 # On the NeXT, cc -E runs the code through the compiler's parser,
1496 # not just through cpp.
1497 cat > conftest.$ac_ext <<EOF
1498 #line 1499 "configure"
1499 #include "confdefs.h"
1500 #include <assert.h>
1501 Syntax Error
1503 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1504 { (eval echo configure:1505: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1505 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1506 if test -z "$ac_err"; then
1508 else
1509 echo "$ac_err" >&5
1510 echo "configure: failed program was:" >&5
1511 cat conftest.$ac_ext >&5
1512 rm -rf conftest*
1513 CPP="${CC-cc} -E -traditional-cpp"
1514 cat > conftest.$ac_ext <<EOF
1515 #line 1516 "configure"
1516 #include "confdefs.h"
1517 #include <assert.h>
1518 Syntax Error
1520 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1521 { (eval echo configure:1522: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1522 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1523 if test -z "$ac_err"; then
1525 else
1526 echo "$ac_err" >&5
1527 echo "configure: failed program was:" >&5
1528 cat conftest.$ac_ext >&5
1529 rm -rf conftest*
1530 CPP="${CC-cc} -nologo -E"
1531 cat > conftest.$ac_ext <<EOF
1532 #line 1533 "configure"
1533 #include "confdefs.h"
1534 #include <assert.h>
1535 Syntax Error
1537 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1538 { (eval echo configure:1539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1539 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1540 if test -z "$ac_err"; then
1542 else
1543 echo "$ac_err" >&5
1544 echo "configure: failed program was:" >&5
1545 cat conftest.$ac_ext >&5
1546 rm -rf conftest*
1547 CPP=/lib/cpp
1549 rm -f conftest*
1551 rm -f conftest*
1553 rm -f conftest*
1554 ac_cv_prog_CPP="$CPP"
1556 CPP="$ac_cv_prog_CPP"
1557 else
1558 ac_cv_prog_CPP="$CPP"
1560 echo "$ac_t""$CPP" 1>&6
1562 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1563 echo "configure:1564: checking for ANSI C header files" >&5
1564 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1565 echo $ac_n "(cached) $ac_c" 1>&6
1566 else
1567 cat > conftest.$ac_ext <<EOF
1568 #line 1569 "configure"
1569 #include "confdefs.h"
1570 #include <stdlib.h>
1571 #include <stdarg.h>
1572 #include <string.h>
1573 #include <float.h>
1575 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1576 { (eval echo configure:1577: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1577 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1578 if test -z "$ac_err"; then
1579 rm -rf conftest*
1580 ac_cv_header_stdc=yes
1581 else
1582 echo "$ac_err" >&5
1583 echo "configure: failed program was:" >&5
1584 cat conftest.$ac_ext >&5
1585 rm -rf conftest*
1586 ac_cv_header_stdc=no
1588 rm -f conftest*
1590 if test $ac_cv_header_stdc = yes; then
1591 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1592 cat > conftest.$ac_ext <<EOF
1593 #line 1594 "configure"
1594 #include "confdefs.h"
1595 #include <string.h>
1597 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1598 egrep "memchr" >/dev/null 2>&1; then
1600 else
1601 rm -rf conftest*
1602 ac_cv_header_stdc=no
1604 rm -f conftest*
1608 if test $ac_cv_header_stdc = yes; then
1609 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1610 cat > conftest.$ac_ext <<EOF
1611 #line 1612 "configure"
1612 #include "confdefs.h"
1613 #include <stdlib.h>
1615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1616 egrep "free" >/dev/null 2>&1; then
1618 else
1619 rm -rf conftest*
1620 ac_cv_header_stdc=no
1622 rm -f conftest*
1626 if test $ac_cv_header_stdc = yes; then
1627 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1628 if test "$cross_compiling" = yes; then
1630 else
1631 cat > conftest.$ac_ext <<EOF
1632 #line 1633 "configure"
1633 #include "confdefs.h"
1634 #include <ctype.h>
1635 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1636 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1637 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1638 int main () { int i; for (i = 0; i < 256; i++)
1639 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1640 exit (0); }
1643 if { (eval echo configure:1644: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
1644 then
1646 else
1647 echo "configure: failed program was:" >&5
1648 cat conftest.$ac_ext >&5
1649 rm -fr conftest*
1650 ac_cv_header_stdc=no
1652 rm -fr conftest*
1658 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1659 if test $ac_cv_header_stdc = yes; then
1660 cat >> confdefs.h <<\EOF
1661 #define STDC_HEADERS 1
1668 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1669 if test "${enable_compile_warnings+set}" = set; then
1670 enableval="$enable_compile_warnings"
1672 else
1673 enable_compile_warnings=minimum
1677 echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1678 echo "configure:1679: checking what warning flags to pass to the C compiler" >&5
1679 warnCFLAGS=
1680 if test "x$GCC" != xyes; then
1681 enable_compile_warnings=no
1684 if test "x$enable_compile_warnings" != "xno"; then
1685 if test "x$GCC" = "xyes"; then
1686 case " $CFLAGS " in
1687 *\ \ -Wall\ \ *) ;;
1688 *) warnCFLAGS="-Wall -Wunused" ;;
1689 esac
1691 ## -W is not all that useful. And it cannot be controlled
1692 ## with individual -Wno-xxx flags, unlike -Wall
1693 if test "x$enable_compile_warnings" = "xyes"; then
1694 warnCFLAGS="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
1698 echo "$ac_t""$warnCFLAGS" 1>&6
1700 # Check whether --enable-iso-c or --disable-iso-c was given.
1701 if test "${enable_iso_c+set}" = set; then
1702 enableval="$enable_iso_c"
1704 else
1705 enable_iso_c=no
1709 echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1710 echo "configure:1711: checking what language compliance flags to pass to the C compiler" >&5
1711 complCFLAGS=
1712 if test "x$enable_iso_c" != "xno"; then
1713 if test "x$GCC" = "xyes"; then
1714 case " $CFLAGS " in
1715 *\ \ -ansi\ \ *) ;;
1716 *) complCFLAGS="$complCFLAGS -ansi" ;;
1717 esac
1719 case " $CFLAGS " in
1720 *\ \ -pedantic\ \ *) ;;
1721 *) complCFLAGS="$complCFLAGS -pedantic" ;;
1722 esac
1725 echo "$ac_t""$complCFLAGS" 1>&6
1726 if test "x$cflags_set" != "xyes"; then
1727 CFLAGS="$CFLAGS $warnCFLAGS $complCFLAGS"
1728 cflags_set=yes
1733 PTHREAD_LIB=""
1734 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1735 echo "configure:1736: checking for pthread_create in -lpthread" >&5
1736 ac_lib_var=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1737 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1738 echo $ac_n "(cached) $ac_c" 1>&6
1739 else
1740 ac_save_LIBS="$LIBS"
1741 LIBS="-lpthread $LIBS"
1742 cat > conftest.$ac_ext <<EOF
1743 #line 1744 "configure"
1744 #include "confdefs.h"
1745 /* Override any gcc2 internal prototype to avoid an error. */
1746 /* We use char because int might match the return type of a gcc2
1747 builtin and then its argument prototype would still apply. */
1748 char pthread_create();
1750 int main() {
1751 pthread_create()
1752 ; return 0; }
1754 if { (eval echo configure:1755: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1755 rm -rf conftest*
1756 eval "ac_cv_lib_$ac_lib_var=yes"
1757 else
1758 echo "configure: failed program was:" >&5
1759 cat conftest.$ac_ext >&5
1760 rm -rf conftest*
1761 eval "ac_cv_lib_$ac_lib_var=no"
1763 rm -f conftest*
1764 LIBS="$ac_save_LIBS"
1767 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1768 echo "$ac_t""yes" 1>&6
1769 PTHREAD_LIB="-lpthread"
1770 else
1771 echo "$ac_t""no" 1>&6
1772 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1773 echo "configure:1774: checking for pthread_create in -lpthreads" >&5
1774 ac_lib_var=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1775 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1776 echo $ac_n "(cached) $ac_c" 1>&6
1777 else
1778 ac_save_LIBS="$LIBS"
1779 LIBS="-lpthreads $LIBS"
1780 cat > conftest.$ac_ext <<EOF
1781 #line 1782 "configure"
1782 #include "confdefs.h"
1783 /* Override any gcc2 internal prototype to avoid an error. */
1784 /* We use char because int might match the return type of a gcc2
1785 builtin and then its argument prototype would still apply. */
1786 char pthread_create();
1788 int main() {
1789 pthread_create()
1790 ; return 0; }
1792 if { (eval echo configure:1793: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1793 rm -rf conftest*
1794 eval "ac_cv_lib_$ac_lib_var=yes"
1795 else
1796 echo "configure: failed program was:" >&5
1797 cat conftest.$ac_ext >&5
1798 rm -rf conftest*
1799 eval "ac_cv_lib_$ac_lib_var=no"
1801 rm -f conftest*
1802 LIBS="$ac_save_LIBS"
1805 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1806 echo "$ac_t""yes" 1>&6
1807 PTHREAD_LIB="-lpthreads"
1808 else
1809 echo "$ac_t""no" 1>&6
1810 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1811 echo "configure:1812: checking for pthread_create in -lc_r" >&5
1812 ac_lib_var=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1813 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1814 echo $ac_n "(cached) $ac_c" 1>&6
1815 else
1816 ac_save_LIBS="$LIBS"
1817 LIBS="-lc_r $LIBS"
1818 cat > conftest.$ac_ext <<EOF
1819 #line 1820 "configure"
1820 #include "confdefs.h"
1821 /* Override any gcc2 internal prototype to avoid an error. */
1822 /* We use char because int might match the return type of a gcc2
1823 builtin and then its argument prototype would still apply. */
1824 char pthread_create();
1826 int main() {
1827 pthread_create()
1828 ; return 0; }
1830 if { (eval echo configure:1831: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1831 rm -rf conftest*
1832 eval "ac_cv_lib_$ac_lib_var=yes"
1833 else
1834 echo "configure: failed program was:" >&5
1835 cat conftest.$ac_ext >&5
1836 rm -rf conftest*
1837 eval "ac_cv_lib_$ac_lib_var=no"
1839 rm -f conftest*
1840 LIBS="$ac_save_LIBS"
1843 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1844 echo "$ac_t""yes" 1>&6
1845 PTHREAD_LIB="-lc_r"
1846 else
1847 echo "$ac_t""no" 1>&6
1848 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1849 echo "configure:1850: checking for pthread_create" >&5
1850 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1851 echo $ac_n "(cached) $ac_c" 1>&6
1852 else
1853 cat > conftest.$ac_ext <<EOF
1854 #line 1855 "configure"
1855 #include "confdefs.h"
1856 /* System header to define __stub macros and hopefully few prototypes,
1857 which can conflict with char pthread_create(); below. */
1858 #include <assert.h>
1859 /* Override any gcc2 internal prototype to avoid an error. */
1860 /* We use char because int might match the return type of a gcc2
1861 builtin and then its argument prototype would still apply. */
1862 char pthread_create();
1864 int main() {
1866 /* The GNU C library defines this for functions which it implements
1867 to always fail with ENOSYS. Some functions are actually named
1868 something starting with __ and the normal name is an alias. */
1869 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1870 choke me
1871 #else
1872 pthread_create();
1873 #endif
1875 ; return 0; }
1877 if { (eval echo configure:1878: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
1878 rm -rf conftest*
1879 eval "ac_cv_func_pthread_create=yes"
1880 else
1881 echo "configure: failed program was:" >&5
1882 cat conftest.$ac_ext >&5
1883 rm -rf conftest*
1884 eval "ac_cv_func_pthread_create=no"
1886 rm -f conftest*
1889 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1890 echo "$ac_t""yes" 1>&6
1892 else
1893 echo "$ac_t""no" 1>&6
1909 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1910 if test "${with_gtk_prefix+set}" = set; then
1911 withval="$with_gtk_prefix"
1912 gtk_config_prefix="$withval"
1913 else
1914 gtk_config_prefix=""
1917 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1918 if test "${with_gtk_exec_prefix+set}" = set; then
1919 withval="$with_gtk_exec_prefix"
1920 gtk_config_exec_prefix="$withval"
1921 else
1922 gtk_config_exec_prefix=""
1925 # Check whether --enable-gtktest or --disable-gtktest was given.
1926 if test "${enable_gtktest+set}" = set; then
1927 enableval="$enable_gtktest"
1929 else
1930 enable_gtktest=yes
1934 for module in .
1936 case "$module" in
1937 gthread)
1938 gtk_config_args="$gtk_config_args gthread"
1940 esac
1941 done
1943 if test x$gtk_config_exec_prefix != x ; then
1944 gtk_config_args="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1945 if test x${GTK_CONFIG+set} != xset ; then
1946 GTK_CONFIG=$gtk_config_exec_prefix/bin/gtk-config
1949 if test x$gtk_config_prefix != x ; then
1950 gtk_config_args="$gtk_config_args --prefix=$gtk_config_prefix"
1951 if test x${GTK_CONFIG+set} != xset ; then
1952 GTK_CONFIG=$gtk_config_prefix/bin/gtk-config
1956 # Extract the first word of "gtk-config", so it can be a program name with args.
1957 set dummy gtk-config; ac_word=$2
1958 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1959 echo "configure:1960: checking for $ac_word" >&5
1960 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1961 echo $ac_n "(cached) $ac_c" 1>&6
1962 else
1963 case "$GTK_CONFIG" in
1965 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a path.
1967 ?:/*)
1968 ac_cv_path_GTK_CONFIG="$GTK_CONFIG" # Let the user override the test with a dos path.
1971 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
1972 ac_dummy="$PATH"
1973 for ac_dir in $ac_dummy; do
1974 test -z "$ac_dir" && ac_dir=.
1975 if test -f $ac_dir/$ac_word; then
1976 ac_cv_path_GTK_CONFIG="$ac_dir/$ac_word"
1977 break
1979 done
1980 IFS="$ac_save_ifs"
1981 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG="no"
1983 esac
1985 GTK_CONFIG="$ac_cv_path_GTK_CONFIG"
1986 if test -n "$GTK_CONFIG"; then
1987 echo "$ac_t""$GTK_CONFIG" 1>&6
1988 else
1989 echo "$ac_t""no" 1>&6
1992 min_gtk_version=1.2.0
1993 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
1994 echo "configure:1995: checking for GTK - version >= $min_gtk_version" >&5
1995 no_gtk=""
1996 if test "$GTK_CONFIG" = "no" ; then
1997 no_gtk=yes
1998 else
1999 GTK_CFLAGS=`$GTK_CONFIG $gtk_config_args --cflags`
2000 GTK_LIBS=`$GTK_CONFIG $gtk_config_args --libs`
2001 gtk_config_major_version=`$GTK_CONFIG $gtk_config_args --version | \
2002 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2003 gtk_config_minor_version=`$GTK_CONFIG $gtk_config_args --version | \
2004 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2005 gtk_config_micro_version=`$GTK_CONFIG $gtk_config_args --version | \
2006 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2007 if test "x$enable_gtktest" = "xyes" ; then
2008 ac_save_CFLAGS="$CFLAGS"
2009 ac_save_LIBS="$LIBS"
2010 CFLAGS="$CFLAGS $GTK_CFLAGS"
2011 LIBS="$GTK_LIBS $LIBS"
2012 rm -f conf.gtktest
2013 if test "$cross_compiling" = yes; then
2014 echo $ac_n "cross compiling; assumed OK... $ac_c"
2015 else
2016 cat > conftest.$ac_ext <<EOF
2017 #line 2018 "configure"
2018 #include "confdefs.h"
2020 #include <gtk/gtk.h>
2021 #include <stdio.h>
2022 #include <stdlib.h>
2024 int
2025 main ()
2027 int major, minor, micro;
2028 char *tmp_version;
2030 system ("touch conf.gtktest");
2032 /* HP/UX 9 (%@#!) writes to sscanf strings */
2033 tmp_version = g_strdup("$min_gtk_version");
2034 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, &micro) != 3) {
2035 printf("%s, bad version string\n", "$min_gtk_version");
2036 exit(1);
2039 if ((gtk_major_version != $gtk_config_major_version) ||
2040 (gtk_minor_version != $gtk_config_minor_version) ||
2041 (gtk_micro_version != $gtk_config_micro_version))
2043 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2044 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2045 gtk_major_version, gtk_minor_version, gtk_micro_version);
2046 printf ("*** was found! If gtk-config was correct, then it is best\n");
2047 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2048 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2049 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2050 printf("*** required on your system.\n");
2051 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2052 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2053 printf("*** before re-running configure\n");
2055 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2056 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2057 (gtk_minor_version != GTK_MINOR_VERSION) ||
2058 (gtk_micro_version != GTK_MICRO_VERSION))
2060 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2061 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2062 printf("*** library (version %d.%d.%d)\n",
2063 gtk_major_version, gtk_minor_version, gtk_micro_version);
2065 #endif /* defined (GTK_MAJOR_VERSION) ... */
2066 else
2068 if ((gtk_major_version > major) ||
2069 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2070 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2072 return 0;
2074 else
2076 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2077 gtk_major_version, gtk_minor_version, gtk_micro_version);
2078 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2079 major, minor, micro);
2080 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2081 printf("***\n");
2082 printf("*** If you have already installed a sufficiently new version, this error\n");
2083 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2084 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2085 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2086 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2087 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2088 printf("*** so that the correct libraries are found at run-time))\n");
2091 return 1;
2095 if { (eval echo configure:2096: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2096 then
2098 else
2099 echo "configure: failed program was:" >&5
2100 cat conftest.$ac_ext >&5
2101 rm -fr conftest*
2102 no_gtk=yes
2104 rm -fr conftest*
2107 CFLAGS="$ac_save_CFLAGS"
2108 LIBS="$ac_save_LIBS"
2111 if test "x$no_gtk" = x ; then
2112 echo "$ac_t""yes" 1>&6
2114 else
2115 echo "$ac_t""no" 1>&6
2116 if test "$GTK_CONFIG" = "no" ; then
2117 echo "*** The gtk-config script installed by GTK could not be found"
2118 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2119 echo "*** your path, or set the GTK_CONFIG environment variable to the"
2120 echo "*** full path to gtk-config."
2121 else
2122 if test -f conf.gtktest ; then
2124 else
2125 echo "*** Could not run GTK test program, checking why..."
2126 CFLAGS="$CFLAGS $GTK_CFLAGS"
2127 LIBS="$LIBS $GTK_LIBS"
2128 cat > conftest.$ac_ext <<EOF
2129 #line 2130 "configure"
2130 #include "confdefs.h"
2132 #include <gtk/gtk.h>
2133 #include <stdio.h>
2135 int main() {
2136 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2137 ; return 0; }
2139 if { (eval echo configure:2140: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2140 rm -rf conftest*
2141 echo "*** The test program compiled, but did not run. This usually means"
2142 echo "*** that the run-time linker is not finding GTK or finding the wrong"
2143 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2144 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2145 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2146 echo "*** is required on your system"
2147 echo "***"
2148 echo "*** If you have an old version installed, it is best to remove it, although"
2149 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2150 echo "***"
2151 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2152 echo "*** came with the system with the command"
2153 echo "***"
2154 echo "*** rpm --erase --nodeps gtk gtk-devel"
2155 else
2156 echo "configure: failed program was:" >&5
2157 cat conftest.$ac_ext >&5
2158 rm -rf conftest*
2159 echo "*** The test program failed to compile or link. See the file config.log for the"
2160 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2161 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2162 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2164 rm -f conftest*
2165 CFLAGS="$ac_save_CFLAGS"
2166 LIBS="$ac_save_LIBS"
2169 GTK_CFLAGS=""
2170 GTK_LIBS=""
2171 { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2175 rm -f conf.gtktest
2177 CPPFLAGS="$CPPFLAGS $GTK_CFLAGS"
2179 saved_ldflags="$LDFLAGS"
2180 LDFLAGS="$LDFLAGS $GTK_LIBS"
2182 gnome_cv_passdown_x_libs="$GTK_LIBS"
2183 gnome_cv_passdown_X_LIBS="$GTK_LIBS"
2184 gnome_cv_passdown_X_CFLAGS="$GTK_CFLAGS"
2185 gnome_cv_passdown_GTK_LIBS="$GTK_LIBS"
2187 LDFLAGS="$saved_ldflags $GTK_LIBS"
2189 USE_DEVGTK=true
2192 GNOME_HAVE_SM=true
2193 case "$GTK_LIBS" in
2194 *-lSM*)
2197 echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2198 echo "configure:2199: checking for SmcSaveYourselfDone in -lSM" >&5
2199 ac_lib_var=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2200 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2201 echo $ac_n "(cached) $ac_c" 1>&6
2202 else
2203 ac_save_LIBS="$LIBS"
2204 LIBS="-lSM $x_libs -lICE $LIBS"
2205 cat > conftest.$ac_ext <<EOF
2206 #line 2207 "configure"
2207 #include "confdefs.h"
2208 /* Override any gcc2 internal prototype to avoid an error. */
2209 /* We use char because int might match the return type of a gcc2
2210 builtin and then its argument prototype would still apply. */
2211 char SmcSaveYourselfDone();
2213 int main() {
2214 SmcSaveYourselfDone()
2215 ; return 0; }
2217 if { (eval echo configure:2218: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2218 rm -rf conftest*
2219 eval "ac_cv_lib_$ac_lib_var=yes"
2220 else
2221 echo "configure: failed program was:" >&5
2222 cat conftest.$ac_ext >&5
2223 rm -rf conftest*
2224 eval "ac_cv_lib_$ac_lib_var=no"
2226 rm -f conftest*
2227 LIBS="$ac_save_LIBS"
2230 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2231 echo "$ac_t""yes" 1>&6
2232 GTK_LIBS="-lSM -lICE $GTK_LIBS"
2233 else
2234 echo "$ac_t""no" 1>&6
2235 GNOME_HAVE_SM=false
2239 esac
2241 if test "$GNOME_HAVE_SM" = true; then
2242 for ac_hdr in X11/SM/SMlib.h
2244 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2245 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2246 echo "configure:2247: checking for $ac_hdr" >&5
2247 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2248 echo $ac_n "(cached) $ac_c" 1>&6
2249 else
2250 cat > conftest.$ac_ext <<EOF
2251 #line 2252 "configure"
2252 #include "confdefs.h"
2253 #include <$ac_hdr>
2255 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2256 { (eval echo configure:2257: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2257 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2258 if test -z "$ac_err"; then
2259 rm -rf conftest*
2260 eval "ac_cv_header_$ac_safe=yes"
2261 else
2262 echo "$ac_err" >&5
2263 echo "configure: failed program was:" >&5
2264 cat conftest.$ac_ext >&5
2265 rm -rf conftest*
2266 eval "ac_cv_header_$ac_safe=no"
2268 rm -f conftest*
2270 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2271 echo "$ac_t""yes" 1>&6
2272 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2273 cat >> confdefs.h <<EOF
2274 #define $ac_tr_hdr 1
2277 else
2278 echo "$ac_t""no" 1>&6
2279 GNOME_HAVE_SM=false
2281 done
2285 if test "$GNOME_HAVE_SM" = true; then
2286 cat >> confdefs.h <<\EOF
2287 #define HAVE_LIBSM 1
2292 XPM_LIBS=""
2293 echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2294 echo "configure:2295: checking for XpmFreeXpmImage in -lXpm" >&5
2295 ac_lib_var=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2296 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2297 echo $ac_n "(cached) $ac_c" 1>&6
2298 else
2299 ac_save_LIBS="$LIBS"
2300 LIBS="-lXpm $x_libs $LIBS"
2301 cat > conftest.$ac_ext <<EOF
2302 #line 2303 "configure"
2303 #include "confdefs.h"
2304 /* Override any gcc2 internal prototype to avoid an error. */
2305 /* We use char because int might match the return type of a gcc2
2306 builtin and then its argument prototype would still apply. */
2307 char XpmFreeXpmImage();
2309 int main() {
2310 XpmFreeXpmImage()
2311 ; return 0; }
2313 if { (eval echo configure:2314: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2314 rm -rf conftest*
2315 eval "ac_cv_lib_$ac_lib_var=yes"
2316 else
2317 echo "configure: failed program was:" >&5
2318 cat conftest.$ac_ext >&5
2319 rm -rf conftest*
2320 eval "ac_cv_lib_$ac_lib_var=no"
2322 rm -f conftest*
2323 LIBS="$ac_save_LIBS"
2326 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2327 echo "$ac_t""yes" 1>&6
2328 XPM_LIBS="-lXpm"
2329 else
2330 echo "$ac_t""no" 1>&6
2336 LDFLAGS="$saved_ldflags"
2341 ALL_LINGUAS="ca de nl"
2344 # Make sure we can run config.sub.
2345 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4 >/dev/null 2>&1; then :
2346 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2349 echo $ac_n "checking host system type""... $ac_c" 1>&6
2350 echo "configure:2351: checking host system type" >&5
2352 host_alias=$host
2353 case "$host_alias" in
2354 NONE)
2355 case $nonopt in
2356 NONE)
2357 if host_alias=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2358 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2359 fi ;;
2360 *) host_alias=$nonopt ;;
2361 esac ;;
2362 esac
2364 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2365 host_cpu=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2366 host_vendor=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2367 host_os=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2368 echo "$ac_t""$host" 1>&6
2370 # Extract the first word of "ranlib", so it can be a program name with args.
2371 set dummy ranlib; ac_word=$2
2372 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2373 echo "configure:2374: checking for $ac_word" >&5
2374 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2375 echo $ac_n "(cached) $ac_c" 1>&6
2376 else
2377 if test -n "$RANLIB"; then
2378 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
2379 else
2380 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
2381 ac_dummy="$PATH"
2382 for ac_dir in $ac_dummy; do
2383 test -z "$ac_dir" && ac_dir=.
2384 if test -f $ac_dir/$ac_word; then
2385 ac_cv_prog_RANLIB="ranlib"
2386 break
2388 done
2389 IFS="$ac_save_ifs"
2390 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
2393 RANLIB="$ac_cv_prog_RANLIB"
2394 if test -n "$RANLIB"; then
2395 echo "$ac_t""$RANLIB" 1>&6
2396 else
2397 echo "$ac_t""no" 1>&6
2400 echo $ac_n "checking for working const""... $ac_c" 1>&6
2401 echo "configure:2402: checking for working const" >&5
2402 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2403 echo $ac_n "(cached) $ac_c" 1>&6
2404 else
2405 cat > conftest.$ac_ext <<EOF
2406 #line 2407 "configure"
2407 #include "confdefs.h"
2409 int main() {
2411 /* Ultrix mips cc rejects this. */
2412 typedef int charset[2]; const charset x;
2413 /* SunOS 4.1.1 cc rejects this. */
2414 char const *const *ccp;
2415 char **p;
2416 /* NEC SVR4.0.2 mips cc rejects this. */
2417 struct point {int x, y;};
2418 static struct point const zero = {0,0};
2419 /* AIX XL C 1.02.0.0 rejects this.
2420 It does not let you subtract one const X* pointer from another in an arm
2421 of an if-expression whose if-part is not a constant expression */
2422 const char *g = "string";
2423 ccp = &g + (g ? g-g : 0);
2424 /* HPUX 7.0 cc rejects these. */
2425 ++ccp;
2426 p = (char**) ccp;
2427 ccp = (char const *const *) p;
2428 { /* SCO 3.2v4 cc rejects this. */
2429 char *t;
2430 char const *s = 0 ? (char *) 0 : (char const *) 0;
2432 *t++ = 0;
2434 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2435 int x[] = {25, 17};
2436 const int *foo = &x[0];
2437 ++foo;
2439 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2440 typedef const int *iptr;
2441 iptr p = 0;
2442 ++p;
2444 { /* AIX XL C 1.02.0.0 rejects this saying
2445 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2446 struct s { int j; const int *ap[3]; };
2447 struct s *b; b->j = 5;
2449 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2450 const int foo = 10;
2453 ; return 0; }
2455 if { (eval echo configure:2456: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2456 rm -rf conftest*
2457 ac_cv_c_const=yes
2458 else
2459 echo "configure: failed program was:" >&5
2460 cat conftest.$ac_ext >&5
2461 rm -rf conftest*
2462 ac_cv_c_const=no
2464 rm -f conftest*
2467 echo "$ac_t""$ac_cv_c_const" 1>&6
2468 if test $ac_cv_c_const = no; then
2469 cat >> confdefs.h <<\EOF
2470 #define const
2475 echo $ac_n "checking for inline""... $ac_c" 1>&6
2476 echo "configure:2477: checking for inline" >&5
2477 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2478 echo $ac_n "(cached) $ac_c" 1>&6
2479 else
2480 ac_cv_c_inline=no
2481 for ac_kw in inline __inline__ __inline; do
2482 cat > conftest.$ac_ext <<EOF
2483 #line 2484 "configure"
2484 #include "confdefs.h"
2486 int main() {
2487 } $ac_kw foo() {
2488 ; return 0; }
2490 if { (eval echo configure:2491: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2491 rm -rf conftest*
2492 ac_cv_c_inline=$ac_kw; break
2493 else
2494 echo "configure: failed program was:" >&5
2495 cat conftest.$ac_ext >&5
2497 rm -f conftest*
2498 done
2502 echo "$ac_t""$ac_cv_c_inline" 1>&6
2503 case "$ac_cv_c_inline" in
2504 inline | yes) ;;
2505 no) cat >> confdefs.h <<\EOF
2506 #define inline
2509 *) cat >> confdefs.h <<EOF
2510 #define inline $ac_cv_c_inline
2513 esac
2515 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2516 echo "configure:2517: checking for off_t" >&5
2517 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2518 echo $ac_n "(cached) $ac_c" 1>&6
2519 else
2520 cat > conftest.$ac_ext <<EOF
2521 #line 2522 "configure"
2522 #include "confdefs.h"
2523 #include <sys/types.h>
2524 #if STDC_HEADERS
2525 #include <stdlib.h>
2526 #include <stddef.h>
2527 #endif
2529 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2530 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2531 rm -rf conftest*
2532 ac_cv_type_off_t=yes
2533 else
2534 rm -rf conftest*
2535 ac_cv_type_off_t=no
2537 rm -f conftest*
2540 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2541 if test $ac_cv_type_off_t = no; then
2542 cat >> confdefs.h <<\EOF
2543 #define off_t long
2548 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2549 echo "configure:2550: checking for size_t" >&5
2550 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2551 echo $ac_n "(cached) $ac_c" 1>&6
2552 else
2553 cat > conftest.$ac_ext <<EOF
2554 #line 2555 "configure"
2555 #include "confdefs.h"
2556 #include <sys/types.h>
2557 #if STDC_HEADERS
2558 #include <stdlib.h>
2559 #include <stddef.h>
2560 #endif
2562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2563 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev/null 2>&1; then
2564 rm -rf conftest*
2565 ac_cv_type_size_t=yes
2566 else
2567 rm -rf conftest*
2568 ac_cv_type_size_t=no
2570 rm -f conftest*
2573 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2574 if test $ac_cv_type_size_t = no; then
2575 cat >> confdefs.h <<\EOF
2576 #define size_t unsigned
2581 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2582 # for constant arguments. Useless!
2583 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2584 echo "configure:2585: checking for working alloca.h" >&5
2585 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2586 echo $ac_n "(cached) $ac_c" 1>&6
2587 else
2588 cat > conftest.$ac_ext <<EOF
2589 #line 2590 "configure"
2590 #include "confdefs.h"
2591 #include <alloca.h>
2592 int main() {
2593 char *p = alloca(2 * sizeof(int));
2594 ; return 0; }
2596 if { (eval echo configure:2597: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2597 rm -rf conftest*
2598 ac_cv_header_alloca_h=yes
2599 else
2600 echo "configure: failed program was:" >&5
2601 cat conftest.$ac_ext >&5
2602 rm -rf conftest*
2603 ac_cv_header_alloca_h=no
2605 rm -f conftest*
2608 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2609 if test $ac_cv_header_alloca_h = yes; then
2610 cat >> confdefs.h <<\EOF
2611 #define HAVE_ALLOCA_H 1
2616 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2617 echo "configure:2618: checking for alloca" >&5
2618 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2619 echo $ac_n "(cached) $ac_c" 1>&6
2620 else
2621 cat > conftest.$ac_ext <<EOF
2622 #line 2623 "configure"
2623 #include "confdefs.h"
2625 #ifdef __GNUC__
2626 # define alloca __builtin_alloca
2627 #else
2628 # ifdef _MSC_VER
2629 # include <malloc.h>
2630 # define alloca _alloca
2631 # else
2632 # if HAVE_ALLOCA_H
2633 # include <alloca.h>
2634 # else
2635 # ifdef _AIX
2636 #pragma alloca
2637 # else
2638 # ifndef alloca /* predefined by HP cc +Olibcalls */
2639 char *alloca ();
2640 # endif
2641 # endif
2642 # endif
2643 # endif
2644 #endif
2646 int main() {
2647 char *p = (char *) alloca(1);
2648 ; return 0; }
2650 if { (eval echo configure:2651: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2651 rm -rf conftest*
2652 ac_cv_func_alloca_works=yes
2653 else
2654 echo "configure: failed program was:" >&5
2655 cat conftest.$ac_ext >&5
2656 rm -rf conftest*
2657 ac_cv_func_alloca_works=no
2659 rm -f conftest*
2662 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2663 if test $ac_cv_func_alloca_works = yes; then
2664 cat >> confdefs.h <<\EOF
2665 #define HAVE_ALLOCA 1
2670 if test $ac_cv_func_alloca_works = no; then
2671 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2672 # that cause trouble. Some versions do not even contain alloca or
2673 # contain a buggy version. If you still want to use their alloca,
2674 # use ar to extract alloca.o from them instead of compiling alloca.c.
2675 ALLOCA=alloca.${ac_objext}
2676 cat >> confdefs.h <<\EOF
2677 #define C_ALLOCA 1
2681 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2682 echo "configure:2683: checking whether alloca needs Cray hooks" >&5
2683 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2684 echo $ac_n "(cached) $ac_c" 1>&6
2685 else
2686 cat > conftest.$ac_ext <<EOF
2687 #line 2688 "configure"
2688 #include "confdefs.h"
2689 #if defined(CRAY) && ! defined(CRAY2)
2690 webecray
2691 #else
2692 wenotbecray
2693 #endif
2696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2697 egrep "webecray" >/dev/null 2>&1; then
2698 rm -rf conftest*
2699 ac_cv_os_cray=yes
2700 else
2701 rm -rf conftest*
2702 ac_cv_os_cray=no
2704 rm -f conftest*
2708 echo "$ac_t""$ac_cv_os_cray" 1>&6
2709 if test $ac_cv_os_cray = yes; then
2710 for ac_func in _getb67 GETB67 getb67; do
2711 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2712 echo "configure:2713: checking for $ac_func" >&5
2713 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2714 echo $ac_n "(cached) $ac_c" 1>&6
2715 else
2716 cat > conftest.$ac_ext <<EOF
2717 #line 2718 "configure"
2718 #include "confdefs.h"
2719 /* System header to define __stub macros and hopefully few prototypes,
2720 which can conflict with char $ac_func(); below. */
2721 #include <assert.h>
2722 /* Override any gcc2 internal prototype to avoid an error. */
2723 /* We use char because int might match the return type of a gcc2
2724 builtin and then its argument prototype would still apply. */
2725 char $ac_func();
2727 int main() {
2729 /* The GNU C library defines this for functions which it implements
2730 to always fail with ENOSYS. Some functions are actually named
2731 something starting with __ and the normal name is an alias. */
2732 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2733 choke me
2734 #else
2735 $ac_func();
2736 #endif
2738 ; return 0; }
2740 if { (eval echo configure:2741: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2741 rm -rf conftest*
2742 eval "ac_cv_func_$ac_func=yes"
2743 else
2744 echo "configure: failed program was:" >&5
2745 cat conftest.$ac_ext >&5
2746 rm -rf conftest*
2747 eval "ac_cv_func_$ac_func=no"
2749 rm -f conftest*
2752 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2753 echo "$ac_t""yes" 1>&6
2754 cat >> confdefs.h <<EOF
2755 #define CRAY_STACKSEG_END $ac_func
2758 break
2759 else
2760 echo "$ac_t""no" 1>&6
2763 done
2766 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2767 echo "configure:2768: checking stack direction for C alloca" >&5
2768 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2769 echo $ac_n "(cached) $ac_c" 1>&6
2770 else
2771 if test "$cross_compiling" = yes; then
2772 ac_cv_c_stack_direction=0
2773 else
2774 cat > conftest.$ac_ext <<EOF
2775 #line 2776 "configure"
2776 #include "confdefs.h"
2777 find_stack_direction ()
2779 static char *addr = 0;
2780 auto char dummy;
2781 if (addr == 0)
2783 addr = &dummy;
2784 return find_stack_direction ();
2786 else
2787 return (&dummy > addr) ? 1 : -1;
2789 main ()
2791 exit (find_stack_direction() < 0);
2794 if { (eval echo configure:2795: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
2795 then
2796 ac_cv_c_stack_direction=1
2797 else
2798 echo "configure: failed program was:" >&5
2799 cat conftest.$ac_ext >&5
2800 rm -fr conftest*
2801 ac_cv_c_stack_direction=-1
2803 rm -fr conftest*
2808 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2809 cat >> confdefs.h <<EOF
2810 #define STACK_DIRECTION $ac_cv_c_stack_direction
2815 for ac_hdr in unistd.h
2817 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2818 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2819 echo "configure:2820: checking for $ac_hdr" >&5
2820 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2821 echo $ac_n "(cached) $ac_c" 1>&6
2822 else
2823 cat > conftest.$ac_ext <<EOF
2824 #line 2825 "configure"
2825 #include "confdefs.h"
2826 #include <$ac_hdr>
2828 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2829 { (eval echo configure:2830: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2830 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2831 if test -z "$ac_err"; then
2832 rm -rf conftest*
2833 eval "ac_cv_header_$ac_safe=yes"
2834 else
2835 echo "$ac_err" >&5
2836 echo "configure: failed program was:" >&5
2837 cat conftest.$ac_ext >&5
2838 rm -rf conftest*
2839 eval "ac_cv_header_$ac_safe=no"
2841 rm -f conftest*
2843 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2844 echo "$ac_t""yes" 1>&6
2845 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2846 cat >> confdefs.h <<EOF
2847 #define $ac_tr_hdr 1
2850 else
2851 echo "$ac_t""no" 1>&6
2853 done
2855 for ac_func in getpagesize
2857 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2858 echo "configure:2859: checking for $ac_func" >&5
2859 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2860 echo $ac_n "(cached) $ac_c" 1>&6
2861 else
2862 cat > conftest.$ac_ext <<EOF
2863 #line 2864 "configure"
2864 #include "confdefs.h"
2865 /* System header to define __stub macros and hopefully few prototypes,
2866 which can conflict with char $ac_func(); below. */
2867 #include <assert.h>
2868 /* Override any gcc2 internal prototype to avoid an error. */
2869 /* We use char because int might match the return type of a gcc2
2870 builtin and then its argument prototype would still apply. */
2871 char $ac_func();
2873 int main() {
2875 /* The GNU C library defines this for functions which it implements
2876 to always fail with ENOSYS. Some functions are actually named
2877 something starting with __ and the normal name is an alias. */
2878 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2879 choke me
2880 #else
2881 $ac_func();
2882 #endif
2884 ; return 0; }
2886 if { (eval echo configure:2887: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
2887 rm -rf conftest*
2888 eval "ac_cv_func_$ac_func=yes"
2889 else
2890 echo "configure: failed program was:" >&5
2891 cat conftest.$ac_ext >&5
2892 rm -rf conftest*
2893 eval "ac_cv_func_$ac_func=no"
2895 rm -f conftest*
2898 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2899 echo "$ac_t""yes" 1>&6
2900 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2901 cat >> confdefs.h <<EOF
2902 #define $ac_tr_func 1
2905 else
2906 echo "$ac_t""no" 1>&6
2908 done
2910 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2911 echo "configure:2912: checking for working mmap" >&5
2912 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2913 echo $ac_n "(cached) $ac_c" 1>&6
2914 else
2915 if test "$cross_compiling" = yes; then
2916 ac_cv_func_mmap_fixed_mapped=no
2917 else
2918 cat > conftest.$ac_ext <<EOF
2919 #line 2920 "configure"
2920 #include "confdefs.h"
2922 /* Thanks to Mike Haertel and Jim Avera for this test.
2923 Here is a matrix of mmap possibilities:
2924 mmap private not fixed
2925 mmap private fixed at somewhere currently unmapped
2926 mmap private fixed at somewhere already mapped
2927 mmap shared not fixed
2928 mmap shared fixed at somewhere currently unmapped
2929 mmap shared fixed at somewhere already mapped
2930 For private mappings, we should verify that changes cannot be read()
2931 back from the file, nor mmap's back from the file at a different
2932 address. (There have been systems where private was not correctly
2933 implemented like the infamous i386 svr4.0, and systems where the
2934 VM page cache was not coherent with the filesystem buffer cache
2935 like early versions of FreeBSD and possibly contemporary NetBSD.)
2936 For shared mappings, we should conversely verify that changes get
2937 propogated back to all the places they're supposed to be.
2939 Grep wants private fixed already mapped.
2940 The main things grep needs to know about mmap are:
2941 * does it exist and is it safe to write into the mmap'd area
2942 * how to use it (BSD variants) */
2943 #include <sys/types.h>
2944 #include <fcntl.h>
2945 #include <sys/mman.h>
2947 /* This mess was copied from the GNU getpagesize.h. */
2948 #ifndef HAVE_GETPAGESIZE
2949 # ifdef HAVE_UNISTD_H
2950 # include <unistd.h>
2951 # endif
2953 /* Assume that all systems that can run configure have sys/param.h. */
2954 # ifndef HAVE_SYS_PARAM_H
2955 # define HAVE_SYS_PARAM_H 1
2956 # endif
2958 # ifdef _SC_PAGESIZE
2959 # define getpagesize() sysconf(_SC_PAGESIZE)
2960 # else /* no _SC_PAGESIZE */
2961 # ifdef HAVE_SYS_PARAM_H
2962 # include <sys/param.h>
2963 # ifdef EXEC_PAGESIZE
2964 # define getpagesize() EXEC_PAGESIZE
2965 # else /* no EXEC_PAGESIZE */
2966 # ifdef NBPG
2967 # define getpagesize() NBPG * CLSIZE
2968 # ifndef CLSIZE
2969 # define CLSIZE 1
2970 # endif /* no CLSIZE */
2971 # else /* no NBPG */
2972 # ifdef NBPC
2973 # define getpagesize() NBPC
2974 # else /* no NBPC */
2975 # ifdef PAGESIZE
2976 # define getpagesize() PAGESIZE
2977 # endif /* PAGESIZE */
2978 # endif /* no NBPC */
2979 # endif /* no NBPG */
2980 # endif /* no EXEC_PAGESIZE */
2981 # else /* no HAVE_SYS_PARAM_H */
2982 # define getpagesize() 8192 /* punt totally */
2983 # endif /* no HAVE_SYS_PARAM_H */
2984 # endif /* no _SC_PAGESIZE */
2986 #endif /* no HAVE_GETPAGESIZE */
2988 #ifdef __cplusplus
2989 extern "C" { void *malloc(unsigned); }
2990 #else
2991 char *malloc();
2992 #endif
2995 main()
2997 char *data, *data2, *data3;
2998 int i, pagesize;
2999 int fd;
3001 pagesize = getpagesize();
3004 * First, make a file with some known garbage in it.
3006 data = malloc(pagesize);
3007 if (!data)
3008 exit(1);
3009 for (i = 0; i < pagesize; ++i)
3010 *(data + i) = rand();
3011 umask(0);
3012 fd = creat("conftestmmap", 0600);
3013 if (fd < 0)
3014 exit(1);
3015 if (write(fd, data, pagesize) != pagesize)
3016 exit(1);
3017 close(fd);
3020 * Next, try to mmap the file at a fixed address which
3021 * already has something else allocated at it. If we can,
3022 * also make sure that we see the same garbage.
3024 fd = open("conftestmmap", O_RDWR);
3025 if (fd < 0)
3026 exit(1);
3027 data2 = malloc(2 * pagesize);
3028 if (!data2)
3029 exit(1);
3030 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3031 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3032 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3033 exit(1);
3034 for (i = 0; i < pagesize; ++i)
3035 if (*(data + i) != *(data2 + i))
3036 exit(1);
3039 * Finally, make sure that changes to the mapped area
3040 * do not percolate back to the file as seen by read().
3041 * (This is a bug on some variants of i386 svr4.0.)
3043 for (i = 0; i < pagesize; ++i)
3044 *(data2 + i) = *(data2 + i) + 1;
3045 data3 = malloc(pagesize);
3046 if (!data3)
3047 exit(1);
3048 if (read(fd, data3, pagesize) != pagesize)
3049 exit(1);
3050 for (i = 0; i < pagesize; ++i)
3051 if (*(data + i) != *(data3 + i))
3052 exit(1);
3053 close(fd);
3054 unlink("conftestmmap");
3055 exit(0);
3059 if { (eval echo configure:3060: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext} && (./conftest; exit) 2>/dev/null
3060 then
3061 ac_cv_func_mmap_fixed_mapped=yes
3062 else
3063 echo "configure: failed program was:" >&5
3064 cat conftest.$ac_ext >&5
3065 rm -fr conftest*
3066 ac_cv_func_mmap_fixed_mapped=no
3068 rm -fr conftest*
3073 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3074 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3075 cat >> confdefs.h <<\EOF
3076 #define HAVE_MMAP 1
3082 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
3083 echo "configure:3084: checking whether we are using the GNU C Library 2.1 or newer" >&5
3084 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
3085 echo $ac_n "(cached) $ac_c" 1>&6
3086 else
3087 cat > conftest.$ac_ext <<EOF
3088 #line 3089 "configure"
3089 #include "confdefs.h"
3091 #include <features.h>
3092 #ifdef __GNU_LIBRARY__
3093 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3094 Lucky GNU user
3095 #endif
3096 #endif
3099 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3100 egrep "Lucky GNU user" >/dev/null 2>&1; then
3101 rm -rf conftest*
3102 ac_cv_gnu_library_2_1=yes
3103 else
3104 rm -rf conftest*
3105 ac_cv_gnu_library_2_1=no
3107 rm -f conftest*
3113 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
3115 GLIBC21="$ac_cv_gnu_library_2_1"
3119 for ac_hdr in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3120 stdlib.h string.h unistd.h sys/param.h
3122 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3123 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3124 echo "configure:3125: checking for $ac_hdr" >&5
3125 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3126 echo $ac_n "(cached) $ac_c" 1>&6
3127 else
3128 cat > conftest.$ac_ext <<EOF
3129 #line 3130 "configure"
3130 #include "confdefs.h"
3131 #include <$ac_hdr>
3133 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3134 { (eval echo configure:3135: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3135 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3136 if test -z "$ac_err"; then
3137 rm -rf conftest*
3138 eval "ac_cv_header_$ac_safe=yes"
3139 else
3140 echo "$ac_err" >&5
3141 echo "configure: failed program was:" >&5
3142 cat conftest.$ac_ext >&5
3143 rm -rf conftest*
3144 eval "ac_cv_header_$ac_safe=no"
3146 rm -f conftest*
3148 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3149 echo "$ac_t""yes" 1>&6
3150 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3151 cat >> confdefs.h <<EOF
3152 #define $ac_tr_hdr 1
3155 else
3156 echo "$ac_t""no" 1>&6
3158 done
3160 for ac_func in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3161 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3162 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3164 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3165 echo "configure:3166: checking for $ac_func" >&5
3166 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3167 echo $ac_n "(cached) $ac_c" 1>&6
3168 else
3169 cat > conftest.$ac_ext <<EOF
3170 #line 3171 "configure"
3171 #include "confdefs.h"
3172 /* System header to define __stub macros and hopefully few prototypes,
3173 which can conflict with char $ac_func(); below. */
3174 #include <assert.h>
3175 /* Override any gcc2 internal prototype to avoid an error. */
3176 /* We use char because int might match the return type of a gcc2
3177 builtin and then its argument prototype would still apply. */
3178 char $ac_func();
3180 int main() {
3182 /* The GNU C library defines this for functions which it implements
3183 to always fail with ENOSYS. Some functions are actually named
3184 something starting with __ and the normal name is an alias. */
3185 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3186 choke me
3187 #else
3188 $ac_func();
3189 #endif
3191 ; return 0; }
3193 if { (eval echo configure:3194: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3194 rm -rf conftest*
3195 eval "ac_cv_func_$ac_func=yes"
3196 else
3197 echo "configure: failed program was:" >&5
3198 cat conftest.$ac_ext >&5
3199 rm -rf conftest*
3200 eval "ac_cv_func_$ac_func=no"
3202 rm -f conftest*
3205 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3206 echo "$ac_t""yes" 1>&6
3207 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3208 cat >> confdefs.h <<EOF
3209 #define $ac_tr_func 1
3212 else
3213 echo "$ac_t""no" 1>&6
3215 done
3220 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3221 if test "${with_libiconv_prefix+set}" = set; then
3222 withval="$with_libiconv_prefix"
3224 for dir in `echo "$withval" | tr : ' '`; do
3225 if test -d $dir/include; then CPPFLAGS="$CPPFLAGS -I$dir/include"; fi
3226 if test -d $dir/lib; then LDFLAGS="$LDFLAGS -L$dir/lib"; fi
3227 done
3232 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3233 echo "configure:3234: checking for iconv" >&5
3234 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3235 echo $ac_n "(cached) $ac_c" 1>&6
3236 else
3238 am_cv_func_iconv="no, consider installing GNU libiconv"
3239 am_cv_lib_iconv=no
3240 cat > conftest.$ac_ext <<EOF
3241 #line 3242 "configure"
3242 #include "confdefs.h"
3243 #include <stdlib.h>
3244 #include <iconv.h>
3245 int main() {
3246 iconv_t cd = iconv_open("","");
3247 iconv(cd,NULL,NULL,NULL,NULL);
3248 iconv_close(cd);
3249 ; return 0; }
3251 if { (eval echo configure:3252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3252 rm -rf conftest*
3253 am_cv_func_iconv=yes
3254 else
3255 echo "configure: failed program was:" >&5
3256 cat conftest.$ac_ext >&5
3258 rm -f conftest*
3259 if test "$am_cv_func_iconv" != yes; then
3260 am_save_LIBS="$LIBS"
3261 LIBS="$LIBS -liconv"
3262 cat > conftest.$ac_ext <<EOF
3263 #line 3264 "configure"
3264 #include "confdefs.h"
3265 #include <stdlib.h>
3266 #include <iconv.h>
3267 int main() {
3268 iconv_t cd = iconv_open("","");
3269 iconv(cd,NULL,NULL,NULL,NULL);
3270 iconv_close(cd);
3271 ; return 0; }
3273 if { (eval echo configure:3274: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3274 rm -rf conftest*
3275 am_cv_lib_iconv=yes
3276 am_cv_func_iconv=yes
3277 else
3278 echo "configure: failed program was:" >&5
3279 cat conftest.$ac_ext >&5
3281 rm -f conftest*
3282 LIBS="$am_save_LIBS"
3287 echo "$ac_t""$am_cv_func_iconv" 1>&6
3288 if test "$am_cv_func_iconv" = yes; then
3289 cat >> confdefs.h <<\EOF
3290 #define HAVE_ICONV 1
3293 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3294 echo "configure:3295: checking for iconv declaration" >&5
3295 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3296 echo $ac_n "(cached) $ac_c" 1>&6
3297 else
3299 cat > conftest.$ac_ext <<EOF
3300 #line 3301 "configure"
3301 #include "confdefs.h"
3303 #include <stdlib.h>
3304 #include <iconv.h>
3305 extern
3306 #ifdef __cplusplus
3308 #endif
3309 #if defined(__STDC__) || defined(__cplusplus)
3310 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3311 #else
3312 size_t iconv();
3313 #endif
3315 int main() {
3317 ; return 0; }
3319 if { (eval echo configure:3320: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3320 rm -rf conftest*
3321 am_cv_proto_iconv_arg1=""
3322 else
3323 echo "configure: failed program was:" >&5
3324 cat conftest.$ac_ext >&5
3325 rm -rf conftest*
3326 am_cv_proto_iconv_arg1="const"
3328 rm -f conftest*
3329 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
3332 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3333 echo "$ac_t""${ac_t:-
3334 }$am_cv_proto_iconv" 1>&6
3335 cat >> confdefs.h <<EOF
3336 #define ICONV_CONST $am_cv_proto_iconv_arg1
3340 LIBICONV=
3341 if test "$am_cv_lib_iconv" = yes; then
3342 LIBICONV="-liconv"
3347 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3348 echo "configure:3349: checking for nl_langinfo and CODESET" >&5
3349 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3350 echo $ac_n "(cached) $ac_c" 1>&6
3351 else
3352 cat > conftest.$ac_ext <<EOF
3353 #line 3354 "configure"
3354 #include "confdefs.h"
3355 #include <langinfo.h>
3356 int main() {
3357 char* cs = nl_langinfo(CODESET);
3358 ; return 0; }
3360 if { (eval echo configure:3361: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3361 rm -rf conftest*
3362 am_cv_langinfo_codeset=yes
3363 else
3364 echo "configure: failed program was:" >&5
3365 cat conftest.$ac_ext >&5
3366 rm -rf conftest*
3367 am_cv_langinfo_codeset=no
3369 rm -f conftest*
3373 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3374 if test $am_cv_langinfo_codeset = yes; then
3375 cat >> confdefs.h <<\EOF
3376 #define HAVE_LANGINFO_CODESET 1
3381 if test $ac_cv_header_locale_h = yes; then
3382 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3383 echo "configure:3384: checking for LC_MESSAGES" >&5
3384 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3385 echo $ac_n "(cached) $ac_c" 1>&6
3386 else
3387 cat > conftest.$ac_ext <<EOF
3388 #line 3389 "configure"
3389 #include "confdefs.h"
3390 #include <locale.h>
3391 int main() {
3392 return LC_MESSAGES
3393 ; return 0; }
3395 if { (eval echo configure:3396: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3396 rm -rf conftest*
3397 am_cv_val_LC_MESSAGES=yes
3398 else
3399 echo "configure: failed program was:" >&5
3400 cat conftest.$ac_ext >&5
3401 rm -rf conftest*
3402 am_cv_val_LC_MESSAGES=no
3404 rm -f conftest*
3407 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3408 if test $am_cv_val_LC_MESSAGES = yes; then
3409 cat >> confdefs.h <<\EOF
3410 #define HAVE_LC_MESSAGES 1
3415 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3416 echo "configure:3417: checking whether NLS is requested" >&5
3417 # Check whether --enable-nls or --disable-nls was given.
3418 if test "${enable_nls+set}" = set; then
3419 enableval="$enable_nls"
3420 USE_NLS=$enableval
3421 else
3422 USE_NLS=yes
3425 echo "$ac_t""$USE_NLS" 1>&6
3428 BUILD_INCLUDED_LIBINTL=no
3429 USE_INCLUDED_LIBINTL=no
3430 INTLLIBS=
3432 if test "$USE_NLS" = "yes"; then
3433 cat >> confdefs.h <<\EOF
3434 #define ENABLE_NLS 1
3437 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3438 echo "configure:3439: checking whether included gettext is requested" >&5
3439 # Check whether --with-included-gettext or --without-included-gettext was given.
3440 if test "${with_included_gettext+set}" = set; then
3441 withval="$with_included_gettext"
3442 nls_cv_force_use_gnu_gettext=$withval
3443 else
3444 nls_cv_force_use_gnu_gettext=no
3447 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3449 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext"
3450 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3451 CATOBJEXT=NONE
3456 ac_safe=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3457 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3458 echo "configure:3459: checking for libintl.h" >&5
3459 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3460 echo $ac_n "(cached) $ac_c" 1>&6
3461 else
3462 cat > conftest.$ac_ext <<EOF
3463 #line 3464 "configure"
3464 #include "confdefs.h"
3465 #include <libintl.h>
3467 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3468 { (eval echo configure:3469: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3469 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3470 if test -z "$ac_err"; then
3471 rm -rf conftest*
3472 eval "ac_cv_header_$ac_safe=yes"
3473 else
3474 echo "$ac_err" >&5
3475 echo "configure: failed program was:" >&5
3476 cat conftest.$ac_ext >&5
3477 rm -rf conftest*
3478 eval "ac_cv_header_$ac_safe=no"
3480 rm -f conftest*
3482 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3483 echo "$ac_t""yes" 1>&6
3484 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3485 echo "configure:3486: checking for GNU gettext in libc" >&5
3486 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3487 echo $ac_n "(cached) $ac_c" 1>&6
3488 else
3489 cat > conftest.$ac_ext <<EOF
3490 #line 3491 "configure"
3491 #include "confdefs.h"
3492 #include <libintl.h>
3493 extern int _nl_msg_cat_cntr;
3494 int main() {
3495 bindtextdomain ("", "");
3496 return (int) gettext ("") + _nl_msg_cat_cntr
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 gt_cv_func_gnugettext1_libc=yes
3502 else
3503 echo "configure: failed program was:" >&5
3504 cat conftest.$ac_ext >&5
3505 rm -rf conftest*
3506 gt_cv_func_gnugettext1_libc=no
3508 rm -f conftest*
3511 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
3513 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3514 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
3515 echo "configure:3516: checking for GNU gettext in libintl" >&5
3516 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
3517 echo $ac_n "(cached) $ac_c" 1>&6
3518 else
3519 gt_save_LIBS="$LIBS"
3520 LIBS="$LIBS -lintl $LIBICONV"
3521 cat > conftest.$ac_ext <<EOF
3522 #line 3523 "configure"
3523 #include "confdefs.h"
3524 #include <libintl.h>
3525 extern int _nl_msg_cat_cntr;
3526 int main() {
3527 bindtextdomain ("", "");
3528 return (int) gettext ("") + _nl_msg_cat_cntr
3529 ; return 0; }
3531 if { (eval echo configure:3532: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3532 rm -rf conftest*
3533 gt_cv_func_gnugettext1_libintl=yes
3534 else
3535 echo "configure: failed program was:" >&5
3536 cat conftest.$ac_ext >&5
3537 rm -rf conftest*
3538 gt_cv_func_gnugettext1_libintl=no
3540 rm -f conftest*
3541 LIBS="$gt_save_LIBS"
3544 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
3547 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
3548 || { test "$gt_cv_func_gnugettext1_libintl" = "yes" \
3549 && test "$PACKAGE" != gettext; }; then
3550 cat >> confdefs.h <<\EOF
3551 #define HAVE_GETTEXT 1
3555 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
3556 INTLLIBS="-lintl $LIBICONV"
3559 gt_save_LIBS="$LIBS"
3560 LIBS="$LIBS $INTLLIBS"
3561 for ac_func in dcgettext
3563 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3564 echo "configure:3565: checking for $ac_func" >&5
3565 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3566 echo $ac_n "(cached) $ac_c" 1>&6
3567 else
3568 cat > conftest.$ac_ext <<EOF
3569 #line 3570 "configure"
3570 #include "confdefs.h"
3571 /* System header to define __stub macros and hopefully few prototypes,
3572 which can conflict with char $ac_func(); below. */
3573 #include <assert.h>
3574 /* Override any gcc2 internal prototype to avoid an error. */
3575 /* We use char because int might match the return type of a gcc2
3576 builtin and then its argument prototype would still apply. */
3577 char $ac_func();
3579 int main() {
3581 /* The GNU C library defines this for functions which it implements
3582 to always fail with ENOSYS. Some functions are actually named
3583 something starting with __ and the normal name is an alias. */
3584 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3585 choke me
3586 #else
3587 $ac_func();
3588 #endif
3590 ; return 0; }
3592 if { (eval echo configure:3593: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
3593 rm -rf conftest*
3594 eval "ac_cv_func_$ac_func=yes"
3595 else
3596 echo "configure: failed program was:" >&5
3597 cat conftest.$ac_ext >&5
3598 rm -rf conftest*
3599 eval "ac_cv_func_$ac_func=no"
3601 rm -f conftest*
3604 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3605 echo "$ac_t""yes" 1>&6
3606 ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3607 cat >> confdefs.h <<EOF
3608 #define $ac_tr_func 1
3611 else
3612 echo "$ac_t""no" 1>&6
3614 done
3616 LIBS="$gt_save_LIBS"
3618 # Extract the first word of "msgfmt", so it can be a program name with args.
3619 set dummy msgfmt; ac_word=$2
3620 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3621 echo "configure:3622: checking for $ac_word" >&5
3622 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3623 echo $ac_n "(cached) $ac_c" 1>&6
3624 else
3625 case "$MSGFMT" in
3627 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3630 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3631 for ac_dir in $PATH; do
3632 test -z "$ac_dir" && ac_dir=.
3633 if test -f $ac_dir/$ac_word; then
3634 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
3635 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3636 break
3639 done
3640 IFS="$ac_save_ifs"
3641 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3643 esac
3645 MSGFMT="$ac_cv_path_MSGFMT"
3646 if test "$MSGFMT" != ":"; then
3647 echo "$ac_t""$MSGFMT" 1>&6
3648 else
3649 echo "$ac_t""no" 1>&6
3652 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3653 set dummy gmsgfmt; ac_word=$2
3654 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3655 echo "configure:3656: checking for $ac_word" >&5
3656 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3658 else
3659 case "$GMSGFMT" in
3661 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3663 ?:/*)
3664 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3667 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3668 ac_dummy="$PATH"
3669 for ac_dir in $ac_dummy; do
3670 test -z "$ac_dir" && ac_dir=.
3671 if test -f $ac_dir/$ac_word; then
3672 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3673 break
3675 done
3676 IFS="$ac_save_ifs"
3677 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3679 esac
3681 GMSGFMT="$ac_cv_path_GMSGFMT"
3682 if test -n "$GMSGFMT"; then
3683 echo "$ac_t""$GMSGFMT" 1>&6
3684 else
3685 echo "$ac_t""no" 1>&6
3689 # Extract the first word of "xgettext", so it can be a program name with args.
3690 set dummy xgettext; ac_word=$2
3691 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3692 echo "configure:3693: checking for $ac_word" >&5
3693 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3694 echo $ac_n "(cached) $ac_c" 1>&6
3695 else
3696 case "$XGETTEXT" in
3698 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3701 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3702 for ac_dir in $PATH; do
3703 test -z "$ac_dir" && ac_dir=.
3704 if test -f $ac_dir/$ac_word; then
3705 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
3706 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3707 break
3710 done
3711 IFS="$ac_save_ifs"
3712 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3714 esac
3716 XGETTEXT="$ac_cv_path_XGETTEXT"
3717 if test "$XGETTEXT" != ":"; then
3718 echo "$ac_t""$XGETTEXT" 1>&6
3719 else
3720 echo "$ac_t""no" 1>&6
3724 CATOBJEXT=.gmo
3727 else
3728 echo "$ac_t""no" 1>&6
3732 if test "$CATOBJEXT" = "NONE"; then
3733 nls_cv_use_gnu_gettext=yes
3737 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3738 INTLOBJS="\$(GETTOBJS)"
3739 # Extract the first word of "msgfmt", so it can be a program name with args.
3740 set dummy msgfmt; ac_word=$2
3741 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3742 echo "configure:3743: checking for $ac_word" >&5
3743 if eval "test \"`echo '$''{'ac_cv_path_MSGFMT'+set}'`\" = set"; then
3744 echo $ac_n "(cached) $ac_c" 1>&6
3745 else
3746 case "$MSGFMT" in
3748 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path.
3751 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3752 for ac_dir in $PATH; do
3753 test -z "$ac_dir" && ac_dir=.
3754 if test -f $ac_dir/$ac_word; then
3755 if $ac_dir/$ac_word --statistics /dev/null >/dev/null 2>&1; then
3756 ac_cv_path_MSGFMT="$ac_dir/$ac_word"
3757 break
3760 done
3761 IFS="$ac_save_ifs"
3762 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":"
3764 esac
3766 MSGFMT="$ac_cv_path_MSGFMT"
3767 if test "$MSGFMT" != ":"; then
3768 echo "$ac_t""$MSGFMT" 1>&6
3769 else
3770 echo "$ac_t""no" 1>&6
3773 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3774 set dummy gmsgfmt; ac_word=$2
3775 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3776 echo "configure:3777: checking for $ac_word" >&5
3777 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3779 else
3780 case "$GMSGFMT" in
3782 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path.
3784 ?:/*)
3785 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a dos path.
3788 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3789 ac_dummy="$PATH"
3790 for ac_dir in $ac_dummy; do
3791 test -z "$ac_dir" && ac_dir=.
3792 if test -f $ac_dir/$ac_word; then
3793 ac_cv_path_GMSGFMT="$ac_dir/$ac_word"
3794 break
3796 done
3797 IFS="$ac_save_ifs"
3798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT"
3800 esac
3802 GMSGFMT="$ac_cv_path_GMSGFMT"
3803 if test -n "$GMSGFMT"; then
3804 echo "$ac_t""$GMSGFMT" 1>&6
3805 else
3806 echo "$ac_t""no" 1>&6
3809 # Extract the first word of "xgettext", so it can be a program name with args.
3810 set dummy xgettext; ac_word=$2
3811 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3812 echo "configure:3813: checking for $ac_word" >&5
3813 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3814 echo $ac_n "(cached) $ac_c" 1>&6
3815 else
3816 case "$XGETTEXT" in
3818 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path.
3821 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
3822 for ac_dir in $PATH; do
3823 test -z "$ac_dir" && ac_dir=.
3824 if test -f $ac_dir/$ac_word; then
3825 if $ac_dir/$ac_word --omit-header /dev/null >/dev/null 2>&1; then
3826 ac_cv_path_XGETTEXT="$ac_dir/$ac_word"
3827 break
3830 done
3831 IFS="$ac_save_ifs"
3832 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":"
3834 esac
3836 XGETTEXT="$ac_cv_path_XGETTEXT"
3837 if test "$XGETTEXT" != ":"; then
3838 echo "$ac_t""$XGETTEXT" 1>&6
3839 else
3840 echo "$ac_t""no" 1>&6
3844 BUILD_INCLUDED_LIBINTL=yes
3845 USE_INCLUDED_LIBINTL=yes
3846 CATOBJEXT=.gmo
3847 INTLLIBS="\$(top_builddir)/intl/libintl.a $LIBICONV"
3848 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
3851 if test "$GMSGFMT" != ":"; then
3852 if $GMSGFMT --statistics /dev/null >/dev/null 2>&1; then
3854 else
3855 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3856 GMSGFMT=":"
3860 if test "$XGETTEXT" != ":"; then
3861 if $XGETTEXT --omit-header /dev/null >/dev/null 2>&1; then
3863 else
3864 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3865 XGETTEXT=":"
3869 POSUB=po
3874 if test "$PACKAGE" = gettext; then
3875 BUILD_INCLUDED_LIBINTL=yes
3878 for ac_prog in bison
3880 # Extract the first word of "$ac_prog", so it can be a program name with args.
3881 set dummy $ac_prog; ac_word=$2
3882 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3883 echo "configure:3884: checking for $ac_word" >&5
3884 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3885 echo $ac_n "(cached) $ac_c" 1>&6
3886 else
3887 if test -n "$INTLBISON"; then
3888 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test.
3889 else
3890 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
3891 ac_dummy="$PATH"
3892 for ac_dir in $ac_dummy; do
3893 test -z "$ac_dir" && ac_dir=.
3894 if test -f $ac_dir/$ac_word; then
3895 ac_cv_prog_INTLBISON="$ac_prog"
3896 break
3898 done
3899 IFS="$ac_save_ifs"
3902 INTLBISON="$ac_cv_prog_INTLBISON"
3903 if test -n "$INTLBISON"; then
3904 echo "$ac_t""$INTLBISON" 1>&6
3905 else
3906 echo "$ac_t""no" 1>&6
3909 test -n "$INTLBISON" && break
3910 done
3912 if test -z "$INTLBISON"; then
3913 ac_verc_fail=yes
3914 else
3915 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3916 echo "configure:3917: checking version of bison" >&5
3917 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3918 case $ac_prog_version in
3919 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;;
3920 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*)
3921 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;;
3922 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;;
3923 esac
3924 echo "$ac_t""$ac_prog_version" 1>&6
3926 if test $ac_verc_fail = yes; then
3927 INTLBISON=:
3930 for lang in $ALL_LINGUAS; do
3931 GMOFILES="$GMOFILES $lang.gmo"
3932 POFILES="$POFILES $lang.po"
3933 done
3945 nls_cv_header_intl=
3946 nls_cv_header_libgt=
3948 DATADIRNAME=share
3951 INSTOBJEXT=.mo
3954 GENCAT=gencat
3958 if test "x$CATOBJEXT" != "x"; then
3959 if test "x$ALL_LINGUAS" = "x"; then
3960 LINGUAS=
3961 else
3962 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3963 echo "configure:3964: checking for catalogs to be installed" >&5
3964 NEW_LINGUAS=
3965 for presentlang in $ALL_LINGUAS; do
3966 useit=no
3967 for desiredlang in ${LINGUAS-$ALL_LINGUAS}; do
3968 # Use the presentlang catalog if desiredlang is
3969 # a. equal to presentlang, or
3970 # b. a variant of presentlang (because in this case,
3971 # presentlang can be used as a fallback for messages
3972 # which are not translated in the desiredlang catalog).
3973 case "$desiredlang" in
3974 "$presentlang"*) useit=yes;;
3975 esac
3976 done
3977 if test $useit = yes; then
3978 NEW_LINGUAS="$NEW_LINGUAS $presentlang"
3980 done
3981 LINGUAS=$NEW_LINGUAS
3982 echo "$ac_t""$LINGUAS" 1>&6
3985 if test -n "$LINGUAS"; then
3986 for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done
3990 MKINSTALLDIRS=
3991 if test -n "$ac_aux_dir"; then
3992 MKINSTALLDIRS="$ac_aux_dir/mkinstalldirs"
3994 if test -z "$MKINSTALLDIRS"; then
3995 MKINSTALLDIRS="\$(top_srcdir)/mkinstalldirs"
3999 INTL_LIBTOOL_SUFFIX_PREFIX=
4003 if test "x${prefix}" = "xNONE"; then
4004 cat >> confdefs.h <<EOF
4005 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
4008 else
4009 cat >> confdefs.h <<EOF
4010 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
4015 PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
4018 echo $ac_n "checking for H5Fcreate in -lhdf5""... $ac_c" 1>&6
4019 echo "configure:4020: checking for H5Fcreate in -lhdf5" >&5
4020 ac_lib_var=`echo hdf5'_'H5Fcreate | sed 'y%./+-%__p_%'`
4021 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4022 echo $ac_n "(cached) $ac_c" 1>&6
4023 else
4024 ac_save_LIBS="$LIBS"
4025 LIBS="-lhdf5 $LIBS"
4026 cat > conftest.$ac_ext <<EOF
4027 #line 4028 "configure"
4028 #include "confdefs.h"
4029 /* Override any gcc2 internal prototype to avoid an error. */
4030 /* We use char because int might match the return type of a gcc2
4031 builtin and then its argument prototype would still apply. */
4032 char H5Fcreate();
4034 int main() {
4035 H5Fcreate()
4036 ; return 0; }
4038 if { (eval echo configure:4039: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4039 rm -rf conftest*
4040 eval "ac_cv_lib_$ac_lib_var=yes"
4041 else
4042 echo "configure: failed program was:" >&5
4043 cat conftest.$ac_ext >&5
4044 rm -rf conftest*
4045 eval "ac_cv_lib_$ac_lib_var=no"
4047 rm -f conftest*
4048 LIBS="$ac_save_LIBS"
4051 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4052 echo "$ac_t""yes" 1>&6
4053 ac_tr_lib=HAVE_LIB`echo hdf5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4054 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4055 cat >> confdefs.h <<EOF
4056 #define $ac_tr_lib 1
4059 LIBS="-lhdf5 $LIBS"
4061 else
4062 echo "$ac_t""no" 1>&6
4063 { echo "configure: error: "libhdf5 not installed"" 1>&2; exit 1; }
4066 echo $ac_n "checking for gpiv_vector in -lgpiv""... $ac_c" 1>&6
4067 echo "configure:4068: checking for gpiv_vector in -lgpiv" >&5
4068 ac_lib_var=`echo gpiv'_'gpiv_vector | sed 'y%./+-%__p_%'`
4069 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4070 echo $ac_n "(cached) $ac_c" 1>&6
4071 else
4072 ac_save_LIBS="$LIBS"
4073 LIBS="-lgpiv $LIBS"
4074 cat > conftest.$ac_ext <<EOF
4075 #line 4076 "configure"
4076 #include "confdefs.h"
4077 /* Override any gcc2 internal prototype to avoid an error. */
4078 /* We use char because int might match the return type of a gcc2
4079 builtin and then its argument prototype would still apply. */
4080 char gpiv_vector();
4082 int main() {
4083 gpiv_vector()
4084 ; return 0; }
4086 if { (eval echo configure:4087: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4087 rm -rf conftest*
4088 eval "ac_cv_lib_$ac_lib_var=yes"
4089 else
4090 echo "configure: failed program was:" >&5
4091 cat conftest.$ac_ext >&5
4092 rm -rf conftest*
4093 eval "ac_cv_lib_$ac_lib_var=no"
4095 rm -f conftest*
4096 LIBS="$ac_save_LIBS"
4099 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4100 echo "$ac_t""yes" 1>&6
4101 ac_tr_lib=HAVE_LIB`echo gpiv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4102 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4103 cat >> confdefs.h <<EOF
4104 #define $ac_tr_lib 1
4107 LIBS="-lgpiv $LIBS"
4109 else
4110 echo "$ac_t""no" 1>&6
4111 { echo "configure: error: "libgpiv has not been installed"" 1>&2; exit 1; }
4114 echo $ac_n "checking for rfftw2d_create_plan in -lrfftw""... $ac_c" 1>&6
4115 echo "configure:4116: checking for rfftw2d_create_plan in -lrfftw" >&5
4116 ac_lib_var=`echo rfftw'_'rfftw2d_create_plan | sed 'y%./+-%__p_%'`
4117 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4118 echo $ac_n "(cached) $ac_c" 1>&6
4119 else
4120 ac_save_LIBS="$LIBS"
4121 LIBS="-lrfftw $LIBS"
4122 cat > conftest.$ac_ext <<EOF
4123 #line 4124 "configure"
4124 #include "confdefs.h"
4125 /* Override any gcc2 internal prototype to avoid an error. */
4126 /* We use char because int might match the return type of a gcc2
4127 builtin and then its argument prototype would still apply. */
4128 char rfftw2d_create_plan();
4130 int main() {
4131 rfftw2d_create_plan()
4132 ; return 0; }
4134 if { (eval echo configure:4135: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4135 rm -rf conftest*
4136 eval "ac_cv_lib_$ac_lib_var=yes"
4137 else
4138 echo "configure: failed program was:" >&5
4139 cat conftest.$ac_ext >&5
4140 rm -rf conftest*
4141 eval "ac_cv_lib_$ac_lib_var=no"
4143 rm -f conftest*
4144 LIBS="$ac_save_LIBS"
4147 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4148 echo "$ac_t""yes" 1>&6
4149 ac_tr_lib=HAVE_LIB`echo rfftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4150 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4151 cat >> confdefs.h <<EOF
4152 #define $ac_tr_lib 1
4155 LIBS="-lrfftw $LIBS"
4157 else
4158 echo "$ac_t""no" 1>&6
4159 { echo "configure: error: "librfftw not installed"" 1>&2; exit 1; }
4162 echo $ac_n "checking for fftw_import_wisdom_from_string in -lfftw""... $ac_c" 1>&6
4163 echo "configure:4164: checking for fftw_import_wisdom_from_string in -lfftw" >&5
4164 ac_lib_var=`echo fftw'_'fftw_import_wisdom_from_string | sed 'y%./+-%__p_%'`
4165 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4166 echo $ac_n "(cached) $ac_c" 1>&6
4167 else
4168 ac_save_LIBS="$LIBS"
4169 LIBS="-lfftw $LIBS"
4170 cat > conftest.$ac_ext <<EOF
4171 #line 4172 "configure"
4172 #include "confdefs.h"
4173 /* Override any gcc2 internal prototype to avoid an error. */
4174 /* We use char because int might match the return type of a gcc2
4175 builtin and then its argument prototype would still apply. */
4176 char fftw_import_wisdom_from_string();
4178 int main() {
4179 fftw_import_wisdom_from_string()
4180 ; return 0; }
4182 if { (eval echo configure:4183: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
4183 rm -rf conftest*
4184 eval "ac_cv_lib_$ac_lib_var=yes"
4185 else
4186 echo "configure: failed program was:" >&5
4187 cat conftest.$ac_ext >&5
4188 rm -rf conftest*
4189 eval "ac_cv_lib_$ac_lib_var=no"
4191 rm -f conftest*
4192 LIBS="$ac_save_LIBS"
4195 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4196 echo "$ac_t""yes" 1>&6
4197 ac_tr_lib=HAVE_LIB`echo fftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4198 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4199 cat >> confdefs.h <<EOF
4200 #define $ac_tr_lib 1
4203 LIBS="-lfftw $LIBS"
4205 else
4206 echo "$ac_t""no" 1>&6
4207 { echo "configure: error: "libfftw not installed"" 1>&2; exit 1; }
4212 ac_safe=`echo "gpiv.h" | sed 'y%./+-%__p_%'`
4213 echo $ac_n "checking for gpiv.h""... $ac_c" 1>&6
4214 echo "configure:4215: checking for gpiv.h" >&5
4215 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4216 echo $ac_n "(cached) $ac_c" 1>&6
4217 else
4218 cat > conftest.$ac_ext <<EOF
4219 #line 4220 "configure"
4220 #include "confdefs.h"
4221 #include <gpiv.h>
4223 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4224 { (eval echo configure:4225: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4225 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4226 if test -z "$ac_err"; then
4227 rm -rf conftest*
4228 eval "ac_cv_header_$ac_safe=yes"
4229 else
4230 echo "$ac_err" >&5
4231 echo "configure: failed program was:" >&5
4232 cat conftest.$ac_ext >&5
4233 rm -rf conftest*
4234 eval "ac_cv_header_$ac_safe=no"
4236 rm -f conftest*
4238 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4239 echo "$ac_t""yes" 1>&6
4241 else
4242 echo "$ac_t""no" 1>&6
4243 { echo "configure: error: "giv.h is not installed"" 1>&2; exit 1; }
4246 for ac_hdr in stdlib.h string.h unistd.h hdf5.h
4248 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4249 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4250 echo "configure:4251: checking for $ac_hdr" >&5
4251 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4252 echo $ac_n "(cached) $ac_c" 1>&6
4253 else
4254 cat > conftest.$ac_ext <<EOF
4255 #line 4256 "configure"
4256 #include "confdefs.h"
4257 #include <$ac_hdr>
4259 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4260 { (eval echo configure:4261: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4261 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4262 if test -z "$ac_err"; then
4263 rm -rf conftest*
4264 eval "ac_cv_header_$ac_safe=yes"
4265 else
4266 echo "$ac_err" >&5
4267 echo "configure: failed program was:" >&5
4268 cat conftest.$ac_ext >&5
4269 rm -rf conftest*
4270 eval "ac_cv_header_$ac_safe=no"
4272 rm -f conftest*
4274 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4275 echo "$ac_t""yes" 1>&6
4276 ac_tr_hdr=HAVE_`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4277 cat >> confdefs.h <<EOF
4278 #define $ac_tr_hdr 1
4281 else
4282 echo "$ac_t""no" 1>&6
4284 done
4289 # Check whether --enable-img-width or --disable-img-width was given.
4290 if test "${enable_img_width+set}" = set; then
4291 enableval="$enable_img_width"
4292 OVERRIDE_IMAGE_WIDTH_MAX="-DIMAGE_WIDTH_MAX=$enableval"
4299 # Check whether --enable-img-height or --disable-img-height was given.
4300 if test "${enable_img_height+set}" = set; then
4301 enableval="$enable_img_height"
4302 OVERRIDE_IMAGE_HEIGHT_MAX="-DIMAGE_HEIGHT_MAX=$enableval"
4309 # Check whether --enable-debug or --disable-debug was given.
4310 if test "${enable_debug+set}" = set; then
4311 enableval="$enable_debug"
4312 DEBUG="-DDEBUG"
4319 trap '' 1 2 15
4320 cat > confcache <<\EOF
4321 # This file is a shell script that caches the results of configure
4322 # tests run on this system so they can be shared between configure
4323 # scripts and configure runs. It is not useful on other systems.
4324 # If it contains results you don't want to keep, you may remove or edit it.
4326 # By default, configure uses ./config.cache as the cache file,
4327 # creating it if it does not exist already. You can give configure
4328 # the --cache-file=FILE option to use a different cache file; that is
4329 # what configure does when it calls configure scripts in
4330 # subdirectories, so they share the cache.
4331 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4332 # config.status only pays attention to the cache file if you give it the
4333 # --recheck option to rerun configure.
4336 # The following way of writing the cache mishandles newlines in values,
4337 # but we know of no workaround that is simple, portable, and efficient.
4338 # So, don't put newlines in cache variables' values.
4339 # Ultrix sh set writes to stderr and can't be redirected directly,
4340 # and sets the high bit in the cache file unless we assign to the vars.
4341 (set) 2>&1 |
4342 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4343 *ac_space=\ *)
4344 # `set' does not quote correctly, so add quotes (double-quote substitution
4345 # turns \\\\ into \\, and sed turns \\ into \).
4346 sed -n \
4347 -e "s/'/'\\\\''/g" \
4348 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4351 # `set' quotes correctly as required by POSIX, so do not add quotes.
4352 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4354 esac >> confcache
4355 if cmp -s $cache_file confcache; then
4357 else
4358 if test -w $cache_file; then
4359 echo "updating cache $cache_file"
4360 cat confcache > $cache_file
4361 else
4362 echo "not updating unwritable cache $cache_file"
4365 rm -f confcache
4367 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4369 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4370 # Let make expand exec_prefix.
4371 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4373 # Any assignment to VPATH causes Sun make to only execute
4374 # the first set of double-colon rules, so remove it if not needed.
4375 # If there is a colon in the path, we need to keep it.
4376 if test "x$srcdir" = x.; then
4377 ac_vpsub='/^[ ]*VPATH[ ]*=[^:]*$/d'
4380 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4382 DEFS=-DHAVE_CONFIG_H
4384 # Without the "./", some shells look in PATH for config.status.
4385 : ${CONFIG_STATUS=./config.status}
4387 echo creating $CONFIG_STATUS
4388 rm -f $CONFIG_STATUS
4389 cat > $CONFIG_STATUS <<EOF
4390 #! /bin/sh
4391 # Generated automatically by configure.
4392 # Run this file to recreate the current configuration.
4393 # This directory was configured as follows,
4394 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4396 # $0 $ac_configure_args
4398 # Compiler output produced by configure, useful for debugging
4399 # configure, is in ./config.log if it exists.
4401 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4402 for ac_option
4404 case "\$ac_option" in
4405 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4406 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4407 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4408 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4409 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4410 exit 0 ;;
4411 -help | --help | --hel | --he | --h)
4412 echo "\$ac_cs_usage"; exit 0 ;;
4413 *) echo "\$ac_cs_usage"; exit 1 ;;
4414 esac
4415 done
4417 ac_given_srcdir=$srcdir
4418 ac_given_INSTALL="$INSTALL"
4420 trap 'rm -fr `echo "
4421 Makefile
4422 macros/Makefile
4423 doc/Makefile
4424 doc/C/Makefile
4425 doc/C/figures/Makefile
4426 src/Makefile
4427 intl/Makefile
4428 po/Makefile.in
4429 man/Makefile
4430 debian/Makefile
4431 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4433 cat >> $CONFIG_STATUS <<EOF
4435 # Protect against being on the right side of a sed subst in config.status.
4436 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4437 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4438 $ac_vpsub
4439 $extrasub
4440 s%@SHELL@%$SHELL%g
4441 s%@CFLAGS@%$CFLAGS%g
4442 s%@CPPFLAGS@%$CPPFLAGS%g
4443 s%@CXXFLAGS@%$CXXFLAGS%g
4444 s%@FFLAGS@%$FFLAGS%g
4445 s%@DEFS@%$DEFS%g
4446 s%@LDFLAGS@%$LDFLAGS%g
4447 s%@LIBS@%$LIBS%g
4448 s%@exec_prefix@%$exec_prefix%g
4449 s%@prefix@%$prefix%g
4450 s%@program_transform_name@%$program_transform_name%g
4451 s%@bindir@%$bindir%g
4452 s%@sbindir@%$sbindir%g
4453 s%@libexecdir@%$libexecdir%g
4454 s%@datadir@%$datadir%g
4455 s%@sysconfdir@%$sysconfdir%g
4456 s%@sharedstatedir@%$sharedstatedir%g
4457 s%@localstatedir@%$localstatedir%g
4458 s%@libdir@%$libdir%g
4459 s%@includedir@%$includedir%g
4460 s%@oldincludedir@%$oldincludedir%g
4461 s%@infodir@%$infodir%g
4462 s%@mandir@%$mandir%g
4463 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4464 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4465 s%@INSTALL_DATA@%$INSTALL_DATA%g
4466 s%@PACKAGE@%$PACKAGE%g
4467 s%@VERSION@%$VERSION%g
4468 s%@ACLOCAL@%$ACLOCAL%g
4469 s%@AUTOCONF@%$AUTOCONF%g
4470 s%@AUTOMAKE@%$AUTOMAKE%g
4471 s%@AUTOHEADER@%$AUTOHEADER%g
4472 s%@MAKEINFO@%$MAKEINFO%g
4473 s%@SET_MAKE@%$SET_MAKE%g
4474 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
4475 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
4476 s%@GNOME_LIBS@%$GNOME_LIBS%g
4477 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
4478 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
4479 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
4480 s%@ZVT_LIBS@%$ZVT_LIBS%g
4481 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
4482 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
4483 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
4484 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
4485 s%@ORBIT_IDL@%$ORBIT_IDL%g
4486 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
4487 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
4488 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
4489 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
4490 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
4491 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
4492 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
4493 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
4494 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
4495 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
4496 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
4497 s%@CC@%$CC%g
4498 s%@CPP@%$CPP%g
4499 s%@cflags_set@%$cflags_set%g
4500 s%@GTK_CONFIG@%$GTK_CONFIG%g
4501 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4502 s%@GTK_LIBS@%$GTK_LIBS%g
4503 s%@XPM_LIBS@%$XPM_LIBS%g
4504 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
4505 s%@host@%$host%g
4506 s%@host_alias@%$host_alias%g
4507 s%@host_cpu@%$host_cpu%g
4508 s%@host_vendor@%$host_vendor%g
4509 s%@host_os@%$host_os%g
4510 s%@RANLIB@%$RANLIB%g
4511 s%@ALLOCA@%$ALLOCA%g
4512 s%@GLIBC21@%$GLIBC21%g
4513 s%@LIBICONV@%$LIBICONV%g
4514 s%@USE_NLS@%$USE_NLS%g
4515 s%@MSGFMT@%$MSGFMT%g
4516 s%@GMSGFMT@%$GMSGFMT%g
4517 s%@XGETTEXT@%$XGETTEXT%g
4518 s%@INTLBISON@%$INTLBISON%g
4519 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
4520 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4521 s%@CATALOGS@%$CATALOGS%g
4522 s%@CATOBJEXT@%$CATOBJEXT%g
4523 s%@GMOFILES@%$GMOFILES%g
4524 s%@INTLLIBS@%$INTLLIBS%g
4525 s%@INTLOBJS@%$INTLOBJS%g
4526 s%@POFILES@%$POFILES%g
4527 s%@POSUB@%$POSUB%g
4528 s%@DATADIRNAME@%$DATADIRNAME%g
4529 s%@INSTOBJEXT@%$INSTOBJEXT%g
4530 s%@GENCAT@%$GENCAT%g
4531 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4532 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
4533 s%@PACKAGE_PIXMAPS_DIR@%$PACKAGE_PIXMAPS_DIR%g
4534 s%@OVERRIDE_IMAGE_WIDTH_MAX@%$OVERRIDE_IMAGE_WIDTH_MAX%g
4535 s%@OVERRIDE_IMAGE_HEIGHT_MAX@%$OVERRIDE_IMAGE_HEIGHT_MAX%g
4536 s%@DEBUG@%$DEBUG%g
4538 CEOF
4541 cat >> $CONFIG_STATUS <<\EOF
4543 # Split the substitutions into bite-sized pieces for seds with
4544 # small command number limits, like on Digital OSF/1 and HP-UX.
4545 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
4546 ac_file=1 # Number of current file.
4547 ac_beg=1 # First line for current file.
4548 ac_end=$ac_max_sed_cmds # Line after last line for current file.
4549 ac_more_lines=:
4550 ac_sed_cmds=""
4551 while $ac_more_lines; do
4552 if test $ac_beg -gt 1; then
4553 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
4554 else
4555 sed "${ac_end}q" conftest.subs > conftest.s$ac_file
4557 if test ! -s conftest.s$ac_file; then
4558 ac_more_lines=false
4559 rm -f conftest.s$ac_file
4560 else
4561 if test -z "$ac_sed_cmds"; then
4562 ac_sed_cmds="sed -f conftest.s$ac_file"
4563 else
4564 ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
4566 ac_file=`expr $ac_file + 1`
4567 ac_beg=$ac_end
4568 ac_end=`expr $ac_end + $ac_max_sed_cmds`
4570 done
4571 if test -z "$ac_sed_cmds"; then
4572 ac_sed_cmds=cat
4576 cat >> $CONFIG_STATUS <<EOF
4578 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4579 macros/Makefile
4580 doc/Makefile
4581 doc/C/Makefile
4582 doc/C/figures/Makefile
4583 src/Makefile
4584 intl/Makefile
4585 po/Makefile.in
4586 man/Makefile
4587 debian/Makefile
4590 cat >> $CONFIG_STATUS <<\EOF
4591 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
4592 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4593 case "$ac_file" in
4594 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4595 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4596 *) ac_file_in="${ac_file}.in" ;;
4597 esac
4599 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4601 # Remove last slash and all that follows it. Not all systems have dirname.
4602 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4603 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4604 # The file is in a subdirectory.
4605 test ! -d "$ac_dir" && mkdir "$ac_dir"
4606 ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
4607 # A "../" for each directory in $ac_dir_suffix.
4608 ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4609 else
4610 ac_dir_suffix= ac_dots=
4613 case "$ac_given_srcdir" in
4614 .) srcdir=.
4615 if test -z "$ac_dots"; then top_srcdir=.
4616 else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4617 /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
4618 *) # Relative path.
4619 srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4620 top_srcdir="$ac_dots$ac_given_srcdir" ;;
4621 esac
4623 case "$ac_given_INSTALL" in
4624 [/$]*) INSTALL="$ac_given_INSTALL" ;;
4625 *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
4626 esac
4628 echo creating "$ac_file"
4629 rm -f "$ac_file"
4630 configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
4631 case "$ac_file" in
4632 *Makefile*) ac_comsub="1i\\
4633 # $configure_input" ;;
4634 *) ac_comsub= ;;
4635 esac
4637 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4638 sed -e "$ac_comsub
4639 s%@configure_input@%$configure_input%g
4640 s%@srcdir@%$srcdir%g
4641 s%@top_srcdir@%$top_srcdir%g
4642 s%@INSTALL@%$INSTALL%g
4643 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
4644 fi; done
4645 rm -f conftest.s*
4647 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
4648 # NAME is the cpp macro being defined and VALUE is the value it is being given.
4650 # ac_d sets the value in "#define NAME VALUE" lines.
4651 ac_dA='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
4652 ac_dB='\([ ][ ]*\)[^ ]*%\1#\2'
4653 ac_dC='\3'
4654 ac_dD='%g'
4655 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
4656 ac_uA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4657 ac_uB='\([ ]\)%\1#\2define\3'
4658 ac_uC=' '
4659 ac_uD='\4%g'
4660 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
4661 ac_eA='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
4662 ac_eB='$%\1#\2define\3'
4663 ac_eC=' '
4664 ac_eD='%g'
4666 if test "${CONFIG_HEADERS+set}" != set; then
4668 cat >> $CONFIG_STATUS <<EOF
4669 CONFIG_HEADERS="config.h"
4671 cat >> $CONFIG_STATUS <<\EOF
4673 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
4674 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4675 case "$ac_file" in
4676 *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
4677 ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4678 *) ac_file_in="${ac_file}.in" ;;
4679 esac
4681 echo creating $ac_file
4683 rm -f conftest.frag conftest.in conftest.out
4684 ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
4685 cat $ac_file_inputs > conftest.in
4689 # Transform confdefs.h into a sed script conftest.vals that substitutes
4690 # the proper values into config.h.in to produce config.h. And first:
4691 # Protect against being on the right side of a sed subst in config.status.
4692 # Protect against being in an unquoted here document in config.status.
4693 rm -f conftest.vals
4694 cat > conftest.hdr <<\EOF
4695 s/[\\&%]/\\&/g
4696 s%[\\$`]%\\&%g
4697 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
4698 s%ac_d%ac_u%gp
4699 s%ac_u%ac_e%gp
4701 sed -n -f conftest.hdr confdefs.h > conftest.vals
4702 rm -f conftest.hdr
4704 # This sed command replaces #undef with comments. This is necessary, for
4705 # example, in the case of _POSIX_SOURCE, which is predefined and required
4706 # on some systems where configure will not decide to define it.
4707 cat >> conftest.vals <<\EOF
4708 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
4711 # Break up conftest.vals because some shells have a limit on
4712 # the size of here documents, and old seds have small limits too.
4714 rm -f conftest.tail
4715 while :
4717 ac_lines=`grep -c . conftest.vals`
4718 # grep -c gives empty output for an empty file on some AIX systems.
4719 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
4720 # Write a limited-size here document to conftest.frag.
4721 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
4722 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
4723 echo 'CEOF
4724 sed -f conftest.frag conftest.in > conftest.out
4725 rm -f conftest.in
4726 mv conftest.out conftest.in
4727 ' >> $CONFIG_STATUS
4728 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
4729 rm -f conftest.vals
4730 mv conftest.tail conftest.vals
4731 done
4732 rm -f conftest.vals
4734 cat >> $CONFIG_STATUS <<\EOF
4735 rm -f conftest.frag conftest.h
4736 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
4737 cat conftest.in >> conftest.h
4738 rm -f conftest.in
4739 if cmp -s $ac_file conftest.h 2>/dev/null; then
4740 echo "$ac_file is unchanged"
4741 rm -f conftest.h
4742 else
4743 # Remove last slash and all that follows it. Not all systems have dirname.
4744 ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4745 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
4746 # The file is in a subdirectory.
4747 test ! -d "$ac_dir" && mkdir "$ac_dir"
4749 rm -f $ac_file
4750 mv conftest.h $ac_file
4752 fi; done
4755 cat >> $CONFIG_STATUS <<EOF
4760 cat >> $CONFIG_STATUS <<\EOF
4761 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
4762 for ac_file in $CONFIG_FILES; do
4763 # Support "outfile[:infile[:infile...]]"
4764 case "$ac_file" in
4765 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
4766 esac
4767 # PO directories have a Makefile.in generated from Makefile.in.in.
4768 case "$ac_file" in */Makefile.in)
4769 # Adjust a relative srcdir.
4770 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'`
4771 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`"
4772 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'`
4773 # In autoconf-2.13 it is called $ac_given_srcdir.
4774 # In autoconf-2.50 it is called $srcdir.
4775 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
4776 case "$ac_given_srcdir" in
4777 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;;
4778 /*) top_srcdir="$ac_given_srcdir" ;;
4779 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
4780 esac
4781 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
4782 rm -f "$ac_dir/POTFILES"
4783 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
4784 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
4785 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
4786 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
4789 esac
4790 done
4792 exit 0
4794 chmod +x $CONFIG_STATUS
4795 rm -fr confdefs* $ac_clean_files
4796 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1