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.
12 ac_default_prefix
=/usr
/local
13 # Any additions from configure.in:
15 --with-gnome-includes Specify location of GNOME headers"
17 --with-gnome-libs Specify location of GNOME libs"
19 --with-gnome Specify prefix for GNOME files"
21 --enable-maintainer-mode enable make rules and dependencies not useful
22 (and sometimes confusing) to the casual installer"
24 --enable-compile-warnings=[no/minimum/yes] Turn on compiler warnings."
26 --enable-iso-c Try to warn if code is not ISO C "
28 --with-gtk-prefix=PFX Prefix where GTK is installed (optional)"
30 --with-gtk-exec-prefix=PFX Exec prefix where GTK is installed (optional)"
32 --disable-gtktest Do not try to compile and run a test GTK program"
34 --with-libiconv-prefix=DIR search for libiconv in DIR/include and DIR/lib"
36 --disable-nls do not use Native Language Support"
38 --with-included-gettext use the GNU gettext library included here"
40 --disable-dac disable data acquisition module"
42 --enable-rta=RTA_DIR place where the RTAI code resides
43 (default /usr/realtime)"
45 --enable-k=K_DIR place where the installed kernel \
46 headers resides (default /usr/src/kernel-headers-2.4.27-adeos)"
48 --enable-img-width=WIDTH maximum image width to \
49 be used (default SVGA)"
51 --enable-img-height=HEIGHT maximum image height to \
52 be used (default SVGA)"
54 --enable-debug debug version (more verbose)"
56 # Initialize some variables set by options.
57 # The variables have the same names as the options, with
58 # dashes changed to underlines.
60 cache_file
=.
/config.cache
69 program_transform_name
=s
,x
,x
,
77 bindir
='${exec_prefix}/bin'
78 sbindir
='${exec_prefix}/sbin'
79 libexecdir
='${exec_prefix}/libexec'
80 datadir
='${prefix}/share'
81 sysconfdir
='${prefix}/etc'
82 sharedstatedir
='${prefix}/com'
83 localstatedir
='${prefix}/var'
84 libdir
='${exec_prefix}/lib'
85 includedir
='${prefix}/include'
86 oldincludedir
='/usr/include'
87 infodir
='${prefix}/info'
88 mandir
='${prefix}/man'
90 # Initialize some other variables.
93 SHELL
=${CONFIG_SHELL-/bin/sh}
94 # Maximum number of lines to put in a shell here document.
101 # If the previous option needs an argument, assign it.
102 if test -n "$ac_prev"; then
103 eval "$ac_prev=\$ac_option"
109 -*=*) ac_optarg
=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
113 # Accept the important Cygnus configure options, so we can diagnose typos.
117 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
119 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
120 bindir
="$ac_optarg" ;;
122 -build |
--build |
--buil |
--bui |
--bu)
124 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
125 build
="$ac_optarg" ;;
127 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
128 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
129 ac_prev
=cache_file
;;
130 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
131 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
132 cache_file
="$ac_optarg" ;;
134 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
136 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
138 datadir
="$ac_optarg" ;;
140 -disable-* |
--disable-*)
141 ac_feature
=`echo $ac_option|sed -e 's/-*disable-//'`
142 # Reject names that are not valid shell variable names.
143 if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
144 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
146 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
147 eval "enable_${ac_feature}=no" ;;
149 -enable-* |
--enable-*)
150 ac_feature
=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
151 # Reject names that are not valid shell variable names.
152 if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
153 { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
155 ac_feature
=`echo $ac_feature| sed 's/-/_/g'`
160 eval "enable_${ac_feature}='$ac_optarg'" ;;
162 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
163 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
164 |
--exec |
--exe |
--ex)
165 ac_prev
=exec_prefix
;;
166 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
167 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
168 |
--exec=* |
--exe=* |
--ex=*)
169 exec_prefix
="$ac_optarg" ;;
171 -gas |
--gas |
--ga |
--g)
172 # Obsolete; use --with-gas.
175 -help |
--help |
--hel |
--he)
176 # Omit some internal or obsolete options to make the list less imposing.
177 # This message is too long to be a string in the A/UX 3.1 sh.
179 Usage: configure [options] [host]
180 Options: [defaults in brackets after descriptions]
182 --cache-file=FILE cache test results in FILE
183 --help print this message
184 --no-create do not create output files
185 --quiet, --silent do not print \`checking...' messages
186 --version print the version of autoconf that created configure
187 Directory and file names:
188 --prefix=PREFIX install architecture-independent files in PREFIX
190 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
192 --bindir=DIR user executables in DIR [EPREFIX/bin]
193 --sbindir=DIR system admin executables in DIR [EPREFIX/sbin]
194 --libexecdir=DIR program executables in DIR [EPREFIX/libexec]
195 --datadir=DIR read-only architecture-independent data in DIR
197 --sysconfdir=DIR read-only single-machine data in DIR [PREFIX/etc]
198 --sharedstatedir=DIR modifiable architecture-independent data in DIR
200 --localstatedir=DIR modifiable single-machine data in DIR [PREFIX/var]
201 --libdir=DIR object code libraries in DIR [EPREFIX/lib]
202 --includedir=DIR C header files in DIR [PREFIX/include]
203 --oldincludedir=DIR C header files for non-gcc in DIR [/usr/include]
204 --infodir=DIR info documentation in DIR [PREFIX/info]
205 --mandir=DIR man documentation in DIR [PREFIX/man]
206 --srcdir=DIR find the sources in DIR [configure dir or ..]
207 --program-prefix=PREFIX prepend PREFIX to installed program names
208 --program-suffix=SUFFIX append SUFFIX to installed program names
209 --program-transform-name=PROGRAM
210 run sed PROGRAM on installed program names
214 --build=BUILD configure for building on BUILD [BUILD=HOST]
215 --host=HOST configure for HOST [guessed]
216 --target=TARGET configure for TARGET [TARGET=HOST]
217 Features and packages:
218 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
219 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
220 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
221 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
222 --x-includes=DIR X include files are in DIR
223 --x-libraries=DIR X library files are in DIR
225 if test -n "$ac_help"; then
226 echo "--enable and --with options recognized:$ac_help"
230 -host |
--host |
--hos |
--ho)
232 -host=* |
--host=* |
--hos=* |
--ho=*)
235 -includedir |
--includedir |
--includedi |
--included |
--include \
236 |
--includ |
--inclu |
--incl |
--inc)
237 ac_prev
=includedir
;;
238 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
239 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
240 includedir
="$ac_optarg" ;;
242 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
244 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
245 infodir
="$ac_optarg" ;;
247 -libdir |
--libdir |
--libdi |
--libd)
249 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
250 libdir
="$ac_optarg" ;;
252 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
253 |
--libexe |
--libex |
--libe)
254 ac_prev
=libexecdir
;;
255 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
256 |
--libexe=* |
--libex=* |
--libe=*)
257 libexecdir
="$ac_optarg" ;;
259 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
260 |
--localstate |
--localstat |
--localsta |
--localst \
261 |
--locals |
--local |
--loca |
--loc |
--lo)
262 ac_prev
=localstatedir
;;
263 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
264 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
265 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
266 localstatedir
="$ac_optarg" ;;
268 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
270 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
271 mandir
="$ac_optarg" ;;
274 # Obsolete; use --without-fp.
277 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
281 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
282 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
285 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
286 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
287 |
--oldin |
--oldi |
--old |
--ol |
--o)
288 ac_prev
=oldincludedir
;;
289 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
290 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
291 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
292 oldincludedir
="$ac_optarg" ;;
294 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
296 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
297 prefix
="$ac_optarg" ;;
299 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
300 |
--program-pre |
--program-pr |
--program-p)
301 ac_prev
=program_prefix
;;
302 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
303 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
304 program_prefix
="$ac_optarg" ;;
306 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
307 |
--program-suf |
--program-su |
--program-s)
308 ac_prev
=program_suffix
;;
309 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
310 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
311 program_suffix
="$ac_optarg" ;;
313 -program-transform-name |
--program-transform-name \
314 |
--program-transform-nam |
--program-transform-na \
315 |
--program-transform-n |
--program-transform- \
316 |
--program-transform |
--program-transfor \
317 |
--program-transfo |
--program-transf \
318 |
--program-trans |
--program-tran \
319 |
--progr-tra |
--program-tr |
--program-t)
320 ac_prev
=program_transform_name
;;
321 -program-transform-name=* |
--program-transform-name=* \
322 |
--program-transform-nam=* |
--program-transform-na=* \
323 |
--program-transform-n=* |
--program-transform-=* \
324 |
--program-transform=* |
--program-transfor=* \
325 |
--program-transfo=* |
--program-transf=* \
326 |
--program-trans=* |
--program-tran=* \
327 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
328 program_transform_name
="$ac_optarg" ;;
330 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
331 |
-silent |
--silent |
--silen |
--sile |
--sil)
334 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
336 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
338 sbindir
="$ac_optarg" ;;
340 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
341 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
342 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
344 ac_prev
=sharedstatedir
;;
345 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
346 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
347 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
349 sharedstatedir
="$ac_optarg" ;;
351 -site |
--site |
--sit)
353 -site=* |
--site=* |
--sit=*)
356 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
358 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
359 srcdir
="$ac_optarg" ;;
361 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
362 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
363 ac_prev
=sysconfdir
;;
364 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
365 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
366 sysconfdir
="$ac_optarg" ;;
368 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
370 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
371 target
="$ac_optarg" ;;
373 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
376 -version |
--version |
--versio |
--versi |
--vers)
377 echo "configure generated by autoconf version 2.13"
381 ac_package
=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
382 # Reject names that are not valid shell variable names.
383 if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
384 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
386 ac_package
=`echo $ac_package| sed 's/-/_/g'`
391 eval "with_${ac_package}='$ac_optarg'" ;;
393 -without-* |
--without-*)
394 ac_package
=`echo $ac_option|sed -e 's/-*without-//'`
395 # Reject names that are not valid shell variable names.
396 if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
397 { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
399 ac_package
=`echo $ac_package| sed 's/-/_/g'`
400 eval "with_${ac_package}=no" ;;
403 # Obsolete; use --with-x.
406 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
407 |
--x-incl |
--x-inc |
--x-in |
--x-i)
408 ac_prev
=x_includes
;;
409 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
410 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
411 x_includes
="$ac_optarg" ;;
413 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
414 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
415 ac_prev
=x_libraries
;;
416 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
417 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
418 x_libraries
="$ac_optarg" ;;
420 -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
424 if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
425 echo "configure: warning: $ac_option: invalid host type" 1>&2
427 if test "x$nonopt" != xNONE
; then
428 { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
436 if test -n "$ac_prev"; then
437 { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
440 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
442 # File descriptor usage:
445 # 2 errors and warnings
446 # 3 some systems may open it to /dev/tty
447 # 4 used on the Kubota Titan
448 # 6 checking for... messages and results
449 # 5 compiler messages saved in config.log
450 if test "$silent" = yes; then
458 This file contains any messages produced by compilers while
459 running configure, to aid debugging if configure makes a mistake.
462 # Strip out --no-create and --no-recursion so they do not pile up.
463 # Also quote any args containing shell metacharacters.
468 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
469 |
--no-cr |
--no-c) ;;
470 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
471 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r) ;;
472 *" "*|
*" "*|
*[\
[\
]\~\
#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
473 ac_configure_args
="$ac_configure_args '$ac_arg'" ;;
474 *) ac_configure_args
="$ac_configure_args $ac_arg" ;;
479 # Only set these to C if already set. These must not be set unconditionally
480 # because not all systems understand e.g. LANG=C (notably SCO).
481 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
482 # Non-C LC_CTYPE values break the ctype check.
483 if test "${LANG+set}" = set; then LANG
=C
; export LANG
; fi
484 if test "${LC_ALL+set}" = set; then LC_ALL
=C
; export LC_ALL
; fi
485 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES
=C
; export LC_MESSAGES
; fi
486 if test "${LC_CTYPE+set}" = set; then LC_CTYPE
=C
; export LC_CTYPE
; fi
488 # confdefs.h avoids OS command line length limits that DEFS can exceed.
489 rm -rf conftest
* confdefs.h
490 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
493 # A filename unique to this package, relative to the directory that
494 # configure is in, which we can look for to find out if srcdir is correct.
495 ac_unique_file
=configure.
in
497 # Find the source files, if location was not specified.
498 if test -z "$srcdir"; then
499 ac_srcdir_defaulted
=yes
500 # Try the directory containing this script, then its parent.
502 ac_confdir
=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
503 test "x$ac_confdir" = "x$ac_prog" && ac_confdir
=.
505 if test ! -r $srcdir/$ac_unique_file; then
509 ac_srcdir_defaulted
=no
511 if test ! -r $srcdir/$ac_unique_file; then
512 if test "$ac_srcdir_defaulted" = yes; then
513 { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
515 { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
518 srcdir
=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
520 # Prefer explicitly selected file to automatically selected ones.
521 if test -z "$CONFIG_SITE"; then
522 if test "x$prefix" != xNONE
; then
523 CONFIG_SITE
="$prefix/share/config.site $prefix/etc/config.site"
525 CONFIG_SITE
="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
528 for ac_site_file
in $CONFIG_SITE; do
529 if test -r "$ac_site_file"; then
530 echo "loading site script $ac_site_file"
535 if test -r "$cache_file"; then
536 echo "loading cache $cache_file"
539 echo "creating cache $cache_file"
544 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
545 ac_cpp
='$CPP $CPPFLAGS'
546 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
547 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
548 cross_compiling
=$ac_cv_prog_cc_cross
552 if (echo "testing\c"; echo 1,2,3) |
grep c
>/dev
/null
; then
553 # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
554 if (echo -n testing
; echo 1,2,3) |
sed s
/-n/xn
/ |
grep xn
>/dev
/null
; then
561 ac_n
= ac_c
='\c' ac_t
=
566 for ac_dir
in $srcdir $srcdir/..
$srcdir/..
/..
; do
567 if test -f $ac_dir/install-sh
; then
569 ac_install_sh
="$ac_aux_dir/install-sh -c"
571 elif test -f $ac_dir/install.sh
; then
573 ac_install_sh
="$ac_aux_dir/install.sh -c"
577 if test -z "$ac_aux_dir"; then
578 { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
580 ac_config_guess
=$ac_aux_dir/config.guess
581 ac_config_sub
=$ac_aux_dir/config.sub
582 ac_configure
=$ac_aux_dir/configure
# This should be Cygnus configure.
584 # Find a good install program. We prefer a C program (faster),
585 # so one script is as good as another. But avoid the broken or
586 # incompatible versions:
587 # SysV /etc/install, /usr/sbin/install
588 # SunOS /usr/etc/install
591 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
592 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
593 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
594 # ./install, which can be erroneously created by make from ./install.sh.
595 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
596 echo "configure:597: checking for a BSD compatible install" >&5
597 if test -z "$INSTALL"; then
598 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
599 echo $ac_n "(cached) $ac_c" 1>&6
601 IFS
="${IFS= }"; ac_save_IFS
="$IFS"; IFS
=":"
602 for ac_dir
in $PATH; do
603 # Account for people who put trailing slashes in PATH elements.
605 /|.
/|.
//|
/etc
/*|
/usr
/sbin
/*|
/usr
/etc
/*|
/sbin
/*|
/usr
/afsws
/bin
/*|
/usr
/ucb
/*) ;;
607 # OSF1 and SCO ODT 3.0 have their own names for install.
608 # Don't use installbsd from OSF since it installs stuff as root
610 for ac_prog
in ginstall scoinst
install; do
611 if test -f $ac_dir/$ac_prog; then
612 if test $ac_prog = install &&
613 grep dspmsg
$ac_dir/$ac_prog >/dev
/null
2>&1; then
614 # AIX install. It has an incompatible calling convention.
617 ac_cv_path_install
="$ac_dir/$ac_prog -c"
628 if test "${ac_cv_path_install+set}" = set; then
629 INSTALL
="$ac_cv_path_install"
631 # As a last resort, use the slow shell script. We don't cache a
632 # path for INSTALL within a source directory, because that will
633 # break other packages using the cache if that directory is
634 # removed, or if the path is relative.
635 INSTALL
="$ac_install_sh"
638 echo "$ac_t""$INSTALL" 1>&6
640 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
641 # It thinks the first close brace ends the variable substitution.
642 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM
='${INSTALL}'
644 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT
='${INSTALL_PROGRAM}'
646 test -z "$INSTALL_DATA" && INSTALL_DATA
='${INSTALL} -m 644'
648 echo $ac_n "checking whether build environment is sane""... $ac_c" 1>&6
649 echo "configure:650: checking whether build environment is sane" >&5
652 echo timestamp
> conftestfile
653 # Do `set' in a subshell so we don't clobber the current shell's
654 # arguments. Must try -L first in case configure is actually a
655 # symlink; some systems play weird games with the mod time of symlinks
656 # (eg FreeBSD returns the mod time of the symlink's containing
659 set X
`ls -Lt $srcdir/configure conftestfile 2> /dev/null`
660 if test "$*" = "X"; then
662 set X
`ls -t $srcdir/configure conftestfile`
664 if test "$*" != "X $srcdir/configure conftestfile" \
665 && test "$*" != "X conftestfile $srcdir/configure"; then
667 # If neither matched, then we have a broken ls. This can happen
668 # if, for instance, CONFIG_SHELL is bash and it inherits a
669 # broken ls alias from the environment. This has actually
670 # happened. Such a system could not be considered "sane".
671 { echo "configure: error: ls -t appears to fail. Make sure there is not a broken
672 alias in your environment" 1>&2; exit 1; }
675 test "$2" = conftestfile
681 { echo "configure: error: newly created file is older than distributed files!
682 Check your system clock" 1>&2; exit 1; }
685 echo "$ac_t""yes" 1>&6
686 if test "$program_transform_name" = s
,x
,x
,; then
687 program_transform_name
=
689 # Double any \ or $. echo might interpret backslashes.
690 cat <<\EOF_SED
> conftestsed
691 s
,\\,\\\\,g
; s
,\$
,$$
,g
693 program_transform_name
="`echo $program_transform_name|sed -f conftestsed`"
696 test "$program_prefix" != NONE
&&
697 program_transform_name
="s,^,${program_prefix},; $program_transform_name"
698 # Use a double $ so make ignores it.
699 test "$program_suffix" != NONE
&&
700 program_transform_name
="s,\$\$,${program_suffix},; $program_transform_name"
702 # sed with no file args requires a program.
703 test "$program_transform_name" = "" && program_transform_name
="s,x,x,"
705 echo $ac_n "checking whether ${MAKE-make} sets \${MAKE}""... $ac_c" 1>&6
706 echo "configure:707: checking whether ${MAKE-make} sets \${MAKE}" >&5
707 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y%./+-%__p_%'`
708 if eval "test \"`echo '$''{'ac_cv_prog_make_${ac_make}_set'+set}'`\" = set"; then
709 echo $ac_n "(cached) $ac_c" 1>&6
711 cat > conftestmake
<<\EOF
713 @
echo 'ac_maketemp="${MAKE}"'
715 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
716 eval `${MAKE-make} -f conftestmake 2>/dev/null | grep temp=`
717 if test -n "$ac_maketemp"; then
718 eval ac_cv_prog_make_
${ac_make}_set
=yes
720 eval ac_cv_prog_make_
${ac_make}_set
=no
724 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
725 echo "$ac_t""yes" 1>&6
728 echo "$ac_t""no" 1>&6
729 SET_MAKE
="MAKE=${MAKE-make}"
737 if test "`cd $srcdir && pwd`" != "`pwd`" && test -f $srcdir/config.status
; then
738 { echo "configure: error: source directory already configured; run "make distclean
" there first" 1>&2; exit 1; }
740 cat >> confdefs.h
<<EOF
741 #define PACKAGE "$PACKAGE"
744 cat >> confdefs.h
<<EOF
745 #define VERSION "$VERSION"
750 missing_dir
=`cd $ac_aux_dir && pwd`
751 echo $ac_n "checking for working aclocal""... $ac_c" 1>&6
752 echo "configure:753: checking for working aclocal" >&5
753 # Run test in a subshell; some versions of sh will print an error if
754 # an executable is not found, even if stderr is redirected.
755 # Redirect stdin to placate older versions of autoconf. Sigh.
756 if (aclocal
--version) < /dev
/null
> /dev
/null
2>&1; then
758 echo "$ac_t""found" 1>&6
760 ACLOCAL
="$missing_dir/missing aclocal"
761 echo "$ac_t""missing" 1>&6
764 echo $ac_n "checking for working autoconf""... $ac_c" 1>&6
765 echo "configure:766: checking for working autoconf" >&5
766 # Run test in a subshell; some versions of sh will print an error if
767 # an executable is not found, even if stderr is redirected.
768 # Redirect stdin to placate older versions of autoconf. Sigh.
769 if (autoconf
--version) < /dev
/null
> /dev
/null
2>&1; then
771 echo "$ac_t""found" 1>&6
773 AUTOCONF
="$missing_dir/missing autoconf"
774 echo "$ac_t""missing" 1>&6
777 echo $ac_n "checking for working automake""... $ac_c" 1>&6
778 echo "configure:779: checking for working automake" >&5
779 # Run test in a subshell; some versions of sh will print an error if
780 # an executable is not found, even if stderr is redirected.
781 # Redirect stdin to placate older versions of autoconf. Sigh.
782 if (automake
--version) < /dev
/null
> /dev
/null
2>&1; then
784 echo "$ac_t""found" 1>&6
786 AUTOMAKE
="$missing_dir/missing automake"
787 echo "$ac_t""missing" 1>&6
790 echo $ac_n "checking for working autoheader""... $ac_c" 1>&6
791 echo "configure:792: checking for working autoheader" >&5
792 # Run test in a subshell; some versions of sh will print an error if
793 # an executable is not found, even if stderr is redirected.
794 # Redirect stdin to placate older versions of autoconf. Sigh.
795 if (autoheader
--version) < /dev
/null
> /dev
/null
2>&1; then
796 AUTOHEADER
=autoheader
797 echo "$ac_t""found" 1>&6
799 AUTOHEADER
="$missing_dir/missing autoheader"
800 echo "$ac_t""missing" 1>&6
803 echo $ac_n "checking for working makeinfo""... $ac_c" 1>&6
804 echo "configure:805: checking for working makeinfo" >&5
805 # Run test in a subshell; some versions of sh will print an error if
806 # an executable is not found, even if stderr is redirected.
807 # Redirect stdin to placate older versions of autoconf. Sigh.
808 if (makeinfo
--version) < /dev
/null
> /dev
/null
2>&1; then
810 echo "$ac_t""found" 1>&6
812 MAKEINFO
="$missing_dir/missing makeinfo"
813 echo "$ac_t""missing" 1>&6
825 INSIDE_GNOME_COMMON_TRUE
=
826 INSIDE_GNOME_COMMON_FALSE
='#'
828 INSIDE_GNOME_COMMON_TRUE
='#'
829 INSIDE_GNOME_COMMON_FALSE
=
832 test -n "$ACLOCAL_FLAGS" && ACLOCAL
="$ACLOCAL $ACLOCAL_FLAGS"
834 for k
in macros
; do ACLOCAL
="$ACLOCAL -I $k" ; done
847 # Check whether --with-gnome-includes or --without-gnome-includes was given.
848 if test "${with_gnome_includes+set}" = set; then
849 withval
="$with_gnome_includes"
851 CFLAGS
="$CFLAGS -I$withval"
856 # Check whether --with-gnome-libs or --without-gnome-libs was given.
857 if test "${with_gnome_libs+set}" = set; then
858 withval
="$with_gnome_libs"
860 LDFLAGS
="$LDFLAGS -L$withval"
861 gnome_prefix
=$withval
866 # Check whether --with-gnome or --without-gnome was given.
867 if test "${with_gnome+set}" = set; then
868 withval
="$with_gnome"
869 if test x
$withval = xyes
; then
873 if test "x$withval" = xno
; then
877 LDFLAGS
="$LDFLAGS -L$withval/lib"
878 CFLAGS
="$CFLAGS -I$withval/include"
879 gnome_prefix
=$withval/lib
887 if test "x$want_gnome" = xyes
; then
889 # Extract the first word of "gnome-config", so it can be a program name with args.
890 set dummy gnome-config
; ac_word
=$2
891 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
892 echo "configure:893: checking for $ac_word" >&5
893 if eval "test \"`echo '$''{'ac_cv_path_GNOME_CONFIG'+set}'`\" = set"; then
894 echo $ac_n "(cached) $ac_c" 1>&6
896 case "$GNOME_CONFIG" in
898 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a path.
901 ac_cv_path_GNOME_CONFIG
="$GNOME_CONFIG" # Let the user override the test with a dos path.
904 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
906 for ac_dir
in $ac_dummy; do
907 test -z "$ac_dir" && ac_dir
=.
908 if test -f $ac_dir/$ac_word; then
909 ac_cv_path_GNOME_CONFIG
="$ac_dir/$ac_word"
914 test -z "$ac_cv_path_GNOME_CONFIG" && ac_cv_path_GNOME_CONFIG
="no"
918 GNOME_CONFIG
="$ac_cv_path_GNOME_CONFIG"
919 if test -n "$GNOME_CONFIG"; then
920 echo "$ac_t""$GNOME_CONFIG" 1>&6
922 echo "$ac_t""no" 1>&6
925 if test "$GNOME_CONFIG" = "no"; then
926 no_gnome_config
="yes"
928 echo $ac_n "checking if $GNOME_CONFIG works""... $ac_c" 1>&6
929 echo "configure:930: checking if $GNOME_CONFIG works" >&5
930 if $GNOME_CONFIG --libs-only-l gnome
>/dev
/null
2>&1; then
931 echo "$ac_t""yes" 1>&6
934 # Extract the first word of "orbit-config", so it can be a program name with args.
935 set dummy orbit-config
; ac_word
=$2
936 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
937 echo "configure:938: checking for $ac_word" >&5
938 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_CONFIG'+set}'`\" = set"; then
939 echo $ac_n "(cached) $ac_c" 1>&6
941 case "$ORBIT_CONFIG" in
943 ac_cv_path_ORBIT_CONFIG
="$ORBIT_CONFIG" # Let the user override the test with a path.
946 ac_cv_path_ORBIT_CONFIG
="$ORBIT_CONFIG" # Let the user override the test with a dos path.
949 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
951 for ac_dir
in $ac_dummy; do
952 test -z "$ac_dir" && ac_dir
=.
953 if test -f $ac_dir/$ac_word; then
954 ac_cv_path_ORBIT_CONFIG
="$ac_dir/$ac_word"
959 test -z "$ac_cv_path_ORBIT_CONFIG" && ac_cv_path_ORBIT_CONFIG
="no"
963 ORBIT_CONFIG
="$ac_cv_path_ORBIT_CONFIG"
964 if test -n "$ORBIT_CONFIG"; then
965 echo "$ac_t""$ORBIT_CONFIG" 1>&6
967 echo "$ac_t""no" 1>&6
970 # Extract the first word of "orbit-idl", so it can be a program name with args.
971 set dummy orbit-idl
; ac_word
=$2
972 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
973 echo "configure:974: checking for $ac_word" >&5
974 if eval "test \"`echo '$''{'ac_cv_path_ORBIT_IDL'+set}'`\" = set"; then
975 echo $ac_n "(cached) $ac_c" 1>&6
979 ac_cv_path_ORBIT_IDL
="$ORBIT_IDL" # Let the user override the test with a path.
982 ac_cv_path_ORBIT_IDL
="$ORBIT_IDL" # Let the user override the test with a dos path.
985 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
987 for ac_dir
in $ac_dummy; do
988 test -z "$ac_dir" && ac_dir
=.
989 if test -f $ac_dir/$ac_word; then
990 ac_cv_path_ORBIT_IDL
="$ac_dir/$ac_word"
995 test -z "$ac_cv_path_ORBIT_IDL" && ac_cv_path_ORBIT_IDL
="no"
999 ORBIT_IDL
="$ac_cv_path_ORBIT_IDL"
1000 if test -n "$ORBIT_IDL"; then
1001 echo "$ac_t""$ORBIT_IDL" 1>&6
1003 echo "$ac_t""no" 1>&6
1006 echo $ac_n "checking for working ORBit environment""... $ac_c" 1>&6
1007 echo "configure:1008: checking for working ORBit environment" >&5
1008 if eval "test \"`echo '$''{'gnome_cv_orbit_found'+set}'`\" = set"; then
1009 echo $ac_n "(cached) $ac_c" 1>&6
1012 if test x
$ORBIT_CONFIG = xno
-o x
$ORBIT_IDL = xno
; then
1013 gnome_cv_orbit_found
=no
1015 gnome_cv_orbit_found
=yes
1020 echo "$ac_t""$gnome_cv_orbit_found" 1>&6
1023 if test x
$gnome_cv_orbit_found = xyes
; then
1025 HAVE_ORBIT_FALSE
='#'
1030 if test x
$gnome_cv_orbit_found = xyes
; then
1032 ORBIT_CFLAGS
=`orbit-config --cflags client server`
1033 ORBIT_LIBS
=`orbit-config --use-service=name --libs client server`
1037 if test xfail
= xfailure
; then
1038 { echo "configure: error: ORBit not installed or installation problem" 1>&2; exit 1; }
1042 echo $ac_n "checking for gnorba libraries""... $ac_c" 1>&6
1043 echo "configure:1044: checking for gnorba libraries" >&5
1044 if eval "test \"`echo '$''{'gnome_cv_gnorba_found'+set}'`\" = set"; then
1045 echo $ac_n "(cached) $ac_c" 1>&6
1048 gnome_cv_gnorba_found
=no
1049 if test x
$gnome_cv_orbit_found = xyes
; then
1050 GNORBA_CFLAGS
="`gnome-config --cflags gnorba gnomeui`"
1051 GNORBA_LIBS
="`gnome-config --libs gnorba gnomeui`"
1052 if test -n "$GNORBA_LIBS"; then
1053 gnome_cv_gnorba_found
=yes
1059 echo "$ac_t""$gnome_cv_gnorba_found" 1>&6
1062 if test x
$gnome_cv_gnorba_found = xyes
; then
1064 HAVE_GNORBA_FALSE
='#'
1066 HAVE_GNORBA_TRUE
='#'
1069 if test x
$gnome_cv_orbit_found = xyes
; then
1071 GNORBA_CFLAGS
="`gnome-config --cflags gnorba gnomeui`"
1072 GNORBA_LIBS
="`gnome-config --libs gnorba gnomeui`"
1076 if test xfail
= xfailure
; then
1077 { echo "configure: error: gnorba library not installed or installation problem" 1>&2; exit 1; }
1081 GNOME_LIBS
="`$GNOME_CONFIG --libs-only-l gnome`"
1082 GNOMEUI_LIBS
="`$GNOME_CONFIG --libs-only-l gnomeui`"
1083 GNOMEGNORBA_LIBS
="`$GNOME_CONFIG --libs-only-l gnorba gnomeui`"
1084 GTKXMHTML_LIBS
="`$GNOME_CONFIG --libs-only-l gtkxmhtml`"
1085 ZVT_LIBS
="`$GNOME_CONFIG --libs-only-l zvt`"
1086 GNOME_LIBDIR
="`$GNOME_CONFIG --libs-only-L gnorba gnomeui`"
1087 GNOME_INCLUDEDIR
="`$GNOME_CONFIG --cflags gnorba gnomeui`"
1090 echo "$ac_t""no" 1>&6
1091 no_gnome_config
="yes"
1095 if test x
$exec_prefix = xNONE
; then
1096 if test x
$prefix = xNONE
; then
1097 gnome_prefix
=$ac_default_prefix/lib
1099 gnome_prefix
=$prefix/lib
1102 gnome_prefix
=`eval echo \`echo $libdir\
``
1105 if test "$no_gnome_config" = "yes"; then
1106 echo $ac_n "checking for gnomeConf.sh file in $gnome_prefix""... $ac_c" 1>&6
1107 echo "configure:1108: checking for gnomeConf.sh file in $gnome_prefix" >&5
1108 if test -f $gnome_prefix/gnomeConf.sh
; then
1109 echo "$ac_t""found" 1>&6
1110 echo "loading gnome configuration from" \
1111 "$gnome_prefix/gnomeConf.sh"
1112 .
$gnome_prefix/gnomeConf.sh
1115 echo "$ac_t""not found" 1>&6
1116 if test xfail
= xfail
; then
1117 { echo "configure: error: Could not find the gnomeConf.sh file that is generated by gnome-libs install" 1>&2; exit 1; }
1126 echo $ac_n "checking extra library \"$i\"""... $ac_c" 1>&6
1127 echo "configure:1128: checking extra library \"$i\"" >&5
1131 GNOME_APPLETS_LIBS
=`$GNOME_CONFIG --libs-only-l applets`
1132 echo "$ac_t""$GNOME_APPLETS_LIBS" 1>&6;;
1135 GNOME_DOCKLETS_LIBS
=`$GNOME_CONFIG --libs-only-l docklets`
1136 echo "$ac_t""$GNOME_DOCKLETS_LIBS" 1>&6;;
1139 GNOME_CAPPLET_LIBS
=`$GNOME_CONFIG --libs-only-l capplet`
1140 echo "$ac_t""$GNOME_CAPPLET_LIBS" 1>&6;;
1142 echo "$ac_t""unknown library" 1>&6
1149 echo $ac_n "checking for strerror in -lcposix""... $ac_c" 1>&6
1150 echo "configure:1151: checking for strerror in -lcposix" >&5
1151 ac_lib_var
=`echo cposix'_'strerror | sed 'y%./+-%__p_%'`
1152 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1153 echo $ac_n "(cached) $ac_c" 1>&6
1155 ac_save_LIBS
="$LIBS"
1156 LIBS
="-lcposix $LIBS"
1157 cat > conftest.
$ac_ext <<EOF
1158 #line 1159 "configure"
1159 #include "confdefs.h"
1160 /* Override any gcc2 internal prototype to avoid an error. */
1161 /* We use char because int might match the return type of a gcc2
1162 builtin and then its argument prototype would still apply. */
1169 if { (eval echo configure
:1170: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1171 eval "ac_cv_lib_$ac_lib_var=yes"
1173 echo "configure: failed program was:" >&5
1174 cat conftest.
$ac_ext >&5
1176 eval "ac_cv_lib_$ac_lib_var=no"
1179 LIBS
="$ac_save_LIBS"
1182 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1183 echo "$ac_t""yes" 1>&6
1184 LIBS
="$LIBS -lcposix"
1186 echo "$ac_t""no" 1>&6
1191 # Extract the first word of "gcc", so it can be a program name with args.
1192 set dummy gcc
; ac_word
=$2
1193 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1194 echo "configure:1195: checking for $ac_word" >&5
1195 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1196 echo $ac_n "(cached) $ac_c" 1>&6
1198 if test -n "$CC"; then
1199 ac_cv_prog_CC
="$CC" # Let the user override the test.
1201 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1203 for ac_dir
in $ac_dummy; do
1204 test -z "$ac_dir" && ac_dir
=.
1205 if test -f $ac_dir/$ac_word; then
1214 if test -n "$CC"; then
1215 echo "$ac_t""$CC" 1>&6
1217 echo "$ac_t""no" 1>&6
1220 if test -z "$CC"; then
1221 # Extract the first word of "cc", so it can be a program name with args.
1222 set dummy cc
; ac_word
=$2
1223 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1224 echo "configure:1225: checking for $ac_word" >&5
1225 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1226 echo $ac_n "(cached) $ac_c" 1>&6
1228 if test -n "$CC"; then
1229 ac_cv_prog_CC
="$CC" # Let the user override the test.
1231 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1234 for ac_dir
in $ac_dummy; do
1235 test -z "$ac_dir" && ac_dir
=.
1236 if test -f $ac_dir/$ac_word; then
1237 if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
1238 ac_prog_rejected
=yes
1246 if test $ac_prog_rejected = yes; then
1247 # We found a bogon in the path, so make sure we never use it.
1248 set dummy
$ac_cv_prog_CC
1250 if test $# -gt 0; then
1251 # We chose a different compiler from the bogus one.
1252 # However, it has the same basename, so the bogon will be chosen
1253 # first if we set CC to just the basename; use the full file name.
1255 set dummy
"$ac_dir/$ac_word" "$@"
1263 if test -n "$CC"; then
1264 echo "$ac_t""$CC" 1>&6
1266 echo "$ac_t""no" 1>&6
1269 if test -z "$CC"; then
1270 case "`uname -s`" in
1272 # Extract the first word of "cl", so it can be a program name with args.
1273 set dummy cl
; ac_word
=$2
1274 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1275 echo "configure:1276: checking for $ac_word" >&5
1276 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
1277 echo $ac_n "(cached) $ac_c" 1>&6
1279 if test -n "$CC"; then
1280 ac_cv_prog_CC
="$CC" # Let the user override the test.
1282 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
1284 for ac_dir
in $ac_dummy; do
1285 test -z "$ac_dir" && ac_dir
=.
1286 if test -f $ac_dir/$ac_word; then
1295 if test -n "$CC"; then
1296 echo "$ac_t""$CC" 1>&6
1298 echo "$ac_t""no" 1>&6
1303 test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
1306 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
1307 echo "configure:1308: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
1310 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1311 ac_cpp
='$CPP $CPPFLAGS'
1312 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1313 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1314 cross_compiling
=$ac_cv_prog_cc_cross
1316 cat > conftest.
$ac_ext << EOF
1318 #line 1319 "configure"
1319 #include "confdefs.h"
1323 if { (eval echo configure
:1324: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1324 ac_cv_prog_cc_works
=yes
1325 # If we can't run a trivial program, we are probably using a cross compiler.
1326 if (.
/conftest
; exit) 2>/dev
/null
; then
1327 ac_cv_prog_cc_cross
=no
1329 ac_cv_prog_cc_cross
=yes
1332 echo "configure: failed program was:" >&5
1333 cat conftest.
$ac_ext >&5
1334 ac_cv_prog_cc_works
=no
1338 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
1339 ac_cpp
='$CPP $CPPFLAGS'
1340 ac_compile
='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
1341 ac_link
='${CC-cc} -o conftest${ac_exeext} $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
1342 cross_compiling
=$ac_cv_prog_cc_cross
1344 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
1345 if test $ac_cv_prog_cc_works = no
; then
1346 { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
1348 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
1349 echo "configure:1350: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
1350 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
1351 cross_compiling
=$ac_cv_prog_cc_cross
1353 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
1354 echo "configure:1355: checking whether we are using GNU C" >&5
1355 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
1356 echo $ac_n "(cached) $ac_c" 1>&6
1358 cat > conftest.c
<<EOF
1363 if { ac_try
='${CC-cc} -E conftest.c'; { (eval echo configure
:1364: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } |
egrep yes >/dev
/null
2>&1; then
1370 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
1372 if test $ac_cv_prog_gcc = yes; then
1378 ac_test_CFLAGS
="${CFLAGS+set}"
1379 ac_save_CFLAGS
="$CFLAGS"
1381 echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
1382 echo "configure:1383: checking whether ${CC-cc} accepts -g" >&5
1383 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
1384 echo $ac_n "(cached) $ac_c" 1>&6
1386 echo 'void f(){}' > conftest.c
1387 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
1396 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
1397 if test "$ac_test_CFLAGS" = set; then
1398 CFLAGS
="$ac_save_CFLAGS"
1399 elif test $ac_cv_prog_cc_g = yes; then
1400 if test "$GCC" = yes; then
1406 if test "$GCC" = yes; then
1416 echo $ac_n "checking for ${CC-cc} option to accept ANSI C""... $ac_c" 1>&6
1417 echo "configure:1418: checking for ${CC-cc} option to accept ANSI C" >&5
1418 if eval "test \"`echo '$''{'am_cv_prog_cc_stdc'+set}'`\" = set"; then
1419 echo $ac_n "(cached) $ac_c" 1>&6
1421 am_cv_prog_cc_stdc
=no
1423 # Don't try gcc -ansi; that turns off useful extensions and
1424 # breaks some systems' header files.
1425 # AIX -qlanglvl=ansi
1426 # Ultrix and OSF/1 -std1
1427 # HP-UX -Aa -D_HPUX_SOURCE
1428 # SVR4 -Xc -D__EXTENSIONS__
1429 for ac_arg
in "" -qlanglvl=ansi
-std1 "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
1431 CC
="$ac_save_CC $ac_arg"
1432 cat > conftest.
$ac_ext <<EOF
1433 #line 1434 "configure"
1434 #include "confdefs.h"
1437 #include <sys/types.h>
1438 #include <sys/stat.h>
1439 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
1440 struct buf { int x; };
1441 FILE * (*rcsopen) (struct buf *, struct stat *, int);
1442 static char *e (p, i)
1448 static char *f (char * (*g) (char **, int), char **p, ...)
1453 s = g (p, va_arg (v,int));
1457 int test (int i, double x);
1458 struct s1 {int (*f) (int a);};
1459 struct s2 {int (*f) (double a);};
1460 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
1466 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
1470 if { (eval echo configure
:1471: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1472 am_cv_prog_cc_stdc
="$ac_arg"; break
1474 echo "configure: failed program was:" >&5
1475 cat conftest.
$ac_ext >&5
1483 if test -z "$am_cv_prog_cc_stdc"; then
1484 echo "$ac_t""none needed" 1>&6
1486 echo "$ac_t""$am_cv_prog_cc_stdc" 1>&6
1488 case "x$am_cv_prog_cc_stdc" in
1490 *) CC
="$CC $am_cv_prog_cc_stdc" ;;
1493 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
1494 echo "configure:1495: checking how to run the C preprocessor" >&5
1495 # On Suns, sometimes $CPP names a directory.
1496 if test -n "$CPP" && test -d "$CPP"; then
1499 if test -z "$CPP"; then
1500 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
1501 echo $ac_n "(cached) $ac_c" 1>&6
1503 # This must be in double quotes, not single quotes, because CPP may get
1504 # substituted into the Makefile and "${CC-cc}" will confuse make.
1506 # On the NeXT, cc -E runs the code through the compiler's parser,
1507 # not just through cpp.
1508 cat > conftest.
$ac_ext <<EOF
1509 #line 1510 "configure"
1510 #include "confdefs.h"
1514 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1515 { (eval echo configure
:1516: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1516 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1517 if test -z "$ac_err"; then
1521 echo "configure: failed program was:" >&5
1522 cat conftest.
$ac_ext >&5
1524 CPP
="${CC-cc} -E -traditional-cpp"
1525 cat > conftest.
$ac_ext <<EOF
1526 #line 1527 "configure"
1527 #include "confdefs.h"
1531 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1532 { (eval echo configure
:1533: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1533 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1534 if test -z "$ac_err"; then
1538 echo "configure: failed program was:" >&5
1539 cat conftest.
$ac_ext >&5
1541 CPP
="${CC-cc} -nologo -E"
1542 cat > conftest.
$ac_ext <<EOF
1543 #line 1544 "configure"
1544 #include "confdefs.h"
1548 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1549 { (eval echo configure
:1550: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1550 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1551 if test -z "$ac_err"; then
1555 echo "configure: failed program was:" >&5
1556 cat conftest.
$ac_ext >&5
1565 ac_cv_prog_CPP
="$CPP"
1567 CPP
="$ac_cv_prog_CPP"
1569 ac_cv_prog_CPP
="$CPP"
1571 echo "$ac_t""$CPP" 1>&6
1573 echo $ac_n "checking for ANSI C header files""... $ac_c" 1>&6
1574 echo "configure:1575: checking for ANSI C header files" >&5
1575 if eval "test \"`echo '$''{'ac_cv_header_stdc'+set}'`\" = set"; then
1576 echo $ac_n "(cached) $ac_c" 1>&6
1578 cat > conftest.
$ac_ext <<EOF
1579 #line 1580 "configure"
1580 #include "confdefs.h"
1586 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1587 { (eval echo configure
:1588: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1588 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
1589 if test -z "$ac_err"; then
1591 ac_cv_header_stdc
=yes
1594 echo "configure: failed program was:" >&5
1595 cat conftest.
$ac_ext >&5
1597 ac_cv_header_stdc
=no
1601 if test $ac_cv_header_stdc = yes; then
1602 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
1603 cat > conftest.
$ac_ext <<EOF
1604 #line 1605 "configure"
1605 #include "confdefs.h"
1608 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1609 egrep "memchr" >/dev
/null
2>&1; then
1613 ac_cv_header_stdc
=no
1619 if test $ac_cv_header_stdc = yes; then
1620 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
1621 cat > conftest.
$ac_ext <<EOF
1622 #line 1623 "configure"
1623 #include "confdefs.h"
1626 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
1627 egrep "free" >/dev
/null
2>&1; then
1631 ac_cv_header_stdc
=no
1637 if test $ac_cv_header_stdc = yes; then
1638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
1639 if test "$cross_compiling" = yes; then
1642 cat > conftest.
$ac_ext <<EOF
1643 #line 1644 "configure"
1644 #include "confdefs.h"
1646 #define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
1647 #define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
1648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
1649 int main () { int i; for (i = 0; i < 256; i++)
1650 if (XOR (islower (i), ISLOWER (i)) || toupper (i) != TOUPPER (i)) exit(2);
1654 if { (eval echo configure
:1655: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
1658 echo "configure: failed program was:" >&5
1659 cat conftest.
$ac_ext >&5
1661 ac_cv_header_stdc
=no
1669 echo "$ac_t""$ac_cv_header_stdc" 1>&6
1670 if test $ac_cv_header_stdc = yes; then
1671 cat >> confdefs.h
<<\EOF
1672 #define STDC_HEADERS 1
1677 echo $ac_n "checking whether to enable maintainer-specific portions of Makefiles""... $ac_c" 1>&6
1678 echo "configure:1679: checking whether to enable maintainer-specific portions of Makefiles" >&5
1679 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
1680 if test "${enable_maintainer_mode+set}" = set; then
1681 enableval
="$enable_maintainer_mode"
1682 USE_MAINTAINER_MODE
=$enableval
1684 USE_MAINTAINER_MODE
=no
1687 echo "$ac_t""$USE_MAINTAINER_MODE" 1>&6
1690 if test $USE_MAINTAINER_MODE = yes; then
1691 MAINTAINER_MODE_TRUE
=
1692 MAINTAINER_MODE_FALSE
='#'
1694 MAINTAINER_MODE_TRUE
='#'
1695 MAINTAINER_MODE_FALSE
=
1697 MAINT
=$MAINTAINER_MODE_TRUE
1702 # Check whether --enable-compile-warnings or --disable-compile-warnings was given.
1703 if test "${enable_compile_warnings+set}" = set; then
1704 enableval
="$enable_compile_warnings"
1707 enable_compile_warnings
=minimum
1711 echo $ac_n "checking what warning flags to pass to the C compiler""... $ac_c" 1>&6
1712 echo "configure:1713: checking what warning flags to pass to the C compiler" >&5
1714 if test "x$GCC" != xyes
; then
1715 enable_compile_warnings
=no
1718 if test "x$enable_compile_warnings" != "xno"; then
1719 if test "x$GCC" = "xyes"; then
1722 *) warnCFLAGS
="-Wall -Wunused" ;;
1725 ## -W is not all that useful. And it cannot be controlled
1726 ## with individual -Wno-xxx flags, unlike -Wall
1727 if test "x$enable_compile_warnings" = "xyes"; then
1728 warnCFLAGS
="$warnCFLAGS -Wmissing-prototypes -Wmissing-declarations"
1732 echo "$ac_t""$warnCFLAGS" 1>&6
1734 # Check whether --enable-iso-c or --disable-iso-c was given.
1735 if test "${enable_iso_c+set}" = set; then
1736 enableval
="$enable_iso_c"
1743 echo $ac_n "checking what language compliance flags to pass to the C compiler""... $ac_c" 1>&6
1744 echo "configure:1745: checking what language compliance flags to pass to the C compiler" >&5
1746 if test "x$enable_iso_c" != "xno"; then
1747 if test "x$GCC" = "xyes"; then
1750 *) complCFLAGS
="$complCFLAGS -ansi" ;;
1754 *\ \
-pedantic\ \
*) ;;
1755 *) complCFLAGS
="$complCFLAGS -pedantic" ;;
1759 echo "$ac_t""$complCFLAGS" 1>&6
1760 if test "x$cflags_set" != "xyes"; then
1761 CFLAGS
="$CFLAGS $warnCFLAGS $complCFLAGS"
1768 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
1769 echo "configure:1770: checking for pthread_create in -lpthread" >&5
1770 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
1771 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1772 echo $ac_n "(cached) $ac_c" 1>&6
1774 ac_save_LIBS
="$LIBS"
1775 LIBS
="-lpthread $LIBS"
1776 cat > conftest.
$ac_ext <<EOF
1777 #line 1778 "configure"
1778 #include "confdefs.h"
1779 /* Override any gcc2 internal prototype to avoid an error. */
1780 /* We use char because int might match the return type of a gcc2
1781 builtin and then its argument prototype would still apply. */
1782 char pthread_create();
1788 if { (eval echo configure
:1789: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1790 eval "ac_cv_lib_$ac_lib_var=yes"
1792 echo "configure: failed program was:" >&5
1793 cat conftest.
$ac_ext >&5
1795 eval "ac_cv_lib_$ac_lib_var=no"
1798 LIBS
="$ac_save_LIBS"
1801 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1802 echo "$ac_t""yes" 1>&6
1803 PTHREAD_LIB
="-lpthread"
1805 echo "$ac_t""no" 1>&6
1806 echo $ac_n "checking for pthread_create in -lpthreads""... $ac_c" 1>&6
1807 echo "configure:1808: checking for pthread_create in -lpthreads" >&5
1808 ac_lib_var
=`echo pthreads'_'pthread_create | sed 'y%./+-%__p_%'`
1809 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1810 echo $ac_n "(cached) $ac_c" 1>&6
1812 ac_save_LIBS
="$LIBS"
1813 LIBS
="-lpthreads $LIBS"
1814 cat > conftest.
$ac_ext <<EOF
1815 #line 1816 "configure"
1816 #include "confdefs.h"
1817 /* Override any gcc2 internal prototype to avoid an error. */
1818 /* We use char because int might match the return type of a gcc2
1819 builtin and then its argument prototype would still apply. */
1820 char pthread_create();
1826 if { (eval echo configure
:1827: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1828 eval "ac_cv_lib_$ac_lib_var=yes"
1830 echo "configure: failed program was:" >&5
1831 cat conftest.
$ac_ext >&5
1833 eval "ac_cv_lib_$ac_lib_var=no"
1836 LIBS
="$ac_save_LIBS"
1839 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1840 echo "$ac_t""yes" 1>&6
1841 PTHREAD_LIB
="-lpthreads"
1843 echo "$ac_t""no" 1>&6
1844 echo $ac_n "checking for pthread_create in -lc_r""... $ac_c" 1>&6
1845 echo "configure:1846: checking for pthread_create in -lc_r" >&5
1846 ac_lib_var
=`echo c_r'_'pthread_create | sed 'y%./+-%__p_%'`
1847 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1848 echo $ac_n "(cached) $ac_c" 1>&6
1850 ac_save_LIBS
="$LIBS"
1852 cat > conftest.
$ac_ext <<EOF
1853 #line 1854 "configure"
1854 #include "confdefs.h"
1855 /* Override any gcc2 internal prototype to avoid an error. */
1856 /* We use char because int might match the return type of a gcc2
1857 builtin and then its argument prototype would still apply. */
1858 char pthread_create();
1864 if { (eval echo configure
:1865: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1866 eval "ac_cv_lib_$ac_lib_var=yes"
1868 echo "configure: failed program was:" >&5
1869 cat conftest.
$ac_ext >&5
1871 eval "ac_cv_lib_$ac_lib_var=no"
1874 LIBS
="$ac_save_LIBS"
1877 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1878 echo "$ac_t""yes" 1>&6
1881 echo "$ac_t""no" 1>&6
1882 echo $ac_n "checking for pthread_create""... $ac_c" 1>&6
1883 echo "configure:1884: checking for pthread_create" >&5
1884 if eval "test \"`echo '$''{'ac_cv_func_pthread_create'+set}'`\" = set"; then
1885 echo $ac_n "(cached) $ac_c" 1>&6
1887 cat > conftest.
$ac_ext <<EOF
1888 #line 1889 "configure"
1889 #include "confdefs.h"
1890 /* System header to define __stub macros and hopefully few prototypes,
1891 which can conflict with char pthread_create(); below. */
1893 /* Override any gcc2 internal prototype to avoid an error. */
1894 /* We use char because int might match the return type of a gcc2
1895 builtin and then its argument prototype would still apply. */
1896 char pthread_create();
1900 /* The GNU C library defines this for functions which it implements
1901 to always fail with ENOSYS. Some functions are actually named
1902 something starting with __ and the normal name is an alias. */
1903 #if defined (__stub_pthread_create) || defined (__stub___pthread_create)
1911 if { (eval echo configure
:1912: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
1913 eval "ac_cv_func_pthread_create=yes"
1915 echo "configure: failed program was:" >&5
1916 cat conftest.
$ac_ext >&5
1918 eval "ac_cv_func_pthread_create=no"
1923 if eval "test \"`echo '$ac_cv_func_'pthread_create`\" = yes"; then
1924 echo "$ac_t""yes" 1>&6
1927 echo "$ac_t""no" 1>&6
1943 # Check whether --with-gtk-prefix or --without-gtk-prefix was given.
1944 if test "${with_gtk_prefix+set}" = set; then
1945 withval
="$with_gtk_prefix"
1946 gtk_config_prefix
="$withval"
1948 gtk_config_prefix
=""
1951 # Check whether --with-gtk-exec-prefix or --without-gtk-exec-prefix was given.
1952 if test "${with_gtk_exec_prefix+set}" = set; then
1953 withval
="$with_gtk_exec_prefix"
1954 gtk_config_exec_prefix
="$withval"
1956 gtk_config_exec_prefix
=""
1959 # Check whether --enable-gtktest or --disable-gtktest was given.
1960 if test "${enable_gtktest+set}" = set; then
1961 enableval
="$enable_gtktest"
1972 gtk_config_args
="$gtk_config_args gthread"
1977 if test x
$gtk_config_exec_prefix != x
; then
1978 gtk_config_args
="$gtk_config_args --exec-prefix=$gtk_config_exec_prefix"
1979 if test x
${GTK_CONFIG+set} != xset
; then
1980 GTK_CONFIG
=$gtk_config_exec_prefix/bin
/gtk-config
1983 if test x
$gtk_config_prefix != x
; then
1984 gtk_config_args
="$gtk_config_args --prefix=$gtk_config_prefix"
1985 if test x
${GTK_CONFIG+set} != xset
; then
1986 GTK_CONFIG
=$gtk_config_prefix/bin
/gtk-config
1990 # Extract the first word of "gtk-config", so it can be a program name with args.
1991 set dummy gtk-config
; ac_word
=$2
1992 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
1993 echo "configure:1994: checking for $ac_word" >&5
1994 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
1995 echo $ac_n "(cached) $ac_c" 1>&6
1997 case "$GTK_CONFIG" in
1999 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a path.
2002 ac_cv_path_GTK_CONFIG
="$GTK_CONFIG" # Let the user override the test with a dos path.
2005 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2007 for ac_dir
in $ac_dummy; do
2008 test -z "$ac_dir" && ac_dir
=.
2009 if test -f $ac_dir/$ac_word; then
2010 ac_cv_path_GTK_CONFIG
="$ac_dir/$ac_word"
2015 test -z "$ac_cv_path_GTK_CONFIG" && ac_cv_path_GTK_CONFIG
="no"
2019 GTK_CONFIG
="$ac_cv_path_GTK_CONFIG"
2020 if test -n "$GTK_CONFIG"; then
2021 echo "$ac_t""$GTK_CONFIG" 1>&6
2023 echo "$ac_t""no" 1>&6
2026 min_gtk_version
=1.2.0
2027 echo $ac_n "checking for GTK - version >= $min_gtk_version""... $ac_c" 1>&6
2028 echo "configure:2029: checking for GTK - version >= $min_gtk_version" >&5
2030 if test "$GTK_CONFIG" = "no" ; then
2033 GTK_CFLAGS
=`$GTK_CONFIG $gtk_config_args --cflags`
2034 GTK_LIBS
=`$GTK_CONFIG $gtk_config_args --libs`
2035 gtk_config_major_version
=`$GTK_CONFIG $gtk_config_args --version | \
2036 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
2037 gtk_config_minor_version
=`$GTK_CONFIG $gtk_config_args --version | \
2038 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
2039 gtk_config_micro_version
=`$GTK_CONFIG $gtk_config_args --version | \
2040 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
2041 if test "x$enable_gtktest" = "xyes" ; then
2042 ac_save_CFLAGS
="$CFLAGS"
2043 ac_save_LIBS
="$LIBS"
2044 CFLAGS
="$CFLAGS $GTK_CFLAGS"
2045 LIBS
="$GTK_LIBS $LIBS"
2047 if test "$cross_compiling" = yes; then
2048 echo $ac_n "cross compiling; assumed OK... $ac_c"
2050 cat > conftest.
$ac_ext <<EOF
2051 #line 2052 "configure"
2052 #include "confdefs.h"
2054 #include <gtk/gtk.h>
2061 int major, minor, micro;
2064 system ("touch conf.gtktest");
2066 /* HP/UX 9 (%@#!) writes to sscanf strings */
2067 tmp_version = g_strdup("$min_gtk_version");
2068 if (sscanf(tmp_version, "%d.%d.%d", &major, &minor, µ) != 3) {
2069 printf("%s, bad version string\n", "$min_gtk_version");
2073 if ((gtk_major_version != $gtk_config_major_version) ||
2074 (gtk_minor_version != $gtk_config_minor_version) ||
2075 (gtk_micro_version != $gtk_config_micro_version))
2077 printf("\n*** 'gtk-config --version' returned %d.%d.%d, but GTK+ (%d.%d.%d)\n",
2078 $gtk_config_major_version, $gtk_config_minor_version, $gtk_config_micro_version,
2079 gtk_major_version, gtk_minor_version, gtk_micro_version);
2080 printf ("*** was found! If gtk-config was correct, then it is best\n");
2081 printf ("*** to remove the old version of GTK+. You may also be able to fix the error\n");
2082 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
2083 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
2084 printf("*** required on your system.\n");
2085 printf("*** If gtk-config was wrong, set the environment variable GTK_CONFIG\n");
2086 printf("*** to point to the correct copy of gtk-config, and remove the file config.cache\n");
2087 printf("*** before re-running configure\n");
2089 #if defined (GTK_MAJOR_VERSION) && defined (GTK_MINOR_VERSION) && defined (GTK_MICRO_VERSION)
2090 else if ((gtk_major_version != GTK_MAJOR_VERSION) ||
2091 (gtk_minor_version != GTK_MINOR_VERSION) ||
2092 (gtk_micro_version != GTK_MICRO_VERSION))
2094 printf("*** GTK+ header files (version %d.%d.%d) do not match\n",
2095 GTK_MAJOR_VERSION, GTK_MINOR_VERSION, GTK_MICRO_VERSION);
2096 printf("*** library (version %d.%d.%d)\n",
2097 gtk_major_version, gtk_minor_version, gtk_micro_version);
2099 #endif /* defined (GTK_MAJOR_VERSION) ... */
2102 if ((gtk_major_version > major) ||
2103 ((gtk_major_version == major) && (gtk_minor_version > minor)) ||
2104 ((gtk_major_version == major) && (gtk_minor_version == minor) && (gtk_micro_version >= micro)))
2110 printf("\n*** An old version of GTK+ (%d.%d.%d) was found.\n",
2111 gtk_major_version, gtk_minor_version, gtk_micro_version);
2112 printf("*** You need a version of GTK+ newer than %d.%d.%d. The latest version of\n",
2113 major, minor, micro);
2114 printf("*** GTK+ is always available from ftp://ftp.gtk.org.\n");
2116 printf("*** If you have already installed a sufficiently new version, this error\n");
2117 printf("*** probably means that the wrong copy of the gtk-config shell script is\n");
2118 printf("*** being found. The easiest way to fix this is to remove the old version\n");
2119 printf("*** of GTK+, but you can also set the GTK_CONFIG environment to point to the\n");
2120 printf("*** correct copy of gtk-config. (In this case, you will have to\n");
2121 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
2122 printf("*** so that the correct libraries are found at run-time))\n");
2129 if { (eval echo configure
:2130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2133 echo "configure: failed program was:" >&5
2134 cat conftest.
$ac_ext >&5
2141 CFLAGS
="$ac_save_CFLAGS"
2142 LIBS
="$ac_save_LIBS"
2145 if test "x$no_gtk" = x
; then
2146 echo "$ac_t""yes" 1>&6
2149 echo "$ac_t""no" 1>&6
2150 if test "$GTK_CONFIG" = "no" ; then
2151 echo "*** The gtk-config script installed by GTK could not be found"
2152 echo "*** If GTK was installed in PREFIX, make sure PREFIX/bin is in"
2153 echo "*** your path, or set the GTK_CONFIG environment variable to the"
2154 echo "*** full path to gtk-config."
2156 if test -f conf.gtktest
; then
2159 echo "*** Could not run GTK test program, checking why..."
2160 CFLAGS
="$CFLAGS $GTK_CFLAGS"
2161 LIBS
="$LIBS $GTK_LIBS"
2162 cat > conftest.
$ac_ext <<EOF
2163 #line 2164 "configure"
2164 #include "confdefs.h"
2166 #include <gtk/gtk.h>
2170 return ((gtk_major_version) || (gtk_minor_version) || (gtk_micro_version));
2173 if { (eval echo configure
:2174: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2175 echo "*** The test program compiled, but did not run. This usually means"
2176 echo "*** that the run-time linker is not finding GTK or finding the wrong"
2177 echo "*** version of GTK. If it is not finding GTK, you'll need to set your"
2178 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
2179 echo "*** to the installed location Also, make sure you have run ldconfig if that"
2180 echo "*** is required on your system"
2182 echo "*** If you have an old version installed, it is best to remove it, although"
2183 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
2185 echo "*** If you have a RedHat 5.0 system, you should remove the GTK package that"
2186 echo "*** came with the system with the command"
2188 echo "*** rpm --erase --nodeps gtk gtk-devel"
2190 echo "configure: failed program was:" >&5
2191 cat conftest.
$ac_ext >&5
2193 echo "*** The test program failed to compile or link. See the file config.log for the"
2194 echo "*** exact error that occured. This usually means GTK was incorrectly installed"
2195 echo "*** or that you have moved GTK since it was installed. In the latter case, you"
2196 echo "*** may want to edit the gtk-config script: $GTK_CONFIG"
2199 CFLAGS
="$ac_save_CFLAGS"
2200 LIBS
="$ac_save_LIBS"
2205 { echo "configure: error: GTK not installed" 1>&2; exit 1; }
2211 CPPFLAGS
="$CPPFLAGS $GTK_CFLAGS"
2213 saved_ldflags
="$LDFLAGS"
2214 LDFLAGS
="$LDFLAGS $GTK_LIBS"
2216 gnome_cv_passdown_x_libs
="$GTK_LIBS"
2217 gnome_cv_passdown_X_LIBS
="$GTK_LIBS"
2218 gnome_cv_passdown_X_CFLAGS
="$GTK_CFLAGS"
2219 gnome_cv_passdown_GTK_LIBS
="$GTK_LIBS"
2221 LDFLAGS
="$saved_ldflags $GTK_LIBS"
2231 echo $ac_n "checking for SmcSaveYourselfDone in -lSM""... $ac_c" 1>&6
2232 echo "configure:2233: checking for SmcSaveYourselfDone in -lSM" >&5
2233 ac_lib_var
=`echo SM'_'SmcSaveYourselfDone | sed 'y%./+-%__p_%'`
2234 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2235 echo $ac_n "(cached) $ac_c" 1>&6
2237 ac_save_LIBS
="$LIBS"
2238 LIBS
="-lSM $x_libs -lICE $LIBS"
2239 cat > conftest.
$ac_ext <<EOF
2240 #line 2241 "configure"
2241 #include "confdefs.h"
2242 /* Override any gcc2 internal prototype to avoid an error. */
2243 /* We use char because int might match the return type of a gcc2
2244 builtin and then its argument prototype would still apply. */
2245 char SmcSaveYourselfDone();
2248 SmcSaveYourselfDone()
2251 if { (eval echo configure
:2252: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2253 eval "ac_cv_lib_$ac_lib_var=yes"
2255 echo "configure: failed program was:" >&5
2256 cat conftest.
$ac_ext >&5
2258 eval "ac_cv_lib_$ac_lib_var=no"
2261 LIBS
="$ac_save_LIBS"
2264 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2265 echo "$ac_t""yes" 1>&6
2266 GTK_LIBS
="-lSM -lICE $GTK_LIBS"
2268 echo "$ac_t""no" 1>&6
2275 if test "$GNOME_HAVE_SM" = true
; then
2276 for ac_hdr
in X11
/SM
/SMlib.h
2278 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2279 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2280 echo "configure:2281: checking for $ac_hdr" >&5
2281 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2282 echo $ac_n "(cached) $ac_c" 1>&6
2284 cat > conftest.
$ac_ext <<EOF
2285 #line 2286 "configure"
2286 #include "confdefs.h"
2289 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2290 { (eval echo configure
:2291: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2291 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2292 if test -z "$ac_err"; then
2294 eval "ac_cv_header_$ac_safe=yes"
2297 echo "configure: failed program was:" >&5
2298 cat conftest.
$ac_ext >&5
2300 eval "ac_cv_header_$ac_safe=no"
2304 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2305 echo "$ac_t""yes" 1>&6
2306 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2307 cat >> confdefs.h
<<EOF
2308 #define $ac_tr_hdr 1
2312 echo "$ac_t""no" 1>&6
2319 if test "$GNOME_HAVE_SM" = true
; then
2320 cat >> confdefs.h
<<\EOF
2321 #define HAVE_LIBSM 1
2327 echo $ac_n "checking for XpmFreeXpmImage in -lXpm""... $ac_c" 1>&6
2328 echo "configure:2329: checking for XpmFreeXpmImage in -lXpm" >&5
2329 ac_lib_var
=`echo Xpm'_'XpmFreeXpmImage | sed 'y%./+-%__p_%'`
2330 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
2331 echo $ac_n "(cached) $ac_c" 1>&6
2333 ac_save_LIBS
="$LIBS"
2334 LIBS
="-lXpm $x_libs $LIBS"
2335 cat > conftest.
$ac_ext <<EOF
2336 #line 2337 "configure"
2337 #include "confdefs.h"
2338 /* Override any gcc2 internal prototype to avoid an error. */
2339 /* We use char because int might match the return type of a gcc2
2340 builtin and then its argument prototype would still apply. */
2341 char XpmFreeXpmImage();
2347 if { (eval echo configure
:2348: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2349 eval "ac_cv_lib_$ac_lib_var=yes"
2351 echo "configure: failed program was:" >&5
2352 cat conftest.
$ac_ext >&5
2354 eval "ac_cv_lib_$ac_lib_var=no"
2357 LIBS
="$ac_save_LIBS"
2360 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
2361 echo "$ac_t""yes" 1>&6
2364 echo "$ac_t""no" 1>&6
2370 LDFLAGS
="$saved_ldflags"
2375 ALL_LINGUAS
="ca de nl"
2378 # Make sure we can run config.sub.
2379 if ${CONFIG_SHELL-/bin/sh} $ac_config_sub sun4
>/dev
/null
2>&1; then :
2380 else { echo "configure: error: can not run $ac_config_sub" 1>&2; exit 1; }
2383 echo $ac_n "checking host system type""... $ac_c" 1>&6
2384 echo "configure:2385: checking host system type" >&5
2387 case "$host_alias" in
2391 if host_alias
=`${CONFIG_SHELL-/bin/sh} $ac_config_guess`; then :
2392 else { echo "configure: error: can not guess host type; you must specify one" 1>&2; exit 1; }
2394 *) host_alias
=$nonopt ;;
2398 host=`${CONFIG_SHELL-/bin/sh} $ac_config_sub $host_alias`
2399 host_cpu
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2400 host_vendor
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2401 host_os
=`echo $host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2402 echo "$ac_t""$host" 1>&6
2404 # Extract the first word of "ranlib", so it can be a program name with args.
2405 set dummy ranlib
; ac_word
=$2
2406 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
2407 echo "configure:2408: checking for $ac_word" >&5
2408 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
2409 echo $ac_n "(cached) $ac_c" 1>&6
2411 if test -n "$RANLIB"; then
2412 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
2414 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
2416 for ac_dir
in $ac_dummy; do
2417 test -z "$ac_dir" && ac_dir
=.
2418 if test -f $ac_dir/$ac_word; then
2419 ac_cv_prog_RANLIB
="ranlib"
2424 test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB
=":"
2427 RANLIB
="$ac_cv_prog_RANLIB"
2428 if test -n "$RANLIB"; then
2429 echo "$ac_t""$RANLIB" 1>&6
2431 echo "$ac_t""no" 1>&6
2434 echo $ac_n "checking for working const""... $ac_c" 1>&6
2435 echo "configure:2436: checking for working const" >&5
2436 if eval "test \"`echo '$''{'ac_cv_c_const'+set}'`\" = set"; then
2437 echo $ac_n "(cached) $ac_c" 1>&6
2439 cat > conftest.
$ac_ext <<EOF
2440 #line 2441 "configure"
2441 #include "confdefs.h"
2445 /* Ultrix mips cc rejects this. */
2446 typedef int charset[2]; const charset x;
2447 /* SunOS 4.1.1 cc rejects this. */
2448 char const *const *ccp;
2450 /* NEC SVR4.0.2 mips cc rejects this. */
2451 struct point {int x, y;};
2452 static struct point const zero = {0,0};
2453 /* AIX XL C 1.02.0.0 rejects this.
2454 It does not let you subtract one const X* pointer from another in an arm
2455 of an if-expression whose if-part is not a constant expression */
2456 const char *g = "string";
2457 ccp = &g + (g ? g-g : 0);
2458 /* HPUX 7.0 cc rejects these. */
2461 ccp = (char const *const *) p;
2462 { /* SCO 3.2v4 cc rejects this. */
2464 char const *s = 0 ? (char *) 0 : (char const *) 0;
2468 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
2470 const int *foo = &x[0];
2473 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
2474 typedef const int *iptr;
2478 { /* AIX XL C 1.02.0.0 rejects this saying
2479 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
2480 struct s { int j; const int *ap[3]; };
2481 struct s *b; b->j = 5;
2483 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
2489 if { (eval echo configure
:2490: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2493 echo "configure: failed program was:" >&5
2494 cat conftest.
$ac_ext >&5
2501 echo "$ac_t""$ac_cv_c_const" 1>&6
2502 if test $ac_cv_c_const = no
; then
2503 cat >> confdefs.h
<<\EOF
2509 echo $ac_n "checking for inline""... $ac_c" 1>&6
2510 echo "configure:2511: checking for inline" >&5
2511 if eval "test \"`echo '$''{'ac_cv_c_inline'+set}'`\" = set"; then
2512 echo $ac_n "(cached) $ac_c" 1>&6
2515 for ac_kw
in inline __inline__ __inline
; do
2516 cat > conftest.
$ac_ext <<EOF
2517 #line 2518 "configure"
2518 #include "confdefs.h"
2524 if { (eval echo configure
:2525: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
2526 ac_cv_c_inline
=$ac_kw; break
2528 echo "configure: failed program was:" >&5
2529 cat conftest.
$ac_ext >&5
2536 echo "$ac_t""$ac_cv_c_inline" 1>&6
2537 case "$ac_cv_c_inline" in
2539 no
) cat >> confdefs.h
<<\EOF
2543 *) cat >> confdefs.h
<<EOF
2544 #define inline $ac_cv_c_inline
2549 echo $ac_n "checking for off_t""... $ac_c" 1>&6
2550 echo "configure:2551: checking for off_t" >&5
2551 if eval "test \"`echo '$''{'ac_cv_type_off_t'+set}'`\" = set"; then
2552 echo $ac_n "(cached) $ac_c" 1>&6
2554 cat > conftest.
$ac_ext <<EOF
2555 #line 2556 "configure"
2556 #include "confdefs.h"
2557 #include <sys/types.h>
2563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2564 egrep "(^|[^a-zA-Z_0-9])off_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2566 ac_cv_type_off_t
=yes
2574 echo "$ac_t""$ac_cv_type_off_t" 1>&6
2575 if test $ac_cv_type_off_t = no
; then
2576 cat >> confdefs.h
<<\EOF
2582 echo $ac_n "checking for size_t""... $ac_c" 1>&6
2583 echo "configure:2584: checking for size_t" >&5
2584 if eval "test \"`echo '$''{'ac_cv_type_size_t'+set}'`\" = set"; then
2585 echo $ac_n "(cached) $ac_c" 1>&6
2587 cat > conftest.
$ac_ext <<EOF
2588 #line 2589 "configure"
2589 #include "confdefs.h"
2590 #include <sys/types.h>
2596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2597 egrep "(^|[^a-zA-Z_0-9])size_t[^a-zA-Z_0-9]" >/dev
/null
2>&1; then
2599 ac_cv_type_size_t
=yes
2602 ac_cv_type_size_t
=no
2607 echo "$ac_t""$ac_cv_type_size_t" 1>&6
2608 if test $ac_cv_type_size_t = no
; then
2609 cat >> confdefs.h
<<\EOF
2610 #define size_t unsigned
2615 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
2616 # for constant arguments. Useless!
2617 echo $ac_n "checking for working alloca.h""... $ac_c" 1>&6
2618 echo "configure:2619: checking for working alloca.h" >&5
2619 if eval "test \"`echo '$''{'ac_cv_header_alloca_h'+set}'`\" = set"; then
2620 echo $ac_n "(cached) $ac_c" 1>&6
2622 cat > conftest.
$ac_ext <<EOF
2623 #line 2624 "configure"
2624 #include "confdefs.h"
2627 char *p = alloca(2 * sizeof(int));
2630 if { (eval echo configure
:2631: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2632 ac_cv_header_alloca_h
=yes
2634 echo "configure: failed program was:" >&5
2635 cat conftest.
$ac_ext >&5
2637 ac_cv_header_alloca_h
=no
2642 echo "$ac_t""$ac_cv_header_alloca_h" 1>&6
2643 if test $ac_cv_header_alloca_h = yes; then
2644 cat >> confdefs.h
<<\EOF
2645 #define HAVE_ALLOCA_H 1
2650 echo $ac_n "checking for alloca""... $ac_c" 1>&6
2651 echo "configure:2652: checking for alloca" >&5
2652 if eval "test \"`echo '$''{'ac_cv_func_alloca_works'+set}'`\" = set"; then
2653 echo $ac_n "(cached) $ac_c" 1>&6
2655 cat > conftest.
$ac_ext <<EOF
2656 #line 2657 "configure"
2657 #include "confdefs.h"
2660 # define alloca __builtin_alloca
2663 # include <malloc.h>
2664 # define alloca _alloca
2667 # include <alloca.h>
2672 # ifndef alloca /* predefined by HP cc +Olibcalls */
2681 char *p = (char *) alloca(1);
2684 if { (eval echo configure
:2685: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2686 ac_cv_func_alloca_works
=yes
2688 echo "configure: failed program was:" >&5
2689 cat conftest.
$ac_ext >&5
2691 ac_cv_func_alloca_works
=no
2696 echo "$ac_t""$ac_cv_func_alloca_works" 1>&6
2697 if test $ac_cv_func_alloca_works = yes; then
2698 cat >> confdefs.h
<<\EOF
2699 #define HAVE_ALLOCA 1
2704 if test $ac_cv_func_alloca_works = no
; then
2705 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
2706 # that cause trouble. Some versions do not even contain alloca or
2707 # contain a buggy version. If you still want to use their alloca,
2708 # use ar to extract alloca.o from them instead of compiling alloca.c.
2709 ALLOCA
=alloca.
${ac_objext}
2710 cat >> confdefs.h
<<\EOF
2715 echo $ac_n "checking whether alloca needs Cray hooks""... $ac_c" 1>&6
2716 echo "configure:2717: checking whether alloca needs Cray hooks" >&5
2717 if eval "test \"`echo '$''{'ac_cv_os_cray'+set}'`\" = set"; then
2718 echo $ac_n "(cached) $ac_c" 1>&6
2720 cat > conftest.
$ac_ext <<EOF
2721 #line 2722 "configure"
2722 #include "confdefs.h"
2723 #if defined(CRAY) && ! defined(CRAY2)
2730 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2731 egrep "webecray" >/dev
/null
2>&1; then
2742 echo "$ac_t""$ac_cv_os_cray" 1>&6
2743 if test $ac_cv_os_cray = yes; then
2744 for ac_func
in _getb67 GETB67 getb67
; do
2745 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2746 echo "configure:2747: checking for $ac_func" >&5
2747 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2748 echo $ac_n "(cached) $ac_c" 1>&6
2750 cat > conftest.
$ac_ext <<EOF
2751 #line 2752 "configure"
2752 #include "confdefs.h"
2753 /* System header to define __stub macros and hopefully few prototypes,
2754 which can conflict with char $ac_func(); below. */
2756 /* Override any gcc2 internal prototype to avoid an error. */
2757 /* We use char because int might match the return type of a gcc2
2758 builtin and then its argument prototype would still apply. */
2763 /* The GNU C library defines this for functions which it implements
2764 to always fail with ENOSYS. Some functions are actually named
2765 something starting with __ and the normal name is an alias. */
2766 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2774 if { (eval echo configure
:2775: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2776 eval "ac_cv_func_$ac_func=yes"
2778 echo "configure: failed program was:" >&5
2779 cat conftest.
$ac_ext >&5
2781 eval "ac_cv_func_$ac_func=no"
2786 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2787 echo "$ac_t""yes" 1>&6
2788 cat >> confdefs.h
<<EOF
2789 #define CRAY_STACKSEG_END $ac_func
2794 echo "$ac_t""no" 1>&6
2800 echo $ac_n "checking stack direction for C alloca""... $ac_c" 1>&6
2801 echo "configure:2802: checking stack direction for C alloca" >&5
2802 if eval "test \"`echo '$''{'ac_cv_c_stack_direction'+set}'`\" = set"; then
2803 echo $ac_n "(cached) $ac_c" 1>&6
2805 if test "$cross_compiling" = yes; then
2806 ac_cv_c_stack_direction
=0
2808 cat > conftest.
$ac_ext <<EOF
2809 #line 2810 "configure"
2810 #include "confdefs.h"
2811 find_stack_direction ()
2813 static char *addr = 0;
2818 return find_stack_direction ();
2821 return (&dummy > addr) ? 1 : -1;
2825 exit (find_stack_direction() < 0);
2828 if { (eval echo configure
:2829: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
2830 ac_cv_c_stack_direction
=1
2832 echo "configure: failed program was:" >&5
2833 cat conftest.
$ac_ext >&5
2835 ac_cv_c_stack_direction
=-1
2842 echo "$ac_t""$ac_cv_c_stack_direction" 1>&6
2843 cat >> confdefs.h
<<EOF
2844 #define STACK_DIRECTION $ac_cv_c_stack_direction
2849 for ac_hdr
in unistd.h
2851 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
2852 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
2853 echo "configure:2854: checking for $ac_hdr" >&5
2854 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
2855 echo $ac_n "(cached) $ac_c" 1>&6
2857 cat > conftest.
$ac_ext <<EOF
2858 #line 2859 "configure"
2859 #include "confdefs.h"
2862 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
2863 { (eval echo configure
:2864: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
2864 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
2865 if test -z "$ac_err"; then
2867 eval "ac_cv_header_$ac_safe=yes"
2870 echo "configure: failed program was:" >&5
2871 cat conftest.
$ac_ext >&5
2873 eval "ac_cv_header_$ac_safe=no"
2877 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
2878 echo "$ac_t""yes" 1>&6
2879 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
2880 cat >> confdefs.h
<<EOF
2881 #define $ac_tr_hdr 1
2885 echo "$ac_t""no" 1>&6
2889 for ac_func
in getpagesize
2891 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
2892 echo "configure:2893: checking for $ac_func" >&5
2893 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
2894 echo $ac_n "(cached) $ac_c" 1>&6
2896 cat > conftest.
$ac_ext <<EOF
2897 #line 2898 "configure"
2898 #include "confdefs.h"
2899 /* System header to define __stub macros and hopefully few prototypes,
2900 which can conflict with char $ac_func(); below. */
2902 /* Override any gcc2 internal prototype to avoid an error. */
2903 /* We use char because int might match the return type of a gcc2
2904 builtin and then its argument prototype would still apply. */
2909 /* The GNU C library defines this for functions which it implements
2910 to always fail with ENOSYS. Some functions are actually named
2911 something starting with __ and the normal name is an alias. */
2912 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
2920 if { (eval echo configure
:2921: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
2922 eval "ac_cv_func_$ac_func=yes"
2924 echo "configure: failed program was:" >&5
2925 cat conftest.
$ac_ext >&5
2927 eval "ac_cv_func_$ac_func=no"
2932 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
2933 echo "$ac_t""yes" 1>&6
2934 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
2935 cat >> confdefs.h
<<EOF
2936 #define $ac_tr_func 1
2940 echo "$ac_t""no" 1>&6
2944 echo $ac_n "checking for working mmap""... $ac_c" 1>&6
2945 echo "configure:2946: checking for working mmap" >&5
2946 if eval "test \"`echo '$''{'ac_cv_func_mmap_fixed_mapped'+set}'`\" = set"; then
2947 echo $ac_n "(cached) $ac_c" 1>&6
2949 if test "$cross_compiling" = yes; then
2950 ac_cv_func_mmap_fixed_mapped
=no
2952 cat > conftest.
$ac_ext <<EOF
2953 #line 2954 "configure"
2954 #include "confdefs.h"
2956 /* Thanks to Mike Haertel and Jim Avera for this test.
2957 Here is a matrix of mmap possibilities:
2958 mmap private not fixed
2959 mmap private fixed at somewhere currently unmapped
2960 mmap private fixed at somewhere already mapped
2961 mmap shared not fixed
2962 mmap shared fixed at somewhere currently unmapped
2963 mmap shared fixed at somewhere already mapped
2964 For private mappings, we should verify that changes cannot be read()
2965 back from the file, nor mmap's back from the file at a different
2966 address. (There have been systems where private was not correctly
2967 implemented like the infamous i386 svr4.0, and systems where the
2968 VM page cache was not coherent with the filesystem buffer cache
2969 like early versions of FreeBSD and possibly contemporary NetBSD.)
2970 For shared mappings, we should conversely verify that changes get
2971 propogated back to all the places they're supposed to be.
2973 Grep wants private fixed already mapped.
2974 The main things grep needs to know about mmap are:
2975 * does it exist and is it safe to write into the mmap'd area
2976 * how to use it (BSD variants) */
2977 #include <sys/types.h>
2979 #include <sys/mman.h>
2981 /* This mess was copied from the GNU getpagesize.h. */
2982 #ifndef HAVE_GETPAGESIZE
2983 # ifdef HAVE_UNISTD_H
2984 # include <unistd.h>
2987 /* Assume that all systems that can run configure have sys/param.h. */
2988 # ifndef HAVE_SYS_PARAM_H
2989 # define HAVE_SYS_PARAM_H 1
2992 # ifdef _SC_PAGESIZE
2993 # define getpagesize() sysconf(_SC_PAGESIZE)
2994 # else /* no _SC_PAGESIZE */
2995 # ifdef HAVE_SYS_PARAM_H
2996 # include <sys/param.h>
2997 # ifdef EXEC_PAGESIZE
2998 # define getpagesize() EXEC_PAGESIZE
2999 # else /* no EXEC_PAGESIZE */
3001 # define getpagesize() NBPG * CLSIZE
3004 # endif /* no CLSIZE */
3005 # else /* no NBPG */
3007 # define getpagesize() NBPC
3008 # else /* no NBPC */
3010 # define getpagesize() PAGESIZE
3011 # endif /* PAGESIZE */
3012 # endif /* no NBPC */
3013 # endif /* no NBPG */
3014 # endif /* no EXEC_PAGESIZE */
3015 # else /* no HAVE_SYS_PARAM_H */
3016 # define getpagesize() 8192 /* punt totally */
3017 # endif /* no HAVE_SYS_PARAM_H */
3018 # endif /* no _SC_PAGESIZE */
3020 #endif /* no HAVE_GETPAGESIZE */
3023 extern "C" { void *malloc(unsigned); }
3031 char *data, *data2, *data3;
3035 pagesize = getpagesize();
3038 * First, make a file with some known garbage in it.
3040 data = malloc(pagesize);
3043 for (i = 0; i < pagesize; ++i)
3044 *(data + i) = rand();
3046 fd = creat("conftestmmap", 0600);
3049 if (write(fd, data, pagesize) != pagesize)
3054 * Next, try to mmap the file at a fixed address which
3055 * already has something else allocated at it. If we can,
3056 * also make sure that we see the same garbage.
3058 fd = open("conftestmmap", O_RDWR);
3061 data2 = malloc(2 * pagesize);
3064 data2 += (pagesize - ((int) data2 & (pagesize - 1))) & (pagesize - 1);
3065 if (data2 != mmap(data2, pagesize, PROT_READ | PROT_WRITE,
3066 MAP_PRIVATE | MAP_FIXED, fd, 0L))
3068 for (i = 0; i < pagesize; ++i)
3069 if (*(data + i) != *(data2 + i))
3073 * Finally, make sure that changes to the mapped area
3074 * do not percolate back to the file as seen by read().
3075 * (This is a bug on some variants of i386 svr4.0.)
3077 for (i = 0; i < pagesize; ++i)
3078 *(data2 + i) = *(data2 + i) + 1;
3079 data3 = malloc(pagesize);
3082 if (read(fd, data3, pagesize) != pagesize)
3084 for (i = 0; i < pagesize; ++i)
3085 if (*(data + i) != *(data3 + i))
3088 unlink("conftestmmap");
3093 if { (eval echo configure
:3094: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext} && (.
/conftest
; exit) 2>/dev
/null
3095 ac_cv_func_mmap_fixed_mapped
=yes
3097 echo "configure: failed program was:" >&5
3098 cat conftest.
$ac_ext >&5
3100 ac_cv_func_mmap_fixed_mapped
=no
3107 echo "$ac_t""$ac_cv_func_mmap_fixed_mapped" 1>&6
3108 if test $ac_cv_func_mmap_fixed_mapped = yes; then
3109 cat >> confdefs.h
<<\EOF
3116 echo $ac_n "checking whether we are using the GNU C Library 2.1 or newer""... $ac_c" 1>&6
3117 echo "configure:3118: checking whether we are using the GNU C Library 2.1 or newer" >&5
3118 if eval "test \"`echo '$''{'ac_cv_gnu_library_2_1'+set}'`\" = set"; then
3119 echo $ac_n "(cached) $ac_c" 1>&6
3121 cat > conftest.
$ac_ext <<EOF
3122 #line 3123 "configure"
3123 #include "confdefs.h"
3125 #include <features.h>
3126 #ifdef __GNU_LIBRARY__
3127 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2)
3133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3134 egrep "Lucky GNU user" >/dev
/null
2>&1; then
3136 ac_cv_gnu_library_2_1
=yes
3139 ac_cv_gnu_library_2_1
=no
3147 echo "$ac_t""$ac_cv_gnu_library_2_1" 1>&6
3149 GLIBC21
="$ac_cv_gnu_library_2_1"
3153 for ac_hdr
in argz.h limits.h locale.h nl_types.h malloc.h stddef.h \
3154 stdlib.h string.h unistd.h sys
/param.h
3156 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
3157 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
3158 echo "configure:3159: checking for $ac_hdr" >&5
3159 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3160 echo $ac_n "(cached) $ac_c" 1>&6
3162 cat > conftest.
$ac_ext <<EOF
3163 #line 3164 "configure"
3164 #include "confdefs.h"
3167 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3168 { (eval echo configure
:3169: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3169 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3170 if test -z "$ac_err"; then
3172 eval "ac_cv_header_$ac_safe=yes"
3175 echo "configure: failed program was:" >&5
3176 cat conftest.
$ac_ext >&5
3178 eval "ac_cv_header_$ac_safe=no"
3182 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3183 echo "$ac_t""yes" 1>&6
3184 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
3185 cat >> confdefs.h
<<EOF
3186 #define $ac_tr_hdr 1
3190 echo "$ac_t""no" 1>&6
3194 for ac_func
in feof_unlocked fgets_unlocked getcwd getegid geteuid \
3195 getgid getuid mempcpy munmap putenv setenv setlocale stpcpy strchr strcasecmp \
3196 strdup strtoul tsearch __argz_count __argz_stringify __argz_next
3198 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3199 echo "configure:3200: checking for $ac_func" >&5
3200 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3201 echo $ac_n "(cached) $ac_c" 1>&6
3203 cat > conftest.
$ac_ext <<EOF
3204 #line 3205 "configure"
3205 #include "confdefs.h"
3206 /* System header to define __stub macros and hopefully few prototypes,
3207 which can conflict with char $ac_func(); below. */
3209 /* Override any gcc2 internal prototype to avoid an error. */
3210 /* We use char because int might match the return type of a gcc2
3211 builtin and then its argument prototype would still apply. */
3216 /* The GNU C library defines this for functions which it implements
3217 to always fail with ENOSYS. Some functions are actually named
3218 something starting with __ and the normal name is an alias. */
3219 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3227 if { (eval echo configure
:3228: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3229 eval "ac_cv_func_$ac_func=yes"
3231 echo "configure: failed program was:" >&5
3232 cat conftest.
$ac_ext >&5
3234 eval "ac_cv_func_$ac_func=no"
3239 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3240 echo "$ac_t""yes" 1>&6
3241 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3242 cat >> confdefs.h
<<EOF
3243 #define $ac_tr_func 1
3247 echo "$ac_t""no" 1>&6
3254 # Check whether --with-libiconv-prefix or --without-libiconv-prefix was given.
3255 if test "${with_libiconv_prefix+set}" = set; then
3256 withval
="$with_libiconv_prefix"
3258 for dir
in `echo "$withval" | tr : ' '`; do
3259 if test -d $dir/include
; then CPPFLAGS
="$CPPFLAGS -I$dir/include"; fi
3260 if test -d $dir/lib
; then LDFLAGS
="$LDFLAGS -L$dir/lib"; fi
3266 echo $ac_n "checking for iconv""... $ac_c" 1>&6
3267 echo "configure:3268: checking for iconv" >&5
3268 if eval "test \"`echo '$''{'am_cv_func_iconv'+set}'`\" = set"; then
3269 echo $ac_n "(cached) $ac_c" 1>&6
3272 am_cv_func_iconv
="no, consider installing GNU libiconv"
3274 cat > conftest.
$ac_ext <<EOF
3275 #line 3276 "configure"
3276 #include "confdefs.h"
3280 iconv_t cd = iconv_open("","");
3281 iconv(cd,NULL,NULL,NULL,NULL);
3285 if { (eval echo configure
:3286: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3287 am_cv_func_iconv
=yes
3289 echo "configure: failed program was:" >&5
3290 cat conftest.
$ac_ext >&5
3293 if test "$am_cv_func_iconv" != yes; then
3294 am_save_LIBS
="$LIBS"
3295 LIBS
="$LIBS -liconv"
3296 cat > conftest.
$ac_ext <<EOF
3297 #line 3298 "configure"
3298 #include "confdefs.h"
3302 iconv_t cd = iconv_open("","");
3303 iconv(cd,NULL,NULL,NULL,NULL);
3307 if { (eval echo configure
:3308: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3310 am_cv_func_iconv
=yes
3312 echo "configure: failed program was:" >&5
3313 cat conftest.
$ac_ext >&5
3316 LIBS
="$am_save_LIBS"
3321 echo "$ac_t""$am_cv_func_iconv" 1>&6
3322 if test "$am_cv_func_iconv" = yes; then
3323 cat >> confdefs.h
<<\EOF
3324 #define HAVE_ICONV 1
3327 echo $ac_n "checking for iconv declaration""... $ac_c" 1>&6
3328 echo "configure:3329: checking for iconv declaration" >&5
3329 if eval "test \"`echo '$''{'am_cv_proto_iconv'+set}'`\" = set"; then
3330 echo $ac_n "(cached) $ac_c" 1>&6
3333 cat > conftest.
$ac_ext <<EOF
3334 #line 3335 "configure"
3335 #include "confdefs.h"
3343 #if defined(__STDC__) || defined(__cplusplus)
3344 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
3353 if { (eval echo configure
:3354: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
3355 am_cv_proto_iconv_arg1
=""
3357 echo "configure: failed program was:" >&5
3358 cat conftest.
$ac_ext >&5
3360 am_cv_proto_iconv_arg1
="const"
3363 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);"
3366 am_cv_proto_iconv
=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
3367 echo "$ac_t""${ac_t:-
3368 }$am_cv_proto_iconv" 1>&6
3369 cat >> confdefs.h
<<EOF
3370 #define ICONV_CONST $am_cv_proto_iconv_arg1
3375 if test "$am_cv_lib_iconv" = yes; then
3381 echo $ac_n "checking for nl_langinfo and CODESET""... $ac_c" 1>&6
3382 echo "configure:3383: checking for nl_langinfo and CODESET" >&5
3383 if eval "test \"`echo '$''{'am_cv_langinfo_codeset'+set}'`\" = set"; then
3384 echo $ac_n "(cached) $ac_c" 1>&6
3386 cat > conftest.
$ac_ext <<EOF
3387 #line 3388 "configure"
3388 #include "confdefs.h"
3389 #include <langinfo.h>
3391 char* cs = nl_langinfo(CODESET);
3394 if { (eval echo configure
:3395: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3396 am_cv_langinfo_codeset
=yes
3398 echo "configure: failed program was:" >&5
3399 cat conftest.
$ac_ext >&5
3401 am_cv_langinfo_codeset
=no
3407 echo "$ac_t""$am_cv_langinfo_codeset" 1>&6
3408 if test $am_cv_langinfo_codeset = yes; then
3409 cat >> confdefs.h
<<\EOF
3410 #define HAVE_LANGINFO_CODESET 1
3415 if test $ac_cv_header_locale_h = yes; then
3416 echo $ac_n "checking for LC_MESSAGES""... $ac_c" 1>&6
3417 echo "configure:3418: checking for LC_MESSAGES" >&5
3418 if eval "test \"`echo '$''{'am_cv_val_LC_MESSAGES'+set}'`\" = set"; then
3419 echo $ac_n "(cached) $ac_c" 1>&6
3421 cat > conftest.
$ac_ext <<EOF
3422 #line 3423 "configure"
3423 #include "confdefs.h"
3429 if { (eval echo configure
:3430: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3431 am_cv_val_LC_MESSAGES
=yes
3433 echo "configure: failed program was:" >&5
3434 cat conftest.
$ac_ext >&5
3436 am_cv_val_LC_MESSAGES
=no
3441 echo "$ac_t""$am_cv_val_LC_MESSAGES" 1>&6
3442 if test $am_cv_val_LC_MESSAGES = yes; then
3443 cat >> confdefs.h
<<\EOF
3444 #define HAVE_LC_MESSAGES 1
3449 echo $ac_n "checking whether NLS is requested""... $ac_c" 1>&6
3450 echo "configure:3451: checking whether NLS is requested" >&5
3451 # Check whether --enable-nls or --disable-nls was given.
3452 if test "${enable_nls+set}" = set; then
3453 enableval
="$enable_nls"
3459 echo "$ac_t""$USE_NLS" 1>&6
3462 BUILD_INCLUDED_LIBINTL
=no
3463 USE_INCLUDED_LIBINTL
=no
3466 if test "$USE_NLS" = "yes"; then
3467 cat >> confdefs.h
<<\EOF
3468 #define ENABLE_NLS 1
3471 echo $ac_n "checking whether included gettext is requested""... $ac_c" 1>&6
3472 echo "configure:3473: checking whether included gettext is requested" >&5
3473 # Check whether --with-included-gettext or --without-included-gettext was given.
3474 if test "${with_included_gettext+set}" = set; then
3475 withval
="$with_included_gettext"
3476 nls_cv_force_use_gnu_gettext
=$withval
3478 nls_cv_force_use_gnu_gettext
=no
3481 echo "$ac_t""$nls_cv_force_use_gnu_gettext" 1>&6
3483 nls_cv_use_gnu_gettext
="$nls_cv_force_use_gnu_gettext"
3484 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then
3490 ac_safe
=`echo "libintl.h" | sed 'y%./+-%__p_%'`
3491 echo $ac_n "checking for libintl.h""... $ac_c" 1>&6
3492 echo "configure:3493: checking for libintl.h" >&5
3493 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
3494 echo $ac_n "(cached) $ac_c" 1>&6
3496 cat > conftest.
$ac_ext <<EOF
3497 #line 3498 "configure"
3498 #include "confdefs.h"
3499 #include <libintl.h>
3501 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
3502 { (eval echo configure
:3503: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
3503 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
3504 if test -z "$ac_err"; then
3506 eval "ac_cv_header_$ac_safe=yes"
3509 echo "configure: failed program was:" >&5
3510 cat conftest.
$ac_ext >&5
3512 eval "ac_cv_header_$ac_safe=no"
3516 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
3517 echo "$ac_t""yes" 1>&6
3518 echo $ac_n "checking for GNU gettext in libc""... $ac_c" 1>&6
3519 echo "configure:3520: checking for GNU gettext in libc" >&5
3520 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libc'+set}'`\" = set"; then
3521 echo $ac_n "(cached) $ac_c" 1>&6
3523 cat > conftest.
$ac_ext <<EOF
3524 #line 3525 "configure"
3525 #include "confdefs.h"
3526 #include <libintl.h>
3527 extern int _nl_msg_cat_cntr;
3529 bindtextdomain ("", "");
3530 return (int) gettext ("") + _nl_msg_cat_cntr
3533 if { (eval echo configure
:3534: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3535 gt_cv_func_gnugettext1_libc
=yes
3537 echo "configure: failed program was:" >&5
3538 cat conftest.
$ac_ext >&5
3540 gt_cv_func_gnugettext1_libc
=no
3545 echo "$ac_t""$gt_cv_func_gnugettext1_libc" 1>&6
3547 if test "$gt_cv_func_gnugettext1_libc" != "yes"; then
3548 echo $ac_n "checking for GNU gettext in libintl""... $ac_c" 1>&6
3549 echo "configure:3550: checking for GNU gettext in libintl" >&5
3550 if eval "test \"`echo '$''{'gt_cv_func_gnugettext1_libintl'+set}'`\" = set"; then
3551 echo $ac_n "(cached) $ac_c" 1>&6
3553 gt_save_LIBS
="$LIBS"
3554 LIBS
="$LIBS -lintl $LIBICONV"
3555 cat > conftest.
$ac_ext <<EOF
3556 #line 3557 "configure"
3557 #include "confdefs.h"
3558 #include <libintl.h>
3559 extern int _nl_msg_cat_cntr;
3561 bindtextdomain ("", "");
3562 return (int) gettext ("") + _nl_msg_cat_cntr
3565 if { (eval echo configure
:3566: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3567 gt_cv_func_gnugettext1_libintl
=yes
3569 echo "configure: failed program was:" >&5
3570 cat conftest.
$ac_ext >&5
3572 gt_cv_func_gnugettext1_libintl
=no
3575 LIBS
="$gt_save_LIBS"
3578 echo "$ac_t""$gt_cv_func_gnugettext1_libintl" 1>&6
3581 if test "$gt_cv_func_gnugettext1_libc" = "yes" \
3582 ||
{ test "$gt_cv_func_gnugettext1_libintl" = "yes" \
3583 && test "$PACKAGE" != gettext; }; then
3584 cat >> confdefs.h
<<\EOF
3585 #define HAVE_GETTEXT 1
3589 if test "$gt_cv_func_gnugettext1_libintl" = "yes"; then
3590 INTLLIBS
="-lintl $LIBICONV"
3593 gt_save_LIBS
="$LIBS"
3594 LIBS
="$LIBS $INTLLIBS"
3595 for ac_func
in dcgettext
3597 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
3598 echo "configure:3599: checking for $ac_func" >&5
3599 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
3600 echo $ac_n "(cached) $ac_c" 1>&6
3602 cat > conftest.
$ac_ext <<EOF
3603 #line 3604 "configure"
3604 #include "confdefs.h"
3605 /* System header to define __stub macros and hopefully few prototypes,
3606 which can conflict with char $ac_func(); below. */
3608 /* Override any gcc2 internal prototype to avoid an error. */
3609 /* We use char because int might match the return type of a gcc2
3610 builtin and then its argument prototype would still apply. */
3615 /* The GNU C library defines this for functions which it implements
3616 to always fail with ENOSYS. Some functions are actually named
3617 something starting with __ and the normal name is an alias. */
3618 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
3626 if { (eval echo configure
:3627: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
3628 eval "ac_cv_func_$ac_func=yes"
3630 echo "configure: failed program was:" >&5
3631 cat conftest.
$ac_ext >&5
3633 eval "ac_cv_func_$ac_func=no"
3638 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
3639 echo "$ac_t""yes" 1>&6
3640 ac_tr_func
=HAVE_
`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
3641 cat >> confdefs.h
<<EOF
3642 #define $ac_tr_func 1
3646 echo "$ac_t""no" 1>&6
3650 LIBS
="$gt_save_LIBS"
3652 # Extract the first word of "msgfmt", so it can be a program name with args.
3653 set dummy msgfmt
; 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_MSGFMT'+set}'`\" = set"; then
3657 echo $ac_n "(cached) $ac_c" 1>&6
3661 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3664 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3665 for ac_dir
in $PATH; do
3666 test -z "$ac_dir" && ac_dir
=.
3667 if test -f $ac_dir/$ac_word; then
3668 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
3669 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3675 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
3679 MSGFMT
="$ac_cv_path_MSGFMT"
3680 if test "$MSGFMT" != ":"; then
3681 echo "$ac_t""$MSGFMT" 1>&6
3683 echo "$ac_t""no" 1>&6
3686 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3687 set dummy gmsgfmt
; ac_word
=$2
3688 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3689 echo "configure:3690: checking for $ac_word" >&5
3690 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3691 echo $ac_n "(cached) $ac_c" 1>&6
3695 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3698 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3701 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3703 for ac_dir
in $ac_dummy; do
3704 test -z "$ac_dir" && ac_dir
=.
3705 if test -f $ac_dir/$ac_word; then
3706 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3711 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3715 GMSGFMT
="$ac_cv_path_GMSGFMT"
3716 if test -n "$GMSGFMT"; then
3717 echo "$ac_t""$GMSGFMT" 1>&6
3719 echo "$ac_t""no" 1>&6
3723 # Extract the first word of "xgettext", so it can be a program name with args.
3724 set dummy xgettext
; ac_word
=$2
3725 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3726 echo "configure:3727: checking for $ac_word" >&5
3727 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3728 echo $ac_n "(cached) $ac_c" 1>&6
3732 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3735 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3736 for ac_dir
in $PATH; do
3737 test -z "$ac_dir" && ac_dir
=.
3738 if test -f $ac_dir/$ac_word; then
3739 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
3740 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3746 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3750 XGETTEXT
="$ac_cv_path_XGETTEXT"
3751 if test "$XGETTEXT" != ":"; then
3752 echo "$ac_t""$XGETTEXT" 1>&6
3754 echo "$ac_t""no" 1>&6
3762 echo "$ac_t""no" 1>&6
3766 if test "$CATOBJEXT" = "NONE"; then
3767 nls_cv_use_gnu_gettext
=yes
3771 if test "$nls_cv_use_gnu_gettext" = "yes"; then
3772 INTLOBJS
="\$(GETTOBJS)"
3773 # Extract the first word of "msgfmt", so it can be a program name with args.
3774 set dummy msgfmt
; 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_MSGFMT'+set}'`\" = set"; then
3778 echo $ac_n "(cached) $ac_c" 1>&6
3782 ac_cv_path_MSGFMT
="$MSGFMT" # Let the user override the test with a path.
3785 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3786 for ac_dir
in $PATH; do
3787 test -z "$ac_dir" && ac_dir
=.
3788 if test -f $ac_dir/$ac_word; then
3789 if $ac_dir/$ac_word --statistics /dev
/null
>/dev
/null
2>&1; then
3790 ac_cv_path_MSGFMT
="$ac_dir/$ac_word"
3796 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT
=":"
3800 MSGFMT
="$ac_cv_path_MSGFMT"
3801 if test "$MSGFMT" != ":"; then
3802 echo "$ac_t""$MSGFMT" 1>&6
3804 echo "$ac_t""no" 1>&6
3807 # Extract the first word of "gmsgfmt", so it can be a program name with args.
3808 set dummy gmsgfmt
; ac_word
=$2
3809 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3810 echo "configure:3811: checking for $ac_word" >&5
3811 if eval "test \"`echo '$''{'ac_cv_path_GMSGFMT'+set}'`\" = set"; then
3812 echo $ac_n "(cached) $ac_c" 1>&6
3816 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a path.
3819 ac_cv_path_GMSGFMT
="$GMSGFMT" # Let the user override the test with a dos path.
3822 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3824 for ac_dir
in $ac_dummy; do
3825 test -z "$ac_dir" && ac_dir
=.
3826 if test -f $ac_dir/$ac_word; then
3827 ac_cv_path_GMSGFMT
="$ac_dir/$ac_word"
3832 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT
="$MSGFMT"
3836 GMSGFMT
="$ac_cv_path_GMSGFMT"
3837 if test -n "$GMSGFMT"; then
3838 echo "$ac_t""$GMSGFMT" 1>&6
3840 echo "$ac_t""no" 1>&6
3843 # Extract the first word of "xgettext", so it can be a program name with args.
3844 set dummy xgettext
; ac_word
=$2
3845 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3846 echo "configure:3847: checking for $ac_word" >&5
3847 if eval "test \"`echo '$''{'ac_cv_path_XGETTEXT'+set}'`\" = set"; then
3848 echo $ac_n "(cached) $ac_c" 1>&6
3852 ac_cv_path_XGETTEXT
="$XGETTEXT" # Let the user override the test with a path.
3855 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
="${IFS}:"
3856 for ac_dir
in $PATH; do
3857 test -z "$ac_dir" && ac_dir
=.
3858 if test -f $ac_dir/$ac_word; then
3859 if $ac_dir/$ac_word --omit-header /dev
/null
>/dev
/null
2>&1; then
3860 ac_cv_path_XGETTEXT
="$ac_dir/$ac_word"
3866 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT
=":"
3870 XGETTEXT
="$ac_cv_path_XGETTEXT"
3871 if test "$XGETTEXT" != ":"; then
3872 echo "$ac_t""$XGETTEXT" 1>&6
3874 echo "$ac_t""no" 1>&6
3878 BUILD_INCLUDED_LIBINTL
=yes
3879 USE_INCLUDED_LIBINTL
=yes
3881 INTLLIBS
="\$(top_builddir)/intl/libintl.a $LIBICONV"
3882 LIBS
=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'`
3885 if test "$GMSGFMT" != ":"; then
3886 if $GMSGFMT --statistics /dev
/null
>/dev
/null
2>&1; then
3889 echo "$ac_t""found msgfmt program is not GNU msgfmt; ignore it" 1>&6
3894 if test "$XGETTEXT" != ":"; then
3895 if $XGETTEXT --omit-header /dev
/null
>/dev
/null
2>&1; then
3898 echo "$ac_t""found xgettext program is not GNU xgettext; ignore it" 1>&6
3908 if test "$PACKAGE" = gettext; then
3909 BUILD_INCLUDED_LIBINTL
=yes
3912 for ac_prog
in bison
3914 # Extract the first word of "$ac_prog", so it can be a program name with args.
3915 set dummy
$ac_prog; ac_word
=$2
3916 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
3917 echo "configure:3918: checking for $ac_word" >&5
3918 if eval "test \"`echo '$''{'ac_cv_prog_INTLBISON'+set}'`\" = set"; then
3919 echo $ac_n "(cached) $ac_c" 1>&6
3921 if test -n "$INTLBISON"; then
3922 ac_cv_prog_INTLBISON
="$INTLBISON" # Let the user override the test.
3924 IFS
="${IFS= }"; ac_save_ifs
="$IFS"; IFS
=":"
3926 for ac_dir
in $ac_dummy; do
3927 test -z "$ac_dir" && ac_dir
=.
3928 if test -f $ac_dir/$ac_word; then
3929 ac_cv_prog_INTLBISON
="$ac_prog"
3936 INTLBISON
="$ac_cv_prog_INTLBISON"
3937 if test -n "$INTLBISON"; then
3938 echo "$ac_t""$INTLBISON" 1>&6
3940 echo "$ac_t""no" 1>&6
3943 test -n "$INTLBISON" && break
3946 if test -z "$INTLBISON"; then
3949 echo $ac_n "checking version of bison""... $ac_c" 1>&6
3950 echo "configure:3951: checking version of bison" >&5
3951 ac_prog_version
=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'`
3952 case $ac_prog_version in
3953 '') ac_prog_version
="v. ?.??, bad"; ac_verc_fail
=yes;;
3954 1.2[6-9]* |
1.
[3-9][0-9]* |
[2-9].
*)
3955 ac_prog_version
="$ac_prog_version, ok"; ac_verc_fail
=no
;;
3956 *) ac_prog_version
="$ac_prog_version, bad"; ac_verc_fail
=yes;;
3958 echo "$ac_t""$ac_prog_version" 1>&6
3960 if test $ac_verc_fail = yes; then
3964 for lang
in $ALL_LINGUAS; do
3965 GMOFILES
="$GMOFILES $lang.gmo"
3966 POFILES
="$POFILES $lang.po"
3980 nls_cv_header_libgt
=
3992 if test "x$CATOBJEXT" != "x"; then
3993 if test "x$ALL_LINGUAS" = "x"; then
3996 echo $ac_n "checking for catalogs to be installed""... $ac_c" 1>&6
3997 echo "configure:3998: checking for catalogs to be installed" >&5
3999 for presentlang
in $ALL_LINGUAS; do
4001 for desiredlang
in ${LINGUAS-$ALL_LINGUAS}; do
4002 # Use the presentlang catalog if desiredlang is
4003 # a. equal to presentlang, or
4004 # b. a variant of presentlang (because in this case,
4005 # presentlang can be used as a fallback for messages
4006 # which are not translated in the desiredlang catalog).
4007 case "$desiredlang" in
4008 "$presentlang"*) useit
=yes;;
4011 if test $useit = yes; then
4012 NEW_LINGUAS
="$NEW_LINGUAS $presentlang"
4015 LINGUAS
=$NEW_LINGUAS
4016 echo "$ac_t""$LINGUAS" 1>&6
4019 if test -n "$LINGUAS"; then
4020 for lang
in $LINGUAS; do CATALOGS
="$CATALOGS $lang$CATOBJEXT"; done
4025 if test -n "$ac_aux_dir"; then
4026 MKINSTALLDIRS
="$ac_aux_dir/mkinstalldirs"
4028 if test -z "$MKINSTALLDIRS"; then
4029 MKINSTALLDIRS
="\$(top_srcdir)/mkinstalldirs"
4033 INTL_LIBTOOL_SUFFIX_PREFIX
=
4037 if test "x${prefix}" = "xNONE"; then
4038 cat >> confdefs.h
<<EOF
4039 #define PACKAGE_LOCALE_DIR "${ac_default_prefix}/${DATADIRNAME}/locale"
4043 cat >> confdefs.h
<<EOF
4044 #define PACKAGE_LOCALE_DIR "${prefix}/${DATADIRNAME}/locale"
4049 PACKAGE_PIXMAPS_DIR
="`gnome-config --datadir`/pixmaps/${PACKAGE}"
4057 GNOME_CANVASPIX
="-lgnomecanvaspixbuf"
4060 echo $ac_n "checking for gdk_pixbuf_new_from_data in -lgdk_pixbuf""... $ac_c" 1>&6
4061 echo "configure:4062: checking for gdk_pixbuf_new_from_data in -lgdk_pixbuf" >&5
4062 ac_lib_var
=`echo gdk_pixbuf'_'gdk_pixbuf_new_from_data | sed 'y%./+-%__p_%'`
4063 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4064 echo $ac_n "(cached) $ac_c" 1>&6
4066 ac_save_LIBS
="$LIBS"
4067 LIBS
="-lgdk_pixbuf $LIBS"
4068 cat > conftest.
$ac_ext <<EOF
4069 #line 4070 "configure"
4070 #include "confdefs.h"
4071 /* Override any gcc2 internal prototype to avoid an error. */
4072 /* We use char because int might match the return type of a gcc2
4073 builtin and then its argument prototype would still apply. */
4074 char gdk_pixbuf_new_from_data();
4077 gdk_pixbuf_new_from_data()
4080 if { (eval echo configure
:4081: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4082 eval "ac_cv_lib_$ac_lib_var=yes"
4084 echo "configure: failed program was:" >&5
4085 cat conftest.
$ac_ext >&5
4087 eval "ac_cv_lib_$ac_lib_var=no"
4090 LIBS
="$ac_save_LIBS"
4093 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4094 echo "$ac_t""yes" 1>&6
4095 ac_tr_lib
=HAVE_LIB
`echo gdk_pixbuf | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4096 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4097 cat >> confdefs.h
<<EOF
4098 #define $ac_tr_lib 1
4101 LIBS
="-lgdk_pixbuf $LIBS"
4104 echo "$ac_t""no" 1>&6
4105 { echo "configure: error: "libgdk_pixbuf not installed
"" 1>&2; exit 1; }
4109 echo $ac_n "checking for H5Fcreate in -lhdf5""... $ac_c" 1>&6
4110 echo "configure:4111: checking for H5Fcreate in -lhdf5" >&5
4111 ac_lib_var
=`echo hdf5'_'H5Fcreate | sed 'y%./+-%__p_%'`
4112 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4113 echo $ac_n "(cached) $ac_c" 1>&6
4115 ac_save_LIBS
="$LIBS"
4117 cat > conftest.
$ac_ext <<EOF
4118 #line 4119 "configure"
4119 #include "confdefs.h"
4120 /* Override any gcc2 internal prototype to avoid an error. */
4121 /* We use char because int might match the return type of a gcc2
4122 builtin and then its argument prototype would still apply. */
4129 if { (eval echo configure
:4130: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4131 eval "ac_cv_lib_$ac_lib_var=yes"
4133 echo "configure: failed program was:" >&5
4134 cat conftest.
$ac_ext >&5
4136 eval "ac_cv_lib_$ac_lib_var=no"
4139 LIBS
="$ac_save_LIBS"
4142 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4143 echo "$ac_t""yes" 1>&6
4144 ac_tr_lib
=HAVE_LIB
`echo hdf5 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4145 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4146 cat >> confdefs.h
<<EOF
4147 #define $ac_tr_lib 1
4153 echo "$ac_t""no" 1>&6
4154 { echo "configure: error: "libhdf5 not installed
"" 1>&2; exit 1; }
4159 echo $ac_n "checking for gpiv_scan_resourcefiles in -lgpiv""... $ac_c" 1>&6
4160 echo "configure:4161: checking for gpiv_scan_resourcefiles in -lgpiv" >&5
4161 ac_lib_var
=`echo gpiv'_'gpiv_scan_resourcefiles | sed 'y%./+-%__p_%'`
4162 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4163 echo $ac_n "(cached) $ac_c" 1>&6
4165 ac_save_LIBS
="$LIBS"
4167 cat > conftest.
$ac_ext <<EOF
4168 #line 4169 "configure"
4169 #include "confdefs.h"
4170 /* Override any gcc2 internal prototype to avoid an error. */
4171 /* We use char because int might match the return type of a gcc2
4172 builtin and then its argument prototype would still apply. */
4173 char gpiv_scan_resourcefiles();
4176 gpiv_scan_resourcefiles()
4179 if { (eval echo configure
:4180: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4181 eval "ac_cv_lib_$ac_lib_var=yes"
4183 echo "configure: failed program was:" >&5
4184 cat conftest.
$ac_ext >&5
4186 eval "ac_cv_lib_$ac_lib_var=no"
4189 LIBS
="$ac_save_LIBS"
4192 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4193 echo "$ac_t""yes" 1>&6
4194 ac_tr_lib
=HAVE_LIB
`echo gpiv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4195 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4196 cat >> confdefs.h
<<EOF
4197 #define $ac_tr_lib 1
4203 echo "$ac_t""no" 1>&6
4204 { echo "configure: error: "libgpiv has not been installed
"" 1>&2; exit 1; }
4208 echo $ac_n "checking for rfftw2d_create_plan in -lrfftw""... $ac_c" 1>&6
4209 echo "configure:4210: checking for rfftw2d_create_plan in -lrfftw" >&5
4210 ac_lib_var
=`echo rfftw'_'rfftw2d_create_plan | sed 'y%./+-%__p_%'`
4211 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4212 echo $ac_n "(cached) $ac_c" 1>&6
4214 ac_save_LIBS
="$LIBS"
4215 LIBS
="-lrfftw $LIBS"
4216 cat > conftest.
$ac_ext <<EOF
4217 #line 4218 "configure"
4218 #include "confdefs.h"
4219 /* Override any gcc2 internal prototype to avoid an error. */
4220 /* We use char because int might match the return type of a gcc2
4221 builtin and then its argument prototype would still apply. */
4222 char rfftw2d_create_plan();
4225 rfftw2d_create_plan()
4228 if { (eval echo configure
:4229: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4230 eval "ac_cv_lib_$ac_lib_var=yes"
4232 echo "configure: failed program was:" >&5
4233 cat conftest.
$ac_ext >&5
4235 eval "ac_cv_lib_$ac_lib_var=no"
4238 LIBS
="$ac_save_LIBS"
4241 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4242 echo "$ac_t""yes" 1>&6
4243 ac_tr_lib
=HAVE_LIB
`echo rfftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4244 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4245 cat >> confdefs.h
<<EOF
4246 #define $ac_tr_lib 1
4249 LIBS
="-lrfftw $LIBS"
4252 echo "$ac_t""no" 1>&6
4253 { echo "configure: error: "librfftw not installed
"" 1>&2; exit 1; }
4257 echo $ac_n "checking for fftw_import_wisdom_from_string in -lfftw""... $ac_c" 1>&6
4258 echo "configure:4259: checking for fftw_import_wisdom_from_string in -lfftw" >&5
4259 ac_lib_var
=`echo fftw'_'fftw_import_wisdom_from_string | sed 'y%./+-%__p_%'`
4260 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4261 echo $ac_n "(cached) $ac_c" 1>&6
4263 ac_save_LIBS
="$LIBS"
4265 cat > conftest.
$ac_ext <<EOF
4266 #line 4267 "configure"
4267 #include "confdefs.h"
4268 /* Override any gcc2 internal prototype to avoid an error. */
4269 /* We use char because int might match the return type of a gcc2
4270 builtin and then its argument prototype would still apply. */
4271 char fftw_import_wisdom_from_string();
4274 fftw_import_wisdom_from_string()
4277 if { (eval echo configure
:4278: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4279 eval "ac_cv_lib_$ac_lib_var=yes"
4281 echo "configure: failed program was:" >&5
4282 cat conftest.
$ac_ext >&5
4284 eval "ac_cv_lib_$ac_lib_var=no"
4287 LIBS
="$ac_save_LIBS"
4290 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4291 echo "$ac_t""yes" 1>&6
4292 ac_tr_lib
=HAVE_LIB
`echo fftw | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4293 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4294 cat >> confdefs.h
<<EOF
4295 #define $ac_tr_lib 1
4301 echo "$ac_t""no" 1>&6
4302 { echo "configure: error: "libfftw not installed
"" 1>&2; exit 1; }
4309 ac_safe
=`echo "gpiv.h" | sed 'y%./+-%__p_%'`
4310 echo $ac_n "checking for gpiv.h""... $ac_c" 1>&6
4311 echo "configure:4312: checking for gpiv.h" >&5
4312 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4313 echo $ac_n "(cached) $ac_c" 1>&6
4315 cat > conftest.
$ac_ext <<EOF
4316 #line 4317 "configure"
4317 #include "confdefs.h"
4320 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4321 { (eval echo configure
:4322: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4322 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4323 if test -z "$ac_err"; then
4325 eval "ac_cv_header_$ac_safe=yes"
4328 echo "configure: failed program was:" >&5
4329 cat conftest.
$ac_ext >&5
4331 eval "ac_cv_header_$ac_safe=no"
4335 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4336 echo "$ac_t""yes" 1>&6
4339 echo "$ac_t""no" 1>&6
4340 { echo "configure: error: "giv.h is not installed
"" 1>&2; exit 1; }
4343 for ac_hdr
in stdlib.h string.h unistd.h hdf5.h gpiv.h
4345 ac_safe
=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
4346 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
4347 echo "configure:4348: checking for $ac_hdr" >&5
4348 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4349 echo $ac_n "(cached) $ac_c" 1>&6
4351 cat > conftest.
$ac_ext <<EOF
4352 #line 4353 "configure"
4353 #include "confdefs.h"
4356 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4357 { (eval echo configure
:4358: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4358 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4359 if test -z "$ac_err"; then
4361 eval "ac_cv_header_$ac_safe=yes"
4364 echo "configure: failed program was:" >&5
4365 cat conftest.
$ac_ext >&5
4367 eval "ac_cv_header_$ac_safe=no"
4371 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4372 echo "$ac_t""yes" 1>&6
4373 ac_tr_hdr
=HAVE_
`echo $ac_hdr | sed 'y%abcdefghijklmnopqrstuvwxyz./-%ABCDEFGHIJKLMNOPQRSTUVWXYZ___%'`
4374 cat >> confdefs.h
<<EOF
4375 #define $ac_tr_hdr 1
4379 echo "$ac_t""no" 1>&6
4385 # Check whether --enable-dac or --disable-dac was given.
4386 if test "${enable_dac+set}" = set; then
4387 enableval
="$enable_dac"
4388 DISABLE_DAC
="-DDISABLE_DAC"
4396 if test "${DISABLE_DAC}" != '-DDISABLE_DAC'; then
4397 echo $ac_n "checking for gpiv_dac_get_camvar in -lgpiv""... $ac_c" 1>&6
4398 echo "configure:4399: checking for gpiv_dac_get_camvar in -lgpiv" >&5
4399 ac_lib_var
=`echo gpiv'_'gpiv_dac_get_camvar | sed 'y%./+-%__p_%'`
4400 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4401 echo $ac_n "(cached) $ac_c" 1>&6
4403 ac_save_LIBS
="$LIBS"
4405 cat > conftest.
$ac_ext <<EOF
4406 #line 4407 "configure"
4407 #include "confdefs.h"
4408 /* Override any gcc2 internal prototype to avoid an error. */
4409 /* We use char because int might match the return type of a gcc2
4410 builtin and then its argument prototype would still apply. */
4411 char gpiv_dac_get_camvar();
4414 gpiv_dac_get_camvar()
4417 if { (eval echo configure
:4418: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4419 eval "ac_cv_lib_$ac_lib_var=yes"
4421 echo "configure: failed program was:" >&5
4422 cat conftest.
$ac_ext >&5
4424 eval "ac_cv_lib_$ac_lib_var=no"
4427 LIBS
="$ac_save_LIBS"
4430 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4431 echo "$ac_t""yes" 1>&6
4432 ac_tr_lib
=HAVE_LIB
`echo gpiv | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4433 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4434 cat >> confdefs.h
<<EOF
4435 #define $ac_tr_lib 1
4441 echo "$ac_t""no" 1>&6
4442 { echo "configure: error: "DAC is not working
in libgpiv. \
4443 Enable DAC
in libgpiv or disable it here with .
/configure
--disable-dac"" 1>&2; exit 1; }
4447 echo $ac_n "checking for raw1394_destroy_handle in -lraw1394""... $ac_c" 1>&6
4448 echo "configure:4449: checking for raw1394_destroy_handle in -lraw1394" >&5
4449 ac_lib_var
=`echo raw1394'_'raw1394_destroy_handle | sed 'y%./+-%__p_%'`
4450 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4451 echo $ac_n "(cached) $ac_c" 1>&6
4453 ac_save_LIBS
="$LIBS"
4454 LIBS
="-lraw1394 $LIBS"
4455 cat > conftest.
$ac_ext <<EOF
4456 #line 4457 "configure"
4457 #include "confdefs.h"
4458 /* Override any gcc2 internal prototype to avoid an error. */
4459 /* We use char because int might match the return type of a gcc2
4460 builtin and then its argument prototype would still apply. */
4461 char raw1394_destroy_handle();
4464 raw1394_destroy_handle()
4467 if { (eval echo configure
:4468: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4469 eval "ac_cv_lib_$ac_lib_var=yes"
4471 echo "configure: failed program was:" >&5
4472 cat conftest.
$ac_ext >&5
4474 eval "ac_cv_lib_$ac_lib_var=no"
4477 LIBS
="$ac_save_LIBS"
4480 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4481 echo "$ac_t""yes" 1>&6
4482 ac_tr_lib
=HAVE_LIB
`echo raw1394 | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4483 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4484 cat >> confdefs.h
<<EOF
4485 #define $ac_tr_lib 1
4488 LIBS
="-lraw1394 $LIBS"
4491 echo "$ac_t""no" 1>&6
4492 { echo "configure: error: "libraw1394 not installed
"" 1>&2; exit 1; }
4496 echo $ac_n "checking for dc1394_create_handle in -ldc1394_control""... $ac_c" 1>&6
4497 echo "configure:4498: checking for dc1394_create_handle in -ldc1394_control" >&5
4498 ac_lib_var
=`echo dc1394_control'_'dc1394_create_handle | sed 'y%./+-%__p_%'`
4499 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4500 echo $ac_n "(cached) $ac_c" 1>&6
4502 ac_save_LIBS
="$LIBS"
4503 LIBS
="-ldc1394_control $LIBS"
4504 cat > conftest.
$ac_ext <<EOF
4505 #line 4506 "configure"
4506 #include "confdefs.h"
4507 /* Override any gcc2 internal prototype to avoid an error. */
4508 /* We use char because int might match the return type of a gcc2
4509 builtin and then its argument prototype would still apply. */
4510 char dc1394_create_handle();
4513 dc1394_create_handle()
4516 if { (eval echo configure
:4517: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4518 eval "ac_cv_lib_$ac_lib_var=yes"
4520 echo "configure: failed program was:" >&5
4521 cat conftest.
$ac_ext >&5
4523 eval "ac_cv_lib_$ac_lib_var=no"
4526 LIBS
="$ac_save_LIBS"
4529 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4530 echo "$ac_t""yes" 1>&6
4531 ac_tr_lib
=HAVE_LIB
`echo dc1394_control | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4532 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4533 cat >> confdefs.h
<<EOF
4534 #define $ac_tr_lib 1
4537 LIBS
="-ldc1394_control $LIBS"
4540 echo "$ac_t""no" 1>&6
4541 { echo "configure: error: "libdc1394_control not installed
"" 1>&2; exit 1; }
4545 ac_safe
=`echo "pthread.h" | sed 'y%./+-%__p_%'`
4546 echo $ac_n "checking for pthread.h""... $ac_c" 1>&6
4547 echo "configure:4548: checking for pthread.h" >&5
4548 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
4549 echo $ac_n "(cached) $ac_c" 1>&6
4551 cat > conftest.
$ac_ext <<EOF
4552 #line 4553 "configure"
4553 #include "confdefs.h"
4554 #include <pthread.h>
4556 ac_try
="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
4557 { (eval echo configure
:4558: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
4558 ac_err
=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
4559 if test -z "$ac_err"; then
4561 eval "ac_cv_header_$ac_safe=yes"
4564 echo "configure: failed program was:" >&5
4565 cat conftest.
$ac_ext >&5
4567 eval "ac_cv_header_$ac_safe=no"
4571 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
4572 echo "$ac_t""yes" 1>&6
4575 echo "$ac_t""no" 1>&6
4576 { echo "configure: error: "pthread.h is not installed
"" 1>&2; exit 1; }
4579 echo $ac_n "checking for pthread_create in -lpthread""... $ac_c" 1>&6
4580 echo "configure:4581: checking for pthread_create in -lpthread" >&5
4581 ac_lib_var
=`echo pthread'_'pthread_create | sed 'y%./+-%__p_%'`
4582 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
4583 echo $ac_n "(cached) $ac_c" 1>&6
4585 ac_save_LIBS
="$LIBS"
4586 LIBS
="-lpthread $LIBS"
4587 cat > conftest.
$ac_ext <<EOF
4588 #line 4589 "configure"
4589 #include "confdefs.h"
4590 /* Override any gcc2 internal prototype to avoid an error. */
4591 /* We use char because int might match the return type of a gcc2
4592 builtin and then its argument prototype would still apply. */
4593 char pthread_create();
4599 if { (eval echo configure
:4600: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest
${ac_exeext}; then
4601 eval "ac_cv_lib_$ac_lib_var=yes"
4603 echo "configure: failed program was:" >&5
4604 cat conftest.
$ac_ext >&5
4606 eval "ac_cv_lib_$ac_lib_var=no"
4609 LIBS
="$ac_save_LIBS"
4612 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
4613 echo "$ac_t""yes" 1>&6
4614 ac_tr_lib
=HAVE_LIB
`echo pthread | sed -e 's/[^a-zA-Z0-9_]/_/g' \
4615 -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
4616 cat >> confdefs.h
<<EOF
4617 #define $ac_tr_lib 1
4620 LIBS
="-lpthread $LIBS"
4623 echo "$ac_t""no" 1>&6
4624 { echo "configure: error: "libpthread has not been installed
"" 1>&2; exit 1; }
4631 # Check whether --enable-rta or --disable-rta was given.
4632 if test "${enable_rta+set}" = set; then
4633 enableval
="$enable_rta"
4634 RTA_TOPDIR
="$enableval"
4636 RTA_TOPDIR
="/usr/realtime"
4644 # Check whether --enable-k or --disable-k was given.
4645 if test "${enable_k+set}" = set; then
4646 enableval
="$enable_k"
4647 K_TOPDIR
="$enableval"
4649 K_TOPDIR
="/usr/src/kernel-headers-2.4.27-adeos"
4657 # Check whether --enable-img-width or --disable-img-width was given.
4658 if test "${enable_img_width+set}" = set; then
4659 enableval
="$enable_img_width"
4660 OVERRIDE_IMAGE_WIDTH_MAX
="-DIMAGE_WIDTH_MAX=$enableval"
4668 # Check whether --enable-img-height or --disable-img-height was given.
4669 if test "${enable_img_height+set}" = set; then
4670 enableval
="$enable_img_height"
4671 OVERRIDE_IMAGE_HEIGHT_MAX
="-DIMAGE_HEIGHT_MAX=$enableval"
4678 # Check whether --enable-debug or --disable-debug was given.
4679 if test "${enable_debug+set}" = set; then
4680 enableval
="$enable_debug"
4690 cat > confcache
<<\EOF
4691 # This file is a shell script that caches the results of configure
4692 # tests run on this system so they can be shared between configure
4693 # scripts and configure runs. It is not useful on other systems.
4694 # If it contains results you don't want to keep, you may remove or edit it.
4696 # By default, configure uses ./config.cache as the cache file,
4697 # creating it if it does not exist already. You can give configure
4698 # the --cache-file=FILE option to use a different cache file; that is
4699 # what configure does when it calls configure scripts in
4700 # subdirectories, so they share the cache.
4701 # Giving --cache-file=/dev/null disables caching, for debugging configure.
4702 # config.status only pays attention to the cache file if you give it the
4703 # --recheck option to rerun configure.
4706 # The following way of writing the cache mishandles newlines in values,
4707 # but we know of no workaround that is simple, portable, and efficient.
4708 # So, don't put newlines in cache variables' values.
4709 # Ultrix sh set writes to stderr and can't be redirected directly,
4710 # and sets the high bit in the cache file unless we assign to the vars.
4712 case `(ac_space=' '; set | grep ac_space) 2>&1` in
4714 # `set' does not quote correctly, so add quotes (double-quote substitution
4715 # turns \\\\ into \\, and sed turns \\ into \).
4717 -e "s/'/'\\\\''/g" \
4718 -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
4721 # `set' quotes correctly as required by POSIX, so do not add quotes.
4722 sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
4725 if cmp -s $cache_file confcache
; then
4728 if test -w $cache_file; then
4729 echo "updating cache $cache_file"
4730 cat confcache
> $cache_file
4732 echo "not updating unwritable cache $cache_file"
4737 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
4739 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
4740 # Let make expand exec_prefix.
4741 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
4743 # Any assignment to VPATH causes Sun make to only execute
4744 # the first set of double-colon rules, so remove it if not needed.
4745 # If there is a colon in the path, we need to keep it.
4746 if test "x$srcdir" = x.
; then
4747 ac_vpsub
='/^[ ]*VPATH[ ]*=[^:]*$/d'
4750 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
4752 DEFS
=-DHAVE_CONFIG_H
4754 # Without the "./", some shells look in PATH for config.status.
4755 : ${CONFIG_STATUS=./config.status}
4757 echo creating
$CONFIG_STATUS
4758 rm -f $CONFIG_STATUS
4759 cat > $CONFIG_STATUS <<EOF
4761 # Generated automatically by configure.
4762 # Run this file to recreate the current configuration.
4763 # This directory was configured as follows,
4764 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
4766 # $0 $ac_configure_args
4768 # Compiler output produced by configure, useful for debugging
4769 # configure, is in ./config.log if it exists.
4771 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
4774 case "\$ac_option" in
4775 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4776 echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
4777 exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
4778 -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
4779 echo "$CONFIG_STATUS generated by autoconf version 2.13"
4781 -help | --help | --hel | --he | --h)
4782 echo "\$ac_cs_usage"; exit 0 ;;
4783 *) echo "\$ac_cs_usage"; exit 1 ;;
4787 ac_given_srcdir=$srcdir
4788 ac_given_INSTALL="$INSTALL"
4790 trap 'rm -fr `echo "
4795 doc/C/figures/Makefile
4801 config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
4803 cat >> $CONFIG_STATUS <<EOF
4805 # Protect against being on the right side of a sed subst in config.status.
4806 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
4807 s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
4811 s%@CFLAGS@%$CFLAGS%g
4812 s%@CPPFLAGS@%$CPPFLAGS%g
4813 s%@CXXFLAGS@%$CXXFLAGS%g
4814 s%@FFLAGS@%$FFLAGS%g
4816 s%@LDFLAGS@%$LDFLAGS%g
4818 s%@exec_prefix@%$exec_prefix%g
4819 s%@prefix@%$prefix%g
4820 s%@program_transform_name@%$program_transform_name%g
4821 s%@bindir@%$bindir%g
4822 s%@sbindir@%$sbindir%g
4823 s%@libexecdir@%$libexecdir%g
4824 s%@datadir@%$datadir%g
4825 s%@sysconfdir@%$sysconfdir%g
4826 s%@sharedstatedir@%$sharedstatedir%g
4827 s%@localstatedir@%$localstatedir%g
4828 s%@libdir@%$libdir%g
4829 s%@includedir@%$includedir%g
4830 s%@oldincludedir@%$oldincludedir%g
4831 s%@infodir@%$infodir%g
4832 s%@mandir@%$mandir%g
4833 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
4834 s%@INSTALL_SCRIPT@%$INSTALL_SCRIPT%g
4835 s%@INSTALL_DATA@%$INSTALL_DATA%g
4836 s%@PACKAGE@%$PACKAGE%g
4837 s%@VERSION@%$VERSION%g
4838 s%@ACLOCAL@%$ACLOCAL%g
4839 s%@AUTOCONF@%$AUTOCONF%g
4840 s%@AUTOMAKE@%$AUTOMAKE%g
4841 s%@AUTOHEADER@%$AUTOHEADER%g
4842 s%@MAKEINFO@%$MAKEINFO%g
4843 s%@SET_MAKE@%$SET_MAKE%g
4844 s%@INSIDE_GNOME_COMMON_TRUE@%$INSIDE_GNOME_COMMON_TRUE%g
4845 s%@INSIDE_GNOME_COMMON_FALSE@%$INSIDE_GNOME_COMMON_FALSE%g
4846 s%@GNOME_LIBS@%$GNOME_LIBS%g
4847 s%@GNOMEUI_LIBS@%$GNOMEUI_LIBS%g
4848 s%@GNOMEGNORBA_LIBS@%$GNOMEGNORBA_LIBS%g
4849 s%@GTKXMHTML_LIBS@%$GTKXMHTML_LIBS%g
4850 s%@ZVT_LIBS@%$ZVT_LIBS%g
4851 s%@GNOME_LIBDIR@%$GNOME_LIBDIR%g
4852 s%@GNOME_INCLUDEDIR@%$GNOME_INCLUDEDIR%g
4853 s%@GNOME_CONFIG@%$GNOME_CONFIG%g
4854 s%@ORBIT_CONFIG@%$ORBIT_CONFIG%g
4855 s%@ORBIT_IDL@%$ORBIT_IDL%g
4856 s%@HAVE_ORBIT_TRUE@%$HAVE_ORBIT_TRUE%g
4857 s%@HAVE_ORBIT_FALSE@%$HAVE_ORBIT_FALSE%g
4858 s%@ORBIT_CFLAGS@%$ORBIT_CFLAGS%g
4859 s%@ORBIT_LIBS@%$ORBIT_LIBS%g
4860 s%@HAVE_GNORBA_TRUE@%$HAVE_GNORBA_TRUE%g
4861 s%@HAVE_GNORBA_FALSE@%$HAVE_GNORBA_FALSE%g
4862 s%@GNORBA_CFLAGS@%$GNORBA_CFLAGS%g
4863 s%@GNORBA_LIBS@%$GNORBA_LIBS%g
4864 s%@GNOME_APPLETS_LIBS@%$GNOME_APPLETS_LIBS%g
4865 s%@GNOME_DOCKLETS_LIBS@%$GNOME_DOCKLETS_LIBS%g
4866 s%@GNOME_CAPPLET_LIBS@%$GNOME_CAPPLET_LIBS%g
4869 s%@MAINTAINER_MODE_TRUE@%$MAINTAINER_MODE_TRUE%g
4870 s%@MAINTAINER_MODE_FALSE@%$MAINTAINER_MODE_FALSE%g
4872 s%@cflags_set@%$cflags_set%g
4873 s%@GTK_CONFIG@%$GTK_CONFIG%g
4874 s%@GTK_CFLAGS@%$GTK_CFLAGS%g
4875 s%@GTK_LIBS@%$GTK_LIBS%g
4876 s%@XPM_LIBS@%$XPM_LIBS%g
4877 s%@PTHREAD_LIB@%$PTHREAD_LIB%g
4879 s%@host_alias@%$host_alias%g
4880 s%@host_cpu@%$host_cpu%g
4881 s%@host_vendor@%$host_vendor%g
4882 s%@host_os@%$host_os%g
4883 s%@RANLIB@%$RANLIB%g
4884 s%@ALLOCA@%$ALLOCA%g
4885 s%@GLIBC21@%$GLIBC21%g
4886 s%@LIBICONV@%$LIBICONV%g
4887 s%@USE_NLS@%$USE_NLS%g
4888 s%@MSGFMT@%$MSGFMT%g
4889 s%@GMSGFMT@%$GMSGFMT%g
4890 s%@XGETTEXT@%$XGETTEXT%g
4891 s%@INTLBISON@%$INTLBISON%g
4892 s%@BUILD_INCLUDED_LIBINTL@%$BUILD_INCLUDED_LIBINTL%g
4893 s%@USE_INCLUDED_LIBINTL@%$USE_INCLUDED_LIBINTL%g
4894 s%@CATALOGS@%$CATALOGS%g
4895 s%@CATOBJEXT@%$CATOBJEXT%g
4896 s%@GMOFILES@%$GMOFILES%g
4897 s%@INTLLIBS@%$INTLLIBS%g
4898 s%@INTLOBJS@%$INTLOBJS%g
4899 s%@POFILES@%$POFILES%g
4901 s%@DATADIRNAME@%$DATADIRNAME%g
4902 s%@INSTOBJEXT@%$INSTOBJEXT%g
4903 s%@GENCAT@%$GENCAT%g
4904 s%@MKINSTALLDIRS@%$MKINSTALLDIRS%g
4905 s%@INTL_LIBTOOL_SUFFIX_PREFIX@%$INTL_LIBTOOL_SUFFIX_PREFIX%g
4906 s%@PACKAGE_PIXMAPS_DIR@%$PACKAGE_PIXMAPS_DIR%g
4907 s%@GNOME_CANVASPIX@%$GNOME_CANVASPIX%g
4908 s%@DISABLE_DAC@%$DISABLE_DAC%g
4909 s%@RTA_TOPDIR@%$RTA_TOPDIR%g
4910 s%@K_TOPDIR@%$K_TOPDIR%g
4911 s%@OVERRIDE_IMAGE_WIDTH_MAX@%$OVERRIDE_IMAGE_WIDTH_MAX%g
4912 s%@OVERRIDE_IMAGE_HEIGHT_MAX@%$OVERRIDE_IMAGE_HEIGHT_MAX%g
4918 cat >> $CONFIG_STATUS <<\EOF
4920 # Split the substitutions into bite-sized pieces for seds with
4921 # small command number limits, like on Digital OSF/1 and HP-UX.
4922 ac_max_sed_cmds
=90 # Maximum number of lines to put in a sed script.
4923 ac_file
=1 # Number of current file.
4924 ac_beg
=1 # First line for current file.
4925 ac_end
=$ac_max_sed_cmds # Line after last line for current file.
4928 while $ac_more_lines; do
4929 if test $ac_beg -gt 1; then
4930 sed "1,${ac_beg}d; ${ac_end}q" conftest.subs
> conftest.s
$ac_file
4932 sed "${ac_end}q" conftest.subs
> conftest.s
$ac_file
4934 if test ! -s conftest.s
$ac_file; then
4936 rm -f conftest.s
$ac_file
4938 if test -z "$ac_sed_cmds"; then
4939 ac_sed_cmds
="sed -f conftest.s$ac_file"
4941 ac_sed_cmds
="$ac_sed_cmds | sed -f conftest.s$ac_file"
4943 ac_file
=`expr $ac_file + 1`
4945 ac_end
=`expr $ac_end + $ac_max_sed_cmds`
4948 if test -z "$ac_sed_cmds"; then
4953 cat >> $CONFIG_STATUS <<EOF
4955 CONFIG_FILES=\${CONFIG_FILES-"Makefile
4959 doc/C/figures/Makefile
4967 cat >> $CONFIG_STATUS <<\EOF
4968 for ac_file
in ..
$CONFIG_FILES; do if test "x$ac_file" != x..
; then
4969 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4971 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
4972 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
4973 *) ac_file_in
="${ac_file}.in" ;;
4976 # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
4978 # Remove last slash and all that follows it. Not all systems have dirname.
4979 ac_dir
=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
4980 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .
; then
4981 # The file is in a subdirectory.
4982 test ! -d "$ac_dir" && mkdir
"$ac_dir"
4983 ac_dir_suffix
="/`echo $ac_dir|sed 's%^\./%%'`"
4984 # A "../" for each directory in $ac_dir_suffix.
4985 ac_dots
=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
4987 ac_dir_suffix
= ac_dots
=
4990 case "$ac_given_srcdir" in
4992 if test -z "$ac_dots"; then top_srcdir
=.
4993 else top_srcdir
=`echo $ac_dots|sed 's%/$%%'`; fi ;;
4994 /*) srcdir
="$ac_given_srcdir$ac_dir_suffix"; top_srcdir
="$ac_given_srcdir" ;;
4996 srcdir
="$ac_dots$ac_given_srcdir$ac_dir_suffix"
4997 top_srcdir
="$ac_dots$ac_given_srcdir" ;;
5000 case "$ac_given_INSTALL" in
5001 [/$
]*) INSTALL
="$ac_given_INSTALL" ;;
5002 *) INSTALL
="$ac_dots$ac_given_INSTALL" ;;
5005 echo creating
"$ac_file"
5007 configure_input
="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
5009 *Makefile
*) ac_comsub
="1i\\
5010 # $configure_input" ;;
5014 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5016 s%@configure_input@%$configure_input%g
5017 s%@srcdir@%$srcdir%g
5018 s%@top_srcdir@%$top_srcdir%g
5019 s%@INSTALL@%$INSTALL%g
5020 " $ac_file_inputs |
(eval "$ac_sed_cmds") > $ac_file
5024 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
5025 # NAME is the cpp macro being defined and VALUE is the value it is being given.
5027 # ac_d sets the value in "#define NAME VALUE" lines.
5028 ac_dA
='s%^\([ ]*\)#\([ ]*define[ ][ ]*\)'
5029 ac_dB
='\([ ][ ]*\)[^ ]*%\1#\2'
5032 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
5033 ac_uA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5034 ac_uB
='\([ ]\)%\1#\2define\3'
5037 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
5038 ac_eA
='s%^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
5039 ac_eB
='$%\1#\2define\3'
5043 if test "${CONFIG_HEADERS+set}" != set; then
5045 cat >> $CONFIG_STATUS <<EOF
5046 CONFIG_HEADERS="config.h"
5048 cat >> $CONFIG_STATUS <<\EOF
5050 for ac_file
in ..
$CONFIG_HEADERS; do if test "x$ac_file" != x..
; then
5051 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5053 *:*) ac_file_in
=`echo "$ac_file"|sed 's%[^:]*:%%'`
5054 ac_file
=`echo "$ac_file"|sed 's%:.*%%'` ;;
5055 *) ac_file_in
="${ac_file}.in" ;;
5058 echo creating
$ac_file
5060 rm -f conftest.frag conftest.
in conftest.out
5061 ac_file_inputs
=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
5062 cat $ac_file_inputs > conftest.
in
5066 # Transform confdefs.h into a sed script conftest.vals that substitutes
5067 # the proper values into config.h.in to produce config.h. And first:
5068 # Protect against being on the right side of a sed subst in config.status.
5069 # Protect against being in an unquoted here document in config.status.
5071 cat > conftest.hdr
<<\EOF
5074 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
5078 sed -n -f conftest.hdr confdefs.h > conftest.vals
5081 # This sed command replaces #undef with comments. This is necessary, for
5082 # example, in the case of _POSIX_SOURCE, which is predefined and required
5083 # on some systems where configure will not decide to define it.
5084 cat >> conftest.vals <<\EOF
5085 s%^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
5088 # Break up conftest.vals because some shells have a limit on
5089 # the size of here documents, and old seds have small limits too.
5094 ac_lines=`grep -c . conftest.vals
`
5095 # grep -c gives empty output for an empty file on some AIX systems.
5096 if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
5097 # Write a limited-size here document to conftest.frag.
5098 echo ' cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
5099 sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
5101 sed -f conftest.frag conftest.in > conftest.out
5103 mv conftest.out conftest.in
5105 sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
5107 mv conftest.tail conftest.vals
5111 cat >> $CONFIG_STATUS <<\EOF
5112 rm -f conftest.frag conftest.h
5113 echo "/* $ac_file. Generated automatically by configure. */" > conftest.h
5114 cat conftest.in >> conftest.h
5116 if cmp -s $ac_file conftest.h 2>/dev/null; then
5117 echo "$ac_file is unchanged"
5120 # Remove last slash and all that follows it. Not all systems have dirname.
5121 ac_dir=`echo $ac_file|
sed 's%/[^/][^/]*$%%'`
5122 if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
5123 # The file is in a subdirectory.
5124 test ! -d "$ac_dir" && mkdir "$ac_dir"
5127 mv conftest.h $ac_file
5132 cat >> $CONFIG_STATUS <<EOF
5137 cat >> $CONFIG_STATUS <<\EOF
5138 test -z "$CONFIG_HEADERS" || echo timestamp > stamp-h
5139 for ac_file in $CONFIG_FILES; do
5140 # Support "outfile[:infile[:infile...]]"
5142 *:*) ac_file=`echo "$ac_file"|
sed 's%:.*%%'` ;;
5144 # PO directories have a Makefile.in generated from Makefile.in.in.
5145 case "$ac_file" in */Makefile.in)
5146 # Adjust a relative srcdir.
5147 ac_dir=`echo "$ac_file"|
sed 's%/[^/][^/]*$%%'`
5148 ac_dir_suffix="/`echo "$ac_dir"|
sed 's%^\./%%'`"
5149 ac_dots=`echo "$ac_dir_suffix"|
sed 's%/[^/]*%../%g'`
5150 # In autoconf-2.13 it is called $ac_given_srcdir.
5151 # In autoconf-2.50 it is called $srcdir.
5152 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir"
5153 case "$ac_given_srcdir" in
5154 .) top_srcdir=`echo $ac_dots|
sed 's%/$%%'` ;;
5155 /*) top_srcdir="$ac_given_srcdir" ;;
5156 *) top_srcdir="$ac_dots$ac_given_srcdir" ;;
5158 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
5159 rm -f "$ac_dir/POTFILES"
5160 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
5161 sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
5162 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
5163 sed -e "/POTFILES =/r $ac_dir/POTFILES" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
5171 chmod +x $CONFIG_STATUS
5172 rm -fr confdefs* $ac_clean_files
5173 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
5177 echo "===================================================================="
5178 echo "Configuration succesfully finished"
5179 if test $DISABLE_DAC; then
5180 echo "without Data Acquisition."
5182 echo "with Data Acquisition enabled."
5184 echo "Type 'make' and 'make install' to build and install gpiv"
5185 echo "===================================================================="