merged tag ooo/OOO330_m7
[LibreOffice.git] / configure
blob6a8de10e3376789d34a74f5e6270fc6a80ca16b1
1 #! /bin/sh
2 # From configure.in Revision: 1.290 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59.
6 # Copyright (C) 2003 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.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
21 set -o posix
23 DUALCASE=1; export DUALCASE # for MKS sh
25 # Support unset when possible.
26 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27 as_unset=unset
28 else
29 as_unset=false
33 # Work around bugs in pre-3.0 UWIN ksh.
34 $as_unset ENV MAIL MAILPATH
35 PS1='$ '
36 PS2='> '
37 PS4='+ '
39 # NLS nuisances.
40 for as_var in \
41 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
42 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
43 LC_TELEPHONE LC_TIME
45 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
46 eval $as_var=C; export $as_var
47 else
48 $as_unset $as_var
50 done
52 # Required to use basename.
53 if expr a : '\(a\)' >/dev/null 2>&1; then
54 as_expr=expr
55 else
56 as_expr=false
59 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
60 as_basename=basename
61 else
62 as_basename=false
66 # Name of the executable.
67 as_me=`$as_basename "$0" ||
68 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
69 X"$0" : 'X\(//\)$' \| \
70 X"$0" : 'X\(/\)$' \| \
71 . : '\(.\)' 2>/dev/null ||
72 echo X/"$0" |
73 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
74 /^X\/\(\/\/\)$/{ s//\1/; q; }
75 /^X\/\(\/\).*/{ s//\1/; q; }
76 s/.*/./; q'`
79 # PATH needs CR, and LINENO needs CR and PATH.
80 # Avoid depending upon Character Ranges.
81 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
82 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
83 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
84 as_cr_digits='0123456789'
85 as_cr_alnum=$as_cr_Letters$as_cr_digits
87 # The user is always right.
88 if test "${PATH_SEPARATOR+set}" != set; then
89 echo "#! /bin/sh" >conf$$.sh
90 echo "exit 0" >>conf$$.sh
91 chmod +x conf$$.sh
92 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
93 PATH_SEPARATOR=';'
94 else
95 PATH_SEPARATOR=:
97 rm -f conf$$.sh
101 as_lineno_1=$LINENO
102 as_lineno_2=$LINENO
103 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
104 test "x$as_lineno_1" != "x$as_lineno_2" &&
105 test "x$as_lineno_3" = "x$as_lineno_2" || {
106 # Find who we are. Look in the path if we contain no path at all
107 # relative or not.
108 case $0 in
109 *[\\/]* ) as_myself=$0 ;;
110 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
111 for as_dir in $PATH
113 IFS=$as_save_IFS
114 test -z "$as_dir" && as_dir=.
115 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
116 done
119 esac
120 # We did not find ourselves, most probably we were run as `sh COMMAND'
121 # in which case we are not to be found in the path.
122 if test "x$as_myself" = x; then
123 as_myself=$0
125 if test ! -f "$as_myself"; then
126 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
127 { (exit 1); exit 1; }; }
129 case $CONFIG_SHELL in
131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
132 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
134 IFS=$as_save_IFS
135 test -z "$as_dir" && as_dir=.
136 for as_base in sh bash ksh sh5; do
137 case $as_dir in
139 if ("$as_dir/$as_base" -c '
140 as_lineno_1=$LINENO
141 as_lineno_2=$LINENO
142 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
143 test "x$as_lineno_1" != "x$as_lineno_2" &&
144 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
145 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
146 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
147 CONFIG_SHELL=$as_dir/$as_base
148 export CONFIG_SHELL
149 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
150 fi;;
151 esac
152 done
153 done
155 esac
157 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
158 # uniformly replaced by the line number. The first 'sed' inserts a
159 # line-number line before each line; the second 'sed' does the real
160 # work. The second script uses 'N' to pair each line-number line
161 # with the numbered line, and appends trailing '-' during
162 # substitution so that $LINENO is not a special case at line end.
163 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
164 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
165 sed '=' <$as_myself |
166 sed '
168 s,$,-,
169 : loop
170 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
171 t loop
172 s,-$,,
173 s,^['$as_cr_digits']*\n,,
174 ' >$as_me.lineno &&
175 chmod +x $as_me.lineno ||
176 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
177 { (exit 1); exit 1; }; }
179 # Don't try to exec as it changes $[0], causing all sort of problems
180 # (the dirname of $[0] is not the place where we might find the
181 # original and so on. Autoconf is especially sensible to this).
182 . ./$as_me.lineno
183 # Exit status is that of the last command.
184 exit
188 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
189 *c*,-n*) ECHO_N= ECHO_C='
190 ' ECHO_T=' ' ;;
191 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
192 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
193 esac
195 if expr a : '\(a\)' >/dev/null 2>&1; then
196 as_expr=expr
197 else
198 as_expr=false
201 rm -f conf$$ conf$$.exe conf$$.file
202 echo >conf$$.file
203 if ln -s conf$$.file conf$$ 2>/dev/null; then
204 # We could just check for DJGPP; but this test a) works b) is more generic
205 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
206 if test -f conf$$.exe; then
207 # Don't use ln at all; we don't have any links
208 as_ln_s='cp -p'
209 else
210 as_ln_s='ln -s'
212 elif ln conf$$.file conf$$ 2>/dev/null; then
213 as_ln_s=ln
214 else
215 as_ln_s='cp -p'
217 rm -f conf$$ conf$$.exe conf$$.file
219 if mkdir -p . 2>/dev/null; then
220 as_mkdir_p=:
221 else
222 test -d ./-p && rmdir ./-p
223 as_mkdir_p=false
226 as_executable_p="test -f"
228 # Sed expression to map a string onto a valid CPP name.
229 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
231 # Sed expression to map a string onto a valid variable name.
232 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
235 # IFS
236 # We need space, tab and new line, in precisely that order.
237 as_nl='
239 IFS=" $as_nl"
241 # CDPATH.
242 $as_unset CDPATH
245 # Name of the host.
246 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
247 # so uname gets run too.
248 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
250 exec 6>&1
253 # Initializations.
255 ac_default_prefix=/usr/local
256 ac_config_libobj_dir=.
257 cross_compiling=no
258 subdirs=
259 MFLAGS=
260 MAKEFLAGS=
261 SHELL=${CONFIG_SHELL-/bin/sh}
263 # Maximum number of lines to put in a shell here document.
264 # This variable seems obsolete. It should probably be removed, and
265 # only ac_max_sed_lines should be used.
266 : ${ac_max_here_lines=38}
268 # Identity of this package.
269 PACKAGE_NAME=
270 PACKAGE_TARNAME=
271 PACKAGE_VERSION=
272 PACKAGE_STRING=
273 PACKAGE_BUGREPORT=
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 # include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 # include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 # include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
312 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS EGREP AWK SED LOCAL_SOLENV _solenv UPD SOURCEVERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os GNUTAR OSVERSION PTHREAD_CFLAGS PTHREAD_LIBS ENABLE_CRASHDUMP VC_STANDARD ENABLE_WERROR ENABLE_DEBUG PRODUCT PROFULLSWITCH PROEXT ENABLE_SYMBOLS DISABLE_STRIP ENABLE_CUPS ENABLE_FONTCONFIG TARFILE_LOCATION DO_FETCH_TARBALLS WITH_BINFILTER ENABLE_DIRECTX DISABLE_ACTIVEX DISABLE_ATL ENABLE_RPATH WITH_MYSPELL_DICTS SYSTEM_DICTS DICT_SYSTEM_DIR HYPH_SYSTEM_DIR THES_SYSTEM_DIR WITH_MINGWIN SHELLPATH GCC_HOME CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT COMPATH GCCVER HAVE_LD_BSYMBOLIC_FUNCTIONS ENABLE_PCH NO_HIDS GNUMAKE _cc HAVE_LD_HASH_STYLE PERL MSPDB_PATH COMEX USE_MINGW MIDL_PATH CSC_PATH FRAME_HOME CPP CXX CXXFLAGS ac_ct_CXX CXXCPP SIZEOF_LONG WORDS_BIGENDIAN LFS_CFLAGS ENABLE_VBA VBA_EXTENSION PAM NEW_SHADOW_API PAM_LINK CRYPT_LINK GXX_INCLUDE_PATH MINGW_LIB_INCLUDE_PATH MINGW_BACKWARD_INCLUDE_PATH MINGW_CLIB_DIR MINGW_SHARED_GCCLIB MINGW_GCCLIB_EH MINGW_SHARED_GXXLIB MINGW_GCCDLL MINGW_GXXDLL EXCEPTIONS STLPORT4 STLPORT_VER USE_SYSTEM_STL USE_CCACHE CCACHE HAVE_GCC_VISIBILITY_FEATURE ALLOC BUILD_VER_STRING SOLAR_JAVA JAVAINTERPRETER JAVACOMPILER JAVACISGCJ JAVADOC AWTLIB JAVAAOTCOMPILER JAVA_HOME JDK JAVAFLAGS JAVAIFLAGS DMAKE BUILD_DMAKE EPM DPKG PKGMK BUILD_EPM RPM PKGFORMAT GPERF BUILD_STAX MINGWCXX ac_ct_MINGWCXX MINGWSTRIP ac_ct_MINGWSTRIP BUILD_UNOWINREG SYSTEM_STDLIBS SYSTEM_ZLIB SYSTEM_JPEG SYSTEM_EXPAT PKG_CONFIG LIBWPD_CFLAGS LIBWPD_LIBS SYSTEM_LIBWPD CPPUNIT_CFLAGS CPPUNIT_LIBS SYSTEM_CPPUNIT FREETYPE_CFLAGS FREETYPE_LIBS USE_FT_EMBOLDEN LIBXSLT_CFLAGS LIBXSLT_LIBS XSLTPROC SYSTEM_LIBXSLT LIBXML_CFLAGS LIBXML_LIBS SYSTEM_LIBXML PYTHON PYTHON_VERSION PYTHON_PREFIX PYTHON_EXEC_PREFIX PYTHON_PLATFORM pythondir pkgpythondir pyexecdir pkgpyexecdir BZIP2 SYSTEM_PYTHON PYTHON_CFLAGS PYTHON_LIBS HOME SYSTEM_DB DB_VERSION DB_INCLUDES DB_JAR SYSTEM_LUCENE LUCENE_CORE_JAR LUCENE_ANALYZERS_JAR ENABLE_MYSQLC MYSQLCONFIG SYSTEM_MYSQL MYSQL_INC MYSQL_LIB MYSQL_DEFINES LIBMYSQL_PATH SYSTEM_MYSQL_CPPCONN SYSTEM_HSQLDB HSQLDB_JAR SYSTEM_BSH BSH_JAR SERIALIZER_JAR SYSTEM_SAXON SAXON_JAR CURLCONFIG SYSTEM_CURL CURL_CFLAGS CURL_LIBS SYSTEM_MDDS SYSTEM_BOOST SYSTEM_VIGRA SYSTEM_ODBC_HEADERS WITH_MOZILLA WITH_LDAP WITH_OPENLDAP MOZ_NSS_CFLAGS MOZ_NSS_LIBS NSS_LIB MOZ_NSPR_CFLAGS MOZ_NSPR_LIBS NSPR_LIB MOZILLAXPCOM_CFLAGS MOZILLAXPCOM_LIBS MOZILLA_VERSION MOZILLA_TOOLKIT MOZGTK2_CFLAGS MOZGTK2_LIBS MOZLIBREQ_CFLAGS MOZLIBREQ_LIBS BUILD_MOZAB ENABLE_NSS_MODULE MOZILLABUILD SYSTEM_MOZILLA MOZ_FLAVOUR MOZ_INC MOZ_LIB MOZ_LIB_XPCOM MOZ_LDAP_CFLAGS SYSTEM_SANE_HEADER SYSTEM_GENBRK SYSTEM_GENCCODE SYSTEM_GENCMN SYSTEM_ICU GRAPHITE_CFLAGS GRAPHITE_LIBS ENABLE_GRAPHITE SYSTEM_GRAPHITE X_CFLAGS X_PRE_LIBS X_LIBS X_EXTRA_LIBS XINC XLIB XAU_LIBS DISABLE_XAW SYSTEM_XRENDER_HEADERS XRENDER_LINK XRANDR_CFLAGS XRANDR_LIBS XRANDR_DLOPEN ENABLE_RANDR DISABLE_NEON NEON_CFLAGS NEON_LIBS SYSTEM_NEON NEON_VERSION OPENSSL_CFLAGS OPENSSL_LIBS SYSTEM_OPENSSL ENABLE_AGG AGG_CFLAGS AGG_LIBS SYSTEM_AGG AGG_VERSION REDLAND_CFLAGS REDLAND_LIBS SYSTEM_REDLAND HUNSPELL_CFLAGS HUNSPELL_LIBS SYSTEM_HUNSPELL SYSTEM_HYPH HYPHEN_LIB MYTHES_CFLAGS MYTHES_LIBS SYSTEM_MYTHES SYSTEM_LPSOLVE HAVE_GETOPT HAVE_READDIR_R SYSTEM_LIBC PSDK_HOME WINDOWS_VISTA_PSDK DIRECTXSDK_HOME DIRECTXSDK_LIB NSIS_PATH BISON FLEX PATCH GNUCP GNUPATCH CYGWIN_PATH ML_EXE ASM_HOME ZIP UNZIP ZIP_HOME ENABLE_GTK ENABLE_KDE ENABLE_KDE4 GCONF_CFLAGS GCONF_LIBS ENABLE_GCONF GNOMEVFS_CFLAGS GNOMEVFS_LIBS ENABLE_GNOMEVFS GTK_CFLAGS GTK_LIBS DBUS_CFLAGS DBUS_LIBS GIO_CFLAGS GIO_LIBS ENABLE_GIO ENABLE_DBUS ENABLE_SYSTRAY_GTK CAIRO_CFLAGS CAIRO_LIBS ENABLE_CAIRO BUILD_PIXMAN SYSTEM_CAIRO ENABLE_OPENGL ENABLE_PRESENTER_EXTRA_UI ENABLE_MINIMIZER ENABLE_PRESENTER_SCREEN POPPLER_CFLAGS POPPLER_LIBS ENABLE_PDFIMPORT SYSTEM_POPPLER ENABLE_MEDIAWIKI SYSTEM_SERVLETAPI SERVLETAPI_JAR ENABLE_REPORTBUILDER SYSTEM_JFREEREPORT SAC_JAR LIBXML_JAR FLUTE_JAR JFREEREPORT_JAR LIBBASE_JAR LIBLAYOUT_JAR LIBLOADER_JAR LIBFORMULA_JAR LIBREPOSITORY_JAR LIBFONTS_JAR LIBSERIALIZER_JAR SYSTEM_APACHE_COMMONS COMMONS_CODEC_JAR COMMONS_LANG_JAR COMMONS_HTTPCLIENT_JAR COMMONS_LOGGING_JAR MOC KDE_CFLAGS KDE_LIBS MOC4 KDE4_CFLAGS KDE4_LIBS ENABLE_LOCKDOWN GOBJECT_CFLAGS GOBJECT_LIBS ENABLE_EVOAB2 ENABLE_KAB WITH_FONTS WITHOUT_PPDS WITHOUT_AFMS SCPDEFS USE_XINERAMA XINERAMA_LINK ANT ANT_HOME ANT_LIB OOO_JUNIT_JAR WITH_LANG WITH_POOR_HELP_LOCALIZATIONS WITH_DICT INTRO_BITMAPS ABOUT_BITMAPS OOO_VENDOR UNIXWRAPPERNAME ENABLE_STATIC_GTK ENABLE_LAYOUT VERBOSE nodep LOCAL_SOLVER BUILD_TYPE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
353 ac_prev=
354 for ac_option
356 # If the previous option needs an argument, assign it.
357 if test -n "$ac_prev"; then
358 eval "$ac_prev=\$ac_option"
359 ac_prev=
360 continue
363 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
365 # Accept the important Cygnus configure options, so we can diagnose typos.
367 case $ac_option in
369 -bindir | --bindir | --bindi | --bind | --bin | --bi)
370 ac_prev=bindir ;;
371 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372 bindir=$ac_optarg ;;
374 -build | --build | --buil | --bui | --bu)
375 ac_prev=build_alias ;;
376 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377 build_alias=$ac_optarg ;;
379 -cache-file | --cache-file | --cache-fil | --cache-fi \
380 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381 ac_prev=cache_file ;;
382 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384 cache_file=$ac_optarg ;;
386 --config-cache | -C)
387 cache_file=config.cache ;;
389 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390 ac_prev=datadir ;;
391 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392 | --da=*)
393 datadir=$ac_optarg ;;
395 -disable-* | --disable-*)
396 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397 # Reject names that are not valid shell variable names.
398 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400 { (exit 1); exit 1; }; }
401 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402 eval "enable_$ac_feature=no" ;;
404 -enable-* | --enable-*)
405 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406 # Reject names that are not valid shell variable names.
407 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409 { (exit 1); exit 1; }; }
410 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411 case $ac_option in
412 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413 *) ac_optarg=yes ;;
414 esac
415 eval "enable_$ac_feature='$ac_optarg'" ;;
417 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419 | --exec | --exe | --ex)
420 ac_prev=exec_prefix ;;
421 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423 | --exec=* | --exe=* | --ex=*)
424 exec_prefix=$ac_optarg ;;
426 -gas | --gas | --ga | --g)
427 # Obsolete; use --with-gas.
428 with_gas=yes ;;
430 -help | --help | --hel | --he | -h)
431 ac_init_help=long ;;
432 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433 ac_init_help=recursive ;;
434 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435 ac_init_help=short ;;
437 -host | --host | --hos | --ho)
438 ac_prev=host_alias ;;
439 -host=* | --host=* | --hos=* | --ho=*)
440 host_alias=$ac_optarg ;;
442 -includedir | --includedir | --includedi | --included | --include \
443 | --includ | --inclu | --incl | --inc)
444 ac_prev=includedir ;;
445 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446 | --includ=* | --inclu=* | --incl=* | --inc=*)
447 includedir=$ac_optarg ;;
449 -infodir | --infodir | --infodi | --infod | --info | --inf)
450 ac_prev=infodir ;;
451 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452 infodir=$ac_optarg ;;
454 -libdir | --libdir | --libdi | --libd)
455 ac_prev=libdir ;;
456 -libdir=* | --libdir=* | --libdi=* | --libd=*)
457 libdir=$ac_optarg ;;
459 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460 | --libexe | --libex | --libe)
461 ac_prev=libexecdir ;;
462 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463 | --libexe=* | --libex=* | --libe=*)
464 libexecdir=$ac_optarg ;;
466 -localstatedir | --localstatedir | --localstatedi | --localstated \
467 | --localstate | --localstat | --localsta | --localst \
468 | --locals | --local | --loca | --loc | --lo)
469 ac_prev=localstatedir ;;
470 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473 localstatedir=$ac_optarg ;;
475 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476 ac_prev=mandir ;;
477 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478 mandir=$ac_optarg ;;
480 -nfp | --nfp | --nf)
481 # Obsolete; use --without-fp.
482 with_fp=no ;;
484 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485 | --no-cr | --no-c | -n)
486 no_create=yes ;;
488 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490 no_recursion=yes ;;
492 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494 | --oldin | --oldi | --old | --ol | --o)
495 ac_prev=oldincludedir ;;
496 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499 oldincludedir=$ac_optarg ;;
501 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502 ac_prev=prefix ;;
503 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504 prefix=$ac_optarg ;;
506 -program-prefix | --program-prefix | --program-prefi | --program-pref \
507 | --program-pre | --program-pr | --program-p)
508 ac_prev=program_prefix ;;
509 -program-prefix=* | --program-prefix=* | --program-prefi=* \
510 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511 program_prefix=$ac_optarg ;;
513 -program-suffix | --program-suffix | --program-suffi | --program-suff \
514 | --program-suf | --program-su | --program-s)
515 ac_prev=program_suffix ;;
516 -program-suffix=* | --program-suffix=* | --program-suffi=* \
517 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518 program_suffix=$ac_optarg ;;
520 -program-transform-name | --program-transform-name \
521 | --program-transform-nam | --program-transform-na \
522 | --program-transform-n | --program-transform- \
523 | --program-transform | --program-transfor \
524 | --program-transfo | --program-transf \
525 | --program-trans | --program-tran \
526 | --progr-tra | --program-tr | --program-t)
527 ac_prev=program_transform_name ;;
528 -program-transform-name=* | --program-transform-name=* \
529 | --program-transform-nam=* | --program-transform-na=* \
530 | --program-transform-n=* | --program-transform-=* \
531 | --program-transform=* | --program-transfor=* \
532 | --program-transfo=* | --program-transf=* \
533 | --program-trans=* | --program-tran=* \
534 | --progr-tra=* | --program-tr=* | --program-t=*)
535 program_transform_name=$ac_optarg ;;
537 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538 | -silent | --silent | --silen | --sile | --sil)
539 silent=yes ;;
541 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542 ac_prev=sbindir ;;
543 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544 | --sbi=* | --sb=*)
545 sbindir=$ac_optarg ;;
547 -sharedstatedir | --sharedstatedir | --sharedstatedi \
548 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549 | --sharedst | --shareds | --shared | --share | --shar \
550 | --sha | --sh)
551 ac_prev=sharedstatedir ;;
552 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555 | --sha=* | --sh=*)
556 sharedstatedir=$ac_optarg ;;
558 -site | --site | --sit)
559 ac_prev=site ;;
560 -site=* | --site=* | --sit=*)
561 site=$ac_optarg ;;
563 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564 ac_prev=srcdir ;;
565 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566 srcdir=$ac_optarg ;;
568 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569 | --syscon | --sysco | --sysc | --sys | --sy)
570 ac_prev=sysconfdir ;;
571 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573 sysconfdir=$ac_optarg ;;
575 -target | --target | --targe | --targ | --tar | --ta | --t)
576 ac_prev=target_alias ;;
577 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578 target_alias=$ac_optarg ;;
580 -v | -verbose | --verbose | --verbos | --verbo | --verb)
581 verbose=yes ;;
583 -version | --version | --versio | --versi | --vers | -V)
584 ac_init_version=: ;;
586 -with-* | --with-*)
587 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588 # Reject names that are not valid shell variable names.
589 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590 { echo "$as_me: error: invalid package name: $ac_package" >&2
591 { (exit 1); exit 1; }; }
592 ac_package=`echo $ac_package| sed 's/-/_/g'`
593 case $ac_option in
594 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 *) ac_optarg=yes ;;
596 esac
597 eval "with_$ac_package='$ac_optarg'" ;;
599 -without-* | --without-*)
600 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601 # Reject names that are not valid shell variable names.
602 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603 { echo "$as_me: error: invalid package name: $ac_package" >&2
604 { (exit 1); exit 1; }; }
605 ac_package=`echo $ac_package | sed 's/-/_/g'`
606 eval "with_$ac_package=no" ;;
608 --x)
609 # Obsolete; use --with-x.
610 with_x=yes ;;
612 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613 | --x-incl | --x-inc | --x-in | --x-i)
614 ac_prev=x_includes ;;
615 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617 x_includes=$ac_optarg ;;
619 -x-libraries | --x-libraries | --x-librarie | --x-librari \
620 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621 ac_prev=x_libraries ;;
622 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624 x_libraries=$ac_optarg ;;
626 -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628 { (exit 1); exit 1; }; }
631 *=*)
632 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633 # Reject names that are not valid shell variable names.
634 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636 { (exit 1); exit 1; }; }
637 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638 eval "$ac_envvar='$ac_optarg'"
639 export $ac_envvar ;;
642 # FIXME: should be removed in autoconf 3.0.
643 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
649 esac
650 done
652 if test -n "$ac_prev"; then
653 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654 { echo "$as_me: error: missing argument to $ac_option" >&2
655 { (exit 1); exit 1; }; }
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
661 eval ac_val=$`echo $ac_var`
662 case $ac_val in
663 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665 { (exit 1); exit 1; }; };;
666 esac
667 done
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671 localstatedir libdir includedir oldincludedir infodir mandir
673 eval ac_val=$`echo $ac_var`
674 case $ac_val in
675 [\\/$]* | ?:[\\/]* ) ;;
676 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677 { (exit 1); exit 1; }; };;
678 esac
679 done
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690 if test "x$build_alias" = x; then
691 cross_compiling=maybe
692 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693 If a cross compiler is detected then cross compile mode will be used." >&2
694 elif test "x$build_alias" != "x$host_alias"; then
695 cross_compiling=yes
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
702 test "$silent" = yes && exec 6>/dev/null
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707 ac_srcdir_defaulted=yes
708 # Try the directory containing this script, then its parent.
709 ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711 X"$0" : 'X\(//\)[^/]' \| \
712 X"$0" : 'X\(//\)$' \| \
713 X"$0" : 'X\(/\)' \| \
714 . : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718 /^X\(\/\/\)$/{ s//\1/; q; }
719 /^X\(\/\).*/{ s//\1/; q; }
720 s/.*/./; q'`
721 srcdir=$ac_confdir
722 if test ! -r $srcdir/$ac_unique_file; then
723 srcdir=..
725 else
726 ac_srcdir_defaulted=no
728 if test ! -r $srcdir/$ac_unique_file; then
729 if test "$ac_srcdir_defaulted" = yes; then
730 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731 { (exit 1); exit 1; }; }
732 else
733 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734 { (exit 1); exit 1; }; }
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739 { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773 ac_env_CXX_set=${CXX+set}
774 ac_env_CXX_value=$CXX
775 ac_cv_env_CXX_set=${CXX+set}
776 ac_cv_env_CXX_value=$CXX
777 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
778 ac_env_CXXFLAGS_value=$CXXFLAGS
779 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
780 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
781 ac_env_CXXCPP_set=${CXXCPP+set}
782 ac_env_CXXCPP_value=$CXXCPP
783 ac_cv_env_CXXCPP_set=${CXXCPP+set}
784 ac_cv_env_CXXCPP_value=$CXXCPP
787 # Report the --help message.
789 if test "$ac_init_help" = "long"; then
790 # Omit some internal or obsolete options to make the list less imposing.
791 # This message is too long to be a string in the A/UX 3.1 sh.
792 cat <<_ACEOF
793 \`configure' configures this package to adapt to many kinds of systems.
795 Usage: $0 [OPTION]... [VAR=VALUE]...
797 To assign environment variables (e.g., CC, CFLAGS...), specify them as
798 VAR=VALUE. See below for descriptions of some of the useful variables.
800 Defaults for the options are specified in brackets.
802 Configuration:
803 -h, --help display this help and exit
804 --help=short display options specific to this package
805 --help=recursive display the short help of all the included packages
806 -V, --version display version information and exit
807 -q, --quiet, --silent do not print \`checking...' messages
808 --cache-file=FILE cache test results in FILE [disabled]
809 -C, --config-cache alias for \`--cache-file=config.cache'
810 -n, --no-create do not create output files
811 --srcdir=DIR find the sources in DIR [configure dir or \`..']
813 _ACEOF
815 cat <<_ACEOF
816 Installation directories:
817 --prefix=PREFIX install architecture-independent files in PREFIX
818 [$ac_default_prefix]
819 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
820 [PREFIX]
822 By default, \`make install' will install all the files in
823 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
824 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
825 for instance \`--prefix=\$HOME'.
827 For better control, use the options below.
829 Fine tuning of the installation directories:
830 --bindir=DIR user executables [EPREFIX/bin]
831 --sbindir=DIR system admin executables [EPREFIX/sbin]
832 --libexecdir=DIR program executables [EPREFIX/libexec]
833 --datadir=DIR read-only architecture-independent data [PREFIX/share]
834 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
835 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
836 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
837 --libdir=DIR object code libraries [EPREFIX/lib]
838 --includedir=DIR C header files [PREFIX/include]
839 --oldincludedir=DIR C header files for non-gcc [/usr/include]
840 --infodir=DIR info documentation [PREFIX/info]
841 --mandir=DIR man documentation [PREFIX/man]
842 _ACEOF
844 cat <<\_ACEOF
846 X features:
847 --x-includes=DIR X include files are in DIR
848 --x-libraries=DIR X library files are in DIR
850 System types:
851 --build=BUILD configure for building on BUILD [guessed]
852 --host=HOST cross-compile to build programs to run on HOST [BUILD]
853 --target=TARGET configure for building compilers for TARGET [HOST]
854 _ACEOF
857 if test -n "$ac_init_help"; then
859 cat <<\_ACEOF
861 Optional Features:
862 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
863 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
864 --enable-graphite Enables the compilation of Graphite smart font rendering
866 --disable-ldap Disables the use of LDAP backend via Netscape/Mozilla
867 or OpenLDAP LDAP SDK
869 --disable-fetch-external Disables fetching external tarballs from web sources.
871 --enable-lockdown Enables the gconf integration work in OOo
873 --disable-vba disables the vba compatibility feature
875 --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
877 --enable-hids Enables generation of HelpId lists.
879 --disable-mozilla OO.o usually includes a strangely hacked up mozilla
880 binary for your platform, to build without this
881 version, use this option.
883 --disable-epm OO.o includes self-packaging code, that requires
884 epm, however epm is useless for large scale
885 package building.
887 --disable-odk OO.o includes an ODK, office development kit
888 which some packagers may with to build without
890 --disable-mathmldtd disable mathmldtd
891 (useful for distributions that want to avoid packaging
894 --enable-evolution2 Allows the built-in evolution 2 addressbook
895 connectivity build to be enabled.
897 --disable-cups disable cups support in the psprint project
899 --disable-fontconfig disable support for the fontconfig library
901 --disable-directx Remove DirectX implementation for the new XCanvas
902 interface. The DirectX support requires more stuff
903 installed on Windows to compile.
904 (DirectX SDK, GDI+ libs)
906 --disable-activex Disable the use of ActiveX for windows build.
907 This switch is mandatory when using VC++ 2005/2008 Express.
909 --disable-atl Disable the use of ATL for windows build.
910 This switch is mandatory when using VC++ 2005/2008 Express.
912 --enable-symbols Include debugging symbols in output.
913 WARNING - a complete build needs 8 Gb of space and
914 takes much longer. (enables -g compiler flag)
916 --enable-symbols=SMALL sets the gcc -g1 setting
917 which is smaller.
919 Enabling symbols disables the stripping of the solver
920 (--disable-strip-solver).
922 --disable-strip-solver Disable the stripping of the solver.
923 By default the solver is stripped unless a build with
924 debugging symbols (--enable-symbols) is requested.
926 This switch allows to override this setting.
928 --enable-werror Turn warnings to errors. (Has no effect in modules
929 where the treating of warnings as errors is disabled
930 explicitely)
932 --enable-debug Include debugging symbols from --enable-symbols
933 plus extra debugging code. Extra large build!
934 (enables -g compiler flag and dmake debug=true)
936 --enable-dbgutil Include additional debugging utilities, such as
937 assertions, object counting, etc. Larger build.
938 Independent from --enable-debug
940 --enable-crashdump Enable the crashdump feature code.
942 --enable-cl-standard For Microsoft C/C++ compiler users, use non-optimizing
943 standard compiler. ( This just disavles optimization
944 options and therefore removes a lot of warnings when
945 using the cheaper standard compiler. )
947 --disable-gtk Determines whether to use Gtk+ vclplug on platforms
948 where Gtk+ is available.
950 --disable-systray Determines whether to build the systray quickstarter.
952 --enable-cairo Determines whether to use Cairo library on
953 platforms where Cairo is available.
955 --enable-opengl Determines whether to build the OpenGL 3D slide
956 transitions component
958 --enable-dbus Determines whether to enable presentation mode
959 screensaver control under GNOME via DBUS
961 --disable-gconf Determines whether to use the GConf support
963 --disable-gnome-vfs Determines whether to use the Gnome Virtual Filing
964 System on platforms where that VFS is available
966 --enable-gio Determines whether to use the GIO support
968 --enable-static-gtk Modules that are linked against gtk libraries use
969 the static libraries instead of the dynamic ones.
970 (enables -Bstatic linker flag for gtk libraries)
972 --enable-layout Enable the compilation and use of layout dialogs
974 --disable-build-mozilla Use this option if you do not want to build the
975 mozilla components from the mozilla source code but
976 take precompiled zips
978 --disable-nss-module Whether to use provided NSS module
980 --enable-kde Determines whether to use Qt/KDE vclplug on platforms
981 where Qt and KDE are available.
983 --disable-kdeab Disable the KDE address book support
985 --enable-kde4 Determines whether to use Qt4/KDE4 vclplug on platforms
986 where Qt4 and KDE4 are available. May be used with --enable-kde
987 if you want to support both KDE3 and KDE4.
989 --disable-binfilter Disable legacy binary file formats filters
991 --disable-rpath Disable the use of relative paths in shared libraries
993 --disable-pam Disable pam support.
995 --enable-pam-link link with libpam instead of dynamically open it
997 --disable-crypt-link disable linking with libcrypt instead of dynamically
998 open it (needed for ancient GNU/Linux distributions
999 without crypt()/libcrypt)
1001 --enable-xrender-link link with libXrender instead of dynamically open it
1003 --disable-randr disable RandR support in the vcl project
1005 --disable-randr-link disable linking with libXrandr, instead dynamically
1006 open it at runtime
1008 --enable-mysql-connector enables the build of the MySQL Connector/OOo extension.
1009 This requires access to the MySQL Connector/C (aka libmysql) to be given, too, with
1010 either the --with-system-mysql or --with-libmysql-path option.
1012 --enable-presenter-extra-ui enables extra functionality during slideshow,
1013 e.g. selecting pen color, erasing drawings etc.
1015 --enable-minimizer enables the build of the Presentation Minimizer extension
1017 --enable-presenter-console enables the build of the Presenter Console extension
1019 --enable-pdfimport enables the build of the PDF Import extension and xpdf
1021 --enable-wiki-publisher enables the build of the Wiki Publisher extension
1023 --enable-report-builder enables the build of the Report Builder extension
1025 --disable-neon Disable neon and the compilation of webdav binding
1027 --disable-Xaw Disables the use of Xaw for the Netscape/Mozilla
1028 plugin
1030 --enable-gcjaot Build with[out] using Ahead of Time java compilation
1031 support to speed up buildsi by compiling the jars also
1032 to native code..
1033 --enable-gcjaot is only known to work with bytecode
1034 created with gcj or ecj
1036 --enable-check-only Use this option option if you just want to check your
1037 environment. This option stops the generation of an
1038 ????env.set
1040 Usage: --enable-check-only=yes
1042 --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
1043 escape compiler flags that would otherwise prevent
1044 caching of the result (currently used on Mac only)
1045 NOTE: requires patched version because of a bug in
1046 ccache (see issue 104567 for details and patch)
1047 explicitly enable if your version of ccache doesn't
1048 identify as version 2.4_OOo
1050 --enable-verbose Increase build verbosity.
1051 --disable-verbose Decrease build verbosity.
1053 --disable-dependency-tracking Disables generation of dependency information.
1055 --disable-largefile omit support for large files
1057 Optional Packages:
1058 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1059 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1060 --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
1062 --without-agg Disable the use of agg altogether
1064 --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD
1066 --with-system-graphite use graphite library already installed on system
1068 --with-external-tar=<TARFILE PATH> Specify path to tarfiles manually
1069 --with-openldap Enables the use of the OpenLDAP LDAP SDK instead
1070 of the Netscape/Mozilla one
1072 --with-vba-package-format specify package format for vba compatibility api.
1073 Specifying "builtin" means the api component and
1074 associated type library are part of the installation set.
1075 Specifying "extn" creates an uno extension that is
1076 part of the installation set ( located in the program
1077 directory ) that MUST be optionly registered using
1078 either the unopkg executeable or the extension manager
1079 gui.
1081 Note: "builtin" is the default, "extn" can cause
1082 problems.
1083 Usage: --with-vba-package-format="builtin" or
1084 --with-vba-package-format="extn"
1086 --without-fonts OOo includes some third-party fonts to provide a reliable
1087 basis for help content, templates, samples, etc.
1088 When these fonts are already known to be available on the
1089 system then you should use this option.
1091 --without-ppds Removes Postscript Printer definition files from
1092 openoffice.org installation set, for people building
1093 for specific distributions where PPDs are known to be
1094 already available (every recent distro with CUPS
1095 backend)
1097 --without-afms Removes bitmap font files from openoffice.org
1098 installation set, for people building for specific
1099 distributions where AFM files or TrueType Fonts
1100 are known to be available.
1102 --with-epm Decides which epm to use. Default is to use
1103 the one from the system if one is built. When
1104 either this is not there or you say =internal
1105 epm will be built.
1107 --with-package-format specify package format(s) for OOo installsets.
1108 Default is "normal" one of the OS/Distribution.
1110 Usage: --with-package-format="foo bar"
1112 --with-system-stdlibs use libstdc++/libgcc_s already on system
1114 --with-system-cairo Use Cairo libraries already on system
1116 --with-mozilla-version Choose which version of mozilla to use while building
1117 mozilla. Default: 1.7.5.
1118 Note that not all versions are supported.
1120 --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla
1121 components. Default: gtk2
1123 --without-myspell-dicts Removes myspell dictionaries from openoffice.org
1124 installation set, for people building for specific
1125 distributions where the myspell dictionaries are
1126 installed from other sources
1128 --with-system-dicts Use dictionaries from system paths- Specify
1129 them via --with-{dict,hyph,thes}-path=/path
1130 if you want to override the default ones
1132 --with-external-dict-dir Specify external dictionary dir
1134 --with-external-hyph-dir Specify external hyphenation pattern dir
1136 --with-external-thes-dir Specify external thesaurus dir
1138 --with-system-libs Use libs already on system -- enables all
1139 --with-system-* flags except mozilla and
1140 odbc/sane/xrender-header(s)
1142 --with-system-headers Use headers already on system -- enables all
1143 --with-system-* flags for external packages
1144 whose headers are the only entities used i.e.
1145 boost/vigra/odbc/sane/xrender-header(s)
1147 --without-system-jars When building with --with-system-libs, also the
1148 needed jars are expected on the system. Use this to
1149 disable that.
1150 (except for the db case where --with-system-db
1151 *has to* imply using the db.jar from there, too)
1153 --with-system-zlib Use zlib already on system
1155 --with-system-openssl Use OpenSSL already on system
1157 --with-system-jpeg Use jpeg already on system
1159 --with-system-expat Use expat already on system
1161 --with-system-libwpd Use libwpd already on system
1163 --with-system-libxml Use libxml already on system
1165 --with-system-python Use python already on system
1167 --with-system-icu Use icu already on system
1169 --with-system-poppler Use poppler already on system
1171 --with-system-db Use berkeley db already on system
1173 --with-system-lucene Use lucene already on system
1175 --with-lucene-core-jar=JARFILE Specify path to jarfile manually
1176 --with-lucene-analyzers-jar=JARFILE Specify path to jarfile manually
1177 --with-system-mysql Use MySQL libraries already on system, for building the MySQL Connector/OOo extension.
1178 Requires MYSQLCONFIG to point to the mysql_config executable.
1180 --with-libmysql-path Use Connector/C (libmysql) installation for building the MySQL Connector/OOo extension.
1182 Usage: --with-libmysql-path=<absolute path to your Connector/C installation>
1184 --with-system-mysql-cppconn Use MySQL C++ Connector libraries already on system
1186 --with-system-hsqldb Use hsqldb already on system
1188 --with-hsqldb-jar=JARFILE Specify path to jarfile manually
1189 --with-system-beanshell Use beanshell already on system
1191 --with-beanshell-jar=JARFILE Specify path to jarfile manually
1192 --with-commons-codec-jar=JARFILE Specify path to jarfile manually
1193 --with-commons-lang-jar=JARFILE Specify path to jarfile manually
1194 --with-commons-httpclient-jar=JARFILE Specify path to jarfile manually
1195 --with-commons-logging-jar=JARFILE Specify path to jarfile manually
1196 --servlet-api-jar=JARFILE Specify path to jarfile manually
1197 --with-system-jfreereport Use JFreeReport already on system
1199 --with-sac-jar=JARFILE Specify path to jarfile manually
1200 --with-libxml-jar=JARFILE Specify path to jarfile manually
1201 --with-flute-jar=JARFILE Specify path to jarfile manually
1202 --with-jfreereport-jar=JARFILE Specify path to jarfile manually
1203 --with-liblayout-jar=JARFILE Specify path to jarfile manually
1204 --with-libloader-jar=JARFILE Specify path to jarfile manually
1205 --with-libformula-jar=JARFILE Specify path to jarfile manually
1206 --with-librepository-jar=JARFILE Specify path to jarfile manually
1207 --with-libfonts-jar=JARFILE Specify path to jarfile manually
1208 --with-libserializer-jar=JARFILE Specify path to jarfile manually
1209 --with-libbase-jar=JARFILE Specify path to jarfile manually
1210 --with-system-saxon Use saxon already on system
1212 --with-saxon-jar=JARFILE Specify path to jarfile manually
1213 --with-system-libxslt Use libxslt already on system
1215 --with-system-odbc-headers Use the odbc headers already on system
1217 --with-system-sane-header Use sane.h already on system
1219 --with-system-xrender-headers Use XRender headers already on system
1221 --with-system-curl Use curl already on system
1223 --with-system-boost Use boost already on system
1225 --with-system-mdds Use mdds already on system
1227 --with-system-vigra Use vigra already on system
1229 --with-system-neon Use neon already on system
1231 --with-system-agg Use AGG already on system
1233 --with-system-hunspell Use libhunspell already on system
1235 --with-system-mythes Use mythes already on system
1237 --with-system-altlinuxhyph Use ALTLinuxhyph already on system
1239 --with-system-lpsolve Use lpsolve already on system
1241 --with-system-cppunit Use cppunit already on system
1243 --with-system-redland Use redland library already on system
1245 --with-system-mozilla Use mozilla already on system. Note that some
1246 components cannot be built against a contemporary
1247 mozilla. The flavour used can be specified by
1248 --with-system-mozilla=<flavour>. Supported are:
1249 libxul (default), xulrunner, firefox, seamonkey,
1250 mozilla
1252 --with-stlport The location that STLport is installed in. The STL
1253 header files are assumed to be in
1254 stlport-home/stlport and the STLPort library in
1255 stlport-home/lib.
1257 Usage: --with-stlport=<absolute path to stlport home>
1259 Warning!!, disabling using --without-stlport or
1260 enabling using --with-stlport on a platform that
1261 defaults to the opposite will break ABI compatability
1263 --with-jdk-home if you have installed JDK 1.3 or later on your system
1264 please supply the path here.
1265 Note that this is not the location of the Java binary
1266 but the location of the entire distribution.
1268 Usage: --with-jdk-home=<absolute path to JDK home>
1270 --with-gxx-include-path if you want to override the autodetected g++ include
1271 path.
1273 Usage: --with-gxx-include-path=<absolute path to g++ include dir>
1275 --with-java Build with[out] Java support. If you use
1276 --without-java/--with-java=no then the build will have
1277 no support for Java components, applets, accessibility
1278 or XML filters.
1280 --with-ant-home If you have installed Jakarta Ant on your system,
1281 please supply the path here.
1282 Note that this is not the location of the Ant binary
1283 but the location of the entire distribution.
1285 Usage: --with-ant-home=<absolute path to Ant home>
1287 --with-junit Specifies the JUnit 4 jar file to use for JUnit-based
1288 tests. --without-junit disables those tests. Not
1289 relevant in the --without-java case.
1291 Usage: --with-junit=<absolute path to JUnit 4 jar>
1293 --with-perl-home If you have installed the Perl 5 Distribution, on your
1294 system, please supply the path here.
1295 Note that this is not the location of the Perl binary
1296 but the location of the entire distribution.
1298 Usage: --with-perl-home=<absolute path to Perl 5 home>
1300 --with-cl-home For Windows NT users, please supply the path
1301 for the Microsoft C/C++ compiler.
1302 Note that this is not the location of the compiler
1303 binary but the location of the entire distribution.
1305 Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>
1307 --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
1308 path pointing to the mspdb71.dll (.NET 2003).
1310 Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
1312 --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
1313 the path pointing to the midl.exe.
1315 Usage: --with-midl-path=<absolute path to midl.exe>
1317 --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
1318 the path pointing to the csc.exe.
1320 Usage: --with-csc-path=<absolute path to csc.exe>
1322 --with-nsis-path For Windows users, please supply the path to the
1323 "Nullsoft Scriptable Install System" (NSIS). If NSIS
1324 is found in the path or this option is supplied a self
1325 contained executable installer for OpenOffice.org will
1326 be created.
1328 Usage: --with-nsis-path=<absolute path to nsis.exe>
1330 --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
1331 the path pointing to lib/mscoree.lib, usually
1332 something like:
1333 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"
1335 MS Visual Toolkit compiler users, please supply the
1336 path pointing to lib/msvcrt.lib, usually something
1337 like:
1338 "/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
1340 Usage: --with-frame-home=<absolute path to Framework SDK [home]>
1342 --with-psdk-home For Windows users, please supply the path to the
1343 Microsoft Platform SDK.
1345 Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
1347 --with-directx-home For Windows users, please supply the path to the
1348 Microsoft DirectX SDK.
1350 Usage: --with-directx-home=<absolute path to Microsoft DirectX SDK>
1352 --with-mozilla-build For Windows users, please supply the path to the
1353 mozilla build tools.
1355 Usage: --with-mozilla-build=<absolute path to mozilla build tools>
1357 At the moment of this writing, an installer for the mozilla build tools
1358 can be obtained from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
1360 --with-local-solenv If you have solenv in a location other than ./solenv,
1361 please supply the path here.
1363 Usage: --with-local-solenv=<absolute path to solenv>
1365 --with-local-solver if you have solver in a location other than ./solver,
1366 please supply the path here.
1368 Usage: --with-local-solver=<absolute path to solver>
1370 --with-lang Use this option to build OpenOffice.org with
1371 additional language support. English (US) is always
1372 included by default. Separate multiple languages with
1373 space. For all languages, use --with-lang=ALL.
1375 Usage: --with-lang="es sw tu cs sk"
1377 --with-poor-help-localizations
1378 Use this option to specify which languages have
1379 unusable help localizations. Separate multiple
1380 languages with space.
1382 Usage: --with-poor-help-localizations="af ar be-BY ca"
1384 --with-dict Use this option to build OpenOffice.org with
1385 dictionary support. ALL dictionaries are always
1386 included by default unless overridden with
1387 this option. Separate multiple dictionaries with
1388 commas. For all dictionaries, use --with-dict=ALL.
1390 Usage: --with-dict=ENGB,ENUS,ITIT
1392 --with-intro-bitmaps Prefer the specified intro bitmaps over the
1393 the default one. Can be more than one (separated by
1394 commas), the order means priority of fallback if the
1395 first does not exist (in the installed tree).
1397 Usage: --with-intro-bitmaps=/path/my_ooo_intro.bmp
1399 --with-about-bitmaps Similarly to --with-intro-bitmaps, this allows
1400 specification of bitmaps for the About box.
1402 Usage: --with-about-bitmaps=/path/my_ooo_about.bmp
1404 --with-vendor Set vendor of the build.
1406 Usage: --with-vendor="John the Builder"
1408 --with-unix-wrapper Redefines the name of the UNIX wrapper that will be used
1409 in the desktop files and in the desktop-integration RPMs.
1411 Usage: --with-unix-wrapper=ooffice
1413 --with-asm-home For Windows users, please supply the path for the
1414 ml.exe assembler.
1416 Usage: --with-asm-home=<path to ml.exe directory>
1418 --with-os-version For FreeBSD users, use this option option to override
1419 the detected OSVERSION.
1421 Usage: --with-os-version=<OSVERSION>
1423 --with-unzip-home Deprecated: use --with-zip-home instead
1424 --with-zip-home If you use a non standard zip, for example windows
1425 please supply the path for zip
1427 Usage: --with-zip-home=<path to zip executable>
1429 --with-mingwin For Windows users, use the mingwin32 compiler within
1430 cygwin environment
1432 Usage: --with-mingwin=yes
1434 For !Windows use, use the mingw32 C++ compiler to
1435 (re-) build unowinreg.dll. Specify the MinGW C++
1436 Compilers name.
1438 Usage: --with-mingwin=i586-mingw32msvc-g++
1440 --with-build-version Allows the builder to add a custom version tag
1441 that will appear in the Help/About box for QA
1442 purposes.
1444 Usage: --with-build-version="Built by Jim"
1446 --with-alloc Define which allocator to build with
1447 (choices are oo, system, tcmalloc, jemalloc)
1449 Note that on FreeBSD/NetBSD system==jemalloc
1451 --with-x use the X Window System
1453 Some influential environment variables:
1454 CC C compiler command
1455 CFLAGS C compiler flags
1456 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1457 nonstandard directory <lib dir>
1458 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1459 headers in a nonstandard directory <include dir>
1460 CPP C preprocessor
1461 CXX C++ compiler command
1462 CXXFLAGS C++ compiler flags
1463 CXXCPP C++ preprocessor
1465 Use these variables to override the choices made by `configure' or to help
1466 it to find libraries and programs with nonstandard names/locations.
1468 _ACEOF
1471 if test "$ac_init_help" = "recursive"; then
1472 # If there are subdirs, report their specific --help.
1473 ac_popdir=`pwd`
1474 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1475 test -d $ac_dir || continue
1476 ac_builddir=.
1478 if test "$ac_dir" != .; then
1479 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1480 # A "../" for each directory in $ac_dir_suffix.
1481 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1482 else
1483 ac_dir_suffix= ac_top_builddir=
1486 case $srcdir in
1487 .) # No --srcdir option. We are building in place.
1488 ac_srcdir=.
1489 if test -z "$ac_top_builddir"; then
1490 ac_top_srcdir=.
1491 else
1492 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1493 fi ;;
1494 [\\/]* | ?:[\\/]* ) # Absolute path.
1495 ac_srcdir=$srcdir$ac_dir_suffix;
1496 ac_top_srcdir=$srcdir ;;
1497 *) # Relative path.
1498 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1499 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1500 esac
1502 # Do not use `cd foo && pwd` to compute absolute paths, because
1503 # the directories may not exist.
1504 case `pwd` in
1505 .) ac_abs_builddir="$ac_dir";;
1507 case "$ac_dir" in
1508 .) ac_abs_builddir=`pwd`;;
1509 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1510 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1511 esac;;
1512 esac
1513 case $ac_abs_builddir in
1514 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1516 case ${ac_top_builddir}. in
1517 .) ac_abs_top_builddir=$ac_abs_builddir;;
1518 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1519 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1520 esac;;
1521 esac
1522 case $ac_abs_builddir in
1523 .) ac_abs_srcdir=$ac_srcdir;;
1525 case $ac_srcdir in
1526 .) ac_abs_srcdir=$ac_abs_builddir;;
1527 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1528 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1529 esac;;
1530 esac
1531 case $ac_abs_builddir in
1532 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1534 case $ac_top_srcdir in
1535 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1536 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1537 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1538 esac;;
1539 esac
1541 cd $ac_dir
1542 # Check for guested configure; otherwise get Cygnus style configure.
1543 if test -f $ac_srcdir/configure.gnu; then
1544 echo
1545 $SHELL $ac_srcdir/configure.gnu --help=recursive
1546 elif test -f $ac_srcdir/configure; then
1547 echo
1548 $SHELL $ac_srcdir/configure --help=recursive
1549 elif test -f $ac_srcdir/configure.ac ||
1550 test -f $ac_srcdir/configure.in; then
1551 echo
1552 $ac_configure --help
1553 else
1554 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1556 cd $ac_popdir
1557 done
1560 test -n "$ac_init_help" && exit 0
1561 if $ac_init_version; then
1562 cat <<\_ACEOF
1564 Copyright (C) 2003 Free Software Foundation, Inc.
1565 This configure script is free software; the Free Software Foundation
1566 gives unlimited permission to copy, distribute and modify it.
1567 _ACEOF
1568 exit 0
1570 exec 5>config.log
1571 cat >&5 <<_ACEOF
1572 This file contains any messages produced by compilers while
1573 running configure, to aid debugging if configure makes a mistake.
1575 It was created by $as_me, which was
1576 generated by GNU Autoconf 2.59. Invocation command line was
1578 $ $0 $@
1580 _ACEOF
1582 cat <<_ASUNAME
1583 ## --------- ##
1584 ## Platform. ##
1585 ## --------- ##
1587 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1588 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1589 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1590 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1591 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1593 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1594 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1596 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1597 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1598 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1599 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1600 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1601 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1602 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1604 _ASUNAME
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 echo "PATH: $as_dir"
1612 done
1614 } >&5
1616 cat >&5 <<_ACEOF
1619 ## ----------- ##
1620 ## Core tests. ##
1621 ## ----------- ##
1623 _ACEOF
1626 # Keep a trace of the command line.
1627 # Strip out --no-create and --no-recursion so they do not pile up.
1628 # Strip out --silent because we don't want to record it for future runs.
1629 # Also quote any args containing shell meta-characters.
1630 # Make two passes to allow for proper duplicate-argument suppression.
1631 ac_configure_args=
1632 ac_configure_args0=
1633 ac_configure_args1=
1634 ac_sep=
1635 ac_must_keep_next=false
1636 for ac_pass in 1 2
1638 for ac_arg
1640 case $ac_arg in
1641 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1642 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1643 | -silent | --silent | --silen | --sile | --sil)
1644 continue ;;
1645 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1646 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1647 esac
1648 case $ac_pass in
1649 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1651 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1652 if test $ac_must_keep_next = true; then
1653 ac_must_keep_next=false # Got value, back to normal.
1654 else
1655 case $ac_arg in
1656 *=* | --config-cache | -C | -disable-* | --disable-* \
1657 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1658 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1659 | -with-* | --with-* | -without-* | --without-* | --x)
1660 case "$ac_configure_args0 " in
1661 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1662 esac
1664 -* ) ac_must_keep_next=true ;;
1665 esac
1667 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1668 # Get rid of the leading space.
1669 ac_sep=" "
1671 esac
1672 done
1673 done
1674 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1675 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1677 # When interrupted or exit'd, cleanup temporary files, and complete
1678 # config.log. We remove comments because anyway the quotes in there
1679 # would cause problems or look ugly.
1680 # WARNING: Be sure not to use single quotes in there, as some shells,
1681 # such as our DU 5.0 friend, will then `close' the trap.
1682 trap 'exit_status=$?
1683 # Save into config.log some information that might help in debugging.
1685 echo
1687 cat <<\_ASBOX
1688 ## ---------------- ##
1689 ## Cache variables. ##
1690 ## ---------------- ##
1691 _ASBOX
1692 echo
1693 # The following way of writing the cache mishandles newlines in values,
1695 (set) 2>&1 |
1696 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1697 *ac_space=\ *)
1698 sed -n \
1699 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1700 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1703 sed -n \
1704 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1706 esac;
1708 echo
1710 cat <<\_ASBOX
1711 ## ----------------- ##
1712 ## Output variables. ##
1713 ## ----------------- ##
1714 _ASBOX
1715 echo
1716 for ac_var in $ac_subst_vars
1718 eval ac_val=$`echo $ac_var`
1719 echo "$ac_var='"'"'$ac_val'"'"'"
1720 done | sort
1721 echo
1723 if test -n "$ac_subst_files"; then
1724 cat <<\_ASBOX
1725 ## ------------- ##
1726 ## Output files. ##
1727 ## ------------- ##
1728 _ASBOX
1729 echo
1730 for ac_var in $ac_subst_files
1732 eval ac_val=$`echo $ac_var`
1733 echo "$ac_var='"'"'$ac_val'"'"'"
1734 done | sort
1735 echo
1738 if test -s confdefs.h; then
1739 cat <<\_ASBOX
1740 ## ----------- ##
1741 ## confdefs.h. ##
1742 ## ----------- ##
1743 _ASBOX
1744 echo
1745 sed "/^$/d" confdefs.h | sort
1746 echo
1748 test "$ac_signal" != 0 &&
1749 echo "$as_me: caught signal $ac_signal"
1750 echo "$as_me: exit $exit_status"
1751 } >&5
1752 rm -f core *.core &&
1753 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1754 exit $exit_status
1756 for ac_signal in 1 2 13 15; do
1757 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 done
1759 ac_signal=0
1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1762 rm -rf conftest* confdefs.h
1763 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1764 echo >confdefs.h
1766 # Predefined preprocessor variables.
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_NAME "$PACKAGE_NAME"
1770 _ACEOF
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1775 _ACEOF
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1780 _ACEOF
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_STRING "$PACKAGE_STRING"
1785 _ACEOF
1788 cat >>confdefs.h <<_ACEOF
1789 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1790 _ACEOF
1793 # Let the site file select an alternate cache file if it wants to.
1794 # Prefer explicitly selected file to automatically selected ones.
1795 if test -z "$CONFIG_SITE"; then
1796 if test "x$prefix" != xNONE; then
1797 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1798 else
1799 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1802 for ac_site_file in $CONFIG_SITE; do
1803 if test -r "$ac_site_file"; then
1804 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1805 echo "$as_me: loading site script $ac_site_file" >&6;}
1806 sed 's/^/| /' "$ac_site_file" >&5
1807 . "$ac_site_file"
1809 done
1811 if test -r "$cache_file"; then
1812 # Some versions of bash will fail to source /dev/null (special
1813 # files actually), so we avoid doing that.
1814 if test -f "$cache_file"; then
1815 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1816 echo "$as_me: loading cache $cache_file" >&6;}
1817 case $cache_file in
1818 [\\/]* | ?:[\\/]* ) . $cache_file;;
1819 *) . ./$cache_file;;
1820 esac
1822 else
1823 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1824 echo "$as_me: creating cache $cache_file" >&6;}
1825 >$cache_file
1828 # Check that the precious variables saved in the cache have kept the same
1829 # value.
1830 ac_cache_corrupted=false
1831 for ac_var in `(set) 2>&1 |
1832 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1833 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834 eval ac_new_set=\$ac_env_${ac_var}_set
1835 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1836 eval ac_new_val="\$ac_env_${ac_var}_value"
1837 case $ac_old_set,$ac_new_set in
1838 set,)
1839 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841 ac_cache_corrupted=: ;;
1842 ,set)
1843 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845 ac_cache_corrupted=: ;;
1846 ,);;
1848 if test "x$ac_old_val" != "x$ac_new_val"; then
1849 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1852 echo "$as_me: former value: $ac_old_val" >&2;}
1853 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1854 echo "$as_me: current value: $ac_new_val" >&2;}
1855 ac_cache_corrupted=:
1856 fi;;
1857 esac
1858 # Pass precious variables to config.status.
1859 if test "$ac_new_set" = set; then
1860 case $ac_new_val in
1861 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1862 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1863 *) ac_arg=$ac_var=$ac_new_val ;;
1864 esac
1865 case " $ac_configure_args " in
1866 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1867 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1868 esac
1870 done
1871 if $ac_cache_corrupted; then
1872 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1873 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1874 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1875 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1876 { (exit 1); exit 1; }; }
1879 ac_ext=c
1880 ac_cpp='$CPP $CPPFLAGS'
1881 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1882 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1883 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1903 echo "$@" >config.parms
1905 # Check whether --with-gnu-patch or --without-gnu-patch was given.
1906 if test "${with_gnu_patch+set}" = set; then
1907 withval="$with_gnu_patch"
1911 # Check whether --with-agg or --without-agg was given.
1912 if test "${with_agg+set}" = set; then
1913 withval="$with_agg"
1915 else
1916 with_agg=yes
1919 # Check whether --with-gnu-cp or --without-gnu-cp was given.
1920 if test "${with_gnu_cp+set}" = set; then
1921 withval="$with_gnu_cp"
1924 # Check whether --enable-graphite or --disable-graphite was given.
1925 if test "${enable_graphite+set}" = set; then
1926 enableval="$enable_graphite"
1930 # Check whether --with-system-graphite or --without-system-graphite was given.
1931 if test "${with_system_graphite+set}" = set; then
1932 withval="$with_system_graphite"
1935 # Check whether --enable-ldap or --disable-ldap was given.
1936 if test "${enable_ldap+set}" = set; then
1937 enableval="$enable_ldap"
1940 # Check whether --enable-fetch-external or --disable-fetch-external was given.
1941 if test "${enable_fetch_external+set}" = set; then
1942 enableval="$enable_fetch_external"
1946 # Check whether --with-external-tar or --without-external-tar was given.
1947 if test "${with_external_tar+set}" = set; then
1948 withval="$with_external_tar"
1949 TARFILE_LOCATION="$withval"
1953 # Check whether --with-openldap or --without-openldap was given.
1954 if test "${with_openldap+set}" = set; then
1955 withval="$with_openldap"
1958 # Check whether --enable-lockdown or --disable-lockdown was given.
1959 if test "${enable_lockdown+set}" = set; then
1960 enableval="$enable_lockdown"
1963 # Check whether --enable-vba or --disable-vba was given.
1964 if test "${enable_vba+set}" = set; then
1965 enableval="$enable_vba"
1969 # Check whether --with-vba-package-format or --without-vba-package-format was given.
1970 if test "${with_vba_package_format+set}" = set; then
1971 withval="$with_vba_package_format"
1974 # Check whether --enable-pch or --disable-pch was given.
1975 if test "${enable_pch+set}" = set; then
1976 enableval="$enable_pch"
1979 # Check whether --enable-hids or --disable-hids was given.
1980 if test "${enable_hids+set}" = set; then
1981 enableval="$enable_hids"
1984 # Check whether --enable-mozilla or --disable-mozilla was given.
1985 if test "${enable_mozilla+set}" = set; then
1986 enableval="$enable_mozilla"
1988 else
1989 enable_mozilla="yes"
1992 # Check whether --with-fonts or --without-fonts was given.
1993 if test "${with_fonts+set}" = set; then
1994 withval="$with_fonts"
1998 # Check whether --with-ppds or --without-ppds was given.
1999 if test "${with_ppds+set}" = set; then
2000 withval="$with_ppds"
2004 # Check whether --with-afms or --without-afms was given.
2005 if test "${with_afms+set}" = set; then
2006 withval="$with_afms"
2009 # Check whether --enable-epm or --disable-epm was given.
2010 if test "${enable_epm+set}" = set; then
2011 enableval="$enable_epm"
2013 else
2014 enable_epm="yes"
2017 # Check whether --with-epm or --without-epm was given.
2018 if test "${with_epm+set}" = set; then
2019 withval="$with_epm"
2023 # Check whether --with-package-format or --without-package-format was given.
2024 if test "${with_package_format+set}" = set; then
2025 withval="$with_package_format"
2028 # Check whether --enable-odk or --disable-odk was given.
2029 if test "${enable_odk+set}" = set; then
2030 enableval="$enable_odk"
2032 else
2033 enable_odk="yes"
2035 # Check whether --enable-mathmldtd or --disable-mathmldtd was given.
2036 if test "${enable_mathmldtd+set}" = set; then
2037 enableval="$enable_mathmldtd"
2039 else
2040 enable_mathmldtd="yes"
2042 # Check whether --enable-evolution2 or --disable-evolution2 was given.
2043 if test "${enable_evolution2+set}" = set; then
2044 enableval="$enable_evolution2"
2048 # Check whether --with-system-stdlibs or --without-system-stdlibs was given.
2049 if test "${with_system_stdlibs+set}" = set; then
2050 withval="$with_system_stdlibs"
2053 # Check whether --enable-cups or --disable-cups was given.
2054 if test "${enable_cups+set}" = set; then
2055 enableval="$enable_cups"
2057 else
2058 enable_cups=yes
2060 # Check whether --enable-fontconfig or --disable-fontconfig was given.
2061 if test "${enable_fontconfig+set}" = set; then
2062 enableval="$enable_fontconfig"
2064 else
2065 enable_fontconfig=yes
2067 # Check whether --enable-directx or --disable-directx was given.
2068 if test "${enable_directx+set}" = set; then
2069 enableval="$enable_directx"
2071 else
2072 enable_directx=yes
2074 # Check whether --enable-activex or --disable-activex was given.
2075 if test "${enable_activex+set}" = set; then
2076 enableval="$enable_activex"
2080 # Check whether --enable-atl or --disable-atl was given.
2081 if test "${enable_atl+set}" = set; then
2082 enableval="$enable_atl"
2086 # Check whether --enable-symbols or --disable-symbols was given.
2087 if test "${enable_symbols+set}" = set; then
2088 enableval="$enable_symbols"
2091 # Check whether --enable-strip-solver or --disable-strip-solver was given.
2092 if test "${enable_strip_solver+set}" = set; then
2093 enableval="$enable_strip_solver"
2096 # Check whether --enable-werror or --disable-werror was given.
2097 if test "${enable_werror+set}" = set; then
2098 enableval="$enable_werror"
2101 # Check whether --enable-debug or --disable-debug was given.
2102 if test "${enable_debug+set}" = set; then
2103 enableval="$enable_debug"
2106 # Check whether --enable-dbgutil or --disable-dbgutil was given.
2107 if test "${enable_dbgutil+set}" = set; then
2108 enableval="$enable_dbgutil"
2111 # Check whether --enable-crashdump or --disable-crashdump was given.
2112 if test "${enable_crashdump+set}" = set; then
2113 enableval="$enable_crashdump"
2116 # Check whether --enable-cl-standard or --disable-cl-standard was given.
2117 if test "${enable_cl_standard+set}" = set; then
2118 enableval="$enable_cl_standard"
2121 # Check whether --enable-gtk or --disable-gtk was given.
2122 if test "${enable_gtk+set}" = set; then
2123 enableval="$enable_gtk"
2125 else
2126 enable_gtk=yes
2128 # Check whether --enable-systray or --disable-systray was given.
2129 if test "${enable_systray+set}" = set; then
2130 enableval="$enable_systray"
2132 else
2133 enable_systray=yes
2135 # Check whether --enable-cairo or --disable-cairo was given.
2136 if test "${enable_cairo+set}" = set; then
2137 enableval="$enable_cairo"
2139 else
2140 enable_cairo=no
2143 # Check whether --with-system-cairo or --without-system-cairo was given.
2144 if test "${with_system_cairo+set}" = set; then
2145 withval="$with_system_cairo"
2148 # Check whether --enable-opengl or --disable-opengl was given.
2149 if test "${enable_opengl+set}" = set; then
2150 enableval="$enable_opengl"
2152 else
2153 enable_opengl=no
2155 # Check whether --enable-dbus or --disable-dbus was given.
2156 if test "${enable_dbus+set}" = set; then
2157 enableval="$enable_dbus"
2159 else
2160 enable_dbus=no
2162 # Check whether --enable-gconf or --disable-gconf was given.
2163 if test "${enable_gconf+set}" = set; then
2164 enableval="$enable_gconf"
2166 else
2167 enable_gconf=yes
2169 # Check whether --enable-gnome-vfs or --disable-gnome-vfs was given.
2170 if test "${enable_gnome_vfs+set}" = set; then
2171 enableval="$enable_gnome_vfs"
2173 else
2174 enable_gnome_vfs=yes
2176 # Check whether --enable-gio or --disable-gio was given.
2177 if test "${enable_gio+set}" = set; then
2178 enableval="$enable_gio"
2180 else
2181 enable_gio=no
2183 # Check whether --enable-static-gtk or --disable-static-gtk was given.
2184 if test "${enable_static_gtk+set}" = set; then
2185 enableval="$enable_static_gtk"
2188 # Check whether --enable-layout or --disable-layout was given.
2189 if test "${enable_layout+set}" = set; then
2190 enableval="$enable_layout"
2193 # Check whether --enable-build-mozilla or --disable-build-mozilla was given.
2194 if test "${enable_build_mozilla+set}" = set; then
2195 enableval="$enable_build_mozilla"
2199 # Check whether --with-mozilla-version or --without-mozilla-version was given.
2200 if test "${with_mozilla_version+set}" = set; then
2201 withval="$with_mozilla_version"
2205 # Check whether --with-mozilla-toolkit or --without-mozilla-toolkit was given.
2206 if test "${with_mozilla_toolkit+set}" = set; then
2207 withval="$with_mozilla_toolkit"
2210 # Check whether --enable-nss_module or --disable-nss_module was given.
2211 if test "${enable_nss_module+set}" = set; then
2212 enableval="$enable_nss_module"
2214 else
2215 enable_nss_module=yes
2217 # Check whether --enable-kde or --disable-kde was given.
2218 if test "${enable_kde+set}" = set; then
2219 enableval="$enable_kde"
2222 # Check whether --enable-kdeab or --disable-kdeab was given.
2223 if test "${enable_kdeab+set}" = set; then
2224 enableval="$enable_kdeab"
2226 else
2227 if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi
2229 # Check whether --enable-kde4 or --disable-kde4 was given.
2230 if test "${enable_kde4+set}" = set; then
2231 enableval="$enable_kde4"
2234 # Check whether --enable-binfilter or --disable-binfilter was given.
2235 if test "${enable_binfilter+set}" = set; then
2236 enableval="$enable_binfilter"
2238 else
2239 if ! test -d ./binfilter; then enable_binfilter=no; fi
2241 # Check whether --enable-rpath or --disable-rpath was given.
2242 if test "${enable_rpath+set}" = set; then
2243 enableval="$enable_rpath"
2246 # Check whether --enable-pam or --disable-pam was given.
2247 if test "${enable_pam+set}" = set; then
2248 enableval="$enable_pam"
2251 # Check whether --enable-pam-link or --disable-pam-link was given.
2252 if test "${enable_pam_link+set}" = set; then
2253 enableval="$enable_pam_link"
2256 # Check whether --enable-crypt-link or --disable-crypt-link was given.
2257 if test "${enable_crypt_link+set}" = set; then
2258 enableval="$enable_crypt_link"
2260 else
2261 enable_crypt_link=yes
2263 # Check whether --enable-xrender-link or --disable-xrender-link was given.
2264 if test "${enable_xrender_link+set}" = set; then
2265 enableval="$enable_xrender_link"
2268 # Check whether --enable-randr or --disable-randr was given.
2269 if test "${enable_randr+set}" = set; then
2270 enableval="$enable_randr"
2272 else
2273 enable_randr=yes
2275 # Check whether --enable-randr-link or --disable-randr-link was given.
2276 if test "${enable_randr_link+set}" = set; then
2277 enableval="$enable_randr_link"
2279 else
2280 enable_randr_link=yes
2283 # Check whether --with-myspell-dicts or --without-myspell-dicts was given.
2284 if test "${with_myspell_dicts+set}" = set; then
2285 withval="$with_myspell_dicts"
2289 # Check whether --with-system-dicts or --without-system-dicts was given.
2290 if test "${with_system_dicts+set}" = set; then
2291 withval="$with_system_dicts"
2295 # Check whether --with-external-dict-dir or --without-external-dict-dir was given.
2296 if test "${with_external_dict_dir+set}" = set; then
2297 withval="$with_external_dict_dir"
2301 # Check whether --with-external-hyph-dir or --without-external-hyph-dir was given.
2302 if test "${with_external_hyph_dir+set}" = set; then
2303 withval="$with_external_hyph_dir"
2307 # Check whether --with-external-thes-dir or --without-external-thes-dir was given.
2308 if test "${with_external_thes_dir+set}" = set; then
2309 withval="$with_external_thes_dir"
2313 # Check whether --with-system-libs or --without-system-libs was given.
2314 if test "${with_system_libs+set}" = set; then
2315 withval="$with_system_libs"
2319 # Check whether --with-system-headers or --without-system-headers was given.
2320 if test "${with_system_headers+set}" = set; then
2321 withval="$with_system_headers"
2325 # Check whether --with-system-jars or --without-system-jars was given.
2326 if test "${with_system_jars+set}" = set; then
2327 withval="$with_system_jars"
2331 # Check whether --with-system-zlib or --without-system-zlib was given.
2332 if test "${with_system_zlib+set}" = set; then
2333 withval="$with_system_zlib"
2337 # Check whether --with-system-openssl or --without-system-openssl was given.
2338 if test "${with_system_openssl+set}" = set; then
2339 withval="$with_system_openssl"
2343 # Check whether --with-system-jpeg or --without-system-jpeg was given.
2344 if test "${with_system_jpeg+set}" = set; then
2345 withval="$with_system_jpeg"
2349 # Check whether --with-system-expat or --without-system-expat was given.
2350 if test "${with_system_expat+set}" = set; then
2351 withval="$with_system_expat"
2355 # Check whether --with-system-libwpd or --without-system-libwpd was given.
2356 if test "${with_system_libwpd+set}" = set; then
2357 withval="$with_system_libwpd"
2361 # Check whether --with-system-libxml or --without-system-libxml was given.
2362 if test "${with_system_libxml+set}" = set; then
2363 withval="$with_system_libxml"
2367 # Check whether --with-system-python or --without-system-python was given.
2368 if test "${with_system_python+set}" = set; then
2369 withval="$with_system_python"
2373 # Check whether --with-system-icu or --without-system-icu was given.
2374 if test "${with_system_icu+set}" = set; then
2375 withval="$with_system_icu"
2379 # Check whether --with-system-poppler or --without-system-poppler was given.
2380 if test "${with_system_poppler+set}" = set; then
2381 withval="$with_system_poppler"
2385 # Check whether --with-system-db or --without-system-db was given.
2386 if test "${with_system_db+set}" = set; then
2387 withval="$with_system_db"
2391 # Check whether --with-system-lucene or --without-system-lucene was given.
2392 if test "${with_system_lucene+set}" = set; then
2393 withval="$with_system_lucene"
2397 # Check whether --with-lucene-core-jar or --without-lucene-core-jar was given.
2398 if test "${with_lucene_core_jar+set}" = set; then
2399 withval="$with_lucene_core_jar"
2400 LUCENE_CORE_JAR="$withval"
2404 # Check whether --with-lucene-analyzers-jar or --without-lucene-analyzers-jar was given.
2405 if test "${with_lucene_analyzers_jar+set}" = set; then
2406 withval="$with_lucene_analyzers_jar"
2407 LUCENE_ANALYZERS_JAR="$withval"
2410 # Check whether --enable-mysql-connector or --disable-mysql-connector was given.
2411 if test "${enable_mysql_connector+set}" = set; then
2412 enableval="$enable_mysql_connector"
2416 # Check whether --with-system-mysql or --without-system-mysql was given.
2417 if test "${with_system_mysql+set}" = set; then
2418 withval="$with_system_mysql"
2422 # Check whether --with-libmysql-path or --without-libmysql-path was given.
2423 if test "${with_libmysql_path+set}" = set; then
2424 withval="$with_libmysql_path"
2428 # Check whether --with-system-mysql-cppconn or --without-system-mysql-cppconn was given.
2429 if test "${with_system_mysql_cppconn+set}" = set; then
2430 withval="$with_system_mysql_cppconn"
2434 # Check whether --with-system-hsqldb or --without-system-hsqldb was given.
2435 if test "${with_system_hsqldb+set}" = set; then
2436 withval="$with_system_hsqldb"
2440 # Check whether --with-hsqldb-jar or --without-hsqldb-jar was given.
2441 if test "${with_hsqldb_jar+set}" = set; then
2442 withval="$with_hsqldb_jar"
2443 HSQLDB_JAR="$withval"
2447 # Check whether --with-system-beanshell or --without-system-beanshell was given.
2448 if test "${with_system_beanshell+set}" = set; then
2449 withval="$with_system_beanshell"
2453 # Check whether --with-beanshell-jar or --without-beanshell-jar was given.
2454 if test "${with_beanshell_jar+set}" = set; then
2455 withval="$with_beanshell_jar"
2456 BSH_JAR="$withval"
2459 # Check whether --enable-presenter-extra-ui or --disable-presenter-extra-ui was given.
2460 if test "${enable_presenter_extra_ui+set}" = set; then
2461 enableval="$enable_presenter_extra_ui"
2463 else
2464 enable_presenter_extra_ui=no
2466 # Check whether --enable-minimizer or --disable-minimizer was given.
2467 if test "${enable_minimizer+set}" = set; then
2468 enableval="$enable_minimizer"
2471 # Check whether --enable-presenter-console or --disable-presenter-console was given.
2472 if test "${enable_presenter_console+set}" = set; then
2473 enableval="$enable_presenter_console"
2476 # Check whether --enable-pdfimport or --disable-pdfimport was given.
2477 if test "${enable_pdfimport+set}" = set; then
2478 enableval="$enable_pdfimport"
2481 # Check whether --enable-wiki-publisher or --disable-wiki-publisher was given.
2482 if test "${enable_wiki_publisher+set}" = set; then
2483 enableval="$enable_wiki_publisher"
2487 # Check whether --with-commons-codec-jar or --without-commons-codec-jar was given.
2488 if test "${with_commons_codec_jar+set}" = set; then
2489 withval="$with_commons_codec_jar"
2490 COMMONS_CODEC_JAR="$withval"
2494 # Check whether --with-commons-lang-jar or --without-commons-lang-jar was given.
2495 if test "${with_commons_lang_jar+set}" = set; then
2496 withval="$with_commons_lang_jar"
2497 COMMONS_LANG_JAR="$withval"
2501 # Check whether --with-commons-httpclient-jar or --without-commons-httpclient-jar was given.
2502 if test "${with_commons_httpclient_jar+set}" = set; then
2503 withval="$with_commons_httpclient_jar"
2504 COMMONS_HTTPCLIENT_JAR="$withval"
2508 # Check whether --with-commons-logging-jar or --without-commons-logging-jar was given.
2509 if test "${with_commons_logging_jar+set}" = set; then
2510 withval="$with_commons_logging_jar"
2511 COMMONS_LOGGING_JAR="$withval"
2515 # Check whether --with-servlet-api-jar or --without-servlet-api-jar was given.
2516 if test "${with_servlet_api_jar+set}" = set; then
2517 withval="$with_servlet_api_jar"
2518 SERVLETAPI_JAR="$withval"
2521 # Check whether --enable-report-builder or --disable-report-builder was given.
2522 if test "${enable_report_builder+set}" = set; then
2523 enableval="$enable_report_builder"
2527 # Check whether --with-system-jfreereport or --without-system-jfreereport was given.
2528 if test "${with_system_jfreereport+set}" = set; then
2529 withval="$with_system_jfreereport"
2533 # Check whether --with-sac-jar or --without-sac-jar was given.
2534 if test "${with_sac_jar+set}" = set; then
2535 withval="$with_sac_jar"
2536 SAC_JAR="$withval"
2540 # Check whether --with-libxml-jar or --without-libxml-jar was given.
2541 if test "${with_libxml_jar+set}" = set; then
2542 withval="$with_libxml_jar"
2543 LIBXML_JAR="$withval"
2547 # Check whether --with-flute-jar or --without-flute-jar was given.
2548 if test "${with_flute_jar+set}" = set; then
2549 withval="$with_flute_jar"
2550 FLUTE_JAR="$withval"
2554 # Check whether --with-jfreereport-jar or --without-jfreereport-jar was given.
2555 if test "${with_jfreereport_jar+set}" = set; then
2556 withval="$with_jfreereport_jar"
2557 JFREEREPORT_JAR="$withval"
2561 # Check whether --with-liblayout-jar or --without-liblayout-jar was given.
2562 if test "${with_liblayout_jar+set}" = set; then
2563 withval="$with_liblayout_jar"
2564 LIBLAYOUT_JAR="$withval"
2568 # Check whether --with-libloader-jar or --without-libloader-jar was given.
2569 if test "${with_libloader_jar+set}" = set; then
2570 withval="$with_libloader_jar"
2571 LIBLOADER_JAR="$withval"
2575 # Check whether --with-libloader-jar or --without-libloader-jar was given.
2576 if test "${with_libloader_jar+set}" = set; then
2577 withval="$with_libloader_jar"
2578 LIBLOADER_JAR="$withval"
2582 # Check whether --with-libformula-jar or --without-libformula-jar was given.
2583 if test "${with_libformula_jar+set}" = set; then
2584 withval="$with_libformula_jar"
2585 LIBFORMULA_JAR="$withval"
2589 # Check whether --with-librepository-jar or --without-librepository-jar was given.
2590 if test "${with_librepository_jar+set}" = set; then
2591 withval="$with_librepository_jar"
2592 LIBREPOSITORY_JAR="$withval"
2596 # Check whether --with-libfonts-jar or --without-libfonts-jar was given.
2597 if test "${with_libfonts_jar+set}" = set; then
2598 withval="$with_libfonts_jar"
2599 LIBFONTS_JAR="$withval"
2603 # Check whether --with-libserializer-jar or --without-libserializer-jar was given.
2604 if test "${with_libserializer_jar+set}" = set; then
2605 withval="$with_libserializer_jar"
2606 LIBSERIALIZER_JAR="$withval"
2610 # Check whether --with-libbase-jar or --without-libbase-jar was given.
2611 if test "${with_libbase_jar+set}" = set; then
2612 withval="$with_libbase_jar"
2613 LIBBASE_JAR="$withval"
2617 # Check whether --with-system-saxon or --without-system-saxon was given.
2618 if test "${with_system_saxon+set}" = set; then
2619 withval="$with_system_saxon"
2623 # Check whether --with-saxon-jar or --without-saxon-jar was given.
2624 if test "${with_saxon_jar+set}" = set; then
2625 withval="$with_saxon_jar"
2626 SAXON_JAR="$withval"
2630 # Check whether --with-system-libxslt or --without-system-libxslt was given.
2631 if test "${with_system_libxslt+set}" = set; then
2632 withval="$with_system_libxslt"
2636 # Check whether --with-system-odbc or --without-system-odbc was given.
2637 if test "${with_system_odbc+set}" = set; then
2638 withval="$with_system_odbc"
2642 # Check whether --with-system-sane or --without-system-sane was given.
2643 if test "${with_system_sane+set}" = set; then
2644 withval="$with_system_sane"
2648 # Check whether --with-system-xrender or --without-system-xrender was given.
2649 if test "${with_system_xrender+set}" = set; then
2650 withval="$with_system_xrender"
2654 # Check whether --with-system-curl or --without-system-curl was given.
2655 if test "${with_system_curl+set}" = set; then
2656 withval="$with_system_curl"
2660 # Check whether --with-system-boost or --without-system-boost was given.
2661 if test "${with_system_boost+set}" = set; then
2662 withval="$with_system_boost"
2666 # Check whether --with-system-mdds or --without-system-mdds was given.
2667 if test "${with_system_mdds+set}" = set; then
2668 withval="$with_system_mdds"
2672 # Check whether --with-system-vigra or --without-system-vigra was given.
2673 if test "${with_system_vigra+set}" = set; then
2674 withval="$with_system_vigra"
2677 # Check whether --enable-neon or --disable-neon was given.
2678 if test "${enable_neon+set}" = set; then
2679 enableval="$enable_neon"
2682 # Check whether --enable-Xaw or --disable-Xaw was given.
2683 if test "${enable_Xaw+set}" = set; then
2684 enableval="$enable_Xaw"
2688 # Check whether --with-system-neon or --without-system-neon was given.
2689 if test "${with_system_neon+set}" = set; then
2690 withval="$with_system_neon"
2694 # Check whether --with-system-agg or --without-system-agg was given.
2695 if test "${with_system_agg+set}" = set; then
2696 withval="$with_system_agg"
2700 # Check whether --with-system-hunspell or --without-system-hunspell was given.
2701 if test "${with_system_hunspell+set}" = set; then
2702 withval="$with_system_hunspell"
2706 # Check whether --with-system-mythes or --without-system-mythes was given.
2707 if test "${with_system_mythes+set}" = set; then
2708 withval="$with_system_mythes"
2712 # Check whether --with-system-altlinuxhyph or --without-system-altlinuxhyph was given.
2713 if test "${with_system_altlinuxhyph+set}" = set; then
2714 withval="$with_system_altlinuxhyph"
2718 # Check whether --with-system-lpsolve or --without-system-lpsolve was given.
2719 if test "${with_system_lpsolve+set}" = set; then
2720 withval="$with_system_lpsolve"
2724 # Check whether --with-system-cppunit or --without-system-cppunit was given.
2725 if test "${with_system_cppunit+set}" = set; then
2726 withval="$with_system_cppunit"
2730 # Check whether --with-system-redland or --without-system-redland was given.
2731 if test "${with_system_redland+set}" = set; then
2732 withval="$with_system_redland"
2736 # Check whether --with-system-mozilla or --without-system-mozilla was given.
2737 if test "${with_system_mozilla+set}" = set; then
2738 withval="$with_system_mozilla"
2739 WITH_SYSTEM_MOZILLA=$withval
2740 else
2741 WITH_SYSTEM_MOZILLA=no
2744 # Check whether --with-stlport or --without-stlport was given.
2745 if test "${with_stlport+set}" = set; then
2746 withval="$with_stlport"
2747 WITH_STLPORT=$withval
2748 else
2749 WITH_STLPORT=auto
2752 # Check whether --with-jdk-home or --without-jdk-home was given.
2753 if test "${with_jdk_home+set}" = set; then
2754 withval="$with_jdk_home"
2758 # Check whether --with-gxx_include_path or --without-gxx_include_path was given.
2759 if test "${with_gxx_include_path+set}" = set; then
2760 withval="$with_gxx_include_path"
2764 # Check whether --with-java or --without-java was given.
2765 if test "${with_java+set}" = set; then
2766 withval="$with_java"
2767 if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi
2768 else
2769 WITH_JAVA=java
2771 # Check whether --enable-gcjaot or --disable-gcjaot was given.
2772 if test "${enable_gcjaot+set}" = set; then
2773 enableval="$enable_gcjaot"
2777 # Check whether --with-ant-home or --without-ant-home was given.
2778 if test "${with_ant_home+set}" = set; then
2779 withval="$with_ant_home"
2783 # Check whether --with-junit or --without-junit was given.
2784 if test "${with_junit+set}" = set; then
2785 withval="$with_junit"
2787 else
2788 with_junit=yes
2791 # Check whether --with-perl-home or --without-perl-home was given.
2792 if test "${with_perl_home+set}" = set; then
2793 withval="$with_perl_home"
2797 # Check whether --with-cl-home or --without-cl-home was given.
2798 if test "${with_cl_home+set}" = set; then
2799 withval="$with_cl_home"
2803 # Check whether --with-mspdb-path or --without-mspdb-path was given.
2804 if test "${with_mspdb_path+set}" = set; then
2805 withval="$with_mspdb_path"
2809 # Check whether --with-midl-path or --without-midl-path was given.
2810 if test "${with_midl_path+set}" = set; then
2811 withval="$with_midl_path"
2815 # Check whether --with-csc-path or --without-csc-path was given.
2816 if test "${with_csc_path+set}" = set; then
2817 withval="$with_csc_path"
2821 # Check whether --with-nsis-path or --without-nsis-path was given.
2822 if test "${with_nsis_path+set}" = set; then
2823 withval="$with_nsis_path"
2827 # Check whether --with-frame-home or --without-frame-home was given.
2828 if test "${with_frame_home+set}" = set; then
2829 withval="$with_frame_home"
2833 # Check whether --with-psdk-home or --without-psdk-home was given.
2834 if test "${with_psdk_home+set}" = set; then
2835 withval="$with_psdk_home"
2839 # Check whether --with-directx-home or --without-directx-home was given.
2840 if test "${with_directx_home+set}" = set; then
2841 withval="$with_directx_home"
2845 # Check whether --with-mozilla-build or --without-mozilla-build was given.
2846 if test "${with_mozilla_build+set}" = set; then
2847 withval="$with_mozilla_build"
2848 MOZILLABUILD=$withval
2851 # Check whether --with-local-solenv or --without-local-solenv was given.
2852 if test "${with_local_solenv+set}" = set; then
2853 withval="$with_local_solenv"
2857 # Check whether --with-local-solver or --without-local-solver was given.
2858 if test "${with_local_solver+set}" = set; then
2859 withval="$with_local_solver"
2862 # Check whether --enable-check-only or --disable-check-only was given.
2863 if test "${enable_check_only+set}" = set; then
2864 enableval="$enable_check_only"
2867 # Check whether --enable-ccache-skip or --disable-ccache-skip was given.
2868 if test "${enable_ccache_skip+set}" = set; then
2869 enableval="$enable_ccache_skip"
2871 else
2872 enable_ccache_skip=auto
2875 # Check whether --with-lang or --without-lang was given.
2876 if test "${with_lang+set}" = set; then
2877 withval="$with_lang"
2881 # Check whether --with-poor-help-localizations or --without-poor-help-localizations was given.
2882 if test "${with_poor_help_localizations+set}" = set; then
2883 withval="$with_poor_help_localizations"
2887 # Check whether --with-dict or --without-dict was given.
2888 if test "${with_dict+set}" = set; then
2889 withval="$with_dict"
2893 # Check whether --with-intro-bitmaps or --without-intro-bitmaps was given.
2894 if test "${with_intro_bitmaps+set}" = set; then
2895 withval="$with_intro_bitmaps"
2899 # Check whether --with-about-bitmaps or --without-about-bitmaps was given.
2900 if test "${with_about_bitmaps+set}" = set; then
2901 withval="$with_about_bitmaps"
2905 # Check whether --with-vendor or --without-vendor was given.
2906 if test "${with_vendor+set}" = set; then
2907 withval="$with_vendor"
2911 # Check whether --with-unix-wrapper or --without-unix-wrapper was given.
2912 if test "${with_unix_wrapper+set}" = set; then
2913 withval="$with_unix_wrapper"
2917 # Check whether --with-asm-home or --without-asm-home was given.
2918 if test "${with_asm_home+set}" = set; then
2919 withval="$with_asm_home"
2923 # Check whether --with-os-version or --without-os-version was given.
2924 if test "${with_os_version+set}" = set; then
2925 withval="$with_os_version"
2929 # Check whether --with-unzip-home or --without-unzip-home was given.
2930 if test "${with_unzip_home+set}" = set; then
2931 withval="$with_unzip_home"
2935 # Check whether --with-zip-home or --without-zip-home was given.
2936 if test "${with_zip_home+set}" = set; then
2937 withval="$with_zip_home"
2941 # Check whether --with-mingwin or --without-mingwin was given.
2942 if test "${with_mingwin+set}" = set; then
2943 withval="$with_mingwin"
2944 WITH_MINGWIN=$withval
2945 else
2946 WITH_MINGWIN=0
2949 # Check whether --with-build-version or --without-build-version was given.
2950 if test "${with_build_version+set}" = set; then
2951 withval="$with_build_version"
2952 with_build_version=$withval
2955 # Check whether --with-alloc or --without-alloc was given.
2956 if test "${with_alloc+set}" = set; then
2957 withval="$with_alloc"
2960 # Check whether --enable-verbose or --disable-verbose was given.
2961 if test "${enable_verbose+set}" = set; then
2962 enableval="$enable_verbose"
2965 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
2966 if test "${enable_dependency_tracking+set}" = set; then
2967 enableval="$enable_dependency_tracking"
2971 BUILD_TYPE="OOo"
2973 echo "********************************************************************"
2974 echo "* *"
2975 echo "* OpenOffice.org build configuration. *"
2976 echo "* *"
2977 echo "* The configure process checks your platform to see whether *"
2978 echo "* you can build OpenOffice.org on it. *"
2979 echo "* This process checks all pre-requisites and generates a file *"
2980 echo "* containing the necessary environment variables. *"
2981 echo "* Source this file after configure has ended successfully. *"
2982 echo "* *"
2983 echo "* Any warning that is generated during the configure process *"
2984 echo "* must be taken into account since it can be a reason for *"
2985 echo "* an unsuccessful build of OpenOffice.org *"
2986 echo "* *"
2987 echo "********************************************************************"
2988 echo ""
2989 echo "********************************************************************"
2990 echo "* *"
2991 echo "* Checking the platform pre-requisites. *"
2992 echo "* *"
2993 echo "********************************************************************"
2994 echo ""
2995 cat /dev/null > warn
2996 echo "$as_me:$LINENO: checking for egrep" >&5
2997 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2998 if test "${ac_cv_prog_egrep+set}" = set; then
2999 echo $ECHO_N "(cached) $ECHO_C" >&6
3000 else
3001 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
3002 then ac_cv_prog_egrep='grep -E'
3003 else ac_cv_prog_egrep='egrep'
3006 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
3007 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
3008 EGREP=$ac_cv_prog_egrep
3011 for ac_prog in gawk mawk nawk awk
3013 # Extract the first word of "$ac_prog", so it can be a program name with args.
3014 set dummy $ac_prog; ac_word=$2
3015 echo "$as_me:$LINENO: checking for $ac_word" >&5
3016 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3017 if test "${ac_cv_prog_AWK+set}" = set; then
3018 echo $ECHO_N "(cached) $ECHO_C" >&6
3019 else
3020 if test -n "$AWK"; then
3021 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3022 else
3023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3024 for as_dir in $PATH
3026 IFS=$as_save_IFS
3027 test -z "$as_dir" && as_dir=.
3028 for ac_exec_ext in '' $ac_executable_extensions; do
3029 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3030 ac_cv_prog_AWK="$ac_prog"
3031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3032 break 2
3034 done
3035 done
3039 AWK=$ac_cv_prog_AWK
3040 if test -n "$AWK"; then
3041 echo "$as_me:$LINENO: result: $AWK" >&5
3042 echo "${ECHO_T}$AWK" >&6
3043 else
3044 echo "$as_me:$LINENO: result: no" >&5
3045 echo "${ECHO_T}no" >&6
3048 test -n "$AWK" && break
3049 done
3051 # Extract the first word of "$AWK", so it can be a program name with args.
3052 set dummy $AWK; ac_word=$2
3053 echo "$as_me:$LINENO: checking for $ac_word" >&5
3054 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3055 if test "${ac_cv_path_AWK+set}" = set; then
3056 echo $ECHO_N "(cached) $ECHO_C" >&6
3057 else
3058 case $AWK in
3059 [\\/]* | ?:[\\/]*)
3060 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
3063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3064 for as_dir in $PATH
3066 IFS=$as_save_IFS
3067 test -z "$as_dir" && as_dir=.
3068 for ac_exec_ext in '' $ac_executable_extensions; do
3069 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3070 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
3071 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3072 break 2
3074 done
3075 done
3078 esac
3080 AWK=$ac_cv_path_AWK
3082 if test -n "$AWK"; then
3083 echo "$as_me:$LINENO: result: $AWK" >&5
3084 echo "${ECHO_T}$AWK" >&6
3085 else
3086 echo "$as_me:$LINENO: result: no" >&5
3087 echo "${ECHO_T}no" >&6
3090 if test -z "$AWK"; then
3091 { { echo "$as_me:$LINENO: error: install awk to run this script" >&5
3092 echo "$as_me: error: install awk to run this script" >&2;}
3093 { (exit 1); exit 1; }; }
3096 for ac_prog in sed
3098 # Extract the first word of "$ac_prog", so it can be a program name with args.
3099 set dummy $ac_prog; ac_word=$2
3100 echo "$as_me:$LINENO: checking for $ac_word" >&5
3101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3102 if test "${ac_cv_path_SED+set}" = set; then
3103 echo $ECHO_N "(cached) $ECHO_C" >&6
3104 else
3105 case $SED in
3106 [\\/]* | ?:[\\/]*)
3107 ac_cv_path_SED="$SED" # Let the user override the test with a path.
3110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3111 for as_dir in $PATH
3113 IFS=$as_save_IFS
3114 test -z "$as_dir" && as_dir=.
3115 for ac_exec_ext in '' $ac_executable_extensions; do
3116 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3117 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
3118 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3119 break 2
3121 done
3122 done
3125 esac
3127 SED=$ac_cv_path_SED
3129 if test -n "$SED"; then
3130 echo "$as_me:$LINENO: result: $SED" >&5
3131 echo "${ECHO_T}$SED" >&6
3132 else
3133 echo "$as_me:$LINENO: result: no" >&5
3134 echo "${ECHO_T}no" >&6
3137 test -n "$SED" && break
3138 done
3140 if test -z "$SED"; then
3141 { { echo "$as_me:$LINENO: error: install sed to run this script" >&5
3142 echo "$as_me: error: install sed to run this script" >&2;}
3143 { (exit 1); exit 1; }; }
3146 echo "$as_me:$LINENO: checking for solenv environment" >&5
3147 echo $ECHO_N "checking for solenv environment... $ECHO_C" >&6
3148 if test -z "$with_local_solenv"; then
3149 LOCAL_SOLENV="DEFAULT"
3150 echo "$as_me:$LINENO: result: default" >&5
3151 echo "${ECHO_T}default" >&6
3152 else
3153 LOCAL_SOLENV=$with_local_solenv
3154 echo "$as_me:$LINENO: result: $with_local_solenv" >&5
3155 echo "${ECHO_T}$with_local_solenv" >&6
3159 if test "$LOCAL_SOLENV" = "DEFAULT"; then
3160 _solenv="./solenv"
3161 else
3162 _solenv="$LOCAL_SOLENV"
3166 if test -e $_solenv/inc/minor.mk; then
3167 # Get UPD number from ./solenv/inc/minor.mk
3168 UPD="`grep RSCVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
3170 SOURCEVERSION="`grep SOURCEVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
3172 else
3173 { { echo "$as_me:$LINENO: error: $_solenv/inc/minor.mk missing but needed for architecture/os detecion and proper environment script generation..." >&5
3174 echo "$as_me: error: $_solenv/inc/minor.mk missing but needed for architecture/os detecion and proper environment script generation..." >&2;}
3175 { (exit 1); exit 1; }; }
3178 ac_aux_dir=
3179 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
3180 if test -f $ac_dir/install-sh; then
3181 ac_aux_dir=$ac_dir
3182 ac_install_sh="$ac_aux_dir/install-sh -c"
3183 break
3184 elif test -f $ac_dir/install.sh; then
3185 ac_aux_dir=$ac_dir
3186 ac_install_sh="$ac_aux_dir/install.sh -c"
3187 break
3188 elif test -f $ac_dir/shtool; then
3189 ac_aux_dir=$ac_dir
3190 ac_install_sh="$ac_aux_dir/shtool install -c"
3191 break
3193 done
3194 if test -z "$ac_aux_dir"; then
3195 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
3196 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
3197 { (exit 1); exit 1; }; }
3199 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
3200 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
3201 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
3203 # Make sure we can run config.sub.
3204 $ac_config_sub sun4 >/dev/null 2>&1 ||
3205 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3206 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3207 { (exit 1); exit 1; }; }
3209 echo "$as_me:$LINENO: checking build system type" >&5
3210 echo $ECHO_N "checking build system type... $ECHO_C" >&6
3211 if test "${ac_cv_build+set}" = set; then
3212 echo $ECHO_N "(cached) $ECHO_C" >&6
3213 else
3214 ac_cv_build_alias=$build_alias
3215 test -z "$ac_cv_build_alias" &&
3216 ac_cv_build_alias=`$ac_config_guess`
3217 test -z "$ac_cv_build_alias" &&
3218 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3219 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3220 { (exit 1); exit 1; }; }
3221 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3222 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3223 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3224 { (exit 1); exit 1; }; }
3227 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3228 echo "${ECHO_T}$ac_cv_build" >&6
3229 build=$ac_cv_build
3230 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3231 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3232 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3235 echo "$as_me:$LINENO: checking host system type" >&5
3236 echo $ECHO_N "checking host system type... $ECHO_C" >&6
3237 if test "${ac_cv_host+set}" = set; then
3238 echo $ECHO_N "(cached) $ECHO_C" >&6
3239 else
3240 ac_cv_host_alias=$host_alias
3241 test -z "$ac_cv_host_alias" &&
3242 ac_cv_host_alias=$ac_cv_build_alias
3243 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3244 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3245 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3246 { (exit 1); exit 1; }; }
3249 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3250 echo "${ECHO_T}$ac_cv_host" >&6
3251 host=$ac_cv_host
3252 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3253 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3254 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3257 echo "$as_me:$LINENO: checking target system type" >&5
3258 echo $ECHO_N "checking target system type... $ECHO_C" >&6
3259 if test "${ac_cv_target+set}" = set; then
3260 echo $ECHO_N "(cached) $ECHO_C" >&6
3261 else
3262 ac_cv_target_alias=$target_alias
3263 test "x$ac_cv_target_alias" = "x" &&
3264 ac_cv_target_alias=$ac_cv_host_alias
3265 ac_cv_target=`$ac_config_sub $ac_cv_target_alias` ||
3266 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5
3267 echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;}
3268 { (exit 1); exit 1; }; }
3271 echo "$as_me:$LINENO: result: $ac_cv_target" >&5
3272 echo "${ECHO_T}$ac_cv_target" >&6
3273 target=$ac_cv_target
3274 target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3275 target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3276 target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3279 # The aliases save the names the user supplied, while $host etc.
3280 # will get canonicalized.
3281 test -n "$target_alias" &&
3282 test "$program_prefix$program_suffix$program_transform_name" = \
3283 NONENONEs,x,x, &&
3284 program_prefix=${target_alias}-
3285 if test "$build" != "$host" -o "$build" != "$target" \
3286 -o "$host" != "$target"; then
3287 { echo "$as_me:$LINENO: WARNING: cross-compiling by any means is not supported (yet)!" >&5
3288 echo "$as_me: WARNING: cross-compiling by any means is not supported (yet)!" >&2;}
3289 echo "cross-compiling by any means is not supported (yet)!" >> warn
3292 if echo "$build_os" | grep cygwin; then
3293 echo "$as_me:$LINENO: checking Cygwin version" >&5
3294 echo $ECHO_N "checking Cygwin version... $ECHO_C" >&6
3295 CygwinVer=`uname -r`
3296 echo "$as_me:$LINENO: result: $CygwinVer" >&5
3297 echo "${ECHO_T}$CygwinVer" >&6
3298 if test "`echo $CygwinVer | $AWK -F . '{ print $1$2 }'`" -lt "15"; then
3299 { { echo "$as_me:$LINENO: error: You need at least Cygwin V1.5.x" >&5
3300 echo "$as_me: error: You need at least Cygwin V1.5.x" >&2;}
3301 { (exit 1); exit 1; }; }
3303 else
3304 CygwinVer="false"
3307 case "$build_os" in
3308 solaris*)
3309 test_gtk=yes
3310 test_cairo=yes
3311 test_kde=yes
3312 test_cups=yes
3313 test_randr=yes
3314 test_freetype=yes
3315 _os=SunOS
3316 # Extract the first word of "gtar", so it can be a program name with args.
3317 set dummy gtar; ac_word=$2
3318 echo "$as_me:$LINENO: checking for $ac_word" >&5
3319 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3320 if test "${ac_cv_path_GNUTAR+set}" = set; then
3321 echo $ECHO_N "(cached) $ECHO_C" >&6
3322 else
3323 case $GNUTAR in
3324 [\\/]* | ?:[\\/]*)
3325 ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
3328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3329 as_dummy="$PATH:/usr/sfw/bin"
3330 for as_dir in $as_dummy
3332 IFS=$as_save_IFS
3333 test -z "$as_dir" && as_dir=.
3334 for ac_exec_ext in '' $ac_executable_extensions; do
3335 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3336 ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3340 done
3341 done
3344 esac
3346 GNUTAR=$ac_cv_path_GNUTAR
3348 if test -n "$GNUTAR"; then
3349 echo "$as_me:$LINENO: result: $GNUTAR" >&5
3350 echo "${ECHO_T}$GNUTAR" >&6
3351 else
3352 echo "$as_me:$LINENO: result: no" >&5
3353 echo "${ECHO_T}no" >&6
3356 if test -z "$GNUTAR"; then
3357 { { echo "$as_me:$LINENO: error: gtar (gnu tar) not found but needed. Install it (SUN Freeware package)." >&5
3358 echo "$as_me: error: gtar (gnu tar) not found but needed. Install it (SUN Freeware package)." >&2;}
3359 { (exit 1); exit 1; }; }
3363 echo "$as_me:$LINENO: checking the Solaris operating system release" >&5
3364 echo $ECHO_N "checking the Solaris operating system release... $ECHO_C" >&6
3365 _os_release=`echo $build_os | $SED -e s/solaris2\.//`
3366 if test "$_os_release" -lt "6"; then
3367 { { echo "$as_me:$LINENO: error: use solaris >= 6 to build OpenOffice.org" >&5
3368 echo "$as_me: error: use solaris >= 6 to build OpenOffice.org" >&2;}
3369 { (exit 1); exit 1; }; }
3370 else
3371 echo "$as_me:$LINENO: result: ok ($_os_release)" >&5
3372 echo "${ECHO_T}ok ($_os_release)" >&6
3375 echo "$as_me:$LINENO: checking the processor type" >&5
3376 echo $ECHO_N "checking the processor type... $ECHO_C" >&6
3377 if test "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
3378 echo "$as_me:$LINENO: result: ok ($build_cpu)" >&5
3379 echo "${ECHO_T}ok ($build_cpu)" >&6
3380 else
3381 { { echo "$as_me:$LINENO: error: only sparc and i386 processors are supported" >&5
3382 echo "$as_me: error: only sparc and i386 processors are supported" >&2;}
3383 { (exit 1); exit 1; }; }
3386 linux-gnu*|k*bsd*-gnu*)
3387 test_gtk=yes
3388 test_cairo=yes
3389 test_kde=yes
3390 test_kde4=yes
3391 test_cups=yes
3392 test_randr=yes
3393 test_freetype=yes
3394 _os=Linux
3396 gnu)
3397 test_cups=no
3398 _os=GNU
3400 cygwin*) # Windows
3401 test_cups=no
3402 test_cairo=yes
3403 test_freetype=no
3404 _os=WINNT
3406 darwin*) # Mac OS X
3407 test_cups=yes
3408 test_gtk=yes
3409 test_cairo=yes
3410 test_randr=no
3411 test_freetype=no
3412 _os=Darwin
3413 if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
3414 { echo "$as_me:$LINENO: WARNING: Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >&5
3415 echo "$as_me: WARNING: Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >&2;}
3416 echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
3417 enable_systray=no
3420 os2*)
3421 test_x=no
3422 test_cups=no
3423 test_randr=no
3424 test_gtk=no
3425 test_freetype=no
3426 _os=OS2
3428 freebsd*)
3429 test_gtk=yes
3430 test_cairo=yes
3431 test_kde=yes
3432 test_kde4=yes
3433 test_cups=yes
3434 test_randr=yes
3435 test_freetype=yes
3436 echo "$as_me:$LINENO: checking the FreeBSD operating system release" >&5
3437 echo $ECHO_N "checking the FreeBSD operating system release... $ECHO_C" >&6
3438 if test -n "$with_os_version"; then
3439 OSVERSION="$with_os_version"
3440 else
3441 OSVERSION=`/sbin/sysctl -n kern.osreldate`
3443 echo "$as_me:$LINENO: result: found OSVERSION=$OSVERSION" >&5
3444 echo "${ECHO_T}found OSVERSION=$OSVERSION" >&6
3445 echo "$as_me:$LINENO: checking which thread library to use" >&5
3446 echo $ECHO_N "checking which thread library to use... $ECHO_C" >&6
3447 if test "$OSVERSION" -lt "500016"; then
3448 PTHREAD_CFLAGS="-D_THREAD_SAFE"
3449 PTHREAD_LIBS="-pthread"
3450 elif test "$OSVERSION" -lt "502102"; then
3451 PTHREAD_CFLAGS="-D_THREAD_SAFE"
3452 PTHREAD_LIBS="-lc_r"
3453 else
3454 PTHREAD_CFLAGS=""
3455 PTHREAD_LIBS="-pthread"
3457 echo "$as_me:$LINENO: result: $PTHREAD_LIBS" >&5
3458 echo "${ECHO_T}$PTHREAD_LIBS" >&6
3459 _os=FreeBSD
3461 osf)
3462 test_cups=no
3463 test_randr=no
3464 _os=OSF1
3466 netbsd)
3467 test_gtk=yes
3468 test_cairo=yes
3469 test_kde=yes
3470 test_kde4=yes
3471 test_cups=no
3472 test_randr=yes
3473 test_freetype=yes
3474 PTHREAD_CFLAGS="-pthread"
3475 PTHREAD_LIBS="-pthread -lpthread"
3476 _os=NetBSD
3478 aix*)
3479 test_cups=no
3480 test_randr=no
3481 test_freetype=yes
3482 PTHREAD_LIBS=-pthread
3483 echo "AIX is an alpha port --- Use at own risk" >> warn
3484 _os=AIX
3487 { { echo "$as_me:$LINENO: error: $_os operating system is not suitable to build OpenOffice.org!" >&5
3488 echo "$as_me: error: $_os operating system is not suitable to build OpenOffice.org!" >&2;}
3489 { (exit 1); exit 1; }; }
3491 esac
3497 echo "$as_me:$LINENO: checking whether to enable crashdump feature" >&5
3498 echo $ECHO_N "checking whether to enable crashdump feature... $ECHO_C" >&6
3499 if test "$enable_crashdump" = "yes"; then
3500 ENABLE_CRASHDUMP="TRUE"
3501 BUILD_TYPE="$BUILD_TYPE CRASHREP"
3502 echo "$as_me:$LINENO: result: yes" >&5
3503 echo "${ECHO_T}yes" >&6
3504 else
3505 ENABLE_CRASHDUMP=""
3506 echo "$as_me:$LINENO: result: no" >&5
3507 echo "${ECHO_T}no" >&6
3511 if test "$_os" = "WINNT"; then
3512 BUILD_TYPE="$BUILD_TYPE TWAIN"
3515 if test "$_os" = "WINNT"; then
3516 echo "$as_me:$LINENO: checking whether to use the standard non-optimizing compiler" >&5
3517 echo $ECHO_N "checking whether to use the standard non-optimizing compiler... $ECHO_C" >&6
3518 if test "$enable_cl_standard" = "" -o "$enable_cl_standard" = "no"; then
3519 VC_STANDARD=""
3520 echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6
3522 else
3523 VC_STANDARD="TRUE"
3524 echo "$as_me:$LINENO: result: yes" >&5
3525 echo "${ECHO_T}yes" >&6
3530 echo "$as_me:$LINENO: checking whether to turn warnings to errors" >&5
3531 echo $ECHO_N "checking whether to turn warnings to errors... $ECHO_C" >&6
3532 if test -n "$enable_werror" && test "$enable_werror" != "no"; then
3533 ENABLE_WERROR="TRUE"
3534 echo "$as_me:$LINENO: result: yes" >&5
3535 echo "${ECHO_T}yes" >&6
3536 { echo "$as_me:$LINENO: WARNING: Turning warnings to errors has no effect in modules or" >&5
3537 echo "$as_me: WARNING: Turning warnings to errors has no effect in modules or" >&2;}
3538 { echo "$as_me:$LINENO: WARNING: on platforms where it has been disabled explicitely" >&5
3539 echo "$as_me: WARNING: on platforms where it has been disabled explicitely" >&2;}
3540 echo "Turning warnings to errors has no effect in modules or on platforms where it has been disabled explicitely" >> warn
3541 else
3542 ENABLE_WERROR="FALSE"
3543 echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6
3548 echo "$as_me:$LINENO: checking whether to do a debug build" >&5
3549 echo $ECHO_N "checking whether to do a debug build... $ECHO_C" >&6
3550 if test -n "$enable_debug" && test "$enable_debug" != "no"; then
3551 ENABLE_DEBUG="TRUE"
3552 if test -z "$enable_symbols"; then
3553 enable_symbols="yes"
3555 echo "$as_me:$LINENO: result: yes" >&5
3556 echo "${ECHO_T}yes" >&6
3557 else
3558 ENABLE_DEBUG="FALSE"
3559 echo "$as_me:$LINENO: result: no" >&5
3560 echo "${ECHO_T}no" >&6
3564 echo "$as_me:$LINENO: checking whether to build with additional debug utilities" >&5
3565 echo $ECHO_N "checking whether to build with additional debug utilities... $ECHO_C" >&6
3566 if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
3567 PROEXT=""
3568 PRODUCT=""
3569 PROFULLSWITCH=""
3570 echo "$as_me:$LINENO: result: yes" >&5
3571 echo "${ECHO_T}yes" >&6
3572 else
3573 PRODUCT="full"
3574 PROFULLSWITCH="product=full"
3575 PROEXT=".pro"
3576 echo "$as_me:$LINENO: result: no, full product build" >&5
3577 echo "${ECHO_T}no, full product build" >&6
3583 echo "$as_me:$LINENO: checking whether to include symbols into final build" >&5
3584 echo $ECHO_N "checking whether to include symbols into final build... $ECHO_C" >&6
3585 if test -n "$enable_symbols" && test "$enable_symbols" != "no"; then
3586 if test "$enable_symbols" = "yes" -o "$enable_symbols" = "TRUE"; then
3587 ENABLE_SYMBOLS="TRUE"
3588 echo "$as_me:$LINENO: result: yes" >&5
3589 echo "${ECHO_T}yes" >&6
3590 else
3591 if test "$enable_symbols" = "SMALL" -o "$enable_symbols" = "small"; then
3592 ENABLE_SYMBOLS="SMALL"
3593 echo "$as_me:$LINENO: result: yes, small ones" >&5
3594 echo "${ECHO_T}yes, small ones" >&6
3595 else if test "$enable_symbols" != "no" ; then
3596 echo enable symbols is: $enable_symbols
3597 { { echo "$as_me:$LINENO: error: --enable-symbols only accepts yes, TRUE or SMALL as parameter." >&5
3598 echo "$as_me: error: --enable-symbols only accepts yes, TRUE or SMALL as parameter." >&2;}
3599 { (exit 1); exit 1; }; }
3600 else
3601 ENABLE_SYMBOLS=
3605 else
3606 ENABLE_SYMBOLS=
3607 echo "$as_me:$LINENO: result: no" >&5
3608 echo "${ECHO_T}no" >&6
3612 echo "$as_me:$LINENO: checking whether to strip the solver or not." >&5
3613 echo $ECHO_N "checking whether to strip the solver or not.... $ECHO_C" >&6
3614 if test -n "$enable_strip_solver"; then
3615 if test "$enable_strip_solver" = "yes"; then
3616 DISABLE_STRIP=
3617 else if test "$enable_strip_solver" = "no"; then
3618 DISABLE_STRIP="TRUE"
3619 else
3620 { { echo "$as_me:$LINENO: error: --disable-strip-solver only accepts yes or no as parameter." >&5
3621 echo "$as_me: error: --disable-strip-solver only accepts yes or no as parameter." >&2;}
3622 { (exit 1); exit 1; }; }
3625 else
3626 if test -n "$ENABLE_SYMBOLS"; then
3627 DISABLE_STRIP="TRUE"
3628 else
3629 DISABLE_STRIP=
3634 echo "$as_me:$LINENO: checking whether to enable native CUPS support" >&5
3635 echo $ECHO_N "checking whether to enable native CUPS support... $ECHO_C" >&6
3636 if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
3637 ENABLE_CUPS="TRUE"
3638 echo "$as_me:$LINENO: result: yes" >&5
3639 echo "${ECHO_T}yes" >&6
3640 else
3641 ENABLE_CUPS=""
3642 echo "$as_me:$LINENO: result: no" >&5
3643 echo "${ECHO_T}no" >&6
3647 echo "$as_me:$LINENO: checking whether to enable fontconfig support" >&5
3648 echo $ECHO_N "checking whether to enable fontconfig support... $ECHO_C" >&6
3649 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a \( "$enable_fontconfig" = "yes" -o "$enable_fontconfig" = "TRUE" \); then
3650 ENABLE_FONTCONFIG="TRUE"
3651 echo "$as_me:$LINENO: result: yes" >&5
3652 echo "${ECHO_T}yes" >&6
3653 else
3654 ENABLE_FONTCONFIG=""
3655 echo "$as_me:$LINENO: result: no" >&5
3656 echo "${ECHO_T}no" >&6
3660 if test -z $TARFILE_LOCATION; then
3661 TARFILE_LOCATION="DEFAULT"
3665 if test -z "$enable_fetch_external" || test "$enable_fetch_external" = "yes" \
3666 && test -z "$with_system_libs" -a "$with_system_jars" != "no"; then
3667 DO_FETCH_TARBALLS="yes"
3671 echo "$as_me:$LINENO: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
3672 echo $ECHO_N "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... $ECHO_C" >&6
3673 if test "$enable_binfilter" = "no"; then
3674 WITH_BINFILTER="NO"
3675 echo "$as_me:$LINENO: result: no" >&5
3676 echo "${ECHO_T}no" >&6
3677 else
3678 WITH_BINFILTER="YES"
3679 BUILD_TYPE="$BUILD_TYPE BINFILTER"
3680 echo "$as_me:$LINENO: result: yes" >&5
3681 echo "${ECHO_T}yes" >&6
3685 if test "$_os" = "WINNT"; then
3686 echo "$as_me:$LINENO: checking whether to use DirectX" >&5
3687 echo $ECHO_N "checking whether to use DirectX... $ECHO_C" >&6
3688 if test "$enable_directx" = "yes" -o "$enable_directx" = "TRUE" -o "$enable_directx" = ""; then
3689 ENABLE_DIRECTX="TRUE"
3690 echo "$as_me:$LINENO: result: yes" >&5
3691 echo "${ECHO_T}yes" >&6
3692 else
3693 ENABLE_DIRECTX=""
3694 echo "$as_me:$LINENO: result: no" >&5
3695 echo "${ECHO_T}no" >&6
3699 echo "$as_me:$LINENO: checking whether to use ActiveX" >&5
3700 echo $ECHO_N "checking whether to use ActiveX... $ECHO_C" >&6
3701 if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
3702 DISABLE_ACTIVEX=""
3703 echo "$as_me:$LINENO: result: yes" >&5
3704 echo "${ECHO_T}yes" >&6
3705 else
3706 DISABLE_ACTIVEX="TRUE"
3707 echo "$as_me:$LINENO: result: no" >&5
3708 echo "${ECHO_T}no" >&6
3712 echo "$as_me:$LINENO: checking whether to use ATL" >&5
3713 echo $ECHO_N "checking whether to use ATL... $ECHO_C" >&6
3714 if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
3715 DISABLE_ATL=""
3716 echo "$as_me:$LINENO: result: yes" >&5
3717 echo "${ECHO_T}yes" >&6
3718 else
3719 DISABLE_ATL="TRUE"
3720 echo "$as_me:$LINENO: result: no" >&5
3721 echo "${ECHO_T}no" >&6
3727 echo "$as_me:$LINENO: checking whether to use RPATH in shared libraries" >&5
3728 echo $ECHO_N "checking whether to use RPATH in shared libraries... $ECHO_C" >&6
3729 if test "$enable_rpath" = "no"; then
3730 ENABLE_RPATH="no"
3731 else
3732 ENABLE_RPATH="yes"
3734 echo "$as_me:$LINENO: result: $ENABLE_RPATH" >&5
3735 echo "${ECHO_T}$ENABLE_RPATH" >&6
3738 echo "$as_me:$LINENO: checking whether to include MySpell dictionaries" >&5
3739 echo $ECHO_N "checking whether to include MySpell dictionaries... $ECHO_C" >&6
3740 if test -z "$with_myspell_dicts" || test "$with_myspell_dicts" = "yes"; then
3741 echo "$as_me:$LINENO: result: yes" >&5
3742 echo "${ECHO_T}yes" >&6
3743 WITH_MYSPELL_DICTS=YES
3744 BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
3745 else
3746 echo "$as_me:$LINENO: result: no" >&5
3747 echo "${ECHO_T}no" >&6
3748 WITH_MYSPELL_DICTS=NO
3752 if test "$WITH_MYSPELL_DICTS" = "NO"; then
3753 echo "$as_me:$LINENO: checking whether to use dicts from external paths" >&5
3754 echo $ECHO_N "checking whether to use dicts from external paths... $ECHO_C" >&6
3755 if test -n "$with_system_dicts" -a "$with_system_dicts" = "yes"; then
3756 echo "$as_me:$LINENO: result: yes" >&5
3757 echo "${ECHO_T}yes" >&6
3758 SYSTEM_DICTS=YES
3759 echo "$as_me:$LINENO: checking for spelling dictionary directory" >&5
3760 echo $ECHO_N "checking for spelling dictionary directory... $ECHO_C" >&6
3761 if test -n "$with_external_dict_dir"; then
3762 DICT_SYSTEM_DIR=file://$with_external_dict_dir
3763 else
3764 DICT_SYSTEM_DIR=file:///usr/share/hunspell
3766 echo "$as_me:$LINENO: result: $DICT_SYSTEM_DIR" >&5
3767 echo "${ECHO_T}$DICT_SYSTEM_DIR" >&6
3768 echo "$as_me:$LINENO: checking for hyphenation patterns directory" >&5
3769 echo $ECHO_N "checking for hyphenation patterns directory... $ECHO_C" >&6
3770 if test -n "$with_external_hyph_dir"; then
3771 HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
3772 else
3773 HYPH_SYSTEM_DIR=file:///usr/share/hyphen
3775 echo "$as_me:$LINENO: result: $HYPH_SYSTEM_DIR" >&5
3776 echo "${ECHO_T}$HYPH_SYSTEM_DIR" >&6
3777 echo "$as_me:$LINENO: checking for thesaurus directory" >&5
3778 echo $ECHO_N "checking for thesaurus directory... $ECHO_C" >&6
3779 if test -n "$with_external_thes_dir"; then
3780 THES_SYSTEM_DIR=file://$with_external_thes_dir
3781 else
3782 THES_SYSTEM_DIR=file:///usr/share/mythes
3784 echo "$as_me:$LINENO: result: $THES_SYSTEM_DIR" >&5
3785 echo "${ECHO_T}$THES_SYSTEM_DIR" >&6
3786 else
3787 echo "$as_me:$LINENO: result: no" >&5
3788 echo "${ECHO_T}no" >&6
3789 SYSTEM_DICTS=NO
3797 if test $_os = "WINNT"; then
3798 echo "$as_me:$LINENO: checking Windows build environment sanity" >&5
3799 echo $ECHO_N "checking Windows build environment sanity... $ECHO_C" >&6
3800 if test -L $AWK -o -L `which awk` -o -L `which tar` -o -L `which gunzip` ; then
3801 { { echo "$as_me:$LINENO: error: $AWK, awk, tar or gunzip is a cygwin symlink!
3802 Native windows programs cannot use cygwin symlinks. Remove the symbolic
3803 link, and copy the program to the name of the link." >&5
3804 echo "$as_me: error: $AWK, awk, tar or gunzip is a cygwin symlink!
3805 Native windows programs cannot use cygwin symlinks. Remove the symbolic
3806 link, and copy the program to the name of the link." >&2;}
3807 { (exit 1); exit 1; }; }
3809 CC=`echo $CC | $SED "s/^guw.exe //"`
3810 CXX=`echo $CXX | $SED "s/^guw.exe //"`
3811 if test -n "$CC";then
3812 if test "`$CC -dumpmachine 2>/dev/null | $SED -e 's/^.*-//'`" = "mingw32"; then
3813 WITH_MINGWIN="yes"
3816 if test "$WITH_MINGWIN" = "yes" ; then
3817 if test -z "$CC"; then
3818 CC="gcc -mno-cygwin"
3819 CXX="g++ -mno-cygwin"
3822 echo "$as_me:$LINENO: result: ok" >&5
3823 echo "${ECHO_T}ok" >&6
3827 if test "$_os" = "WINNT" ; then
3828 echo "$as_me:$LINENO: checking for cygwin gcc/g++" >&5
3829 echo $ECHO_N "checking for cygwin gcc/g++... $ECHO_C" >&6
3830 if which gcc > /dev/null && which g++ > /dev/null ; then
3831 echo "$as_me:$LINENO: result: found" >&5
3832 echo "${ECHO_T}found" >&6
3833 else
3834 { { echo "$as_me:$LINENO: error: cygwin gcc and g++ are needed, please install them." >&5
3835 echo "$as_me: error: cygwin gcc and g++ are needed, please install them." >&2;}
3836 { (exit 1); exit 1; }; }
3841 # Extract the first word of "bash", so it can be a program name with args.
3842 set dummy bash; ac_word=$2
3843 echo "$as_me:$LINENO: checking for $ac_word" >&5
3844 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3845 if test "${ac_cv_path_SHELLPATH+set}" = set; then
3846 echo $ECHO_N "(cached) $ECHO_C" >&6
3847 else
3848 case $SHELLPATH in
3849 [\\/]* | ?:[\\/]*)
3850 ac_cv_path_SHELLPATH="$SHELLPATH" # Let the user override the test with a path.
3853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3854 for as_dir in $PATH
3856 IFS=$as_save_IFS
3857 test -z "$as_dir" && as_dir=.
3858 for ac_exec_ext in '' $ac_executable_extensions; do
3859 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3860 ac_cv_path_SHELLPATH="$as_dir/$ac_word$ac_exec_ext"
3861 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3862 break 2
3864 done
3865 done
3868 esac
3870 SHELLPATH=$ac_cv_path_SHELLPATH
3872 if test -n "$SHELLPATH"; then
3873 echo "$as_me:$LINENO: result: $SHELLPATH" >&5
3874 echo "${ECHO_T}$SHELLPATH" >&6
3875 else
3876 echo "$as_me:$LINENO: result: no" >&5
3877 echo "${ECHO_T}no" >&6
3880 if test -z "$SHELLPATH"; then
3881 { { echo "$as_me:$LINENO: error: bash not found in \$PATH" >&5
3882 echo "$as_me: error: bash not found in \$PATH" >&2;}
3883 { (exit 1); exit 1; }; }
3884 else
3885 SHELLPATH=`echo $SHELLPATH | $SED -n "s/\/bash$//p"`
3889 echo "$as_me:$LINENO: checking gcc home" >&5
3890 echo $ECHO_N "checking gcc home... $ECHO_C" >&6
3891 if test -z "$with_gcc_home"; then
3892 GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
3893 else
3894 GCC_HOME="$with_gcc_home"
3896 echo "$as_me:$LINENO: result: $GCC_HOME" >&5
3897 echo "${ECHO_T}$GCC_HOME" >&6
3900 save_CC=$CC
3901 save_CXX=$CXX
3903 if test -n "$with_gcc_home"; then
3904 if test -z "$CC"; then
3905 CC="$with_gcc_home/bin/gcc"
3909 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
3910 ac_ext=c
3911 ac_cpp='$CPP $CPPFLAGS'
3912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3915 if test -n "$ac_tool_prefix"; then
3916 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3917 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3918 echo "$as_me:$LINENO: checking for $ac_word" >&5
3919 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3920 if test "${ac_cv_prog_CC+set}" = set; then
3921 echo $ECHO_N "(cached) $ECHO_C" >&6
3922 else
3923 if test -n "$CC"; then
3924 ac_cv_prog_CC="$CC" # Let the user override the test.
3925 else
3926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3927 for as_dir in $PATH
3929 IFS=$as_save_IFS
3930 test -z "$as_dir" && as_dir=.
3931 for ac_exec_ext in '' $ac_executable_extensions; do
3932 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3933 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3934 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3935 break 2
3937 done
3938 done
3942 CC=$ac_cv_prog_CC
3943 if test -n "$CC"; then
3944 echo "$as_me:$LINENO: result: $CC" >&5
3945 echo "${ECHO_T}$CC" >&6
3946 else
3947 echo "$as_me:$LINENO: result: no" >&5
3948 echo "${ECHO_T}no" >&6
3952 if test -z "$ac_cv_prog_CC"; then
3953 ac_ct_CC=$CC
3954 # Extract the first word of "gcc", so it can be a program name with args.
3955 set dummy gcc; ac_word=$2
3956 echo "$as_me:$LINENO: checking for $ac_word" >&5
3957 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3958 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3959 echo $ECHO_N "(cached) $ECHO_C" >&6
3960 else
3961 if test -n "$ac_ct_CC"; then
3962 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3963 else
3964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3965 for as_dir in $PATH
3967 IFS=$as_save_IFS
3968 test -z "$as_dir" && as_dir=.
3969 for ac_exec_ext in '' $ac_executable_extensions; do
3970 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3971 ac_cv_prog_ac_ct_CC="gcc"
3972 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3973 break 2
3975 done
3976 done
3980 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3981 if test -n "$ac_ct_CC"; then
3982 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3983 echo "${ECHO_T}$ac_ct_CC" >&6
3984 else
3985 echo "$as_me:$LINENO: result: no" >&5
3986 echo "${ECHO_T}no" >&6
3989 CC=$ac_ct_CC
3990 else
3991 CC="$ac_cv_prog_CC"
3994 if test -z "$CC"; then
3995 if test -n "$ac_tool_prefix"; then
3996 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3997 set dummy ${ac_tool_prefix}cc; ac_word=$2
3998 echo "$as_me:$LINENO: checking for $ac_word" >&5
3999 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4000 if test "${ac_cv_prog_CC+set}" = set; then
4001 echo $ECHO_N "(cached) $ECHO_C" >&6
4002 else
4003 if test -n "$CC"; then
4004 ac_cv_prog_CC="$CC" # Let the user override the test.
4005 else
4006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4007 for as_dir in $PATH
4009 IFS=$as_save_IFS
4010 test -z "$as_dir" && as_dir=.
4011 for ac_exec_ext in '' $ac_executable_extensions; do
4012 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4013 ac_cv_prog_CC="${ac_tool_prefix}cc"
4014 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4015 break 2
4017 done
4018 done
4022 CC=$ac_cv_prog_CC
4023 if test -n "$CC"; then
4024 echo "$as_me:$LINENO: result: $CC" >&5
4025 echo "${ECHO_T}$CC" >&6
4026 else
4027 echo "$as_me:$LINENO: result: no" >&5
4028 echo "${ECHO_T}no" >&6
4032 if test -z "$ac_cv_prog_CC"; then
4033 ac_ct_CC=$CC
4034 # Extract the first word of "cc", so it can be a program name with args.
4035 set dummy cc; ac_word=$2
4036 echo "$as_me:$LINENO: checking for $ac_word" >&5
4037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4038 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4039 echo $ECHO_N "(cached) $ECHO_C" >&6
4040 else
4041 if test -n "$ac_ct_CC"; then
4042 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4043 else
4044 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4045 for as_dir in $PATH
4047 IFS=$as_save_IFS
4048 test -z "$as_dir" && as_dir=.
4049 for ac_exec_ext in '' $ac_executable_extensions; do
4050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4051 ac_cv_prog_ac_ct_CC="cc"
4052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4053 break 2
4055 done
4056 done
4060 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4061 if test -n "$ac_ct_CC"; then
4062 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4063 echo "${ECHO_T}$ac_ct_CC" >&6
4064 else
4065 echo "$as_me:$LINENO: result: no" >&5
4066 echo "${ECHO_T}no" >&6
4069 CC=$ac_ct_CC
4070 else
4071 CC="$ac_cv_prog_CC"
4075 if test -z "$CC"; then
4076 # Extract the first word of "cc", so it can be a program name with args.
4077 set dummy cc; ac_word=$2
4078 echo "$as_me:$LINENO: checking for $ac_word" >&5
4079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4080 if test "${ac_cv_prog_CC+set}" = set; then
4081 echo $ECHO_N "(cached) $ECHO_C" >&6
4082 else
4083 if test -n "$CC"; then
4084 ac_cv_prog_CC="$CC" # Let the user override the test.
4085 else
4086 ac_prog_rejected=no
4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4088 for as_dir in $PATH
4090 IFS=$as_save_IFS
4091 test -z "$as_dir" && as_dir=.
4092 for ac_exec_ext in '' $ac_executable_extensions; do
4093 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4094 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4095 ac_prog_rejected=yes
4096 continue
4098 ac_cv_prog_CC="cc"
4099 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4100 break 2
4102 done
4103 done
4105 if test $ac_prog_rejected = yes; then
4106 # We found a bogon in the path, so make sure we never use it.
4107 set dummy $ac_cv_prog_CC
4108 shift
4109 if test $# != 0; then
4110 # We chose a different compiler from the bogus one.
4111 # However, it has the same basename, so the bogon will be chosen
4112 # first if we set CC to just the basename; use the full file name.
4113 shift
4114 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4119 CC=$ac_cv_prog_CC
4120 if test -n "$CC"; then
4121 echo "$as_me:$LINENO: result: $CC" >&5
4122 echo "${ECHO_T}$CC" >&6
4123 else
4124 echo "$as_me:$LINENO: result: no" >&5
4125 echo "${ECHO_T}no" >&6
4129 if test -z "$CC"; then
4130 if test -n "$ac_tool_prefix"; then
4131 for ac_prog in cl
4133 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4134 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4135 echo "$as_me:$LINENO: checking for $ac_word" >&5
4136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4137 if test "${ac_cv_prog_CC+set}" = set; then
4138 echo $ECHO_N "(cached) $ECHO_C" >&6
4139 else
4140 if test -n "$CC"; then
4141 ac_cv_prog_CC="$CC" # Let the user override the test.
4142 else
4143 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4144 for as_dir in $PATH
4146 IFS=$as_save_IFS
4147 test -z "$as_dir" && as_dir=.
4148 for ac_exec_ext in '' $ac_executable_extensions; do
4149 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4150 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4151 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4152 break 2
4154 done
4155 done
4159 CC=$ac_cv_prog_CC
4160 if test -n "$CC"; then
4161 echo "$as_me:$LINENO: result: $CC" >&5
4162 echo "${ECHO_T}$CC" >&6
4163 else
4164 echo "$as_me:$LINENO: result: no" >&5
4165 echo "${ECHO_T}no" >&6
4168 test -n "$CC" && break
4169 done
4171 if test -z "$CC"; then
4172 ac_ct_CC=$CC
4173 for ac_prog in cl
4175 # Extract the first word of "$ac_prog", so it can be a program name with args.
4176 set dummy $ac_prog; ac_word=$2
4177 echo "$as_me:$LINENO: checking for $ac_word" >&5
4178 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4179 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 if test -n "$ac_ct_CC"; then
4183 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4184 else
4185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4186 for as_dir in $PATH
4188 IFS=$as_save_IFS
4189 test -z "$as_dir" && as_dir=.
4190 for ac_exec_ext in '' $ac_executable_extensions; do
4191 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4192 ac_cv_prog_ac_ct_CC="$ac_prog"
4193 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4194 break 2
4196 done
4197 done
4201 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4202 if test -n "$ac_ct_CC"; then
4203 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4204 echo "${ECHO_T}$ac_ct_CC" >&6
4205 else
4206 echo "$as_me:$LINENO: result: no" >&5
4207 echo "${ECHO_T}no" >&6
4210 test -n "$ac_ct_CC" && break
4211 done
4213 CC=$ac_ct_CC
4219 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4220 See \`config.log' for more details." >&5
4221 echo "$as_me: error: no acceptable C compiler found in \$PATH
4222 See \`config.log' for more details." >&2;}
4223 { (exit 1); exit 1; }; }
4225 # Provide some information about the compiler.
4226 echo "$as_me:$LINENO:" \
4227 "checking for C compiler version" >&5
4228 ac_compiler=`set X $ac_compile; echo $2`
4229 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4230 (eval $ac_compiler --version </dev/null >&5) 2>&5
4231 ac_status=$?
4232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4233 (exit $ac_status); }
4234 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4235 (eval $ac_compiler -v </dev/null >&5) 2>&5
4236 ac_status=$?
4237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4238 (exit $ac_status); }
4239 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4240 (eval $ac_compiler -V </dev/null >&5) 2>&5
4241 ac_status=$?
4242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4243 (exit $ac_status); }
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4253 main ()
4257 return 0;
4259 _ACEOF
4260 ac_clean_files_save=$ac_clean_files
4261 ac_clean_files="$ac_clean_files a.out a.exe b.out"
4262 # Try to create an executable without -o first, disregard a.out.
4263 # It will help us diagnose broken compilers, and finding out an intuition
4264 # of exeext.
4265 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
4266 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
4267 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4268 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
4269 (eval $ac_link_default) 2>&5
4270 ac_status=$?
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; then
4273 # Find the output, starting from the most likely. This scheme is
4274 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
4275 # resort.
4277 # Be careful to initialize this variable, since it used to be cached.
4278 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
4279 ac_cv_exeext=
4280 # b.out is created by i960 compilers.
4281 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
4283 test -f "$ac_file" || continue
4284 case $ac_file in
4285 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
4287 conftest.$ac_ext )
4288 # This is the source file.
4290 [ab].out )
4291 # We found the default executable, but exeext='' is most
4292 # certainly right.
4293 break;;
4294 *.* )
4295 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4296 # FIXME: I believe we export ac_cv_exeext for Libtool,
4297 # but it would be cool to find out if it's true. Does anybody
4298 # maintain Libtool? --akim.
4299 export ac_cv_exeext
4300 break;;
4302 break;;
4303 esac
4304 done
4305 else
4306 echo "$as_me: failed program was:" >&5
4307 sed 's/^/| /' conftest.$ac_ext >&5
4309 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
4310 See \`config.log' for more details." >&5
4311 echo "$as_me: error: C compiler cannot create executables
4312 See \`config.log' for more details." >&2;}
4313 { (exit 77); exit 77; }; }
4316 ac_exeext=$ac_cv_exeext
4317 echo "$as_me:$LINENO: result: $ac_file" >&5
4318 echo "${ECHO_T}$ac_file" >&6
4320 # Check the compiler produces executables we can run. If not, either
4321 # the compiler is broken, or we cross compile.
4322 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
4323 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
4324 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
4325 # If not cross compiling, check that we can run a simple program.
4326 if test "$cross_compiling" != yes; then
4327 if { ac_try='./$ac_file'
4328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4329 (eval $ac_try) 2>&5
4330 ac_status=$?
4331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4332 (exit $ac_status); }; }; then
4333 cross_compiling=no
4334 else
4335 if test "$cross_compiling" = maybe; then
4336 cross_compiling=yes
4337 else
4338 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
4339 If you meant to cross compile, use \`--host'.
4340 See \`config.log' for more details." >&5
4341 echo "$as_me: error: cannot run C compiled programs.
4342 If you meant to cross compile, use \`--host'.
4343 See \`config.log' for more details." >&2;}
4344 { (exit 1); exit 1; }; }
4348 echo "$as_me:$LINENO: result: yes" >&5
4349 echo "${ECHO_T}yes" >&6
4351 rm -f a.out a.exe conftest$ac_cv_exeext b.out
4352 ac_clean_files=$ac_clean_files_save
4353 # Check the compiler produces executables we can run. If not, either
4354 # the compiler is broken, or we cross compile.
4355 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
4356 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
4357 echo "$as_me:$LINENO: result: $cross_compiling" >&5
4358 echo "${ECHO_T}$cross_compiling" >&6
4360 echo "$as_me:$LINENO: checking for suffix of executables" >&5
4361 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
4362 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4363 (eval $ac_link) 2>&5
4364 ac_status=$?
4365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4366 (exit $ac_status); }; then
4367 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4368 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4369 # work properly (i.e., refer to `conftest.exe'), while it won't with
4370 # `rm'.
4371 for ac_file in conftest.exe conftest conftest.*; do
4372 test -f "$ac_file" || continue
4373 case $ac_file in
4374 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
4375 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4376 export ac_cv_exeext
4377 break;;
4378 * ) break;;
4379 esac
4380 done
4381 else
4382 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
4383 See \`config.log' for more details." >&5
4384 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
4385 See \`config.log' for more details." >&2;}
4386 { (exit 1); exit 1; }; }
4389 rm -f conftest$ac_cv_exeext
4390 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
4391 echo "${ECHO_T}$ac_cv_exeext" >&6
4393 rm -f conftest.$ac_ext
4394 EXEEXT=$ac_cv_exeext
4395 ac_exeext=$EXEEXT
4396 echo "$as_me:$LINENO: checking for suffix of object files" >&5
4397 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
4398 if test "${ac_cv_objext+set}" = set; then
4399 echo $ECHO_N "(cached) $ECHO_C" >&6
4400 else
4401 cat >conftest.$ac_ext <<_ACEOF
4402 /* confdefs.h. */
4403 _ACEOF
4404 cat confdefs.h >>conftest.$ac_ext
4405 cat >>conftest.$ac_ext <<_ACEOF
4406 /* end confdefs.h. */
4409 main ()
4413 return 0;
4415 _ACEOF
4416 rm -f conftest.o conftest.obj
4417 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4418 (eval $ac_compile) 2>&5
4419 ac_status=$?
4420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4421 (exit $ac_status); }; then
4422 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
4423 case $ac_file in
4424 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
4425 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4426 break;;
4427 esac
4428 done
4429 else
4430 echo "$as_me: failed program was:" >&5
4431 sed 's/^/| /' conftest.$ac_ext >&5
4433 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
4434 See \`config.log' for more details." >&5
4435 echo "$as_me: error: cannot compute suffix of object files: cannot compile
4436 See \`config.log' for more details." >&2;}
4437 { (exit 1); exit 1; }; }
4440 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4442 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
4443 echo "${ECHO_T}$ac_cv_objext" >&6
4444 OBJEXT=$ac_cv_objext
4445 ac_objext=$OBJEXT
4446 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4447 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4448 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4449 echo $ECHO_N "(cached) $ECHO_C" >&6
4450 else
4451 cat >conftest.$ac_ext <<_ACEOF
4452 /* confdefs.h. */
4453 _ACEOF
4454 cat confdefs.h >>conftest.$ac_ext
4455 cat >>conftest.$ac_ext <<_ACEOF
4456 /* end confdefs.h. */
4459 main ()
4461 #ifndef __GNUC__
4462 choke me
4463 #endif
4466 return 0;
4468 _ACEOF
4469 rm -f conftest.$ac_objext
4470 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4471 (eval $ac_compile) 2>conftest.er1
4472 ac_status=$?
4473 grep -v '^ *+' conftest.er1 >conftest.err
4474 rm -f conftest.er1
4475 cat conftest.err >&5
4476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4477 (exit $ac_status); } &&
4478 { ac_try='test -z "$ac_c_werror_flag"
4479 || test ! -s conftest.err'
4480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4481 (eval $ac_try) 2>&5
4482 ac_status=$?
4483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4484 (exit $ac_status); }; } &&
4485 { ac_try='test -s conftest.$ac_objext'
4486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4487 (eval $ac_try) 2>&5
4488 ac_status=$?
4489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4490 (exit $ac_status); }; }; then
4491 ac_compiler_gnu=yes
4492 else
4493 echo "$as_me: failed program was:" >&5
4494 sed 's/^/| /' conftest.$ac_ext >&5
4496 ac_compiler_gnu=no
4498 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4499 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4502 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4503 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4504 GCC=`test $ac_compiler_gnu = yes && echo yes`
4505 ac_test_CFLAGS=${CFLAGS+set}
4506 ac_save_CFLAGS=$CFLAGS
4507 CFLAGS="-g"
4508 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4509 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4510 if test "${ac_cv_prog_cc_g+set}" = set; then
4511 echo $ECHO_N "(cached) $ECHO_C" >&6
4512 else
4513 cat >conftest.$ac_ext <<_ACEOF
4514 /* confdefs.h. */
4515 _ACEOF
4516 cat confdefs.h >>conftest.$ac_ext
4517 cat >>conftest.$ac_ext <<_ACEOF
4518 /* end confdefs.h. */
4521 main ()
4525 return 0;
4527 _ACEOF
4528 rm -f conftest.$ac_objext
4529 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4530 (eval $ac_compile) 2>conftest.er1
4531 ac_status=$?
4532 grep -v '^ *+' conftest.er1 >conftest.err
4533 rm -f conftest.er1
4534 cat conftest.err >&5
4535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4536 (exit $ac_status); } &&
4537 { ac_try='test -z "$ac_c_werror_flag"
4538 || test ! -s conftest.err'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; } &&
4544 { ac_try='test -s conftest.$ac_objext'
4545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4546 (eval $ac_try) 2>&5
4547 ac_status=$?
4548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4549 (exit $ac_status); }; }; then
4550 ac_cv_prog_cc_g=yes
4551 else
4552 echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4555 ac_cv_prog_cc_g=no
4557 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4559 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4560 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4561 if test "$ac_test_CFLAGS" = set; then
4562 CFLAGS=$ac_save_CFLAGS
4563 elif test $ac_cv_prog_cc_g = yes; then
4564 if test "$GCC" = yes; then
4565 CFLAGS="-g -O2"
4566 else
4567 CFLAGS="-g"
4569 else
4570 if test "$GCC" = yes; then
4571 CFLAGS="-O2"
4572 else
4573 CFLAGS=
4576 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4577 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4578 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4579 echo $ECHO_N "(cached) $ECHO_C" >&6
4580 else
4581 ac_cv_prog_cc_stdc=no
4582 ac_save_CC=$CC
4583 cat >conftest.$ac_ext <<_ACEOF
4584 /* confdefs.h. */
4585 _ACEOF
4586 cat confdefs.h >>conftest.$ac_ext
4587 cat >>conftest.$ac_ext <<_ACEOF
4588 /* end confdefs.h. */
4589 #include <stdarg.h>
4590 #include <stdio.h>
4591 #include <sys/types.h>
4592 #include <sys/stat.h>
4593 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4594 struct buf { int x; };
4595 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4596 static char *e (p, i)
4597 char **p;
4598 int i;
4600 return p[i];
4602 static char *f (char * (*g) (char **, int), char **p, ...)
4604 char *s;
4605 va_list v;
4606 va_start (v,p);
4607 s = g (p, va_arg (v,int));
4608 va_end (v);
4609 return s;
4612 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4613 function prototypes and stuff, but not '\xHH' hex character constants.
4614 These don't provoke an error unfortunately, instead are silently treated
4615 as 'x'. The following induces an error, until -std1 is added to get
4616 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4617 array size at least. It's necessary to write '\x00'==0 to get something
4618 that's true only with -std1. */
4619 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4621 int test (int i, double x);
4622 struct s1 {int (*f) (int a);};
4623 struct s2 {int (*f) (double a);};
4624 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4625 int argc;
4626 char **argv;
4628 main ()
4630 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4632 return 0;
4634 _ACEOF
4635 # Don't try gcc -ansi; that turns off useful extensions and
4636 # breaks some systems' header files.
4637 # AIX -qlanglvl=ansi
4638 # Ultrix and OSF/1 -std1
4639 # HP-UX 10.20 and later -Ae
4640 # HP-UX older versions -Aa -D_HPUX_SOURCE
4641 # SVR4 -Xc -D__EXTENSIONS__
4642 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4644 CC="$ac_save_CC $ac_arg"
4645 rm -f conftest.$ac_objext
4646 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4647 (eval $ac_compile) 2>conftest.er1
4648 ac_status=$?
4649 grep -v '^ *+' conftest.er1 >conftest.err
4650 rm -f conftest.er1
4651 cat conftest.err >&5
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); } &&
4654 { ac_try='test -z "$ac_c_werror_flag"
4655 || test ! -s conftest.err'
4656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4657 (eval $ac_try) 2>&5
4658 ac_status=$?
4659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4660 (exit $ac_status); }; } &&
4661 { ac_try='test -s conftest.$ac_objext'
4662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4663 (eval $ac_try) 2>&5
4664 ac_status=$?
4665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4666 (exit $ac_status); }; }; then
4667 ac_cv_prog_cc_stdc=$ac_arg
4668 break
4669 else
4670 echo "$as_me: failed program was:" >&5
4671 sed 's/^/| /' conftest.$ac_ext >&5
4674 rm -f conftest.err conftest.$ac_objext
4675 done
4676 rm -f conftest.$ac_ext conftest.$ac_objext
4677 CC=$ac_save_CC
4681 case "x$ac_cv_prog_cc_stdc" in
4682 x|xno)
4683 echo "$as_me:$LINENO: result: none needed" >&5
4684 echo "${ECHO_T}none needed" >&6 ;;
4686 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4687 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4688 CC="$CC $ac_cv_prog_cc_stdc" ;;
4689 esac
4691 # Some people use a C++ compiler to compile C. Since we use `exit',
4692 # in C++ we need to declare it. In case someone uses the same compiler
4693 # for both compiling C and C++ we need to have the C++ compiler decide
4694 # the declaration of exit, since it's the most demanding environment.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 #ifndef __cplusplus
4697 choke me
4698 #endif
4699 _ACEOF
4700 rm -f conftest.$ac_objext
4701 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4702 (eval $ac_compile) 2>conftest.er1
4703 ac_status=$?
4704 grep -v '^ *+' conftest.er1 >conftest.err
4705 rm -f conftest.er1
4706 cat conftest.err >&5
4707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4708 (exit $ac_status); } &&
4709 { ac_try='test -z "$ac_c_werror_flag"
4710 || test ! -s conftest.err'
4711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4712 (eval $ac_try) 2>&5
4713 ac_status=$?
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); }; } &&
4716 { ac_try='test -s conftest.$ac_objext'
4717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4718 (eval $ac_try) 2>&5
4719 ac_status=$?
4720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4721 (exit $ac_status); }; }; then
4722 for ac_declaration in \
4723 '' \
4724 'extern "C" void std::exit (int) throw (); using std::exit;' \
4725 'extern "C" void std::exit (int); using std::exit;' \
4726 'extern "C" void exit (int) throw ();' \
4727 'extern "C" void exit (int);' \
4728 'void exit (int);'
4730 cat >conftest.$ac_ext <<_ACEOF
4731 /* confdefs.h. */
4732 _ACEOF
4733 cat confdefs.h >>conftest.$ac_ext
4734 cat >>conftest.$ac_ext <<_ACEOF
4735 /* end confdefs.h. */
4736 $ac_declaration
4737 #include <stdlib.h>
4739 main ()
4741 exit (42);
4743 return 0;
4745 _ACEOF
4746 rm -f conftest.$ac_objext
4747 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4748 (eval $ac_compile) 2>conftest.er1
4749 ac_status=$?
4750 grep -v '^ *+' conftest.er1 >conftest.err
4751 rm -f conftest.er1
4752 cat conftest.err >&5
4753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4754 (exit $ac_status); } &&
4755 { ac_try='test -z "$ac_c_werror_flag"
4756 || test ! -s conftest.err'
4757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4758 (eval $ac_try) 2>&5
4759 ac_status=$?
4760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4761 (exit $ac_status); }; } &&
4762 { ac_try='test -s conftest.$ac_objext'
4763 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4764 (eval $ac_try) 2>&5
4765 ac_status=$?
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); }; }; then
4769 else
4770 echo "$as_me: failed program was:" >&5
4771 sed 's/^/| /' conftest.$ac_ext >&5
4773 continue
4775 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4776 cat >conftest.$ac_ext <<_ACEOF
4777 /* confdefs.h. */
4778 _ACEOF
4779 cat confdefs.h >>conftest.$ac_ext
4780 cat >>conftest.$ac_ext <<_ACEOF
4781 /* end confdefs.h. */
4782 $ac_declaration
4784 main ()
4786 exit (42);
4788 return 0;
4790 _ACEOF
4791 rm -f conftest.$ac_objext
4792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4793 (eval $ac_compile) 2>conftest.er1
4794 ac_status=$?
4795 grep -v '^ *+' conftest.er1 >conftest.err
4796 rm -f conftest.er1
4797 cat conftest.err >&5
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); } &&
4800 { ac_try='test -z "$ac_c_werror_flag"
4801 || test ! -s conftest.err'
4802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4803 (eval $ac_try) 2>&5
4804 ac_status=$?
4805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4806 (exit $ac_status); }; } &&
4807 { ac_try='test -s conftest.$ac_objext'
4808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4809 (eval $ac_try) 2>&5
4810 ac_status=$?
4811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4812 (exit $ac_status); }; }; then
4813 break
4814 else
4815 echo "$as_me: failed program was:" >&5
4816 sed 's/^/| /' conftest.$ac_ext >&5
4819 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4820 done
4821 rm -f conftest*
4822 if test -n "$ac_declaration"; then
4823 echo '#ifdef __cplusplus' >>confdefs.h
4824 echo $ac_declaration >>confdefs.h
4825 echo '#endif' >>confdefs.h
4828 else
4829 echo "$as_me: failed program was:" >&5
4830 sed 's/^/| /' conftest.$ac_ext >&5
4833 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4834 ac_ext=c
4835 ac_cpp='$CPP $CPPFLAGS'
4836 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4837 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4838 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4842 COMPATH=`dirname "$CC"`
4843 if test "$COMPATH" = "." ; then
4844 for ac_prog in $CC
4846 # Extract the first word of "$ac_prog", so it can be a program name with args.
4847 set dummy $ac_prog; ac_word=$2
4848 echo "$as_me:$LINENO: checking for $ac_word" >&5
4849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4850 if test "${ac_cv_path_COMPATH+set}" = set; then
4851 echo $ECHO_N "(cached) $ECHO_C" >&6
4852 else
4853 case $COMPATH in
4854 [\\/]* | ?:[\\/]*)
4855 ac_cv_path_COMPATH="$COMPATH" # Let the user override the test with a path.
4858 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4859 for as_dir in $PATH
4861 IFS=$as_save_IFS
4862 test -z "$as_dir" && as_dir=.
4863 for ac_exec_ext in '' $ac_executable_extensions; do
4864 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4865 ac_cv_path_COMPATH="$as_dir/$ac_word$ac_exec_ext"
4866 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4867 break 2
4869 done
4870 done
4873 esac
4875 COMPATH=$ac_cv_path_COMPATH
4877 if test -n "$COMPATH"; then
4878 echo "$as_me:$LINENO: result: $COMPATH" >&5
4879 echo "${ECHO_T}$COMPATH" >&6
4880 else
4881 echo "$as_me:$LINENO: result: no" >&5
4882 echo "${ECHO_T}no" >&6
4885 test -n "$COMPATH" && break
4886 done
4888 COMPATH=`echo $COMPATH | $SED "s@/[^/:]*\\\$@@"`;
4890 COMPATH=`echo $COMPATH | $SED "s@/[Bb][Ii][Nn]\\\$@@"`;
4892 GCCVER=20995
4893 if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
4894 echo "$as_me:$LINENO: checking the GNU gcc compiler version" >&5
4895 echo $ECHO_N "checking the GNU gcc compiler version... $ECHO_C" >&6
4896 _gcc_version=`$CC -dumpversion`
4897 _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
4898 GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
4900 if test "$_gcc_major" -lt "3"; then
4901 { { echo "$as_me:$LINENO: error: found version \"$_gcc_version\", use version 3+ of the gcc compiler" >&5
4902 echo "$as_me: error: found version \"$_gcc_version\", use version 3+ of the gcc compiler" >&2;}
4903 { (exit 1); exit 1; }; }
4904 else
4905 if test "$GCCVER" -eq "030203"; then
4906 if test "$ENABLE_SYMBOLS" = "SMALL"; then
4907 { { echo "$as_me:$LINENO: error: version \"$_gcc_version\" gives internal error with small." >&5
4908 echo "$as_me: error: version \"$_gcc_version\" gives internal error with small." >&2;}
4909 { (exit 1); exit 1; }; }
4913 if test "$_os" = "Darwin" -a "$GCCVER" -ge "040100" ; then
4914 if test -z "$save_CC" -a -x "$GCC_HOME/bin/gcc-4.0" ; then
4915 CC=$GCC_HOME/bin/gcc-4.0
4916 GCCVER2=`"$CC" -dumpversion | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
4917 if test "$GCCVER2" -ge "040000" -a "$GCCVER2" -lt "040100" ; then
4918 GCCVER=$GCCVER2
4921 if test "$GCCVER" -ge "040100" ; then
4922 { { echo "$as_me:$LINENO: error: You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" >&5
4923 echo "$as_me: error: You need to use the gcc-4.0 compiler (gcc $_gcc_version won't work with the MacOSX10.4u.sdk) - set CC accordingly" >&2;}
4924 { (exit 1); exit 1; }; }
4925 else
4926 echo "$as_me:$LINENO: result: implicitly using CC=$CC" >&5
4927 echo "${ECHO_T}implicitly using CC=$CC" >&6
4929 else
4930 echo "$as_me:$LINENO: result: checked (gcc $_gcc_version)" >&5
4931 echo "${ECHO_T}checked (gcc $_gcc_version)" >&6
4933 if test "$_os" = "SunOS"; then
4934 echo "$as_me:$LINENO: checking gcc linker" >&5
4935 echo $ECHO_N "checking gcc linker... $ECHO_C" >&6
4936 if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then
4937 { { echo "$as_me:$LINENO: error: failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris" >&5
4938 echo "$as_me: error: failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris" >&2;}
4939 { (exit 1); exit 1; }; }
4941 echo "$as_me:$LINENO: result: ok (GNU ld)" >&5
4942 echo "${ECHO_T}ok (GNU ld)" >&6
4947 HAVE_LD_BSYMBOLIC_FUNCTIONS=
4948 if test "$GCC" = "yes"; then
4949 echo "$as_me:$LINENO: checking for -Bsymbolic-functions linker support " >&5
4950 echo $ECHO_N "checking for -Bsymbolic-functions linker support ... $ECHO_C" >&6
4951 bsymbolic_functions_ldflags_save=$LDFLAGS
4952 LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
4954 cat >conftest.$ac_ext <<_ACEOF
4955 /* confdefs.h. */
4956 _ACEOF
4957 cat confdefs.h >>conftest.$ac_ext
4958 cat >>conftest.$ac_ext <<_ACEOF
4959 /* end confdefs.h. */
4961 #include <stdio.h>
4964 main ()
4967 printf ("hello world\n");
4970 return 0;
4972 _ACEOF
4973 rm -f conftest.$ac_objext conftest$ac_exeext
4974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4975 (eval $ac_link) 2>conftest.er1
4976 ac_status=$?
4977 grep -v '^ *+' conftest.er1 >conftest.err
4978 rm -f conftest.er1
4979 cat conftest.err >&5
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } &&
4982 { ac_try='test -z "$ac_c_werror_flag"
4983 || test ! -s conftest.err'
4984 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4985 (eval $ac_try) 2>&5
4986 ac_status=$?
4987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4988 (exit $ac_status); }; } &&
4989 { ac_try='test -s conftest$ac_exeext'
4990 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4991 (eval $ac_try) 2>&5
4992 ac_status=$?
4993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4994 (exit $ac_status); }; }; then
4995 HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE
4996 else
4997 echo "$as_me: failed program was:" >&5
4998 sed 's/^/| /' conftest.$ac_ext >&5
5001 rm -f conftest.err conftest.$ac_objext \
5002 conftest$ac_exeext conftest.$ac_ext
5003 if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
5004 echo "$as_me:$LINENO: result: found " >&5
5005 echo "${ECHO_T}found " >&6
5006 else
5007 echo "$as_me:$LINENO: result: not found " >&5
5008 echo "${ECHO_T}not found " >&6
5010 LDFLAGS=$bsymbolic_functions_ldflags_save
5014 echo "$as_me:$LINENO: checking whether to enable pch feature" >&5
5015 echo $ECHO_N "checking whether to enable pch feature... $ECHO_C" >&6
5016 if test -n "$enable_pch" && test "$enable_pch" != "no"; then
5017 if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
5018 ENABLE_PCH="TRUE"
5019 echo "$as_me:$LINENO: result: yes" >&5
5020 echo "${ECHO_T}yes" >&6
5021 elif test "$GCC" = "yes" -a "$GCCVER" -gt "030400"; then
5022 ENABLE_PCH="TRUE"
5023 echo "$as_me:$LINENO: result: yes" >&5
5024 echo "${ECHO_T}yes" >&6
5025 else
5026 ENABLE_PCH=""
5027 { echo "$as_me:$LINENO: WARNING: Precompiled header not yet supported for your platform/compiler" >&5
5028 echo "$as_me: WARNING: Precompiled header not yet supported for your platform/compiler" >&2;}
5030 else
5031 ENABLE_PCH=""
5032 echo "$as_me:$LINENO: result: no" >&5
5033 echo "${ECHO_T}no" >&6
5037 echo "$as_me:$LINENO: checking whether to enable hid list feature" >&5
5038 echo $ECHO_N "checking whether to enable hid list feature... $ECHO_C" >&6
5039 if test -n "$enable_hids" && test "$enable_hids" != "no"; then
5040 NO_HIDS=""
5041 echo "$as_me:$LINENO: result: yes" >&5
5042 echo "${ECHO_T}yes" >&6
5043 else
5044 NO_HIDS="TRUE"
5045 echo "$as_me:$LINENO: result: no" >&5
5046 echo "${ECHO_T}no" >&6
5050 echo "$as_me:$LINENO: checking for GNU make" >&5
5051 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6
5052 for a in "$MAKE" $GNUMAKE make gmake gnumake; do
5053 $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
5054 if test $? -eq 0; then
5055 GNUMAKE=$a
5056 break
5058 done
5059 echo "$as_me:$LINENO: result: $GNUMAKE" >&5
5060 echo "${ECHO_T}$GNUMAKE" >&6
5061 if test -z "$GNUMAKE"; then
5062 { { echo "$as_me:$LINENO: error: not found. install GNU make." >&5
5063 echo "$as_me: error: not found. install GNU make." >&2;}
5064 { (exit 1); exit 1; }; }
5067 echo "$as_me:$LINENO: checking the GNU make version" >&5
5068 echo $ECHO_N "checking the GNU make version... $ECHO_C" >&6
5069 _make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
5070 _make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
5071 if test "$_make_longver" -ge "037901" ; then
5072 echo "$as_me:$LINENO: result: $GNUMAKE $_make_version" >&5
5073 echo "${ECHO_T}$GNUMAKE $_make_version" >&6
5074 else
5075 if test "$_os" = "Darwin"; then
5076 if test "$_make_longver" -ge "037900" ; then
5077 echo "$as_me:$LINENO: result: $GNUMAKE $_make_version" >&5
5078 echo "${ECHO_T}$GNUMAKE $_make_version" >&6
5079 else
5080 { echo "$as_me:$LINENO: WARNING: failed ($GNUMAKE $_make_version need 3.79.0+)" >&5
5081 echo "$as_me: WARNING: failed ($GNUMAKE $_make_version need 3.79.0+)" >&2;}
5083 else
5084 { { echo "$as_me:$LINENO: error: failed ($GNUMAKE $_make_version need 3.79.1+)" >&5
5085 echo "$as_me: error: failed ($GNUMAKE $_make_version need 3.79.1+)" >&2;}
5086 { (exit 1); exit 1; }; }
5091 echo "$as_me:$LINENO: checking for GNU tar" >&5
5092 echo $ECHO_N "checking for GNU tar... $ECHO_C" >&6
5093 for a in $GNUTAR gtar gnutar tar; do
5094 $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
5095 if test $? -eq 0; then
5096 GNUTAR=$a
5097 break
5099 done
5100 echo "$as_me:$LINENO: result: $GNUTAR" >&5
5101 echo "${ECHO_T}$GNUTAR" >&6
5102 if test -z "$GNUTAR"; then
5103 { { echo "$as_me:$LINENO: error: not found. install GNU tar." >&5
5104 echo "$as_me: error: not found. install GNU tar." >&2;}
5105 { (exit 1); exit 1; }; }
5110 if test "$_os" = "SunOS"; then
5111 if test "$CC" = "cc"; then
5112 for ac_prog in cc
5114 # Extract the first word of "$ac_prog", so it can be a program name with args.
5115 set dummy $ac_prog; ac_word=$2
5116 echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5118 if test "${ac_cv_path__cc+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 case $_cc in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path__cc="$_cc" # Let the user override the test with a path.
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in $PATH
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5133 ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5137 done
5138 done
5141 esac
5143 _cc=$ac_cv_path__cc
5145 if test -n "$_cc"; then
5146 echo "$as_me:$LINENO: result: $_cc" >&5
5147 echo "${ECHO_T}$_cc" >&6
5148 else
5149 echo "$as_me:$LINENO: result: no" >&5
5150 echo "${ECHO_T}no" >&6
5153 test -n "$_cc" && break
5154 done
5156 COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
5157 echo "$as_me:$LINENO: checking the SunStudio C/C++ compiler version" >&5
5158 echo $ECHO_N "checking the SunStudio C/C++ compiler version... $ECHO_C" >&6
5159 _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | sed -e 's/.* C //'`
5160 _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
5161 _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
5162 if test "$_sunstudio_major" != "5"; then
5163 { { echo "$as_me:$LINENO: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&5
5164 echo "$as_me: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&2;}
5165 { (exit 1); exit 1; }; }
5166 else
5167 _sunstudio_minor=`echo $_sunstudio_version | $AWK -F. '{ if ($2 == 5) print "true"; else if ($2 == 7) print "true"; else if ($2 == 8) print "true"; else if ($2 == 9) print "true"; else print "false" }'`
5168 if test "$_sunstudio_minor" = "false"; then
5169 { { echo "$as_me:$LINENO: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&5
5170 echo "$as_me: error: found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" >&2;}
5171 { (exit 1); exit 1; }; }
5172 else
5173 echo "$as_me:$LINENO: result: checked" >&5
5174 echo "${ECHO_T}checked" >&6
5180 if test "$GCC" = "yes"; then
5181 echo "$as_me:$LINENO: checking for --hash-style=both linker support " >&5
5182 echo $ECHO_N "checking for --hash-style=both linker support ... $ECHO_C" >&6
5183 hash_style_ldflags_save=$LDFLAGS
5184 LDFLAGS="$LDFLAGS -Wl,--hash-style=both"
5185 cat >conftest.$ac_ext <<_ACEOF
5186 /* confdefs.h. */
5187 _ACEOF
5188 cat confdefs.h >>conftest.$ac_ext
5189 cat >>conftest.$ac_ext <<_ACEOF
5190 /* end confdefs.h. */
5192 #include <stdio.h>
5195 main ()
5198 printf ("hello world\n");
5201 return 0;
5203 _ACEOF
5204 rm -f conftest.$ac_objext conftest$ac_exeext
5205 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5206 (eval $ac_link) 2>conftest.er1
5207 ac_status=$?
5208 grep -v '^ *+' conftest.er1 >conftest.err
5209 rm -f conftest.er1
5210 cat conftest.err >&5
5211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5212 (exit $ac_status); } &&
5213 { ac_try='test -z "$ac_c_werror_flag"
5214 || test ! -s conftest.err'
5215 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5216 (eval $ac_try) 2>&5
5217 ac_status=$?
5218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5219 (exit $ac_status); }; } &&
5220 { ac_try='test -s conftest$ac_exeext'
5221 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5222 (eval $ac_try) 2>&5
5223 ac_status=$?
5224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5225 (exit $ac_status); }; }; then
5226 HAVE_LD_HASH_STYLE=TRUE
5227 else
5228 echo "$as_me: failed program was:" >&5
5229 sed 's/^/| /' conftest.$ac_ext >&5
5231 HAVE_LD_HASH_STYLE=FALSE
5233 rm -f conftest.err conftest.$ac_objext \
5234 conftest$ac_exeext conftest.$ac_ext
5235 if test "z$HAVE_LD_HASH_STYLE" = "zTRUE"; then
5236 echo "$as_me:$LINENO: result: found " >&5
5237 echo "${ECHO_T}found " >&6
5238 else
5239 echo "$as_me:$LINENO: result: not found " >&5
5240 echo "${ECHO_T}not found " >&6
5242 LDFLAGS=$hash_style_ldflags_save
5246 if test "$_os" = "OSF1"; then
5247 if test "$CC" = "cc"; then
5248 for ac_prog in cc
5250 # Extract the first word of "$ac_prog", so it can be a program name with args.
5251 set dummy $ac_prog; ac_word=$2
5252 echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5254 if test "${ac_cv_path__cc+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 case $_cc in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path__cc="$_cc" # Let the user override the test with a path.
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in $PATH
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269 ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5273 done
5274 done
5277 esac
5279 _cc=$ac_cv_path__cc
5281 if test -n "$_cc"; then
5282 echo "$as_me:$LINENO: result: $_cc" >&5
5283 echo "${ECHO_T}$_cc" >&6
5284 else
5285 echo "$as_me:$LINENO: result: no" >&5
5286 echo "${ECHO_T}no" >&6
5289 test -n "$_cc" && break
5290 done
5292 COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
5293 { echo "$as_me:$LINENO: WARNING: ******* $_cc , $COMPATH" >&5
5294 echo "$as_me: WARNING: ******* $_cc , $COMPATH" >&2;}
5295 echo "$as_me:$LINENO: checking the Compaq C compiler version" >&5
5296 echo $ECHO_N "checking the Compaq C compiler version... $ECHO_C" >&6
5297 _compaqc_version=`$CC -V 2>&1 | $AWK '{ print $3 }'`
5298 _compaqc_major=`echo $_compaqc_version | $AWK -F. '{ print $1 }'`
5299 if test "$_compaqc_major" != "T6"; then
5300 { { echo "$as_me:$LINENO: error: found version \"$_compaqc_version\", use version 6 of the Compaq C compiler" >&5
5301 echo "$as_me: error: found version \"$_compaqc_version\", use version 6 of the Compaq C compiler" >&2;}
5302 { (exit 1); exit 1; }; }
5303 else
5304 echo "$as_me:$LINENO: result: checked" >&5
5305 echo "${ECHO_T}checked" >&6
5310 if test -z "$with_perl_home"; then
5311 # Extract the first word of "perl", so it can be a program name with args.
5312 set dummy perl; ac_word=$2
5313 echo "$as_me:$LINENO: checking for $ac_word" >&5
5314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5315 if test "${ac_cv_path_PERL+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 case $PERL in
5319 [\\/]* | ?:[\\/]*)
5320 ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
5323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5324 for as_dir in $PATH
5326 IFS=$as_save_IFS
5327 test -z "$as_dir" && as_dir=.
5328 for ac_exec_ext in '' $ac_executable_extensions; do
5329 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5330 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
5331 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5332 break 2
5334 done
5335 done
5338 esac
5340 PERL=$ac_cv_path_PERL
5342 if test -n "$PERL"; then
5343 echo "$as_me:$LINENO: result: $PERL" >&5
5344 echo "${ECHO_T}$PERL" >&6
5345 else
5346 echo "$as_me:$LINENO: result: no" >&5
5347 echo "${ECHO_T}no" >&6
5350 else
5351 if test "$_os" = "WINNT"; then
5352 with_perl_home=`cygpath -u "$with_perl_home"`
5354 _perl_path="$with_perl_home/bin/perl"
5355 if test -x "$_perl_path"; then
5356 PERL=$_perl_path
5357 else
5358 { { echo "$as_me:$LINENO: error: $_perl_path not found" >&5
5359 echo "$as_me: error: $_perl_path not found" >&2;}
5360 { (exit 1); exit 1; }; }
5364 if test "$PERL"; then
5365 echo "$as_me:$LINENO: checking the Perl version" >&5
5366 echo $ECHO_N "checking the Perl version... $ECHO_C" >&6
5367 ${PERL} -e "exit($]);"
5368 _perl_version=$?
5369 if test "$_perl_version" -lt 5; then
5370 { { echo "$as_me:$LINENO: error: found Perl version \"$_perl_version\", use version 5 of Perl" >&5
5371 echo "$as_me: error: found Perl version \"$_perl_version\", use version 5 of Perl" >&2;}
5372 { (exit 1); exit 1; }; }
5374 echo "$as_me:$LINENO: result: checked (perl $_perl_version)" >&5
5375 echo "${ECHO_T}checked (perl $_perl_version)" >&6
5376 else
5377 { { echo "$as_me:$LINENO: error: Perl not found, install version 5 of Perl" >&5
5378 echo "$as_me: error: Perl not found, install version 5 of Perl" >&2;}
5379 { (exit 1); exit 1; }; }
5383 echo "$as_me:$LINENO: checking for required Perl modules" >&5
5384 echo $ECHO_N "checking for required Perl modules... $ECHO_C" >&6
5385 if `$PERL -e 'use Archive::Zip;'`; then
5386 echo "$as_me:$LINENO: result: all modules found" >&5
5387 echo "${ECHO_T}all modules found" >&6
5388 else
5389 { { echo "$as_me:$LINENO: error: Failed to find some modules" >&5
5390 echo "$as_me: error: Failed to find some modules" >&2;}
5391 { (exit 1); exit 1; }; }
5394 if test "$_os" = "WINNT"; then
5395 if test "$WITH_MINGWIN" != "yes"; then
5396 echo "$as_me:$LINENO: checking for friendly registry keys" >&5
5397 echo $ECHO_N "checking for friendly registry keys... $ECHO_C" >&6
5398 # VS.Net 2003, VS.Net 2005
5399 if test -z "$with_cl_home"; then
5400 vctest=`./oowintool --msvc-productdir`;
5401 if test -x "$vctest/bin/cl.exe"; then
5402 with_cl_home=$vctest;
5404 else
5405 with_cl_home=`cygpath -u "$with_cl_home"`
5407 echo "$as_me:$LINENO: result: done" >&5
5408 echo "${ECHO_T}done" >&6
5410 if test -n "$with_mspdb_path";then
5411 with_mspdb_path=`cygpath -u "$with_mspdb_path"`
5413 if test -e "$with_mspdb_path/mspdb71.dll" -o -e "$with_mspdb_path/mspdb80.dll"; then
5414 MSPDB_PATH="$with_mspdb_path"
5416 if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb71.dll"; then
5417 MSPDB_PATH="$with_cl_home/../Common7/IDE"
5419 if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
5420 MSPDB_PATH="$with_cl_home/../Common7/IDE"
5422 if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
5423 MSPDB_PATH="$with_cl_home/bin"
5426 if test -z "$MSPDB_PATH";then
5427 # Extract the first word of "mspdb80.dll", so it can be a program name with args.
5428 set dummy mspdb80.dll; ac_word=$2
5429 echo "$as_me:$LINENO: checking for $ac_word" >&5
5430 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5431 if test "${ac_cv_path_MSPDB_PATH+set}" = set; then
5432 echo $ECHO_N "(cached) $ECHO_C" >&6
5433 else
5434 case $MSPDB_PATH in
5435 [\\/]* | ?:[\\/]*)
5436 ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
5439 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5440 for as_dir in $PATH
5442 IFS=$as_save_IFS
5443 test -z "$as_dir" && as_dir=.
5444 for ac_exec_ext in '' $ac_executable_extensions; do
5445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5446 ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
5447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5448 break 2
5450 done
5451 done
5454 esac
5456 MSPDB_PATH=$ac_cv_path_MSPDB_PATH
5458 if test -n "$MSPDB_PATH"; then
5459 echo "$as_me:$LINENO: result: $MSPDB_PATH" >&5
5460 echo "${ECHO_T}$MSPDB_PATH" >&6
5461 else
5462 echo "$as_me:$LINENO: result: no" >&5
5463 echo "${ECHO_T}no" >&6
5466 # Extract the first word of "mspdb71.dll", so it can be a program name with args.
5467 set dummy mspdb71.dll; ac_word=$2
5468 echo "$as_me:$LINENO: checking for $ac_word" >&5
5469 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5470 if test "${ac_cv_path_MSPDB_PATH+set}" = set; then
5471 echo $ECHO_N "(cached) $ECHO_C" >&6
5472 else
5473 case $MSPDB_PATH in
5474 [\\/]* | ?:[\\/]*)
5475 ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
5478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5479 for as_dir in $PATH
5481 IFS=$as_save_IFS
5482 test -z "$as_dir" && as_dir=.
5483 for ac_exec_ext in '' $ac_executable_extensions; do
5484 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5485 ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
5486 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5487 break 2
5489 done
5490 done
5493 esac
5495 MSPDB_PATH=$ac_cv_path_MSPDB_PATH
5497 if test -n "$MSPDB_PATH"; then
5498 echo "$as_me:$LINENO: result: $MSPDB_PATH" >&5
5499 echo "${ECHO_T}$MSPDB_PATH" >&6
5500 else
5501 echo "$as_me:$LINENO: result: no" >&5
5502 echo "${ECHO_T}no" >&6
5505 MSPDB_PATH=`dirname "$MSPDB_PATH"`
5508 if test -z "$MSPDB_PATH"; then
5509 { { echo "$as_me:$LINENO: error: You need a mspdb71.dll/mspdb80.dll, make sure it's in the path or use --with-mspdb-path" >&5
5510 echo "$as_me: error: You need a mspdb71.dll/mspdb80.dll, make sure it's in the path or use --with-mspdb-path" >&2;}
5511 { (exit 1); exit 1; }; }
5513 MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
5514 MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
5515 PATH="$MSPDB_PATH:$PATH"
5517 echo "$as_me:$LINENO: checking the Microsoft C/C++ Compiler" >&5
5518 echo $ECHO_N "checking the Microsoft C/C++ Compiler... $ECHO_C" >&6
5519 if test -x "$with_cl_home/bin/cl.exe"; then
5520 CC="$with_cl_home/bin/cl.exe"
5521 else
5522 # Extract the first word of "cl.exe", so it can be a program name with args.
5523 set dummy cl.exe; ac_word=$2
5524 echo "$as_me:$LINENO: checking for $ac_word" >&5
5525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5526 if test "${ac_cv_path_CC+set}" = set; then
5527 echo $ECHO_N "(cached) $ECHO_C" >&6
5528 else
5529 case $CC in
5530 [\\/]* | ?:[\\/]*)
5531 ac_cv_path_CC="$CC" # Let the user override the test with a path.
5534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5535 for as_dir in $PATH
5537 IFS=$as_save_IFS
5538 test -z "$as_dir" && as_dir=.
5539 for ac_exec_ext in '' $ac_executable_extensions; do
5540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5541 ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
5542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5543 break 2
5545 done
5546 done
5549 esac
5551 CC=$ac_cv_path_CC
5553 if test -n "$CC"; then
5554 echo "$as_me:$LINENO: result: $CC" >&5
5555 echo "${ECHO_T}$CC" >&6
5556 else
5557 echo "$as_me:$LINENO: result: no" >&5
5558 echo "${ECHO_T}no" >&6
5562 if test -e "$CC"; then
5563 # This gives us a posix path with 8.3 filename restrictions
5564 CC=`cygpath -d "$CC"`
5565 CC=`cygpath -u "$CC"`
5566 # Remove /cl.exe from CC case insensitive
5567 echo "$as_me:$LINENO: result: found ($CC)" >&5
5568 echo "${ECHO_T}found ($CC)" >&6
5569 COMPATH=`echo $CC | $SED 's@\/[Bb][Ii][Nn]\/[cC][lL]\.[eE][xX][eE]@@'`
5570 export INCLUDE=`cygpath -d "$COMPATH/Include"`
5571 echo "$as_me:$LINENO: checking the Version of Microsoft C/C++ Compiler" >&5
5572 echo $ECHO_N "checking the Version of Microsoft C/C++ Compiler... $ECHO_C" >&6
5573 CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
5574 x = match( \\\$0, /..\\...\\...../ )
5575 CCversion = substr( \\\$0, RSTART, RLENGTH)
5576 tokencount = split (CCversion,vertoken,\".\")
5577 for ( i = 1 ; i <= tokencount ; i++ ) {
5578 printf (\"%04d\",vertoken[i] )
5581 echo "$as_me:$LINENO: result: found Compiler version $CCNUMVER." >&5
5582 echo "${ECHO_T}found Compiler version $CCNUMVER." >&6
5583 if test "$CCNUMVER" -ge "001500000000"; then
5584 COMEX=12
5585 MSVSVER=2008
5586 echo "$as_me:$LINENO: result: found .NET 2008 / VS 9.0." >&5
5587 echo "${ECHO_T}found .NET 2008 / VS 9.0." >&6
5588 elif test "$CCNUMVER" -ge "001400000000"; then
5589 COMEX=11
5590 MSVSVER=2005
5591 echo "$as_me:$LINENO: result: found .NET 2005." >&5
5592 echo "${ECHO_T}found .NET 2005." >&6
5593 elif test "$CCNUMVER" -ge "001300102240"; then
5594 COMEX=10
5595 MSVSVER=2003
5596 echo "$as_me:$LINENO: result: found .NET 2003." >&5
5597 echo "${ECHO_T}found .NET 2003." >&6
5598 else
5599 { { echo "$as_me:$LINENO: error: Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler." >&5
5600 echo "$as_me: error: Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler." >&2;}
5601 { (exit 1); exit 1; }; }
5603 else
5604 { { echo "$as_me:$LINENO: error: Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." >&5
5605 echo "$as_me: error: Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." >&2;}
5606 { (exit 1); exit 1; }; }
5608 else
5609 echo "$as_me:$LINENO: checking the Mingwin32 C++ Compiler" >&5
5610 echo $ECHO_N "checking the Mingwin32 C++ Compiler... $ECHO_C" >&6
5611 if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
5612 echo "$as_me:$LINENO: result: found." >&5
5613 echo "${ECHO_T}found." >&6
5614 if $CC -dumpspecs | grep -q "mno-cygwin"; then
5615 USE_MINGW="cygwin"
5616 else
5617 USE_MINGW="pure-mingw"
5619 else
5620 { { echo "$as_me:$LINENO: error: Mingwin32 C++ Compiler not found." >&5
5621 echo "$as_me: error: Mingwin32 C++ Compiler not found." >&2;}
5622 { (exit 1); exit 1; }; }
5630 if test "$_os" = "WINNT"; then
5631 if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
5632 # Extract the first word of "midl.exe", so it can be a program name with args.
5633 set dummy midl.exe; ac_word=$2
5634 echo "$as_me:$LINENO: checking for $ac_word" >&5
5635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5636 if test "${ac_cv_path_MIDL_PATH+set}" = set; then
5637 echo $ECHO_N "(cached) $ECHO_C" >&6
5638 else
5639 case $MIDL_PATH in
5640 [\\/]* | ?:[\\/]*)
5641 ac_cv_path_MIDL_PATH="$MIDL_PATH" # Let the user override the test with a path.
5644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5645 for as_dir in $PATH
5647 IFS=$as_save_IFS
5648 test -z "$as_dir" && as_dir=.
5649 for ac_exec_ext in '' $ac_executable_extensions; do
5650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5651 ac_cv_path_MIDL_PATH="$as_dir/$ac_word$ac_exec_ext"
5652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5653 break 2
5655 done
5656 done
5659 esac
5661 MIDL_PATH=$ac_cv_path_MIDL_PATH
5663 if test -n "$MIDL_PATH"; then
5664 echo "$as_me:$LINENO: result: $MIDL_PATH" >&5
5665 echo "${ECHO_T}$MIDL_PATH" >&6
5666 else
5667 echo "$as_me:$LINENO: result: no" >&5
5668 echo "${ECHO_T}no" >&6
5671 if test -n "$MIDL_PATH";then
5672 MIDL_PATH=`dirname "$MIDL_PATH"`
5674 if test -n "$with_midl_path";then
5675 with_midl_path=`cygpath -u "$with_midl_path"`
5677 if test -x "$with_midl_path/midl.exe"; then
5678 MIDL_PATH="$with_midl_path"
5680 if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
5681 MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
5683 if test -z "$MIDL_PATH" ; then
5684 vstest=`./oowintool --msvs-productdir`;
5685 if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
5686 MIDL_PATH="$vstest/Common7/Tools/Bin"
5689 if test -z "$MIDL_PATH" ; then
5690 psdktest=`./oowintool --psdk-home`
5691 if test -x "$psdktest/Bin/midl.exe" ; then
5692 MIDL_PATH="$psdktest/Bin"
5695 if test ! -x "$MIDL_PATH/midl.exe"; then
5696 { { echo "$as_me:$LINENO: error: midl.exe not found. Make sure it's in the path or use --with-midl-path" >&5
5697 echo "$as_me: error: midl.exe not found. Make sure it's in the path or use --with-midl-path" >&2;}
5698 { (exit 1); exit 1; }; }
5700 # Convert to posix path with 8.3 filename restrictions ( No spaces )
5701 MIDL_PATH=`cygpath -d "$MIDL_PATH"`
5702 MIDL_PATH=`cygpath -u "$MIDL_PATH"`
5704 # Extract the first word of "csc.exe", so it can be a program name with args.
5705 set dummy csc.exe; ac_word=$2
5706 echo "$as_me:$LINENO: checking for $ac_word" >&5
5707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5708 if test "${ac_cv_path_CSC_PATH+set}" = set; then
5709 echo $ECHO_N "(cached) $ECHO_C" >&6
5710 else
5711 case $CSC_PATH in
5712 [\\/]* | ?:[\\/]*)
5713 ac_cv_path_CSC_PATH="$CSC_PATH" # Let the user override the test with a path.
5716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5717 for as_dir in $PATH
5719 IFS=$as_save_IFS
5720 test -z "$as_dir" && as_dir=.
5721 for ac_exec_ext in '' $ac_executable_extensions; do
5722 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5723 ac_cv_path_CSC_PATH="$as_dir/$ac_word$ac_exec_ext"
5724 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5725 break 2
5727 done
5728 done
5731 esac
5733 CSC_PATH=$ac_cv_path_CSC_PATH
5735 if test -n "$CSC_PATH"; then
5736 echo "$as_me:$LINENO: result: $CSC_PATH" >&5
5737 echo "${ECHO_T}$CSC_PATH" >&6
5738 else
5739 echo "$as_me:$LINENO: result: no" >&5
5740 echo "${ECHO_T}no" >&6
5743 if test -n "$CSC_PATH";then
5744 CSC_PATH=`dirname "$CSC_PATH"`
5746 if test -n "$with_csc_path";then
5747 with_csc_path=`cygpath -u "$with_csc_path"`
5749 if test -x "$with_csc_path/csc.exe"; then
5750 CSC_PATH="$with_csc_path"
5751 else
5752 csctest=`./oowintool --csc-compilerdir`;
5753 if test -x "$csctest/csc.exe"; then
5754 CSC_PATH="$csctest"
5757 if test ! -x "$CSC_PATH/csc.exe"; then
5758 { { echo "$as_me:$LINENO: error: csc.exe not found. Make sure it's in the path or use --with-csc-path" >&5
5759 echo "$as_me: error: csc.exe not found. Make sure it's in the path or use --with-csc-path" >&2;}
5760 { (exit 1); exit 1; }; }
5762 # Convert to posix path with 8.3 filename restrictions ( No spaces )
5763 CSC_PATH=`cygpath -d "$CSC_PATH"`
5764 CSC_PATH=`cygpath -u "$CSC_PATH"`
5766 echo "$as_me:$LINENO: checking .NET Framework" >&5
5767 echo $ECHO_N "checking .NET Framework... $ECHO_C" >&6
5768 if test -n "$with_frame_home"; then
5769 with_frame_home=`cygpath -u "$with_frame_home"`
5771 if test -f "$with_frame_home/lib/mscoree.lib"; then
5772 FRAME_HOME="$with_frame_home"
5774 if test -z "$FRAME_HOME" -a -e "$with_cl_home/../SDK/v1.1/lib/mscoree.lib"; then
5775 FRAME_HOME="$with_cl_home/../SDK/v1.1"
5777 if test -z "$FRAME_HOME" ; then
5778 frametest=`./oowintool --dotnetsdk-dir`
5779 if test -f "$frametest/lib/mscoree.lib"; then
5780 FRAME_HOME="$frametest"
5781 else
5782 frametest=`./oowintool --psdk-home`
5783 if test -f "$frametest/lib/mscoree.lib"; then
5784 FRAME_HOME="$frametest"
5788 if test ! -f "$FRAME_HOME/lib/mscoree.lib"; then
5789 { { echo "$as_me:$LINENO: error: mscoree.lib (.NET Framework) not found. Make sure you use --with-frame-home" >&5
5790 echo "$as_me: error: mscoree.lib (.NET Framework) not found. Make sure you use --with-frame-home" >&2;}
5791 { (exit 1); exit 1; }; }
5793 echo "$as_me:$LINENO: result: found" >&5
5794 echo "${ECHO_T}found" >&6
5795 # Convert to posix path with 8.3 filename restrictions ( No spaces )
5796 FRAME_HOME=`cygpath -d "$FRAME_HOME"`
5797 FRAME_HOME=`cygpath -u "$FRAME_HOME"`
5804 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
5805 ac_ext=c
5806 ac_cpp='$CPP $CPPFLAGS'
5807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5810 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5811 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
5812 # On Suns, sometimes $CPP names a directory.
5813 if test -n "$CPP" && test -d "$CPP"; then
5814 CPP=
5816 if test -z "$CPP"; then
5817 if test "${ac_cv_prog_CPP+set}" = set; then
5818 echo $ECHO_N "(cached) $ECHO_C" >&6
5819 else
5820 # Double quotes because CPP needs to be expanded
5821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5823 ac_preproc_ok=false
5824 for ac_c_preproc_warn_flag in '' yes
5826 # Use a header file that comes with gcc, so configuring glibc
5827 # with a fresh cross-compiler works.
5828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5829 # <limits.h> exists even on freestanding compilers.
5830 # On the NeXT, cc -E runs the code through the compiler's parser,
5831 # not just through cpp. "Syntax error" is here to catch this case.
5832 cat >conftest.$ac_ext <<_ACEOF
5833 /* confdefs.h. */
5834 _ACEOF
5835 cat confdefs.h >>conftest.$ac_ext
5836 cat >>conftest.$ac_ext <<_ACEOF
5837 /* end confdefs.h. */
5838 #ifdef __STDC__
5839 # include <limits.h>
5840 #else
5841 # include <assert.h>
5842 #endif
5843 Syntax error
5844 _ACEOF
5845 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5846 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5847 ac_status=$?
5848 grep -v '^ *+' conftest.er1 >conftest.err
5849 rm -f conftest.er1
5850 cat conftest.err >&5
5851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5852 (exit $ac_status); } >/dev/null; then
5853 if test -s conftest.err; then
5854 ac_cpp_err=$ac_c_preproc_warn_flag
5855 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5856 else
5857 ac_cpp_err=
5859 else
5860 ac_cpp_err=yes
5862 if test -z "$ac_cpp_err"; then
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5868 # Broken: fails on valid input.
5869 continue
5871 rm -f conftest.err conftest.$ac_ext
5873 # OK, works on sane cases. Now check whether non-existent headers
5874 # can be detected and how.
5875 cat >conftest.$ac_ext <<_ACEOF
5876 /* confdefs.h. */
5877 _ACEOF
5878 cat confdefs.h >>conftest.$ac_ext
5879 cat >>conftest.$ac_ext <<_ACEOF
5880 /* end confdefs.h. */
5881 #include <ac_nonexistent.h>
5882 _ACEOF
5883 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5884 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5885 ac_status=$?
5886 grep -v '^ *+' conftest.er1 >conftest.err
5887 rm -f conftest.er1
5888 cat conftest.err >&5
5889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5890 (exit $ac_status); } >/dev/null; then
5891 if test -s conftest.err; then
5892 ac_cpp_err=$ac_c_preproc_warn_flag
5893 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5894 else
5895 ac_cpp_err=
5897 else
5898 ac_cpp_err=yes
5900 if test -z "$ac_cpp_err"; then
5901 # Broken: success on invalid input.
5902 continue
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5907 # Passes both tests.
5908 ac_preproc_ok=:
5909 break
5911 rm -f conftest.err conftest.$ac_ext
5913 done
5914 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5915 rm -f conftest.err conftest.$ac_ext
5916 if $ac_preproc_ok; then
5917 break
5920 done
5921 ac_cv_prog_CPP=$CPP
5924 CPP=$ac_cv_prog_CPP
5925 else
5926 ac_cv_prog_CPP=$CPP
5928 echo "$as_me:$LINENO: result: $CPP" >&5
5929 echo "${ECHO_T}$CPP" >&6
5930 ac_preproc_ok=false
5931 for ac_c_preproc_warn_flag in '' yes
5933 # Use a header file that comes with gcc, so configuring glibc
5934 # with a fresh cross-compiler works.
5935 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5936 # <limits.h> exists even on freestanding compilers.
5937 # On the NeXT, cc -E runs the code through the compiler's parser,
5938 # not just through cpp. "Syntax error" is here to catch this case.
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #ifdef __STDC__
5946 # include <limits.h>
5947 #else
5948 # include <assert.h>
5949 #endif
5950 Syntax error
5951 _ACEOF
5952 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5953 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5954 ac_status=$?
5955 grep -v '^ *+' conftest.er1 >conftest.err
5956 rm -f conftest.er1
5957 cat conftest.err >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); } >/dev/null; then
5960 if test -s conftest.err; then
5961 ac_cpp_err=$ac_c_preproc_warn_flag
5962 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5963 else
5964 ac_cpp_err=
5966 else
5967 ac_cpp_err=yes
5969 if test -z "$ac_cpp_err"; then
5971 else
5972 echo "$as_me: failed program was:" >&5
5973 sed 's/^/| /' conftest.$ac_ext >&5
5975 # Broken: fails on valid input.
5976 continue
5978 rm -f conftest.err conftest.$ac_ext
5980 # OK, works on sane cases. Now check whether non-existent headers
5981 # can be detected and how.
5982 cat >conftest.$ac_ext <<_ACEOF
5983 /* confdefs.h. */
5984 _ACEOF
5985 cat confdefs.h >>conftest.$ac_ext
5986 cat >>conftest.$ac_ext <<_ACEOF
5987 /* end confdefs.h. */
5988 #include <ac_nonexistent.h>
5989 _ACEOF
5990 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5991 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5992 ac_status=$?
5993 grep -v '^ *+' conftest.er1 >conftest.err
5994 rm -f conftest.er1
5995 cat conftest.err >&5
5996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5997 (exit $ac_status); } >/dev/null; then
5998 if test -s conftest.err; then
5999 ac_cpp_err=$ac_c_preproc_warn_flag
6000 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6001 else
6002 ac_cpp_err=
6004 else
6005 ac_cpp_err=yes
6007 if test -z "$ac_cpp_err"; then
6008 # Broken: success on invalid input.
6009 continue
6010 else
6011 echo "$as_me: failed program was:" >&5
6012 sed 's/^/| /' conftest.$ac_ext >&5
6014 # Passes both tests.
6015 ac_preproc_ok=:
6016 break
6018 rm -f conftest.err conftest.$ac_ext
6020 done
6021 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6022 rm -f conftest.err conftest.$ac_ext
6023 if $ac_preproc_ok; then
6025 else
6026 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
6027 See \`config.log' for more details." >&5
6028 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
6029 See \`config.log' for more details." >&2;}
6030 { (exit 1); exit 1; }; }
6033 ac_ext=c
6034 ac_cpp='$CPP $CPPFLAGS'
6035 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6036 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6037 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6040 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6041 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
6042 if test "${ac_cv_header_stdc+set}" = set; then
6043 echo $ECHO_N "(cached) $ECHO_C" >&6
6044 else
6045 cat >conftest.$ac_ext <<_ACEOF
6046 /* confdefs.h. */
6047 _ACEOF
6048 cat confdefs.h >>conftest.$ac_ext
6049 cat >>conftest.$ac_ext <<_ACEOF
6050 /* end confdefs.h. */
6051 #include <stdlib.h>
6052 #include <stdarg.h>
6053 #include <string.h>
6054 #include <float.h>
6057 main ()
6061 return 0;
6063 _ACEOF
6064 rm -f conftest.$ac_objext
6065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6066 (eval $ac_compile) 2>conftest.er1
6067 ac_status=$?
6068 grep -v '^ *+' conftest.er1 >conftest.err
6069 rm -f conftest.er1
6070 cat conftest.err >&5
6071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6072 (exit $ac_status); } &&
6073 { ac_try='test -z "$ac_c_werror_flag"
6074 || test ! -s conftest.err'
6075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6076 (eval $ac_try) 2>&5
6077 ac_status=$?
6078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6079 (exit $ac_status); }; } &&
6080 { ac_try='test -s conftest.$ac_objext'
6081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 (eval $ac_try) 2>&5
6083 ac_status=$?
6084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6085 (exit $ac_status); }; }; then
6086 ac_cv_header_stdc=yes
6087 else
6088 echo "$as_me: failed program was:" >&5
6089 sed 's/^/| /' conftest.$ac_ext >&5
6091 ac_cv_header_stdc=no
6093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6095 if test $ac_cv_header_stdc = yes; then
6096 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6097 cat >conftest.$ac_ext <<_ACEOF
6098 /* confdefs.h. */
6099 _ACEOF
6100 cat confdefs.h >>conftest.$ac_ext
6101 cat >>conftest.$ac_ext <<_ACEOF
6102 /* end confdefs.h. */
6103 #include <string.h>
6105 _ACEOF
6106 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6107 $EGREP "memchr" >/dev/null 2>&1; then
6109 else
6110 ac_cv_header_stdc=no
6112 rm -f conftest*
6116 if test $ac_cv_header_stdc = yes; then
6117 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6118 cat >conftest.$ac_ext <<_ACEOF
6119 /* confdefs.h. */
6120 _ACEOF
6121 cat confdefs.h >>conftest.$ac_ext
6122 cat >>conftest.$ac_ext <<_ACEOF
6123 /* end confdefs.h. */
6124 #include <stdlib.h>
6126 _ACEOF
6127 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6128 $EGREP "free" >/dev/null 2>&1; then
6130 else
6131 ac_cv_header_stdc=no
6133 rm -f conftest*
6137 if test $ac_cv_header_stdc = yes; then
6138 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6139 if test "$cross_compiling" = yes; then
6141 else
6142 cat >conftest.$ac_ext <<_ACEOF
6143 /* confdefs.h. */
6144 _ACEOF
6145 cat confdefs.h >>conftest.$ac_ext
6146 cat >>conftest.$ac_ext <<_ACEOF
6147 /* end confdefs.h. */
6148 #include <ctype.h>
6149 #if ((' ' & 0x0FF) == 0x020)
6150 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6151 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6152 #else
6153 # define ISLOWER(c) \
6154 (('a' <= (c) && (c) <= 'i') \
6155 || ('j' <= (c) && (c) <= 'r') \
6156 || ('s' <= (c) && (c) <= 'z'))
6157 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6158 #endif
6160 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6162 main ()
6164 int i;
6165 for (i = 0; i < 256; i++)
6166 if (XOR (islower (i), ISLOWER (i))
6167 || toupper (i) != TOUPPER (i))
6168 exit(2);
6169 exit (0);
6171 _ACEOF
6172 rm -f conftest$ac_exeext
6173 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6174 (eval $ac_link) 2>&5
6175 ac_status=$?
6176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6177 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6179 (eval $ac_try) 2>&5
6180 ac_status=$?
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then
6184 else
6185 echo "$as_me: program exited with status $ac_status" >&5
6186 echo "$as_me: failed program was:" >&5
6187 sed 's/^/| /' conftest.$ac_ext >&5
6189 ( exit $ac_status )
6190 ac_cv_header_stdc=no
6192 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6196 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6197 echo "${ECHO_T}$ac_cv_header_stdc" >&6
6198 if test $ac_cv_header_stdc = yes; then
6200 cat >>confdefs.h <<\_ACEOF
6201 #define STDC_HEADERS 1
6202 _ACEOF
6208 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
6209 ac_ext=cc
6210 ac_cpp='$CXXCPP $CPPFLAGS'
6211 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6214 if test -n "$ac_tool_prefix"; then
6215 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6217 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6218 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6219 echo "$as_me:$LINENO: checking for $ac_word" >&5
6220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6221 if test "${ac_cv_prog_CXX+set}" = set; then
6222 echo $ECHO_N "(cached) $ECHO_C" >&6
6223 else
6224 if test -n "$CXX"; then
6225 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6226 else
6227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6228 for as_dir in $PATH
6230 IFS=$as_save_IFS
6231 test -z "$as_dir" && as_dir=.
6232 for ac_exec_ext in '' $ac_executable_extensions; do
6233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6234 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6236 break 2
6238 done
6239 done
6243 CXX=$ac_cv_prog_CXX
6244 if test -n "$CXX"; then
6245 echo "$as_me:$LINENO: result: $CXX" >&5
6246 echo "${ECHO_T}$CXX" >&6
6247 else
6248 echo "$as_me:$LINENO: result: no" >&5
6249 echo "${ECHO_T}no" >&6
6252 test -n "$CXX" && break
6253 done
6255 if test -z "$CXX"; then
6256 ac_ct_CXX=$CXX
6257 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6259 # Extract the first word of "$ac_prog", so it can be a program name with args.
6260 set dummy $ac_prog; ac_word=$2
6261 echo "$as_me:$LINENO: checking for $ac_word" >&5
6262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6263 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6264 echo $ECHO_N "(cached) $ECHO_C" >&6
6265 else
6266 if test -n "$ac_ct_CXX"; then
6267 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6268 else
6269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6270 for as_dir in $PATH
6272 IFS=$as_save_IFS
6273 test -z "$as_dir" && as_dir=.
6274 for ac_exec_ext in '' $ac_executable_extensions; do
6275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6276 ac_cv_prog_ac_ct_CXX="$ac_prog"
6277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6278 break 2
6280 done
6281 done
6285 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6286 if test -n "$ac_ct_CXX"; then
6287 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6288 echo "${ECHO_T}$ac_ct_CXX" >&6
6289 else
6290 echo "$as_me:$LINENO: result: no" >&5
6291 echo "${ECHO_T}no" >&6
6294 test -n "$ac_ct_CXX" && break
6295 done
6296 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6298 CXX=$ac_ct_CXX
6302 # Provide some information about the compiler.
6303 echo "$as_me:$LINENO:" \
6304 "checking for C++ compiler version" >&5
6305 ac_compiler=`set X $ac_compile; echo $2`
6306 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6307 (eval $ac_compiler --version </dev/null >&5) 2>&5
6308 ac_status=$?
6309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6310 (exit $ac_status); }
6311 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6312 (eval $ac_compiler -v </dev/null >&5) 2>&5
6313 ac_status=$?
6314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6315 (exit $ac_status); }
6316 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6317 (eval $ac_compiler -V </dev/null >&5) 2>&5
6318 ac_status=$?
6319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6320 (exit $ac_status); }
6322 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6323 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6324 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6325 echo $ECHO_N "(cached) $ECHO_C" >&6
6326 else
6327 cat >conftest.$ac_ext <<_ACEOF
6328 /* confdefs.h. */
6329 _ACEOF
6330 cat confdefs.h >>conftest.$ac_ext
6331 cat >>conftest.$ac_ext <<_ACEOF
6332 /* end confdefs.h. */
6335 main ()
6337 #ifndef __GNUC__
6338 choke me
6339 #endif
6342 return 0;
6344 _ACEOF
6345 rm -f conftest.$ac_objext
6346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6347 (eval $ac_compile) 2>conftest.er1
6348 ac_status=$?
6349 grep -v '^ *+' conftest.er1 >conftest.err
6350 rm -f conftest.er1
6351 cat conftest.err >&5
6352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6353 (exit $ac_status); } &&
6354 { ac_try='test -z "$ac_cxx_werror_flag"
6355 || test ! -s conftest.err'
6356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6357 (eval $ac_try) 2>&5
6358 ac_status=$?
6359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6360 (exit $ac_status); }; } &&
6361 { ac_try='test -s conftest.$ac_objext'
6362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6363 (eval $ac_try) 2>&5
6364 ac_status=$?
6365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6366 (exit $ac_status); }; }; then
6367 ac_compiler_gnu=yes
6368 else
6369 echo "$as_me: failed program was:" >&5
6370 sed 's/^/| /' conftest.$ac_ext >&5
6372 ac_compiler_gnu=no
6374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6375 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6378 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6379 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6380 GXX=`test $ac_compiler_gnu = yes && echo yes`
6381 ac_test_CXXFLAGS=${CXXFLAGS+set}
6382 ac_save_CXXFLAGS=$CXXFLAGS
6383 CXXFLAGS="-g"
6384 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6385 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6386 if test "${ac_cv_prog_cxx_g+set}" = set; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 cat >conftest.$ac_ext <<_ACEOF
6390 /* confdefs.h. */
6391 _ACEOF
6392 cat confdefs.h >>conftest.$ac_ext
6393 cat >>conftest.$ac_ext <<_ACEOF
6394 /* end confdefs.h. */
6397 main ()
6401 return 0;
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6406 (eval $ac_compile) 2>conftest.er1
6407 ac_status=$?
6408 grep -v '^ *+' conftest.er1 >conftest.err
6409 rm -f conftest.er1
6410 cat conftest.err >&5
6411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6412 (exit $ac_status); } &&
6413 { ac_try='test -z "$ac_cxx_werror_flag"
6414 || test ! -s conftest.err'
6415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6416 (eval $ac_try) 2>&5
6417 ac_status=$?
6418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6419 (exit $ac_status); }; } &&
6420 { ac_try='test -s conftest.$ac_objext'
6421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6422 (eval $ac_try) 2>&5
6423 ac_status=$?
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); }; }; then
6426 ac_cv_prog_cxx_g=yes
6427 else
6428 echo "$as_me: failed program was:" >&5
6429 sed 's/^/| /' conftest.$ac_ext >&5
6431 ac_cv_prog_cxx_g=no
6433 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6435 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6436 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6437 if test "$ac_test_CXXFLAGS" = set; then
6438 CXXFLAGS=$ac_save_CXXFLAGS
6439 elif test $ac_cv_prog_cxx_g = yes; then
6440 if test "$GXX" = yes; then
6441 CXXFLAGS="-g -O2"
6442 else
6443 CXXFLAGS="-g"
6445 else
6446 if test "$GXX" = yes; then
6447 CXXFLAGS="-O2"
6448 else
6449 CXXFLAGS=
6452 for ac_declaration in \
6453 '' \
6454 'extern "C" void std::exit (int) throw (); using std::exit;' \
6455 'extern "C" void std::exit (int); using std::exit;' \
6456 'extern "C" void exit (int) throw ();' \
6457 'extern "C" void exit (int);' \
6458 'void exit (int);'
6460 cat >conftest.$ac_ext <<_ACEOF
6461 /* confdefs.h. */
6462 _ACEOF
6463 cat confdefs.h >>conftest.$ac_ext
6464 cat >>conftest.$ac_ext <<_ACEOF
6465 /* end confdefs.h. */
6466 $ac_declaration
6467 #include <stdlib.h>
6469 main ()
6471 exit (42);
6473 return 0;
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6478 (eval $ac_compile) 2>conftest.er1
6479 ac_status=$?
6480 grep -v '^ *+' conftest.er1 >conftest.err
6481 rm -f conftest.er1
6482 cat conftest.err >&5
6483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6484 (exit $ac_status); } &&
6485 { ac_try='test -z "$ac_cxx_werror_flag"
6486 || test ! -s conftest.err'
6487 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6488 (eval $ac_try) 2>&5
6489 ac_status=$?
6490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6491 (exit $ac_status); }; } &&
6492 { ac_try='test -s conftest.$ac_objext'
6493 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6494 (eval $ac_try) 2>&5
6495 ac_status=$?
6496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6497 (exit $ac_status); }; }; then
6499 else
6500 echo "$as_me: failed program was:" >&5
6501 sed 's/^/| /' conftest.$ac_ext >&5
6503 continue
6505 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6506 cat >conftest.$ac_ext <<_ACEOF
6507 /* confdefs.h. */
6508 _ACEOF
6509 cat confdefs.h >>conftest.$ac_ext
6510 cat >>conftest.$ac_ext <<_ACEOF
6511 /* end confdefs.h. */
6512 $ac_declaration
6514 main ()
6516 exit (42);
6518 return 0;
6520 _ACEOF
6521 rm -f conftest.$ac_objext
6522 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6523 (eval $ac_compile) 2>conftest.er1
6524 ac_status=$?
6525 grep -v '^ *+' conftest.er1 >conftest.err
6526 rm -f conftest.er1
6527 cat conftest.err >&5
6528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6529 (exit $ac_status); } &&
6530 { ac_try='test -z "$ac_cxx_werror_flag"
6531 || test ! -s conftest.err'
6532 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6533 (eval $ac_try) 2>&5
6534 ac_status=$?
6535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6536 (exit $ac_status); }; } &&
6537 { ac_try='test -s conftest.$ac_objext'
6538 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6539 (eval $ac_try) 2>&5
6540 ac_status=$?
6541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6542 (exit $ac_status); }; }; then
6543 break
6544 else
6545 echo "$as_me: failed program was:" >&5
6546 sed 's/^/| /' conftest.$ac_ext >&5
6549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6550 done
6551 rm -f conftest*
6552 if test -n "$ac_declaration"; then
6553 echo '#ifdef __cplusplus' >>confdefs.h
6554 echo $ac_declaration >>confdefs.h
6555 echo '#endif' >>confdefs.h
6558 ac_ext=c
6559 ac_cpp='$CPP $CPPFLAGS'
6560 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6561 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6562 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6564 ac_ext=cc
6565 ac_cpp='$CXXCPP $CPPFLAGS'
6566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6569 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6570 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6571 if test -z "$CXXCPP"; then
6572 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6573 echo $ECHO_N "(cached) $ECHO_C" >&6
6574 else
6575 # Double quotes because CXXCPP needs to be expanded
6576 for CXXCPP in "$CXX -E" "/lib/cpp"
6578 ac_preproc_ok=false
6579 for ac_cxx_preproc_warn_flag in '' yes
6581 # Use a header file that comes with gcc, so configuring glibc
6582 # with a fresh cross-compiler works.
6583 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6584 # <limits.h> exists even on freestanding compilers.
6585 # On the NeXT, cc -E runs the code through the compiler's parser,
6586 # not just through cpp. "Syntax error" is here to catch this case.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #ifdef __STDC__
6594 # include <limits.h>
6595 #else
6596 # include <assert.h>
6597 #endif
6598 Syntax error
6599 _ACEOF
6600 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6601 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6602 ac_status=$?
6603 grep -v '^ *+' conftest.er1 >conftest.err
6604 rm -f conftest.er1
6605 cat conftest.err >&5
6606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6607 (exit $ac_status); } >/dev/null; then
6608 if test -s conftest.err; then
6609 ac_cpp_err=$ac_cxx_preproc_warn_flag
6610 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6611 else
6612 ac_cpp_err=
6614 else
6615 ac_cpp_err=yes
6617 if test -z "$ac_cpp_err"; then
6619 else
6620 echo "$as_me: failed program was:" >&5
6621 sed 's/^/| /' conftest.$ac_ext >&5
6623 # Broken: fails on valid input.
6624 continue
6626 rm -f conftest.err conftest.$ac_ext
6628 # OK, works on sane cases. Now check whether non-existent headers
6629 # can be detected and how.
6630 cat >conftest.$ac_ext <<_ACEOF
6631 /* confdefs.h. */
6632 _ACEOF
6633 cat confdefs.h >>conftest.$ac_ext
6634 cat >>conftest.$ac_ext <<_ACEOF
6635 /* end confdefs.h. */
6636 #include <ac_nonexistent.h>
6637 _ACEOF
6638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6639 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6640 ac_status=$?
6641 grep -v '^ *+' conftest.er1 >conftest.err
6642 rm -f conftest.er1
6643 cat conftest.err >&5
6644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6645 (exit $ac_status); } >/dev/null; then
6646 if test -s conftest.err; then
6647 ac_cpp_err=$ac_cxx_preproc_warn_flag
6648 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6649 else
6650 ac_cpp_err=
6652 else
6653 ac_cpp_err=yes
6655 if test -z "$ac_cpp_err"; then
6656 # Broken: success on invalid input.
6657 continue
6658 else
6659 echo "$as_me: failed program was:" >&5
6660 sed 's/^/| /' conftest.$ac_ext >&5
6662 # Passes both tests.
6663 ac_preproc_ok=:
6664 break
6666 rm -f conftest.err conftest.$ac_ext
6668 done
6669 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6670 rm -f conftest.err conftest.$ac_ext
6671 if $ac_preproc_ok; then
6672 break
6675 done
6676 ac_cv_prog_CXXCPP=$CXXCPP
6679 CXXCPP=$ac_cv_prog_CXXCPP
6680 else
6681 ac_cv_prog_CXXCPP=$CXXCPP
6683 echo "$as_me:$LINENO: result: $CXXCPP" >&5
6684 echo "${ECHO_T}$CXXCPP" >&6
6685 ac_preproc_ok=false
6686 for ac_cxx_preproc_warn_flag in '' yes
6688 # Use a header file that comes with gcc, so configuring glibc
6689 # with a fresh cross-compiler works.
6690 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6691 # <limits.h> exists even on freestanding compilers.
6692 # On the NeXT, cc -E runs the code through the compiler's parser,
6693 # not just through cpp. "Syntax error" is here to catch this case.
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #ifdef __STDC__
6701 # include <limits.h>
6702 #else
6703 # include <assert.h>
6704 #endif
6705 Syntax error
6706 _ACEOF
6707 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6708 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_cxx_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6718 else
6719 ac_cpp_err=
6721 else
6722 ac_cpp_err=yes
6724 if test -z "$ac_cpp_err"; then
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6730 # Broken: fails on valid input.
6731 continue
6733 rm -f conftest.err conftest.$ac_ext
6735 # OK, works on sane cases. Now check whether non-existent headers
6736 # can be detected and how.
6737 cat >conftest.$ac_ext <<_ACEOF
6738 /* confdefs.h. */
6739 _ACEOF
6740 cat confdefs.h >>conftest.$ac_ext
6741 cat >>conftest.$ac_ext <<_ACEOF
6742 /* end confdefs.h. */
6743 #include <ac_nonexistent.h>
6744 _ACEOF
6745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6746 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6747 ac_status=$?
6748 grep -v '^ *+' conftest.er1 >conftest.err
6749 rm -f conftest.er1
6750 cat conftest.err >&5
6751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6752 (exit $ac_status); } >/dev/null; then
6753 if test -s conftest.err; then
6754 ac_cpp_err=$ac_cxx_preproc_warn_flag
6755 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6756 else
6757 ac_cpp_err=
6759 else
6760 ac_cpp_err=yes
6762 if test -z "$ac_cpp_err"; then
6763 # Broken: success on invalid input.
6764 continue
6765 else
6766 echo "$as_me: failed program was:" >&5
6767 sed 's/^/| /' conftest.$ac_ext >&5
6769 # Passes both tests.
6770 ac_preproc_ok=:
6771 break
6773 rm -f conftest.err conftest.$ac_ext
6775 done
6776 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6777 rm -f conftest.err conftest.$ac_ext
6778 if $ac_preproc_ok; then
6780 else
6781 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6782 See \`config.log' for more details." >&5
6783 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
6784 See \`config.log' for more details." >&2;}
6785 { (exit 1); exit 1; }; }
6788 ac_ext=c
6789 ac_cpp='$CPP $CPPFLAGS'
6790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6795 if test "$_os" = "SunOS"; then
6796 CPP=$CXXCPP
6797 else
6798 ac_ext=c
6799 ac_cpp='$CPP $CPPFLAGS'
6800 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6801 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6802 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6803 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
6804 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
6805 # On Suns, sometimes $CPP names a directory.
6806 if test -n "$CPP" && test -d "$CPP"; then
6807 CPP=
6809 if test -z "$CPP"; then
6810 if test "${ac_cv_prog_CPP+set}" = set; then
6811 echo $ECHO_N "(cached) $ECHO_C" >&6
6812 else
6813 # Double quotes because CPP needs to be expanded
6814 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
6816 ac_preproc_ok=false
6817 for ac_c_preproc_warn_flag in '' yes
6819 # Use a header file that comes with gcc, so configuring glibc
6820 # with a fresh cross-compiler works.
6821 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6822 # <limits.h> exists even on freestanding compilers.
6823 # On the NeXT, cc -E runs the code through the compiler's parser,
6824 # not just through cpp. "Syntax error" is here to catch this case.
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #ifdef __STDC__
6832 # include <limits.h>
6833 #else
6834 # include <assert.h>
6835 #endif
6836 Syntax error
6837 _ACEOF
6838 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6839 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6840 ac_status=$?
6841 grep -v '^ *+' conftest.er1 >conftest.err
6842 rm -f conftest.er1
6843 cat conftest.err >&5
6844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6845 (exit $ac_status); } >/dev/null; then
6846 if test -s conftest.err; then
6847 ac_cpp_err=$ac_c_preproc_warn_flag
6848 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6849 else
6850 ac_cpp_err=
6852 else
6853 ac_cpp_err=yes
6855 if test -z "$ac_cpp_err"; then
6857 else
6858 echo "$as_me: failed program was:" >&5
6859 sed 's/^/| /' conftest.$ac_ext >&5
6861 # Broken: fails on valid input.
6862 continue
6864 rm -f conftest.err conftest.$ac_ext
6866 # OK, works on sane cases. Now check whether non-existent headers
6867 # can be detected and how.
6868 cat >conftest.$ac_ext <<_ACEOF
6869 /* confdefs.h. */
6870 _ACEOF
6871 cat confdefs.h >>conftest.$ac_ext
6872 cat >>conftest.$ac_ext <<_ACEOF
6873 /* end confdefs.h. */
6874 #include <ac_nonexistent.h>
6875 _ACEOF
6876 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6877 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } >/dev/null; then
6884 if test -s conftest.err; then
6885 ac_cpp_err=$ac_c_preproc_warn_flag
6886 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6887 else
6888 ac_cpp_err=
6890 else
6891 ac_cpp_err=yes
6893 if test -z "$ac_cpp_err"; then
6894 # Broken: success on invalid input.
6895 continue
6896 else
6897 echo "$as_me: failed program was:" >&5
6898 sed 's/^/| /' conftest.$ac_ext >&5
6900 # Passes both tests.
6901 ac_preproc_ok=:
6902 break
6904 rm -f conftest.err conftest.$ac_ext
6906 done
6907 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6908 rm -f conftest.err conftest.$ac_ext
6909 if $ac_preproc_ok; then
6910 break
6913 done
6914 ac_cv_prog_CPP=$CPP
6917 CPP=$ac_cv_prog_CPP
6918 else
6919 ac_cv_prog_CPP=$CPP
6921 echo "$as_me:$LINENO: result: $CPP" >&5
6922 echo "${ECHO_T}$CPP" >&6
6923 ac_preproc_ok=false
6924 for ac_c_preproc_warn_flag in '' yes
6926 # Use a header file that comes with gcc, so configuring glibc
6927 # with a fresh cross-compiler works.
6928 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6929 # <limits.h> exists even on freestanding compilers.
6930 # On the NeXT, cc -E runs the code through the compiler's parser,
6931 # not just through cpp. "Syntax error" is here to catch this case.
6932 cat >conftest.$ac_ext <<_ACEOF
6933 /* confdefs.h. */
6934 _ACEOF
6935 cat confdefs.h >>conftest.$ac_ext
6936 cat >>conftest.$ac_ext <<_ACEOF
6937 /* end confdefs.h. */
6938 #ifdef __STDC__
6939 # include <limits.h>
6940 #else
6941 # include <assert.h>
6942 #endif
6943 Syntax error
6944 _ACEOF
6945 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6946 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6947 ac_status=$?
6948 grep -v '^ *+' conftest.er1 >conftest.err
6949 rm -f conftest.er1
6950 cat conftest.err >&5
6951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6952 (exit $ac_status); } >/dev/null; then
6953 if test -s conftest.err; then
6954 ac_cpp_err=$ac_c_preproc_warn_flag
6955 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6956 else
6957 ac_cpp_err=
6959 else
6960 ac_cpp_err=yes
6962 if test -z "$ac_cpp_err"; then
6964 else
6965 echo "$as_me: failed program was:" >&5
6966 sed 's/^/| /' conftest.$ac_ext >&5
6968 # Broken: fails on valid input.
6969 continue
6971 rm -f conftest.err conftest.$ac_ext
6973 # OK, works on sane cases. Now check whether non-existent headers
6974 # can be detected and how.
6975 cat >conftest.$ac_ext <<_ACEOF
6976 /* confdefs.h. */
6977 _ACEOF
6978 cat confdefs.h >>conftest.$ac_ext
6979 cat >>conftest.$ac_ext <<_ACEOF
6980 /* end confdefs.h. */
6981 #include <ac_nonexistent.h>
6982 _ACEOF
6983 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6984 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6985 ac_status=$?
6986 grep -v '^ *+' conftest.er1 >conftest.err
6987 rm -f conftest.er1
6988 cat conftest.err >&5
6989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6990 (exit $ac_status); } >/dev/null; then
6991 if test -s conftest.err; then
6992 ac_cpp_err=$ac_c_preproc_warn_flag
6993 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6994 else
6995 ac_cpp_err=
6997 else
6998 ac_cpp_err=yes
7000 if test -z "$ac_cpp_err"; then
7001 # Broken: success on invalid input.
7002 continue
7003 else
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7007 # Passes both tests.
7008 ac_preproc_ok=:
7009 break
7011 rm -f conftest.err conftest.$ac_ext
7013 done
7014 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7015 rm -f conftest.err conftest.$ac_ext
7016 if $ac_preproc_ok; then
7018 else
7019 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7020 See \`config.log' for more details." >&5
7021 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7022 See \`config.log' for more details." >&2;}
7023 { (exit 1); exit 1; }; }
7026 ac_ext=c
7027 ac_cpp='$CPP $CPPFLAGS'
7028 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7029 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7030 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7035 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7045 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7046 inttypes.h stdint.h unistd.h
7048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7049 echo "$as_me:$LINENO: checking for $ac_header" >&5
7050 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
7051 if eval "test \"\${$as_ac_Header+set}\" = set"; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7053 else
7054 cat >conftest.$ac_ext <<_ACEOF
7055 /* confdefs.h. */
7056 _ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7060 $ac_includes_default
7062 #include <$ac_header>
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7066 (eval $ac_compile) 2>conftest.er1
7067 ac_status=$?
7068 grep -v '^ *+' conftest.er1 >conftest.err
7069 rm -f conftest.er1
7070 cat conftest.err >&5
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); } &&
7073 { ac_try='test -z "$ac_c_werror_flag"
7074 || test ! -s conftest.err'
7075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7076 (eval $ac_try) 2>&5
7077 ac_status=$?
7078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7079 (exit $ac_status); }; } &&
7080 { ac_try='test -s conftest.$ac_objext'
7081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7082 (eval $ac_try) 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); }; }; then
7086 eval "$as_ac_Header=yes"
7087 else
7088 echo "$as_me: failed program was:" >&5
7089 sed 's/^/| /' conftest.$ac_ext >&5
7091 eval "$as_ac_Header=no"
7093 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7095 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
7096 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
7097 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7098 cat >>confdefs.h <<_ACEOF
7099 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 _ACEOF
7104 done
7107 echo "$as_me:$LINENO: checking for long" >&5
7108 echo $ECHO_N "checking for long... $ECHO_C" >&6
7109 if test "${ac_cv_type_long+set}" = set; then
7110 echo $ECHO_N "(cached) $ECHO_C" >&6
7111 else
7112 cat >conftest.$ac_ext <<_ACEOF
7113 /* confdefs.h. */
7114 _ACEOF
7115 cat confdefs.h >>conftest.$ac_ext
7116 cat >>conftest.$ac_ext <<_ACEOF
7117 /* end confdefs.h. */
7118 $ac_includes_default
7120 main ()
7122 if ((long *) 0)
7123 return 0;
7124 if (sizeof (long))
7125 return 0;
7127 return 0;
7129 _ACEOF
7130 rm -f conftest.$ac_objext
7131 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7132 (eval $ac_compile) 2>conftest.er1
7133 ac_status=$?
7134 grep -v '^ *+' conftest.er1 >conftest.err
7135 rm -f conftest.er1
7136 cat conftest.err >&5
7137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7138 (exit $ac_status); } &&
7139 { ac_try='test -z "$ac_c_werror_flag"
7140 || test ! -s conftest.err'
7141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7142 (eval $ac_try) 2>&5
7143 ac_status=$?
7144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7145 (exit $ac_status); }; } &&
7146 { ac_try='test -s conftest.$ac_objext'
7147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7148 (eval $ac_try) 2>&5
7149 ac_status=$?
7150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7151 (exit $ac_status); }; }; then
7152 ac_cv_type_long=yes
7153 else
7154 echo "$as_me: failed program was:" >&5
7155 sed 's/^/| /' conftest.$ac_ext >&5
7157 ac_cv_type_long=no
7159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7161 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
7162 echo "${ECHO_T}$ac_cv_type_long" >&6
7164 echo "$as_me:$LINENO: checking size of long" >&5
7165 echo $ECHO_N "checking size of long... $ECHO_C" >&6
7166 if test "${ac_cv_sizeof_long+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 if test "$ac_cv_type_long" = yes; then
7170 # The cast to unsigned long works around a bug in the HP C Compiler
7171 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
7172 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
7173 # This bug is HP SR number 8606223364.
7174 if test "$cross_compiling" = yes; then
7175 # Depending upon the size, compute the lo and hi bounds.
7176 cat >conftest.$ac_ext <<_ACEOF
7177 /* confdefs.h. */
7178 _ACEOF
7179 cat confdefs.h >>conftest.$ac_ext
7180 cat >>conftest.$ac_ext <<_ACEOF
7181 /* end confdefs.h. */
7182 $ac_includes_default
7184 main ()
7186 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
7187 test_array [0] = 0
7190 return 0;
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7195 (eval $ac_compile) 2>conftest.er1
7196 ac_status=$?
7197 grep -v '^ *+' conftest.er1 >conftest.err
7198 rm -f conftest.er1
7199 cat conftest.err >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); } &&
7202 { ac_try='test -z "$ac_c_werror_flag"
7203 || test ! -s conftest.err'
7204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7205 (eval $ac_try) 2>&5
7206 ac_status=$?
7207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7208 (exit $ac_status); }; } &&
7209 { ac_try='test -s conftest.$ac_objext'
7210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7211 (eval $ac_try) 2>&5
7212 ac_status=$?
7213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7214 (exit $ac_status); }; }; then
7215 ac_lo=0 ac_mid=0
7216 while :; do
7217 cat >conftest.$ac_ext <<_ACEOF
7218 /* confdefs.h. */
7219 _ACEOF
7220 cat confdefs.h >>conftest.$ac_ext
7221 cat >>conftest.$ac_ext <<_ACEOF
7222 /* end confdefs.h. */
7223 $ac_includes_default
7225 main ()
7227 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7228 test_array [0] = 0
7231 return 0;
7233 _ACEOF
7234 rm -f conftest.$ac_objext
7235 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7236 (eval $ac_compile) 2>conftest.er1
7237 ac_status=$?
7238 grep -v '^ *+' conftest.er1 >conftest.err
7239 rm -f conftest.er1
7240 cat conftest.err >&5
7241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7242 (exit $ac_status); } &&
7243 { ac_try='test -z "$ac_c_werror_flag"
7244 || test ! -s conftest.err'
7245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7246 (eval $ac_try) 2>&5
7247 ac_status=$?
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); }; } &&
7250 { ac_try='test -s conftest.$ac_objext'
7251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7252 (eval $ac_try) 2>&5
7253 ac_status=$?
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); }; }; then
7256 ac_hi=$ac_mid; break
7257 else
7258 echo "$as_me: failed program was:" >&5
7259 sed 's/^/| /' conftest.$ac_ext >&5
7261 ac_lo=`expr $ac_mid + 1`
7262 if test $ac_lo -le $ac_mid; then
7263 ac_lo= ac_hi=
7264 break
7266 ac_mid=`expr 2 '*' $ac_mid + 1`
7268 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7269 done
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7274 cat >conftest.$ac_ext <<_ACEOF
7275 /* confdefs.h. */
7276 _ACEOF
7277 cat confdefs.h >>conftest.$ac_ext
7278 cat >>conftest.$ac_ext <<_ACEOF
7279 /* end confdefs.h. */
7280 $ac_includes_default
7282 main ()
7284 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
7285 test_array [0] = 0
7288 return 0;
7290 _ACEOF
7291 rm -f conftest.$ac_objext
7292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7293 (eval $ac_compile) 2>conftest.er1
7294 ac_status=$?
7295 grep -v '^ *+' conftest.er1 >conftest.err
7296 rm -f conftest.er1
7297 cat conftest.err >&5
7298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7299 (exit $ac_status); } &&
7300 { ac_try='test -z "$ac_c_werror_flag"
7301 || test ! -s conftest.err'
7302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7303 (eval $ac_try) 2>&5
7304 ac_status=$?
7305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7306 (exit $ac_status); }; } &&
7307 { ac_try='test -s conftest.$ac_objext'
7308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7309 (eval $ac_try) 2>&5
7310 ac_status=$?
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); }; }; then
7313 ac_hi=-1 ac_mid=-1
7314 while :; do
7315 cat >conftest.$ac_ext <<_ACEOF
7316 /* confdefs.h. */
7317 _ACEOF
7318 cat confdefs.h >>conftest.$ac_ext
7319 cat >>conftest.$ac_ext <<_ACEOF
7320 /* end confdefs.h. */
7321 $ac_includes_default
7323 main ()
7325 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
7326 test_array [0] = 0
7329 return 0;
7331 _ACEOF
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>conftest.er1
7335 ac_status=$?
7336 grep -v '^ *+' conftest.er1 >conftest.err
7337 rm -f conftest.er1
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7344 (eval $ac_try) 2>&5
7345 ac_status=$?
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest.$ac_objext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7350 (eval $ac_try) 2>&5
7351 ac_status=$?
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7354 ac_lo=$ac_mid; break
7355 else
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7359 ac_hi=`expr '(' $ac_mid ')' - 1`
7360 if test $ac_mid -le $ac_hi; then
7361 ac_lo= ac_hi=
7362 break
7364 ac_mid=`expr 2 '*' $ac_mid`
7366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7367 done
7368 else
7369 echo "$as_me: failed program was:" >&5
7370 sed 's/^/| /' conftest.$ac_ext >&5
7372 ac_lo= ac_hi=
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7377 # Binary search between lo and hi bounds.
7378 while test "x$ac_lo" != "x$ac_hi"; do
7379 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7388 main ()
7390 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
7391 test_array [0] = 0
7394 return 0;
7396 _ACEOF
7397 rm -f conftest.$ac_objext
7398 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7399 (eval $ac_compile) 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } &&
7406 { ac_try='test -z "$ac_c_werror_flag"
7407 || test ! -s conftest.err'
7408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7409 (eval $ac_try) 2>&5
7410 ac_status=$?
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); }; } &&
7413 { ac_try='test -s conftest.$ac_objext'
7414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7415 (eval $ac_try) 2>&5
7416 ac_status=$?
7417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7418 (exit $ac_status); }; }; then
7419 ac_hi=$ac_mid
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7424 ac_lo=`expr '(' $ac_mid ')' + 1`
7426 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7427 done
7428 case $ac_lo in
7429 ?*) ac_cv_sizeof_long=$ac_lo;;
7430 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7431 See \`config.log' for more details." >&5
7432 echo "$as_me: error: cannot compute sizeof (long), 77
7433 See \`config.log' for more details." >&2;}
7434 { (exit 1); exit 1; }; } ;;
7435 esac
7436 else
7437 if test "$cross_compiling" = yes; then
7438 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
7439 See \`config.log' for more details." >&5
7440 echo "$as_me: error: cannot run test program while cross compiling
7441 See \`config.log' for more details." >&2;}
7442 { (exit 1); exit 1; }; }
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 $ac_includes_default
7451 long longval () { return (long) (sizeof (long)); }
7452 unsigned long ulongval () { return (long) (sizeof (long)); }
7453 #include <stdio.h>
7454 #include <stdlib.h>
7456 main ()
7459 FILE *f = fopen ("conftest.val", "w");
7460 if (! f)
7461 exit (1);
7462 if (((long) (sizeof (long))) < 0)
7464 long i = longval ();
7465 if (i != ((long) (sizeof (long))))
7466 exit (1);
7467 fprintf (f, "%ld\n", i);
7469 else
7471 unsigned long i = ulongval ();
7472 if (i != ((long) (sizeof (long))))
7473 exit (1);
7474 fprintf (f, "%lu\n", i);
7476 exit (ferror (f) || fclose (f) != 0);
7479 return 0;
7481 _ACEOF
7482 rm -f conftest$ac_exeext
7483 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7484 (eval $ac_link) 2>&5
7485 ac_status=$?
7486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7487 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7488 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7489 (eval $ac_try) 2>&5
7490 ac_status=$?
7491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7492 (exit $ac_status); }; }; then
7493 ac_cv_sizeof_long=`cat conftest.val`
7494 else
7495 echo "$as_me: program exited with status $ac_status" >&5
7496 echo "$as_me: failed program was:" >&5
7497 sed 's/^/| /' conftest.$ac_ext >&5
7499 ( exit $ac_status )
7500 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
7501 See \`config.log' for more details." >&5
7502 echo "$as_me: error: cannot compute sizeof (long), 77
7503 See \`config.log' for more details." >&2;}
7504 { (exit 1); exit 1; }; }
7506 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7509 rm -f conftest.val
7510 else
7511 ac_cv_sizeof_long=0
7514 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
7515 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
7516 cat >>confdefs.h <<_ACEOF
7517 #define SIZEOF_LONG $ac_cv_sizeof_long
7518 _ACEOF
7521 SIZEOF_LONG=$ac_cv_sizeof_long
7523 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
7524 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
7525 if test "${ac_cv_c_bigendian+set}" = set; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 # See if sys/param.h defines the BYTE_ORDER macro.
7529 cat >conftest.$ac_ext <<_ACEOF
7530 /* confdefs.h. */
7531 _ACEOF
7532 cat confdefs.h >>conftest.$ac_ext
7533 cat >>conftest.$ac_ext <<_ACEOF
7534 /* end confdefs.h. */
7535 #include <sys/types.h>
7536 #include <sys/param.h>
7539 main ()
7541 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
7542 bogus endian macros
7543 #endif
7546 return 0;
7548 _ACEOF
7549 rm -f conftest.$ac_objext
7550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7551 (eval $ac_compile) 2>conftest.er1
7552 ac_status=$?
7553 grep -v '^ *+' conftest.er1 >conftest.err
7554 rm -f conftest.er1
7555 cat conftest.err >&5
7556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7557 (exit $ac_status); } &&
7558 { ac_try='test -z "$ac_c_werror_flag"
7559 || test ! -s conftest.err'
7560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7561 (eval $ac_try) 2>&5
7562 ac_status=$?
7563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7564 (exit $ac_status); }; } &&
7565 { ac_try='test -s conftest.$ac_objext'
7566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7567 (eval $ac_try) 2>&5
7568 ac_status=$?
7569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7570 (exit $ac_status); }; }; then
7571 # It does; now see whether it defined to BIG_ENDIAN or not.
7572 cat >conftest.$ac_ext <<_ACEOF
7573 /* confdefs.h. */
7574 _ACEOF
7575 cat confdefs.h >>conftest.$ac_ext
7576 cat >>conftest.$ac_ext <<_ACEOF
7577 /* end confdefs.h. */
7578 #include <sys/types.h>
7579 #include <sys/param.h>
7582 main ()
7584 #if BYTE_ORDER != BIG_ENDIAN
7585 not big endian
7586 #endif
7589 return 0;
7591 _ACEOF
7592 rm -f conftest.$ac_objext
7593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7594 (eval $ac_compile) 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -z "$ac_c_werror_flag"
7602 || test ! -s conftest.err'
7603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7604 (eval $ac_try) 2>&5
7605 ac_status=$?
7606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7607 (exit $ac_status); }; } &&
7608 { ac_try='test -s conftest.$ac_objext'
7609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7610 (eval $ac_try) 2>&5
7611 ac_status=$?
7612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7613 (exit $ac_status); }; }; then
7614 ac_cv_c_bigendian=yes
7615 else
7616 echo "$as_me: failed program was:" >&5
7617 sed 's/^/| /' conftest.$ac_ext >&5
7619 ac_cv_c_bigendian=no
7621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7626 # It does not; compile a test program.
7627 if test "$cross_compiling" = yes; then
7628 # try to guess the endianness by grepping values into an object file
7629 ac_cv_c_bigendian=unknown
7630 cat >conftest.$ac_ext <<_ACEOF
7631 /* confdefs.h. */
7632 _ACEOF
7633 cat confdefs.h >>conftest.$ac_ext
7634 cat >>conftest.$ac_ext <<_ACEOF
7635 /* end confdefs.h. */
7636 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
7637 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
7638 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
7639 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
7640 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
7641 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
7643 main ()
7645 _ascii (); _ebcdic ();
7647 return 0;
7649 _ACEOF
7650 rm -f conftest.$ac_objext
7651 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7652 (eval $ac_compile) 2>conftest.er1
7653 ac_status=$?
7654 grep -v '^ *+' conftest.er1 >conftest.err
7655 rm -f conftest.er1
7656 cat conftest.err >&5
7657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7658 (exit $ac_status); } &&
7659 { ac_try='test -z "$ac_c_werror_flag"
7660 || test ! -s conftest.err'
7661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7662 (eval $ac_try) 2>&5
7663 ac_status=$?
7664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7665 (exit $ac_status); }; } &&
7666 { ac_try='test -s conftest.$ac_objext'
7667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7668 (eval $ac_try) 2>&5
7669 ac_status=$?
7670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7671 (exit $ac_status); }; }; then
7672 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
7673 ac_cv_c_bigendian=yes
7675 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
7676 if test "$ac_cv_c_bigendian" = unknown; then
7677 ac_cv_c_bigendian=no
7678 else
7679 # finding both strings is unlikely to happen, but who knows?
7680 ac_cv_c_bigendian=unknown
7683 else
7684 echo "$as_me: failed program was:" >&5
7685 sed 's/^/| /' conftest.$ac_ext >&5
7688 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7689 else
7690 cat >conftest.$ac_ext <<_ACEOF
7691 /* confdefs.h. */
7692 _ACEOF
7693 cat confdefs.h >>conftest.$ac_ext
7694 cat >>conftest.$ac_ext <<_ACEOF
7695 /* end confdefs.h. */
7697 main ()
7699 /* Are we little or big endian? From Harbison&Steele. */
7700 union
7702 long l;
7703 char c[sizeof (long)];
7704 } u;
7705 u.l = 1;
7706 exit (u.c[sizeof (long) - 1] == 1);
7708 _ACEOF
7709 rm -f conftest$ac_exeext
7710 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7711 (eval $ac_link) 2>&5
7712 ac_status=$?
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7716 (eval $ac_try) 2>&5
7717 ac_status=$?
7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7719 (exit $ac_status); }; }; then
7720 ac_cv_c_bigendian=no
7721 else
7722 echo "$as_me: program exited with status $ac_status" >&5
7723 echo "$as_me: failed program was:" >&5
7724 sed 's/^/| /' conftest.$ac_ext >&5
7726 ( exit $ac_status )
7727 ac_cv_c_bigendian=yes
7729 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7732 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7734 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
7735 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
7736 case $ac_cv_c_bigendian in
7737 yes)
7739 cat >>confdefs.h <<\_ACEOF
7740 #define WORDS_BIGENDIAN 1
7741 _ACEOF
7746 { { echo "$as_me:$LINENO: error: unknown endianness
7747 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
7748 echo "$as_me: error: unknown endianness
7749 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
7750 { (exit 1); exit 1; }; } ;;
7751 esac
7753 WORDS_BIGENDIAN=$ac_cv_c_bigendian
7756 # Check whether --enable-largefile or --disable-largefile was given.
7757 if test "${enable_largefile+set}" = set; then
7758 enableval="$enable_largefile"
7761 if test "$enable_largefile" != no; then
7763 echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
7764 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6
7765 if test "${ac_cv_sys_largefile_CC+set}" = set; then
7766 echo $ECHO_N "(cached) $ECHO_C" >&6
7767 else
7768 ac_cv_sys_largefile_CC=no
7769 if test "$GCC" != yes; then
7770 ac_save_CC=$CC
7771 while :; do
7772 # IRIX 6.2 and later do not support large files by default,
7773 # so use the C compiler's -n32 option if that helps.
7774 cat >conftest.$ac_ext <<_ACEOF
7775 /* confdefs.h. */
7776 _ACEOF
7777 cat confdefs.h >>conftest.$ac_ext
7778 cat >>conftest.$ac_ext <<_ACEOF
7779 /* end confdefs.h. */
7780 #include <sys/types.h>
7781 /* Check that off_t can represent 2**63 - 1 correctly.
7782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7783 since some C++ compilers masquerading as C compilers
7784 incorrectly reject 9223372036854775807. */
7785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7787 && LARGE_OFF_T % 2147483647 == 1)
7788 ? 1 : -1];
7790 main ()
7794 return 0;
7796 _ACEOF
7797 rm -f conftest.$ac_objext
7798 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7799 (eval $ac_compile) 2>conftest.er1
7800 ac_status=$?
7801 grep -v '^ *+' conftest.er1 >conftest.err
7802 rm -f conftest.er1
7803 cat conftest.err >&5
7804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7805 (exit $ac_status); } &&
7806 { ac_try='test -z "$ac_c_werror_flag"
7807 || test ! -s conftest.err'
7808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7809 (eval $ac_try) 2>&5
7810 ac_status=$?
7811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7812 (exit $ac_status); }; } &&
7813 { ac_try='test -s conftest.$ac_objext'
7814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7815 (eval $ac_try) 2>&5
7816 ac_status=$?
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); }; }; then
7819 break
7820 else
7821 echo "$as_me: failed program was:" >&5
7822 sed 's/^/| /' conftest.$ac_ext >&5
7825 rm -f conftest.err conftest.$ac_objext
7826 CC="$CC -n32"
7827 rm -f conftest.$ac_objext
7828 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7829 (eval $ac_compile) 2>conftest.er1
7830 ac_status=$?
7831 grep -v '^ *+' conftest.er1 >conftest.err
7832 rm -f conftest.er1
7833 cat conftest.err >&5
7834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7835 (exit $ac_status); } &&
7836 { ac_try='test -z "$ac_c_werror_flag"
7837 || test ! -s conftest.err'
7838 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7839 (eval $ac_try) 2>&5
7840 ac_status=$?
7841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7842 (exit $ac_status); }; } &&
7843 { ac_try='test -s conftest.$ac_objext'
7844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7845 (eval $ac_try) 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 ac_cv_sys_largefile_CC=' -n32'; break
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7855 rm -f conftest.err conftest.$ac_objext
7856 break
7857 done
7858 CC=$ac_save_CC
7859 rm -f conftest.$ac_ext
7862 echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
7863 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6
7864 if test "$ac_cv_sys_largefile_CC" != no; then
7865 CC=$CC$ac_cv_sys_largefile_CC
7868 echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
7869 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6
7870 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
7871 echo $ECHO_N "(cached) $ECHO_C" >&6
7872 else
7873 while :; do
7874 ac_cv_sys_file_offset_bits=no
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 #include <sys/types.h>
7882 /* Check that off_t can represent 2**63 - 1 correctly.
7883 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7884 since some C++ compilers masquerading as C compilers
7885 incorrectly reject 9223372036854775807. */
7886 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7887 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7888 && LARGE_OFF_T % 2147483647 == 1)
7889 ? 1 : -1];
7891 main ()
7895 return 0;
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7900 (eval $ac_compile) 2>conftest.er1
7901 ac_status=$?
7902 grep -v '^ *+' conftest.er1 >conftest.err
7903 rm -f conftest.er1
7904 cat conftest.err >&5
7905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7906 (exit $ac_status); } &&
7907 { ac_try='test -z "$ac_c_werror_flag"
7908 || test ! -s conftest.err'
7909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7910 (eval $ac_try) 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7916 (eval $ac_try) 2>&5
7917 ac_status=$?
7918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7919 (exit $ac_status); }; }; then
7920 break
7921 else
7922 echo "$as_me: failed program was:" >&5
7923 sed 's/^/| /' conftest.$ac_ext >&5
7926 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 #define _FILE_OFFSET_BITS 64
7934 #include <sys/types.h>
7935 /* Check that off_t can represent 2**63 - 1 correctly.
7936 We can't simply define LARGE_OFF_T to be 9223372036854775807,
7937 since some C++ compilers masquerading as C compilers
7938 incorrectly reject 9223372036854775807. */
7939 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
7940 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
7941 && LARGE_OFF_T % 2147483647 == 1)
7942 ? 1 : -1];
7944 main ()
7948 return 0;
7950 _ACEOF
7951 rm -f conftest.$ac_objext
7952 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7953 (eval $ac_compile) 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } &&
7960 { ac_try='test -z "$ac_c_werror_flag"
7961 || test ! -s conftest.err'
7962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7963 (eval $ac_try) 2>&5
7964 ac_status=$?
7965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7966 (exit $ac_status); }; } &&
7967 { ac_try='test -s conftest.$ac_objext'
7968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7969 (eval $ac_try) 2>&5
7970 ac_status=$?
7971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7972 (exit $ac_status); }; }; then
7973 ac_cv_sys_file_offset_bits=64; break
7974 else
7975 echo "$as_me: failed program was:" >&5
7976 sed 's/^/| /' conftest.$ac_ext >&5
7979 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7980 break
7981 done
7983 echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
7984 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6
7985 if test "$ac_cv_sys_file_offset_bits" != no; then
7987 cat >>confdefs.h <<_ACEOF
7988 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
7989 _ACEOF
7992 rm -f conftest*
7993 echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
7994 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6
7995 if test "${ac_cv_sys_large_files+set}" = set; then
7996 echo $ECHO_N "(cached) $ECHO_C" >&6
7997 else
7998 while :; do
7999 ac_cv_sys_large_files=no
8000 cat >conftest.$ac_ext <<_ACEOF
8001 /* confdefs.h. */
8002 _ACEOF
8003 cat confdefs.h >>conftest.$ac_ext
8004 cat >>conftest.$ac_ext <<_ACEOF
8005 /* end confdefs.h. */
8006 #include <sys/types.h>
8007 /* Check that off_t can represent 2**63 - 1 correctly.
8008 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8009 since some C++ compilers masquerading as C compilers
8010 incorrectly reject 9223372036854775807. */
8011 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8012 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8013 && LARGE_OFF_T % 2147483647 == 1)
8014 ? 1 : -1];
8016 main ()
8020 return 0;
8022 _ACEOF
8023 rm -f conftest.$ac_objext
8024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8025 (eval $ac_compile) 2>conftest.er1
8026 ac_status=$?
8027 grep -v '^ *+' conftest.er1 >conftest.err
8028 rm -f conftest.er1
8029 cat conftest.err >&5
8030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8031 (exit $ac_status); } &&
8032 { ac_try='test -z "$ac_c_werror_flag"
8033 || test ! -s conftest.err'
8034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8035 (eval $ac_try) 2>&5
8036 ac_status=$?
8037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8038 (exit $ac_status); }; } &&
8039 { ac_try='test -s conftest.$ac_objext'
8040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8041 (eval $ac_try) 2>&5
8042 ac_status=$?
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); }; }; then
8045 break
8046 else
8047 echo "$as_me: failed program was:" >&5
8048 sed 's/^/| /' conftest.$ac_ext >&5
8051 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8052 cat >conftest.$ac_ext <<_ACEOF
8053 /* confdefs.h. */
8054 _ACEOF
8055 cat confdefs.h >>conftest.$ac_ext
8056 cat >>conftest.$ac_ext <<_ACEOF
8057 /* end confdefs.h. */
8058 #define _LARGE_FILES 1
8059 #include <sys/types.h>
8060 /* Check that off_t can represent 2**63 - 1 correctly.
8061 We can't simply define LARGE_OFF_T to be 9223372036854775807,
8062 since some C++ compilers masquerading as C compilers
8063 incorrectly reject 9223372036854775807. */
8064 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
8065 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
8066 && LARGE_OFF_T % 2147483647 == 1)
8067 ? 1 : -1];
8069 main ()
8073 return 0;
8075 _ACEOF
8076 rm -f conftest.$ac_objext
8077 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8078 (eval $ac_compile) 2>conftest.er1
8079 ac_status=$?
8080 grep -v '^ *+' conftest.er1 >conftest.err
8081 rm -f conftest.er1
8082 cat conftest.err >&5
8083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8084 (exit $ac_status); } &&
8085 { ac_try='test -z "$ac_c_werror_flag"
8086 || test ! -s conftest.err'
8087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8088 (eval $ac_try) 2>&5
8089 ac_status=$?
8090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8091 (exit $ac_status); }; } &&
8092 { ac_try='test -s conftest.$ac_objext'
8093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8094 (eval $ac_try) 2>&5
8095 ac_status=$?
8096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8097 (exit $ac_status); }; }; then
8098 ac_cv_sys_large_files=1; break
8099 else
8100 echo "$as_me: failed program was:" >&5
8101 sed 's/^/| /' conftest.$ac_ext >&5
8104 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8105 break
8106 done
8108 echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
8109 echo "${ECHO_T}$ac_cv_sys_large_files" >&6
8110 if test "$ac_cv_sys_large_files" != no; then
8112 cat >>confdefs.h <<_ACEOF
8113 #define _LARGE_FILES $ac_cv_sys_large_files
8114 _ACEOF
8117 rm -f conftest*
8120 if test -n "$ac_cv_sys_file_offset_bits"; then
8121 LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
8123 if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
8124 LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
8128 echo "$as_me:$LINENO: checking whether to disable vba feature" >&5
8129 echo $ECHO_N "checking whether to disable vba feature... $ECHO_C" >&6
8130 if test -n "$enable_vba" && test "$enable_vba" = "no"; then
8131 echo "$as_me:$LINENO: result: yes" >&5
8132 echo "${ECHO_T}yes" >&6
8133 ENABLE_VBA=NO
8134 else
8135 echo "$as_me:$LINENO: result: no" >&5
8136 echo "${ECHO_T}no" >&6
8137 ENABLE_VBA=YES
8141 if test "$ENABLE_VBA" = "YES"; then
8142 echo "$as_me:$LINENO: checking how to package the vba compatibility api" >&5
8143 echo $ECHO_N "checking how to package the vba compatibility api... $ECHO_C" >&6
8144 if test -n "$with_vba_package_format"; then
8145 if test "$with_vba_package_format" = "extn"; then
8146 VBA_EXTENSION=YES
8147 echo "$as_me:$LINENO: result: uno extension" >&5
8148 echo "${ECHO_T}uno extension" >&6
8149 { echo "$as_me:$LINENO: WARNING: --with-vba-package-format=extn can cause problems" >&5
8150 echo "$as_me: WARNING: --with-vba-package-format=extn can cause problems" >&2;}
8151 else if test "$with_vba_package_format" = "builtin"; then
8152 VBA_EXTENSION=NO
8153 echo "$as_me:$LINENO: result: build into installset" >&5
8154 echo "${ECHO_T}build into installset" >&6
8155 else
8156 { { echo "$as_me:$LINENO: error: unknown packaging method" >&5
8157 echo "$as_me: error: unknown packaging method" >&2;}
8158 { (exit 1); exit 1; }; }
8162 else
8163 VBA_EXTENSION=NO
8164 echo "$as_me:$LINENO: result: defaulting to build into installset" >&5
8165 echo "${ECHO_T}defaulting to build into installset" >&6
8167 else
8168 VBA_EXTENSION=NO
8174 if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
8175 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8176 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8177 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8178 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8179 echo $ECHO_N "(cached) $ECHO_C" >&6
8181 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8182 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8183 else
8184 # Is the header compilable?
8185 echo "$as_me:$LINENO: checking cups/cups.h usability" >&5
8186 echo $ECHO_N "checking cups/cups.h usability... $ECHO_C" >&6
8187 cat >conftest.$ac_ext <<_ACEOF
8188 /* confdefs.h. */
8189 _ACEOF
8190 cat confdefs.h >>conftest.$ac_ext
8191 cat >>conftest.$ac_ext <<_ACEOF
8192 /* end confdefs.h. */
8193 $ac_includes_default
8194 #include <cups/cups.h>
8195 _ACEOF
8196 rm -f conftest.$ac_objext
8197 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8198 (eval $ac_compile) 2>conftest.er1
8199 ac_status=$?
8200 grep -v '^ *+' conftest.er1 >conftest.err
8201 rm -f conftest.er1
8202 cat conftest.err >&5
8203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8204 (exit $ac_status); } &&
8205 { ac_try='test -z "$ac_c_werror_flag"
8206 || test ! -s conftest.err'
8207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 (eval $ac_try) 2>&5
8209 ac_status=$?
8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8211 (exit $ac_status); }; } &&
8212 { ac_try='test -s conftest.$ac_objext'
8213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8214 (eval $ac_try) 2>&5
8215 ac_status=$?
8216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8217 (exit $ac_status); }; }; then
8218 ac_header_compiler=yes
8219 else
8220 echo "$as_me: failed program was:" >&5
8221 sed 's/^/| /' conftest.$ac_ext >&5
8223 ac_header_compiler=no
8225 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8226 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8227 echo "${ECHO_T}$ac_header_compiler" >&6
8229 # Is the header present?
8230 echo "$as_me:$LINENO: checking cups/cups.h presence" >&5
8231 echo $ECHO_N "checking cups/cups.h presence... $ECHO_C" >&6
8232 cat >conftest.$ac_ext <<_ACEOF
8233 /* confdefs.h. */
8234 _ACEOF
8235 cat confdefs.h >>conftest.$ac_ext
8236 cat >>conftest.$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8238 #include <cups/cups.h>
8239 _ACEOF
8240 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8241 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8242 ac_status=$?
8243 grep -v '^ *+' conftest.er1 >conftest.err
8244 rm -f conftest.er1
8245 cat conftest.err >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); } >/dev/null; then
8248 if test -s conftest.err; then
8249 ac_cpp_err=$ac_c_preproc_warn_flag
8250 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8251 else
8252 ac_cpp_err=
8254 else
8255 ac_cpp_err=yes
8257 if test -z "$ac_cpp_err"; then
8258 ac_header_preproc=yes
8259 else
8260 echo "$as_me: failed program was:" >&5
8261 sed 's/^/| /' conftest.$ac_ext >&5
8263 ac_header_preproc=no
8265 rm -f conftest.err conftest.$ac_ext
8266 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8267 echo "${ECHO_T}$ac_header_preproc" >&6
8269 # So? What about this header?
8270 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8271 yes:no: )
8272 { echo "$as_me:$LINENO: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&5
8273 echo "$as_me: WARNING: cups/cups.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8274 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the compiler's result" >&5
8275 echo "$as_me: WARNING: cups/cups.h: proceeding with the compiler's result" >&2;}
8276 ac_header_preproc=yes
8278 no:yes:* )
8279 { echo "$as_me:$LINENO: WARNING: cups/cups.h: present but cannot be compiled" >&5
8280 echo "$as_me: WARNING: cups/cups.h: present but cannot be compiled" >&2;}
8281 { echo "$as_me:$LINENO: WARNING: cups/cups.h: check for missing prerequisite headers?" >&5
8282 echo "$as_me: WARNING: cups/cups.h: check for missing prerequisite headers?" >&2;}
8283 { echo "$as_me:$LINENO: WARNING: cups/cups.h: see the Autoconf documentation" >&5
8284 echo "$as_me: WARNING: cups/cups.h: see the Autoconf documentation" >&2;}
8285 { echo "$as_me:$LINENO: WARNING: cups/cups.h: section \"Present But Cannot Be Compiled\"" >&5
8286 echo "$as_me: WARNING: cups/cups.h: section \"Present But Cannot Be Compiled\"" >&2;}
8287 { echo "$as_me:$LINENO: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&5
8288 echo "$as_me: WARNING: cups/cups.h: proceeding with the preprocessor's result" >&2;}
8289 { echo "$as_me:$LINENO: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&5
8290 echo "$as_me: WARNING: cups/cups.h: in the future, the compiler will take precedence" >&2;}
8292 cat <<\_ASBOX
8293 ## ------------------------------------------ ##
8294 ## Report this to the AC_PACKAGE_NAME lists. ##
8295 ## ------------------------------------------ ##
8296 _ASBOX
8298 sed "s/^/$as_me: WARNING: /" >&2
8300 esac
8301 echo "$as_me:$LINENO: checking for cups/cups.h" >&5
8302 echo $ECHO_N "checking for cups/cups.h... $ECHO_C" >&6
8303 if test "${ac_cv_header_cups_cups_h+set}" = set; then
8304 echo $ECHO_N "(cached) $ECHO_C" >&6
8305 else
8306 ac_cv_header_cups_cups_h=$ac_header_preproc
8308 echo "$as_me:$LINENO: result: $ac_cv_header_cups_cups_h" >&5
8309 echo "${ECHO_T}$ac_cv_header_cups_cups_h" >&6
8312 if test $ac_cv_header_cups_cups_h = yes; then
8314 else
8315 { { echo "$as_me:$LINENO: error: cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?" >&5
8316 echo "$as_me: error: cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?" >&2;}
8317 { (exit 1); exit 1; }; }
8323 if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "GNU"; then
8324 echo "$as_me:$LINENO: checking whether to enable pam support" >&5
8325 echo $ECHO_N "checking whether to enable pam support... $ECHO_C" >&6
8326 if test -z "$enable_pam" || test "$enable_pam" != "no"; then
8327 echo "$as_me:$LINENO: result: yes" >&5
8328 echo "${ECHO_T}yes" >&6
8329 PAM=YES
8330 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8331 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8332 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8333 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8334 echo $ECHO_N "(cached) $ECHO_C" >&6
8336 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8337 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8338 else
8339 # Is the header compilable?
8340 echo "$as_me:$LINENO: checking security/pam_appl.h usability" >&5
8341 echo $ECHO_N "checking security/pam_appl.h usability... $ECHO_C" >&6
8342 cat >conftest.$ac_ext <<_ACEOF
8343 /* confdefs.h. */
8344 _ACEOF
8345 cat confdefs.h >>conftest.$ac_ext
8346 cat >>conftest.$ac_ext <<_ACEOF
8347 /* end confdefs.h. */
8348 $ac_includes_default
8349 #include <security/pam_appl.h>
8350 _ACEOF
8351 rm -f conftest.$ac_objext
8352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8353 (eval $ac_compile) 2>conftest.er1
8354 ac_status=$?
8355 grep -v '^ *+' conftest.er1 >conftest.err
8356 rm -f conftest.er1
8357 cat conftest.err >&5
8358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8359 (exit $ac_status); } &&
8360 { ac_try='test -z "$ac_c_werror_flag"
8361 || test ! -s conftest.err'
8362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8363 (eval $ac_try) 2>&5
8364 ac_status=$?
8365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8366 (exit $ac_status); }; } &&
8367 { ac_try='test -s conftest.$ac_objext'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8369 (eval $ac_try) 2>&5
8370 ac_status=$?
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then
8373 ac_header_compiler=yes
8374 else
8375 echo "$as_me: failed program was:" >&5
8376 sed 's/^/| /' conftest.$ac_ext >&5
8378 ac_header_compiler=no
8380 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8381 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8382 echo "${ECHO_T}$ac_header_compiler" >&6
8384 # Is the header present?
8385 echo "$as_me:$LINENO: checking security/pam_appl.h presence" >&5
8386 echo $ECHO_N "checking security/pam_appl.h presence... $ECHO_C" >&6
8387 cat >conftest.$ac_ext <<_ACEOF
8388 /* confdefs.h. */
8389 _ACEOF
8390 cat confdefs.h >>conftest.$ac_ext
8391 cat >>conftest.$ac_ext <<_ACEOF
8392 /* end confdefs.h. */
8393 #include <security/pam_appl.h>
8394 _ACEOF
8395 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8396 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } >/dev/null; then
8403 if test -s conftest.err; then
8404 ac_cpp_err=$ac_c_preproc_warn_flag
8405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8406 else
8407 ac_cpp_err=
8409 else
8410 ac_cpp_err=yes
8412 if test -z "$ac_cpp_err"; then
8413 ac_header_preproc=yes
8414 else
8415 echo "$as_me: failed program was:" >&5
8416 sed 's/^/| /' conftest.$ac_ext >&5
8418 ac_header_preproc=no
8420 rm -f conftest.err conftest.$ac_ext
8421 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8422 echo "${ECHO_T}$ac_header_preproc" >&6
8424 # So? What about this header?
8425 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8426 yes:no: )
8427 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&5
8428 echo "$as_me: WARNING: security/pam_appl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
8429 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&5
8430 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the compiler's result" >&2;}
8431 ac_header_preproc=yes
8433 no:yes:* )
8434 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: present but cannot be compiled" >&5
8435 echo "$as_me: WARNING: security/pam_appl.h: present but cannot be compiled" >&2;}
8436 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&5
8437 echo "$as_me: WARNING: security/pam_appl.h: check for missing prerequisite headers?" >&2;}
8438 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: see the Autoconf documentation" >&5
8439 echo "$as_me: WARNING: security/pam_appl.h: see the Autoconf documentation" >&2;}
8440 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&5
8441 echo "$as_me: WARNING: security/pam_appl.h: section \"Present But Cannot Be Compiled\"" >&2;}
8442 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&5
8443 echo "$as_me: WARNING: security/pam_appl.h: proceeding with the preprocessor's result" >&2;}
8444 { echo "$as_me:$LINENO: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&5
8445 echo "$as_me: WARNING: security/pam_appl.h: in the future, the compiler will take precedence" >&2;}
8447 cat <<\_ASBOX
8448 ## ------------------------------------------ ##
8449 ## Report this to the AC_PACKAGE_NAME lists. ##
8450 ## ------------------------------------------ ##
8451 _ASBOX
8453 sed "s/^/$as_me: WARNING: /" >&2
8455 esac
8456 echo "$as_me:$LINENO: checking for security/pam_appl.h" >&5
8457 echo $ECHO_N "checking for security/pam_appl.h... $ECHO_C" >&6
8458 if test "${ac_cv_header_security_pam_appl_h+set}" = set; then
8459 echo $ECHO_N "(cached) $ECHO_C" >&6
8460 else
8461 ac_cv_header_security_pam_appl_h=$ac_header_preproc
8463 echo "$as_me:$LINENO: result: $ac_cv_header_security_pam_appl_h" >&5
8464 echo "${ECHO_T}$ac_cv_header_security_pam_appl_h" >&6
8467 if test $ac_cv_header_security_pam_appl_h = yes; then
8469 else
8470 { { echo "$as_me:$LINENO: error: pam_appl.h could not be found. libpam-dev or pam-devel missing?" >&5
8471 echo "$as_me: error: pam_appl.h could not be found. libpam-dev or pam-devel missing?" >&2;}
8472 { (exit 1); exit 1; }; }
8476 echo "$as_me:$LINENO: checking whether to link to libpam" >&5
8477 echo $ECHO_N "checking whether to link to libpam... $ECHO_C" >&6
8478 if test -n "$enable_pam_link" -a "$enable_pam_link" != "no"; then
8479 echo "$as_me:$LINENO: result: yes" >&5
8480 echo "${ECHO_T}yes" >&6
8481 PAM_LINK=YES
8483 echo "$as_me:$LINENO: checking for pam_start in -lpam" >&5
8484 echo $ECHO_N "checking for pam_start in -lpam... $ECHO_C" >&6
8485 if test "${ac_cv_lib_pam_pam_start+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 ac_check_lib_save_LIBS=$LIBS
8489 LIBS="-lpam $LIBS"
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8497 /* Override any gcc2 internal prototype to avoid an error. */
8498 #ifdef __cplusplus
8499 extern "C"
8500 #endif
8501 /* We use char because int might match the return type of a gcc2
8502 builtin and then its argument prototype would still apply. */
8503 char pam_start ();
8505 main ()
8507 pam_start ();
8509 return 0;
8511 _ACEOF
8512 rm -f conftest.$ac_objext conftest$ac_exeext
8513 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8514 (eval $ac_link) 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } &&
8521 { ac_try='test -z "$ac_c_werror_flag"
8522 || test ! -s conftest.err'
8523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8524 (eval $ac_try) 2>&5
8525 ac_status=$?
8526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8527 (exit $ac_status); }; } &&
8528 { ac_try='test -s conftest$ac_exeext'
8529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8530 (eval $ac_try) 2>&5
8531 ac_status=$?
8532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8533 (exit $ac_status); }; }; then
8534 ac_cv_lib_pam_pam_start=yes
8535 else
8536 echo "$as_me: failed program was:" >&5
8537 sed 's/^/| /' conftest.$ac_ext >&5
8539 ac_cv_lib_pam_pam_start=no
8541 rm -f conftest.err conftest.$ac_objext \
8542 conftest$ac_exeext conftest.$ac_ext
8543 LIBS=$ac_check_lib_save_LIBS
8545 echo "$as_me:$LINENO: result: $ac_cv_lib_pam_pam_start" >&5
8546 echo "${ECHO_T}$ac_cv_lib_pam_pam_start" >&6
8547 if test $ac_cv_lib_pam_pam_start = yes; then
8548 cat >>confdefs.h <<_ACEOF
8549 #define HAVE_LIBPAM 1
8550 _ACEOF
8552 LIBS="-lpam $LIBS"
8554 else
8555 { { echo "$as_me:$LINENO: error: libpam not found or functional" >&5
8556 echo "$as_me: error: libpam not found or functional" >&2;}
8557 { (exit 1); exit 1; }; }
8560 else
8561 echo "$as_me:$LINENO: result: no, dynamically open it" >&5
8562 echo "${ECHO_T}no, dynamically open it" >&6
8563 PAM_LINK=NO
8565 else
8566 echo "$as_me:$LINENO: result: no" >&5
8567 echo "${ECHO_T}no" >&6
8568 PAM=NO
8569 PAM_LINK=NO
8572 ac_ext=c
8573 ac_cpp='$CPP $CPPFLAGS'
8574 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8575 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8576 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8578 echo "$as_me:$LINENO: checking how many arguments getspnam_r() takes" >&5
8579 echo $ECHO_N "checking how many arguments getspnam_r() takes... $ECHO_C" >&6
8581 if test "${ac_cv_func_which_getspnam_r+set}" = set; then
8582 echo $ECHO_N "(cached) $ECHO_C" >&6
8583 else
8586 ################################################################
8588 ac_cv_func_which_getspnam_r=unknown
8591 # ONE ARGUMENT (sanity check)
8594 # This should fail, as there is no variant of getspnam_r() that takes
8595 # a single argument. If it actually compiles, then we can assume that
8596 # netdb.h is not declaring the function, and the compiler is thereby
8597 # assuming an implicit prototype. In which case, we're out of luck.
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8606 #include <sys/types.h>
8607 #include <shadow.h>
8610 main ()
8613 const char *name = "myname";
8614 getspnam_r(name) /* ; */
8617 return 0;
8619 _ACEOF
8620 rm -f conftest.$ac_objext
8621 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8622 (eval $ac_compile) 2>conftest.er1
8623 ac_status=$?
8624 grep -v '^ *+' conftest.er1 >conftest.err
8625 rm -f conftest.er1
8626 cat conftest.err >&5
8627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8628 (exit $ac_status); } &&
8629 { ac_try='test -z "$ac_c_werror_flag"
8630 || test ! -s conftest.err'
8631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8632 (eval $ac_try) 2>&5
8633 ac_status=$?
8634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8635 (exit $ac_status); }; } &&
8636 { ac_try='test -s conftest.$ac_objext'
8637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8638 (eval $ac_try) 2>&5
8639 ac_status=$?
8640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8641 (exit $ac_status); }; }; then
8642 ac_cv_func_which_getspnam_r=no
8643 else
8644 echo "$as_me: failed program was:" >&5
8645 sed 's/^/| /' conftest.$ac_ext >&5
8648 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8651 # FIVE ARGUMENTS
8654 if test "$ac_cv_func_which_getspnam_r" = "unknown"; then
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8663 #include <sys/types.h>
8664 #include <shadow.h>
8667 main ()
8670 char buffer[] = { '\0' };
8671 struct spwd spwdStruct;
8672 const char *name = "myname";
8673 getspnam_r(name, &spwdStruct, buffer, sizeof buffer, 0) /* ; */
8676 return 0;
8678 _ACEOF
8679 rm -f conftest.$ac_objext
8680 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8681 (eval $ac_compile) 2>conftest.er1
8682 ac_status=$?
8683 grep -v '^ *+' conftest.er1 >conftest.err
8684 rm -f conftest.er1
8685 cat conftest.err >&5
8686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8687 (exit $ac_status); } &&
8688 { ac_try='test -z "$ac_c_werror_flag"
8689 || test ! -s conftest.err'
8690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8691 (eval $ac_try) 2>&5
8692 ac_status=$?
8693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8694 (exit $ac_status); }; } &&
8695 { ac_try='test -s conftest.$ac_objext'
8696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8697 (eval $ac_try) 2>&5
8698 ac_status=$?
8699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8700 (exit $ac_status); }; }; then
8701 ac_cv_func_which_getspnam_r=five
8702 else
8703 echo "$as_me: failed program was:" >&5
8704 sed 's/^/| /' conftest.$ac_ext >&5
8707 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8712 # FOUR ARGUMENTS
8715 if test "$ac_cv_func_which_getspnam_r" = "unknown"; then
8717 cat >conftest.$ac_ext <<_ACEOF
8718 /* confdefs.h. */
8719 _ACEOF
8720 cat confdefs.h >>conftest.$ac_ext
8721 cat >>conftest.$ac_ext <<_ACEOF
8722 /* end confdefs.h. */
8724 #include <sys/types.h>
8725 #include <shadow.h>
8728 main ()
8731 char buffer[] = { '\0' };
8732 struct spwd spwdStruct;
8733 const char *name = "myname";
8734 getspnam_r(name, &spwdStruct, buffer, sizeof buffer) /* ; */
8737 return 0;
8739 _ACEOF
8740 rm -f conftest.$ac_objext
8741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8742 (eval $ac_compile) 2>conftest.er1
8743 ac_status=$?
8744 grep -v '^ *+' conftest.er1 >conftest.err
8745 rm -f conftest.er1
8746 cat conftest.err >&5
8747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8748 (exit $ac_status); } &&
8749 { ac_try='test -z "$ac_c_werror_flag"
8750 || test ! -s conftest.err'
8751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8752 (eval $ac_try) 2>&5
8753 ac_status=$?
8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8755 (exit $ac_status); }; } &&
8756 { ac_try='test -s conftest.$ac_objext'
8757 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8758 (eval $ac_try) 2>&5
8759 ac_status=$?
8760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8761 (exit $ac_status); }; }; then
8762 ac_cv_func_which_getspnam_r=four
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8772 ################################################################
8777 case "$ac_cv_func_which_getspnam_r" in
8778 five)
8779 echo "$as_me:$LINENO: result: five" >&5
8780 echo "${ECHO_T}five" >&6
8781 NEW_SHADOW_API=YES
8784 four)
8785 echo "$as_me:$LINENO: result: four" >&5
8786 echo "${ECHO_T}four" >&6
8790 echo "$as_me:$LINENO: result: cannot find function declaration in shadow.h" >&5
8791 echo "${ECHO_T}cannot find function declaration in shadow.h" >&6
8794 unknown)
8795 echo "$as_me:$LINENO: result: can't tell" >&5
8796 echo "${ECHO_T}can't tell" >&6
8800 { { echo "$as_me:$LINENO: error: internal error" >&5
8801 echo "$as_me: error: internal error" >&2;}
8802 { (exit 1); exit 1; }; }
8804 esac
8806 ac_ext=c
8807 ac_cpp='$CPP $CPPFLAGS'
8808 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8809 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8810 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8820 if test "$_os" = "Linux"; then
8821 echo "$as_me:$LINENO: checking whether to link to libcrypt" >&5
8822 echo $ECHO_N "checking whether to link to libcrypt... $ECHO_C" >&6
8823 if test -n "$enable_crypt_link" -a "$enable_crypt_link" != "no"; then
8824 echo "$as_me:$LINENO: result: yes" >&5
8825 echo "${ECHO_T}yes" >&6
8826 CRYPT_LINK=YES
8828 echo "$as_me:$LINENO: checking for crypt in -lcrypt" >&5
8829 echo $ECHO_N "checking for crypt in -lcrypt... $ECHO_C" >&6
8830 if test "${ac_cv_lib_crypt_crypt+set}" = set; then
8831 echo $ECHO_N "(cached) $ECHO_C" >&6
8832 else
8833 ac_check_lib_save_LIBS=$LIBS
8834 LIBS="-lcrypt $LIBS"
8835 cat >conftest.$ac_ext <<_ACEOF
8836 /* confdefs.h. */
8837 _ACEOF
8838 cat confdefs.h >>conftest.$ac_ext
8839 cat >>conftest.$ac_ext <<_ACEOF
8840 /* end confdefs.h. */
8842 /* Override any gcc2 internal prototype to avoid an error. */
8843 #ifdef __cplusplus
8844 extern "C"
8845 #endif
8846 /* We use char because int might match the return type of a gcc2
8847 builtin and then its argument prototype would still apply. */
8848 char crypt ();
8850 main ()
8852 crypt ();
8854 return 0;
8856 _ACEOF
8857 rm -f conftest.$ac_objext conftest$ac_exeext
8858 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8859 (eval $ac_link) 2>conftest.er1
8860 ac_status=$?
8861 grep -v '^ *+' conftest.er1 >conftest.err
8862 rm -f conftest.er1
8863 cat conftest.err >&5
8864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865 (exit $ac_status); } &&
8866 { ac_try='test -z "$ac_c_werror_flag"
8867 || test ! -s conftest.err'
8868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8869 (eval $ac_try) 2>&5
8870 ac_status=$?
8871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8872 (exit $ac_status); }; } &&
8873 { ac_try='test -s conftest$ac_exeext'
8874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8875 (eval $ac_try) 2>&5
8876 ac_status=$?
8877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8878 (exit $ac_status); }; }; then
8879 ac_cv_lib_crypt_crypt=yes
8880 else
8881 echo "$as_me: failed program was:" >&5
8882 sed 's/^/| /' conftest.$ac_ext >&5
8884 ac_cv_lib_crypt_crypt=no
8886 rm -f conftest.err conftest.$ac_objext \
8887 conftest$ac_exeext conftest.$ac_ext
8888 LIBS=$ac_check_lib_save_LIBS
8890 echo "$as_me:$LINENO: result: $ac_cv_lib_crypt_crypt" >&5
8891 echo "${ECHO_T}$ac_cv_lib_crypt_crypt" >&6
8892 if test $ac_cv_lib_crypt_crypt = yes; then
8893 cat >>confdefs.h <<_ACEOF
8894 #define HAVE_LIBCRYPT 1
8895 _ACEOF
8897 LIBS="-lcrypt $LIBS"
8899 else
8900 { { echo "$as_me:$LINENO: error: libcrypt not found or functional" >&5
8901 echo "$as_me: error: libcrypt not found or functional" >&2;}
8902 { (exit 1); exit 1; }; }
8905 else
8906 echo "$as_me:$LINENO: result: no, dynamically open it" >&5
8907 echo "${ECHO_T}no, dynamically open it" >&6
8908 CRYPT_LINK=NO
8913 if test -n "$with_gcc_home"; then
8914 if test -z "$CXX"; then
8915 CXX="$with_gcc_home/bin/g++"
8919 if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
8920 if test -e "$CC"; then
8921 CXX="$CC"
8925 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
8926 ac_ext=cc
8927 ac_cpp='$CXXCPP $CPPFLAGS'
8928 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8929 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8930 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8931 if test -n "$ac_tool_prefix"; then
8932 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8934 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8935 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8936 echo "$as_me:$LINENO: checking for $ac_word" >&5
8937 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8938 if test "${ac_cv_prog_CXX+set}" = set; then
8939 echo $ECHO_N "(cached) $ECHO_C" >&6
8940 else
8941 if test -n "$CXX"; then
8942 ac_cv_prog_CXX="$CXX" # Let the user override the test.
8943 else
8944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8945 for as_dir in $PATH
8947 IFS=$as_save_IFS
8948 test -z "$as_dir" && as_dir=.
8949 for ac_exec_ext in '' $ac_executable_extensions; do
8950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8951 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8953 break 2
8955 done
8956 done
8960 CXX=$ac_cv_prog_CXX
8961 if test -n "$CXX"; then
8962 echo "$as_me:$LINENO: result: $CXX" >&5
8963 echo "${ECHO_T}$CXX" >&6
8964 else
8965 echo "$as_me:$LINENO: result: no" >&5
8966 echo "${ECHO_T}no" >&6
8969 test -n "$CXX" && break
8970 done
8972 if test -z "$CXX"; then
8973 ac_ct_CXX=$CXX
8974 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8976 # Extract the first word of "$ac_prog", so it can be a program name with args.
8977 set dummy $ac_prog; ac_word=$2
8978 echo "$as_me:$LINENO: checking for $ac_word" >&5
8979 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8980 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8981 echo $ECHO_N "(cached) $ECHO_C" >&6
8982 else
8983 if test -n "$ac_ct_CXX"; then
8984 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8985 else
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8987 for as_dir in $PATH
8989 IFS=$as_save_IFS
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8993 ac_cv_prog_ac_ct_CXX="$ac_prog"
8994 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8995 break 2
8997 done
8998 done
9002 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9003 if test -n "$ac_ct_CXX"; then
9004 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
9005 echo "${ECHO_T}$ac_ct_CXX" >&6
9006 else
9007 echo "$as_me:$LINENO: result: no" >&5
9008 echo "${ECHO_T}no" >&6
9011 test -n "$ac_ct_CXX" && break
9012 done
9013 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
9015 CXX=$ac_ct_CXX
9019 # Provide some information about the compiler.
9020 echo "$as_me:$LINENO:" \
9021 "checking for C++ compiler version" >&5
9022 ac_compiler=`set X $ac_compile; echo $2`
9023 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
9024 (eval $ac_compiler --version </dev/null >&5) 2>&5
9025 ac_status=$?
9026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9027 (exit $ac_status); }
9028 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
9029 (eval $ac_compiler -v </dev/null >&5) 2>&5
9030 ac_status=$?
9031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9032 (exit $ac_status); }
9033 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
9034 (eval $ac_compiler -V </dev/null >&5) 2>&5
9035 ac_status=$?
9036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9037 (exit $ac_status); }
9039 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
9040 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
9041 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
9042 echo $ECHO_N "(cached) $ECHO_C" >&6
9043 else
9044 cat >conftest.$ac_ext <<_ACEOF
9045 /* confdefs.h. */
9046 _ACEOF
9047 cat confdefs.h >>conftest.$ac_ext
9048 cat >>conftest.$ac_ext <<_ACEOF
9049 /* end confdefs.h. */
9052 main ()
9054 #ifndef __GNUC__
9055 choke me
9056 #endif
9059 return 0;
9061 _ACEOF
9062 rm -f conftest.$ac_objext
9063 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9064 (eval $ac_compile) 2>conftest.er1
9065 ac_status=$?
9066 grep -v '^ *+' conftest.er1 >conftest.err
9067 rm -f conftest.er1
9068 cat conftest.err >&5
9069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9070 (exit $ac_status); } &&
9071 { ac_try='test -z "$ac_cxx_werror_flag"
9072 || test ! -s conftest.err'
9073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9074 (eval $ac_try) 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; } &&
9078 { ac_try='test -s conftest.$ac_objext'
9079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9080 (eval $ac_try) 2>&5
9081 ac_status=$?
9082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9083 (exit $ac_status); }; }; then
9084 ac_compiler_gnu=yes
9085 else
9086 echo "$as_me: failed program was:" >&5
9087 sed 's/^/| /' conftest.$ac_ext >&5
9089 ac_compiler_gnu=no
9091 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9092 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9095 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
9096 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
9097 GXX=`test $ac_compiler_gnu = yes && echo yes`
9098 ac_test_CXXFLAGS=${CXXFLAGS+set}
9099 ac_save_CXXFLAGS=$CXXFLAGS
9100 CXXFLAGS="-g"
9101 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
9102 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
9103 if test "${ac_cv_prog_cxx_g+set}" = set; then
9104 echo $ECHO_N "(cached) $ECHO_C" >&6
9105 else
9106 cat >conftest.$ac_ext <<_ACEOF
9107 /* confdefs.h. */
9108 _ACEOF
9109 cat confdefs.h >>conftest.$ac_ext
9110 cat >>conftest.$ac_ext <<_ACEOF
9111 /* end confdefs.h. */
9114 main ()
9118 return 0;
9120 _ACEOF
9121 rm -f conftest.$ac_objext
9122 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9123 (eval $ac_compile) 2>conftest.er1
9124 ac_status=$?
9125 grep -v '^ *+' conftest.er1 >conftest.err
9126 rm -f conftest.er1
9127 cat conftest.err >&5
9128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9129 (exit $ac_status); } &&
9130 { ac_try='test -z "$ac_cxx_werror_flag"
9131 || test ! -s conftest.err'
9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9133 (eval $ac_try) 2>&5
9134 ac_status=$?
9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9136 (exit $ac_status); }; } &&
9137 { ac_try='test -s conftest.$ac_objext'
9138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9139 (eval $ac_try) 2>&5
9140 ac_status=$?
9141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9142 (exit $ac_status); }; }; then
9143 ac_cv_prog_cxx_g=yes
9144 else
9145 echo "$as_me: failed program was:" >&5
9146 sed 's/^/| /' conftest.$ac_ext >&5
9148 ac_cv_prog_cxx_g=no
9150 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9152 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
9153 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
9154 if test "$ac_test_CXXFLAGS" = set; then
9155 CXXFLAGS=$ac_save_CXXFLAGS
9156 elif test $ac_cv_prog_cxx_g = yes; then
9157 if test "$GXX" = yes; then
9158 CXXFLAGS="-g -O2"
9159 else
9160 CXXFLAGS="-g"
9162 else
9163 if test "$GXX" = yes; then
9164 CXXFLAGS="-O2"
9165 else
9166 CXXFLAGS=
9169 for ac_declaration in \
9170 '' \
9171 'extern "C" void std::exit (int) throw (); using std::exit;' \
9172 'extern "C" void std::exit (int); using std::exit;' \
9173 'extern "C" void exit (int) throw ();' \
9174 'extern "C" void exit (int);' \
9175 'void exit (int);'
9177 cat >conftest.$ac_ext <<_ACEOF
9178 /* confdefs.h. */
9179 _ACEOF
9180 cat confdefs.h >>conftest.$ac_ext
9181 cat >>conftest.$ac_ext <<_ACEOF
9182 /* end confdefs.h. */
9183 $ac_declaration
9184 #include <stdlib.h>
9186 main ()
9188 exit (42);
9190 return 0;
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9195 (eval $ac_compile) 2>conftest.er1
9196 ac_status=$?
9197 grep -v '^ *+' conftest.er1 >conftest.err
9198 rm -f conftest.er1
9199 cat conftest.err >&5
9200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9201 (exit $ac_status); } &&
9202 { ac_try='test -z "$ac_cxx_werror_flag"
9203 || test ! -s conftest.err'
9204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9205 (eval $ac_try) 2>&5
9206 ac_status=$?
9207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9208 (exit $ac_status); }; } &&
9209 { ac_try='test -s conftest.$ac_objext'
9210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9211 (eval $ac_try) 2>&5
9212 ac_status=$?
9213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9214 (exit $ac_status); }; }; then
9216 else
9217 echo "$as_me: failed program was:" >&5
9218 sed 's/^/| /' conftest.$ac_ext >&5
9220 continue
9222 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9223 cat >conftest.$ac_ext <<_ACEOF
9224 /* confdefs.h. */
9225 _ACEOF
9226 cat confdefs.h >>conftest.$ac_ext
9227 cat >>conftest.$ac_ext <<_ACEOF
9228 /* end confdefs.h. */
9229 $ac_declaration
9231 main ()
9233 exit (42);
9235 return 0;
9237 _ACEOF
9238 rm -f conftest.$ac_objext
9239 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9240 (eval $ac_compile) 2>conftest.er1
9241 ac_status=$?
9242 grep -v '^ *+' conftest.er1 >conftest.err
9243 rm -f conftest.er1
9244 cat conftest.err >&5
9245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9246 (exit $ac_status); } &&
9247 { ac_try='test -z "$ac_cxx_werror_flag"
9248 || test ! -s conftest.err'
9249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9250 (eval $ac_try) 2>&5
9251 ac_status=$?
9252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253 (exit $ac_status); }; } &&
9254 { ac_try='test -s conftest.$ac_objext'
9255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9256 (eval $ac_try) 2>&5
9257 ac_status=$?
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); }; }; then
9260 break
9261 else
9262 echo "$as_me: failed program was:" >&5
9263 sed 's/^/| /' conftest.$ac_ext >&5
9266 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9267 done
9268 rm -f conftest*
9269 if test -n "$ac_declaration"; then
9270 echo '#ifdef __cplusplus' >>confdefs.h
9271 echo $ac_declaration >>confdefs.h
9272 echo '#endif' >>confdefs.h
9275 ac_ext=c
9276 ac_cpp='$CPP $CPPFLAGS'
9277 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9278 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9279 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9283 if test "$GXX" = "yes"; then
9284 echo "$as_me:$LINENO: checking the GNU C++ compiler version" >&5
9285 echo $ECHO_N "checking the GNU C++ compiler version... $ECHO_C" >&6
9287 _gpp_version=`$CXX -dumpversion`
9288 _gpp_majmin=`echo $_gpp_version | $AWK -F. '{ print \$1*100+\$2 }'`
9290 if test "$_os" = "Darwin" -a "$_gpp_majmin" -ge "401" ; then
9291 if test -z "$save_CXX" -a -x "$GCC_HOME/bin/g++-4.0" ; then
9292 CXX=$GCC_HOME/bin/g++-4.0
9293 _gpp_majmin_2=`"$CXX" -dumpversion | $AWK -F. '{ print \$1*100+\$2 }'`
9294 if test "$_gpp_majmin_2" -ge "400" -a "$_gpp_majmin_2" -lt "401" ; then
9295 _gpp_majmin=$_gpp_majmin_2
9298 if test "$_gpp_majmin" -ge "401" ; then
9299 { { echo "$as_me:$LINENO: error: You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" >&5
9300 echo "$as_me: error: You need to use the g++-4.0 compiler (g++ $_gpp_version won't work with the MacOSX10.4u.sdk) - set CXX accordingly" >&2;}
9301 { (exit 1); exit 1; }; }
9302 else
9303 echo "$as_me:$LINENO: result: implicitly using CXX=$CXX" >&5
9304 echo "${ECHO_T}implicitly using CXX=$CXX" >&6
9306 else
9307 echo "$as_me:$LINENO: result: checked (g++ $_gpp_version)" >&5
9308 echo "${ECHO_T}checked (g++ $_gpp_version)" >&6
9311 if test "$_gpp_majmin" = "304"; then
9312 echo "$as_me:$LINENO: checking whether $CXX has the enum bug" >&5
9313 echo $ECHO_N "checking whether $CXX has the enum bug... $ECHO_C" >&6
9314 if test "$cross_compiling" = yes; then
9315 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
9316 See \`config.log' for more details." >&5
9317 echo "$as_me: error: cannot run test program while cross compiling
9318 See \`config.log' for more details." >&2;}
9319 { (exit 1); exit 1; }; }
9320 else
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h. */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h. */
9328 extern "C" void abort (void);
9329 extern "C" void exit (int status);
9331 enum E { E0, E1, E2, E3, E4, E5 };
9333 void
9334 test (enum E e)
9336 if (e == E2 || e == E3 || e == E1)
9337 exit (1);
9341 main (void)
9343 test (E4);
9344 test (E5);
9345 test (E0);
9346 return 0;
9349 _ACEOF
9350 rm -f conftest$ac_exeext
9351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9352 (eval $ac_link) 2>&5
9353 ac_status=$?
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9357 (eval $ac_try) 2>&5
9358 ac_status=$?
9359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9360 (exit $ac_status); }; }; then
9361 { { echo "$as_me:$LINENO: error: your version of the GNU C++ compile has a bug which prevents OpenOffice.org from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." >&5
9362 echo "$as_me: error: your version of the GNU C++ compile has a bug which prevents OpenOffice.org from being compiled correctly - please check http://gcc.gnu.org/ml/gcc-patches/2004-07/msg00968.html for details." >&2;}
9363 { (exit 1); exit 1; }; }
9364 else
9365 echo "$as_me: program exited with status $ac_status" >&5
9366 echo "$as_me: failed program was:" >&5
9367 sed 's/^/| /' conftest.$ac_ext >&5
9369 ( exit $ac_status )
9370 echo "$as_me:$LINENO: result: no" >&5
9371 echo "${ECHO_T}no" >&6
9373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9378 # Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
9379 # often contains an i386 which is expanded as a macro. Solved in stlport.
9380 if test "$GXX" = "yes"; then
9381 echo "$as_me:$LINENO: checking for g++ include path" >&5
9382 echo $ECHO_N "checking for g++ include path... $ECHO_C" >&6
9383 if test -z "$with_gxx_include_path"; then
9384 with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
9385 if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
9386 with_gxx_include_path="/usr/include"
9388 if test "$WITH_MINGWIN" = "yes"; then
9389 with_gxx_include_path=`cygpath -d "$with_gxx_include_path"`
9390 with_gxx_include_path=`cygpath -u "$with_gxx_include_path"`
9392 if echo $with_gxx_include_path | grep -q linux; then
9393 # workaround for Mandriva - issue 100049
9394 with_gxx_include_path=`cd $with_gxx_include_path && pwd`
9398 if test -z "$with_gxx_include_path"; then
9399 with_gxx_include_path="NO_GXX_INCLUDE"
9400 echo "$as_me:$LINENO: result: no g++ includes" >&5
9401 echo "${ECHO_T}no g++ includes" >&6
9402 else
9403 echo "$as_me:$LINENO: result: $with_gxx_include_path" >&5
9404 echo "${ECHO_T}$with_gxx_include_path" >&6
9406 GXX_INCLUDE_PATH="$with_gxx_include_path"
9409 if test "$WITH_MINGWIN" = "yes"; then
9410 echo "$as_me:$LINENO: checking for mingwin runtime include path" >&5
9411 echo $ECHO_N "checking for mingwin runtime include path... $ECHO_C" >&6
9412 cat >conftest.$ac_ext <<_ACEOF
9413 #include <stddef.h>
9414 #include <bits/c++config.h>
9415 _ACEOF
9416 _mingw_lib_include_path=`$CXX -E -xc++ conftest.$ac_ext | $SED -n -e '/.*1*"\(.*\)\/stddef.h".*/s//\1/p' -e '/.*1*"\(.*\)\/bits\/c++config.h".*/s//\1/p' | sort -u | xargs echo`
9417 rm conftest.$ac_ext
9418 if test -n "$_mingw_lib_include_path"; then
9419 _temp=""
9420 for a in $_mingw_lib_include_path
9422 a=`cygpath -d "$a"`
9423 _temp="$_temp "`cygpath -u "$a"`
9424 done
9425 _mingw_lib_include_path=$_temp
9427 if test -z "$_mingw_lib_include_path"; then
9428 _mingw_lib_include_path="NO_LIB_INCLUDE"
9429 echo "$as_me:$LINENO: result: no mingwin runtime includes" >&5
9430 echo "${ECHO_T}no mingwin runtime includes" >&6
9431 else
9432 echo "$as_me:$LINENO: result: $_mingw_lib_include_path" >&5
9433 echo "${ECHO_T}$_mingw_lib_include_path" >&6
9435 MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
9437 echo "$as_me:$LINENO: checking for mingwin c++ backward include path" >&5
9438 echo $ECHO_N "checking for mingwin c++ backward include path... $ECHO_C" >&6
9439 cat >conftest.$ac_ext <<_ACEOF
9440 #include <hash_set>
9441 _ACEOF
9442 _mingw_backward_include_path=`$CXX -E -xc++ -Wno-deprecated conftest.$ac_ext 2>&5| $SED -n -e '/.*1*"\(.*\)\/hash_set".*/s//\1/p' | sort -u | xargs echo`
9443 rm conftest.$ac_ext
9444 if test -n "$_mingw_backward_include_path"; then
9445 _mingw_backward_include_path=`cygpath -d $_mingw_backward_include_path`
9446 _mingw_backward_include_path=`cygpath -u $_mingw_backward_include_path`
9447 echo "$as_me:$LINENO: result: $_mingw_backward_include_path" >&5
9448 echo "${ECHO_T}$_mingw_backward_include_path" >&6
9449 else
9450 _mingw_backward_include_path="NO_BACKWARD_INCLUDE"
9451 echo "$as_me:$LINENO: result: no mingwin c++ backward includes" >&5
9452 echo "${ECHO_T}no mingwin c++ backward includes" >&6
9454 MINGW_BACKWARD_INCLUDE_PATH="$_mingw_backward_include_path"
9456 mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
9457 MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
9458 echo "$as_me:$LINENO: checking whether to use dynamic libgcc" >&5
9459 echo $ECHO_N "checking whether to use dynamic libgcc... $ECHO_C" >&6
9460 if test -e "$MINGW_CLIB_DIR/libgcc_s.a"; then
9461 echo "$as_me:$LINENO: checking dynamic libgcc name" >&5
9462 echo $ECHO_N "checking dynamic libgcc name... $ECHO_C" >&6
9463 MINGW_GCCDLL_pattern=`nm $MINGW_CLIB_DIR/libgcc_s.a | sed -ne 's@.* _libgcc\(.*\)_dll_iname@libgcc\1.dll@p' | uniq | sed -e 's@_@?@g'`
9464 MINGW_GCCDLL=`cd $COMPATH/bin && ls $MINGW_GCCDLL_pattern 2>/dev/null`
9465 if test -n "$MINGW_GCCDLL"; then
9466 MINGW_SHARED_GCCLIB=YES
9467 echo "$as_me:$LINENO: result: use $MINGW_GCCDLL" >&5
9468 echo "${ECHO_T}use $MINGW_GCCDLL" >&6
9469 else
9470 echo "$as_me:$LINENO: result: no" >&5
9471 echo "${ECHO_T}no" >&6
9473 else
9474 echo "$as_me:$LINENO: result: no" >&5
9475 echo "${ECHO_T}no" >&6
9477 if test -e "$MINGW_CLIB_DIR/libgcc_eh.a"; then
9478 MINGW_GCCLIB_EH=YES
9480 echo "$as_me:$LINENO: checking whether to use dynamic libstdc++" >&5
9481 echo $ECHO_N "checking whether to use dynamic libstdc++... $ECHO_C" >&6
9482 if test -e "$MINGW_CLIB_DIR/libstdc++_s.a" ; then
9483 echo "$as_me:$LINENO: checking dynamic libstdc++ name" >&5
9484 echo $ECHO_N "checking dynamic libstdc++ name... $ECHO_C" >&6
9485 MINGW_GXXDLL_pattern=`nm $MINGW_CLIB_DIR/libstdc++_s.a | sed -ne 's@.* _libstdc__\(.*\)_dll_iname@libstdc++\1.dll@p' | uniq | sed -e 's@_@?@g'`
9486 MINGW_GXXDLL=`cd $COMPATH/bin && ls $MINGW_GXXDLL_pattern 2>/dev/null`
9487 if test -n "$MINGW_GXXDLL"; then
9488 MINGW_SHARED_GXXLIB=YES
9489 echo "$as_me:$LINENO: result: use $MINGW_GXXDLL" >&5
9490 echo "${ECHO_T}use $MINGW_GXXDLL" >&6
9491 else
9492 echo "$as_me:$LINENO: result: no" >&5
9493 echo "${ECHO_T}no" >&6
9495 else
9496 echo "$as_me:$LINENO: result: no" >&5
9497 echo "${ECHO_T}no" >&6
9499 MINGW_CLIB_DIR=`cygpath $MINGW_CLIB_DIR`
9508 if test "$_os" = "SunOS"; then
9509 if test "$CC" = "cc"; then
9510 echo "$as_me:$LINENO: checking SunStudio C++ Compiler" >&5
9511 echo $ECHO_N "checking SunStudio C++ Compiler... $ECHO_C" >&6
9512 if test "$CXX" != "CC"; then
9513 { echo "$as_me:$LINENO: WARNING: SunStudio C++ was not found" >&5
9514 echo "$as_me: WARNING: SunStudio C++ was not found" >&2;}
9515 echo "SunStudio C++ was not found" >> warn
9516 else
9517 echo "$as_me:$LINENO: result: checked" >&5
9518 echo "${ECHO_T}checked" >&6
9522 if test "$_os" = "OSF1"; then
9523 echo "$as_me:$LINENO: checking Compaq C++ compiler version" >&5
9524 echo $ECHO_N "checking Compaq C++ compiler version... $ECHO_C" >&6
9525 _compaqcxx_version=`$CXX -V 2>&1 | $AWK '{ print $3 }'`
9526 _compaqcxx_major=`echo $_compaqcxx_version | $AWK -F. '{ print $1 }'`
9527 if test "$_compaqcxx_major" != "V6"; then
9528 { echo "$as_me:$LINENO: WARNING: found version \"$_compaqc_version\", use version 6 of the Compaq C++ compiler" >&5
9529 echo "$as_me: WARNING: found version \"$_compaqc_version\", use version 6 of the Compaq C++ compiler" >&2;}
9530 echo "found version $_compaqc_version, use version 6 of the Compaq C++ compiler" >> warn
9531 else
9532 echo "$as_me:$LINENO: result: checked" >&5
9533 echo "${ECHO_T}checked" >&6
9537 echo "$as_me:$LINENO: checking exception type" >&5
9538 echo $ECHO_N "checking exception type... $ECHO_C" >&6
9539 ac_ext=cc
9540 ac_cpp='$CXXCPP $CPPFLAGS'
9541 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9542 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9543 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9545 if test "$WITH_MINGWIN" = "yes"; then
9547 cat >conftest.$ac_ext <<_ACEOF
9548 /* confdefs.h. */
9549 _ACEOF
9550 cat confdefs.h >>conftest.$ac_ext
9551 cat >>conftest.$ac_ext <<_ACEOF
9552 /* end confdefs.h. */
9553 #include <iostream>
9555 extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));
9559 main ()
9561 _Unwind_SjLj_RaiseException()
9563 return 0;
9565 _ACEOF
9566 rm -f conftest.$ac_objext conftest$ac_exeext
9567 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9568 (eval $ac_link) 2>conftest.er1
9569 ac_status=$?
9570 grep -v '^ *+' conftest.er1 >conftest.err
9571 rm -f conftest.er1
9572 cat conftest.err >&5
9573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9574 (exit $ac_status); } &&
9575 { ac_try='test -z "$ac_cxx_werror_flag"
9576 || test ! -s conftest.err'
9577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9578 (eval $ac_try) 2>&5
9579 ac_status=$?
9580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9581 (exit $ac_status); }; } &&
9582 { ac_try='test -s conftest$ac_exeext'
9583 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9584 (eval $ac_try) 2>&5
9585 ac_status=$?
9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9587 (exit $ac_status); }; }; then
9588 exceptions_type="sjlj"
9589 else
9590 echo "$as_me: failed program was:" >&5
9591 sed 's/^/| /' conftest.$ac_ext >&5
9593 exceptions_type="dwarf2"
9596 rm -f conftest.err conftest.$ac_objext \
9597 conftest$ac_exeext conftest.$ac_ext
9600 echo "$as_me:$LINENO: result: $exceptions_type" >&5
9601 echo "${ECHO_T}$exceptions_type" >&6
9602 ac_ext=c
9603 ac_cpp='$CPP $CPPFLAGS'
9604 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9605 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9606 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9608 EXCEPTIONS="$exceptions_type"
9611 if test "$_os" = "SunOS"; then
9612 _temp=`showrev -p | $AWK -F" " '{ print $2 }'`
9613 if test "$_os_release" = "7"; then
9614 echo "$as_me:$LINENO: checking for patch 106327-06 or greater" >&5
9615 echo $ECHO_N "checking for patch 106327-06 or greater... $ECHO_C" >&6
9616 _patch=`echo $_temp | $AWK '/106327-06/ { print "found" }'`
9617 _patch="false"
9618 for i in $_temp
9620 _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
9621 if test "$_patch_major" = "106327"; then
9622 _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
9623 if test "$_patch_rev" -ge "6"; then
9624 _patch="found"
9627 done
9628 if test "$_patch" = "found"; then
9629 echo "$as_me:$LINENO: result: found" >&5
9630 echo "${ECHO_T}found" >&6
9631 else
9632 { echo "$as_me:$LINENO: WARNING: patch 106327-06 not found, please install compiler patch 106327-06 or greater" >&5
9633 echo "$as_me: WARNING: patch 106327-06 not found, please install compiler patch 106327-06 or greater" >&2;}
9634 echo "patch 106327-06 not found, please install compiler patch 106327-06 or greater" >> warn
9636 echo "$as_me:$LINENO: checking for patch 106950-11 or greater" >&5
9637 echo $ECHO_N "checking for patch 106950-11 or greater... $ECHO_C" >&6
9638 _patch=`echo $_temp | $AWK '/106950-11/ { print "found" }'`
9639 _patch="false"
9640 for i in $_temp
9642 _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
9643 if test "$_patch_major" = "106950"; then
9644 _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
9645 if test "$_patch_rev" -ge "11"; then
9646 _patch="found"
9649 done
9650 if test "$_patch" = "found"; then
9651 echo "$as_me:$LINENO: result: found" >&5
9652 echo "${ECHO_T}found" >&6
9653 else
9654 { echo "$as_me:$LINENO: WARNING: patch 106950-11 not found, please install linker patch 106950-11 or greater" >&5
9655 echo "$as_me: WARNING: patch 106950-11 not found, please install linker patch 106950-11 or greater" >&2;}
9656 echo "patch 106950-11 not found, please install linker patch 106950-11 or greater" >> warn
9658 else
9659 if test "$_os_release" = "6"; then
9660 echo "$as_me:$LINENO: checking for patch 105591-09 or greater" >&5
9661 echo $ECHO_N "checking for patch 105591-09 or greater... $ECHO_C" >&6
9662 _patch=`echo $_temp | $AWK '/105591-09/ { print "found" }'`
9663 _patch="false"
9664 for i in $_temp
9666 _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
9667 if test "$_patch_major" = "105591"; then
9668 _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
9669 if test "$_patch_rev" -ge "9"; then
9670 _patch="found"
9673 done
9674 if test "$_patch" = "found"; then
9675 echo "$as_me:$LINENO: result: found" >&5
9676 echo "${ECHO_T}found" >&6
9677 else
9678 { echo "$as_me:$LINENO: WARNING: patch 105591-09 not found, please install compiler patch 105591-09 or greater" >&5
9679 echo "$as_me: WARNING: patch 105591-09 not found, please install compiler patch 105591-09 or greater" >&2;}
9680 echo "patch 105591-09 not found, please install compiler patch 105591-09 or greater" >> warn
9682 echo "$as_me:$LINENO: checking for patch 107733-08 or greater" >&5
9683 echo $ECHO_N "checking for patch 107733-08 or greater... $ECHO_C" >&6
9684 _patch=`echo $_temp | $AWK '/107733-08/ { print "found" }'`
9685 _patch="false"
9686 for i in $_temp
9688 _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
9689 if test "$_patch_major" = "107733"; then
9690 _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
9691 if test "$_patch_rev" -ge "8"; then
9692 _patch="found"
9695 done
9696 if test "$_patch" = "found"; then
9697 echo "$as_me:$LINENO: result: found" >&5
9698 echo "${ECHO_T}found" >&6
9699 else
9700 { echo "$as_me:$LINENO: WARNING: patch 107733-06 not found, please install linker patch 107733-08 or greater" >&5
9701 echo "$as_me: WARNING: patch 107733-06 not found, please install linker patch 107733-08 or greater" >&2;}
9702 echo "patch 107733-06 not found, please install linker patch 107733-08 or greater" >> warn
9708 echo "$as_me:$LINENO: checking what the default STL should be" >&5
9709 echo $ECHO_N "checking what the default STL should be... $ECHO_C" >&6
9710 DEFAULT_TO_STLPORT="no"
9711 if test "$_os" = "Linux"; then
9712 case "$build_cpu" in
9713 i?86)
9714 case "$build_os" in k*bsd*-gnu*)
9715 DEFAULT_TO_STLPORT="no"
9718 DEFAULT_TO_STLPORT="yes"
9720 esac
9723 DEFAULT_TO_STLPORT="no"
9725 esac
9726 elif test "$_os" = "SunOS"; then
9727 DEFAULT_TO_STLPORT="yes"
9728 elif test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
9729 DEFAULT_TO_STLPORT="yes"
9730 elif test "$_os" = "OS2"; then
9731 DEFAULT_TO_STLPORT="yes"
9732 elif test "$_os" = "FreeBSD"; then
9733 DEFAULT_TO_STLPORT="yes"
9735 if test "$DEFAULT_TO_STLPORT" = "yes"; then
9736 echo "$as_me:$LINENO: result: stlport" >&5
9737 echo "${ECHO_T}stlport" >&6
9738 else
9739 echo "$as_me:$LINENO: result: system" >&5
9740 echo "${ECHO_T}system" >&6
9742 if test "$WITH_STLPORT" = "auto"; then
9743 WITH_STLPORT=$DEFAULT_TO_STLPORT
9746 echo "$as_me:$LINENO: checking for STL providing headers" >&5
9747 echo $ECHO_N "checking for STL providing headers... $ECHO_C" >&6
9748 STLPORT4=""
9749 USE_SYSTEM_STL=""
9750 if test "$WITH_STLPORT" = "yes"; then
9751 echo "$as_me:$LINENO: result: using internal stlport." >&5
9752 echo "${ECHO_T}using internal stlport." >&6
9753 if test "$DEFAULT_TO_STLPORT" != "yes"; then
9754 { echo "$as_me:$LINENO: WARNING: using stlport. Warning, breaks your ABI compatability!" >&5
9755 echo "$as_me: WARNING: using stlport. Warning, breaks your ABI compatability!" >&2;}
9756 echo "using stlport. Warning, breaks your ABI compatability!" >>warn
9758 elif test "$WITH_STLPORT" = "no"; then
9759 echo "$as_me:$LINENO: result: using system STL" >&5
9760 echo "${ECHO_T}using system STL" >&6
9761 USE_SYSTEM_STL="YES"
9762 if test "$DEFAULT_TO_STLPORT" != "no"; then
9763 { echo "$as_me:$LINENO: WARNING: using system STL. Warning, breaks your ABI compatability!" >&5
9764 echo "$as_me: WARNING: using system STL. Warning, breaks your ABI compatability!" >&2;}
9765 echo "using system STL. Warning, breaks your ABI compatability!" >>warn
9767 else
9768 STLPORT4=$WITH_STLPORT
9769 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
9770 cat >conftest.$ac_ext <<_ACEOF
9771 /* confdefs.h. */
9772 _ACEOF
9773 cat confdefs.h >>conftest.$ac_ext
9774 cat >>conftest.$ac_ext <<_ACEOF
9775 /* end confdefs.h. */
9776 $STLPORT4/stlport/hash_map
9777 _ACEOF
9778 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9779 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9780 ac_status=$?
9781 grep -v '^ *+' conftest.er1 >conftest.err
9782 rm -f conftest.er1
9783 cat conftest.err >&5
9784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9785 (exit $ac_status); } >/dev/null; then
9786 if test -s conftest.err; then
9787 ac_cpp_err=$ac_c_preproc_warn_flag
9788 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9789 else
9790 ac_cpp_err=
9792 else
9793 ac_cpp_err=yes
9795 if test -z "$ac_cpp_err"; then
9796 echo "$as_me:$LINENO: result: checked." >&5
9797 echo "${ECHO_T}checked." >&6
9798 else
9799 echo "$as_me: failed program was:" >&5
9800 sed 's/^/| /' conftest.$ac_ext >&5
9802 { { echo "$as_me:$LINENO: error: STLport headers not found." >&5
9803 echo "$as_me: error: STLport headers not found." >&2;}
9804 { (exit 1); exit 1; }; }
9806 rm -f conftest.err conftest.$ac_ext
9807 else
9808 if test -f "$STLPORT4/stlport/hash_map"; then
9809 echo "$as_me:$LINENO: result: checked." >&5
9810 echo "${ECHO_T}checked." >&6
9811 else
9812 { { echo "$as_me:$LINENO: error: STLport headers not found." >&5
9813 echo "$as_me: error: STLport headers not found." >&2;}
9814 { (exit 1); exit 1; }; }
9817 if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
9818 echo "$as_me:$LINENO: checking for STLport libraries" >&5
9819 echo $ECHO_N "checking for STLport libraries... $ECHO_C" >&6
9820 if test "$_os" = "SunOS"; then
9821 if test -f "$STLPORT4/lib/libstlport_sunpro.so"; then
9822 echo "$as_me:$LINENO: result: checked" >&5
9823 echo "${ECHO_T}checked" >&6
9824 elif test -f "$STLPORT4/lib/libstlport.so"; then
9825 echo "$as_me:$LINENO: result: checked" >&5
9826 echo "${ECHO_T}checked" >&6
9827 STLPORT_VER=500
9828 else
9829 { { echo "$as_me:$LINENO: error: STLport libraries not found" >&5
9830 echo "$as_me: error: STLport libraries not found" >&2;}
9831 { (exit 1); exit 1; }; }
9833 elif test "$_os" = "Darwin"; then
9834 if test -f "$STLPORT4/lib/libstlport_gcc.dylib"; then
9835 echo "$as_me:$LINENO: result: checked" >&5
9836 echo "${ECHO_T}checked" >&6
9837 elif test -f "$STLPORT4/lib/libstlport.dylib"; then
9838 echo "$as_me:$LINENO: result: checked" >&5
9839 echo "${ECHO_T}checked" >&6
9840 STLPORT_VER=500
9841 else
9842 { { echo "$as_me:$LINENO: error: STLport libraries not found" >&5
9843 echo "$as_me: error: STLport libraries not found" >&2;}
9844 { (exit 1); exit 1; }; }
9846 else
9847 if test -f "$STLPORT4/lib/libstlport_gcc.so"; then
9848 echo "$as_me:$LINENO: result: checked" >&5
9849 echo "${ECHO_T}checked" >&6
9850 elif test -f "$STLPORT4/lib/libstlport.so"; then
9851 echo "$as_me:$LINENO: result: checked" >&5
9852 echo "${ECHO_T}checked" >&6
9853 STLPORT_VER=500
9854 else
9855 { { echo "$as_me:$LINENO: error: STLport libraries not found" >&5
9856 echo "$as_me: error: STLport libraries not found" >&2;}
9857 { (exit 1); exit 1; }; }
9861 if test "$DEFAULT_TO_STLPORT" != "yes"; then
9862 { echo "$as_me:$LINENO: WARNING: using stlport. Warning, breaks your ABI compatability!" >&5
9863 echo "$as_me: WARNING: using stlport. Warning, breaks your ABI compatability!" >&2;}
9864 echo "using stlport. Warning, breaks your ABI compatability!" >>warn
9868 if test -z "$STLPORT4"; then
9869 STLPORT4="NO_STLPORT4"
9871 if test -z "$STLPORT_VER"; then
9872 STLPORT_VER=400
9878 if test "$GCC" = "yes"; then
9879 echo "$as_me:$LINENO: checking whether $CC supports -fvisibility=hidden" >&5
9880 echo $ECHO_N "checking whether $CC supports -fvisibility=hidden... $ECHO_C" >&6
9881 save_CFLAGS=$CFLAGS
9882 CFLAGS="$CFLAGS -fvisibility=hidden"
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9891 main ()
9893 return 0;
9895 return 0;
9897 _ACEOF
9898 rm -f conftest.$ac_objext conftest$ac_exeext
9899 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9900 (eval $ac_link) 2>conftest.er1
9901 ac_status=$?
9902 grep -v '^ *+' conftest.er1 >conftest.err
9903 rm -f conftest.er1
9904 cat conftest.err >&5
9905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9906 (exit $ac_status); } &&
9907 { ac_try='test -z "$ac_c_werror_flag"
9908 || test ! -s conftest.err'
9909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9910 (eval $ac_try) 2>&5
9911 ac_status=$?
9912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9913 (exit $ac_status); }; } &&
9914 { ac_try='test -s conftest$ac_exeext'
9915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9916 (eval $ac_try) 2>&5
9917 ac_status=$?
9918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9919 (exit $ac_status); }; }; then
9920 HAVE_GCC_VISIBILITY_FEATURE=TRUE
9921 else
9922 echo "$as_me: failed program was:" >&5
9923 sed 's/^/| /' conftest.$ac_ext >&5
9926 rm -f conftest.err conftest.$ac_objext \
9927 conftest$ac_exeext conftest.$ac_ext
9928 CFLAGS=$save_CFLAGS
9929 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
9930 echo "$as_me:$LINENO: result: yes" >&5
9931 echo "${ECHO_T}yes" >&6
9932 else
9933 echo "$as_me:$LINENO: result: no" >&5
9934 echo "${ECHO_T}no" >&6
9938 # ===================================================================
9939 # use --ccache-skip?
9940 # ===================================================================
9941 echo "$as_me:$LINENO: checking whether we are allowed and able to use --ccache-skip" >&5
9942 echo $ECHO_N "checking whether we are allowed and able to use --ccache-skip... $ECHO_C" >&6
9943 if test "$_os" != "Darwin" ; then
9944 echo "$as_me:$LINENO: result: only used on Mac currently, skipping" >&5
9945 echo "${ECHO_T}only used on Mac currently, skipping" >&6
9946 elif test "$enable_ccache_skip" = "no" ; then
9947 echo "$as_me:$LINENO: result: no - diabled explicitly" >&5
9948 echo "${ECHO_T}no - diabled explicitly" >&6
9949 elif test "$enable_ccache_skip" = "yes" ; then
9950 echo "$as_me:$LINENO: result: yes - enabled explicitly, skipping checks" >&5
9951 echo "${ECHO_T}yes - enabled explicitly, skipping checks" >&6
9952 USE_CCACHE=YES
9954 elif test "$enable_ccache_skip" = "auto" ; then
9955 # checking for ccache presence/version
9956 echo "$as_me:$LINENO: result: probing..." >&5
9957 echo "${ECHO_T}probing..." >&6
9958 # Extract the first word of "ccache", so it can be a program name with args.
9959 set dummy ccache; ac_word=$2
9960 echo "$as_me:$LINENO: checking for $ac_word" >&5
9961 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9962 if test "${ac_cv_path_CCACHE+set}" = set; then
9963 echo $ECHO_N "(cached) $ECHO_C" >&6
9964 else
9965 case $CCACHE in
9966 [\\/]* | ?:[\\/]*)
9967 ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
9970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9971 for as_dir in $PATH
9973 IFS=$as_save_IFS
9974 test -z "$as_dir" && as_dir=.
9975 for ac_exec_ext in '' $ac_executable_extensions; do
9976 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9977 ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
9978 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9979 break 2
9981 done
9982 done
9984 test -z "$ac_cv_path_CCACHE" && ac_cv_path_CCACHE="not_found"
9986 esac
9988 CCACHE=$ac_cv_path_CCACHE
9990 if test -n "$CCACHE"; then
9991 echo "$as_me:$LINENO: result: $CCACHE" >&5
9992 echo "${ECHO_T}$CCACHE" >&6
9993 else
9994 echo "$as_me:$LINENO: result: no" >&5
9995 echo "${ECHO_T}no" >&6
9998 if test "$CCACHE" = "not_found" ; then
9999 { echo "$as_me:$LINENO: not enabling --ccache-skip (ccache not found)" >&5
10000 echo "$as_me: not enabling --ccache-skip (ccache not found)" >&6;}
10001 else
10002 # check ccache version
10003 echo "$as_me:$LINENO: checking whether version of ccache is suitable" >&5
10004 echo $ECHO_N "checking whether version of ccache is suitable... $ECHO_C" >&6
10005 CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
10006 if test "$CCACHE_VERSION" = "2.4_OOo"; then
10007 echo "$as_me:$LINENO: result: yes" >&5
10008 echo "${ECHO_T}yes" >&6
10009 echo "$as_me:$LINENO: checking whether ccache is actually used for the build" >&5
10010 echo $ECHO_N "checking whether ccache is actually used for the build... $ECHO_C" >&6
10011 ac_ext=cc
10012 ac_cpp='$CXXCPP $CPPFLAGS'
10013 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10014 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10015 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10017 save_CXXFLAGS=$CXXFLAGS
10018 CXXFLAGS="$CXXFLAGS --ccache-skip -O2"
10019 cat >conftest.$ac_ext <<_ACEOF
10020 /* confdefs.h. */
10021 _ACEOF
10022 cat confdefs.h >>conftest.$ac_ext
10023 cat >>conftest.$ac_ext <<_ACEOF
10024 /* end confdefs.h. */
10027 main ()
10031 return 0;
10033 _ACEOF
10034 rm -f conftest.$ac_objext
10035 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10036 (eval $ac_compile) 2>conftest.er1
10037 ac_status=$?
10038 grep -v '^ *+' conftest.er1 >conftest.err
10039 rm -f conftest.er1
10040 cat conftest.err >&5
10041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10042 (exit $ac_status); } &&
10043 { ac_try='test -z "$ac_cxx_werror_flag"
10044 || test ! -s conftest.err'
10045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10046 (eval $ac_try) 2>&5
10047 ac_status=$?
10048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10049 (exit $ac_status); }; } &&
10050 { ac_try='test -s conftest.$ac_objext'
10051 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10052 (eval $ac_try) 2>&5
10053 ac_status=$?
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); }; }; then
10056 use_ccache=yes
10057 else
10058 echo "$as_me: failed program was:" >&5
10059 sed 's/^/| /' conftest.$ac_ext >&5
10061 use_ccache=no
10063 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10064 if test $use_ccache = yes ; then
10065 echo "$as_me:$LINENO: result: yes, will enable --ccache-skip" >&5
10066 echo "${ECHO_T}yes, will enable --ccache-skip" >&6
10067 USE_CCACHE=YES
10069 else
10070 echo "$as_me:$LINENO: result: no, will not enable --ccache-skip" >&5
10071 echo "${ECHO_T}no, will not enable --ccache-skip" >&6
10073 CXXFLAGS=$save_CXXFLAGS
10074 ac_ext=c
10075 ac_cpp='$CPP $CPPFLAGS'
10076 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10077 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10078 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10080 else
10081 echo "$as_me:$LINENO: result: no" >&5
10082 echo "${ECHO_T}no" >&6
10083 { echo "$as_me:$LINENO: ccache version $CCACHE_VERSION not accepted. See description for --enable-ccache-skip" >&5
10084 echo "$as_me: ccache version $CCACHE_VERSION not accepted. See description for --enable-ccache-skip" >&6;}
10087 else
10088 { { echo "$as_me:$LINENO: error: invalid option to --enable-ccache-skip. Valid values are \"auto\", \"yes\" and \"no\"" >&5
10089 echo "$as_me: error: invalid option to --enable-ccache-skip. Valid values are \"auto\", \"yes\" and \"no\"" >&2;}
10090 { (exit 1); exit 1; }; }
10093 if test "$USE_SYSTEM_STL" = "YES"; then
10094 echo "$as_me:$LINENO: checking if hash_map will be in __gnu_cxx namespace" >&5
10095 echo $ECHO_N "checking if hash_map will be in __gnu_cxx namespace... $ECHO_C" >&6
10096 ac_ext=cc
10097 ac_cpp='$CXXCPP $CPPFLAGS'
10098 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10099 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10100 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10103 cat >conftest.$ac_ext <<_ACEOF
10104 /* confdefs.h. */
10105 _ACEOF
10106 cat confdefs.h >>conftest.$ac_ext
10107 cat >>conftest.$ac_ext <<_ACEOF
10108 /* end confdefs.h. */
10109 #include <ext/hash_map>
10110 using namespace __gnu_cxx;
10113 main ()
10115 hash_map<int, int> t; return 0;
10117 return 0;
10119 _ACEOF
10120 rm -f conftest.$ac_objext
10121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10122 (eval $ac_compile) 2>conftest.er1
10123 ac_status=$?
10124 grep -v '^ *+' conftest.er1 >conftest.err
10125 rm -f conftest.er1
10126 cat conftest.err >&5
10127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10128 (exit $ac_status); } &&
10129 { ac_try='test -z "$ac_cxx_werror_flag"
10130 || test ! -s conftest.err'
10131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10132 (eval $ac_try) 2>&5
10133 ac_status=$?
10134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10135 (exit $ac_status); }; } &&
10136 { ac_try='test -s conftest.$ac_objext'
10137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10138 (eval $ac_try) 2>&5
10139 ac_status=$?
10140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10141 (exit $ac_status); }; }; then
10142 ac_cv_cxx_have_ext_hash_map=yes
10143 else
10144 echo "$as_me: failed program was:" >&5
10145 sed 's/^/| /' conftest.$ac_ext >&5
10147 ac_cv_cxx_have_ext_hash_map=no
10149 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10151 if test "$ac_cv_cxx_have_ext_hash_map" = "no"; then
10152 { { echo "$as_me:$LINENO: error: Can't find hash_map. Try with --with-stlport" >&5
10153 echo "$as_me: error: Can't find hash_map. Try with --with-stlport" >&2;}
10154 { (exit 1); exit 1; }; }
10155 else
10156 echo "$as_me:$LINENO: result: $ac_cv_cxx_have_ext_hash_map" >&5
10157 echo "${ECHO_T}$ac_cv_cxx_have_ext_hash_map" >&6
10160 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
10161 echo "$as_me:$LINENO: checking if STL headers are visibility safe" >&5
10162 echo $ECHO_N "checking if STL headers are visibility safe... $ECHO_C" >&6
10164 cat >conftest.$ac_ext <<_ACEOF
10165 /* confdefs.h. */
10166 _ACEOF
10167 cat confdefs.h >>conftest.$ac_ext
10168 cat >>conftest.$ac_ext <<_ACEOF
10169 /* end confdefs.h. */
10170 #include <string>
10172 _ACEOF
10173 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10174 $EGREP "visibility push" >/dev/null 2>&1; then
10175 stlvisok=yes
10176 else
10177 stlvisok=no
10179 rm -f conftest*
10181 echo "$as_me:$LINENO: result: $stlvisok" >&5
10182 echo "${ECHO_T}$stlvisok" >&6
10183 if test "$stlvisok" = "no"; then
10184 { echo "$as_me:$LINENO: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&5
10185 echo "$as_me: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&2;}
10186 echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
10187 unset HAVE_GCC_VISIBILITY_FEATURE
10191 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
10192 sharedlink_ldflags_save=$LDFLAGS
10193 LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden -fpic -shared"
10195 echo "$as_me:$LINENO: checking if gcc is -fvisibility-inlines-hidden safe with STL headers" >&5
10196 echo $ECHO_N "checking if gcc is -fvisibility-inlines-hidden safe with STL headers... $ECHO_C" >&6
10197 cat >conftest.$ac_ext <<_ACEOF
10198 /* confdefs.h. */
10199 _ACEOF
10200 cat confdefs.h >>conftest.$ac_ext
10201 cat >>conftest.$ac_ext <<_ACEOF
10202 /* end confdefs.h. */
10203 #include <sstream>
10204 using namespace std;
10207 main ()
10209 istringstream strm( "test" ); return 0;
10211 return 0;
10213 _ACEOF
10214 rm -f conftest.$ac_objext conftest$ac_exeext
10215 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10216 (eval $ac_link) 2>conftest.er1
10217 ac_status=$?
10218 grep -v '^ *+' conftest.er1 >conftest.err
10219 rm -f conftest.er1
10220 cat conftest.err >&5
10221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10222 (exit $ac_status); } &&
10223 { ac_try='test -z "$ac_cxx_werror_flag"
10224 || test ! -s conftest.err'
10225 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10226 (eval $ac_try) 2>&5
10227 ac_status=$?
10228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10229 (exit $ac_status); }; } &&
10230 { ac_try='test -s conftest$ac_exeext'
10231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10232 (eval $ac_try) 2>&5
10233 ac_status=$?
10234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10235 (exit $ac_status); }; }; then
10236 $EGREP -q unresolvable conftest.err;
10237 if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi
10238 else
10239 echo "$as_me: failed program was:" >&5
10240 sed 's/^/| /' conftest.$ac_ext >&5
10242 gccvisok=no
10244 rm -f conftest.err conftest.$ac_objext \
10245 conftest$ac_exeext conftest.$ac_ext
10246 echo "$as_me:$LINENO: result: $gccvisok" >&5
10247 echo "${ECHO_T}$gccvisok" >&6
10248 if test "$gccvisok" = "no"; then
10249 { echo "$as_me:$LINENO: WARNING: Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >&5
10250 echo "$as_me: WARNING: Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >&2;}
10251 echo "Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >> warn
10252 unset HAVE_GCC_VISIBILITY_FEATURE
10255 LDFLAGS=$sharedlink_ldflags_save
10258 if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
10259 echo "$as_me:$LINENO: checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)" >&5
10260 echo $ECHO_N "checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)... $ECHO_C" >&6
10261 cat >visibility.cxx <<_ACEOF
10262 #pragma GCC visibility push(hidden)
10263 struct __attribute__ ((visibility ("default"))) TestStruct {
10264 static void Init();
10266 __attribute__ ((visibility ("default"))) void TestFunc() {
10267 TestStruct::Init();
10269 _ACEOF
10270 if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx 2>/dev/null > /dev/null; then
10271 gccvisbroken=yes
10272 else
10273 case "$build_cpu" in
10274 i?86|x86_64)
10275 if $EGREP -q '@PLT' visibility.s; then
10276 gccvisbroken=no
10277 else
10278 gccvisbroken=yes
10282 gccvisbroken=no
10284 esac
10286 rm -f visibility.s
10288 echo "$as_me:$LINENO: result: $gccvisbroken" >&5
10289 echo "${ECHO_T}$gccvisbroken" >&6
10290 if test "$gccvisbroken" = "yes"; then
10291 { echo "$as_me:$LINENO: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&5
10292 echo "$as_me: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&2;}
10293 echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
10294 unset HAVE_GCC_VISIBILITY_FEATURE
10298 ac_ext=c
10299 ac_cpp='$CPP $CPPFLAGS'
10300 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10301 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10302 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10308 echo "$as_me:$LINENO: checking which memory allocator to use" >&5
10309 echo $ECHO_N "checking which memory allocator to use... $ECHO_C" >&6
10310 if test "$with_alloc" = "system"; then
10311 echo "$as_me:$LINENO: result: system" >&5
10312 echo "${ECHO_T}system" >&6
10313 ALLOC="SYS_ALLOC";
10318 for ac_func in malloc realloc calloc free
10320 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10321 echo "$as_me:$LINENO: checking for $ac_func" >&5
10322 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10323 if eval "test \"\${$as_ac_var+set}\" = set"; then
10324 echo $ECHO_N "(cached) $ECHO_C" >&6
10325 else
10326 cat >conftest.$ac_ext <<_ACEOF
10327 /* confdefs.h. */
10328 _ACEOF
10329 cat confdefs.h >>conftest.$ac_ext
10330 cat >>conftest.$ac_ext <<_ACEOF
10331 /* end confdefs.h. */
10332 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10333 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10334 #define $ac_func innocuous_$ac_func
10336 /* System header to define __stub macros and hopefully few prototypes,
10337 which can conflict with char $ac_func (); below.
10338 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10339 <limits.h> exists even on freestanding compilers. */
10341 #ifdef __STDC__
10342 # include <limits.h>
10343 #else
10344 # include <assert.h>
10345 #endif
10347 #undef $ac_func
10349 /* Override any gcc2 internal prototype to avoid an error. */
10350 #ifdef __cplusplus
10351 extern "C"
10353 #endif
10354 /* We use char because int might match the return type of a gcc2
10355 builtin and then its argument prototype would still apply. */
10356 char $ac_func ();
10357 /* The GNU C library defines this for functions which it implements
10358 to always fail with ENOSYS. Some functions are actually named
10359 something starting with __ and the normal name is an alias. */
10360 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10361 choke me
10362 #else
10363 char (*f) () = $ac_func;
10364 #endif
10365 #ifdef __cplusplus
10367 #endif
10370 main ()
10372 return f != $ac_func;
10374 return 0;
10376 _ACEOF
10377 rm -f conftest.$ac_objext conftest$ac_exeext
10378 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10379 (eval $ac_link) 2>conftest.er1
10380 ac_status=$?
10381 grep -v '^ *+' conftest.er1 >conftest.err
10382 rm -f conftest.er1
10383 cat conftest.err >&5
10384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10385 (exit $ac_status); } &&
10386 { ac_try='test -z "$ac_c_werror_flag"
10387 || test ! -s conftest.err'
10388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10389 (eval $ac_try) 2>&5
10390 ac_status=$?
10391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10392 (exit $ac_status); }; } &&
10393 { ac_try='test -s conftest$ac_exeext'
10394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10395 (eval $ac_try) 2>&5
10396 ac_status=$?
10397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10398 (exit $ac_status); }; }; then
10399 eval "$as_ac_var=yes"
10400 else
10401 echo "$as_me: failed program was:" >&5
10402 sed 's/^/| /' conftest.$ac_ext >&5
10404 eval "$as_ac_var=no"
10406 rm -f conftest.err conftest.$ac_objext \
10407 conftest$ac_exeext conftest.$ac_ext
10409 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10410 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10411 if test `eval echo '${'$as_ac_var'}'` = yes; then
10412 cat >>confdefs.h <<_ACEOF
10413 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10414 _ACEOF
10417 done
10420 if test "$with_alloc" = "tcmalloc"; then
10421 echo "$as_me:$LINENO: result: tcmalloc" >&5
10422 echo "${ECHO_T}tcmalloc" >&6
10423 if ! echo $build_cpu | grep -E 'i[3456]86' 2>/dev/null >/dev/null; then
10424 { { echo "$as_me:$LINENO: error: tcmalloc only available/usable on ix86" >&5
10425 echo "$as_me: error: tcmalloc only available/usable on ix86" >&2;}
10426 { (exit 1); exit 1; }; }
10429 echo "$as_me:$LINENO: checking for malloc in -ltcmalloc" >&5
10430 echo $ECHO_N "checking for malloc in -ltcmalloc... $ECHO_C" >&6
10431 if test "${ac_cv_lib_tcmalloc_malloc+set}" = set; then
10432 echo $ECHO_N "(cached) $ECHO_C" >&6
10433 else
10434 ac_check_lib_save_LIBS=$LIBS
10435 LIBS="-ltcmalloc $LIBS"
10436 cat >conftest.$ac_ext <<_ACEOF
10437 /* confdefs.h. */
10438 _ACEOF
10439 cat confdefs.h >>conftest.$ac_ext
10440 cat >>conftest.$ac_ext <<_ACEOF
10441 /* end confdefs.h. */
10443 /* Override any gcc2 internal prototype to avoid an error. */
10444 #ifdef __cplusplus
10445 extern "C"
10446 #endif
10447 /* We use char because int might match the return type of a gcc2
10448 builtin and then its argument prototype would still apply. */
10449 char malloc ();
10451 main ()
10453 malloc ();
10455 return 0;
10457 _ACEOF
10458 rm -f conftest.$ac_objext conftest$ac_exeext
10459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10460 (eval $ac_link) 2>conftest.er1
10461 ac_status=$?
10462 grep -v '^ *+' conftest.er1 >conftest.err
10463 rm -f conftest.er1
10464 cat conftest.err >&5
10465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10466 (exit $ac_status); } &&
10467 { ac_try='test -z "$ac_c_werror_flag"
10468 || test ! -s conftest.err'
10469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10470 (eval $ac_try) 2>&5
10471 ac_status=$?
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); }; } &&
10474 { ac_try='test -s conftest$ac_exeext'
10475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10476 (eval $ac_try) 2>&5
10477 ac_status=$?
10478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10479 (exit $ac_status); }; }; then
10480 ac_cv_lib_tcmalloc_malloc=yes
10481 else
10482 echo "$as_me: failed program was:" >&5
10483 sed 's/^/| /' conftest.$ac_ext >&5
10485 ac_cv_lib_tcmalloc_malloc=no
10487 rm -f conftest.err conftest.$ac_objext \
10488 conftest$ac_exeext conftest.$ac_ext
10489 LIBS=$ac_check_lib_save_LIBS
10491 echo "$as_me:$LINENO: result: $ac_cv_lib_tcmalloc_malloc" >&5
10492 echo "${ECHO_T}$ac_cv_lib_tcmalloc_malloc" >&6
10493 if test $ac_cv_lib_tcmalloc_malloc = yes; then
10494 cat >>confdefs.h <<_ACEOF
10495 #define HAVE_LIBTCMALLOC 1
10496 _ACEOF
10498 LIBS="-ltcmalloc $LIBS"
10500 else
10501 { { echo "$as_me:$LINENO: error: tcmalloc not found or functional. Install the Google Profiling Tools" >&5
10502 echo "$as_me: error: tcmalloc not found or functional. Install the Google Profiling Tools" >&2;}
10503 { (exit 1); exit 1; }; }
10506 ALLOC="TCMALLOC";
10508 if test "$with_alloc" = "jemalloc"; then
10509 if test "$_os" != "FreeBSD" -o "$_os" != "NetBSD"; then
10510 echo "$as_me:$LINENO: result: jemalloc" >&5
10511 echo "${ECHO_T}jemalloc" >&6
10512 save_CFLAGS=$CFLAGS
10513 CFLAGS="$CFLAGS -pthread"
10515 echo "$as_me:$LINENO: checking for malloc in -ljemalloc" >&5
10516 echo $ECHO_N "checking for malloc in -ljemalloc... $ECHO_C" >&6
10517 if test "${ac_cv_lib_jemalloc_malloc+set}" = set; then
10518 echo $ECHO_N "(cached) $ECHO_C" >&6
10519 else
10520 ac_check_lib_save_LIBS=$LIBS
10521 LIBS="-ljemalloc $LIBS"
10522 cat >conftest.$ac_ext <<_ACEOF
10523 /* confdefs.h. */
10524 _ACEOF
10525 cat confdefs.h >>conftest.$ac_ext
10526 cat >>conftest.$ac_ext <<_ACEOF
10527 /* end confdefs.h. */
10529 /* Override any gcc2 internal prototype to avoid an error. */
10530 #ifdef __cplusplus
10531 extern "C"
10532 #endif
10533 /* We use char because int might match the return type of a gcc2
10534 builtin and then its argument prototype would still apply. */
10535 char malloc ();
10537 main ()
10539 malloc ();
10541 return 0;
10543 _ACEOF
10544 rm -f conftest.$ac_objext conftest$ac_exeext
10545 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10546 (eval $ac_link) 2>conftest.er1
10547 ac_status=$?
10548 grep -v '^ *+' conftest.er1 >conftest.err
10549 rm -f conftest.er1
10550 cat conftest.err >&5
10551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10552 (exit $ac_status); } &&
10553 { ac_try='test -z "$ac_c_werror_flag"
10554 || test ! -s conftest.err'
10555 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10556 (eval $ac_try) 2>&5
10557 ac_status=$?
10558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10559 (exit $ac_status); }; } &&
10560 { ac_try='test -s conftest$ac_exeext'
10561 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10562 (eval $ac_try) 2>&5
10563 ac_status=$?
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); }; }; then
10566 ac_cv_lib_jemalloc_malloc=yes
10567 else
10568 echo "$as_me: failed program was:" >&5
10569 sed 's/^/| /' conftest.$ac_ext >&5
10571 ac_cv_lib_jemalloc_malloc=no
10573 rm -f conftest.err conftest.$ac_objext \
10574 conftest$ac_exeext conftest.$ac_ext
10575 LIBS=$ac_check_lib_save_LIBS
10577 echo "$as_me:$LINENO: result: $ac_cv_lib_jemalloc_malloc" >&5
10578 echo "${ECHO_T}$ac_cv_lib_jemalloc_malloc" >&6
10579 if test $ac_cv_lib_jemalloc_malloc = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define HAVE_LIBJEMALLOC 1
10582 _ACEOF
10584 LIBS="-ljemalloc $LIBS"
10586 else
10587 { { echo "$as_me:$LINENO: error: jemalloc not found or functional. Install the jemalloc allocator." >&5
10588 echo "$as_me: error: jemalloc not found or functional. Install the jemalloc allocator." >&2;}
10589 { (exit 1); exit 1; }; }
10592 ALLOC="JEMALLOC";
10593 CFLAGS=$save_CFLAGS
10594 else
10595 echo "$as_me:$LINENO: result: system" >&5
10596 echo "${ECHO_T}system" >&6
10597 ALLOC="SYS_ALLOC";
10602 for ac_func in malloc realloc calloc free
10604 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10605 echo "$as_me:$LINENO: checking for $ac_func" >&5
10606 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
10607 if eval "test \"\${$as_ac_var+set}\" = set"; then
10608 echo $ECHO_N "(cached) $ECHO_C" >&6
10609 else
10610 cat >conftest.$ac_ext <<_ACEOF
10611 /* confdefs.h. */
10612 _ACEOF
10613 cat confdefs.h >>conftest.$ac_ext
10614 cat >>conftest.$ac_ext <<_ACEOF
10615 /* end confdefs.h. */
10616 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10617 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10618 #define $ac_func innocuous_$ac_func
10620 /* System header to define __stub macros and hopefully few prototypes,
10621 which can conflict with char $ac_func (); below.
10622 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10623 <limits.h> exists even on freestanding compilers. */
10625 #ifdef __STDC__
10626 # include <limits.h>
10627 #else
10628 # include <assert.h>
10629 #endif
10631 #undef $ac_func
10633 /* Override any gcc2 internal prototype to avoid an error. */
10634 #ifdef __cplusplus
10635 extern "C"
10637 #endif
10638 /* We use char because int might match the return type of a gcc2
10639 builtin and then its argument prototype would still apply. */
10640 char $ac_func ();
10641 /* The GNU C library defines this for functions which it implements
10642 to always fail with ENOSYS. Some functions are actually named
10643 something starting with __ and the normal name is an alias. */
10644 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
10645 choke me
10646 #else
10647 char (*f) () = $ac_func;
10648 #endif
10649 #ifdef __cplusplus
10651 #endif
10654 main ()
10656 return f != $ac_func;
10658 return 0;
10660 _ACEOF
10661 rm -f conftest.$ac_objext conftest$ac_exeext
10662 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10663 (eval $ac_link) 2>conftest.er1
10664 ac_status=$?
10665 grep -v '^ *+' conftest.er1 >conftest.err
10666 rm -f conftest.er1
10667 cat conftest.err >&5
10668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10669 (exit $ac_status); } &&
10670 { ac_try='test -z "$ac_c_werror_flag"
10671 || test ! -s conftest.err'
10672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10673 (eval $ac_try) 2>&5
10674 ac_status=$?
10675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10676 (exit $ac_status); }; } &&
10677 { ac_try='test -s conftest$ac_exeext'
10678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10679 (eval $ac_try) 2>&5
10680 ac_status=$?
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); }; }; then
10683 eval "$as_ac_var=yes"
10684 else
10685 echo "$as_me: failed program was:" >&5
10686 sed 's/^/| /' conftest.$ac_ext >&5
10688 eval "$as_ac_var=no"
10690 rm -f conftest.err conftest.$ac_objext \
10691 conftest$ac_exeext conftest.$ac_ext
10693 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
10694 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
10695 if test `eval echo '${'$as_ac_var'}'` = yes; then
10696 cat >>confdefs.h <<_ACEOF
10697 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10698 _ACEOF
10701 done
10705 if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
10706 echo "$as_me:$LINENO: result: internal" >&5
10707 echo "${ECHO_T}internal" >&6
10712 echo "$as_me:$LINENO: checking whether to add custom build version" >&5
10713 echo $ECHO_N "checking whether to add custom build version... $ECHO_C" >&6
10714 if test "z$with_build_version" != "z"; then
10715 BUILD_VER_STRING=$with_build_version
10716 echo "$as_me:$LINENO: result: yes, $BUILD_VER_STRING" >&5
10717 echo "${ECHO_T}yes, $BUILD_VER_STRING" >&6
10718 else
10719 BUILD_VER_STRING=
10720 echo "$as_me:$LINENO: result: no" >&5
10721 echo "${ECHO_T}no" >&6
10725 echo "$as_me:$LINENO: checking whether to build with Java support" >&5
10726 echo $ECHO_N "checking whether to build with Java support... $ECHO_C" >&6
10727 if test "$WITH_JAVA" != "no"; then
10728 echo "$as_me:$LINENO: result: yes" >&5
10729 echo "${ECHO_T}yes" >&6
10730 SOLAR_JAVA="TRUE"
10731 else
10732 echo "$as_me:$LINENO: result: no" >&5
10733 echo "${ECHO_T}no" >&6
10734 SOLAR_JAVA=""
10736 { echo "$as_me:$LINENO: WARNING: building without java will mean some features will not be available" >&5
10737 echo "$as_me: WARNING: building without java will mean some features will not be available" >&2;}
10738 echo "building without java will mean some features will not be available" >>warn
10742 if test "$_os" = "Linux" && test "$build_cpu" = "powerpc"; then
10743 # IBMs JDK needs this...
10744 JITC_PROCESSOR_TYPE=6
10745 export JITC_PROCESSOR_TYPE
10748 if test "$_os" = "WINNT"; then
10749 if test -z "$with_jdk_home"; then
10750 _jdk_home=`./oowintool --jdk-home`
10751 if test -d "$_jdk_home"; then
10752 with_jdk_home="$_jdk_home"
10754 else
10755 with_jdk_home=`cygpath -u "$with_jdk_home"`
10759 if test "$SOLAR_JAVA" != ""; then
10760 JAVA_HOME=; export JAVA_HOME
10761 if test -z "$with_jdk_home"; then
10762 # Extract the first word of "$WITH_JAVA", so it can be a program name with args.
10763 set dummy $WITH_JAVA; ac_word=$2
10764 echo "$as_me:$LINENO: checking for $ac_word" >&5
10765 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10766 if test "${ac_cv_path_JAVAINTERPRETER+set}" = set; then
10767 echo $ECHO_N "(cached) $ECHO_C" >&6
10768 else
10769 case $JAVAINTERPRETER in
10770 [\\/]* | ?:[\\/]*)
10771 ac_cv_path_JAVAINTERPRETER="$JAVAINTERPRETER" # Let the user override the test with a path.
10774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10775 for as_dir in $PATH
10777 IFS=$as_save_IFS
10778 test -z "$as_dir" && as_dir=.
10779 for ac_exec_ext in '' $ac_executable_extensions; do
10780 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10781 ac_cv_path_JAVAINTERPRETER="$as_dir/$ac_word$ac_exec_ext"
10782 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10783 break 2
10785 done
10786 done
10789 esac
10791 JAVAINTERPRETER=$ac_cv_path_JAVAINTERPRETER
10793 if test -n "$JAVAINTERPRETER"; then
10794 echo "$as_me:$LINENO: result: $JAVAINTERPRETER" >&5
10795 echo "${ECHO_T}$JAVAINTERPRETER" >&6
10796 else
10797 echo "$as_me:$LINENO: result: no" >&5
10798 echo "${ECHO_T}no" >&6
10801 else
10802 _java_path="$with_jdk_home/bin/$WITH_JAVA"
10803 if test -x "$_java_path"; then
10804 JAVAINTERPRETER=$_java_path
10805 else
10806 { { echo "$as_me:$LINENO: error: $_java_path not found set with_jdk_home" >&5
10807 echo "$as_me: error: $_java_path not found set with_jdk_home" >&2;}
10808 { (exit 1); exit 1; }; }
10811 if test "$_os" = "WINNT"; then
10812 if test x`echo "$JAVAINTERPRETER" | grep -i '\.exe$'` = x; then
10813 JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
10815 JAVAINTERPRETER=`cygpath -d "$JAVAINTERPRETER"`
10816 JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
10817 elif test "$_os" = "Darwin"; then
10818 echo "$as_me:$LINENO: checking whether to pass -d32 to Java interpreter" >&5
10819 echo $ECHO_N "checking whether to pass -d32 to Java interpreter... $ECHO_C" >&6
10820 if "$JAVAINTERPRETER" -d32 >&5 2>&5; then
10821 echo "$as_me:$LINENO: result: yes" >&5
10822 echo "${ECHO_T}yes" >&6
10823 JAVAIFLAGS=-d32
10824 else
10825 echo "$as_me:$LINENO: result: no" >&5
10826 echo "${ECHO_T}no" >&6
10831 if test "$SOLAR_JAVA" != ""; then
10832 _gij_longver=0
10833 echo "$as_me:$LINENO: checking the installed JDK" >&5
10834 echo $ECHO_N "checking the installed JDK... $ECHO_C" >&6
10835 if test -n "$JAVAINTERPRETER"; then
10836 if test `$JAVAINTERPRETER -version 2>&1 | grep -c "Kaffe"` -gt 0; then
10837 { { echo "$as_me:$LINENO: error: No valid check available. Please check the block for your desired java in configure.in" >&5
10838 echo "$as_me: error: No valid check available. Please check the block for your desired java in configure.in" >&2;}
10839 { (exit 1); exit 1; }; }
10840 # dnl Kaffe specific tests
10841 # KAFFE_VER=`$JAVAINTERPRETER -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"`
10842 # if test -z "$KAFFE_VER"; then
10843 # AC_MSG_ERROR([looks like Kaffe but version detection failed])
10844 # fi
10845 # _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
10846 # if test "$_kaffe_ver" -lt 10100; then
10847 # AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0])
10848 # fi
10849 # JDK=kaffe
10851 # dnl TODO: define some project exclusion variables
10853 # AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)])
10854 # AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile])
10855 # echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
10856 # JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
10857 elif test `$JAVAINTERPRETER --version 2>&1 | grep -c "GNU libgcj"` -gt 0; then
10858 JDK=gcj
10859 echo "$as_me:$LINENO: result: checked (gcj)" >&5
10860 echo "${ECHO_T}checked (gcj)" >&6
10861 _gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
10862 _gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
10864 elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "BEA"` -gt 0; then
10865 { { echo "$as_me:$LINENO: error: No valid check available. Please check the block for your desired java in configure.in" >&5
10866 echo "$as_me: error: No valid check available. Please check the block for your desired java in configure.in" >&2;}
10867 { (exit 1); exit 1; }; }
10868 # JDK=bea
10870 # dnl BEA JDK specific tests
10871 # _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
10872 # _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
10874 # if test "$_jdk_ver" -lt 10500; then
10875 # AC_MSG_ERROR([JDK is too old, you need at least BEA JDK 1.5.0])
10876 # fi
10878 # AC_MSG_RESULT([checked (BEA JDK $_jdk)])
10880 # if test "$with_jdk_home" = ""; then
10881 # AC_MSG_ERROR([In order to successfully build OpenOffice.org using the BEA JDK,
10882 #you must use the "--with-jdk-home" configure option explicitly])
10883 # fi
10885 # AC_MSG_WARN([A bug in certain BEA JREs can prevent you from successfully compiling some modules])
10886 # echo "A bug in certain BEA JREs can prevent you from successfully compiling some modules" >>warn
10888 # JAVA_HOME=$with_jdk_home
10890 elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "IBM"` -gt 0; then
10891 JDK=ibm
10893 _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
10894 _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
10896 if test "$_jdk_ver" -lt 10500; then
10897 { { echo "$as_me:$LINENO: error: IBM JDK is too old, you need at least 1.5" >&5
10898 echo "$as_me: error: IBM JDK is too old, you need at least 1.5" >&2;}
10899 { (exit 1); exit 1; }; }
10902 echo "$as_me:$LINENO: result: checked (IBM JDK $_jdk)" >&5
10903 echo "${ECHO_T}checked (IBM JDK $_jdk)" >&6
10905 if test "$with_jdk_home" = ""; then
10906 { { echo "$as_me:$LINENO: error: In order to successfully build OpenOffice.org using the IBM JDK,
10907 you must use the \"--with-jdk-home\" configure option explicitly" >&5
10908 echo "$as_me: error: In order to successfully build OpenOffice.org using the IBM JDK,
10909 you must use the \"--with-jdk-home\" configure option explicitly" >&2;}
10910 { (exit 1); exit 1; }; }
10913 JAVA_HOME=$with_jdk_home
10915 else
10916 JDK=sun
10918 _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
10919 _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
10921 if test "$_jdk_ver" -lt 10500; then
10922 { { echo "$as_me:$LINENO: error: JDK is too old, you need at least 1.5" >&5
10923 echo "$as_me: error: JDK is too old, you need at least 1.5" >&2;}
10924 { (exit 1); exit 1; }; }
10926 echo "$as_me:$LINENO: result: checked (JDK $_jdk)" >&5
10927 echo "${ECHO_T}checked (JDK $_jdk)" >&6
10928 JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
10929 if test "$_os" = "WINNT"; then
10930 JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
10932 if test "$_os" = "OS2"; then
10933 JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
10936 else
10937 { { echo "$as_me:$LINENO: error: JAVA not found. You need at least jdk-1.5, or gcj-4" >&5
10938 echo "$as_me: error: JAVA not found. You need at least jdk-1.5, or gcj-4" >&2;}
10939 { (exit 1); exit 1; }; }
10941 else
10942 JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
10945 if test "$SOLAR_JAVA" != ""; then
10946 if test "$JDK" = "gcj"; then
10947 javacompiler=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
10948 else
10949 javacompiler="javac"
10951 if test "$_os" = "OS2"; then
10952 if test x`echo "$javacompiler" | grep -i '\.exe$'` = x; then
10953 javacompiler="${javacompiler}.exe"
10956 if test -z "$with_jdk_home"; then
10957 # Extract the first word of "$javacompiler", so it can be a program name with args.
10958 set dummy $javacompiler; ac_word=$2
10959 echo "$as_me:$LINENO: checking for $ac_word" >&5
10960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10961 if test "${ac_cv_path_JAVACOMPILER+set}" = set; then
10962 echo $ECHO_N "(cached) $ECHO_C" >&6
10963 else
10964 case $JAVACOMPILER in
10965 [\\/]* | ?:[\\/]*)
10966 ac_cv_path_JAVACOMPILER="$JAVACOMPILER" # Let the user override the test with a path.
10969 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10970 for as_dir in $PATH
10972 IFS=$as_save_IFS
10973 test -z "$as_dir" && as_dir=.
10974 for ac_exec_ext in '' $ac_executable_extensions; do
10975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10976 ac_cv_path_JAVACOMPILER="$as_dir/$ac_word$ac_exec_ext"
10977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10978 break 2
10980 done
10981 done
10984 esac
10986 JAVACOMPILER=$ac_cv_path_JAVACOMPILER
10988 if test -n "$JAVACOMPILER"; then
10989 echo "$as_me:$LINENO: result: $JAVACOMPILER" >&5
10990 echo "${ECHO_T}$JAVACOMPILER" >&6
10991 else
10992 echo "$as_me:$LINENO: result: no" >&5
10993 echo "${ECHO_T}no" >&6
10996 else
10997 _javac_path="$with_jdk_home/bin/$javacompiler"
10998 if test -x "$_javac_path"; then
10999 JAVACOMPILER=$_javac_path
11002 if test -z "$JAVACOMPILER"; then
11003 { { echo "$as_me:$LINENO: error: $javacompiler not found set with_jdk_home" >&5
11004 echo "$as_me: error: $javacompiler not found set with_jdk_home" >&2;}
11005 { (exit 1); exit 1; }; }
11007 if test "$_os" = "WINNT"; then
11008 if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
11009 JAVACOMPILER="${JAVACOMPILER}.exe"
11011 JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
11012 JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
11014 if test "$_os" = "OS2"; then
11015 if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
11016 JAVACOMPILER="${JAVACOMPILER}.exe"
11020 if test `$JAVACOMPILER -version 2>&1 | grep -c "Eclipse Java Compiler"` -gt 0; then
11021 echo "$as_me:$LINENO: checking re-checking JDK" >&5
11022 echo $ECHO_N "checking re-checking JDK... $ECHO_C" >&6
11023 JDK=gcj
11024 echo "$as_me:$LINENO: result: checked (ecj)" >&5
11025 echo "${ECHO_T}checked (ecj)" >&6
11026 #TODO: what's to do here? some switch to do 1.5 compiling?
11027 JAVAFLAGS="-source 1.5 -target 1.5"
11028 _gij_longver="40200"
11032 JAVACISGCJ=""
11033 if test "$SOLAR_JAVA" != ""; then
11034 if test `$JAVACOMPILER --version 2>&1 | grep -c "GCC"` -gt 0; then
11035 JAVACISGCJ="yes"
11040 if test "$SOLAR_JAVA" != ""; then
11041 if test -z "$with_jdk_home"; then
11042 # Extract the first word of "javadoc", so it can be a program name with args.
11043 set dummy javadoc; ac_word=$2
11044 echo "$as_me:$LINENO: checking for $ac_word" >&5
11045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11046 if test "${ac_cv_path_JAVADOC+set}" = set; then
11047 echo $ECHO_N "(cached) $ECHO_C" >&6
11048 else
11049 case $JAVADOC in
11050 [\\/]* | ?:[\\/]*)
11051 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
11054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11055 for as_dir in $PATH
11057 IFS=$as_save_IFS
11058 test -z "$as_dir" && as_dir=.
11059 for ac_exec_ext in '' $ac_executable_extensions; do
11060 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11061 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
11062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11063 break 2
11065 done
11066 done
11069 esac
11071 JAVADOC=$ac_cv_path_JAVADOC
11073 if test -n "$JAVADOC"; then
11074 echo "$as_me:$LINENO: result: $JAVADOC" >&5
11075 echo "${ECHO_T}$JAVADOC" >&6
11076 else
11077 echo "$as_me:$LINENO: result: no" >&5
11078 echo "${ECHO_T}no" >&6
11081 else
11082 _javadoc_path="$with_jdk_home/bin/javadoc"
11083 if test "$_os" = "OS2"; then
11084 if test x`echo "$_javadoc_path" | grep -i '\.exe$'` = x; then
11085 _javadoc_path="${_javadoc_path}.exe"
11088 if test -x "$_javadoc_path"; then
11089 JAVADOC=$_javadoc_path
11090 else
11091 # Extract the first word of "javadoc", so it can be a program name with args.
11092 set dummy javadoc; ac_word=$2
11093 echo "$as_me:$LINENO: checking for $ac_word" >&5
11094 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11095 if test "${ac_cv_path_JAVADOC+set}" = set; then
11096 echo $ECHO_N "(cached) $ECHO_C" >&6
11097 else
11098 case $JAVADOC in
11099 [\\/]* | ?:[\\/]*)
11100 ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
11103 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11104 for as_dir in $PATH
11106 IFS=$as_save_IFS
11107 test -z "$as_dir" && as_dir=.
11108 for ac_exec_ext in '' $ac_executable_extensions; do
11109 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11110 ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
11111 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11112 break 2
11114 done
11115 done
11118 esac
11120 JAVADOC=$ac_cv_path_JAVADOC
11122 if test -n "$JAVADOC"; then
11123 echo "$as_me:$LINENO: result: $JAVADOC" >&5
11124 echo "${ECHO_T}$JAVADOC" >&6
11125 else
11126 echo "$as_me:$LINENO: result: no" >&5
11127 echo "${ECHO_T}no" >&6
11132 if test -z "$JAVADOC"; then
11133 { { echo "$as_me:$LINENO: error: $_javadoc_path not found set with_jdk_home" >&5
11134 echo "$as_me: error: $_javadoc_path not found set with_jdk_home" >&2;}
11135 { (exit 1); exit 1; }; }
11137 if test "$_os" = "WINNT"; then
11138 if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
11139 JAVADOC="${JAVADOC}.exe"
11141 JAVADOC=`cygpath -d "$JAVADOC"`
11142 JAVADOC=`cygpath -u "$JAVADOC"`
11144 if test "$_os" = "OS2"; then
11145 if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
11146 JAVADOC="${JAVADOC}.exe"
11151 if test "$SOLAR_JAVA" != ""; then
11152 if test "$JDK" = "gcj" -a -z "$JAVA_HOME"; then
11153 if test "x$with_jdk_home" = "x" -a "$_gij_longver" -ge "40200"; then
11154 cat > findhome.java <<_ACEOF
11155 import java.io.File;
11157 class findhome
11159 public static void main(String args[])
11161 String jrelocation = System.getProperty("java.home");
11162 File jre = new File(jrelocation);
11163 System.out.println(jre.getParent());
11166 _ACEOF
11167 echo "$as_me:$LINENO: checking if javac works" >&5
11168 echo $ECHO_N "checking if javac works... $ECHO_C" >&6
11169 javac_cmd="$JAVACOMPILER findhome.java 1>&2"
11170 { (eval echo "$as_me:$LINENO: \"$javac_cmd\"") >&5
11171 (eval $javac_cmd) 2>&5
11172 ac_status=$?
11173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11174 (exit $ac_status); }
11175 if test $? = 0 && test -f ./findhome.class ; then
11176 echo "$as_me:$LINENO: result: javac works" >&5
11177 echo "${ECHO_T}javac works" >&6
11178 else
11179 echo "configure: javac test failed" >&5
11180 cat findhome.java >&5
11181 { { echo "$as_me:$LINENO: error: javac does not work - java projects will not build!" >&5
11182 echo "$as_me: error: javac does not work - java projects will not build!" >&2;}
11183 { (exit 1); exit 1; }; }
11186 echo "$as_me:$LINENO: checking if gij knows its java.home" >&5
11187 echo $ECHO_N "checking if gij knows its java.home... $ECHO_C" >&6
11188 JAVA_HOME=`$JAVAINTERPRETER findhome`
11189 if test $? = 0 && test "$JAVA_HOME" != "" ; then
11190 echo "$as_me:$LINENO: result: $JAVA_HOME" >&5
11191 echo "${ECHO_T}$JAVA_HOME" >&6
11192 else
11193 echo "configure: java test failed" >&5
11194 cat findhome.java >&5
11195 { { echo "$as_me:$LINENO: error: gij does not know its java.home - use --with-jdk-home" >&5
11196 echo "$as_me: error: gij does not know its java.home - use --with-jdk-home" >&2;}
11197 { (exit 1); exit 1; }; }
11199 else
11200 JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$WITH_JAVA,,p"`
11204 if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
11205 # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
11206 if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
11208 if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
11209 # try to recover first by looking whether we have a alternatives
11210 # system as in Debian or newer SuSEs where following /usr/bin/javac
11211 # over /etc/alternatives/javac leads to the right bindir where we
11212 # just need to strip a bit away to get a valid JAVA_HOME
11213 JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
11214 elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
11215 # maybe only one level of symlink (e.g. on Mac)
11216 JAVA_HOME=$(readlink $JAVACOMPILER)
11217 else
11218 # else warn
11219 { echo "$as_me:$LINENO: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&5
11220 echo "$as_me: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&2;}
11221 { echo "$as_me:$LINENO: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&5
11222 echo "$as_me: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&2;}
11223 echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
11224 echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
11226 if test "$JAVA_HOME" != "/usr"; then
11227 if test "$_os" = "Darwin"; then
11228 JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
11229 JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
11230 else
11231 JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
11235 # now check if $JAVA_HOME is really valid
11236 if test "$_os" = "Darwin"; then
11237 if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
11238 JAVA_HOME_OK="NO"
11240 elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
11241 JAVA_HOME_OK="NO"
11243 if test "$JAVA_HOME_OK" = "NO"; then
11244 { echo "$as_me:$LINENO: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&5
11245 echo "$as_me: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&2;}
11246 { echo "$as_me:$LINENO: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&5
11247 echo "$as_me: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&2;}
11248 { echo "$as_me:$LINENO: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&5
11249 echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&2;}
11250 echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
11251 echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
11252 echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
11253 # if test "$JDK" = "gcj"; then
11254 # echo "e.g. install java-1.4.2-gcj-compat-devel and use --with-jdk-home=/usr/lib/jvm/java-1.4.2-gcj" >> warn
11255 # fi
11260 AWTLIB=
11261 if test "$SOLAR_JAVA" != ""; then
11262 echo "$as_me:$LINENO: checking for jawt lib name" >&5
11263 echo $ECHO_N "checking for jawt lib name... $ECHO_C" >&6
11264 if test "$JDK" = "gcj"; then
11265 save_CFLAGS=$CFLAGS
11266 save_LDFLAGS=$LDFLAGS
11267 CFLAGS="$CFLAGS -I$JAVA_HOME/include"
11268 LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
11269 exec 6>/dev/null # no output
11270 if test "${ac_cv_header_jni_h+set}" = set; then
11271 echo "$as_me:$LINENO: checking for jni.h" >&5
11272 echo $ECHO_N "checking for jni.h... $ECHO_C" >&6
11273 if test "${ac_cv_header_jni_h+set}" = set; then
11274 echo $ECHO_N "(cached) $ECHO_C" >&6
11276 echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
11277 echo "${ECHO_T}$ac_cv_header_jni_h" >&6
11278 else
11279 # Is the header compilable?
11280 echo "$as_me:$LINENO: checking jni.h usability" >&5
11281 echo $ECHO_N "checking jni.h usability... $ECHO_C" >&6
11282 cat >conftest.$ac_ext <<_ACEOF
11283 /* confdefs.h. */
11284 _ACEOF
11285 cat confdefs.h >>conftest.$ac_ext
11286 cat >>conftest.$ac_ext <<_ACEOF
11287 /* end confdefs.h. */
11288 $ac_includes_default
11289 #include <jni.h>
11290 _ACEOF
11291 rm -f conftest.$ac_objext
11292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11293 (eval $ac_compile) 2>conftest.er1
11294 ac_status=$?
11295 grep -v '^ *+' conftest.er1 >conftest.err
11296 rm -f conftest.er1
11297 cat conftest.err >&5
11298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11299 (exit $ac_status); } &&
11300 { ac_try='test -z "$ac_c_werror_flag"
11301 || test ! -s conftest.err'
11302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11303 (eval $ac_try) 2>&5
11304 ac_status=$?
11305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11306 (exit $ac_status); }; } &&
11307 { ac_try='test -s conftest.$ac_objext'
11308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11309 (eval $ac_try) 2>&5
11310 ac_status=$?
11311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11312 (exit $ac_status); }; }; then
11313 ac_header_compiler=yes
11314 else
11315 echo "$as_me: failed program was:" >&5
11316 sed 's/^/| /' conftest.$ac_ext >&5
11318 ac_header_compiler=no
11320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11322 echo "${ECHO_T}$ac_header_compiler" >&6
11324 # Is the header present?
11325 echo "$as_me:$LINENO: checking jni.h presence" >&5
11326 echo $ECHO_N "checking jni.h presence... $ECHO_C" >&6
11327 cat >conftest.$ac_ext <<_ACEOF
11328 /* confdefs.h. */
11329 _ACEOF
11330 cat confdefs.h >>conftest.$ac_ext
11331 cat >>conftest.$ac_ext <<_ACEOF
11332 /* end confdefs.h. */
11333 #include <jni.h>
11334 _ACEOF
11335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11337 ac_status=$?
11338 grep -v '^ *+' conftest.er1 >conftest.err
11339 rm -f conftest.er1
11340 cat conftest.err >&5
11341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11342 (exit $ac_status); } >/dev/null; then
11343 if test -s conftest.err; then
11344 ac_cpp_err=$ac_c_preproc_warn_flag
11345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11346 else
11347 ac_cpp_err=
11349 else
11350 ac_cpp_err=yes
11352 if test -z "$ac_cpp_err"; then
11353 ac_header_preproc=yes
11354 else
11355 echo "$as_me: failed program was:" >&5
11356 sed 's/^/| /' conftest.$ac_ext >&5
11358 ac_header_preproc=no
11360 rm -f conftest.err conftest.$ac_ext
11361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11362 echo "${ECHO_T}$ac_header_preproc" >&6
11364 # So? What about this header?
11365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11366 yes:no: )
11367 { echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
11368 echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11369 { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
11370 echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
11371 ac_header_preproc=yes
11373 no:yes:* )
11374 { echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
11375 echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
11376 { echo "$as_me:$LINENO: WARNING: jni.h: check for missing prerequisite headers?" >&5
11377 echo "$as_me: WARNING: jni.h: check for missing prerequisite headers?" >&2;}
11378 { echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
11379 echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
11380 { echo "$as_me:$LINENO: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&5
11381 echo "$as_me: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&2;}
11382 { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
11383 echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
11384 { echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
11385 echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}
11387 cat <<\_ASBOX
11388 ## ------------------------------------------ ##
11389 ## Report this to the AC_PACKAGE_NAME lists. ##
11390 ## ------------------------------------------ ##
11391 _ASBOX
11393 sed "s/^/$as_me: WARNING: /" >&2
11395 esac
11396 echo "$as_me:$LINENO: checking for jni.h" >&5
11397 echo $ECHO_N "checking for jni.h... $ECHO_C" >&6
11398 if test "${ac_cv_header_jni_h+set}" = set; then
11399 echo $ECHO_N "(cached) $ECHO_C" >&6
11400 else
11401 ac_cv_header_jni_h=$ac_header_preproc
11403 echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
11404 echo "${ECHO_T}$ac_cv_header_jni_h" >&6
11407 if test $ac_cv_header_jni_h = yes; then
11409 else
11410 { { echo "$as_me:$LINENO: error: jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" >&5
11411 echo "$as_me: error: jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" >&2;}
11412 { (exit 1); exit 1; }; }
11416 echo "$as_me:$LINENO: checking for JAWT_GetAWT in -lgcjawt" >&5
11417 echo $ECHO_N "checking for JAWT_GetAWT in -lgcjawt... $ECHO_C" >&6
11418 if test "${ac_cv_lib_gcjawt_JAWT_GetAWT+set}" = set; then
11419 echo $ECHO_N "(cached) $ECHO_C" >&6
11420 else
11421 ac_check_lib_save_LIBS=$LIBS
11422 LIBS="-lgcjawt $LIBS"
11423 cat >conftest.$ac_ext <<_ACEOF
11424 /* confdefs.h. */
11425 _ACEOF
11426 cat confdefs.h >>conftest.$ac_ext
11427 cat >>conftest.$ac_ext <<_ACEOF
11428 /* end confdefs.h. */
11430 /* Override any gcc2 internal prototype to avoid an error. */
11431 #ifdef __cplusplus
11432 extern "C"
11433 #endif
11434 /* We use char because int might match the return type of a gcc2
11435 builtin and then its argument prototype would still apply. */
11436 char JAWT_GetAWT ();
11438 main ()
11440 JAWT_GetAWT ();
11442 return 0;
11444 _ACEOF
11445 rm -f conftest.$ac_objext conftest$ac_exeext
11446 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11447 (eval $ac_link) 2>conftest.er1
11448 ac_status=$?
11449 grep -v '^ *+' conftest.er1 >conftest.err
11450 rm -f conftest.er1
11451 cat conftest.err >&5
11452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11453 (exit $ac_status); } &&
11454 { ac_try='test -z "$ac_c_werror_flag"
11455 || test ! -s conftest.err'
11456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11457 (eval $ac_try) 2>&5
11458 ac_status=$?
11459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11460 (exit $ac_status); }; } &&
11461 { ac_try='test -s conftest$ac_exeext'
11462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11463 (eval $ac_try) 2>&5
11464 ac_status=$?
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 (exit $ac_status); }; }; then
11467 ac_cv_lib_gcjawt_JAWT_GetAWT=yes
11468 else
11469 echo "$as_me: failed program was:" >&5
11470 sed 's/^/| /' conftest.$ac_ext >&5
11472 ac_cv_lib_gcjawt_JAWT_GetAWT=no
11474 rm -f conftest.err conftest.$ac_objext \
11475 conftest$ac_exeext conftest.$ac_ext
11476 LIBS=$ac_check_lib_save_LIBS
11478 echo "$as_me:$LINENO: result: $ac_cv_lib_gcjawt_JAWT_GetAWT" >&5
11479 echo "${ECHO_T}$ac_cv_lib_gcjawt_JAWT_GetAWT" >&6
11480 if test $ac_cv_lib_gcjawt_JAWT_GetAWT = yes; then
11481 AWTLIB="-lgcjawt -lgcj"
11484 exec 6>&1 # output on again
11485 CFLAGS=$save_CFLAGS
11486 LDFLAGS=$save_LDFLAGS
11488 # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
11489 # A workaround is to link also against libpmawt.so
11490 if test "$JDK" = "ibm" ; then
11491 save_CFLAGS=$CFLAGS
11492 save_LDFLAGS=$LDFLAGS
11493 save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
11494 CFLAGS="$CFLAGS -I$JAVA_HOME/include"
11495 LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
11496 LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
11497 export LD_LIBRARY_PATH
11498 exec 6>/dev/null # no output
11499 if test "${ac_cv_header_jni_h+set}" = set; then
11500 echo "$as_me:$LINENO: checking for jni.h" >&5
11501 echo $ECHO_N "checking for jni.h... $ECHO_C" >&6
11502 if test "${ac_cv_header_jni_h+set}" = set; then
11503 echo $ECHO_N "(cached) $ECHO_C" >&6
11505 echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
11506 echo "${ECHO_T}$ac_cv_header_jni_h" >&6
11507 else
11508 # Is the header compilable?
11509 echo "$as_me:$LINENO: checking jni.h usability" >&5
11510 echo $ECHO_N "checking jni.h usability... $ECHO_C" >&6
11511 cat >conftest.$ac_ext <<_ACEOF
11512 /* confdefs.h. */
11513 _ACEOF
11514 cat confdefs.h >>conftest.$ac_ext
11515 cat >>conftest.$ac_ext <<_ACEOF
11516 /* end confdefs.h. */
11517 $ac_includes_default
11518 #include <jni.h>
11519 _ACEOF
11520 rm -f conftest.$ac_objext
11521 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11522 (eval $ac_compile) 2>conftest.er1
11523 ac_status=$?
11524 grep -v '^ *+' conftest.er1 >conftest.err
11525 rm -f conftest.er1
11526 cat conftest.err >&5
11527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11528 (exit $ac_status); } &&
11529 { ac_try='test -z "$ac_c_werror_flag"
11530 || test ! -s conftest.err'
11531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11532 (eval $ac_try) 2>&5
11533 ac_status=$?
11534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11535 (exit $ac_status); }; } &&
11536 { ac_try='test -s conftest.$ac_objext'
11537 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11538 (eval $ac_try) 2>&5
11539 ac_status=$?
11540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11541 (exit $ac_status); }; }; then
11542 ac_header_compiler=yes
11543 else
11544 echo "$as_me: failed program was:" >&5
11545 sed 's/^/| /' conftest.$ac_ext >&5
11547 ac_header_compiler=no
11549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
11550 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11551 echo "${ECHO_T}$ac_header_compiler" >&6
11553 # Is the header present?
11554 echo "$as_me:$LINENO: checking jni.h presence" >&5
11555 echo $ECHO_N "checking jni.h presence... $ECHO_C" >&6
11556 cat >conftest.$ac_ext <<_ACEOF
11557 /* confdefs.h. */
11558 _ACEOF
11559 cat confdefs.h >>conftest.$ac_ext
11560 cat >>conftest.$ac_ext <<_ACEOF
11561 /* end confdefs.h. */
11562 #include <jni.h>
11563 _ACEOF
11564 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11565 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
11566 ac_status=$?
11567 grep -v '^ *+' conftest.er1 >conftest.err
11568 rm -f conftest.er1
11569 cat conftest.err >&5
11570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11571 (exit $ac_status); } >/dev/null; then
11572 if test -s conftest.err; then
11573 ac_cpp_err=$ac_c_preproc_warn_flag
11574 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11575 else
11576 ac_cpp_err=
11578 else
11579 ac_cpp_err=yes
11581 if test -z "$ac_cpp_err"; then
11582 ac_header_preproc=yes
11583 else
11584 echo "$as_me: failed program was:" >&5
11585 sed 's/^/| /' conftest.$ac_ext >&5
11587 ac_header_preproc=no
11589 rm -f conftest.err conftest.$ac_ext
11590 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11591 echo "${ECHO_T}$ac_header_preproc" >&6
11593 # So? What about this header?
11594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11595 yes:no: )
11596 { echo "$as_me:$LINENO: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&5
11597 echo "$as_me: WARNING: jni.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11598 { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the compiler's result" >&5
11599 echo "$as_me: WARNING: jni.h: proceeding with the compiler's result" >&2;}
11600 ac_header_preproc=yes
11602 no:yes:* )
11603 { echo "$as_me:$LINENO: WARNING: jni.h: present but cannot be compiled" >&5
11604 echo "$as_me: WARNING: jni.h: present but cannot be compiled" >&2;}
11605 { echo "$as_me:$LINENO: WARNING: jni.h: check for missing prerequisite headers?" >&5
11606 echo "$as_me: WARNING: jni.h: check for missing prerequisite headers?" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: jni.h: see the Autoconf documentation" >&5
11608 echo "$as_me: WARNING: jni.h: see the Autoconf documentation" >&2;}
11609 { echo "$as_me:$LINENO: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&5
11610 echo "$as_me: WARNING: jni.h: section \"Present But Cannot Be Compiled\"" >&2;}
11611 { echo "$as_me:$LINENO: WARNING: jni.h: proceeding with the preprocessor's result" >&5
11612 echo "$as_me: WARNING: jni.h: proceeding with the preprocessor's result" >&2;}
11613 { echo "$as_me:$LINENO: WARNING: jni.h: in the future, the compiler will take precedence" >&5
11614 echo "$as_me: WARNING: jni.h: in the future, the compiler will take precedence" >&2;}
11616 cat <<\_ASBOX
11617 ## ------------------------------------------ ##
11618 ## Report this to the AC_PACKAGE_NAME lists. ##
11619 ## ------------------------------------------ ##
11620 _ASBOX
11622 sed "s/^/$as_me: WARNING: /" >&2
11624 esac
11625 echo "$as_me:$LINENO: checking for jni.h" >&5
11626 echo $ECHO_N "checking for jni.h... $ECHO_C" >&6
11627 if test "${ac_cv_header_jni_h+set}" = set; then
11628 echo $ECHO_N "(cached) $ECHO_C" >&6
11629 else
11630 ac_cv_header_jni_h=$ac_header_preproc
11632 echo "$as_me:$LINENO: result: $ac_cv_header_jni_h" >&5
11633 echo "${ECHO_T}$ac_cv_header_jni_h" >&6
11636 if test $ac_cv_header_jni_h = yes; then
11638 else
11639 { { echo "$as_me:$LINENO: error: jni.h could not be found." >&5
11640 echo "$as_me: error: jni.h could not be found." >&2;}
11641 { (exit 1); exit 1; }; }
11645 echo "$as_me:$LINENO: checking for JAWT_GetAWT in -ljawt" >&5
11646 echo $ECHO_N "checking for JAWT_GetAWT in -ljawt... $ECHO_C" >&6
11647 if test "${ac_cv_lib_jawt_JAWT_GetAWT+set}" = set; then
11648 echo $ECHO_N "(cached) $ECHO_C" >&6
11649 else
11650 ac_check_lib_save_LIBS=$LIBS
11651 LIBS="-ljawt $LIBS"
11652 cat >conftest.$ac_ext <<_ACEOF
11653 /* confdefs.h. */
11654 _ACEOF
11655 cat confdefs.h >>conftest.$ac_ext
11656 cat >>conftest.$ac_ext <<_ACEOF
11657 /* end confdefs.h. */
11659 /* Override any gcc2 internal prototype to avoid an error. */
11660 #ifdef __cplusplus
11661 extern "C"
11662 #endif
11663 /* We use char because int might match the return type of a gcc2
11664 builtin and then its argument prototype would still apply. */
11665 char JAWT_GetAWT ();
11667 main ()
11669 JAWT_GetAWT ();
11671 return 0;
11673 _ACEOF
11674 rm -f conftest.$ac_objext conftest$ac_exeext
11675 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11676 (eval $ac_link) 2>conftest.er1
11677 ac_status=$?
11678 grep -v '^ *+' conftest.er1 >conftest.err
11679 rm -f conftest.er1
11680 cat conftest.err >&5
11681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682 (exit $ac_status); } &&
11683 { ac_try='test -z "$ac_c_werror_flag"
11684 || test ! -s conftest.err'
11685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11686 (eval $ac_try) 2>&5
11687 ac_status=$?
11688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11689 (exit $ac_status); }; } &&
11690 { ac_try='test -s conftest$ac_exeext'
11691 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11692 (eval $ac_try) 2>&5
11693 ac_status=$?
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); }; }; then
11696 ac_cv_lib_jawt_JAWT_GetAWT=yes
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11701 ac_cv_lib_jawt_JAWT_GetAWT=no
11703 rm -f conftest.err conftest.$ac_objext \
11704 conftest$ac_exeext conftest.$ac_ext
11705 LIBS=$ac_check_lib_save_LIBS
11707 echo "$as_me:$LINENO: result: $ac_cv_lib_jawt_JAWT_GetAWT" >&5
11708 echo "${ECHO_T}$ac_cv_lib_jawt_JAWT_GetAWT" >&6
11709 if test $ac_cv_lib_jawt_JAWT_GetAWT = yes; then
11710 AWTLIB="-ljawt"
11713 if test -z "$AWTLIB"; then
11714 LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
11715 echo "$as_me:$LINENO: checking for JAWT_GetAWT in -lmawt" >&5
11716 echo $ECHO_N "checking for JAWT_GetAWT in -lmawt... $ECHO_C" >&6
11717 if test "${ac_cv_lib_mawt_JAWT_GetAWT+set}" = set; then
11718 echo $ECHO_N "(cached) $ECHO_C" >&6
11719 else
11720 ac_check_lib_save_LIBS=$LIBS
11721 LIBS="-lmawt $LIBS"
11722 cat >conftest.$ac_ext <<_ACEOF
11723 /* confdefs.h. */
11724 _ACEOF
11725 cat confdefs.h >>conftest.$ac_ext
11726 cat >>conftest.$ac_ext <<_ACEOF
11727 /* end confdefs.h. */
11729 /* Override any gcc2 internal prototype to avoid an error. */
11730 #ifdef __cplusplus
11731 extern "C"
11732 #endif
11733 /* We use char because int might match the return type of a gcc2
11734 builtin and then its argument prototype would still apply. */
11735 char JAWT_GetAWT ();
11737 main ()
11739 JAWT_GetAWT ();
11741 return 0;
11743 _ACEOF
11744 rm -f conftest.$ac_objext conftest$ac_exeext
11745 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11746 (eval $ac_link) 2>conftest.er1
11747 ac_status=$?
11748 grep -v '^ *+' conftest.er1 >conftest.err
11749 rm -f conftest.er1
11750 cat conftest.err >&5
11751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11752 (exit $ac_status); } &&
11753 { ac_try='test -z "$ac_c_werror_flag"
11754 || test ! -s conftest.err'
11755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11756 (eval $ac_try) 2>&5
11757 ac_status=$?
11758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11759 (exit $ac_status); }; } &&
11760 { ac_try='test -s conftest$ac_exeext'
11761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11762 (eval $ac_try) 2>&5
11763 ac_status=$?
11764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11765 (exit $ac_status); }; }; then
11766 ac_cv_lib_mawt_JAWT_GetAWT=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11771 ac_cv_lib_mawt_JAWT_GetAWT=no
11773 rm -f conftest.err conftest.$ac_objext \
11774 conftest$ac_exeext conftest.$ac_ext
11775 LIBS=$ac_check_lib_save_LIBS
11777 echo "$as_me:$LINENO: result: $ac_cv_lib_mawt_JAWT_GetAWT" >&5
11778 echo "${ECHO_T}$ac_cv_lib_mawt_JAWT_GetAWT" >&6
11779 if test $ac_cv_lib_mawt_JAWT_GetAWT = yes; then
11780 AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"
11784 exec 6>&1 # output on again
11785 CFLAGS=$save_CFLAGS
11786 LDFLAGS=$save_LDFLAGS
11787 LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
11789 if test -z "$AWTLIB"; then
11790 AWTLIB=-ljawt
11792 echo "$as_me:$LINENO: result: $AWTLIB" >&5
11793 echo "${ECHO_T}$AWTLIB" >&6
11797 if test "$SOLAR_JAVA" != ""; then
11798 echo "$as_me:$LINENO: checking whether to enable gcj aot compilation" >&5
11799 echo $ECHO_N "checking whether to enable gcj aot compilation... $ECHO_C" >&6
11800 if test -n "$enable_gcjaot" && test "$enable_gcjaot" != "no"; then
11801 echo "$as_me:$LINENO: result: yes" >&5
11802 echo "${ECHO_T}yes" >&6
11803 if test `echo $WITH_JAVA | grep -c "gij"` -eq 0; then
11804 gcjaot="gcj"
11805 else
11806 gcjaot=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g"`
11808 echo "$as_me:$LINENO: result: $gcjaot" >&5
11809 echo "${ECHO_T}$gcjaot" >&6
11810 if test -n "$with_jdk_home"; then
11811 _javac_path="$with_jdk_home/bin/$gcjaot"
11812 if test -x "$_javac_path"; then
11813 JAVAAOTCOMPILER=$_javac_path
11816 if test -z "$JAVAAOTCOMPILER"; then
11817 # Extract the first word of "$gcjaot", so it can be a program name with args.
11818 set dummy $gcjaot; ac_word=$2
11819 echo "$as_me:$LINENO: checking for $ac_word" >&5
11820 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11821 if test "${ac_cv_path_JAVAAOTCOMPILER+set}" = set; then
11822 echo $ECHO_N "(cached) $ECHO_C" >&6
11823 else
11824 case $JAVAAOTCOMPILER in
11825 [\\/]* | ?:[\\/]*)
11826 ac_cv_path_JAVAAOTCOMPILER="$JAVAAOTCOMPILER" # Let the user override the test with a path.
11829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11830 for as_dir in $PATH
11832 IFS=$as_save_IFS
11833 test -z "$as_dir" && as_dir=.
11834 for ac_exec_ext in '' $ac_executable_extensions; do
11835 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11836 ac_cv_path_JAVAAOTCOMPILER="$as_dir/$ac_word$ac_exec_ext"
11837 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11838 break 2
11840 done
11841 done
11844 esac
11846 JAVAAOTCOMPILER=$ac_cv_path_JAVAAOTCOMPILER
11848 if test -n "$JAVAAOTCOMPILER"; then
11849 echo "$as_me:$LINENO: result: $JAVAAOTCOMPILER" >&5
11850 echo "${ECHO_T}$JAVAAOTCOMPILER" >&6
11851 else
11852 echo "$as_me:$LINENO: result: no" >&5
11853 echo "${ECHO_T}no" >&6
11857 if test -z "$JAVAAOTCOMPILER"; then
11858 { echo "$as_me:$LINENO: WARNING: $gcjaot not found, set with_jdk_home" >&5
11859 echo "$as_me: WARNING: $gcjaot not found, set with_jdk_home" >&2;}
11861 else
11862 echo "$as_me:$LINENO: result: no" >&5
11863 echo "${ECHO_T}no" >&6
11878 # Extract the first word of "dmake", so it can be a program name with args.
11879 set dummy dmake; ac_word=$2
11880 echo "$as_me:$LINENO: checking for $ac_word" >&5
11881 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11882 if test "${ac_cv_path_DMAKE+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885 case $DMAKE in
11886 [\\/]* | ?:[\\/]*)
11887 ac_cv_path_DMAKE="$DMAKE" # Let the user override the test with a path.
11890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11891 for as_dir in $PATH
11893 IFS=$as_save_IFS
11894 test -z "$as_dir" && as_dir=.
11895 for ac_exec_ext in '' $ac_executable_extensions; do
11896 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11897 ac_cv_path_DMAKE="$as_dir/$ac_word$ac_exec_ext"
11898 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11899 break 2
11901 done
11902 done
11904 test -z "$ac_cv_path_DMAKE" && ac_cv_path_DMAKE="no"
11906 esac
11908 DMAKE=$ac_cv_path_DMAKE
11910 if test -n "$DMAKE"; then
11911 echo "$as_me:$LINENO: result: $DMAKE" >&5
11912 echo "${ECHO_T}$DMAKE" >&6
11913 else
11914 echo "$as_me:$LINENO: result: no" >&5
11915 echo "${ECHO_T}no" >&6
11918 if test "$DMAKE" = "no"; then
11919 BUILD_DMAKE=YES
11920 echo "dmake will be built on ./bootstrap"
11921 else
11922 echo "$as_me:$LINENO: checking whether the found dmake is the right dmake" >&5
11923 echo $ECHO_N "checking whether the found dmake is the right dmake... $ECHO_C" >&6
11924 # we need to find out whether that dmake we found is "our" dmake
11925 # or the dmake from Sun's SunStudio Compiler which is something
11926 # different
11927 # This test _should_ work because the one accepts -V (ours) and one
11928 # (the other) not...
11929 $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
11930 if test $? -eq 0; then
11931 BUILD_DMAKE=NO
11932 echo "$as_me:$LINENO: result: yes" >&5
11933 echo "${ECHO_T}yes" >&6
11934 echo "$as_me:$LINENO: checking the dmake version" >&5
11935 echo $ECHO_N "checking the dmake version... $ECHO_C" >&6
11936 DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
11937 if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
11938 echo "$as_me:$LINENO: result: OK, >= 4.11" >&5
11939 echo "${ECHO_T}OK, >= 4.11" >&6
11940 elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
11941 test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
11942 echo "$as_me:$LINENO: result: OK, >= 4.11" >&5
11943 echo "${ECHO_T}OK, >= 4.11" >&6
11944 else
11945 echo "$as_me:$LINENO: result: too old. >= 4.11 is needed" >&5
11946 echo "${ECHO_T}too old. >= 4.11 is needed" >&6
11947 echo "A newer dmake will be built on ./bootstrap"
11948 BUILD_DMAKE=YES
11950 else
11951 echo "$as_me:$LINENO: result: no" >&5
11952 echo "${ECHO_T}no" >&6
11953 echo "dmake will be built on ./bootstrap"
11954 BUILD_DMAKE=YES
11959 echo "$as_me:$LINENO: checking whether to enable EPM for packing" >&5
11960 echo $ECHO_N "checking whether to enable EPM for packing... $ECHO_C" >&6
11961 if test "$enable_epm" = "yes"; then
11962 echo "$as_me:$LINENO: result: yes" >&5
11963 echo "${ECHO_T}yes" >&6
11964 if test "$_os" != "WINNT"; then
11965 if test -n "$with_epm"; then
11966 EPM=$with_epm
11967 else
11968 # Extract the first word of "epm", so it can be a program name with args.
11969 set dummy epm; ac_word=$2
11970 echo "$as_me:$LINENO: checking for $ac_word" >&5
11971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11972 if test "${ac_cv_path_EPM+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 case $EPM in
11976 [\\/]* | ?:[\\/]*)
11977 ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
11980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11981 for as_dir in $PATH
11983 IFS=$as_save_IFS
11984 test -z "$as_dir" && as_dir=.
11985 for ac_exec_ext in '' $ac_executable_extensions; do
11986 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11987 ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
11988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11989 break 2
11991 done
11992 done
11994 test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="no"
11996 esac
11998 EPM=$ac_cv_path_EPM
12000 if test -n "$EPM"; then
12001 echo "$as_me:$LINENO: result: $EPM" >&5
12002 echo "${ECHO_T}$EPM" >&6
12003 else
12004 echo "$as_me:$LINENO: result: no" >&5
12005 echo "${ECHO_T}no" >&6
12009 if test "$EPM" = "no" || test "$EPM" = "internal"; then
12010 echo "EPM will be built."
12011 BUILD_EPM=YES
12012 BUILD_TYPE="$BUILD_TYPE EPM"
12013 else
12014 # Gentoo has some epm which is something different...
12015 echo "$as_me:$LINENO: checking whether the found epm is the right epm" >&5
12016 echo $ECHO_N "checking whether the found epm is the right epm... $ECHO_C" >&6
12017 if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
12018 echo "$as_me:$LINENO: result: yes" >&5
12019 echo "${ECHO_T}yes" >&6
12020 else
12021 { { echo "$as_me:$LINENO: error: no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" >&5
12022 echo "$as_me: error: no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" >&2;}
12023 { (exit 1); exit 1; }; }
12025 echo "$as_me:$LINENO: checking epm version" >&5
12026 echo $ECHO_N "checking epm version... $ECHO_C" >&6
12027 EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
12028 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
12029 test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
12030 echo "$as_me:$LINENO: result: OK, >= 3.7" >&5
12031 echo "${ECHO_T}OK, >= 3.7" >&6
12032 BUILD_EPM=NO
12033 if test "$_os" = "Darwin"; then
12034 echo "$as_me:$LINENO: checking which PackageMaker EPM thinks to use" >&5
12035 echo $ECHO_N "checking which PackageMaker EPM thinks to use... $ECHO_C" >&6
12036 _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
12037 if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
12038 { { echo "$as_me:$LINENO: error: $_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&5
12039 echo "$as_me: error: $_pm; PackageMaker expected in wrong path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&2;}
12040 { (exit 1); exit 1; }; }
12041 elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
12042 echo "$as_me:$LINENO: result: $_pm, ok" >&5
12043 echo "${ECHO_T}$_pm, ok" >&6
12044 else # we never should get here, but go safe
12045 { { echo "$as_me:$LINENO: error: $_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&5
12046 echo "$as_me: error: $_pm; PackageMaker expected in unknown path. Either patch your epm with the right path (/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker) or use internal patched epm (--with-epm=internal)" >&2;}
12047 { (exit 1); exit 1; }; }
12050 else
12051 echo "$as_me:$LINENO: result: too old. epm >= 3.7 is required." >&5
12052 echo "${ECHO_T}too old. epm >= 3.7 is required." >&6
12053 echo "EPM will be built."
12054 BUILD_EPM=YES
12055 BUILD_TYPE="$BUILD_TYPE EPM"
12060 # test which package format to use
12061 echo "$as_me:$LINENO: checking which package format to use" >&5
12062 echo $ECHO_N "checking which package format to use... $ECHO_C" >&6
12064 # defaults
12065 case "$_os" in
12066 OS2)
12067 PKGFORMAT=native
12069 Darwin)
12070 PKGFORMAT=dmg
12072 SunOS)
12073 PKGFORMAT=pkg
12075 Linux)
12076 # if building on Debian, default should be deb...
12077 if test -e /etc/debian_version; then
12078 PKGFORMAT=deb
12079 else
12080 PKGFORMAT=rpm
12083 AIX)
12084 PKGFORMAT=aix
12086 *BSD)
12087 PKGFORMAT=bsd
12089 OSF1)
12090 PKGFORMAT=setld
12092 WINNT)
12093 PKGFORMAT=msi
12095 # we never should get here since we check the arciecture/os at the beginning,
12096 # but go sure...
12098 { { echo "$as_me:$LINENO: error: unknown system" >&5
12099 echo "$as_me: error: unknown system" >&2;}
12100 { (exit 1); exit 1; }; }
12101 esac
12102 if test -n "$with_package_format"; then
12103 for i in $with_package_format; do
12104 case "$i" in
12105 aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable | archive | dmg | installed | msi)
12108 { { echo "$as_me:$LINENO: error: unsupported format $i. Supported by EPM are:
12109 aix - AIX software distribution
12110 bsd - FreeBSD, NetBSD, or OpenBSD software distribution
12111 depot or swinstall - HP-UX software distribution
12112 deb - Debian software distribution
12113 inst or tardist - IRIX software distribution
12114 osx - MacOS X software distribution
12115 pkg - Solaris software distribution
12116 rpm - RedHat software distribution
12117 setld - Tru64 (setld) software distribution
12118 native - \"Native\" software distribution for the platform
12119 portable - Portable software distribution
12120 OOo additionally supports:
12121 archive - .tar.gz or .zip
12122 dmg - Mac OS X .dmg
12123 installed - installation tree
12124 msi - Windows .msi
12125 " >&5
12126 echo "$as_me: error: unsupported format $i. Supported by EPM are:
12127 aix - AIX software distribution
12128 bsd - FreeBSD, NetBSD, or OpenBSD software distribution
12129 depot or swinstall - HP-UX software distribution
12130 deb - Debian software distribution
12131 inst or tardist - IRIX software distribution
12132 osx - MacOS X software distribution
12133 pkg - Solaris software distribution
12134 rpm - RedHat software distribution
12135 setld - Tru64 (setld) software distribution
12136 native - \"Native\" software distribution for the platform
12137 portable - Portable software distribution
12138 OOo additionally supports:
12139 archive - .tar.gz or .zip
12140 dmg - Mac OS X .dmg
12141 installed - installation tree
12142 msi - Windows .msi
12143 " >&2;}
12144 { (exit 1); exit 1; }; }
12146 esac
12147 done
12148 PKGFORMAT="$with_package_format"
12150 echo "$as_me:$LINENO: result: $PKGFORMAT" >&5
12151 echo "${ECHO_T}$PKGFORMAT" >&6
12152 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
12153 echo "$as_me:$LINENO: checking for rpm" >&5
12154 echo $ECHO_N "checking for rpm... $ECHO_C" >&6
12155 for a in "$RPM" rpmbuild rpm; do
12156 $a --usage >/dev/null 2> /dev/null
12157 if test $? -eq 0; then
12158 RPM=$a
12159 break
12160 else
12161 $a --version >/dev/null 2> /dev/null
12162 if test $? -eq 0; then
12163 RPM=$a
12164 break
12167 done
12168 if test -z "$RPM" ; then
12169 { { echo "$as_me:$LINENO: error: not found" >&5
12170 echo "$as_me: error: not found" >&2;}
12171 { (exit 1); exit 1; }; }
12172 elif "$RPM" --usage 2>&1 | $EGREP -- -bb >/dev/null; then
12173 RPM_PATH=`which $RPM`
12174 echo "$as_me:$LINENO: result: $RPM_PATH" >&5
12175 echo "${ECHO_T}$RPM_PATH" >&6
12176 else
12177 { { echo "$as_me:$LINENO: error: cannot build packages. Try installing rpmbuild." >&5
12178 echo "$as_me: error: cannot build packages. Try installing rpmbuild." >&2;}
12179 { (exit 1); exit 1; }; }
12182 if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
12183 # Extract the first word of "dpkg", so it can be a program name with args.
12184 set dummy dpkg; ac_word=$2
12185 echo "$as_me:$LINENO: checking for $ac_word" >&5
12186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12187 if test "${ac_cv_path_DPKG+set}" = set; then
12188 echo $ECHO_N "(cached) $ECHO_C" >&6
12189 else
12190 case $DPKG in
12191 [\\/]* | ?:[\\/]*)
12192 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
12195 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12196 for as_dir in $PATH
12198 IFS=$as_save_IFS
12199 test -z "$as_dir" && as_dir=.
12200 for ac_exec_ext in '' $ac_executable_extensions; do
12201 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12202 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
12203 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12204 break 2
12206 done
12207 done
12209 test -z "$ac_cv_path_DPKG" && ac_cv_path_DPKG="no"
12211 esac
12213 DPKG=$ac_cv_path_DPKG
12215 if test -n "$DPKG"; then
12216 echo "$as_me:$LINENO: result: $DPKG" >&5
12217 echo "${ECHO_T}$DPKG" >&6
12218 else
12219 echo "$as_me:$LINENO: result: no" >&5
12220 echo "${ECHO_T}no" >&6
12223 if test "$DPKG" = "no"; then
12224 { { echo "$as_me:$LINENO: error: dpkg needed for deb creation. Install dpkg." >&5
12225 echo "$as_me: error: dpkg needed for deb creation. Install dpkg." >&2;}
12226 { (exit 1); exit 1; }; }
12229 if echo "PKGFORMAT" | $EGREP osx 2>&1 >/dev/null; then
12230 if test "$_os" = "Darwin"; then
12231 echo "$as_me:$LINENO: checking for PackageMaker availability" >&5
12232 echo $ECHO_N "checking for PackageMaker availability... $ECHO_C" >&6
12233 if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
12234 { { echo "$as_me:$LINENO: error: not installed. Please install Apples Dev Tools" >&5
12235 echo "$as_me: error: not installed. Please install Apples Dev Tools" >&2;}
12236 { (exit 1); exit 1; }; }
12237 else
12238 echo "$as_me:$LINENO: result: ok" >&5
12239 echo "${ECHO_T}ok" >&6
12241 else
12242 { { echo "$as_me:$LINENO: error: PackageMaker needed to build OSX packages and you are not on OSX..." >&5
12243 echo "$as_me: error: PackageMaker needed to build OSX packages and you are not on OSX..." >&2;}
12244 { (exit 1); exit 1; }; }
12247 if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
12248 echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
12249 if test "$EPM" != "no" && test "$EPM" != "internal"; then
12250 if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
12251 echo "$as_me:$LINENO: checking whether epm is patched for OOos needs" >&5
12252 echo $ECHO_N "checking whether epm is patched for OOos needs... $ECHO_C" >&6
12253 if grep "Patched for OpenOffice.org" $EPM >/dev/null 2>/dev/null; then
12254 echo "$as_me:$LINENO: result: yes" >&5
12255 echo "${ECHO_T}yes" >&6
12256 else
12257 echo "$as_me:$LINENO: result: no" >&5
12258 echo "${ECHO_T}no" >&6
12259 if echo "$PKGFORMAT" | grep -q rpm; then
12260 _pt="rpm"
12261 { echo "$as_me:$LINENO: WARNING: the rpms will need to be installed with --nodeps" >&5
12262 echo "$as_me: WARNING: the rpms will need to be installed with --nodeps" >&2;}
12263 echo "the rpms will need to be installed with --nodeps" >> warn
12264 else
12265 _pt="pkg"
12267 { echo "$as_me:$LINENO: WARNING: the ${_pt}s will not be relocateable" >&5
12268 echo "$as_me: WARNING: the ${_pt}s will not be relocateable" >&2;}
12269 echo "the ${_pt}s will not be relocateable" >> warn
12270 { echo "$as_me:$LINENO: WARNING: if you want to make sure installation without --nodeps and
12271 relocation will work, you need to patch your epm with the
12272 patch in epm/epm-3.7.patch or build with
12273 --with-epm=internal which will build a suitable epm" >&5
12274 echo "$as_me: WARNING: if you want to make sure installation without --nodeps and
12275 relocation will work, you need to patch your epm with the
12276 patch in epm/epm-3.7.patch or build with
12277 --with-epm=internal which will build a suitable epm" >&2;}
12282 if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
12283 # Extract the first word of "pkgmk", so it can be a program name with args.
12284 set dummy pkgmk; ac_word=$2
12285 echo "$as_me:$LINENO: checking for $ac_word" >&5
12286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12287 if test "${ac_cv_path_PKGMK+set}" = set; then
12288 echo $ECHO_N "(cached) $ECHO_C" >&6
12289 else
12290 case $PKGMK in
12291 [\\/]* | ?:[\\/]*)
12292 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
12295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12296 for as_dir in $PATH
12298 IFS=$as_save_IFS
12299 test -z "$as_dir" && as_dir=.
12300 for ac_exec_ext in '' $ac_executable_extensions; do
12301 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12302 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
12303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12304 break 2
12306 done
12307 done
12309 test -z "$ac_cv_path_PKGMK" && ac_cv_path_PKGMK="no"
12311 esac
12313 PKGMK=$ac_cv_path_PKGMK
12315 if test -n "$PKGMK"; then
12316 echo "$as_me:$LINENO: result: $PKGMK" >&5
12317 echo "${ECHO_T}$PKGMK" >&6
12318 else
12319 echo "$as_me:$LINENO: result: no" >&5
12320 echo "${ECHO_T}no" >&6
12323 if test "$PKGMK" = "no"; then
12324 { { echo "$as_me:$LINENO: error: pkgmk needed for Solaris pkg creation. Install it." >&5
12325 echo "$as_me: error: pkgmk needed for Solaris pkg creation. Install it." >&2;}
12326 { (exit 1); exit 1; }; }
12333 else
12334 echo "$as_me:$LINENO: result: no" >&5
12335 echo "${ECHO_T}no" >&6
12336 EPM=NO
12337 PKGFORMAT=native
12342 # Extract the first word of "gperf", so it can be a program name with args.
12343 set dummy gperf; ac_word=$2
12344 echo "$as_me:$LINENO: checking for $ac_word" >&5
12345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12346 if test "${ac_cv_path_GPERF+set}" = set; then
12347 echo $ECHO_N "(cached) $ECHO_C" >&6
12348 else
12349 case $GPERF in
12350 [\\/]* | ?:[\\/]*)
12351 ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
12354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12355 for as_dir in $PATH
12357 IFS=$as_save_IFS
12358 test -z "$as_dir" && as_dir=.
12359 for ac_exec_ext in '' $ac_executable_extensions; do
12360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12361 ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
12362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12363 break 2
12365 done
12366 done
12369 esac
12371 GPERF=$ac_cv_path_GPERF
12373 if test -n "$GPERF"; then
12374 echo "$as_me:$LINENO: result: $GPERF" >&5
12375 echo "${ECHO_T}$GPERF" >&6
12376 else
12377 echo "$as_me:$LINENO: result: no" >&5
12378 echo "${ECHO_T}no" >&6
12381 if test -z "$GPERF"; then
12382 { { echo "$as_me:$LINENO: error: gperf not found but needed. Install it." >&5
12383 echo "$as_me: error: gperf not found but needed. Install it." >&2;}
12384 { (exit 1); exit 1; }; }
12386 echo "$as_me:$LINENO: checking gperf version" >&5
12387 echo $ECHO_N "checking gperf version... $ECHO_C" >&6
12388 if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
12389 echo "$as_me:$LINENO: result: OK" >&5
12390 echo "${ECHO_T}OK" >&6
12391 else
12392 { { echo "$as_me:$LINENO: error: too old, you need at least 3.0.0" >&5
12393 echo "$as_me: error: too old, you need at least 3.0.0" >&2;}
12394 { (exit 1); exit 1; }; }
12397 echo "$as_me:$LINENO: checking whether to build the stax" >&5
12398 echo $ECHO_N "checking whether to build the stax... $ECHO_C" >&6
12399 if test -f "./stax/download/jsr173_1.0_api.jar"; then
12400 BUILD_STAX=NO
12401 echo "$as_me:$LINENO: result: no, will use the prebuilt stax/download/jsr173_1.0_api.jar" >&5
12402 echo "${ECHO_T}no, will use the prebuilt stax/download/jsr173_1.0_api.jar" >&6
12403 else
12404 BUILD_STAX=YES
12405 echo "$as_me:$LINENO: result: yes" >&5
12406 echo "${ECHO_T}yes" >&6
12410 echo "$as_me:$LINENO: checking whether to build the ODK" >&5
12411 echo $ECHO_N "checking whether to build the ODK... $ECHO_C" >&6
12412 if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
12413 echo "$as_me:$LINENO: result: yes" >&5
12414 echo "${ECHO_T}yes" >&6
12415 if test "$WITH_JAVA" != "no"; then
12416 echo "$as_me:$LINENO: checking for external/unowinreg/unowinreg.dll" >&5
12417 echo $ECHO_N "checking for external/unowinreg/unowinreg.dll... $ECHO_C" >&6
12418 if ! test -f "./external/unowinreg/unowinreg.dll"; then
12419 HAVE_UNOWINREG_DLL=no
12420 else
12421 HAVE_UNOWINREG_DLL=yes
12423 if test "$HAVE_UNOWINREG_DLL" = "yes"; then
12424 echo "$as_me:$LINENO: result: found" >&5
12425 echo "${ECHO_T}found" >&6
12426 BUILD_UNOWINREG=NO
12427 else
12428 if test "$_os" = "WINNT"; then
12429 echo "$as_me:$LINENO: result: not found, will be built" >&5
12430 echo "${ECHO_T}not found, will be built" >&6
12431 else
12432 { echo "$as_me:$LINENO: WARNING: not found, will be cross-built using mingw32" >&5
12433 echo "$as_me: WARNING: not found, will be cross-built using mingw32" >&2;}
12435 BUILD_UNOWINREG=YES
12437 if test "$_os" != "WINNT" && test "$BUILD_UNOWINREG" = "YES"; then
12438 if test -z "$WITH_MINGWIN" || test "$WITH_MINGWIN" = "0"; then
12439 { { echo "$as_me:$LINENO: error: for rebuilding unowinreg.dll you need the mingw32 C++ compiler.
12440 Specify mingw32 g++ executable name with --with-mingwin.
12441 Or use prebuilt one from http://tools.openoffice.org/unowinreg_prebuild/680/ and
12442 put it into external/unowinreg" >&5
12443 echo "$as_me: error: for rebuilding unowinreg.dll you need the mingw32 C++ compiler.
12444 Specify mingw32 g++ executable name with --with-mingwin.
12445 Or use prebuilt one from http://tools.openoffice.org/unowinreg_prebuild/680/ and
12446 put it into external/unowinreg" >&2;}
12447 { (exit 1); exit 1; }; }
12449 if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
12450 if ! test -x "$WITH_MINGWIN"; then MINGWCXX=false; else MINGWCXX=`basename $WITH_MINGWIN`; fi
12451 else
12452 if test -n "$ac_tool_prefix"; then
12453 # Extract the first word of "${ac_tool_prefix}$WITH_MINGWIN", so it can be a program name with args.
12454 set dummy ${ac_tool_prefix}$WITH_MINGWIN; ac_word=$2
12455 echo "$as_me:$LINENO: checking for $ac_word" >&5
12456 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12457 if test "${ac_cv_prog_MINGWCXX+set}" = set; then
12458 echo $ECHO_N "(cached) $ECHO_C" >&6
12459 else
12460 if test -n "$MINGWCXX"; then
12461 ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
12462 else
12463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12464 for as_dir in $PATH
12466 IFS=$as_save_IFS
12467 test -z "$as_dir" && as_dir=.
12468 for ac_exec_ext in '' $ac_executable_extensions; do
12469 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12470 ac_cv_prog_MINGWCXX="${ac_tool_prefix}$WITH_MINGWIN"
12471 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12472 break 2
12474 done
12475 done
12479 MINGWCXX=$ac_cv_prog_MINGWCXX
12480 if test -n "$MINGWCXX"; then
12481 echo "$as_me:$LINENO: result: $MINGWCXX" >&5
12482 echo "${ECHO_T}$MINGWCXX" >&6
12483 else
12484 echo "$as_me:$LINENO: result: no" >&5
12485 echo "${ECHO_T}no" >&6
12489 if test -z "$ac_cv_prog_MINGWCXX"; then
12490 ac_ct_MINGWCXX=$MINGWCXX
12491 # Extract the first word of "$WITH_MINGWIN", so it can be a program name with args.
12492 set dummy $WITH_MINGWIN; ac_word=$2
12493 echo "$as_me:$LINENO: checking for $ac_word" >&5
12494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12495 if test "${ac_cv_prog_ac_ct_MINGWCXX+set}" = set; then
12496 echo $ECHO_N "(cached) $ECHO_C" >&6
12497 else
12498 if test -n "$ac_ct_MINGWCXX"; then
12499 ac_cv_prog_ac_ct_MINGWCXX="$ac_ct_MINGWCXX" # Let the user override the test.
12500 else
12501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12502 for as_dir in $PATH
12504 IFS=$as_save_IFS
12505 test -z "$as_dir" && as_dir=.
12506 for ac_exec_ext in '' $ac_executable_extensions; do
12507 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12508 ac_cv_prog_ac_ct_MINGWCXX="$WITH_MINGWIN"
12509 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12510 break 2
12512 done
12513 done
12515 test -z "$ac_cv_prog_ac_ct_MINGWCXX" && ac_cv_prog_ac_ct_MINGWCXX="false"
12518 ac_ct_MINGWCXX=$ac_cv_prog_ac_ct_MINGWCXX
12519 if test -n "$ac_ct_MINGWCXX"; then
12520 echo "$as_me:$LINENO: result: $ac_ct_MINGWCXX" >&5
12521 echo "${ECHO_T}$ac_ct_MINGWCXX" >&6
12522 else
12523 echo "$as_me:$LINENO: result: no" >&5
12524 echo "${ECHO_T}no" >&6
12527 MINGWCXX=$ac_ct_MINGWCXX
12528 else
12529 MINGWCXX="$ac_cv_prog_MINGWCXX"
12533 if test "$MINGWCXX" = "false"; then
12534 { { echo "$as_me:$LINENO: error: specified MinGW32 C++ cross-compiler not found. Install it or correct name." >&5
12535 echo "$as_me: error: specified MinGW32 C++ cross-compiler not found. Install it or correct name." >&2;}
12536 { (exit 1); exit 1; }; }
12538 echo "$as_me:$LINENO: checking whether we are using the MinGW32 cross C++ compiler" >&5
12539 echo $ECHO_N "checking whether we are using the MinGW32 cross C++ compiler... $ECHO_C" >&6
12540 if ! echo "`$MINGWCXX -dumpmachine`" | grep -q mingw32; then
12541 { { echo "$as_me:$LINENO: error: no" >&5
12542 echo "$as_me: error: no" >&2;}
12543 { (exit 1); exit 1; }; }
12544 else
12545 echo "$as_me:$LINENO: result: yes" >&5
12546 echo "${ECHO_T}yes" >&6
12548 if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
12549 if ! test -x "`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"; then MINGSTRIP=false; else MINGWSTRIP=$(basename $(echo $WITH_MINGWIN | $SED -e s/g++/strip/)); fi
12550 else
12551 if test -n "$ac_tool_prefix"; then
12552 # Extract the first word of "${ac_tool_prefix}`echo $WITH_MINGWIN | $SED -e s/g++/strip/`", so it can be a program name with args.
12553 set dummy ${ac_tool_prefix}`echo $WITH_MINGWIN | $SED -e s/g++/strip/`; ac_word=$2
12554 echo "$as_me:$LINENO: checking for $ac_word" >&5
12555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12556 if test "${ac_cv_prog_MINGWSTRIP+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12558 else
12559 if test -n "$MINGWSTRIP"; then
12560 ac_cv_prog_MINGWSTRIP="$MINGWSTRIP" # Let the user override the test.
12561 else
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12569 ac_cv_prog_MINGWSTRIP="${ac_tool_prefix}`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"
12570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12573 done
12574 done
12578 MINGWSTRIP=$ac_cv_prog_MINGWSTRIP
12579 if test -n "$MINGWSTRIP"; then
12580 echo "$as_me:$LINENO: result: $MINGWSTRIP" >&5
12581 echo "${ECHO_T}$MINGWSTRIP" >&6
12582 else
12583 echo "$as_me:$LINENO: result: no" >&5
12584 echo "${ECHO_T}no" >&6
12588 if test -z "$ac_cv_prog_MINGWSTRIP"; then
12589 ac_ct_MINGWSTRIP=$MINGWSTRIP
12590 # Extract the first word of "`echo $WITH_MINGWIN | $SED -e s/g++/strip/`", so it can be a program name with args.
12591 set dummy `echo $WITH_MINGWIN | $SED -e s/g++/strip/`; ac_word=$2
12592 echo "$as_me:$LINENO: checking for $ac_word" >&5
12593 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
12594 if test "${ac_cv_prog_ac_ct_MINGWSTRIP+set}" = set; then
12595 echo $ECHO_N "(cached) $ECHO_C" >&6
12596 else
12597 if test -n "$ac_ct_MINGWSTRIP"; then
12598 ac_cv_prog_ac_ct_MINGWSTRIP="$ac_ct_MINGWSTRIP" # Let the user override the test.
12599 else
12600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12601 for as_dir in $PATH
12603 IFS=$as_save_IFS
12604 test -z "$as_dir" && as_dir=.
12605 for ac_exec_ext in '' $ac_executable_extensions; do
12606 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
12607 ac_cv_prog_ac_ct_MINGWSTRIP="`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"
12608 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12609 break 2
12611 done
12612 done
12614 test -z "$ac_cv_prog_ac_ct_MINGWSTRIP" && ac_cv_prog_ac_ct_MINGWSTRIP="false"
12617 ac_ct_MINGWSTRIP=$ac_cv_prog_ac_ct_MINGWSTRIP
12618 if test -n "$ac_ct_MINGWSTRIP"; then
12619 echo "$as_me:$LINENO: result: $ac_ct_MINGWSTRIP" >&5
12620 echo "${ECHO_T}$ac_ct_MINGWSTRIP" >&6
12621 else
12622 echo "$as_me:$LINENO: result: no" >&5
12623 echo "${ECHO_T}no" >&6
12626 MINGWSTRIP=$ac_ct_MINGWSTRIP
12627 else
12628 MINGWSTRIP="$ac_cv_prog_MINGWSTRIP"
12632 if test "$MINGWSTRIP" = "false"; then
12633 { { echo "$as_me:$LINENO: error: MinGW32 binutils needed. Install them." >&5
12634 echo "$as_me: error: MinGW32 binutils needed. Install them." >&2;}
12635 { (exit 1); exit 1; }; }
12637 ac_ext=cc
12638 ac_cpp='$CXXCPP $CPPFLAGS'
12639 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12640 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12641 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
12643 save_CXX=$CXX
12644 save_CXXCPP=$CXXCPP
12645 CXX=$MINGWCXX
12646 CXXCPP="$MINGWCXX -E"
12647 save_CXXFLAGS=$CXXFLAGS
12648 save_CPPFLAGS=$CPPFLAGS
12649 CXXFLAGS="$CXXFLAGS -I$JAVA_HOME/include"
12650 CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include"
12651 # LIBS contains -lcrypt etc due to teh AC_CHECK_LIBS which obviously
12652 # do not make sense here (and 'd make the check fail)
12653 save_LIBS=$LIBS
12654 LIBS=""
12656 echo "$as_me:$LINENO: checking for main in -lkernel32" >&5
12657 echo $ECHO_N "checking for main in -lkernel32... $ECHO_C" >&6
12658 if test "${ac_cv_lib_kernel32_main+set}" = set; then
12659 echo $ECHO_N "(cached) $ECHO_C" >&6
12660 else
12661 ac_check_lib_save_LIBS=$LIBS
12662 LIBS="-lkernel32 $LIBS"
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h. */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12672 main ()
12674 main ();
12676 return 0;
12678 _ACEOF
12679 rm -f conftest.$ac_objext conftest$ac_exeext
12680 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12681 (eval $ac_link) 2>conftest.er1
12682 ac_status=$?
12683 grep -v '^ *+' conftest.er1 >conftest.err
12684 rm -f conftest.er1
12685 cat conftest.err >&5
12686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12687 (exit $ac_status); } &&
12688 { ac_try='test -z "$ac_cxx_werror_flag"
12689 || test ! -s conftest.err'
12690 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12691 (eval $ac_try) 2>&5
12692 ac_status=$?
12693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12694 (exit $ac_status); }; } &&
12695 { ac_try='test -s conftest$ac_exeext'
12696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12697 (eval $ac_try) 2>&5
12698 ac_status=$?
12699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12700 (exit $ac_status); }; }; then
12701 ac_cv_lib_kernel32_main=yes
12702 else
12703 echo "$as_me: failed program was:" >&5
12704 sed 's/^/| /' conftest.$ac_ext >&5
12706 ac_cv_lib_kernel32_main=no
12708 rm -f conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12712 echo "$as_me:$LINENO: result: $ac_cv_lib_kernel32_main" >&5
12713 echo "${ECHO_T}$ac_cv_lib_kernel32_main" >&6
12714 if test $ac_cv_lib_kernel32_main = yes; then
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_LIBKERNEL32 1
12717 _ACEOF
12719 LIBS="-lkernel32 $LIBS"
12722 ac_cv_lib_kernel32=ac_cv_lib_kernel32_main
12725 echo "$as_me:$LINENO: checking for main in -ladvapi32" >&5
12726 echo $ECHO_N "checking for main in -ladvapi32... $ECHO_C" >&6
12727 if test "${ac_cv_lib_advapi32_main+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730 ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-ladvapi32 $LIBS"
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12741 main ()
12743 main ();
12745 return 0;
12747 _ACEOF
12748 rm -f conftest.$ac_objext conftest$ac_exeext
12749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12750 (eval $ac_link) 2>conftest.er1
12751 ac_status=$?
12752 grep -v '^ *+' conftest.er1 >conftest.err
12753 rm -f conftest.er1
12754 cat conftest.err >&5
12755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12756 (exit $ac_status); } &&
12757 { ac_try='test -z "$ac_cxx_werror_flag"
12758 || test ! -s conftest.err'
12759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12760 (eval $ac_try) 2>&5
12761 ac_status=$?
12762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12763 (exit $ac_status); }; } &&
12764 { ac_try='test -s conftest$ac_exeext'
12765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12766 (eval $ac_try) 2>&5
12767 ac_status=$?
12768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12769 (exit $ac_status); }; }; then
12770 ac_cv_lib_advapi32_main=yes
12771 else
12772 echo "$as_me: failed program was:" >&5
12773 sed 's/^/| /' conftest.$ac_ext >&5
12775 ac_cv_lib_advapi32_main=no
12777 rm -f conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 echo "$as_me:$LINENO: result: $ac_cv_lib_advapi32_main" >&5
12782 echo "${ECHO_T}$ac_cv_lib_advapi32_main" >&6
12783 if test $ac_cv_lib_advapi32_main = yes; then
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBADVAPI32 1
12786 _ACEOF
12788 LIBS="-ladvapi32 $LIBS"
12791 ac_cv_lib_advapi32=ac_cv_lib_advapi32_main
12793 if test "${ac_cv_header_windows_h+set}" = set; then
12794 echo "$as_me:$LINENO: checking for windows.h" >&5
12795 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
12796 if test "${ac_cv_header_windows_h+set}" = set; then
12797 echo $ECHO_N "(cached) $ECHO_C" >&6
12799 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
12800 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
12801 else
12802 # Is the header compilable?
12803 echo "$as_me:$LINENO: checking windows.h usability" >&5
12804 echo $ECHO_N "checking windows.h usability... $ECHO_C" >&6
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 $ac_includes_default
12812 #include <windows.h>
12813 _ACEOF
12814 rm -f conftest.$ac_objext
12815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12816 (eval $ac_compile) 2>conftest.er1
12817 ac_status=$?
12818 grep -v '^ *+' conftest.er1 >conftest.err
12819 rm -f conftest.er1
12820 cat conftest.err >&5
12821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12822 (exit $ac_status); } &&
12823 { ac_try='test -z "$ac_cxx_werror_flag"
12824 || test ! -s conftest.err'
12825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12826 (eval $ac_try) 2>&5
12827 ac_status=$?
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); }; } &&
12830 { ac_try='test -s conftest.$ac_objext'
12831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12832 (eval $ac_try) 2>&5
12833 ac_status=$?
12834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12835 (exit $ac_status); }; }; then
12836 ac_header_compiler=yes
12837 else
12838 echo "$as_me: failed program was:" >&5
12839 sed 's/^/| /' conftest.$ac_ext >&5
12841 ac_header_compiler=no
12843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
12844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12845 echo "${ECHO_T}$ac_header_compiler" >&6
12847 # Is the header present?
12848 echo "$as_me:$LINENO: checking windows.h presence" >&5
12849 echo $ECHO_N "checking windows.h presence... $ECHO_C" >&6
12850 cat >conftest.$ac_ext <<_ACEOF
12851 /* confdefs.h. */
12852 _ACEOF
12853 cat confdefs.h >>conftest.$ac_ext
12854 cat >>conftest.$ac_ext <<_ACEOF
12855 /* end confdefs.h. */
12856 #include <windows.h>
12857 _ACEOF
12858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
12859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
12860 ac_status=$?
12861 grep -v '^ *+' conftest.er1 >conftest.err
12862 rm -f conftest.er1
12863 cat conftest.err >&5
12864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865 (exit $ac_status); } >/dev/null; then
12866 if test -s conftest.err; then
12867 ac_cpp_err=$ac_cxx_preproc_warn_flag
12868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
12869 else
12870 ac_cpp_err=
12872 else
12873 ac_cpp_err=yes
12875 if test -z "$ac_cpp_err"; then
12876 ac_header_preproc=yes
12877 else
12878 echo "$as_me: failed program was:" >&5
12879 sed 's/^/| /' conftest.$ac_ext >&5
12881 ac_header_preproc=no
12883 rm -f conftest.err conftest.$ac_ext
12884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12885 echo "${ECHO_T}$ac_header_preproc" >&6
12887 # So? What about this header?
12888 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
12889 yes:no: )
12890 { echo "$as_me:$LINENO: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&5
12891 echo "$as_me: WARNING: windows.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12892 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the compiler's result" >&5
12893 echo "$as_me: WARNING: windows.h: proceeding with the compiler's result" >&2;}
12894 ac_header_preproc=yes
12896 no:yes:* )
12897 { echo "$as_me:$LINENO: WARNING: windows.h: present but cannot be compiled" >&5
12898 echo "$as_me: WARNING: windows.h: present but cannot be compiled" >&2;}
12899 { echo "$as_me:$LINENO: WARNING: windows.h: check for missing prerequisite headers?" >&5
12900 echo "$as_me: WARNING: windows.h: check for missing prerequisite headers?" >&2;}
12901 { echo "$as_me:$LINENO: WARNING: windows.h: see the Autoconf documentation" >&5
12902 echo "$as_me: WARNING: windows.h: see the Autoconf documentation" >&2;}
12903 { echo "$as_me:$LINENO: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&5
12904 echo "$as_me: WARNING: windows.h: section \"Present But Cannot Be Compiled\"" >&2;}
12905 { echo "$as_me:$LINENO: WARNING: windows.h: proceeding with the preprocessor's result" >&5
12906 echo "$as_me: WARNING: windows.h: proceeding with the preprocessor's result" >&2;}
12907 { echo "$as_me:$LINENO: WARNING: windows.h: in the future, the compiler will take precedence" >&5
12908 echo "$as_me: WARNING: windows.h: in the future, the compiler will take precedence" >&2;}
12910 cat <<\_ASBOX
12911 ## ------------------------------------------ ##
12912 ## Report this to the AC_PACKAGE_NAME lists. ##
12913 ## ------------------------------------------ ##
12914 _ASBOX
12916 sed "s/^/$as_me: WARNING: /" >&2
12918 esac
12919 echo "$as_me:$LINENO: checking for windows.h" >&5
12920 echo $ECHO_N "checking for windows.h... $ECHO_C" >&6
12921 if test "${ac_cv_header_windows_h+set}" = set; then
12922 echo $ECHO_N "(cached) $ECHO_C" >&6
12923 else
12924 ac_cv_header_windows_h=$ac_header_preproc
12926 echo "$as_me:$LINENO: result: $ac_cv_header_windows_h" >&5
12927 echo "${ECHO_T}$ac_cv_header_windows_h" >&6
12930 if test $ac_cv_header_windows_h = yes; then
12932 else
12933 { { echo "$as_me:$LINENO: error: windows.h missing" >&5
12934 echo "$as_me: error: windows.h missing" >&2;}
12935 { (exit 1); exit 1; }; }
12939 CXXFLAGS=$save_CXXFLAGS
12940 CPPFLAGS=$save_CPPFLAGS
12941 CXX=$save_CXX
12942 CXXCPP=$save_CXXCPP
12943 LIBS=$save_LIBS
12944 ac_ext=c
12945 ac_cpp='$CPP $CPPFLAGS'
12946 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12947 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12948 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12952 BUILD_TYPE="$BUILD_TYPE ODK"
12953 else
12954 echo "$as_me:$LINENO: result: no" >&5
12955 echo "${ECHO_T}no" >&6
12956 BUILD_UNOWINREG=NO
12962 echo "$as_me:$LINENO: checking whether to provide libstdc++/libgcc_s in the installset" >&5
12963 echo $ECHO_N "checking whether to provide libstdc++/libgcc_s in the installset... $ECHO_C" >&6
12964 if test -n "$with_system_stdlibs" -o -n "$with_system_libs" && \
12965 test "$with_system_stdlibs" != "no"; then
12966 echo "$as_me:$LINENO: result: no" >&5
12967 echo "${ECHO_T}no" >&6
12968 SYSTEM_STDLIBS=YES
12969 else
12970 echo "$as_me:$LINENO: result: yes" >&5
12971 echo "${ECHO_T}yes" >&6
12972 SYSTEM_STDLIBS=NO
12976 if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
12977 with_system_zlib=yes
12979 echo "$as_me:$LINENO: checking which zlib to use" >&5
12980 echo $ECHO_N "checking which zlib to use... $ECHO_C" >&6
12981 if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
12982 test "$with_system_zlib" != "no"; then
12983 echo "$as_me:$LINENO: result: external" >&5
12984 echo "${ECHO_T}external" >&6
12985 SYSTEM_ZLIB=YES
12986 if test "${ac_cv_header_zlib_h+set}" = set; then
12987 echo "$as_me:$LINENO: checking for zlib.h" >&5
12988 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
12989 if test "${ac_cv_header_zlib_h+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12992 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
12993 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
12994 else
12995 # Is the header compilable?
12996 echo "$as_me:$LINENO: checking zlib.h usability" >&5
12997 echo $ECHO_N "checking zlib.h usability... $ECHO_C" >&6
12998 cat >conftest.$ac_ext <<_ACEOF
12999 /* confdefs.h. */
13000 _ACEOF
13001 cat confdefs.h >>conftest.$ac_ext
13002 cat >>conftest.$ac_ext <<_ACEOF
13003 /* end confdefs.h. */
13004 $ac_includes_default
13005 #include <zlib.h>
13006 _ACEOF
13007 rm -f conftest.$ac_objext
13008 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13009 (eval $ac_compile) 2>conftest.er1
13010 ac_status=$?
13011 grep -v '^ *+' conftest.er1 >conftest.err
13012 rm -f conftest.er1
13013 cat conftest.err >&5
13014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13015 (exit $ac_status); } &&
13016 { ac_try='test -z "$ac_c_werror_flag"
13017 || test ! -s conftest.err'
13018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13019 (eval $ac_try) 2>&5
13020 ac_status=$?
13021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13022 (exit $ac_status); }; } &&
13023 { ac_try='test -s conftest.$ac_objext'
13024 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13025 (eval $ac_try) 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 ac_header_compiler=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13034 ac_header_compiler=no
13036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13037 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13038 echo "${ECHO_T}$ac_header_compiler" >&6
13040 # Is the header present?
13041 echo "$as_me:$LINENO: checking zlib.h presence" >&5
13042 echo $ECHO_N "checking zlib.h presence... $ECHO_C" >&6
13043 cat >conftest.$ac_ext <<_ACEOF
13044 /* confdefs.h. */
13045 _ACEOF
13046 cat confdefs.h >>conftest.$ac_ext
13047 cat >>conftest.$ac_ext <<_ACEOF
13048 /* end confdefs.h. */
13049 #include <zlib.h>
13050 _ACEOF
13051 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13052 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13053 ac_status=$?
13054 grep -v '^ *+' conftest.er1 >conftest.err
13055 rm -f conftest.er1
13056 cat conftest.err >&5
13057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13058 (exit $ac_status); } >/dev/null; then
13059 if test -s conftest.err; then
13060 ac_cpp_err=$ac_c_preproc_warn_flag
13061 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13062 else
13063 ac_cpp_err=
13065 else
13066 ac_cpp_err=yes
13068 if test -z "$ac_cpp_err"; then
13069 ac_header_preproc=yes
13070 else
13071 echo "$as_me: failed program was:" >&5
13072 sed 's/^/| /' conftest.$ac_ext >&5
13074 ac_header_preproc=no
13076 rm -f conftest.err conftest.$ac_ext
13077 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13078 echo "${ECHO_T}$ac_header_preproc" >&6
13080 # So? What about this header?
13081 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13082 yes:no: )
13083 { echo "$as_me:$LINENO: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13084 echo "$as_me: WARNING: zlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13085 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the compiler's result" >&5
13086 echo "$as_me: WARNING: zlib.h: proceeding with the compiler's result" >&2;}
13087 ac_header_preproc=yes
13089 no:yes:* )
13090 { echo "$as_me:$LINENO: WARNING: zlib.h: present but cannot be compiled" >&5
13091 echo "$as_me: WARNING: zlib.h: present but cannot be compiled" >&2;}
13092 { echo "$as_me:$LINENO: WARNING: zlib.h: check for missing prerequisite headers?" >&5
13093 echo "$as_me: WARNING: zlib.h: check for missing prerequisite headers?" >&2;}
13094 { echo "$as_me:$LINENO: WARNING: zlib.h: see the Autoconf documentation" >&5
13095 echo "$as_me: WARNING: zlib.h: see the Autoconf documentation" >&2;}
13096 { echo "$as_me:$LINENO: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&5
13097 echo "$as_me: WARNING: zlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: zlib.h: proceeding with the preprocessor's result" >&5
13099 echo "$as_me: WARNING: zlib.h: proceeding with the preprocessor's result" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: zlib.h: in the future, the compiler will take precedence" >&5
13101 echo "$as_me: WARNING: zlib.h: in the future, the compiler will take precedence" >&2;}
13103 cat <<\_ASBOX
13104 ## ------------------------------------------ ##
13105 ## Report this to the AC_PACKAGE_NAME lists. ##
13106 ## ------------------------------------------ ##
13107 _ASBOX
13109 sed "s/^/$as_me: WARNING: /" >&2
13111 esac
13112 echo "$as_me:$LINENO: checking for zlib.h" >&5
13113 echo $ECHO_N "checking for zlib.h... $ECHO_C" >&6
13114 if test "${ac_cv_header_zlib_h+set}" = set; then
13115 echo $ECHO_N "(cached) $ECHO_C" >&6
13116 else
13117 ac_cv_header_zlib_h=$ac_header_preproc
13119 echo "$as_me:$LINENO: result: $ac_cv_header_zlib_h" >&5
13120 echo "${ECHO_T}$ac_cv_header_zlib_h" >&6
13123 if test $ac_cv_header_zlib_h = yes; then
13125 else
13126 { { echo "$as_me:$LINENO: error: zlib.h not found. install zlib" >&5
13127 echo "$as_me: error: zlib.h not found. install zlib" >&2;}
13128 { (exit 1); exit 1; }; }
13132 echo "$as_me:$LINENO: checking for deflate in -lz" >&5
13133 echo $ECHO_N "checking for deflate in -lz... $ECHO_C" >&6
13134 if test "${ac_cv_lib_z_deflate+set}" = set; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 else
13137 ac_check_lib_save_LIBS=$LIBS
13138 LIBS="-lz $LIBS"
13139 cat >conftest.$ac_ext <<_ACEOF
13140 /* confdefs.h. */
13141 _ACEOF
13142 cat confdefs.h >>conftest.$ac_ext
13143 cat >>conftest.$ac_ext <<_ACEOF
13144 /* end confdefs.h. */
13146 /* Override any gcc2 internal prototype to avoid an error. */
13147 #ifdef __cplusplus
13148 extern "C"
13149 #endif
13150 /* We use char because int might match the return type of a gcc2
13151 builtin and then its argument prototype would still apply. */
13152 char deflate ();
13154 main ()
13156 deflate ();
13158 return 0;
13160 _ACEOF
13161 rm -f conftest.$ac_objext conftest$ac_exeext
13162 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13163 (eval $ac_link) 2>conftest.er1
13164 ac_status=$?
13165 grep -v '^ *+' conftest.er1 >conftest.err
13166 rm -f conftest.er1
13167 cat conftest.err >&5
13168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13169 (exit $ac_status); } &&
13170 { ac_try='test -z "$ac_c_werror_flag"
13171 || test ! -s conftest.err'
13172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13173 (eval $ac_try) 2>&5
13174 ac_status=$?
13175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13176 (exit $ac_status); }; } &&
13177 { ac_try='test -s conftest$ac_exeext'
13178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13179 (eval $ac_try) 2>&5
13180 ac_status=$?
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); }; }; then
13183 ac_cv_lib_z_deflate=yes
13184 else
13185 echo "$as_me: failed program was:" >&5
13186 sed 's/^/| /' conftest.$ac_ext >&5
13188 ac_cv_lib_z_deflate=no
13190 rm -f conftest.err conftest.$ac_objext \
13191 conftest$ac_exeext conftest.$ac_ext
13192 LIBS=$ac_check_lib_save_LIBS
13194 echo "$as_me:$LINENO: result: $ac_cv_lib_z_deflate" >&5
13195 echo "${ECHO_T}$ac_cv_lib_z_deflate" >&6
13196 if test $ac_cv_lib_z_deflate = yes; then
13197 ZLIB=-lz
13198 else
13199 { { echo "$as_me:$LINENO: error: zlib not found or functional" >&5
13200 echo "$as_me: error: zlib not found or functional" >&2;}
13201 { (exit 1); exit 1; }; }
13204 else
13205 echo "$as_me:$LINENO: result: internal" >&5
13206 echo "${ECHO_T}internal" >&6
13207 SYSTEM_ZLIB=NO
13208 BUILD_TYPE="$BUILD_TYPE ZLIB"
13212 echo "$as_me:$LINENO: checking which jpeg to use" >&5
13213 echo $ECHO_N "checking which jpeg to use... $ECHO_C" >&6
13214 if test -n "$with_system_jpeg" -o -n "$with_system_libs" && \
13215 test "$with_system_jpeg" != "no"; then
13216 echo "$as_me:$LINENO: result: external" >&5
13217 echo "${ECHO_T}external" >&6
13218 SYSTEM_JPEG=YES
13219 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13220 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13221 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13222 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13223 echo $ECHO_N "(cached) $ECHO_C" >&6
13225 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13226 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13227 else
13228 # Is the header compilable?
13229 echo "$as_me:$LINENO: checking jpeglib.h usability" >&5
13230 echo $ECHO_N "checking jpeglib.h usability... $ECHO_C" >&6
13231 cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 $ac_includes_default
13238 #include <jpeglib.h>
13239 _ACEOF
13240 rm -f conftest.$ac_objext
13241 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13242 (eval $ac_compile) 2>conftest.er1
13243 ac_status=$?
13244 grep -v '^ *+' conftest.er1 >conftest.err
13245 rm -f conftest.er1
13246 cat conftest.err >&5
13247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13248 (exit $ac_status); } &&
13249 { ac_try='test -z "$ac_c_werror_flag"
13250 || test ! -s conftest.err'
13251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13252 (eval $ac_try) 2>&5
13253 ac_status=$?
13254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13255 (exit $ac_status); }; } &&
13256 { ac_try='test -s conftest.$ac_objext'
13257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13258 (eval $ac_try) 2>&5
13259 ac_status=$?
13260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13261 (exit $ac_status); }; }; then
13262 ac_header_compiler=yes
13263 else
13264 echo "$as_me: failed program was:" >&5
13265 sed 's/^/| /' conftest.$ac_ext >&5
13267 ac_header_compiler=no
13269 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13270 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13271 echo "${ECHO_T}$ac_header_compiler" >&6
13273 # Is the header present?
13274 echo "$as_me:$LINENO: checking jpeglib.h presence" >&5
13275 echo $ECHO_N "checking jpeglib.h presence... $ECHO_C" >&6
13276 cat >conftest.$ac_ext <<_ACEOF
13277 /* confdefs.h. */
13278 _ACEOF
13279 cat confdefs.h >>conftest.$ac_ext
13280 cat >>conftest.$ac_ext <<_ACEOF
13281 /* end confdefs.h. */
13282 #include <jpeglib.h>
13283 _ACEOF
13284 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13285 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13286 ac_status=$?
13287 grep -v '^ *+' conftest.er1 >conftest.err
13288 rm -f conftest.er1
13289 cat conftest.err >&5
13290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13291 (exit $ac_status); } >/dev/null; then
13292 if test -s conftest.err; then
13293 ac_cpp_err=$ac_c_preproc_warn_flag
13294 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13295 else
13296 ac_cpp_err=
13298 else
13299 ac_cpp_err=yes
13301 if test -z "$ac_cpp_err"; then
13302 ac_header_preproc=yes
13303 else
13304 echo "$as_me: failed program was:" >&5
13305 sed 's/^/| /' conftest.$ac_ext >&5
13307 ac_header_preproc=no
13309 rm -f conftest.err conftest.$ac_ext
13310 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13311 echo "${ECHO_T}$ac_header_preproc" >&6
13313 # So? What about this header?
13314 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13315 yes:no: )
13316 { echo "$as_me:$LINENO: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13317 echo "$as_me: WARNING: jpeglib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13318 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the compiler's result" >&5
13319 echo "$as_me: WARNING: jpeglib.h: proceeding with the compiler's result" >&2;}
13320 ac_header_preproc=yes
13322 no:yes:* )
13323 { echo "$as_me:$LINENO: WARNING: jpeglib.h: present but cannot be compiled" >&5
13324 echo "$as_me: WARNING: jpeglib.h: present but cannot be compiled" >&2;}
13325 { echo "$as_me:$LINENO: WARNING: jpeglib.h: check for missing prerequisite headers?" >&5
13326 echo "$as_me: WARNING: jpeglib.h: check for missing prerequisite headers?" >&2;}
13327 { echo "$as_me:$LINENO: WARNING: jpeglib.h: see the Autoconf documentation" >&5
13328 echo "$as_me: WARNING: jpeglib.h: see the Autoconf documentation" >&2;}
13329 { echo "$as_me:$LINENO: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&5
13330 echo "$as_me: WARNING: jpeglib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&5
13332 echo "$as_me: WARNING: jpeglib.h: proceeding with the preprocessor's result" >&2;}
13333 { echo "$as_me:$LINENO: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&5
13334 echo "$as_me: WARNING: jpeglib.h: in the future, the compiler will take precedence" >&2;}
13336 cat <<\_ASBOX
13337 ## ------------------------------------------ ##
13338 ## Report this to the AC_PACKAGE_NAME lists. ##
13339 ## ------------------------------------------ ##
13340 _ASBOX
13342 sed "s/^/$as_me: WARNING: /" >&2
13344 esac
13345 echo "$as_me:$LINENO: checking for jpeglib.h" >&5
13346 echo $ECHO_N "checking for jpeglib.h... $ECHO_C" >&6
13347 if test "${ac_cv_header_jpeglib_h+set}" = set; then
13348 echo $ECHO_N "(cached) $ECHO_C" >&6
13349 else
13350 ac_cv_header_jpeglib_h=$ac_header_preproc
13352 echo "$as_me:$LINENO: result: $ac_cv_header_jpeglib_h" >&5
13353 echo "${ECHO_T}$ac_cv_header_jpeglib_h" >&6
13356 if test $ac_cv_header_jpeglib_h = yes; then
13358 else
13359 { { echo "$as_me:$LINENO: error: jpeg.h not found. install libjpeg" >&5
13360 echo "$as_me: error: jpeg.h not found. install libjpeg" >&2;}
13361 { (exit 1); exit 1; }; }
13365 echo "$as_me:$LINENO: checking for jpeg_resync_to_restart in -ljpeg" >&5
13366 echo $ECHO_N "checking for jpeg_resync_to_restart in -ljpeg... $ECHO_C" >&6
13367 if test "${ac_cv_lib_jpeg_jpeg_resync_to_restart+set}" = set; then
13368 echo $ECHO_N "(cached) $ECHO_C" >&6
13369 else
13370 ac_check_lib_save_LIBS=$LIBS
13371 LIBS="-ljpeg $LIBS"
13372 cat >conftest.$ac_ext <<_ACEOF
13373 /* confdefs.h. */
13374 _ACEOF
13375 cat confdefs.h >>conftest.$ac_ext
13376 cat >>conftest.$ac_ext <<_ACEOF
13377 /* end confdefs.h. */
13379 /* Override any gcc2 internal prototype to avoid an error. */
13380 #ifdef __cplusplus
13381 extern "C"
13382 #endif
13383 /* We use char because int might match the return type of a gcc2
13384 builtin and then its argument prototype would still apply. */
13385 char jpeg_resync_to_restart ();
13387 main ()
13389 jpeg_resync_to_restart ();
13391 return 0;
13393 _ACEOF
13394 rm -f conftest.$ac_objext conftest$ac_exeext
13395 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13396 (eval $ac_link) 2>conftest.er1
13397 ac_status=$?
13398 grep -v '^ *+' conftest.er1 >conftest.err
13399 rm -f conftest.er1
13400 cat conftest.err >&5
13401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13402 (exit $ac_status); } &&
13403 { ac_try='test -z "$ac_c_werror_flag"
13404 || test ! -s conftest.err'
13405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13406 (eval $ac_try) 2>&5
13407 ac_status=$?
13408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409 (exit $ac_status); }; } &&
13410 { ac_try='test -s conftest$ac_exeext'
13411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13412 (eval $ac_try) 2>&5
13413 ac_status=$?
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); }; }; then
13416 ac_cv_lib_jpeg_jpeg_resync_to_restart=yes
13417 else
13418 echo "$as_me: failed program was:" >&5
13419 sed 's/^/| /' conftest.$ac_ext >&5
13421 ac_cv_lib_jpeg_jpeg_resync_to_restart=no
13423 rm -f conftest.err conftest.$ac_objext \
13424 conftest$ac_exeext conftest.$ac_ext
13425 LIBS=$ac_check_lib_save_LIBS
13427 echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_resync_to_restart" >&5
13428 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_resync_to_restart" >&6
13429 if test $ac_cv_lib_jpeg_jpeg_resync_to_restart = yes; then
13430 JPEG3RDLIB=-ljpeg
13431 else
13432 echo "$as_me:$LINENO: checking jpeg library not found or fuctional" >&5
13433 echo $ECHO_N "checking jpeg library not found or fuctional... $ECHO_C" >&6
13436 else
13437 echo "$as_me:$LINENO: result: internal" >&5
13438 echo "${ECHO_T}internal" >&6
13439 SYSTEM_JPEG=NO
13440 BUILD_TYPE="$BUILD_TYPE JPEG"
13444 echo "$as_me:$LINENO: checking which expat to use" >&5
13445 echo $ECHO_N "checking which expat to use... $ECHO_C" >&6
13446 if test -n "$with_system_expat" -o -n "$with_system_libs" && \
13447 test "$with_system_expat" != "no"; then
13448 echo "$as_me:$LINENO: result: external" >&5
13449 echo "${ECHO_T}external" >&6
13450 SYSTEM_EXPAT=YES
13451 if test "${ac_cv_header_expat_h+set}" = set; then
13452 echo "$as_me:$LINENO: checking for expat.h" >&5
13453 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
13454 if test "${ac_cv_header_expat_h+set}" = set; then
13455 echo $ECHO_N "(cached) $ECHO_C" >&6
13457 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
13458 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
13459 else
13460 # Is the header compilable?
13461 echo "$as_me:$LINENO: checking expat.h usability" >&5
13462 echo $ECHO_N "checking expat.h usability... $ECHO_C" >&6
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 $ac_includes_default
13470 #include <expat.h>
13471 _ACEOF
13472 rm -f conftest.$ac_objext
13473 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13474 (eval $ac_compile) 2>conftest.er1
13475 ac_status=$?
13476 grep -v '^ *+' conftest.er1 >conftest.err
13477 rm -f conftest.er1
13478 cat conftest.err >&5
13479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13480 (exit $ac_status); } &&
13481 { ac_try='test -z "$ac_c_werror_flag"
13482 || test ! -s conftest.err'
13483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13484 (eval $ac_try) 2>&5
13485 ac_status=$?
13486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13487 (exit $ac_status); }; } &&
13488 { ac_try='test -s conftest.$ac_objext'
13489 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13490 (eval $ac_try) 2>&5
13491 ac_status=$?
13492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13493 (exit $ac_status); }; }; then
13494 ac_header_compiler=yes
13495 else
13496 echo "$as_me: failed program was:" >&5
13497 sed 's/^/| /' conftest.$ac_ext >&5
13499 ac_header_compiler=no
13501 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
13502 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13503 echo "${ECHO_T}$ac_header_compiler" >&6
13505 # Is the header present?
13506 echo "$as_me:$LINENO: checking expat.h presence" >&5
13507 echo $ECHO_N "checking expat.h presence... $ECHO_C" >&6
13508 cat >conftest.$ac_ext <<_ACEOF
13509 /* confdefs.h. */
13510 _ACEOF
13511 cat confdefs.h >>conftest.$ac_ext
13512 cat >>conftest.$ac_ext <<_ACEOF
13513 /* end confdefs.h. */
13514 #include <expat.h>
13515 _ACEOF
13516 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
13517 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
13518 ac_status=$?
13519 grep -v '^ *+' conftest.er1 >conftest.err
13520 rm -f conftest.er1
13521 cat conftest.err >&5
13522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13523 (exit $ac_status); } >/dev/null; then
13524 if test -s conftest.err; then
13525 ac_cpp_err=$ac_c_preproc_warn_flag
13526 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13527 else
13528 ac_cpp_err=
13530 else
13531 ac_cpp_err=yes
13533 if test -z "$ac_cpp_err"; then
13534 ac_header_preproc=yes
13535 else
13536 echo "$as_me: failed program was:" >&5
13537 sed 's/^/| /' conftest.$ac_ext >&5
13539 ac_header_preproc=no
13541 rm -f conftest.err conftest.$ac_ext
13542 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13543 echo "${ECHO_T}$ac_header_preproc" >&6
13545 # So? What about this header?
13546 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13547 yes:no: )
13548 { echo "$as_me:$LINENO: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&5
13549 echo "$as_me: WARNING: expat.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13550 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the compiler's result" >&5
13551 echo "$as_me: WARNING: expat.h: proceeding with the compiler's result" >&2;}
13552 ac_header_preproc=yes
13554 no:yes:* )
13555 { echo "$as_me:$LINENO: WARNING: expat.h: present but cannot be compiled" >&5
13556 echo "$as_me: WARNING: expat.h: present but cannot be compiled" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: expat.h: check for missing prerequisite headers?" >&5
13558 echo "$as_me: WARNING: expat.h: check for missing prerequisite headers?" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: expat.h: see the Autoconf documentation" >&5
13560 echo "$as_me: WARNING: expat.h: see the Autoconf documentation" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&5
13562 echo "$as_me: WARNING: expat.h: section \"Present But Cannot Be Compiled\"" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: expat.h: proceeding with the preprocessor's result" >&5
13564 echo "$as_me: WARNING: expat.h: proceeding with the preprocessor's result" >&2;}
13565 { echo "$as_me:$LINENO: WARNING: expat.h: in the future, the compiler will take precedence" >&5
13566 echo "$as_me: WARNING: expat.h: in the future, the compiler will take precedence" >&2;}
13568 cat <<\_ASBOX
13569 ## ------------------------------------------ ##
13570 ## Report this to the AC_PACKAGE_NAME lists. ##
13571 ## ------------------------------------------ ##
13572 _ASBOX
13574 sed "s/^/$as_me: WARNING: /" >&2
13576 esac
13577 echo "$as_me:$LINENO: checking for expat.h" >&5
13578 echo $ECHO_N "checking for expat.h... $ECHO_C" >&6
13579 if test "${ac_cv_header_expat_h+set}" = set; then
13580 echo $ECHO_N "(cached) $ECHO_C" >&6
13581 else
13582 ac_cv_header_expat_h=$ac_header_preproc
13584 echo "$as_me:$LINENO: result: $ac_cv_header_expat_h" >&5
13585 echo "${ECHO_T}$ac_cv_header_expat_h" >&6
13588 if test $ac_cv_header_expat_h = yes; then
13590 else
13591 { { echo "$as_me:$LINENO: error: expat.h not found. install expat" >&5
13592 echo "$as_me: error: expat.h not found. install expat" >&2;}
13593 { (exit 1); exit 1; }; }
13598 echo "$as_me:$LINENO: checking for XML_ParserCreate in -lexpat" >&5
13599 echo $ECHO_N "checking for XML_ParserCreate in -lexpat... $ECHO_C" >&6
13600 if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then
13601 echo $ECHO_N "(cached) $ECHO_C" >&6
13602 else
13603 ac_check_lib_save_LIBS=$LIBS
13604 LIBS="-lexpat $LIBS"
13605 cat >conftest.$ac_ext <<_ACEOF
13606 /* confdefs.h. */
13607 _ACEOF
13608 cat confdefs.h >>conftest.$ac_ext
13609 cat >>conftest.$ac_ext <<_ACEOF
13610 /* end confdefs.h. */
13612 /* Override any gcc2 internal prototype to avoid an error. */
13613 #ifdef __cplusplus
13614 extern "C"
13615 #endif
13616 /* We use char because int might match the return type of a gcc2
13617 builtin and then its argument prototype would still apply. */
13618 char XML_ParserCreate ();
13620 main ()
13622 XML_ParserCreate ();
13624 return 0;
13626 _ACEOF
13627 rm -f conftest.$ac_objext conftest$ac_exeext
13628 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13629 (eval $ac_link) 2>conftest.er1
13630 ac_status=$?
13631 grep -v '^ *+' conftest.er1 >conftest.err
13632 rm -f conftest.er1
13633 cat conftest.err >&5
13634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13635 (exit $ac_status); } &&
13636 { ac_try='test -z "$ac_c_werror_flag"
13637 || test ! -s conftest.err'
13638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13639 (eval $ac_try) 2>&5
13640 ac_status=$?
13641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13642 (exit $ac_status); }; } &&
13643 { ac_try='test -s conftest$ac_exeext'
13644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13645 (eval $ac_try) 2>&5
13646 ac_status=$?
13647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13648 (exit $ac_status); }; }; then
13649 ac_cv_lib_expat_XML_ParserCreate=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13654 ac_cv_lib_expat_XML_ParserCreate=no
13656 rm -f conftest.err conftest.$ac_objext \
13657 conftest$ac_exeext conftest.$ac_ext
13658 LIBS=$ac_check_lib_save_LIBS
13660 echo "$as_me:$LINENO: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
13661 echo "${ECHO_T}$ac_cv_lib_expat_XML_ParserCreate" >&6
13662 if test $ac_cv_lib_expat_XML_ParserCreate = yes; then
13663 cat >>confdefs.h <<_ACEOF
13664 #define HAVE_LIBEXPAT 1
13665 _ACEOF
13667 LIBS="-lexpat $LIBS"
13669 else
13670 echo "$as_me:$LINENO: result: expat library not found or functional." >&5
13671 echo "${ECHO_T}expat library not found or functional." >&6
13674 else
13675 echo "$as_me:$LINENO: result: internal" >&5
13676 echo "${ECHO_T}internal" >&6
13677 SYSTEM_EXPAT=NO
13678 BUILD_TYPE="$BUILD_TYPE EXPAT"
13682 echo "$as_me:$LINENO: checking which libwpd to use" >&5
13683 echo $ECHO_N "checking which libwpd to use... $ECHO_C" >&6
13684 if test -n "$with_system_libwpd" -o -n "$with_system_libs" && \
13685 test "$with_system_libwpd" != "no"; then
13686 echo "$as_me:$LINENO: result: external" >&5
13687 echo "${ECHO_T}external" >&6
13688 SYSTEM_LIBWPD=YES
13690 succeeded=no
13692 if test -z "$PKG_CONFIG"; then
13693 # Extract the first word of "pkg-config", so it can be a program name with args.
13694 set dummy pkg-config; ac_word=$2
13695 echo "$as_me:$LINENO: checking for $ac_word" >&5
13696 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13697 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13698 echo $ECHO_N "(cached) $ECHO_C" >&6
13699 else
13700 case $PKG_CONFIG in
13701 [\\/]* | ?:[\\/]*)
13702 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13705 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13706 for as_dir in $PATH
13708 IFS=$as_save_IFS
13709 test -z "$as_dir" && as_dir=.
13710 for ac_exec_ext in '' $ac_executable_extensions; do
13711 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13712 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13713 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13714 break 2
13716 done
13717 done
13719 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13721 esac
13723 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13725 if test -n "$PKG_CONFIG"; then
13726 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13727 echo "${ECHO_T}$PKG_CONFIG" >&6
13728 else
13729 echo "$as_me:$LINENO: result: no" >&5
13730 echo "${ECHO_T}no" >&6
13735 if test "$PKG_CONFIG" = "no" ; then
13736 echo "*** The pkg-config script could not be found. Make sure it is"
13737 echo "*** in your path, or set the PKG_CONFIG environment variable"
13738 echo "*** to the full path to pkg-config."
13739 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13740 else
13741 PKG_CONFIG_MIN_VERSION=0.9.0
13742 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13743 echo "$as_me:$LINENO: checking for libwpd-0.8 " >&5
13744 echo $ECHO_N "checking for libwpd-0.8 ... $ECHO_C" >&6
13746 if $PKG_CONFIG --exists "libwpd-0.8 " ; then
13747 echo "$as_me:$LINENO: result: yes" >&5
13748 echo "${ECHO_T}yes" >&6
13749 succeeded=yes
13751 echo "$as_me:$LINENO: checking LIBWPD_CFLAGS" >&5
13752 echo $ECHO_N "checking LIBWPD_CFLAGS... $ECHO_C" >&6
13753 LIBWPD_CFLAGS=`$PKG_CONFIG --cflags "libwpd-0.8 "`
13754 echo "$as_me:$LINENO: result: $LIBWPD_CFLAGS" >&5
13755 echo "${ECHO_T}$LIBWPD_CFLAGS" >&6
13757 echo "$as_me:$LINENO: checking LIBWPD_LIBS" >&5
13758 echo $ECHO_N "checking LIBWPD_LIBS... $ECHO_C" >&6
13759 LIBWPD_LIBS=`$PKG_CONFIG --libs "libwpd-0.8 "`
13760 echo "$as_me:$LINENO: result: $LIBWPD_LIBS" >&5
13761 echo "${ECHO_T}$LIBWPD_LIBS" >&6
13762 else
13763 LIBWPD_CFLAGS=""
13764 LIBWPD_LIBS=""
13765 ## If we have a custom action on failure, don't print errors, but
13766 ## do set a variable so people can do so.
13767 LIBWPD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwpd-0.8 "`
13768 echo $LIBWPD_PKG_ERRORS
13773 else
13774 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13775 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13779 if test $succeeded = yes; then
13781 else
13782 { { echo "$as_me:$LINENO: error: Library requirements (libwpd-0.8 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13783 echo "$as_me: error: Library requirements (libwpd-0.8 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13784 { (exit 1); exit 1; }; }
13787 else
13788 echo "$as_me:$LINENO: result: internal" >&5
13789 echo "${ECHO_T}internal" >&6
13790 SYSTEM_LIBWPD=NO
13791 BUILD_TYPE="$BUILD_TYPE LIBWPD"
13797 echo "$as_me:$LINENO: checking which cppunit to use" >&5
13798 echo $ECHO_N "checking which cppunit to use... $ECHO_C" >&6
13799 if test -n "$with_system_cppunit" -o -n "$with_system_libs" && \
13800 test "$with_system_cppunit" != "no"; then
13801 echo "$as_me:$LINENO: result: external" >&5
13802 echo "${ECHO_T}external" >&6
13803 SYSTEM_CPPUNIT=YES
13804 # might work for earlier, too but go sure. We didn't have
13805 # a system-cppunit before the first version using a proper cppunit
13806 # (and that being 1.12.1) anyway
13808 succeeded=no
13810 if test -z "$PKG_CONFIG"; then
13811 # Extract the first word of "pkg-config", so it can be a program name with args.
13812 set dummy pkg-config; ac_word=$2
13813 echo "$as_me:$LINENO: checking for $ac_word" >&5
13814 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13815 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13816 echo $ECHO_N "(cached) $ECHO_C" >&6
13817 else
13818 case $PKG_CONFIG in
13819 [\\/]* | ?:[\\/]*)
13820 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13824 for as_dir in $PATH
13826 IFS=$as_save_IFS
13827 test -z "$as_dir" && as_dir=.
13828 for ac_exec_ext in '' $ac_executable_extensions; do
13829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13830 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13832 break 2
13834 done
13835 done
13837 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13839 esac
13841 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13843 if test -n "$PKG_CONFIG"; then
13844 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13845 echo "${ECHO_T}$PKG_CONFIG" >&6
13846 else
13847 echo "$as_me:$LINENO: result: no" >&5
13848 echo "${ECHO_T}no" >&6
13853 if test "$PKG_CONFIG" = "no" ; then
13854 echo "*** The pkg-config script could not be found. Make sure it is"
13855 echo "*** in your path, or set the PKG_CONFIG environment variable"
13856 echo "*** to the full path to pkg-config."
13857 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13858 else
13859 PKG_CONFIG_MIN_VERSION=0.9.0
13860 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13861 echo "$as_me:$LINENO: checking for cppunit >= 1.12.1 " >&5
13862 echo $ECHO_N "checking for cppunit >= 1.12.1 ... $ECHO_C" >&6
13864 if $PKG_CONFIG --exists "cppunit >= 1.12.1 " ; then
13865 echo "$as_me:$LINENO: result: yes" >&5
13866 echo "${ECHO_T}yes" >&6
13867 succeeded=yes
13869 echo "$as_me:$LINENO: checking CPPUNIT_CFLAGS" >&5
13870 echo $ECHO_N "checking CPPUNIT_CFLAGS... $ECHO_C" >&6
13871 CPPUNIT_CFLAGS=`$PKG_CONFIG --cflags "cppunit >= 1.12.1 "`
13872 echo "$as_me:$LINENO: result: $CPPUNIT_CFLAGS" >&5
13873 echo "${ECHO_T}$CPPUNIT_CFLAGS" >&6
13875 echo "$as_me:$LINENO: checking CPPUNIT_LIBS" >&5
13876 echo $ECHO_N "checking CPPUNIT_LIBS... $ECHO_C" >&6
13877 CPPUNIT_LIBS=`$PKG_CONFIG --libs "cppunit >= 1.12.1 "`
13878 echo "$as_me:$LINENO: result: $CPPUNIT_LIBS" >&5
13879 echo "${ECHO_T}$CPPUNIT_LIBS" >&6
13880 else
13881 CPPUNIT_CFLAGS=""
13882 CPPUNIT_LIBS=""
13883 ## If we have a custom action on failure, don't print errors, but
13884 ## do set a variable so people can do so.
13885 CPPUNIT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cppunit >= 1.12.1 "`
13886 echo $CPPUNIT_PKG_ERRORS
13891 else
13892 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13893 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13897 if test $succeeded = yes; then
13899 else
13900 { { echo "$as_me:$LINENO: error: Library requirements (cppunit >= 1.12.1 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
13901 echo "$as_me: error: Library requirements (cppunit >= 1.12.1 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
13902 { (exit 1); exit 1; }; }
13905 echo "$as_me:$LINENO: checking STL compatibility" >&5
13906 echo $ECHO_N "checking STL compatibility... $ECHO_C" >&6
13907 if test "$WITH_STLPORT" != "no"; then
13908 { { echo "$as_me:$LINENO: error: to use system cppunit you need to use --without-stlport" >&5
13909 echo "$as_me: error: to use system cppunit you need to use --without-stlport" >&2;}
13910 { (exit 1); exit 1; }; }
13911 else
13912 echo "$as_me:$LINENO: result: OK" >&5
13913 echo "${ECHO_T}OK" >&6
13915 else
13916 echo "$as_me:$LINENO: result: internal" >&5
13917 echo "${ECHO_T}internal" >&6
13918 SYSTEM_CPPUNIT=NO
13919 BUILD_TYPE="$BUILD_TYPE CPPUNIT"
13925 if test "$test_freetype" = "yes"; then
13926 echo "$as_me:$LINENO: checking whether freetype is available" >&5
13927 echo $ECHO_N "checking whether freetype is available... $ECHO_C" >&6
13929 succeeded=no
13931 if test -z "$PKG_CONFIG"; then
13932 # Extract the first word of "pkg-config", so it can be a program name with args.
13933 set dummy pkg-config; ac_word=$2
13934 echo "$as_me:$LINENO: checking for $ac_word" >&5
13935 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
13936 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13937 echo $ECHO_N "(cached) $ECHO_C" >&6
13938 else
13939 case $PKG_CONFIG in
13940 [\\/]* | ?:[\\/]*)
13941 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13945 for as_dir in $PATH
13947 IFS=$as_save_IFS
13948 test -z "$as_dir" && as_dir=.
13949 for ac_exec_ext in '' $ac_executable_extensions; do
13950 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13951 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13952 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13953 break 2
13955 done
13956 done
13958 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13960 esac
13962 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13964 if test -n "$PKG_CONFIG"; then
13965 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13966 echo "${ECHO_T}$PKG_CONFIG" >&6
13967 else
13968 echo "$as_me:$LINENO: result: no" >&5
13969 echo "${ECHO_T}no" >&6
13974 if test "$PKG_CONFIG" = "no" ; then
13975 echo "*** The pkg-config script could not be found. Make sure it is"
13976 echo "*** in your path, or set the PKG_CONFIG environment variable"
13977 echo "*** to the full path to pkg-config."
13978 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
13979 else
13980 PKG_CONFIG_MIN_VERSION=0.9.0
13981 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13982 echo "$as_me:$LINENO: checking for freetype2 >= 2.0 " >&5
13983 echo $ECHO_N "checking for freetype2 >= 2.0 ... $ECHO_C" >&6
13985 if $PKG_CONFIG --exists "freetype2 >= 2.0 " ; then
13986 echo "$as_me:$LINENO: result: yes" >&5
13987 echo "${ECHO_T}yes" >&6
13988 succeeded=yes
13990 echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
13991 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6
13992 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0 "`
13993 echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
13994 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6
13996 echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
13997 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6
13998 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0 "`
13999 echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
14000 echo "${ECHO_T}$FREETYPE_LIBS" >&6
14001 else
14002 FREETYPE_CFLAGS=""
14003 FREETYPE_LIBS=""
14004 ## If we have a custom action on failure, don't print errors, but
14005 ## do set a variable so people can do so.
14006 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.0 "`
14007 echo $FREETYPE_PKG_ERRORS
14012 else
14013 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14014 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14018 if test $succeeded = yes; then
14020 else
14021 { { echo "$as_me:$LINENO: error: Library requirements (freetype2 >= 2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14022 echo "$as_me: error: Library requirements (freetype2 >= 2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14023 { (exit 1); exit 1; }; }
14030 if test "$test_freetype" = "yes"; then
14031 save_CPPFLAGS="$CPPFLAGS"
14032 save_LDFLAGS="$LDFLAGS"
14033 save_LIBS="$LIBS"
14034 CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
14035 LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
14036 echo "$as_me:$LINENO: checking for FT_GlyphSlot_Embolden in -lfreetype" >&5
14037 echo $ECHO_N "checking for FT_GlyphSlot_Embolden in -lfreetype... $ECHO_C" >&6
14038 if test "${ac_cv_lib_freetype_FT_GlyphSlot_Embolden+set}" = set; then
14039 echo $ECHO_N "(cached) $ECHO_C" >&6
14040 else
14041 ac_check_lib_save_LIBS=$LIBS
14042 LIBS="-lfreetype $LIBS"
14043 cat >conftest.$ac_ext <<_ACEOF
14044 /* confdefs.h. */
14045 _ACEOF
14046 cat confdefs.h >>conftest.$ac_ext
14047 cat >>conftest.$ac_ext <<_ACEOF
14048 /* end confdefs.h. */
14050 /* Override any gcc2 internal prototype to avoid an error. */
14051 #ifdef __cplusplus
14052 extern "C"
14053 #endif
14054 /* We use char because int might match the return type of a gcc2
14055 builtin and then its argument prototype would still apply. */
14056 char FT_GlyphSlot_Embolden ();
14058 main ()
14060 FT_GlyphSlot_Embolden ();
14062 return 0;
14064 _ACEOF
14065 rm -f conftest.$ac_objext conftest$ac_exeext
14066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14067 (eval $ac_link) 2>conftest.er1
14068 ac_status=$?
14069 grep -v '^ *+' conftest.er1 >conftest.err
14070 rm -f conftest.er1
14071 cat conftest.err >&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); } &&
14074 { ac_try='test -z "$ac_c_werror_flag"
14075 || test ! -s conftest.err'
14076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14077 (eval $ac_try) 2>&5
14078 ac_status=$?
14079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14080 (exit $ac_status); }; } &&
14081 { ac_try='test -s conftest$ac_exeext'
14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14083 (eval $ac_try) 2>&5
14084 ac_status=$?
14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14086 (exit $ac_status); }; }; then
14087 ac_cv_lib_freetype_FT_GlyphSlot_Embolden=yes
14088 else
14089 echo "$as_me: failed program was:" >&5
14090 sed 's/^/| /' conftest.$ac_ext >&5
14092 ac_cv_lib_freetype_FT_GlyphSlot_Embolden=no
14094 rm -f conftest.err conftest.$ac_objext \
14095 conftest$ac_exeext conftest.$ac_ext
14096 LIBS=$ac_check_lib_save_LIBS
14098 echo "$as_me:$LINENO: result: $ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&5
14099 echo "${ECHO_T}$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&6
14100 if test $ac_cv_lib_freetype_FT_GlyphSlot_Embolden = yes; then
14101 USE_FT_EMBOLDEN="YES"
14102 else
14103 USE_FT_EMBOLDEN="NO"
14106 LDFLAGS="$save_LDFLAGS"
14107 CPPFLAGS="$save_CPPFLAGS"
14108 LIBS="$save_LIBS"
14112 if test -n "$with_system_libxslt" -o -n "$with_system_libs" && \
14113 test "$with_system_libxslt" != "no"; then
14114 if test -z "$with_system_libxml" -a -z "$with_system_libs" || \
14115 test "$with_system_libxml" = "no"; then
14116 # somehow AC_MSG_WARN won't work...
14117 echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml"
14118 echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml" >> warn
14119 with_system_libxml=yes
14122 if test -n "$with_system_libxml" -o -n "$with_system_libs" && \
14123 test "$with_system_libxml" != "no"; then
14124 if test -z "$with_system_libxslt" -a -z "$with_system_libs" || \
14125 test "$with_system_libxslt" = "no"; then
14126 # somehow AC_MSG_WARN won't work...
14127 echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt"
14128 echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt" >> warn
14129 with_system_libxslt=yes
14133 echo "$as_me:$LINENO: checking which libxslt to use" >&5
14134 echo $ECHO_N "checking which libxslt to use... $ECHO_C" >&6
14135 if test -n "$with_system_libxslt" -o -n "$with_system_libs" -o \
14136 "$_os" = "Darwin" && \
14137 test "$with_system_libxslt" != "no"; then
14138 echo "$as_me:$LINENO: result: external" >&5
14139 echo "${ECHO_T}external" >&6
14140 SYSTEM_LIBXSLT=YES
14142 if test "$_os" = "Darwin"; then
14143 echo "$as_me:$LINENO: checking LIBXSLT_CFLAGS" >&5
14144 echo $ECHO_N "checking LIBXSLT_CFLAGS... $ECHO_C" >&6
14145 LIBXSLT_CFLAGS=`xslt-config --cflags`
14146 echo "$as_me:$LINENO: result: $LIBXSLT_CFLAGS" >&5
14147 echo "${ECHO_T}$LIBXSLT_CFLAGS" >&6
14148 echo "$as_me:$LINENO: checking LIBXSLT_LIBS" >&5
14149 echo $ECHO_N "checking LIBXSLT_LIBS... $ECHO_C" >&6
14150 LIBXSLT_LIBS=`xslt-config --libs`
14151 echo "$as_me:$LINENO: result: $LIBXSLT_LIBS" >&5
14152 echo "${ECHO_T}$LIBXSLT_LIBS" >&6
14155 else
14157 succeeded=no
14159 if test -z "$PKG_CONFIG"; then
14160 # Extract the first word of "pkg-config", so it can be a program name with args.
14161 set dummy pkg-config; ac_word=$2
14162 echo "$as_me:$LINENO: checking for $ac_word" >&5
14163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14164 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14165 echo $ECHO_N "(cached) $ECHO_C" >&6
14166 else
14167 case $PKG_CONFIG in
14168 [\\/]* | ?:[\\/]*)
14169 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14173 for as_dir in $PATH
14175 IFS=$as_save_IFS
14176 test -z "$as_dir" && as_dir=.
14177 for ac_exec_ext in '' $ac_executable_extensions; do
14178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14179 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14181 break 2
14183 done
14184 done
14186 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14188 esac
14190 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14192 if test -n "$PKG_CONFIG"; then
14193 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14194 echo "${ECHO_T}$PKG_CONFIG" >&6
14195 else
14196 echo "$as_me:$LINENO: result: no" >&5
14197 echo "${ECHO_T}no" >&6
14202 if test "$PKG_CONFIG" = "no" ; then
14203 echo "*** The pkg-config script could not be found. Make sure it is"
14204 echo "*** in your path, or set the PKG_CONFIG environment variable"
14205 echo "*** to the full path to pkg-config."
14206 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14207 else
14208 PKG_CONFIG_MIN_VERSION=0.9.0
14209 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14210 echo "$as_me:$LINENO: checking for libxslt" >&5
14211 echo $ECHO_N "checking for libxslt... $ECHO_C" >&6
14213 if $PKG_CONFIG --exists "libxslt" ; then
14214 echo "$as_me:$LINENO: result: yes" >&5
14215 echo "${ECHO_T}yes" >&6
14216 succeeded=yes
14218 echo "$as_me:$LINENO: checking LIBXSLT_CFLAGS" >&5
14219 echo $ECHO_N "checking LIBXSLT_CFLAGS... $ECHO_C" >&6
14220 LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt"`
14221 echo "$as_me:$LINENO: result: $LIBXSLT_CFLAGS" >&5
14222 echo "${ECHO_T}$LIBXSLT_CFLAGS" >&6
14224 echo "$as_me:$LINENO: checking LIBXSLT_LIBS" >&5
14225 echo $ECHO_N "checking LIBXSLT_LIBS... $ECHO_C" >&6
14226 LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt"`
14227 echo "$as_me:$LINENO: result: $LIBXSLT_LIBS" >&5
14228 echo "${ECHO_T}$LIBXSLT_LIBS" >&6
14229 else
14230 LIBXSLT_CFLAGS=""
14231 LIBXSLT_LIBS=""
14232 ## If we have a custom action on failure, don't print errors, but
14233 ## do set a variable so people can do so.
14234 LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt"`
14235 echo $LIBXSLT_PKG_ERRORS
14240 else
14241 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14242 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14246 if test $succeeded = yes; then
14248 else
14249 { { echo "$as_me:$LINENO: error: Library requirements (libxslt) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14250 echo "$as_me: error: Library requirements (libxslt) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14251 { (exit 1); exit 1; }; }
14257 # Extract the first word of "xsltproc", so it can be a program name with args.
14258 set dummy xsltproc; ac_word=$2
14259 echo "$as_me:$LINENO: checking for $ac_word" >&5
14260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14261 if test "${ac_cv_path_XSLTPROC+set}" = set; then
14262 echo $ECHO_N "(cached) $ECHO_C" >&6
14263 else
14264 case $XSLTPROC in
14265 [\\/]* | ?:[\\/]*)
14266 ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
14269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14270 for as_dir in $PATH
14272 IFS=$as_save_IFS
14273 test -z "$as_dir" && as_dir=.
14274 for ac_exec_ext in '' $ac_executable_extensions; do
14275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14276 ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
14277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14278 break 2
14280 done
14281 done
14283 test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
14285 esac
14287 XSLTPROC=$ac_cv_path_XSLTPROC
14289 if test -n "$XSLTPROC"; then
14290 echo "$as_me:$LINENO: result: $XSLTPROC" >&5
14291 echo "${ECHO_T}$XSLTPROC" >&6
14292 else
14293 echo "$as_me:$LINENO: result: no" >&5
14294 echo "${ECHO_T}no" >&6
14297 if test "$XSLTPROC" = "no"; then
14298 { { echo "$as_me:$LINENO: error: xsltproc is required" >&5
14299 echo "$as_me: error: xsltproc is required" >&2;}
14300 { (exit 1); exit 1; }; }
14302 else
14303 echo "$as_me:$LINENO: result: internal" >&5
14304 echo "${ECHO_T}internal" >&6
14305 SYSTEM_LIBXSLT=NO
14306 BUILD_TYPE="$BUILD_TYPE LIBXSLT"
14313 echo "$as_me:$LINENO: checking which libxml to use" >&5
14314 echo $ECHO_N "checking which libxml to use... $ECHO_C" >&6
14315 if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \
14316 "$_os" = "Darwin" && \
14317 test "$with_system_libxml" != "no"; then
14318 echo "$as_me:$LINENO: result: external" >&5
14319 echo "${ECHO_T}external" >&6
14320 SYSTEM_LIBXML=YES
14321 if test "$_os" = "Darwin"; then
14322 echo "$as_me:$LINENO: checking LIBXML_CFLAGS" >&5
14323 echo $ECHO_N "checking LIBXML_CFLAGS... $ECHO_C" >&6
14324 LIBXML_CFLAGS=`xml2-config --cflags`
14325 echo "$as_me:$LINENO: result: $LIBXML_CFLAGS" >&5
14326 echo "${ECHO_T}$LIBXML_CFLAGS" >&6
14327 echo "$as_me:$LINENO: checking LIBXML_LIBS" >&5
14328 echo $ECHO_N "checking LIBXML_LIBS... $ECHO_C" >&6
14329 LIBXML_LIBS=`xml2-config --libs`
14330 echo "$as_me:$LINENO: result: $LIBXML_LIBS" >&5
14331 echo "${ECHO_T}$LIBXML_LIBS" >&6
14334 else
14336 succeeded=no
14338 if test -z "$PKG_CONFIG"; then
14339 # Extract the first word of "pkg-config", so it can be a program name with args.
14340 set dummy pkg-config; ac_word=$2
14341 echo "$as_me:$LINENO: checking for $ac_word" >&5
14342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14343 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
14344 echo $ECHO_N "(cached) $ECHO_C" >&6
14345 else
14346 case $PKG_CONFIG in
14347 [\\/]* | ?:[\\/]*)
14348 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
14351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14352 for as_dir in $PATH
14354 IFS=$as_save_IFS
14355 test -z "$as_dir" && as_dir=.
14356 for ac_exec_ext in '' $ac_executable_extensions; do
14357 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14358 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
14359 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14360 break 2
14362 done
14363 done
14365 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
14367 esac
14369 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
14371 if test -n "$PKG_CONFIG"; then
14372 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
14373 echo "${ECHO_T}$PKG_CONFIG" >&6
14374 else
14375 echo "$as_me:$LINENO: result: no" >&5
14376 echo "${ECHO_T}no" >&6
14381 if test "$PKG_CONFIG" = "no" ; then
14382 echo "*** The pkg-config script could not be found. Make sure it is"
14383 echo "*** in your path, or set the PKG_CONFIG environment variable"
14384 echo "*** to the full path to pkg-config."
14385 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
14386 else
14387 PKG_CONFIG_MIN_VERSION=0.9.0
14388 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
14389 echo "$as_me:$LINENO: checking for libxml-2.0 >= 2.0" >&5
14390 echo $ECHO_N "checking for libxml-2.0 >= 2.0... $ECHO_C" >&6
14392 if $PKG_CONFIG --exists "libxml-2.0 >= 2.0" ; then
14393 echo "$as_me:$LINENO: result: yes" >&5
14394 echo "${ECHO_T}yes" >&6
14395 succeeded=yes
14397 echo "$as_me:$LINENO: checking LIBXML_CFLAGS" >&5
14398 echo $ECHO_N "checking LIBXML_CFLAGS... $ECHO_C" >&6
14399 LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0"`
14400 echo "$as_me:$LINENO: result: $LIBXML_CFLAGS" >&5
14401 echo "${ECHO_T}$LIBXML_CFLAGS" >&6
14403 echo "$as_me:$LINENO: checking LIBXML_LIBS" >&5
14404 echo $ECHO_N "checking LIBXML_LIBS... $ECHO_C" >&6
14405 LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0"`
14406 echo "$as_me:$LINENO: result: $LIBXML_LIBS" >&5
14407 echo "${ECHO_T}$LIBXML_LIBS" >&6
14408 else
14409 LIBXML_CFLAGS=""
14410 LIBXML_LIBS=""
14411 ## If we have a custom action on failure, don't print errors, but
14412 ## do set a variable so people can do so.
14413 LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.0"`
14414 echo $LIBXML_PKG_ERRORS
14419 else
14420 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
14421 echo "*** See http://www.freedesktop.org/software/pkgconfig"
14425 if test $succeeded = yes; then
14427 else
14428 { { echo "$as_me:$LINENO: error: Library requirements (libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
14429 echo "$as_me: error: Library requirements (libxml-2.0 >= 2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
14430 { (exit 1); exit 1; }; }
14435 BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"
14436 else
14437 echo "$as_me:$LINENO: result: internal" >&5
14438 echo "${ECHO_T}internal" >&6
14439 SYSTEM_LIBXML=NO
14440 BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
14446 echo "$as_me:$LINENO: checking which python to use" >&5
14447 echo $ECHO_N "checking which python to use... $ECHO_C" >&6
14448 if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
14449 with_system_python=yes
14450 echo "$as_me:$LINENO: result: compiling against MacOSX10.4u.sdk (python version 2.3)" >&5
14451 echo "${ECHO_T}compiling against MacOSX10.4u.sdk (python version 2.3)" >&6
14452 PYTHON_CFLAGS="-I/Developer/SDKs/MacOSX10.4u.sdk/System/Library/Frameworks/Python.framework/Versions/2.3/include/python2.3"
14453 PYTHON_LIBS="-framework Python"
14454 elif test -n "$with_system_python" -o -n "$with_system_libs" && \
14455 test "$with_system_python" != "no"; then
14456 with_system_python=yes
14457 echo "$as_me:$LINENO: result: external" >&5
14458 echo "${ECHO_T}external" >&6
14463 if test -n "$PYTHON"; then
14464 # If the user set $PYTHON, use it and don't search something else.
14465 echo "$as_me:$LINENO: checking whether $PYTHON version >= 2.2" >&5
14466 echo $ECHO_N "checking whether $PYTHON version >= 2.2... $ECHO_C" >&6
14467 prog="import sys, string
14468 # split strings by '.' and convert to numeric. Append some zeros
14469 # because we need at least 4 digits for the hex conversion.
14470 minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
14471 minverhex = 0
14472 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
14473 sys.exit(sys.hexversion < minverhex)"
14474 if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
14475 ($PYTHON -c "$prog") >&5 2>&5
14476 ac_status=$?
14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14478 (exit $ac_status); }; then
14479 echo "$as_me:$LINENO: result: yes" >&5
14480 echo "${ECHO_T}yes" >&6
14481 else
14482 { { echo "$as_me:$LINENO: error: too old" >&5
14483 echo "$as_me: error: too old" >&2;}
14484 { (exit 1); exit 1; }; }
14487 am_display_PYTHON=$PYTHON
14488 else
14489 # Otherwise, try each interpreter until we find one that satisfies
14490 # VERSION.
14491 echo "$as_me:$LINENO: checking for a Python interpreter with version >= 2.2" >&5
14492 echo $ECHO_N "checking for a Python interpreter with version >= 2.2... $ECHO_C" >&6
14493 if test "${am_cv_pathless_PYTHON+set}" = set; then
14494 echo $ECHO_N "(cached) $ECHO_C" >&6
14495 else
14497 for am_cv_pathless_PYTHON in python python2 python2.6 python2.5 python2.4 python2.3 python2.2 python2.1 python2.0 python1.6 python1.5 none; do
14498 test "$am_cv_pathless_PYTHON" = none && break
14499 prog="import sys, string
14500 # split strings by '.' and convert to numeric. Append some zeros
14501 # because we need at least 4 digits for the hex conversion.
14502 minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
14503 minverhex = 0
14504 for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
14505 sys.exit(sys.hexversion < minverhex)"
14506 if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
14507 ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
14508 ac_status=$?
14509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14510 (exit $ac_status); }; then
14511 break
14514 done
14516 echo "$as_me:$LINENO: result: $am_cv_pathless_PYTHON" >&5
14517 echo "${ECHO_T}$am_cv_pathless_PYTHON" >&6
14518 # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
14519 if test "$am_cv_pathless_PYTHON" = none; then
14520 PYTHON=:
14521 else
14522 # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
14523 set dummy $am_cv_pathless_PYTHON; ac_word=$2
14524 echo "$as_me:$LINENO: checking for $ac_word" >&5
14525 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14526 if test "${ac_cv_path_PYTHON+set}" = set; then
14527 echo $ECHO_N "(cached) $ECHO_C" >&6
14528 else
14529 case $PYTHON in
14530 [\\/]* | ?:[\\/]*)
14531 ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
14534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14535 for as_dir in $PATH
14537 IFS=$as_save_IFS
14538 test -z "$as_dir" && as_dir=.
14539 for ac_exec_ext in '' $ac_executable_extensions; do
14540 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14541 ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
14542 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14543 break 2
14545 done
14546 done
14549 esac
14551 PYTHON=$ac_cv_path_PYTHON
14553 if test -n "$PYTHON"; then
14554 echo "$as_me:$LINENO: result: $PYTHON" >&5
14555 echo "${ECHO_T}$PYTHON" >&6
14556 else
14557 echo "$as_me:$LINENO: result: no" >&5
14558 echo "${ECHO_T}no" >&6
14562 am_display_PYTHON=$am_cv_pathless_PYTHON
14566 if test "$PYTHON" = :; then
14567 { { echo "$as_me:$LINENO: error: no suitable Python interpreter found" >&5
14568 echo "$as_me: error: no suitable Python interpreter found" >&2;}
14569 { (exit 1); exit 1; }; }
14570 else
14573 echo "$as_me:$LINENO: checking for $am_display_PYTHON version" >&5
14574 echo $ECHO_N "checking for $am_display_PYTHON version... $ECHO_C" >&6
14575 if test "${am_cv_python_version+set}" = set; then
14576 echo $ECHO_N "(cached) $ECHO_C" >&6
14577 else
14578 am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
14580 echo "$as_me:$LINENO: result: $am_cv_python_version" >&5
14581 echo "${ECHO_T}$am_cv_python_version" >&6
14582 PYTHON_VERSION=$am_cv_python_version
14586 PYTHON_PREFIX='${prefix}'
14588 PYTHON_EXEC_PREFIX='${exec_prefix}'
14592 echo "$as_me:$LINENO: checking for $am_display_PYTHON platform" >&5
14593 echo $ECHO_N "checking for $am_display_PYTHON platform... $ECHO_C" >&6
14594 if test "${am_cv_python_platform+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597 am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
14599 echo "$as_me:$LINENO: result: $am_cv_python_platform" >&5
14600 echo "${ECHO_T}$am_cv_python_platform" >&6
14601 PYTHON_PLATFORM=$am_cv_python_platform
14606 echo "$as_me:$LINENO: checking for $am_display_PYTHON script directory" >&5
14607 echo $ECHO_N "checking for $am_display_PYTHON script directory... $ECHO_C" >&6
14608 if test "${am_cv_python_pythondir+set}" = set; then
14609 echo $ECHO_N "(cached) $ECHO_C" >&6
14610 else
14611 am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
14612 echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
14614 echo "$as_me:$LINENO: result: $am_cv_python_pythondir" >&5
14615 echo "${ECHO_T}$am_cv_python_pythondir" >&6
14616 pythondir=$am_cv_python_pythondir
14620 pkgpythondir=\${pythondir}/$PACKAGE
14623 echo "$as_me:$LINENO: checking for $am_display_PYTHON extension module directory" >&5
14624 echo $ECHO_N "checking for $am_display_PYTHON extension module directory... $ECHO_C" >&6
14625 if test "${am_cv_python_pyexecdir+set}" = set; then
14626 echo $ECHO_N "(cached) $ECHO_C" >&6
14627 else
14628 am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
14629 echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
14631 echo "$as_me:$LINENO: result: $am_cv_python_pyexecdir" >&5
14632 echo "${ECHO_T}$am_cv_python_pyexecdir" >&6
14633 pyexecdir=$am_cv_python_pyexecdir
14637 pkgpyexecdir=\${pyexecdir}/$PACKAGE
14645 python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
14646 python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
14647 PYTHON_CFLAGS="-I$python_include"
14648 PYTHON_LIBS="-lpython$python_version"
14650 if test "$with_system_python" = "yes" ; then
14651 SYSTEM_PYTHON=YES
14652 save_CPPFLAGS="$CPPFLAGS"
14653 CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
14654 if test "${ac_cv_header_Python_h+set}" = set; then
14655 echo "$as_me:$LINENO: checking for Python.h" >&5
14656 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6
14657 if test "${ac_cv_header_Python_h+set}" = set; then
14658 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
14661 echo "${ECHO_T}$ac_cv_header_Python_h" >&6
14662 else
14663 # Is the header compilable?
14664 echo "$as_me:$LINENO: checking Python.h usability" >&5
14665 echo $ECHO_N "checking Python.h usability... $ECHO_C" >&6
14666 cat >conftest.$ac_ext <<_ACEOF
14667 /* confdefs.h. */
14668 _ACEOF
14669 cat confdefs.h >>conftest.$ac_ext
14670 cat >>conftest.$ac_ext <<_ACEOF
14671 /* end confdefs.h. */
14672 $ac_includes_default
14673 #include <Python.h>
14674 _ACEOF
14675 rm -f conftest.$ac_objext
14676 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14677 (eval $ac_compile) 2>conftest.er1
14678 ac_status=$?
14679 grep -v '^ *+' conftest.er1 >conftest.err
14680 rm -f conftest.er1
14681 cat conftest.err >&5
14682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14683 (exit $ac_status); } &&
14684 { ac_try='test -z "$ac_c_werror_flag"
14685 || test ! -s conftest.err'
14686 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14687 (eval $ac_try) 2>&5
14688 ac_status=$?
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); }; } &&
14691 { ac_try='test -s conftest.$ac_objext'
14692 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14693 (eval $ac_try) 2>&5
14694 ac_status=$?
14695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14696 (exit $ac_status); }; }; then
14697 ac_header_compiler=yes
14698 else
14699 echo "$as_me: failed program was:" >&5
14700 sed 's/^/| /' conftest.$ac_ext >&5
14702 ac_header_compiler=no
14704 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14705 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14706 echo "${ECHO_T}$ac_header_compiler" >&6
14708 # Is the header present?
14709 echo "$as_me:$LINENO: checking Python.h presence" >&5
14710 echo $ECHO_N "checking Python.h presence... $ECHO_C" >&6
14711 cat >conftest.$ac_ext <<_ACEOF
14712 /* confdefs.h. */
14713 _ACEOF
14714 cat confdefs.h >>conftest.$ac_ext
14715 cat >>conftest.$ac_ext <<_ACEOF
14716 /* end confdefs.h. */
14717 #include <Python.h>
14718 _ACEOF
14719 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
14720 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
14721 ac_status=$?
14722 grep -v '^ *+' conftest.er1 >conftest.err
14723 rm -f conftest.er1
14724 cat conftest.err >&5
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); } >/dev/null; then
14727 if test -s conftest.err; then
14728 ac_cpp_err=$ac_c_preproc_warn_flag
14729 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14730 else
14731 ac_cpp_err=
14733 else
14734 ac_cpp_err=yes
14736 if test -z "$ac_cpp_err"; then
14737 ac_header_preproc=yes
14738 else
14739 echo "$as_me: failed program was:" >&5
14740 sed 's/^/| /' conftest.$ac_ext >&5
14742 ac_header_preproc=no
14744 rm -f conftest.err conftest.$ac_ext
14745 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14746 echo "${ECHO_T}$ac_header_preproc" >&6
14748 # So? What about this header?
14749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14750 yes:no: )
14751 { echo "$as_me:$LINENO: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&5
14752 echo "$as_me: WARNING: Python.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14753 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the compiler's result" >&5
14754 echo "$as_me: WARNING: Python.h: proceeding with the compiler's result" >&2;}
14755 ac_header_preproc=yes
14757 no:yes:* )
14758 { echo "$as_me:$LINENO: WARNING: Python.h: present but cannot be compiled" >&5
14759 echo "$as_me: WARNING: Python.h: present but cannot be compiled" >&2;}
14760 { echo "$as_me:$LINENO: WARNING: Python.h: check for missing prerequisite headers?" >&5
14761 echo "$as_me: WARNING: Python.h: check for missing prerequisite headers?" >&2;}
14762 { echo "$as_me:$LINENO: WARNING: Python.h: see the Autoconf documentation" >&5
14763 echo "$as_me: WARNING: Python.h: see the Autoconf documentation" >&2;}
14764 { echo "$as_me:$LINENO: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&5
14765 echo "$as_me: WARNING: Python.h: section \"Present But Cannot Be Compiled\"" >&2;}
14766 { echo "$as_me:$LINENO: WARNING: Python.h: proceeding with the preprocessor's result" >&5
14767 echo "$as_me: WARNING: Python.h: proceeding with the preprocessor's result" >&2;}
14768 { echo "$as_me:$LINENO: WARNING: Python.h: in the future, the compiler will take precedence" >&5
14769 echo "$as_me: WARNING: Python.h: in the future, the compiler will take precedence" >&2;}
14771 cat <<\_ASBOX
14772 ## ------------------------------------------ ##
14773 ## Report this to the AC_PACKAGE_NAME lists. ##
14774 ## ------------------------------------------ ##
14775 _ASBOX
14777 sed "s/^/$as_me: WARNING: /" >&2
14779 esac
14780 echo "$as_me:$LINENO: checking for Python.h" >&5
14781 echo $ECHO_N "checking for Python.h... $ECHO_C" >&6
14782 if test "${ac_cv_header_Python_h+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14784 else
14785 ac_cv_header_Python_h=$ac_header_preproc
14787 echo "$as_me:$LINENO: result: $ac_cv_header_Python_h" >&5
14788 echo "${ECHO_T}$ac_cv_header_Python_h" >&6
14791 if test $ac_cv_header_Python_h = yes; then
14793 else
14794 { { echo "$as_me:$LINENO: error: Python headers not found" >&5
14795 echo "$as_me: error: Python headers not found" >&2;}
14796 { (exit 1); exit 1; }; }
14800 CPPFLAGS="$save_CPPFLAGS"
14801 else
14802 SYSTEM_PYTHON=NO
14803 BUILD_TYPE="$BUILD_TYPE PYTHON"
14804 echo "$as_me:$LINENO: result: internal" >&5
14805 echo "${ECHO_T}internal" >&6
14806 # Embedded python dies without Home set
14807 if test "z$HOME" = "z"; then
14808 export HOME="";
14810 # bz2 tarball and bzip2 is not standard
14811 if test -z "$BZIP2"; then
14812 # Extract the first word of "bzip2", so it can be a program name with args.
14813 set dummy bzip2; ac_word=$2
14814 echo "$as_me:$LINENO: checking for $ac_word" >&5
14815 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
14816 if test "${ac_cv_path_BZIP2+set}" = set; then
14817 echo $ECHO_N "(cached) $ECHO_C" >&6
14818 else
14819 case $BZIP2 in
14820 [\\/]* | ?:[\\/]*)
14821 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
14824 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14825 for as_dir in $PATH
14827 IFS=$as_save_IFS
14828 test -z "$as_dir" && as_dir=.
14829 for ac_exec_ext in '' $ac_executable_extensions; do
14830 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14831 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
14832 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14833 break 2
14835 done
14836 done
14839 esac
14841 BZIP2=$ac_cv_path_BZIP2
14843 if test -n "$BZIP2"; then
14844 echo "$as_me:$LINENO: result: $BZIP2" >&5
14845 echo "${ECHO_T}$BZIP2" >&6
14846 else
14847 echo "$as_me:$LINENO: result: no" >&5
14848 echo "${ECHO_T}no" >&6
14851 if test -z "$BZIP2"; then
14852 { { echo "$as_me:$LINENO: error: the internal Python module has a .tar.bz2. You need bzip2" >&5
14853 echo "$as_me: error: the internal Python module has a .tar.bz2. You need bzip2" >&2;}
14854 { (exit 1); exit 1; }; }
14861 HOME=`echo $HOME | sed 's:\\\\:/:g'`
14864 echo "$as_me:$LINENO: checking which db to use" >&5
14865 echo $ECHO_N "checking which db to use... $ECHO_C" >&6
14866 if test -n "$with_system_db" -o -n "$with_system_libs" && \
14867 test "$with_system_db" != "no"; then
14868 SYSTEM_DB=YES
14869 echo "$as_me:$LINENO: result: external" >&5
14870 echo "${ECHO_T}external" >&6
14871 echo "$as_me:$LINENO: checking for db.h" >&5
14872 echo $ECHO_N "checking for db.h... $ECHO_C" >&6
14873 if test "${ac_cv_header_db_h+set}" = set; then
14874 echo $ECHO_N "(cached) $ECHO_C" >&6
14875 else
14876 cat >conftest.$ac_ext <<_ACEOF
14877 /* confdefs.h. */
14878 _ACEOF
14879 cat confdefs.h >>conftest.$ac_ext
14880 cat >>conftest.$ac_ext <<_ACEOF
14881 /* end confdefs.h. */
14885 #include <db.h>
14886 _ACEOF
14887 rm -f conftest.$ac_objext
14888 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14889 (eval $ac_compile) 2>conftest.er1
14890 ac_status=$?
14891 grep -v '^ *+' conftest.er1 >conftest.err
14892 rm -f conftest.er1
14893 cat conftest.err >&5
14894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895 (exit $ac_status); } &&
14896 { ac_try='test -z "$ac_c_werror_flag"
14897 || test ! -s conftest.err'
14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14899 (eval $ac_try) 2>&5
14900 ac_status=$?
14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902 (exit $ac_status); }; } &&
14903 { ac_try='test -s conftest.$ac_objext'
14904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14905 (eval $ac_try) 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_header_db_h=yes
14910 else
14911 echo "$as_me: failed program was:" >&5
14912 sed 's/^/| /' conftest.$ac_ext >&5
14914 ac_cv_header_db_h=no
14916 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14918 echo "$as_me:$LINENO: result: $ac_cv_header_db_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_db_h" >&6
14920 if test $ac_cv_header_db_h = yes; then
14921 DB_INCLUDES=/usr/include
14922 else
14924 CFLAGS=-I/usr/include/db4
14925 echo "$as_me:$LINENO: checking for db4/db.h" >&5
14926 echo $ECHO_N "checking for db4/db.h... $ECHO_C" >&6
14927 if test "${ac_cv_header_db4_db_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 else
14930 cat >conftest.$ac_ext <<_ACEOF
14931 /* confdefs.h. */
14932 _ACEOF
14933 cat confdefs.h >>conftest.$ac_ext
14934 cat >>conftest.$ac_ext <<_ACEOF
14935 /* end confdefs.h. */
14938 #include <db4/db.h>
14939 _ACEOF
14940 rm -f conftest.$ac_objext
14941 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
14942 (eval $ac_compile) 2>conftest.er1
14943 ac_status=$?
14944 grep -v '^ *+' conftest.er1 >conftest.err
14945 rm -f conftest.er1
14946 cat conftest.err >&5
14947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14948 (exit $ac_status); } &&
14949 { ac_try='test -z "$ac_c_werror_flag"
14950 || test ! -s conftest.err'
14951 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14952 (eval $ac_try) 2>&5
14953 ac_status=$?
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 (exit $ac_status); }; } &&
14956 { ac_try='test -s conftest.$ac_objext'
14957 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14958 (eval $ac_try) 2>&5
14959 ac_status=$?
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); }; }; then
14962 ac_cv_header_db4_db_h=yes
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14967 ac_cv_header_db4_db_h=no
14969 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
14971 echo "$as_me:$LINENO: result: $ac_cv_header_db4_db_h" >&5
14972 echo "${ECHO_T}$ac_cv_header_db4_db_h" >&6
14973 if test $ac_cv_header_db4_db_h = yes; then
14974 DB_INCLUDES=/usr/include/db4
14975 else
14976 { { echo "$as_me:$LINENO: error: no. install the db4 libraries" >&5
14977 echo "$as_me: error: no. install the db4 libraries" >&2;}
14978 { (exit 1); exit 1; }; }
14986 echo "$as_me:$LINENO: checking whether db is at least 4.1" >&5
14987 echo $ECHO_N "checking whether db is at least 4.1... $ECHO_C" >&6
14988 if test "$cross_compiling" = yes; then
14989 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
14990 See \`config.log' for more details." >&5
14991 echo "$as_me: error: cannot run test program while cross compiling
14992 See \`config.log' for more details." >&2;}
14993 { (exit 1); exit 1; }; }
14994 else
14995 cat >conftest.$ac_ext <<_ACEOF
14996 /* confdefs.h. */
14997 _ACEOF
14998 cat confdefs.h >>conftest.$ac_ext
14999 cat >>conftest.$ac_ext <<_ACEOF
15000 /* end confdefs.h. */
15002 #include <db.h>
15004 int main(int argc, char **argv) {
15005 if(DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)) return 0;
15006 else return 1;
15009 _ACEOF
15010 rm -f conftest$ac_exeext
15011 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15012 (eval $ac_link) 2>&5
15013 ac_status=$?
15014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15017 (eval $ac_try) 2>&5
15018 ac_status=$?
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); }; }; then
15021 echo "$as_me:$LINENO: result: yes" >&5
15022 echo "${ECHO_T}yes" >&6
15023 else
15024 echo "$as_me: program exited with status $ac_status" >&5
15025 echo "$as_me: failed program was:" >&5
15026 sed 's/^/| /' conftest.$ac_ext >&5
15028 ( exit $ac_status )
15029 { { echo "$as_me:$LINENO: error: no. you need at least db 4.1" >&5
15030 echo "$as_me: error: no. you need at least db 4.1" >&2;}
15031 { (exit 1); exit 1; }; }
15033 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15036 echo "$as_me:$LINENO: checking for main in -ldb" >&5
15037 echo $ECHO_N "checking for main in -ldb... $ECHO_C" >&6
15038 if test "${ac_cv_lib_db_main+set}" = set; then
15039 echo $ECHO_N "(cached) $ECHO_C" >&6
15040 else
15041 ac_check_lib_save_LIBS=$LIBS
15042 LIBS="-ldb $LIBS"
15043 cat >conftest.$ac_ext <<_ACEOF
15044 /* confdefs.h. */
15045 _ACEOF
15046 cat confdefs.h >>conftest.$ac_ext
15047 cat >>conftest.$ac_ext <<_ACEOF
15048 /* end confdefs.h. */
15052 main ()
15054 main ();
15056 return 0;
15058 _ACEOF
15059 rm -f conftest.$ac_objext conftest$ac_exeext
15060 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15061 (eval $ac_link) 2>conftest.er1
15062 ac_status=$?
15063 grep -v '^ *+' conftest.er1 >conftest.err
15064 rm -f conftest.er1
15065 cat conftest.err >&5
15066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15067 (exit $ac_status); } &&
15068 { ac_try='test -z "$ac_c_werror_flag"
15069 || test ! -s conftest.err'
15070 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15071 (eval $ac_try) 2>&5
15072 ac_status=$?
15073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15074 (exit $ac_status); }; } &&
15075 { ac_try='test -s conftest$ac_exeext'
15076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15077 (eval $ac_try) 2>&5
15078 ac_status=$?
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); }; }; then
15081 ac_cv_lib_db_main=yes
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15086 ac_cv_lib_db_main=no
15088 rm -f conftest.err conftest.$ac_objext \
15089 conftest$ac_exeext conftest.$ac_ext
15090 LIBS=$ac_check_lib_save_LIBS
15092 echo "$as_me:$LINENO: result: $ac_cv_lib_db_main" >&5
15093 echo "${ECHO_T}$ac_cv_lib_db_main" >&6
15094 if test $ac_cv_lib_db_main = yes; then
15095 cat >>confdefs.h <<_ACEOF
15096 #define HAVE_LIBDB 1
15097 _ACEOF
15099 LIBS="-ldb $LIBS"
15101 else
15102 { { echo "$as_me:$LINENO: error: db not installed or functional" >&5
15103 echo "$as_me: error: db not installed or functional" >&2;}
15104 { (exit 1); exit 1; }; }
15106 ac_cv_lib_db=ac_cv_lib_db_main
15108 SCPDEFS="$SCPDEFS -DSYSTEM_DB"
15109 else
15110 echo "$as_me:$LINENO: result: internal" >&5
15111 echo "${ECHO_T}internal" >&6
15112 SYSTEM_DB=NO
15113 BUILD_TYPE="$BUILD_TYPE BERKELEYDB"
15120 echo "$as_me:$LINENO: checking which lucene to use" >&5
15121 echo $ECHO_N "checking which lucene to use... $ECHO_C" >&6
15122 if test -n "$with_system_lucene" -o -n "$with_system_libs" && \
15123 test "$with_system_lucene" != "no" && test "$with_system_jars" != "no"; then
15124 echo "$as_me:$LINENO: result: external" >&5
15125 echo "${ECHO_T}external" >&6
15126 SYSTEM_LUCENE=YES
15127 if test -z $LUCENE_CORE_JAR; then
15128 echo "$as_me:$LINENO: checking for /usr/share/java/lucene-core-2.3.jar" >&5
15129 echo $ECHO_N "checking for /usr/share/java/lucene-core-2.3.jar... $ECHO_C" >&6
15130 if test "${ac_cv_file__usr_share_java_lucene_core_2_3_jar+set}" = set; then
15131 echo $ECHO_N "(cached) $ECHO_C" >&6
15132 else
15133 test "$cross_compiling" = yes &&
15134 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15135 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15136 { (exit 1); exit 1; }; }
15137 if test -r "/usr/share/java/lucene-core-2.3.jar"; then
15138 ac_cv_file__usr_share_java_lucene_core_2_3_jar=yes
15139 else
15140 ac_cv_file__usr_share_java_lucene_core_2_3_jar=no
15143 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&5
15144 echo "${ECHO_T}$ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&6
15145 if test $ac_cv_file__usr_share_java_lucene_core_2_3_jar = yes; then
15146 LUCENE_CORE_JAR=/usr/share/java/lucene-core-2.3.jar
15147 else
15149 echo "$as_me:$LINENO: checking for /usr/share/java/lucene-core.jar" >&5
15150 echo $ECHO_N "checking for /usr/share/java/lucene-core.jar... $ECHO_C" >&6
15151 if test "${ac_cv_file__usr_share_java_lucene_core_jar+set}" = set; then
15152 echo $ECHO_N "(cached) $ECHO_C" >&6
15153 else
15154 test "$cross_compiling" = yes &&
15155 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15156 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15157 { (exit 1); exit 1; }; }
15158 if test -r "/usr/share/java/lucene-core.jar"; then
15159 ac_cv_file__usr_share_java_lucene_core_jar=yes
15160 else
15161 ac_cv_file__usr_share_java_lucene_core_jar=no
15164 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_core_jar" >&5
15165 echo "${ECHO_T}$ac_cv_file__usr_share_java_lucene_core_jar" >&6
15166 if test $ac_cv_file__usr_share_java_lucene_core_jar = yes; then
15167 LUCENE_CORE_JAR=/usr/share/java/lucene-core.jar
15168 else
15169 { { echo "$as_me:$LINENO: error: lucene-core.jar replacement not found" >&5
15170 echo "$as_me: error: lucene-core.jar replacement not found" >&2;}
15171 { (exit 1); exit 1; }; }
15179 else
15180 as_ac_File=`echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
15181 echo "$as_me:$LINENO: checking for $LUCENE_CORE_JAR" >&5
15182 echo $ECHO_N "checking for $LUCENE_CORE_JAR... $ECHO_C" >&6
15183 if eval "test \"\${$as_ac_File+set}\" = set"; then
15184 echo $ECHO_N "(cached) $ECHO_C" >&6
15185 else
15186 test "$cross_compiling" = yes &&
15187 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15188 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15189 { (exit 1); exit 1; }; }
15190 if test -r "$LUCENE_CORE_JAR"; then
15191 eval "$as_ac_File=yes"
15192 else
15193 eval "$as_ac_File=no"
15196 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15197 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15198 if test `eval echo '${'$as_ac_File'}'` = yes; then
15200 else
15201 { { echo "$as_me:$LINENO: error: lucene-core.jar not found." >&5
15202 echo "$as_me: error: lucene-core.jar not found." >&2;}
15203 { (exit 1); exit 1; }; }
15208 if test -z $LUCENE_ANALYZERS_JAR; then
15209 echo "$as_me:$LINENO: checking for /usr/share/java/lucene-analyzers-2.3.jar" >&5
15210 echo $ECHO_N "checking for /usr/share/java/lucene-analyzers-2.3.jar... $ECHO_C" >&6
15211 if test "${ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar+set}" = set; then
15212 echo $ECHO_N "(cached) $ECHO_C" >&6
15213 else
15214 test "$cross_compiling" = yes &&
15215 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15216 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15217 { (exit 1); exit 1; }; }
15218 if test -r "/usr/share/java/lucene-analyzers-2.3.jar"; then
15219 ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=yes
15220 else
15221 ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=no
15224 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&5
15225 echo "${ECHO_T}$ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&6
15226 if test $ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar = yes; then
15227 LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-analyzers-2.3.jar
15228 else
15230 echo "$as_me:$LINENO: checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar" >&5
15231 echo $ECHO_N "checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar... $ECHO_C" >&6
15232 if test "${ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar+set}" = set; then
15233 echo $ECHO_N "(cached) $ECHO_C" >&6
15234 else
15235 test "$cross_compiling" = yes &&
15236 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15237 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15238 { (exit 1); exit 1; }; }
15239 if test -r "/usr/share/java/lucene-contrib/lucene-analyzers.jar"; then
15240 ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=yes
15241 else
15242 ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=no
15245 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&5
15246 echo "${ECHO_T}$ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&6
15247 if test $ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar = yes; then
15248 LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-contrib/lucene-analyzers.jar
15249 else
15250 { { echo "$as_me:$LINENO: error: lucene-analyzers.jar replacement not found." >&5
15251 echo "$as_me: error: lucene-analyzers.jar replacement not found." >&2;}
15252 { (exit 1); exit 1; }; }
15260 else
15261 as_ac_File=`echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
15262 echo "$as_me:$LINENO: checking for $LUCENE_CORE_JAR" >&5
15263 echo $ECHO_N "checking for $LUCENE_CORE_JAR... $ECHO_C" >&6
15264 if eval "test \"\${$as_ac_File+set}\" = set"; then
15265 echo $ECHO_N "(cached) $ECHO_C" >&6
15266 else
15267 test "$cross_compiling" = yes &&
15268 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15269 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15270 { (exit 1); exit 1; }; }
15271 if test -r "$LUCENE_CORE_JAR"; then
15272 eval "$as_ac_File=yes"
15273 else
15274 eval "$as_ac_File=no"
15277 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15278 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15279 if test `eval echo '${'$as_ac_File'}'` = yes; then
15281 else
15282 { { echo "$as_me:$LINENO: error: lucene-analyzers.jar not found." >&5
15283 echo "$as_me: error: lucene-analyzers.jar not found." >&2;}
15284 { (exit 1); exit 1; }; }
15288 echo "$as_me:$LINENO: checking whether lucene is version 2.x" >&5
15289 echo $ECHO_N "checking whether lucene is version 2.x... $ECHO_C" >&6
15290 export LUCENE_CORE_JAR
15291 if $PERL -e 'use Archive::Zip;
15292 my $file = "$ENV{'LUCENE_CORE_JAR'}";
15293 my $zip = Archive::Zip->new( $file );
15294 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
15295 if ( $mf =~ m/Specification-Version: 2.*/ ) {
15296 exit 0;
15297 } else {
15298 exit 1;
15299 }'; then
15300 echo "$as_me:$LINENO: result: yes" >&5
15301 echo "${ECHO_T}yes" >&6
15302 else
15303 { { echo "$as_me:$LINENO: error: no, you need lucene 2" >&5
15304 echo "$as_me: error: no, you need lucene 2" >&2;}
15305 { (exit 1); exit 1; }; }
15308 else
15309 echo "$as_me:$LINENO: result: internal" >&5
15310 echo "${ECHO_T}internal" >&6
15311 SYSTEM_LUCENE=NO
15312 BUILD_TYPE="$BUILD_TYPE LUCENE"
15318 echo "$as_me:$LINENO: checking whether to build the MySQL Connector extension" >&5
15319 echo $ECHO_N "checking whether to build the MySQL Connector extension... $ECHO_C" >&6
15320 if test -n "$enable_mysql_connector" -a "$enable_mysql_connector" != "no"; then
15321 echo "$as_me:$LINENO: result: yes" >&5
15322 echo "${ECHO_T}yes" >&6
15323 ENABLE_MYSQLC=YES
15324 echo "$as_me:$LINENO: checking for mysqlc module" >&5
15325 echo $ECHO_N "checking for mysqlc module... $ECHO_C" >&6
15326 if test -d mysqlc; then
15327 echo "$as_me:$LINENO: result: OK" >&5
15328 echo "${ECHO_T}OK" >&6
15329 else
15330 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
15331 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
15332 { (exit 1); exit 1; }; }
15334 BUILD_TYPE="$BUILD_TYPE MYSQLC"
15335 else
15336 echo "$as_me:$LINENO: result: no" >&5
15337 echo "${ECHO_T}no" >&6
15338 ENABLE_MYSQLC=NO
15342 if test "$ENABLE_MYSQLC" = "YES"; then
15343 echo "$as_me:$LINENO: checking for mysql pre-requisites" >&5
15344 echo $ECHO_N "checking for mysql pre-requisites... $ECHO_C" >&6
15345 if test -n "$with_system_mysql" -o -n "$with_system_libs" && \
15346 test "$with_system_mysql" != "no" && test "$with_system_libs" != "no"; then
15347 echo "$as_me:$LINENO: result: external MySQL" >&5
15348 echo "${ECHO_T}external MySQL" >&6
15349 SYSTEM_MYSQL=YES
15350 # Extract the first word of "mysql_config", so it can be a program name with args.
15351 set dummy mysql_config; ac_word=$2
15352 echo "$as_me:$LINENO: checking for $ac_word" >&5
15353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
15354 if test "${ac_cv_path_MYSQLCONFIG+set}" = set; then
15355 echo $ECHO_N "(cached) $ECHO_C" >&6
15356 else
15357 case $MYSQLCONFIG in
15358 [\\/]* | ?:[\\/]*)
15359 ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path.
15362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15363 for as_dir in $PATH
15365 IFS=$as_save_IFS
15366 test -z "$as_dir" && as_dir=.
15367 for ac_exec_ext in '' $ac_executable_extensions; do
15368 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15369 ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext"
15370 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15371 break 2
15373 done
15374 done
15377 esac
15379 MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG
15381 if test -n "$MYSQLCONFIG"; then
15382 echo "$as_me:$LINENO: result: $MYSQLCONFIG" >&5
15383 echo "${ECHO_T}$MYSQLCONFIG" >&6
15384 else
15385 echo "$as_me:$LINENO: result: no" >&5
15386 echo "${ECHO_T}no" >&6
15389 echo "$as_me:$LINENO: checking MySQL version" >&5
15390 echo $ECHO_N "checking MySQL version... $ECHO_C" >&6
15391 MYSQL_VERSION=`$MYSQLCONFIG --version`
15392 MYSQL_MAJOR=`$MYSQLCONFIG --version | cut -d"." -f1`
15393 if test "$MYSQL_MAJOR" -ge "5"; then
15394 echo "$as_me:$LINENO: result: OK" >&5
15395 echo "${ECHO_T}OK" >&6
15396 else
15397 { { echo "$as_me:$LINENO: error: too old, use 5.0.x or 5.1.x" >&5
15398 echo "$as_me: error: too old, use 5.0.x or 5.1.x" >&2;}
15399 { (exit 1); exit 1; }; }
15401 echo "$as_me:$LINENO: checking for MySQL Client library" >&5
15402 echo $ECHO_N "checking for MySQL Client library... $ECHO_C" >&6
15403 MYSQL_INC=`$MYSQLCONFIG --include`
15404 MYSQL_LIB=`$MYSQLCONFIG --libs`
15405 MYSQL_DEFINES=`$MYSQLCONFIG --cflags | sed -e s,$MYSQL_INC,,`
15406 echo "$as_me:$LINENO: result: includes $MYSQL_INC, libraries $MYSQL_LIB" >&5
15407 echo "${ECHO_T}includes $MYSQL_INC, libraries $MYSQL_LIB" >&6
15408 else
15409 SYSTEM_MYSQL=NO
15410 if test -n "$with_libmysql_path"; then
15411 echo "$as_me:$LINENO: result: external Connector/C (libmysql)" >&5
15412 echo "${ECHO_T}external Connector/C (libmysql)" >&6
15413 LIBMYSQL=libmysql.so
15414 if test "$_os" = "Darwin"; then
15415 LIBMYSQL=libmysql.dylib
15416 elif test "$_os" = "WINNT"; then
15417 LIBMYSQL=libmysql.dll
15419 echo "$as_me:$LINENO: checking for $LIBMYSQL" >&5
15420 echo $ECHO_N "checking for $LIBMYSQL... $ECHO_C" >&6
15421 if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
15422 echo "$as_me:$LINENO: result: found." >&5
15423 echo "${ECHO_T}found." >&6
15424 LIBMYSQL_PATH=$with_libmysql_path
15425 else
15426 { { echo "$as_me:$LINENO: error: not found. Please specify proper path in --with-libmysql-path." >&5
15427 echo "$as_me: error: not found. Please specify proper path in --with-libmysql-path." >&2;}
15428 { (exit 1); exit 1; }; }
15430 else
15431 { { echo "$as_me:$LINENO: error: not given. Please specify either --with-system-mysql or --with-libmysql-path" >&5
15432 echo "$as_me: error: not given. Please specify either --with-system-mysql or --with-libmysql-path" >&2;}
15433 { (exit 1); exit 1; }; }
15442 ac_ext=cc
15443 ac_cpp='$CXXCPP $CPPFLAGS'
15444 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15445 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15446 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15448 # FIXME!
15449 # who thought this too-generic cppconn dir was a good idea?
15450 echo "$as_me:$LINENO: checking MySQL Connector/C++" >&5
15451 echo $ECHO_N "checking MySQL Connector/C++... $ECHO_C" >&6
15452 if test -n "$with_system_mysql_cppconn" -o -n "$with_system_libs" && \
15453 test "$with_system_mysql_cppconn" != "no" && test "$with_system_libs" != "no"; then
15454 echo "$as_me:$LINENO: result: external" >&5
15455 echo "${ECHO_T}external" >&6
15456 SYSTEM_MYSQL_CPPCONN=YES
15457 ac_ext=cc
15458 ac_cpp='$CXXCPP $CPPFLAGS'
15459 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15460 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15461 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15463 if test "${ac_cv_header_mysql_driver_h+set}" = set; then
15464 echo "$as_me:$LINENO: checking for mysql_driver.h" >&5
15465 echo $ECHO_N "checking for mysql_driver.h... $ECHO_C" >&6
15466 if test "${ac_cv_header_mysql_driver_h+set}" = set; then
15467 echo $ECHO_N "(cached) $ECHO_C" >&6
15469 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_driver_h" >&5
15470 echo "${ECHO_T}$ac_cv_header_mysql_driver_h" >&6
15471 else
15472 # Is the header compilable?
15473 echo "$as_me:$LINENO: checking mysql_driver.h usability" >&5
15474 echo $ECHO_N "checking mysql_driver.h usability... $ECHO_C" >&6
15475 cat >conftest.$ac_ext <<_ACEOF
15476 /* confdefs.h. */
15477 _ACEOF
15478 cat confdefs.h >>conftest.$ac_ext
15479 cat >>conftest.$ac_ext <<_ACEOF
15480 /* end confdefs.h. */
15481 $ac_includes_default
15482 #include <mysql_driver.h>
15483 _ACEOF
15484 rm -f conftest.$ac_objext
15485 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15486 (eval $ac_compile) 2>conftest.er1
15487 ac_status=$?
15488 grep -v '^ *+' conftest.er1 >conftest.err
15489 rm -f conftest.er1
15490 cat conftest.err >&5
15491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15492 (exit $ac_status); } &&
15493 { ac_try='test -z "$ac_cxx_werror_flag"
15494 || test ! -s conftest.err'
15495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15496 (eval $ac_try) 2>&5
15497 ac_status=$?
15498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15499 (exit $ac_status); }; } &&
15500 { ac_try='test -s conftest.$ac_objext'
15501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15502 (eval $ac_try) 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); }; }; then
15506 ac_header_compiler=yes
15507 else
15508 echo "$as_me: failed program was:" >&5
15509 sed 's/^/| /' conftest.$ac_ext >&5
15511 ac_header_compiler=no
15513 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
15514 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15515 echo "${ECHO_T}$ac_header_compiler" >&6
15517 # Is the header present?
15518 echo "$as_me:$LINENO: checking mysql_driver.h presence" >&5
15519 echo $ECHO_N "checking mysql_driver.h presence... $ECHO_C" >&6
15520 cat >conftest.$ac_ext <<_ACEOF
15521 /* confdefs.h. */
15522 _ACEOF
15523 cat confdefs.h >>conftest.$ac_ext
15524 cat >>conftest.$ac_ext <<_ACEOF
15525 /* end confdefs.h. */
15526 #include <mysql_driver.h>
15527 _ACEOF
15528 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
15529 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
15530 ac_status=$?
15531 grep -v '^ *+' conftest.er1 >conftest.err
15532 rm -f conftest.er1
15533 cat conftest.err >&5
15534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15535 (exit $ac_status); } >/dev/null; then
15536 if test -s conftest.err; then
15537 ac_cpp_err=$ac_cxx_preproc_warn_flag
15538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
15539 else
15540 ac_cpp_err=
15542 else
15543 ac_cpp_err=yes
15545 if test -z "$ac_cpp_err"; then
15546 ac_header_preproc=yes
15547 else
15548 echo "$as_me: failed program was:" >&5
15549 sed 's/^/| /' conftest.$ac_ext >&5
15551 ac_header_preproc=no
15553 rm -f conftest.err conftest.$ac_ext
15554 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15555 echo "${ECHO_T}$ac_header_preproc" >&6
15557 # So? What about this header?
15558 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
15559 yes:no: )
15560 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: accepted by the compiler, rejected by the preprocessor!" >&5
15561 echo "$as_me: WARNING: mysql_driver.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15562 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: proceeding with the compiler's result" >&5
15563 echo "$as_me: WARNING: mysql_driver.h: proceeding with the compiler's result" >&2;}
15564 ac_header_preproc=yes
15566 no:yes:* )
15567 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: present but cannot be compiled" >&5
15568 echo "$as_me: WARNING: mysql_driver.h: present but cannot be compiled" >&2;}
15569 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: check for missing prerequisite headers?" >&5
15570 echo "$as_me: WARNING: mysql_driver.h: check for missing prerequisite headers?" >&2;}
15571 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: see the Autoconf documentation" >&5
15572 echo "$as_me: WARNING: mysql_driver.h: see the Autoconf documentation" >&2;}
15573 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: section \"Present But Cannot Be Compiled\"" >&5
15574 echo "$as_me: WARNING: mysql_driver.h: section \"Present But Cannot Be Compiled\"" >&2;}
15575 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: proceeding with the preprocessor's result" >&5
15576 echo "$as_me: WARNING: mysql_driver.h: proceeding with the preprocessor's result" >&2;}
15577 { echo "$as_me:$LINENO: WARNING: mysql_driver.h: in the future, the compiler will take precedence" >&5
15578 echo "$as_me: WARNING: mysql_driver.h: in the future, the compiler will take precedence" >&2;}
15580 cat <<\_ASBOX
15581 ## ------------------------------------------ ##
15582 ## Report this to the AC_PACKAGE_NAME lists. ##
15583 ## ------------------------------------------ ##
15584 _ASBOX
15586 sed "s/^/$as_me: WARNING: /" >&2
15588 esac
15589 echo "$as_me:$LINENO: checking for mysql_driver.h" >&5
15590 echo $ECHO_N "checking for mysql_driver.h... $ECHO_C" >&6
15591 if test "${ac_cv_header_mysql_driver_h+set}" = set; then
15592 echo $ECHO_N "(cached) $ECHO_C" >&6
15593 else
15594 ac_cv_header_mysql_driver_h=$ac_header_preproc
15596 echo "$as_me:$LINENO: result: $ac_cv_header_mysql_driver_h" >&5
15597 echo "${ECHO_T}$ac_cv_header_mysql_driver_h" >&6
15600 if test $ac_cv_header_mysql_driver_h = yes; then
15602 else
15603 { { echo "$as_me:$LINENO: error: mysql_driver.h not found. install MySQL C++ Connectivity" >&5
15604 echo "$as_me: error: mysql_driver.h not found. install MySQL C++ Connectivity" >&2;}
15605 { (exit 1); exit 1; }; }
15610 echo "$as_me:$LINENO: checking for main in -lmysqlcppconn" >&5
15611 echo $ECHO_N "checking for main in -lmysqlcppconn... $ECHO_C" >&6
15612 if test "${ac_cv_lib_mysqlcppconn_main+set}" = set; then
15613 echo $ECHO_N "(cached) $ECHO_C" >&6
15614 else
15615 ac_check_lib_save_LIBS=$LIBS
15616 LIBS="-lmysqlcppconn $LIBS"
15617 cat >conftest.$ac_ext <<_ACEOF
15618 /* confdefs.h. */
15619 _ACEOF
15620 cat confdefs.h >>conftest.$ac_ext
15621 cat >>conftest.$ac_ext <<_ACEOF
15622 /* end confdefs.h. */
15626 main ()
15628 main ();
15630 return 0;
15632 _ACEOF
15633 rm -f conftest.$ac_objext conftest$ac_exeext
15634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15635 (eval $ac_link) 2>conftest.er1
15636 ac_status=$?
15637 grep -v '^ *+' conftest.er1 >conftest.err
15638 rm -f conftest.er1
15639 cat conftest.err >&5
15640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15641 (exit $ac_status); } &&
15642 { ac_try='test -z "$ac_cxx_werror_flag"
15643 || test ! -s conftest.err'
15644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15645 (eval $ac_try) 2>&5
15646 ac_status=$?
15647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15648 (exit $ac_status); }; } &&
15649 { ac_try='test -s conftest$ac_exeext'
15650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15651 (eval $ac_try) 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 ac_cv_lib_mysqlcppconn_main=yes
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15660 ac_cv_lib_mysqlcppconn_main=no
15662 rm -f conftest.err conftest.$ac_objext \
15663 conftest$ac_exeext conftest.$ac_ext
15664 LIBS=$ac_check_lib_save_LIBS
15666 echo "$as_me:$LINENO: result: $ac_cv_lib_mysqlcppconn_main" >&5
15667 echo "${ECHO_T}$ac_cv_lib_mysqlcppconn_main" >&6
15668 if test $ac_cv_lib_mysqlcppconn_main = yes; then
15669 cat >>confdefs.h <<_ACEOF
15670 #define HAVE_LIBMYSQLCPPCONN 1
15671 _ACEOF
15673 LIBS="-lmysqlcppconn $LIBS"
15675 else
15676 { { echo "$as_me:$LINENO: error: MySQL C++ Connectivity lib not found or functional" >&5
15677 echo "$as_me: error: MySQL C++ Connectivity lib not found or functional" >&2;}
15678 { (exit 1); exit 1; }; }
15681 echo "$as_me:$LINENO: checking version" >&5
15682 echo $ECHO_N "checking version... $ECHO_C" >&6
15683 if test "$cross_compiling" = yes; then
15684 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
15685 See \`config.log' for more details." >&5
15686 echo "$as_me: error: cannot run test program while cross compiling
15687 See \`config.log' for more details." >&2;}
15688 { (exit 1); exit 1; }; }
15689 else
15690 cat >conftest.$ac_ext <<_ACEOF
15691 /* confdefs.h. */
15692 _ACEOF
15693 cat confdefs.h >>conftest.$ac_ext
15694 cat >>conftest.$ac_ext <<_ACEOF
15695 /* end confdefs.h. */
15697 #include <mysql_driver.h>
15699 int main(int argc, char **argv) {
15700 sql::Driver *driver;
15701 driver = get_driver_instance();
15702 if (driver->getMajorVersion() > 1 || \
15703 (driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || \
15704 (driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6))
15705 return 0;
15706 else
15707 return 1;
15710 _ACEOF
15711 rm -f conftest$ac_exeext
15712 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15713 (eval $ac_link) 2>&5
15714 ac_status=$?
15715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15718 (eval $ac_try) 2>&5
15719 ac_status=$?
15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15721 (exit $ac_status); }; }; then
15722 echo "$as_me:$LINENO: result: OK" >&5
15723 echo "${ECHO_T}OK" >&6
15724 else
15725 echo "$as_me: program exited with status $ac_status" >&5
15726 echo "$as_me: failed program was:" >&5
15727 sed 's/^/| /' conftest.$ac_ext >&5
15729 ( exit $ac_status )
15730 { { echo "$as_me:$LINENO: error: not suitable, we need >= 1.0.6" >&5
15731 echo "$as_me: error: not suitable, we need >= 1.0.6" >&2;}
15732 { (exit 1); exit 1; }; }
15734 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15736 ac_ext=cc
15737 ac_cpp='$CXXCPP $CPPFLAGS'
15738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15743 else
15744 echo "$as_me:$LINENO: result: internal" >&5
15745 echo "${ECHO_T}internal" >&6
15746 echo "$as_me:$LINENO: checking for mysqlcppconn module" >&5
15747 echo $ECHO_N "checking for mysqlcppconn module... $ECHO_C" >&6
15748 if test -d mysqlcppconn; then
15749 echo "$as_me:$LINENO: result: OK" >&5
15750 echo "${ECHO_T}OK" >&6
15751 else
15752 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
15753 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
15754 { (exit 1); exit 1; }; }
15756 BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
15757 SYSTEM_MYSQL_CPPCONN=NO
15759 ac_ext=c
15760 ac_cpp='$CPP $CPPFLAGS'
15761 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15762 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15763 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15768 echo "$as_me:$LINENO: checking which hsqldb to use" >&5
15769 echo $ECHO_N "checking which hsqldb to use... $ECHO_C" >&6
15770 if test -n "$with_system_hsqldb" -o -n "$with_system_libs" && \
15771 test "$with_system_hsqldb" != "no" && test "$with_system_jars" != "no"; then
15772 echo "$as_me:$LINENO: result: external" >&5
15773 echo "${ECHO_T}external" >&6
15774 SYSTEM_HSQLDB=YES
15775 if test -z $HSQLDB_JAR; then
15776 HSQLDB_JAR=/usr/share/java/hsqldb.jar
15778 as_ac_File=`echo "ac_cv_file_$HSQLDB_JAR" | $as_tr_sh`
15779 echo "$as_me:$LINENO: checking for $HSQLDB_JAR" >&5
15780 echo $ECHO_N "checking for $HSQLDB_JAR... $ECHO_C" >&6
15781 if eval "test \"\${$as_ac_File+set}\" = set"; then
15782 echo $ECHO_N "(cached) $ECHO_C" >&6
15783 else
15784 test "$cross_compiling" = yes &&
15785 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15786 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15787 { (exit 1); exit 1; }; }
15788 if test -r "$HSQLDB_JAR"; then
15789 eval "$as_ac_File=yes"
15790 else
15791 eval "$as_ac_File=no"
15794 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15795 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15796 if test `eval echo '${'$as_ac_File'}'` = yes; then
15798 else
15799 { { echo "$as_me:$LINENO: error: hsqldb.jar not found." >&5
15800 echo "$as_me: error: hsqldb.jar not found." >&2;}
15801 { (exit 1); exit 1; }; }
15804 echo "$as_me:$LINENO: checking whether hsqldb is 1.8.0.x" >&5
15805 echo $ECHO_N "checking whether hsqldb is 1.8.0.x... $ECHO_C" >&6
15806 export HSQLDB_JAR
15807 if $PERL -e 'use Archive::Zip;
15808 my $file = "$ENV{'HSQLDB_JAR'}";
15809 my $zip = Archive::Zip->new( $file );
15810 my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
15811 if ( $mf =~ m/Specification-Version: 1.8.*/ ) {
15812 push @l, split(/\n/, $mf);
15813 foreach my $line (@l) {
15814 if ($line =~ m/Specification-Version:/) {
15815 ($t, $version) = split (/:/,$line);
15816 $version =~ s/^\s//;
15817 ($a, $b, $c, $d) = split (/\./,$version);
15818 if ($c == "0" && $d > "8") {
15819 exit 0;
15820 } else {
15821 exit 1;
15825 } else {
15826 exit 1;
15827 }'; then
15828 echo "$as_me:$LINENO: result: yes" >&5
15829 echo "${ECHO_T}yes" >&6
15830 else
15831 { { echo "$as_me:$LINENO: error: no, you need hsqldb >= 1.8.0.9 but < 1.8.1" >&5
15832 echo "$as_me: error: no, you need hsqldb >= 1.8.0.9 but < 1.8.1" >&2;}
15833 { (exit 1); exit 1; }; }
15835 else
15836 echo "$as_me:$LINENO: result: internal" >&5
15837 echo "${ECHO_T}internal" >&6
15838 SYSTEM_HSQLDB=NO
15839 BUILD_TYPE="$BUILD_TYPE HSQLDB"
15844 echo "$as_me:$LINENO: checking which beanshell to use" >&5
15845 echo $ECHO_N "checking which beanshell to use... $ECHO_C" >&6
15846 if test -n "$with_system_beanshell" -o -n "$with_system_libs" && \
15847 test "$with_system_beanshell" != "no" && test "$with_system_jars" != "no"; then
15848 echo "$as_me:$LINENO: result: external" >&5
15849 echo "${ECHO_T}external" >&6
15850 SYSTEM_BSH=YES
15851 if test -z $BSH_JAR; then
15852 BSH_JAR=/usr/share/java/bsh.jar
15854 as_ac_File=`echo "ac_cv_file_$BSH_JAR" | $as_tr_sh`
15855 echo "$as_me:$LINENO: checking for $BSH_JAR" >&5
15856 echo $ECHO_N "checking for $BSH_JAR... $ECHO_C" >&6
15857 if eval "test \"\${$as_ac_File+set}\" = set"; then
15858 echo $ECHO_N "(cached) $ECHO_C" >&6
15859 else
15860 test "$cross_compiling" = yes &&
15861 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15862 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15863 { (exit 1); exit 1; }; }
15864 if test -r "$BSH_JAR"; then
15865 eval "$as_ac_File=yes"
15866 else
15867 eval "$as_ac_File=no"
15870 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15871 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15872 if test `eval echo '${'$as_ac_File'}'` = yes; then
15874 else
15875 { { echo "$as_me:$LINENO: error: bsh.jar not found." >&5
15876 echo "$as_me: error: bsh.jar not found." >&2;}
15877 { (exit 1); exit 1; }; }
15880 else
15881 echo "$as_me:$LINENO: result: internal" >&5
15882 echo "${ECHO_T}internal" >&6
15883 SYSTEM_BSH=NO
15884 BUILD_TYPE="$BUILD_TYPE BSH"
15890 echo "$as_me:$LINENO: checking which saxon to use" >&5
15891 echo $ECHO_N "checking which saxon to use... $ECHO_C" >&6
15892 if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
15893 test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
15894 echo "$as_me:$LINENO: result: external" >&5
15895 echo "${ECHO_T}external" >&6
15896 SYSTEM_SAXON=YES
15897 if test -z $SAXON_JAR; then
15898 echo "$as_me:$LINENO: checking for /usr/share/java/saxon9.jar" >&5
15899 echo $ECHO_N "checking for /usr/share/java/saxon9.jar... $ECHO_C" >&6
15900 if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then
15901 echo $ECHO_N "(cached) $ECHO_C" >&6
15902 else
15903 test "$cross_compiling" = yes &&
15904 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15905 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15906 { (exit 1); exit 1; }; }
15907 if test -r "/usr/share/java/saxon9.jar"; then
15908 ac_cv_file__usr_share_java_saxon9_jar=yes
15909 else
15910 ac_cv_file__usr_share_java_saxon9_jar=no
15913 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
15914 echo "${ECHO_T}$ac_cv_file__usr_share_java_saxon9_jar" >&6
15915 if test $ac_cv_file__usr_share_java_saxon9_jar = yes; then
15916 SAXON_JAR=/usr/share/java/saxon9.jar
15917 else
15919 echo "$as_me:$LINENO: checking for /usr/share/java/saxon.jar" >&5
15920 echo $ECHO_N "checking for /usr/share/java/saxon.jar... $ECHO_C" >&6
15921 if test "${ac_cv_file__usr_share_java_saxon_jar+set}" = set; then
15922 echo $ECHO_N "(cached) $ECHO_C" >&6
15923 else
15924 test "$cross_compiling" = yes &&
15925 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15926 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15927 { (exit 1); exit 1; }; }
15928 if test -r "/usr/share/java/saxon.jar"; then
15929 ac_cv_file__usr_share_java_saxon_jar=yes
15930 else
15931 ac_cv_file__usr_share_java_saxon_jar=no
15934 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon_jar" >&5
15935 echo "${ECHO_T}$ac_cv_file__usr_share_java_saxon_jar" >&6
15936 if test $ac_cv_file__usr_share_java_saxon_jar = yes; then
15937 SAXON_JAR=/usr/share/java/saxon.jar
15938 else
15939 echo "$as_me:$LINENO: checking for /usr/share/java/saxon9.jar" >&5
15940 echo $ECHO_N "checking for /usr/share/java/saxon9.jar... $ECHO_C" >&6
15941 if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then
15942 echo $ECHO_N "(cached) $ECHO_C" >&6
15943 else
15944 test "$cross_compiling" = yes &&
15945 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15946 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15947 { (exit 1); exit 1; }; }
15948 if test -r "/usr/share/java/saxon9.jar"; then
15949 ac_cv_file__usr_share_java_saxon9_jar=yes
15950 else
15951 ac_cv_file__usr_share_java_saxon9_jar=no
15954 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
15955 echo "${ECHO_T}$ac_cv_file__usr_share_java_saxon9_jar" >&6
15956 if test $ac_cv_file__usr_share_java_saxon9_jar = yes; then
15957 SAXON_JAR=/usr/share/java/saxon9.jar
15958 else
15959 { { echo "$as_me:$LINENO: error: saxon.jar replacement not found" >&5
15960 echo "$as_me: error: saxon.jar replacement not found" >&2;}
15961 { (exit 1); exit 1; }; }
15973 else
15974 as_ac_File=`echo "ac_cv_file_$SAXON_JAR" | $as_tr_sh`
15975 echo "$as_me:$LINENO: checking for $SAXON_JAR" >&5
15976 echo $ECHO_N "checking for $SAXON_JAR... $ECHO_C" >&6
15977 if eval "test \"\${$as_ac_File+set}\" = set"; then
15978 echo $ECHO_N "(cached) $ECHO_C" >&6
15979 else
15980 test "$cross_compiling" = yes &&
15981 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
15982 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
15983 { (exit 1); exit 1; }; }
15984 if test -r "$SAXON_JAR"; then
15985 eval "$as_ac_File=yes"
15986 else
15987 eval "$as_ac_File=no"
15990 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
15991 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
15992 if test `eval echo '${'$as_ac_File'}'` = yes; then
15994 else
15995 { { echo "$as_me:$LINENO: error: saxon.jar replacement not found." >&5
15996 echo "$as_me: error: saxon.jar replacement not found." >&2;}
15997 { (exit 1); exit 1; }; }
16001 if test -n "$SERIALIZER_JAR"; then
16002 as_ac_File=`echo "ac_cv_file_$SERIALIZER_JAR" | $as_tr_sh`
16003 echo "$as_me:$LINENO: checking for $SERIALIZER_JAR" >&5
16004 echo $ECHO_N "checking for $SERIALIZER_JAR... $ECHO_C" >&6
16005 if eval "test \"\${$as_ac_File+set}\" = set"; then
16006 echo $ECHO_N "(cached) $ECHO_C" >&6
16007 else
16008 test "$cross_compiling" = yes &&
16009 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
16010 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
16011 { (exit 1); exit 1; }; }
16012 if test -r "$SERIALIZER_JAR"; then
16013 eval "$as_ac_File=yes"
16014 else
16015 eval "$as_ac_File=no"
16018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
16019 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
16020 if test `eval echo '${'$as_ac_File'}'` = yes; then
16022 else
16023 { { echo "$as_me:$LINENO: error: serializer.jar not found." >&5
16024 echo "$as_me: error: serializer.jar not found." >&2;}
16025 { (exit 1); exit 1; }; }
16032 echo "$as_me:$LINENO: checking if saxon works" >&5
16033 echo $ECHO_N "checking if saxon works... $ECHO_C" >&6
16034 cat > saxontest.java <<_ACEOF
16035 import javax.xml.transform.TransformerFactory;
16036 import javax.xml.transform.Transformer;
16037 import javax.xml.transform.stream.StreamSource;
16038 import java.io.*;
16040 import net.sf.saxon.FeatureKeys;
16042 class saxontest {
16043 public static void main(String[] args) {
16044 System.setProperty("javax.xml.transform.TransformerFactory",
16045 "net.sf.saxon.TransformerFactoryImpl");
16046 try {
16047 TransformerFactory tfactory = TransformerFactory.newInstance();
16048 // some external saxons (Debian, Ubuntu, ...) have this disabled
16049 // per default
16050 tfactory.setAttribute(FeatureKeys.ALLOW_EXTERNAL_FUNCTIONS, new Boolean(true));
16051 System.out.println("TransformerFactory is" +
16052 tfactory.getClass().getName());
16053 Transformer transformer = tfactory.newTransformer(
16054 new StreamSource(new File(args[0])));
16055 } catch(Exception e){
16056 e.printStackTrace(System.err);
16057 System.exit(-1);
16059 System.exit(0);
16063 _ACEOF
16064 cat > saxontest.xsl<<_ACEOF
16065 <?xml version="1.0" encoding="UTF-8"?>
16066 <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
16067 <xsl:template match="/">
16068 <xsl:value-of select="math:sqrt(1)" xmlns:math="java:java.lang.Math"/>
16069 </xsl:template>
16070 </xsl:stylesheet>
16072 _ACEOF
16073 javac_cmd="$JAVACOMPILER -cp $SAXON_JAR saxontest.java 1>&2"
16074 { (eval echo "$as_me:$LINENO: \"$javac_cmd\"") >&5
16075 (eval $javac_cmd) 2>&5
16076 ac_status=$?
16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16078 (exit $ac_status); }
16079 if test $? = 0 && test -f ./saxontest.class ; then
16080 java_cmd="$JAVAINTERPRETER -cp $SAXON_JAR:. saxontest saxontest.xsl 1>&2"
16081 { (eval echo "$as_me:$LINENO: \"$java_cmd\"") >&5
16082 (eval $java_cmd) 2>&5
16083 ac_status=$?
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); }
16086 if test $? = 0; then
16087 echo "$as_me:$LINENO: result: yes" >&5
16088 echo "${ECHO_T}yes" >&6
16089 else
16090 cat saxontest.java >&5
16091 echo "$as_me:$LINENO: result: no" >&5
16092 echo "${ECHO_T}no" >&6
16093 { { echo "$as_me:$LINENO: error: Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb" >&5
16094 echo "$as_me: error: Non-functional saxon jar, e.g. crippled saxon-he instead of saxonb" >&2;}
16095 { (exit 1); exit 1; }; }
16097 else
16098 echo "$as_me:$LINENO: result: no" >&5
16099 echo "${ECHO_T}no" >&6
16100 cat saxontest.java >&5
16101 { { echo "$as_me:$LINENO: error: saxontest could not be compiled, non-functional saxon jar" >&5
16102 echo "$as_me: error: saxontest could not be compiled, non-functional saxon jar" >&2;}
16103 { (exit 1); exit 1; }; }
16105 else
16106 echo "$as_me:$LINENO: result: internal" >&5
16107 echo "${ECHO_T}internal" >&6
16108 SYSTEM_SAXON=NO
16109 NEED_SAXON=TRUE
16114 if test -n "$NEED_SAXON"; then
16115 BUILD_TYPE="$BUILD_TYPE SAXON"
16118 if test "$_os" = "Darwin" && test "$with_system_curl" != "no"; then
16119 with_system_curl=yes
16121 echo "$as_me:$LINENO: checking which curl to use" >&5
16122 echo $ECHO_N "checking which curl to use... $ECHO_C" >&6
16123 if test -n "$with_system_curl" -o -n "$with_system_libs" && \
16124 test "$with_system_curl" != "no"; then
16125 echo "$as_me:$LINENO: result: external" >&5
16126 echo "${ECHO_T}external" >&6
16127 SYSTEM_CURL=YES
16129 # Extract the first word of "curl-config", so it can be a program name with args.
16130 set dummy curl-config; ac_word=$2
16131 echo "$as_me:$LINENO: checking for $ac_word" >&5
16132 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
16133 if test "${ac_cv_path_CURLCONFIG+set}" = set; then
16134 echo $ECHO_N "(cached) $ECHO_C" >&6
16135 else
16136 case $CURLCONFIG in
16137 [\\/]* | ?:[\\/]*)
16138 ac_cv_path_CURLCONFIG="$CURLCONFIG" # Let the user override the test with a path.
16141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16142 for as_dir in $PATH
16144 IFS=$as_save_IFS
16145 test -z "$as_dir" && as_dir=.
16146 for ac_exec_ext in '' $ac_executable_extensions; do
16147 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16148 ac_cv_path_CURLCONFIG="$as_dir/$ac_word$ac_exec_ext"
16149 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16150 break 2
16152 done
16153 done
16156 esac
16158 CURLCONFIG=$ac_cv_path_CURLCONFIG
16160 if test -n "$CURLCONFIG"; then
16161 echo "$as_me:$LINENO: result: $CURLCONFIG" >&5
16162 echo "${ECHO_T}$CURLCONFIG" >&6
16163 else
16164 echo "$as_me:$LINENO: result: no" >&5
16165 echo "${ECHO_T}no" >&6
16168 if test -z "$CURLCONFIG"; then
16169 { { echo "$as_me:$LINENO: error: install curl to run this script" >&5
16170 echo "$as_me: error: install curl to run this script" >&2;}
16171 { (exit 1); exit 1; }; }
16174 # check curl version
16175 echo "$as_me:$LINENO: checking whether curl is >= 7.13.1" >&5
16176 echo $ECHO_N "checking whether curl is >= 7.13.1... $ECHO_C" >&6
16177 if test "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $1 }'`" -gt "7" -a \
16178 "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $2 }'`" -gt "13" -a \
16179 "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $3 }'`" -gt "1"; then
16180 { { echo "$as_me:$LINENO: error: no, you need at least curl 7.13,1" >&5
16181 echo "$as_me: error: no, you need at least curl 7.13,1" >&2;}
16182 { (exit 1); exit 1; }; }
16183 else
16184 echo "$as_me:$LINENO: result: yes" >&5
16185 echo "${ECHO_T}yes" >&6
16187 CURL_LIBS=`$CURLCONFIG --libs`
16188 CURL_CFLAGS=`$CURLCONFIG --cflags`
16189 else
16190 echo "$as_me:$LINENO: result: internal" >&5
16191 echo "${ECHO_T}internal" >&6
16192 SYSTEM_CURL=NO
16193 BUILD_TYPE="$BUILD_TYPE CURL"
16199 echo "$as_me:$LINENO: checking which mdds to use" >&5
16200 echo $ECHO_N "checking which mdds to use... $ECHO_C" >&6
16201 if test -n "$with_system_mdds" -o -n "$with_system_headers" && \
16202 test "$with_system_mdds" != "no"; then
16203 echo "$as_me:$LINENO: result: external" >&5
16204 echo "${ECHO_T}external" >&6
16205 SYSTEM_MDDS=YES
16206 ac_ext=cc
16207 ac_cpp='$CXXCPP $CPPFLAGS'
16208 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16209 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16210 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16212 if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
16213 echo "$as_me:$LINENO: checking for mdds/flat_segment_tree.hpp" >&5
16214 echo $ECHO_N "checking for mdds/flat_segment_tree.hpp... $ECHO_C" >&6
16215 if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
16216 echo $ECHO_N "(cached) $ECHO_C" >&6
16218 echo "$as_me:$LINENO: result: $ac_cv_header_mdds_flat_segment_tree_hpp" >&5
16219 echo "${ECHO_T}$ac_cv_header_mdds_flat_segment_tree_hpp" >&6
16220 else
16221 # Is the header compilable?
16222 echo "$as_me:$LINENO: checking mdds/flat_segment_tree.hpp usability" >&5
16223 echo $ECHO_N "checking mdds/flat_segment_tree.hpp usability... $ECHO_C" >&6
16224 cat >conftest.$ac_ext <<_ACEOF
16225 /* confdefs.h. */
16226 _ACEOF
16227 cat confdefs.h >>conftest.$ac_ext
16228 cat >>conftest.$ac_ext <<_ACEOF
16229 /* end confdefs.h. */
16230 $ac_includes_default
16231 #include <mdds/flat_segment_tree.hpp>
16232 _ACEOF
16233 rm -f conftest.$ac_objext
16234 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16235 (eval $ac_compile) 2>conftest.er1
16236 ac_status=$?
16237 grep -v '^ *+' conftest.er1 >conftest.err
16238 rm -f conftest.er1
16239 cat conftest.err >&5
16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16241 (exit $ac_status); } &&
16242 { ac_try='test -z "$ac_cxx_werror_flag"
16243 || test ! -s conftest.err'
16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16245 (eval $ac_try) 2>&5
16246 ac_status=$?
16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248 (exit $ac_status); }; } &&
16249 { ac_try='test -s conftest.$ac_objext'
16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16251 (eval $ac_try) 2>&5
16252 ac_status=$?
16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16254 (exit $ac_status); }; }; then
16255 ac_header_compiler=yes
16256 else
16257 echo "$as_me: failed program was:" >&5
16258 sed 's/^/| /' conftest.$ac_ext >&5
16260 ac_header_compiler=no
16262 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16263 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16264 echo "${ECHO_T}$ac_header_compiler" >&6
16266 # Is the header present?
16267 echo "$as_me:$LINENO: checking mdds/flat_segment_tree.hpp presence" >&5
16268 echo $ECHO_N "checking mdds/flat_segment_tree.hpp presence... $ECHO_C" >&6
16269 cat >conftest.$ac_ext <<_ACEOF
16270 /* confdefs.h. */
16271 _ACEOF
16272 cat confdefs.h >>conftest.$ac_ext
16273 cat >>conftest.$ac_ext <<_ACEOF
16274 /* end confdefs.h. */
16275 #include <mdds/flat_segment_tree.hpp>
16276 _ACEOF
16277 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16278 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16279 ac_status=$?
16280 grep -v '^ *+' conftest.er1 >conftest.err
16281 rm -f conftest.er1
16282 cat conftest.err >&5
16283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16284 (exit $ac_status); } >/dev/null; then
16285 if test -s conftest.err; then
16286 ac_cpp_err=$ac_cxx_preproc_warn_flag
16287 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16288 else
16289 ac_cpp_err=
16291 else
16292 ac_cpp_err=yes
16294 if test -z "$ac_cpp_err"; then
16295 ac_header_preproc=yes
16296 else
16297 echo "$as_me: failed program was:" >&5
16298 sed 's/^/| /' conftest.$ac_ext >&5
16300 ac_header_preproc=no
16302 rm -f conftest.err conftest.$ac_ext
16303 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16304 echo "${ECHO_T}$ac_header_preproc" >&6
16306 # So? What about this header?
16307 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16308 yes:no: )
16309 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
16310 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
16311 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: proceeding with the compiler's result" >&5
16312 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: proceeding with the compiler's result" >&2;}
16313 ac_header_preproc=yes
16315 no:yes:* )
16316 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: present but cannot be compiled" >&5
16317 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: present but cannot be compiled" >&2;}
16318 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: check for missing prerequisite headers?" >&5
16319 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: check for missing prerequisite headers?" >&2;}
16320 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: see the Autoconf documentation" >&5
16321 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: see the Autoconf documentation" >&2;}
16322 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: section \"Present But Cannot Be Compiled\"" >&5
16323 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
16324 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: proceeding with the preprocessor's result" >&5
16325 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: proceeding with the preprocessor's result" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: mdds/flat_segment_tree.hpp: in the future, the compiler will take precedence" >&5
16327 echo "$as_me: WARNING: mdds/flat_segment_tree.hpp: in the future, the compiler will take precedence" >&2;}
16329 cat <<\_ASBOX
16330 ## ------------------------------------------ ##
16331 ## Report this to the AC_PACKAGE_NAME lists. ##
16332 ## ------------------------------------------ ##
16333 _ASBOX
16335 sed "s/^/$as_me: WARNING: /" >&2
16337 esac
16338 echo "$as_me:$LINENO: checking for mdds/flat_segment_tree.hpp" >&5
16339 echo $ECHO_N "checking for mdds/flat_segment_tree.hpp... $ECHO_C" >&6
16340 if test "${ac_cv_header_mdds_flat_segment_tree_hpp+set}" = set; then
16341 echo $ECHO_N "(cached) $ECHO_C" >&6
16342 else
16343 ac_cv_header_mdds_flat_segment_tree_hpp=$ac_header_preproc
16345 echo "$as_me:$LINENO: result: $ac_cv_header_mdds_flat_segment_tree_hpp" >&5
16346 echo "${ECHO_T}$ac_cv_header_mdds_flat_segment_tree_hpp" >&6
16349 if test $ac_cv_header_mdds_flat_segment_tree_hpp = yes; then
16351 else
16352 { { echo "$as_me:$LINENO: error: mdds/flat_segment_tree.hpp not found. install mdds" >&5
16353 echo "$as_me: error: mdds/flat_segment_tree.hpp not found. install mdds" >&2;}
16354 { (exit 1); exit 1; }; }
16358 ac_ext=c
16359 ac_cpp='$CPP $CPPFLAGS'
16360 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16361 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16362 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16364 else
16365 echo "$as_me:$LINENO: result: internal" >&5
16366 echo "${ECHO_T}internal" >&6
16367 BUILD_TYPE="$BUILD_TYPE MDDS"
16368 SYSTEM_MDDS=NO
16372 echo "$as_me:$LINENO: checking which boost to use" >&5
16373 echo $ECHO_N "checking which boost to use... $ECHO_C" >&6
16374 if test -n "$with_system_boost" -o -n "$with_system_headers" && \
16375 test "$with_system_boost" != "no"; then
16376 echo "$as_me:$LINENO: result: external" >&5
16377 echo "${ECHO_T}external" >&6
16378 SYSTEM_BOOST=YES
16379 ac_ext=cc
16380 ac_cpp='$CXXCPP $CPPFLAGS'
16381 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16382 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16383 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16385 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
16386 echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
16387 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
16388 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
16389 echo $ECHO_N "(cached) $ECHO_C" >&6
16391 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
16392 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
16393 else
16394 # Is the header compilable?
16395 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp usability" >&5
16396 echo $ECHO_N "checking boost/shared_ptr.hpp usability... $ECHO_C" >&6
16397 cat >conftest.$ac_ext <<_ACEOF
16398 /* confdefs.h. */
16399 _ACEOF
16400 cat confdefs.h >>conftest.$ac_ext
16401 cat >>conftest.$ac_ext <<_ACEOF
16402 /* end confdefs.h. */
16403 $ac_includes_default
16404 #include <boost/shared_ptr.hpp>
16405 _ACEOF
16406 rm -f conftest.$ac_objext
16407 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16408 (eval $ac_compile) 2>conftest.er1
16409 ac_status=$?
16410 grep -v '^ *+' conftest.er1 >conftest.err
16411 rm -f conftest.er1
16412 cat conftest.err >&5
16413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16414 (exit $ac_status); } &&
16415 { ac_try='test -z "$ac_cxx_werror_flag"
16416 || test ! -s conftest.err'
16417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16418 (eval $ac_try) 2>&5
16419 ac_status=$?
16420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16421 (exit $ac_status); }; } &&
16422 { ac_try='test -s conftest.$ac_objext'
16423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16424 (eval $ac_try) 2>&5
16425 ac_status=$?
16426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16427 (exit $ac_status); }; }; then
16428 ac_header_compiler=yes
16429 else
16430 echo "$as_me: failed program was:" >&5
16431 sed 's/^/| /' conftest.$ac_ext >&5
16433 ac_header_compiler=no
16435 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16436 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16437 echo "${ECHO_T}$ac_header_compiler" >&6
16439 # Is the header present?
16440 echo "$as_me:$LINENO: checking boost/shared_ptr.hpp presence" >&5
16441 echo $ECHO_N "checking boost/shared_ptr.hpp presence... $ECHO_C" >&6
16442 cat >conftest.$ac_ext <<_ACEOF
16443 /* confdefs.h. */
16444 _ACEOF
16445 cat confdefs.h >>conftest.$ac_ext
16446 cat >>conftest.$ac_ext <<_ACEOF
16447 /* end confdefs.h. */
16448 #include <boost/shared_ptr.hpp>
16449 _ACEOF
16450 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16451 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16452 ac_status=$?
16453 grep -v '^ *+' conftest.er1 >conftest.err
16454 rm -f conftest.er1
16455 cat conftest.err >&5
16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16457 (exit $ac_status); } >/dev/null; then
16458 if test -s conftest.err; then
16459 ac_cpp_err=$ac_cxx_preproc_warn_flag
16460 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16461 else
16462 ac_cpp_err=
16464 else
16465 ac_cpp_err=yes
16467 if test -z "$ac_cpp_err"; then
16468 ac_header_preproc=yes
16469 else
16470 echo "$as_me: failed program was:" >&5
16471 sed 's/^/| /' conftest.$ac_ext >&5
16473 ac_header_preproc=no
16475 rm -f conftest.err conftest.$ac_ext
16476 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16477 echo "${ECHO_T}$ac_header_preproc" >&6
16479 # So? What about this header?
16480 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16481 yes:no: )
16482 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
16483 echo "$as_me: WARNING: boost/shared_ptr.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
16484 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&5
16485 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the compiler's result" >&2;}
16486 ac_header_preproc=yes
16488 no:yes:* )
16489 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&5
16490 echo "$as_me: WARNING: boost/shared_ptr.hpp: present but cannot be compiled" >&2;}
16491 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&5
16492 echo "$as_me: WARNING: boost/shared_ptr.hpp: check for missing prerequisite headers?" >&2;}
16493 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&5
16494 echo "$as_me: WARNING: boost/shared_ptr.hpp: see the Autoconf documentation" >&2;}
16495 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&5
16496 echo "$as_me: WARNING: boost/shared_ptr.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
16497 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&5
16498 echo "$as_me: WARNING: boost/shared_ptr.hpp: proceeding with the preprocessor's result" >&2;}
16499 { echo "$as_me:$LINENO: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&5
16500 echo "$as_me: WARNING: boost/shared_ptr.hpp: in the future, the compiler will take precedence" >&2;}
16502 cat <<\_ASBOX
16503 ## ------------------------------------------ ##
16504 ## Report this to the AC_PACKAGE_NAME lists. ##
16505 ## ------------------------------------------ ##
16506 _ASBOX
16508 sed "s/^/$as_me: WARNING: /" >&2
16510 esac
16511 echo "$as_me:$LINENO: checking for boost/shared_ptr.hpp" >&5
16512 echo $ECHO_N "checking for boost/shared_ptr.hpp... $ECHO_C" >&6
16513 if test "${ac_cv_header_boost_shared_ptr_hpp+set}" = set; then
16514 echo $ECHO_N "(cached) $ECHO_C" >&6
16515 else
16516 ac_cv_header_boost_shared_ptr_hpp=$ac_header_preproc
16518 echo "$as_me:$LINENO: result: $ac_cv_header_boost_shared_ptr_hpp" >&5
16519 echo "${ECHO_T}$ac_cv_header_boost_shared_ptr_hpp" >&6
16522 if test $ac_cv_header_boost_shared_ptr_hpp = yes; then
16524 else
16525 { { echo "$as_me:$LINENO: error: boost/shared_ptr.hpp not found. install boost" >&5
16526 echo "$as_me: error: boost/shared_ptr.hpp not found. install boost" >&2;}
16527 { (exit 1); exit 1; }; }
16531 if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
16532 echo "$as_me:$LINENO: checking for boost/spirit/include/classic_core.hpp" >&5
16533 echo $ECHO_N "checking for boost/spirit/include/classic_core.hpp... $ECHO_C" >&6
16534 if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
16535 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_include_classic_core_hpp" >&5
16538 echo "${ECHO_T}$ac_cv_header_boost_spirit_include_classic_core_hpp" >&6
16539 else
16540 # Is the header compilable?
16541 echo "$as_me:$LINENO: checking boost/spirit/include/classic_core.hpp usability" >&5
16542 echo $ECHO_N "checking boost/spirit/include/classic_core.hpp usability... $ECHO_C" >&6
16543 cat >conftest.$ac_ext <<_ACEOF
16544 /* confdefs.h. */
16545 _ACEOF
16546 cat confdefs.h >>conftest.$ac_ext
16547 cat >>conftest.$ac_ext <<_ACEOF
16548 /* end confdefs.h. */
16549 $ac_includes_default
16550 #include <boost/spirit/include/classic_core.hpp>
16551 _ACEOF
16552 rm -f conftest.$ac_objext
16553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16554 (eval $ac_compile) 2>conftest.er1
16555 ac_status=$?
16556 grep -v '^ *+' conftest.er1 >conftest.err
16557 rm -f conftest.er1
16558 cat conftest.err >&5
16559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560 (exit $ac_status); } &&
16561 { ac_try='test -z "$ac_cxx_werror_flag"
16562 || test ! -s conftest.err'
16563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16564 (eval $ac_try) 2>&5
16565 ac_status=$?
16566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16567 (exit $ac_status); }; } &&
16568 { ac_try='test -s conftest.$ac_objext'
16569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16570 (eval $ac_try) 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_header_compiler=yes
16575 else
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16579 ac_header_compiler=no
16581 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16582 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16583 echo "${ECHO_T}$ac_header_compiler" >&6
16585 # Is the header present?
16586 echo "$as_me:$LINENO: checking boost/spirit/include/classic_core.hpp presence" >&5
16587 echo $ECHO_N "checking boost/spirit/include/classic_core.hpp presence... $ECHO_C" >&6
16588 cat >conftest.$ac_ext <<_ACEOF
16589 /* confdefs.h. */
16590 _ACEOF
16591 cat confdefs.h >>conftest.$ac_ext
16592 cat >>conftest.$ac_ext <<_ACEOF
16593 /* end confdefs.h. */
16594 #include <boost/spirit/include/classic_core.hpp>
16595 _ACEOF
16596 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16597 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16598 ac_status=$?
16599 grep -v '^ *+' conftest.er1 >conftest.err
16600 rm -f conftest.er1
16601 cat conftest.err >&5
16602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16603 (exit $ac_status); } >/dev/null; then
16604 if test -s conftest.err; then
16605 ac_cpp_err=$ac_cxx_preproc_warn_flag
16606 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16607 else
16608 ac_cpp_err=
16610 else
16611 ac_cpp_err=yes
16613 if test -z "$ac_cpp_err"; then
16614 ac_header_preproc=yes
16615 else
16616 echo "$as_me: failed program was:" >&5
16617 sed 's/^/| /' conftest.$ac_ext >&5
16619 ac_header_preproc=no
16621 rm -f conftest.err conftest.$ac_ext
16622 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16623 echo "${ECHO_T}$ac_header_preproc" >&6
16625 # So? What about this header?
16626 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16627 yes:no: )
16628 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
16629 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
16630 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the compiler's result" >&5
16631 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the compiler's result" >&2;}
16632 ac_header_preproc=yes
16634 no:yes:* )
16635 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: present but cannot be compiled" >&5
16636 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: present but cannot be compiled" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: check for missing prerequisite headers?" >&5
16638 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: check for missing prerequisite headers?" >&2;}
16639 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: see the Autoconf documentation" >&5
16640 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: see the Autoconf documentation" >&2;}
16641 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: section \"Present But Cannot Be Compiled\"" >&5
16642 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
16643 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the preprocessor's result" >&5
16644 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: proceeding with the preprocessor's result" >&2;}
16645 { echo "$as_me:$LINENO: WARNING: boost/spirit/include/classic_core.hpp: in the future, the compiler will take precedence" >&5
16646 echo "$as_me: WARNING: boost/spirit/include/classic_core.hpp: in the future, the compiler will take precedence" >&2;}
16648 cat <<\_ASBOX
16649 ## ------------------------------------------ ##
16650 ## Report this to the AC_PACKAGE_NAME lists. ##
16651 ## ------------------------------------------ ##
16652 _ASBOX
16654 sed "s/^/$as_me: WARNING: /" >&2
16656 esac
16657 echo "$as_me:$LINENO: checking for boost/spirit/include/classic_core.hpp" >&5
16658 echo $ECHO_N "checking for boost/spirit/include/classic_core.hpp... $ECHO_C" >&6
16659 if test "${ac_cv_header_boost_spirit_include_classic_core_hpp+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662 ac_cv_header_boost_spirit_include_classic_core_hpp=$ac_header_preproc
16664 echo "$as_me:$LINENO: result: $ac_cv_header_boost_spirit_include_classic_core_hpp" >&5
16665 echo "${ECHO_T}$ac_cv_header_boost_spirit_include_classic_core_hpp" >&6
16668 if test $ac_cv_header_boost_spirit_include_classic_core_hpp = yes; then
16670 else
16671 { { echo "$as_me:$LINENO: error: boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" >&5
16672 echo "$as_me: error: boost/spirit/include/classic_core.hpp not found. install boost >= 1.36" >&2;}
16673 { (exit 1); exit 1; }; }
16677 if test "${ac_cv_header_boost_function_hpp+set}" = set; then
16678 echo "$as_me:$LINENO: checking for boost/function.hpp" >&5
16679 echo $ECHO_N "checking for boost/function.hpp... $ECHO_C" >&6
16680 if test "${ac_cv_header_boost_function_hpp+set}" = set; then
16681 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 echo "$as_me:$LINENO: result: $ac_cv_header_boost_function_hpp" >&5
16684 echo "${ECHO_T}$ac_cv_header_boost_function_hpp" >&6
16685 else
16686 # Is the header compilable?
16687 echo "$as_me:$LINENO: checking boost/function.hpp usability" >&5
16688 echo $ECHO_N "checking boost/function.hpp usability... $ECHO_C" >&6
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 $ac_includes_default
16696 #include <boost/function.hpp>
16697 _ACEOF
16698 rm -f conftest.$ac_objext
16699 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16700 (eval $ac_compile) 2>conftest.er1
16701 ac_status=$?
16702 grep -v '^ *+' conftest.er1 >conftest.err
16703 rm -f conftest.er1
16704 cat conftest.err >&5
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); } &&
16707 { ac_try='test -z "$ac_cxx_werror_flag"
16708 || test ! -s conftest.err'
16709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16710 (eval $ac_try) 2>&5
16711 ac_status=$?
16712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16713 (exit $ac_status); }; } &&
16714 { ac_try='test -s conftest.$ac_objext'
16715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16716 (eval $ac_try) 2>&5
16717 ac_status=$?
16718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719 (exit $ac_status); }; }; then
16720 ac_header_compiler=yes
16721 else
16722 echo "$as_me: failed program was:" >&5
16723 sed 's/^/| /' conftest.$ac_ext >&5
16725 ac_header_compiler=no
16727 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16728 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16729 echo "${ECHO_T}$ac_header_compiler" >&6
16731 # Is the header present?
16732 echo "$as_me:$LINENO: checking boost/function.hpp presence" >&5
16733 echo $ECHO_N "checking boost/function.hpp presence... $ECHO_C" >&6
16734 cat >conftest.$ac_ext <<_ACEOF
16735 /* confdefs.h. */
16736 _ACEOF
16737 cat confdefs.h >>conftest.$ac_ext
16738 cat >>conftest.$ac_ext <<_ACEOF
16739 /* end confdefs.h. */
16740 #include <boost/function.hpp>
16741 _ACEOF
16742 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16743 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16744 ac_status=$?
16745 grep -v '^ *+' conftest.er1 >conftest.err
16746 rm -f conftest.er1
16747 cat conftest.err >&5
16748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16749 (exit $ac_status); } >/dev/null; then
16750 if test -s conftest.err; then
16751 ac_cpp_err=$ac_cxx_preproc_warn_flag
16752 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16753 else
16754 ac_cpp_err=
16756 else
16757 ac_cpp_err=yes
16759 if test -z "$ac_cpp_err"; then
16760 ac_header_preproc=yes
16761 else
16762 echo "$as_me: failed program was:" >&5
16763 sed 's/^/| /' conftest.$ac_ext >&5
16765 ac_header_preproc=no
16767 rm -f conftest.err conftest.$ac_ext
16768 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16769 echo "${ECHO_T}$ac_header_preproc" >&6
16771 # So? What about this header?
16772 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
16773 yes:no: )
16774 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: accepted by the compiler, rejected by the preprocessor!" >&5
16775 echo "$as_me: WARNING: boost/function.hpp: accepted by the compiler, rejected by the preprocessor!" >&2;}
16776 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: proceeding with the compiler's result" >&5
16777 echo "$as_me: WARNING: boost/function.hpp: proceeding with the compiler's result" >&2;}
16778 ac_header_preproc=yes
16780 no:yes:* )
16781 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: present but cannot be compiled" >&5
16782 echo "$as_me: WARNING: boost/function.hpp: present but cannot be compiled" >&2;}
16783 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: check for missing prerequisite headers?" >&5
16784 echo "$as_me: WARNING: boost/function.hpp: check for missing prerequisite headers?" >&2;}
16785 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: see the Autoconf documentation" >&5
16786 echo "$as_me: WARNING: boost/function.hpp: see the Autoconf documentation" >&2;}
16787 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: section \"Present But Cannot Be Compiled\"" >&5
16788 echo "$as_me: WARNING: boost/function.hpp: section \"Present But Cannot Be Compiled\"" >&2;}
16789 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: proceeding with the preprocessor's result" >&5
16790 echo "$as_me: WARNING: boost/function.hpp: proceeding with the preprocessor's result" >&2;}
16791 { echo "$as_me:$LINENO: WARNING: boost/function.hpp: in the future, the compiler will take precedence" >&5
16792 echo "$as_me: WARNING: boost/function.hpp: in the future, the compiler will take precedence" >&2;}
16794 cat <<\_ASBOX
16795 ## ------------------------------------------ ##
16796 ## Report this to the AC_PACKAGE_NAME lists. ##
16797 ## ------------------------------------------ ##
16798 _ASBOX
16800 sed "s/^/$as_me: WARNING: /" >&2
16802 esac
16803 echo "$as_me:$LINENO: checking for boost/function.hpp" >&5
16804 echo $ECHO_N "checking for boost/function.hpp... $ECHO_C" >&6
16805 if test "${ac_cv_header_boost_function_hpp+set}" = set; then
16806 echo $ECHO_N "(cached) $ECHO_C" >&6
16807 else
16808 ac_cv_header_boost_function_hpp=$ac_header_preproc
16810 echo "$as_me:$LINENO: result: $ac_cv_header_boost_function_hpp" >&5
16811 echo "${ECHO_T}$ac_cv_header_boost_function_hpp" >&6
16814 if test $ac_cv_header_boost_function_hpp = yes; then
16816 else
16817 { { echo "$as_me:$LINENO: error: boost/function.hpp not found. install boost" >&5
16818 echo "$as_me: error: boost/function.hpp not found. install boost" >&2;}
16819 { (exit 1); exit 1; }; }
16824 save_CXXFLAGS=$CXXFLAGS
16825 CXXFLAGS="$CXXFLAGS -fno-exceptions"
16826 echo "$as_me:$LINENO: checking whether boost/function.hpp compiles with -fno-exceptions" >&5
16827 echo $ECHO_N "checking whether boost/function.hpp compiles with -fno-exceptions... $ECHO_C" >&6
16828 cat >conftest.$ac_ext <<_ACEOF
16829 /* confdefs.h. */
16830 _ACEOF
16831 cat confdefs.h >>conftest.$ac_ext
16832 cat >>conftest.$ac_ext <<_ACEOF
16833 /* end confdefs.h. */
16834 #include <boost/function.hpp>
16837 main ()
16841 return 0;
16843 _ACEOF
16844 rm -f conftest.$ac_objext
16845 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16846 (eval $ac_compile) 2>conftest.er1
16847 ac_status=$?
16848 grep -v '^ *+' conftest.er1 >conftest.err
16849 rm -f conftest.er1
16850 cat conftest.err >&5
16851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16852 (exit $ac_status); } &&
16853 { ac_try='test -z "$ac_cxx_werror_flag"
16854 || test ! -s conftest.err'
16855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16856 (eval $ac_try) 2>&5
16857 ac_status=$?
16858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16859 (exit $ac_status); }; } &&
16860 { ac_try='test -s conftest.$ac_objext'
16861 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16862 (eval $ac_try) 2>&5
16863 ac_status=$?
16864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16865 (exit $ac_status); }; }; then
16866 ac_cv_cxx_boost_no_exceptons_broken=no
16867 else
16868 echo "$as_me: failed program was:" >&5
16869 sed 's/^/| /' conftest.$ac_ext >&5
16871 ac_cv_cxx_boost_no_exceptons_broken=yes
16873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16875 if test "$ac_cv_cxx_boost_no_exceptons_broken" = "yes"; then
16876 { { echo "$as_me:$LINENO: error: no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" >&5
16877 echo "$as_me: error: no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" >&2;}
16878 { (exit 1); exit 1; }; }
16879 else
16880 echo "$as_me:$LINENO: result: yes" >&5
16881 echo "${ECHO_T}yes" >&6
16883 CXXFLAGS=$save_CXXFLAGS
16884 ac_ext=c
16885 ac_cpp='$CPP $CPPFLAGS'
16886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16890 else
16891 echo "$as_me:$LINENO: result: internal" >&5
16892 echo "${ECHO_T}internal" >&6
16893 BUILD_TYPE="$BUILD_TYPE BOOST"
16894 SYSTEM_BOOST=NO
16898 echo "$as_me:$LINENO: checking which vigra to use" >&5
16899 echo $ECHO_N "checking which vigra to use... $ECHO_C" >&6
16900 if test -n "$with_system_vigra" -o -n "$with_system_headers" && \
16901 test "$with_system_vigra" != "no"; then
16902 echo "$as_me:$LINENO: result: external" >&5
16903 echo "${ECHO_T}external" >&6
16904 SYSTEM_VIGRA=YES
16905 ac_ext=cc
16906 ac_cpp='$CXXCPP $CPPFLAGS'
16907 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16908 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16909 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
16911 if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
16912 echo "$as_me:$LINENO: checking for vigra/copyimage.hxx" >&5
16913 echo $ECHO_N "checking for vigra/copyimage.hxx... $ECHO_C" >&6
16914 if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
16915 echo $ECHO_N "(cached) $ECHO_C" >&6
16917 echo "$as_me:$LINENO: result: $ac_cv_header_vigra_copyimage_hxx" >&5
16918 echo "${ECHO_T}$ac_cv_header_vigra_copyimage_hxx" >&6
16919 else
16920 # Is the header compilable?
16921 echo "$as_me:$LINENO: checking vigra/copyimage.hxx usability" >&5
16922 echo $ECHO_N "checking vigra/copyimage.hxx usability... $ECHO_C" >&6
16923 cat >conftest.$ac_ext <<_ACEOF
16924 /* confdefs.h. */
16925 _ACEOF
16926 cat confdefs.h >>conftest.$ac_ext
16927 cat >>conftest.$ac_ext <<_ACEOF
16928 /* end confdefs.h. */
16929 $ac_includes_default
16930 #include <vigra/copyimage.hxx>
16931 _ACEOF
16932 rm -f conftest.$ac_objext
16933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16934 (eval $ac_compile) 2>conftest.er1
16935 ac_status=$?
16936 grep -v '^ *+' conftest.er1 >conftest.err
16937 rm -f conftest.er1
16938 cat conftest.err >&5
16939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16940 (exit $ac_status); } &&
16941 { ac_try='test -z "$ac_cxx_werror_flag"
16942 || test ! -s conftest.err'
16943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16944 (eval $ac_try) 2>&5
16945 ac_status=$?
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 (exit $ac_status); }; } &&
16948 { ac_try='test -s conftest.$ac_objext'
16949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16950 (eval $ac_try) 2>&5
16951 ac_status=$?
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); }; }; then
16954 ac_header_compiler=yes
16955 else
16956 echo "$as_me: failed program was:" >&5
16957 sed 's/^/| /' conftest.$ac_ext >&5
16959 ac_header_compiler=no
16961 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
16962 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16963 echo "${ECHO_T}$ac_header_compiler" >&6
16965 # Is the header present?
16966 echo "$as_me:$LINENO: checking vigra/copyimage.hxx presence" >&5
16967 echo $ECHO_N "checking vigra/copyimage.hxx presence... $ECHO_C" >&6
16968 cat >conftest.$ac_ext <<_ACEOF
16969 /* confdefs.h. */
16970 _ACEOF
16971 cat confdefs.h >>conftest.$ac_ext
16972 cat >>conftest.$ac_ext <<_ACEOF
16973 /* end confdefs.h. */
16974 #include <vigra/copyimage.hxx>
16975 _ACEOF
16976 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
16977 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
16978 ac_status=$?
16979 grep -v '^ *+' conftest.er1 >conftest.err
16980 rm -f conftest.er1
16981 cat conftest.err >&5
16982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16983 (exit $ac_status); } >/dev/null; then
16984 if test -s conftest.err; then
16985 ac_cpp_err=$ac_cxx_preproc_warn_flag
16986 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
16987 else
16988 ac_cpp_err=
16990 else
16991 ac_cpp_err=yes
16993 if test -z "$ac_cpp_err"; then
16994 ac_header_preproc=yes
16995 else
16996 echo "$as_me: failed program was:" >&5
16997 sed 's/^/| /' conftest.$ac_ext >&5
16999 ac_header_preproc=no
17001 rm -f conftest.err conftest.$ac_ext
17002 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17003 echo "${ECHO_T}$ac_header_preproc" >&6
17005 # So? What about this header?
17006 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
17007 yes:no: )
17008 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
17009 echo "$as_me: WARNING: vigra/copyimage.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
17010 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: proceeding with the compiler's result" >&5
17011 echo "$as_me: WARNING: vigra/copyimage.hxx: proceeding with the compiler's result" >&2;}
17012 ac_header_preproc=yes
17014 no:yes:* )
17015 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: present but cannot be compiled" >&5
17016 echo "$as_me: WARNING: vigra/copyimage.hxx: present but cannot be compiled" >&2;}
17017 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: check for missing prerequisite headers?" >&5
17018 echo "$as_me: WARNING: vigra/copyimage.hxx: check for missing prerequisite headers?" >&2;}
17019 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: see the Autoconf documentation" >&5
17020 echo "$as_me: WARNING: vigra/copyimage.hxx: see the Autoconf documentation" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: section \"Present But Cannot Be Compiled\"" >&5
17022 echo "$as_me: WARNING: vigra/copyimage.hxx: section \"Present But Cannot Be Compiled\"" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: proceeding with the preprocessor's result" >&5
17024 echo "$as_me: WARNING: vigra/copyimage.hxx: proceeding with the preprocessor's result" >&2;}
17025 { echo "$as_me:$LINENO: WARNING: vigra/copyimage.hxx: in the future, the compiler will take precedence" >&5
17026 echo "$as_me: WARNING: vigra/copyimage.hxx: in the future, the compiler will take precedence" >&2;}
17028 cat <<\_ASBOX
17029 ## ------------------------------------------ ##
17030 ## Report this to the AC_PACKAGE_NAME lists. ##
17031 ## ------------------------------------------ ##
17032 _ASBOX
17034 sed "s/^/$as_me: WARNING: /" >&2
17036 esac
17037 echo "$as_me:$LINENO: checking for vigra/copyimage.hxx" >&5
17038 echo $ECHO_N "checking for vigra/copyimage.hxx... $ECHO_C" >&6
17039 if test "${ac_cv_header_vigra_copyimage_hxx+set}" = set; then
17040 echo $ECHO_N "(cached) $ECHO_C" >&6
17041 else
17042 ac_cv_header_vigra_copyimage_hxx=$ac_header_preproc
17044 echo "$as_me:$LINENO: result: $ac_cv_header_vigra_copyimage_hxx" >&5
17045 echo "${ECHO_T}$ac_cv_header_vigra_copyimage_hxx" >&6
17048 if test $ac_cv_header_vigra_copyimage_hxx = yes; then
17050 else
17051 { { echo "$as_me:$LINENO: error: vigra/copyimage.hxx not found. install vigra" >&5
17052 echo "$as_me: error: vigra/copyimage.hxx not found. install vigra" >&2;}
17053 { (exit 1); exit 1; }; }
17057 ac_ext=c
17058 ac_cpp='$CPP $CPPFLAGS'
17059 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17060 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17061 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17063 else
17064 echo "$as_me:$LINENO: result: internal" >&5
17065 echo "${ECHO_T}internal" >&6
17066 BUILD_TYPE="$BUILD_TYPE VIGRA"
17067 SYSTEM_VIGRA=NO
17071 echo "$as_me:$LINENO: checking which odbc headers to use" >&5
17072 echo $ECHO_N "checking which odbc headers to use... $ECHO_C" >&6
17073 if test -n "$with_system_odbc_headers" -o -n "$with_system_headers" && \
17074 test "$with_system_odbc_headers" != "no"; then
17075 echo "$as_me:$LINENO: result: external" >&5
17076 echo "${ECHO_T}external" >&6
17077 SYSTEM_ODBC_HEADERS=YES
17079 if test "${ac_cv_header_sqlext_h+set}" = set; then
17080 echo "$as_me:$LINENO: checking for sqlext.h" >&5
17081 echo $ECHO_N "checking for sqlext.h... $ECHO_C" >&6
17082 if test "${ac_cv_header_sqlext_h+set}" = set; then
17083 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 echo "$as_me:$LINENO: result: $ac_cv_header_sqlext_h" >&5
17086 echo "${ECHO_T}$ac_cv_header_sqlext_h" >&6
17087 else
17088 # Is the header compilable?
17089 echo "$as_me:$LINENO: checking sqlext.h usability" >&5
17090 echo $ECHO_N "checking sqlext.h usability... $ECHO_C" >&6
17091 cat >conftest.$ac_ext <<_ACEOF
17092 /* confdefs.h. */
17093 _ACEOF
17094 cat confdefs.h >>conftest.$ac_ext
17095 cat >>conftest.$ac_ext <<_ACEOF
17096 /* end confdefs.h. */
17097 $ac_includes_default
17098 #include <sqlext.h>
17099 _ACEOF
17100 rm -f conftest.$ac_objext
17101 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17102 (eval $ac_compile) 2>conftest.er1
17103 ac_status=$?
17104 grep -v '^ *+' conftest.er1 >conftest.err
17105 rm -f conftest.er1
17106 cat conftest.err >&5
17107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108 (exit $ac_status); } &&
17109 { ac_try='test -z "$ac_c_werror_flag"
17110 || test ! -s conftest.err'
17111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17112 (eval $ac_try) 2>&5
17113 ac_status=$?
17114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17115 (exit $ac_status); }; } &&
17116 { ac_try='test -s conftest.$ac_objext'
17117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17118 (eval $ac_try) 2>&5
17119 ac_status=$?
17120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17121 (exit $ac_status); }; }; then
17122 ac_header_compiler=yes
17123 else
17124 echo "$as_me: failed program was:" >&5
17125 sed 's/^/| /' conftest.$ac_ext >&5
17127 ac_header_compiler=no
17129 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17130 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17131 echo "${ECHO_T}$ac_header_compiler" >&6
17133 # Is the header present?
17134 echo "$as_me:$LINENO: checking sqlext.h presence" >&5
17135 echo $ECHO_N "checking sqlext.h presence... $ECHO_C" >&6
17136 cat >conftest.$ac_ext <<_ACEOF
17137 /* confdefs.h. */
17138 _ACEOF
17139 cat confdefs.h >>conftest.$ac_ext
17140 cat >>conftest.$ac_ext <<_ACEOF
17141 /* end confdefs.h. */
17142 #include <sqlext.h>
17143 _ACEOF
17144 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17145 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17146 ac_status=$?
17147 grep -v '^ *+' conftest.er1 >conftest.err
17148 rm -f conftest.er1
17149 cat conftest.err >&5
17150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17151 (exit $ac_status); } >/dev/null; then
17152 if test -s conftest.err; then
17153 ac_cpp_err=$ac_c_preproc_warn_flag
17154 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17155 else
17156 ac_cpp_err=
17158 else
17159 ac_cpp_err=yes
17161 if test -z "$ac_cpp_err"; then
17162 ac_header_preproc=yes
17163 else
17164 echo "$as_me: failed program was:" >&5
17165 sed 's/^/| /' conftest.$ac_ext >&5
17167 ac_header_preproc=no
17169 rm -f conftest.err conftest.$ac_ext
17170 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17171 echo "${ECHO_T}$ac_header_preproc" >&6
17173 # So? What about this header?
17174 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17175 yes:no: )
17176 { echo "$as_me:$LINENO: WARNING: sqlext.h: accepted by the compiler, rejected by the preprocessor!" >&5
17177 echo "$as_me: WARNING: sqlext.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17178 { echo "$as_me:$LINENO: WARNING: sqlext.h: proceeding with the compiler's result" >&5
17179 echo "$as_me: WARNING: sqlext.h: proceeding with the compiler's result" >&2;}
17180 ac_header_preproc=yes
17182 no:yes:* )
17183 { echo "$as_me:$LINENO: WARNING: sqlext.h: present but cannot be compiled" >&5
17184 echo "$as_me: WARNING: sqlext.h: present but cannot be compiled" >&2;}
17185 { echo "$as_me:$LINENO: WARNING: sqlext.h: check for missing prerequisite headers?" >&5
17186 echo "$as_me: WARNING: sqlext.h: check for missing prerequisite headers?" >&2;}
17187 { echo "$as_me:$LINENO: WARNING: sqlext.h: see the Autoconf documentation" >&5
17188 echo "$as_me: WARNING: sqlext.h: see the Autoconf documentation" >&2;}
17189 { echo "$as_me:$LINENO: WARNING: sqlext.h: section \"Present But Cannot Be Compiled\"" >&5
17190 echo "$as_me: WARNING: sqlext.h: section \"Present But Cannot Be Compiled\"" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: sqlext.h: proceeding with the preprocessor's result" >&5
17192 echo "$as_me: WARNING: sqlext.h: proceeding with the preprocessor's result" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: sqlext.h: in the future, the compiler will take precedence" >&5
17194 echo "$as_me: WARNING: sqlext.h: in the future, the compiler will take precedence" >&2;}
17196 cat <<\_ASBOX
17197 ## ------------------------------------------ ##
17198 ## Report this to the AC_PACKAGE_NAME lists. ##
17199 ## ------------------------------------------ ##
17200 _ASBOX
17202 sed "s/^/$as_me: WARNING: /" >&2
17204 esac
17205 echo "$as_me:$LINENO: checking for sqlext.h" >&5
17206 echo $ECHO_N "checking for sqlext.h... $ECHO_C" >&6
17207 if test "${ac_cv_header_sqlext_h+set}" = set; then
17208 echo $ECHO_N "(cached) $ECHO_C" >&6
17209 else
17210 ac_cv_header_sqlext_h=$ac_header_preproc
17212 echo "$as_me:$LINENO: result: $ac_cv_header_sqlext_h" >&5
17213 echo "${ECHO_T}$ac_cv_header_sqlext_h" >&6
17216 if test $ac_cv_header_sqlext_h = yes; then
17218 else
17219 { { echo "$as_me:$LINENO: error: odbc not found. install odbc" >&5
17220 echo "$as_me: error: odbc not found. install odbc" >&2;}
17221 { (exit 1); exit 1; }; }
17225 else
17226 echo "$as_me:$LINENO: result: internal" >&5
17227 echo "${ECHO_T}internal" >&6
17228 SYSTEM_ODBC_HEADERS=NO
17229 BUILD_TYPE="$BUILD_TYPE UNIXODBC"
17233 echo "$as_me:$LINENO: checking whether to enable build of Mozilla/Mozilla NSS-using components" >&5
17234 echo $ECHO_N "checking whether to enable build of Mozilla/Mozilla NSS-using components... $ECHO_C" >&6
17235 if test "$enable_mozilla" = "no"; then
17236 echo "$as_me:$LINENO: result: no" >&5
17237 echo "${ECHO_T}no" >&6
17238 WITH_MOZILLA=NO
17239 ENABLE_NSS_MODULE=NO
17240 else
17241 echo "$as_me:$LINENO: result: yes" >&5
17242 echo "${ECHO_T}yes" >&6
17243 WITH_MOZILLA=YES
17247 echo "$as_me:$LINENO: checking whether to build Mozilla addressbook connectivity" >&5
17248 echo $ECHO_N "checking whether to build Mozilla addressbook connectivity... $ECHO_C" >&6
17249 if test "$enable_mozilla" = "no"; then
17250 echo "$as_me:$LINENO: result: no" >&5
17251 echo "${ECHO_T}no" >&6
17252 elif test "$with_system_mozilla" = "yes"; then
17253 echo "$as_me:$LINENO: result: no, not possible with system-mozilla" >&5
17254 echo "${ECHO_T}no, not possible with system-mozilla" >&6
17255 else
17256 echo "$as_me:$LINENO: result: yes" >&5
17257 echo "${ECHO_T}yes" >&6
17260 echo "$as_me:$LINENO: checking whether to build XML Security support" >&5
17261 echo $ECHO_N "checking whether to build XML Security support... $ECHO_C" >&6
17262 if test "$enable_mozilla" = "no"; then
17263 echo "$as_me:$LINENO: result: no, since Mozilla (NSS) disabled but needed" >&5
17264 echo "${ECHO_T}no, since Mozilla (NSS) disabled but needed" >&6
17265 else
17266 echo "$as_me:$LINENO: result: yes" >&5
17267 echo "${ECHO_T}yes" >&6
17270 echo "$as_me:$LINENO: checking whether to build LDAP configuration backend" >&5
17271 echo $ECHO_N "checking whether to build LDAP configuration backend... $ECHO_C" >&6
17272 if test -z "$enable_ldap" || test "$enable_ldap" = "yes"; then
17273 if test "$enable_mozilla" = "yes" || test "$with_openldap" = "yes"; then
17274 echo "$as_me:$LINENO: result: yes" >&5
17275 echo "${ECHO_T}yes" >&6
17276 WITH_LDAP=YES
17277 else
17278 echo "$as_me:$LINENO: result: no. Either Mozilla or OpenLDAP needed" >&5
17279 echo "${ECHO_T}no. Either Mozilla or OpenLDAP needed" >&6
17280 WITH_LDAP=NO
17282 else
17283 echo "$as_me:$LINENO: result: no" >&5
17284 echo "${ECHO_T}no" >&6
17285 WITH_LDAP=NO
17288 if test "$WITH_LDAP" = "YES"; then
17289 echo "$as_me:$LINENO: checking which LDAP SDK to use" >&5
17290 echo $ECHO_N "checking which LDAP SDK to use... $ECHO_C" >&6
17291 if test -n "$with_openldap" && test "$with_openldap" != "no"; then
17292 echo "$as_me:$LINENO: result: OpenLDAP" >&5
17293 echo "${ECHO_T}OpenLDAP" >&6
17294 WITH_OPENLDAP=YES
17296 for ac_header in ldap.h
17298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17299 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17300 echo "$as_me:$LINENO: checking for $ac_header" >&5
17301 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17302 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17303 echo $ECHO_N "(cached) $ECHO_C" >&6
17305 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17306 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17307 else
17308 # Is the header compilable?
17309 echo "$as_me:$LINENO: checking $ac_header usability" >&5
17310 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
17311 cat >conftest.$ac_ext <<_ACEOF
17312 /* confdefs.h. */
17313 _ACEOF
17314 cat confdefs.h >>conftest.$ac_ext
17315 cat >>conftest.$ac_ext <<_ACEOF
17316 /* end confdefs.h. */
17317 $ac_includes_default
17318 #include <$ac_header>
17319 _ACEOF
17320 rm -f conftest.$ac_objext
17321 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17322 (eval $ac_compile) 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } &&
17329 { ac_try='test -z "$ac_c_werror_flag"
17330 || test ! -s conftest.err'
17331 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17332 (eval $ac_try) 2>&5
17333 ac_status=$?
17334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17335 (exit $ac_status); }; } &&
17336 { ac_try='test -s conftest.$ac_objext'
17337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17338 (eval $ac_try) 2>&5
17339 ac_status=$?
17340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17341 (exit $ac_status); }; }; then
17342 ac_header_compiler=yes
17343 else
17344 echo "$as_me: failed program was:" >&5
17345 sed 's/^/| /' conftest.$ac_ext >&5
17347 ac_header_compiler=no
17349 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
17350 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17351 echo "${ECHO_T}$ac_header_compiler" >&6
17353 # Is the header present?
17354 echo "$as_me:$LINENO: checking $ac_header presence" >&5
17355 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
17356 cat >conftest.$ac_ext <<_ACEOF
17357 /* confdefs.h. */
17358 _ACEOF
17359 cat confdefs.h >>conftest.$ac_ext
17360 cat >>conftest.$ac_ext <<_ACEOF
17361 /* end confdefs.h. */
17362 #include <$ac_header>
17363 _ACEOF
17364 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
17365 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
17366 ac_status=$?
17367 grep -v '^ *+' conftest.er1 >conftest.err
17368 rm -f conftest.er1
17369 cat conftest.err >&5
17370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17371 (exit $ac_status); } >/dev/null; then
17372 if test -s conftest.err; then
17373 ac_cpp_err=$ac_c_preproc_warn_flag
17374 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17375 else
17376 ac_cpp_err=
17378 else
17379 ac_cpp_err=yes
17381 if test -z "$ac_cpp_err"; then
17382 ac_header_preproc=yes
17383 else
17384 echo "$as_me: failed program was:" >&5
17385 sed 's/^/| /' conftest.$ac_ext >&5
17387 ac_header_preproc=no
17389 rm -f conftest.err conftest.$ac_ext
17390 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17391 echo "${ECHO_T}$ac_header_preproc" >&6
17393 # So? What about this header?
17394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17395 yes:no: )
17396 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17397 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17399 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17400 ac_header_preproc=yes
17402 no:yes:* )
17403 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17404 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17405 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17406 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17407 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17408 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17409 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17410 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17411 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17412 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17413 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17414 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17416 cat <<\_ASBOX
17417 ## ------------------------------------------ ##
17418 ## Report this to the AC_PACKAGE_NAME lists. ##
17419 ## ------------------------------------------ ##
17420 _ASBOX
17422 sed "s/^/$as_me: WARNING: /" >&2
17424 esac
17425 echo "$as_me:$LINENO: checking for $ac_header" >&5
17426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
17427 if eval "test \"\${$as_ac_Header+set}\" = set"; then
17428 echo $ECHO_N "(cached) $ECHO_C" >&6
17429 else
17430 eval "$as_ac_Header=\$ac_header_preproc"
17432 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
17433 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
17436 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17437 cat >>confdefs.h <<_ACEOF
17438 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17439 _ACEOF
17441 else
17442 { { echo "$as_me:$LINENO: error: ldap.h not found. install openldap libs" >&5
17443 echo "$as_me: error: ldap.h not found. install openldap libs" >&2;}
17444 { (exit 1); exit 1; }; }
17447 done
17450 echo "$as_me:$LINENO: checking for ldap_simple_bind_s in -lldap" >&5
17451 echo $ECHO_N "checking for ldap_simple_bind_s in -lldap... $ECHO_C" >&6
17452 if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then
17453 echo $ECHO_N "(cached) $ECHO_C" >&6
17454 else
17455 ac_check_lib_save_LIBS=$LIBS
17456 LIBS="-lldap $LIBS"
17457 cat >conftest.$ac_ext <<_ACEOF
17458 /* confdefs.h. */
17459 _ACEOF
17460 cat confdefs.h >>conftest.$ac_ext
17461 cat >>conftest.$ac_ext <<_ACEOF
17462 /* end confdefs.h. */
17464 /* Override any gcc2 internal prototype to avoid an error. */
17465 #ifdef __cplusplus
17466 extern "C"
17467 #endif
17468 /* We use char because int might match the return type of a gcc2
17469 builtin and then its argument prototype would still apply. */
17470 char ldap_simple_bind_s ();
17472 main ()
17474 ldap_simple_bind_s ();
17476 return 0;
17478 _ACEOF
17479 rm -f conftest.$ac_objext conftest$ac_exeext
17480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17481 (eval $ac_link) 2>conftest.er1
17482 ac_status=$?
17483 grep -v '^ *+' conftest.er1 >conftest.err
17484 rm -f conftest.er1
17485 cat conftest.err >&5
17486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17487 (exit $ac_status); } &&
17488 { ac_try='test -z "$ac_c_werror_flag"
17489 || test ! -s conftest.err'
17490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17491 (eval $ac_try) 2>&5
17492 ac_status=$?
17493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17494 (exit $ac_status); }; } &&
17495 { ac_try='test -s conftest$ac_exeext'
17496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17497 (eval $ac_try) 2>&5
17498 ac_status=$?
17499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500 (exit $ac_status); }; }; then
17501 ac_cv_lib_ldap_ldap_simple_bind_s=yes
17502 else
17503 echo "$as_me: failed program was:" >&5
17504 sed 's/^/| /' conftest.$ac_ext >&5
17506 ac_cv_lib_ldap_ldap_simple_bind_s=no
17508 rm -f conftest.err conftest.$ac_objext \
17509 conftest$ac_exeext conftest.$ac_ext
17510 LIBS=$ac_check_lib_save_LIBS
17512 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
17513 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_simple_bind_s" >&6
17514 if test $ac_cv_lib_ldap_ldap_simple_bind_s = yes; then
17515 cat >>confdefs.h <<_ACEOF
17516 #define HAVE_LIBLDAP 1
17517 _ACEOF
17519 LIBS="-lldap $LIBS"
17521 else
17522 { { echo "$as_me:$LINENO: error: openldap lib not found or functional" >&5
17523 echo "$as_me: error: openldap lib not found or functional" >&2;}
17524 { (exit 1); exit 1; }; }
17527 # rumours say that OpenLDAP doesn't have that function. I looked and
17528 # it has it. Test for it to be sure
17530 echo "$as_me:$LINENO: checking for ldap_set_option in -lldap" >&5
17531 echo $ECHO_N "checking for ldap_set_option in -lldap... $ECHO_C" >&6
17532 if test "${ac_cv_lib_ldap_ldap_set_option+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17534 else
17535 ac_check_lib_save_LIBS=$LIBS
17536 LIBS="-lldap $LIBS"
17537 cat >conftest.$ac_ext <<_ACEOF
17538 /* confdefs.h. */
17539 _ACEOF
17540 cat confdefs.h >>conftest.$ac_ext
17541 cat >>conftest.$ac_ext <<_ACEOF
17542 /* end confdefs.h. */
17544 /* Override any gcc2 internal prototype to avoid an error. */
17545 #ifdef __cplusplus
17546 extern "C"
17547 #endif
17548 /* We use char because int might match the return type of a gcc2
17549 builtin and then its argument prototype would still apply. */
17550 char ldap_set_option ();
17552 main ()
17554 ldap_set_option ();
17556 return 0;
17558 _ACEOF
17559 rm -f conftest.$ac_objext conftest$ac_exeext
17560 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17561 (eval $ac_link) 2>conftest.er1
17562 ac_status=$?
17563 grep -v '^ *+' conftest.er1 >conftest.err
17564 rm -f conftest.er1
17565 cat conftest.err >&5
17566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17567 (exit $ac_status); } &&
17568 { ac_try='test -z "$ac_c_werror_flag"
17569 || test ! -s conftest.err'
17570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17571 (eval $ac_try) 2>&5
17572 ac_status=$?
17573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17574 (exit $ac_status); }; } &&
17575 { ac_try='test -s conftest$ac_exeext'
17576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17577 (eval $ac_try) 2>&5
17578 ac_status=$?
17579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580 (exit $ac_status); }; }; then
17581 ac_cv_lib_ldap_ldap_set_option=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17586 ac_cv_lib_ldap_ldap_set_option=no
17588 rm -f conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17590 LIBS=$ac_check_lib_save_LIBS
17592 echo "$as_me:$LINENO: result: $ac_cv_lib_ldap_ldap_set_option" >&5
17593 echo "${ECHO_T}$ac_cv_lib_ldap_ldap_set_option" >&6
17594 if test $ac_cv_lib_ldap_ldap_set_option = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define HAVE_LIBLDAP 1
17597 _ACEOF
17599 LIBS="-lldap $LIBS"
17601 else
17602 { { echo "$as_me:$LINENO: error: openldap lib not found or functional" >&5
17603 echo "$as_me: error: openldap lib not found or functional" >&2;}
17604 { (exit 1); exit 1; }; }
17607 else
17608 echo "$as_me:$LINENO: result: Netscape/Mozilla" >&5
17609 echo "${ECHO_T}Netscape/Mozilla" >&6
17610 # TODO. Actually do a sanity check and check for
17611 # LDAP_OPT_SIZELIMIT and LDAP_X_OPT_CONNECT_TIMEOUT
17612 WITH_OPENLDAP=NO
17618 echo "$as_me:$LINENO: checking which mozilla to use" >&5
17619 echo $ECHO_N "checking which mozilla to use... $ECHO_C" >&6
17620 if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
17621 echo "$as_me:$LINENO: result: external" >&5
17622 echo "${ECHO_T}external" >&6
17623 SYSTEM_MOZILLA=YES
17624 ENABLE_NSS_MODULE=NO
17625 enable_nss_module=no
17626 echo "$as_me:$LINENO: checking which Mozilla flavour to use" >&5
17627 echo $ECHO_N "checking which Mozilla flavour to use... $ECHO_C" >&6
17628 if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then
17629 MOZ_FLAVOUR=libxul
17630 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then
17631 MOZ_FLAVOUR=xulrunner
17632 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then
17633 MOZ_FLAVOUR=seamonkey
17634 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then
17635 MOZ_FLAVOUR=firefox
17636 elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then
17637 MOZ_FLAVOUR=mozilla
17638 else
17639 MOZ_FLAVOUR=libxul
17641 tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'`
17642 echo "$as_me:$LINENO: result: $tmp" >&5
17643 echo "${ECHO_T}$tmp" >&6
17646 succeeded=no
17648 if test -z "$PKG_CONFIG"; then
17649 # Extract the first word of "pkg-config", so it can be a program name with args.
17650 set dummy pkg-config; ac_word=$2
17651 echo "$as_me:$LINENO: checking for $ac_word" >&5
17652 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17653 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17654 echo $ECHO_N "(cached) $ECHO_C" >&6
17655 else
17656 case $PKG_CONFIG in
17657 [\\/]* | ?:[\\/]*)
17658 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17661 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17662 for as_dir in $PATH
17664 IFS=$as_save_IFS
17665 test -z "$as_dir" && as_dir=.
17666 for ac_exec_ext in '' $ac_executable_extensions; do
17667 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17668 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17669 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17670 break 2
17672 done
17673 done
17675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17677 esac
17679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17681 if test -n "$PKG_CONFIG"; then
17682 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17683 echo "${ECHO_T}$PKG_CONFIG" >&6
17684 else
17685 echo "$as_me:$LINENO: result: no" >&5
17686 echo "${ECHO_T}no" >&6
17691 if test "$PKG_CONFIG" = "no" ; then
17692 echo "*** The pkg-config script could not be found. Make sure it is"
17693 echo "*** in your path, or set the PKG_CONFIG environment variable"
17694 echo "*** to the full path to pkg-config."
17695 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17696 else
17697 PKG_CONFIG_MIN_VERSION=0.9.0
17698 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17699 echo "$as_me:$LINENO: checking for nss" >&5
17700 echo $ECHO_N "checking for nss... $ECHO_C" >&6
17702 if $PKG_CONFIG --exists "nss" ; then
17703 echo "$as_me:$LINENO: result: yes" >&5
17704 echo "${ECHO_T}yes" >&6
17705 succeeded=yes
17707 echo "$as_me:$LINENO: checking MOZ_NSS_CFLAGS" >&5
17708 echo $ECHO_N "checking MOZ_NSS_CFLAGS... $ECHO_C" >&6
17709 MOZ_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss"`
17710 echo "$as_me:$LINENO: result: $MOZ_NSS_CFLAGS" >&5
17711 echo "${ECHO_T}$MOZ_NSS_CFLAGS" >&6
17713 echo "$as_me:$LINENO: checking MOZ_NSS_LIBS" >&5
17714 echo $ECHO_N "checking MOZ_NSS_LIBS... $ECHO_C" >&6
17715 MOZ_NSS_LIBS=`$PKG_CONFIG --libs "nss"`
17716 echo "$as_me:$LINENO: result: $MOZ_NSS_LIBS" >&5
17717 echo "${ECHO_T}$MOZ_NSS_LIBS" >&6
17718 else
17719 MOZ_NSS_CFLAGS=""
17720 MOZ_NSS_LIBS=""
17721 ## If we have a custom action on failure, don't print errors, but
17722 ## do set a variable so people can do so.
17723 MOZ_NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
17729 else
17730 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17731 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17735 if test $succeeded = yes; then
17736 STANDALONENSS="TRUE"
17737 else
17738 STANDALONENSS=""
17741 if test -z "$STANDALONENSS"; then
17743 succeeded=no
17745 if test -z "$PKG_CONFIG"; then
17746 # Extract the first word of "pkg-config", so it can be a program name with args.
17747 set dummy pkg-config; ac_word=$2
17748 echo "$as_me:$LINENO: checking for $ac_word" >&5
17749 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17750 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 else
17753 case $PKG_CONFIG in
17754 [\\/]* | ?:[\\/]*)
17755 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17759 for as_dir in $PATH
17761 IFS=$as_save_IFS
17762 test -z "$as_dir" && as_dir=.
17763 for ac_exec_ext in '' $ac_executable_extensions; do
17764 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17765 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17766 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17767 break 2
17769 done
17770 done
17772 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17774 esac
17776 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17778 if test -n "$PKG_CONFIG"; then
17779 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17780 echo "${ECHO_T}$PKG_CONFIG" >&6
17781 else
17782 echo "$as_me:$LINENO: result: no" >&5
17783 echo "${ECHO_T}no" >&6
17788 if test "$PKG_CONFIG" = "no" ; then
17789 echo "*** The pkg-config script could not be found. Make sure it is"
17790 echo "*** in your path, or set the PKG_CONFIG environment variable"
17791 echo "*** to the full path to pkg-config."
17792 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17793 else
17794 PKG_CONFIG_MIN_VERSION=0.9.0
17795 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17796 echo "$as_me:$LINENO: checking for $MOZ_FLAVOUR-nss " >&5
17797 echo $ECHO_N "checking for $MOZ_FLAVOUR-nss ... $ECHO_C" >&6
17799 if $PKG_CONFIG --exists "$MOZ_FLAVOUR-nss " ; then
17800 echo "$as_me:$LINENO: result: yes" >&5
17801 echo "${ECHO_T}yes" >&6
17802 succeeded=yes
17804 echo "$as_me:$LINENO: checking MOZ_NSS_CFLAGS" >&5
17805 echo $ECHO_N "checking MOZ_NSS_CFLAGS... $ECHO_C" >&6
17806 MOZ_NSS_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-nss "`
17807 echo "$as_me:$LINENO: result: $MOZ_NSS_CFLAGS" >&5
17808 echo "${ECHO_T}$MOZ_NSS_CFLAGS" >&6
17810 echo "$as_me:$LINENO: checking MOZ_NSS_LIBS" >&5
17811 echo $ECHO_N "checking MOZ_NSS_LIBS... $ECHO_C" >&6
17812 MOZ_NSS_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-nss "`
17813 echo "$as_me:$LINENO: result: $MOZ_NSS_LIBS" >&5
17814 echo "${ECHO_T}$MOZ_NSS_LIBS" >&6
17815 else
17816 MOZ_NSS_CFLAGS=""
17817 MOZ_NSS_LIBS=""
17818 ## If we have a custom action on failure, don't print errors, but
17819 ## do set a variable so people can do so.
17820 MOZ_NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-nss "`
17821 echo $MOZ_NSS_PKG_ERRORS
17826 else
17827 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17828 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17832 if test $succeeded = yes; then
17834 else
17835 { { echo "$as_me:$LINENO: error: Library requirements ($MOZ_FLAVOUR-nss ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
17836 echo "$as_me: error: Library requirements ($MOZ_FLAVOUR-nss ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
17837 { (exit 1); exit 1; }; }
17840 else
17841 NSS_LIB="-L`$PKG_CONFIG --variable=libdir nss`"
17845 if $PKG_CONFIG --exists nspr ; then
17847 succeeded=no
17849 if test -z "$PKG_CONFIG"; then
17850 # Extract the first word of "pkg-config", so it can be a program name with args.
17851 set dummy pkg-config; ac_word=$2
17852 echo "$as_me:$LINENO: checking for $ac_word" >&5
17853 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17854 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17855 echo $ECHO_N "(cached) $ECHO_C" >&6
17856 else
17857 case $PKG_CONFIG in
17858 [\\/]* | ?:[\\/]*)
17859 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17863 for as_dir in $PATH
17865 IFS=$as_save_IFS
17866 test -z "$as_dir" && as_dir=.
17867 for ac_exec_ext in '' $ac_executable_extensions; do
17868 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17869 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17870 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17871 break 2
17873 done
17874 done
17876 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17878 esac
17880 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17882 if test -n "$PKG_CONFIG"; then
17883 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17884 echo "${ECHO_T}$PKG_CONFIG" >&6
17885 else
17886 echo "$as_me:$LINENO: result: no" >&5
17887 echo "${ECHO_T}no" >&6
17892 if test "$PKG_CONFIG" = "no" ; then
17893 echo "*** The pkg-config script could not be found. Make sure it is"
17894 echo "*** in your path, or set the PKG_CONFIG environment variable"
17895 echo "*** to the full path to pkg-config."
17896 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17897 else
17898 PKG_CONFIG_MIN_VERSION=0.9.0
17899 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
17900 echo "$as_me:$LINENO: checking for nspr " >&5
17901 echo $ECHO_N "checking for nspr ... $ECHO_C" >&6
17903 if $PKG_CONFIG --exists "nspr " ; then
17904 echo "$as_me:$LINENO: result: yes" >&5
17905 echo "${ECHO_T}yes" >&6
17906 succeeded=yes
17908 echo "$as_me:$LINENO: checking MOZ_NSPR_CFLAGS" >&5
17909 echo $ECHO_N "checking MOZ_NSPR_CFLAGS... $ECHO_C" >&6
17910 MOZ_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr "`
17911 echo "$as_me:$LINENO: result: $MOZ_NSPR_CFLAGS" >&5
17912 echo "${ECHO_T}$MOZ_NSPR_CFLAGS" >&6
17914 echo "$as_me:$LINENO: checking MOZ_NSPR_LIBS" >&5
17915 echo $ECHO_N "checking MOZ_NSPR_LIBS... $ECHO_C" >&6
17916 MOZ_NSPR_LIBS=`$PKG_CONFIG --libs "nspr "`
17917 echo "$as_me:$LINENO: result: $MOZ_NSPR_LIBS" >&5
17918 echo "${ECHO_T}$MOZ_NSPR_LIBS" >&6
17919 else
17920 MOZ_NSPR_CFLAGS=""
17921 MOZ_NSPR_LIBS=""
17922 ## If we have a custom action on failure, don't print errors, but
17923 ## do set a variable so people can do so.
17924 MOZ_NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr "`
17925 echo $MOZ_NSPR_PKG_ERRORS
17930 else
17931 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
17932 echo "*** See http://www.freedesktop.org/software/pkgconfig"
17936 if test $succeeded = yes; then
17938 else
17939 { { echo "$as_me:$LINENO: error: Library requirements (nspr ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
17940 echo "$as_me: error: Library requirements (nspr ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
17941 { (exit 1); exit 1; }; }
17944 NSPR_LIB="-L`$PKG_CONFIG --variable=libdir nspr`"
17946 else
17948 succeeded=no
17950 if test -z "$PKG_CONFIG"; then
17951 # Extract the first word of "pkg-config", so it can be a program name with args.
17952 set dummy pkg-config; ac_word=$2
17953 echo "$as_me:$LINENO: checking for $ac_word" >&5
17954 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
17955 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958 case $PKG_CONFIG in
17959 [\\/]* | ?:[\\/]*)
17960 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
17963 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
17964 for as_dir in $PATH
17966 IFS=$as_save_IFS
17967 test -z "$as_dir" && as_dir=.
17968 for ac_exec_ext in '' $ac_executable_extensions; do
17969 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
17970 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
17971 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
17972 break 2
17974 done
17975 done
17977 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
17979 esac
17981 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
17983 if test -n "$PKG_CONFIG"; then
17984 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
17985 echo "${ECHO_T}$PKG_CONFIG" >&6
17986 else
17987 echo "$as_me:$LINENO: result: no" >&5
17988 echo "${ECHO_T}no" >&6
17993 if test "$PKG_CONFIG" = "no" ; then
17994 echo "*** The pkg-config script could not be found. Make sure it is"
17995 echo "*** in your path, or set the PKG_CONFIG environment variable"
17996 echo "*** to the full path to pkg-config."
17997 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
17998 else
17999 PKG_CONFIG_MIN_VERSION=0.9.0
18000 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18001 echo "$as_me:$LINENO: checking for $MOZ_FLAVOUR-nspr " >&5
18002 echo $ECHO_N "checking for $MOZ_FLAVOUR-nspr ... $ECHO_C" >&6
18004 if $PKG_CONFIG --exists "$MOZ_FLAVOUR-nspr " ; then
18005 echo "$as_me:$LINENO: result: yes" >&5
18006 echo "${ECHO_T}yes" >&6
18007 succeeded=yes
18009 echo "$as_me:$LINENO: checking MOZ_NSPR_CFLAGS" >&5
18010 echo $ECHO_N "checking MOZ_NSPR_CFLAGS... $ECHO_C" >&6
18011 MOZ_NSPR_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-nspr "`
18012 echo "$as_me:$LINENO: result: $MOZ_NSPR_CFLAGS" >&5
18013 echo "${ECHO_T}$MOZ_NSPR_CFLAGS" >&6
18015 echo "$as_me:$LINENO: checking MOZ_NSPR_LIBS" >&5
18016 echo $ECHO_N "checking MOZ_NSPR_LIBS... $ECHO_C" >&6
18017 MOZ_NSPR_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-nspr "`
18018 echo "$as_me:$LINENO: result: $MOZ_NSPR_LIBS" >&5
18019 echo "${ECHO_T}$MOZ_NSPR_LIBS" >&6
18020 else
18021 MOZ_NSPR_CFLAGS=""
18022 MOZ_NSPR_LIBS=""
18023 ## If we have a custom action on failure, don't print errors, but
18024 ## do set a variable so people can do so.
18025 MOZ_NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-nspr "`
18026 echo $MOZ_NSPR_PKG_ERRORS
18031 else
18032 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18033 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18037 if test $succeeded = yes; then
18039 else
18040 { { echo "$as_me:$LINENO: error: Library requirements ($MOZ_FLAVOUR-nspr ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
18041 echo "$as_me: error: Library requirements ($MOZ_FLAVOUR-nspr ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
18042 { (exit 1); exit 1; }; }
18047 if test "$MOZ_FLAVOUR" != "libxul"; then
18049 succeeded=no
18051 if test -z "$PKG_CONFIG"; then
18052 # Extract the first word of "pkg-config", so it can be a program name with args.
18053 set dummy pkg-config; ac_word=$2
18054 echo "$as_me:$LINENO: checking for $ac_word" >&5
18055 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18056 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18057 echo $ECHO_N "(cached) $ECHO_C" >&6
18058 else
18059 case $PKG_CONFIG in
18060 [\\/]* | ?:[\\/]*)
18061 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18065 for as_dir in $PATH
18067 IFS=$as_save_IFS
18068 test -z "$as_dir" && as_dir=.
18069 for ac_exec_ext in '' $ac_executable_extensions; do
18070 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18071 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18072 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18073 break 2
18075 done
18076 done
18078 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18080 esac
18082 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18084 if test -n "$PKG_CONFIG"; then
18085 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18086 echo "${ECHO_T}$PKG_CONFIG" >&6
18087 else
18088 echo "$as_me:$LINENO: result: no" >&5
18089 echo "${ECHO_T}no" >&6
18094 if test "$PKG_CONFIG" = "no" ; then
18095 echo "*** The pkg-config script could not be found. Make sure it is"
18096 echo "*** in your path, or set the PKG_CONFIG environment variable"
18097 echo "*** to the full path to pkg-config."
18098 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18099 else
18100 PKG_CONFIG_MIN_VERSION=0.9.0
18101 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18102 echo "$as_me:$LINENO: checking for $MOZ_FLAVOUR-xpcom" >&5
18103 echo $ECHO_N "checking for $MOZ_FLAVOUR-xpcom... $ECHO_C" >&6
18105 if $PKG_CONFIG --exists "$MOZ_FLAVOUR-xpcom" ; then
18106 echo "$as_me:$LINENO: result: yes" >&5
18107 echo "${ECHO_T}yes" >&6
18108 succeeded=yes
18110 echo "$as_me:$LINENO: checking MOZILLAXPCOM_CFLAGS" >&5
18111 echo $ECHO_N "checking MOZILLAXPCOM_CFLAGS... $ECHO_C" >&6
18112 MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-xpcom"`
18113 echo "$as_me:$LINENO: result: $MOZILLAXPCOM_CFLAGS" >&5
18114 echo "${ECHO_T}$MOZILLAXPCOM_CFLAGS" >&6
18116 echo "$as_me:$LINENO: checking MOZILLAXPCOM_LIBS" >&5
18117 echo $ECHO_N "checking MOZILLAXPCOM_LIBS... $ECHO_C" >&6
18118 MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-xpcom"`
18119 echo "$as_me:$LINENO: result: $MOZILLAXPCOM_LIBS" >&5
18120 echo "${ECHO_T}$MOZILLAXPCOM_LIBS" >&6
18121 else
18122 MOZILLAXPCOM_CFLAGS=""
18123 MOZILLAXPCOM_LIBS=""
18124 ## If we have a custom action on failure, don't print errors, but
18125 ## do set a variable so people can do so.
18126 MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-xpcom"`
18132 else
18133 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18134 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18138 if test $succeeded = yes; then
18139 HASXPCOM="TRUE"
18140 else
18141 HASXPCOM=""
18144 MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom`
18145 MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom`
18148 if test -z "$HASXPCOM"; then
18150 succeeded=no
18152 if test -z "$PKG_CONFIG"; then
18153 # Extract the first word of "pkg-config", so it can be a program name with args.
18154 set dummy pkg-config; ac_word=$2
18155 echo "$as_me:$LINENO: checking for $ac_word" >&5
18156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18157 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18158 echo $ECHO_N "(cached) $ECHO_C" >&6
18159 else
18160 case $PKG_CONFIG in
18161 [\\/]* | ?:[\\/]*)
18162 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18165 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18166 for as_dir in $PATH
18168 IFS=$as_save_IFS
18169 test -z "$as_dir" && as_dir=.
18170 for ac_exec_ext in '' $ac_executable_extensions; do
18171 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18172 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18173 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18174 break 2
18176 done
18177 done
18179 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18181 esac
18183 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18185 if test -n "$PKG_CONFIG"; then
18186 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18187 echo "${ECHO_T}$PKG_CONFIG" >&6
18188 else
18189 echo "$as_me:$LINENO: result: no" >&5
18190 echo "${ECHO_T}no" >&6
18195 if test "$PKG_CONFIG" = "no" ; then
18196 echo "*** The pkg-config script could not be found. Make sure it is"
18197 echo "*** in your path, or set the PKG_CONFIG environment variable"
18198 echo "*** to the full path to pkg-config."
18199 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18200 else
18201 PKG_CONFIG_MIN_VERSION=0.9.0
18202 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18203 echo "$as_me:$LINENO: checking for libxul " >&5
18204 echo $ECHO_N "checking for libxul ... $ECHO_C" >&6
18206 if $PKG_CONFIG --exists "libxul " ; then
18207 echo "$as_me:$LINENO: result: yes" >&5
18208 echo "${ECHO_T}yes" >&6
18209 succeeded=yes
18211 echo "$as_me:$LINENO: checking MOZILLAXPCOM_CFLAGS" >&5
18212 echo $ECHO_N "checking MOZILLAXPCOM_CFLAGS... $ECHO_C" >&6
18213 MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "libxul "`
18214 echo "$as_me:$LINENO: result: $MOZILLAXPCOM_CFLAGS" >&5
18215 echo "${ECHO_T}$MOZILLAXPCOM_CFLAGS" >&6
18217 echo "$as_me:$LINENO: checking MOZILLAXPCOM_LIBS" >&5
18218 echo $ECHO_N "checking MOZILLAXPCOM_LIBS... $ECHO_C" >&6
18219 MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "libxul "`
18220 echo "$as_me:$LINENO: result: $MOZILLAXPCOM_LIBS" >&5
18221 echo "${ECHO_T}$MOZILLAXPCOM_LIBS" >&6
18222 else
18223 MOZILLAXPCOM_CFLAGS=""
18224 MOZILLAXPCOM_LIBS=""
18225 ## If we have a custom action on failure, don't print errors, but
18226 ## do set a variable so people can do so.
18227 MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxul "`
18228 echo $MOZILLAXPCOM_PKG_ERRORS
18233 else
18234 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18235 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18239 if test $succeeded = yes; then
18241 else
18242 { { echo "$as_me:$LINENO: error: Library requirements (libxul ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
18243 echo "$as_me: error: Library requirements (libxul ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
18244 { (exit 1); exit 1; }; }
18247 MOZ_INC=`$PKG_CONFIG --variable=includedir libxul`
18248 MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul`
18249 if ! test -e "$MOZ_LIB/libxul.so"; then
18250 MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul`
18251 if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then
18252 MOZ_LIB="$MOZ_LIB/sdk/lib"
18257 save_CPPFLAGS="$CPPFLAGS"
18258 save_LDFLAGS="$LDFLAGS"
18259 save_LIBS="$LIBS"
18260 CPPFLAGS="$CPPFLAGS $MOZ_NSS_CFLAGS"
18261 LDFLAGS="$LDFLAGS $MOZ_NSS_LIBS"
18263 echo "$as_me:$LINENO: checking for PK11_GetCertFromPrivateKey in -lnss3" >&5
18264 echo $ECHO_N "checking for PK11_GetCertFromPrivateKey in -lnss3... $ECHO_C" >&6
18265 if test "${ac_cv_lib_nss3_PK11_GetCertFromPrivateKey+set}" = set; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 else
18268 ac_check_lib_save_LIBS=$LIBS
18269 LIBS="-lnss3 $LIBS"
18270 cat >conftest.$ac_ext <<_ACEOF
18271 /* confdefs.h. */
18272 _ACEOF
18273 cat confdefs.h >>conftest.$ac_ext
18274 cat >>conftest.$ac_ext <<_ACEOF
18275 /* end confdefs.h. */
18277 /* Override any gcc2 internal prototype to avoid an error. */
18278 #ifdef __cplusplus
18279 extern "C"
18280 #endif
18281 /* We use char because int might match the return type of a gcc2
18282 builtin and then its argument prototype would still apply. */
18283 char PK11_GetCertFromPrivateKey ();
18285 main ()
18287 PK11_GetCertFromPrivateKey ();
18289 return 0;
18291 _ACEOF
18292 rm -f conftest.$ac_objext conftest$ac_exeext
18293 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18294 (eval $ac_link) 2>conftest.er1
18295 ac_status=$?
18296 grep -v '^ *+' conftest.er1 >conftest.err
18297 rm -f conftest.er1
18298 cat conftest.err >&5
18299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18300 (exit $ac_status); } &&
18301 { ac_try='test -z "$ac_c_werror_flag"
18302 || test ! -s conftest.err'
18303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18304 (eval $ac_try) 2>&5
18305 ac_status=$?
18306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18307 (exit $ac_status); }; } &&
18308 { ac_try='test -s conftest$ac_exeext'
18309 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18310 (eval $ac_try) 2>&5
18311 ac_status=$?
18312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18313 (exit $ac_status); }; }; then
18314 ac_cv_lib_nss3_PK11_GetCertFromPrivateKey=yes
18315 else
18316 echo "$as_me: failed program was:" >&5
18317 sed 's/^/| /' conftest.$ac_ext >&5
18319 ac_cv_lib_nss3_PK11_GetCertFromPrivateKey=no
18321 rm -f conftest.err conftest.$ac_objext \
18322 conftest$ac_exeext conftest.$ac_ext
18323 LIBS=$ac_check_lib_save_LIBS
18325 echo "$as_me:$LINENO: result: $ac_cv_lib_nss3_PK11_GetCertFromPrivateKey" >&5
18326 echo "${ECHO_T}$ac_cv_lib_nss3_PK11_GetCertFromPrivateKey" >&6
18327 if test $ac_cv_lib_nss3_PK11_GetCertFromPrivateKey = yes; then
18328 cat >>confdefs.h <<_ACEOF
18329 #define HAVE_LIBNSS3 1
18330 _ACEOF
18332 LIBS="-lnss3 $LIBS"
18334 else
18335 { { echo "$as_me:$LINENO: error: PK11_GetCertFromPrivateKey missing but needed.
18336 See https://bugzilla.mozilla.org/show_bug.cgi?id=262274.
18337 Fixed since nss 3.9.3 (contained by e.g. mozilla >= 1.7.5)" >&5
18338 echo "$as_me: error: PK11_GetCertFromPrivateKey missing but needed.
18339 See https://bugzilla.mozilla.org/show_bug.cgi?id=262274.
18340 Fixed since nss 3.9.3 (contained by e.g. mozilla >= 1.7.5)" >&2;}
18341 { (exit 1); exit 1; }; }
18344 LDFLAGS="$save_LDFLAGS"
18345 CPPFLAGS="$save_CPPFLAGS"
18346 LIBS="$save_LIBS"
18348 MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
18349 if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then
18350 echo "$as_me:$LINENO: checking whether $tmp was compiled with --enable-ldap" >&5
18351 echo $ECHO_N "checking whether $tmp was compiled with --enable-ldap... $ECHO_C" >&6
18352 if test -d "$MOZ_INC/ldap"; then
18353 echo "$as_me:$LINENO: result: yes" >&5
18354 echo "${ECHO_T}yes" >&6
18355 MOZ_LDAP_CFLAGS="-I$MOZ_INC"
18356 else
18357 { { echo "$as_me:$LINENO: error: no.
18358 Could not find LDAP header include files in $MOZ_INC/ldap.
18359 Please recompile $tmp with --enable-ldap or use --with-openldap." >&5
18360 echo "$as_me: error: no.
18361 Could not find LDAP header include files in $MOZ_INC/ldap.
18362 Please recompile $tmp with --enable-ldap or use --with-openldap." >&2;}
18363 { (exit 1); exit 1; }; }
18367 #e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges
18368 #the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul
18369 if test "$MOZ_FLAVOUR" = "libxul"; then
18370 MOZ_FLAVOUR="mozilla"
18373 elif test "$enable_mozilla" = "no"; then
18374 echo "$as_me:$LINENO: result: none" >&5
18375 echo "${ECHO_T}none" >&6
18376 WITH_MOZILLA=NO
18377 ENABLE_NSS_MODULE=NO
18378 enable_nss_module=no
18379 else
18380 echo "$as_me:$LINENO: result: internal" >&5
18381 echo "${ECHO_T}internal" >&6
18382 SYSTEM_MOZILLA=NO
18383 BUILD_TYPE="$BUILD_TYPE MOZ"
18384 if test -z "$with_mozilla_version"; then
18385 MOZILLA_VERSION=
18386 else
18387 echo "$as_me:$LINENO: checking which mozilla version to build" >&5
18388 echo $ECHO_N "checking which mozilla version to build... $ECHO_C" >&6
18389 MOZILLA_VERSION=$with_mozilla_version
18390 enable_build_mozilla=1
18391 echo "$as_me:$LINENO: result: $MOZILLA_VERSION" >&5
18392 echo "${ECHO_T}$MOZILLA_VERSION" >&6
18397 echo "$as_me:$LINENO: checking for toolkit mozilla should use" >&5
18398 echo $ECHO_N "checking for toolkit mozilla should use... $ECHO_C" >&6
18399 if test -z "$with_mozilla_toolkit"; then
18400 if test "$_os" != "WINNT" ; then
18401 if test "$_os" = "Darwin" ; then
18402 MOZILLA_TOOLKIT=mac
18403 echo "$as_me:$LINENO: result: mac" >&5
18404 echo "${ECHO_T}mac" >&6
18405 else
18406 MOZILLA_TOOLKIT=gtk2
18407 echo "$as_me:$LINENO: result: gtk2" >&5
18408 echo "${ECHO_T}gtk2" >&6
18411 else
18412 MOZILLA_TOOLKIT=$with_mozilla_toolkit
18413 enable_build_mozilla=1
18414 echo "$as_me:$LINENO: result: $MOZILLA_TOOLKIT" >&5
18415 echo "${ECHO_T}$MOZILLA_TOOLKIT" >&6
18417 #if test "$_os" = "Darwin" && test "$MOZILLA_TOOLKIT" != "gtk2"; then
18418 # #only gtk2 toolkit supported - xlib or cocoa nees glib1 and libIDL1 - the latter is not
18419 # #available using fink, mac (carbon) doesn't work because xcode installs conflicting headers
18420 # AC_MSG_ERROR([Only gtk2 toolkit supported on Mac, sorry.])
18425 # default to enabling build mozilla
18426 if test "$enable_build_mozilla" != "no"; then
18427 enable_build_mozilla=yes
18428 else
18429 enable_build_mozilla=
18432 echo "$as_me:$LINENO: checking whether to build Mozilla/SeaMonkey" >&5
18433 echo $ECHO_N "checking whether to build Mozilla/SeaMonkey... $ECHO_C" >&6
18434 if test -n "$enable_build_mozilla"; then
18435 BUILD_MOZAB="TRUE"
18436 echo "$as_me:$LINENO: result: yes" >&5
18437 echo "${ECHO_T}yes" >&6
18438 else
18439 BUILD_MOZAB=""
18440 echo "$as_me:$LINENO: result: no" >&5
18441 echo "${ECHO_T}no" >&6
18444 echo "$as_me:$LINENO: checking whether to build provided NSS module" >&5
18445 echo $ECHO_N "checking whether to build provided NSS module... $ECHO_C" >&6
18446 if test "$enable_nss_module" != "no"; then
18447 ENABLE_NSS_MODULE="YES"
18448 BUILD_TYPE="$BUILD_TYPE NSS"
18449 echo "$as_me:$LINENO: result: yes" >&5
18450 echo "${ECHO_T}yes" >&6
18451 if test "$_os" = "WINNT"; then
18452 echo "$as_me:$LINENO: checking for Mozilla build tooling" >&5
18453 echo $ECHO_N "checking for Mozilla build tooling... $ECHO_C" >&6
18454 if test -z "$MOZILLABUILD" ; then
18455 { { echo "$as_me:$LINENO: error: Mozilla build tooling not found.
18456 Use the --with-mozilla-build option after installling the tools obtained
18457 from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" >&5
18458 echo "$as_me: error: Mozilla build tooling not found.
18459 Use the --with-mozilla-build option after installling the tools obtained
18460 from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" >&2;}
18461 { (exit 1); exit 1; }; }
18462 else
18463 if test \( "$WITH_MINGWIN" = "yes" \) ; then
18464 if test ! -d "$MOZILLABUILD" ; then
18465 { { echo "$as_me:$LINENO: error: Mozilla build tooling incomplete!" >&5
18466 echo "$as_me: error: Mozilla build tooling incomplete!" >&2;}
18467 { (exit 1); exit 1; }; }
18468 else
18469 echo "$as_me:$LINENO: result: ok" >&5
18470 echo "${ECHO_T}ok" >&6
18472 else
18473 if test ! -d "$MOZILLABUILD/moztools" \
18474 -o ! -d "$MOZILLABUILD/msys" ; then
18475 { { echo "$as_me:$LINENO: error: Mozilla build tooling incomplete!" >&5
18476 echo "$as_me: error: Mozilla build tooling incomplete!" >&2;}
18477 { (exit 1); exit 1; }; }
18478 else
18479 echo "$as_me:$LINENO: result: ok" >&5
18480 echo "${ECHO_T}ok" >&6
18485 else
18486 ENABLE_NSS_MODULE="NO"
18487 echo "$as_me:$LINENO: result: no" >&5
18488 echo "${ECHO_T}no" >&6
18491 if test "$BUILD_MOZAB" = "TRUE"; then
18492 if test "$_os" = "WINNT"; then
18493 if test "$WITH_MINGWIN" != "yes"; then
18494 # compiling with MSVC. Only supported platform here is MSVS2005 at the moment.
18495 if test "$MSVSVER" != "2005"; then
18496 { { echo "$as_me:$LINENO: error: Building SeaMonkey is supported with Microsoft Visual Studio .NET 2005 only." >&5
18497 echo "$as_me: error: Building SeaMonkey is supported with Microsoft Visual Studio .NET 2005 only." >&2;}
18498 { (exit 1); exit 1; }; }
18500 else
18501 { echo "$as_me:$LINENO: WARNING: Building SeaMonkey with mingwin is not tested, and likely to break." >&5
18502 echo "$as_me: WARNING: Building SeaMonkey with mingwin is not tested, and likely to break." >&2;}
18503 echo "Building SeaMonkey with mingwin is not tested, and likely to break." >> warn
18507 if test -z "$MOZILLA_VERSION"; then
18508 MOZILLA_VERSION=1.1.14
18510 MOZILLA_SOURCE_VERSION="seamonkey-${MOZILLA_VERSION}.source"
18511 MOZILLA_FETCH_FILE=`grep $MOZILLA_SOURCE_VERSION ooo.lst`
18512 echo "$as_me:$LINENO: checking for mozilla sources" >&5
18513 echo $ECHO_N "checking for mozilla sources... $ECHO_C" >&6
18514 if test -z "$MOZILLA_FETCH_FILE"; then
18515 echo "$as_me:$LINENO: result: not found" >&5
18516 echo "${ECHO_T}not found" >&6
18517 HAVE_MOZILLA_TARBALL=n
18518 else
18519 echo "$as_me:$LINENO: checking for $MOZILLA_FETCH_FILE" >&5
18520 echo $ECHO_N "checking for $MOZILLA_FETCH_FILE... $ECHO_C" >&6
18521 if test ! -e "$TARFILE_LOCATION/$MOZILLA_FETCH_FILE"; then
18522 if test -z "$DO_FETCH"; then
18523 echo "$as_me:$LINENO: result: will be fetched" >&5
18524 echo "${ECHO_T}will be fetched" >&6
18525 HAVE_MOZILLA_TARBALL=y
18526 else
18527 echo "$as_me:$LINENO: result: not found" >&5
18528 echo "${ECHO_T}not found" >&6
18529 HAVE_MOZILLA_TARBALL=n
18531 else
18532 echo "$as_me:$LINENO: result: found" >&5
18533 echo "${ECHO_T}found" >&6
18534 HAVE_MOZILLA_TARBALL=y
18537 if test "$HAVE_MOZILLA_TARBALL" != "y"; then
18538 { { echo "$as_me:$LINENO: error: Mozilla/SeaMonkey source archive not found.
18539 Use \"./fetch_tarballs.sh ooo.lst\" to download." >&5
18540 echo "$as_me: error: Mozilla/SeaMonkey source archive not found.
18541 Use \"./fetch_tarballs.sh ooo.lst\" to download." >&2;}
18542 { (exit 1); exit 1; }; }
18544 if test "$_os" = "WINNT"; then
18545 echo "$as_me:$LINENO: checking for moztools binaries" >&5
18546 echo $ECHO_N "checking for moztools binaries... $ECHO_C" >&6
18547 if test ! -e "$TARFILE_LOCATION/vc8-moztools.zip" ; then
18548 { { echo "$as_me:$LINENO: error: The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
18549 (from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" >&5
18550 echo "$as_me: error: The following file is missing in $TARFILE_LOCATION: vc8-moztools.zip
18551 (from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" >&2;}
18552 { (exit 1); exit 1; }; }
18553 else
18554 echo "$as_me:$LINENO: result: ok" >&5
18555 echo "${ECHO_T}ok" >&6
18557 elif test "$_os" = "Darwin"; then
18558 if test "$MOZILLA_TOOLKIT" = "gtk2"; then
18559 { echo "$as_me:$LINENO: checking whether mozilla can be built..." >&5
18560 echo "$as_me: checking whether mozilla can be built..." >&6;}
18562 succeeded=no
18564 if test -z "$PKG_CONFIG"; then
18565 # Extract the first word of "pkg-config", so it can be a program name with args.
18566 set dummy pkg-config; ac_word=$2
18567 echo "$as_me:$LINENO: checking for $ac_word" >&5
18568 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18569 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18570 echo $ECHO_N "(cached) $ECHO_C" >&6
18571 else
18572 case $PKG_CONFIG in
18573 [\\/]* | ?:[\\/]*)
18574 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18578 for as_dir in $PATH
18580 IFS=$as_save_IFS
18581 test -z "$as_dir" && as_dir=.
18582 for ac_exec_ext in '' $ac_executable_extensions; do
18583 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18584 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18585 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18586 break 2
18588 done
18589 done
18591 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18593 esac
18595 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18597 if test -n "$PKG_CONFIG"; then
18598 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18599 echo "${ECHO_T}$PKG_CONFIG" >&6
18600 else
18601 echo "$as_me:$LINENO: result: no" >&5
18602 echo "${ECHO_T}no" >&6
18607 if test "$PKG_CONFIG" = "no" ; then
18608 echo "*** The pkg-config script could not be found. Make sure it is"
18609 echo "*** in your path, or set the PKG_CONFIG environment variable"
18610 echo "*** to the full path to pkg-config."
18611 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18612 else
18613 PKG_CONFIG_MIN_VERSION=0.9.0
18614 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18615 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8" >&5
18616 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8... $ECHO_C" >&6
18618 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8" ; then
18619 echo "$as_me:$LINENO: result: yes" >&5
18620 echo "${ECHO_T}yes" >&6
18621 succeeded=yes
18623 echo "$as_me:$LINENO: checking MOZGTK2_CFLAGS" >&5
18624 echo $ECHO_N "checking MOZGTK2_CFLAGS... $ECHO_C" >&6
18625 MOZGTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
18626 echo "$as_me:$LINENO: result: $MOZGTK2_CFLAGS" >&5
18627 echo "${ECHO_T}$MOZGTK2_CFLAGS" >&6
18629 echo "$as_me:$LINENO: checking MOZGTK2_LIBS" >&5
18630 echo $ECHO_N "checking MOZGTK2_LIBS... $ECHO_C" >&6
18631 MOZGTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
18632 echo "$as_me:$LINENO: result: $MOZGTK2_LIBS" >&5
18633 echo "${ECHO_T}$MOZGTK2_LIBS" >&6
18634 else
18635 MOZGTK2_CFLAGS=""
18636 MOZGTK2_LIBS=""
18637 ## If we have a custom action on failure, don't print errors, but
18638 ## do set a variable so people can do so.
18639 MOZGTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
18645 else
18646 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18647 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18651 if test $succeeded = yes; then
18652 { echo "$as_me:$LINENO: OK - can build mozilla" >&5
18653 echo "$as_me: OK - can build mozilla" >&6;}
18654 else
18655 { { echo "$as_me:$LINENO: error: Prerequisites to build mozilla not met. Either use the precompiled mozilla binaries or install the missing packages" >&5
18656 echo "$as_me: error: Prerequisites to build mozilla not met. Either use the precompiled mozilla binaries or install the missing packages" >&2;}
18657 { (exit 1); exit 1; }; }
18660 else
18662 succeeded=no
18664 if test -z "$PKG_CONFIG"; then
18665 # Extract the first word of "pkg-config", so it can be a program name with args.
18666 set dummy pkg-config; ac_word=$2
18667 echo "$as_me:$LINENO: checking for $ac_word" >&5
18668 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18669 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18670 echo $ECHO_N "(cached) $ECHO_C" >&6
18671 else
18672 case $PKG_CONFIG in
18673 [\\/]* | ?:[\\/]*)
18674 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18678 for as_dir in $PATH
18680 IFS=$as_save_IFS
18681 test -z "$as_dir" && as_dir=.
18682 for ac_exec_ext in '' $ac_executable_extensions; do
18683 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18684 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18685 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18686 break 2
18688 done
18689 done
18691 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18693 esac
18695 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18697 if test -n "$PKG_CONFIG"; then
18698 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18699 echo "${ECHO_T}$PKG_CONFIG" >&6
18700 else
18701 echo "$as_me:$LINENO: result: no" >&5
18702 echo "${ECHO_T}no" >&6
18707 if test "$PKG_CONFIG" = "no" ; then
18708 echo "*** The pkg-config script could not be found. Make sure it is"
18709 echo "*** in your path, or set the PKG_CONFIG environment variable"
18710 echo "*** to the full path to pkg-config."
18711 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18712 else
18713 PKG_CONFIG_MIN_VERSION=0.9.0
18714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18715 echo "$as_me:$LINENO: checking for libIDL-2.0 >= 0.6.3" >&5
18716 echo $ECHO_N "checking for libIDL-2.0 >= 0.6.3... $ECHO_C" >&6
18718 if $PKG_CONFIG --exists "libIDL-2.0 >= 0.6.3" ; then
18719 echo "$as_me:$LINENO: result: yes" >&5
18720 echo "${ECHO_T}yes" >&6
18721 succeeded=yes
18723 echo "$as_me:$LINENO: checking MOZLIBREQ_CFLAGS" >&5
18724 echo $ECHO_N "checking MOZLIBREQ_CFLAGS... $ECHO_C" >&6
18725 MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.6.3"`
18726 echo "$as_me:$LINENO: result: $MOZLIBREQ_CFLAGS" >&5
18727 echo "${ECHO_T}$MOZLIBREQ_CFLAGS" >&6
18729 echo "$as_me:$LINENO: checking MOZLIBREQ_LIBS" >&5
18730 echo $ECHO_N "checking MOZLIBREQ_LIBS... $ECHO_C" >&6
18731 MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.6.3"`
18732 echo "$as_me:$LINENO: result: $MOZLIBREQ_LIBS" >&5
18733 echo "${ECHO_T}$MOZLIBREQ_LIBS" >&6
18734 else
18735 MOZLIBREQ_CFLAGS=""
18736 MOZLIBREQ_LIBS=""
18737 ## If we have a custom action on failure, don't print errors, but
18738 ## do set a variable so people can do so.
18739 MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libIDL-2.0 >= 0.6.3"`
18745 else
18746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18751 if test $succeeded = yes; then
18752 MOZIDL="TRUE"
18753 else
18754 MOZIDL=""
18757 if test -z "$MOZIDL"; then
18758 { { echo "$as_me:$LINENO: error: libIDL 0.6.3 or newer is needed to build mozilla with mac toolkit." >&5
18759 echo "$as_me: error: libIDL 0.6.3 or newer is needed to build mozilla with mac toolkit." >&2;}
18760 { (exit 1); exit 1; }; }
18763 else
18764 # Generic Unix/Linux section
18765 if test "$MOZILLA_TOOLKIT" = "gtk2"; then
18767 succeeded=no
18769 if test -z "$PKG_CONFIG"; then
18770 # Extract the first word of "pkg-config", so it can be a program name with args.
18771 set dummy pkg-config; ac_word=$2
18772 echo "$as_me:$LINENO: checking for $ac_word" >&5
18773 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18774 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18775 echo $ECHO_N "(cached) $ECHO_C" >&6
18776 else
18777 case $PKG_CONFIG in
18778 [\\/]* | ?:[\\/]*)
18779 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18782 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18783 for as_dir in $PATH
18785 IFS=$as_save_IFS
18786 test -z "$as_dir" && as_dir=.
18787 for ac_exec_ext in '' $ac_executable_extensions; do
18788 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18789 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18790 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18791 break 2
18793 done
18794 done
18796 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18798 esac
18800 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18802 if test -n "$PKG_CONFIG"; then
18803 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18804 echo "${ECHO_T}$PKG_CONFIG" >&6
18805 else
18806 echo "$as_me:$LINENO: result: no" >&5
18807 echo "${ECHO_T}no" >&6
18812 if test "$PKG_CONFIG" = "no" ; then
18813 echo "*** The pkg-config script could not be found. Make sure it is"
18814 echo "*** in your path, or set the PKG_CONFIG environment variable"
18815 echo "*** to the full path to pkg-config."
18816 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18817 else
18818 PKG_CONFIG_MIN_VERSION=0.9.0
18819 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18820 echo "$as_me:$LINENO: checking for gtk+-2.0" >&5
18821 echo $ECHO_N "checking for gtk+-2.0... $ECHO_C" >&6
18823 if $PKG_CONFIG --exists "gtk+-2.0" ; then
18824 echo "$as_me:$LINENO: result: yes" >&5
18825 echo "${ECHO_T}yes" >&6
18826 succeeded=yes
18828 echo "$as_me:$LINENO: checking MOZLIBREQ_CFLAGS" >&5
18829 echo $ECHO_N "checking MOZLIBREQ_CFLAGS... $ECHO_C" >&6
18830 MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"`
18831 echo "$as_me:$LINENO: result: $MOZLIBREQ_CFLAGS" >&5
18832 echo "${ECHO_T}$MOZLIBREQ_CFLAGS" >&6
18834 echo "$as_me:$LINENO: checking MOZLIBREQ_LIBS" >&5
18835 echo $ECHO_N "checking MOZLIBREQ_LIBS... $ECHO_C" >&6
18836 MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"`
18837 echo "$as_me:$LINENO: result: $MOZLIBREQ_LIBS" >&5
18838 echo "${ECHO_T}$MOZLIBREQ_LIBS" >&6
18839 else
18840 MOZLIBREQ_CFLAGS=""
18841 MOZLIBREQ_LIBS=""
18842 ## If we have a custom action on failure, don't print errors, but
18843 ## do set a variable so people can do so.
18844 MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
18850 else
18851 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18852 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18856 if test $succeeded = yes; then
18857 MOZGTK="TRUE"
18858 else
18859 MOZGTK=""
18862 if test -z "$MOZGTK"; then
18863 { { echo "$as_me:$LINENO: error: GTK2 is needed to build mozilla." >&5
18864 echo "$as_me: error: GTK2 is needed to build mozilla." >&2;}
18865 { (exit 1); exit 1; }; }
18868 succeeded=no
18870 if test -z "$PKG_CONFIG"; then
18871 # Extract the first word of "pkg-config", so it can be a program name with args.
18872 set dummy pkg-config; ac_word=$2
18873 echo "$as_me:$LINENO: checking for $ac_word" >&5
18874 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18875 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 case $PKG_CONFIG in
18879 [\\/]* | ?:[\\/]*)
18880 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18884 for as_dir in $PATH
18886 IFS=$as_save_IFS
18887 test -z "$as_dir" && as_dir=.
18888 for ac_exec_ext in '' $ac_executable_extensions; do
18889 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18890 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18891 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18892 break 2
18894 done
18895 done
18897 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18899 esac
18901 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18903 if test -n "$PKG_CONFIG"; then
18904 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
18905 echo "${ECHO_T}$PKG_CONFIG" >&6
18906 else
18907 echo "$as_me:$LINENO: result: no" >&5
18908 echo "${ECHO_T}no" >&6
18913 if test "$PKG_CONFIG" = "no" ; then
18914 echo "*** The pkg-config script could not be found. Make sure it is"
18915 echo "*** in your path, or set the PKG_CONFIG environment variable"
18916 echo "*** to the full path to pkg-config."
18917 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18918 else
18919 PKG_CONFIG_MIN_VERSION=0.9.0
18920 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18921 echo "$as_me:$LINENO: checking for libIDL-2.0 >= 0.8.0" >&5
18922 echo $ECHO_N "checking for libIDL-2.0 >= 0.8.0... $ECHO_C" >&6
18924 if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0" ; then
18925 echo "$as_me:$LINENO: result: yes" >&5
18926 echo "${ECHO_T}yes" >&6
18927 succeeded=yes
18929 echo "$as_me:$LINENO: checking MOZLIBREQ_CFLAGS" >&5
18930 echo $ECHO_N "checking MOZLIBREQ_CFLAGS... $ECHO_C" >&6
18931 MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0"`
18932 echo "$as_me:$LINENO: result: $MOZLIBREQ_CFLAGS" >&5
18933 echo "${ECHO_T}$MOZLIBREQ_CFLAGS" >&6
18935 echo "$as_me:$LINENO: checking MOZLIBREQ_LIBS" >&5
18936 echo $ECHO_N "checking MOZLIBREQ_LIBS... $ECHO_C" >&6
18937 MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.8.0"`
18938 echo "$as_me:$LINENO: result: $MOZLIBREQ_LIBS" >&5
18939 echo "${ECHO_T}$MOZLIBREQ_LIBS" >&6
18940 else
18941 MOZLIBREQ_CFLAGS=""
18942 MOZLIBREQ_LIBS=""
18943 ## If we have a custom action on failure, don't print errors, but
18944 ## do set a variable so people can do so.
18945 MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libIDL-2.0 >= 0.8.0"`
18951 else
18952 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18953 echo "*** See http://www.freedesktop.org/software/pkgconfig"
18957 if test $succeeded = yes; then
18958 MOZIDL="TRUE"
18959 else
18960 MOZIDL=""
18963 if test -z "$MOZIDL"; then
18964 { { echo "$as_me:$LINENO: error: libIDL >= 0.8.0 is needed when using GTK2 to build mozilla." >&5
18965 echo "$as_me: error: libIDL >= 0.8.0 is needed when using GTK2 to build mozilla." >&2;}
18966 { (exit 1); exit 1; }; }
18968 else
18970 succeeded=no
18972 if test -z "$PKG_CONFIG"; then
18973 # Extract the first word of "pkg-config", so it can be a program name with args.
18974 set dummy pkg-config; ac_word=$2
18975 echo "$as_me:$LINENO: checking for $ac_word" >&5
18976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
18977 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
18978 echo $ECHO_N "(cached) $ECHO_C" >&6
18979 else
18980 case $PKG_CONFIG in
18981 [\\/]* | ?:[\\/]*)
18982 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18985 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18986 for as_dir in $PATH
18988 IFS=$as_save_IFS
18989 test -z "$as_dir" && as_dir=.
18990 for ac_exec_ext in '' $ac_executable_extensions; do
18991 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18992 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18993 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
18994 break 2
18996 done
18997 done
18999 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19001 esac
19003 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19005 if test -n "$PKG_CONFIG"; then
19006 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19007 echo "${ECHO_T}$PKG_CONFIG" >&6
19008 else
19009 echo "$as_me:$LINENO: result: no" >&5
19010 echo "${ECHO_T}no" >&6
19015 if test "$PKG_CONFIG" = "no" ; then
19016 echo "*** The pkg-config script could not be found. Make sure it is"
19017 echo "*** in your path, or set the PKG_CONFIG environment variable"
19018 echo "*** to the full path to pkg-config."
19019 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19020 else
19021 PKG_CONFIG_MIN_VERSION=0.9.0
19022 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19023 echo "$as_me:$LINENO: checking for gtk+ >= 1.2.3" >&5
19024 echo $ECHO_N "checking for gtk+ >= 1.2.3... $ECHO_C" >&6
19026 if $PKG_CONFIG --exists "gtk+ >= 1.2.3" ; then
19027 echo "$as_me:$LINENO: result: yes" >&5
19028 echo "${ECHO_T}yes" >&6
19029 succeeded=yes
19031 echo "$as_me:$LINENO: checking MOZLIBREQ_CFLAGS" >&5
19032 echo $ECHO_N "checking MOZLIBREQ_CFLAGS... $ECHO_C" >&6
19033 MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.2.3"`
19034 echo "$as_me:$LINENO: result: $MOZLIBREQ_CFLAGS" >&5
19035 echo "${ECHO_T}$MOZLIBREQ_CFLAGS" >&6
19037 echo "$as_me:$LINENO: checking MOZLIBREQ_LIBS" >&5
19038 echo $ECHO_N "checking MOZLIBREQ_LIBS... $ECHO_C" >&6
19039 MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.2.3"`
19040 echo "$as_me:$LINENO: result: $MOZLIBREQ_LIBS" >&5
19041 echo "${ECHO_T}$MOZLIBREQ_LIBS" >&6
19042 else
19043 MOZLIBREQ_CFLAGS=""
19044 MOZLIBREQ_LIBS=""
19045 ## If we have a custom action on failure, don't print errors, but
19046 ## do set a variable so people can do so.
19047 MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+ >= 1.2.3"`
19053 else
19054 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19055 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19059 if test $succeeded = yes; then
19060 MOZGTK="TRUE"
19061 else
19062 MOZGTK=""
19065 if test -z "$MOZGTK"; then
19066 { { echo "$as_me:$LINENO: error: gtk 1.2 is needed when not using GTK2 to build mozilla." >&5
19067 echo "$as_me: error: gtk 1.2 is needed when not using GTK2 to build mozilla." >&2;}
19068 { (exit 1); exit 1; }; }
19071 succeeded=no
19073 if test -z "$PKG_CONFIG"; then
19074 # Extract the first word of "pkg-config", so it can be a program name with args.
19075 set dummy pkg-config; ac_word=$2
19076 echo "$as_me:$LINENO: checking for $ac_word" >&5
19077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19078 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19079 echo $ECHO_N "(cached) $ECHO_C" >&6
19080 else
19081 case $PKG_CONFIG in
19082 [\\/]* | ?:[\\/]*)
19083 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19087 for as_dir in $PATH
19089 IFS=$as_save_IFS
19090 test -z "$as_dir" && as_dir=.
19091 for ac_exec_ext in '' $ac_executable_extensions; do
19092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19093 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19095 break 2
19097 done
19098 done
19100 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19102 esac
19104 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19106 if test -n "$PKG_CONFIG"; then
19107 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19108 echo "${ECHO_T}$PKG_CONFIG" >&6
19109 else
19110 echo "$as_me:$LINENO: result: no" >&5
19111 echo "${ECHO_T}no" >&6
19116 if test "$PKG_CONFIG" = "no" ; then
19117 echo "*** The pkg-config script could not be found. Make sure it is"
19118 echo "*** in your path, or set the PKG_CONFIG environment variable"
19119 echo "*** to the full path to pkg-config."
19120 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19121 else
19122 PKG_CONFIG_MIN_VERSION=0.9.0
19123 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19124 echo "$as_me:$LINENO: checking for libidl >= 0.6.3 libidl <= 0.6.8" >&5
19125 echo $ECHO_N "checking for libidl >= 0.6.3 libidl <= 0.6.8... $ECHO_C" >&6
19127 if $PKG_CONFIG --exists "libidl >= 0.6.3 libidl <= 0.6.8" ; then
19128 echo "$as_me:$LINENO: result: yes" >&5
19129 echo "${ECHO_T}yes" >&6
19130 succeeded=yes
19132 echo "$as_me:$LINENO: checking MOZLIBREQ_CFLAGS" >&5
19133 echo $ECHO_N "checking MOZLIBREQ_CFLAGS... $ECHO_C" >&6
19134 MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libidl >= 0.6.3 libidl <= 0.6.8"`
19135 echo "$as_me:$LINENO: result: $MOZLIBREQ_CFLAGS" >&5
19136 echo "${ECHO_T}$MOZLIBREQ_CFLAGS" >&6
19138 echo "$as_me:$LINENO: checking MOZLIBREQ_LIBS" >&5
19139 echo $ECHO_N "checking MOZLIBREQ_LIBS... $ECHO_C" >&6
19140 MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libidl >= 0.6.3 libidl <= 0.6.8"`
19141 echo "$as_me:$LINENO: result: $MOZLIBREQ_LIBS" >&5
19142 echo "${ECHO_T}$MOZLIBREQ_LIBS" >&6
19143 else
19144 MOZLIBREQ_CFLAGS=""
19145 MOZLIBREQ_LIBS=""
19146 ## If we have a custom action on failure, don't print errors, but
19147 ## do set a variable so people can do so.
19148 MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidl >= 0.6.3 libidl <= 0.6.8"`
19154 else
19155 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19156 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19160 if test $succeeded = yes; then
19161 MOZIDL="TRUE"
19162 else
19163 MOZIDL=""
19166 if test -z "$MOZIDL"; then
19167 { { echo "$as_me:$LINENO: error: libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build mozilla." >&5
19168 echo "$as_me: error: libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build mozilla." >&2;}
19169 { (exit 1); exit 1; }; }
19189 echo "$as_me:$LINENO: checking which sane header to use" >&5
19190 echo $ECHO_N "checking which sane header to use... $ECHO_C" >&6
19191 if test -n "$with_system_sane_header" -o -n "$with_system_headers" && \
19192 test "$with_system_sane_header" != "no"; then
19193 echo "$as_me:$LINENO: result: external" >&5
19194 echo "${ECHO_T}external" >&6
19195 SYSTEM_SANE_HEADER=YES
19196 if test "${ac_cv_header_sane_sane_h+set}" = set; then
19197 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
19198 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
19199 if test "${ac_cv_header_sane_sane_h+set}" = set; then
19200 echo $ECHO_N "(cached) $ECHO_C" >&6
19202 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
19203 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
19204 else
19205 # Is the header compilable?
19206 echo "$as_me:$LINENO: checking sane/sane.h usability" >&5
19207 echo $ECHO_N "checking sane/sane.h usability... $ECHO_C" >&6
19208 cat >conftest.$ac_ext <<_ACEOF
19209 /* confdefs.h. */
19210 _ACEOF
19211 cat confdefs.h >>conftest.$ac_ext
19212 cat >>conftest.$ac_ext <<_ACEOF
19213 /* end confdefs.h. */
19214 $ac_includes_default
19215 #include <sane/sane.h>
19216 _ACEOF
19217 rm -f conftest.$ac_objext
19218 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19219 (eval $ac_compile) 2>conftest.er1
19220 ac_status=$?
19221 grep -v '^ *+' conftest.er1 >conftest.err
19222 rm -f conftest.er1
19223 cat conftest.err >&5
19224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19225 (exit $ac_status); } &&
19226 { ac_try='test -z "$ac_c_werror_flag"
19227 || test ! -s conftest.err'
19228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19229 (eval $ac_try) 2>&5
19230 ac_status=$?
19231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232 (exit $ac_status); }; } &&
19233 { ac_try='test -s conftest.$ac_objext'
19234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19235 (eval $ac_try) 2>&5
19236 ac_status=$?
19237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19238 (exit $ac_status); }; }; then
19239 ac_header_compiler=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19244 ac_header_compiler=no
19246 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19247 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19248 echo "${ECHO_T}$ac_header_compiler" >&6
19250 # Is the header present?
19251 echo "$as_me:$LINENO: checking sane/sane.h presence" >&5
19252 echo $ECHO_N "checking sane/sane.h presence... $ECHO_C" >&6
19253 cat >conftest.$ac_ext <<_ACEOF
19254 /* confdefs.h. */
19255 _ACEOF
19256 cat confdefs.h >>conftest.$ac_ext
19257 cat >>conftest.$ac_ext <<_ACEOF
19258 /* end confdefs.h. */
19259 #include <sane/sane.h>
19260 _ACEOF
19261 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19262 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19263 ac_status=$?
19264 grep -v '^ *+' conftest.er1 >conftest.err
19265 rm -f conftest.er1
19266 cat conftest.err >&5
19267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19268 (exit $ac_status); } >/dev/null; then
19269 if test -s conftest.err; then
19270 ac_cpp_err=$ac_c_preproc_warn_flag
19271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19272 else
19273 ac_cpp_err=
19275 else
19276 ac_cpp_err=yes
19278 if test -z "$ac_cpp_err"; then
19279 ac_header_preproc=yes
19280 else
19281 echo "$as_me: failed program was:" >&5
19282 sed 's/^/| /' conftest.$ac_ext >&5
19284 ac_header_preproc=no
19286 rm -f conftest.err conftest.$ac_ext
19287 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19288 echo "${ECHO_T}$ac_header_preproc" >&6
19290 # So? What about this header?
19291 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19292 yes:no: )
19293 { echo "$as_me:$LINENO: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&5
19294 echo "$as_me: WARNING: sane/sane.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19295 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the compiler's result" >&5
19296 echo "$as_me: WARNING: sane/sane.h: proceeding with the compiler's result" >&2;}
19297 ac_header_preproc=yes
19299 no:yes:* )
19300 { echo "$as_me:$LINENO: WARNING: sane/sane.h: present but cannot be compiled" >&5
19301 echo "$as_me: WARNING: sane/sane.h: present but cannot be compiled" >&2;}
19302 { echo "$as_me:$LINENO: WARNING: sane/sane.h: check for missing prerequisite headers?" >&5
19303 echo "$as_me: WARNING: sane/sane.h: check for missing prerequisite headers?" >&2;}
19304 { echo "$as_me:$LINENO: WARNING: sane/sane.h: see the Autoconf documentation" >&5
19305 echo "$as_me: WARNING: sane/sane.h: see the Autoconf documentation" >&2;}
19306 { echo "$as_me:$LINENO: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&5
19307 echo "$as_me: WARNING: sane/sane.h: section \"Present But Cannot Be Compiled\"" >&2;}
19308 { echo "$as_me:$LINENO: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&5
19309 echo "$as_me: WARNING: sane/sane.h: proceeding with the preprocessor's result" >&2;}
19310 { echo "$as_me:$LINENO: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&5
19311 echo "$as_me: WARNING: sane/sane.h: in the future, the compiler will take precedence" >&2;}
19313 cat <<\_ASBOX
19314 ## ------------------------------------------ ##
19315 ## Report this to the AC_PACKAGE_NAME lists. ##
19316 ## ------------------------------------------ ##
19317 _ASBOX
19319 sed "s/^/$as_me: WARNING: /" >&2
19321 esac
19322 echo "$as_me:$LINENO: checking for sane/sane.h" >&5
19323 echo $ECHO_N "checking for sane/sane.h... $ECHO_C" >&6
19324 if test "${ac_cv_header_sane_sane_h+set}" = set; then
19325 echo $ECHO_N "(cached) $ECHO_C" >&6
19326 else
19327 ac_cv_header_sane_sane_h=$ac_header_preproc
19329 echo "$as_me:$LINENO: result: $ac_cv_header_sane_sane_h" >&5
19330 echo "${ECHO_T}$ac_cv_header_sane_sane_h" >&6
19333 if test $ac_cv_header_sane_sane_h = yes; then
19335 else
19336 { { echo "$as_me:$LINENO: error: sane not found. install sane" >&5
19337 echo "$as_me: error: sane not found. install sane" >&2;}
19338 { (exit 1); exit 1; }; }
19342 else
19343 echo "$as_me:$LINENO: result: internal" >&5
19344 echo "${ECHO_T}internal" >&6
19345 SYSTEM_SANE_HEADER=NO
19346 BUILD_TYPE="$BUILD_TYPE SANE"
19350 echo "$as_me:$LINENO: checking which icu to use" >&5
19351 echo $ECHO_N "checking which icu to use... $ECHO_C" >&6
19352 if test -n "$with_system_icu" -o -n "$with_system_libs" && \
19353 test "$with_system_icu" != "no"; then
19354 echo "$as_me:$LINENO: result: external" >&5
19355 echo "${ECHO_T}external" >&6
19356 SYSTEM_ICU=YES
19357 ac_ext=cc
19358 ac_cpp='$CXXCPP $CPPFLAGS'
19359 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19360 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19361 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19363 echo "$as_me:$LINENO: checking for unicode/rbbi.h" >&5
19364 echo $ECHO_N "checking for unicode/rbbi.h... $ECHO_C" >&6
19365 cat >conftest.$ac_ext <<_ACEOF
19366 /* confdefs.h. */
19367 _ACEOF
19368 cat confdefs.h >>conftest.$ac_ext
19369 cat >>conftest.$ac_ext <<_ACEOF
19370 /* end confdefs.h. */
19371 unicode/rbbi.h
19372 _ACEOF
19373 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19374 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19375 ac_status=$?
19376 grep -v '^ *+' conftest.er1 >conftest.err
19377 rm -f conftest.er1
19378 cat conftest.err >&5
19379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19380 (exit $ac_status); } >/dev/null; then
19381 if test -s conftest.err; then
19382 ac_cpp_err=$ac_cxx_preproc_warn_flag
19383 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
19384 else
19385 ac_cpp_err=
19387 else
19388 ac_cpp_err=yes
19390 if test -z "$ac_cpp_err"; then
19391 echo "$as_me:$LINENO: result: checked." >&5
19392 echo "${ECHO_T}checked." >&6
19393 else
19394 echo "$as_me: failed program was:" >&5
19395 sed 's/^/| /' conftest.$ac_ext >&5
19397 { { echo "$as_me:$LINENO: error: icu headers not found." >&5
19398 echo "$as_me: error: icu headers not found." >&2;}
19399 { (exit 1); exit 1; }; }
19401 rm -f conftest.err conftest.$ac_ext
19402 # Extract the first word of "genbrk", so it can be a program name with args.
19403 set dummy genbrk; ac_word=$2
19404 echo "$as_me:$LINENO: checking for $ac_word" >&5
19405 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19406 if test "${ac_cv_path_SYSTEM_GENBRK+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 case $SYSTEM_GENBRK in
19410 [\\/]* | ?:[\\/]*)
19411 ac_cv_path_SYSTEM_GENBRK="$SYSTEM_GENBRK" # Let the user override the test with a path.
19414 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19415 as_dummy="$PATH:/usr/sbin:/sbin"
19416 for as_dir in $as_dummy
19418 IFS=$as_save_IFS
19419 test -z "$as_dir" && as_dir=.
19420 for ac_exec_ext in '' $ac_executable_extensions; do
19421 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19422 ac_cv_path_SYSTEM_GENBRK="$as_dir/$ac_word$ac_exec_ext"
19423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19424 break 2
19426 done
19427 done
19430 esac
19432 SYSTEM_GENBRK=$ac_cv_path_SYSTEM_GENBRK
19434 if test -n "$SYSTEM_GENBRK"; then
19435 echo "$as_me:$LINENO: result: $SYSTEM_GENBRK" >&5
19436 echo "${ECHO_T}$SYSTEM_GENBRK" >&6
19437 else
19438 echo "$as_me:$LINENO: result: no" >&5
19439 echo "${ECHO_T}no" >&6
19442 if test -z "$SYSTEM_GENBRK"; then
19443 { { echo "$as_me:$LINENO: error: \\"genbrk\\" not found in \$PATH, install the icu development tool \\"genbrk\"\" >&5
19444 echo "$as_me: error: \\"genbrk\\" not found in \$PATH, install the icu development tool \\"genbrk\"\" >&2;}
19445 { (exit 1); exit 1; }; }
19447 # Extract the first word of "genccode", so it can be a program name with args.
19448 set dummy genccode; ac_word=$2
19449 echo "$as_me:$LINENO: checking for $ac_word" >&5
19450 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19451 if test "${ac_cv_path_SYSTEM_GENCCODE+set}" = set; then
19452 echo $ECHO_N "(cached) $ECHO_C" >&6
19453 else
19454 case $SYSTEM_GENCCODE in
19455 [\\/]* | ?:[\\/]*)
19456 ac_cv_path_SYSTEM_GENCCODE="$SYSTEM_GENCCODE" # Let the user override the test with a path.
19459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19460 as_dummy="$PATH:/usr/sbin:/sbin"
19461 for as_dir in $as_dummy
19463 IFS=$as_save_IFS
19464 test -z "$as_dir" && as_dir=.
19465 for ac_exec_ext in '' $ac_executable_extensions; do
19466 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19467 ac_cv_path_SYSTEM_GENCCODE="$as_dir/$ac_word$ac_exec_ext"
19468 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19469 break 2
19471 done
19472 done
19475 esac
19477 SYSTEM_GENCCODE=$ac_cv_path_SYSTEM_GENCCODE
19479 if test -n "$SYSTEM_GENCCODE"; then
19480 echo "$as_me:$LINENO: result: $SYSTEM_GENCCODE" >&5
19481 echo "${ECHO_T}$SYSTEM_GENCCODE" >&6
19482 else
19483 echo "$as_me:$LINENO: result: no" >&5
19484 echo "${ECHO_T}no" >&6
19487 if test -z "$SYSTEM_GENCCODE"; then
19488 { { echo "$as_me:$LINENO: error: \\"genccode\\" not found in \$PATH, install the icu development tool \\"genccode\"\" >&5
19489 echo "$as_me: error: \\"genccode\\" not found in \$PATH, install the icu development tool \\"genccode\"\" >&2;}
19490 { (exit 1); exit 1; }; }
19492 # Extract the first word of "gencmn", so it can be a program name with args.
19493 set dummy gencmn; ac_word=$2
19494 echo "$as_me:$LINENO: checking for $ac_word" >&5
19495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19496 if test "${ac_cv_path_SYSTEM_GENCMN+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 case $SYSTEM_GENCMN in
19500 [\\/]* | ?:[\\/]*)
19501 ac_cv_path_SYSTEM_GENCMN="$SYSTEM_GENCMN" # Let the user override the test with a path.
19504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19505 as_dummy="$PATH:/usr/sbin:/sbin"
19506 for as_dir in $as_dummy
19508 IFS=$as_save_IFS
19509 test -z "$as_dir" && as_dir=.
19510 for ac_exec_ext in '' $ac_executable_extensions; do
19511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19512 ac_cv_path_SYSTEM_GENCMN="$as_dir/$ac_word$ac_exec_ext"
19513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19514 break 2
19516 done
19517 done
19520 esac
19522 SYSTEM_GENCMN=$ac_cv_path_SYSTEM_GENCMN
19524 if test -n "$SYSTEM_GENCMN"; then
19525 echo "$as_me:$LINENO: result: $SYSTEM_GENCMN" >&5
19526 echo "${ECHO_T}$SYSTEM_GENCMN" >&6
19527 else
19528 echo "$as_me:$LINENO: result: no" >&5
19529 echo "${ECHO_T}no" >&6
19532 if test -z "$SYSTEM_GENCMN"; then
19533 { { echo "$as_me:$LINENO: error: \\"gencmn\\" not found in \$PATH, install the icu development tool \\"gencmn\"\" >&5
19534 echo "$as_me: error: \\"gencmn\\" not found in \$PATH, install the icu development tool \\"gencmn\"\" >&2;}
19535 { (exit 1); exit 1; }; }
19537 echo "$as_me:$LINENO: checking ICU version" >&5
19538 echo $ECHO_N "checking ICU version... $ECHO_C" >&6
19539 if test "$cross_compiling" = yes; then
19540 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
19541 See \`config.log' for more details." >&5
19542 echo "$as_me: error: cannot run test program while cross compiling
19543 See \`config.log' for more details." >&2;}
19544 { (exit 1); exit 1; }; }
19545 else
19546 cat >conftest.$ac_ext <<_ACEOF
19547 /* confdefs.h. */
19548 _ACEOF
19549 cat confdefs.h >>conftest.$ac_ext
19550 cat >>conftest.$ac_ext <<_ACEOF
19551 /* end confdefs.h. */
19553 #include <unicode/uversion.h>
19555 int main(int argc, char **argv) {
19556 if(U_ICU_VERSION_MAJOR_NUM < 4)
19557 return 1;
19558 else
19559 return 0;
19562 _ACEOF
19563 rm -f conftest$ac_exeext
19564 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19565 (eval $ac_link) 2>&5
19566 ac_status=$?
19567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19568 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19570 (eval $ac_try) 2>&5
19571 ac_status=$?
19572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19573 (exit $ac_status); }; }; then
19574 echo "$as_me:$LINENO: result: OK" >&5
19575 echo "${ECHO_T}OK" >&6
19576 else
19577 echo "$as_me: program exited with status $ac_status" >&5
19578 echo "$as_me: failed program was:" >&5
19579 sed 's/^/| /' conftest.$ac_ext >&5
19581 ( exit $ac_status )
19582 { { echo "$as_me:$LINENO: error: not suitable, only >= 4.0 supported currently" >&5
19583 echo "$as_me: error: not suitable, only >= 4.0 supported currently" >&2;}
19584 { (exit 1); exit 1; }; }
19586 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19588 ac_ext=c
19589 ac_cpp='$CPP $CPPFLAGS'
19590 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19591 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19592 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19594 else
19595 echo "$as_me:$LINENO: result: internal" >&5
19596 echo "${ECHO_T}internal" >&6
19597 SYSTEM_ICU=NO
19598 BUILD_TYPE="$BUILD_TYPE ICU"
19606 echo "$as_me:$LINENO: checking whether to enable graphite support" >&5
19607 echo $ECHO_N "checking whether to enable graphite support... $ECHO_C" >&6
19608 if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" = "z" -o "$enable_graphite" != "no" ; then
19609 echo "$as_me:$LINENO: result: yes" >&5
19610 echo "${ECHO_T}yes" >&6
19611 ENABLE_GRAPHITE="TRUE"
19612 echo "$as_me:$LINENO: checking which graphite to use" >&5
19613 echo $ECHO_N "checking which graphite to use... $ECHO_C" >&6
19614 if test -n "$with_system_graphite" -o -n "$with_system_libs" && \
19615 test "$with_system_graphite" != "no"; then
19616 echo "$as_me:$LINENO: result: external" >&5
19617 echo "${ECHO_T}external" >&6
19618 SYSTEM_GRAPHITE=YES
19620 succeeded=no
19622 if test -z "$PKG_CONFIG"; then
19623 # Extract the first word of "pkg-config", so it can be a program name with args.
19624 set dummy pkg-config; ac_word=$2
19625 echo "$as_me:$LINENO: checking for $ac_word" >&5
19626 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19627 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
19628 echo $ECHO_N "(cached) $ECHO_C" >&6
19629 else
19630 case $PKG_CONFIG in
19631 [\\/]* | ?:[\\/]*)
19632 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19636 for as_dir in $PATH
19638 IFS=$as_save_IFS
19639 test -z "$as_dir" && as_dir=.
19640 for ac_exec_ext in '' $ac_executable_extensions; do
19641 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19642 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19643 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19644 break 2
19646 done
19647 done
19649 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19651 esac
19653 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19655 if test -n "$PKG_CONFIG"; then
19656 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
19657 echo "${ECHO_T}$PKG_CONFIG" >&6
19658 else
19659 echo "$as_me:$LINENO: result: no" >&5
19660 echo "${ECHO_T}no" >&6
19665 if test "$PKG_CONFIG" = "no" ; then
19666 echo "*** The pkg-config script could not be found. Make sure it is"
19667 echo "*** in your path, or set the PKG_CONFIG environment variable"
19668 echo "*** to the full path to pkg-config."
19669 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19670 else
19671 PKG_CONFIG_MIN_VERSION=0.9.0
19672 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19673 echo "$as_me:$LINENO: checking for silgraphite " >&5
19674 echo $ECHO_N "checking for silgraphite ... $ECHO_C" >&6
19676 if $PKG_CONFIG --exists "silgraphite " ; then
19677 echo "$as_me:$LINENO: result: yes" >&5
19678 echo "${ECHO_T}yes" >&6
19679 succeeded=yes
19681 echo "$as_me:$LINENO: checking GRAPHITE_CFLAGS" >&5
19682 echo $ECHO_N "checking GRAPHITE_CFLAGS... $ECHO_C" >&6
19683 GRAPHITE_CFLAGS=`$PKG_CONFIG --cflags "silgraphite "`
19684 echo "$as_me:$LINENO: result: $GRAPHITE_CFLAGS" >&5
19685 echo "${ECHO_T}$GRAPHITE_CFLAGS" >&6
19687 echo "$as_me:$LINENO: checking GRAPHITE_LIBS" >&5
19688 echo $ECHO_N "checking GRAPHITE_LIBS... $ECHO_C" >&6
19689 GRAPHITE_LIBS=`$PKG_CONFIG --libs "silgraphite "`
19690 echo "$as_me:$LINENO: result: $GRAPHITE_LIBS" >&5
19691 echo "${ECHO_T}$GRAPHITE_LIBS" >&6
19692 else
19693 GRAPHITE_CFLAGS=""
19694 GRAPHITE_LIBS=""
19695 ## If we have a custom action on failure, don't print errors, but
19696 ## do set a variable so people can do so.
19697 GRAPHITE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "silgraphite "`
19698 echo $GRAPHITE_PKG_ERRORS
19703 else
19704 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19705 echo "*** See http://www.freedesktop.org/software/pkgconfig"
19709 if test $succeeded = yes; then
19711 else
19712 { { echo "$as_me:$LINENO: error: Library requirements (silgraphite ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
19713 echo "$as_me: error: Library requirements (silgraphite ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
19714 { (exit 1); exit 1; }; }
19717 else
19718 echo "$as_me:$LINENO: result: internal" >&5
19719 echo "${ECHO_T}internal" >&6
19720 SYSTEM_GRAPHITE=NO
19721 BUILD_TYPE="$BUILD_TYPE GRAPHITE"
19723 else
19724 echo "$as_me:$LINENO: result: no" >&5
19725 echo "${ECHO_T}no" >&6
19733 if test "$_os" = "Darwin"; then
19734 if test "x$with_x" = "xyes"; then
19735 { { echo "$as_me:$LINENO: error: X11 build is no longer supported on MacOSX, please use the native aqua build" >&5
19736 echo "$as_me: error: X11 build is no longer supported on MacOSX, please use the native aqua build" >&2;}
19737 { (exit 1); exit 1; }; }
19738 else
19739 echo "$as_me:$LINENO: checking for /System/Library/Frameworks/AppKit.framework" >&5
19740 echo $ECHO_N "checking for /System/Library/Frameworks/AppKit.framework... $ECHO_C" >&6
19741 if test -d "/System/Library/Frameworks/AppKit.framework/"; then
19742 echo "$as_me:$LINENO: result: yes" >&5
19743 echo "${ECHO_T}yes" >&6
19744 x_includes="no_x_includes"
19745 x_libraries="no_x_libraries"
19746 enable_gtk=no
19747 enable_cups=no
19748 ENABLE_CUPS=""
19750 else
19751 { { echo "$as_me:$LINENO: error: No AppKit.framewrok found" >&5
19752 echo "$as_me: error: No AppKit.framewrok found" >&2;}
19753 { (exit 1); exit 1; }; }
19758 if test "$_os" = "Darwin" -a "x$x_includes" = "xno_x_includes"; then
19759 echo "Do Nothing for _os = Darwin"
19761 elif test "$_os" = "OS2" ; then
19762 echo "Do Nothing for _os = OS2. Don't check for X11."
19764 elif test "$_os" != "WINNT" ; then
19765 echo "$as_me:$LINENO: checking for X" >&5
19766 echo $ECHO_N "checking for X... $ECHO_C" >&6
19769 # Check whether --with-x or --without-x was given.
19770 if test "${with_x+set}" = set; then
19771 withval="$with_x"
19774 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
19775 if test "x$with_x" = xno; then
19776 # The user explicitly disabled X.
19777 have_x=disabled
19778 else
19779 if test "x$x_includes" != xNONE && test "x$x_libraries" != xNONE; then
19780 # Both variables are already set.
19781 have_x=yes
19782 else
19783 if test "${ac_cv_have_x+set}" = set; then
19784 echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786 # One or both of the vars are not set, and there is no cached value.
19787 ac_x_includes=no ac_x_libraries=no
19788 rm -fr conftest.dir
19789 if mkdir conftest.dir; then
19790 cd conftest.dir
19791 # Make sure to not put "make" in the Imakefile rules, since we grep it out.
19792 cat >Imakefile <<'_ACEOF'
19793 acfindx:
19794 @echo 'ac_im_incroot="${INCROOT}"; ac_im_usrlibdir="${USRLIBDIR}"; ac_im_libdir="${LIBDIR}"'
19795 _ACEOF
19796 if (xmkmf) >/dev/null 2>/dev/null && test -f Makefile; then
19797 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19798 eval `${MAKE-make} acfindx 2>/dev/null | grep -v make`
19799 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19800 for ac_extension in a so sl; do
19801 if test ! -f $ac_im_usrlibdir/libX11.$ac_extension &&
19802 test -f $ac_im_libdir/libX11.$ac_extension; then
19803 ac_im_usrlibdir=$ac_im_libdir; break
19805 done
19806 # Screen out bogus values from the imake configuration. They are
19807 # bogus both because they are the default anyway, and because
19808 # using them would break gcc on systems where it needs fixed includes.
19809 case $ac_im_incroot in
19810 /usr/include) ;;
19811 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19812 esac
19813 case $ac_im_usrlibdir in
19814 /usr/lib | /lib) ;;
19815 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19816 esac
19818 cd ..
19819 rm -fr conftest.dir
19822 # Standard set of common directories for X headers.
19823 # Check X11 before X11Rn because it is often a symlink to the current release.
19824 ac_x_header_dirs='
19825 /usr/X11/include
19826 /usr/X11R6/include
19827 /usr/X11R5/include
19828 /usr/X11R4/include
19830 /usr/include/X11
19831 /usr/include/X11R6
19832 /usr/include/X11R5
19833 /usr/include/X11R4
19835 /usr/local/X11/include
19836 /usr/local/X11R6/include
19837 /usr/local/X11R5/include
19838 /usr/local/X11R4/include
19840 /usr/local/include/X11
19841 /usr/local/include/X11R6
19842 /usr/local/include/X11R5
19843 /usr/local/include/X11R4
19845 /usr/X386/include
19846 /usr/x386/include
19847 /usr/XFree86/include/X11
19849 /usr/include
19850 /usr/local/include
19851 /usr/unsupported/include
19852 /usr/athena/include
19853 /usr/local/x11r5/include
19854 /usr/lpp/Xamples/include
19856 /usr/openwin/include
19857 /usr/openwin/share/include'
19859 if test "$ac_x_includes" = no; then
19860 # Guess where to find include files, by looking for Intrinsic.h.
19861 # First, try using that file with no special directory specified.
19862 cat >conftest.$ac_ext <<_ACEOF
19863 /* confdefs.h. */
19864 _ACEOF
19865 cat confdefs.h >>conftest.$ac_ext
19866 cat >>conftest.$ac_ext <<_ACEOF
19867 /* end confdefs.h. */
19868 #include <X11/Intrinsic.h>
19869 _ACEOF
19870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
19871 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
19872 ac_status=$?
19873 grep -v '^ *+' conftest.er1 >conftest.err
19874 rm -f conftest.er1
19875 cat conftest.err >&5
19876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19877 (exit $ac_status); } >/dev/null; then
19878 if test -s conftest.err; then
19879 ac_cpp_err=$ac_c_preproc_warn_flag
19880 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19881 else
19882 ac_cpp_err=
19884 else
19885 ac_cpp_err=yes
19887 if test -z "$ac_cpp_err"; then
19888 # We can compile using X headers with no special include directory.
19889 ac_x_includes=
19890 else
19891 echo "$as_me: failed program was:" >&5
19892 sed 's/^/| /' conftest.$ac_ext >&5
19894 for ac_dir in $ac_x_header_dirs; do
19895 if test -r "$ac_dir/X11/Intrinsic.h"; then
19896 ac_x_includes=$ac_dir
19897 break
19899 done
19901 rm -f conftest.err conftest.$ac_ext
19902 fi # $ac_x_includes = no
19904 if test "$ac_x_libraries" = no; then
19905 # Check for the libraries.
19906 # See if we find them without any special options.
19907 # Don't add to $LIBS permanently.
19908 ac_save_LIBS=$LIBS
19909 LIBS="-lXt $LIBS"
19910 cat >conftest.$ac_ext <<_ACEOF
19911 /* confdefs.h. */
19912 _ACEOF
19913 cat confdefs.h >>conftest.$ac_ext
19914 cat >>conftest.$ac_ext <<_ACEOF
19915 /* end confdefs.h. */
19916 #include <X11/Intrinsic.h>
19918 main ()
19920 XtMalloc (0)
19922 return 0;
19924 _ACEOF
19925 rm -f conftest.$ac_objext conftest$ac_exeext
19926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19927 (eval $ac_link) 2>conftest.er1
19928 ac_status=$?
19929 grep -v '^ *+' conftest.er1 >conftest.err
19930 rm -f conftest.er1
19931 cat conftest.err >&5
19932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19933 (exit $ac_status); } &&
19934 { ac_try='test -z "$ac_c_werror_flag"
19935 || test ! -s conftest.err'
19936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19937 (eval $ac_try) 2>&5
19938 ac_status=$?
19939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19940 (exit $ac_status); }; } &&
19941 { ac_try='test -s conftest$ac_exeext'
19942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19943 (eval $ac_try) 2>&5
19944 ac_status=$?
19945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19946 (exit $ac_status); }; }; then
19947 LIBS=$ac_save_LIBS
19948 # We can link X programs with no special library path.
19949 ac_x_libraries=
19950 else
19951 echo "$as_me: failed program was:" >&5
19952 sed 's/^/| /' conftest.$ac_ext >&5
19954 LIBS=$ac_save_LIBS
19955 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19957 # Don't even attempt the hair of trying to link an X program!
19958 for ac_extension in a so sl; do
19959 if test -r $ac_dir/libXt.$ac_extension; then
19960 ac_x_libraries=$ac_dir
19961 break 2
19963 done
19964 done
19966 rm -f conftest.err conftest.$ac_objext \
19967 conftest$ac_exeext conftest.$ac_ext
19968 fi # $ac_x_libraries = no
19970 if test "$ac_x_includes" = no || test "$ac_x_libraries" = no; then
19971 # Didn't find X anywhere. Cache the known absence of X.
19972 ac_cv_have_x="have_x=no"
19973 else
19974 # Record where we found X for the cache.
19975 ac_cv_have_x="have_x=yes \
19976 ac_x_includes=$ac_x_includes ac_x_libraries=$ac_x_libraries"
19981 eval "$ac_cv_have_x"
19982 fi # $with_x != no
19984 if test "$have_x" != yes; then
19985 echo "$as_me:$LINENO: result: $have_x" >&5
19986 echo "${ECHO_T}$have_x" >&6
19987 no_x=yes
19988 else
19989 # If each of the values was on the command line, it overrides each guess.
19990 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19991 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19992 # Update the cache value to reflect the command line values.
19993 ac_cv_have_x="have_x=yes \
19994 ac_x_includes=$x_includes ac_x_libraries=$x_libraries"
19995 echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
19996 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6
19999 if test "$no_x" = yes; then
20000 # Not all programs may use this symbol, but it does not hurt to define it.
20002 cat >>confdefs.h <<\_ACEOF
20003 #define X_DISPLAY_MISSING 1
20004 _ACEOF
20006 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
20007 else
20008 if test -n "$x_includes"; then
20009 X_CFLAGS="$X_CFLAGS -I$x_includes"
20012 # It would also be nice to do this for all -L options, not just this one.
20013 if test -n "$x_libraries"; then
20014 X_LIBS="$X_LIBS -L$x_libraries"
20015 # For Solaris; some versions of Sun CC require a space after -R and
20016 # others require no space. Words are not sufficient . . . .
20017 case `(uname -sr) 2>/dev/null` in
20018 "SunOS 5"*)
20019 echo "$as_me:$LINENO: checking whether -R must be followed by a space" >&5
20020 echo $ECHO_N "checking whether -R must be followed by a space... $ECHO_C" >&6
20021 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
20022 cat >conftest.$ac_ext <<_ACEOF
20023 /* confdefs.h. */
20024 _ACEOF
20025 cat confdefs.h >>conftest.$ac_ext
20026 cat >>conftest.$ac_ext <<_ACEOF
20027 /* end confdefs.h. */
20030 main ()
20034 return 0;
20036 _ACEOF
20037 rm -f conftest.$ac_objext conftest$ac_exeext
20038 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20039 (eval $ac_link) 2>conftest.er1
20040 ac_status=$?
20041 grep -v '^ *+' conftest.er1 >conftest.err
20042 rm -f conftest.er1
20043 cat conftest.err >&5
20044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20045 (exit $ac_status); } &&
20046 { ac_try='test -z "$ac_c_werror_flag"
20047 || test ! -s conftest.err'
20048 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20049 (eval $ac_try) 2>&5
20050 ac_status=$?
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); }; } &&
20053 { ac_try='test -s conftest$ac_exeext'
20054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20055 (eval $ac_try) 2>&5
20056 ac_status=$?
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); }; }; then
20059 ac_R_nospace=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20064 ac_R_nospace=no
20066 rm -f conftest.err conftest.$ac_objext \
20067 conftest$ac_exeext conftest.$ac_ext
20068 if test $ac_R_nospace = yes; then
20069 echo "$as_me:$LINENO: result: no" >&5
20070 echo "${ECHO_T}no" >&6
20071 X_LIBS="$X_LIBS -R$x_libraries"
20072 else
20073 LIBS="$ac_xsave_LIBS -R $x_libraries"
20074 cat >conftest.$ac_ext <<_ACEOF
20075 /* confdefs.h. */
20076 _ACEOF
20077 cat confdefs.h >>conftest.$ac_ext
20078 cat >>conftest.$ac_ext <<_ACEOF
20079 /* end confdefs.h. */
20082 main ()
20086 return 0;
20088 _ACEOF
20089 rm -f conftest.$ac_objext conftest$ac_exeext
20090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20091 (eval $ac_link) 2>conftest.er1
20092 ac_status=$?
20093 grep -v '^ *+' conftest.er1 >conftest.err
20094 rm -f conftest.er1
20095 cat conftest.err >&5
20096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20097 (exit $ac_status); } &&
20098 { ac_try='test -z "$ac_c_werror_flag"
20099 || test ! -s conftest.err'
20100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20101 (eval $ac_try) 2>&5
20102 ac_status=$?
20103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20104 (exit $ac_status); }; } &&
20105 { ac_try='test -s conftest$ac_exeext'
20106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20107 (eval $ac_try) 2>&5
20108 ac_status=$?
20109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20110 (exit $ac_status); }; }; then
20111 ac_R_space=yes
20112 else
20113 echo "$as_me: failed program was:" >&5
20114 sed 's/^/| /' conftest.$ac_ext >&5
20116 ac_R_space=no
20118 rm -f conftest.err conftest.$ac_objext \
20119 conftest$ac_exeext conftest.$ac_ext
20120 if test $ac_R_space = yes; then
20121 echo "$as_me:$LINENO: result: yes" >&5
20122 echo "${ECHO_T}yes" >&6
20123 X_LIBS="$X_LIBS -R $x_libraries"
20124 else
20125 echo "$as_me:$LINENO: result: neither works" >&5
20126 echo "${ECHO_T}neither works" >&6
20129 LIBS=$ac_xsave_LIBS
20130 esac
20133 # Check for system-dependent libraries X programs must link with.
20134 # Do this before checking for the system-independent R6 libraries
20135 # (-lICE), since we may need -lsocket or whatever for X linking.
20137 if test "$ISC" = yes; then
20138 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
20139 else
20140 # Martyn Johnson says this is needed for Ultrix, if the X
20141 # libraries were built with DECnet support. And Karl Berry says
20142 # the Alpha needs dnet_stub (dnet does not exist).
20143 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
20144 cat >conftest.$ac_ext <<_ACEOF
20145 /* confdefs.h. */
20146 _ACEOF
20147 cat confdefs.h >>conftest.$ac_ext
20148 cat >>conftest.$ac_ext <<_ACEOF
20149 /* end confdefs.h. */
20151 /* Override any gcc2 internal prototype to avoid an error. */
20152 #ifdef __cplusplus
20153 extern "C"
20154 #endif
20155 /* We use char because int might match the return type of a gcc2
20156 builtin and then its argument prototype would still apply. */
20157 char XOpenDisplay ();
20159 main ()
20161 XOpenDisplay ();
20163 return 0;
20165 _ACEOF
20166 rm -f conftest.$ac_objext conftest$ac_exeext
20167 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20168 (eval $ac_link) 2>conftest.er1
20169 ac_status=$?
20170 grep -v '^ *+' conftest.er1 >conftest.err
20171 rm -f conftest.er1
20172 cat conftest.err >&5
20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20174 (exit $ac_status); } &&
20175 { ac_try='test -z "$ac_c_werror_flag"
20176 || test ! -s conftest.err'
20177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20178 (eval $ac_try) 2>&5
20179 ac_status=$?
20180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20181 (exit $ac_status); }; } &&
20182 { ac_try='test -s conftest$ac_exeext'
20183 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20184 (eval $ac_try) 2>&5
20185 ac_status=$?
20186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20187 (exit $ac_status); }; }; then
20189 else
20190 echo "$as_me: failed program was:" >&5
20191 sed 's/^/| /' conftest.$ac_ext >&5
20193 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
20194 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6
20195 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
20196 echo $ECHO_N "(cached) $ECHO_C" >&6
20197 else
20198 ac_check_lib_save_LIBS=$LIBS
20199 LIBS="-ldnet $LIBS"
20200 cat >conftest.$ac_ext <<_ACEOF
20201 /* confdefs.h. */
20202 _ACEOF
20203 cat confdefs.h >>conftest.$ac_ext
20204 cat >>conftest.$ac_ext <<_ACEOF
20205 /* end confdefs.h. */
20207 /* Override any gcc2 internal prototype to avoid an error. */
20208 #ifdef __cplusplus
20209 extern "C"
20210 #endif
20211 /* We use char because int might match the return type of a gcc2
20212 builtin and then its argument prototype would still apply. */
20213 char dnet_ntoa ();
20215 main ()
20217 dnet_ntoa ();
20219 return 0;
20221 _ACEOF
20222 rm -f conftest.$ac_objext conftest$ac_exeext
20223 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20224 (eval $ac_link) 2>conftest.er1
20225 ac_status=$?
20226 grep -v '^ *+' conftest.er1 >conftest.err
20227 rm -f conftest.er1
20228 cat conftest.err >&5
20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20230 (exit $ac_status); } &&
20231 { ac_try='test -z "$ac_c_werror_flag"
20232 || test ! -s conftest.err'
20233 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20234 (eval $ac_try) 2>&5
20235 ac_status=$?
20236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20237 (exit $ac_status); }; } &&
20238 { ac_try='test -s conftest$ac_exeext'
20239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20240 (eval $ac_try) 2>&5
20241 ac_status=$?
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); }; }; then
20244 ac_cv_lib_dnet_dnet_ntoa=yes
20245 else
20246 echo "$as_me: failed program was:" >&5
20247 sed 's/^/| /' conftest.$ac_ext >&5
20249 ac_cv_lib_dnet_dnet_ntoa=no
20251 rm -f conftest.err conftest.$ac_objext \
20252 conftest$ac_exeext conftest.$ac_ext
20253 LIBS=$ac_check_lib_save_LIBS
20255 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
20256 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6
20257 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
20258 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
20261 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
20262 echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet_stub" >&5
20263 echo $ECHO_N "checking for dnet_ntoa in -ldnet_stub... $ECHO_C" >&6
20264 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then
20265 echo $ECHO_N "(cached) $ECHO_C" >&6
20266 else
20267 ac_check_lib_save_LIBS=$LIBS
20268 LIBS="-ldnet_stub $LIBS"
20269 cat >conftest.$ac_ext <<_ACEOF
20270 /* confdefs.h. */
20271 _ACEOF
20272 cat confdefs.h >>conftest.$ac_ext
20273 cat >>conftest.$ac_ext <<_ACEOF
20274 /* end confdefs.h. */
20276 /* Override any gcc2 internal prototype to avoid an error. */
20277 #ifdef __cplusplus
20278 extern "C"
20279 #endif
20280 /* We use char because int might match the return type of a gcc2
20281 builtin and then its argument prototype would still apply. */
20282 char dnet_ntoa ();
20284 main ()
20286 dnet_ntoa ();
20288 return 0;
20290 _ACEOF
20291 rm -f conftest.$ac_objext conftest$ac_exeext
20292 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20293 (eval $ac_link) 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } &&
20300 { ac_try='test -z "$ac_c_werror_flag"
20301 || test ! -s conftest.err'
20302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20303 (eval $ac_try) 2>&5
20304 ac_status=$?
20305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20306 (exit $ac_status); }; } &&
20307 { ac_try='test -s conftest$ac_exeext'
20308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20309 (eval $ac_try) 2>&5
20310 ac_status=$?
20311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20312 (exit $ac_status); }; }; then
20313 ac_cv_lib_dnet_stub_dnet_ntoa=yes
20314 else
20315 echo "$as_me: failed program was:" >&5
20316 sed 's/^/| /' conftest.$ac_ext >&5
20318 ac_cv_lib_dnet_stub_dnet_ntoa=no
20320 rm -f conftest.err conftest.$ac_objext \
20321 conftest$ac_exeext conftest.$ac_ext
20322 LIBS=$ac_check_lib_save_LIBS
20324 echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
20325 echo "${ECHO_T}$ac_cv_lib_dnet_stub_dnet_ntoa" >&6
20326 if test $ac_cv_lib_dnet_stub_dnet_ntoa = yes; then
20327 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
20332 rm -f conftest.err conftest.$ac_objext \
20333 conftest$ac_exeext conftest.$ac_ext
20334 LIBS="$ac_xsave_LIBS"
20336 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
20337 # to get the SysV transport functions.
20338 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
20339 # needs -lnsl.
20340 # The nsl library prevents programs from opening the X display
20341 # on Irix 5.2, according to T.E. Dickey.
20342 # The functions gethostbyname, getservbyname, and inet_addr are
20343 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
20344 echo "$as_me:$LINENO: checking for gethostbyname" >&5
20345 echo $ECHO_N "checking for gethostbyname... $ECHO_C" >&6
20346 if test "${ac_cv_func_gethostbyname+set}" = set; then
20347 echo $ECHO_N "(cached) $ECHO_C" >&6
20348 else
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 /* Define gethostbyname to an innocuous variant, in case <limits.h> declares gethostbyname.
20356 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20357 #define gethostbyname innocuous_gethostbyname
20359 /* System header to define __stub macros and hopefully few prototypes,
20360 which can conflict with char gethostbyname (); below.
20361 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20362 <limits.h> exists even on freestanding compilers. */
20364 #ifdef __STDC__
20365 # include <limits.h>
20366 #else
20367 # include <assert.h>
20368 #endif
20370 #undef gethostbyname
20372 /* Override any gcc2 internal prototype to avoid an error. */
20373 #ifdef __cplusplus
20374 extern "C"
20376 #endif
20377 /* We use char because int might match the return type of a gcc2
20378 builtin and then its argument prototype would still apply. */
20379 char gethostbyname ();
20380 /* The GNU C library defines this for functions which it implements
20381 to always fail with ENOSYS. Some functions are actually named
20382 something starting with __ and the normal name is an alias. */
20383 #if defined (__stub_gethostbyname) || defined (__stub___gethostbyname)
20384 choke me
20385 #else
20386 char (*f) () = gethostbyname;
20387 #endif
20388 #ifdef __cplusplus
20390 #endif
20393 main ()
20395 return f != gethostbyname;
20397 return 0;
20399 _ACEOF
20400 rm -f conftest.$ac_objext conftest$ac_exeext
20401 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20402 (eval $ac_link) 2>conftest.er1
20403 ac_status=$?
20404 grep -v '^ *+' conftest.er1 >conftest.err
20405 rm -f conftest.er1
20406 cat conftest.err >&5
20407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20408 (exit $ac_status); } &&
20409 { ac_try='test -z "$ac_c_werror_flag"
20410 || test ! -s conftest.err'
20411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20412 (eval $ac_try) 2>&5
20413 ac_status=$?
20414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20415 (exit $ac_status); }; } &&
20416 { ac_try='test -s conftest$ac_exeext'
20417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20418 (eval $ac_try) 2>&5
20419 ac_status=$?
20420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20421 (exit $ac_status); }; }; then
20422 ac_cv_func_gethostbyname=yes
20423 else
20424 echo "$as_me: failed program was:" >&5
20425 sed 's/^/| /' conftest.$ac_ext >&5
20427 ac_cv_func_gethostbyname=no
20429 rm -f conftest.err conftest.$ac_objext \
20430 conftest$ac_exeext conftest.$ac_ext
20432 echo "$as_me:$LINENO: result: $ac_cv_func_gethostbyname" >&5
20433 echo "${ECHO_T}$ac_cv_func_gethostbyname" >&6
20435 if test $ac_cv_func_gethostbyname = no; then
20436 echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5
20437 echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6
20438 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then
20439 echo $ECHO_N "(cached) $ECHO_C" >&6
20440 else
20441 ac_check_lib_save_LIBS=$LIBS
20442 LIBS="-lnsl $LIBS"
20443 cat >conftest.$ac_ext <<_ACEOF
20444 /* confdefs.h. */
20445 _ACEOF
20446 cat confdefs.h >>conftest.$ac_ext
20447 cat >>conftest.$ac_ext <<_ACEOF
20448 /* end confdefs.h. */
20450 /* Override any gcc2 internal prototype to avoid an error. */
20451 #ifdef __cplusplus
20452 extern "C"
20453 #endif
20454 /* We use char because int might match the return type of a gcc2
20455 builtin and then its argument prototype would still apply. */
20456 char gethostbyname ();
20458 main ()
20460 gethostbyname ();
20462 return 0;
20464 _ACEOF
20465 rm -f conftest.$ac_objext conftest$ac_exeext
20466 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20467 (eval $ac_link) 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } &&
20474 { ac_try='test -z "$ac_c_werror_flag"
20475 || test ! -s conftest.err'
20476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20477 (eval $ac_try) 2>&5
20478 ac_status=$?
20479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20480 (exit $ac_status); }; } &&
20481 { ac_try='test -s conftest$ac_exeext'
20482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20483 (eval $ac_try) 2>&5
20484 ac_status=$?
20485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20486 (exit $ac_status); }; }; then
20487 ac_cv_lib_nsl_gethostbyname=yes
20488 else
20489 echo "$as_me: failed program was:" >&5
20490 sed 's/^/| /' conftest.$ac_ext >&5
20492 ac_cv_lib_nsl_gethostbyname=no
20494 rm -f conftest.err conftest.$ac_objext \
20495 conftest$ac_exeext conftest.$ac_ext
20496 LIBS=$ac_check_lib_save_LIBS
20498 echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5
20499 echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6
20500 if test $ac_cv_lib_nsl_gethostbyname = yes; then
20501 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
20504 if test $ac_cv_lib_nsl_gethostbyname = no; then
20505 echo "$as_me:$LINENO: checking for gethostbyname in -lbsd" >&5
20506 echo $ECHO_N "checking for gethostbyname in -lbsd... $ECHO_C" >&6
20507 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then
20508 echo $ECHO_N "(cached) $ECHO_C" >&6
20509 else
20510 ac_check_lib_save_LIBS=$LIBS
20511 LIBS="-lbsd $LIBS"
20512 cat >conftest.$ac_ext <<_ACEOF
20513 /* confdefs.h. */
20514 _ACEOF
20515 cat confdefs.h >>conftest.$ac_ext
20516 cat >>conftest.$ac_ext <<_ACEOF
20517 /* end confdefs.h. */
20519 /* Override any gcc2 internal prototype to avoid an error. */
20520 #ifdef __cplusplus
20521 extern "C"
20522 #endif
20523 /* We use char because int might match the return type of a gcc2
20524 builtin and then its argument prototype would still apply. */
20525 char gethostbyname ();
20527 main ()
20529 gethostbyname ();
20531 return 0;
20533 _ACEOF
20534 rm -f conftest.$ac_objext conftest$ac_exeext
20535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20536 (eval $ac_link) 2>conftest.er1
20537 ac_status=$?
20538 grep -v '^ *+' conftest.er1 >conftest.err
20539 rm -f conftest.er1
20540 cat conftest.err >&5
20541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20542 (exit $ac_status); } &&
20543 { ac_try='test -z "$ac_c_werror_flag"
20544 || test ! -s conftest.err'
20545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20546 (eval $ac_try) 2>&5
20547 ac_status=$?
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); }; } &&
20550 { ac_try='test -s conftest$ac_exeext'
20551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20552 (eval $ac_try) 2>&5
20553 ac_status=$?
20554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20555 (exit $ac_status); }; }; then
20556 ac_cv_lib_bsd_gethostbyname=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20561 ac_cv_lib_bsd_gethostbyname=no
20563 rm -f conftest.err conftest.$ac_objext \
20564 conftest$ac_exeext conftest.$ac_ext
20565 LIBS=$ac_check_lib_save_LIBS
20567 echo "$as_me:$LINENO: result: $ac_cv_lib_bsd_gethostbyname" >&5
20568 echo "${ECHO_T}$ac_cv_lib_bsd_gethostbyname" >&6
20569 if test $ac_cv_lib_bsd_gethostbyname = yes; then
20570 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
20576 # lieder@skyler.mavd.honeywell.com says without -lsocket,
20577 # socket/setsockopt and other routines are undefined under SCO ODT
20578 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
20579 # on later versions), says Simon Leinen: it contains gethostby*
20580 # variants that don't use the name server (or something). -lsocket
20581 # must be given before -lnsl if both are needed. We assume that
20582 # if connect needs -lnsl, so does gethostbyname.
20583 echo "$as_me:$LINENO: checking for connect" >&5
20584 echo $ECHO_N "checking for connect... $ECHO_C" >&6
20585 if test "${ac_cv_func_connect+set}" = set; then
20586 echo $ECHO_N "(cached) $ECHO_C" >&6
20587 else
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 /* Define connect to an innocuous variant, in case <limits.h> declares connect.
20595 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20596 #define connect innocuous_connect
20598 /* System header to define __stub macros and hopefully few prototypes,
20599 which can conflict with char connect (); below.
20600 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20601 <limits.h> exists even on freestanding compilers. */
20603 #ifdef __STDC__
20604 # include <limits.h>
20605 #else
20606 # include <assert.h>
20607 #endif
20609 #undef connect
20611 /* Override any gcc2 internal prototype to avoid an error. */
20612 #ifdef __cplusplus
20613 extern "C"
20615 #endif
20616 /* We use char because int might match the return type of a gcc2
20617 builtin and then its argument prototype would still apply. */
20618 char connect ();
20619 /* The GNU C library defines this for functions which it implements
20620 to always fail with ENOSYS. Some functions are actually named
20621 something starting with __ and the normal name is an alias. */
20622 #if defined (__stub_connect) || defined (__stub___connect)
20623 choke me
20624 #else
20625 char (*f) () = connect;
20626 #endif
20627 #ifdef __cplusplus
20629 #endif
20632 main ()
20634 return f != connect;
20636 return 0;
20638 _ACEOF
20639 rm -f conftest.$ac_objext conftest$ac_exeext
20640 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20641 (eval $ac_link) 2>conftest.er1
20642 ac_status=$?
20643 grep -v '^ *+' conftest.er1 >conftest.err
20644 rm -f conftest.er1
20645 cat conftest.err >&5
20646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20647 (exit $ac_status); } &&
20648 { ac_try='test -z "$ac_c_werror_flag"
20649 || test ! -s conftest.err'
20650 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20651 (eval $ac_try) 2>&5
20652 ac_status=$?
20653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20654 (exit $ac_status); }; } &&
20655 { ac_try='test -s conftest$ac_exeext'
20656 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20657 (eval $ac_try) 2>&5
20658 ac_status=$?
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); }; }; then
20661 ac_cv_func_connect=yes
20662 else
20663 echo "$as_me: failed program was:" >&5
20664 sed 's/^/| /' conftest.$ac_ext >&5
20666 ac_cv_func_connect=no
20668 rm -f conftest.err conftest.$ac_objext \
20669 conftest$ac_exeext conftest.$ac_ext
20671 echo "$as_me:$LINENO: result: $ac_cv_func_connect" >&5
20672 echo "${ECHO_T}$ac_cv_func_connect" >&6
20674 if test $ac_cv_func_connect = no; then
20675 echo "$as_me:$LINENO: checking for connect in -lsocket" >&5
20676 echo $ECHO_N "checking for connect in -lsocket... $ECHO_C" >&6
20677 if test "${ac_cv_lib_socket_connect+set}" = set; then
20678 echo $ECHO_N "(cached) $ECHO_C" >&6
20679 else
20680 ac_check_lib_save_LIBS=$LIBS
20681 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h. */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20689 /* Override any gcc2 internal prototype to avoid an error. */
20690 #ifdef __cplusplus
20691 extern "C"
20692 #endif
20693 /* We use char because int might match the return type of a gcc2
20694 builtin and then its argument prototype would still apply. */
20695 char connect ();
20697 main ()
20699 connect ();
20701 return 0;
20703 _ACEOF
20704 rm -f conftest.$ac_objext conftest$ac_exeext
20705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20706 (eval $ac_link) 2>conftest.er1
20707 ac_status=$?
20708 grep -v '^ *+' conftest.er1 >conftest.err
20709 rm -f conftest.er1
20710 cat conftest.err >&5
20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20712 (exit $ac_status); } &&
20713 { ac_try='test -z "$ac_c_werror_flag"
20714 || test ! -s conftest.err'
20715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20716 (eval $ac_try) 2>&5
20717 ac_status=$?
20718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20719 (exit $ac_status); }; } &&
20720 { ac_try='test -s conftest$ac_exeext'
20721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20722 (eval $ac_try) 2>&5
20723 ac_status=$?
20724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20725 (exit $ac_status); }; }; then
20726 ac_cv_lib_socket_connect=yes
20727 else
20728 echo "$as_me: failed program was:" >&5
20729 sed 's/^/| /' conftest.$ac_ext >&5
20731 ac_cv_lib_socket_connect=no
20733 rm -f conftest.err conftest.$ac_objext \
20734 conftest$ac_exeext conftest.$ac_ext
20735 LIBS=$ac_check_lib_save_LIBS
20737 echo "$as_me:$LINENO: result: $ac_cv_lib_socket_connect" >&5
20738 echo "${ECHO_T}$ac_cv_lib_socket_connect" >&6
20739 if test $ac_cv_lib_socket_connect = yes; then
20740 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
20745 # Guillermo Gomez says -lposix is necessary on A/UX.
20746 echo "$as_me:$LINENO: checking for remove" >&5
20747 echo $ECHO_N "checking for remove... $ECHO_C" >&6
20748 if test "${ac_cv_func_remove+set}" = set; then
20749 echo $ECHO_N "(cached) $ECHO_C" >&6
20750 else
20751 cat >conftest.$ac_ext <<_ACEOF
20752 /* confdefs.h. */
20753 _ACEOF
20754 cat confdefs.h >>conftest.$ac_ext
20755 cat >>conftest.$ac_ext <<_ACEOF
20756 /* end confdefs.h. */
20757 /* Define remove to an innocuous variant, in case <limits.h> declares remove.
20758 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20759 #define remove innocuous_remove
20761 /* System header to define __stub macros and hopefully few prototypes,
20762 which can conflict with char remove (); below.
20763 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20764 <limits.h> exists even on freestanding compilers. */
20766 #ifdef __STDC__
20767 # include <limits.h>
20768 #else
20769 # include <assert.h>
20770 #endif
20772 #undef remove
20774 /* Override any gcc2 internal prototype to avoid an error. */
20775 #ifdef __cplusplus
20776 extern "C"
20778 #endif
20779 /* We use char because int might match the return type of a gcc2
20780 builtin and then its argument prototype would still apply. */
20781 char remove ();
20782 /* The GNU C library defines this for functions which it implements
20783 to always fail with ENOSYS. Some functions are actually named
20784 something starting with __ and the normal name is an alias. */
20785 #if defined (__stub_remove) || defined (__stub___remove)
20786 choke me
20787 #else
20788 char (*f) () = remove;
20789 #endif
20790 #ifdef __cplusplus
20792 #endif
20795 main ()
20797 return f != remove;
20799 return 0;
20801 _ACEOF
20802 rm -f conftest.$ac_objext conftest$ac_exeext
20803 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20804 (eval $ac_link) 2>conftest.er1
20805 ac_status=$?
20806 grep -v '^ *+' conftest.er1 >conftest.err
20807 rm -f conftest.er1
20808 cat conftest.err >&5
20809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20810 (exit $ac_status); } &&
20811 { ac_try='test -z "$ac_c_werror_flag"
20812 || test ! -s conftest.err'
20813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20814 (eval $ac_try) 2>&5
20815 ac_status=$?
20816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20817 (exit $ac_status); }; } &&
20818 { ac_try='test -s conftest$ac_exeext'
20819 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20820 (eval $ac_try) 2>&5
20821 ac_status=$?
20822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20823 (exit $ac_status); }; }; then
20824 ac_cv_func_remove=yes
20825 else
20826 echo "$as_me: failed program was:" >&5
20827 sed 's/^/| /' conftest.$ac_ext >&5
20829 ac_cv_func_remove=no
20831 rm -f conftest.err conftest.$ac_objext \
20832 conftest$ac_exeext conftest.$ac_ext
20834 echo "$as_me:$LINENO: result: $ac_cv_func_remove" >&5
20835 echo "${ECHO_T}$ac_cv_func_remove" >&6
20837 if test $ac_cv_func_remove = no; then
20838 echo "$as_me:$LINENO: checking for remove in -lposix" >&5
20839 echo $ECHO_N "checking for remove in -lposix... $ECHO_C" >&6
20840 if test "${ac_cv_lib_posix_remove+set}" = set; then
20841 echo $ECHO_N "(cached) $ECHO_C" >&6
20842 else
20843 ac_check_lib_save_LIBS=$LIBS
20844 LIBS="-lposix $LIBS"
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20852 /* Override any gcc2 internal prototype to avoid an error. */
20853 #ifdef __cplusplus
20854 extern "C"
20855 #endif
20856 /* We use char because int might match the return type of a gcc2
20857 builtin and then its argument prototype would still apply. */
20858 char remove ();
20860 main ()
20862 remove ();
20864 return 0;
20866 _ACEOF
20867 rm -f conftest.$ac_objext conftest$ac_exeext
20868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20869 (eval $ac_link) 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } &&
20876 { ac_try='test -z "$ac_c_werror_flag"
20877 || test ! -s conftest.err'
20878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20879 (eval $ac_try) 2>&5
20880 ac_status=$?
20881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20882 (exit $ac_status); }; } &&
20883 { ac_try='test -s conftest$ac_exeext'
20884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20885 (eval $ac_try) 2>&5
20886 ac_status=$?
20887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20888 (exit $ac_status); }; }; then
20889 ac_cv_lib_posix_remove=yes
20890 else
20891 echo "$as_me: failed program was:" >&5
20892 sed 's/^/| /' conftest.$ac_ext >&5
20894 ac_cv_lib_posix_remove=no
20896 rm -f conftest.err conftest.$ac_objext \
20897 conftest$ac_exeext conftest.$ac_ext
20898 LIBS=$ac_check_lib_save_LIBS
20900 echo "$as_me:$LINENO: result: $ac_cv_lib_posix_remove" >&5
20901 echo "${ECHO_T}$ac_cv_lib_posix_remove" >&6
20902 if test $ac_cv_lib_posix_remove = yes; then
20903 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
20908 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
20909 echo "$as_me:$LINENO: checking for shmat" >&5
20910 echo $ECHO_N "checking for shmat... $ECHO_C" >&6
20911 if test "${ac_cv_func_shmat+set}" = set; then
20912 echo $ECHO_N "(cached) $ECHO_C" >&6
20913 else
20914 cat >conftest.$ac_ext <<_ACEOF
20915 /* confdefs.h. */
20916 _ACEOF
20917 cat confdefs.h >>conftest.$ac_ext
20918 cat >>conftest.$ac_ext <<_ACEOF
20919 /* end confdefs.h. */
20920 /* Define shmat to an innocuous variant, in case <limits.h> declares shmat.
20921 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20922 #define shmat innocuous_shmat
20924 /* System header to define __stub macros and hopefully few prototypes,
20925 which can conflict with char shmat (); below.
20926 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20927 <limits.h> exists even on freestanding compilers. */
20929 #ifdef __STDC__
20930 # include <limits.h>
20931 #else
20932 # include <assert.h>
20933 #endif
20935 #undef shmat
20937 /* Override any gcc2 internal prototype to avoid an error. */
20938 #ifdef __cplusplus
20939 extern "C"
20941 #endif
20942 /* We use char because int might match the return type of a gcc2
20943 builtin and then its argument prototype would still apply. */
20944 char shmat ();
20945 /* The GNU C library defines this for functions which it implements
20946 to always fail with ENOSYS. Some functions are actually named
20947 something starting with __ and the normal name is an alias. */
20948 #if defined (__stub_shmat) || defined (__stub___shmat)
20949 choke me
20950 #else
20951 char (*f) () = shmat;
20952 #endif
20953 #ifdef __cplusplus
20955 #endif
20958 main ()
20960 return f != shmat;
20962 return 0;
20964 _ACEOF
20965 rm -f conftest.$ac_objext conftest$ac_exeext
20966 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20967 (eval $ac_link) 2>conftest.er1
20968 ac_status=$?
20969 grep -v '^ *+' conftest.er1 >conftest.err
20970 rm -f conftest.er1
20971 cat conftest.err >&5
20972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20973 (exit $ac_status); } &&
20974 { ac_try='test -z "$ac_c_werror_flag"
20975 || test ! -s conftest.err'
20976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20977 (eval $ac_try) 2>&5
20978 ac_status=$?
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); }; } &&
20981 { ac_try='test -s conftest$ac_exeext'
20982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20983 (eval $ac_try) 2>&5
20984 ac_status=$?
20985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20986 (exit $ac_status); }; }; then
20987 ac_cv_func_shmat=yes
20988 else
20989 echo "$as_me: failed program was:" >&5
20990 sed 's/^/| /' conftest.$ac_ext >&5
20992 ac_cv_func_shmat=no
20994 rm -f conftest.err conftest.$ac_objext \
20995 conftest$ac_exeext conftest.$ac_ext
20997 echo "$as_me:$LINENO: result: $ac_cv_func_shmat" >&5
20998 echo "${ECHO_T}$ac_cv_func_shmat" >&6
21000 if test $ac_cv_func_shmat = no; then
21001 echo "$as_me:$LINENO: checking for shmat in -lipc" >&5
21002 echo $ECHO_N "checking for shmat in -lipc... $ECHO_C" >&6
21003 if test "${ac_cv_lib_ipc_shmat+set}" = set; then
21004 echo $ECHO_N "(cached) $ECHO_C" >&6
21005 else
21006 ac_check_lib_save_LIBS=$LIBS
21007 LIBS="-lipc $LIBS"
21008 cat >conftest.$ac_ext <<_ACEOF
21009 /* confdefs.h. */
21010 _ACEOF
21011 cat confdefs.h >>conftest.$ac_ext
21012 cat >>conftest.$ac_ext <<_ACEOF
21013 /* end confdefs.h. */
21015 /* Override any gcc2 internal prototype to avoid an error. */
21016 #ifdef __cplusplus
21017 extern "C"
21018 #endif
21019 /* We use char because int might match the return type of a gcc2
21020 builtin and then its argument prototype would still apply. */
21021 char shmat ();
21023 main ()
21025 shmat ();
21027 return 0;
21029 _ACEOF
21030 rm -f conftest.$ac_objext conftest$ac_exeext
21031 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21032 (eval $ac_link) 2>conftest.er1
21033 ac_status=$?
21034 grep -v '^ *+' conftest.er1 >conftest.err
21035 rm -f conftest.er1
21036 cat conftest.err >&5
21037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21038 (exit $ac_status); } &&
21039 { ac_try='test -z "$ac_c_werror_flag"
21040 || test ! -s conftest.err'
21041 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21042 (eval $ac_try) 2>&5
21043 ac_status=$?
21044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21045 (exit $ac_status); }; } &&
21046 { ac_try='test -s conftest$ac_exeext'
21047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21048 (eval $ac_try) 2>&5
21049 ac_status=$?
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); }; }; then
21052 ac_cv_lib_ipc_shmat=yes
21053 else
21054 echo "$as_me: failed program was:" >&5
21055 sed 's/^/| /' conftest.$ac_ext >&5
21057 ac_cv_lib_ipc_shmat=no
21059 rm -f conftest.err conftest.$ac_objext \
21060 conftest$ac_exeext conftest.$ac_ext
21061 LIBS=$ac_check_lib_save_LIBS
21063 echo "$as_me:$LINENO: result: $ac_cv_lib_ipc_shmat" >&5
21064 echo "${ECHO_T}$ac_cv_lib_ipc_shmat" >&6
21065 if test $ac_cv_lib_ipc_shmat = yes; then
21066 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
21072 # Check for libraries that X11R6 Xt/Xaw programs need.
21073 ac_save_LDFLAGS=$LDFLAGS
21074 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
21075 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
21076 # check for ICE first), but we must link in the order -lSM -lICE or
21077 # we get undefined symbols. So assume we have SM if we have ICE.
21078 # These have to be linked with before -lX11, unlike the other
21079 # libraries we check for below, so use a different variable.
21080 # John Interrante, Karl Berry
21081 echo "$as_me:$LINENO: checking for IceConnectionNumber in -lICE" >&5
21082 echo $ECHO_N "checking for IceConnectionNumber in -lICE... $ECHO_C" >&6
21083 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then
21084 echo $ECHO_N "(cached) $ECHO_C" >&6
21085 else
21086 ac_check_lib_save_LIBS=$LIBS
21087 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
21088 cat >conftest.$ac_ext <<_ACEOF
21089 /* confdefs.h. */
21090 _ACEOF
21091 cat confdefs.h >>conftest.$ac_ext
21092 cat >>conftest.$ac_ext <<_ACEOF
21093 /* end confdefs.h. */
21095 /* Override any gcc2 internal prototype to avoid an error. */
21096 #ifdef __cplusplus
21097 extern "C"
21098 #endif
21099 /* We use char because int might match the return type of a gcc2
21100 builtin and then its argument prototype would still apply. */
21101 char IceConnectionNumber ();
21103 main ()
21105 IceConnectionNumber ();
21107 return 0;
21109 _ACEOF
21110 rm -f conftest.$ac_objext conftest$ac_exeext
21111 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21112 (eval $ac_link) 2>conftest.er1
21113 ac_status=$?
21114 grep -v '^ *+' conftest.er1 >conftest.err
21115 rm -f conftest.er1
21116 cat conftest.err >&5
21117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21118 (exit $ac_status); } &&
21119 { ac_try='test -z "$ac_c_werror_flag"
21120 || test ! -s conftest.err'
21121 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21122 (eval $ac_try) 2>&5
21123 ac_status=$?
21124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21125 (exit $ac_status); }; } &&
21126 { ac_try='test -s conftest$ac_exeext'
21127 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21128 (eval $ac_try) 2>&5
21129 ac_status=$?
21130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21131 (exit $ac_status); }; }; then
21132 ac_cv_lib_ICE_IceConnectionNumber=yes
21133 else
21134 echo "$as_me: failed program was:" >&5
21135 sed 's/^/| /' conftest.$ac_ext >&5
21137 ac_cv_lib_ICE_IceConnectionNumber=no
21139 rm -f conftest.err conftest.$ac_objext \
21140 conftest$ac_exeext conftest.$ac_ext
21141 LIBS=$ac_check_lib_save_LIBS
21143 echo "$as_me:$LINENO: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
21144 echo "${ECHO_T}$ac_cv_lib_ICE_IceConnectionNumber" >&6
21145 if test $ac_cv_lib_ICE_IceConnectionNumber = yes; then
21146 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
21149 LDFLAGS=$ac_save_LDFLAGS
21153 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
21155 if test "x$x_includes" = "x"; then
21156 x_includes="default_x_includes"
21158 if test "x$x_libraries" = "x"; then
21159 x_libraries="default_x_libraries"
21161 if test -z "$x_libraries"; then
21162 { { echo "$as_me:$LINENO: error: No X libraries found" >&5
21163 echo "$as_me: error: No X libraries found" >&2;}
21164 { (exit 1); exit 1; }; } # Exit
21166 if test -z "$x_includes"; then
21167 { { echo "$as_me:$LINENO: error: No X includes found" >&5
21168 echo "$as_me: error: No X includes found" >&2;}
21169 { (exit 1); exit 1; }; } # Exit
21171 CFLAGS=$X_CFLAGS
21172 LDFLAGS="$X_LDFLAGS $X_LIBS"
21173 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
21174 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
21175 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 ac_check_lib_save_LIBS=$LIBS
21179 LIBS="-lX11 $LIBS"
21180 cat >conftest.$ac_ext <<_ACEOF
21181 /* confdefs.h. */
21182 _ACEOF
21183 cat confdefs.h >>conftest.$ac_ext
21184 cat >>conftest.$ac_ext <<_ACEOF
21185 /* end confdefs.h. */
21187 /* Override any gcc2 internal prototype to avoid an error. */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 /* We use char because int might match the return type of a gcc2
21192 builtin and then its argument prototype would still apply. */
21193 char XOpenDisplay ();
21195 main ()
21197 XOpenDisplay ();
21199 return 0;
21201 _ACEOF
21202 rm -f conftest.$ac_objext conftest$ac_exeext
21203 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21204 (eval $ac_link) 2>conftest.er1
21205 ac_status=$?
21206 grep -v '^ *+' conftest.er1 >conftest.err
21207 rm -f conftest.er1
21208 cat conftest.err >&5
21209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21210 (exit $ac_status); } &&
21211 { ac_try='test -z "$ac_c_werror_flag"
21212 || test ! -s conftest.err'
21213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21214 (eval $ac_try) 2>&5
21215 ac_status=$?
21216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21217 (exit $ac_status); }; } &&
21218 { ac_try='test -s conftest$ac_exeext'
21219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21220 (eval $ac_try) 2>&5
21221 ac_status=$?
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); }; }; then
21224 ac_cv_lib_X11_XOpenDisplay=yes
21225 else
21226 echo "$as_me: failed program was:" >&5
21227 sed 's/^/| /' conftest.$ac_ext >&5
21229 ac_cv_lib_X11_XOpenDisplay=no
21231 rm -f conftest.err conftest.$ac_objext \
21232 conftest$ac_exeext conftest.$ac_ext
21233 LIBS=$ac_check_lib_save_LIBS
21235 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
21236 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
21237 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
21238 x_libs="-lX11 $X_EXTRA_LIBS"
21239 else
21240 { { echo "$as_me:$LINENO: error: X Development libraries not found" >&5
21241 echo "$as_me: error: X Development libraries not found" >&2;}
21242 { (exit 1); exit 1; }; }
21245 echo "$as_me:$LINENO: checking for XauDisposeAuth in -lXau" >&5
21246 echo $ECHO_N "checking for XauDisposeAuth in -lXau... $ECHO_C" >&6
21247 if test "${ac_cv_lib_Xau_XauDisposeAuth+set}" = set; then
21248 echo $ECHO_N "(cached) $ECHO_C" >&6
21249 else
21250 ac_check_lib_save_LIBS=$LIBS
21251 LIBS="-lXau $LIBS"
21252 cat >conftest.$ac_ext <<_ACEOF
21253 /* confdefs.h. */
21254 _ACEOF
21255 cat confdefs.h >>conftest.$ac_ext
21256 cat >>conftest.$ac_ext <<_ACEOF
21257 /* end confdefs.h. */
21259 /* Override any gcc2 internal prototype to avoid an error. */
21260 #ifdef __cplusplus
21261 extern "C"
21262 #endif
21263 /* We use char because int might match the return type of a gcc2
21264 builtin and then its argument prototype would still apply. */
21265 char XauDisposeAuth ();
21267 main ()
21269 XauDisposeAuth ();
21271 return 0;
21273 _ACEOF
21274 rm -f conftest.$ac_objext conftest$ac_exeext
21275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21276 (eval $ac_link) 2>conftest.er1
21277 ac_status=$?
21278 grep -v '^ *+' conftest.er1 >conftest.err
21279 rm -f conftest.er1
21280 cat conftest.err >&5
21281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21282 (exit $ac_status); } &&
21283 { ac_try='test -z "$ac_c_werror_flag"
21284 || test ! -s conftest.err'
21285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21286 (eval $ac_try) 2>&5
21287 ac_status=$?
21288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21289 (exit $ac_status); }; } &&
21290 { ac_try='test -s conftest$ac_exeext'
21291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21292 (eval $ac_try) 2>&5
21293 ac_status=$?
21294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21295 (exit $ac_status); }; }; then
21296 ac_cv_lib_Xau_XauDisposeAuth=yes
21297 else
21298 echo "$as_me: failed program was:" >&5
21299 sed 's/^/| /' conftest.$ac_ext >&5
21301 ac_cv_lib_Xau_XauDisposeAuth=no
21303 rm -f conftest.err conftest.$ac_objext \
21304 conftest$ac_exeext conftest.$ac_ext
21305 LIBS=$ac_check_lib_save_LIBS
21307 echo "$as_me:$LINENO: result: $ac_cv_lib_Xau_XauDisposeAuth" >&5
21308 echo "${ECHO_T}$ac_cv_lib_Xau_XauDisposeAuth" >&6
21309 if test $ac_cv_lib_Xau_XauDisposeAuth = yes; then
21310 XAU_LIBS="-lXau"
21313 else
21314 x_includes="no_x_includes"
21315 x_libraries="no_x_libraries"
21317 if test -z "$x_includes"; then
21318 x_includes="no_x_includes"
21320 if test -z "$x_libraries"; then
21321 x_libraries="no_x_libraries"
21323 if test "$x_includes" = "default_x_includes"; then
21324 XINC="/usr/include"
21325 else
21326 XINC="$x_includes"
21329 if test "$x_libraries" = "default_x_libraries"; then
21330 XLIB=`$PKG_CONFIG --variable=libdir x11`
21331 if test "x$XLIB" = x; then
21332 XLIB="/usr/lib"
21334 else
21335 XLIB="$x_libraries"
21340 if test "$_os" != "WINNT" -a "$_os" != "OS2" -a "$_os" != "Darwin"; then
21341 echo "$as_me:$LINENO: checking whether to use Xaw" >&5
21342 echo $ECHO_N "checking whether to use Xaw... $ECHO_C" >&6
21343 if test "$enable_Xaw" = "no"; then
21344 DISABLE_XAW=TRUE
21345 echo "$as_me:$LINENO: result: no" >&5
21346 echo "${ECHO_T}no" >&6
21348 for ac_header in X11/Composite.h
21350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21351 echo "$as_me:$LINENO: checking for $ac_header" >&5
21352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21353 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21354 echo $ECHO_N "(cached) $ECHO_C" >&6
21355 else
21356 cat >conftest.$ac_ext <<_ACEOF
21357 /* confdefs.h. */
21358 _ACEOF
21359 cat confdefs.h >>conftest.$ac_ext
21360 cat >>conftest.$ac_ext <<_ACEOF
21361 /* end confdefs.h. */
21362 #include <X11/Intrinsic.h>
21364 #include <$ac_header>
21365 _ACEOF
21366 rm -f conftest.$ac_objext
21367 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21368 (eval $ac_compile) 2>conftest.er1
21369 ac_status=$?
21370 grep -v '^ *+' conftest.er1 >conftest.err
21371 rm -f conftest.er1
21372 cat conftest.err >&5
21373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21374 (exit $ac_status); } &&
21375 { ac_try='test -z "$ac_c_werror_flag"
21376 || test ! -s conftest.err'
21377 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21378 (eval $ac_try) 2>&5
21379 ac_status=$?
21380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21381 (exit $ac_status); }; } &&
21382 { ac_try='test -s conftest.$ac_objext'
21383 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21384 (eval $ac_try) 2>&5
21385 ac_status=$?
21386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21387 (exit $ac_status); }; }; then
21388 eval "$as_ac_Header=yes"
21389 else
21390 echo "$as_me: failed program was:" >&5
21391 sed 's/^/| /' conftest.$ac_ext >&5
21393 eval "$as_ac_Header=no"
21395 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21397 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21398 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21399 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21400 cat >>confdefs.h <<_ACEOF
21401 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21402 _ACEOF
21404 else
21405 { { echo "$as_me:$LINENO: error: Xt include headers not found" >&5
21406 echo "$as_me: error: Xt include headers not found" >&2;}
21407 { (exit 1); exit 1; }; }
21410 done
21412 else
21413 echo "$as_me:$LINENO: result: yes" >&5
21414 echo "${ECHO_T}yes" >&6
21416 for ac_header in X11/Xaw/Label.h
21418 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21419 echo "$as_me:$LINENO: checking for $ac_header" >&5
21420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21421 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21422 echo $ECHO_N "(cached) $ECHO_C" >&6
21423 else
21424 cat >conftest.$ac_ext <<_ACEOF
21425 /* confdefs.h. */
21426 _ACEOF
21427 cat confdefs.h >>conftest.$ac_ext
21428 cat >>conftest.$ac_ext <<_ACEOF
21429 /* end confdefs.h. */
21430 #include <X11/Intrinsic.h>
21432 #include <$ac_header>
21433 _ACEOF
21434 rm -f conftest.$ac_objext
21435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21436 (eval $ac_compile) 2>conftest.er1
21437 ac_status=$?
21438 grep -v '^ *+' conftest.er1 >conftest.err
21439 rm -f conftest.er1
21440 cat conftest.err >&5
21441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21442 (exit $ac_status); } &&
21443 { ac_try='test -z "$ac_c_werror_flag"
21444 || test ! -s conftest.err'
21445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21446 (eval $ac_try) 2>&5
21447 ac_status=$?
21448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21449 (exit $ac_status); }; } &&
21450 { ac_try='test -s conftest.$ac_objext'
21451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21452 (eval $ac_try) 2>&5
21453 ac_status=$?
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); }; }; then
21456 eval "$as_ac_Header=yes"
21457 else
21458 echo "$as_me: failed program was:" >&5
21459 sed 's/^/| /' conftest.$ac_ext >&5
21461 eval "$as_ac_Header=no"
21463 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21465 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21466 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21468 cat >>confdefs.h <<_ACEOF
21469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21470 _ACEOF
21472 else
21473 { { echo "$as_me:$LINENO: error: Xaw include headers not found" >&5
21474 echo "$as_me: error: Xaw include headers not found" >&2;}
21475 { (exit 1); exit 1; }; }
21478 done
21481 echo "$as_me:$LINENO: checking for main in -lXaw" >&5
21482 echo $ECHO_N "checking for main in -lXaw... $ECHO_C" >&6
21483 if test "${ac_cv_lib_Xaw_main+set}" = set; then
21484 echo $ECHO_N "(cached) $ECHO_C" >&6
21485 else
21486 ac_check_lib_save_LIBS=$LIBS
21487 LIBS="-lXaw $LIBS"
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21497 main ()
21499 main ();
21501 return 0;
21503 _ACEOF
21504 rm -f conftest.$ac_objext conftest$ac_exeext
21505 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21506 (eval $ac_link) 2>conftest.er1
21507 ac_status=$?
21508 grep -v '^ *+' conftest.er1 >conftest.err
21509 rm -f conftest.er1
21510 cat conftest.err >&5
21511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21512 (exit $ac_status); } &&
21513 { ac_try='test -z "$ac_c_werror_flag"
21514 || test ! -s conftest.err'
21515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21516 (eval $ac_try) 2>&5
21517 ac_status=$?
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); }; } &&
21520 { ac_try='test -s conftest$ac_exeext'
21521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21522 (eval $ac_try) 2>&5
21523 ac_status=$?
21524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21525 (exit $ac_status); }; }; then
21526 ac_cv_lib_Xaw_main=yes
21527 else
21528 echo "$as_me: failed program was:" >&5
21529 sed 's/^/| /' conftest.$ac_ext >&5
21531 ac_cv_lib_Xaw_main=no
21533 rm -f conftest.err conftest.$ac_objext \
21534 conftest$ac_exeext conftest.$ac_ext
21535 LIBS=$ac_check_lib_save_LIBS
21537 echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw_main" >&5
21538 echo "${ECHO_T}$ac_cv_lib_Xaw_main" >&6
21539 if test $ac_cv_lib_Xaw_main = yes; then
21540 cat >>confdefs.h <<_ACEOF
21541 #define HAVE_LIBXAW 1
21542 _ACEOF
21544 LIBS="-lXaw $LIBS"
21546 else
21547 { { echo "$as_me:$LINENO: error: Xaw library not found or functional" >&5
21548 echo "$as_me: error: Xaw library not found or functional" >&2;}
21549 { (exit 1); exit 1; }; }
21558 if test "$ENABLE_FONTCONFIG" = "TRUE" ; then
21559 if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
21560 echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
21561 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6
21562 if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
21563 echo $ECHO_N "(cached) $ECHO_C" >&6
21565 echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
21566 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6
21567 else
21568 # Is the header compilable?
21569 echo "$as_me:$LINENO: checking fontconfig/fontconfig.h usability" >&5
21570 echo $ECHO_N "checking fontconfig/fontconfig.h usability... $ECHO_C" >&6
21571 cat >conftest.$ac_ext <<_ACEOF
21572 /* confdefs.h. */
21573 _ACEOF
21574 cat confdefs.h >>conftest.$ac_ext
21575 cat >>conftest.$ac_ext <<_ACEOF
21576 /* end confdefs.h. */
21577 $ac_includes_default
21578 #include <fontconfig/fontconfig.h>
21579 _ACEOF
21580 rm -f conftest.$ac_objext
21581 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21582 (eval $ac_compile) 2>conftest.er1
21583 ac_status=$?
21584 grep -v '^ *+' conftest.er1 >conftest.err
21585 rm -f conftest.er1
21586 cat conftest.err >&5
21587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21588 (exit $ac_status); } &&
21589 { ac_try='test -z "$ac_c_werror_flag"
21590 || test ! -s conftest.err'
21591 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21592 (eval $ac_try) 2>&5
21593 ac_status=$?
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); }; } &&
21596 { ac_try='test -s conftest.$ac_objext'
21597 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21598 (eval $ac_try) 2>&5
21599 ac_status=$?
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); }; }; then
21602 ac_header_compiler=yes
21603 else
21604 echo "$as_me: failed program was:" >&5
21605 sed 's/^/| /' conftest.$ac_ext >&5
21607 ac_header_compiler=no
21609 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21610 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21611 echo "${ECHO_T}$ac_header_compiler" >&6
21613 # Is the header present?
21614 echo "$as_me:$LINENO: checking fontconfig/fontconfig.h presence" >&5
21615 echo $ECHO_N "checking fontconfig/fontconfig.h presence... $ECHO_C" >&6
21616 cat >conftest.$ac_ext <<_ACEOF
21617 /* confdefs.h. */
21618 _ACEOF
21619 cat confdefs.h >>conftest.$ac_ext
21620 cat >>conftest.$ac_ext <<_ACEOF
21621 /* end confdefs.h. */
21622 #include <fontconfig/fontconfig.h>
21623 _ACEOF
21624 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21625 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21626 ac_status=$?
21627 grep -v '^ *+' conftest.er1 >conftest.err
21628 rm -f conftest.er1
21629 cat conftest.err >&5
21630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21631 (exit $ac_status); } >/dev/null; then
21632 if test -s conftest.err; then
21633 ac_cpp_err=$ac_c_preproc_warn_flag
21634 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21635 else
21636 ac_cpp_err=
21638 else
21639 ac_cpp_err=yes
21641 if test -z "$ac_cpp_err"; then
21642 ac_header_preproc=yes
21643 else
21644 echo "$as_me: failed program was:" >&5
21645 sed 's/^/| /' conftest.$ac_ext >&5
21647 ac_header_preproc=no
21649 rm -f conftest.err conftest.$ac_ext
21650 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21651 echo "${ECHO_T}$ac_header_preproc" >&6
21653 # So? What about this header?
21654 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21655 yes:no: )
21656 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&5
21657 echo "$as_me: WARNING: fontconfig/fontconfig.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&5
21659 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the compiler's result" >&2;}
21660 ac_header_preproc=yes
21662 no:yes:* )
21663 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&5
21664 echo "$as_me: WARNING: fontconfig/fontconfig.h: present but cannot be compiled" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&5
21666 echo "$as_me: WARNING: fontconfig/fontconfig.h: check for missing prerequisite headers?" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&5
21668 echo "$as_me: WARNING: fontconfig/fontconfig.h: see the Autoconf documentation" >&2;}
21669 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&5
21670 echo "$as_me: WARNING: fontconfig/fontconfig.h: section \"Present But Cannot Be Compiled\"" >&2;}
21671 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&5
21672 echo "$as_me: WARNING: fontconfig/fontconfig.h: proceeding with the preprocessor's result" >&2;}
21673 { echo "$as_me:$LINENO: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&5
21674 echo "$as_me: WARNING: fontconfig/fontconfig.h: in the future, the compiler will take precedence" >&2;}
21676 cat <<\_ASBOX
21677 ## ------------------------------------------ ##
21678 ## Report this to the AC_PACKAGE_NAME lists. ##
21679 ## ------------------------------------------ ##
21680 _ASBOX
21682 sed "s/^/$as_me: WARNING: /" >&2
21684 esac
21685 echo "$as_me:$LINENO: checking for fontconfig/fontconfig.h" >&5
21686 echo $ECHO_N "checking for fontconfig/fontconfig.h... $ECHO_C" >&6
21687 if test "${ac_cv_header_fontconfig_fontconfig_h+set}" = set; then
21688 echo $ECHO_N "(cached) $ECHO_C" >&6
21689 else
21690 ac_cv_header_fontconfig_fontconfig_h=$ac_header_preproc
21692 echo "$as_me:$LINENO: result: $ac_cv_header_fontconfig_fontconfig_h" >&5
21693 echo "${ECHO_T}$ac_cv_header_fontconfig_fontconfig_h" >&6
21696 if test $ac_cv_header_fontconfig_fontconfig_h = yes; then
21698 else
21699 { { echo "$as_me:$LINENO: error: fontconfig/fontconfig.h could not be found. libfontconfig1-dev or fontconfig???-devel missing?" >&5
21700 echo "$as_me: error: fontconfig/fontconfig.h could not be found. libfontconfig1-dev or fontconfig???-devel missing?" >&2;}
21701 { (exit 1); exit 1; }; }
21705 echo "$as_me:$LINENO: checking whether fontconfig is >= 2.2.0" >&5
21706 echo $ECHO_N "checking whether fontconfig is >= 2.2.0... $ECHO_C" >&6
21707 if test "$cross_compiling" = yes; then
21708 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
21709 See \`config.log' for more details." >&5
21710 echo "$as_me: error: cannot run test program while cross compiling
21711 See \`config.log' for more details." >&2;}
21712 { (exit 1); exit 1; }; }
21713 else
21714 cat >conftest.$ac_ext <<_ACEOF
21715 /* confdefs.h. */
21716 _ACEOF
21717 cat confdefs.h >>conftest.$ac_ext
21718 cat >>conftest.$ac_ext <<_ACEOF
21719 /* end confdefs.h. */
21721 #include <fontconfig/fontconfig.h>
21723 int main(int argc, char **argv) {
21724 if(FC_MAJOR > 2 || (FC_MAJOR == 2 && FC_MINOR >= 2)) return 0;
21725 else return 1;
21728 _ACEOF
21729 rm -f conftest$ac_exeext
21730 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21731 (eval $ac_link) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21736 (eval $ac_try) 2>&5
21737 ac_status=$?
21738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21739 (exit $ac_status); }; }; then
21740 echo "$as_me:$LINENO: result: yes" >&5
21741 echo "${ECHO_T}yes" >&6
21742 else
21743 echo "$as_me: program exited with status $ac_status" >&5
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21747 ( exit $ac_status )
21748 { { echo "$as_me:$LINENO: error: no, fontconfig >= 2.2.0 needed" >&5
21749 echo "$as_me: error: no, fontconfig >= 2.2.0 needed" >&2;}
21750 { (exit 1); exit 1; }; }
21752 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21756 echo "$as_me:$LINENO: checking whether to link to Xrender" >&5
21757 echo $ECHO_N "checking whether to link to Xrender... $ECHO_C" >&6
21758 if test -n "$enable_xrender_link" -a "$enable_xrender_link" != "no"; then
21759 echo "$as_me:$LINENO: result: yes" >&5
21760 echo "${ECHO_T}yes" >&6
21761 XRENDER_LINK=YES
21762 with_system_xrender_headers=yes
21763 else
21764 echo "$as_me:$LINENO: result: no, dynamically open it" >&5
21765 echo "${ECHO_T}no, dynamically open it" >&6
21766 XRENDER_LINK=NO
21768 echo "$as_me:$LINENO: checking which Xrender headers to use" >&5
21769 echo $ECHO_N "checking which Xrender headers to use... $ECHO_C" >&6
21770 if test -n "$with_system_xrender_headers" -o -n "$with_system_headers" && \
21771 test "$with_system_xrender_headers" != "no"; then
21772 echo "$as_me:$LINENO: result: external" >&5
21773 echo "${ECHO_T}external" >&6
21774 SYSTEM_XRENDER_HEADERS=YES
21775 if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
21776 echo "$as_me:$LINENO: checking for X11/extensions/Xrender.h" >&5
21777 echo $ECHO_N "checking for X11/extensions/Xrender.h... $ECHO_C" >&6
21778 if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
21779 echo $ECHO_N "(cached) $ECHO_C" >&6
21781 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrender_h" >&5
21782 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrender_h" >&6
21783 else
21784 # Is the header compilable?
21785 echo "$as_me:$LINENO: checking X11/extensions/Xrender.h usability" >&5
21786 echo $ECHO_N "checking X11/extensions/Xrender.h usability... $ECHO_C" >&6
21787 cat >conftest.$ac_ext <<_ACEOF
21788 /* confdefs.h. */
21789 _ACEOF
21790 cat confdefs.h >>conftest.$ac_ext
21791 cat >>conftest.$ac_ext <<_ACEOF
21792 /* end confdefs.h. */
21793 $ac_includes_default
21794 #include <X11/extensions/Xrender.h>
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21798 (eval $ac_compile) 2>conftest.er1
21799 ac_status=$?
21800 grep -v '^ *+' conftest.er1 >conftest.err
21801 rm -f conftest.er1
21802 cat conftest.err >&5
21803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21804 (exit $ac_status); } &&
21805 { ac_try='test -z "$ac_c_werror_flag"
21806 || test ! -s conftest.err'
21807 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21808 (eval $ac_try) 2>&5
21809 ac_status=$?
21810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21811 (exit $ac_status); }; } &&
21812 { ac_try='test -s conftest.$ac_objext'
21813 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21814 (eval $ac_try) 2>&5
21815 ac_status=$?
21816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21817 (exit $ac_status); }; }; then
21818 ac_header_compiler=yes
21819 else
21820 echo "$as_me: failed program was:" >&5
21821 sed 's/^/| /' conftest.$ac_ext >&5
21823 ac_header_compiler=no
21825 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21826 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21827 echo "${ECHO_T}$ac_header_compiler" >&6
21829 # Is the header present?
21830 echo "$as_me:$LINENO: checking X11/extensions/Xrender.h presence" >&5
21831 echo $ECHO_N "checking X11/extensions/Xrender.h presence... $ECHO_C" >&6
21832 cat >conftest.$ac_ext <<_ACEOF
21833 /* confdefs.h. */
21834 _ACEOF
21835 cat confdefs.h >>conftest.$ac_ext
21836 cat >>conftest.$ac_ext <<_ACEOF
21837 /* end confdefs.h. */
21838 #include <X11/extensions/Xrender.h>
21839 _ACEOF
21840 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21841 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21842 ac_status=$?
21843 grep -v '^ *+' conftest.er1 >conftest.err
21844 rm -f conftest.er1
21845 cat conftest.err >&5
21846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21847 (exit $ac_status); } >/dev/null; then
21848 if test -s conftest.err; then
21849 ac_cpp_err=$ac_c_preproc_warn_flag
21850 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21851 else
21852 ac_cpp_err=
21854 else
21855 ac_cpp_err=yes
21857 if test -z "$ac_cpp_err"; then
21858 ac_header_preproc=yes
21859 else
21860 echo "$as_me: failed program was:" >&5
21861 sed 's/^/| /' conftest.$ac_ext >&5
21863 ac_header_preproc=no
21865 rm -f conftest.err conftest.$ac_ext
21866 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21867 echo "${ECHO_T}$ac_header_preproc" >&6
21869 # So? What about this header?
21870 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21871 yes:no: )
21872 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: accepted by the compiler, rejected by the preprocessor!" >&5
21873 echo "$as_me: WARNING: X11/extensions/Xrender.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21874 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: proceeding with the compiler's result" >&5
21875 echo "$as_me: WARNING: X11/extensions/Xrender.h: proceeding with the compiler's result" >&2;}
21876 ac_header_preproc=yes
21878 no:yes:* )
21879 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: present but cannot be compiled" >&5
21880 echo "$as_me: WARNING: X11/extensions/Xrender.h: present but cannot be compiled" >&2;}
21881 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: check for missing prerequisite headers?" >&5
21882 echo "$as_me: WARNING: X11/extensions/Xrender.h: check for missing prerequisite headers?" >&2;}
21883 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: see the Autoconf documentation" >&5
21884 echo "$as_me: WARNING: X11/extensions/Xrender.h: see the Autoconf documentation" >&2;}
21885 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: section \"Present But Cannot Be Compiled\"" >&5
21886 echo "$as_me: WARNING: X11/extensions/Xrender.h: section \"Present But Cannot Be Compiled\"" >&2;}
21887 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: proceeding with the preprocessor's result" >&5
21888 echo "$as_me: WARNING: X11/extensions/Xrender.h: proceeding with the preprocessor's result" >&2;}
21889 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrender.h: in the future, the compiler will take precedence" >&5
21890 echo "$as_me: WARNING: X11/extensions/Xrender.h: in the future, the compiler will take precedence" >&2;}
21892 cat <<\_ASBOX
21893 ## ------------------------------------------ ##
21894 ## Report this to the AC_PACKAGE_NAME lists. ##
21895 ## ------------------------------------------ ##
21896 _ASBOX
21898 sed "s/^/$as_me: WARNING: /" >&2
21900 esac
21901 echo "$as_me:$LINENO: checking for X11/extensions/Xrender.h" >&5
21902 echo $ECHO_N "checking for X11/extensions/Xrender.h... $ECHO_C" >&6
21903 if test "${ac_cv_header_X11_extensions_Xrender_h+set}" = set; then
21904 echo $ECHO_N "(cached) $ECHO_C" >&6
21905 else
21906 ac_cv_header_X11_extensions_Xrender_h=$ac_header_preproc
21908 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrender_h" >&5
21909 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrender_h" >&6
21912 if test $ac_cv_header_X11_extensions_Xrender_h = yes; then
21914 else
21915 { { echo "$as_me:$LINENO: error: Xrender not found. install X" >&5
21916 echo "$as_me: error: Xrender not found. install X" >&2;}
21917 { (exit 1); exit 1; }; }
21921 else
21922 echo "$as_me:$LINENO: result: internal" >&5
21923 echo "${ECHO_T}internal" >&6
21924 SYSTEM_XRENDER_HEADERS=NO
21925 BUILD_TYPE="$BUILD_TYPE X11_EXTENSIONS"
21927 if test "$XRENDER_LINK" = "YES"; then
21929 echo "$as_me:$LINENO: checking for XRenderQueryVersion in -lXrender" >&5
21930 echo $ECHO_N "checking for XRenderQueryVersion in -lXrender... $ECHO_C" >&6
21931 if test "${ac_cv_lib_Xrender_XRenderQueryVersion+set}" = set; then
21932 echo $ECHO_N "(cached) $ECHO_C" >&6
21933 else
21934 ac_check_lib_save_LIBS=$LIBS
21935 LIBS="-lXrender $LIBS"
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21943 /* Override any gcc2 internal prototype to avoid an error. */
21944 #ifdef __cplusplus
21945 extern "C"
21946 #endif
21947 /* We use char because int might match the return type of a gcc2
21948 builtin and then its argument prototype would still apply. */
21949 char XRenderQueryVersion ();
21951 main ()
21953 XRenderQueryVersion ();
21955 return 0;
21957 _ACEOF
21958 rm -f conftest.$ac_objext conftest$ac_exeext
21959 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21960 (eval $ac_link) 2>conftest.er1
21961 ac_status=$?
21962 grep -v '^ *+' conftest.er1 >conftest.err
21963 rm -f conftest.er1
21964 cat conftest.err >&5
21965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21966 (exit $ac_status); } &&
21967 { ac_try='test -z "$ac_c_werror_flag"
21968 || test ! -s conftest.err'
21969 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21970 (eval $ac_try) 2>&5
21971 ac_status=$?
21972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21973 (exit $ac_status); }; } &&
21974 { ac_try='test -s conftest$ac_exeext'
21975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21976 (eval $ac_try) 2>&5
21977 ac_status=$?
21978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21979 (exit $ac_status); }; }; then
21980 ac_cv_lib_Xrender_XRenderQueryVersion=yes
21981 else
21982 echo "$as_me: failed program was:" >&5
21983 sed 's/^/| /' conftest.$ac_ext >&5
21985 ac_cv_lib_Xrender_XRenderQueryVersion=no
21987 rm -f conftest.err conftest.$ac_objext \
21988 conftest$ac_exeext conftest.$ac_ext
21989 LIBS=$ac_check_lib_save_LIBS
21991 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrender_XRenderQueryVersion" >&5
21992 echo "${ECHO_T}$ac_cv_lib_Xrender_XRenderQueryVersion" >&6
21993 if test $ac_cv_lib_Xrender_XRenderQueryVersion = yes; then
21994 cat >>confdefs.h <<_ACEOF
21995 #define HAVE_LIBXRENDER 1
21996 _ACEOF
21998 LIBS="-lXrender $LIBS"
22000 else
22001 { { echo "$as_me:$LINENO: error: libXrender not found or functional" >&5
22002 echo "$as_me: error: libXrender not found or functional" >&2;}
22003 { (exit 1); exit 1; }; }
22010 echo "$as_me:$LINENO: checking whether to enable RandR support" >&5
22011 echo $ECHO_N "checking whether to enable RandR support... $ECHO_C" >&6
22012 if test "$test_randr" = "yes" -a \( "$enable_randr" = "yes" -o "$enable_randr" = "TRUE" \) ; then
22013 if test -z "$enable_randr_link" -o "$enable_randr_link" = "no"; then
22014 XRANDR_DLOPEN="TRUE"
22015 echo "$as_me:$LINENO: result: resorting to dlopen libXrandr at runtime" >&5
22016 echo "${ECHO_T}resorting to dlopen libXrandr at runtime" >&6
22017 else
22018 XRANDR_DLOPEN="FALSE"
22020 succeeded=no
22022 if test -z "$PKG_CONFIG"; then
22023 # Extract the first word of "pkg-config", so it can be a program name with args.
22024 set dummy pkg-config; ac_word=$2
22025 echo "$as_me:$LINENO: checking for $ac_word" >&5
22026 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22027 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030 case $PKG_CONFIG in
22031 [\\/]* | ?:[\\/]*)
22032 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22036 for as_dir in $PATH
22038 IFS=$as_save_IFS
22039 test -z "$as_dir" && as_dir=.
22040 for ac_exec_ext in '' $ac_executable_extensions; do
22041 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22042 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22043 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22044 break 2
22046 done
22047 done
22049 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22051 esac
22053 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22055 if test -n "$PKG_CONFIG"; then
22056 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22057 echo "${ECHO_T}$PKG_CONFIG" >&6
22058 else
22059 echo "$as_me:$LINENO: result: no" >&5
22060 echo "${ECHO_T}no" >&6
22065 if test "$PKG_CONFIG" = "no" ; then
22066 echo "*** The pkg-config script could not be found. Make sure it is"
22067 echo "*** in your path, or set the PKG_CONFIG environment variable"
22068 echo "*** to the full path to pkg-config."
22069 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22070 else
22071 PKG_CONFIG_MIN_VERSION=0.9.0
22072 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22073 echo "$as_me:$LINENO: checking for xrandr >= 1.2" >&5
22074 echo $ECHO_N "checking for xrandr >= 1.2... $ECHO_C" >&6
22076 if $PKG_CONFIG --exists "xrandr >= 1.2" ; then
22077 echo "$as_me:$LINENO: result: yes" >&5
22078 echo "${ECHO_T}yes" >&6
22079 succeeded=yes
22081 echo "$as_me:$LINENO: checking XRANDR_CFLAGS" >&5
22082 echo $ECHO_N "checking XRANDR_CFLAGS... $ECHO_C" >&6
22083 XRANDR_CFLAGS=`$PKG_CONFIG --cflags "xrandr >= 1.2"`
22084 echo "$as_me:$LINENO: result: $XRANDR_CFLAGS" >&5
22085 echo "${ECHO_T}$XRANDR_CFLAGS" >&6
22087 echo "$as_me:$LINENO: checking XRANDR_LIBS" >&5
22088 echo $ECHO_N "checking XRANDR_LIBS... $ECHO_C" >&6
22089 XRANDR_LIBS=`$PKG_CONFIG --libs "xrandr >= 1.2"`
22090 echo "$as_me:$LINENO: result: $XRANDR_LIBS" >&5
22091 echo "${ECHO_T}$XRANDR_LIBS" >&6
22092 else
22093 XRANDR_CFLAGS=""
22094 XRANDR_LIBS=""
22095 ## If we have a custom action on failure, don't print errors, but
22096 ## do set a variable so people can do so.
22097 XRANDR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xrandr >= 1.2"`
22103 else
22104 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22105 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22109 if test $succeeded = yes; then
22110 ENABLE_RANDR="TRUE"
22111 else
22112 ENABLE_RANDR=""
22115 if test "$ENABLE_RANDR" != "TRUE"; then
22116 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
22117 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
22118 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
22119 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
22120 echo $ECHO_N "(cached) $ECHO_C" >&6
22122 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
22123 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
22124 else
22125 # Is the header compilable?
22126 echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h usability" >&5
22127 echo $ECHO_N "checking X11/extensions/Xrandr.h usability... $ECHO_C" >&6
22128 cat >conftest.$ac_ext <<_ACEOF
22129 /* confdefs.h. */
22130 _ACEOF
22131 cat confdefs.h >>conftest.$ac_ext
22132 cat >>conftest.$ac_ext <<_ACEOF
22133 /* end confdefs.h. */
22134 $ac_includes_default
22135 #include <X11/extensions/Xrandr.h>
22136 _ACEOF
22137 rm -f conftest.$ac_objext
22138 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22139 (eval $ac_compile) 2>conftest.er1
22140 ac_status=$?
22141 grep -v '^ *+' conftest.er1 >conftest.err
22142 rm -f conftest.er1
22143 cat conftest.err >&5
22144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22145 (exit $ac_status); } &&
22146 { ac_try='test -z "$ac_c_werror_flag"
22147 || test ! -s conftest.err'
22148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22149 (eval $ac_try) 2>&5
22150 ac_status=$?
22151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22152 (exit $ac_status); }; } &&
22153 { ac_try='test -s conftest.$ac_objext'
22154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22155 (eval $ac_try) 2>&5
22156 ac_status=$?
22157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22158 (exit $ac_status); }; }; then
22159 ac_header_compiler=yes
22160 else
22161 echo "$as_me: failed program was:" >&5
22162 sed 's/^/| /' conftest.$ac_ext >&5
22164 ac_header_compiler=no
22166 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22167 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22168 echo "${ECHO_T}$ac_header_compiler" >&6
22170 # Is the header present?
22171 echo "$as_me:$LINENO: checking X11/extensions/Xrandr.h presence" >&5
22172 echo $ECHO_N "checking X11/extensions/Xrandr.h presence... $ECHO_C" >&6
22173 cat >conftest.$ac_ext <<_ACEOF
22174 /* confdefs.h. */
22175 _ACEOF
22176 cat confdefs.h >>conftest.$ac_ext
22177 cat >>conftest.$ac_ext <<_ACEOF
22178 /* end confdefs.h. */
22179 #include <X11/extensions/Xrandr.h>
22180 _ACEOF
22181 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
22182 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
22183 ac_status=$?
22184 grep -v '^ *+' conftest.er1 >conftest.err
22185 rm -f conftest.er1
22186 cat conftest.err >&5
22187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22188 (exit $ac_status); } >/dev/null; then
22189 if test -s conftest.err; then
22190 ac_cpp_err=$ac_c_preproc_warn_flag
22191 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22192 else
22193 ac_cpp_err=
22195 else
22196 ac_cpp_err=yes
22198 if test -z "$ac_cpp_err"; then
22199 ac_header_preproc=yes
22200 else
22201 echo "$as_me: failed program was:" >&5
22202 sed 's/^/| /' conftest.$ac_ext >&5
22204 ac_header_preproc=no
22206 rm -f conftest.err conftest.$ac_ext
22207 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22208 echo "${ECHO_T}$ac_header_preproc" >&6
22210 # So? What about this header?
22211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22212 yes:no: )
22213 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&5
22214 echo "$as_me: WARNING: X11/extensions/Xrandr.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22215 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&5
22216 echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the compiler's result" >&2;}
22217 ac_header_preproc=yes
22219 no:yes:* )
22220 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&5
22221 echo "$as_me: WARNING: X11/extensions/Xrandr.h: present but cannot be compiled" >&2;}
22222 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: check for missing prerequisite headers?" >&5
22223 echo "$as_me: WARNING: X11/extensions/Xrandr.h: check for missing prerequisite headers?" >&2;}
22224 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&5
22225 echo "$as_me: WARNING: X11/extensions/Xrandr.h: see the Autoconf documentation" >&2;}
22226 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: section \"Present But Cannot Be Compiled\"" >&5
22227 echo "$as_me: WARNING: X11/extensions/Xrandr.h: section \"Present But Cannot Be Compiled\"" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&5
22229 echo "$as_me: WARNING: X11/extensions/Xrandr.h: proceeding with the preprocessor's result" >&2;}
22230 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&5
22231 echo "$as_me: WARNING: X11/extensions/Xrandr.h: in the future, the compiler will take precedence" >&2;}
22233 cat <<\_ASBOX
22234 ## ------------------------------------------ ##
22235 ## Report this to the AC_PACKAGE_NAME lists. ##
22236 ## ------------------------------------------ ##
22237 _ASBOX
22239 sed "s/^/$as_me: WARNING: /" >&2
22241 esac
22242 echo "$as_me:$LINENO: checking for X11/extensions/Xrandr.h" >&5
22243 echo $ECHO_N "checking for X11/extensions/Xrandr.h... $ECHO_C" >&6
22244 if test "${ac_cv_header_X11_extensions_Xrandr_h+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247 ac_cv_header_X11_extensions_Xrandr_h=$ac_header_preproc
22249 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xrandr_h" >&5
22250 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xrandr_h" >&6
22253 if test $ac_cv_header_X11_extensions_Xrandr_h = yes; then
22255 else
22256 { { echo "$as_me:$LINENO: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?" >&5
22257 echo "$as_me: error: X11/extensions/Xrandr.h could not be found. X11 dev missing?" >&2;}
22258 { (exit 1); exit 1; }; }
22262 XRANDR_CFLAGS=" "
22264 echo "$as_me:$LINENO: checking for XRRQueryExtension in -lXrandr" >&5
22265 echo $ECHO_N "checking for XRRQueryExtension in -lXrandr... $ECHO_C" >&6
22266 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then
22267 echo $ECHO_N "(cached) $ECHO_C" >&6
22268 else
22269 ac_check_lib_save_LIBS=$LIBS
22270 LIBS="-lXrandr $LIBS"
22271 cat >conftest.$ac_ext <<_ACEOF
22272 /* confdefs.h. */
22273 _ACEOF
22274 cat confdefs.h >>conftest.$ac_ext
22275 cat >>conftest.$ac_ext <<_ACEOF
22276 /* end confdefs.h. */
22278 /* Override any gcc2 internal prototype to avoid an error. */
22279 #ifdef __cplusplus
22280 extern "C"
22281 #endif
22282 /* We use char because int might match the return type of a gcc2
22283 builtin and then its argument prototype would still apply. */
22284 char XRRQueryExtension ();
22286 main ()
22288 XRRQueryExtension ();
22290 return 0;
22292 _ACEOF
22293 rm -f conftest.$ac_objext conftest$ac_exeext
22294 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22295 (eval $ac_link) 2>conftest.er1
22296 ac_status=$?
22297 grep -v '^ *+' conftest.er1 >conftest.err
22298 rm -f conftest.er1
22299 cat conftest.err >&5
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); } &&
22302 { ac_try='test -z "$ac_c_werror_flag"
22303 || test ! -s conftest.err'
22304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22305 (eval $ac_try) 2>&5
22306 ac_status=$?
22307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22308 (exit $ac_status); }; } &&
22309 { ac_try='test -s conftest$ac_exeext'
22310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22311 (eval $ac_try) 2>&5
22312 ac_status=$?
22313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22314 (exit $ac_status); }; }; then
22315 ac_cv_lib_Xrandr_XRRQueryExtension=yes
22316 else
22317 echo "$as_me: failed program was:" >&5
22318 sed 's/^/| /' conftest.$ac_ext >&5
22320 ac_cv_lib_Xrandr_XRRQueryExtension=no
22322 rm -f conftest.err conftest.$ac_objext \
22323 conftest$ac_exeext conftest.$ac_ext
22324 LIBS=$ac_check_lib_save_LIBS
22326 echo "$as_me:$LINENO: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
22327 echo "${ECHO_T}$ac_cv_lib_Xrandr_XRRQueryExtension" >&6
22328 if test $ac_cv_lib_Xrandr_XRRQueryExtension = yes; then
22329 cat >>confdefs.h <<_ACEOF
22330 #define HAVE_LIBXRANDR 1
22331 _ACEOF
22333 LIBS="-lXrandr $LIBS"
22335 else
22336 { { echo "$as_me:$LINENO: error: libXrandr not found or functional" >&5
22337 echo "$as_me: error: libXrandr not found or functional" >&2;}
22338 { (exit 1); exit 1; }; }
22341 XRANDR_LIBS="-lXrandr "
22342 ENABLE_RANDR="TRUE"
22343 echo "$as_me:$LINENO: result: enabling RandR support" >&5
22344 echo "${ECHO_T}enabling RandR support" >&6
22347 else
22348 ENABLE_RANDR=""
22349 echo "$as_me:$LINENO: result: no" >&5
22350 echo "${ECHO_T}no" >&6
22357 echo "$as_me:$LINENO: checking whether to use neon" >&5
22358 echo $ECHO_N "checking whether to use neon... $ECHO_C" >&6
22359 if test "$enable_neon" = "no"; then
22360 echo "$as_me:$LINENO: result: no" >&5
22361 echo "${ECHO_T}no" >&6
22362 DISABLE_NEON=TRUE
22364 else
22365 echo "$as_me:$LINENO: result: yes" >&5
22366 echo "${ECHO_T}yes" >&6
22367 echo "$as_me:$LINENO: checking which neon to use" >&5
22368 echo $ECHO_N "checking which neon to use... $ECHO_C" >&6
22369 if test -n "$with_system_neon" -o -n "$with_system_libs" && \
22370 test "$with_system_neon" != "no"; then
22371 echo "$as_me:$LINENO: result: external" >&5
22372 echo "${ECHO_T}external" >&6
22374 succeeded=no
22376 if test -z "$PKG_CONFIG"; then
22377 # Extract the first word of "pkg-config", so it can be a program name with args.
22378 set dummy pkg-config; ac_word=$2
22379 echo "$as_me:$LINENO: checking for $ac_word" >&5
22380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22381 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22382 echo $ECHO_N "(cached) $ECHO_C" >&6
22383 else
22384 case $PKG_CONFIG in
22385 [\\/]* | ?:[\\/]*)
22386 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22390 for as_dir in $PATH
22392 IFS=$as_save_IFS
22393 test -z "$as_dir" && as_dir=.
22394 for ac_exec_ext in '' $ac_executable_extensions; do
22395 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22396 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22397 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22398 break 2
22400 done
22401 done
22403 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22405 esac
22407 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22409 if test -n "$PKG_CONFIG"; then
22410 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22411 echo "${ECHO_T}$PKG_CONFIG" >&6
22412 else
22413 echo "$as_me:$LINENO: result: no" >&5
22414 echo "${ECHO_T}no" >&6
22419 if test "$PKG_CONFIG" = "no" ; then
22420 echo "*** The pkg-config script could not be found. Make sure it is"
22421 echo "*** in your path, or set the PKG_CONFIG environment variable"
22422 echo "*** to the full path to pkg-config."
22423 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22424 else
22425 PKG_CONFIG_MIN_VERSION=0.9.0
22426 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22427 echo "$as_me:$LINENO: checking for neon >= 0.24.0" >&5
22428 echo $ECHO_N "checking for neon >= 0.24.0... $ECHO_C" >&6
22430 if $PKG_CONFIG --exists "neon >= 0.24.0" ; then
22431 echo "$as_me:$LINENO: result: yes" >&5
22432 echo "${ECHO_T}yes" >&6
22433 succeeded=yes
22435 echo "$as_me:$LINENO: checking NEON_CFLAGS" >&5
22436 echo $ECHO_N "checking NEON_CFLAGS... $ECHO_C" >&6
22437 NEON_CFLAGS=`$PKG_CONFIG --cflags "neon >= 0.24.0"`
22438 echo "$as_me:$LINENO: result: $NEON_CFLAGS" >&5
22439 echo "${ECHO_T}$NEON_CFLAGS" >&6
22441 echo "$as_me:$LINENO: checking NEON_LIBS" >&5
22442 echo $ECHO_N "checking NEON_LIBS... $ECHO_C" >&6
22443 NEON_LIBS=`$PKG_CONFIG --libs "neon >= 0.24.0"`
22444 echo "$as_me:$LINENO: result: $NEON_LIBS" >&5
22445 echo "${ECHO_T}$NEON_LIBS" >&6
22446 else
22447 NEON_CFLAGS=""
22448 NEON_LIBS=""
22449 ## If we have a custom action on failure, don't print errors, but
22450 ## do set a variable so people can do so.
22451 NEON_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "neon >= 0.24.0"`
22457 else
22458 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22459 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22463 if test $succeeded = yes; then
22465 else
22466 { { echo "$as_me:$LINENO: error: you need neon >= 0.24.x for system-neon" >&5
22467 echo "$as_me: error: you need neon >= 0.24.x for system-neon" >&2;}
22468 { (exit 1); exit 1; }; }
22471 NEON_VERSION="`$PKG_CONFIG --modversion neon | $SED 's/\.//g'`"
22472 NEON_CFLAGS="$NEON_CFLAGS -DSYSTEM_NEON -DUSE_DAV_LOCKS=1"
22473 SYSTEM_NEON=YES
22474 else
22475 echo "$as_me:$LINENO: result: internal" >&5
22476 echo "${ECHO_T}internal" >&6
22477 SYSTEM_NEON=NO
22478 NEON_LIBS=-lneon
22479 NEON_CFLAGS=
22480 BUILD_TYPE="$BUILD_TYPE NEON"
22488 if test "$_os" = "Darwin" && test "$with_system_openssl" != "no"; then
22489 with_system_openssl=yes
22491 echo "$as_me:$LINENO: checking which libssl to use" >&5
22492 echo $ECHO_N "checking which libssl to use... $ECHO_C" >&6
22493 if test -n "$with_system_openssl" -o -n "$with_system_libs" && \
22494 test "$with_system_openssl" != "no"; then
22495 echo "$as_me:$LINENO: result: external" >&5
22496 echo "${ECHO_T}external" >&6
22497 # Mac OS builds should get out without extra stuff is the Mac porters'
22498 # wish. And pkg-config is although Xcode ships a .pc for openssl
22499 if test "$_os" = "Darwin"; then
22500 OPENSSL_CFLAGS=
22501 OPENSSL_LIBS="-lssl -lcrypto"
22502 else
22504 succeeded=no
22506 if test -z "$PKG_CONFIG"; then
22507 # Extract the first word of "pkg-config", so it can be a program name with args.
22508 set dummy pkg-config; ac_word=$2
22509 echo "$as_me:$LINENO: checking for $ac_word" >&5
22510 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22511 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22512 echo $ECHO_N "(cached) $ECHO_C" >&6
22513 else
22514 case $PKG_CONFIG in
22515 [\\/]* | ?:[\\/]*)
22516 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22520 for as_dir in $PATH
22522 IFS=$as_save_IFS
22523 test -z "$as_dir" && as_dir=.
22524 for ac_exec_ext in '' $ac_executable_extensions; do
22525 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22526 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22527 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22528 break 2
22530 done
22531 done
22533 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22535 esac
22537 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22539 if test -n "$PKG_CONFIG"; then
22540 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22541 echo "${ECHO_T}$PKG_CONFIG" >&6
22542 else
22543 echo "$as_me:$LINENO: result: no" >&5
22544 echo "${ECHO_T}no" >&6
22549 if test "$PKG_CONFIG" = "no" ; then
22550 echo "*** The pkg-config script could not be found. Make sure it is"
22551 echo "*** in your path, or set the PKG_CONFIG environment variable"
22552 echo "*** to the full path to pkg-config."
22553 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22554 else
22555 PKG_CONFIG_MIN_VERSION=0.9.0
22556 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22557 echo "$as_me:$LINENO: checking for openssl " >&5
22558 echo $ECHO_N "checking for openssl ... $ECHO_C" >&6
22560 if $PKG_CONFIG --exists "openssl " ; then
22561 echo "$as_me:$LINENO: result: yes" >&5
22562 echo "${ECHO_T}yes" >&6
22563 succeeded=yes
22565 echo "$as_me:$LINENO: checking OPENSSL_CFLAGS" >&5
22566 echo $ECHO_N "checking OPENSSL_CFLAGS... $ECHO_C" >&6
22567 OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl "`
22568 echo "$as_me:$LINENO: result: $OPENSSL_CFLAGS" >&5
22569 echo "${ECHO_T}$OPENSSL_CFLAGS" >&6
22571 echo "$as_me:$LINENO: checking OPENSSL_LIBS" >&5
22572 echo $ECHO_N "checking OPENSSL_LIBS... $ECHO_C" >&6
22573 OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl "`
22574 echo "$as_me:$LINENO: result: $OPENSSL_LIBS" >&5
22575 echo "${ECHO_T}$OPENSSL_LIBS" >&6
22576 else
22577 OPENSSL_CFLAGS=""
22578 OPENSSL_LIBS=""
22579 ## If we have a custom action on failure, don't print errors, but
22580 ## do set a variable so people can do so.
22581 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "openssl "`
22582 echo $OPENSSL_PKG_ERRORS
22587 else
22588 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22589 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22593 if test $succeeded = yes; then
22595 else
22596 { { echo "$as_me:$LINENO: error: Library requirements (openssl ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22597 echo "$as_me: error: Library requirements (openssl ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22598 { (exit 1); exit 1; }; }
22602 SYSTEM_OPENSSL=YES
22603 else
22604 echo "$as_me:$LINENO: result: internal" >&5
22605 echo "${ECHO_T}internal" >&6
22606 SYSTEM_OPENSSL=NO
22607 BUILD_TYPE="$BUILD_TYPE OPENSSL"
22613 echo "$as_me:$LINENO: checking whether to enable agg" >&5
22614 echo $ECHO_N "checking whether to enable agg... $ECHO_C" >&6
22615 if test "$with_agg" = "no"; then
22616 echo "$as_me:$LINENO: result: no" >&5
22617 echo "${ECHO_T}no" >&6
22618 else
22619 echo "$as_me:$LINENO: result: yes" >&5
22620 echo "${ECHO_T}yes" >&6
22621 ENABLE_AGG=YES
22624 echo "$as_me:$LINENO: checking which AGG to use" >&5
22625 echo $ECHO_N "checking which AGG to use... $ECHO_C" >&6
22626 if test -n "$with_system_agg" -o -n "$with_system_libs" && \
22627 test "$with_system_agg" != "no"; then
22628 echo "$as_me:$LINENO: result: external" >&5
22629 echo "${ECHO_T}external" >&6
22631 succeeded=no
22633 if test -z "$PKG_CONFIG"; then
22634 # Extract the first word of "pkg-config", so it can be a program name with args.
22635 set dummy pkg-config; ac_word=$2
22636 echo "$as_me:$LINENO: checking for $ac_word" >&5
22637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22638 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 case $PKG_CONFIG in
22642 [\\/]* | ?:[\\/]*)
22643 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22647 for as_dir in $PATH
22649 IFS=$as_save_IFS
22650 test -z "$as_dir" && as_dir=.
22651 for ac_exec_ext in '' $ac_executable_extensions; do
22652 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22653 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22654 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22655 break 2
22657 done
22658 done
22660 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22662 esac
22664 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22666 if test -n "$PKG_CONFIG"; then
22667 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22668 echo "${ECHO_T}$PKG_CONFIG" >&6
22669 else
22670 echo "$as_me:$LINENO: result: no" >&5
22671 echo "${ECHO_T}no" >&6
22676 if test "$PKG_CONFIG" = "no" ; then
22677 echo "*** The pkg-config script could not be found. Make sure it is"
22678 echo "*** in your path, or set the PKG_CONFIG environment variable"
22679 echo "*** to the full path to pkg-config."
22680 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22681 else
22682 PKG_CONFIG_MIN_VERSION=0.9.0
22683 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22684 echo "$as_me:$LINENO: checking for libagg >= 2.3" >&5
22685 echo $ECHO_N "checking for libagg >= 2.3... $ECHO_C" >&6
22687 if $PKG_CONFIG --exists "libagg >= 2.3" ; then
22688 echo "$as_me:$LINENO: result: yes" >&5
22689 echo "${ECHO_T}yes" >&6
22690 succeeded=yes
22692 echo "$as_me:$LINENO: checking AGG_CFLAGS" >&5
22693 echo $ECHO_N "checking AGG_CFLAGS... $ECHO_C" >&6
22694 AGG_CFLAGS=`$PKG_CONFIG --cflags "libagg >= 2.3"`
22695 echo "$as_me:$LINENO: result: $AGG_CFLAGS" >&5
22696 echo "${ECHO_T}$AGG_CFLAGS" >&6
22698 echo "$as_me:$LINENO: checking AGG_LIBS" >&5
22699 echo $ECHO_N "checking AGG_LIBS... $ECHO_C" >&6
22700 AGG_LIBS=`$PKG_CONFIG --libs "libagg >= 2.3"`
22701 echo "$as_me:$LINENO: result: $AGG_LIBS" >&5
22702 echo "${ECHO_T}$AGG_LIBS" >&6
22703 else
22704 AGG_CFLAGS=""
22705 AGG_LIBS=""
22706 ## If we have a custom action on failure, don't print errors, but
22707 ## do set a variable so people can do so.
22708 AGG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libagg >= 2.3"`
22709 echo $AGG_PKG_ERRORS
22714 else
22715 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22716 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22720 if test $succeeded = yes; then
22722 else
22723 { { echo "$as_me:$LINENO: error: Library requirements (libagg >= 2.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22724 echo "$as_me: error: Library requirements (libagg >= 2.3) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22725 { (exit 1); exit 1; }; }
22728 echo "$as_me:$LINENO: checking agg version" >&5
22729 echo $ECHO_N "checking agg version... $ECHO_C" >&6
22730 # workaround; if AGG_CFLAGS is empty (broken libagg.pc in 2.3), add /usr/include/agg2 anyway
22731 # (/usr/include gets stripped from pkg-config output)
22732 if test -z "$AGG_CFLAGS" || test "$AGG_CFLAGS" = " "; then
22733 AGG_INCDIR="`$PKG_CONFIG --variable includedir libagg`/agg2"
22734 else
22735 AGG_INCDIR="`echo $AGG_CFLAGS | $SED -e s/-I//`"
22737 if $PKG_CONFIG --modversion libagg | grep -q 2.3 || \
22738 $PKG_CONFIG --modversion libagg | grep -q 2.4; then
22739 # 2.4's libagg.pc.in still contains 2.3 :/
22740 if $EGREP -q "Version 2.4" `echo $AGG_INCDIR`/agg_basics.h; then
22741 echo "$as_me:$LINENO: result: 2.4" >&5
22742 echo "${ECHO_T}2.4" >&6
22743 AGG_VERSION=2400
22744 else
22745 echo "$as_me:$LINENO: result: 2.3" >&5
22746 echo "${ECHO_T}2.3" >&6
22747 AGG_VERSION=2300
22749 SYSTEM_AGG=YES
22750 else
22751 { { echo "$as_me:$LINENO: error: only agg 2.3 and 2.4 are supported" >&5
22752 echo "$as_me: error: only agg 2.3 and 2.4 are supported" >&2;}
22753 { (exit 1); exit 1; }; }
22755 else
22756 echo "$as_me:$LINENO: result: internal" >&5
22757 echo "${ECHO_T}internal" >&6
22758 SYSTEM_AGG=NO
22759 AGG_VERSION=2300
22760 BUILD_TYPE="$BUILD_TYPE AGG"
22766 echo "$as_me:$LINENO: checking which redland library to use" >&5
22767 echo $ECHO_N "checking which redland library to use... $ECHO_C" >&6
22768 if test -n "$with_system_redland" -o -n "$with_system_libs" && \
22769 test "$with_system_redland" != "no"; then
22770 echo "$as_me:$LINENO: result: external" >&5
22771 echo "${ECHO_T}external" >&6
22772 SYSTEM_REDLAND=YES
22774 succeeded=no
22776 if test -z "$PKG_CONFIG"; then
22777 # Extract the first word of "pkg-config", so it can be a program name with args.
22778 set dummy pkg-config; ac_word=$2
22779 echo "$as_me:$LINENO: checking for $ac_word" >&5
22780 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22781 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22782 echo $ECHO_N "(cached) $ECHO_C" >&6
22783 else
22784 case $PKG_CONFIG in
22785 [\\/]* | ?:[\\/]*)
22786 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22790 for as_dir in $PATH
22792 IFS=$as_save_IFS
22793 test -z "$as_dir" && as_dir=.
22794 for ac_exec_ext in '' $ac_executable_extensions; do
22795 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22796 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22797 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22798 break 2
22800 done
22801 done
22803 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22805 esac
22807 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22809 if test -n "$PKG_CONFIG"; then
22810 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22811 echo "${ECHO_T}$PKG_CONFIG" >&6
22812 else
22813 echo "$as_me:$LINENO: result: no" >&5
22814 echo "${ECHO_T}no" >&6
22819 if test "$PKG_CONFIG" = "no" ; then
22820 echo "*** The pkg-config script could not be found. Make sure it is"
22821 echo "*** in your path, or set the PKG_CONFIG environment variable"
22822 echo "*** to the full path to pkg-config."
22823 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22824 else
22825 PKG_CONFIG_MIN_VERSION=0.9.0
22826 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22827 echo "$as_me:$LINENO: checking for redland >= 1.0.8" >&5
22828 echo $ECHO_N "checking for redland >= 1.0.8... $ECHO_C" >&6
22830 if $PKG_CONFIG --exists "redland >= 1.0.8" ; then
22831 echo "$as_me:$LINENO: result: yes" >&5
22832 echo "${ECHO_T}yes" >&6
22833 succeeded=yes
22835 echo "$as_me:$LINENO: checking REDLAND_CFLAGS" >&5
22836 echo $ECHO_N "checking REDLAND_CFLAGS... $ECHO_C" >&6
22837 REDLAND_CFLAGS=`$PKG_CONFIG --cflags "redland >= 1.0.8"`
22838 echo "$as_me:$LINENO: result: $REDLAND_CFLAGS" >&5
22839 echo "${ECHO_T}$REDLAND_CFLAGS" >&6
22841 echo "$as_me:$LINENO: checking REDLAND_LIBS" >&5
22842 echo $ECHO_N "checking REDLAND_LIBS... $ECHO_C" >&6
22843 REDLAND_LIBS=`$PKG_CONFIG --libs "redland >= 1.0.8"`
22844 echo "$as_me:$LINENO: result: $REDLAND_LIBS" >&5
22845 echo "${ECHO_T}$REDLAND_LIBS" >&6
22846 else
22847 REDLAND_CFLAGS=""
22848 REDLAND_LIBS=""
22849 ## If we have a custom action on failure, don't print errors, but
22850 ## do set a variable so people can do so.
22851 REDLAND_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "redland >= 1.0.8"`
22852 echo $REDLAND_PKG_ERRORS
22857 else
22858 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22859 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22863 if test $succeeded = yes; then
22865 else
22866 { { echo "$as_me:$LINENO: error: Library requirements (redland >= 1.0.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
22867 echo "$as_me: error: Library requirements (redland >= 1.0.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
22868 { (exit 1); exit 1; }; }
22871 else
22872 echo "$as_me:$LINENO: result: internal" >&5
22873 echo "${ECHO_T}internal" >&6
22874 BUILD_TYPE="$BUILD_TYPE REDLAND"
22875 SYSTEM_REDLAND=NO
22880 echo "$as_me:$LINENO: checking which libhunspell to use" >&5
22881 echo $ECHO_N "checking which libhunspell to use... $ECHO_C" >&6
22882 if test -n "$with_system_hunspell" -o -n "$with_system_libs" && \
22883 test "$with_system_hunspell" != "no"; then
22884 echo "$as_me:$LINENO: result: external" >&5
22885 echo "${ECHO_T}external" >&6
22886 SYSTEM_HUNSPELL=YES
22887 ac_ext=cc
22888 ac_cpp='$CXXCPP $CPPFLAGS'
22889 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
22890 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
22891 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
22894 succeeded=no
22896 if test -z "$PKG_CONFIG"; then
22897 # Extract the first word of "pkg-config", so it can be a program name with args.
22898 set dummy pkg-config; ac_word=$2
22899 echo "$as_me:$LINENO: checking for $ac_word" >&5
22900 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
22901 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
22902 echo $ECHO_N "(cached) $ECHO_C" >&6
22903 else
22904 case $PKG_CONFIG in
22905 [\\/]* | ?:[\\/]*)
22906 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22910 for as_dir in $PATH
22912 IFS=$as_save_IFS
22913 test -z "$as_dir" && as_dir=.
22914 for ac_exec_ext in '' $ac_executable_extensions; do
22915 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
22916 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22917 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
22918 break 2
22920 done
22921 done
22923 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22925 esac
22927 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22929 if test -n "$PKG_CONFIG"; then
22930 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
22931 echo "${ECHO_T}$PKG_CONFIG" >&6
22932 else
22933 echo "$as_me:$LINENO: result: no" >&5
22934 echo "${ECHO_T}no" >&6
22939 if test "$PKG_CONFIG" = "no" ; then
22940 echo "*** The pkg-config script could not be found. Make sure it is"
22941 echo "*** in your path, or set the PKG_CONFIG environment variable"
22942 echo "*** to the full path to pkg-config."
22943 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22944 else
22945 PKG_CONFIG_MIN_VERSION=0.9.0
22946 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22947 echo "$as_me:$LINENO: checking for hunspell" >&5
22948 echo $ECHO_N "checking for hunspell... $ECHO_C" >&6
22950 if $PKG_CONFIG --exists "hunspell" ; then
22951 echo "$as_me:$LINENO: result: yes" >&5
22952 echo "${ECHO_T}yes" >&6
22953 succeeded=yes
22955 echo "$as_me:$LINENO: checking HUNSPELL_CFLAGS" >&5
22956 echo $ECHO_N "checking HUNSPELL_CFLAGS... $ECHO_C" >&6
22957 HUNSPELL_CFLAGS=`$PKG_CONFIG --cflags "hunspell"`
22958 echo "$as_me:$LINENO: result: $HUNSPELL_CFLAGS" >&5
22959 echo "${ECHO_T}$HUNSPELL_CFLAGS" >&6
22961 echo "$as_me:$LINENO: checking HUNSPELL_LIBS" >&5
22962 echo $ECHO_N "checking HUNSPELL_LIBS... $ECHO_C" >&6
22963 HUNSPELL_LIBS=`$PKG_CONFIG --libs "hunspell"`
22964 echo "$as_me:$LINENO: result: $HUNSPELL_LIBS" >&5
22965 echo "${ECHO_T}$HUNSPELL_LIBS" >&6
22966 else
22967 HUNSPELL_CFLAGS=""
22968 HUNSPELL_LIBS=""
22969 ## If we have a custom action on failure, don't print errors, but
22970 ## do set a variable so people can do so.
22971 HUNSPELL_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "hunspell"`
22977 else
22978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
22983 if test $succeeded = yes; then
22984 HUNSPELL_PC="TRUE"
22985 else
22986 HUNSPELL_PC=""
22989 if test "$HUNSPELL_PC" != "TRUE"; then
22990 if test "${ac_cv_header_hunspell_hxx+set}" = set; then
22991 echo "$as_me:$LINENO: checking for hunspell.hxx" >&5
22992 echo $ECHO_N "checking for hunspell.hxx... $ECHO_C" >&6
22993 if test "${ac_cv_header_hunspell_hxx+set}" = set; then
22994 echo $ECHO_N "(cached) $ECHO_C" >&6
22996 echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hxx" >&5
22997 echo "${ECHO_T}$ac_cv_header_hunspell_hxx" >&6
22998 else
22999 # Is the header compilable?
23000 echo "$as_me:$LINENO: checking hunspell.hxx usability" >&5
23001 echo $ECHO_N "checking hunspell.hxx usability... $ECHO_C" >&6
23002 cat >conftest.$ac_ext <<_ACEOF
23003 /* confdefs.h. */
23004 _ACEOF
23005 cat confdefs.h >>conftest.$ac_ext
23006 cat >>conftest.$ac_ext <<_ACEOF
23007 /* end confdefs.h. */
23008 $ac_includes_default
23009 #include <hunspell.hxx>
23010 _ACEOF
23011 rm -f conftest.$ac_objext
23012 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23013 (eval $ac_compile) 2>conftest.er1
23014 ac_status=$?
23015 grep -v '^ *+' conftest.er1 >conftest.err
23016 rm -f conftest.er1
23017 cat conftest.err >&5
23018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23019 (exit $ac_status); } &&
23020 { ac_try='test -z "$ac_cxx_werror_flag"
23021 || test ! -s conftest.err'
23022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23023 (eval $ac_try) 2>&5
23024 ac_status=$?
23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23026 (exit $ac_status); }; } &&
23027 { ac_try='test -s conftest.$ac_objext'
23028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23029 (eval $ac_try) 2>&5
23030 ac_status=$?
23031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23032 (exit $ac_status); }; }; then
23033 ac_header_compiler=yes
23034 else
23035 echo "$as_me: failed program was:" >&5
23036 sed 's/^/| /' conftest.$ac_ext >&5
23038 ac_header_compiler=no
23040 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23041 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23042 echo "${ECHO_T}$ac_header_compiler" >&6
23044 # Is the header present?
23045 echo "$as_me:$LINENO: checking hunspell.hxx presence" >&5
23046 echo $ECHO_N "checking hunspell.hxx presence... $ECHO_C" >&6
23047 cat >conftest.$ac_ext <<_ACEOF
23048 /* confdefs.h. */
23049 _ACEOF
23050 cat confdefs.h >>conftest.$ac_ext
23051 cat >>conftest.$ac_ext <<_ACEOF
23052 /* end confdefs.h. */
23053 #include <hunspell.hxx>
23054 _ACEOF
23055 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23056 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23057 ac_status=$?
23058 grep -v '^ *+' conftest.er1 >conftest.err
23059 rm -f conftest.er1
23060 cat conftest.err >&5
23061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23062 (exit $ac_status); } >/dev/null; then
23063 if test -s conftest.err; then
23064 ac_cpp_err=$ac_cxx_preproc_warn_flag
23065 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23066 else
23067 ac_cpp_err=
23069 else
23070 ac_cpp_err=yes
23072 if test -z "$ac_cpp_err"; then
23073 ac_header_preproc=yes
23074 else
23075 echo "$as_me: failed program was:" >&5
23076 sed 's/^/| /' conftest.$ac_ext >&5
23078 ac_header_preproc=no
23080 rm -f conftest.err conftest.$ac_ext
23081 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23082 echo "${ECHO_T}$ac_header_preproc" >&6
23084 # So? What about this header?
23085 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23086 yes:no: )
23087 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
23088 echo "$as_me: WARNING: hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
23089 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: proceeding with the compiler's result" >&5
23090 echo "$as_me: WARNING: hunspell.hxx: proceeding with the compiler's result" >&2;}
23091 ac_header_preproc=yes
23093 no:yes:* )
23094 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: present but cannot be compiled" >&5
23095 echo "$as_me: WARNING: hunspell.hxx: present but cannot be compiled" >&2;}
23096 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: check for missing prerequisite headers?" >&5
23097 echo "$as_me: WARNING: hunspell.hxx: check for missing prerequisite headers?" >&2;}
23098 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: see the Autoconf documentation" >&5
23099 echo "$as_me: WARNING: hunspell.hxx: see the Autoconf documentation" >&2;}
23100 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: section \"Present But Cannot Be Compiled\"" >&5
23101 echo "$as_me: WARNING: hunspell.hxx: section \"Present But Cannot Be Compiled\"" >&2;}
23102 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: proceeding with the preprocessor's result" >&5
23103 echo "$as_me: WARNING: hunspell.hxx: proceeding with the preprocessor's result" >&2;}
23104 { echo "$as_me:$LINENO: WARNING: hunspell.hxx: in the future, the compiler will take precedence" >&5
23105 echo "$as_me: WARNING: hunspell.hxx: in the future, the compiler will take precedence" >&2;}
23107 cat <<\_ASBOX
23108 ## ------------------------------------------ ##
23109 ## Report this to the AC_PACKAGE_NAME lists. ##
23110 ## ------------------------------------------ ##
23111 _ASBOX
23113 sed "s/^/$as_me: WARNING: /" >&2
23115 esac
23116 echo "$as_me:$LINENO: checking for hunspell.hxx" >&5
23117 echo $ECHO_N "checking for hunspell.hxx... $ECHO_C" >&6
23118 if test "${ac_cv_header_hunspell_hxx+set}" = set; then
23119 echo $ECHO_N "(cached) $ECHO_C" >&6
23120 else
23121 ac_cv_header_hunspell_hxx=$ac_header_preproc
23123 echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hxx" >&5
23124 echo "${ECHO_T}$ac_cv_header_hunspell_hxx" >&6
23127 if test $ac_cv_header_hunspell_hxx = yes; then
23129 else
23131 if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
23132 echo "$as_me:$LINENO: checking for hunspell/hunspell.hxx" >&5
23133 echo $ECHO_N "checking for hunspell/hunspell.hxx... $ECHO_C" >&6
23134 if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23137 echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hunspell_hxx" >&5
23138 echo "${ECHO_T}$ac_cv_header_hunspell_hunspell_hxx" >&6
23139 else
23140 # Is the header compilable?
23141 echo "$as_me:$LINENO: checking hunspell/hunspell.hxx usability" >&5
23142 echo $ECHO_N "checking hunspell/hunspell.hxx usability... $ECHO_C" >&6
23143 cat >conftest.$ac_ext <<_ACEOF
23144 /* confdefs.h. */
23145 _ACEOF
23146 cat confdefs.h >>conftest.$ac_ext
23147 cat >>conftest.$ac_ext <<_ACEOF
23148 /* end confdefs.h. */
23149 $ac_includes_default
23150 #include <hunspell/hunspell.hxx>
23151 _ACEOF
23152 rm -f conftest.$ac_objext
23153 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23154 (eval $ac_compile) 2>conftest.er1
23155 ac_status=$?
23156 grep -v '^ *+' conftest.er1 >conftest.err
23157 rm -f conftest.er1
23158 cat conftest.err >&5
23159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23160 (exit $ac_status); } &&
23161 { ac_try='test -z "$ac_cxx_werror_flag"
23162 || test ! -s conftest.err'
23163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23164 (eval $ac_try) 2>&5
23165 ac_status=$?
23166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23167 (exit $ac_status); }; } &&
23168 { ac_try='test -s conftest.$ac_objext'
23169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23170 (eval $ac_try) 2>&5
23171 ac_status=$?
23172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23173 (exit $ac_status); }; }; then
23174 ac_header_compiler=yes
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23179 ac_header_compiler=no
23181 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23182 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23183 echo "${ECHO_T}$ac_header_compiler" >&6
23185 # Is the header present?
23186 echo "$as_me:$LINENO: checking hunspell/hunspell.hxx presence" >&5
23187 echo $ECHO_N "checking hunspell/hunspell.hxx presence... $ECHO_C" >&6
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 #include <hunspell/hunspell.hxx>
23195 _ACEOF
23196 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23197 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23198 ac_status=$?
23199 grep -v '^ *+' conftest.er1 >conftest.err
23200 rm -f conftest.er1
23201 cat conftest.err >&5
23202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23203 (exit $ac_status); } >/dev/null; then
23204 if test -s conftest.err; then
23205 ac_cpp_err=$ac_cxx_preproc_warn_flag
23206 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
23207 else
23208 ac_cpp_err=
23210 else
23211 ac_cpp_err=yes
23213 if test -z "$ac_cpp_err"; then
23214 ac_header_preproc=yes
23215 else
23216 echo "$as_me: failed program was:" >&5
23217 sed 's/^/| /' conftest.$ac_ext >&5
23219 ac_header_preproc=no
23221 rm -f conftest.err conftest.$ac_ext
23222 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23223 echo "${ECHO_T}$ac_header_preproc" >&6
23225 # So? What about this header?
23226 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
23227 yes:no: )
23228 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
23229 echo "$as_me: WARNING: hunspell/hunspell.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
23230 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: proceeding with the compiler's result" >&5
23231 echo "$as_me: WARNING: hunspell/hunspell.hxx: proceeding with the compiler's result" >&2;}
23232 ac_header_preproc=yes
23234 no:yes:* )
23235 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: present but cannot be compiled" >&5
23236 echo "$as_me: WARNING: hunspell/hunspell.hxx: present but cannot be compiled" >&2;}
23237 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: check for missing prerequisite headers?" >&5
23238 echo "$as_me: WARNING: hunspell/hunspell.hxx: check for missing prerequisite headers?" >&2;}
23239 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: see the Autoconf documentation" >&5
23240 echo "$as_me: WARNING: hunspell/hunspell.hxx: see the Autoconf documentation" >&2;}
23241 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: section \"Present But Cannot Be Compiled\"" >&5
23242 echo "$as_me: WARNING: hunspell/hunspell.hxx: section \"Present But Cannot Be Compiled\"" >&2;}
23243 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: proceeding with the preprocessor's result" >&5
23244 echo "$as_me: WARNING: hunspell/hunspell.hxx: proceeding with the preprocessor's result" >&2;}
23245 { echo "$as_me:$LINENO: WARNING: hunspell/hunspell.hxx: in the future, the compiler will take precedence" >&5
23246 echo "$as_me: WARNING: hunspell/hunspell.hxx: in the future, the compiler will take precedence" >&2;}
23248 cat <<\_ASBOX
23249 ## ------------------------------------------ ##
23250 ## Report this to the AC_PACKAGE_NAME lists. ##
23251 ## ------------------------------------------ ##
23252 _ASBOX
23254 sed "s/^/$as_me: WARNING: /" >&2
23256 esac
23257 echo "$as_me:$LINENO: checking for hunspell/hunspell.hxx" >&5
23258 echo $ECHO_N "checking for hunspell/hunspell.hxx... $ECHO_C" >&6
23259 if test "${ac_cv_header_hunspell_hunspell_hxx+set}" = set; then
23260 echo $ECHO_N "(cached) $ECHO_C" >&6
23261 else
23262 ac_cv_header_hunspell_hunspell_hxx=$ac_header_preproc
23264 echo "$as_me:$LINENO: result: $ac_cv_header_hunspell_hunspell_hxx" >&5
23265 echo "${ECHO_T}$ac_cv_header_hunspell_hunspell_hxx" >&6
23268 if test $ac_cv_header_hunspell_hunspell_hxx = yes; then
23269 HUNSPELL_CFLAGS=-I/usr/include/hunspell
23270 else
23271 { { echo "$as_me:$LINENO: error: hunspell headers not found." >&5
23272 echo "$as_me: error: hunspell headers not found." >&2;}
23273 { (exit 1); exit 1; }; }
23282 echo "$as_me:$LINENO: checking for main in -lhunspell" >&5
23283 echo $ECHO_N "checking for main in -lhunspell... $ECHO_C" >&6
23284 if test "${ac_cv_lib_hunspell_main+set}" = set; then
23285 echo $ECHO_N "(cached) $ECHO_C" >&6
23286 else
23287 ac_check_lib_save_LIBS=$LIBS
23288 LIBS="-lhunspell $LIBS"
23289 cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h. */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23298 main ()
23300 main ();
23302 return 0;
23304 _ACEOF
23305 rm -f conftest.$ac_objext conftest$ac_exeext
23306 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23307 (eval $ac_link) 2>conftest.er1
23308 ac_status=$?
23309 grep -v '^ *+' conftest.er1 >conftest.err
23310 rm -f conftest.er1
23311 cat conftest.err >&5
23312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23313 (exit $ac_status); } &&
23314 { ac_try='test -z "$ac_cxx_werror_flag"
23315 || test ! -s conftest.err'
23316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23317 (eval $ac_try) 2>&5
23318 ac_status=$?
23319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23320 (exit $ac_status); }; } &&
23321 { ac_try='test -s conftest$ac_exeext'
23322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23323 (eval $ac_try) 2>&5
23324 ac_status=$?
23325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23326 (exit $ac_status); }; }; then
23327 ac_cv_lib_hunspell_main=yes
23328 else
23329 echo "$as_me: failed program was:" >&5
23330 sed 's/^/| /' conftest.$ac_ext >&5
23332 ac_cv_lib_hunspell_main=no
23334 rm -f conftest.err conftest.$ac_objext \
23335 conftest$ac_exeext conftest.$ac_ext
23336 LIBS=$ac_check_lib_save_LIBS
23338 echo "$as_me:$LINENO: result: $ac_cv_lib_hunspell_main" >&5
23339 echo "${ECHO_T}$ac_cv_lib_hunspell_main" >&6
23340 if test $ac_cv_lib_hunspell_main = yes; then
23341 cat >>confdefs.h <<_ACEOF
23342 #define HAVE_LIBHUNSPELL 1
23343 _ACEOF
23345 LIBS="-lhunspell $LIBS"
23347 else
23348 { { echo "$as_me:$LINENO: error: hunspell library not found." >&5
23349 echo "$as_me: error: hunspell library not found." >&2;}
23350 { (exit 1); exit 1; }; }
23353 HUNSPELL_LIBS=-lhunspell
23355 ac_ext=c
23356 ac_cpp='$CPP $CPPFLAGS'
23357 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23358 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23359 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23361 else
23362 echo "$as_me:$LINENO: result: internal" >&5
23363 echo "${ECHO_T}internal" >&6
23364 SYSTEM_HUNSPELL=NO
23365 BUILD_TYPE="$BUILD_TYPE HUNSPELL"
23371 echo "$as_me:$LINENO: checking which altlinuxhyph to use" >&5
23372 echo $ECHO_N "checking which altlinuxhyph to use... $ECHO_C" >&6
23373 if test -n "$with_system_altlinuxhyph" -o -n "$with_system_libs" && \
23374 test "$with_system_altlinuxhyph" != "no"; then
23375 echo "$as_me:$LINENO: result: external" >&5
23376 echo "${ECHO_T}external" >&6
23377 SYSTEM_HYPH=YES
23378 if test "${ac_cv_header_hyphen_h+set}" = set; then
23379 echo "$as_me:$LINENO: checking for hyphen.h" >&5
23380 echo $ECHO_N "checking for hyphen.h... $ECHO_C" >&6
23381 if test "${ac_cv_header_hyphen_h+set}" = set; then
23382 echo $ECHO_N "(cached) $ECHO_C" >&6
23384 echo "$as_me:$LINENO: result: $ac_cv_header_hyphen_h" >&5
23385 echo "${ECHO_T}$ac_cv_header_hyphen_h" >&6
23386 else
23387 # Is the header compilable?
23388 echo "$as_me:$LINENO: checking hyphen.h usability" >&5
23389 echo $ECHO_N "checking hyphen.h usability... $ECHO_C" >&6
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h. */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 $ac_includes_default
23397 #include <hyphen.h>
23398 _ACEOF
23399 rm -f conftest.$ac_objext
23400 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23401 (eval $ac_compile) 2>conftest.er1
23402 ac_status=$?
23403 grep -v '^ *+' conftest.er1 >conftest.err
23404 rm -f conftest.er1
23405 cat conftest.err >&5
23406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23407 (exit $ac_status); } &&
23408 { ac_try='test -z "$ac_c_werror_flag"
23409 || test ! -s conftest.err'
23410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23411 (eval $ac_try) 2>&5
23412 ac_status=$?
23413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23414 (exit $ac_status); }; } &&
23415 { ac_try='test -s conftest.$ac_objext'
23416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23417 (eval $ac_try) 2>&5
23418 ac_status=$?
23419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23420 (exit $ac_status); }; }; then
23421 ac_header_compiler=yes
23422 else
23423 echo "$as_me: failed program was:" >&5
23424 sed 's/^/| /' conftest.$ac_ext >&5
23426 ac_header_compiler=no
23428 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23429 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23430 echo "${ECHO_T}$ac_header_compiler" >&6
23432 # Is the header present?
23433 echo "$as_me:$LINENO: checking hyphen.h presence" >&5
23434 echo $ECHO_N "checking hyphen.h presence... $ECHO_C" >&6
23435 cat >conftest.$ac_ext <<_ACEOF
23436 /* confdefs.h. */
23437 _ACEOF
23438 cat confdefs.h >>conftest.$ac_ext
23439 cat >>conftest.$ac_ext <<_ACEOF
23440 /* end confdefs.h. */
23441 #include <hyphen.h>
23442 _ACEOF
23443 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23444 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23445 ac_status=$?
23446 grep -v '^ *+' conftest.er1 >conftest.err
23447 rm -f conftest.er1
23448 cat conftest.err >&5
23449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23450 (exit $ac_status); } >/dev/null; then
23451 if test -s conftest.err; then
23452 ac_cpp_err=$ac_c_preproc_warn_flag
23453 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23454 else
23455 ac_cpp_err=
23457 else
23458 ac_cpp_err=yes
23460 if test -z "$ac_cpp_err"; then
23461 ac_header_preproc=yes
23462 else
23463 echo "$as_me: failed program was:" >&5
23464 sed 's/^/| /' conftest.$ac_ext >&5
23466 ac_header_preproc=no
23468 rm -f conftest.err conftest.$ac_ext
23469 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23470 echo "${ECHO_T}$ac_header_preproc" >&6
23472 # So? What about this header?
23473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23474 yes:no: )
23475 { echo "$as_me:$LINENO: WARNING: hyphen.h: accepted by the compiler, rejected by the preprocessor!" >&5
23476 echo "$as_me: WARNING: hyphen.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
23477 { echo "$as_me:$LINENO: WARNING: hyphen.h: proceeding with the compiler's result" >&5
23478 echo "$as_me: WARNING: hyphen.h: proceeding with the compiler's result" >&2;}
23479 ac_header_preproc=yes
23481 no:yes:* )
23482 { echo "$as_me:$LINENO: WARNING: hyphen.h: present but cannot be compiled" >&5
23483 echo "$as_me: WARNING: hyphen.h: present but cannot be compiled" >&2;}
23484 { echo "$as_me:$LINENO: WARNING: hyphen.h: check for missing prerequisite headers?" >&5
23485 echo "$as_me: WARNING: hyphen.h: check for missing prerequisite headers?" >&2;}
23486 { echo "$as_me:$LINENO: WARNING: hyphen.h: see the Autoconf documentation" >&5
23487 echo "$as_me: WARNING: hyphen.h: see the Autoconf documentation" >&2;}
23488 { echo "$as_me:$LINENO: WARNING: hyphen.h: section \"Present But Cannot Be Compiled\"" >&5
23489 echo "$as_me: WARNING: hyphen.h: section \"Present But Cannot Be Compiled\"" >&2;}
23490 { echo "$as_me:$LINENO: WARNING: hyphen.h: proceeding with the preprocessor's result" >&5
23491 echo "$as_me: WARNING: hyphen.h: proceeding with the preprocessor's result" >&2;}
23492 { echo "$as_me:$LINENO: WARNING: hyphen.h: in the future, the compiler will take precedence" >&5
23493 echo "$as_me: WARNING: hyphen.h: in the future, the compiler will take precedence" >&2;}
23495 cat <<\_ASBOX
23496 ## ------------------------------------------ ##
23497 ## Report this to the AC_PACKAGE_NAME lists. ##
23498 ## ------------------------------------------ ##
23499 _ASBOX
23501 sed "s/^/$as_me: WARNING: /" >&2
23503 esac
23504 echo "$as_me:$LINENO: checking for hyphen.h" >&5
23505 echo $ECHO_N "checking for hyphen.h... $ECHO_C" >&6
23506 if test "${ac_cv_header_hyphen_h+set}" = set; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 else
23509 ac_cv_header_hyphen_h=$ac_header_preproc
23511 echo "$as_me:$LINENO: result: $ac_cv_header_hyphen_h" >&5
23512 echo "${ECHO_T}$ac_cv_header_hyphen_h" >&6
23515 if test $ac_cv_header_hyphen_h = yes; then
23517 else
23518 { { echo "$as_me:$LINENO: error: altlinuxhyph headers not found." >&5
23519 echo "$as_me: error: altlinuxhyph headers not found." >&2;}
23520 { (exit 1); exit 1; }; }
23524 echo "$as_me:$LINENO: checking for struct _HyphenDict.cset" >&5
23525 echo $ECHO_N "checking for struct _HyphenDict.cset... $ECHO_C" >&6
23526 if test "${ac_cv_member_struct__HyphenDict_cset+set}" = set; then
23527 echo $ECHO_N "(cached) $ECHO_C" >&6
23528 else
23529 cat >conftest.$ac_ext <<_ACEOF
23530 /* confdefs.h. */
23531 _ACEOF
23532 cat confdefs.h >>conftest.$ac_ext
23533 cat >>conftest.$ac_ext <<_ACEOF
23534 /* end confdefs.h. */
23535 #include <hyphen.h>
23538 main ()
23540 static struct _HyphenDict ac_aggr;
23541 if (ac_aggr.cset)
23542 return 0;
23544 return 0;
23546 _ACEOF
23547 rm -f conftest.$ac_objext
23548 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23549 (eval $ac_compile) 2>conftest.er1
23550 ac_status=$?
23551 grep -v '^ *+' conftest.er1 >conftest.err
23552 rm -f conftest.er1
23553 cat conftest.err >&5
23554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23555 (exit $ac_status); } &&
23556 { ac_try='test -z "$ac_c_werror_flag"
23557 || test ! -s conftest.err'
23558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23559 (eval $ac_try) 2>&5
23560 ac_status=$?
23561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23562 (exit $ac_status); }; } &&
23563 { ac_try='test -s conftest.$ac_objext'
23564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23565 (eval $ac_try) 2>&5
23566 ac_status=$?
23567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23568 (exit $ac_status); }; }; then
23569 ac_cv_member_struct__HyphenDict_cset=yes
23570 else
23571 echo "$as_me: failed program was:" >&5
23572 sed 's/^/| /' conftest.$ac_ext >&5
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <hyphen.h>
23583 main ()
23585 static struct _HyphenDict ac_aggr;
23586 if (sizeof ac_aggr.cset)
23587 return 0;
23589 return 0;
23591 _ACEOF
23592 rm -f conftest.$ac_objext
23593 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23594 (eval $ac_compile) 2>conftest.er1
23595 ac_status=$?
23596 grep -v '^ *+' conftest.er1 >conftest.err
23597 rm -f conftest.er1
23598 cat conftest.err >&5
23599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23600 (exit $ac_status); } &&
23601 { ac_try='test -z "$ac_c_werror_flag"
23602 || test ! -s conftest.err'
23603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23604 (eval $ac_try) 2>&5
23605 ac_status=$?
23606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23607 (exit $ac_status); }; } &&
23608 { ac_try='test -s conftest.$ac_objext'
23609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23610 (eval $ac_try) 2>&5
23611 ac_status=$?
23612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23613 (exit $ac_status); }; }; then
23614 ac_cv_member_struct__HyphenDict_cset=yes
23615 else
23616 echo "$as_me: failed program was:" >&5
23617 sed 's/^/| /' conftest.$ac_ext >&5
23619 ac_cv_member_struct__HyphenDict_cset=no
23621 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23623 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23625 echo "$as_me:$LINENO: result: $ac_cv_member_struct__HyphenDict_cset" >&5
23626 echo "${ECHO_T}$ac_cv_member_struct__HyphenDict_cset" >&6
23627 if test $ac_cv_member_struct__HyphenDict_cset = yes; then
23629 else
23630 { { echo "$as_me:$LINENO: error: no. You are sure you have altlinuyhyph headers?" >&5
23631 echo "$as_me: error: no. You are sure you have altlinuyhyph headers?" >&2;}
23632 { (exit 1); exit 1; }; }
23635 echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhyphen" >&5
23636 echo $ECHO_N "checking for hnj_hyphen_hyphenate2 in -lhyphen... $ECHO_C" >&6
23637 if test "${ac_cv_lib_hyphen_hnj_hyphen_hyphenate2+set}" = set; then
23638 echo $ECHO_N "(cached) $ECHO_C" >&6
23639 else
23640 ac_check_lib_save_LIBS=$LIBS
23641 LIBS="-lhyphen $LIBS"
23642 cat >conftest.$ac_ext <<_ACEOF
23643 /* confdefs.h. */
23644 _ACEOF
23645 cat confdefs.h >>conftest.$ac_ext
23646 cat >>conftest.$ac_ext <<_ACEOF
23647 /* end confdefs.h. */
23649 /* Override any gcc2 internal prototype to avoid an error. */
23650 #ifdef __cplusplus
23651 extern "C"
23652 #endif
23653 /* We use char because int might match the return type of a gcc2
23654 builtin and then its argument prototype would still apply. */
23655 char hnj_hyphen_hyphenate2 ();
23657 main ()
23659 hnj_hyphen_hyphenate2 ();
23661 return 0;
23663 _ACEOF
23664 rm -f conftest.$ac_objext conftest$ac_exeext
23665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23666 (eval $ac_link) 2>conftest.er1
23667 ac_status=$?
23668 grep -v '^ *+' conftest.er1 >conftest.err
23669 rm -f conftest.er1
23670 cat conftest.err >&5
23671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23672 (exit $ac_status); } &&
23673 { ac_try='test -z "$ac_c_werror_flag"
23674 || test ! -s conftest.err'
23675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23676 (eval $ac_try) 2>&5
23677 ac_status=$?
23678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23679 (exit $ac_status); }; } &&
23680 { ac_try='test -s conftest$ac_exeext'
23681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23682 (eval $ac_try) 2>&5
23683 ac_status=$?
23684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23685 (exit $ac_status); }; }; then
23686 ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=yes
23687 else
23688 echo "$as_me: failed program was:" >&5
23689 sed 's/^/| /' conftest.$ac_ext >&5
23691 ac_cv_lib_hyphen_hnj_hyphen_hyphenate2=no
23693 rm -f conftest.err conftest.$ac_objext \
23694 conftest$ac_exeext conftest.$ac_ext
23695 LIBS=$ac_check_lib_save_LIBS
23697 echo "$as_me:$LINENO: result: $ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&5
23698 echo "${ECHO_T}$ac_cv_lib_hyphen_hnj_hyphen_hyphenate2" >&6
23699 if test $ac_cv_lib_hyphen_hnj_hyphen_hyphenate2 = yes; then
23700 HYPHEN_LIB=-lhyphen
23701 else
23702 { { echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
23703 echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
23704 { (exit 1); exit 1; }; }
23707 if test -z "$HYPHEN_LIB"; then
23708 echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhyph" >&5
23709 echo $ECHO_N "checking for hnj_hyphen_hyphenate2 in -lhyph... $ECHO_C" >&6
23710 if test "${ac_cv_lib_hyph_hnj_hyphen_hyphenate2+set}" = set; then
23711 echo $ECHO_N "(cached) $ECHO_C" >&6
23712 else
23713 ac_check_lib_save_LIBS=$LIBS
23714 LIBS="-lhyph $LIBS"
23715 cat >conftest.$ac_ext <<_ACEOF
23716 /* confdefs.h. */
23717 _ACEOF
23718 cat confdefs.h >>conftest.$ac_ext
23719 cat >>conftest.$ac_ext <<_ACEOF
23720 /* end confdefs.h. */
23722 /* Override any gcc2 internal prototype to avoid an error. */
23723 #ifdef __cplusplus
23724 extern "C"
23725 #endif
23726 /* We use char because int might match the return type of a gcc2
23727 builtin and then its argument prototype would still apply. */
23728 char hnj_hyphen_hyphenate2 ();
23730 main ()
23732 hnj_hyphen_hyphenate2 ();
23734 return 0;
23736 _ACEOF
23737 rm -f conftest.$ac_objext conftest$ac_exeext
23738 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23739 (eval $ac_link) 2>conftest.er1
23740 ac_status=$?
23741 grep -v '^ *+' conftest.er1 >conftest.err
23742 rm -f conftest.er1
23743 cat conftest.err >&5
23744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23745 (exit $ac_status); } &&
23746 { ac_try='test -z "$ac_c_werror_flag"
23747 || test ! -s conftest.err'
23748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23749 (eval $ac_try) 2>&5
23750 ac_status=$?
23751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23752 (exit $ac_status); }; } &&
23753 { ac_try='test -s conftest$ac_exeext'
23754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23755 (eval $ac_try) 2>&5
23756 ac_status=$?
23757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23758 (exit $ac_status); }; }; then
23759 ac_cv_lib_hyph_hnj_hyphen_hyphenate2=yes
23760 else
23761 echo "$as_me: failed program was:" >&5
23762 sed 's/^/| /' conftest.$ac_ext >&5
23764 ac_cv_lib_hyph_hnj_hyphen_hyphenate2=no
23766 rm -f conftest.err conftest.$ac_objext \
23767 conftest$ac_exeext conftest.$ac_ext
23768 LIBS=$ac_check_lib_save_LIBS
23770 echo "$as_me:$LINENO: result: $ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&5
23771 echo "${ECHO_T}$ac_cv_lib_hyph_hnj_hyphen_hyphenate2" >&6
23772 if test $ac_cv_lib_hyph_hnj_hyphen_hyphenate2 = yes; then
23773 HYPHEN_LIB=-lhyph
23774 else
23775 { { echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
23776 echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
23777 { (exit 1); exit 1; }; }
23781 if test -z "$HYPHEN_LIB"; then
23782 echo "$as_me:$LINENO: checking for hnj_hyphen_hyphenate2 in -lhnj" >&5
23783 echo $ECHO_N "checking for hnj_hyphen_hyphenate2 in -lhnj... $ECHO_C" >&6
23784 if test "${ac_cv_lib_hnj_hnj_hyphen_hyphenate2+set}" = set; then
23785 echo $ECHO_N "(cached) $ECHO_C" >&6
23786 else
23787 ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lhnj $LIBS"
23789 cat >conftest.$ac_ext <<_ACEOF
23790 /* confdefs.h. */
23791 _ACEOF
23792 cat confdefs.h >>conftest.$ac_ext
23793 cat >>conftest.$ac_ext <<_ACEOF
23794 /* end confdefs.h. */
23796 /* Override any gcc2 internal prototype to avoid an error. */
23797 #ifdef __cplusplus
23798 extern "C"
23799 #endif
23800 /* We use char because int might match the return type of a gcc2
23801 builtin and then its argument prototype would still apply. */
23802 char hnj_hyphen_hyphenate2 ();
23804 main ()
23806 hnj_hyphen_hyphenate2 ();
23808 return 0;
23810 _ACEOF
23811 rm -f conftest.$ac_objext conftest$ac_exeext
23812 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23813 (eval $ac_link) 2>conftest.er1
23814 ac_status=$?
23815 grep -v '^ *+' conftest.er1 >conftest.err
23816 rm -f conftest.er1
23817 cat conftest.err >&5
23818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23819 (exit $ac_status); } &&
23820 { ac_try='test -z "$ac_c_werror_flag"
23821 || test ! -s conftest.err'
23822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23823 (eval $ac_try) 2>&5
23824 ac_status=$?
23825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23826 (exit $ac_status); }; } &&
23827 { ac_try='test -s conftest$ac_exeext'
23828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23829 (eval $ac_try) 2>&5
23830 ac_status=$?
23831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23832 (exit $ac_status); }; }; then
23833 ac_cv_lib_hnj_hnj_hyphen_hyphenate2=yes
23834 else
23835 echo "$as_me: failed program was:" >&5
23836 sed 's/^/| /' conftest.$ac_ext >&5
23838 ac_cv_lib_hnj_hnj_hyphen_hyphenate2=no
23840 rm -f conftest.err conftest.$ac_objext \
23841 conftest$ac_exeext conftest.$ac_ext
23842 LIBS=$ac_check_lib_save_LIBS
23844 echo "$as_me:$LINENO: result: $ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&5
23845 echo "${ECHO_T}$ac_cv_lib_hnj_hnj_hyphen_hyphenate2" >&6
23846 if test $ac_cv_lib_hnj_hnj_hyphen_hyphenate2 = yes; then
23847 HYPHEN_LIB=-lhnj
23848 else
23849 { { echo "$as_me:$LINENO: error: altlinuxhyph library not found or too old." >&5
23850 echo "$as_me: error: altlinuxhyph library not found or too old." >&2;}
23851 { (exit 1); exit 1; }; }
23855 else
23856 echo "$as_me:$LINENO: result: internal" >&5
23857 echo "${ECHO_T}internal" >&6
23858 SYSTEM_HYPH=NO
23859 BUILD_TYPE="$BUILD_TYPE HYPHEN"
23864 echo "$as_me:$LINENO: checking which mythes to use" >&5
23865 echo $ECHO_N "checking which mythes to use... $ECHO_C" >&6
23866 if test -n "$with_system_mythes" && test "$with_system_mythes" != "no"; then
23867 echo "$as_me:$LINENO: result: external" >&5
23868 echo "${ECHO_T}external" >&6
23869 SYSTEM_MYTHES=YES
23870 ac_ext=cc
23871 ac_cpp='$CXXCPP $CPPFLAGS'
23872 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23873 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23874 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
23877 succeeded=no
23879 if test -z "$PKG_CONFIG"; then
23880 # Extract the first word of "pkg-config", so it can be a program name with args.
23881 set dummy pkg-config; ac_word=$2
23882 echo "$as_me:$LINENO: checking for $ac_word" >&5
23883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
23884 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
23885 echo $ECHO_N "(cached) $ECHO_C" >&6
23886 else
23887 case $PKG_CONFIG in
23888 [\\/]* | ?:[\\/]*)
23889 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
23892 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23893 for as_dir in $PATH
23895 IFS=$as_save_IFS
23896 test -z "$as_dir" && as_dir=.
23897 for ac_exec_ext in '' $ac_executable_extensions; do
23898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
23899 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
23900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
23901 break 2
23903 done
23904 done
23906 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
23908 esac
23910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
23912 if test -n "$PKG_CONFIG"; then
23913 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
23914 echo "${ECHO_T}$PKG_CONFIG" >&6
23915 else
23916 echo "$as_me:$LINENO: result: no" >&5
23917 echo "${ECHO_T}no" >&6
23922 if test "$PKG_CONFIG" = "no" ; then
23923 echo "*** The pkg-config script could not be found. Make sure it is"
23924 echo "*** in your path, or set the PKG_CONFIG environment variable"
23925 echo "*** to the full path to pkg-config."
23926 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
23927 else
23928 PKG_CONFIG_MIN_VERSION=0.9.0
23929 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
23930 echo "$as_me:$LINENO: checking for mythes" >&5
23931 echo $ECHO_N "checking for mythes... $ECHO_C" >&6
23933 if $PKG_CONFIG --exists "mythes" ; then
23934 echo "$as_me:$LINENO: result: yes" >&5
23935 echo "${ECHO_T}yes" >&6
23936 succeeded=yes
23938 echo "$as_me:$LINENO: checking MYTHES_CFLAGS" >&5
23939 echo $ECHO_N "checking MYTHES_CFLAGS... $ECHO_C" >&6
23940 MYTHES_CFLAGS=`$PKG_CONFIG --cflags "mythes"`
23941 echo "$as_me:$LINENO: result: $MYTHES_CFLAGS" >&5
23942 echo "${ECHO_T}$MYTHES_CFLAGS" >&6
23944 echo "$as_me:$LINENO: checking MYTHES_LIBS" >&5
23945 echo $ECHO_N "checking MYTHES_LIBS... $ECHO_C" >&6
23946 MYTHES_LIBS=`$PKG_CONFIG --libs "mythes"`
23947 echo "$as_me:$LINENO: result: $MYTHES_LIBS" >&5
23948 echo "${ECHO_T}$MYTHES_LIBS" >&6
23949 else
23950 MYTHES_CFLAGS=""
23951 MYTHES_LIBS=""
23952 ## If we have a custom action on failure, don't print errors, but
23953 ## do set a variable so people can do so.
23954 MYTHES_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mythes"`
23960 else
23961 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
23962 echo "*** See http://www.freedesktop.org/software/pkgconfig"
23966 if test $succeeded = yes; then
23967 MYTHES_PKGCONFIG=yes
23968 else
23969 MYTHES_PKGCONFIG=no
23972 if test "$MYTHES_PKGCONFIG" = "no"; then
23973 if test "${ac_cv_header_mythes_hxx+set}" = set; then
23974 echo "$as_me:$LINENO: checking for mythes.hxx" >&5
23975 echo $ECHO_N "checking for mythes.hxx... $ECHO_C" >&6
23976 if test "${ac_cv_header_mythes_hxx+set}" = set; then
23977 echo $ECHO_N "(cached) $ECHO_C" >&6
23979 echo "$as_me:$LINENO: result: $ac_cv_header_mythes_hxx" >&5
23980 echo "${ECHO_T}$ac_cv_header_mythes_hxx" >&6
23981 else
23982 # Is the header compilable?
23983 echo "$as_me:$LINENO: checking mythes.hxx usability" >&5
23984 echo $ECHO_N "checking mythes.hxx usability... $ECHO_C" >&6
23985 cat >conftest.$ac_ext <<_ACEOF
23986 /* confdefs.h. */
23987 _ACEOF
23988 cat confdefs.h >>conftest.$ac_ext
23989 cat >>conftest.$ac_ext <<_ACEOF
23990 /* end confdefs.h. */
23991 $ac_includes_default
23992 #include <mythes.hxx>
23993 _ACEOF
23994 rm -f conftest.$ac_objext
23995 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23996 (eval $ac_compile) 2>conftest.er1
23997 ac_status=$?
23998 grep -v '^ *+' conftest.er1 >conftest.err
23999 rm -f conftest.er1
24000 cat conftest.err >&5
24001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24002 (exit $ac_status); } &&
24003 { ac_try='test -z "$ac_cxx_werror_flag"
24004 || test ! -s conftest.err'
24005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24006 (eval $ac_try) 2>&5
24007 ac_status=$?
24008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24009 (exit $ac_status); }; } &&
24010 { ac_try='test -s conftest.$ac_objext'
24011 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24012 (eval $ac_try) 2>&5
24013 ac_status=$?
24014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24015 (exit $ac_status); }; }; then
24016 ac_header_compiler=yes
24017 else
24018 echo "$as_me: failed program was:" >&5
24019 sed 's/^/| /' conftest.$ac_ext >&5
24021 ac_header_compiler=no
24023 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24024 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24025 echo "${ECHO_T}$ac_header_compiler" >&6
24027 # Is the header present?
24028 echo "$as_me:$LINENO: checking mythes.hxx presence" >&5
24029 echo $ECHO_N "checking mythes.hxx presence... $ECHO_C" >&6
24030 cat >conftest.$ac_ext <<_ACEOF
24031 /* confdefs.h. */
24032 _ACEOF
24033 cat confdefs.h >>conftest.$ac_ext
24034 cat >>conftest.$ac_ext <<_ACEOF
24035 /* end confdefs.h. */
24036 #include <mythes.hxx>
24037 _ACEOF
24038 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24039 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24040 ac_status=$?
24041 grep -v '^ *+' conftest.er1 >conftest.err
24042 rm -f conftest.er1
24043 cat conftest.err >&5
24044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24045 (exit $ac_status); } >/dev/null; then
24046 if test -s conftest.err; then
24047 ac_cpp_err=$ac_cxx_preproc_warn_flag
24048 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
24049 else
24050 ac_cpp_err=
24052 else
24053 ac_cpp_err=yes
24055 if test -z "$ac_cpp_err"; then
24056 ac_header_preproc=yes
24057 else
24058 echo "$as_me: failed program was:" >&5
24059 sed 's/^/| /' conftest.$ac_ext >&5
24061 ac_header_preproc=no
24063 rm -f conftest.err conftest.$ac_ext
24064 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24065 echo "${ECHO_T}$ac_header_preproc" >&6
24067 # So? What about this header?
24068 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
24069 yes:no: )
24070 { echo "$as_me:$LINENO: WARNING: mythes.hxx: accepted by the compiler, rejected by the preprocessor!" >&5
24071 echo "$as_me: WARNING: mythes.hxx: accepted by the compiler, rejected by the preprocessor!" >&2;}
24072 { echo "$as_me:$LINENO: WARNING: mythes.hxx: proceeding with the compiler's result" >&5
24073 echo "$as_me: WARNING: mythes.hxx: proceeding with the compiler's result" >&2;}
24074 ac_header_preproc=yes
24076 no:yes:* )
24077 { echo "$as_me:$LINENO: WARNING: mythes.hxx: present but cannot be compiled" >&5
24078 echo "$as_me: WARNING: mythes.hxx: present but cannot be compiled" >&2;}
24079 { echo "$as_me:$LINENO: WARNING: mythes.hxx: check for missing prerequisite headers?" >&5
24080 echo "$as_me: WARNING: mythes.hxx: check for missing prerequisite headers?" >&2;}
24081 { echo "$as_me:$LINENO: WARNING: mythes.hxx: see the Autoconf documentation" >&5
24082 echo "$as_me: WARNING: mythes.hxx: see the Autoconf documentation" >&2;}
24083 { echo "$as_me:$LINENO: WARNING: mythes.hxx: section \"Present But Cannot Be Compiled\"" >&5
24084 echo "$as_me: WARNING: mythes.hxx: section \"Present But Cannot Be Compiled\"" >&2;}
24085 { echo "$as_me:$LINENO: WARNING: mythes.hxx: proceeding with the preprocessor's result" >&5
24086 echo "$as_me: WARNING: mythes.hxx: proceeding with the preprocessor's result" >&2;}
24087 { echo "$as_me:$LINENO: WARNING: mythes.hxx: in the future, the compiler will take precedence" >&5
24088 echo "$as_me: WARNING: mythes.hxx: in the future, the compiler will take precedence" >&2;}
24090 cat <<\_ASBOX
24091 ## ------------------------------------------ ##
24092 ## Report this to the AC_PACKAGE_NAME lists. ##
24093 ## ------------------------------------------ ##
24094 _ASBOX
24096 sed "s/^/$as_me: WARNING: /" >&2
24098 esac
24099 echo "$as_me:$LINENO: checking for mythes.hxx" >&5
24100 echo $ECHO_N "checking for mythes.hxx... $ECHO_C" >&6
24101 if test "${ac_cv_header_mythes_hxx+set}" = set; then
24102 echo $ECHO_N "(cached) $ECHO_C" >&6
24103 else
24104 ac_cv_header_mythes_hxx=$ac_header_preproc
24106 echo "$as_me:$LINENO: result: $ac_cv_header_mythes_hxx" >&5
24107 echo "${ECHO_T}$ac_cv_header_mythes_hxx" >&6
24110 if test $ac_cv_header_mythes_hxx = yes; then
24112 else
24113 { { echo "$as_me:$LINENO: error: mythes.hxx headers not found." >&5
24114 echo "$as_me: error: mythes.hxx headers not found." >&2;}
24115 { (exit 1); exit 1; }; }
24120 echo "$as_me:$LINENO: checking for main in -lmythes-1.2" >&5
24121 echo $ECHO_N "checking for main in -lmythes-1.2... $ECHO_C" >&6
24122 if test "${ac_cv_lib_mythes_1_2_main+set}" = set; then
24123 echo $ECHO_N "(cached) $ECHO_C" >&6
24124 else
24125 ac_check_lib_save_LIBS=$LIBS
24126 LIBS="-lmythes-1.2 $LIBS"
24127 cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h. */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24136 main ()
24138 main ();
24140 return 0;
24142 _ACEOF
24143 rm -f conftest.$ac_objext conftest$ac_exeext
24144 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24145 (eval $ac_link) 2>conftest.er1
24146 ac_status=$?
24147 grep -v '^ *+' conftest.er1 >conftest.err
24148 rm -f conftest.er1
24149 cat conftest.err >&5
24150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24151 (exit $ac_status); } &&
24152 { ac_try='test -z "$ac_cxx_werror_flag"
24153 || test ! -s conftest.err'
24154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24155 (eval $ac_try) 2>&5
24156 ac_status=$?
24157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24158 (exit $ac_status); }; } &&
24159 { ac_try='test -s conftest$ac_exeext'
24160 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24161 (eval $ac_try) 2>&5
24162 ac_status=$?
24163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24164 (exit $ac_status); }; }; then
24165 ac_cv_lib_mythes_1_2_main=yes
24166 else
24167 echo "$as_me: failed program was:" >&5
24168 sed 's/^/| /' conftest.$ac_ext >&5
24170 ac_cv_lib_mythes_1_2_main=no
24172 rm -f conftest.err conftest.$ac_objext \
24173 conftest$ac_exeext conftest.$ac_ext
24174 LIBS=$ac_check_lib_save_LIBS
24176 echo "$as_me:$LINENO: result: $ac_cv_lib_mythes_1_2_main" >&5
24177 echo "${ECHO_T}$ac_cv_lib_mythes_1_2_main" >&6
24178 if test $ac_cv_lib_mythes_1_2_main = yes; then
24179 cat >>confdefs.h <<_ACEOF
24180 #define HAVE_LIBMYTHES_1_2 1
24181 _ACEOF
24183 LIBS="-lmythes-1.2 $LIBS"
24185 else
24186 MYTHES_FOUND=no
24189 if test "$MYTHES_FOUND" = "no"; then
24190 echo "$as_me:$LINENO: checking for main in -lmythes" >&5
24191 echo $ECHO_N "checking for main in -lmythes... $ECHO_C" >&6
24192 if test "${ac_cv_lib_mythes_main+set}" = set; then
24193 echo $ECHO_N "(cached) $ECHO_C" >&6
24194 else
24195 ac_check_lib_save_LIBS=$LIBS
24196 LIBS="-lmythes $LIBS"
24197 cat >conftest.$ac_ext <<_ACEOF
24198 /* confdefs.h. */
24199 _ACEOF
24200 cat confdefs.h >>conftest.$ac_ext
24201 cat >>conftest.$ac_ext <<_ACEOF
24202 /* end confdefs.h. */
24206 main ()
24208 main ();
24210 return 0;
24212 _ACEOF
24213 rm -f conftest.$ac_objext conftest$ac_exeext
24214 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24215 (eval $ac_link) 2>conftest.er1
24216 ac_status=$?
24217 grep -v '^ *+' conftest.er1 >conftest.err
24218 rm -f conftest.er1
24219 cat conftest.err >&5
24220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24221 (exit $ac_status); } &&
24222 { ac_try='test -z "$ac_cxx_werror_flag"
24223 || test ! -s conftest.err'
24224 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24225 (eval $ac_try) 2>&5
24226 ac_status=$?
24227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24228 (exit $ac_status); }; } &&
24229 { ac_try='test -s conftest$ac_exeext'
24230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24231 (eval $ac_try) 2>&5
24232 ac_status=$?
24233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24234 (exit $ac_status); }; }; then
24235 ac_cv_lib_mythes_main=yes
24236 else
24237 echo "$as_me: failed program was:" >&5
24238 sed 's/^/| /' conftest.$ac_ext >&5
24240 ac_cv_lib_mythes_main=no
24242 rm -f conftest.err conftest.$ac_objext \
24243 conftest$ac_exeext conftest.$ac_ext
24244 LIBS=$ac_check_lib_save_LIBS
24246 echo "$as_me:$LINENO: result: $ac_cv_lib_mythes_main" >&5
24247 echo "${ECHO_T}$ac_cv_lib_mythes_main" >&6
24248 if test $ac_cv_lib_mythes_main = yes; then
24249 MYTHES_FOUND=yes
24250 else
24251 MYTHES_FOUND=no
24255 if test "$MYTHES_FOUND" = "no"; then
24256 { { echo "$as_me:$LINENO: error: mythes library not found!." >&5
24257 echo "$as_me: error: mythes library not found!." >&2;}
24258 { (exit 1); exit 1; }; }
24261 ac_ext=c
24262 ac_cpp='$CPP $CPPFLAGS'
24263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24267 else
24268 echo "$as_me:$LINENO: result: internal" >&5
24269 echo "${ECHO_T}internal" >&6
24270 SYSTEM_MYTHES=NO
24271 BUILD_TYPE="$BUILD_TYPE MYTHES"
24277 echo "$as_me:$LINENO: checking which lpsolve to use" >&5
24278 echo $ECHO_N "checking which lpsolve to use... $ECHO_C" >&6
24279 if test -n "$with_system_lpsolve" -o -n "$with_system_libs" && \
24280 test "$with_system_lpsolve" != "no"; then
24281 echo "$as_me:$LINENO: result: external" >&5
24282 echo "${ECHO_T}external" >&6
24283 SYSTEM_LPSOLVE=YES
24284 if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
24285 echo "$as_me:$LINENO: checking for lpsolve/lp_lib.h" >&5
24286 echo $ECHO_N "checking for lpsolve/lp_lib.h... $ECHO_C" >&6
24287 if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
24288 echo $ECHO_N "(cached) $ECHO_C" >&6
24290 echo "$as_me:$LINENO: result: $ac_cv_header_lpsolve_lp_lib_h" >&5
24291 echo "${ECHO_T}$ac_cv_header_lpsolve_lp_lib_h" >&6
24292 else
24293 # Is the header compilable?
24294 echo "$as_me:$LINENO: checking lpsolve/lp_lib.h usability" >&5
24295 echo $ECHO_N "checking lpsolve/lp_lib.h usability... $ECHO_C" >&6
24296 cat >conftest.$ac_ext <<_ACEOF
24297 /* confdefs.h. */
24298 _ACEOF
24299 cat confdefs.h >>conftest.$ac_ext
24300 cat >>conftest.$ac_ext <<_ACEOF
24301 /* end confdefs.h. */
24302 $ac_includes_default
24303 #include <lpsolve/lp_lib.h>
24304 _ACEOF
24305 rm -f conftest.$ac_objext
24306 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24307 (eval $ac_compile) 2>conftest.er1
24308 ac_status=$?
24309 grep -v '^ *+' conftest.er1 >conftest.err
24310 rm -f conftest.er1
24311 cat conftest.err >&5
24312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24313 (exit $ac_status); } &&
24314 { ac_try='test -z "$ac_c_werror_flag"
24315 || test ! -s conftest.err'
24316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24317 (eval $ac_try) 2>&5
24318 ac_status=$?
24319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24320 (exit $ac_status); }; } &&
24321 { ac_try='test -s conftest.$ac_objext'
24322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24323 (eval $ac_try) 2>&5
24324 ac_status=$?
24325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24326 (exit $ac_status); }; }; then
24327 ac_header_compiler=yes
24328 else
24329 echo "$as_me: failed program was:" >&5
24330 sed 's/^/| /' conftest.$ac_ext >&5
24332 ac_header_compiler=no
24334 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24335 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24336 echo "${ECHO_T}$ac_header_compiler" >&6
24338 # Is the header present?
24339 echo "$as_me:$LINENO: checking lpsolve/lp_lib.h presence" >&5
24340 echo $ECHO_N "checking lpsolve/lp_lib.h presence... $ECHO_C" >&6
24341 cat >conftest.$ac_ext <<_ACEOF
24342 /* confdefs.h. */
24343 _ACEOF
24344 cat confdefs.h >>conftest.$ac_ext
24345 cat >>conftest.$ac_ext <<_ACEOF
24346 /* end confdefs.h. */
24347 #include <lpsolve/lp_lib.h>
24348 _ACEOF
24349 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24350 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24351 ac_status=$?
24352 grep -v '^ *+' conftest.er1 >conftest.err
24353 rm -f conftest.er1
24354 cat conftest.err >&5
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); } >/dev/null; then
24357 if test -s conftest.err; then
24358 ac_cpp_err=$ac_c_preproc_warn_flag
24359 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24360 else
24361 ac_cpp_err=
24363 else
24364 ac_cpp_err=yes
24366 if test -z "$ac_cpp_err"; then
24367 ac_header_preproc=yes
24368 else
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24372 ac_header_preproc=no
24374 rm -f conftest.err conftest.$ac_ext
24375 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24376 echo "${ECHO_T}$ac_header_preproc" >&6
24378 # So? What about this header?
24379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24380 yes:no: )
24381 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
24382 echo "$as_me: WARNING: lpsolve/lp_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24383 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: proceeding with the compiler's result" >&5
24384 echo "$as_me: WARNING: lpsolve/lp_lib.h: proceeding with the compiler's result" >&2;}
24385 ac_header_preproc=yes
24387 no:yes:* )
24388 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: present but cannot be compiled" >&5
24389 echo "$as_me: WARNING: lpsolve/lp_lib.h: present but cannot be compiled" >&2;}
24390 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: check for missing prerequisite headers?" >&5
24391 echo "$as_me: WARNING: lpsolve/lp_lib.h: check for missing prerequisite headers?" >&2;}
24392 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: see the Autoconf documentation" >&5
24393 echo "$as_me: WARNING: lpsolve/lp_lib.h: see the Autoconf documentation" >&2;}
24394 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: section \"Present But Cannot Be Compiled\"" >&5
24395 echo "$as_me: WARNING: lpsolve/lp_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
24396 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: proceeding with the preprocessor's result" >&5
24397 echo "$as_me: WARNING: lpsolve/lp_lib.h: proceeding with the preprocessor's result" >&2;}
24398 { echo "$as_me:$LINENO: WARNING: lpsolve/lp_lib.h: in the future, the compiler will take precedence" >&5
24399 echo "$as_me: WARNING: lpsolve/lp_lib.h: in the future, the compiler will take precedence" >&2;}
24401 cat <<\_ASBOX
24402 ## ------------------------------------------ ##
24403 ## Report this to the AC_PACKAGE_NAME lists. ##
24404 ## ------------------------------------------ ##
24405 _ASBOX
24407 sed "s/^/$as_me: WARNING: /" >&2
24409 esac
24410 echo "$as_me:$LINENO: checking for lpsolve/lp_lib.h" >&5
24411 echo $ECHO_N "checking for lpsolve/lp_lib.h... $ECHO_C" >&6
24412 if test "${ac_cv_header_lpsolve_lp_lib_h+set}" = set; then
24413 echo $ECHO_N "(cached) $ECHO_C" >&6
24414 else
24415 ac_cv_header_lpsolve_lp_lib_h=$ac_header_preproc
24417 echo "$as_me:$LINENO: result: $ac_cv_header_lpsolve_lp_lib_h" >&5
24418 echo "${ECHO_T}$ac_cv_header_lpsolve_lp_lib_h" >&6
24421 if test $ac_cv_header_lpsolve_lp_lib_h = yes; then
24423 else
24424 { { echo "$as_me:$LINENO: error: lpsolve headers not found." >&5
24425 echo "$as_me: error: lpsolve headers not found." >&2;}
24426 { (exit 1); exit 1; }; }
24430 # some systems need this. Like Ubuntu....
24432 echo "$as_me:$LINENO: checking for floor in -lm" >&5
24433 echo $ECHO_N "checking for floor in -lm... $ECHO_C" >&6
24434 if test "${ac_cv_lib_m_floor+set}" = set; then
24435 echo $ECHO_N "(cached) $ECHO_C" >&6
24436 else
24437 ac_check_lib_save_LIBS=$LIBS
24438 LIBS="-lm $LIBS"
24439 cat >conftest.$ac_ext <<_ACEOF
24440 /* confdefs.h. */
24441 _ACEOF
24442 cat confdefs.h >>conftest.$ac_ext
24443 cat >>conftest.$ac_ext <<_ACEOF
24444 /* end confdefs.h. */
24446 /* Override any gcc2 internal prototype to avoid an error. */
24447 #ifdef __cplusplus
24448 extern "C"
24449 #endif
24450 /* We use char because int might match the return type of a gcc2
24451 builtin and then its argument prototype would still apply. */
24452 char floor ();
24454 main ()
24456 floor ();
24458 return 0;
24460 _ACEOF
24461 rm -f conftest.$ac_objext conftest$ac_exeext
24462 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24463 (eval $ac_link) 2>conftest.er1
24464 ac_status=$?
24465 grep -v '^ *+' conftest.er1 >conftest.err
24466 rm -f conftest.er1
24467 cat conftest.err >&5
24468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24469 (exit $ac_status); } &&
24470 { ac_try='test -z "$ac_c_werror_flag"
24471 || test ! -s conftest.err'
24472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24473 (eval $ac_try) 2>&5
24474 ac_status=$?
24475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24476 (exit $ac_status); }; } &&
24477 { ac_try='test -s conftest$ac_exeext'
24478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24479 (eval $ac_try) 2>&5
24480 ac_status=$?
24481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24482 (exit $ac_status); }; }; then
24483 ac_cv_lib_m_floor=yes
24484 else
24485 echo "$as_me: failed program was:" >&5
24486 sed 's/^/| /' conftest.$ac_ext >&5
24488 ac_cv_lib_m_floor=no
24490 rm -f conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24492 LIBS=$ac_check_lib_save_LIBS
24494 echo "$as_me:$LINENO: result: $ac_cv_lib_m_floor" >&5
24495 echo "${ECHO_T}$ac_cv_lib_m_floor" >&6
24496 if test $ac_cv_lib_m_floor = yes; then
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_LIBM 1
24499 _ACEOF
24501 LIBS="-lm $LIBS"
24506 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
24507 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
24508 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
24509 echo $ECHO_N "(cached) $ECHO_C" >&6
24510 else
24511 ac_check_lib_save_LIBS=$LIBS
24512 LIBS="-ldl $LIBS"
24513 cat >conftest.$ac_ext <<_ACEOF
24514 /* confdefs.h. */
24515 _ACEOF
24516 cat confdefs.h >>conftest.$ac_ext
24517 cat >>conftest.$ac_ext <<_ACEOF
24518 /* end confdefs.h. */
24520 /* Override any gcc2 internal prototype to avoid an error. */
24521 #ifdef __cplusplus
24522 extern "C"
24523 #endif
24524 /* We use char because int might match the return type of a gcc2
24525 builtin and then its argument prototype would still apply. */
24526 char dlopen ();
24528 main ()
24530 dlopen ();
24532 return 0;
24534 _ACEOF
24535 rm -f conftest.$ac_objext conftest$ac_exeext
24536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24537 (eval $ac_link) 2>conftest.er1
24538 ac_status=$?
24539 grep -v '^ *+' conftest.er1 >conftest.err
24540 rm -f conftest.er1
24541 cat conftest.err >&5
24542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24543 (exit $ac_status); } &&
24544 { ac_try='test -z "$ac_c_werror_flag"
24545 || test ! -s conftest.err'
24546 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24547 (eval $ac_try) 2>&5
24548 ac_status=$?
24549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24550 (exit $ac_status); }; } &&
24551 { ac_try='test -s conftest$ac_exeext'
24552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553 (eval $ac_try) 2>&5
24554 ac_status=$?
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; }; then
24557 ac_cv_lib_dl_dlopen=yes
24558 else
24559 echo "$as_me: failed program was:" >&5
24560 sed 's/^/| /' conftest.$ac_ext >&5
24562 ac_cv_lib_dl_dlopen=no
24564 rm -f conftest.err conftest.$ac_objext \
24565 conftest$ac_exeext conftest.$ac_ext
24566 LIBS=$ac_check_lib_save_LIBS
24568 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
24569 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
24570 if test $ac_cv_lib_dl_dlopen = yes; then
24571 cat >>confdefs.h <<_ACEOF
24572 #define HAVE_LIBDL 1
24573 _ACEOF
24575 LIBS="-ldl $LIBS"
24580 echo "$as_me:$LINENO: checking for make_lp in -llpsolve55" >&5
24581 echo $ECHO_N "checking for make_lp in -llpsolve55... $ECHO_C" >&6
24582 if test "${ac_cv_lib_lpsolve55_make_lp+set}" = set; then
24583 echo $ECHO_N "(cached) $ECHO_C" >&6
24584 else
24585 ac_check_lib_save_LIBS=$LIBS
24586 LIBS="-llpsolve55 $LIBS"
24587 cat >conftest.$ac_ext <<_ACEOF
24588 /* confdefs.h. */
24589 _ACEOF
24590 cat confdefs.h >>conftest.$ac_ext
24591 cat >>conftest.$ac_ext <<_ACEOF
24592 /* end confdefs.h. */
24594 /* Override any gcc2 internal prototype to avoid an error. */
24595 #ifdef __cplusplus
24596 extern "C"
24597 #endif
24598 /* We use char because int might match the return type of a gcc2
24599 builtin and then its argument prototype would still apply. */
24600 char make_lp ();
24602 main ()
24604 make_lp ();
24606 return 0;
24608 _ACEOF
24609 rm -f conftest.$ac_objext conftest$ac_exeext
24610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24611 (eval $ac_link) 2>conftest.er1
24612 ac_status=$?
24613 grep -v '^ *+' conftest.er1 >conftest.err
24614 rm -f conftest.er1
24615 cat conftest.err >&5
24616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24617 (exit $ac_status); } &&
24618 { ac_try='test -z "$ac_c_werror_flag"
24619 || test ! -s conftest.err'
24620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24621 (eval $ac_try) 2>&5
24622 ac_status=$?
24623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24624 (exit $ac_status); }; } &&
24625 { ac_try='test -s conftest$ac_exeext'
24626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24627 (eval $ac_try) 2>&5
24628 ac_status=$?
24629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24630 (exit $ac_status); }; }; then
24631 ac_cv_lib_lpsolve55_make_lp=yes
24632 else
24633 echo "$as_me: failed program was:" >&5
24634 sed 's/^/| /' conftest.$ac_ext >&5
24636 ac_cv_lib_lpsolve55_make_lp=no
24638 rm -f conftest.err conftest.$ac_objext \
24639 conftest$ac_exeext conftest.$ac_ext
24640 LIBS=$ac_check_lib_save_LIBS
24642 echo "$as_me:$LINENO: result: $ac_cv_lib_lpsolve55_make_lp" >&5
24643 echo "${ECHO_T}$ac_cv_lib_lpsolve55_make_lp" >&6
24644 if test $ac_cv_lib_lpsolve55_make_lp = yes; then
24645 cat >>confdefs.h <<_ACEOF
24646 #define HAVE_LIBLPSOLVE55 1
24647 _ACEOF
24649 LIBS="-llpsolve55 $LIBS"
24651 else
24652 { { echo "$as_me:$LINENO: error: lpsolve library not found or too old." >&5
24653 echo "$as_me: error: lpsolve library not found or too old." >&2;}
24654 { (exit 1); exit 1; }; }
24657 else
24658 echo "$as_me:$LINENO: result: internal" >&5
24659 echo "${ECHO_T}internal" >&6
24660 SYSTEM_LPSOLVE=NO
24661 BUILD_TYPE="$BUILD_TYPE LPSOLVE"
24665 if test "$_os" = "Linux"; then
24666 echo "$as_me:$LINENO: checking whether libc is >= 2.1.1" >&5
24667 echo $ECHO_N "checking whether libc is >= 2.1.1... $ECHO_C" >&6
24668 exec 6>/dev/null # no output
24669 echo "$as_me:$LINENO: checking for gnu_get_libc_version in -lc" >&5
24670 echo $ECHO_N "checking for gnu_get_libc_version in -lc... $ECHO_C" >&6
24671 if test "${ac_cv_lib_c_gnu_get_libc_version+set}" = set; then
24672 echo $ECHO_N "(cached) $ECHO_C" >&6
24673 else
24674 ac_check_lib_save_LIBS=$LIBS
24675 LIBS="-lc $LIBS"
24676 cat >conftest.$ac_ext <<_ACEOF
24677 /* confdefs.h. */
24678 _ACEOF
24679 cat confdefs.h >>conftest.$ac_ext
24680 cat >>conftest.$ac_ext <<_ACEOF
24681 /* end confdefs.h. */
24683 /* Override any gcc2 internal prototype to avoid an error. */
24684 #ifdef __cplusplus
24685 extern "C"
24686 #endif
24687 /* We use char because int might match the return type of a gcc2
24688 builtin and then its argument prototype would still apply. */
24689 char gnu_get_libc_version ();
24691 main ()
24693 gnu_get_libc_version ();
24695 return 0;
24697 _ACEOF
24698 rm -f conftest.$ac_objext conftest$ac_exeext
24699 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24700 (eval $ac_link) 2>conftest.er1
24701 ac_status=$?
24702 grep -v '^ *+' conftest.er1 >conftest.err
24703 rm -f conftest.er1
24704 cat conftest.err >&5
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); } &&
24707 { ac_try='test -z "$ac_c_werror_flag"
24708 || test ! -s conftest.err'
24709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24710 (eval $ac_try) 2>&5
24711 ac_status=$?
24712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24713 (exit $ac_status); }; } &&
24714 { ac_try='test -s conftest$ac_exeext'
24715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24716 (eval $ac_try) 2>&5
24717 ac_status=$?
24718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24719 (exit $ac_status); }; }; then
24720 ac_cv_lib_c_gnu_get_libc_version=yes
24721 else
24722 echo "$as_me: failed program was:" >&5
24723 sed 's/^/| /' conftest.$ac_ext >&5
24725 ac_cv_lib_c_gnu_get_libc_version=no
24727 rm -f conftest.err conftest.$ac_objext \
24728 conftest$ac_exeext conftest.$ac_ext
24729 LIBS=$ac_check_lib_save_LIBS
24731 echo "$as_me:$LINENO: result: $ac_cv_lib_c_gnu_get_libc_version" >&5
24732 echo "${ECHO_T}$ac_cv_lib_c_gnu_get_libc_version" >&6
24733 if test $ac_cv_lib_c_gnu_get_libc_version = yes; then
24734 HAVE_LIBC=yes; export HAVE_LIBC
24737 exec 6>&1 # output on again
24738 if test "$HAVE_LIBC"; then
24739 echo "$as_me:$LINENO: result: yes" >&5
24740 echo "${ECHO_T}yes" >&6
24741 else
24742 { { echo "$as_me:$LINENO: error: no, upgrade libc" >&5
24743 echo "$as_me: error: no, upgrade libc" >&2;}
24744 { (exit 1); exit 1; }; }
24748 if test "$_os" != "WNT"; then
24750 for ac_func in getopt
24752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24753 echo "$as_me:$LINENO: checking for $ac_func" >&5
24754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24755 if eval "test \"\${$as_ac_var+set}\" = set"; then
24756 echo $ECHO_N "(cached) $ECHO_C" >&6
24757 else
24758 cat >conftest.$ac_ext <<_ACEOF
24759 /* confdefs.h. */
24760 _ACEOF
24761 cat confdefs.h >>conftest.$ac_ext
24762 cat >>conftest.$ac_ext <<_ACEOF
24763 /* end confdefs.h. */
24764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24766 #define $ac_func innocuous_$ac_func
24768 /* System header to define __stub macros and hopefully few prototypes,
24769 which can conflict with char $ac_func (); below.
24770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24771 <limits.h> exists even on freestanding compilers. */
24773 #ifdef __STDC__
24774 # include <limits.h>
24775 #else
24776 # include <assert.h>
24777 #endif
24779 #undef $ac_func
24781 /* Override any gcc2 internal prototype to avoid an error. */
24782 #ifdef __cplusplus
24783 extern "C"
24785 #endif
24786 /* We use char because int might match the return type of a gcc2
24787 builtin and then its argument prototype would still apply. */
24788 char $ac_func ();
24789 /* The GNU C library defines this for functions which it implements
24790 to always fail with ENOSYS. Some functions are actually named
24791 something starting with __ and the normal name is an alias. */
24792 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24793 choke me
24794 #else
24795 char (*f) () = $ac_func;
24796 #endif
24797 #ifdef __cplusplus
24799 #endif
24802 main ()
24804 return f != $ac_func;
24806 return 0;
24808 _ACEOF
24809 rm -f conftest.$ac_objext conftest$ac_exeext
24810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24811 (eval $ac_link) 2>conftest.er1
24812 ac_status=$?
24813 grep -v '^ *+' conftest.er1 >conftest.err
24814 rm -f conftest.er1
24815 cat conftest.err >&5
24816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24817 (exit $ac_status); } &&
24818 { ac_try='test -z "$ac_c_werror_flag"
24819 || test ! -s conftest.err'
24820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24821 (eval $ac_try) 2>&5
24822 ac_status=$?
24823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24824 (exit $ac_status); }; } &&
24825 { ac_try='test -s conftest$ac_exeext'
24826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24827 (eval $ac_try) 2>&5
24828 ac_status=$?
24829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24830 (exit $ac_status); }; }; then
24831 eval "$as_ac_var=yes"
24832 else
24833 echo "$as_me: failed program was:" >&5
24834 sed 's/^/| /' conftest.$ac_ext >&5
24836 eval "$as_ac_var=no"
24838 rm -f conftest.err conftest.$ac_objext \
24839 conftest$ac_exeext conftest.$ac_ext
24841 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24842 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24843 if test `eval echo '${'$as_ac_var'}'` = yes; then
24844 cat >>confdefs.h <<_ACEOF
24845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24846 _ACEOF
24847 HAVE_GETOPT=YES
24848 else
24849 HAVE_GETOPT=NO
24851 done
24854 for ac_func in readdir_r
24856 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24857 echo "$as_me:$LINENO: checking for $ac_func" >&5
24858 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24859 if eval "test \"\${$as_ac_var+set}\" = set"; then
24860 echo $ECHO_N "(cached) $ECHO_C" >&6
24861 else
24862 cat >conftest.$ac_ext <<_ACEOF
24863 /* confdefs.h. */
24864 _ACEOF
24865 cat confdefs.h >>conftest.$ac_ext
24866 cat >>conftest.$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24869 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24870 #define $ac_func innocuous_$ac_func
24872 /* System header to define __stub macros and hopefully few prototypes,
24873 which can conflict with char $ac_func (); below.
24874 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24875 <limits.h> exists even on freestanding compilers. */
24877 #ifdef __STDC__
24878 # include <limits.h>
24879 #else
24880 # include <assert.h>
24881 #endif
24883 #undef $ac_func
24885 /* Override any gcc2 internal prototype to avoid an error. */
24886 #ifdef __cplusplus
24887 extern "C"
24889 #endif
24890 /* We use char because int might match the return type of a gcc2
24891 builtin and then its argument prototype would still apply. */
24892 char $ac_func ();
24893 /* The GNU C library defines this for functions which it implements
24894 to always fail with ENOSYS. Some functions are actually named
24895 something starting with __ and the normal name is an alias. */
24896 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24897 choke me
24898 #else
24899 char (*f) () = $ac_func;
24900 #endif
24901 #ifdef __cplusplus
24903 #endif
24906 main ()
24908 return f != $ac_func;
24910 return 0;
24912 _ACEOF
24913 rm -f conftest.$ac_objext conftest$ac_exeext
24914 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24915 (eval $ac_link) 2>conftest.er1
24916 ac_status=$?
24917 grep -v '^ *+' conftest.er1 >conftest.err
24918 rm -f conftest.er1
24919 cat conftest.err >&5
24920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24921 (exit $ac_status); } &&
24922 { ac_try='test -z "$ac_c_werror_flag"
24923 || test ! -s conftest.err'
24924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24925 (eval $ac_try) 2>&5
24926 ac_status=$?
24927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24928 (exit $ac_status); }; } &&
24929 { ac_try='test -s conftest$ac_exeext'
24930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24931 (eval $ac_try) 2>&5
24932 ac_status=$?
24933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24934 (exit $ac_status); }; }; then
24935 eval "$as_ac_var=yes"
24936 else
24937 echo "$as_me: failed program was:" >&5
24938 sed 's/^/| /' conftest.$ac_ext >&5
24940 eval "$as_ac_var=no"
24942 rm -f conftest.err conftest.$ac_objext \
24943 conftest$ac_exeext conftest.$ac_ext
24945 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
24946 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
24947 if test `eval echo '${'$as_ac_var'}'` = yes; then
24948 cat >>confdefs.h <<_ACEOF
24949 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
24950 _ACEOF
24951 HAVE_READDIR_R=YES
24952 else
24953 HAVE_READDIR_R=NO
24955 done
24957 if test "$HAVE_GETOPT" = "YES" -a "$HAVE_READDIR_R" = "YES"; then
24958 SYSTEM_LIBC=YES
24960 else
24961 HAVE_GETOPT=NO
24962 HAVE_READDIR_R=NO
24963 SYSTEM_LIBC=YES
24969 if test \( "$_os" = "WINNT" \) ; then
24970 echo "$as_me:$LINENO: checking for PSDK files" >&5
24971 echo $ECHO_N "checking for PSDK files... $ECHO_C" >&6
24972 if test -z "$with_psdk_home"; then
24973 # This first line will detect a February 2003 Microsoft Platform SDK
24974 PSDK_HOME=`./oowintool --psdk-home`
24975 # But there might be also an April 2005 PSDK, unfortunately MS changed
24976 # the registry entry. (we prefer the old version!?)
24977 if test -z "$PSDK_HOME"; then
24978 PSDK_HOME=`cat /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/MicrosoftSDK/InstalledSDKs/*/Install\ Dir 2> /dev/null | tr '\000' '\n' | head -n 1`
24980 # normalize if found
24981 if test -n "$PSDK_HOME"; then
24982 PSDK_HOME=`cygpath -d "$PSDK_HOME"`
24983 PSDK_HOME=`cygpath -u "$PSDK_HOME"`
24985 else
24986 PSDK_HOME=`cygpath -u "$with_psdk_home"`
24988 # Remove a possible trailing backslash
24989 PSDK_HOME=`echo $PSDK_HOME | $SED 's/\/$//'`
24990 # Problem with current PSDK (iz 49865)
24991 if test -f "$PSDK_HOME/Lib/libcp.lib"; then
24992 { { echo "$as_me:$LINENO: error:
24994 Some modules do not build correctly with MS Platform SDK - April 2005
24995 Edition if the library ($PSDK_HOME/Lib/libcp.lib) is found.
24996 Remove/rename/backup that file and restart configure. Details about this
24997 problem can be found in issue 49856." >&5
24998 echo "$as_me: error:
25000 Some modules do not build correctly with MS Platform SDK - April 2005
25001 Edition if the library ($PSDK_HOME/Lib/libcp.lib) is found.
25002 Remove/rename/backup that file and restart configure. Details about this
25003 problem can be found in issue 49856." >&2;}
25004 { (exit 1); exit 1; }; }
25006 # WIndows SDK has different headers
25007 if test \( -f "$PSDK_HOME/Include/adoint.h" \) \
25008 -a \( -f "$PSDK_HOME/Include/SqlUcode.h" \) \
25009 -a \( -f "$PSDK_HOME/Include/usp10.h" \); then
25010 HAVE_PSDK_H="yes"
25011 else
25012 HAVE_PSDK_H="no"
25014 if test -f "$PSDK_HOME/lib/unicows.lib"; then
25015 HAVE_PSDK_LIB="yes"
25016 else
25017 HAVE_PSDK_LIB="no"
25019 if test "$HAVE_PSDK_H" = "no" -o "$HAVE_PSDK_LIB" = "no"; then
25020 { { echo "$as_me:$LINENO: error: Some (all?) PSDK files not found, please check if all needed Platform SDKs
25021 are installed or use --with-psdk-home ." >&5
25022 echo "$as_me: error: Some (all?) PSDK files not found, please check if all needed Platform SDKs
25023 are installed or use --with-psdk-home ." >&2;}
25024 { (exit 1); exit 1; }; }
25026 if test ! -x "$PSDK_HOME/bin/msiinfo.exe" \
25027 -o ! -x "$PSDK_HOME/bin/msidb.exe" \
25028 -o ! -x "$PSDK_HOME/bin/uuidgen.exe" \
25029 -o ! -x "$PSDK_HOME/bin/msitran.exe" ; then
25030 { { echo "$as_me:$LINENO: error: Some (all) files of the Windows Installer SDK are missing, please install." >&5
25031 echo "$as_me: error: Some (all) files of the Windows Installer SDK are missing, please install." >&2;}
25032 { (exit 1); exit 1; }; }
25034 echo "$as_me:$LINENO: result: SDK files found ...)" >&5
25035 echo "${ECHO_T}SDK files found ...)" >&6
25036 if echo $PSDK_HOME | grep "v6.1" >/dev/null 2>/dev/null; then
25037 echo "$as_me:$LINENO: result: Found Windows SDK 6.1 ($PSDK_HOME)" >&5
25038 echo "${ECHO_T}Found Windows SDK 6.1 ($PSDK_HOME)" >&6
25039 WINDOWS_VISTA_PSDK=TRUE
25040 elif echo $PSDK_HOME | grep "v6.0" >/dev/null 2>/dev/null; then
25041 echo "$as_me:$LINENO: result: Found Windows SDK 6.0 ($PSDK_HOME)" >&5
25042 echo "${ECHO_T}Found Windows SDK 6.0 ($PSDK_HOME)" >&6
25043 WINDOWS_VISTA_PSDK=TRUE
25044 else
25045 echo "$as_me:$LINENO: result: Found Legacy Windows Platform SDK ($PSDK_HOME)" >&5
25046 echo "${ECHO_T}Found Legacy Windows Platform SDK ($PSDK_HOME)" >&6
25052 if test \( "$_os" = "WINNT" \) ; then
25053 echo "$as_me:$LINENO: checking for DirectX SDK files" >&5
25054 echo $ECHO_N "checking for DirectX SDK files... $ECHO_C" >&6
25055 if test -z "$with_directx_home"; then
25056 if test -n "$DXSDK_DIR"; then
25057 DIRECTXSDK_HOME=`cygpath -d "$DXSDK_DIR"`
25058 DIRECTXSDK_HOME=`cygpath -u "$DIRECTXSDK_HOME"`
25060 # At this point $DIRECTXSDK_HOME might still be undefined. This will lead to
25061 # the "DirectX SDK files not found" error later
25062 else
25063 DIRECTXSDK_HOME=`cygpath -u "$with_directx_home"`
25065 # Remove a possible trailing backslash
25066 DIRECTXSDK_HOME=`echo $DIRECTXSDK_HOME | $SED 's/\/$//'`
25068 if test -f "$DIRECTXSDK_HOME/Include/ddraw.h" ; then
25069 HAVE_DIRECTXSDK_H="yes"
25070 else
25071 HAVE_DIRECTXSDK_H="no"
25073 # MS changed the location of the libraries with dec 2004 directx sdk
25074 if test -d "$DIRECTXSDK_HOME/lib/x86" ; then
25075 DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib/x86"
25076 else
25077 DIRECTXSDK_LIB="$DIRECTXSDK_HOME/lib"
25079 if test -f "$DIRECTXSDK_LIB/ddraw.lib" ; then
25080 HAVE_DIRECTXSDK_LIB="yes"
25081 else
25082 HAVE_DIRECTXSDK_LIB="no"
25084 if test -n "$ENABLE_DIRECTX"; then
25085 if test "$HAVE_DIRECTXSDK_H" = "yes" -a "$HAVE_DIRECTXSDK_LIB" = "yes"; then
25086 echo "$as_me:$LINENO: result: found" >&5
25087 echo "${ECHO_T}found" >&6
25088 else
25089 { { echo "$as_me:$LINENO: error: DirectX SDK files not found, please use --with-directx-home or -disable-directx." >&5
25090 echo "$as_me: error: DirectX SDK files not found, please use --with-directx-home or -disable-directx." >&2;}
25091 { (exit 1); exit 1; }; }
25093 else
25094 DIRECTXSDK_HOME=""
25095 echo "$as_me:$LINENO: result: disabled" >&5
25096 echo "${ECHO_T}disabled" >&6
25102 NSIS_PATH=""
25103 if test "$_os" = "WINNT" ; then
25104 echo "$as_me:$LINENO: checking for NSIS" >&5
25105 echo $ECHO_N "checking for NSIS... $ECHO_C" >&6
25106 # Extract the first word of "nsis.exe", so it can be a program name with args.
25107 set dummy nsis.exe; ac_word=$2
25108 echo "$as_me:$LINENO: checking for $ac_word" >&5
25109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25110 if test "${ac_cv_path_NSIS_PATH+set}" = set; then
25111 echo $ECHO_N "(cached) $ECHO_C" >&6
25112 else
25113 case $NSIS_PATH in
25114 [\\/]* | ?:[\\/]*)
25115 ac_cv_path_NSIS_PATH="$NSIS_PATH" # Let the user override the test with a path.
25118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25119 for as_dir in $PATH
25121 IFS=$as_save_IFS
25122 test -z "$as_dir" && as_dir=.
25123 for ac_exec_ext in '' $ac_executable_extensions; do
25124 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25125 ac_cv_path_NSIS_PATH="$as_dir/$ac_word$ac_exec_ext"
25126 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25127 break 2
25129 done
25130 done
25133 esac
25135 NSIS_PATH=$ac_cv_path_NSIS_PATH
25137 if test -n "$NSIS_PATH"; then
25138 echo "$as_me:$LINENO: result: $NSIS_PATH" >&5
25139 echo "${ECHO_T}$NSIS_PATH" >&6
25140 else
25141 echo "$as_me:$LINENO: result: no" >&5
25142 echo "${ECHO_T}no" >&6
25145 if test -n "$NSIS_PATH"; then
25146 NSIS_PATH=`dirname "$NSIS_PATH"`
25148 if test -n "$with_nsis_path"; then
25149 with_nsis_path=`cygpath -u "$with_nsis_path"`
25151 if test -e "$with_nsis_path/nsis.exe"; then
25152 NSIS_PATH="$with_nsis_path"
25154 nsistest=`./oowintool --nsis-dir`;
25155 if test -x "$nsistest/nsis.exe"; then
25156 NSIS_PATH="$nsistest"
25158 if test -z "$NSIS_PATH"; then
25159 { echo "$as_me:$LINENO: WARNING: NSIS not found, no self contained installer will be build." >&5
25160 echo "$as_me: WARNING: NSIS not found, no self contained installer will be build." >&2;}
25161 echo "NSIS not found, no self contained installer will be build." >> warn
25162 else
25163 NSIS_PATH=`cygpath -d "$NSIS_PATH"`
25164 NSIS_PATH=`cygpath -u "$NSIS_PATH"`
25165 echo "$as_me:$LINENO: result: found ($NSIS_PATH)" >&5
25166 echo "${ECHO_T}found ($NSIS_PATH)" >&6
25171 # Extract the first word of "bison", so it can be a program name with args.
25172 set dummy bison; ac_word=$2
25173 echo "$as_me:$LINENO: checking for $ac_word" >&5
25174 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25175 if test "${ac_cv_path_BISON+set}" = set; then
25176 echo $ECHO_N "(cached) $ECHO_C" >&6
25177 else
25178 case $BISON in
25179 [\\/]* | ?:[\\/]*)
25180 ac_cv_path_BISON="$BISON" # Let the user override the test with a path.
25183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25184 for as_dir in $PATH
25186 IFS=$as_save_IFS
25187 test -z "$as_dir" && as_dir=.
25188 for ac_exec_ext in '' $ac_executable_extensions; do
25189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25190 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext"
25191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25192 break 2
25194 done
25195 done
25198 esac
25200 BISON=$ac_cv_path_BISON
25202 if test -n "$BISON"; then
25203 echo "$as_me:$LINENO: result: $BISON" >&5
25204 echo "${ECHO_T}$BISON" >&6
25205 else
25206 echo "$as_me:$LINENO: result: no" >&5
25207 echo "${ECHO_T}no" >&6
25210 if test -z "$BISON"; then
25211 { { echo "$as_me:$LINENO: error: no bison found in \$PATH, install bison" >&5
25212 echo "$as_me: error: no bison found in \$PATH, install bison" >&2;}
25213 { (exit 1); exit 1; }; }
25214 else
25215 echo "$as_me:$LINENO: checking the bison version" >&5
25216 echo $ECHO_N "checking the bison version... $ECHO_C" >&6
25217 _bison_version=`$BISON --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
25218 _bison_longver=`echo $_bison_version | $AWK -F. '{ print \$1*1000+\$2}'`
25219 # Accept newer than 1.875 or older(equal) than 1.75
25220 if test "$_bison_longver" -ge 1875 -o "$_bison_longver" -le 1075; then
25221 if test "$_bison_version" = "1.875" ; then
25222 { echo "$as_me:$LINENO: WARNING: suspect ($BISON $_bison_version)" >&5
25223 echo "$as_me: WARNING: suspect ($BISON $_bison_version)" >&2;}
25224 echo "Suspect ($BISON $_bison_version) suggest upgrade" >> warn
25225 else
25226 echo "$as_me:$LINENO: result: checked ($BISON $_bison_version)" >&5
25227 echo "${ECHO_T}checked ($BISON $_bison_version)" >&6
25229 else
25230 { { echo "$as_me:$LINENO: error: failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))" >&5
25231 echo "$as_me: error: failed ($BISON $_bison_version need 1.875+ (or 1.75 and older))" >&2;}
25232 { (exit 1); exit 1; }; }
25235 # Extract the first word of "flex", so it can be a program name with args.
25236 set dummy flex; ac_word=$2
25237 echo "$as_me:$LINENO: checking for $ac_word" >&5
25238 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25239 if test "${ac_cv_path_FLEX+set}" = set; then
25240 echo $ECHO_N "(cached) $ECHO_C" >&6
25241 else
25242 case $FLEX in
25243 [\\/]* | ?:[\\/]*)
25244 ac_cv_path_FLEX="$FLEX" # Let the user override the test with a path.
25247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25248 for as_dir in $PATH
25250 IFS=$as_save_IFS
25251 test -z "$as_dir" && as_dir=.
25252 for ac_exec_ext in '' $ac_executable_extensions; do
25253 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25254 ac_cv_path_FLEX="$as_dir/$ac_word$ac_exec_ext"
25255 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25256 break 2
25258 done
25259 done
25262 esac
25264 FLEX=$ac_cv_path_FLEX
25266 if test -n "$FLEX"; then
25267 echo "$as_me:$LINENO: result: $FLEX" >&5
25268 echo "${ECHO_T}$FLEX" >&6
25269 else
25270 echo "$as_me:$LINENO: result: no" >&5
25271 echo "${ECHO_T}no" >&6
25274 if test -z "$FLEX"; then
25275 { { echo "$as_me:$LINENO: error: no flex found in \$PATH, install flex" >&5
25276 echo "$as_me: error: no flex found in \$PATH, install flex" >&2;}
25277 { (exit 1); exit 1; }; }
25279 # Extract the first word of "patch", so it can be a program name with args.
25280 set dummy patch; ac_word=$2
25281 echo "$as_me:$LINENO: checking for $ac_word" >&5
25282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25283 if test "${ac_cv_path_PATCH+set}" = set; then
25284 echo $ECHO_N "(cached) $ECHO_C" >&6
25285 else
25286 case $PATCH in
25287 [\\/]* | ?:[\\/]*)
25288 ac_cv_path_PATCH="$PATCH" # Let the user override the test with a path.
25291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25292 for as_dir in $PATH
25294 IFS=$as_save_IFS
25295 test -z "$as_dir" && as_dir=.
25296 for ac_exec_ext in '' $ac_executable_extensions; do
25297 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25298 ac_cv_path_PATCH="$as_dir/$ac_word$ac_exec_ext"
25299 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25300 break 2
25302 done
25303 done
25306 esac
25308 PATCH=$ac_cv_path_PATCH
25310 if test -n "$PATCH"; then
25311 echo "$as_me:$LINENO: result: $PATCH" >&5
25312 echo "${ECHO_T}$PATCH" >&6
25313 else
25314 echo "$as_me:$LINENO: result: no" >&5
25315 echo "${ECHO_T}no" >&6
25318 if test -z "$PATCH"; then
25319 { { echo "$as_me:$LINENO: error: \\"patch\\" not found in \$PATH, install the development tool named\\"patch\"\" >&5
25320 echo "$as_me: error: \\"patch\\" not found in \$PATH, install the development tool named\\"patch\"\" >&2;}
25321 { (exit 1); exit 1; }; }
25324 if test "$_os" = "SunOS" -o "$_os" = "FreeBSD" -o "$_os" = "Darwin"; then
25325 if test -z "$with_gnu_patch"; then
25326 GNUPATCH=$PATCH
25327 else
25328 if test -x "$with_gnu_patch"; then
25329 GNUPATCH=$with_gnu_patch
25330 else
25331 { { echo "$as_me:$LINENO: error: --with-gnu-patch did not point to an executable" >&5
25332 echo "$as_me: error: --with-gnu-patch did not point to an executable" >&2;}
25333 { (exit 1); exit 1; }; }
25337 echo "$as_me:$LINENO: checking whether $GNUPATCH is GNU patch" >&5
25338 echo $ECHO_N "checking whether $GNUPATCH is GNU patch... $ECHO_C" >&6
25339 if $GNUPATCH --version | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
25340 echo "$as_me:$LINENO: result: yes" >&5
25341 echo "${ECHO_T}yes" >&6
25342 else
25343 { { echo "$as_me:$LINENO: error: no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" >&5
25344 echo "$as_me: error: no, GNU patch needed. install or specify with --with-gnu-patch=/path/to/it" >&2;}
25345 { (exit 1); exit 1; }; }
25349 if test -z "$with_gnu_cp"; then
25350 for ac_prog in gnucp cp
25352 # Extract the first word of "$ac_prog", so it can be a program name with args.
25353 set dummy $ac_prog; ac_word=$2
25354 echo "$as_me:$LINENO: checking for $ac_word" >&5
25355 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25356 if test "${ac_cv_path_GNUCP+set}" = set; then
25357 echo $ECHO_N "(cached) $ECHO_C" >&6
25358 else
25359 case $GNUCP in
25360 [\\/]* | ?:[\\/]*)
25361 ac_cv_path_GNUCP="$GNUCP" # Let the user override the test with a path.
25364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25365 for as_dir in $PATH
25367 IFS=$as_save_IFS
25368 test -z "$as_dir" && as_dir=.
25369 for ac_exec_ext in '' $ac_executable_extensions; do
25370 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25371 ac_cv_path_GNUCP="$as_dir/$ac_word$ac_exec_ext"
25372 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25373 break 2
25375 done
25376 done
25379 esac
25381 GNUCP=$ac_cv_path_GNUCP
25383 if test -n "$GNUCP"; then
25384 echo "$as_me:$LINENO: result: $GNUCP" >&5
25385 echo "${ECHO_T}$GNUCP" >&6
25386 else
25387 echo "$as_me:$LINENO: result: no" >&5
25388 echo "${ECHO_T}no" >&6
25391 test -n "$GNUCP" && break
25392 done
25394 if test -z $GNUCP; then
25395 { { echo "$as_me:$LINENO: error: Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" >&5
25396 echo "$as_me: error: Neither gnucp nor cp found. Install GNU cp and/or specify --with-gnu-cp=/path/to/it" >&2;}
25397 { (exit 1); exit 1; }; }
25399 else
25400 if test -x "$with_gnu_cp"; then
25401 GNUCP=$with_gnu_cp
25402 else
25403 { { echo "$as_me:$LINENO: error: --with-gnu-cp did not point to an executable" >&5
25404 echo "$as_me: error: --with-gnu-cp did not point to an executable" >&2;}
25405 { (exit 1); exit 1; }; }
25409 echo "$as_me:$LINENO: checking whether $GNUCP is GNU cp" >&5
25410 echo $ECHO_N "checking whether $GNUCP is GNU cp... $ECHO_C" >&6
25411 if $GNUCP --version 2>/dev/null | grep "Free Software Foundation" >/dev/null 2>/dev/null; then
25412 echo "$as_me:$LINENO: result: yes" >&5
25413 echo "${ECHO_T}yes" >&6
25414 else
25415 if $GNUCP --version 2>/dev/null | grep "GNU fileutils" >/dev/null 2>/dev/null; then
25416 echo "$as_me:$LINENO: result: yes" >&5
25417 echo "${ECHO_T}yes" >&6
25418 else
25419 if test "$_os" = "Darwin"; then
25420 GNUCP=''
25421 echo "$as_me:$LINENO: result: no gnucp found - using the system's cp command" >&5
25422 echo "${ECHO_T}no gnucp found - using the system's cp command" >&6
25423 else
25424 { { echo "$as_me:$LINENO: error: no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" >&5
25425 echo "$as_me: error: no, GNU cp needed. install or specify with --with-gnu-cp=/path/to/it" >&2;}
25426 { (exit 1); exit 1; }; }
25435 if test "$_os" = "WINNT"; then
25436 CYGWIN_PATH=""
25437 # Extract the first word of "bash", so it can be a program name with args.
25438 set dummy bash; ac_word=$2
25439 echo "$as_me:$LINENO: checking for $ac_word" >&5
25440 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25441 if test "${ac_cv_path_CYGWIN_PATH+set}" = set; then
25442 echo $ECHO_N "(cached) $ECHO_C" >&6
25443 else
25444 case $CYGWIN_PATH in
25445 [\\/]* | ?:[\\/]*)
25446 ac_cv_path_CYGWIN_PATH="$CYGWIN_PATH" # Let the user override the test with a path.
25449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25450 for as_dir in $PATH
25452 IFS=$as_save_IFS
25453 test -z "$as_dir" && as_dir=.
25454 for ac_exec_ext in '' $ac_executable_extensions; do
25455 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25456 ac_cv_path_CYGWIN_PATH="$as_dir/$ac_word$ac_exec_ext"
25457 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25458 break 2
25460 done
25461 done
25464 esac
25466 CYGWIN_PATH=$ac_cv_path_CYGWIN_PATH
25468 if test -n "$CYGWIN_PATH"; then
25469 echo "$as_me:$LINENO: result: $CYGWIN_PATH" >&5
25470 echo "${ECHO_T}$CYGWIN_PATH" >&6
25471 else
25472 echo "$as_me:$LINENO: result: no" >&5
25473 echo "${ECHO_T}no" >&6
25476 CYGWIN_PATH=`dirname "$CYGWIN_PATH"`
25478 if test -z "$CYGWIN_PATH"; then
25479 CYGWIN_PATH="NO_CYGWIN"
25483 if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
25484 echo "$as_me:$LINENO: checking ml.exe assembler path" >&5
25485 echo $ECHO_N "checking ml.exe assembler path... $ECHO_C" >&6
25486 if test -n "$with_asm_home"; then
25487 with_asm_home=`cygpath -u "$with_asm_home"`
25489 if test ! -x "$with_asm_home/ml.exe"; then
25490 # Extract the first word of "ml.exe", so it can be a program name with args.
25491 set dummy ml.exe; ac_word=$2
25492 echo "$as_me:$LINENO: checking for $ac_word" >&5
25493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25494 if test "${ac_cv_path_ML_EXE+set}" = set; then
25495 echo $ECHO_N "(cached) $ECHO_C" >&6
25496 else
25497 case $ML_EXE in
25498 [\\/]* | ?:[\\/]*)
25499 ac_cv_path_ML_EXE="$ML_EXE" # Let the user override the test with a path.
25502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25503 for as_dir in $PATH
25505 IFS=$as_save_IFS
25506 test -z "$as_dir" && as_dir=.
25507 for ac_exec_ext in '' $ac_executable_extensions; do
25508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25509 ac_cv_path_ML_EXE="$as_dir/$ac_word$ac_exec_ext"
25510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25511 break 2
25513 done
25514 done
25517 esac
25519 ML_EXE=$ac_cv_path_ML_EXE
25521 if test -n "$ML_EXE"; then
25522 echo "$as_me:$LINENO: result: $ML_EXE" >&5
25523 echo "${ECHO_T}$ML_EXE" >&6
25524 else
25525 echo "$as_me:$LINENO: result: no" >&5
25526 echo "${ECHO_T}no" >&6
25529 if test -z "$ML_EXE"; then
25530 if test -x "$with_cl_home/bin/ml.exe"; then
25531 with_asm_home=$with_cl_home/bin
25532 echo "$as_me:$LINENO: result: found ($with_asm_home)" >&5
25533 echo "${ECHO_T}found ($with_asm_home)" >&6
25534 else
25535 { { echo "$as_me:$LINENO: error: Configure did not find ml.exe assembler." >&5
25536 echo "$as_me: error: Configure did not find ml.exe assembler." >&2;}
25537 { (exit 1); exit 1; }; }
25539 else
25540 with_asm_home="ASM_IN_PATH"
25543 echo "$as_me:$LINENO: result: $ASM_HOME" >&5
25544 echo "${ECHO_T}$ASM_HOME" >&6
25545 else
25546 with_asm_home="NO_ASM_HOME"
25548 ASM_HOME="$with_asm_home"
25551 if test -z "$with_zip_home"; then
25552 with_zip_home="$with_unzip_home"
25554 if test -n "$with_zip_home" ; then
25555 if test "$_os" = "WINNT"; then
25556 with_zip_home=`cygpath -u "$with_zip_home"`
25558 ZIP="$with_zip_home/zip"
25559 UNZIP="$with_zip_home/unzip"
25560 ZIP_HOME="$with_zip_home"
25561 else
25562 # Extract the first word of "zip", so it can be a program name with args.
25563 set dummy zip; ac_word=$2
25564 echo "$as_me:$LINENO: checking for $ac_word" >&5
25565 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25566 if test "${ac_cv_path_ZIP+set}" = set; then
25567 echo $ECHO_N "(cached) $ECHO_C" >&6
25568 else
25569 case $ZIP in
25570 [\\/]* | ?:[\\/]*)
25571 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
25574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25575 for as_dir in $PATH
25577 IFS=$as_save_IFS
25578 test -z "$as_dir" && as_dir=.
25579 for ac_exec_ext in '' $ac_executable_extensions; do
25580 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25581 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
25582 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25583 break 2
25585 done
25586 done
25589 esac
25591 ZIP=$ac_cv_path_ZIP
25593 if test -n "$ZIP"; then
25594 echo "$as_me:$LINENO: result: $ZIP" >&5
25595 echo "${ECHO_T}$ZIP" >&6
25596 else
25597 echo "$as_me:$LINENO: result: no" >&5
25598 echo "${ECHO_T}no" >&6
25601 # Extract the first word of "unzip", so it can be a program name with args.
25602 set dummy unzip; ac_word=$2
25603 echo "$as_me:$LINENO: checking for $ac_word" >&5
25604 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25605 if test "${ac_cv_path_UNZIP+set}" = set; then
25606 echo $ECHO_N "(cached) $ECHO_C" >&6
25607 else
25608 case $UNZIP in
25609 [\\/]* | ?:[\\/]*)
25610 ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
25613 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25614 for as_dir in $PATH
25616 IFS=$as_save_IFS
25617 test -z "$as_dir" && as_dir=.
25618 for ac_exec_ext in '' $ac_executable_extensions; do
25619 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25620 ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
25621 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25622 break 2
25624 done
25625 done
25628 esac
25630 UNZIP=$ac_cv_path_UNZIP
25632 if test -n "$UNZIP"; then
25633 echo "$as_me:$LINENO: result: $UNZIP" >&5
25634 echo "${ECHO_T}$UNZIP" >&6
25635 else
25636 echo "$as_me:$LINENO: result: no" >&5
25637 echo "${ECHO_T}no" >&6
25640 ZIP_HOME=`dirname "$ZIP"`
25642 if test -z "$ZIP" -o -z "$UNZIP"; then
25643 { { echo "$as_me:$LINENO: error: Zip/Unzip are required to build, please install or use --with-zip-home" >&5
25644 echo "$as_me: error: Zip/Unzip are required to build, please install or use --with-zip-home" >&2;}
25645 { (exit 1); exit 1; }; }
25648 if test "$_os" = "WINNT"; then
25649 if test -n "`$ZIP -h | grep -i WinNT`" ; then
25650 { { echo "$as_me:$LINENO: error: $ZIP found in the path is not the required cygwin version of Info-ZIPs zip.exe." >&5
25651 echo "$as_me: error: $ZIP found in the path is not the required cygwin version of Info-ZIPs zip.exe." >&2;}
25652 { (exit 1); exit 1; }; }
25657 if test "$_os" = "WINNT"; then
25658 echo "$as_me:$LINENO: checking for unicows.dll" >&5
25659 echo $ECHO_N "checking for unicows.dll... $ECHO_C" >&6
25660 if test -x ./external/unicows/unicows.dll; then
25661 echo "$as_me:$LINENO: result: found" >&5
25662 echo "${ECHO_T}found" >&6
25663 else
25664 { { echo "$as_me:$LINENO: error: The Microsoft Layer for Unicode (unicows.dll) is missing in external/unicows/.
25665 Get it from the Microsoft site and put it into external/unicows.
25666 (Note: Microsoft seems to enjoy changing the exact location of this file. You
25667 may have to search Microsoft's website.) Last time it was seen at:
25668 <http://download.microsoft.com/download/b/7/5/b75eace3-00e2-4aa0-9a6f-0b6882c71642/unicows.exe>." >&5
25669 echo "$as_me: error: The Microsoft Layer for Unicode (unicows.dll) is missing in external/unicows/.
25670 Get it from the Microsoft site and put it into external/unicows.
25671 (Note: Microsoft seems to enjoy changing the exact location of this file. You
25672 may have to search Microsoft's website.) Last time it was seen at:
25673 <http://download.microsoft.com/download/b/7/5/b75eace3-00e2-4aa0-9a6f-0b6882c71642/unicows.exe>." >&2;}
25674 { (exit 1); exit 1; }; }
25678 if test "$_os" = "WINNT"; then
25679 echo "$as_me:$LINENO: checking for dbghelp.dll" >&5
25680 echo $ECHO_N "checking for dbghelp.dll... $ECHO_C" >&6
25681 if test -x ./external/dbghelp/dbghelp.dll; then
25682 echo "$as_me:$LINENO: result: found" >&5
25683 echo "${ECHO_T}found" >&6
25684 else
25685 { { echo "$as_me:$LINENO: error: dbghelp.dll is missing in external/dbghelp/.
25686 Get it from the Microsoft site and put it into external/dbghelp.
25687 (Note: Microsoft seems to enjoy changing the exact location of this file. You
25688 may have to search Microsoft's website.) Last time it was seen at:
25689 <http://www.microsoft.com/downloads/release.asp?releaseid=30682>." >&5
25690 echo "$as_me: error: dbghelp.dll is missing in external/dbghelp/.
25691 Get it from the Microsoft site and put it into external/dbghelp.
25692 (Note: Microsoft seems to enjoy changing the exact location of this file. You
25693 may have to search Microsoft's website.) Last time it was seen at:
25694 <http://www.microsoft.com/downloads/release.asp?releaseid=30682>." >&2;}
25695 { (exit 1); exit 1; }; }
25699 if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
25700 if ./oowintool --msvc-copy-dlls ./external/msvcp ; then
25702 else
25703 { { echo "$as_me:$LINENO: error: oowintool failed to copy CRT" >&5
25704 echo "$as_me: error: oowintool failed to copy CRT" >&2;}
25705 { (exit 1); exit 1; }; }
25709 if test "$_os" = "WINNT"; then
25710 echo "$as_me:$LINENO: checking for gdiplus.dll" >&5
25711 echo $ECHO_N "checking for gdiplus.dll... $ECHO_C" >&6
25712 if test -x ./external/gdiplus/gdiplus.dll; then
25713 echo "$as_me:$LINENO: result: found" >&5
25714 echo "${ECHO_T}found" >&6
25715 else
25716 { { echo "$as_me:$LINENO: error: gdiplus.dll is missing in external/gdiplus/.
25717 Get it from the Microsoft site and put it into external/gdiplus.
25718 You may have to search Microsoft's website. Last time it was seen at:
25719 <http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>." >&5
25720 echo "$as_me: error: gdiplus.dll is missing in external/gdiplus/.
25721 Get it from the Microsoft site and put it into external/gdiplus.
25722 You may have to search Microsoft's website. Last time it was seen at:
25723 <http://www.microsoft.com/downloads/details.aspx?familyid=6A63AB9C-DF12-4D41-933C-BE590FEAA05A&displaylang=en>." >&2;}
25724 { (exit 1); exit 1; }; }
25728 if test "$_os" = "WINNT"; then
25729 ./oowintool --msvc-copy-instmsi ./external/msi
25732 if test "$_os" = "WINNT"; then
25733 if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
25734 echo "$as_me:$LINENO: checking for instmsia.exe/instmsiw.exe" >&5
25735 echo $ECHO_N "checking for instmsia.exe/instmsiw.exe... $ECHO_C" >&6
25736 if test -x ./external/msi/instmsia.exe -a -x ./external/msi/instmsiw.exe; then
25737 echo "$as_me:$LINENO: result: found" >&5
25738 echo "${ECHO_T}found" >&6
25739 else
25740 MSIAPATH=`/bin/find "$COMPATH/.." -iname instmsia.exe | head -n 1`
25741 MSIWPATH=`/bin/find "$COMPATH/.." -iname instmsiw.exe | head -n 1`
25742 if test -n "$MSIAPATH" -a -n "$MSIWPATH"; then
25743 cp "$MSIAPATH" ./external/msi/ && chmod +x ./external/msi/instmsia.exe && MSIACOPY="OK"
25744 cp "$MSIWPATH" ./external/msi/ && chmod +x ./external/msi/instmsiw.exe && MSIWCOPY="OK"
25746 if test -z "$MSIACOPY" -o -z "$MSIWCOPY"; then
25747 { { echo "$as_me:$LINENO: error: instmsia.exe and/or instmsiw.exe are/is missing in the default location.
25748 These programs are part of the Visual Studio installation and should be found in a
25749 directory similar to:
25750 \"c:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\Deployment\\MsiRedist\\\"
25751 As the automatic detection fails please copy the files to external/msi/." >&5
25752 echo "$as_me: error: instmsia.exe and/or instmsiw.exe are/is missing in the default location.
25753 These programs are part of the Visual Studio installation and should be found in a
25754 directory similar to:
25755 \"c:\\Program Files\\Microsoft Visual Studio .NET 2003\\Common7\\Tools\\Deployment\\MsiRedist\\\"
25756 As the automatic detection fails please copy the files to external/msi/." >&2;}
25757 { (exit 1); exit 1; }; }
25758 else
25759 echo "$as_me:$LINENO: result: found and copied" >&5
25760 echo "${ECHO_T}found and copied" >&6
25766 echo "$as_me:$LINENO: checking which VCLplugs shall be built" >&5
25767 echo $ECHO_N "checking which VCLplugs shall be built... $ECHO_C" >&6
25768 ENABLE_GTK=""
25769 if test "x$enable_gtk" = "xyes"; then
25770 ENABLE_GTK="TRUE"
25771 R="gtk"
25775 ENABLE_KDE=""
25776 if test "x$enable_kde" = "xyes"; then
25777 ENABLE_KDE="TRUE"
25778 R="$R kde"
25782 ENABLE_KDE4=""
25783 if test "x$enable_kde4" = "xyes"; then
25784 ENABLE_KDE4="TRUE"
25785 R="$R kde4"
25789 if test -z "$R"; then
25790 echo "$as_me:$LINENO: result: none" >&5
25791 echo "${ECHO_T}none" >&6
25792 else
25793 echo "$as_me:$LINENO: result: $R" >&5
25794 echo "${ECHO_T}$R" >&6
25798 ENABLE_GCONF=""
25799 echo "$as_me:$LINENO: checking whether to enable GConf support" >&5
25800 echo $ECHO_N "checking whether to enable GConf support... $ECHO_C" >&6
25801 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$_os" != "OS2" -a "$enable_gconf" = "yes"; then
25802 ENABLE_GCONF="TRUE"
25803 echo "$as_me:$LINENO: result: yes" >&5
25804 echo "${ECHO_T}yes" >&6
25806 succeeded=no
25808 if test -z "$PKG_CONFIG"; then
25809 # Extract the first word of "pkg-config", so it can be a program name with args.
25810 set dummy pkg-config; ac_word=$2
25811 echo "$as_me:$LINENO: checking for $ac_word" >&5
25812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25814 echo $ECHO_N "(cached) $ECHO_C" >&6
25815 else
25816 case $PKG_CONFIG in
25817 [\\/]* | ?:[\\/]*)
25818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25822 for as_dir in $PATH
25824 IFS=$as_save_IFS
25825 test -z "$as_dir" && as_dir=.
25826 for ac_exec_ext in '' $ac_executable_extensions; do
25827 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25830 break 2
25832 done
25833 done
25835 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25837 esac
25839 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25841 if test -n "$PKG_CONFIG"; then
25842 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25843 echo "${ECHO_T}$PKG_CONFIG" >&6
25844 else
25845 echo "$as_me:$LINENO: result: no" >&5
25846 echo "${ECHO_T}no" >&6
25851 if test "$PKG_CONFIG" = "no" ; then
25852 echo "*** The pkg-config script could not be found. Make sure it is"
25853 echo "*** in your path, or set the PKG_CONFIG environment variable"
25854 echo "*** to the full path to pkg-config."
25855 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25856 else
25857 PKG_CONFIG_MIN_VERSION=0.9.0
25858 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25859 echo "$as_me:$LINENO: checking for gconf-2.0 " >&5
25860 echo $ECHO_N "checking for gconf-2.0 ... $ECHO_C" >&6
25862 if $PKG_CONFIG --exists "gconf-2.0 " ; then
25863 echo "$as_me:$LINENO: result: yes" >&5
25864 echo "${ECHO_T}yes" >&6
25865 succeeded=yes
25867 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
25868 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
25869 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 "`
25870 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
25871 echo "${ECHO_T}$GCONF_CFLAGS" >&6
25873 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
25874 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
25875 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 "`
25876 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
25877 echo "${ECHO_T}$GCONF_LIBS" >&6
25878 else
25879 GCONF_CFLAGS=""
25880 GCONF_LIBS=""
25881 ## If we have a custom action on failure, don't print errors, but
25882 ## do set a variable so people can do so.
25883 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 "`
25884 echo $GCONF_PKG_ERRORS
25889 else
25890 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
25891 echo "*** See http://www.freedesktop.org/software/pkgconfig"
25895 if test $succeeded = yes; then
25897 else
25898 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
25899 echo "$as_me: error: Library requirements (gconf-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
25900 { (exit 1); exit 1; }; }
25903 else
25904 echo "$as_me:$LINENO: result: no" >&5
25905 echo "${ECHO_T}no" >&6
25910 ENABLE_GNOMEVFS=""
25911 echo "$as_me:$LINENO: checking whether to enable GNOME VFS support" >&5
25912 echo $ECHO_N "checking whether to enable GNOME VFS support... $ECHO_C" >&6
25913 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gnome_vfs" = "yes"; then
25914 ENABLE_GNOMEVFS="TRUE"
25915 echo "$as_me:$LINENO: result: yes" >&5
25916 echo "${ECHO_T}yes" >&6
25918 succeeded=no
25920 if test -z "$PKG_CONFIG"; then
25921 # Extract the first word of "pkg-config", so it can be a program name with args.
25922 set dummy pkg-config; ac_word=$2
25923 echo "$as_me:$LINENO: checking for $ac_word" >&5
25924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
25925 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
25926 echo $ECHO_N "(cached) $ECHO_C" >&6
25927 else
25928 case $PKG_CONFIG in
25929 [\\/]* | ?:[\\/]*)
25930 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25934 for as_dir in $PATH
25936 IFS=$as_save_IFS
25937 test -z "$as_dir" && as_dir=.
25938 for ac_exec_ext in '' $ac_executable_extensions; do
25939 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25940 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25941 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
25942 break 2
25944 done
25945 done
25947 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
25949 esac
25951 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25953 if test -n "$PKG_CONFIG"; then
25954 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
25955 echo "${ECHO_T}$PKG_CONFIG" >&6
25956 else
25957 echo "$as_me:$LINENO: result: no" >&5
25958 echo "${ECHO_T}no" >&6
25963 if test "$PKG_CONFIG" = "no" ; then
25964 echo "*** The pkg-config script could not be found. Make sure it is"
25965 echo "*** in your path, or set the PKG_CONFIG environment variable"
25966 echo "*** to the full path to pkg-config."
25967 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
25968 else
25969 PKG_CONFIG_MIN_VERSION=0.9.0
25970 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
25971 echo "$as_me:$LINENO: checking for gnome-vfs-2.0 >= 2.6.0 " >&5
25972 echo $ECHO_N "checking for gnome-vfs-2.0 >= 2.6.0 ... $ECHO_C" >&6
25974 if $PKG_CONFIG --exists "gnome-vfs-2.0 >= 2.6.0 " ; then
25975 echo "$as_me:$LINENO: result: yes" >&5
25976 echo "${ECHO_T}yes" >&6
25977 succeeded=yes
25979 echo "$as_me:$LINENO: checking GNOMEVFS_CFLAGS" >&5
25980 echo $ECHO_N "checking GNOMEVFS_CFLAGS... $ECHO_C" >&6
25981 GNOMEVFS_CFLAGS=`$PKG_CONFIG --cflags "gnome-vfs-2.0 >= 2.6.0 "`
25982 echo "$as_me:$LINENO: result: $GNOMEVFS_CFLAGS" >&5
25983 echo "${ECHO_T}$GNOMEVFS_CFLAGS" >&6
25985 echo "$as_me:$LINENO: checking GNOMEVFS_LIBS" >&5
25986 echo $ECHO_N "checking GNOMEVFS_LIBS... $ECHO_C" >&6
25987 GNOMEVFS_LIBS=`$PKG_CONFIG --libs "gnome-vfs-2.0 >= 2.6.0 "`
25988 echo "$as_me:$LINENO: result: $GNOMEVFS_LIBS" >&5
25989 echo "${ECHO_T}$GNOMEVFS_LIBS" >&6
25990 else
25991 GNOMEVFS_CFLAGS=""
25992 GNOMEVFS_LIBS=""
25993 ## If we have a custom action on failure, don't print errors, but
25994 ## do set a variable so people can do so.
25995 GNOMEVFS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gnome-vfs-2.0 >= 2.6.0 "`
25996 echo $GNOMEVFS_PKG_ERRORS
26001 else
26002 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26003 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26007 if test $succeeded = yes; then
26009 else
26010 { { echo "$as_me:$LINENO: error: Library requirements (gnome-vfs-2.0 >= 2.6.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26011 echo "$as_me: error: Library requirements (gnome-vfs-2.0 >= 2.6.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26012 { (exit 1); exit 1; }; }
26015 if test "$ENABLE_GCONF" != "TRUE"; then
26017 succeeded=no
26019 if test -z "$PKG_CONFIG"; then
26020 # Extract the first word of "pkg-config", so it can be a program name with args.
26021 set dummy pkg-config; ac_word=$2
26022 echo "$as_me:$LINENO: checking for $ac_word" >&5
26023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26024 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26025 echo $ECHO_N "(cached) $ECHO_C" >&6
26026 else
26027 case $PKG_CONFIG in
26028 [\\/]* | ?:[\\/]*)
26029 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26032 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26033 for as_dir in $PATH
26035 IFS=$as_save_IFS
26036 test -z "$as_dir" && as_dir=.
26037 for ac_exec_ext in '' $ac_executable_extensions; do
26038 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26039 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26040 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26041 break 2
26043 done
26044 done
26046 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26048 esac
26050 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26052 if test -n "$PKG_CONFIG"; then
26053 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26054 echo "${ECHO_T}$PKG_CONFIG" >&6
26055 else
26056 echo "$as_me:$LINENO: result: no" >&5
26057 echo "${ECHO_T}no" >&6
26062 if test "$PKG_CONFIG" = "no" ; then
26063 echo "*** The pkg-config script could not be found. Make sure it is"
26064 echo "*** in your path, or set the PKG_CONFIG environment variable"
26065 echo "*** to the full path to pkg-config."
26066 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26067 else
26068 PKG_CONFIG_MIN_VERSION=0.9.0
26069 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26070 echo "$as_me:$LINENO: checking for gconf-2.0 " >&5
26071 echo $ECHO_N "checking for gconf-2.0 ... $ECHO_C" >&6
26073 if $PKG_CONFIG --exists "gconf-2.0 " ; then
26074 echo "$as_me:$LINENO: result: yes" >&5
26075 echo "${ECHO_T}yes" >&6
26076 succeeded=yes
26078 echo "$as_me:$LINENO: checking GCONF_CFLAGS" >&5
26079 echo $ECHO_N "checking GCONF_CFLAGS... $ECHO_C" >&6
26080 GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 "`
26081 echo "$as_me:$LINENO: result: $GCONF_CFLAGS" >&5
26082 echo "${ECHO_T}$GCONF_CFLAGS" >&6
26084 echo "$as_me:$LINENO: checking GCONF_LIBS" >&5
26085 echo $ECHO_N "checking GCONF_LIBS... $ECHO_C" >&6
26086 GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 "`
26087 echo "$as_me:$LINENO: result: $GCONF_LIBS" >&5
26088 echo "${ECHO_T}$GCONF_LIBS" >&6
26089 else
26090 GCONF_CFLAGS=""
26091 GCONF_LIBS=""
26092 ## If we have a custom action on failure, don't print errors, but
26093 ## do set a variable so people can do so.
26094 GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 "`
26095 echo $GCONF_PKG_ERRORS
26100 else
26101 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26102 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26106 if test $succeeded = yes; then
26108 else
26109 { { echo "$as_me:$LINENO: error: Library requirements (gconf-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26110 echo "$as_me: error: Library requirements (gconf-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26111 { (exit 1); exit 1; }; }
26115 else
26116 echo "$as_me:$LINENO: result: no" >&5
26117 echo "${ECHO_T}no" >&6
26122 GTK_CFLAGS=""
26123 GTK_LIBS=""
26124 ENABLE_SYSTRAY_GTK=""
26125 ENABLE_DBUS=""
26126 if test "$test_gtk" = "yes"; then
26128 if test "$ENABLE_GTK" = "TRUE" ; then
26130 succeeded=no
26132 if test -z "$PKG_CONFIG"; then
26133 # Extract the first word of "pkg-config", so it can be a program name with args.
26134 set dummy pkg-config; ac_word=$2
26135 echo "$as_me:$LINENO: checking for $ac_word" >&5
26136 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26137 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26138 echo $ECHO_N "(cached) $ECHO_C" >&6
26139 else
26140 case $PKG_CONFIG in
26141 [\\/]* | ?:[\\/]*)
26142 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26146 for as_dir in $PATH
26148 IFS=$as_save_IFS
26149 test -z "$as_dir" && as_dir=.
26150 for ac_exec_ext in '' $ac_executable_extensions; do
26151 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26152 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26153 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26154 break 2
26156 done
26157 done
26159 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26161 esac
26163 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26165 if test -n "$PKG_CONFIG"; then
26166 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26167 echo "${ECHO_T}$PKG_CONFIG" >&6
26168 else
26169 echo "$as_me:$LINENO: result: no" >&5
26170 echo "${ECHO_T}no" >&6
26175 if test "$PKG_CONFIG" = "no" ; then
26176 echo "*** The pkg-config script could not be found. Make sure it is"
26177 echo "*** in your path, or set the PKG_CONFIG environment variable"
26178 echo "*** to the full path to pkg-config."
26179 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26180 else
26181 PKG_CONFIG_MIN_VERSION=0.9.0
26182 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26183 echo "$as_me:$LINENO: checking for gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " >&5
26184 echo $ECHO_N "checking for gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 ... $ECHO_C" >&6
26186 if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 " ; then
26187 echo "$as_me:$LINENO: result: yes" >&5
26188 echo "${ECHO_T}yes" >&6
26189 succeeded=yes
26191 echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
26192 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6
26193 GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 "`
26194 echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
26195 echo "${ECHO_T}$GTK_CFLAGS" >&6
26197 echo "$as_me:$LINENO: checking GTK_LIBS" >&5
26198 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6
26199 GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 "`
26200 echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
26201 echo "${ECHO_T}$GTK_LIBS" >&6
26202 else
26203 GTK_CFLAGS=""
26204 GTK_LIBS=""
26205 ## If we have a custom action on failure, don't print errors, but
26206 ## do set a variable so people can do so.
26207 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 gdk-pixbuf-xlib-2.0 >= 2.2 "`
26213 else
26214 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26215 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26219 if test $succeeded = yes; then
26221 else
26222 { { echo "$as_me:$LINENO: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&5
26223 echo "$as_me: error: requirements to build the gtk-plugin not met. Use --disable-gtk or install the missing packages" >&2;}
26224 { (exit 1); exit 1; }; }
26227 BUILD_TYPE="$BUILD_TYPE GTK"
26229 if test "x$enable_systray" = "xyes"; then
26230 ENABLE_SYSTRAY_GTK="TRUE"
26231 BUILD_TYPE="$BUILD_TYPE SYSTRAY_GTK"
26234 echo "$as_me:$LINENO: checking whether to enable DBUS support" >&5
26235 echo $ECHO_N "checking whether to enable DBUS support... $ECHO_C" >&6
26236 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_dbus" = "yes"; then
26237 ENABLE_DBUS="TRUE"
26238 echo "$as_me:$LINENO: result: yes" >&5
26239 echo "${ECHO_T}yes" >&6
26241 succeeded=no
26243 if test -z "$PKG_CONFIG"; then
26244 # Extract the first word of "pkg-config", so it can be a program name with args.
26245 set dummy pkg-config; ac_word=$2
26246 echo "$as_me:$LINENO: checking for $ac_word" >&5
26247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26248 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26249 echo $ECHO_N "(cached) $ECHO_C" >&6
26250 else
26251 case $PKG_CONFIG in
26252 [\\/]* | ?:[\\/]*)
26253 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26257 for as_dir in $PATH
26259 IFS=$as_save_IFS
26260 test -z "$as_dir" && as_dir=.
26261 for ac_exec_ext in '' $ac_executable_extensions; do
26262 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26263 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26265 break 2
26267 done
26268 done
26270 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26272 esac
26274 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26276 if test -n "$PKG_CONFIG"; then
26277 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26278 echo "${ECHO_T}$PKG_CONFIG" >&6
26279 else
26280 echo "$as_me:$LINENO: result: no" >&5
26281 echo "${ECHO_T}no" >&6
26286 if test "$PKG_CONFIG" = "no" ; then
26287 echo "*** The pkg-config script could not be found. Make sure it is"
26288 echo "*** in your path, or set the PKG_CONFIG environment variable"
26289 echo "*** to the full path to pkg-config."
26290 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26291 else
26292 PKG_CONFIG_MIN_VERSION=0.9.0
26293 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26294 echo "$as_me:$LINENO: checking for dbus-glib-1 >= 0.70 " >&5
26295 echo $ECHO_N "checking for dbus-glib-1 >= 0.70 ... $ECHO_C" >&6
26297 if $PKG_CONFIG --exists "dbus-glib-1 >= 0.70 " ; then
26298 echo "$as_me:$LINENO: result: yes" >&5
26299 echo "${ECHO_T}yes" >&6
26300 succeeded=yes
26302 echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
26303 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6
26304 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-glib-1 >= 0.70 "`
26305 echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
26306 echo "${ECHO_T}$DBUS_CFLAGS" >&6
26308 echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
26309 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6
26310 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-glib-1 >= 0.70 "`
26311 echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
26312 echo "${ECHO_T}$DBUS_LIBS" >&6
26313 else
26314 DBUS_CFLAGS=""
26315 DBUS_LIBS=""
26316 ## If we have a custom action on failure, don't print errors, but
26317 ## do set a variable so people can do so.
26318 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-glib-1 >= 0.70 "`
26319 echo $DBUS_PKG_ERRORS
26324 else
26325 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26326 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26330 if test $succeeded = yes; then
26332 else
26333 { { echo "$as_me:$LINENO: error: Library requirements (dbus-glib-1 >= 0.70 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26334 echo "$as_me: error: Library requirements (dbus-glib-1 >= 0.70 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26335 { (exit 1); exit 1; }; }
26338 else
26339 echo "$as_me:$LINENO: result: no" >&5
26340 echo "${ECHO_T}no" >&6
26343 echo "$as_me:$LINENO: checking whether to enable GIO support" >&5
26344 echo $ECHO_N "checking whether to enable GIO support... $ECHO_C" >&6
26345 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$enable_gio" = "yes"; then
26346 if test "$ENABLE_GNOMEVFS" = "TRUE" ; then
26347 { { echo "$as_me:$LINENO: error: please use --enable-gio only together with --disable-gnome-vfs." >&5
26348 echo "$as_me: error: please use --enable-gio only together with --disable-gnome-vfs." >&2;}
26349 { (exit 1); exit 1; }; }
26351 ENABLE_GIO="TRUE"
26352 echo "$as_me:$LINENO: result: yes" >&5
26353 echo "${ECHO_T}yes" >&6
26355 succeeded=no
26357 if test -z "$PKG_CONFIG"; then
26358 # Extract the first word of "pkg-config", so it can be a program name with args.
26359 set dummy pkg-config; ac_word=$2
26360 echo "$as_me:$LINENO: checking for $ac_word" >&5
26361 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26362 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26363 echo $ECHO_N "(cached) $ECHO_C" >&6
26364 else
26365 case $PKG_CONFIG in
26366 [\\/]* | ?:[\\/]*)
26367 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26371 for as_dir in $PATH
26373 IFS=$as_save_IFS
26374 test -z "$as_dir" && as_dir=.
26375 for ac_exec_ext in '' $ac_executable_extensions; do
26376 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26377 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26378 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26379 break 2
26381 done
26382 done
26384 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26386 esac
26388 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26390 if test -n "$PKG_CONFIG"; then
26391 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26392 echo "${ECHO_T}$PKG_CONFIG" >&6
26393 else
26394 echo "$as_me:$LINENO: result: no" >&5
26395 echo "${ECHO_T}no" >&6
26400 if test "$PKG_CONFIG" = "no" ; then
26401 echo "*** The pkg-config script could not be found. Make sure it is"
26402 echo "*** in your path, or set the PKG_CONFIG environment variable"
26403 echo "*** to the full path to pkg-config."
26404 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26405 else
26406 PKG_CONFIG_MIN_VERSION=0.9.0
26407 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26408 echo "$as_me:$LINENO: checking for gio-2.0 " >&5
26409 echo $ECHO_N "checking for gio-2.0 ... $ECHO_C" >&6
26411 if $PKG_CONFIG --exists "gio-2.0 " ; then
26412 echo "$as_me:$LINENO: result: yes" >&5
26413 echo "${ECHO_T}yes" >&6
26414 succeeded=yes
26416 echo "$as_me:$LINENO: checking GIO_CFLAGS" >&5
26417 echo $ECHO_N "checking GIO_CFLAGS... $ECHO_C" >&6
26418 GIO_CFLAGS=`$PKG_CONFIG --cflags "gio-2.0 "`
26419 echo "$as_me:$LINENO: result: $GIO_CFLAGS" >&5
26420 echo "${ECHO_T}$GIO_CFLAGS" >&6
26422 echo "$as_me:$LINENO: checking GIO_LIBS" >&5
26423 echo $ECHO_N "checking GIO_LIBS... $ECHO_C" >&6
26424 GIO_LIBS=`$PKG_CONFIG --libs "gio-2.0 "`
26425 echo "$as_me:$LINENO: result: $GIO_LIBS" >&5
26426 echo "${ECHO_T}$GIO_LIBS" >&6
26427 else
26428 GIO_CFLAGS=""
26429 GIO_LIBS=""
26430 ## If we have a custom action on failure, don't print errors, but
26431 ## do set a variable so people can do so.
26432 GIO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gio-2.0 "`
26433 echo $GIO_PKG_ERRORS
26438 else
26439 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26440 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26444 if test $succeeded = yes; then
26446 else
26447 { { echo "$as_me:$LINENO: error: Library requirements (gio-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26448 echo "$as_me: error: Library requirements (gio-2.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26449 { (exit 1); exit 1; }; }
26452 else
26453 echo "$as_me:$LINENO: result: no" >&5
26454 echo "${ECHO_T}no" >&6
26467 ENABLE_CAIRO=""
26468 BUILD_PIXMAN=""
26469 SYSTEM_CAIRO=""
26471 if test "$test_cairo" = "yes"; then
26473 echo "$as_me:$LINENO: checking whether to use cairo" >&5
26474 echo $ECHO_N "checking whether to use cairo... $ECHO_C" >&6
26475 if test "x$enable_cairo" != "xno" ; then
26476 ENABLE_CAIRO="TRUE"
26477 echo "$as_me:$LINENO: result: yes" >&5
26478 echo "${ECHO_T}yes" >&6
26479 echo "$as_me:$LINENO: checking which cairo to use" >&5
26480 echo $ECHO_N "checking which cairo to use... $ECHO_C" >&6
26481 if test -n "$with_system_cairo" -o -n "$with_system_libs" && \
26482 test "$with_system_cairo" != "no"; then
26483 echo "$as_me:$LINENO: result: external" >&5
26484 echo "${ECHO_T}external" >&6
26485 SYSTEM_CAIRO=YES
26488 succeeded=no
26490 if test -z "$PKG_CONFIG"; then
26491 # Extract the first word of "pkg-config", so it can be a program name with args.
26492 set dummy pkg-config; ac_word=$2
26493 echo "$as_me:$LINENO: checking for $ac_word" >&5
26494 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
26495 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
26496 echo $ECHO_N "(cached) $ECHO_C" >&6
26497 else
26498 case $PKG_CONFIG in
26499 [\\/]* | ?:[\\/]*)
26500 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
26503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26504 for as_dir in $PATH
26506 IFS=$as_save_IFS
26507 test -z "$as_dir" && as_dir=.
26508 for ac_exec_ext in '' $ac_executable_extensions; do
26509 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
26510 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
26511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
26512 break 2
26514 done
26515 done
26517 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
26519 esac
26521 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
26523 if test -n "$PKG_CONFIG"; then
26524 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
26525 echo "${ECHO_T}$PKG_CONFIG" >&6
26526 else
26527 echo "$as_me:$LINENO: result: no" >&5
26528 echo "${ECHO_T}no" >&6
26533 if test "$PKG_CONFIG" = "no" ; then
26534 echo "*** The pkg-config script could not be found. Make sure it is"
26535 echo "*** in your path, or set the PKG_CONFIG environment variable"
26536 echo "*** to the full path to pkg-config."
26537 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
26538 else
26539 PKG_CONFIG_MIN_VERSION=0.9.0
26540 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
26541 echo "$as_me:$LINENO: checking for cairo >= 1.0.2 " >&5
26542 echo $ECHO_N "checking for cairo >= 1.0.2 ... $ECHO_C" >&6
26544 if $PKG_CONFIG --exists "cairo >= 1.0.2 " ; then
26545 echo "$as_me:$LINENO: result: yes" >&5
26546 echo "${ECHO_T}yes" >&6
26547 succeeded=yes
26549 echo "$as_me:$LINENO: checking CAIRO_CFLAGS" >&5
26550 echo $ECHO_N "checking CAIRO_CFLAGS... $ECHO_C" >&6
26551 CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.0.2 "`
26552 echo "$as_me:$LINENO: result: $CAIRO_CFLAGS" >&5
26553 echo "${ECHO_T}$CAIRO_CFLAGS" >&6
26555 echo "$as_me:$LINENO: checking CAIRO_LIBS" >&5
26556 echo $ECHO_N "checking CAIRO_LIBS... $ECHO_C" >&6
26557 CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.0.2 "`
26558 echo "$as_me:$LINENO: result: $CAIRO_LIBS" >&5
26559 echo "${ECHO_T}$CAIRO_LIBS" >&6
26560 else
26561 CAIRO_CFLAGS=""
26562 CAIRO_LIBS=""
26563 ## If we have a custom action on failure, don't print errors, but
26564 ## do set a variable so people can do so.
26565 CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.0.2 "`
26566 echo $CAIRO_PKG_ERRORS
26571 else
26572 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
26573 echo "*** See http://www.freedesktop.org/software/pkgconfig"
26577 if test $succeeded = yes; then
26579 else
26580 { { echo "$as_me:$LINENO: error: Library requirements (cairo >= 1.0.2 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
26581 echo "$as_me: error: Library requirements (cairo >= 1.0.2 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
26582 { (exit 1); exit 1; }; }
26585 if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a "$ENABLE_FONTCONFIG" != "TRUE" ; then
26586 { { echo "$as_me:$LINENO: error: Cairo library requires fontconfig." >&5
26587 echo "$as_me: error: Cairo library requires fontconfig." >&2;}
26588 { (exit 1); exit 1; }; }
26590 if test "$with_system_xrender_headers" = "yes"; then
26591 echo "$as_me:$LINENO: checking whether Xrender.h defines PictStandardA8" >&5
26592 echo $ECHO_N "checking whether Xrender.h defines PictStandardA8... $ECHO_C" >&6
26593 if test "$cross_compiling" = yes; then
26594 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
26595 See \`config.log' for more details." >&5
26596 echo "$as_me: error: cannot run test program while cross compiling
26597 See \`config.log' for more details." >&2;}
26598 { (exit 1); exit 1; }; }
26599 else
26600 cat >conftest.$ac_ext <<_ACEOF
26601 /* confdefs.h. */
26602 _ACEOF
26603 cat confdefs.h >>conftest.$ac_ext
26604 cat >>conftest.$ac_ext <<_ACEOF
26605 /* end confdefs.h. */
26607 #include <X11/extensions/Xrender.h>
26609 int main(int argc, char **argv) {
26610 #ifdef PictStandardA8
26611 return 0;
26612 #else
26613 return 1;
26614 #endif
26617 _ACEOF
26618 rm -f conftest$ac_exeext
26619 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26620 (eval $ac_link) 2>&5
26621 ac_status=$?
26622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
26624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26625 (eval $ac_try) 2>&5
26626 ac_status=$?
26627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26628 (exit $ac_status); }; }; then
26629 echo "$as_me:$LINENO: result: yes" >&5
26630 echo "${ECHO_T}yes" >&6
26631 else
26632 echo "$as_me: program exited with status $ac_status" >&5
26633 echo "$as_me: failed program was:" >&5
26634 sed 's/^/| /' conftest.$ac_ext >&5
26636 ( exit $ac_status )
26637 { { echo "$as_me:$LINENO: error: no, X headers too old." >&5
26638 echo "$as_me: error: no, X headers too old." >&2;}
26639 { (exit 1); exit 1; }; }
26641 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
26644 else
26645 BUILD_TYPE="$BUILD_TYPE CAIRO"
26646 if test "$build_cpu" != "x86_64"; then
26647 BUILD_PIXMAN=YES
26649 echo "$as_me:$LINENO: result: internal" >&5
26650 echo "${ECHO_T}internal" >&6
26652 else
26653 echo "$as_me:$LINENO: result: no" >&5
26654 echo "${ECHO_T}no" >&6
26665 echo "$as_me:$LINENO: checking whether to build the OpenGL Transitions component" >&5
26666 echo $ECHO_N "checking whether to build the OpenGL Transitions component... $ECHO_C" >&6
26667 ENABLE_OPENGL=
26669 if test "x$enable_opengl" != "xno" ; then
26670 echo "$as_me:$LINENO: result: yes" >&5
26671 echo "${ECHO_T}yes" >&6
26672 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26673 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26674 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26675 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26676 echo $ECHO_N "(cached) $ECHO_C" >&6
26678 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26679 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26680 else
26681 # Is the header compilable?
26682 echo "$as_me:$LINENO: checking GL/gl.h usability" >&5
26683 echo $ECHO_N "checking GL/gl.h usability... $ECHO_C" >&6
26684 cat >conftest.$ac_ext <<_ACEOF
26685 /* confdefs.h. */
26686 _ACEOF
26687 cat confdefs.h >>conftest.$ac_ext
26688 cat >>conftest.$ac_ext <<_ACEOF
26689 /* end confdefs.h. */
26690 $ac_includes_default
26691 #include <GL/gl.h>
26692 _ACEOF
26693 rm -f conftest.$ac_objext
26694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26695 (eval $ac_compile) 2>conftest.er1
26696 ac_status=$?
26697 grep -v '^ *+' conftest.er1 >conftest.err
26698 rm -f conftest.er1
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } &&
26702 { ac_try='test -z "$ac_c_werror_flag"
26703 || test ! -s conftest.err'
26704 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26705 (eval $ac_try) 2>&5
26706 ac_status=$?
26707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26708 (exit $ac_status); }; } &&
26709 { ac_try='test -s conftest.$ac_objext'
26710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26711 (eval $ac_try) 2>&5
26712 ac_status=$?
26713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26714 (exit $ac_status); }; }; then
26715 ac_header_compiler=yes
26716 else
26717 echo "$as_me: failed program was:" >&5
26718 sed 's/^/| /' conftest.$ac_ext >&5
26720 ac_header_compiler=no
26722 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26723 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26724 echo "${ECHO_T}$ac_header_compiler" >&6
26726 # Is the header present?
26727 echo "$as_me:$LINENO: checking GL/gl.h presence" >&5
26728 echo $ECHO_N "checking GL/gl.h presence... $ECHO_C" >&6
26729 cat >conftest.$ac_ext <<_ACEOF
26730 /* confdefs.h. */
26731 _ACEOF
26732 cat confdefs.h >>conftest.$ac_ext
26733 cat >>conftest.$ac_ext <<_ACEOF
26734 /* end confdefs.h. */
26735 #include <GL/gl.h>
26736 _ACEOF
26737 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26738 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26739 ac_status=$?
26740 grep -v '^ *+' conftest.er1 >conftest.err
26741 rm -f conftest.er1
26742 cat conftest.err >&5
26743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26744 (exit $ac_status); } >/dev/null; then
26745 if test -s conftest.err; then
26746 ac_cpp_err=$ac_c_preproc_warn_flag
26747 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26748 else
26749 ac_cpp_err=
26751 else
26752 ac_cpp_err=yes
26754 if test -z "$ac_cpp_err"; then
26755 ac_header_preproc=yes
26756 else
26757 echo "$as_me: failed program was:" >&5
26758 sed 's/^/| /' conftest.$ac_ext >&5
26760 ac_header_preproc=no
26762 rm -f conftest.err conftest.$ac_ext
26763 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26764 echo "${ECHO_T}$ac_header_preproc" >&6
26766 # So? What about this header?
26767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26768 yes:no: )
26769 { echo "$as_me:$LINENO: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&5
26770 echo "$as_me: WARNING: GL/gl.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26771 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the compiler's result" >&5
26772 echo "$as_me: WARNING: GL/gl.h: proceeding with the compiler's result" >&2;}
26773 ac_header_preproc=yes
26775 no:yes:* )
26776 { echo "$as_me:$LINENO: WARNING: GL/gl.h: present but cannot be compiled" >&5
26777 echo "$as_me: WARNING: GL/gl.h: present but cannot be compiled" >&2;}
26778 { echo "$as_me:$LINENO: WARNING: GL/gl.h: check for missing prerequisite headers?" >&5
26779 echo "$as_me: WARNING: GL/gl.h: check for missing prerequisite headers?" >&2;}
26780 { echo "$as_me:$LINENO: WARNING: GL/gl.h: see the Autoconf documentation" >&5
26781 echo "$as_me: WARNING: GL/gl.h: see the Autoconf documentation" >&2;}
26782 { echo "$as_me:$LINENO: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&5
26783 echo "$as_me: WARNING: GL/gl.h: section \"Present But Cannot Be Compiled\"" >&2;}
26784 { echo "$as_me:$LINENO: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&5
26785 echo "$as_me: WARNING: GL/gl.h: proceeding with the preprocessor's result" >&2;}
26786 { echo "$as_me:$LINENO: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&5
26787 echo "$as_me: WARNING: GL/gl.h: in the future, the compiler will take precedence" >&2;}
26789 cat <<\_ASBOX
26790 ## ------------------------------------------ ##
26791 ## Report this to the AC_PACKAGE_NAME lists. ##
26792 ## ------------------------------------------ ##
26793 _ASBOX
26795 sed "s/^/$as_me: WARNING: /" >&2
26797 esac
26798 echo "$as_me:$LINENO: checking for GL/gl.h" >&5
26799 echo $ECHO_N "checking for GL/gl.h... $ECHO_C" >&6
26800 if test "${ac_cv_header_GL_gl_h+set}" = set; then
26801 echo $ECHO_N "(cached) $ECHO_C" >&6
26802 else
26803 ac_cv_header_GL_gl_h=$ac_header_preproc
26805 echo "$as_me:$LINENO: result: $ac_cv_header_GL_gl_h" >&5
26806 echo "${ECHO_T}$ac_cv_header_GL_gl_h" >&6
26809 if test $ac_cv_header_GL_gl_h = yes; then
26811 else
26812 { { echo "$as_me:$LINENO: error: OpenGL headers not found" >&5
26813 echo "$as_me: error: OpenGL headers not found" >&2;}
26814 { (exit 1); exit 1; }; }
26819 echo "$as_me:$LINENO: checking for main in -lGL" >&5
26820 echo $ECHO_N "checking for main in -lGL... $ECHO_C" >&6
26821 if test "${ac_cv_lib_GL_main+set}" = set; then
26822 echo $ECHO_N "(cached) $ECHO_C" >&6
26823 else
26824 ac_check_lib_save_LIBS=$LIBS
26825 LIBS="-lGL $LIBS"
26826 cat >conftest.$ac_ext <<_ACEOF
26827 /* confdefs.h. */
26828 _ACEOF
26829 cat confdefs.h >>conftest.$ac_ext
26830 cat >>conftest.$ac_ext <<_ACEOF
26831 /* end confdefs.h. */
26835 main ()
26837 main ();
26839 return 0;
26841 _ACEOF
26842 rm -f conftest.$ac_objext conftest$ac_exeext
26843 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26844 (eval $ac_link) 2>conftest.er1
26845 ac_status=$?
26846 grep -v '^ *+' conftest.er1 >conftest.err
26847 rm -f conftest.er1
26848 cat conftest.err >&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); } &&
26851 { ac_try='test -z "$ac_c_werror_flag"
26852 || test ! -s conftest.err'
26853 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26854 (eval $ac_try) 2>&5
26855 ac_status=$?
26856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26857 (exit $ac_status); }; } &&
26858 { ac_try='test -s conftest$ac_exeext'
26859 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26860 (eval $ac_try) 2>&5
26861 ac_status=$?
26862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26863 (exit $ac_status); }; }; then
26864 ac_cv_lib_GL_main=yes
26865 else
26866 echo "$as_me: failed program was:" >&5
26867 sed 's/^/| /' conftest.$ac_ext >&5
26869 ac_cv_lib_GL_main=no
26871 rm -f conftest.err conftest.$ac_objext \
26872 conftest$ac_exeext conftest.$ac_ext
26873 LIBS=$ac_check_lib_save_LIBS
26875 echo "$as_me:$LINENO: result: $ac_cv_lib_GL_main" >&5
26876 echo "${ECHO_T}$ac_cv_lib_GL_main" >&6
26877 if test $ac_cv_lib_GL_main = yes; then
26878 cat >>confdefs.h <<_ACEOF
26879 #define HAVE_LIBGL 1
26880 _ACEOF
26882 LIBS="-lGL $LIBS"
26884 else
26885 { { echo "$as_me:$LINENO: error: libGL not installed or functional" >&5
26886 echo "$as_me: error: libGL not installed or functional" >&2;}
26887 { (exit 1); exit 1; }; }
26891 echo "$as_me:$LINENO: checking for main in -lGLU" >&5
26892 echo $ECHO_N "checking for main in -lGLU... $ECHO_C" >&6
26893 if test "${ac_cv_lib_GLU_main+set}" = set; then
26894 echo $ECHO_N "(cached) $ECHO_C" >&6
26895 else
26896 ac_check_lib_save_LIBS=$LIBS
26897 LIBS="-lGLU $LIBS"
26898 cat >conftest.$ac_ext <<_ACEOF
26899 /* confdefs.h. */
26900 _ACEOF
26901 cat confdefs.h >>conftest.$ac_ext
26902 cat >>conftest.$ac_ext <<_ACEOF
26903 /* end confdefs.h. */
26907 main ()
26909 main ();
26911 return 0;
26913 _ACEOF
26914 rm -f conftest.$ac_objext conftest$ac_exeext
26915 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26916 (eval $ac_link) 2>conftest.er1
26917 ac_status=$?
26918 grep -v '^ *+' conftest.er1 >conftest.err
26919 rm -f conftest.er1
26920 cat conftest.err >&5
26921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26922 (exit $ac_status); } &&
26923 { ac_try='test -z "$ac_c_werror_flag"
26924 || test ! -s conftest.err'
26925 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26926 (eval $ac_try) 2>&5
26927 ac_status=$?
26928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26929 (exit $ac_status); }; } &&
26930 { ac_try='test -s conftest$ac_exeext'
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26933 ac_status=$?
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; }; then
26936 ac_cv_lib_GLU_main=yes
26937 else
26938 echo "$as_me: failed program was:" >&5
26939 sed 's/^/| /' conftest.$ac_ext >&5
26941 ac_cv_lib_GLU_main=no
26943 rm -f conftest.err conftest.$ac_objext \
26944 conftest$ac_exeext conftest.$ac_ext
26945 LIBS=$ac_check_lib_save_LIBS
26947 echo "$as_me:$LINENO: result: $ac_cv_lib_GLU_main" >&5
26948 echo "${ECHO_T}$ac_cv_lib_GLU_main" >&6
26949 if test $ac_cv_lib_GLU_main = yes; then
26950 cat >>confdefs.h <<_ACEOF
26951 #define HAVE_LIBGLU 1
26952 _ACEOF
26954 LIBS="-lGLU $LIBS"
26956 else
26957 { { echo "$as_me:$LINENO: error: libGLU not installed or functional" >&5
26958 echo "$as_me: error: libGLU not installed or functional" >&2;}
26959 { (exit 1); exit 1; }; }
26962 ENABLE_OPENGL=TRUE
26963 else
26964 echo "$as_me:$LINENO: result: no" >&5
26965 echo "${ECHO_T}no" >&6
26970 echo "$as_me:$LINENO: checking whether to build extra presenter ui" >&5
26971 echo $ECHO_N "checking whether to build extra presenter ui... $ECHO_C" >&6
26972 if test -n "$enable_presenter_extra_ui" -a "$enable_presenter_extra_ui" != "no"; then
26973 echo "$as_me:$LINENO: result: yes" >&5
26974 echo "${ECHO_T}yes" >&6
26975 ENABLE_PRESENTER_EXTRA_UI=YES
26976 else
26977 echo "$as_me:$LINENO: result: no" >&5
26978 echo "${ECHO_T}no" >&6
26979 ENABLE_PRESENTER_EXTRA_UI=NO
26983 echo "$as_me:$LINENO: checking whether to build the Presentation Minimizer extension" >&5
26984 echo $ECHO_N "checking whether to build the Presentation Minimizer extension... $ECHO_C" >&6
26985 if test -n "$enable_minimizer" -a "$enable_minimizer" != "no"; then
26986 echo "$as_me:$LINENO: result: yes" >&5
26987 echo "${ECHO_T}yes" >&6
26988 ENABLE_MINIMIZER=YES
26989 else
26990 echo "$as_me:$LINENO: result: no" >&5
26991 echo "${ECHO_T}no" >&6
26992 ENABLE_MINIMIZER=NO
26996 echo "$as_me:$LINENO: checking whether to build the Presenter Screen extension" >&5
26997 echo $ECHO_N "checking whether to build the Presenter Screen extension... $ECHO_C" >&6
26998 if test -n "$enable_presenter_console" -a "$enable_presenter_screen" != "no"; then
26999 echo "$as_me:$LINENO: result: yes" >&5
27000 echo "${ECHO_T}yes" >&6
27001 ENABLE_PRESENTER_SCREEN=YES
27002 else
27003 echo "$as_me:$LINENO: result: no" >&5
27004 echo "${ECHO_T}no" >&6
27005 ENABLE_PRESENTER_SCREEN=NO
27009 echo "$as_me:$LINENO: checking whether to build the PDF Import extension" >&5
27010 echo $ECHO_N "checking whether to build the PDF Import extension... $ECHO_C" >&6
27011 if test -n "$enable_pdfimport" -a "$enable_pdfimport" != "no"; then
27012 echo "$as_me:$LINENO: result: yes" >&5
27013 echo "${ECHO_T}yes" >&6
27014 ENABLE_PDFIMPORT=YES
27016 echo "$as_me:$LINENO: checking which pdf backend to use" >&5
27017 echo $ECHO_N "checking which pdf backend to use... $ECHO_C" >&6
27018 if test -n "$with_system_poppler" -o -n "$with_system_libs" && \
27019 test "$with_system_poppler" != "no"; then
27020 echo "$as_me:$LINENO: result: external" >&5
27021 echo "${ECHO_T}external" >&6
27022 SYSTEM_POPPLER=YES
27024 succeeded=no
27026 if test -z "$PKG_CONFIG"; then
27027 # Extract the first word of "pkg-config", so it can be a program name with args.
27028 set dummy pkg-config; ac_word=$2
27029 echo "$as_me:$LINENO: checking for $ac_word" >&5
27030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
27031 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
27032 echo $ECHO_N "(cached) $ECHO_C" >&6
27033 else
27034 case $PKG_CONFIG in
27035 [\\/]* | ?:[\\/]*)
27036 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
27039 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27040 for as_dir in $PATH
27042 IFS=$as_save_IFS
27043 test -z "$as_dir" && as_dir=.
27044 for ac_exec_ext in '' $ac_executable_extensions; do
27045 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
27046 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
27047 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
27048 break 2
27050 done
27051 done
27053 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
27055 esac
27057 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
27059 if test -n "$PKG_CONFIG"; then
27060 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
27061 echo "${ECHO_T}$PKG_CONFIG" >&6
27062 else
27063 echo "$as_me:$LINENO: result: no" >&5
27064 echo "${ECHO_T}no" >&6
27069 if test "$PKG_CONFIG" = "no" ; then
27070 echo "*** The pkg-config script could not be found. Make sure it is"
27071 echo "*** in your path, or set the PKG_CONFIG environment variable"
27072 echo "*** to the full path to pkg-config."
27073 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
27074 else
27075 PKG_CONFIG_MIN_VERSION=0.9.0
27076 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
27077 echo "$as_me:$LINENO: checking for poppler >= 0.8.0 " >&5
27078 echo $ECHO_N "checking for poppler >= 0.8.0 ... $ECHO_C" >&6
27080 if $PKG_CONFIG --exists "poppler >= 0.8.0 " ; then
27081 echo "$as_me:$LINENO: result: yes" >&5
27082 echo "${ECHO_T}yes" >&6
27083 succeeded=yes
27085 echo "$as_me:$LINENO: checking POPPLER_CFLAGS" >&5
27086 echo $ECHO_N "checking POPPLER_CFLAGS... $ECHO_C" >&6
27087 POPPLER_CFLAGS=`$PKG_CONFIG --cflags "poppler >= 0.8.0 "`
27088 echo "$as_me:$LINENO: result: $POPPLER_CFLAGS" >&5
27089 echo "${ECHO_T}$POPPLER_CFLAGS" >&6
27091 echo "$as_me:$LINENO: checking POPPLER_LIBS" >&5
27092 echo $ECHO_N "checking POPPLER_LIBS... $ECHO_C" >&6
27093 POPPLER_LIBS=`$PKG_CONFIG --libs "poppler >= 0.8.0 "`
27094 echo "$as_me:$LINENO: result: $POPPLER_LIBS" >&5
27095 echo "${ECHO_T}$POPPLER_LIBS" >&6
27096 else
27097 POPPLER_CFLAGS=""
27098 POPPLER_LIBS=""
27099 ## If we have a custom action on failure, don't print errors, but
27100 ## do set a variable so people can do so.
27101 POPPLER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "poppler >= 0.8.0 "`
27102 echo $POPPLER_PKG_ERRORS
27107 else
27108 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
27109 echo "*** See http://www.freedesktop.org/software/pkgconfig"
27113 if test $succeeded = yes; then
27115 else
27116 { { echo "$as_me:$LINENO: error: Library requirements (poppler >= 0.8.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
27117 echo "$as_me: error: Library requirements (poppler >= 0.8.0 ) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
27118 { (exit 1); exit 1; }; }
27121 else
27122 echo "$as_me:$LINENO: result: internal" >&5
27123 echo "${ECHO_T}internal" >&6
27124 SYSTEM_POPPLER=NO
27125 BUILD_TYPE="$BUILD_TYPE XPDF"
27126 echo "$as_me:$LINENO: checking for xpdf module" >&5
27127 echo $ECHO_N "checking for xpdf module... $ECHO_C" >&6
27128 if test -d ./xpdf; then
27129 echo "$as_me:$LINENO: result: OK" >&5
27130 echo "${ECHO_T}OK" >&6
27131 else
27132 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
27133 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
27134 { (exit 1); exit 1; }; }
27137 else
27138 echo "$as_me:$LINENO: result: no" >&5
27139 echo "${ECHO_T}no" >&6
27140 ENABLE_PDFIMPORT=NO
27147 if test "$ENABLE_PRESENTER_SCREEN" = "YES" -o "$ENABLE_MINIMIZER" = "YES" -o "$ENABLE_PDFIMPORT" = "YES"; then
27148 echo "$as_me:$LINENO: checking for sdext module" >&5
27149 echo $ECHO_N "checking for sdext module... $ECHO_C" >&6
27150 if test -d ./sdext; then
27151 echo "$as_me:$LINENO: result: OK" >&5
27152 echo "${ECHO_T}OK" >&6
27153 else
27154 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
27155 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
27156 { (exit 1); exit 1; }; }
27158 BUILD_TYPE="$BUILD_TYPE SDEXT"
27161 echo "$as_me:$LINENO: checking whether to build the Wiki Publisher extension" >&5
27162 echo $ECHO_N "checking whether to build the Wiki Publisher extension... $ECHO_C" >&6
27163 if test -n "$enable_wiki_publisher" -a "$enable_wiki_publisher" != "no" && test "$WITH_JAVA" != "no"; then
27164 echo "$as_me:$LINENO: result: yes" >&5
27165 echo "${ECHO_T}yes" >&6
27166 echo "$as_me:$LINENO: checking for swext module" >&5
27167 echo $ECHO_N "checking for swext module... $ECHO_C" >&6
27168 if test -d ./swext; then
27169 echo "$as_me:$LINENO: result: OK" >&5
27170 echo "${ECHO_T}OK" >&6
27171 else
27172 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
27173 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
27174 { (exit 1); exit 1; }; }
27176 ENABLE_MEDIAWIKI=YES
27177 BUILD_TYPE="$BUILD_TYPE SWEXT"
27178 else
27179 echo "$as_me:$LINENO: result: no" >&5
27180 echo "${ECHO_T}no" >&6
27181 ENABLE_MEDIAWIKI=NO
27185 if test "$ENABLE_MEDIAWIKI" = "YES"; then
27186 echo "$as_me:$LINENO: checking which Servlet API Jar to use" >&5
27187 echo $ECHO_N "checking which Servlet API Jar to use... $ECHO_C" >&6
27188 if test -n "$with_system_servlet_api"; then
27189 echo "$as_me:$LINENO: result: external" >&5
27190 echo "${ECHO_T}external" >&6
27191 SYSTEM_SERVLETAPI=YES
27192 if test -z "$SERVLETAPI_JAR"; then
27193 SERVLETAPI_JAR=/usr/share/java/servlet-api.jar
27195 as_ac_File=`echo "ac_cv_file_$SERVLETAPI_JAR" | $as_tr_sh`
27196 echo "$as_me:$LINENO: checking for $SERVLETAPI_JAR" >&5
27197 echo $ECHO_N "checking for $SERVLETAPI_JAR... $ECHO_C" >&6
27198 if eval "test \"\${$as_ac_File+set}\" = set"; then
27199 echo $ECHO_N "(cached) $ECHO_C" >&6
27200 else
27201 test "$cross_compiling" = yes &&
27202 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27203 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27204 { (exit 1); exit 1; }; }
27205 if test -r "$SERVLETAPI_JAR"; then
27206 eval "$as_ac_File=yes"
27207 else
27208 eval "$as_ac_File=no"
27211 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27212 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27213 if test `eval echo '${'$as_ac_File'}'` = yes; then
27215 else
27216 { { echo "$as_me:$LINENO: error: servlet-api.jar not found." >&5
27217 echo "$as_me: error: servlet-api.jar not found." >&2;}
27218 { (exit 1); exit 1; }; }
27221 else
27222 echo "$as_me:$LINENO: result: internal" >&5
27223 echo "${ECHO_T}internal" >&6
27224 SYSTEM_SERVLETAPI=NO
27225 BUILD_TYPE="$BUILD_TYPE TOMCAT"
27231 echo "$as_me:$LINENO: checking whether to build the Report Builder extension" >&5
27232 echo $ECHO_N "checking whether to build the Report Builder extension... $ECHO_C" >&6
27233 if test -n "$enable_report_builder" -a "$enable_report_builder" != "no" && test "$WITH_JAVA" != "no"; then
27234 echo "$as_me:$LINENO: result: yes" >&5
27235 echo "${ECHO_T}yes" >&6
27236 ENABLE_REPORTBUILDER=YES
27237 echo "$as_me:$LINENO: checking for reportbuilder module" >&5
27238 echo $ECHO_N "checking for reportbuilder module... $ECHO_C" >&6
27239 if test -d ./reportbuilder; then
27240 echo "$as_me:$LINENO: result: OK" >&5
27241 echo "${ECHO_T}OK" >&6
27242 else
27243 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
27244 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
27245 { (exit 1); exit 1; }; }
27247 echo "$as_me:$LINENO: checking which jfreereport libs to use" >&5
27248 echo $ECHO_N "checking which jfreereport libs to use... $ECHO_C" >&6
27249 if test "$with_system_jfreereport" = "yes"; then
27250 SYSTEM_JFREEREPORT=YES
27251 echo "$as_me:$LINENO: result: external" >&5
27252 echo "${ECHO_T}external" >&6
27253 if test -z $SAC_JAR; then
27254 SAC_JAR=/usr/share/java/sac.jar
27256 as_ac_File=`echo "ac_cv_file_$SAC_JAR" | $as_tr_sh`
27257 echo "$as_me:$LINENO: checking for $SAC_JAR" >&5
27258 echo $ECHO_N "checking for $SAC_JAR... $ECHO_C" >&6
27259 if eval "test \"\${$as_ac_File+set}\" = set"; then
27260 echo $ECHO_N "(cached) $ECHO_C" >&6
27261 else
27262 test "$cross_compiling" = yes &&
27263 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27264 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27265 { (exit 1); exit 1; }; }
27266 if test -r "$SAC_JAR"; then
27267 eval "$as_ac_File=yes"
27268 else
27269 eval "$as_ac_File=no"
27272 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27273 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27274 if test `eval echo '${'$as_ac_File'}'` = yes; then
27276 else
27277 { { echo "$as_me:$LINENO: error: sac.jar not found." >&5
27278 echo "$as_me: error: sac.jar not found." >&2;}
27279 { (exit 1); exit 1; }; }
27283 if test -z $LIBXML_JAR; then
27284 echo "$as_me:$LINENO: checking for /usr/share/java/libxml-1.0.0.jar" >&5
27285 echo $ECHO_N "checking for /usr/share/java/libxml-1.0.0.jar... $ECHO_C" >&6
27286 if test "${ac_cv_file__usr_share_java_libxml_1_0_0_jar+set}" = set; then
27287 echo $ECHO_N "(cached) $ECHO_C" >&6
27288 else
27289 test "$cross_compiling" = yes &&
27290 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27291 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27292 { (exit 1); exit 1; }; }
27293 if test -r "/usr/share/java/libxml-1.0.0.jar"; then
27294 ac_cv_file__usr_share_java_libxml_1_0_0_jar=yes
27295 else
27296 ac_cv_file__usr_share_java_libxml_1_0_0_jar=no
27299 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&5
27300 echo "${ECHO_T}$ac_cv_file__usr_share_java_libxml_1_0_0_jar" >&6
27301 if test $ac_cv_file__usr_share_java_libxml_1_0_0_jar = yes; then
27302 LIBXML_JAR=/usr/share/java/libxml-1.0.0.jar
27303 else
27305 echo "$as_me:$LINENO: checking for /usr/share/java/libxml.jar" >&5
27306 echo $ECHO_N "checking for /usr/share/java/libxml.jar... $ECHO_C" >&6
27307 if test "${ac_cv_file__usr_share_java_libxml_jar+set}" = set; then
27308 echo $ECHO_N "(cached) $ECHO_C" >&6
27309 else
27310 test "$cross_compiling" = yes &&
27311 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27312 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27313 { (exit 1); exit 1; }; }
27314 if test -r "/usr/share/java/libxml.jar"; then
27315 ac_cv_file__usr_share_java_libxml_jar=yes
27316 else
27317 ac_cv_file__usr_share_java_libxml_jar=no
27320 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libxml_jar" >&5
27321 echo "${ECHO_T}$ac_cv_file__usr_share_java_libxml_jar" >&6
27322 if test $ac_cv_file__usr_share_java_libxml_jar = yes; then
27323 LIBXML_JAR=/usr/share/java/libxml.jar
27324 else
27325 { { echo "$as_me:$LINENO: error: libxml.jar replacement not found." >&5
27326 echo "$as_me: error: libxml.jar replacement not found." >&2;}
27327 { (exit 1); exit 1; }; }
27335 else
27336 as_ac_File=`echo "ac_cv_file_$LIBXML_JAR" | $as_tr_sh`
27337 echo "$as_me:$LINENO: checking for $LIBXML_JAR" >&5
27338 echo $ECHO_N "checking for $LIBXML_JAR... $ECHO_C" >&6
27339 if eval "test \"\${$as_ac_File+set}\" = set"; then
27340 echo $ECHO_N "(cached) $ECHO_C" >&6
27341 else
27342 test "$cross_compiling" = yes &&
27343 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27344 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27345 { (exit 1); exit 1; }; }
27346 if test -r "$LIBXML_JAR"; then
27347 eval "$as_ac_File=yes"
27348 else
27349 eval "$as_ac_File=no"
27352 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27353 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27354 if test `eval echo '${'$as_ac_File'}'` = yes; then
27356 else
27357 { { echo "$as_me:$LINENO: error: libxml.jar not found." >&5
27358 echo "$as_me: error: libxml.jar not found." >&2;}
27359 { (exit 1); exit 1; }; }
27364 if test -z $FLUTE_JAR; then
27365 echo "$as_me:$LINENO: checking for /usr/share/java/flute-1.3.0.jar" >&5
27366 echo $ECHO_N "checking for /usr/share/java/flute-1.3.0.jar... $ECHO_C" >&6
27367 if test "${ac_cv_file__usr_share_java_flute_1_3_0_jar+set}" = set; then
27368 echo $ECHO_N "(cached) $ECHO_C" >&6
27369 else
27370 test "$cross_compiling" = yes &&
27371 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27372 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27373 { (exit 1); exit 1; }; }
27374 if test -r "/usr/share/java/flute-1.3.0.jar"; then
27375 ac_cv_file__usr_share_java_flute_1_3_0_jar=yes
27376 else
27377 ac_cv_file__usr_share_java_flute_1_3_0_jar=no
27380 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flute_1_3_0_jar" >&5
27381 echo "${ECHO_T}$ac_cv_file__usr_share_java_flute_1_3_0_jar" >&6
27382 if test $ac_cv_file__usr_share_java_flute_1_3_0_jar = yes; then
27383 FLUTE_JAR=/usr/share/java/flute-1.3.0.jar
27384 else
27386 echo "$as_me:$LINENO: checking for /usr/share/java/flute.jar" >&5
27387 echo $ECHO_N "checking for /usr/share/java/flute.jar... $ECHO_C" >&6
27388 if test "${ac_cv_file__usr_share_java_flute_jar+set}" = set; then
27389 echo $ECHO_N "(cached) $ECHO_C" >&6
27390 else
27391 test "$cross_compiling" = yes &&
27392 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27393 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27394 { (exit 1); exit 1; }; }
27395 if test -r "/usr/share/java/flute.jar"; then
27396 ac_cv_file__usr_share_java_flute_jar=yes
27397 else
27398 ac_cv_file__usr_share_java_flute_jar=no
27401 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flute_jar" >&5
27402 echo "${ECHO_T}$ac_cv_file__usr_share_java_flute_jar" >&6
27403 if test $ac_cv_file__usr_share_java_flute_jar = yes; then
27404 FLUTE_JAR=/usr/share/java/flute.jar
27405 else
27406 { { echo "$as_me:$LINENO: error: flute-1.3.0.jar replacement not found." >&5
27407 echo "$as_me: error: flute-1.3.0.jar replacement not found." >&2;}
27408 { (exit 1); exit 1; }; }
27416 else
27417 as_ac_File=`echo "ac_cv_file_$FLUTE_JAR" | $as_tr_sh`
27418 echo "$as_me:$LINENO: checking for $FLUTE_JAR" >&5
27419 echo $ECHO_N "checking for $FLUTE_JAR... $ECHO_C" >&6
27420 if eval "test \"\${$as_ac_File+set}\" = set"; then
27421 echo $ECHO_N "(cached) $ECHO_C" >&6
27422 else
27423 test "$cross_compiling" = yes &&
27424 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27425 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27426 { (exit 1); exit 1; }; }
27427 if test -r "$FLUTE_JAR"; then
27428 eval "$as_ac_File=yes"
27429 else
27430 eval "$as_ac_File=no"
27433 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27434 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27435 if test `eval echo '${'$as_ac_File'}'` = yes; then
27437 else
27438 { { echo "$as_me:$LINENO: error: flute-1.3.0.jar not found." >&5
27439 echo "$as_me: error: flute-1.3.0.jar not found." >&2;}
27440 { (exit 1); exit 1; }; }
27445 if test -z $JFREEREPORT_JAR; then
27446 echo "$as_me:$LINENO: checking for /usr/share/java/flow-engine-0.9.2.jar" >&5
27447 echo $ECHO_N "checking for /usr/share/java/flow-engine-0.9.2.jar... $ECHO_C" >&6
27448 if test "${ac_cv_file__usr_share_java_flow_engine_0_9_2_jar+set}" = set; then
27449 echo $ECHO_N "(cached) $ECHO_C" >&6
27450 else
27451 test "$cross_compiling" = yes &&
27452 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27453 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27454 { (exit 1); exit 1; }; }
27455 if test -r "/usr/share/java/flow-engine-0.9.2.jar"; then
27456 ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=yes
27457 else
27458 ac_cv_file__usr_share_java_flow_engine_0_9_2_jar=no
27461 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&5
27462 echo "${ECHO_T}$ac_cv_file__usr_share_java_flow_engine_0_9_2_jar" >&6
27463 if test $ac_cv_file__usr_share_java_flow_engine_0_9_2_jar = yes; then
27464 JFREEREPORT_JAR=/usr/share/java/flow-engine-0.9.2.jar
27465 else
27467 echo "$as_me:$LINENO: checking for /usr/share/java/flow-engine.jar" >&5
27468 echo $ECHO_N "checking for /usr/share/java/flow-engine.jar... $ECHO_C" >&6
27469 if test "${ac_cv_file__usr_share_java_flow_engine_jar+set}" = set; then
27470 echo $ECHO_N "(cached) $ECHO_C" >&6
27471 else
27472 test "$cross_compiling" = yes &&
27473 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27474 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27475 { (exit 1); exit 1; }; }
27476 if test -r "/usr/share/java/flow-engine.jar"; then
27477 ac_cv_file__usr_share_java_flow_engine_jar=yes
27478 else
27479 ac_cv_file__usr_share_java_flow_engine_jar=no
27482 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_flow_engine_jar" >&5
27483 echo "${ECHO_T}$ac_cv_file__usr_share_java_flow_engine_jar" >&6
27484 if test $ac_cv_file__usr_share_java_flow_engine_jar = yes; then
27485 JFREEREPORT_JAR=/usr/share/java/flow-engine.jar
27486 else
27487 { { echo "$as_me:$LINENO: error: jfreereport.jar replacement not found." >&5
27488 echo "$as_me: error: jfreereport.jar replacement not found." >&2;}
27489 { (exit 1); exit 1; }; }
27497 else
27498 as_ac_File=`echo "ac_cv_file_$JFREEREPORT_JAR" | $as_tr_sh`
27499 echo "$as_me:$LINENO: checking for $JFREEREPORT_JAR" >&5
27500 echo $ECHO_N "checking for $JFREEREPORT_JAR... $ECHO_C" >&6
27501 if eval "test \"\${$as_ac_File+set}\" = set"; then
27502 echo $ECHO_N "(cached) $ECHO_C" >&6
27503 else
27504 test "$cross_compiling" = yes &&
27505 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27506 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27507 { (exit 1); exit 1; }; }
27508 if test -r "$JFREEREPORT_JAR"; then
27509 eval "$as_ac_File=yes"
27510 else
27511 eval "$as_ac_File=no"
27514 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27515 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27516 if test `eval echo '${'$as_ac_File'}'` = yes; then
27518 else
27519 { { echo "$as_me:$LINENO: error: jfreereport.jar not found." >&5
27520 echo "$as_me: error: jfreereport.jar not found." >&2;}
27521 { (exit 1); exit 1; }; }
27526 if test -z $LIBLAYOUT_JAR; then
27527 echo "$as_me:$LINENO: checking for /usr/share/java/liblayout-0.2.9.jar" >&5
27528 echo $ECHO_N "checking for /usr/share/java/liblayout-0.2.9.jar... $ECHO_C" >&6
27529 if test "${ac_cv_file__usr_share_java_liblayout_0_2_9_jar+set}" = set; then
27530 echo $ECHO_N "(cached) $ECHO_C" >&6
27531 else
27532 test "$cross_compiling" = yes &&
27533 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27534 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27535 { (exit 1); exit 1; }; }
27536 if test -r "/usr/share/java/liblayout-0.2.9.jar"; then
27537 ac_cv_file__usr_share_java_liblayout_0_2_9_jar=yes
27538 else
27539 ac_cv_file__usr_share_java_liblayout_0_2_9_jar=no
27542 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&5
27543 echo "${ECHO_T}$ac_cv_file__usr_share_java_liblayout_0_2_9_jar" >&6
27544 if test $ac_cv_file__usr_share_java_liblayout_0_2_9_jar = yes; then
27545 LIBLAYOUT_JAR=/usr/share/java/liblayout-0.2.9.jar
27546 else
27548 echo "$as_me:$LINENO: checking for /usr/share/java/liblayout.jar" >&5
27549 echo $ECHO_N "checking for /usr/share/java/liblayout.jar... $ECHO_C" >&6
27550 if test "${ac_cv_file__usr_share_java_liblayout_jar+set}" = set; then
27551 echo $ECHO_N "(cached) $ECHO_C" >&6
27552 else
27553 test "$cross_compiling" = yes &&
27554 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27555 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27556 { (exit 1); exit 1; }; }
27557 if test -r "/usr/share/java/liblayout.jar"; then
27558 ac_cv_file__usr_share_java_liblayout_jar=yes
27559 else
27560 ac_cv_file__usr_share_java_liblayout_jar=no
27563 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_liblayout_jar" >&5
27564 echo "${ECHO_T}$ac_cv_file__usr_share_java_liblayout_jar" >&6
27565 if test $ac_cv_file__usr_share_java_liblayout_jar = yes; then
27566 LIBLAYOUT_JAR=/usr/share/java/liblayout.jar
27567 else
27568 { { echo "$as_me:$LINENO: error: liblayout.jar replacement not found." >&5
27569 echo "$as_me: error: liblayout.jar replacement not found." >&2;}
27570 { (exit 1); exit 1; }; }
27578 else
27579 as_ac_File=`echo "ac_cv_file_$LIBLAYOUT_JAR" | $as_tr_sh`
27580 echo "$as_me:$LINENO: checking for $LIBLAYOUT_JAR" >&5
27581 echo $ECHO_N "checking for $LIBLAYOUT_JAR... $ECHO_C" >&6
27582 if eval "test \"\${$as_ac_File+set}\" = set"; then
27583 echo $ECHO_N "(cached) $ECHO_C" >&6
27584 else
27585 test "$cross_compiling" = yes &&
27586 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27587 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27588 { (exit 1); exit 1; }; }
27589 if test -r "$LIBLAYOUT_JAR"; then
27590 eval "$as_ac_File=yes"
27591 else
27592 eval "$as_ac_File=no"
27595 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27596 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27597 if test `eval echo '${'$as_ac_File'}'` = yes; then
27599 else
27600 { { echo "$as_me:$LINENO: error: liblayout.jar not found." >&5
27601 echo "$as_me: error: liblayout.jar not found." >&2;}
27602 { (exit 1); exit 1; }; }
27607 if test -z $LIBLOADER_JAR; then
27608 echo "$as_me:$LINENO: checking for /usr/share/java/libloader-1.0.0.jar" >&5
27609 echo $ECHO_N "checking for /usr/share/java/libloader-1.0.0.jar... $ECHO_C" >&6
27610 if test "${ac_cv_file__usr_share_java_libloader_1_0_0_jar+set}" = set; then
27611 echo $ECHO_N "(cached) $ECHO_C" >&6
27612 else
27613 test "$cross_compiling" = yes &&
27614 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27615 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27616 { (exit 1); exit 1; }; }
27617 if test -r "/usr/share/java/libloader-1.0.0.jar"; then
27618 ac_cv_file__usr_share_java_libloader_1_0_0_jar=yes
27619 else
27620 ac_cv_file__usr_share_java_libloader_1_0_0_jar=no
27623 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&5
27624 echo "${ECHO_T}$ac_cv_file__usr_share_java_libloader_1_0_0_jar" >&6
27625 if test $ac_cv_file__usr_share_java_libloader_1_0_0_jar = yes; then
27626 LIBLOADER_JAR=/usr/share/java/libloader-1.0.0.jar
27627 else
27629 echo "$as_me:$LINENO: checking for /usr/share/java/libloader.jar" >&5
27630 echo $ECHO_N "checking for /usr/share/java/libloader.jar... $ECHO_C" >&6
27631 if test "${ac_cv_file__usr_share_java_libloader_jar+set}" = set; then
27632 echo $ECHO_N "(cached) $ECHO_C" >&6
27633 else
27634 test "$cross_compiling" = yes &&
27635 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27636 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27637 { (exit 1); exit 1; }; }
27638 if test -r "/usr/share/java/libloader.jar"; then
27639 ac_cv_file__usr_share_java_libloader_jar=yes
27640 else
27641 ac_cv_file__usr_share_java_libloader_jar=no
27644 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libloader_jar" >&5
27645 echo "${ECHO_T}$ac_cv_file__usr_share_java_libloader_jar" >&6
27646 if test $ac_cv_file__usr_share_java_libloader_jar = yes; then
27647 LIBLOADER_JAR=/usr/share/java/libloader.jar
27648 else
27649 { { echo "$as_me:$LINENO: error: libloader.jar replacement not found." >&5
27650 echo "$as_me: error: libloader.jar replacement not found." >&2;}
27651 { (exit 1); exit 1; }; }
27659 else
27660 as_ac_File=`echo "ac_cv_file_$LIBLOADER_JAR" | $as_tr_sh`
27661 echo "$as_me:$LINENO: checking for $LIBLOADER_JAR" >&5
27662 echo $ECHO_N "checking for $LIBLOADER_JAR... $ECHO_C" >&6
27663 if eval "test \"\${$as_ac_File+set}\" = set"; then
27664 echo $ECHO_N "(cached) $ECHO_C" >&6
27665 else
27666 test "$cross_compiling" = yes &&
27667 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27668 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27669 { (exit 1); exit 1; }; }
27670 if test -r "$LIBLOADER_JAR"; then
27671 eval "$as_ac_File=yes"
27672 else
27673 eval "$as_ac_File=no"
27676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27677 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27678 if test `eval echo '${'$as_ac_File'}'` = yes; then
27680 else
27681 { { echo "$as_me:$LINENO: error: libloader.jar not found." >&5
27682 echo "$as_me: error: libloader.jar not found." >&2;}
27683 { (exit 1); exit 1; }; }
27688 if test -z $LIBFORMULA_JAR; then
27689 echo "$as_me:$LINENO: checking for /usr/share/java/libformula-0.2.0.jar" >&5
27690 echo $ECHO_N "checking for /usr/share/java/libformula-0.2.0.jar... $ECHO_C" >&6
27691 if test "${ac_cv_file__usr_share_java_libformula_0_2_0_jar+set}" = set; then
27692 echo $ECHO_N "(cached) $ECHO_C" >&6
27693 else
27694 test "$cross_compiling" = yes &&
27695 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27696 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27697 { (exit 1); exit 1; }; }
27698 if test -r "/usr/share/java/libformula-0.2.0.jar"; then
27699 ac_cv_file__usr_share_java_libformula_0_2_0_jar=yes
27700 else
27701 ac_cv_file__usr_share_java_libformula_0_2_0_jar=no
27704 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&5
27705 echo "${ECHO_T}$ac_cv_file__usr_share_java_libformula_0_2_0_jar" >&6
27706 if test $ac_cv_file__usr_share_java_libformula_0_2_0_jar = yes; then
27707 LIBFORMULA_JAR=/usr/share/java/libformula-0.2.0.jar
27708 else
27710 echo "$as_me:$LINENO: checking for /usr/share/java/libformula.jar" >&5
27711 echo $ECHO_N "checking for /usr/share/java/libformula.jar... $ECHO_C" >&6
27712 if test "${ac_cv_file__usr_share_java_libformula_jar+set}" = set; then
27713 echo $ECHO_N "(cached) $ECHO_C" >&6
27714 else
27715 test "$cross_compiling" = yes &&
27716 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27717 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27718 { (exit 1); exit 1; }; }
27719 if test -r "/usr/share/java/libformula.jar"; then
27720 ac_cv_file__usr_share_java_libformula_jar=yes
27721 else
27722 ac_cv_file__usr_share_java_libformula_jar=no
27725 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libformula_jar" >&5
27726 echo "${ECHO_T}$ac_cv_file__usr_share_java_libformula_jar" >&6
27727 if test $ac_cv_file__usr_share_java_libformula_jar = yes; then
27728 LIBFORMULA_JAR=/usr/share/java/libformula.jar
27729 else
27730 { { echo "$as_me:$LINENO: error: libformula.jar replacement not found." >&5
27731 echo "$as_me: error: libformula.jar replacement not found." >&2;}
27732 { (exit 1); exit 1; }; }
27740 else
27741 as_ac_File=`echo "ac_cv_file_$LIBFORMULA_JAR" | $as_tr_sh`
27742 echo "$as_me:$LINENO: checking for $LIBFORMULA_JAR" >&5
27743 echo $ECHO_N "checking for $LIBFORMULA_JAR... $ECHO_C" >&6
27744 if eval "test \"\${$as_ac_File+set}\" = set"; then
27745 echo $ECHO_N "(cached) $ECHO_C" >&6
27746 else
27747 test "$cross_compiling" = yes &&
27748 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27749 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27750 { (exit 1); exit 1; }; }
27751 if test -r "$LIBFORMULA_JAR"; then
27752 eval "$as_ac_File=yes"
27753 else
27754 eval "$as_ac_File=no"
27757 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27758 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27759 if test `eval echo '${'$as_ac_File'}'` = yes; then
27761 else
27762 { { echo "$as_me:$LINENO: error: libformula.jar not found." >&5
27763 echo "$as_me: error: libformula.jar not found." >&2;}
27764 { (exit 1); exit 1; }; }
27769 if test -z $LIBREPOSITORY_JAR; then
27770 echo "$as_me:$LINENO: checking for /usr/share/java/librepository-1.0.0.jar" >&5
27771 echo $ECHO_N "checking for /usr/share/java/librepository-1.0.0.jar... $ECHO_C" >&6
27772 if test "${ac_cv_file__usr_share_java_librepository_1_0_0_jar+set}" = set; then
27773 echo $ECHO_N "(cached) $ECHO_C" >&6
27774 else
27775 test "$cross_compiling" = yes &&
27776 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27777 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27778 { (exit 1); exit 1; }; }
27779 if test -r "/usr/share/java/librepository-1.0.0.jar"; then
27780 ac_cv_file__usr_share_java_librepository_1_0_0_jar=yes
27781 else
27782 ac_cv_file__usr_share_java_librepository_1_0_0_jar=no
27785 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&5
27786 echo "${ECHO_T}$ac_cv_file__usr_share_java_librepository_1_0_0_jar" >&6
27787 if test $ac_cv_file__usr_share_java_librepository_1_0_0_jar = yes; then
27788 LIBREPOSITORY_JAR=/usr/share/java/librepository-1.0.0.jar
27789 else
27791 echo "$as_me:$LINENO: checking for /usr/share/java/librepository.jar" >&5
27792 echo $ECHO_N "checking for /usr/share/java/librepository.jar... $ECHO_C" >&6
27793 if test "${ac_cv_file__usr_share_java_librepository_jar+set}" = set; then
27794 echo $ECHO_N "(cached) $ECHO_C" >&6
27795 else
27796 test "$cross_compiling" = yes &&
27797 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27798 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27799 { (exit 1); exit 1; }; }
27800 if test -r "/usr/share/java/librepository.jar"; then
27801 ac_cv_file__usr_share_java_librepository_jar=yes
27802 else
27803 ac_cv_file__usr_share_java_librepository_jar=no
27806 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_librepository_jar" >&5
27807 echo "${ECHO_T}$ac_cv_file__usr_share_java_librepository_jar" >&6
27808 if test $ac_cv_file__usr_share_java_librepository_jar = yes; then
27809 LIBREPOSITORY_JAR=/usr/share/java/librepository.jar
27810 else
27811 { { echo "$as_me:$LINENO: error: librepository.jar replacement not found." >&5
27812 echo "$as_me: error: librepository.jar replacement not found." >&2;}
27813 { (exit 1); exit 1; }; }
27821 else
27822 as_ac_File=`echo "ac_cv_file_$LIBREPOSITORY_JAR" | $as_tr_sh`
27823 echo "$as_me:$LINENO: checking for $LIBREPOSITORY_JAR" >&5
27824 echo $ECHO_N "checking for $LIBREPOSITORY_JAR... $ECHO_C" >&6
27825 if eval "test \"\${$as_ac_File+set}\" = set"; then
27826 echo $ECHO_N "(cached) $ECHO_C" >&6
27827 else
27828 test "$cross_compiling" = yes &&
27829 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27830 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27831 { (exit 1); exit 1; }; }
27832 if test -r "$LIBREPOSITORY_JAR"; then
27833 eval "$as_ac_File=yes"
27834 else
27835 eval "$as_ac_File=no"
27838 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27839 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27840 if test `eval echo '${'$as_ac_File'}'` = yes; then
27842 else
27843 { { echo "$as_me:$LINENO: error: librepository.jar not found." >&5
27844 echo "$as_me: error: librepository.jar not found." >&2;}
27845 { (exit 1); exit 1; }; }
27850 if test -z $LIBFONTS_JAR; then
27851 echo "$as_me:$LINENO: checking for /usr/share/java/libfonts-1.0.0.jar" >&5
27852 echo $ECHO_N "checking for /usr/share/java/libfonts-1.0.0.jar... $ECHO_C" >&6
27853 if test "${ac_cv_file__usr_share_java_libfonts_1_0_0_jar+set}" = set; then
27854 echo $ECHO_N "(cached) $ECHO_C" >&6
27855 else
27856 test "$cross_compiling" = yes &&
27857 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27858 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27859 { (exit 1); exit 1; }; }
27860 if test -r "/usr/share/java/libfonts-1.0.0.jar"; then
27861 ac_cv_file__usr_share_java_libfonts_1_0_0_jar=yes
27862 else
27863 ac_cv_file__usr_share_java_libfonts_1_0_0_jar=no
27866 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&5
27867 echo "${ECHO_T}$ac_cv_file__usr_share_java_libfonts_1_0_0_jar" >&6
27868 if test $ac_cv_file__usr_share_java_libfonts_1_0_0_jar = yes; then
27869 LIBFONTS_JAR=/usr/share/java/libfonts-1.0.0.jar
27870 else
27872 echo "$as_me:$LINENO: checking for /usr/share/java/libfonts.jar" >&5
27873 echo $ECHO_N "checking for /usr/share/java/libfonts.jar... $ECHO_C" >&6
27874 if test "${ac_cv_file__usr_share_java_libfonts_jar+set}" = set; then
27875 echo $ECHO_N "(cached) $ECHO_C" >&6
27876 else
27877 test "$cross_compiling" = yes &&
27878 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27879 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27880 { (exit 1); exit 1; }; }
27881 if test -r "/usr/share/java/libfonts.jar"; then
27882 ac_cv_file__usr_share_java_libfonts_jar=yes
27883 else
27884 ac_cv_file__usr_share_java_libfonts_jar=no
27887 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libfonts_jar" >&5
27888 echo "${ECHO_T}$ac_cv_file__usr_share_java_libfonts_jar" >&6
27889 if test $ac_cv_file__usr_share_java_libfonts_jar = yes; then
27890 LIBFONTS_JAR=/usr/share/java/libfonts.jar
27891 else
27892 { { echo "$as_me:$LINENO: error: libfonts.jar replacement not found." >&5
27893 echo "$as_me: error: libfonts.jar replacement not found." >&2;}
27894 { (exit 1); exit 1; }; }
27902 else
27903 as_ac_File=`echo "ac_cv_file_$LIBFONTS_JAR" | $as_tr_sh`
27904 echo "$as_me:$LINENO: checking for $LIBFONTS_JAR" >&5
27905 echo $ECHO_N "checking for $LIBFONTS_JAR... $ECHO_C" >&6
27906 if eval "test \"\${$as_ac_File+set}\" = set"; then
27907 echo $ECHO_N "(cached) $ECHO_C" >&6
27908 else
27909 test "$cross_compiling" = yes &&
27910 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27911 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27912 { (exit 1); exit 1; }; }
27913 if test -r "$LIBFONTS_JAR"; then
27914 eval "$as_ac_File=yes"
27915 else
27916 eval "$as_ac_File=no"
27919 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
27920 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
27921 if test `eval echo '${'$as_ac_File'}'` = yes; then
27923 else
27924 { { echo "$as_me:$LINENO: error: libfonts.jar not found." >&5
27925 echo "$as_me: error: libfonts.jar not found." >&2;}
27926 { (exit 1); exit 1; }; }
27931 if test -z $LIBSERIALIZER_JAR; then
27932 echo "$as_me:$LINENO: checking for /usr/share/java/libserializer-1.0.0.jar" >&5
27933 echo $ECHO_N "checking for /usr/share/java/libserializer-1.0.0.jar... $ECHO_C" >&6
27934 if test "${ac_cv_file__usr_share_java_libserializer_1_0_0_jar+set}" = set; then
27935 echo $ECHO_N "(cached) $ECHO_C" >&6
27936 else
27937 test "$cross_compiling" = yes &&
27938 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27939 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27940 { (exit 1); exit 1; }; }
27941 if test -r "/usr/share/java/libserializer-1.0.0.jar"; then
27942 ac_cv_file__usr_share_java_libserializer_1_0_0_jar=yes
27943 else
27944 ac_cv_file__usr_share_java_libserializer_1_0_0_jar=no
27947 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&5
27948 echo "${ECHO_T}$ac_cv_file__usr_share_java_libserializer_1_0_0_jar" >&6
27949 if test $ac_cv_file__usr_share_java_libserializer_1_0_0_jar = yes; then
27950 LIBSERIALIZER_JAR=/usr/share/java/libserializer-1.0.0.jar
27951 else
27953 echo "$as_me:$LINENO: checking for /usr/share/java/libserializer.jar" >&5
27954 echo $ECHO_N "checking for /usr/share/java/libserializer.jar... $ECHO_C" >&6
27955 if test "${ac_cv_file__usr_share_java_libserializer_jar+set}" = set; then
27956 echo $ECHO_N "(cached) $ECHO_C" >&6
27957 else
27958 test "$cross_compiling" = yes &&
27959 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27960 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27961 { (exit 1); exit 1; }; }
27962 if test -r "/usr/share/java/libserializer.jar"; then
27963 ac_cv_file__usr_share_java_libserializer_jar=yes
27964 else
27965 ac_cv_file__usr_share_java_libserializer_jar=no
27968 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libserializer_jar" >&5
27969 echo "${ECHO_T}$ac_cv_file__usr_share_java_libserializer_jar" >&6
27970 if test $ac_cv_file__usr_share_java_libserializer_jar = yes; then
27971 LIBSERIALIZER_JAR=/usr/share/java/libserializer.jar
27972 else
27973 { { echo "$as_me:$LINENO: error: libserializer.jar replacement not found." >&5
27974 echo "$as_me: error: libserializer.jar replacement not found." >&2;}
27975 { (exit 1); exit 1; }; }
27983 else
27984 as_ac_File=`echo "ac_cv_file_$LIBSERIALIZER_JAR" | $as_tr_sh`
27985 echo "$as_me:$LINENO: checking for $LIBSERIALIZER_JAR" >&5
27986 echo $ECHO_N "checking for $LIBSERIALIZER_JAR... $ECHO_C" >&6
27987 if eval "test \"\${$as_ac_File+set}\" = set"; then
27988 echo $ECHO_N "(cached) $ECHO_C" >&6
27989 else
27990 test "$cross_compiling" = yes &&
27991 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
27992 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
27993 { (exit 1); exit 1; }; }
27994 if test -r "$LIBSERIALIZER_JAR"; then
27995 eval "$as_ac_File=yes"
27996 else
27997 eval "$as_ac_File=no"
28000 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28001 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28002 if test `eval echo '${'$as_ac_File'}'` = yes; then
28004 else
28005 { { echo "$as_me:$LINENO: error: libserializer.jar not found." >&5
28006 echo "$as_me: error: libserializer.jar not found." >&2;}
28007 { (exit 1); exit 1; }; }
28013 if test -z $LIBBASE_JAR; then
28014 echo "$as_me:$LINENO: checking for /usr/share/java/libbase-1.0.0.jar" >&5
28015 echo $ECHO_N "checking for /usr/share/java/libbase-1.0.0.jar... $ECHO_C" >&6
28016 if test "${ac_cv_file__usr_share_java_libbase_1_0_0_jar+set}" = set; then
28017 echo $ECHO_N "(cached) $ECHO_C" >&6
28018 else
28019 test "$cross_compiling" = yes &&
28020 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28021 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28022 { (exit 1); exit 1; }; }
28023 if test -r "/usr/share/java/libbase-1.0.0.jar"; then
28024 ac_cv_file__usr_share_java_libbase_1_0_0_jar=yes
28025 else
28026 ac_cv_file__usr_share_java_libbase_1_0_0_jar=no
28029 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&5
28030 echo "${ECHO_T}$ac_cv_file__usr_share_java_libbase_1_0_0_jar" >&6
28031 if test $ac_cv_file__usr_share_java_libbase_1_0_0_jar = yes; then
28032 LIBBASE_JAR=/usr/share/java/libbase-1.0.0.jar
28033 else
28035 echo "$as_me:$LINENO: checking for /usr/share/java/libbase.jar" >&5
28036 echo $ECHO_N "checking for /usr/share/java/libbase.jar... $ECHO_C" >&6
28037 if test "${ac_cv_file__usr_share_java_libbase_jar+set}" = set; then
28038 echo $ECHO_N "(cached) $ECHO_C" >&6
28039 else
28040 test "$cross_compiling" = yes &&
28041 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28042 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28043 { (exit 1); exit 1; }; }
28044 if test -r "/usr/share/java/libbase.jar"; then
28045 ac_cv_file__usr_share_java_libbase_jar=yes
28046 else
28047 ac_cv_file__usr_share_java_libbase_jar=no
28050 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_libbase_jar" >&5
28051 echo "${ECHO_T}$ac_cv_file__usr_share_java_libbase_jar" >&6
28052 if test $ac_cv_file__usr_share_java_libbase_jar = yes; then
28053 LIBBASE_JAR=/usr/share/java/libbase.jar
28054 else
28055 { { echo "$as_me:$LINENO: error: libbase.jar replacement not found." >&5
28056 echo "$as_me: error: libbase.jar replacement not found." >&2;}
28057 { (exit 1); exit 1; }; }
28065 else
28066 as_ac_File=`echo "ac_cv_file_$LIBBASE_JAR" | $as_tr_sh`
28067 echo "$as_me:$LINENO: checking for $LIBBASE_JAR" >&5
28068 echo $ECHO_N "checking for $LIBBASE_JAR... $ECHO_C" >&6
28069 if eval "test \"\${$as_ac_File+set}\" = set"; then
28070 echo $ECHO_N "(cached) $ECHO_C" >&6
28071 else
28072 test "$cross_compiling" = yes &&
28073 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28074 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28075 { (exit 1); exit 1; }; }
28076 if test -r "$LIBBASE_JAR"; then
28077 eval "$as_ac_File=yes"
28078 else
28079 eval "$as_ac_File=no"
28082 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28083 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28084 if test `eval echo '${'$as_ac_File'}'` = yes; then
28086 else
28087 { { echo "$as_me:$LINENO: error: libbase.jar not found." >&5
28088 echo "$as_me: error: libbase.jar not found." >&2;}
28089 { (exit 1); exit 1; }; }
28094 else
28095 echo "$as_me:$LINENO: result: internal" >&5
28096 echo "${ECHO_T}internal" >&6
28097 echo "$as_me:$LINENO: checking for jfreereport module" >&5
28098 echo $ECHO_N "checking for jfreereport module... $ECHO_C" >&6
28099 if test -d ./jfreereport; then
28100 echo "$as_me:$LINENO: result: OK" >&5
28101 echo "${ECHO_T}OK" >&6
28102 else
28103 { { echo "$as_me:$LINENO: error: not existing. get it (did you get the -extensions tarball?)" >&5
28104 echo "$as_me: error: not existing. get it (did you get the -extensions tarball?)" >&2;}
28105 { (exit 1); exit 1; }; }
28107 SYSTEM_JFREEREPORT=NO
28108 BUILD_TYPE="$BUILD_TYPE JFREEREPORT"
28110 BUILD_TYPE="$BUILD_TYPE REPORTBUILDER"
28111 else
28112 echo "$as_me:$LINENO: result: no" >&5
28113 echo "${ECHO_T}no" >&6
28114 ENABLE_REPORTBUILDER=NO
28115 SYSTEM_JFREEREPORT=NO
28131 # this has to be here because both the wiki publisher and the SRB use
28132 # commons-logging
28133 if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
28134 echo "$as_me:$LINENO: checking which Apache commons-* libs to use" >&5
28135 echo $ECHO_N "checking which Apache commons-* libs to use... $ECHO_C" >&6
28136 if test "$with_system_apache_commons" = "yes"; then
28137 SYSTEM_APACHE_COMMONS=YES
28138 echo "$as_me:$LINENO: result: external" >&5
28139 echo "${ECHO_T}external" >&6
28140 if test "$ENABLE_MEDIAWIKI" = "YES"; then
28141 if test -z $COMMONS_CODEC_JAR; then
28142 echo "$as_me:$LINENO: checking for /usr/share/java/commons-codec-1.3.jar" >&5
28143 echo $ECHO_N "checking for /usr/share/java/commons-codec-1.3.jar... $ECHO_C" >&6
28144 if test "${ac_cv_file__usr_share_java_commons_codec_1_3_jar+set}" = set; then
28145 echo $ECHO_N "(cached) $ECHO_C" >&6
28146 else
28147 test "$cross_compiling" = yes &&
28148 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28149 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28150 { (exit 1); exit 1; }; }
28151 if test -r "/usr/share/java/commons-codec-1.3.jar"; then
28152 ac_cv_file__usr_share_java_commons_codec_1_3_jar=yes
28153 else
28154 ac_cv_file__usr_share_java_commons_codec_1_3_jar=no
28157 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&5
28158 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_codec_1_3_jar" >&6
28159 if test $ac_cv_file__usr_share_java_commons_codec_1_3_jar = yes; then
28160 COMMONS_CODEC_JAR=/usr/share/java/commons-codec-1.3.jar
28161 else
28163 echo "$as_me:$LINENO: checking for /usr/share/java/commons-codec.jar" >&5
28164 echo $ECHO_N "checking for /usr/share/java/commons-codec.jar... $ECHO_C" >&6
28165 if test "${ac_cv_file__usr_share_java_commons_codec_jar+set}" = set; then
28166 echo $ECHO_N "(cached) $ECHO_C" >&6
28167 else
28168 test "$cross_compiling" = yes &&
28169 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28170 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28171 { (exit 1); exit 1; }; }
28172 if test -r "/usr/share/java/commons-codec.jar"; then
28173 ac_cv_file__usr_share_java_commons_codec_jar=yes
28174 else
28175 ac_cv_file__usr_share_java_commons_codec_jar=no
28178 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_codec_jar" >&5
28179 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_codec_jar" >&6
28180 if test $ac_cv_file__usr_share_java_commons_codec_jar = yes; then
28181 COMMONS_CODEC_JAR=/usr/share/java/commons-codec.jar
28182 else
28183 { { echo "$as_me:$LINENO: error: commons-codec.jar replacement not found." >&5
28184 echo "$as_me: error: commons-codec.jar replacement not found." >&2;}
28185 { (exit 1); exit 1; }; }
28193 else
28194 as_ac_File=`echo "ac_cv_file_$COMMONS_CODEC_JAR" | $as_tr_sh`
28195 echo "$as_me:$LINENO: checking for $COMMONS_CODEC_JAR" >&5
28196 echo $ECHO_N "checking for $COMMONS_CODEC_JAR... $ECHO_C" >&6
28197 if eval "test \"\${$as_ac_File+set}\" = set"; then
28198 echo $ECHO_N "(cached) $ECHO_C" >&6
28199 else
28200 test "$cross_compiling" = yes &&
28201 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28202 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28203 { (exit 1); exit 1; }; }
28204 if test -r "$COMMONS_CODEC_JAR"; then
28205 eval "$as_ac_File=yes"
28206 else
28207 eval "$as_ac_File=no"
28210 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28211 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28212 if test `eval echo '${'$as_ac_File'}'` = yes; then
28214 else
28215 { { echo "$as_me:$LINENO: error: commons-codec.jar not found." >&5
28216 echo "$as_me: error: commons-codec.jar not found." >&2;}
28217 { (exit 1); exit 1; }; }
28222 if test -z $COMMONS_LANG_JAR; then
28223 echo "$as_me:$LINENO: checking for /usr/share/java/commons-lang-2.3.jar" >&5
28224 echo $ECHO_N "checking for /usr/share/java/commons-lang-2.3.jar... $ECHO_C" >&6
28225 if test "${ac_cv_file__usr_share_java_commons_lang_2_3_jar+set}" = set; then
28226 echo $ECHO_N "(cached) $ECHO_C" >&6
28227 else
28228 test "$cross_compiling" = yes &&
28229 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28230 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28231 { (exit 1); exit 1; }; }
28232 if test -r "/usr/share/java/commons-lang-2.3.jar"; then
28233 ac_cv_file__usr_share_java_commons_lang_2_3_jar=yes
28234 else
28235 ac_cv_file__usr_share_java_commons_lang_2_3_jar=no
28238 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&5
28239 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_lang_2_3_jar" >&6
28240 if test $ac_cv_file__usr_share_java_commons_lang_2_3_jar = yes; then
28241 COMMONS_LANG_JAR=/usr/share/java/commons-lang-2.3.jar
28242 else
28244 echo "$as_me:$LINENO: checking for /usr/share/java/commons-lang.jar" >&5
28245 echo $ECHO_N "checking for /usr/share/java/commons-lang.jar... $ECHO_C" >&6
28246 if test "${ac_cv_file__usr_share_java_commons_lang_jar+set}" = set; then
28247 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 else
28249 test "$cross_compiling" = yes &&
28250 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28251 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28252 { (exit 1); exit 1; }; }
28253 if test -r "/usr/share/java/commons-lang.jar"; then
28254 ac_cv_file__usr_share_java_commons_lang_jar=yes
28255 else
28256 ac_cv_file__usr_share_java_commons_lang_jar=no
28259 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_lang_jar" >&5
28260 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_lang_jar" >&6
28261 if test $ac_cv_file__usr_share_java_commons_lang_jar = yes; then
28262 COMMONS_LANG_JAR=/usr/share/java/commons-lang.jar
28263 else
28264 { { echo "$as_me:$LINENO: error: commons-lang.jar replacement not found." >&5
28265 echo "$as_me: error: commons-lang.jar replacement not found." >&2;}
28266 { (exit 1); exit 1; }; }
28274 else
28275 as_ac_File=`echo "ac_cv_file_$COMMONS_LANG_JAR" | $as_tr_sh`
28276 echo "$as_me:$LINENO: checking for $COMMONS_LANG_JAR" >&5
28277 echo $ECHO_N "checking for $COMMONS_LANG_JAR... $ECHO_C" >&6
28278 if eval "test \"\${$as_ac_File+set}\" = set"; then
28279 echo $ECHO_N "(cached) $ECHO_C" >&6
28280 else
28281 test "$cross_compiling" = yes &&
28282 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28283 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28284 { (exit 1); exit 1; }; }
28285 if test -r "$COMMONS_LANG_JAR"; then
28286 eval "$as_ac_File=yes"
28287 else
28288 eval "$as_ac_File=no"
28291 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28292 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28293 if test `eval echo '${'$as_ac_File'}'` = yes; then
28295 else
28296 { { echo "$as_me:$LINENO: error: commons-lang.jar not found." >&5
28297 echo "$as_me: error: commons-lang.jar not found." >&2;}
28298 { (exit 1); exit 1; }; }
28303 if test -z $COMMONS_HTTPCLIENT_JAR; then
28304 echo "$as_me:$LINENO: checking for /usr/share/java/commons-httpclient-3.1.jar" >&5
28305 echo $ECHO_N "checking for /usr/share/java/commons-httpclient-3.1.jar... $ECHO_C" >&6
28306 if test "${ac_cv_file__usr_share_java_commons_httpclient_3_1_jar+set}" = set; then
28307 echo $ECHO_N "(cached) $ECHO_C" >&6
28308 else
28309 test "$cross_compiling" = yes &&
28310 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28311 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28312 { (exit 1); exit 1; }; }
28313 if test -r "/usr/share/java/commons-httpclient-3.1.jar"; then
28314 ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=yes
28315 else
28316 ac_cv_file__usr_share_java_commons_httpclient_3_1_jar=no
28319 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&5
28320 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_httpclient_3_1_jar" >&6
28321 if test $ac_cv_file__usr_share_java_commons_httpclient_3_1_jar = yes; then
28322 COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient-3.1.jar
28323 else
28325 echo "$as_me:$LINENO: checking for /usr/share/java/commons-httpclient.jar" >&5
28326 echo $ECHO_N "checking for /usr/share/java/commons-httpclient.jar... $ECHO_C" >&6
28327 if test "${ac_cv_file__usr_share_java_commons_httpclient_jar+set}" = set; then
28328 echo $ECHO_N "(cached) $ECHO_C" >&6
28329 else
28330 test "$cross_compiling" = yes &&
28331 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28332 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28333 { (exit 1); exit 1; }; }
28334 if test -r "/usr/share/java/commons-httpclient.jar"; then
28335 ac_cv_file__usr_share_java_commons_httpclient_jar=yes
28336 else
28337 ac_cv_file__usr_share_java_commons_httpclient_jar=no
28340 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_httpclient_jar" >&5
28341 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_httpclient_jar" >&6
28342 if test $ac_cv_file__usr_share_java_commons_httpclient_jar = yes; then
28343 COMMONS_HTTPCLIENT_JAR=/usr/share/java/commons-httpclient.jar
28344 else
28345 { { echo "$as_me:$LINENO: error: commons-httpclient.jar replacement not found." >&5
28346 echo "$as_me: error: commons-httpclient.jar replacement not found." >&2;}
28347 { (exit 1); exit 1; }; }
28355 else
28356 as_ac_File=`echo "ac_cv_file_$COMMONS_HTTPCLIENT_JAR" | $as_tr_sh`
28357 echo "$as_me:$LINENO: checking for $COMMONS_HTTPCLIENT_JAR" >&5
28358 echo $ECHO_N "checking for $COMMONS_HTTPCLIENT_JAR... $ECHO_C" >&6
28359 if eval "test \"\${$as_ac_File+set}\" = set"; then
28360 echo $ECHO_N "(cached) $ECHO_C" >&6
28361 else
28362 test "$cross_compiling" = yes &&
28363 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28364 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28365 { (exit 1); exit 1; }; }
28366 if test -r "$COMMONS_HTTPCLIENT_JAR"; then
28367 eval "$as_ac_File=yes"
28368 else
28369 eval "$as_ac_File=no"
28372 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28373 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28374 if test `eval echo '${'$as_ac_File'}'` = yes; then
28376 else
28377 { { echo "$as_me:$LINENO: error: commons-httpclient.jar not found." >&5
28378 echo "$as_me: error: commons-httpclient.jar not found." >&2;}
28379 { (exit 1); exit 1; }; }
28384 if test "$ENABLE_MEDIAWIKI" = "YES" -o "$ENABLE_REPORTBUILDER" = "YES"; then
28385 if test -z $COMMONS_LOGGING_JAR; then
28386 echo "$as_me:$LINENO: checking for /usr/share/java/commons-logging-1.1.1.jar" >&5
28387 echo $ECHO_N "checking for /usr/share/java/commons-logging-1.1.1.jar... $ECHO_C" >&6
28388 if test "${ac_cv_file__usr_share_java_commons_logging_1_1_1_jar+set}" = set; then
28389 echo $ECHO_N "(cached) $ECHO_C" >&6
28390 else
28391 test "$cross_compiling" = yes &&
28392 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28393 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28394 { (exit 1); exit 1; }; }
28395 if test -r "/usr/share/java/commons-logging-1.1.1.jar"; then
28396 ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=yes
28397 else
28398 ac_cv_file__usr_share_java_commons_logging_1_1_1_jar=no
28401 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&5
28402 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_logging_1_1_1_jar" >&6
28403 if test $ac_cv_file__usr_share_java_commons_logging_1_1_1_jar = yes; then
28404 COMMONS_LOGGING_JAR=/usr/share/java/commons-logging-1.1.1.jar
28405 else
28407 echo "$as_me:$LINENO: checking for /usr/share/java/commons-logging.jar" >&5
28408 echo $ECHO_N "checking for /usr/share/java/commons-logging.jar... $ECHO_C" >&6
28409 if test "${ac_cv_file__usr_share_java_commons_logging_jar+set}" = set; then
28410 echo $ECHO_N "(cached) $ECHO_C" >&6
28411 else
28412 test "$cross_compiling" = yes &&
28413 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28414 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28415 { (exit 1); exit 1; }; }
28416 if test -r "/usr/share/java/commons-logging.jar"; then
28417 ac_cv_file__usr_share_java_commons_logging_jar=yes
28418 else
28419 ac_cv_file__usr_share_java_commons_logging_jar=no
28422 echo "$as_me:$LINENO: result: $ac_cv_file__usr_share_java_commons_logging_jar" >&5
28423 echo "${ECHO_T}$ac_cv_file__usr_share_java_commons_logging_jar" >&6
28424 if test $ac_cv_file__usr_share_java_commons_logging_jar = yes; then
28425 COMMONS_LOGGING_JAR=/usr/share/java/commons-logging.jar
28426 else
28427 { { echo "$as_me:$LINENO: error: commons-logging.jar replacement not found." >&5
28428 echo "$as_me: error: commons-logging.jar replacement not found." >&2;}
28429 { (exit 1); exit 1; }; }
28437 else
28438 as_ac_File=`echo "ac_cv_file_$COMMONS_LOGGING_JAR" | $as_tr_sh`
28439 echo "$as_me:$LINENO: checking for $COMMONS_LOGGING_JAR" >&5
28440 echo $ECHO_N "checking for $COMMONS_LOGGING_JAR... $ECHO_C" >&6
28441 if eval "test \"\${$as_ac_File+set}\" = set"; then
28442 echo $ECHO_N "(cached) $ECHO_C" >&6
28443 else
28444 test "$cross_compiling" = yes &&
28445 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28446 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28447 { (exit 1); exit 1; }; }
28448 if test -r "$COMMONS_LOGGING_JAR"; then
28449 eval "$as_ac_File=yes"
28450 else
28451 eval "$as_ac_File=no"
28454 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_File'}'`" >&5
28455 echo "${ECHO_T}`eval echo '${'$as_ac_File'}'`" >&6
28456 if test `eval echo '${'$as_ac_File'}'` = yes; then
28458 else
28459 { { echo "$as_me:$LINENO: error: commons-logging.jar not found." >&5
28460 echo "$as_me: error: commons-logging.jar not found." >&2;}
28461 { (exit 1); exit 1; }; }
28466 else
28467 echo "$as_me:$LINENO: result: internal" >&5
28468 echo "${ECHO_T}internal" >&6
28469 SYSTEM_APACHE_COMMONS=NO
28470 BUILD_TYPE="$BUILD_TYPE APACHE_COMMONS TOMCAT"
28480 KDE_CFLAGS=""
28481 KDE_LIBS=""
28482 MOC="moc"
28483 if test "$test_kde" = "yes" -a "$ENABLE_KDE" = "TRUE" ; then
28484 if test "$build_cpu" != "x86_64" ; then
28485 qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib/qt3/include /usr/lib/qt/include /usr/share/qt3/include $x_includes"
28486 qt_libdirs="$QTLIB /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib $x_libraries"
28487 else
28488 qt_incdirs="$QTINC /usr/local/qt/include /usr/include/qt /usr/include /usr/X11R6/include/X11/qt /usr/X11R6/include/qt /usr/lib64/qt3/include /usr/lib64/qt/include /usr/share/qt3/include /usr/lib/qt3/include /usr/lib/qt/include $x_includes"
28489 qt_libdirs="$QTLIB /usr/local/qt/lib64 /usr/lib64/qt /usr/lib64 /usr/X11R6/lib64/X11/qt /usr/X11R6/lib64/qt /usr/lib64/qt3/lib64 /usr/lib64/qt/lib64 /usr/share/qt3/lib64 /usr/local/qt/lib /usr/lib/qt /usr/lib /usr/X11R6/lib/X11/qt /usr/X11R6/lib/qt /usr/lib/qt3/lib /usr/lib/qt/lib /usr/share/qt3/lib $x_libraries"
28491 if test -n "$QTDIR" ; then
28492 qt_incdirs="$QTDIR/include $qt_incdirs"
28493 if test "$build_cpu" != "x86_64" ; then
28494 qt_libdirs="$QTDIR/lib $qt_libdirs"
28495 else
28496 qt_libdirs="$QTDIR/lib64 $QTDIR/lib $qt_libdirs"
28499 if test "$build_cpu" != "x86_64" ; then
28500 kde_incdirs="/usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
28501 kde_libdirs="/usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib $x_libraries"
28502 else
28503 kde_incdirs="/usr/lib64/kde/include /usr/lib/kde/include /usr/local/kde/include /usr/local/include /usr/kde/include /usr/include/kde /opt/kde3/include /opt/kde/include $x_includes"
28504 kde_libdirs="/usr/lib64/kde/lib64 /usr/local/kde/lib64 /usr/kde/lib64 /usr/lib64/kde /usr/lib64/kde3 /usr/X11R6/lib64 /usr/local/lib64 /opt/kde3/lib64 /opt/kde/lib64 /usr/X11R6/kde/lib64 /usr/lib/kde/lib /usr/local/kde/lib /usr/kde/lib /usr/lib/kde /usr/lib/kde3 /usr/lib /usr/X11R6/lib /usr/local/lib /opt/kde3/lib /opt/kde/lib /usr/X11R6/kde/lib /usr/lib64 $x_libraries"
28506 if test -n "$KDEDIR" ; then
28507 kde_incdirs="$KDEDIR/include $kde_incdirs"
28508 if test "$build_cpu" != "x86_64" ; then
28509 kde_libdirs="$KDEDIR/lib $kde_libdirs"
28510 else
28511 kde_libdirs="$KDEDIR/lib64 $KDEDIR/lib $kde_libdirs"
28515 qt_test_include="qstyle.h"
28516 qt_test_library="libqt-mt.so"
28517 kde_test_include="ksharedptr.h"
28518 kde_test_library="libkdeui.so"
28520 echo "$as_me:$LINENO: checking for Qt headers" >&5
28521 echo $ECHO_N "checking for Qt headers... $ECHO_C" >&6
28522 qt_incdir="no"
28523 for kde_check in $qt_incdirs ; do
28524 if test -r "$kde_check/$qt_test_include" ; then
28525 qt_incdir="$kde_check"
28526 break
28528 done
28529 echo "$as_me:$LINENO: result: $qt_incdir" >&5
28530 echo "${ECHO_T}$qt_incdir" >&6
28531 if test "x$qt_incdir" = "xno" ; then
28532 { { echo "$as_me:$LINENO: error: Qt headers not found. Please specify the root of
28533 your Qt installation by exporting QTDIR before running \"configure\"." >&5
28534 echo "$as_me: error: Qt headers not found. Please specify the root of
28535 your Qt installation by exporting QTDIR before running \"configure\"." >&2;}
28536 { (exit 1); exit 1; }; }
28539 echo "$as_me:$LINENO: checking for Qt libraries" >&5
28540 echo $ECHO_N "checking for Qt libraries... $ECHO_C" >&6
28541 qt_libdir="no"
28542 for qt_check in $qt_libdirs ; do
28543 if test -r "$qt_check/$qt_test_library" ; then
28544 qt_libdir="$qt_check"
28545 break
28547 done
28548 echo "$as_me:$LINENO: result: $qt_libdir" >&5
28549 echo "${ECHO_T}$qt_libdir" >&6
28550 if test "x$qt_libdir" = "xno" ; then
28551 { { echo "$as_me:$LINENO: error: Qt libraries not found. Please specify the root of
28552 your Qt installation by exporting QTDIR before running \"configure\"." >&5
28553 echo "$as_me: error: Qt libraries not found. Please specify the root of
28554 your Qt installation by exporting QTDIR before running \"configure\"." >&2;}
28555 { (exit 1); exit 1; }; }
28558 # Extract the first word of "moc", so it can be a program name with args.
28559 set dummy moc; ac_word=$2
28560 echo "$as_me:$LINENO: checking for $ac_word" >&5
28561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28562 if test "${ac_cv_path_MOC+set}" = set; then
28563 echo $ECHO_N "(cached) $ECHO_C" >&6
28564 else
28565 case $MOC in
28566 [\\/]* | ?:[\\/]*)
28567 ac_cv_path_MOC="$MOC" # Let the user override the test with a path.
28570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28571 as_dummy="$QTDIR/bin:$PATH "
28572 for as_dir in $as_dummy
28574 IFS=$as_save_IFS
28575 test -z "$as_dir" && as_dir=.
28576 for ac_exec_ext in '' $ac_executable_extensions; do
28577 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28578 ac_cv_path_MOC="$as_dir/$ac_word$ac_exec_ext"
28579 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28580 break 2
28582 done
28583 done
28585 test -z "$ac_cv_path_MOC" && ac_cv_path_MOC="no"
28587 esac
28589 MOC=$ac_cv_path_MOC
28591 if test -n "$MOC"; then
28592 echo "$as_me:$LINENO: result: $MOC" >&5
28593 echo "${ECHO_T}$MOC" >&6
28594 else
28595 echo "$as_me:$LINENO: result: no" >&5
28596 echo "${ECHO_T}no" >&6
28599 if test "$MOC" = "no" ; then
28600 { { echo "$as_me:$LINENO: error: Qt Meta Object Compiler not found. Please specify
28601 the root of your Qt installation by exporting QTDIR before running \"configure\"." >&5
28602 echo "$as_me: error: Qt Meta Object Compiler not found. Please specify
28603 the root of your Qt installation by exporting QTDIR before running \"configure\"." >&2;}
28604 { (exit 1); exit 1; }; }
28607 echo "$as_me:$LINENO: checking for KDE headers" >&5
28608 echo $ECHO_N "checking for KDE headers... $ECHO_C" >&6
28609 kde_incdir="no"
28610 for kde_check in $kde_incdirs ; do
28611 if test -r "$kde_check/$kde_test_include" ; then
28612 kde_incdir="$kde_check"
28613 break
28615 done
28616 echo "$as_me:$LINENO: result: $kde_incdir" >&5
28617 echo "${ECHO_T}$kde_incdir" >&6
28618 if test "x$kde_incdir" = "xno" ; then
28619 { { echo "$as_me:$LINENO: error: KDE headers not found. Please specify the root of
28620 your KDE installation by exporting KDEDIR before running \"configure\"." >&5
28621 echo "$as_me: error: KDE headers not found. Please specify the root of
28622 your KDE installation by exporting KDEDIR before running \"configure\"." >&2;}
28623 { (exit 1); exit 1; }; }
28626 echo "$as_me:$LINENO: checking for KDE libraries" >&5
28627 echo $ECHO_N "checking for KDE libraries... $ECHO_C" >&6
28628 kde_libdir="no"
28629 for kde_check in $kde_libdirs ; do
28630 if test -r "$kde_check/$kde_test_library" ; then
28631 kde_libdir="$kde_check"
28632 break
28634 done
28635 echo "$as_me:$LINENO: result: $kde_libdir" >&5
28636 echo "${ECHO_T}$kde_libdir" >&6
28637 if test "x$kde_libdir" = "xno" ; then
28638 { { echo "$as_me:$LINENO: error: KDE libraries not found. Please specify the root of
28639 your KDE installation by exporting KDEDIR before running \"configure\"." >&5
28640 echo "$as_me: error: KDE libraries not found. Please specify the root of
28641 your KDE installation by exporting KDEDIR before running \"configure\"." >&2;}
28642 { (exit 1); exit 1; }; }
28645 KDE_CFLAGS="-I$qt_incdir -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
28646 KDE_LIBS="-L$kde_libdir -L$qt_libdir -lkdeui -lkdecore -lqt-mt"
28653 KDE4_CFLAGS=""
28654 KDE4_LIBS=""
28655 MOC4="moc"
28656 if test "$test_kde4" = "yes" -a "$ENABLE_KDE4" = "TRUE" ; then
28657 qt_incdirs="$QT4INC $QT4DIR /usr/include/qt4 /usr/include $x_includes"
28658 qt_libdirs="$QT4LIB /usr/lib $x_libraries"
28660 kde_incdirs="/usr/include $x_includes"
28661 kde_libdirs="/usr/lib $x_libraries"
28663 if test "$build_cpu" = "x86_64" ; then
28664 qt_libdirs="$qt_libdirs /usr/lib64/qt4 /usr/lib64/qt /usr/lib64"
28665 kde_libdirs="$kde_libdirs /usr/lib64 /usr/lib64/kde4"
28668 if test -n "$KDE4DIR" ; then
28669 kde_incdirs="$KDE4DIR/include $kde_incdirs"
28670 if test "$build_cpu" != "x86_64" ; then
28671 kde_libdirs="$KDE4DIR/lib $kde_libdirs"
28672 else
28673 kde_libdirs="$KDE4DIR/lib64 $KDE4DIR/lib $kde_libdirs"
28677 qt_test_include="Qt/qobject.h"
28678 qt_test_library="libQtCore.so"
28679 kde_test_include="ksharedptr.h"
28680 kde_test_library="libkdeui.so"
28682 echo "$as_me:$LINENO: checking for Qt4 headers" >&5
28683 echo $ECHO_N "checking for Qt4 headers... $ECHO_C" >&6
28684 qt_header_dir="no"
28685 for inc_dir in $qt_incdirs ; do
28686 if test -r "$inc_dir/$qt_test_include" ; then
28687 qt_header_dir="$inc_dir"
28688 break
28690 done
28692 echo "$as_me:$LINENO: result: $qt_header_dir" >&5
28693 echo "${ECHO_T}$qt_header_dir" >&6
28694 if test "x$qt_header_dir" = "xno" ; then
28695 { { echo "$as_me:$LINENO: error: Qt4 headers not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&5
28696 echo "$as_me: error: Qt4 headers not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&2;}
28697 { (exit 1); exit 1; }; }
28700 echo "$as_me:$LINENO: checking for Qt4 libraries" >&5
28701 echo $ECHO_N "checking for Qt4 libraries... $ECHO_C" >&6
28702 qt_lib_dir="no"
28703 for lib_dir in $qt_libdirs ; do
28704 if test -r "$lib_dir/$qt_test_library" ; then
28705 qt_lib_dir="$lib_dir"
28706 break
28708 done
28710 echo "$as_me:$LINENO: result: $qt_lib_dir" >&5
28711 echo "${ECHO_T}$qt_lib_dir" >&6
28713 if test "x$qt_lib_dir" = "xno" ; then
28714 { { echo "$as_me:$LINENO: error: Qt4 libraries not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&5
28715 echo "$as_me: error: Qt4 libraries not found. Please specify the root of your Qt4 installation by exporting QT4DIR before running \"configure\"." >&2;}
28716 { (exit 1); exit 1; }; }
28719 # Extract the first word of "moc", so it can be a program name with args.
28720 set dummy moc; ac_word=$2
28721 echo "$as_me:$LINENO: checking for $ac_word" >&5
28722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28723 if test "${ac_cv_path_MOC4+set}" = set; then
28724 echo $ECHO_N "(cached) $ECHO_C" >&6
28725 else
28726 case $MOC4 in
28727 [\\/]* | ?:[\\/]*)
28728 ac_cv_path_MOC4="$MOC4" # Let the user override the test with a path.
28731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28732 as_dummy="$PATH:$QT4DIR/bin "
28733 for as_dir in $as_dummy
28735 IFS=$as_save_IFS
28736 test -z "$as_dir" && as_dir=.
28737 for ac_exec_ext in '' $ac_executable_extensions; do
28738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28739 ac_cv_path_MOC4="$as_dir/$ac_word$ac_exec_ext"
28740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28741 break 2
28743 done
28744 done
28746 test -z "$ac_cv_path_MOC4" && ac_cv_path_MOC4="no"
28748 esac
28750 MOC4=$ac_cv_path_MOC4
28752 if test -n "$MOC4"; then
28753 echo "$as_me:$LINENO: result: $MOC4" >&5
28754 echo "${ECHO_T}$MOC4" >&6
28755 else
28756 echo "$as_me:$LINENO: result: no" >&5
28757 echo "${ECHO_T}no" >&6
28760 if test "$MOC4" = "no" ; then
28761 { { echo "$as_me:$LINENO: error: Qt Meta Object Compiler not found. Please specify
28762 the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&5
28763 echo "$as_me: error: Qt Meta Object Compiler not found. Please specify
28764 the root of your Qt installation by exporting QT4DIR before running \"configure\"." >&2;}
28765 { (exit 1); exit 1; }; }
28768 echo "$as_me:$LINENO: checking for KDE4 headers" >&5
28769 echo $ECHO_N "checking for KDE4 headers... $ECHO_C" >&6
28770 kde_incdir="no"
28771 for kde_check in $kde_incdirs ; do
28772 if test -r "$kde_check/$kde_test_include" ; then
28773 kde_incdir="$kde_check"
28774 break
28776 done
28777 echo "$as_me:$LINENO: result: $kde_incdir" >&5
28778 echo "${ECHO_T}$kde_incdir" >&6
28779 if test "x$kde_incdir" = "xno" ; then
28780 { { echo "$as_me:$LINENO: error: KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&5
28781 echo "$as_me: error: KDE4 headers not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&2;}
28782 { (exit 1); exit 1; }; }
28785 echo "$as_me:$LINENO: checking for KDE4 libraries" >&5
28786 echo $ECHO_N "checking for KDE4 libraries... $ECHO_C" >&6
28787 kde_libdir="no"
28788 for kde_check in $kde_libdirs ; do
28789 if test -r "$kde_check/$kde_test_library" ; then
28790 kde_libdir="$kde_check"
28791 break
28793 done
28795 echo "$as_me:$LINENO: result: $kde_libdir" >&5
28796 echo "${ECHO_T}$kde_libdir" >&6
28797 if test "x$kde_libdir" = "xno" ; then
28798 { { echo "$as_me:$LINENO: error: KDE4 libraries not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&5
28799 echo "$as_me: error: KDE4 libraries not found. Please specify the root of your KDE4 installation by exporting KDE4DIR before running \"configure\"." >&2;}
28800 { (exit 1); exit 1; }; }
28803 KDE4_CFLAGS="`pkg-config --cflags QtCore` `pkg-config --cflags QtGui` -I$kde_incdir -DQT_CLEAN_NAMESPACE -DQT_THREAD_SUPPORT"
28804 KDE4_LIBS="-L$kde_libdir -L$qt_lib_dir -lkdeui -lkdecore -lQtCore -lQtGui"
28810 echo "$as_me:$LINENO: checking whether to enable the lockdown pieces" >&5
28811 echo $ECHO_N "checking whether to enable the lockdown pieces... $ECHO_C" >&6
28812 ENABLE_LOCKDOWN=""
28813 if test -n "$enable_lockdown" && test "$enable_lockdown" != "no"; then
28814 ENABLE_LOCKDOWN=YES
28815 echo "$as_me:$LINENO: result: yes" >&5
28816 echo "${ECHO_T}yes" >&6
28817 else
28818 echo "$as_me:$LINENO: result: no" >&5
28819 echo "${ECHO_T}no" >&6
28823 echo "$as_me:$LINENO: checking whether to enable evolution 2 support" >&5
28824 echo $ECHO_N "checking whether to enable evolution 2 support... $ECHO_C" >&6
28825 if test "$enable_evolution2" = "yes" -o "$enable_evolution2" = "TRUE"; then
28826 echo "$as_me:$LINENO: result: yes" >&5
28827 echo "${ECHO_T}yes" >&6
28829 succeeded=no
28831 if test -z "$PKG_CONFIG"; then
28832 # Extract the first word of "pkg-config", so it can be a program name with args.
28833 set dummy pkg-config; ac_word=$2
28834 echo "$as_me:$LINENO: checking for $ac_word" >&5
28835 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
28836 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
28837 echo $ECHO_N "(cached) $ECHO_C" >&6
28838 else
28839 case $PKG_CONFIG in
28840 [\\/]* | ?:[\\/]*)
28841 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
28844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28845 for as_dir in $PATH
28847 IFS=$as_save_IFS
28848 test -z "$as_dir" && as_dir=.
28849 for ac_exec_ext in '' $ac_executable_extensions; do
28850 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
28851 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
28852 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
28853 break 2
28855 done
28856 done
28858 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
28860 esac
28862 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
28864 if test -n "$PKG_CONFIG"; then
28865 echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
28866 echo "${ECHO_T}$PKG_CONFIG" >&6
28867 else
28868 echo "$as_me:$LINENO: result: no" >&5
28869 echo "${ECHO_T}no" >&6
28874 if test "$PKG_CONFIG" = "no" ; then
28875 echo "*** The pkg-config script could not be found. Make sure it is"
28876 echo "*** in your path, or set the PKG_CONFIG environment variable"
28877 echo "*** to the full path to pkg-config."
28878 echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
28879 else
28880 PKG_CONFIG_MIN_VERSION=0.9.0
28881 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
28882 echo "$as_me:$LINENO: checking for gobject-2.0" >&5
28883 echo $ECHO_N "checking for gobject-2.0... $ECHO_C" >&6
28885 if $PKG_CONFIG --exists "gobject-2.0" ; then
28886 echo "$as_me:$LINENO: result: yes" >&5
28887 echo "${ECHO_T}yes" >&6
28888 succeeded=yes
28890 echo "$as_me:$LINENO: checking GOBJECT_CFLAGS" >&5
28891 echo $ECHO_N "checking GOBJECT_CFLAGS... $ECHO_C" >&6
28892 GOBJECT_CFLAGS=`$PKG_CONFIG --cflags "gobject-2.0"`
28893 echo "$as_me:$LINENO: result: $GOBJECT_CFLAGS" >&5
28894 echo "${ECHO_T}$GOBJECT_CFLAGS" >&6
28896 echo "$as_me:$LINENO: checking GOBJECT_LIBS" >&5
28897 echo $ECHO_N "checking GOBJECT_LIBS... $ECHO_C" >&6
28898 GOBJECT_LIBS=`$PKG_CONFIG --libs "gobject-2.0"`
28899 echo "$as_me:$LINENO: result: $GOBJECT_LIBS" >&5
28900 echo "${ECHO_T}$GOBJECT_LIBS" >&6
28901 else
28902 GOBJECT_CFLAGS=""
28903 GOBJECT_LIBS=""
28904 ## If we have a custom action on failure, don't print errors, but
28905 ## do set a variable so people can do so.
28906 GOBJECT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gobject-2.0"`
28907 echo $GOBJECT_PKG_ERRORS
28912 else
28913 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
28914 echo "*** See http://www.freedesktop.org/software/pkgconfig"
28918 if test $succeeded = yes; then
28920 else
28921 { { echo "$as_me:$LINENO: error: Library requirements (gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
28922 echo "$as_me: error: Library requirements (gobject-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
28923 { (exit 1); exit 1; }; }
28926 ENABLE_EVOAB2="TRUE"
28927 else
28928 ENABLE_EVOAB2=""
28929 echo "$as_me:$LINENO: result: no" >&5
28930 echo "${ECHO_T}no" >&6
28936 echo "$as_me:$LINENO: checking whether to enable KDE address book support" >&5
28937 echo $ECHO_N "checking whether to enable KDE address book support... $ECHO_C" >&6
28938 if test "$enable_kdeab" = "yes" && test "$enable_kde" = "yes"; then
28939 echo "$as_me:$LINENO: result: yes" >&5
28940 echo "${ECHO_T}yes" >&6
28941 ac_ext=cc
28942 ac_cpp='$CXXCPP $CPPFLAGS'
28943 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28944 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28945 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28947 save_CXXFLAGS=$CXXFLAGS
28948 CXXFLAGS="$CXXFLAGS $KDE_CFLAGS"
28949 echo "$as_me:$LINENO: checking whether KDE is between 3.2 and 3.6" >&5
28950 echo $ECHO_N "checking whether KDE is between 3.2 and 3.6... $ECHO_C" >&6
28951 if test "$cross_compiling" = yes; then
28952 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
28953 See \`config.log' for more details." >&5
28954 echo "$as_me: error: cannot run test program while cross compiling
28955 See \`config.log' for more details." >&2;}
28956 { (exit 1); exit 1; }; }
28957 else
28958 cat >conftest.$ac_ext <<_ACEOF
28959 /* confdefs.h. */
28960 _ACEOF
28961 cat confdefs.h >>conftest.$ac_ext
28962 cat >>conftest.$ac_ext <<_ACEOF
28963 /* end confdefs.h. */
28965 #include <kdeversion.h>
28967 int main(int argc, char **argv) {
28968 if (KDE_VERSION_MAJOR == 3 && 2 <= KDE_VERSION_MINOR && KDE_VERSION_MINOR <= 6) return 0;
28969 else return 1;
28972 _ACEOF
28973 rm -f conftest$ac_exeext
28974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28975 (eval $ac_link) 2>&5
28976 ac_status=$?
28977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28978 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
28979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28980 (eval $ac_try) 2>&5
28981 ac_status=$?
28982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28983 (exit $ac_status); }; }; then
28984 echo "$as_me:$LINENO: result: yes" >&5
28985 echo "${ECHO_T}yes" >&6
28986 else
28987 echo "$as_me: program exited with status $ac_status" >&5
28988 echo "$as_me: failed program was:" >&5
28989 sed 's/^/| /' conftest.$ac_ext >&5
28991 ( exit $ac_status )
28992 { { echo "$as_me:$LINENO: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" >&5
28993 echo "$as_me: error: KDE version too old or too recent, please use another version of KDE or disable KDE address book support" >&2;}
28994 { (exit 1); exit 1; }; }
28996 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28998 CXXFLAGS=$save_CXXFLAGS
28999 ac_ext=c
29000 ac_cpp='$CPP $CPPFLAGS'
29001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
29002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
29003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
29005 ENABLE_KAB=TRUE
29006 else
29007 echo "$as_me:$LINENO: result: no" >&5
29008 echo "${ECHO_T}no" >&6
29009 ENABLE_KAB=
29013 echo "$as_me:$LINENO: checking whether to include MathMLDTD" >&5
29014 echo $ECHO_N "checking whether to include MathMLDTD... $ECHO_C" >&6
29015 if test -n "$enable_mathmldtd"; then
29016 if test "$enable_mathmldtd" = "no"; then
29017 echo "$as_me:$LINENO: result: no" >&5
29018 echo "${ECHO_T}no" >&6
29019 SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
29020 else
29021 echo "$as_me:$LINENO: result: yes" >&5
29022 echo "${ECHO_T}yes" >&6
29023 BUILD_TYPE="$BUILD_TYPE MATHMLDTD"
29025 else
29026 echo "$as_me:$LINENO: result: no" >&5
29027 echo "${ECHO_T}no" >&6
29028 SCPDEFS="$SCPDEFS -DWITHOUT_MATHMLDTD"
29031 echo "$as_me:$LINENO: checking whether to include third-party fonts" >&5
29032 echo $ECHO_N "checking whether to include third-party fonts... $ECHO_C" >&6
29033 if test "$with_fonts" != "no" ; then
29034 echo "$as_me:$LINENO: result: yes" >&5
29035 echo "${ECHO_T}yes" >&6
29036 WITH_FONTS=YES
29037 BUILD_TYPE="$BUILD_TYPE MORE_FONTS"
29038 else
29039 echo "$as_me:$LINENO: result: no" >&5
29040 echo "${ECHO_T}no" >&6
29041 WITH_FONTS=NO
29042 SCPDEFS="$SCPDEFS -DWITHOUT_FONTS"
29046 echo "$as_me:$LINENO: checking whether to include PPDs" >&5
29047 echo $ECHO_N "checking whether to include PPDs... $ECHO_C" >&6
29048 if test "$with_ppds" != "no"; then
29049 echo "$as_me:$LINENO: result: yes" >&5
29050 echo "${ECHO_T}yes" >&6
29051 else
29052 echo "$as_me:$LINENO: result: no" >&5
29053 echo "${ECHO_T}no" >&6
29054 WITHOUT_PPDS=YES
29055 SCPDEFS="$SCPDEFS -DWITHOUT_PPDS"
29059 echo "$as_me:$LINENO: checking whether to include AFMs" >&5
29060 echo $ECHO_N "checking whether to include AFMs... $ECHO_C" >&6
29061 if test "$with_afms" != "no"; then
29062 echo "$as_me:$LINENO: result: yes" >&5
29063 echo "${ECHO_T}yes" >&6
29064 else
29065 echo "$as_me:$LINENO: result: no" >&5
29066 echo "${ECHO_T}no" >&6
29067 WITHOUT_AFMS=YES
29068 SCPDEFS="$SCPDEFS -DWITHOUT_AFMS"
29074 echo "$as_me:$LINENO: checking whether and how to use Xinerama" >&5
29075 echo $ECHO_N "checking whether and how to use Xinerama... $ECHO_C" >&6
29076 if test "$_os" = "Darwin"; then
29077 USE_XINERAMA=YES
29078 XINERAMA_LINK=dynamic
29079 echo "$as_me:$LINENO: result: yes" >&5
29080 echo "${ECHO_T}yes" >&6
29081 elif test "$_os" = "Linux" -o "$_os" = "FreeBSD"; then
29082 if test -e "$XLIB/libXinerama.so" -a -e "$XLIB/libXinerama.a"; then
29083 # we have both versions, let the user decide but use the dynamic one
29084 # per default
29085 USE_XINERAMA=YES
29086 if test -z "$with_static_xinerama" -o -n "$with_system_libs"; then
29087 XINERAMA_LINK=dynamic
29088 else
29089 XINERAMA_LINK=static
29091 elif test -e "$XLIB/libXinerama.so" -a ! -e "$XLIB/libXinerama.a"; then
29092 # we have only the dynamic version
29093 USE_XINERAMA=YES
29094 XINERAMA_LINK=dynamic
29095 elif test -e "$XLIB/libXinerama.a"; then
29096 # static version
29097 if echo $build_cpu | grep -E 'i[3456]86' 2>/dev/null >/dev/null; then
29098 USE_XINERAMA=YES
29099 XINERAMA_LINK=static
29100 else
29101 USE_XINERAMA=NO
29102 XINERAMA_LINK=none
29104 else
29105 # no Xinerama
29106 USE_XINERAMA=NO
29107 XINERAMA_LINK=none
29109 if test "$USE_XINERAMA" = "YES"; then
29110 echo "$as_me:$LINENO: result: yes, with $XINERAMA_LINK linking" >&5
29111 echo "${ECHO_T}yes, with $XINERAMA_LINK linking" >&6
29112 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
29113 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
29114 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
29115 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
29116 echo $ECHO_N "(cached) $ECHO_C" >&6
29118 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
29119 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
29120 else
29121 # Is the header compilable?
29122 echo "$as_me:$LINENO: checking X11/extensions/Xinerama.h usability" >&5
29123 echo $ECHO_N "checking X11/extensions/Xinerama.h usability... $ECHO_C" >&6
29124 cat >conftest.$ac_ext <<_ACEOF
29125 /* confdefs.h. */
29126 _ACEOF
29127 cat confdefs.h >>conftest.$ac_ext
29128 cat >>conftest.$ac_ext <<_ACEOF
29129 /* end confdefs.h. */
29130 $ac_includes_default
29131 #include <X11/extensions/Xinerama.h>
29132 _ACEOF
29133 rm -f conftest.$ac_objext
29134 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
29135 (eval $ac_compile) 2>conftest.er1
29136 ac_status=$?
29137 grep -v '^ *+' conftest.er1 >conftest.err
29138 rm -f conftest.er1
29139 cat conftest.err >&5
29140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29141 (exit $ac_status); } &&
29142 { ac_try='test -z "$ac_c_werror_flag"
29143 || test ! -s conftest.err'
29144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29145 (eval $ac_try) 2>&5
29146 ac_status=$?
29147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29148 (exit $ac_status); }; } &&
29149 { ac_try='test -s conftest.$ac_objext'
29150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29151 (eval $ac_try) 2>&5
29152 ac_status=$?
29153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29154 (exit $ac_status); }; }; then
29155 ac_header_compiler=yes
29156 else
29157 echo "$as_me: failed program was:" >&5
29158 sed 's/^/| /' conftest.$ac_ext >&5
29160 ac_header_compiler=no
29162 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
29163 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
29164 echo "${ECHO_T}$ac_header_compiler" >&6
29166 # Is the header present?
29167 echo "$as_me:$LINENO: checking X11/extensions/Xinerama.h presence" >&5
29168 echo $ECHO_N "checking X11/extensions/Xinerama.h presence... $ECHO_C" >&6
29169 cat >conftest.$ac_ext <<_ACEOF
29170 /* confdefs.h. */
29171 _ACEOF
29172 cat confdefs.h >>conftest.$ac_ext
29173 cat >>conftest.$ac_ext <<_ACEOF
29174 /* end confdefs.h. */
29175 #include <X11/extensions/Xinerama.h>
29176 _ACEOF
29177 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
29178 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
29179 ac_status=$?
29180 grep -v '^ *+' conftest.er1 >conftest.err
29181 rm -f conftest.er1
29182 cat conftest.err >&5
29183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29184 (exit $ac_status); } >/dev/null; then
29185 if test -s conftest.err; then
29186 ac_cpp_err=$ac_c_preproc_warn_flag
29187 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
29188 else
29189 ac_cpp_err=
29191 else
29192 ac_cpp_err=yes
29194 if test -z "$ac_cpp_err"; then
29195 ac_header_preproc=yes
29196 else
29197 echo "$as_me: failed program was:" >&5
29198 sed 's/^/| /' conftest.$ac_ext >&5
29200 ac_header_preproc=no
29202 rm -f conftest.err conftest.$ac_ext
29203 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
29204 echo "${ECHO_T}$ac_header_preproc" >&6
29206 # So? What about this header?
29207 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
29208 yes:no: )
29209 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: accepted by the compiler, rejected by the preprocessor!" >&5
29210 echo "$as_me: WARNING: X11/extensions/Xinerama.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
29211 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: proceeding with the compiler's result" >&5
29212 echo "$as_me: WARNING: X11/extensions/Xinerama.h: proceeding with the compiler's result" >&2;}
29213 ac_header_preproc=yes
29215 no:yes:* )
29216 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: present but cannot be compiled" >&5
29217 echo "$as_me: WARNING: X11/extensions/Xinerama.h: present but cannot be compiled" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: check for missing prerequisite headers?" >&5
29219 echo "$as_me: WARNING: X11/extensions/Xinerama.h: check for missing prerequisite headers?" >&2;}
29220 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: see the Autoconf documentation" >&5
29221 echo "$as_me: WARNING: X11/extensions/Xinerama.h: see the Autoconf documentation" >&2;}
29222 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: section \"Present But Cannot Be Compiled\"" >&5
29223 echo "$as_me: WARNING: X11/extensions/Xinerama.h: section \"Present But Cannot Be Compiled\"" >&2;}
29224 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: proceeding with the preprocessor's result" >&5
29225 echo "$as_me: WARNING: X11/extensions/Xinerama.h: proceeding with the preprocessor's result" >&2;}
29226 { echo "$as_me:$LINENO: WARNING: X11/extensions/Xinerama.h: in the future, the compiler will take precedence" >&5
29227 echo "$as_me: WARNING: X11/extensions/Xinerama.h: in the future, the compiler will take precedence" >&2;}
29229 cat <<\_ASBOX
29230 ## ------------------------------------------ ##
29231 ## Report this to the AC_PACKAGE_NAME lists. ##
29232 ## ------------------------------------------ ##
29233 _ASBOX
29235 sed "s/^/$as_me: WARNING: /" >&2
29237 esac
29238 echo "$as_me:$LINENO: checking for X11/extensions/Xinerama.h" >&5
29239 echo $ECHO_N "checking for X11/extensions/Xinerama.h... $ECHO_C" >&6
29240 if test "${ac_cv_header_X11_extensions_Xinerama_h+set}" = set; then
29241 echo $ECHO_N "(cached) $ECHO_C" >&6
29242 else
29243 ac_cv_header_X11_extensions_Xinerama_h=$ac_header_preproc
29245 echo "$as_me:$LINENO: result: $ac_cv_header_X11_extensions_Xinerama_h" >&5
29246 echo "${ECHO_T}$ac_cv_header_X11_extensions_Xinerama_h" >&6
29249 if test $ac_cv_header_X11_extensions_Xinerama_h = yes; then
29251 else
29252 { { echo "$as_me:$LINENO: error: Xinerama header not found." >&5
29253 echo "$as_me: error: Xinerama header not found." >&2;}
29254 { (exit 1); exit 1; }; }
29258 XINERAMA_EXTRA_LIBS="-L$XLIB -lXext"
29259 if test "$_os" = "FreeBSD"; then
29260 XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -lXt"
29262 if test "$_os" = "Linux"; then
29263 XINERAMA_EXTRA_LIBS="$XINERAMA_EXTRA_LIBS -ldl"
29266 echo "$as_me:$LINENO: checking for XineramaIsActive in -lXinerama" >&5
29267 echo $ECHO_N "checking for XineramaIsActive in -lXinerama... $ECHO_C" >&6
29268 if test "${ac_cv_lib_Xinerama_XineramaIsActive+set}" = set; then
29269 echo $ECHO_N "(cached) $ECHO_C" >&6
29270 else
29271 ac_check_lib_save_LIBS=$LIBS
29272 LIBS="-lXinerama $XINERAMA_EXTRA_LIBS $LIBS"
29273 cat >conftest.$ac_ext <<_ACEOF
29274 /* confdefs.h. */
29275 _ACEOF
29276 cat confdefs.h >>conftest.$ac_ext
29277 cat >>conftest.$ac_ext <<_ACEOF
29278 /* end confdefs.h. */
29280 /* Override any gcc2 internal prototype to avoid an error. */
29281 #ifdef __cplusplus
29282 extern "C"
29283 #endif
29284 /* We use char because int might match the return type of a gcc2
29285 builtin and then its argument prototype would still apply. */
29286 char XineramaIsActive ();
29288 main ()
29290 XineramaIsActive ();
29292 return 0;
29294 _ACEOF
29295 rm -f conftest.$ac_objext conftest$ac_exeext
29296 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29297 (eval $ac_link) 2>conftest.er1
29298 ac_status=$?
29299 grep -v '^ *+' conftest.er1 >conftest.err
29300 rm -f conftest.er1
29301 cat conftest.err >&5
29302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29303 (exit $ac_status); } &&
29304 { ac_try='test -z "$ac_c_werror_flag"
29305 || test ! -s conftest.err'
29306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29307 (eval $ac_try) 2>&5
29308 ac_status=$?
29309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29310 (exit $ac_status); }; } &&
29311 { ac_try='test -s conftest$ac_exeext'
29312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29313 (eval $ac_try) 2>&5
29314 ac_status=$?
29315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29316 (exit $ac_status); }; }; then
29317 ac_cv_lib_Xinerama_XineramaIsActive=yes
29318 else
29319 echo "$as_me: failed program was:" >&5
29320 sed 's/^/| /' conftest.$ac_ext >&5
29322 ac_cv_lib_Xinerama_XineramaIsActive=no
29324 rm -f conftest.err conftest.$ac_objext \
29325 conftest$ac_exeext conftest.$ac_ext
29326 LIBS=$ac_check_lib_save_LIBS
29328 echo "$as_me:$LINENO: result: $ac_cv_lib_Xinerama_XineramaIsActive" >&5
29329 echo "${ECHO_T}$ac_cv_lib_Xinerama_XineramaIsActive" >&6
29330 if test $ac_cv_lib_Xinerama_XineramaIsActive = yes; then
29331 cat >>confdefs.h <<_ACEOF
29332 #define HAVE_LIBXINERAMA 1
29333 _ACEOF
29335 LIBS="-lXinerama $LIBS"
29337 else
29338 { { echo "$as_me:$LINENO: error: Xinerama not functional?" >&5
29339 echo "$as_me: error: Xinerama not functional?" >&2;}
29340 { (exit 1); exit 1; }; }
29343 else
29344 echo "$as_me:$LINENO: result: no, libXinerama not found or wrong architecture." >&5
29345 echo "${ECHO_T}no, libXinerama not found or wrong architecture." >&6
29347 else
29348 echo "$as_me:$LINENO: result: no" >&5
29349 echo "${ECHO_T}no" >&6
29355 if test "$SOLAR_JAVA" != ""; then
29356 ANT_HOME=; export ANT_HOME
29357 WITH_ANT_HOME=; export WITH_ANT_HOME
29358 if test -z "$with_ant_home"; then
29359 for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
29361 # Extract the first word of "$ac_prog", so it can be a program name with args.
29362 set dummy $ac_prog; ac_word=$2
29363 echo "$as_me:$LINENO: checking for $ac_word" >&5
29364 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29365 if test "${ac_cv_path_ANT+set}" = set; then
29366 echo $ECHO_N "(cached) $ECHO_C" >&6
29367 else
29368 case $ANT in
29369 [\\/]* | ?:[\\/]*)
29370 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
29373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29374 for as_dir in $PATH
29376 IFS=$as_save_IFS
29377 test -z "$as_dir" && as_dir=.
29378 for ac_exec_ext in '' $ac_executable_extensions; do
29379 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29380 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
29381 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29382 break 2
29384 done
29385 done
29388 esac
29390 ANT=$ac_cv_path_ANT
29392 if test -n "$ANT"; then
29393 echo "$as_me:$LINENO: result: $ANT" >&5
29394 echo "${ECHO_T}$ANT" >&6
29395 else
29396 echo "$as_me:$LINENO: result: no" >&5
29397 echo "${ECHO_T}no" >&6
29400 test -n "$ANT" && break
29401 done
29403 else
29404 if test "$_os" = "WINNT"; then
29405 with_ant_home=`cygpath -u "$with_ant_home"`
29407 for ac_prog in jakarta-ant ant ant.sh ant.bat ant.cmd
29409 # Extract the first word of "$ac_prog", so it can be a program name with args.
29410 set dummy $ac_prog; ac_word=$2
29411 echo "$as_me:$LINENO: checking for $ac_word" >&5
29412 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
29413 if test "${ac_cv_path_ANT+set}" = set; then
29414 echo $ECHO_N "(cached) $ECHO_C" >&6
29415 else
29416 case $ANT in
29417 [\\/]* | ?:[\\/]*)
29418 ac_cv_path_ANT="$ANT" # Let the user override the test with a path.
29421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
29422 as_dummy="$with_ant_home/bin:$PATH"
29423 for as_dir in $as_dummy
29425 IFS=$as_save_IFS
29426 test -z "$as_dir" && as_dir=.
29427 for ac_exec_ext in '' $ac_executable_extensions; do
29428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
29429 ac_cv_path_ANT="$as_dir/$ac_word$ac_exec_ext"
29430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
29431 break 2
29433 done
29434 done
29437 esac
29439 ANT=$ac_cv_path_ANT
29441 if test -n "$ANT"; then
29442 echo "$as_me:$LINENO: result: $ANT" >&5
29443 echo "${ECHO_T}$ANT" >&6
29444 else
29445 echo "$as_me:$LINENO: result: no" >&5
29446 echo "${ECHO_T}no" >&6
29449 test -n "$ANT" && break
29450 done
29452 WITH_ANT_HOME=$with_ant_home
29453 ANT_HOME=$with_ant_home
29456 if test -z "$ANT"; then
29457 { { echo "$as_me:$LINENO: error: Ant not found - Make sure it's in the path or use --with-ant-home" >&5
29458 echo "$as_me: error: Ant not found - Make sure it's in the path or use --with-ant-home" >&2;}
29459 { (exit 1); exit 1; }; }
29460 else
29461 # resolve relative or absolute symlink
29462 while test -h "$ANT"; do
29463 a_cwd=`pwd`
29464 a_basename=`basename "$ANT"`
29465 a_script=`ls -l "$ANT" | sed "s/.*${a_basename} -> //g"`
29466 cd "`dirname "$ANT"`"
29467 cd "`dirname "$a_script"`"
29468 ANT="`pwd`"/"`basename "$a_script"`"
29469 cd "$a_cwd"
29470 done
29472 if test "$_os" = "OS2"; then
29473 ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"`
29474 export ANT_HOME
29477 echo "$as_me:$LINENO: checking if $ANT works" >&5
29478 echo $ECHO_N "checking if $ANT works... $ECHO_C" >&6
29479 cat > conftest.java << EOF
29480 public class conftest {
29481 int testmethod(int a, int b) {
29482 return a + b;
29487 cat > conftest.xml << EOF
29488 <project name="conftest" default="conftest">
29489 <target name="conftest">
29490 <javac srcdir="." includes="conftest.java">
29491 </javac>
29492 </target>
29493 </project>
29495 oldJAVA_HOME=$JAVA_HOME
29496 if test "$JAVACISGCJ" = "yes"; then
29497 JAVA_HOME=; export JAVA_HOME
29498 ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
29499 else
29500 ant_cmd="$ANT -buildfile conftest.xml 1>&2"
29502 { (eval echo "$as_me:$LINENO: \"$ant_cmd\"") >&5
29503 (eval $ant_cmd) 2>&5
29504 ac_status=$?
29505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29506 (exit $ac_status); }
29507 if test $? = 0 && test -f ./conftest.class ; then
29508 echo "$as_me:$LINENO: result: Ant works" >&5
29509 echo "${ECHO_T}Ant works" >&6
29510 if test -z "$WITH_ANT_HOME"; then
29511 ANT_HOME=`$ANT -diagnostics | $EGREP "ant.home :" | $SED -e "s#ant.home : ##g"`
29512 if test -z "$ANT_HOME"; then
29513 ANT_HOME=`echo $ANT | $SED -n "s/\/bin\/ant.*\$//p"`
29515 else
29516 ANT_HOME="$WITH_ANT_HOME"
29518 else
29519 echo "configure: Ant test failed" >&5
29520 cat conftest.java >&5
29521 cat conftest.xml >&5
29522 { echo "$as_me:$LINENO: WARNING: Ant does not work - Some Java projects will not build!" >&5
29523 echo "$as_me: WARNING: Ant does not work - Some Java projects will not build!" >&2;}
29524 ANT_HOME=""
29525 echo "Ant does not work - Some Java projects will not build!" >>warn
29527 JAVA_HOME=$oldJAVA_HOME
29528 rm -f conftest* core core.* *.core
29530 if test -z "$ANT_HOME"; then
29531 ANT_HOME="NO_ANT_HOME"
29535 if test "$ANT_HOME" != "NO_ANT_HOME"; then
29536 echo "$as_me:$LINENO: checking Ant lib directory" >&5
29537 echo $ECHO_N "checking Ant lib directory... $ECHO_C" >&6
29538 if test -f $ANT_HOME/lib/ant.jar; then
29539 ANT_LIB="$ANT_HOME/lib"
29540 else
29541 if test -f $ANT_HOME/ant.jar; then
29542 ANT_LIB="$ANT_HOME"
29543 else
29544 if test -f /usr/share/java/ant.jar; then
29545 ANT_LIB=/usr/share/java
29546 else
29547 if test -f /usr/share/ant-core/lib/ant.jar; then
29548 ANT_LIB=/usr/share/ant-core/lib
29549 else
29550 if test -f $ANT_HOME/lib/ant/ant.jar; then
29551 ANT_LIB="$ANT_HOME/lib/ant"
29552 else
29553 { { echo "$as_me:$LINENO: error: Ant libraries not found!" >&5
29554 echo "$as_me: error: Ant libraries not found!" >&2;}
29555 { (exit 1); exit 1; }; }
29561 echo "$as_me:$LINENO: result: Ant lib directory found." >&5
29562 echo "${ECHO_T}Ant lib directory found." >&6
29567 ant_minver=1.6.0
29568 # update for more extensions...
29569 if test "$ENABLE_MEDIAWIKI" = "YES"; then
29570 ant_minver=1.7.0
29572 ant_minminor1=`echo $ant_minver | cut -d"." -f2`
29574 echo "$as_me:$LINENO: checking whether ant is >= $ant_minver" >&5
29575 echo $ECHO_N "checking whether ant is >= $ant_minver... $ECHO_C" >&6
29576 ant_version=`$ANT -version | $AWK '{ print $4; }'`
29577 ant_version_major=`echo $ant_version | cut -d. -f1`
29578 ant_version_minor=`echo $ant_version | cut -d. -f2`
29579 echo "configure: ant_version $ant_version " >&5
29580 echo "configure: ant_version_major $ant_version_major " >&5
29581 echo "configure: ant_version_minor $ant_version_minor " >&5
29582 if test "$ant_version_major" -ge "2"; then
29583 echo "$as_me:$LINENO: result: yes, $ant_version" >&5
29584 echo "${ECHO_T}yes, $ant_version" >&6
29585 elif test "$ant_version_major" = "1" && test "$ant_version_minor" -ge "$ant_minminor1"; then
29586 echo "$as_me:$LINENO: result: yes, $ant_version" >&5
29587 echo "${ECHO_T}yes, $ant_version" >&6
29588 else
29589 { { echo "$as_me:$LINENO: error: no, you need at least ant >= $ant_minver" >&5
29590 echo "$as_me: error: no, you need at least ant >= $ant_minver" >&2;}
29591 { (exit 1); exit 1; }; }
29594 if test "$ENABLE_MEDIAWIKI" = "YES"; then
29595 echo "$as_me:$LINENO: checking whether ant supports mapper type=\"regexp\"" >&5
29596 echo $ECHO_N "checking whether ant supports mapper type=\"regexp\"... $ECHO_C" >&6
29597 rm -rf confdir
29598 mkdir confdir
29599 cat > conftest.java << EOF
29600 public class conftest {
29601 int testmethod(int a, int b) {
29602 return a + b;
29607 cat > conftest.xml << EOF
29608 <project name="conftest" default="conftest">
29609 <target name="conftest" depends="copytest">
29610 <javac srcdir="." includes="conftest.java">
29611 </javac>
29612 </target>
29613 <target name="copytest">
29614 <copy todir="confdir">
29615 <fileset dir="confdir" includes="**/*.abc" casesensitive="yes"/>
29616 <filterset/>
29617 <mapper type="regexp" from="^(.*/\\)foo(/\\.*)" to="\1baa\2"/>
29618 </copy>
29619 </target>
29620 </project>
29622 if test "$JAVACISGCJ" = "yes"; then
29623 JAVA_HOME=; export JAVA_HOME
29624 ant_cmd="$ANT -Dbuild.compiler=gcj -buildfile conftest.xml 1>&2"
29625 else
29626 ant_cmd="$ANT -buildfile conftest.xml 1>&2"
29628 { (eval echo "$as_me:$LINENO: \"$ant_cmd\"") >&5
29629 (eval $ant_cmd) 2>&5
29630 ac_status=$?
29631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29632 (exit $ac_status); }
29633 if test $? = 0 && test -f ./conftest.class ; then
29634 echo "$as_me:$LINENO: result: yes" >&5
29635 echo "${ECHO_T}yes" >&6
29636 rm -rf confdir
29637 else
29638 echo "configure: Ant test failed" >&5
29639 cat conftest.java >&5
29640 cat conftest.xml >&5
29641 rm -rf confdir
29642 { { echo "$as_me:$LINENO: error: no. Did you install ant-apache-regexp?" >&5
29643 echo "$as_me: error: no. Did you install ant-apache-regexp?" >&2;}
29644 { (exit 1); exit 1; }; }
29647 rm -f conftest* core core.* *.core
29649 OOO_JUNIT_JAR=
29650 if test "$SOLAR_JAVA" != "" && test "$with_junit" != "no"; then
29651 echo "$as_me:$LINENO: checking for JUnit 4" >&5
29652 echo $ECHO_N "checking for JUnit 4... $ECHO_C" >&6
29653 if test "$with_junit" == "yes"; then
29654 if test -e /usr/share/java/junit4.jar; then
29655 OOO_JUNIT_JAR=/usr/share/java/junit4.jar
29656 else
29657 OOO_JUNIT_JAR=/usr/share/java/junit.jar
29659 else
29660 OOO_JUNIT_JAR=$with_junit
29662 if test "$_os" = "WINNT"; then
29663 OOO_JUNIT_JAR=`cygpath -m "$OOO_JUNIT_JAR"`
29665 "$JAVA_HOME/bin/jar" tf "$OOO_JUNIT_JAR" 2>&5 | \
29666 grep org/junit/Before.class > /dev/null 2>&5
29667 if test $? -eq 0; then
29668 echo "$as_me:$LINENO: result: $OOO_JUNIT_JAR" >&5
29669 echo "${ECHO_T}$OOO_JUNIT_JAR" >&6
29670 else
29671 echo "$as_me:$LINENO: result: no" >&5
29672 echo "${ECHO_T}no" >&6
29673 { { echo "$as_me:$LINENO: error: cannot find JUnit 4 jar; please install one in the default
29674 location (/usr/share/java), specify its pathname via
29675 --with-junit=..., or disable it via --without-junit" >&5
29676 echo "$as_me: error: cannot find JUnit 4 jar; please install one in the default
29677 location (/usr/share/java), specify its pathname via
29678 --with-junit=..., or disable it via --without-junit" >&2;}
29679 { (exit 1); exit 1; }; }
29684 echo "$as_me:$LINENO: checking which languages to be built" >&5
29685 echo $ECHO_N "checking which languages to be built... $ECHO_C" >&6
29686 WITH_LANG="$with_lang"
29687 if test -z "$WITH_LANG"; then
29688 echo "$as_me:$LINENO: result: en-US" >&5
29689 echo "${ECHO_T}en-US" >&6
29690 else
29691 echo "$as_me:$LINENO: result: $WITH_LANG" >&5
29692 echo "${ECHO_T}$WITH_LANG" >&6
29696 echo "$as_me:$LINENO: checking which languages have poor help localizations" >&5
29697 echo $ECHO_N "checking which languages have poor help localizations... $ECHO_C" >&6
29698 WITH_POOR_HELP_LOCALIZATIONS="$with_poor_help_localizations"
29699 if test -z "$WITH_POOR_HELP_LOCALIZATIONS"; then
29700 echo "$as_me:$LINENO: result: none" >&5
29701 echo "${ECHO_T}none" >&6
29702 else
29703 echo "$as_me:$LINENO: result: $WITH_POOR_HELP_LOCALIZATIONS" >&5
29704 echo "${ECHO_T}$WITH_POOR_HELP_LOCALIZATIONS" >&6
29708 echo "$as_me:$LINENO: checking which dictionaries to include" >&5
29709 echo $ECHO_N "checking which dictionaries to include... $ECHO_C" >&6
29710 if test -z "$with_dict"; then
29711 WITH_DICT=,ALL,
29712 echo "$as_me:$LINENO: result: ALL" >&5
29713 echo "${ECHO_T}ALL" >&6
29714 else
29715 WITH_DICT=","$with_dict","
29716 echo "$as_me:$LINENO: result: $with_dict" >&5
29717 echo "${ECHO_T}$with_dict" >&6
29721 echo "$as_me:$LINENO: checking for additional 'intro' bitmaps" >&5
29722 echo $ECHO_N "checking for additional 'intro' bitmaps... $ECHO_C" >&6
29723 INTRO_BITMAPS=
29724 if test -z "$with_intro_bitmaps" -o "$with_intro_bitmaps" = "no" ; then
29725 INTRO_BITMAPS=
29726 echo "$as_me:$LINENO: result: none" >&5
29727 echo "${ECHO_T}none" >&6
29728 else
29729 for bitmap in `echo $with_intro_bitmaps | tr ',' ' '` ; do
29730 case "$bitmap" in
29731 *.bmp) ;;
29732 *) bitmap= ; { echo "$as_me:$LINENO: WARNING: Intro bitmaps should be .bmp files!" >&5
29733 echo "$as_me: WARNING: Intro bitmaps should be .bmp files!" >&2;} ;;
29734 esac
29735 if test -n "$bitmap" ; then
29736 INTRO_BITMAPS="$INTRO_BITMAPS $bitmap"
29738 done
29739 echo "$as_me:$LINENO: result: $INTRO_BITMAPS" >&5
29740 echo "${ECHO_T}$INTRO_BITMAPS" >&6
29744 echo "$as_me:$LINENO: checking for additional 'about' bitmaps" >&5
29745 echo $ECHO_N "checking for additional 'about' bitmaps... $ECHO_C" >&6
29746 ABOUT_BITMAPS=
29747 if test -z "$with_about_bitmaps" -o "$with_about_bitmaps" = "no" ; then
29748 ABOUT_BITMAPS=
29749 echo "$as_me:$LINENO: result: none" >&5
29750 echo "${ECHO_T}none" >&6
29751 else
29752 for bitmap in `echo $with_about_bitmaps | tr ',' ' '` ; do
29753 case "$bitmap" in
29754 *.bmp) ;;
29755 *) bitmap= ; { echo "$as_me:$LINENO: WARNING: About bitmaps should be .bmp files!" >&5
29756 echo "$as_me: WARNING: About bitmaps should be .bmp files!" >&2;} ;;
29757 esac
29758 if test -n "$bitmap" ; then
29759 ABOUT_BITMAPS="$ABOUT_BITMAPS $bitmap"
29761 done
29762 echo "$as_me:$LINENO: result: $ABOUT_BITMAPS" >&5
29763 echo "${ECHO_T}$ABOUT_BITMAPS" >&6
29767 OOO_VENDOR=
29768 echo "$as_me:$LINENO: checking for vendor" >&5
29769 echo $ECHO_N "checking for vendor... $ECHO_C" >&6
29770 if test -z "$with_vendor" -o "$with_vendor" = "no" ; then
29771 echo "$as_me:$LINENO: result: not set" >&5
29772 echo "${ECHO_T}not set" >&6
29773 else
29774 OOO_VENDOR="$with_vendor"
29775 echo "$as_me:$LINENO: result: $OOO_VENDOR" >&5
29776 echo "${ECHO_T}$OOO_VENDOR" >&6
29780 UNIXWRAPPERNAME=
29781 echo "$as_me:$LINENO: checking for UNIX wrapper name" >&5
29782 echo $ECHO_N "checking for UNIX wrapper name... $ECHO_C" >&6
29783 if test -z "$with_unix_wrapper" -o "$with_unix_wrapper" = "no" -o "$with_unix_wrapper" = "yes" ; then
29784 echo "$as_me:$LINENO: result: not set" >&5
29785 echo "${ECHO_T}not set" >&6
29786 else
29787 UNIXWRAPPERNAME="$with_unix_wrapper"
29788 echo "$as_me:$LINENO: result: $UNIXWRAPPERNAME" >&5
29789 echo "${ECHO_T}$UNIXWRAPPERNAME" >&6
29793 echo "$as_me:$LINENO: checking whether to statically link to Gtk" >&5
29794 echo $ECHO_N "checking whether to statically link to Gtk... $ECHO_C" >&6
29795 if test -n "$enable_static_gtk" && test "$enable_static_gtk" != "no"; then
29796 ENABLE_STATIC_GTK="TRUE"
29797 echo "$as_me:$LINENO: result: yes" >&5
29798 echo "${ECHO_T}yes" >&6
29799 else
29800 ENABLE_STATIC_GTK="FALSE"
29801 echo "$as_me:$LINENO: result: no" >&5
29802 echo "${ECHO_T}no" >&6
29806 echo "$as_me:$LINENO: checking whether to use layout dialogs" >&5
29807 echo $ECHO_N "checking whether to use layout dialogs... $ECHO_C" >&6
29808 if test -n "$enable_layout" && test "$enable_layout" != "no"; then
29809 ENABLE_LAYOUT="TRUE"
29810 echo "$as_me:$LINENO: result: yes" >&5
29811 echo "${ECHO_T}yes" >&6
29812 else
29813 ENABLE_LAYOUT="FALSE"
29814 echo "$as_me:$LINENO: result: no" >&5
29815 echo "${ECHO_T}no" >&6
29819 # ===================================================================
29820 # De- or increase default verbosity of build process
29821 # ===================================================================
29822 echo "$as_me:$LINENO: checking build verbosity" >&5
29823 echo $ECHO_N "checking build verbosity... $ECHO_C" >&6
29824 if test -n "$enable_verbose"; then
29825 if test "$enable_verbose" = "yes"; then
29826 VERBOSE="TRUE"
29827 echo "$as_me:$LINENO: result: high" >&5
29828 echo "${ECHO_T}high" >&6
29830 if test "$enable_verbose" = "no"; then
29831 VERBOSE="FALSE"
29832 echo "$as_me:$LINENO: result: low" >&5
29833 echo "${ECHO_T}low" >&6
29835 else
29836 echo "$as_me:$LINENO: result: not set" >&5
29837 echo "${ECHO_T}not set" >&6
29841 echo "$as_me:$LINENO: checking whether to enable dependency tracking" >&5
29842 echo $ECHO_N "checking whether to enable dependency tracking... $ECHO_C" >&6
29843 if test "$enable_dependency_tracking" = "no"; then
29844 nodep=TRUE
29845 echo "$as_me:$LINENO: result: no" >&5
29846 echo "${ECHO_T}no" >&6
29847 else
29848 echo "$as_me:$LINENO: result: yes" >&5
29849 echo "${ECHO_T}yes" >&6
29853 echo "********************************************************************"
29854 echo "* *"
29855 echo "* Setting up the build environment variables. *"
29856 echo "* *"
29857 echo "********************************************************************"
29859 if test -z "$COMPATH"; then
29860 { { echo "$as_me:$LINENO: error: No compiler found." >&5
29861 echo "$as_me: error: No compiler found." >&2;}
29862 { (exit 1); exit 1; }; }
29866 echo "$as_me:$LINENO: checking solver path" >&5
29867 echo $ECHO_N "checking solver path... $ECHO_C" >&6
29868 if test -z "$with_local_solver"; then
29869 LOCAL_SOLVER="DEFAULT"
29870 echo "$as_me:$LINENO: result: default" >&5
29871 echo "${ECHO_T}default" >&6
29872 else
29873 LOCAL_SOLVER=$with_local_solver
29874 echo "$as_me:$LINENO: result: $with_local_solver" >&5
29875 echo "${ECHO_T}$with_local_solver" >&6
29881 # make sure config.guess is +x; we execute config.guess, so it has to be so;
29882 chmod +x ./config.guess
29884 ac_config_files="$ac_config_files set_soenv Makefile"
29885 cat >confcache <<\_ACEOF
29886 # This file is a shell script that caches the results of configure
29887 # tests run on this system so they can be shared between configure
29888 # scripts and configure runs, see configure's option --config-cache.
29889 # It is not useful on other systems. If it contains results you don't
29890 # want to keep, you may remove or edit it.
29892 # config.status only pays attention to the cache file if you give it
29893 # the --recheck option to rerun configure.
29895 # `ac_cv_env_foo' variables (set or unset) will be overridden when
29896 # loading this file, other *unset* `ac_cv_foo' will be assigned the
29897 # following values.
29899 _ACEOF
29901 # The following way of writing the cache mishandles newlines in values,
29902 # but we know of no workaround that is simple, portable, and efficient.
29903 # So, don't put newlines in cache variables' values.
29904 # Ultrix sh set writes to stderr and can't be redirected directly,
29905 # and sets the high bit in the cache file unless we assign to the vars.
29907 (set) 2>&1 |
29908 case `(ac_space=' '; set | grep ac_space) 2>&1` in
29909 *ac_space=\ *)
29910 # `set' does not quote correctly, so add quotes (double-quote
29911 # substitution turns \\\\ into \\, and sed turns \\ into \).
29912 sed -n \
29913 "s/'/'\\\\''/g;
29914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
29917 # `set' quotes correctly as required by POSIX, so do not add quotes.
29918 sed -n \
29919 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
29921 esac;
29923 sed '
29924 t clear
29925 : clear
29926 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
29927 t end
29928 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
29929 : end' >>confcache
29930 if diff $cache_file confcache >/dev/null 2>&1; then :; else
29931 if test -w $cache_file; then
29932 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
29933 cat confcache >$cache_file
29934 else
29935 echo "not updating unwritable cache $cache_file"
29938 rm -f confcache
29940 test "x$prefix" = xNONE && prefix=$ac_default_prefix
29941 # Let make expand exec_prefix.
29942 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
29944 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29945 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29946 # trailing colons and then remove the whole line if VPATH becomes empty
29947 # (actually we leave an empty line to preserve line numbers).
29948 if test "x$srcdir" = x.; then
29949 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29950 s/:*\$(srcdir):*/:/;
29951 s/:*\${srcdir}:*/:/;
29952 s/:*@srcdir@:*/:/;
29953 s/^\([^=]*=[ ]*\):*/\1/;
29954 s/:*$//;
29955 s/^[^=]*=[ ]*$//;
29959 # Transform confdefs.h into DEFS.
29960 # Protect against shell expansion while executing Makefile rules.
29961 # Protect against Makefile macro expansion.
29963 # If the first sed substitution is executed (which looks for macros that
29964 # take arguments), then we branch to the quote section. Otherwise,
29965 # look for a macro that doesn't take arguments.
29966 cat >confdef2opt.sed <<\_ACEOF
29967 t clear
29968 : clear
29969 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g
29970 t quote
29971 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g
29972 t quote
29974 : quote
29975 s,[ `~#$^&*(){}\\|;'"<>?],\\&,g
29976 s,\[,\\&,g
29977 s,\],\\&,g
29978 s,\$,$$,g
29980 _ACEOF
29981 # We use echo to avoid assuming a particular line-breaking character.
29982 # The extra dot is to prevent the shell from consuming trailing
29983 # line-breaks from the sub-command output. A line-break within
29984 # single-quotes doesn't work because, if this script is created in a
29985 # platform that uses two characters for line-breaks (e.g., DOS), tr
29986 # would break.
29987 ac_LF_and_DOT=`echo; echo .`
29988 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
29989 rm -f confdef2opt.sed
29992 ac_libobjs=
29993 ac_ltlibobjs=
29994 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
29995 # 1. Remove the extension, and $U if already installed.
29996 ac_i=`echo "$ac_i" |
29997 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
29998 # 2. Add them.
29999 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
30000 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
30001 done
30002 LIBOBJS=$ac_libobjs
30004 LTLIBOBJS=$ac_ltlibobjs
30008 : ${CONFIG_STATUS=./config.status}
30009 ac_clean_files_save=$ac_clean_files
30010 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
30011 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
30012 echo "$as_me: creating $CONFIG_STATUS" >&6;}
30013 cat >$CONFIG_STATUS <<_ACEOF
30014 #! $SHELL
30015 # Generated by $as_me.
30016 # Run this file to recreate the current configuration.
30017 # Compiler output produced by configure, useful for debugging
30018 # configure, is in config.log if it exists.
30020 debug=false
30021 ac_cs_recheck=false
30022 ac_cs_silent=false
30023 SHELL=\${CONFIG_SHELL-$SHELL}
30024 _ACEOF
30026 cat >>$CONFIG_STATUS <<\_ACEOF
30027 ## --------------------- ##
30028 ## M4sh Initialization. ##
30029 ## --------------------- ##
30031 # Be Bourne compatible
30032 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
30033 emulate sh
30034 NULLCMD=:
30035 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
30036 # is contrary to our usage. Disable this feature.
30037 alias -g '${1+"$@"}'='"$@"'
30038 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
30039 set -o posix
30041 DUALCASE=1; export DUALCASE # for MKS sh
30043 # Support unset when possible.
30044 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
30045 as_unset=unset
30046 else
30047 as_unset=false
30051 # Work around bugs in pre-3.0 UWIN ksh.
30052 $as_unset ENV MAIL MAILPATH
30053 PS1='$ '
30054 PS2='> '
30055 PS4='+ '
30057 # NLS nuisances.
30058 for as_var in \
30059 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
30060 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
30061 LC_TELEPHONE LC_TIME
30063 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
30064 eval $as_var=C; export $as_var
30065 else
30066 $as_unset $as_var
30068 done
30070 # Required to use basename.
30071 if expr a : '\(a\)' >/dev/null 2>&1; then
30072 as_expr=expr
30073 else
30074 as_expr=false
30077 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
30078 as_basename=basename
30079 else
30080 as_basename=false
30084 # Name of the executable.
30085 as_me=`$as_basename "$0" ||
30086 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
30087 X"$0" : 'X\(//\)$' \| \
30088 X"$0" : 'X\(/\)$' \| \
30089 . : '\(.\)' 2>/dev/null ||
30090 echo X/"$0" |
30091 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
30092 /^X\/\(\/\/\)$/{ s//\1/; q; }
30093 /^X\/\(\/\).*/{ s//\1/; q; }
30094 s/.*/./; q'`
30097 # PATH needs CR, and LINENO needs CR and PATH.
30098 # Avoid depending upon Character Ranges.
30099 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
30100 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
30101 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
30102 as_cr_digits='0123456789'
30103 as_cr_alnum=$as_cr_Letters$as_cr_digits
30105 # The user is always right.
30106 if test "${PATH_SEPARATOR+set}" != set; then
30107 echo "#! /bin/sh" >conf$$.sh
30108 echo "exit 0" >>conf$$.sh
30109 chmod +x conf$$.sh
30110 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
30111 PATH_SEPARATOR=';'
30112 else
30113 PATH_SEPARATOR=:
30115 rm -f conf$$.sh
30119 as_lineno_1=$LINENO
30120 as_lineno_2=$LINENO
30121 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30122 test "x$as_lineno_1" != "x$as_lineno_2" &&
30123 test "x$as_lineno_3" = "x$as_lineno_2" || {
30124 # Find who we are. Look in the path if we contain no path at all
30125 # relative or not.
30126 case $0 in
30127 *[\\/]* ) as_myself=$0 ;;
30128 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30129 for as_dir in $PATH
30131 IFS=$as_save_IFS
30132 test -z "$as_dir" && as_dir=.
30133 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
30134 done
30137 esac
30138 # We did not find ourselves, most probably we were run as `sh COMMAND'
30139 # in which case we are not to be found in the path.
30140 if test "x$as_myself" = x; then
30141 as_myself=$0
30143 if test ! -f "$as_myself"; then
30144 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
30145 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
30146 { (exit 1); exit 1; }; }
30148 case $CONFIG_SHELL in
30150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
30151 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
30153 IFS=$as_save_IFS
30154 test -z "$as_dir" && as_dir=.
30155 for as_base in sh bash ksh sh5; do
30156 case $as_dir in
30158 if ("$as_dir/$as_base" -c '
30159 as_lineno_1=$LINENO
30160 as_lineno_2=$LINENO
30161 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
30162 test "x$as_lineno_1" != "x$as_lineno_2" &&
30163 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
30164 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
30165 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
30166 CONFIG_SHELL=$as_dir/$as_base
30167 export CONFIG_SHELL
30168 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
30169 fi;;
30170 esac
30171 done
30172 done
30174 esac
30176 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
30177 # uniformly replaced by the line number. The first 'sed' inserts a
30178 # line-number line before each line; the second 'sed' does the real
30179 # work. The second script uses 'N' to pair each line-number line
30180 # with the numbered line, and appends trailing '-' during
30181 # substitution so that $LINENO is not a special case at line end.
30182 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
30183 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
30184 sed '=' <$as_myself |
30185 sed '
30187 s,$,-,
30188 : loop
30189 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
30190 t loop
30191 s,-$,,
30192 s,^['$as_cr_digits']*\n,,
30193 ' >$as_me.lineno &&
30194 chmod +x $as_me.lineno ||
30195 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
30196 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
30197 { (exit 1); exit 1; }; }
30199 # Don't try to exec as it changes $[0], causing all sort of problems
30200 # (the dirname of $[0] is not the place where we might find the
30201 # original and so on. Autoconf is especially sensible to this).
30202 . ./$as_me.lineno
30203 # Exit status is that of the last command.
30204 exit
30208 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
30209 *c*,-n*) ECHO_N= ECHO_C='
30210 ' ECHO_T=' ' ;;
30211 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
30212 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
30213 esac
30215 if expr a : '\(a\)' >/dev/null 2>&1; then
30216 as_expr=expr
30217 else
30218 as_expr=false
30221 rm -f conf$$ conf$$.exe conf$$.file
30222 echo >conf$$.file
30223 if ln -s conf$$.file conf$$ 2>/dev/null; then
30224 # We could just check for DJGPP; but this test a) works b) is more generic
30225 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
30226 if test -f conf$$.exe; then
30227 # Don't use ln at all; we don't have any links
30228 as_ln_s='cp -p'
30229 else
30230 as_ln_s='ln -s'
30232 elif ln conf$$.file conf$$ 2>/dev/null; then
30233 as_ln_s=ln
30234 else
30235 as_ln_s='cp -p'
30237 rm -f conf$$ conf$$.exe conf$$.file
30239 if mkdir -p . 2>/dev/null; then
30240 as_mkdir_p=:
30241 else
30242 test -d ./-p && rmdir ./-p
30243 as_mkdir_p=false
30246 as_executable_p="test -f"
30248 # Sed expression to map a string onto a valid CPP name.
30249 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
30251 # Sed expression to map a string onto a valid variable name.
30252 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
30255 # IFS
30256 # We need space, tab and new line, in precisely that order.
30257 as_nl='
30259 IFS=" $as_nl"
30261 # CDPATH.
30262 $as_unset CDPATH
30264 exec 6>&1
30266 # Open the log real soon, to keep \$[0] and so on meaningful, and to
30267 # report actual input values of CONFIG_FILES etc. instead of their
30268 # values after options handling. Logging --version etc. is OK.
30269 exec 5>>config.log
30271 echo
30272 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
30273 ## Running $as_me. ##
30274 _ASBOX
30275 } >&5
30276 cat >&5 <<_CSEOF
30278 This file was extended by $as_me, which was
30279 generated by GNU Autoconf 2.59. Invocation command line was
30281 CONFIG_FILES = $CONFIG_FILES
30282 CONFIG_HEADERS = $CONFIG_HEADERS
30283 CONFIG_LINKS = $CONFIG_LINKS
30284 CONFIG_COMMANDS = $CONFIG_COMMANDS
30285 $ $0 $@
30287 _CSEOF
30288 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
30289 echo >&5
30290 _ACEOF
30292 # Files that config.status was made for.
30293 if test -n "$ac_config_files"; then
30294 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
30297 if test -n "$ac_config_headers"; then
30298 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
30301 if test -n "$ac_config_links"; then
30302 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
30305 if test -n "$ac_config_commands"; then
30306 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
30309 cat >>$CONFIG_STATUS <<\_ACEOF
30311 ac_cs_usage="\
30312 \`$as_me' instantiates files from templates according to the
30313 current configuration.
30315 Usage: $0 [OPTIONS] [FILE]...
30317 -h, --help print this help, then exit
30318 -V, --version print version number, then exit
30319 -q, --quiet do not print progress messages
30320 -d, --debug don't remove temporary files
30321 --recheck update $as_me by reconfiguring in the same conditions
30322 --file=FILE[:TEMPLATE]
30323 instantiate the configuration file FILE
30325 Configuration files:
30326 $config_files
30328 Report bugs to <bug-autoconf@gnu.org>."
30329 _ACEOF
30331 cat >>$CONFIG_STATUS <<_ACEOF
30332 ac_cs_version="\\
30333 config.status
30334 configured by $0, generated by GNU Autoconf 2.59,
30335 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
30337 Copyright (C) 2003 Free Software Foundation, Inc.
30338 This config.status script is free software; the Free Software Foundation
30339 gives unlimited permission to copy, distribute and modify it."
30340 srcdir=$srcdir
30341 _ACEOF
30343 cat >>$CONFIG_STATUS <<\_ACEOF
30344 # If no file are specified by the user, then we need to provide default
30345 # value. By we need to know if files were specified by the user.
30346 ac_need_defaults=:
30347 while test $# != 0
30349 case $1 in
30350 --*=*)
30351 ac_option=`expr "x$1" : 'x\([^=]*\)='`
30352 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
30353 ac_shift=:
30356 ac_option=$1
30357 ac_optarg=$2
30358 ac_shift=shift
30360 *) # This is not an option, so the user has probably given explicit
30361 # arguments.
30362 ac_option=$1
30363 ac_need_defaults=false;;
30364 esac
30366 case $ac_option in
30367 # Handling of the options.
30368 _ACEOF
30369 cat >>$CONFIG_STATUS <<\_ACEOF
30370 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
30371 ac_cs_recheck=: ;;
30372 --version | --vers* | -V )
30373 echo "$ac_cs_version"; exit 0 ;;
30374 --he | --h)
30375 # Conflict between --help and --header
30376 { { echo "$as_me:$LINENO: error: ambiguous option: $1
30377 Try \`$0 --help' for more information." >&5
30378 echo "$as_me: error: ambiguous option: $1
30379 Try \`$0 --help' for more information." >&2;}
30380 { (exit 1); exit 1; }; };;
30381 --help | --hel | -h )
30382 echo "$ac_cs_usage"; exit 0 ;;
30383 --debug | --d* | -d )
30384 debug=: ;;
30385 --file | --fil | --fi | --f )
30386 $ac_shift
30387 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
30388 ac_need_defaults=false;;
30389 --header | --heade | --head | --hea )
30390 $ac_shift
30391 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
30392 ac_need_defaults=false;;
30393 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
30394 | -silent | --silent | --silen | --sile | --sil | --si | --s)
30395 ac_cs_silent=: ;;
30397 # This is an error.
30398 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
30399 Try \`$0 --help' for more information." >&5
30400 echo "$as_me: error: unrecognized option: $1
30401 Try \`$0 --help' for more information." >&2;}
30402 { (exit 1); exit 1; }; } ;;
30404 *) ac_config_targets="$ac_config_targets $1" ;;
30406 esac
30407 shift
30408 done
30410 ac_configure_extra_args=
30412 if $ac_cs_silent; then
30413 exec 6>/dev/null
30414 ac_configure_extra_args="$ac_configure_extra_args --silent"
30417 _ACEOF
30418 cat >>$CONFIG_STATUS <<_ACEOF
30419 if \$ac_cs_recheck; then
30420 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
30421 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
30424 _ACEOF
30430 cat >>$CONFIG_STATUS <<\_ACEOF
30431 for ac_config_target in $ac_config_targets
30433 case "$ac_config_target" in
30434 # Handling of arguments.
30435 "set_soenv" ) CONFIG_FILES="$CONFIG_FILES set_soenv" ;;
30436 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
30437 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
30438 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
30439 { (exit 1); exit 1; }; };;
30440 esac
30441 done
30443 # If the user did not use the arguments to specify the items to instantiate,
30444 # then the envvar interface is used. Set only those that are not.
30445 # We use the long form for the default assignment because of an extremely
30446 # bizarre bug on SunOS 4.1.3.
30447 if $ac_need_defaults; then
30448 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
30451 # Have a temporary directory for convenience. Make it in the build tree
30452 # simply because there is no reason to put it here, and in addition,
30453 # creating and moving files from /tmp can sometimes cause problems.
30454 # Create a temporary directory, and hook for its removal unless debugging.
30455 $debug ||
30457 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
30458 trap '{ (exit 1); exit 1; }' 1 2 13 15
30461 # Create a (secure) tmp directory for tmp files.
30464 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
30465 test -n "$tmp" && test -d "$tmp"
30466 } ||
30468 tmp=./confstat$$-$RANDOM
30469 (umask 077 && mkdir $tmp)
30470 } ||
30472 echo "$me: cannot create a temporary directory in ." >&2
30473 { (exit 1); exit 1; }
30476 _ACEOF
30478 cat >>$CONFIG_STATUS <<_ACEOF
30481 # CONFIG_FILES section.
30484 # No need to generate the scripts if there are no CONFIG_FILES.
30485 # This happens for instance when ./config.status config.h
30486 if test -n "\$CONFIG_FILES"; then
30487 # Protect against being on the right side of a sed subst in config.status.
30488 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
30489 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
30490 s,@SHELL@,$SHELL,;t t
30491 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
30492 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
30493 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
30494 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
30495 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
30496 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
30497 s,@exec_prefix@,$exec_prefix,;t t
30498 s,@prefix@,$prefix,;t t
30499 s,@program_transform_name@,$program_transform_name,;t t
30500 s,@bindir@,$bindir,;t t
30501 s,@sbindir@,$sbindir,;t t
30502 s,@libexecdir@,$libexecdir,;t t
30503 s,@datadir@,$datadir,;t t
30504 s,@sysconfdir@,$sysconfdir,;t t
30505 s,@sharedstatedir@,$sharedstatedir,;t t
30506 s,@localstatedir@,$localstatedir,;t t
30507 s,@libdir@,$libdir,;t t
30508 s,@includedir@,$includedir,;t t
30509 s,@oldincludedir@,$oldincludedir,;t t
30510 s,@infodir@,$infodir,;t t
30511 s,@mandir@,$mandir,;t t
30512 s,@build_alias@,$build_alias,;t t
30513 s,@host_alias@,$host_alias,;t t
30514 s,@target_alias@,$target_alias,;t t
30515 s,@DEFS@,$DEFS,;t t
30516 s,@ECHO_C@,$ECHO_C,;t t
30517 s,@ECHO_N@,$ECHO_N,;t t
30518 s,@ECHO_T@,$ECHO_T,;t t
30519 s,@LIBS@,$LIBS,;t t
30520 s,@EGREP@,$EGREP,;t t
30521 s,@AWK@,$AWK,;t t
30522 s,@SED@,$SED,;t t
30523 s,@LOCAL_SOLENV@,$LOCAL_SOLENV,;t t
30524 s,@_solenv@,$_solenv,;t t
30525 s,@UPD@,$UPD,;t t
30526 s,@SOURCEVERSION@,$SOURCEVERSION,;t t
30527 s,@build@,$build,;t t
30528 s,@build_cpu@,$build_cpu,;t t
30529 s,@build_vendor@,$build_vendor,;t t
30530 s,@build_os@,$build_os,;t t
30531 s,@host@,$host,;t t
30532 s,@host_cpu@,$host_cpu,;t t
30533 s,@host_vendor@,$host_vendor,;t t
30534 s,@host_os@,$host_os,;t t
30535 s,@target@,$target,;t t
30536 s,@target_cpu@,$target_cpu,;t t
30537 s,@target_vendor@,$target_vendor,;t t
30538 s,@target_os@,$target_os,;t t
30539 s,@GNUTAR@,$GNUTAR,;t t
30540 s,@OSVERSION@,$OSVERSION,;t t
30541 s,@PTHREAD_CFLAGS@,$PTHREAD_CFLAGS,;t t
30542 s,@PTHREAD_LIBS@,$PTHREAD_LIBS,;t t
30543 s,@ENABLE_CRASHDUMP@,$ENABLE_CRASHDUMP,;t t
30544 s,@VC_STANDARD@,$VC_STANDARD,;t t
30545 s,@ENABLE_WERROR@,$ENABLE_WERROR,;t t
30546 s,@ENABLE_DEBUG@,$ENABLE_DEBUG,;t t
30547 s,@PRODUCT@,$PRODUCT,;t t
30548 s,@PROFULLSWITCH@,$PROFULLSWITCH,;t t
30549 s,@PROEXT@,$PROEXT,;t t
30550 s,@ENABLE_SYMBOLS@,$ENABLE_SYMBOLS,;t t
30551 s,@DISABLE_STRIP@,$DISABLE_STRIP,;t t
30552 s,@ENABLE_CUPS@,$ENABLE_CUPS,;t t
30553 s,@ENABLE_FONTCONFIG@,$ENABLE_FONTCONFIG,;t t
30554 s,@TARFILE_LOCATION@,$TARFILE_LOCATION,;t t
30555 s,@DO_FETCH_TARBALLS@,$DO_FETCH_TARBALLS,;t t
30556 s,@WITH_BINFILTER@,$WITH_BINFILTER,;t t
30557 s,@ENABLE_DIRECTX@,$ENABLE_DIRECTX,;t t
30558 s,@DISABLE_ACTIVEX@,$DISABLE_ACTIVEX,;t t
30559 s,@DISABLE_ATL@,$DISABLE_ATL,;t t
30560 s,@ENABLE_RPATH@,$ENABLE_RPATH,;t t
30561 s,@WITH_MYSPELL_DICTS@,$WITH_MYSPELL_DICTS,;t t
30562 s,@SYSTEM_DICTS@,$SYSTEM_DICTS,;t t
30563 s,@DICT_SYSTEM_DIR@,$DICT_SYSTEM_DIR,;t t
30564 s,@HYPH_SYSTEM_DIR@,$HYPH_SYSTEM_DIR,;t t
30565 s,@THES_SYSTEM_DIR@,$THES_SYSTEM_DIR,;t t
30566 s,@WITH_MINGWIN@,$WITH_MINGWIN,;t t
30567 s,@SHELLPATH@,$SHELLPATH,;t t
30568 s,@GCC_HOME@,$GCC_HOME,;t t
30569 s,@CC@,$CC,;t t
30570 s,@CFLAGS@,$CFLAGS,;t t
30571 s,@LDFLAGS@,$LDFLAGS,;t t
30572 s,@CPPFLAGS@,$CPPFLAGS,;t t
30573 s,@ac_ct_CC@,$ac_ct_CC,;t t
30574 s,@EXEEXT@,$EXEEXT,;t t
30575 s,@OBJEXT@,$OBJEXT,;t t
30576 s,@COMPATH@,$COMPATH,;t t
30577 s,@GCCVER@,$GCCVER,;t t
30578 s,@HAVE_LD_BSYMBOLIC_FUNCTIONS@,$HAVE_LD_BSYMBOLIC_FUNCTIONS,;t t
30579 s,@ENABLE_PCH@,$ENABLE_PCH,;t t
30580 s,@NO_HIDS@,$NO_HIDS,;t t
30581 s,@GNUMAKE@,$GNUMAKE,;t t
30582 s,@_cc@,$_cc,;t t
30583 s,@HAVE_LD_HASH_STYLE@,$HAVE_LD_HASH_STYLE,;t t
30584 s,@PERL@,$PERL,;t t
30585 s,@MSPDB_PATH@,$MSPDB_PATH,;t t
30586 s,@COMEX@,$COMEX,;t t
30587 s,@USE_MINGW@,$USE_MINGW,;t t
30588 s,@MIDL_PATH@,$MIDL_PATH,;t t
30589 s,@CSC_PATH@,$CSC_PATH,;t t
30590 s,@FRAME_HOME@,$FRAME_HOME,;t t
30591 s,@CPP@,$CPP,;t t
30592 s,@CXX@,$CXX,;t t
30593 s,@CXXFLAGS@,$CXXFLAGS,;t t
30594 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
30595 s,@CXXCPP@,$CXXCPP,;t t
30596 s,@SIZEOF_LONG@,$SIZEOF_LONG,;t t
30597 s,@WORDS_BIGENDIAN@,$WORDS_BIGENDIAN,;t t
30598 s,@LFS_CFLAGS@,$LFS_CFLAGS,;t t
30599 s,@ENABLE_VBA@,$ENABLE_VBA,;t t
30600 s,@VBA_EXTENSION@,$VBA_EXTENSION,;t t
30601 s,@PAM@,$PAM,;t t
30602 s,@NEW_SHADOW_API@,$NEW_SHADOW_API,;t t
30603 s,@PAM_LINK@,$PAM_LINK,;t t
30604 s,@CRYPT_LINK@,$CRYPT_LINK,;t t
30605 s,@GXX_INCLUDE_PATH@,$GXX_INCLUDE_PATH,;t t
30606 s,@MINGW_LIB_INCLUDE_PATH@,$MINGW_LIB_INCLUDE_PATH,;t t
30607 s,@MINGW_BACKWARD_INCLUDE_PATH@,$MINGW_BACKWARD_INCLUDE_PATH,;t t
30608 s,@MINGW_CLIB_DIR@,$MINGW_CLIB_DIR,;t t
30609 s,@MINGW_SHARED_GCCLIB@,$MINGW_SHARED_GCCLIB,;t t
30610 s,@MINGW_GCCLIB_EH@,$MINGW_GCCLIB_EH,;t t
30611 s,@MINGW_SHARED_GXXLIB@,$MINGW_SHARED_GXXLIB,;t t
30612 s,@MINGW_GCCDLL@,$MINGW_GCCDLL,;t t
30613 s,@MINGW_GXXDLL@,$MINGW_GXXDLL,;t t
30614 s,@EXCEPTIONS@,$EXCEPTIONS,;t t
30615 s,@STLPORT4@,$STLPORT4,;t t
30616 s,@STLPORT_VER@,$STLPORT_VER,;t t
30617 s,@USE_SYSTEM_STL@,$USE_SYSTEM_STL,;t t
30618 s,@USE_CCACHE@,$USE_CCACHE,;t t
30619 s,@CCACHE@,$CCACHE,;t t
30620 s,@HAVE_GCC_VISIBILITY_FEATURE@,$HAVE_GCC_VISIBILITY_FEATURE,;t t
30621 s,@ALLOC@,$ALLOC,;t t
30622 s,@BUILD_VER_STRING@,$BUILD_VER_STRING,;t t
30623 s,@SOLAR_JAVA@,$SOLAR_JAVA,;t t
30624 s,@JAVAINTERPRETER@,$JAVAINTERPRETER,;t t
30625 s,@JAVACOMPILER@,$JAVACOMPILER,;t t
30626 s,@JAVACISGCJ@,$JAVACISGCJ,;t t
30627 s,@JAVADOC@,$JAVADOC,;t t
30628 s,@AWTLIB@,$AWTLIB,;t t
30629 s,@JAVAAOTCOMPILER@,$JAVAAOTCOMPILER,;t t
30630 s,@JAVA_HOME@,$JAVA_HOME,;t t
30631 s,@JDK@,$JDK,;t t
30632 s,@JAVAFLAGS@,$JAVAFLAGS,;t t
30633 s,@JAVAIFLAGS@,$JAVAIFLAGS,;t t
30634 s,@DMAKE@,$DMAKE,;t t
30635 s,@BUILD_DMAKE@,$BUILD_DMAKE,;t t
30636 s,@EPM@,$EPM,;t t
30637 s,@DPKG@,$DPKG,;t t
30638 s,@PKGMK@,$PKGMK,;t t
30639 s,@BUILD_EPM@,$BUILD_EPM,;t t
30640 s,@RPM@,$RPM,;t t
30641 s,@PKGFORMAT@,$PKGFORMAT,;t t
30642 s,@GPERF@,$GPERF,;t t
30643 s,@BUILD_STAX@,$BUILD_STAX,;t t
30644 s,@MINGWCXX@,$MINGWCXX,;t t
30645 s,@ac_ct_MINGWCXX@,$ac_ct_MINGWCXX,;t t
30646 s,@MINGWSTRIP@,$MINGWSTRIP,;t t
30647 s,@ac_ct_MINGWSTRIP@,$ac_ct_MINGWSTRIP,;t t
30648 s,@BUILD_UNOWINREG@,$BUILD_UNOWINREG,;t t
30649 s,@SYSTEM_STDLIBS@,$SYSTEM_STDLIBS,;t t
30650 s,@SYSTEM_ZLIB@,$SYSTEM_ZLIB,;t t
30651 s,@SYSTEM_JPEG@,$SYSTEM_JPEG,;t t
30652 s,@SYSTEM_EXPAT@,$SYSTEM_EXPAT,;t t
30653 s,@PKG_CONFIG@,$PKG_CONFIG,;t t
30654 s,@LIBWPD_CFLAGS@,$LIBWPD_CFLAGS,;t t
30655 s,@LIBWPD_LIBS@,$LIBWPD_LIBS,;t t
30656 s,@SYSTEM_LIBWPD@,$SYSTEM_LIBWPD,;t t
30657 s,@CPPUNIT_CFLAGS@,$CPPUNIT_CFLAGS,;t t
30658 s,@CPPUNIT_LIBS@,$CPPUNIT_LIBS,;t t
30659 s,@SYSTEM_CPPUNIT@,$SYSTEM_CPPUNIT,;t t
30660 s,@FREETYPE_CFLAGS@,$FREETYPE_CFLAGS,;t t
30661 s,@FREETYPE_LIBS@,$FREETYPE_LIBS,;t t
30662 s,@USE_FT_EMBOLDEN@,$USE_FT_EMBOLDEN,;t t
30663 s,@LIBXSLT_CFLAGS@,$LIBXSLT_CFLAGS,;t t
30664 s,@LIBXSLT_LIBS@,$LIBXSLT_LIBS,;t t
30665 s,@XSLTPROC@,$XSLTPROC,;t t
30666 s,@SYSTEM_LIBXSLT@,$SYSTEM_LIBXSLT,;t t
30667 s,@LIBXML_CFLAGS@,$LIBXML_CFLAGS,;t t
30668 s,@LIBXML_LIBS@,$LIBXML_LIBS,;t t
30669 s,@SYSTEM_LIBXML@,$SYSTEM_LIBXML,;t t
30670 s,@PYTHON@,$PYTHON,;t t
30671 s,@PYTHON_VERSION@,$PYTHON_VERSION,;t t
30672 s,@PYTHON_PREFIX@,$PYTHON_PREFIX,;t t
30673 s,@PYTHON_EXEC_PREFIX@,$PYTHON_EXEC_PREFIX,;t t
30674 s,@PYTHON_PLATFORM@,$PYTHON_PLATFORM,;t t
30675 s,@pythondir@,$pythondir,;t t
30676 s,@pkgpythondir@,$pkgpythondir,;t t
30677 s,@pyexecdir@,$pyexecdir,;t t
30678 s,@pkgpyexecdir@,$pkgpyexecdir,;t t
30679 s,@BZIP2@,$BZIP2,;t t
30680 s,@SYSTEM_PYTHON@,$SYSTEM_PYTHON,;t t
30681 s,@PYTHON_CFLAGS@,$PYTHON_CFLAGS,;t t
30682 s,@PYTHON_LIBS@,$PYTHON_LIBS,;t t
30683 s,@HOME@,$HOME,;t t
30684 s,@SYSTEM_DB@,$SYSTEM_DB,;t t
30685 s,@DB_VERSION@,$DB_VERSION,;t t
30686 s,@DB_INCLUDES@,$DB_INCLUDES,;t t
30687 s,@DB_JAR@,$DB_JAR,;t t
30688 s,@SYSTEM_LUCENE@,$SYSTEM_LUCENE,;t t
30689 s,@LUCENE_CORE_JAR@,$LUCENE_CORE_JAR,;t t
30690 s,@LUCENE_ANALYZERS_JAR@,$LUCENE_ANALYZERS_JAR,;t t
30691 s,@ENABLE_MYSQLC@,$ENABLE_MYSQLC,;t t
30692 s,@MYSQLCONFIG@,$MYSQLCONFIG,;t t
30693 s,@SYSTEM_MYSQL@,$SYSTEM_MYSQL,;t t
30694 s,@MYSQL_INC@,$MYSQL_INC,;t t
30695 s,@MYSQL_LIB@,$MYSQL_LIB,;t t
30696 s,@MYSQL_DEFINES@,$MYSQL_DEFINES,;t t
30697 s,@LIBMYSQL_PATH@,$LIBMYSQL_PATH,;t t
30698 s,@SYSTEM_MYSQL_CPPCONN@,$SYSTEM_MYSQL_CPPCONN,;t t
30699 s,@SYSTEM_HSQLDB@,$SYSTEM_HSQLDB,;t t
30700 s,@HSQLDB_JAR@,$HSQLDB_JAR,;t t
30701 s,@SYSTEM_BSH@,$SYSTEM_BSH,;t t
30702 s,@BSH_JAR@,$BSH_JAR,;t t
30703 s,@SERIALIZER_JAR@,$SERIALIZER_JAR,;t t
30704 s,@SYSTEM_SAXON@,$SYSTEM_SAXON,;t t
30705 s,@SAXON_JAR@,$SAXON_JAR,;t t
30706 s,@CURLCONFIG@,$CURLCONFIG,;t t
30707 s,@SYSTEM_CURL@,$SYSTEM_CURL,;t t
30708 s,@CURL_CFLAGS@,$CURL_CFLAGS,;t t
30709 s,@CURL_LIBS@,$CURL_LIBS,;t t
30710 s,@SYSTEM_MDDS@,$SYSTEM_MDDS,;t t
30711 s,@SYSTEM_BOOST@,$SYSTEM_BOOST,;t t
30712 s,@SYSTEM_VIGRA@,$SYSTEM_VIGRA,;t t
30713 s,@SYSTEM_ODBC_HEADERS@,$SYSTEM_ODBC_HEADERS,;t t
30714 s,@WITH_MOZILLA@,$WITH_MOZILLA,;t t
30715 s,@WITH_LDAP@,$WITH_LDAP,;t t
30716 s,@WITH_OPENLDAP@,$WITH_OPENLDAP,;t t
30717 s,@MOZ_NSS_CFLAGS@,$MOZ_NSS_CFLAGS,;t t
30718 s,@MOZ_NSS_LIBS@,$MOZ_NSS_LIBS,;t t
30719 s,@NSS_LIB@,$NSS_LIB,;t t
30720 s,@MOZ_NSPR_CFLAGS@,$MOZ_NSPR_CFLAGS,;t t
30721 s,@MOZ_NSPR_LIBS@,$MOZ_NSPR_LIBS,;t t
30722 s,@NSPR_LIB@,$NSPR_LIB,;t t
30723 s,@MOZILLAXPCOM_CFLAGS@,$MOZILLAXPCOM_CFLAGS,;t t
30724 s,@MOZILLAXPCOM_LIBS@,$MOZILLAXPCOM_LIBS,;t t
30725 s,@MOZILLA_VERSION@,$MOZILLA_VERSION,;t t
30726 s,@MOZILLA_TOOLKIT@,$MOZILLA_TOOLKIT,;t t
30727 s,@MOZGTK2_CFLAGS@,$MOZGTK2_CFLAGS,;t t
30728 s,@MOZGTK2_LIBS@,$MOZGTK2_LIBS,;t t
30729 s,@MOZLIBREQ_CFLAGS@,$MOZLIBREQ_CFLAGS,;t t
30730 s,@MOZLIBREQ_LIBS@,$MOZLIBREQ_LIBS,;t t
30731 s,@BUILD_MOZAB@,$BUILD_MOZAB,;t t
30732 s,@ENABLE_NSS_MODULE@,$ENABLE_NSS_MODULE,;t t
30733 s,@MOZILLABUILD@,$MOZILLABUILD,;t t
30734 s,@SYSTEM_MOZILLA@,$SYSTEM_MOZILLA,;t t
30735 s,@MOZ_FLAVOUR@,$MOZ_FLAVOUR,;t t
30736 s,@MOZ_INC@,$MOZ_INC,;t t
30737 s,@MOZ_LIB@,$MOZ_LIB,;t t
30738 s,@MOZ_LIB_XPCOM@,$MOZ_LIB_XPCOM,;t t
30739 s,@MOZ_LDAP_CFLAGS@,$MOZ_LDAP_CFLAGS,;t t
30740 s,@SYSTEM_SANE_HEADER@,$SYSTEM_SANE_HEADER,;t t
30741 s,@SYSTEM_GENBRK@,$SYSTEM_GENBRK,;t t
30742 s,@SYSTEM_GENCCODE@,$SYSTEM_GENCCODE,;t t
30743 s,@SYSTEM_GENCMN@,$SYSTEM_GENCMN,;t t
30744 s,@SYSTEM_ICU@,$SYSTEM_ICU,;t t
30745 s,@GRAPHITE_CFLAGS@,$GRAPHITE_CFLAGS,;t t
30746 s,@GRAPHITE_LIBS@,$GRAPHITE_LIBS,;t t
30747 s,@ENABLE_GRAPHITE@,$ENABLE_GRAPHITE,;t t
30748 s,@SYSTEM_GRAPHITE@,$SYSTEM_GRAPHITE,;t t
30749 s,@X_CFLAGS@,$X_CFLAGS,;t t
30750 s,@X_PRE_LIBS@,$X_PRE_LIBS,;t t
30751 s,@X_LIBS@,$X_LIBS,;t t
30752 s,@X_EXTRA_LIBS@,$X_EXTRA_LIBS,;t t
30753 s,@XINC@,$XINC,;t t
30754 s,@XLIB@,$XLIB,;t t
30755 s,@XAU_LIBS@,$XAU_LIBS,;t t
30756 s,@DISABLE_XAW@,$DISABLE_XAW,;t t
30757 s,@SYSTEM_XRENDER_HEADERS@,$SYSTEM_XRENDER_HEADERS,;t t
30758 s,@XRENDER_LINK@,$XRENDER_LINK,;t t
30759 s,@XRANDR_CFLAGS@,$XRANDR_CFLAGS,;t t
30760 s,@XRANDR_LIBS@,$XRANDR_LIBS,;t t
30761 s,@XRANDR_DLOPEN@,$XRANDR_DLOPEN,;t t
30762 s,@ENABLE_RANDR@,$ENABLE_RANDR,;t t
30763 s,@DISABLE_NEON@,$DISABLE_NEON,;t t
30764 s,@NEON_CFLAGS@,$NEON_CFLAGS,;t t
30765 s,@NEON_LIBS@,$NEON_LIBS,;t t
30766 s,@SYSTEM_NEON@,$SYSTEM_NEON,;t t
30767 s,@NEON_VERSION@,$NEON_VERSION,;t t
30768 s,@OPENSSL_CFLAGS@,$OPENSSL_CFLAGS,;t t
30769 s,@OPENSSL_LIBS@,$OPENSSL_LIBS,;t t
30770 s,@SYSTEM_OPENSSL@,$SYSTEM_OPENSSL,;t t
30771 s,@ENABLE_AGG@,$ENABLE_AGG,;t t
30772 s,@AGG_CFLAGS@,$AGG_CFLAGS,;t t
30773 s,@AGG_LIBS@,$AGG_LIBS,;t t
30774 s,@SYSTEM_AGG@,$SYSTEM_AGG,;t t
30775 s,@AGG_VERSION@,$AGG_VERSION,;t t
30776 s,@REDLAND_CFLAGS@,$REDLAND_CFLAGS,;t t
30777 s,@REDLAND_LIBS@,$REDLAND_LIBS,;t t
30778 s,@SYSTEM_REDLAND@,$SYSTEM_REDLAND,;t t
30779 s,@HUNSPELL_CFLAGS@,$HUNSPELL_CFLAGS,;t t
30780 s,@HUNSPELL_LIBS@,$HUNSPELL_LIBS,;t t
30781 s,@SYSTEM_HUNSPELL@,$SYSTEM_HUNSPELL,;t t
30782 s,@SYSTEM_HYPH@,$SYSTEM_HYPH,;t t
30783 s,@HYPHEN_LIB@,$HYPHEN_LIB,;t t
30784 s,@MYTHES_CFLAGS@,$MYTHES_CFLAGS,;t t
30785 s,@MYTHES_LIBS@,$MYTHES_LIBS,;t t
30786 s,@SYSTEM_MYTHES@,$SYSTEM_MYTHES,;t t
30787 s,@SYSTEM_LPSOLVE@,$SYSTEM_LPSOLVE,;t t
30788 s,@HAVE_GETOPT@,$HAVE_GETOPT,;t t
30789 s,@HAVE_READDIR_R@,$HAVE_READDIR_R,;t t
30790 s,@SYSTEM_LIBC@,$SYSTEM_LIBC,;t t
30791 s,@PSDK_HOME@,$PSDK_HOME,;t t
30792 s,@WINDOWS_VISTA_PSDK@,$WINDOWS_VISTA_PSDK,;t t
30793 s,@DIRECTXSDK_HOME@,$DIRECTXSDK_HOME,;t t
30794 s,@DIRECTXSDK_LIB@,$DIRECTXSDK_LIB,;t t
30795 s,@NSIS_PATH@,$NSIS_PATH,;t t
30796 s,@BISON@,$BISON,;t t
30797 s,@FLEX@,$FLEX,;t t
30798 s,@PATCH@,$PATCH,;t t
30799 s,@GNUCP@,$GNUCP,;t t
30800 s,@GNUPATCH@,$GNUPATCH,;t t
30801 s,@CYGWIN_PATH@,$CYGWIN_PATH,;t t
30802 s,@ML_EXE@,$ML_EXE,;t t
30803 s,@ASM_HOME@,$ASM_HOME,;t t
30804 s,@ZIP@,$ZIP,;t t
30805 s,@UNZIP@,$UNZIP,;t t
30806 s,@ZIP_HOME@,$ZIP_HOME,;t t
30807 s,@ENABLE_GTK@,$ENABLE_GTK,;t t
30808 s,@ENABLE_KDE@,$ENABLE_KDE,;t t
30809 s,@ENABLE_KDE4@,$ENABLE_KDE4,;t t
30810 s,@GCONF_CFLAGS@,$GCONF_CFLAGS,;t t
30811 s,@GCONF_LIBS@,$GCONF_LIBS,;t t
30812 s,@ENABLE_GCONF@,$ENABLE_GCONF,;t t
30813 s,@GNOMEVFS_CFLAGS@,$GNOMEVFS_CFLAGS,;t t
30814 s,@GNOMEVFS_LIBS@,$GNOMEVFS_LIBS,;t t
30815 s,@ENABLE_GNOMEVFS@,$ENABLE_GNOMEVFS,;t t
30816 s,@GTK_CFLAGS@,$GTK_CFLAGS,;t t
30817 s,@GTK_LIBS@,$GTK_LIBS,;t t
30818 s,@DBUS_CFLAGS@,$DBUS_CFLAGS,;t t
30819 s,@DBUS_LIBS@,$DBUS_LIBS,;t t
30820 s,@GIO_CFLAGS@,$GIO_CFLAGS,;t t
30821 s,@GIO_LIBS@,$GIO_LIBS,;t t
30822 s,@ENABLE_GIO@,$ENABLE_GIO,;t t
30823 s,@ENABLE_DBUS@,$ENABLE_DBUS,;t t
30824 s,@ENABLE_SYSTRAY_GTK@,$ENABLE_SYSTRAY_GTK,;t t
30825 s,@CAIRO_CFLAGS@,$CAIRO_CFLAGS,;t t
30826 s,@CAIRO_LIBS@,$CAIRO_LIBS,;t t
30827 s,@ENABLE_CAIRO@,$ENABLE_CAIRO,;t t
30828 s,@BUILD_PIXMAN@,$BUILD_PIXMAN,;t t
30829 s,@SYSTEM_CAIRO@,$SYSTEM_CAIRO,;t t
30830 s,@ENABLE_OPENGL@,$ENABLE_OPENGL,;t t
30831 s,@ENABLE_PRESENTER_EXTRA_UI@,$ENABLE_PRESENTER_EXTRA_UI,;t t
30832 s,@ENABLE_MINIMIZER@,$ENABLE_MINIMIZER,;t t
30833 s,@ENABLE_PRESENTER_SCREEN@,$ENABLE_PRESENTER_SCREEN,;t t
30834 s,@POPPLER_CFLAGS@,$POPPLER_CFLAGS,;t t
30835 s,@POPPLER_LIBS@,$POPPLER_LIBS,;t t
30836 s,@ENABLE_PDFIMPORT@,$ENABLE_PDFIMPORT,;t t
30837 s,@SYSTEM_POPPLER@,$SYSTEM_POPPLER,;t t
30838 s,@ENABLE_MEDIAWIKI@,$ENABLE_MEDIAWIKI,;t t
30839 s,@SYSTEM_SERVLETAPI@,$SYSTEM_SERVLETAPI,;t t
30840 s,@SERVLETAPI_JAR@,$SERVLETAPI_JAR,;t t
30841 s,@ENABLE_REPORTBUILDER@,$ENABLE_REPORTBUILDER,;t t
30842 s,@SYSTEM_JFREEREPORT@,$SYSTEM_JFREEREPORT,;t t
30843 s,@SAC_JAR@,$SAC_JAR,;t t
30844 s,@LIBXML_JAR@,$LIBXML_JAR,;t t
30845 s,@FLUTE_JAR@,$FLUTE_JAR,;t t
30846 s,@JFREEREPORT_JAR@,$JFREEREPORT_JAR,;t t
30847 s,@LIBBASE_JAR@,$LIBBASE_JAR,;t t
30848 s,@LIBLAYOUT_JAR@,$LIBLAYOUT_JAR,;t t
30849 s,@LIBLOADER_JAR@,$LIBLOADER_JAR,;t t
30850 s,@LIBFORMULA_JAR@,$LIBFORMULA_JAR,;t t
30851 s,@LIBREPOSITORY_JAR@,$LIBREPOSITORY_JAR,;t t
30852 s,@LIBFONTS_JAR@,$LIBFONTS_JAR,;t t
30853 s,@LIBSERIALIZER_JAR@,$LIBSERIALIZER_JAR,;t t
30854 s,@SYSTEM_APACHE_COMMONS@,$SYSTEM_APACHE_COMMONS,;t t
30855 s,@COMMONS_CODEC_JAR@,$COMMONS_CODEC_JAR,;t t
30856 s,@COMMONS_LANG_JAR@,$COMMONS_LANG_JAR,;t t
30857 s,@COMMONS_HTTPCLIENT_JAR@,$COMMONS_HTTPCLIENT_JAR,;t t
30858 s,@COMMONS_LOGGING_JAR@,$COMMONS_LOGGING_JAR,;t t
30859 s,@MOC@,$MOC,;t t
30860 s,@KDE_CFLAGS@,$KDE_CFLAGS,;t t
30861 s,@KDE_LIBS@,$KDE_LIBS,;t t
30862 s,@MOC4@,$MOC4,;t t
30863 s,@KDE4_CFLAGS@,$KDE4_CFLAGS,;t t
30864 s,@KDE4_LIBS@,$KDE4_LIBS,;t t
30865 s,@ENABLE_LOCKDOWN@,$ENABLE_LOCKDOWN,;t t
30866 s,@GOBJECT_CFLAGS@,$GOBJECT_CFLAGS,;t t
30867 s,@GOBJECT_LIBS@,$GOBJECT_LIBS,;t t
30868 s,@ENABLE_EVOAB2@,$ENABLE_EVOAB2,;t t
30869 s,@ENABLE_KAB@,$ENABLE_KAB,;t t
30870 s,@WITH_FONTS@,$WITH_FONTS,;t t
30871 s,@WITHOUT_PPDS@,$WITHOUT_PPDS,;t t
30872 s,@WITHOUT_AFMS@,$WITHOUT_AFMS,;t t
30873 s,@SCPDEFS@,$SCPDEFS,;t t
30874 s,@USE_XINERAMA@,$USE_XINERAMA,;t t
30875 s,@XINERAMA_LINK@,$XINERAMA_LINK,;t t
30876 s,@ANT@,$ANT,;t t
30877 s,@ANT_HOME@,$ANT_HOME,;t t
30878 s,@ANT_LIB@,$ANT_LIB,;t t
30879 s,@OOO_JUNIT_JAR@,$OOO_JUNIT_JAR,;t t
30880 s,@WITH_LANG@,$WITH_LANG,;t t
30881 s,@WITH_POOR_HELP_LOCALIZATIONS@,$WITH_POOR_HELP_LOCALIZATIONS,;t t
30882 s,@WITH_DICT@,$WITH_DICT,;t t
30883 s,@INTRO_BITMAPS@,$INTRO_BITMAPS,;t t
30884 s,@ABOUT_BITMAPS@,$ABOUT_BITMAPS,;t t
30885 s,@OOO_VENDOR@,$OOO_VENDOR,;t t
30886 s,@UNIXWRAPPERNAME@,$UNIXWRAPPERNAME,;t t
30887 s,@ENABLE_STATIC_GTK@,$ENABLE_STATIC_GTK,;t t
30888 s,@ENABLE_LAYOUT@,$ENABLE_LAYOUT,;t t
30889 s,@VERBOSE@,$VERBOSE,;t t
30890 s,@nodep@,$nodep,;t t
30891 s,@LOCAL_SOLVER@,$LOCAL_SOLVER,;t t
30892 s,@BUILD_TYPE@,$BUILD_TYPE,;t t
30893 s,@LIBOBJS@,$LIBOBJS,;t t
30894 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
30895 CEOF
30897 _ACEOF
30899 cat >>$CONFIG_STATUS <<\_ACEOF
30900 # Split the substitutions into bite-sized pieces for seds with
30901 # small command number limits, like on Digital OSF/1 and HP-UX.
30902 ac_max_sed_lines=48
30903 ac_sed_frag=1 # Number of current file.
30904 ac_beg=1 # First line for current file.
30905 ac_end=$ac_max_sed_lines # Line after last line for current file.
30906 ac_more_lines=:
30907 ac_sed_cmds=
30908 while $ac_more_lines; do
30909 if test $ac_beg -gt 1; then
30910 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30911 else
30912 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
30914 if test ! -s $tmp/subs.frag; then
30915 ac_more_lines=false
30916 else
30917 # The purpose of the label and of the branching condition is to
30918 # speed up the sed processing (if there are no `@' at all, there
30919 # is no need to browse any of the substitutions).
30920 # These are the two extra sed commands mentioned above.
30921 (echo ':t
30922 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
30923 if test -z "$ac_sed_cmds"; then
30924 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
30925 else
30926 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
30928 ac_sed_frag=`expr $ac_sed_frag + 1`
30929 ac_beg=$ac_end
30930 ac_end=`expr $ac_end + $ac_max_sed_lines`
30932 done
30933 if test -z "$ac_sed_cmds"; then
30934 ac_sed_cmds=cat
30936 fi # test -n "$CONFIG_FILES"
30938 _ACEOF
30939 cat >>$CONFIG_STATUS <<\_ACEOF
30940 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
30941 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
30942 case $ac_file in
30943 - | *:- | *:-:* ) # input from stdin
30944 cat >$tmp/stdin
30945 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30946 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30947 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
30948 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
30949 * ) ac_file_in=$ac_file.in ;;
30950 esac
30952 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
30953 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
30954 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30955 X"$ac_file" : 'X\(//\)[^/]' \| \
30956 X"$ac_file" : 'X\(//\)$' \| \
30957 X"$ac_file" : 'X\(/\)' \| \
30958 . : '\(.\)' 2>/dev/null ||
30959 echo X"$ac_file" |
30960 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30961 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30962 /^X\(\/\/\)$/{ s//\1/; q; }
30963 /^X\(\/\).*/{ s//\1/; q; }
30964 s/.*/./; q'`
30965 { if $as_mkdir_p; then
30966 mkdir -p "$ac_dir"
30967 else
30968 as_dir="$ac_dir"
30969 as_dirs=
30970 while test ! -d "$as_dir"; do
30971 as_dirs="$as_dir $as_dirs"
30972 as_dir=`(dirname "$as_dir") 2>/dev/null ||
30973 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30974 X"$as_dir" : 'X\(//\)[^/]' \| \
30975 X"$as_dir" : 'X\(//\)$' \| \
30976 X"$as_dir" : 'X\(/\)' \| \
30977 . : '\(.\)' 2>/dev/null ||
30978 echo X"$as_dir" |
30979 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
30980 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
30981 /^X\(\/\/\)$/{ s//\1/; q; }
30982 /^X\(\/\).*/{ s//\1/; q; }
30983 s/.*/./; q'`
30984 done
30985 test ! -n "$as_dirs" || mkdir $as_dirs
30986 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
30987 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
30988 { (exit 1); exit 1; }; }; }
30990 ac_builddir=.
30992 if test "$ac_dir" != .; then
30993 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
30994 # A "../" for each directory in $ac_dir_suffix.
30995 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
30996 else
30997 ac_dir_suffix= ac_top_builddir=
31000 case $srcdir in
31001 .) # No --srcdir option. We are building in place.
31002 ac_srcdir=.
31003 if test -z "$ac_top_builddir"; then
31004 ac_top_srcdir=.
31005 else
31006 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
31007 fi ;;
31008 [\\/]* | ?:[\\/]* ) # Absolute path.
31009 ac_srcdir=$srcdir$ac_dir_suffix;
31010 ac_top_srcdir=$srcdir ;;
31011 *) # Relative path.
31012 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
31013 ac_top_srcdir=$ac_top_builddir$srcdir ;;
31014 esac
31016 # Do not use `cd foo && pwd` to compute absolute paths, because
31017 # the directories may not exist.
31018 case `pwd` in
31019 .) ac_abs_builddir="$ac_dir";;
31021 case "$ac_dir" in
31022 .) ac_abs_builddir=`pwd`;;
31023 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
31024 *) ac_abs_builddir=`pwd`/"$ac_dir";;
31025 esac;;
31026 esac
31027 case $ac_abs_builddir in
31028 .) ac_abs_top_builddir=${ac_top_builddir}.;;
31030 case ${ac_top_builddir}. in
31031 .) ac_abs_top_builddir=$ac_abs_builddir;;
31032 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
31033 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
31034 esac;;
31035 esac
31036 case $ac_abs_builddir in
31037 .) ac_abs_srcdir=$ac_srcdir;;
31039 case $ac_srcdir in
31040 .) ac_abs_srcdir=$ac_abs_builddir;;
31041 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
31042 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
31043 esac;;
31044 esac
31045 case $ac_abs_builddir in
31046 .) ac_abs_top_srcdir=$ac_top_srcdir;;
31048 case $ac_top_srcdir in
31049 .) ac_abs_top_srcdir=$ac_abs_builddir;;
31050 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
31051 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
31052 esac;;
31053 esac
31057 if test x"$ac_file" != x-; then
31058 { echo "$as_me:$LINENO: creating $ac_file" >&5
31059 echo "$as_me: creating $ac_file" >&6;}
31060 rm -f "$ac_file"
31062 # Let's still pretend it is `configure' which instantiates (i.e., don't
31063 # use $as_me), people would be surprised to read:
31064 # /* config.h. Generated by config.status. */
31065 if test x"$ac_file" = x-; then
31066 configure_input=
31067 else
31068 configure_input="$ac_file. "
31070 configure_input=$configure_input"Generated from `echo $ac_file_in |
31071 sed 's,.*/,,'` by configure."
31073 # First look for the input files in the build tree, otherwise in the
31074 # src tree.
31075 ac_file_inputs=`IFS=:
31076 for f in $ac_file_in; do
31077 case $f in
31078 -) echo $tmp/stdin ;;
31079 [\\/$]*)
31080 # Absolute (can't be DOS-style, as IFS=:)
31081 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31082 echo "$as_me: error: cannot find input file: $f" >&2;}
31083 { (exit 1); exit 1; }; }
31084 echo "$f";;
31085 *) # Relative
31086 if test -f "$f"; then
31087 # Build tree
31088 echo "$f"
31089 elif test -f "$srcdir/$f"; then
31090 # Source tree
31091 echo "$srcdir/$f"
31092 else
31093 # /dev/null tree
31094 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
31095 echo "$as_me: error: cannot find input file: $f" >&2;}
31096 { (exit 1); exit 1; }; }
31097 fi;;
31098 esac
31099 done` || { (exit 1); exit 1; }
31100 _ACEOF
31101 cat >>$CONFIG_STATUS <<_ACEOF
31102 sed "$ac_vpsub
31103 $extrasub
31104 _ACEOF
31105 cat >>$CONFIG_STATUS <<\_ACEOF
31107 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
31108 s,@configure_input@,$configure_input,;t t
31109 s,@srcdir@,$ac_srcdir,;t t
31110 s,@abs_srcdir@,$ac_abs_srcdir,;t t
31111 s,@top_srcdir@,$ac_top_srcdir,;t t
31112 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
31113 s,@builddir@,$ac_builddir,;t t
31114 s,@abs_builddir@,$ac_abs_builddir,;t t
31115 s,@top_builddir@,$ac_top_builddir,;t t
31116 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
31117 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
31118 rm -f $tmp/stdin
31119 if test x"$ac_file" != x-; then
31120 mv $tmp/out $ac_file
31121 else
31122 cat $tmp/out
31123 rm -f $tmp/out
31126 done
31127 _ACEOF
31129 cat >>$CONFIG_STATUS <<\_ACEOF
31131 { (exit 0); exit 0; }
31132 _ACEOF
31133 chmod +x $CONFIG_STATUS
31134 ac_clean_files=$ac_clean_files_save
31137 # configure is writing to config.log, and then calls config.status.
31138 # config.status does its own redirection, appending to config.log.
31139 # Unfortunately, on DOS this fails, as config.log is still kept open
31140 # by configure, so config.status won't be able to write to it; its
31141 # output is simply discarded. So we exec the FD to /dev/null,
31142 # effectively closing config.log, so it can be properly (re)opened and
31143 # appended to by config.status. When coming back to configure, we
31144 # need to make the FD available again.
31145 if test "$no_create" != yes; then
31146 ac_cs_success=:
31147 ac_config_status_args=
31148 test "$silent" = yes &&
31149 ac_config_status_args="$ac_config_status_args --quiet"
31150 exec 5>/dev/null
31151 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31152 exec 5>>config.log
31153 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31154 # would make configure fail if this is the last instruction.
31155 $ac_cs_success || { (exit 1); exit 1; }
31159 chmod a+x set_soenv
31160 if test -z "$enable_check_only"; then
31161 './set_soenv'
31162 else
31163 echo
31164 echo Test Complete
31165 echo No environment file will be generated
31166 echo
31167 num_warnings=`wc -l warn`
31168 _num=`echo $num_warnings | $AWK '{ print $1 }'`
31169 if test $_num -gt 0; then
31170 echo The following warning\(s\) were generated by configure
31171 echo ----------------------------------------------------
31172 echo
31173 cat warn
31174 echo
31175 else
31176 echo There were no warnings
31178 echo