PageRenderTime 122ms CodeModel.GetById 24ms RepoModel.GetById 0ms app.codeStats 2ms

/configure

https://bitbucket.org/mst/ooo340
Shell | 15916 lines | 14449 code | 846 blank | 621 comment | 946 complexity | 3d8452c21077611d34f6380bc53def6e MD5 | raw file
Possible License(s): MPL-2.0-no-copyleft-exception, LGPL-3.0, AGPL-1.0, BSD-3-Clause-No-Nuclear-License-2014, GPL-3.0, GPL-2.0, BSD-3-Clause, LGPL-2.1
  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.64.
  5. #
  6. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  7. # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
  8. # Foundation, Inc.
  9. #
  10. # This configure script is free software; the Free Software Foundation
  11. # gives unlimited permission to copy, distribute and modify it.
  12. ## -------------------- ##
  13. ## M4sh Initialization. ##
  14. ## -------------------- ##
  15. # Be more Bourne compatible
  16. DUALCASE=1; export DUALCASE # for MKS sh
  17. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  18. emulate sh
  19. NULLCMD=:
  20. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  21. # is contrary to our usage. Disable this feature.
  22. alias -g '${1+"$@"}'='"$@"'
  23. setopt NO_GLOB_SUBST
  24. else
  25. case `(set -o) 2>/dev/null` in #(
  26. *posix*) :
  27. set -o posix ;; #(
  28. *) :
  29. ;;
  30. esac
  31. fi
  32. as_nl='
  33. '
  34. export as_nl
  35. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  36. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  39. # Prefer a ksh shell builtin over an external printf program on Solaris,
  40. # but without wasting forks for bash or zsh.
  41. if test -z "$BASH_VERSION$ZSH_VERSION" \
  42. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  43. as_echo='print -r --'
  44. as_echo_n='print -rn --'
  45. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  46. as_echo='printf %s\n'
  47. as_echo_n='printf %s'
  48. else
  49. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  50. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  51. as_echo_n='/usr/ucb/echo -n'
  52. else
  53. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  54. as_echo_n_body='eval
  55. arg=$1;
  56. case $arg in #(
  57. *"$as_nl"*)
  58. expr "X$arg" : "X\\(.*\\)$as_nl";
  59. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  60. esac;
  61. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  62. '
  63. export as_echo_n_body
  64. as_echo_n='sh -c $as_echo_n_body as_echo'
  65. fi
  66. export as_echo_body
  67. as_echo='sh -c $as_echo_body as_echo'
  68. fi
  69. # The user is always right.
  70. if test "${PATH_SEPARATOR+set}" != set; then
  71. PATH_SEPARATOR=:
  72. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  73. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  74. PATH_SEPARATOR=';'
  75. }
  76. fi
  77. # IFS
  78. # We need space, tab and new line, in precisely that order. Quoting is
  79. # there to prevent editors from complaining about space-tab.
  80. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  81. # splitting by setting IFS to empty value.)
  82. IFS=" "" $as_nl"
  83. # Find who we are. Look in the path if we contain no directory separator.
  84. case $0 in #((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. if test "x$CONFIG_SHELL" = x; then
  124. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  125. emulate sh
  126. NULLCMD=:
  127. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  128. # is contrary to our usage. Disable this feature.
  129. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  130. setopt NO_GLOB_SUBST
  131. else
  132. case \`(set -o) 2>/dev/null\` in #(
  133. *posix*) :
  134. set -o posix ;; #(
  135. *) :
  136. ;;
  137. esac
  138. fi
  139. "
  140. as_required="as_fn_return () { (exit \$1); }
  141. as_fn_success () { as_fn_return 0; }
  142. as_fn_failure () { as_fn_return 1; }
  143. as_fn_ret_success () { return 0; }
  144. as_fn_ret_failure () { return 1; }
  145. exitcode=0
  146. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  147. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  148. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  149. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  150. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  151. else
  152. exitcode=1; echo positional parameters were not saved.
  153. fi
  154. test x\$exitcode = x0 || exit 1"
  155. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  156. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  157. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  158. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  159. test \$(( 1 + 1 )) = 2 || exit 1"
  160. if (eval "$as_required") 2>/dev/null; then :
  161. as_have_required=yes
  162. else
  163. as_have_required=no
  164. fi
  165. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  166. else
  167. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  168. as_found=false
  169. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  170. do
  171. IFS=$as_save_IFS
  172. test -z "$as_dir" && as_dir=.
  173. as_found=:
  174. case $as_dir in #(
  175. /*)
  176. for as_base in sh bash ksh sh5; do
  177. # Try only shells that exist, to save several forks.
  178. as_shell=$as_dir/$as_base
  179. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  180. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  181. CONFIG_SHELL=$as_shell as_have_required=yes
  182. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  183. break 2
  184. fi
  185. fi
  186. done;;
  187. esac
  188. as_found=false
  189. done
  190. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  191. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  192. CONFIG_SHELL=$SHELL as_have_required=yes
  193. fi; }
  194. IFS=$as_save_IFS
  195. if test "x$CONFIG_SHELL" != x; then :
  196. # We cannot yet assume a decent shell, so we have to provide a
  197. # neutralization value for shells without unset; and this also
  198. # works around shells that cannot unset nonexistent variables.
  199. BASH_ENV=/dev/null
  200. ENV=/dev/null
  201. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  202. export CONFIG_SHELL
  203. exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  204. fi
  205. if test x$as_have_required = xno; then :
  206. $as_echo "$0: This script requires a shell more modern than all"
  207. $as_echo "$0: the shells that I found on your system."
  208. if test x${ZSH_VERSION+set} = xset ; then
  209. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  210. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  211. else
  212. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  213. $0: including any error possibly output before this
  214. $0: message. Then install a modern shell, or manually run
  215. $0: the script under such a shell if you do have one."
  216. fi
  217. exit 1
  218. fi
  219. fi
  220. fi
  221. SHELL=${CONFIG_SHELL-/bin/sh}
  222. export SHELL
  223. # Unset more variables known to interfere with behavior of common tools.
  224. CLICOLOR_FORCE= GREP_OPTIONS=
  225. unset CLICOLOR_FORCE GREP_OPTIONS
  226. ## --------------------- ##
  227. ## M4sh Shell Functions. ##
  228. ## --------------------- ##
  229. # as_fn_unset VAR
  230. # ---------------
  231. # Portably unset VAR.
  232. as_fn_unset ()
  233. {
  234. { eval $1=; unset $1;}
  235. }
  236. as_unset=as_fn_unset
  237. # as_fn_set_status STATUS
  238. # -----------------------
  239. # Set $? to STATUS, without forking.
  240. as_fn_set_status ()
  241. {
  242. return $1
  243. } # as_fn_set_status
  244. # as_fn_exit STATUS
  245. # -----------------
  246. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  247. as_fn_exit ()
  248. {
  249. set +e
  250. as_fn_set_status $1
  251. exit $1
  252. } # as_fn_exit
  253. # as_fn_mkdir_p
  254. # -------------
  255. # Create "$as_dir" as a directory, including parents if necessary.
  256. as_fn_mkdir_p ()
  257. {
  258. case $as_dir in #(
  259. -*) as_dir=./$as_dir;;
  260. esac
  261. test -d "$as_dir" || eval $as_mkdir_p || {
  262. as_dirs=
  263. while :; do
  264. case $as_dir in #(
  265. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  266. *) as_qdir=$as_dir;;
  267. esac
  268. as_dirs="'$as_qdir' $as_dirs"
  269. as_dir=`$as_dirname -- "$as_dir" ||
  270. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  271. X"$as_dir" : 'X\(//\)[^/]' \| \
  272. X"$as_dir" : 'X\(//\)$' \| \
  273. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  274. $as_echo X"$as_dir" |
  275. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  276. s//\1/
  277. q
  278. }
  279. /^X\(\/\/\)[^/].*/{
  280. s//\1/
  281. q
  282. }
  283. /^X\(\/\/\)$/{
  284. s//\1/
  285. q
  286. }
  287. /^X\(\/\).*/{
  288. s//\1/
  289. q
  290. }
  291. s/.*/./; q'`
  292. test -d "$as_dir" && break
  293. done
  294. test -z "$as_dirs" || eval "mkdir $as_dirs"
  295. } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  296. } # as_fn_mkdir_p
  297. # as_fn_append VAR VALUE
  298. # ----------------------
  299. # Append the text in VALUE to the end of the definition contained in VAR. Take
  300. # advantage of any shell optimizations that allow amortized linear growth over
  301. # repeated appends, instead of the typical quadratic growth present in naive
  302. # implementations.
  303. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  304. eval 'as_fn_append ()
  305. {
  306. eval $1+=\$2
  307. }'
  308. else
  309. as_fn_append ()
  310. {
  311. eval $1=\$$1\$2
  312. }
  313. fi # as_fn_append
  314. # as_fn_arith ARG...
  315. # ------------------
  316. # Perform arithmetic evaluation on the ARGs, and store the result in the
  317. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  318. # must be portable across $(()) and expr.
  319. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  320. eval 'as_fn_arith ()
  321. {
  322. as_val=$(( $* ))
  323. }'
  324. else
  325. as_fn_arith ()
  326. {
  327. as_val=`expr "$@" || test $? -eq 1`
  328. }
  329. fi # as_fn_arith
  330. # as_fn_error ERROR [LINENO LOG_FD]
  331. # ---------------------------------
  332. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  333. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  334. # script with status $?, using 1 if that was 0.
  335. as_fn_error ()
  336. {
  337. as_status=$?; test $as_status -eq 0 && as_status=1
  338. if test "$3"; then
  339. as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  340. $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  341. fi
  342. $as_echo "$as_me: error: $1" >&2
  343. as_fn_exit $as_status
  344. } # as_fn_error
  345. if expr a : '\(a\)' >/dev/null 2>&1 &&
  346. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  347. as_expr=expr
  348. else
  349. as_expr=false
  350. fi
  351. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  352. as_basename=basename
  353. else
  354. as_basename=false
  355. fi
  356. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  357. as_dirname=dirname
  358. else
  359. as_dirname=false
  360. fi
  361. as_me=`$as_basename -- "$0" ||
  362. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  363. X"$0" : 'X\(//\)$' \| \
  364. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  365. $as_echo X/"$0" |
  366. sed '/^.*\/\([^/][^/]*\)\/*$/{
  367. s//\1/
  368. q
  369. }
  370. /^X\/\(\/\/\)$/{
  371. s//\1/
  372. q
  373. }
  374. /^X\/\(\/\).*/{
  375. s//\1/
  376. q
  377. }
  378. s/.*/./; q'`
  379. # Avoid depending upon Character Ranges.
  380. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  381. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  382. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  383. as_cr_digits='0123456789'
  384. as_cr_alnum=$as_cr_Letters$as_cr_digits
  385. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  386. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  387. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  388. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  389. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  390. sed -n '
  391. p
  392. /[$]LINENO/=
  393. ' <$as_myself |
  394. sed '
  395. s/[$]LINENO.*/&-/
  396. t lineno
  397. b
  398. :lineno
  399. N
  400. :loop
  401. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  402. t loop
  403. s/-\n.*//
  404. ' >$as_me.lineno &&
  405. chmod +x "$as_me.lineno" ||
  406. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  407. # Don't try to exec as it changes $[0], causing all sort of problems
  408. # (the dirname of $[0] is not the place where we might find the
  409. # original and so on. Autoconf is especially sensitive to this).
  410. . "./$as_me.lineno"
  411. # Exit status is that of the last command.
  412. exit
  413. }
  414. ECHO_C= ECHO_N= ECHO_T=
  415. case `echo -n x` in #(((((
  416. -n*)
  417. case `echo 'xy\c'` in
  418. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  419. xy) ECHO_C='\c';;
  420. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  421. ECHO_T=' ';;
  422. esac;;
  423. *)
  424. ECHO_N='-n';;
  425. esac
  426. rm -f conf$$ conf$$.exe conf$$.file
  427. if test -d conf$$.dir; then
  428. rm -f conf$$.dir/conf$$.file
  429. else
  430. rm -f conf$$.dir
  431. mkdir conf$$.dir 2>/dev/null
  432. fi
  433. if (echo >conf$$.file) 2>/dev/null; then
  434. if ln -s conf$$.file conf$$ 2>/dev/null; then
  435. as_ln_s='ln -s'
  436. # ... but there are two gotchas:
  437. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  438. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  439. # In both cases, we have to default to `cp -p'.
  440. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  441. as_ln_s='cp -p'
  442. elif ln conf$$.file conf$$ 2>/dev/null; then
  443. as_ln_s=ln
  444. else
  445. as_ln_s='cp -p'
  446. fi
  447. else
  448. as_ln_s='cp -p'
  449. fi
  450. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  451. rmdir conf$$.dir 2>/dev/null
  452. if mkdir -p . 2>/dev/null; then
  453. as_mkdir_p='mkdir -p "$as_dir"'
  454. else
  455. test -d ./-p && rmdir ./-p
  456. as_mkdir_p=false
  457. fi
  458. if test -x / >/dev/null 2>&1; then
  459. as_test_x='test -x'
  460. else
  461. if ls -dL / >/dev/null 2>&1; then
  462. as_ls_L_option=L
  463. else
  464. as_ls_L_option=
  465. fi
  466. as_test_x='
  467. eval sh -c '\''
  468. if test -d "$1"; then
  469. test -d "$1/.";
  470. else
  471. case $1 in #(
  472. -*)set "./$1";;
  473. esac;
  474. case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  475. ???[sx]*):;;*)false;;esac;fi
  476. '\'' sh
  477. '
  478. fi
  479. as_executable_p=$as_test_x
  480. # Sed expression to map a string onto a valid CPP name.
  481. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  482. # Sed expression to map a string onto a valid variable name.
  483. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  484. exec 7<&0 </dev/null 6>&1
  485. # Name of the host.
  486. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  487. # so uname gets run too.
  488. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  489. #
  490. # Initializations.
  491. #
  492. ac_default_prefix=/usr/local
  493. ac_clean_files=
  494. ac_config_libobj_dir=.
  495. LIBOBJS=
  496. cross_compiling=no
  497. subdirs=
  498. MFLAGS=
  499. MAKEFLAGS=
  500. # Identity of this package.
  501. PACKAGE_NAME=
  502. PACKAGE_TARNAME=
  503. PACKAGE_VERSION=
  504. PACKAGE_STRING=
  505. PACKAGE_BUGREPORT=
  506. PACKAGE_URL=
  507. # Factoring default headers for most tests.
  508. ac_includes_default="\
  509. #include <stdio.h>
  510. #ifdef HAVE_SYS_TYPES_H
  511. # include <sys/types.h>
  512. #endif
  513. #ifdef HAVE_SYS_STAT_H
  514. # include <sys/stat.h>
  515. #endif
  516. #ifdef STDC_HEADERS
  517. # include <stdlib.h>
  518. # include <stddef.h>
  519. #else
  520. # ifdef HAVE_STDLIB_H
  521. # include <stdlib.h>
  522. # endif
  523. #endif
  524. #ifdef HAVE_STRING_H
  525. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  526. # include <memory.h>
  527. # endif
  528. # include <string.h>
  529. #endif
  530. #ifdef HAVE_STRINGS_H
  531. # include <strings.h>
  532. #endif
  533. #ifdef HAVE_INTTYPES_H
  534. # include <inttypes.h>
  535. #endif
  536. #ifdef HAVE_STDINT_H
  537. # include <stdint.h>
  538. #endif
  539. #ifdef HAVE_UNISTD_H
  540. # include <unistd.h>
  541. #endif"
  542. ac_subst_vars='LTLIBOBJS
  543. LIBOBJS
  544. BUILD_TYPE
  545. LOCAL_SOLVER
  546. VERBOSE
  547. ENABLE_LAYOUT
  548. ENABLE_STATIC_GTK
  549. UNIXWRAPPERNAME
  550. OOO_VENDOR
  551. ABOUT_BITMAPS
  552. INTRO_BITMAPS
  553. WITH_DICT
  554. WITH_POOR_HELP_LOCALIZATIONS
  555. WITH_LANG
  556. ANT_LIB
  557. ANT_HOME
  558. ANT
  559. XINERAMA_LINK
  560. USE_XINERAMA
  561. SCPDEFS
  562. WITHOUT_AFMS
  563. WITHOUT_PPDS
  564. WITH_FONTS
  565. ENABLE_KAB
  566. ENABLE_EVOAB2
  567. GOBJECT_LIBS
  568. GOBJECT_CFLAGS
  569. ENABLE_LOCKDOWN
  570. KDE4_LIBS
  571. KDE4_CFLAGS
  572. MOC4
  573. KDE_LIBS
  574. KDE_CFLAGS
  575. MOC
  576. COMMONS_LOGGING_JAR
  577. COMMONS_HTTPCLIENT_JAR
  578. COMMONS_LANG_JAR
  579. COMMONS_CODEC_JAR
  580. SYSTEM_APACHE_COMMONS
  581. LIBSERIALIZER_JAR
  582. LIBFONTS_JAR
  583. LIBREPOSITORY_JAR
  584. LIBFORMULA_JAR
  585. LIBLOADER_JAR
  586. LIBLAYOUT_JAR
  587. LIBBASE_JAR
  588. JFREEREPORT_JAR
  589. FLUTE_JAR
  590. LIBXML_JAR
  591. SAC_JAR
  592. SYSTEM_JFREEREPORT
  593. ENABLE_REPORTBUILDER
  594. SERVLETAPI_JAR
  595. SYSTEM_SERVLETAPI
  596. ENABLE_MEDIAWIKI
  597. SYSTEM_POPPLER
  598. ENABLE_PDFIMPORT
  599. POPPLER_LIBS
  600. POPPLER_CFLAGS
  601. ENABLE_PRESENTER_SCREEN
  602. ENABLE_MINIMIZER
  603. ENABLE_PRESENTER_EXTRA_UI
  604. ENABLE_OPENGL
  605. SYSTEM_CAIRO
  606. BUILD_PIXMAN
  607. ENABLE_CAIRO
  608. CAIRO_LIBS
  609. CAIRO_CFLAGS
  610. ENABLE_SYSTRAY_GTK
  611. ENABLE_DBUS
  612. ENABLE_GIO
  613. GIO_LIBS
  614. GIO_CFLAGS
  615. DBUS_LIBS
  616. DBUS_CFLAGS
  617. GTK_LIBS
  618. GTK_CFLAGS
  619. ENABLE_GNOMEVFS
  620. GNOMEVFS_LIBS
  621. GNOMEVFS_CFLAGS
  622. ENABLE_GCONF
  623. GCONF_LIBS
  624. GCONF_CFLAGS
  625. ENABLE_KDE4
  626. ENABLE_KDE
  627. ENABLE_GTK
  628. ZIP_HOME
  629. UNZIP
  630. ZIP
  631. ASM_HOME
  632. ML_EXE
  633. CYGWIN_PATH
  634. GNUPATCH
  635. GNUCP
  636. PATCH
  637. FLEX
  638. BISON
  639. NSIS_PATH
  640. DIRECTXSDK_LIB
  641. DIRECTXSDK_HOME
  642. WINDOWS_VISTA_PSDK
  643. PSDK_HOME
  644. SYSTEM_LPSOLVE
  645. SYSTEM_MYTHES
  646. HYPHEN_LIB
  647. SYSTEM_HYPH
  648. SYSTEM_HUNSPELL
  649. HUNSPELL_LIBS
  650. HUNSPELL_CFLAGS
  651. SYSTEM_REDLAND
  652. REDLAND_LIBS
  653. REDLAND_CFLAGS
  654. AGG_VERSION
  655. SYSTEM_AGG
  656. AGG_LIBS
  657. AGG_CFLAGS
  658. ENABLE_AGG
  659. SYSTEM_OPENSSL
  660. OPENSSL_LIBS
  661. OPENSSL_CFLAGS
  662. NEON_VERSION
  663. SYSTEM_NEON
  664. NEON_LIBS
  665. NEON_CFLAGS
  666. DISABLE_NEON
  667. ENABLE_RANDR
  668. XRANDR_DLOPEN
  669. XRANDR_LIBS
  670. XRANDR_CFLAGS
  671. XRENDER_LINK
  672. SYSTEM_XRENDER_HEADERS
  673. DISABLE_XAW
  674. XAU_LIBS
  675. XLIB
  676. XINC
  677. X_EXTRA_LIBS
  678. X_LIBS
  679. X_PRE_LIBS
  680. X_CFLAGS
  681. XMKMF
  682. SYSTEM_GRAPHITE
  683. ENABLE_GRAPHITE
  684. GRAPHITE_LIBS
  685. GRAPHITE_CFLAGS
  686. SYSTEM_ICU
  687. SYSTEM_GENCMN
  688. SYSTEM_GENCCODE
  689. SYSTEM_GENBRK
  690. SYSTEM_SANE_HEADER
  691. MOZ_LDAP_CFLAGS
  692. MOZ_LIB_XPCOM
  693. MOZ_LIB
  694. MOZ_INC
  695. MOZ_FLAVOUR
  696. SYSTEM_MOZILLA
  697. MOZILLABUILD
  698. ENABLE_NSS_MODULE
  699. BUILD_MOZAB
  700. MOZLIBREQ_LIBS
  701. MOZLIBREQ_CFLAGS
  702. MOZGTK2_LIBS
  703. MOZGTK2_CFLAGS
  704. MOZILLA_TOOLKIT
  705. MOZILLA_VERSION
  706. MOZILLAXPCOM_LIBS
  707. MOZILLAXPCOM_CFLAGS
  708. NSPR_LIB
  709. MOZ_NSPR_LIBS
  710. MOZ_NSPR_CFLAGS
  711. NSS_LIB
  712. MOZ_NSS_LIBS
  713. MOZ_NSS_CFLAGS
  714. WITH_OPENLDAP
  715. WITH_LDAP
  716. WITH_MOZILLA
  717. SYSTEM_ODBC_HEADERS
  718. SYSTEM_VIGRA
  719. SYSTEM_BOOST
  720. CURL_LIBS
  721. CURL_CFLAGS
  722. SYSTEM_CURL
  723. CURLCONFIG
  724. SAXON_JAR
  725. SYSTEM_SAXON
  726. SERIALIZER_JAR
  727. BSH_JAR
  728. SYSTEM_BSH
  729. HSQLDB_JAR
  730. SYSTEM_HSQLDB
  731. SYSTEM_MYSQL_CPPCONN
  732. LIBMYSQL_PATH
  733. MYSQL_DEFINES
  734. MYSQL_LIB
  735. MYSQL_INC
  736. SYSTEM_MYSQL
  737. MYSQLCONFIG
  738. ENABLE_MYSQLC
  739. LUCENE_ANALYZERS_JAR
  740. LUCENE_CORE_JAR
  741. SYSTEM_LUCENE
  742. DB_JAR
  743. DB_INCLUDES
  744. DB_VERSION
  745. SYSTEM_DB
  746. HOME
  747. PYTHON_LIBS
  748. PYTHON_CFLAGS
  749. SYSTEM_PYTHON
  750. BZIP2
  751. pkgpyexecdir
  752. pyexecdir
  753. pkgpythondir
  754. pythondir
  755. PYTHON_PLATFORM
  756. PYTHON_EXEC_PREFIX
  757. PYTHON_PREFIX
  758. PYTHON_VERSION
  759. PYTHON
  760. SYSTEM_LIBXML
  761. LIBXML_LIBS
  762. LIBXML_CFLAGS
  763. SYSTEM_LIBXSLT
  764. XSLTPROC
  765. LIBXSLT_LIBS
  766. LIBXSLT_CFLAGS
  767. USE_FT_EMBOLDEN
  768. FREETYPE_LIBS
  769. FREETYPE_CFLAGS
  770. SYSTEM_LIBWPD
  771. LIBWPD_LIBS
  772. LIBWPD_CFLAGS
  773. PKG_CONFIG
  774. SYSTEM_EXPAT
  775. SYSTEM_JPEG
  776. SYSTEM_ZLIB
  777. SYSTEM_STDLIBS
  778. BUILD_QADEVOOO
  779. BUILD_UNOWINREG
  780. MINGWSTRIP
  781. MINGWCXX
  782. GPERF
  783. RPM
  784. PKGFORMAT
  785. BUILD_EPM
  786. PKGMK
  787. DPKG
  788. EPM
  789. BUILD_DMAKE
  790. DMAKE
  791. JAVAFLAGS
  792. JDK
  793. JAVA_HOME
  794. JAVAAOTCOMPILER
  795. AWTLIB
  796. JAVADOC
  797. JAVACISGCJ
  798. JAVACOMPILER
  799. JAVAINTERPRETER
  800. SOLAR_JAVA
  801. BUILD_VER_STRING
  802. ALLOC
  803. HAVE_GCC_VISIBILITY_FEATURE
  804. CCACHE
  805. USE_CCACHE
  806. USE_SYSTEM_STL
  807. STLPORT_VER
  808. STLPORT4
  809. EXCEPTIONS
  810. MINGW_GXXDLL
  811. MINGW_GCCDLL
  812. MINGW_SHARED_GXXLIB
  813. MINGW_GCCLIB_EH
  814. MINGW_SHARED_GCCLIB
  815. MINGW_CLIB_DIR
  816. MINGW_BACKWARD_INCLUDE_PATH
  817. MINGW_LIB_INCLUDE_PATH
  818. GXX_INCLUDE_PATH
  819. CRYPT_LINK
  820. PAM_LINK
  821. NEW_SHADOW_API
  822. PAM
  823. VBA_EXTENSION
  824. ENABLE_VBA
  825. LFS_CFLAGS
  826. WORDS_BIGENDIAN
  827. SIZEOF_LONG
  828. CXXCPP
  829. ac_ct_CXX
  830. CXXFLAGS
  831. CXX
  832. CPP
  833. FRAME_HOME
  834. CSC_PATH
  835. MIDL_PATH
  836. USE_MINGW
  837. COMEX
  838. MSPDB_PATH
  839. PERL
  840. HAVE_LD_HASH_STYLE
  841. _cc
  842. GNUMAKE
  843. NO_HIDS
  844. ENABLE_PCH
  845. HAVE_LD_BSYMBOLIC_FUNCTIONS
  846. GCCVER
  847. COMPATH
  848. OBJEXT
  849. EXEEXT
  850. ac_ct_CC
  851. CPPFLAGS
  852. LDFLAGS
  853. CFLAGS
  854. CC
  855. GCC_HOME
  856. SHELLPATH
  857. WITH_MINGWIN
  858. USE_SHELL
  859. THES_SYSTEM_DIR
  860. HYPH_SYSTEM_DIR
  861. DICT_SYSTEM_DIR
  862. SYSTEM_DICTS
  863. WITH_MYSPELL_DICTS
  864. ENABLE_RPATH
  865. DISABLE_ATL
  866. DISABLE_ACTIVEX
  867. ENABLE_DIRECTX
  868. WITH_BINFILTER
  869. ENABLE_FONTCONFIG
  870. ENABLE_CUPS
  871. DISABLE_STRIP
  872. ENABLE_SYMBOLS
  873. PROEXT
  874. PROFULLSWITCH
  875. PRODUCT
  876. ENABLE_DEBUG
  877. ENABLE_WERROR
  878. VC_STANDARD
  879. ENABLE_CRASHDUMP
  880. PTHREAD_LIBS
  881. PTHREAD_CFLAGS
  882. OSVERSION
  883. GNUTAR
  884. target_os
  885. target_vendor
  886. target_cpu
  887. target
  888. host_os
  889. host_vendor
  890. host_cpu
  891. host
  892. build_os
  893. build_vendor
  894. build_cpu
  895. build
  896. SOURCEVERSION
  897. UPD
  898. _solenv
  899. LOCAL_SOLENV
  900. SED
  901. AWK
  902. EGREP
  903. GREP
  904. target_alias
  905. host_alias
  906. build_alias
  907. LIBS
  908. ECHO_T
  909. ECHO_N
  910. ECHO_C
  911. DEFS
  912. mandir
  913. localedir
  914. libdir
  915. psdir
  916. pdfdir
  917. dvidir
  918. htmldir
  919. infodir
  920. docdir
  921. oldincludedir
  922. includedir
  923. localstatedir
  924. sharedstatedir
  925. sysconfdir
  926. datadir
  927. datarootdir
  928. libexecdir
  929. sbindir
  930. bindir
  931. program_transform_name
  932. prefix
  933. exec_prefix
  934. PACKAGE_URL
  935. PACKAGE_BUGREPORT
  936. PACKAGE_STRING
  937. PACKAGE_VERSION
  938. PACKAGE_TARNAME
  939. PACKAGE_NAME
  940. PATH_SEPARATOR
  941. SHELL'
  942. ac_subst_files=''
  943. ac_user_opts='
  944. enable_option_checking
  945. with_gnu_patch
  946. with_agg
  947. with_gnu_cp
  948. enable_graphite
  949. with_system_graphite
  950. enable_ldap
  951. with_openldap
  952. enable_lockdown
  953. enable_vba
  954. with_vba_package_format
  955. enable_pch
  956. enable_hids
  957. enable_mozilla
  958. with_fonts
  959. with_ppds
  960. with_afms
  961. enable_epm
  962. with_epm
  963. with_package_format
  964. enable_odk
  965. enable_qadevooo
  966. enable_mathmldtd
  967. enable_evolution2
  968. with_system_stdlibs
  969. enable_cups
  970. enable_fontconfig
  971. enable_directx
  972. enable_activex
  973. enable_atl
  974. enable_symbols
  975. enable_strip_solver
  976. enable_werror
  977. enable_debug
  978. enable_dbgutil
  979. enable_crashdump
  980. enable_cl_standard
  981. enable_gtk
  982. enable_systray
  983. enable_cairo
  984. with_system_cairo
  985. enable_opengl
  986. enable_dbus
  987. enable_gconf
  988. enable_gnome_vfs
  989. enable_gio
  990. enable_static_gtk
  991. enable_layout
  992. enable_build_mozilla
  993. with_mozilla_version
  994. with_mozilla_toolkit
  995. enable_nss_module
  996. enable_kde
  997. enable_kdeab
  998. enable_kde4
  999. enable_binfilter
  1000. enable_rpath
  1001. enable_pam
  1002. enable_pam_link
  1003. enable_crypt_link
  1004. enable_xrender_link
  1005. enable_randr
  1006. enable_randr_link
  1007. with_myspell_dicts
  1008. with_system_dicts
  1009. with_external_dict_dir
  1010. with_external_hyph_dir
  1011. with_external_thes_dir
  1012. with_system_libs
  1013. with_system_headers
  1014. with_system_jars
  1015. with_system_zlib
  1016. with_system_openssl
  1017. with_system_jpeg
  1018. with_system_expat
  1019. with_system_libwpd
  1020. with_system_libxml
  1021. with_system_python
  1022. with_system_icu
  1023. with_system_poppler
  1024. with_system_db
  1025. with_system_lucene
  1026. with_lucene_core_jar
  1027. with_lucene_analyzers_jar
  1028. enable_mysql_connector
  1029. with_system_mysql
  1030. with_libmysql_path
  1031. with_system_mysql_cppconn
  1032. with_system_hsqldb
  1033. with_hsqldb_jar
  1034. with_system_beanshell
  1035. with_beanshell_jar
  1036. enable_presenter_extra_ui
  1037. enable_minimizer
  1038. enable_presenter_console
  1039. enable_pdfimport
  1040. enable_wiki_publisher
  1041. with_commons_codec_jar
  1042. with_commons_lang_jar
  1043. with_commons_httpclient_jar
  1044. with_commons_logging_jar
  1045. with_servlet_api_jar
  1046. enable_report_builder
  1047. with_system_jfreereport
  1048. with_sac_jar
  1049. with_libxml_jar
  1050. with_flute_jar
  1051. with_jfreereport_jar
  1052. with_liblayout_jar
  1053. with_libloader_jar
  1054. with_libformula_jar
  1055. with_librepository_jar
  1056. with_libfonts_jar
  1057. with_libserializer_jar
  1058. with_libbase_jar
  1059. with_system_saxon
  1060. with_saxon_jar
  1061. with_system_libxslt
  1062. with_system_odbc
  1063. with_system_sane
  1064. with_system_xrender
  1065. with_system_curl
  1066. with_system_boost
  1067. with_system_vigra
  1068. enable_neon
  1069. enable_Xaw
  1070. with_system_neon
  1071. with_system_agg
  1072. with_system_hunspell
  1073. with_system_mythes
  1074. with_system_altlinuxhyph
  1075. with_system_lpsolve
  1076. with_system_mozilla
  1077. with_stlport
  1078. with_jdk_home
  1079. with_gxx_include_path
  1080. with_java
  1081. enable_gcjaot
  1082. with_ant_home
  1083. with_perl_home
  1084. with_cl_home
  1085. with_mspdb_path
  1086. with_midl_path
  1087. with_csc_path
  1088. with_nsis_path
  1089. with_frame_home
  1090. with_psdk_home
  1091. with_directx_home
  1092. with_mozilla_build
  1093. with_local_solenv
  1094. with_local_solver
  1095. enable_check_only
  1096. enable_ccache_skip
  1097. with_lang
  1098. with_poor_help_localizations
  1099. with_dict
  1100. with_intro_bitmaps
  1101. with_about_bitmaps
  1102. with_vendor
  1103. with_unix_wrapper
  1104. with_asm_home
  1105. with_os_version
  1106. with_unzip_home
  1107. with_zip_home
  1108. with_mingwin
  1109. with_use_shell
  1110. with_build_version
  1111. with_alloc
  1112. enable_verbose
  1113. enable_largefile
  1114. with_x
  1115. '
  1116. ac_precious_vars='build_alias
  1117. host_alias
  1118. target_alias
  1119. CC
  1120. CFLAGS
  1121. LDFLAGS
  1122. LIBS
  1123. CPPFLAGS
  1124. CPP
  1125. CXX
  1126. CXXFLAGS
  1127. CCC
  1128. CXXCPP
  1129. XMKMF'
  1130. # Initialize some variables set by options.
  1131. ac_init_help=
  1132. ac_init_version=false
  1133. ac_unrecognized_opts=
  1134. ac_unrecognized_sep=
  1135. # The variables have the same names as the options, with
  1136. # dashes changed to underlines.
  1137. cache_file=/dev/null
  1138. exec_prefix=NONE
  1139. no_create=
  1140. no_recursion=
  1141. prefix=NONE
  1142. program_prefix=NONE
  1143. program_suffix=NONE
  1144. program_transform_name=s,x,x,
  1145. silent=
  1146. site=
  1147. srcdir=
  1148. verbose=
  1149. x_includes=NONE
  1150. x_libraries=NONE
  1151. # Installation directory options.
  1152. # These are left unexpanded so users can "make install exec_prefix=/foo"
  1153. # and all the variables that are supposed to be based on exec_prefix
  1154. # by default will actually change.
  1155. # Use braces instead of parens because sh, perl, etc. also accept them.
  1156. # (The list follows the same order as the GNU Coding Standards.)
  1157. bindir='${exec_prefix}/bin'
  1158. sbindir='${exec_prefix}/sbin'
  1159. libexecdir='${exec_prefix}/libexec'
  1160. datarootdir='${prefix}/share'
  1161. datadir='${datarootdir}'
  1162. sysconfdir='${prefix}/etc'
  1163. sharedstatedir='${prefix}/com'
  1164. localstatedir='${prefix}/var'
  1165. includedir='${prefix}/include'
  1166. oldincludedir='/usr/include'
  1167. docdir='${datarootdir}/doc/${PACKAGE}'
  1168. infodir='${datarootdir}/info'
  1169. htmldir='${docdir}'
  1170. dvidir='${docdir}'
  1171. pdfdir='${docdir}'
  1172. psdir='${docdir}'
  1173. libdir='${exec_prefix}/lib'
  1174. localedir='${datarootdir}/locale'
  1175. mandir='${datarootdir}/man'
  1176. ac_prev=
  1177. ac_dashdash=
  1178. for ac_option
  1179. do
  1180. # If the previous option needs an argument, assign it.
  1181. if test -n "$ac_prev"; then
  1182. eval $ac_prev=\$ac_option
  1183. ac_prev=
  1184. continue
  1185. fi
  1186. case $ac_option in
  1187. *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  1188. *) ac_optarg=yes ;;
  1189. esac
  1190. # Accept the important Cygnus configure options, so we can diagnose typos.
  1191. case $ac_dashdash$ac_option in
  1192. --)
  1193. ac_dashdash=yes ;;
  1194. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  1195. ac_prev=bindir ;;
  1196. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  1197. bindir=$ac_optarg ;;
  1198. -build | --build | --buil | --bui | --bu)
  1199. ac_prev=build_alias ;;
  1200. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  1201. build_alias=$ac_optarg ;;
  1202. -cache-file | --cache-file | --cache-fil | --cache-fi \
  1203. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  1204. ac_prev=cache_file ;;
  1205. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  1206. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  1207. cache_file=$ac_optarg ;;
  1208. --config-cache | -C)
  1209. cache_file=config.cache ;;
  1210. -datadir | --datadir | --datadi | --datad)
  1211. ac_prev=datadir ;;
  1212. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  1213. datadir=$ac_optarg ;;
  1214. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  1215. | --dataroo | --dataro | --datar)
  1216. ac_prev=datarootdir ;;
  1217. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  1218. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  1219. datarootdir=$ac_optarg ;;
  1220. -disable-* | --disable-*)
  1221. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  1222. # Reject names that are not valid shell variable names.
  1223. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1224. as_fn_error "invalid feature name: $ac_useropt"
  1225. ac_useropt_orig=$ac_useropt
  1226. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1227. case $ac_user_opts in
  1228. *"
  1229. "enable_$ac_useropt"
  1230. "*) ;;
  1231. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  1232. ac_unrecognized_sep=', ';;
  1233. esac
  1234. eval enable_$ac_useropt=no ;;
  1235. -docdir | --docdir | --docdi | --doc | --do)
  1236. ac_prev=docdir ;;
  1237. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  1238. docdir=$ac_optarg ;;
  1239. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  1240. ac_prev=dvidir ;;
  1241. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  1242. dvidir=$ac_optarg ;;
  1243. -enable-* | --enable-*)
  1244. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  1245. # Reject names that are not valid shell variable names.
  1246. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1247. as_fn_error "invalid feature name: $ac_useropt"
  1248. ac_useropt_orig=$ac_useropt
  1249. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1250. case $ac_user_opts in
  1251. *"
  1252. "enable_$ac_useropt"
  1253. "*) ;;
  1254. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  1255. ac_unrecognized_sep=', ';;
  1256. esac
  1257. eval enable_$ac_useropt=\$ac_optarg ;;
  1258. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  1259. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  1260. | --exec | --exe | --ex)
  1261. ac_prev=exec_prefix ;;
  1262. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  1263. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  1264. | --exec=* | --exe=* | --ex=*)
  1265. exec_prefix=$ac_optarg ;;
  1266. -gas | --gas | --ga | --g)
  1267. # Obsolete; use --with-gas.
  1268. with_gas=yes ;;
  1269. -help | --help | --hel | --he | -h)
  1270. ac_init_help=long ;;
  1271. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  1272. ac_init_help=recursive ;;
  1273. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  1274. ac_init_help=short ;;
  1275. -host | --host | --hos | --ho)
  1276. ac_prev=host_alias ;;
  1277. -host=* | --host=* | --hos=* | --ho=*)
  1278. host_alias=$ac_optarg ;;
  1279. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  1280. ac_prev=htmldir ;;
  1281. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  1282. | --ht=*)
  1283. htmldir=$ac_optarg ;;
  1284. -includedir | --includedir | --includedi | --included | --include \
  1285. | --includ | --inclu | --incl | --inc)
  1286. ac_prev=includedir ;;
  1287. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  1288. | --includ=* | --inclu=* | --incl=* | --inc=*)
  1289. includedir=$ac_optarg ;;
  1290. -infodir | --infodir | --infodi | --infod | --info | --inf)
  1291. ac_prev=infodir ;;
  1292. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  1293. infodir=$ac_optarg ;;
  1294. -libdir | --libdir | --libdi | --libd)
  1295. ac_prev=libdir ;;
  1296. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  1297. libdir=$ac_optarg ;;
  1298. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  1299. | --libexe | --libex | --libe)
  1300. ac_prev=libexecdir ;;
  1301. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  1302. | --libexe=* | --libex=* | --libe=*)
  1303. libexecdir=$ac_optarg ;;
  1304. -localedir | --localedir | --localedi | --localed | --locale)
  1305. ac_prev=localedir ;;
  1306. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  1307. localedir=$ac_optarg ;;
  1308. -localstatedir | --localstatedir | --localstatedi | --localstated \
  1309. | --localstate | --localstat | --localsta | --localst | --locals)
  1310. ac_prev=localstatedir ;;
  1311. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  1312. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  1313. localstatedir=$ac_optarg ;;
  1314. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  1315. ac_prev=mandir ;;
  1316. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  1317. mandir=$ac_optarg ;;
  1318. -nfp | --nfp | --nf)
  1319. # Obsolete; use --without-fp.
  1320. with_fp=no ;;
  1321. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  1322. | --no-cr | --no-c | -n)
  1323. no_create=yes ;;
  1324. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  1325. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  1326. no_recursion=yes ;;
  1327. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  1328. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  1329. | --oldin | --oldi | --old | --ol | --o)
  1330. ac_prev=oldincludedir ;;
  1331. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  1332. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  1333. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  1334. oldincludedir=$ac_optarg ;;
  1335. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  1336. ac_prev=prefix ;;
  1337. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  1338. prefix=$ac_optarg ;;
  1339. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  1340. | --program-pre | --program-pr | --program-p)
  1341. ac_prev=program_prefix ;;
  1342. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  1343. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  1344. program_prefix=$ac_optarg ;;
  1345. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  1346. | --program-suf | --program-su | --program-s)
  1347. ac_prev=program_suffix ;;
  1348. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  1349. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  1350. program_suffix=$ac_optarg ;;
  1351. -program-transform-name | --program-transform-name \
  1352. | --program-transform-nam | --program-transform-na \
  1353. | --program-transform-n | --program-transform- \
  1354. | --program-transform | --program-transfor \
  1355. | --program-transfo | --program-transf \
  1356. | --program-trans | --program-tran \
  1357. | --progr-tra | --program-tr | --program-t)
  1358. ac_prev=program_transform_name ;;
  1359. -program-transform-name=* | --program-transform-name=* \
  1360. | --program-transform-nam=* | --program-transform-na=* \
  1361. | --program-transform-n=* | --program-transform-=* \
  1362. | --program-transform=* | --program-transfor=* \
  1363. | --program-transfo=* | --program-transf=* \
  1364. | --program-trans=* | --program-tran=* \
  1365. | --progr-tra=* | --program-tr=* | --program-t=*)
  1366. program_transform_name=$ac_optarg ;;
  1367. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  1368. ac_prev=pdfdir ;;
  1369. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  1370. pdfdir=$ac_optarg ;;
  1371. -psdir | --psdir | --psdi | --psd | --ps)
  1372. ac_prev=psdir ;;
  1373. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  1374. psdir=$ac_optarg ;;
  1375. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1376. | -silent | --silent | --silen | --sile | --sil)
  1377. silent=yes ;;
  1378. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1379. ac_prev=sbindir ;;
  1380. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1381. | --sbi=* | --sb=*)
  1382. sbindir=$ac_optarg ;;
  1383. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1384. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1385. | --sharedst | --shareds | --shared | --share | --shar \
  1386. | --sha | --sh)
  1387. ac_prev=sharedstatedir ;;
  1388. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1389. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1390. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1391. | --sha=* | --sh=*)
  1392. sharedstatedir=$ac_optarg ;;
  1393. -site | --site | --sit)
  1394. ac_prev=site ;;
  1395. -site=* | --site=* | --sit=*)
  1396. site=$ac_optarg ;;
  1397. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1398. ac_prev=srcdir ;;
  1399. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1400. srcdir=$ac_optarg ;;
  1401. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1402. | --syscon | --sysco | --sysc | --sys | --sy)
  1403. ac_prev=sysconfdir ;;
  1404. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1405. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1406. sysconfdir=$ac_optarg ;;
  1407. -target | --target | --targe | --targ | --tar | --ta | --t)
  1408. ac_prev=target_alias ;;
  1409. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1410. target_alias=$ac_optarg ;;
  1411. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1412. verbose=yes ;;
  1413. -version | --version | --versio | --versi | --vers | -V)
  1414. ac_init_version=: ;;
  1415. -with-* | --with-*)
  1416. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1417. # Reject names that are not valid shell variable names.
  1418. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1419. as_fn_error "invalid package name: $ac_useropt"
  1420. ac_useropt_orig=$ac_useropt
  1421. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1422. case $ac_user_opts in
  1423. *"
  1424. "with_$ac_useropt"
  1425. "*) ;;
  1426. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1427. ac_unrecognized_sep=', ';;
  1428. esac
  1429. eval with_$ac_useropt=\$ac_optarg ;;
  1430. -without-* | --without-*)
  1431. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1432. # Reject names that are not valid shell variable names.
  1433. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1434. as_fn_error "invalid package name: $ac_useropt"
  1435. ac_useropt_orig=$ac_useropt
  1436. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1437. case $ac_user_opts in
  1438. *"
  1439. "with_$ac_useropt"
  1440. "*) ;;
  1441. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1442. ac_unrecognized_sep=', ';;
  1443. esac
  1444. eval with_$ac_useropt=no ;;
  1445. --x)
  1446. # Obsolete; use --with-x.
  1447. with_x=yes ;;
  1448. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1449. | --x-incl | --x-inc | --x-in | --x-i)
  1450. ac_prev=x_includes ;;
  1451. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1452. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1453. x_includes=$ac_optarg ;;
  1454. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1455. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1456. ac_prev=x_libraries ;;
  1457. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1458. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1459. x_libraries=$ac_optarg ;;
  1460. -*) as_fn_error "unrecognized option: \`$ac_option'
  1461. Try \`$0 --help' for more information."
  1462. ;;
  1463. *=*)
  1464. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1465. # Reject names that are not valid shell variable names.
  1466. case $ac_envvar in #(
  1467. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1468. as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  1469. esac
  1470. eval $ac_envvar=\$ac_optarg
  1471. export $ac_envvar ;;
  1472. *)
  1473. # FIXME: should be removed in autoconf 3.0.
  1474. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1475. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1476. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1477. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  1478. ;;
  1479. esac
  1480. done
  1481. if test -n "$ac_prev"; then
  1482. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1483. as_fn_error "missing argument to $ac_option"
  1484. fi
  1485. if test -n "$ac_unrecognized_opts"; then
  1486. case $enable_option_checking in
  1487. no) ;;
  1488. fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  1489. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1490. esac
  1491. fi
  1492. # Check all directory arguments for consistency.
  1493. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1494. datadir sysconfdir sharedstatedir localstatedir includedir \
  1495. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1496. libdir localedir mandir
  1497. do
  1498. eval ac_val=\$$ac_var
  1499. # Remove trailing slashes.
  1500. case $ac_val in
  1501. */ )
  1502. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1503. eval $ac_var=\$ac_val;;
  1504. esac
  1505. # Be sure to have absolute directory names.
  1506. case $ac_val in
  1507. [\\/$]* | ?:[\\/]* ) continue;;
  1508. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1509. esac
  1510. as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  1511. done
  1512. # There might be people who depend on the old broken behavior: `$host'
  1513. # used to hold the argument of --host etc.
  1514. # FIXME: To remove some day.
  1515. build=$build_alias
  1516. host=$host_alias
  1517. target=$target_alias
  1518. # FIXME: To remove some day.
  1519. if test "x$host_alias" != x; then
  1520. if test "x$build_alias" = x; then
  1521. cross_compiling=maybe
  1522. $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  1523. If a cross compiler is detected then cross compile mode will be used." >&2
  1524. elif test "x$build_alias" != "x$host_alias"; then
  1525. cross_compiling=yes
  1526. fi
  1527. fi
  1528. ac_tool_prefix=
  1529. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1530. test "$silent" = yes && exec 6>/dev/null
  1531. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1532. ac_ls_di=`ls -di .` &&
  1533. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1534. as_fn_error "working directory cannot be determined"
  1535. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1536. as_fn_error "pwd does not report name of working directory"
  1537. # Find the source files, if location was not specified.
  1538. if test -z "$srcdir"; then
  1539. ac_srcdir_defaulted=yes
  1540. # Try the directory containing this script, then the parent directory.
  1541. ac_confdir=`$as_dirname -- "$as_myself" ||
  1542. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1543. X"$as_myself" : 'X\(//\)[^/]' \| \
  1544. X"$as_myself" : 'X\(//\)$' \| \
  1545. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1546. $as_echo X"$as_myself" |
  1547. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1548. s//\1/
  1549. q
  1550. }
  1551. /^X\(\/\/\)[^/].*/{
  1552. s//\1/
  1553. q
  1554. }
  1555. /^X\(\/\/\)$/{
  1556. s//\1/
  1557. q
  1558. }
  1559. /^X\(\/\).*/{
  1560. s//\1/
  1561. q
  1562. }
  1563. s/.*/./; q'`
  1564. srcdir=$ac_confdir
  1565. if test ! -r "$srcdir/$ac_unique_file"; then
  1566. srcdir=..
  1567. fi
  1568. else
  1569. ac_srcdir_defaulted=no
  1570. fi
  1571. if test ! -r "$srcdir/$ac_unique_file"; then
  1572. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1573. as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  1574. fi
  1575. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1576. ac_abs_confdir=`(
  1577. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  1578. pwd)`
  1579. # When building in place, set srcdir=.
  1580. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1581. srcdir=.
  1582. fi
  1583. # Remove unnecessary trailing slashes from srcdir.
  1584. # Double slashes in file names in object file debugging info
  1585. # mess up M-x gdb in Emacs.
  1586. case $srcdir in
  1587. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1588. esac
  1589. for ac_var in $ac_precious_vars; do
  1590. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1591. eval ac_env_${ac_var}_value=\$${ac_var}
  1592. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1593. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1594. done
  1595. #
  1596. # Report the --help message.
  1597. #
  1598. if test "$ac_init_help" = "long"; then
  1599. # Omit some internal or obsolete options to make the list less imposing.
  1600. # This message is too long to be a string in the A/UX 3.1 sh.
  1601. cat <<_ACEOF
  1602. \`configure' configures this package to adapt to many kinds of systems.
  1603. Usage: $0 [OPTION]... [VAR=VALUE]...
  1604. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1605. VAR=VALUE. See below for descriptions of some of the useful variables.
  1606. Defaults for the options are specified in brackets.
  1607. Configuration:
  1608. -h, --help display this help and exit
  1609. --help=short display options specific to this package
  1610. --help=recursive display the short help of all the included packages
  1611. -V, --version display version information and exit
  1612. -q, --quiet, --silent do not print \`checking...' messages
  1613. --cache-file=FILE cache test results in FILE [disabled]
  1614. -C, --config-cache alias for \`--cache-file=config.cache'
  1615. -n, --no-create do not create output files
  1616. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1617. Installation directories:
  1618. --prefix=PREFIX install architecture-independent files in PREFIX
  1619. [$ac_default_prefix]
  1620. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1621. [PREFIX]
  1622. By default, \`make install' will install all the files in
  1623. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1624. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1625. for instance \`--prefix=\$HOME'.
  1626. For better control, use the options below.
  1627. Fine tuning of the installation directories:
  1628. --bindir=DIR user executables [EPREFIX/bin]
  1629. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1630. --libexecdir=DIR program executables [EPREFIX/libexec]
  1631. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1632. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1633. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1634. --libdir=DIR object code libraries [EPREFIX/lib]
  1635. --includedir=DIR C header files [PREFIX/include]
  1636. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1637. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1638. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1639. --infodir=DIR info documentation [DATAROOTDIR/info]
  1640. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1641. --mandir=DIR man documentation [DATAROOTDIR/man]
  1642. --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
  1643. --htmldir=DIR html documentation [DOCDIR]
  1644. --dvidir=DIR dvi documentation [DOCDIR]
  1645. --pdfdir=DIR pdf documentation [DOCDIR]
  1646. --psdir=DIR ps documentation [DOCDIR]
  1647. _ACEOF
  1648. cat <<\_ACEOF
  1649. X features:
  1650. --x-includes=DIR X include files are in DIR
  1651. --x-libraries=DIR X library files are in DIR
  1652. System types:
  1653. --build=BUILD configure for building on BUILD [guessed]
  1654. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1655. --target=TARGET configure for building compilers for TARGET [HOST]
  1656. _ACEOF
  1657. fi
  1658. if test -n "$ac_init_help"; then
  1659. cat <<\_ACEOF
  1660. Optional Features:
  1661. --disable-option-checking ignore unrecognized --enable/--with options
  1662. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1663. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1664. --enable-graphite Enables the compilation of Graphite smart font rendering
  1665. --disable-ldap Disables the use of LDAP backend via Netscape/Mozilla
  1666. or OpenLDAP LDAP SDK
  1667. --enable-lockdown Enables the gconf integration work in OOo
  1668. --disable-vba disables the vba compatibility feature
  1669. --enable-pch EXPERIMENTAL: Enables precompiled header support for C++.
  1670. --enable-hids Enables generation of HelpId lists.
  1671. --disable-mozilla OO.o usually includes a strangely hacked up mozilla
  1672. binary for your platform, to build without this
  1673. version, use this option.
  1674. --disable-epm OO.o includes self-packaging code, that requires
  1675. epm, however epm is useless for large scale
  1676. package building.
  1677. --disable-odk OO.o includes an ODK, office development kit
  1678. which some packagers may with to build without
  1679. --disable-qadevooo OO.o includes some qa testsuites which some
  1680. packagers may wish to build without
  1681. --disable-mathmldtd disable mathmldtd
  1682. (useful for distributions that want to avoid packaging
  1683. it)
  1684. --enable-evolution2 Allows the built-in evolution 2 addressbook
  1685. connectivity build to be enabled.
  1686. --disable-cups disable cups support in the psprint project
  1687. --disable-fontconfig disable support for the fontconfig library
  1688. --disable-directx Remove DirectX implementation for the new XCanvas
  1689. interface. The DirectX support requires more stuff
  1690. installed on Windows to compile.
  1691. (DirectX SDK, GDI+ libs)
  1692. --disable-activex Disable the use of ActiveX for windows build.
  1693. This switch is mandatory when using VC++ 2005/2008 Express.
  1694. --disable-atl Disable the use of ATL for windows build.
  1695. This switch is mandatory when using VC++ 2005/2008 Express.
  1696. --enable-symbols Include debugging symbols in output.
  1697. WARNING - a complete build needs 8 Gb of space and
  1698. takes much longer. (enables -g compiler flag)
  1699. --enable-symbols=SMALL sets the gcc -g1 setting
  1700. which is smaller.
  1701. Enabling symbols disables the stripping of the solver
  1702. (--disable-strip-solver).
  1703. --disable-strip-solver Disable the stripping of the solver.
  1704. By default the solver is stripped unless a build with
  1705. debugging symbols (--enable-symbols) is requested.
  1706. This switch allows to override this setting.
  1707. --enable-werror Turn warnings to errors. (Has no effect in modules
  1708. where the treating of warnings as errors is disabled
  1709. explicitely)
  1710. --enable-debug Include debugging symbols from --enable-symbols
  1711. plus extra debugging code. Extra large build!
  1712. (enables -g compiler flag and dmake debug=true)
  1713. --enable-dbgutil Include additional debugging utilities, such as
  1714. assertions, object counting, etc. Larger build.
  1715. Independent from --enable-debug
  1716. --enable-crashdump Enable the crashdump feature code.
  1717. --enable-cl-standard For Microsoft C/C++ compiler users, use non-optimizing
  1718. standard compiler. ( This just disavles optimization
  1719. options and therefore removes a lot of warnings when
  1720. using the cheaper standard compiler. )
  1721. --disable-gtk Determines whether to use Gtk+ vclplug on platforms
  1722. where Gtk+ is available.
  1723. --disable-systray Determines whether to build the systray quickstarter.
  1724. --enable-cairo Determines whether to use Cairo library on
  1725. platforms where Cairo is available.
  1726. --enable-opengl Determines whether to build the OpenGL 3D slide
  1727. transitions component
  1728. --enable-dbus Determines whether to enable presentation mode
  1729. screensaver control under GNOME via DBUS
  1730. --disable-gconf Determines whether to use the GConf support
  1731. --disable-gnome-vfs Determines whether to use the Gnome Virtual Filing
  1732. System on platforms where that VFS is available
  1733. --enable-gio Determines whether to use the GIO support
  1734. --enable-static-gtk Modules that are linked against gtk libraries use
  1735. the static libraries instead of the dynamic ones.
  1736. (enables -Bstatic linker flag for gtk libraries)
  1737. --enable-layout Enable the compilation and use of layout dialogs
  1738. --disable-build-mozilla Use this option if you do not want to build the
  1739. mozilla components from the mozilla source code but
  1740. take precompiled zips
  1741. --disable-nss-module Whether to use provided NSS module
  1742. --enable-kde Determines whether to use Qt/KDE vclplug on platforms
  1743. where Qt and KDE are available.
  1744. --disable-kdeab Disable the KDE address book support
  1745. --enable-kde4 Determines whether to use Qt4/KDE4 vclplug on platforms
  1746. where Qt4 and KDE4 are available. May be used with --enable-kde
  1747. if you want to support both KDE3 and KDE4.
  1748. --disable-binfilter Disable legacy binary file formats filters
  1749. --disable-rpath Disable the use of relative paths in shared libraries
  1750. --disable-pam Disable pam support.
  1751. --enable-pam-link link with libpam instead of dynamically open it
  1752. --disable-crypt-link disable linking with libcrypt instead of dynamically
  1753. open it (needed for ancient GNU/Linux distributions
  1754. without crypt()/libcrypt)
  1755. --enable-xrender-link link with libXrender instead of dynamically open it
  1756. --disable-randr disable RandR support in the vcl project
  1757. --disable-randr-link disable linking with libXrandr, instead dynamically
  1758. open it at runtime
  1759. --enable-mysql-connector enables the build of the MySQL Connector/OOo extension.
  1760. This requires access to the MySQL Connector/C (aka libmysql) to be given, too, with
  1761. either the --with-system-mysql or --with-libmysql-path option.
  1762. --enable-presenter-extra-ui enables extra functionality during slideshow,
  1763. e.g. selecting pen color, erasing drawings etc.
  1764. --enable-minimizer enables the build of the Presentation Minimizer extension
  1765. --enable-presenter-console enables the build of the Presenter Console extension
  1766. --enable-pdfimport enables the build of the PDF Import extension and xpdf
  1767. --enable-wiki-publisher enables the build of the Wiki Publisher extension
  1768. --enable-report-builder enables the build of the Report Builder extension
  1769. --disable-neon Disable neon and the compilation of webdav binding
  1770. --disable-Xaw Disables the use of Xaw for the Netscape/Mozilla
  1771. plugin
  1772. --enable-gcjaot Build with[out] using Ahead of Time java compilation
  1773. support to speed up buildsi by compiling the jars also
  1774. to native code..
  1775. --enable-gcjaot is only known to work with bytecode
  1776. created with gcj or ecj
  1777. --enable-check-only Use this option option if you just want to check your
  1778. environment. This option stops the generation of an
  1779. ????env.set
  1780. Usage: --enable-check-only=yes
  1781. --enable-ccache-skip [default=auto] allow the use of --ccache-skip to
  1782. escape compiler flags that would otherwise prevent
  1783. caching of the result (currently used on Mac only)
  1784. NOTE: requires patched version because of a bug in
  1785. ccache (see issue 104567 for details and patch)
  1786. explicitly enable if your version of ccache doesn't
  1787. identify as version 2.4_OOo
  1788. --enable-verbose Increase build verbosity.
  1789. --disable-verbose Decrease build verbosity.
  1790. --disable-largefile omit support for large files
  1791. Optional Packages:
  1792. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1793. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1794. --with-gnu-patch Specify location of GNU patch on Solaris or FreeBSD
  1795. --without-agg Disable the use of agg altogether
  1796. --with-gnu-cp Specify location of GNU cp on Solaris or FreeBSD
  1797. --with-system-graphite use graphite library already installed on system
  1798. --with-openldap Enables the use of the OpenLDAP LDAP SDK instead
  1799. of the Netscape/Mozilla one
  1800. --with-vba-package-format specify package format for vba compatibility api.
  1801. Specifying "builtin" means the api component and
  1802. associated type library are part of the installation set.
  1803. Specifying "extn" creates an uno extension that is
  1804. part of the installation set ( located in the program
  1805. directory ) that MUST be optionly registered using
  1806. either the unopkg executeable or the extension manager
  1807. gui.
  1808. Note: "builtin" is the default, "extn" can cause
  1809. problems.
  1810. Usage: --with-vba-package-format="builtin" or
  1811. --with-vba-package-format="extn"
  1812. --without-fonts OOo includes some third-party fonts to provide a reliable
  1813. basis for help content, templates, samples, etc.
  1814. When these fonts are already known to be available on the
  1815. system then you should use this option.
  1816. --without-ppds Removes Postscript Printer definition files from
  1817. openoffice.org installation set, for people building
  1818. for specific distributions where PPDs are known to be
  1819. already available (every recent distro with CUPS
  1820. backend)
  1821. --without-afms Removes bitmap font files from openoffice.org
  1822. installation set, for people building for specific
  1823. distributions where AFM files or TrueType Fonts
  1824. are known to be available.
  1825. --with-epm Decides which epm to use. Default is to use
  1826. the one from the system if one is built. When
  1827. either this is not there or you say =internal
  1828. epm will be built.
  1829. --with-package-format specify package format(s) for OOo installsets.
  1830. Default is "normal" one of the OS/Distribution.
  1831. Usage: --with-package-format="foo bar"
  1832. --with-system-stdlibs use libstdc++/libgcc_s already on system
  1833. --with-system-cairo Use Cairo libraries already on system
  1834. --with-mozilla-version Choose which version of mozilla to use while building
  1835. mozilla. Default: 1.7.5.
  1836. Note that not all versions are supported.
  1837. --with-mozilla-toolkit Choose which GUI toolkit to use while building mozilla
  1838. components. Default: gtk2
  1839. --without-myspell-dicts Removes myspell dictionaries from openoffice.org
  1840. installation set, for people building for specific
  1841. distributions where the myspell dictionaries are
  1842. installed from other sources
  1843. --with-system-dicts Use dictionaries from system paths- Specify
  1844. them via --with-{dict,hyph,thes}-path=/path
  1845. if you want to override the default ones
  1846. --with-external-dict-dir Specify external dictionary dir
  1847. --with-external-hyph-dir Specify external hyphenation pattern dir
  1848. --with-external-thes-dir Specify external thesaurus dir
  1849. --with-system-libs Use libs already on system -- enables all
  1850. --with-system-* flags except mozilla and
  1851. odbc/sane/xrender-header(s)
  1852. --with-system-headers Use headers already on system -- enables all
  1853. --with-system-* flags for external packages
  1854. whose headers are the only entities used i.e.
  1855. boost/vigra/odbc/sane/xrender-header(s)
  1856. --without-system-jars When building with --with-system-libs, also the
  1857. needed jars are expected on the system. Use this to
  1858. disable that.
  1859. (except for the db case where --with-system-db
  1860. *has to* imply using the db.jar from there, too)
  1861. --with-system-zlib Use zlib already on system
  1862. --with-system-openssl Use OpenSSL already on system
  1863. --with-system-jpeg Use jpeg already on system
  1864. --with-system-expat Use expat already on system
  1865. --with-system-libwpd Use libwpd already on system
  1866. --with-system-libxml Use libxml already on system
  1867. --with-system-python Use python already on system
  1868. --with-system-icu Use icu already on system
  1869. --with-system-poppler Use poppler already on system
  1870. --with-system-db Use berkeley db already on system
  1871. --with-system-lucene Use lucene already on system
  1872. --with-lucene-core-jar=JARFILE Specify path to jarfile manually
  1873. --with-lucene-analyzers-jar=JARFILE Specify path to jarfile manually
  1874. --with-system-mysql Use MySQL libraries already on system, for building the MySQL Connector/OOo extension.
  1875. Requires MYSQLCONFIG to point to the mysql_config executable.
  1876. --with-libmysql-path Use Connector/C (libmysql) installation for building the MySQL Connector/OOo extension.
  1877. Usage: --with-libmysql-path=<absolute path to your Connector/C installation>
  1878. --with-system-mysql-cppconn Use MySQL C++ Connector libraries already on system
  1879. --with-system-hsqldb Use hsqldb already on system
  1880. --with-hsqldb-jar=JARFILE Specify path to jarfile manually
  1881. --with-system-beanshell Use beanshell already on system
  1882. --with-beanshell-jar=JARFILE Specify path to jarfile manually
  1883. --with-commons-codec-jar=JARFILE Specify path to jarfile manually
  1884. --with-commons-lang-jar=JARFILE Specify path to jarfile manually
  1885. --with-commons-httpclient-jar=JARFILE Specify path to jarfile manually
  1886. --with-commons-logging-jar=JARFILE Specify path to jarfile manually
  1887. --servlet-api-jar=JARFILE Specify path to jarfile manually
  1888. --with-system-jfreereport Use JFreeReport already on system
  1889. --with-sac-jar=JARFILE Specify path to jarfile manually
  1890. --with-libxml-jar=JARFILE Specify path to jarfile manually
  1891. --with-flute-jar=JARFILE Specify path to jarfile manually
  1892. --with-jfreereport-jar=JARFILE Specify path to jarfile manually
  1893. --with-liblayout-jar=JARFILE Specify path to jarfile manually
  1894. --with-libloader-jar=JARFILE Specify path to jarfile manually
  1895. --with-libformula-jar=JARFILE Specify path to jarfile manually
  1896. --with-librepository-jar=JARFILE Specify path to jarfile manually
  1897. --with-libfonts-jar=JARFILE Specify path to jarfile manually
  1898. --with-libserializer-jar=JARFILE Specify path to jarfile manually
  1899. --with-libbase-jar=JARFILE Specify path to jarfile manually
  1900. --with-system-saxon Use saxon already on system
  1901. --with-saxon-jar=JARFILE Specify path to jarfile manually
  1902. --with-system-libxslt Use libxslt already on system
  1903. --with-system-odbc-headers Use the odbc headers already on system
  1904. --with-system-sane-header Use sane.h already on system
  1905. --with-system-xrender-headers Use XRender headers already on system
  1906. --with-system-curl Use curl already on system
  1907. --with-system-boost Use boost already on system
  1908. --with-system-vigra Use vigra already on system
  1909. --with-system-neon Use neon already on system
  1910. --with-system-agg Use AGG already on system
  1911. --with-system-hunspell Use libhunspell already on system
  1912. --with-system-mythes Use mythes already on system
  1913. --with-system-altlinuxhyph Use ALTLinuxhyph already on system
  1914. --with-system-lpsolve Use lpsolve already on system
  1915. --with-system-mozilla Use mozilla already on system. Note that some
  1916. components cannot be built against a contemporary
  1917. mozilla. The flavour used can be specified by
  1918. --with-system-mozilla=<flavour>. Supported are:
  1919. libxul (default), xulrunner, firefox, seamonkey,
  1920. mozilla
  1921. --with-stlport The location that STLport is installed in. The STL
  1922. header files are assumed to be in
  1923. stlport-home/stlport and the STLPort library in
  1924. stlport-home/lib.
  1925. Usage: --with-stlport=<absolute path to stlport home>
  1926. Warning!!, disabling using --without-stlport or
  1927. enabling using --with-stlport on a platform that
  1928. defaults to the opposite will break ABI compatability
  1929. --with-jdk-home if you have installed JDK 1.3 or later on your system
  1930. please supply the path here.
  1931. Note that this is not the location of the Java binary
  1932. but the location of the entire distribution.
  1933. Usage: --with-jdk-home=<absolute path to JDK home>
  1934. --with-gxx-include-path if you want to override the autodetected g++ include
  1935. path.
  1936. Usage: --with-gxx-include-path=<absolute path to g++ include dir>
  1937. --with-java Build with[out] Java support. If you use
  1938. --without-java/--with-java=no then the build will have
  1939. no support for Java components, applets, accessibility
  1940. or XML filters.
  1941. --with-ant-home If you have installed Jakarta Ant on your system,
  1942. please supply the path here.
  1943. Note that this is not the location of the Ant binary
  1944. but the location of the entire distribution.
  1945. Usage: --with-ant-home=<absolute path to Ant home>
  1946. --with-perl-home If you have installed the Perl 5 Distribution, on your
  1947. system, please supply the path here.
  1948. Note that this is not the location of the Perl binary
  1949. but the location of the entire distribution.
  1950. Usage: --with-perl-home=<absolute path to Perl 5 home>
  1951. --with-cl-home For Windows NT users, please supply the path
  1952. for the Microsoft C/C++ compiler.
  1953. Note that this is not the location of the compiler
  1954. binary but the location of the entire distribution.
  1955. Usage: --with-cl-home=<absolute path to Microsoft C/C++ compiler home>
  1956. --with-mspdb-path For Microsoft C/C++ compiler users, please supply the
  1957. path pointing to the mspdb71.dll (.NET 2003).
  1958. Usage: --with-mspdb-path=<absolute path to mspdb71.dll>
  1959. --with-midl-path For Microsoft C/C++ .NET compiler users, please supply
  1960. the path pointing to the midl.exe.
  1961. Usage: --with-midl-path=<absolute path to midl.exe>
  1962. --with-csc-path For Microsoft C/C++ .NET compiler users, please supply
  1963. the path pointing to the csc.exe.
  1964. Usage: --with-csc-path=<absolute path to csc.exe>
  1965. --with-nsis-path For Windows users, please supply the path to the
  1966. "Nullsoft Scriptable Install System" (NSIS). If NSIS
  1967. is found in the path or this option is supplied a self
  1968. contained executable installer for OpenOffice.org will
  1969. be created.
  1970. Usage: --with-nsis-path=<absolute path to nsis.exe>
  1971. --with-frame-home For Microsoft C/C++ .NET compiler users, please supply
  1972. the path pointing to lib/mscoree.lib, usually
  1973. something like:
  1974. "/cygdrive/c/Program Files/Microsoft Visual Studio .NET/FrameworkSDK"
  1975. MS Visual Toolkit compiler users, please supply the
  1976. path pointing to lib/msvcrt.lib, usually something
  1977. like:
  1978. "/cygdrive/c/Program Files/Microsoft Visual Studio .NET 2003/Vc7"
  1979. Usage: --with-frame-home=<absolute path to Framework SDK [home]>
  1980. --with-psdk-home For Windows users, please supply the path to the
  1981. Microsoft Platform SDK.
  1982. Usage: --with-psdk-home=<absolute path to Microsoft Platform SDK>
  1983. --with-directx-home For Windows users, please supply the path to the
  1984. Microsoft DirectX SDK.
  1985. Usage: --with-directx-home=<absolute path to Microsoft DirectX SDK>
  1986. --with-mozilla-build For Windows users, please supply the path to the
  1987. mozilla build tools.
  1988. Usage: --with-mozilla-build=<absolute path to mozilla build tools>
  1989. At the moment of this writing, an installer for the mozilla build tools
  1990. can be obtained from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32.
  1991. --with-local-solenv If you have solenv in a location other than ./solenv,
  1992. please supply the path here.
  1993. Usage: --with-local-solenv=<absolute path to solenv>
  1994. --with-local-solver if you have solver in a location other than ./solver,
  1995. please supply the path here.
  1996. Usage: --with-local-solver=<absolute path to solver>
  1997. --with-lang Use this option to build OpenOffice.org with
  1998. additional language support. English (US) is always
  1999. included by default. Separate multiple languages with
  2000. space. For all languages, use --with-lang=ALL.
  2001. Usage: --with-lang="es sw tu cs sk"
  2002. --with-poor-help-localizations
  2003. Use this option to specify which languages have
  2004. unusable help localizations. Separate multiple
  2005. languages with space.
  2006. Usage: --with-poor-help-localizations="af ar be-BY ca"
  2007. --with-dict Use this option to build OpenOffice.org with
  2008. dictionary support. ALL dictionaries are always
  2009. included by default unless overridden with
  2010. this option. Separate multiple dictionaries with
  2011. commas. For all dictionaries, use --with-dict=ALL.
  2012. Usage: --with-dict=ENGB,ENUS,ITIT
  2013. --with-intro-bitmaps Prefer the specified intro bitmaps over the
  2014. the default one. Can be more than one (separated by
  2015. commas), the order means priority of fallback if the
  2016. first does not exist (in the installed tree).
  2017. Usage: --with-intro-bitmaps=/path/my_ooo_intro.bmp
  2018. --with-about-bitmaps Similarly to --with-intro-bitmaps, this allows
  2019. specification of bitmaps for the About box.
  2020. Usage: --with-about-bitmaps=/path/my_ooo_about.bmp
  2021. --with-vendor Set vendor of the build.
  2022. Usage: --with-vendor="John the Builder"
  2023. --with-unix-wrapper Redefines the name of the UNIX wrapper that will be used
  2024. in the desktop files and in the desktop-integration RPMs.
  2025. Usage: --with-unix-wrapper=ooffice
  2026. --with-asm-home For Windows users, please supply the path for the
  2027. ml.exe assembler.
  2028. Usage: --with-asm-home=<path to ml.exe directory>
  2029. --with-os-version For FreeBSD users, use this option option to override
  2030. the detected OSVERSION.
  2031. Usage: --with-os-version=<OSVERSION>
  2032. --with-unzip-home Deprecated: use --with-zip-home instead
  2033. --with-zip-home If you use a non standard zip, for example windows
  2034. please supply the path for zip
  2035. Usage: --with-zip-home=<path to zip executable>
  2036. --with-mingwin For Windows users, use the mingwin32 compiler within
  2037. cygwin environment, this implies --with-use-shell=tcsh
  2038. Usage: --with-mingwin=yes
  2039. For !Windows use, use the mingw32 C++ compiler to
  2040. (re-) build unowinreg.dll. Specify the MinGW C++
  2041. Compilers name.
  2042. Usage: --with-mingwin=i586-mingw32msvc-g++
  2043. --with-use-shell Use this option to override the default shell to be
  2044. used for the build environment.
  2045. Supported options:
  2046. tcsh (default)
  2047. bash
  2048. Usage: --with-use-shell=tcsh|bash
  2049. --with-build-version Allows the builder to add a custom version tag
  2050. that will appear in the Help/About box for QA
  2051. purposes.
  2052. Usage: --with-build-version="Built by Jim"
  2053. --with-alloc Define which allocator to build with
  2054. (choices are oo, system, tcmalloc)
  2055. --with-x use the X Window System
  2056. Some influential environment variables:
  2057. CC C compiler command
  2058. CFLAGS C compiler flags
  2059. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  2060. nonstandard directory <lib dir>
  2061. LIBS libraries to pass to the linker, e.g. -l<library>
  2062. CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
  2063. you have headers in a nonstandard directory <include dir>
  2064. CPP C preprocessor
  2065. CXX C++ compiler command
  2066. CXXFLAGS C++ compiler flags
  2067. CXXCPP C++ preprocessor
  2068. XMKMF Path to xmkmf, Makefile generator for X Window System
  2069. Use these variables to override the choices made by `configure' or to help
  2070. it to find libraries and programs with nonstandard names/locations.
  2071. Report bugs to the package provider.
  2072. _ACEOF
  2073. ac_status=$?
  2074. fi
  2075. if test "$ac_init_help" = "recursive"; then
  2076. # If there are subdirs, report their specific --help.
  2077. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  2078. test -d "$ac_dir" ||
  2079. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  2080. continue
  2081. ac_builddir=.
  2082. case "$ac_dir" in
  2083. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2084. *)
  2085. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  2086. # A ".." for each directory in $ac_dir_suffix.
  2087. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  2088. case $ac_top_builddir_sub in
  2089. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  2090. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  2091. esac ;;
  2092. esac
  2093. ac_abs_top_builddir=$ac_pwd
  2094. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  2095. # for backward compatibility:
  2096. ac_top_builddir=$ac_top_build_prefix
  2097. case $srcdir in
  2098. .) # We are building in place.
  2099. ac_srcdir=.
  2100. ac_top_srcdir=$ac_top_builddir_sub
  2101. ac_abs_top_srcdir=$ac_pwd ;;
  2102. [\\/]* | ?:[\\/]* ) # Absolute name.
  2103. ac_srcdir=$srcdir$ac_dir_suffix;
  2104. ac_top_srcdir=$srcdir
  2105. ac_abs_top_srcdir=$srcdir ;;
  2106. *) # Relative name.
  2107. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  2108. ac_top_srcdir=$ac_top_build_prefix$srcdir
  2109. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  2110. esac
  2111. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  2112. cd "$ac_dir" || { ac_status=$?; continue; }
  2113. # Check for guested configure.
  2114. if test -f "$ac_srcdir/configure.gnu"; then
  2115. echo &&
  2116. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  2117. elif test -f "$ac_srcdir/configure"; then
  2118. echo &&
  2119. $SHELL "$ac_srcdir/configure" --help=recursive
  2120. else
  2121. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  2122. fi || ac_status=$?
  2123. cd "$ac_pwd" || { ac_status=$?; break; }
  2124. done
  2125. fi
  2126. test -n "$ac_init_help" && exit $ac_status
  2127. if $ac_init_version; then
  2128. cat <<\_ACEOF
  2129. configure
  2130. generated by GNU Autoconf 2.64
  2131. Copyright (C) 2009 Free Software Foundation, Inc.
  2132. This configure script is free software; the Free Software Foundation
  2133. gives unlimited permission to copy, distribute and modify it.
  2134. _ACEOF
  2135. exit
  2136. fi
  2137. ## ------------------------ ##
  2138. ## Autoconf initialization. ##
  2139. ## ------------------------ ##
  2140. # ac_fn_c_try_compile LINENO
  2141. # --------------------------
  2142. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2143. ac_fn_c_try_compile ()
  2144. {
  2145. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2146. rm -f conftest.$ac_objext
  2147. if { { ac_try="$ac_compile"
  2148. case "(($ac_try" in
  2149. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2150. *) ac_try_echo=$ac_try;;
  2151. esac
  2152. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2153. $as_echo "$ac_try_echo"; } >&5
  2154. (eval "$ac_compile") 2>conftest.err
  2155. ac_status=$?
  2156. if test -s conftest.err; then
  2157. grep -v '^ *+' conftest.err >conftest.er1
  2158. cat conftest.er1 >&5
  2159. mv -f conftest.er1 conftest.err
  2160. fi
  2161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2162. test $ac_status = 0; } && {
  2163. test -z "$ac_c_werror_flag" ||
  2164. test ! -s conftest.err
  2165. } && test -s conftest.$ac_objext; then :
  2166. ac_retval=0
  2167. else
  2168. $as_echo "$as_me: failed program was:" >&5
  2169. sed 's/^/| /' conftest.$ac_ext >&5
  2170. ac_retval=1
  2171. fi
  2172. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2173. return $ac_retval
  2174. } # ac_fn_c_try_compile
  2175. # ac_fn_c_try_link LINENO
  2176. # -----------------------
  2177. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2178. ac_fn_c_try_link ()
  2179. {
  2180. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2181. rm -f conftest.$ac_objext conftest$ac_exeext
  2182. if { { ac_try="$ac_link"
  2183. case "(($ac_try" in
  2184. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2185. *) ac_try_echo=$ac_try;;
  2186. esac
  2187. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2188. $as_echo "$ac_try_echo"; } >&5
  2189. (eval "$ac_link") 2>conftest.err
  2190. ac_status=$?
  2191. if test -s conftest.err; then
  2192. grep -v '^ *+' conftest.err >conftest.er1
  2193. cat conftest.er1 >&5
  2194. mv -f conftest.er1 conftest.err
  2195. fi
  2196. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2197. test $ac_status = 0; } && {
  2198. test -z "$ac_c_werror_flag" ||
  2199. test ! -s conftest.err
  2200. } && test -s conftest$ac_exeext && {
  2201. test "$cross_compiling" = yes ||
  2202. $as_test_x conftest$ac_exeext
  2203. }; then :
  2204. ac_retval=0
  2205. else
  2206. $as_echo "$as_me: failed program was:" >&5
  2207. sed 's/^/| /' conftest.$ac_ext >&5
  2208. ac_retval=1
  2209. fi
  2210. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2211. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2212. # interfere with the next link command; also delete a directory that is
  2213. # left behind by Apple's compiler. We do this before executing the actions.
  2214. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2215. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2216. return $ac_retval
  2217. } # ac_fn_c_try_link
  2218. # ac_fn_c_try_cpp LINENO
  2219. # ----------------------
  2220. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2221. ac_fn_c_try_cpp ()
  2222. {
  2223. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2224. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2225. case "(($ac_try" in
  2226. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2227. *) ac_try_echo=$ac_try;;
  2228. esac
  2229. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2230. $as_echo "$ac_try_echo"; } >&5
  2231. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2232. ac_status=$?
  2233. if test -s conftest.err; then
  2234. grep -v '^ *+' conftest.err >conftest.er1
  2235. cat conftest.er1 >&5
  2236. mv -f conftest.er1 conftest.err
  2237. fi
  2238. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2239. test $ac_status = 0; } >/dev/null && {
  2240. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  2241. test ! -s conftest.err
  2242. }; then :
  2243. ac_retval=0
  2244. else
  2245. $as_echo "$as_me: failed program was:" >&5
  2246. sed 's/^/| /' conftest.$ac_ext >&5
  2247. ac_retval=1
  2248. fi
  2249. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2250. return $ac_retval
  2251. } # ac_fn_c_try_cpp
  2252. # ac_fn_c_try_run LINENO
  2253. # ----------------------
  2254. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2255. # that executables *can* be run.
  2256. ac_fn_c_try_run ()
  2257. {
  2258. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2259. if { { ac_try="$ac_link"
  2260. case "(($ac_try" in
  2261. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2262. *) ac_try_echo=$ac_try;;
  2263. esac
  2264. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2265. $as_echo "$ac_try_echo"; } >&5
  2266. (eval "$ac_link") 2>&5
  2267. ac_status=$?
  2268. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2269. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2270. { { case "(($ac_try" in
  2271. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2272. *) ac_try_echo=$ac_try;;
  2273. esac
  2274. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2275. $as_echo "$ac_try_echo"; } >&5
  2276. (eval "$ac_try") 2>&5
  2277. ac_status=$?
  2278. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2279. test $ac_status = 0; }; }; then :
  2280. ac_retval=0
  2281. else
  2282. $as_echo "$as_me: program exited with status $ac_status" >&5
  2283. $as_echo "$as_me: failed program was:" >&5
  2284. sed 's/^/| /' conftest.$ac_ext >&5
  2285. ac_retval=$ac_status
  2286. fi
  2287. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2288. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2289. return $ac_retval
  2290. } # ac_fn_c_try_run
  2291. # ac_fn_cxx_try_compile LINENO
  2292. # ----------------------------
  2293. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  2294. ac_fn_cxx_try_compile ()
  2295. {
  2296. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2297. rm -f conftest.$ac_objext
  2298. if { { ac_try="$ac_compile"
  2299. case "(($ac_try" in
  2300. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2301. *) ac_try_echo=$ac_try;;
  2302. esac
  2303. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2304. $as_echo "$ac_try_echo"; } >&5
  2305. (eval "$ac_compile") 2>conftest.err
  2306. ac_status=$?
  2307. if test -s conftest.err; then
  2308. grep -v '^ *+' conftest.err >conftest.er1
  2309. cat conftest.er1 >&5
  2310. mv -f conftest.er1 conftest.err
  2311. fi
  2312. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2313. test $ac_status = 0; } && {
  2314. test -z "$ac_cxx_werror_flag" ||
  2315. test ! -s conftest.err
  2316. } && test -s conftest.$ac_objext; then :
  2317. ac_retval=0
  2318. else
  2319. $as_echo "$as_me: failed program was:" >&5
  2320. sed 's/^/| /' conftest.$ac_ext >&5
  2321. ac_retval=1
  2322. fi
  2323. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2324. return $ac_retval
  2325. } # ac_fn_cxx_try_compile
  2326. # ac_fn_cxx_try_cpp LINENO
  2327. # ------------------------
  2328. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  2329. ac_fn_cxx_try_cpp ()
  2330. {
  2331. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2332. if { { ac_try="$ac_cpp conftest.$ac_ext"
  2333. case "(($ac_try" in
  2334. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2335. *) ac_try_echo=$ac_try;;
  2336. esac
  2337. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2338. $as_echo "$ac_try_echo"; } >&5
  2339. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  2340. ac_status=$?
  2341. if test -s conftest.err; then
  2342. grep -v '^ *+' conftest.err >conftest.er1
  2343. cat conftest.er1 >&5
  2344. mv -f conftest.er1 conftest.err
  2345. fi
  2346. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2347. test $ac_status = 0; } >/dev/null && {
  2348. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  2349. test ! -s conftest.err
  2350. }; then :
  2351. ac_retval=0
  2352. else
  2353. $as_echo "$as_me: failed program was:" >&5
  2354. sed 's/^/| /' conftest.$ac_ext >&5
  2355. ac_retval=1
  2356. fi
  2357. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2358. return $ac_retval
  2359. } # ac_fn_cxx_try_cpp
  2360. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  2361. # --------------------------------------------
  2362. # Tries to find the compile-time value of EXPR in a program that includes
  2363. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  2364. # computed
  2365. ac_fn_c_compute_int ()
  2366. {
  2367. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2368. if test "$cross_compiling" = yes; then
  2369. # Depending upon the size, compute the lo and hi bounds.
  2370. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2371. /* end confdefs.h. */
  2372. $4
  2373. int
  2374. main ()
  2375. {
  2376. static int test_array [1 - 2 * !(($2) >= 0)];
  2377. test_array [0] = 0
  2378. ;
  2379. return 0;
  2380. }
  2381. _ACEOF
  2382. if ac_fn_c_try_compile "$LINENO"; then :
  2383. ac_lo=0 ac_mid=0
  2384. while :; do
  2385. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2386. /* end confdefs.h. */
  2387. $4
  2388. int
  2389. main ()
  2390. {
  2391. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2392. test_array [0] = 0
  2393. ;
  2394. return 0;
  2395. }
  2396. _ACEOF
  2397. if ac_fn_c_try_compile "$LINENO"; then :
  2398. ac_hi=$ac_mid; break
  2399. else
  2400. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  2401. if test $ac_lo -le $ac_mid; then
  2402. ac_lo= ac_hi=
  2403. break
  2404. fi
  2405. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  2406. fi
  2407. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2408. done
  2409. else
  2410. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2411. /* end confdefs.h. */
  2412. $4
  2413. int
  2414. main ()
  2415. {
  2416. static int test_array [1 - 2 * !(($2) < 0)];
  2417. test_array [0] = 0
  2418. ;
  2419. return 0;
  2420. }
  2421. _ACEOF
  2422. if ac_fn_c_try_compile "$LINENO"; then :
  2423. ac_hi=-1 ac_mid=-1
  2424. while :; do
  2425. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2426. /* end confdefs.h. */
  2427. $4
  2428. int
  2429. main ()
  2430. {
  2431. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  2432. test_array [0] = 0
  2433. ;
  2434. return 0;
  2435. }
  2436. _ACEOF
  2437. if ac_fn_c_try_compile "$LINENO"; then :
  2438. ac_lo=$ac_mid; break
  2439. else
  2440. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  2441. if test $ac_mid -le $ac_hi; then
  2442. ac_lo= ac_hi=
  2443. break
  2444. fi
  2445. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  2446. fi
  2447. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2448. done
  2449. else
  2450. ac_lo= ac_hi=
  2451. fi
  2452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2453. fi
  2454. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2455. # Binary search between lo and hi bounds.
  2456. while test "x$ac_lo" != "x$ac_hi"; do
  2457. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  2458. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2459. /* end confdefs.h. */
  2460. $4
  2461. int
  2462. main ()
  2463. {
  2464. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  2465. test_array [0] = 0
  2466. ;
  2467. return 0;
  2468. }
  2469. _ACEOF
  2470. if ac_fn_c_try_compile "$LINENO"; then :
  2471. ac_hi=$ac_mid
  2472. else
  2473. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  2474. fi
  2475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2476. done
  2477. case $ac_lo in #((
  2478. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  2479. '') ac_retval=1 ;;
  2480. esac
  2481. else
  2482. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2483. /* end confdefs.h. */
  2484. $4
  2485. static long int longval () { return $2; }
  2486. static unsigned long int ulongval () { return $2; }
  2487. #include <stdio.h>
  2488. #include <stdlib.h>
  2489. int
  2490. main ()
  2491. {
  2492. FILE *f = fopen ("conftest.val", "w");
  2493. if (! f)
  2494. return 1;
  2495. if (($2) < 0)
  2496. {
  2497. long int i = longval ();
  2498. if (i != ($2))
  2499. return 1;
  2500. fprintf (f, "%ld", i);
  2501. }
  2502. else
  2503. {
  2504. unsigned long int i = ulongval ();
  2505. if (i != ($2))
  2506. return 1;
  2507. fprintf (f, "%lu", i);
  2508. }
  2509. /* Do not output a trailing newline, as this causes \r\n confusion
  2510. on some platforms. */
  2511. return ferror (f) || fclose (f) != 0;
  2512. ;
  2513. return 0;
  2514. }
  2515. _ACEOF
  2516. if ac_fn_c_try_run "$LINENO"; then :
  2517. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  2518. else
  2519. ac_retval=1
  2520. fi
  2521. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  2522. conftest.$ac_objext conftest.beam conftest.$ac_ext
  2523. rm -f conftest.val
  2524. fi
  2525. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2526. return $ac_retval
  2527. } # ac_fn_c_compute_int
  2528. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  2529. # -------------------------------------------------------
  2530. # Tests whether HEADER exists and can be compiled using the include files in
  2531. # INCLUDES, setting the cache variable VAR accordingly.
  2532. ac_fn_c_check_header_compile ()
  2533. {
  2534. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2535. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2536. $as_echo_n "checking for $2... " >&6; }
  2537. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2538. $as_echo_n "(cached) " >&6
  2539. else
  2540. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2541. /* end confdefs.h. */
  2542. $4
  2543. #include <$2>
  2544. _ACEOF
  2545. if ac_fn_c_try_compile "$LINENO"; then :
  2546. eval "$3=yes"
  2547. else
  2548. eval "$3=no"
  2549. fi
  2550. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2551. fi
  2552. eval ac_res=\$$3
  2553. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2554. $as_echo "$ac_res" >&6; }
  2555. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2556. } # ac_fn_c_check_header_compile
  2557. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  2558. # -------------------------------------------------------
  2559. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2560. # the include files in INCLUDES and setting the cache variable VAR
  2561. # accordingly.
  2562. ac_fn_c_check_header_mongrel ()
  2563. {
  2564. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2565. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2567. $as_echo_n "checking for $2... " >&6; }
  2568. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2569. $as_echo_n "(cached) " >&6
  2570. fi
  2571. eval ac_res=\$$3
  2572. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2573. $as_echo "$ac_res" >&6; }
  2574. else
  2575. # Is the header compilable?
  2576. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2577. $as_echo_n "checking $2 usability... " >&6; }
  2578. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2579. /* end confdefs.h. */
  2580. $4
  2581. #include <$2>
  2582. _ACEOF
  2583. if ac_fn_c_try_compile "$LINENO"; then :
  2584. ac_header_compiler=yes
  2585. else
  2586. ac_header_compiler=no
  2587. fi
  2588. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2589. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2590. $as_echo "$ac_header_compiler" >&6; }
  2591. # Is the header present?
  2592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2593. $as_echo_n "checking $2 presence... " >&6; }
  2594. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2595. /* end confdefs.h. */
  2596. #include <$2>
  2597. _ACEOF
  2598. if ac_fn_c_try_cpp "$LINENO"; then :
  2599. ac_header_preproc=yes
  2600. else
  2601. ac_header_preproc=no
  2602. fi
  2603. rm -f conftest.err conftest.$ac_ext
  2604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2605. $as_echo "$ac_header_preproc" >&6; }
  2606. # So? What about this header?
  2607. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  2608. yes:no: )
  2609. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2610. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2612. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2613. ;;
  2614. no:yes:* )
  2615. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2616. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2617. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2618. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2619. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2620. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2621. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2622. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2623. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2624. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2625. ;;
  2626. esac
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2628. $as_echo_n "checking for $2... " >&6; }
  2629. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2630. $as_echo_n "(cached) " >&6
  2631. else
  2632. eval "$3=\$ac_header_compiler"
  2633. fi
  2634. eval ac_res=\$$3
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2636. $as_echo "$ac_res" >&6; }
  2637. fi
  2638. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2639. } # ac_fn_c_check_header_mongrel
  2640. # ac_fn_cxx_try_link LINENO
  2641. # -------------------------
  2642. # Try to link conftest.$ac_ext, and return whether this succeeded.
  2643. ac_fn_cxx_try_link ()
  2644. {
  2645. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2646. rm -f conftest.$ac_objext conftest$ac_exeext
  2647. if { { ac_try="$ac_link"
  2648. case "(($ac_try" in
  2649. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2650. *) ac_try_echo=$ac_try;;
  2651. esac
  2652. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2653. $as_echo "$ac_try_echo"; } >&5
  2654. (eval "$ac_link") 2>conftest.err
  2655. ac_status=$?
  2656. if test -s conftest.err; then
  2657. grep -v '^ *+' conftest.err >conftest.er1
  2658. cat conftest.er1 >&5
  2659. mv -f conftest.er1 conftest.err
  2660. fi
  2661. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2662. test $ac_status = 0; } && {
  2663. test -z "$ac_cxx_werror_flag" ||
  2664. test ! -s conftest.err
  2665. } && test -s conftest$ac_exeext && {
  2666. test "$cross_compiling" = yes ||
  2667. $as_test_x conftest$ac_exeext
  2668. }; then :
  2669. ac_retval=0
  2670. else
  2671. $as_echo "$as_me: failed program was:" >&5
  2672. sed 's/^/| /' conftest.$ac_ext >&5
  2673. ac_retval=1
  2674. fi
  2675. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  2676. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  2677. # interfere with the next link command; also delete a directory that is
  2678. # left behind by Apple's compiler. We do this before executing the actions.
  2679. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2680. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2681. return $ac_retval
  2682. } # ac_fn_cxx_try_link
  2683. # ac_fn_c_check_func LINENO FUNC VAR
  2684. # ----------------------------------
  2685. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  2686. ac_fn_c_check_func ()
  2687. {
  2688. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2690. $as_echo_n "checking for $2... " >&6; }
  2691. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2692. $as_echo_n "(cached) " >&6
  2693. else
  2694. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2695. /* end confdefs.h. */
  2696. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  2697. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  2698. #define $2 innocuous_$2
  2699. /* System header to define __stub macros and hopefully few prototypes,
  2700. which can conflict with char $2 (); below.
  2701. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  2702. <limits.h> exists even on freestanding compilers. */
  2703. #ifdef __STDC__
  2704. # include <limits.h>
  2705. #else
  2706. # include <assert.h>
  2707. #endif
  2708. #undef $2
  2709. /* Override any GCC internal prototype to avoid an error.
  2710. Use char because int might match the return type of a GCC
  2711. builtin and then its argument prototype would still apply. */
  2712. #ifdef __cplusplus
  2713. extern "C"
  2714. #endif
  2715. char $2 ();
  2716. /* The GNU C library defines this for functions which it implements
  2717. to always fail with ENOSYS. Some functions are actually named
  2718. something starting with __ and the normal name is an alias. */
  2719. #if defined __stub_$2 || defined __stub___$2
  2720. choke me
  2721. #endif
  2722. int
  2723. main ()
  2724. {
  2725. return $2 ();
  2726. ;
  2727. return 0;
  2728. }
  2729. _ACEOF
  2730. if ac_fn_c_try_link "$LINENO"; then :
  2731. eval "$3=yes"
  2732. else
  2733. eval "$3=no"
  2734. fi
  2735. rm -f core conftest.err conftest.$ac_objext \
  2736. conftest$ac_exeext conftest.$ac_ext
  2737. fi
  2738. eval ac_res=\$$3
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2740. $as_echo "$ac_res" >&6; }
  2741. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2742. } # ac_fn_c_check_func
  2743. # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
  2744. # ---------------------------------------------------------
  2745. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  2746. # the include files in INCLUDES and setting the cache variable VAR
  2747. # accordingly.
  2748. ac_fn_cxx_check_header_mongrel ()
  2749. {
  2750. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2751. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2753. $as_echo_n "checking for $2... " >&6; }
  2754. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2755. $as_echo_n "(cached) " >&6
  2756. fi
  2757. eval ac_res=\$$3
  2758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2759. $as_echo "$ac_res" >&6; }
  2760. else
  2761. # Is the header compilable?
  2762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  2763. $as_echo_n "checking $2 usability... " >&6; }
  2764. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2765. /* end confdefs.h. */
  2766. $4
  2767. #include <$2>
  2768. _ACEOF
  2769. if ac_fn_cxx_try_compile "$LINENO"; then :
  2770. ac_header_compiler=yes
  2771. else
  2772. ac_header_compiler=no
  2773. fi
  2774. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  2776. $as_echo "$ac_header_compiler" >&6; }
  2777. # Is the header present?
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  2779. $as_echo_n "checking $2 presence... " >&6; }
  2780. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2781. /* end confdefs.h. */
  2782. #include <$2>
  2783. _ACEOF
  2784. if ac_fn_cxx_try_cpp "$LINENO"; then :
  2785. ac_header_preproc=yes
  2786. else
  2787. ac_header_preproc=no
  2788. fi
  2789. rm -f conftest.err conftest.$ac_ext
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  2791. $as_echo "$ac_header_preproc" >&6; }
  2792. # So? What about this header?
  2793. case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
  2794. yes:no: )
  2795. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  2796. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  2797. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2798. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2799. ;;
  2800. no:yes:* )
  2801. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  2802. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  2803. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  2804. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  2805. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  2806. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  2807. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  2808. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  2809. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  2810. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  2811. ;;
  2812. esac
  2813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  2814. $as_echo_n "checking for $2... " >&6; }
  2815. if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  2816. $as_echo_n "(cached) " >&6
  2817. else
  2818. eval "$3=\$ac_header_compiler"
  2819. fi
  2820. eval ac_res=\$$3
  2821. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2822. $as_echo "$ac_res" >&6; }
  2823. fi
  2824. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2825. } # ac_fn_cxx_check_header_mongrel
  2826. # ac_fn_cxx_try_run LINENO
  2827. # ------------------------
  2828. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  2829. # that executables *can* be run.
  2830. ac_fn_cxx_try_run ()
  2831. {
  2832. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2833. if { { ac_try="$ac_link"
  2834. case "(($ac_try" in
  2835. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2836. *) ac_try_echo=$ac_try;;
  2837. esac
  2838. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2839. $as_echo "$ac_try_echo"; } >&5
  2840. (eval "$ac_link") 2>&5
  2841. ac_status=$?
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2843. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  2844. { { case "(($ac_try" in
  2845. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2846. *) ac_try_echo=$ac_try;;
  2847. esac
  2848. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2849. $as_echo "$ac_try_echo"; } >&5
  2850. (eval "$ac_try") 2>&5
  2851. ac_status=$?
  2852. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2853. test $ac_status = 0; }; }; then :
  2854. ac_retval=0
  2855. else
  2856. $as_echo "$as_me: program exited with status $ac_status" >&5
  2857. $as_echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. ac_retval=$ac_status
  2860. fi
  2861. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  2862. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2863. return $ac_retval
  2864. } # ac_fn_cxx_try_run
  2865. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  2866. # ----------------------------------------------------
  2867. # Tries to find if the field MEMBER exists in type AGGR, after including
  2868. # INCLUDES, setting cache variable VAR accordingly.
  2869. ac_fn_c_check_member ()
  2870. {
  2871. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  2872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  2873. $as_echo_n "checking for $2.$3... " >&6; }
  2874. if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
  2875. $as_echo_n "(cached) " >&6
  2876. else
  2877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2878. /* end confdefs.h. */
  2879. $5
  2880. int
  2881. main ()
  2882. {
  2883. static $2 ac_aggr;
  2884. if (ac_aggr.$3)
  2885. return 0;
  2886. ;
  2887. return 0;
  2888. }
  2889. _ACEOF
  2890. if ac_fn_c_try_compile "$LINENO"; then :
  2891. eval "$4=yes"
  2892. else
  2893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2894. /* end confdefs.h. */
  2895. $5
  2896. int
  2897. main ()
  2898. {
  2899. static $2 ac_aggr;
  2900. if (sizeof ac_aggr.$3)
  2901. return 0;
  2902. ;
  2903. return 0;
  2904. }
  2905. _ACEOF
  2906. if ac_fn_c_try_compile "$LINENO"; then :
  2907. eval "$4=yes"
  2908. else
  2909. eval "$4=no"
  2910. fi
  2911. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2912. fi
  2913. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2914. fi
  2915. eval ac_res=\$$4
  2916. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  2917. $as_echo "$ac_res" >&6; }
  2918. eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  2919. } # ac_fn_c_check_member
  2920. cat >config.log <<_ACEOF
  2921. This file contains any messages produced by compilers while
  2922. running configure, to aid debugging if configure makes a mistake.
  2923. It was created by $as_me, which was
  2924. generated by GNU Autoconf 2.64. Invocation command line was
  2925. $ $0 $@
  2926. _ACEOF
  2927. exec 5>>config.log
  2928. {
  2929. cat <<_ASUNAME
  2930. ## --------- ##
  2931. ## Platform. ##
  2932. ## --------- ##
  2933. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2934. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2935. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2936. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2937. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2938. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2939. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2940. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2941. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2942. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2943. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2944. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2945. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2946. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2947. _ASUNAME
  2948. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2949. for as_dir in $PATH
  2950. do
  2951. IFS=$as_save_IFS
  2952. test -z "$as_dir" && as_dir=.
  2953. $as_echo "PATH: $as_dir"
  2954. done
  2955. IFS=$as_save_IFS
  2956. } >&5
  2957. cat >&5 <<_ACEOF
  2958. ## ----------- ##
  2959. ## Core tests. ##
  2960. ## ----------- ##
  2961. _ACEOF
  2962. # Keep a trace of the command line.
  2963. # Strip out --no-create and --no-recursion so they do not pile up.
  2964. # Strip out --silent because we don't want to record it for future runs.
  2965. # Also quote any args containing shell meta-characters.
  2966. # Make two passes to allow for proper duplicate-argument suppression.
  2967. ac_configure_args=
  2968. ac_configure_args0=
  2969. ac_configure_args1=
  2970. ac_must_keep_next=false
  2971. for ac_pass in 1 2
  2972. do
  2973. for ac_arg
  2974. do
  2975. case $ac_arg in
  2976. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2977. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2978. | -silent | --silent | --silen | --sile | --sil)
  2979. continue ;;
  2980. *\'*)
  2981. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2982. esac
  2983. case $ac_pass in
  2984. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2985. 2)
  2986. as_fn_append ac_configure_args1 " '$ac_arg'"
  2987. if test $ac_must_keep_next = true; then
  2988. ac_must_keep_next=false # Got value, back to normal.
  2989. else
  2990. case $ac_arg in
  2991. *=* | --config-cache | -C | -disable-* | --disable-* \
  2992. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2993. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2994. | -with-* | --with-* | -without-* | --without-* | --x)
  2995. case "$ac_configure_args0 " in
  2996. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2997. esac
  2998. ;;
  2999. -* ) ac_must_keep_next=true ;;
  3000. esac
  3001. fi
  3002. as_fn_append ac_configure_args " '$ac_arg'"
  3003. ;;
  3004. esac
  3005. done
  3006. done
  3007. { ac_configure_args0=; unset ac_configure_args0;}
  3008. { ac_configure_args1=; unset ac_configure_args1;}
  3009. # When interrupted or exit'd, cleanup temporary files, and complete
  3010. # config.log. We remove comments because anyway the quotes in there
  3011. # would cause problems or look ugly.
  3012. # WARNING: Use '\'' to represent an apostrophe within the trap.
  3013. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  3014. trap 'exit_status=$?
  3015. # Save into config.log some information that might help in debugging.
  3016. {
  3017. echo
  3018. cat <<\_ASBOX
  3019. ## ---------------- ##
  3020. ## Cache variables. ##
  3021. ## ---------------- ##
  3022. _ASBOX
  3023. echo
  3024. # The following way of writing the cache mishandles newlines in values,
  3025. (
  3026. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  3027. eval ac_val=\$$ac_var
  3028. case $ac_val in #(
  3029. *${as_nl}*)
  3030. case $ac_var in #(
  3031. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  3032. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  3033. esac
  3034. case $ac_var in #(
  3035. _ | IFS | as_nl) ;; #(
  3036. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  3037. *) { eval $ac_var=; unset $ac_var;} ;;
  3038. esac ;;
  3039. esac
  3040. done
  3041. (set) 2>&1 |
  3042. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  3043. *${as_nl}ac_space=\ *)
  3044. sed -n \
  3045. "s/'\''/'\''\\\\'\'''\''/g;
  3046. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  3047. ;; #(
  3048. *)
  3049. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  3050. ;;
  3051. esac |
  3052. sort
  3053. )
  3054. echo
  3055. cat <<\_ASBOX
  3056. ## ----------------- ##
  3057. ## Output variables. ##
  3058. ## ----------------- ##
  3059. _ASBOX
  3060. echo
  3061. for ac_var in $ac_subst_vars
  3062. do
  3063. eval ac_val=\$$ac_var
  3064. case $ac_val in
  3065. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3066. esac
  3067. $as_echo "$ac_var='\''$ac_val'\''"
  3068. done | sort
  3069. echo
  3070. if test -n "$ac_subst_files"; then
  3071. cat <<\_ASBOX
  3072. ## ------------------- ##
  3073. ## File substitutions. ##
  3074. ## ------------------- ##
  3075. _ASBOX
  3076. echo
  3077. for ac_var in $ac_subst_files
  3078. do
  3079. eval ac_val=\$$ac_var
  3080. case $ac_val in
  3081. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  3082. esac
  3083. $as_echo "$ac_var='\''$ac_val'\''"
  3084. done | sort
  3085. echo
  3086. fi
  3087. if test -s confdefs.h; then
  3088. cat <<\_ASBOX
  3089. ## ----------- ##
  3090. ## confdefs.h. ##
  3091. ## ----------- ##
  3092. _ASBOX
  3093. echo
  3094. cat confdefs.h
  3095. echo
  3096. fi
  3097. test "$ac_signal" != 0 &&
  3098. $as_echo "$as_me: caught signal $ac_signal"
  3099. $as_echo "$as_me: exit $exit_status"
  3100. } >&5
  3101. rm -f core *.core core.conftest.* &&
  3102. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  3103. exit $exit_status
  3104. ' 0
  3105. for ac_signal in 1 2 13 15; do
  3106. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  3107. done
  3108. ac_signal=0
  3109. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  3110. rm -f -r conftest* confdefs.h
  3111. $as_echo "/* confdefs.h */" > confdefs.h
  3112. # Predefined preprocessor variables.
  3113. cat >>confdefs.h <<_ACEOF
  3114. #define PACKAGE_NAME "$PACKAGE_NAME"
  3115. _ACEOF
  3116. cat >>confdefs.h <<_ACEOF
  3117. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  3118. _ACEOF
  3119. cat >>confdefs.h <<_ACEOF
  3120. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  3121. _ACEOF
  3122. cat >>confdefs.h <<_ACEOF
  3123. #define PACKAGE_STRING "$PACKAGE_STRING"
  3124. _ACEOF
  3125. cat >>confdefs.h <<_ACEOF
  3126. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  3127. _ACEOF
  3128. cat >>confdefs.h <<_ACEOF
  3129. #define PACKAGE_URL "$PACKAGE_URL"
  3130. _ACEOF
  3131. # Let the site file select an alternate cache file if it wants to.
  3132. # Prefer an explicitly selected file to automatically selected ones.
  3133. ac_site_file1=NONE
  3134. ac_site_file2=NONE
  3135. if test -n "$CONFIG_SITE"; then
  3136. ac_site_file1=$CONFIG_SITE
  3137. elif test "x$prefix" != xNONE; then
  3138. ac_site_file1=$prefix/share/config.site
  3139. ac_site_file2=$prefix/etc/config.site
  3140. else
  3141. ac_site_file1=$ac_default_prefix/share/config.site
  3142. ac_site_file2=$ac_default_prefix/etc/config.site
  3143. fi
  3144. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  3145. do
  3146. test "x$ac_site_file" = xNONE && continue
  3147. if test -r "$ac_site_file"; then
  3148. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  3149. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  3150. sed 's/^/| /' "$ac_site_file" >&5
  3151. . "$ac_site_file"
  3152. fi
  3153. done
  3154. if test -r "$cache_file"; then
  3155. # Some versions of bash will fail to source /dev/null (special
  3156. # files actually), so we avoid doing that.
  3157. if test -f "$cache_file"; then
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  3159. $as_echo "$as_me: loading cache $cache_file" >&6;}
  3160. case $cache_file in
  3161. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  3162. *) . "./$cache_file";;
  3163. esac
  3164. fi
  3165. else
  3166. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  3167. $as_echo "$as_me: creating cache $cache_file" >&6;}
  3168. >$cache_file
  3169. fi
  3170. # Check that the precious variables saved in the cache have kept the same
  3171. # value.
  3172. ac_cache_corrupted=false
  3173. for ac_var in $ac_precious_vars; do
  3174. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  3175. eval ac_new_set=\$ac_env_${ac_var}_set
  3176. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  3177. eval ac_new_val=\$ac_env_${ac_var}_value
  3178. case $ac_old_set,$ac_new_set in
  3179. set,)
  3180. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  3181. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  3182. ac_cache_corrupted=: ;;
  3183. ,set)
  3184. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  3185. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  3186. ac_cache_corrupted=: ;;
  3187. ,);;
  3188. *)
  3189. if test "x$ac_old_val" != "x$ac_new_val"; then
  3190. # differences in whitespace do not lead to failure.
  3191. ac_old_val_w=`echo x $ac_old_val`
  3192. ac_new_val_w=`echo x $ac_new_val`
  3193. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  3194. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  3195. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  3196. ac_cache_corrupted=:
  3197. else
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  3199. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  3200. eval $ac_var=\$ac_old_val
  3201. fi
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  3203. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  3204. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  3205. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  3206. fi;;
  3207. esac
  3208. # Pass precious variables to config.status.
  3209. if test "$ac_new_set" = set; then
  3210. case $ac_new_val in
  3211. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  3212. *) ac_arg=$ac_var=$ac_new_val ;;
  3213. esac
  3214. case " $ac_configure_args " in
  3215. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  3216. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  3217. esac
  3218. fi
  3219. done
  3220. if $ac_cache_corrupted; then
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3222. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3223. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  3224. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  3225. as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  3226. fi
  3227. ## -------------------- ##
  3228. ## Main body of script. ##
  3229. ## -------------------- ##
  3230. ac_ext=c
  3231. ac_cpp='$CPP $CPPFLAGS'
  3232. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3233. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3234. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3235. echo "$@" >config.parms
  3236. # Check whether --with-gnu-patch was given.
  3237. if test "${with_gnu_patch+set}" = set; then :
  3238. withval=$with_gnu_patch;
  3239. fi
  3240. # Check whether --with-agg was given.
  3241. if test "${with_agg+set}" = set; then :
  3242. withval=$with_agg;
  3243. else
  3244. with_agg=yes
  3245. fi
  3246. # Check whether --with-gnu-cp was given.
  3247. if test "${with_gnu_cp+set}" = set; then :
  3248. withval=$with_gnu_cp;
  3249. fi
  3250. # Check whether --enable-graphite was given.
  3251. if test "${enable_graphite+set}" = set; then :
  3252. enableval=$enable_graphite;
  3253. fi
  3254. # Check whether --with-system-graphite was given.
  3255. if test "${with_system_graphite+set}" = set; then :
  3256. withval=$with_system_graphite;
  3257. fi
  3258. # Check whether --enable-ldap was given.
  3259. if test "${enable_ldap+set}" = set; then :
  3260. enableval=$enable_ldap;
  3261. fi
  3262. # Check whether --with-openldap was given.
  3263. if test "${with_openldap+set}" = set; then :
  3264. withval=$with_openldap;
  3265. fi
  3266. # Check whether --enable-lockdown was given.
  3267. if test "${enable_lockdown+set}" = set; then :
  3268. enableval=$enable_lockdown;
  3269. fi
  3270. # Check whether --enable-vba was given.
  3271. if test "${enable_vba+set}" = set; then :
  3272. enableval=$enable_vba;
  3273. fi
  3274. # Check whether --with-vba-package-format was given.
  3275. if test "${with_vba_package_format+set}" = set; then :
  3276. withval=$with_vba_package_format;
  3277. fi
  3278. # Check whether --enable-pch was given.
  3279. if test "${enable_pch+set}" = set; then :
  3280. enableval=$enable_pch;
  3281. fi
  3282. # Check whether --enable-hids was given.
  3283. if test "${enable_hids+set}" = set; then :
  3284. enableval=$enable_hids;
  3285. fi
  3286. # Check whether --enable-mozilla was given.
  3287. if test "${enable_mozilla+set}" = set; then :
  3288. enableval=$enable_mozilla;
  3289. else
  3290. enable_mozilla="yes"
  3291. fi
  3292. # Check whether --with-fonts was given.
  3293. if test "${with_fonts+set}" = set; then :
  3294. withval=$with_fonts;
  3295. fi
  3296. # Check whether --with-ppds was given.
  3297. if test "${with_ppds+set}" = set; then :
  3298. withval=$with_ppds;
  3299. fi
  3300. # Check whether --with-afms was given.
  3301. if test "${with_afms+set}" = set; then :
  3302. withval=$with_afms;
  3303. fi
  3304. # Check whether --enable-epm was given.
  3305. if test "${enable_epm+set}" = set; then :
  3306. enableval=$enable_epm;
  3307. else
  3308. enable_epm="yes"
  3309. fi
  3310. # Check whether --with-epm was given.
  3311. if test "${with_epm+set}" = set; then :
  3312. withval=$with_epm;
  3313. fi
  3314. # Check whether --with-package-format was given.
  3315. if test "${with_package_format+set}" = set; then :
  3316. withval=$with_package_format;
  3317. fi
  3318. # Check whether --enable-odk was given.
  3319. if test "${enable_odk+set}" = set; then :
  3320. enableval=$enable_odk;
  3321. else
  3322. enable_odk="yes"
  3323. fi
  3324. # Check whether --enable-qadevooo was given.
  3325. if test "${enable_qadevooo+set}" = set; then :
  3326. enableval=$enable_qadevooo;
  3327. else
  3328. enable_qadevooo="yes"
  3329. fi
  3330. # Check whether --enable-mathmldtd was given.
  3331. if test "${enable_mathmldtd+set}" = set; then :
  3332. enableval=$enable_mathmldtd;
  3333. else
  3334. enable_mathmldtd="yes"
  3335. fi
  3336. # Check whether --enable-evolution2 was given.
  3337. if test "${enable_evolution2+set}" = set; then :
  3338. enableval=$enable_evolution2;
  3339. fi
  3340. # Check whether --with-system-stdlibs was given.
  3341. if test "${with_system_stdlibs+set}" = set; then :
  3342. withval=$with_system_stdlibs;
  3343. else
  3344. checkforstdlibproblems=yes
  3345. fi
  3346. # Check whether --enable-cups was given.
  3347. if test "${enable_cups+set}" = set; then :
  3348. enableval=$enable_cups;
  3349. else
  3350. enable_cups=yes
  3351. fi
  3352. # Check whether --enable-fontconfig was given.
  3353. if test "${enable_fontconfig+set}" = set; then :
  3354. enableval=$enable_fontconfig;
  3355. else
  3356. enable_fontconfig=yes
  3357. fi
  3358. # Check whether --enable-directx was given.
  3359. if test "${enable_directx+set}" = set; then :
  3360. enableval=$enable_directx;
  3361. else
  3362. enable_directx=yes
  3363. fi
  3364. # Check whether --enable-activex was given.
  3365. if test "${enable_activex+set}" = set; then :
  3366. enableval=$enable_activex;
  3367. fi
  3368. # Check whether --enable-atl was given.
  3369. if test "${enable_atl+set}" = set; then :
  3370. enableval=$enable_atl;
  3371. fi
  3372. # Check whether --enable-symbols was given.
  3373. if test "${enable_symbols+set}" = set; then :
  3374. enableval=$enable_symbols;
  3375. fi
  3376. # Check whether --enable-strip-solver was given.
  3377. if test "${enable_strip_solver+set}" = set; then :
  3378. enableval=$enable_strip_solver;
  3379. fi
  3380. # Check whether --enable-werror was given.
  3381. if test "${enable_werror+set}" = set; then :
  3382. enableval=$enable_werror;
  3383. fi
  3384. # Check whether --enable-debug was given.
  3385. if test "${enable_debug+set}" = set; then :
  3386. enableval=$enable_debug;
  3387. fi
  3388. # Check whether --enable-dbgutil was given.
  3389. if test "${enable_dbgutil+set}" = set; then :
  3390. enableval=$enable_dbgutil;
  3391. fi
  3392. # Check whether --enable-crashdump was given.
  3393. if test "${enable_crashdump+set}" = set; then :
  3394. enableval=$enable_crashdump;
  3395. fi
  3396. # Check whether --enable-cl-standard was given.
  3397. if test "${enable_cl_standard+set}" = set; then :
  3398. enableval=$enable_cl_standard;
  3399. fi
  3400. # Check whether --enable-gtk was given.
  3401. if test "${enable_gtk+set}" = set; then :
  3402. enableval=$enable_gtk;
  3403. else
  3404. enable_gtk=yes
  3405. fi
  3406. # Check whether --enable-systray was given.
  3407. if test "${enable_systray+set}" = set; then :
  3408. enableval=$enable_systray;
  3409. else
  3410. enable_systray=yes
  3411. fi
  3412. # Check whether --enable-cairo was given.
  3413. if test "${enable_cairo+set}" = set; then :
  3414. enableval=$enable_cairo;
  3415. else
  3416. enable_cairo=no
  3417. fi
  3418. # Check whether --with-system-cairo was given.
  3419. if test "${with_system_cairo+set}" = set; then :
  3420. withval=$with_system_cairo;
  3421. fi
  3422. # Check whether --enable-opengl was given.
  3423. if test "${enable_opengl+set}" = set; then :
  3424. enableval=$enable_opengl;
  3425. else
  3426. enable_opengl=no
  3427. fi
  3428. # Check whether --enable-dbus was given.
  3429. if test "${enable_dbus+set}" = set; then :
  3430. enableval=$enable_dbus;
  3431. else
  3432. enable_dbus=no
  3433. fi
  3434. # Check whether --enable-gconf was given.
  3435. if test "${enable_gconf+set}" = set; then :
  3436. enableval=$enable_gconf;
  3437. else
  3438. enable_gconf=yes
  3439. fi
  3440. # Check whether --enable-gnome-vfs was given.
  3441. if test "${enable_gnome_vfs+set}" = set; then :
  3442. enableval=$enable_gnome_vfs;
  3443. else
  3444. enable_gnome_vfs=yes
  3445. fi
  3446. # Check whether --enable-gio was given.
  3447. if test "${enable_gio+set}" = set; then :
  3448. enableval=$enable_gio;
  3449. else
  3450. enable_gio=no
  3451. fi
  3452. # Check whether --enable-static-gtk was given.
  3453. if test "${enable_static_gtk+set}" = set; then :
  3454. enableval=$enable_static_gtk;
  3455. fi
  3456. # Check whether --enable-layout was given.
  3457. if test "${enable_layout+set}" = set; then :
  3458. enableval=$enable_layout;
  3459. fi
  3460. # Check whether --enable-build-mozilla was given.
  3461. if test "${enable_build_mozilla+set}" = set; then :
  3462. enableval=$enable_build_mozilla;
  3463. fi
  3464. # Check whether --with-mozilla-version was given.
  3465. if test "${with_mozilla_version+set}" = set; then :
  3466. withval=$with_mozilla_version;
  3467. fi
  3468. # Check whether --with-mozilla-toolkit was given.
  3469. if test "${with_mozilla_toolkit+set}" = set; then :
  3470. withval=$with_mozilla_toolkit;
  3471. fi
  3472. # Check whether --enable-nss_module was given.
  3473. if test "${enable_nss_module+set}" = set; then :
  3474. enableval=$enable_nss_module;
  3475. else
  3476. enable_nss_module=yes
  3477. fi
  3478. # Check whether --enable-kde was given.
  3479. if test "${enable_kde+set}" = set; then :
  3480. enableval=$enable_kde;
  3481. fi
  3482. # Check whether --enable-kdeab was given.
  3483. if test "${enable_kdeab+set}" = set; then :
  3484. enableval=$enable_kdeab;
  3485. else
  3486. if test "$enable_kde" = "yes"; then enable_kdeab=yes; fi
  3487. fi
  3488. # Check whether --enable-kde4 was given.
  3489. if test "${enable_kde4+set}" = set; then :
  3490. enableval=$enable_kde4;
  3491. fi
  3492. # Check whether --enable-binfilter was given.
  3493. if test "${enable_binfilter+set}" = set; then :
  3494. enableval=$enable_binfilter;
  3495. else
  3496. if ! test -d ./binfilter; then enable_binfilter=no; fi
  3497. fi
  3498. # Check whether --enable-rpath was given.
  3499. if test "${enable_rpath+set}" = set; then :
  3500. enableval=$enable_rpath;
  3501. fi
  3502. # Check whether --enable-pam was given.
  3503. if test "${enable_pam+set}" = set; then :
  3504. enableval=$enable_pam;
  3505. fi
  3506. # Check whether --enable-pam-link was given.
  3507. if test "${enable_pam_link+set}" = set; then :
  3508. enableval=$enable_pam_link;
  3509. fi
  3510. # Check whether --enable-crypt-link was given.
  3511. if test "${enable_crypt_link+set}" = set; then :
  3512. enableval=$enable_crypt_link;
  3513. else
  3514. enable_crypt_link=yes
  3515. fi
  3516. # Check whether --enable-xrender-link was given.
  3517. if test "${enable_xrender_link+set}" = set; then :
  3518. enableval=$enable_xrender_link;
  3519. fi
  3520. # Check whether --enable-randr was given.
  3521. if test "${enable_randr+set}" = set; then :
  3522. enableval=$enable_randr;
  3523. else
  3524. enable_randr=yes
  3525. fi
  3526. # Check whether --enable-randr-link was given.
  3527. if test "${enable_randr_link+set}" = set; then :
  3528. enableval=$enable_randr_link;
  3529. else
  3530. enable_randr_link=yes
  3531. fi
  3532. # Check whether --with-myspell-dicts was given.
  3533. if test "${with_myspell_dicts+set}" = set; then :
  3534. withval=$with_myspell_dicts;
  3535. fi
  3536. # Check whether --with-system-dicts was given.
  3537. if test "${with_system_dicts+set}" = set; then :
  3538. withval=$with_system_dicts;
  3539. fi
  3540. # Check whether --with-external-dict-dir was given.
  3541. if test "${with_external_dict_dir+set}" = set; then :
  3542. withval=$with_external_dict_dir;
  3543. fi
  3544. # Check whether --with-external-hyph-dir was given.
  3545. if test "${with_external_hyph_dir+set}" = set; then :
  3546. withval=$with_external_hyph_dir;
  3547. fi
  3548. # Check whether --with-external-thes-dir was given.
  3549. if test "${with_external_thes_dir+set}" = set; then :
  3550. withval=$with_external_thes_dir;
  3551. fi
  3552. # Check whether --with-system-libs was given.
  3553. if test "${with_system_libs+set}" = set; then :
  3554. withval=$with_system_libs;
  3555. fi
  3556. # Check whether --with-system-headers was given.
  3557. if test "${with_system_headers+set}" = set; then :
  3558. withval=$with_system_headers;
  3559. fi
  3560. # Check whether --with-system-jars was given.
  3561. if test "${with_system_jars+set}" = set; then :
  3562. withval=$with_system_jars;
  3563. fi
  3564. # Check whether --with-system-zlib was given.
  3565. if test "${with_system_zlib+set}" = set; then :
  3566. withval=$with_system_zlib;
  3567. fi
  3568. # Check whether --with-system-openssl was given.
  3569. if test "${with_system_openssl+set}" = set; then :
  3570. withval=$with_system_openssl;
  3571. fi
  3572. # Check whether --with-system-jpeg was given.
  3573. if test "${with_system_jpeg+set}" = set; then :
  3574. withval=$with_system_jpeg;
  3575. fi
  3576. # Check whether --with-system-expat was given.
  3577. if test "${with_system_expat+set}" = set; then :
  3578. withval=$with_system_expat;
  3579. fi
  3580. # Check whether --with-system-libwpd was given.
  3581. if test "${with_system_libwpd+set}" = set; then :
  3582. withval=$with_system_libwpd;
  3583. fi
  3584. # Check whether --with-system-libxml was given.
  3585. if test "${with_system_libxml+set}" = set; then :
  3586. withval=$with_system_libxml;
  3587. fi
  3588. # Check whether --with-system-python was given.
  3589. if test "${with_system_python+set}" = set; then :
  3590. withval=$with_system_python;
  3591. fi
  3592. # Check whether --with-system-icu was given.
  3593. if test "${with_system_icu+set}" = set; then :
  3594. withval=$with_system_icu;
  3595. fi
  3596. # Check whether --with-system-poppler was given.
  3597. if test "${with_system_poppler+set}" = set; then :
  3598. withval=$with_system_poppler;
  3599. fi
  3600. # Check whether --with-system-db was given.
  3601. if test "${with_system_db+set}" = set; then :
  3602. withval=$with_system_db;
  3603. fi
  3604. # Check whether --with-system-lucene was given.
  3605. if test "${with_system_lucene+set}" = set; then :
  3606. withval=$with_system_lucene;
  3607. fi
  3608. # Check whether --with-lucene-core-jar was given.
  3609. if test "${with_lucene_core_jar+set}" = set; then :
  3610. withval=$with_lucene_core_jar; LUCENE_CORE_JAR="$withval"
  3611. fi
  3612. # Check whether --with-lucene-analyzers-jar was given.
  3613. if test "${with_lucene_analyzers_jar+set}" = set; then :
  3614. withval=$with_lucene_analyzers_jar; LUCENE_ANALYZERS_JAR="$withval"
  3615. fi
  3616. # Check whether --enable-mysql-connector was given.
  3617. if test "${enable_mysql_connector+set}" = set; then :
  3618. enableval=$enable_mysql_connector;
  3619. fi
  3620. # Check whether --with-system-mysql was given.
  3621. if test "${with_system_mysql+set}" = set; then :
  3622. withval=$with_system_mysql;
  3623. else
  3624. with_system_mysql="no"
  3625. fi
  3626. # Check whether --with-libmysql-path was given.
  3627. if test "${with_libmysql_path+set}" = set; then :
  3628. withval=$with_libmysql_path;
  3629. fi
  3630. # Check whether --with-system-mysql-cppconn was given.
  3631. if test "${with_system_mysql_cppconn+set}" = set; then :
  3632. withval=$with_system_mysql_cppconn;
  3633. fi
  3634. # Check whether --with-system-hsqldb was given.
  3635. if test "${with_system_hsqldb+set}" = set; then :
  3636. withval=$with_system_hsqldb;
  3637. fi
  3638. # Check whether --with-hsqldb-jar was given.
  3639. if test "${with_hsqldb_jar+set}" = set; then :
  3640. withval=$with_hsqldb_jar; HSQLDB_JAR="$withval"
  3641. fi
  3642. # Check whether --with-system-beanshell was given.
  3643. if test "${with_system_beanshell+set}" = set; then :
  3644. withval=$with_system_beanshell;
  3645. fi
  3646. # Check whether --with-beanshell-jar was given.
  3647. if test "${with_beanshell_jar+set}" = set; then :
  3648. withval=$with_beanshell_jar; BSH_JAR="$withval"
  3649. fi
  3650. # Check whether --enable-presenter-extra-ui was given.
  3651. if test "${enable_presenter_extra_ui+set}" = set; then :
  3652. enableval=$enable_presenter_extra_ui;
  3653. else
  3654. enable_presenter_extra_ui=no
  3655. fi
  3656. # Check whether --enable-minimizer was given.
  3657. if test "${enable_minimizer+set}" = set; then :
  3658. enableval=$enable_minimizer;
  3659. fi
  3660. # Check whether --enable-presenter-console was given.
  3661. if test "${enable_presenter_console+set}" = set; then :
  3662. enableval=$enable_presenter_console;
  3663. fi
  3664. # Check whether --enable-pdfimport was given.
  3665. if test "${enable_pdfimport+set}" = set; then :
  3666. enableval=$enable_pdfimport;
  3667. fi
  3668. # Check whether --enable-wiki-publisher was given.
  3669. if test "${enable_wiki_publisher+set}" = set; then :
  3670. enableval=$enable_wiki_publisher;
  3671. fi
  3672. # Check whether --with-commons-codec-jar was given.
  3673. if test "${with_commons_codec_jar+set}" = set; then :
  3674. withval=$with_commons_codec_jar; COMMONS_CODEC_JAR="$withval"
  3675. fi
  3676. # Check whether --with-commons-lang-jar was given.
  3677. if test "${with_commons_lang_jar+set}" = set; then :
  3678. withval=$with_commons_lang_jar; COMMONS_LANG_JAR="$withval"
  3679. fi
  3680. # Check whether --with-commons-httpclient-jar was given.
  3681. if test "${with_commons_httpclient_jar+set}" = set; then :
  3682. withval=$with_commons_httpclient_jar; COMMONS_HTTPCLIENT_JAR="$withval"
  3683. fi
  3684. # Check whether --with-commons-logging-jar was given.
  3685. if test "${with_commons_logging_jar+set}" = set; then :
  3686. withval=$with_commons_logging_jar; COMMONS_LOGGING_JAR="$withval"
  3687. fi
  3688. # Check whether --with-servlet-api-jar was given.
  3689. if test "${with_servlet_api_jar+set}" = set; then :
  3690. withval=$with_servlet_api_jar; SERVLETAPI_JAR="$withval"
  3691. fi
  3692. # Check whether --enable-report-builder was given.
  3693. if test "${enable_report_builder+set}" = set; then :
  3694. enableval=$enable_report_builder;
  3695. fi
  3696. # Check whether --with-system-jfreereport was given.
  3697. if test "${with_system_jfreereport+set}" = set; then :
  3698. withval=$with_system_jfreereport;
  3699. fi
  3700. # Check whether --with-sac-jar was given.
  3701. if test "${with_sac_jar+set}" = set; then :
  3702. withval=$with_sac_jar; SAC_JAR="$withval"
  3703. fi
  3704. # Check whether --with-libxml-jar was given.
  3705. if test "${with_libxml_jar+set}" = set; then :
  3706. withval=$with_libxml_jar; LIBXML_JAR="$withval"
  3707. fi
  3708. # Check whether --with-flute-jar was given.
  3709. if test "${with_flute_jar+set}" = set; then :
  3710. withval=$with_flute_jar; FLUTE_JAR="$withval"
  3711. fi
  3712. # Check whether --with-jfreereport-jar was given.
  3713. if test "${with_jfreereport_jar+set}" = set; then :
  3714. withval=$with_jfreereport_jar; JFREEREPORT_JAR="$withval"
  3715. fi
  3716. # Check whether --with-liblayout-jar was given.
  3717. if test "${with_liblayout_jar+set}" = set; then :
  3718. withval=$with_liblayout_jar; LIBLAYOUT_JAR="$withval"
  3719. fi
  3720. # Check whether --with-libloader-jar was given.
  3721. if test "${with_libloader_jar+set}" = set; then :
  3722. withval=$with_libloader_jar; LIBLOADER_JAR="$withval"
  3723. fi
  3724. # Check whether --with-libloader-jar was given.
  3725. if test "${with_libloader_jar+set}" = set; then :
  3726. withval=$with_libloader_jar; LIBLOADER_JAR="$withval"
  3727. fi
  3728. # Check whether --with-libformula-jar was given.
  3729. if test "${with_libformula_jar+set}" = set; then :
  3730. withval=$with_libformula_jar; LIBFORMULA_JAR="$withval"
  3731. fi
  3732. # Check whether --with-librepository-jar was given.
  3733. if test "${with_librepository_jar+set}" = set; then :
  3734. withval=$with_librepository_jar; LIBREPOSITORY_JAR="$withval"
  3735. fi
  3736. # Check whether --with-libfonts-jar was given.
  3737. if test "${with_libfonts_jar+set}" = set; then :
  3738. withval=$with_libfonts_jar; LIBFONTS_JAR="$withval"
  3739. fi
  3740. # Check whether --with-libserializer-jar was given.
  3741. if test "${with_libserializer_jar+set}" = set; then :
  3742. withval=$with_libserializer_jar; LIBSERIALIZER_JAR="$withval"
  3743. fi
  3744. # Check whether --with-libbase-jar was given.
  3745. if test "${with_libbase_jar+set}" = set; then :
  3746. withval=$with_libbase_jar; LIBBASE_JAR="$withval"
  3747. fi
  3748. # Check whether --with-system-saxon was given.
  3749. if test "${with_system_saxon+set}" = set; then :
  3750. withval=$with_system_saxon;
  3751. fi
  3752. # Check whether --with-saxon-jar was given.
  3753. if test "${with_saxon_jar+set}" = set; then :
  3754. withval=$with_saxon_jar; SAXON_JAR="$withval"
  3755. fi
  3756. # Check whether --with-system-libxslt was given.
  3757. if test "${with_system_libxslt+set}" = set; then :
  3758. withval=$with_system_libxslt;
  3759. fi
  3760. # Check whether --with-system-odbc was given.
  3761. if test "${with_system_odbc+set}" = set; then :
  3762. withval=$with_system_odbc;
  3763. fi
  3764. # Check whether --with-system-sane was given.
  3765. if test "${with_system_sane+set}" = set; then :
  3766. withval=$with_system_sane;
  3767. fi
  3768. # Check whether --with-system-xrender was given.
  3769. if test "${with_system_xrender+set}" = set; then :
  3770. withval=$with_system_xrender;
  3771. fi
  3772. # Check whether --with-system-curl was given.
  3773. if test "${with_system_curl+set}" = set; then :
  3774. withval=$with_system_curl;
  3775. fi
  3776. # Check whether --with-system-boost was given.
  3777. if test "${with_system_boost+set}" = set; then :
  3778. withval=$with_system_boost;
  3779. fi
  3780. # Check whether --with-system-vigra was given.
  3781. if test "${with_system_vigra+set}" = set; then :
  3782. withval=$with_system_vigra;
  3783. fi
  3784. # Check whether --enable-neon was given.
  3785. if test "${enable_neon+set}" = set; then :
  3786. enableval=$enable_neon;
  3787. fi
  3788. # Check whether --enable-Xaw was given.
  3789. if test "${enable_Xaw+set}" = set; then :
  3790. enableval=$enable_Xaw;
  3791. fi
  3792. # Check whether --with-system-neon was given.
  3793. if test "${with_system_neon+set}" = set; then :
  3794. withval=$with_system_neon;
  3795. fi
  3796. # Check whether --with-system-agg was given.
  3797. if test "${with_system_agg+set}" = set; then :
  3798. withval=$with_system_agg;
  3799. fi
  3800. # Check whether --with-system-hunspell was given.
  3801. if test "${with_system_hunspell+set}" = set; then :
  3802. withval=$with_system_hunspell;
  3803. fi
  3804. # Check whether --with-system-mythes was given.
  3805. if test "${with_system_mythes+set}" = set; then :
  3806. withval=$with_system_mythes;
  3807. fi
  3808. # Check whether --with-system-altlinuxhyph was given.
  3809. if test "${with_system_altlinuxhyph+set}" = set; then :
  3810. withval=$with_system_altlinuxhyph;
  3811. fi
  3812. # Check whether --with-system-lpsolve was given.
  3813. if test "${with_system_lpsolve+set}" = set; then :
  3814. withval=$with_system_lpsolve;
  3815. fi
  3816. # Check whether --with-system-mozilla was given.
  3817. if test "${with_system_mozilla+set}" = set; then :
  3818. withval=$with_system_mozilla; WITH_SYSTEM_MOZILLA=$withval
  3819. else
  3820. WITH_SYSTEM_MOZILLA=no
  3821. fi
  3822. # Check whether --with-stlport was given.
  3823. if test "${with_stlport+set}" = set; then :
  3824. withval=$with_stlport; WITH_STLPORT=$withval
  3825. else
  3826. WITH_STLPORT=auto
  3827. fi
  3828. # Check whether --with-jdk-home was given.
  3829. if test "${with_jdk_home+set}" = set; then :
  3830. withval=$with_jdk_home;
  3831. fi
  3832. # Check whether --with-gxx_include_path was given.
  3833. if test "${with_gxx_include_path+set}" = set; then :
  3834. withval=$with_gxx_include_path;
  3835. fi
  3836. # Check whether --with-java was given.
  3837. if test "${with_java+set}" = set; then :
  3838. withval=$with_java; if test "$withval" = "yes"; then WITH_JAVA=java; else WITH_JAVA=$withval; fi
  3839. else
  3840. WITH_JAVA=java
  3841. fi
  3842. # Check whether --enable-gcjaot was given.
  3843. if test "${enable_gcjaot+set}" = set; then :
  3844. enableval=$enable_gcjaot;
  3845. fi
  3846. # Check whether --with-ant-home was given.
  3847. if test "${with_ant_home+set}" = set; then :
  3848. withval=$with_ant_home;
  3849. fi
  3850. # Check whether --with-perl-home was given.
  3851. if test "${with_perl_home+set}" = set; then :
  3852. withval=$with_perl_home;
  3853. fi
  3854. # Check whether --with-cl-home was given.
  3855. if test "${with_cl_home+set}" = set; then :
  3856. withval=$with_cl_home;
  3857. fi
  3858. # Check whether --with-mspdb-path was given.
  3859. if test "${with_mspdb_path+set}" = set; then :
  3860. withval=$with_mspdb_path;
  3861. fi
  3862. # Check whether --with-midl-path was given.
  3863. if test "${with_midl_path+set}" = set; then :
  3864. withval=$with_midl_path;
  3865. fi
  3866. # Check whether --with-csc-path was given.
  3867. if test "${with_csc_path+set}" = set; then :
  3868. withval=$with_csc_path;
  3869. fi
  3870. # Check whether --with-nsis-path was given.
  3871. if test "${with_nsis_path+set}" = set; then :
  3872. withval=$with_nsis_path;
  3873. fi
  3874. # Check whether --with-frame-home was given.
  3875. if test "${with_frame_home+set}" = set; then :
  3876. withval=$with_frame_home;
  3877. fi
  3878. # Check whether --with-psdk-home was given.
  3879. if test "${with_psdk_home+set}" = set; then :
  3880. withval=$with_psdk_home;
  3881. fi
  3882. # Check whether --with-directx-home was given.
  3883. if test "${with_directx_home+set}" = set; then :
  3884. withval=$with_directx_home;
  3885. fi
  3886. # Check whether --with-mozilla-build was given.
  3887. if test "${with_mozilla_build+set}" = set; then :
  3888. withval=$with_mozilla_build; MOZILLABUILD=$withval
  3889. fi
  3890. # Check whether --with-local-solenv was given.
  3891. if test "${with_local_solenv+set}" = set; then :
  3892. withval=$with_local_solenv;
  3893. fi
  3894. # Check whether --with-local-solver was given.
  3895. if test "${with_local_solver+set}" = set; then :
  3896. withval=$with_local_solver;
  3897. fi
  3898. # Check whether --enable-check-only was given.
  3899. if test "${enable_check_only+set}" = set; then :
  3900. enableval=$enable_check_only;
  3901. fi
  3902. # Check whether --enable-ccache-skip was given.
  3903. if test "${enable_ccache_skip+set}" = set; then :
  3904. enableval=$enable_ccache_skip;
  3905. else
  3906. enable_ccache_skip=auto
  3907. fi
  3908. # Check whether --with-lang was given.
  3909. if test "${with_lang+set}" = set; then :
  3910. withval=$with_lang;
  3911. fi
  3912. # Check whether --with-poor-help-localizations was given.
  3913. if test "${with_poor_help_localizations+set}" = set; then :
  3914. withval=$with_poor_help_localizations;
  3915. fi
  3916. # Check whether --with-dict was given.
  3917. if test "${with_dict+set}" = set; then :
  3918. withval=$with_dict;
  3919. fi
  3920. # Check whether --with-intro-bitmaps was given.
  3921. if test "${with_intro_bitmaps+set}" = set; then :
  3922. withval=$with_intro_bitmaps;
  3923. fi
  3924. # Check whether --with-about-bitmaps was given.
  3925. if test "${with_about_bitmaps+set}" = set; then :
  3926. withval=$with_about_bitmaps;
  3927. fi
  3928. # Check whether --with-vendor was given.
  3929. if test "${with_vendor+set}" = set; then :
  3930. withval=$with_vendor;
  3931. fi
  3932. # Check whether --with-unix-wrapper was given.
  3933. if test "${with_unix_wrapper+set}" = set; then :
  3934. withval=$with_unix_wrapper;
  3935. fi
  3936. # Check whether --with-asm-home was given.
  3937. if test "${with_asm_home+set}" = set; then :
  3938. withval=$with_asm_home;
  3939. fi
  3940. # Check whether --with-os-version was given.
  3941. if test "${with_os_version+set}" = set; then :
  3942. withval=$with_os_version;
  3943. fi
  3944. # Check whether --with-unzip-home was given.
  3945. if test "${with_unzip_home+set}" = set; then :
  3946. withval=$with_unzip_home;
  3947. fi
  3948. # Check whether --with-zip-home was given.
  3949. if test "${with_zip_home+set}" = set; then :
  3950. withval=$with_zip_home;
  3951. fi
  3952. # Check whether --with-mingwin was given.
  3953. if test "${with_mingwin+set}" = set; then :
  3954. withval=$with_mingwin; WITH_MINGWIN=$withval
  3955. else
  3956. WITH_MINGWIN=0
  3957. fi
  3958. # Check whether --with-use-shell was given.
  3959. if test "${with_use_shell+set}" = set; then :
  3960. withval=$with_use_shell; with_use_shell=$withval
  3961. else
  3962. with_use_shell="tcsh"
  3963. fi
  3964. # Check whether --with-build-version was given.
  3965. if test "${with_build_version+set}" = set; then :
  3966. withval=$with_build_version; with_build_version=$withval
  3967. fi
  3968. # Check whether --with-alloc was given.
  3969. if test "${with_alloc+set}" = set; then :
  3970. withval=$with_alloc;
  3971. fi
  3972. # Check whether --enable-verbose was given.
  3973. if test "${enable_verbose+set}" = set; then :
  3974. enableval=$enable_verbose;
  3975. fi
  3976. BUILD_TYPE="OOo"
  3977. echo "********************************************************************"
  3978. echo "* *"
  3979. echo "* OpenOffice.org build configuration. *"
  3980. echo "* *"
  3981. echo "* The configure process checks your platform to see whether *"
  3982. echo "* you can build OpenOffice.org on it. *"
  3983. echo "* This process checks all pre-requisites and generates a file *"
  3984. echo "* containing the necessary environment variables. *"
  3985. echo "* Source this file after configure has ended successfully. *"
  3986. echo "* *"
  3987. echo "* Any warning that is generated during the configure process *"
  3988. echo "* must be taken into account since it can be a reason for *"
  3989. echo "* an unsuccessful build of OpenOffice.org *"
  3990. echo "* *"
  3991. echo "********************************************************************"
  3992. echo ""
  3993. echo "********************************************************************"
  3994. echo "* *"
  3995. echo "* Checking the platform pre-requisites. *"
  3996. echo "* *"
  3997. echo "********************************************************************"
  3998. echo ""
  3999. cat /dev/null > warn
  4000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4001. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4002. if test "${ac_cv_path_GREP+set}" = set; then :
  4003. $as_echo_n "(cached) " >&6
  4004. else
  4005. if test -z "$GREP"; then
  4006. ac_path_GREP_found=false
  4007. # Loop through the user's path and test for each of PROGNAME-LIST
  4008. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4009. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4010. do
  4011. IFS=$as_save_IFS
  4012. test -z "$as_dir" && as_dir=.
  4013. for ac_prog in grep ggrep; do
  4014. for ac_exec_ext in '' $ac_executable_extensions; do
  4015. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4016. { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  4017. # Check for GNU ac_path_GREP and select it if it is found.
  4018. # Check for GNU $ac_path_GREP
  4019. case `"$ac_path_GREP" --version 2>&1` in
  4020. *GNU*)
  4021. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4022. *)
  4023. ac_count=0
  4024. $as_echo_n 0123456789 >"conftest.in"
  4025. while :
  4026. do
  4027. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4028. mv "conftest.tmp" "conftest.in"
  4029. cp "conftest.in" "conftest.nl"
  4030. $as_echo 'GREP' >> "conftest.nl"
  4031. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4032. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4033. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4034. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4035. # Best one so far, save it but keep looking for a better one
  4036. ac_cv_path_GREP="$ac_path_GREP"
  4037. ac_path_GREP_max=$ac_count
  4038. fi
  4039. # 10*(2^10) chars as input seems more than enough
  4040. test $ac_count -gt 10 && break
  4041. done
  4042. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4043. esac
  4044. $ac_path_GREP_found && break 3
  4045. done
  4046. done
  4047. done
  4048. IFS=$as_save_IFS
  4049. if test -z "$ac_cv_path_GREP"; then
  4050. as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4051. fi
  4052. else
  4053. ac_cv_path_GREP=$GREP
  4054. fi
  4055. fi
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4057. $as_echo "$ac_cv_path_GREP" >&6; }
  4058. GREP="$ac_cv_path_GREP"
  4059. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4060. $as_echo_n "checking for egrep... " >&6; }
  4061. if test "${ac_cv_path_EGREP+set}" = set; then :
  4062. $as_echo_n "(cached) " >&6
  4063. else
  4064. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4065. then ac_cv_path_EGREP="$GREP -E"
  4066. else
  4067. if test -z "$EGREP"; then
  4068. ac_path_EGREP_found=false
  4069. # Loop through the user's path and test for each of PROGNAME-LIST
  4070. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4071. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4072. do
  4073. IFS=$as_save_IFS
  4074. test -z "$as_dir" && as_dir=.
  4075. for ac_prog in egrep; do
  4076. for ac_exec_ext in '' $ac_executable_extensions; do
  4077. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4078. { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  4079. # Check for GNU ac_path_EGREP and select it if it is found.
  4080. # Check for GNU $ac_path_EGREP
  4081. case `"$ac_path_EGREP" --version 2>&1` in
  4082. *GNU*)
  4083. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4084. *)
  4085. ac_count=0
  4086. $as_echo_n 0123456789 >"conftest.in"
  4087. while :
  4088. do
  4089. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4090. mv "conftest.tmp" "conftest.in"
  4091. cp "conftest.in" "conftest.nl"
  4092. $as_echo 'EGREP' >> "conftest.nl"
  4093. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4094. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4095. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4096. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4097. # Best one so far, save it but keep looking for a better one
  4098. ac_cv_path_EGREP="$ac_path_EGREP"
  4099. ac_path_EGREP_max=$ac_count
  4100. fi
  4101. # 10*(2^10) chars as input seems more than enough
  4102. test $ac_count -gt 10 && break
  4103. done
  4104. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4105. esac
  4106. $ac_path_EGREP_found && break 3
  4107. done
  4108. done
  4109. done
  4110. IFS=$as_save_IFS
  4111. if test -z "$ac_cv_path_EGREP"; then
  4112. as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4113. fi
  4114. else
  4115. ac_cv_path_EGREP=$EGREP
  4116. fi
  4117. fi
  4118. fi
  4119. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4120. $as_echo "$ac_cv_path_EGREP" >&6; }
  4121. EGREP="$ac_cv_path_EGREP"
  4122. for ac_prog in gawk mawk nawk awk
  4123. do
  4124. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4125. set dummy $ac_prog; ac_word=$2
  4126. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4127. $as_echo_n "checking for $ac_word... " >&6; }
  4128. if test "${ac_cv_prog_AWK+set}" = set; then :
  4129. $as_echo_n "(cached) " >&6
  4130. else
  4131. if test -n "$AWK"; then
  4132. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  4133. else
  4134. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4135. for as_dir in $PATH
  4136. do
  4137. IFS=$as_save_IFS
  4138. test -z "$as_dir" && as_dir=.
  4139. for ac_exec_ext in '' $ac_executable_extensions; do
  4140. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4141. ac_cv_prog_AWK="$ac_prog"
  4142. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4143. break 2
  4144. fi
  4145. done
  4146. done
  4147. IFS=$as_save_IFS
  4148. fi
  4149. fi
  4150. AWK=$ac_cv_prog_AWK
  4151. if test -n "$AWK"; then
  4152. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4153. $as_echo "$AWK" >&6; }
  4154. else
  4155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4156. $as_echo "no" >&6; }
  4157. fi
  4158. test -n "$AWK" && break
  4159. done
  4160. # Extract the first word of "$AWK", so it can be a program name with args.
  4161. set dummy $AWK; ac_word=$2
  4162. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4163. $as_echo_n "checking for $ac_word... " >&6; }
  4164. if test "${ac_cv_path_AWK+set}" = set; then :
  4165. $as_echo_n "(cached) " >&6
  4166. else
  4167. case $AWK in
  4168. [\\/]* | ?:[\\/]*)
  4169. ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
  4170. ;;
  4171. *)
  4172. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4173. for as_dir in $PATH
  4174. do
  4175. IFS=$as_save_IFS
  4176. test -z "$as_dir" && as_dir=.
  4177. for ac_exec_ext in '' $ac_executable_extensions; do
  4178. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4179. ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
  4180. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4181. break 2
  4182. fi
  4183. done
  4184. done
  4185. IFS=$as_save_IFS
  4186. ;;
  4187. esac
  4188. fi
  4189. AWK=$ac_cv_path_AWK
  4190. if test -n "$AWK"; then
  4191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  4192. $as_echo "$AWK" >&6; }
  4193. else
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4195. $as_echo "no" >&6; }
  4196. fi
  4197. if test -z "$AWK"; then
  4198. as_fn_error "install awk to run this script" "$LINENO" 5
  4199. fi
  4200. for ac_prog in sed
  4201. do
  4202. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4203. set dummy $ac_prog; ac_word=$2
  4204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4205. $as_echo_n "checking for $ac_word... " >&6; }
  4206. if test "${ac_cv_path_SED+set}" = set; then :
  4207. $as_echo_n "(cached) " >&6
  4208. else
  4209. case $SED in
  4210. [\\/]* | ?:[\\/]*)
  4211. ac_cv_path_SED="$SED" # Let the user override the test with a path.
  4212. ;;
  4213. *)
  4214. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4215. for as_dir in $PATH
  4216. do
  4217. IFS=$as_save_IFS
  4218. test -z "$as_dir" && as_dir=.
  4219. for ac_exec_ext in '' $ac_executable_extensions; do
  4220. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4221. ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
  4222. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4223. break 2
  4224. fi
  4225. done
  4226. done
  4227. IFS=$as_save_IFS
  4228. ;;
  4229. esac
  4230. fi
  4231. SED=$ac_cv_path_SED
  4232. if test -n "$SED"; then
  4233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
  4234. $as_echo "$SED" >&6; }
  4235. else
  4236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4237. $as_echo "no" >&6; }
  4238. fi
  4239. test -n "$SED" && break
  4240. done
  4241. if test -z "$SED"; then
  4242. as_fn_error "install sed to run this script" "$LINENO" 5
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for solenv environment" >&5
  4245. $as_echo_n "checking for solenv environment... " >&6; }
  4246. if test -z "$with_local_solenv"; then
  4247. LOCAL_SOLENV="DEFAULT"
  4248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: default" >&5
  4249. $as_echo "default" >&6; }
  4250. else
  4251. LOCAL_SOLENV=$with_local_solenv
  4252. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_local_solenv" >&5
  4253. $as_echo "$with_local_solenv" >&6; }
  4254. fi
  4255. if test "$LOCAL_SOLENV" = "DEFAULT"; then
  4256. _solenv="./solenv"
  4257. else
  4258. _solenv="$LOCAL_SOLENV"
  4259. fi
  4260. if test -e $_solenv/inc/minor.mk; then
  4261. # Get UPD number from ./solenv/inc/minor.mk
  4262. UPD="`grep RSCVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
  4263. SOURCEVERSION="`grep SOURCEVERSION= $_solenv/inc/minor.mk | $AWK -F"=" '{ print $2 }'`"
  4264. else
  4265. as_fn_error "$_solenv/inc/minor.mk missing but needed for architecture/os detecion and proper environment script generation..." "$LINENO" 5
  4266. fi
  4267. ac_aux_dir=
  4268. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  4269. for ac_t in install-sh install.sh shtool; do
  4270. if test -f "$ac_dir/$ac_t"; then
  4271. ac_aux_dir=$ac_dir
  4272. ac_install_sh="$ac_aux_dir/$ac_t -c"
  4273. break 2
  4274. fi
  4275. done
  4276. done
  4277. if test -z "$ac_aux_dir"; then
  4278. as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  4279. fi
  4280. # These three variables are undocumented and unsupported,
  4281. # and are intended to be withdrawn in a future Autoconf release.
  4282. # They can cause serious problems if a builder's source tree is in a directory
  4283. # whose full name contains unusual characters.
  4284. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  4285. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  4286. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  4287. # Make sure we can run config.sub.
  4288. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4289. as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4291. $as_echo_n "checking build system type... " >&6; }
  4292. if test "${ac_cv_build+set}" = set; then :
  4293. $as_echo_n "(cached) " >&6
  4294. else
  4295. ac_build_alias=$build_alias
  4296. test "x$ac_build_alias" = x &&
  4297. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4298. test "x$ac_build_alias" = x &&
  4299. as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  4300. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4301. as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4302. fi
  4303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4304. $as_echo "$ac_cv_build" >&6; }
  4305. case $ac_cv_build in
  4306. *-*-*) ;;
  4307. *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  4308. esac
  4309. build=$ac_cv_build
  4310. ac_save_IFS=$IFS; IFS='-'
  4311. set x $ac_cv_build
  4312. shift
  4313. build_cpu=$1
  4314. build_vendor=$2
  4315. shift; shift
  4316. # Remember, the first character of IFS is used to create $*,
  4317. # except with old shells:
  4318. build_os=$*
  4319. IFS=$ac_save_IFS
  4320. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4321. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4322. $as_echo_n "checking host system type... " >&6; }
  4323. if test "${ac_cv_host+set}" = set; then :
  4324. $as_echo_n "(cached) " >&6
  4325. else
  4326. if test "x$host_alias" = x; then
  4327. ac_cv_host=$ac_cv_build
  4328. else
  4329. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4330. as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4331. fi
  4332. fi
  4333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4334. $as_echo "$ac_cv_host" >&6; }
  4335. case $ac_cv_host in
  4336. *-*-*) ;;
  4337. *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  4338. esac
  4339. host=$ac_cv_host
  4340. ac_save_IFS=$IFS; IFS='-'
  4341. set x $ac_cv_host
  4342. shift
  4343. host_cpu=$1
  4344. host_vendor=$2
  4345. shift; shift
  4346. # Remember, the first character of IFS is used to create $*,
  4347. # except with old shells:
  4348. host_os=$*
  4349. IFS=$ac_save_IFS
  4350. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4351. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  4352. $as_echo_n "checking target system type... " >&6; }
  4353. if test "${ac_cv_target+set}" = set; then :
  4354. $as_echo_n "(cached) " >&6
  4355. else
  4356. if test "x$target_alias" = x; then
  4357. ac_cv_target=$ac_cv_host
  4358. else
  4359. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  4360. as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  4361. fi
  4362. fi
  4363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  4364. $as_echo "$ac_cv_target" >&6; }
  4365. case $ac_cv_target in
  4366. *-*-*) ;;
  4367. *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
  4368. esac
  4369. target=$ac_cv_target
  4370. ac_save_IFS=$IFS; IFS='-'
  4371. set x $ac_cv_target
  4372. shift
  4373. target_cpu=$1
  4374. target_vendor=$2
  4375. shift; shift
  4376. # Remember, the first character of IFS is used to create $*,
  4377. # except with old shells:
  4378. target_os=$*
  4379. IFS=$ac_save_IFS
  4380. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  4381. # The aliases save the names the user supplied, while $host etc.
  4382. # will get canonicalized.
  4383. test -n "$target_alias" &&
  4384. test "$program_prefix$program_suffix$program_transform_name" = \
  4385. NONENONEs,x,x, &&
  4386. program_prefix=${target_alias}-
  4387. if test "$build" != "$host" -o "$build" != "$target" \
  4388. -o "$host" != "$target"; then
  4389. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cross-compiling by any means is not supported (yet)!" >&5
  4390. $as_echo "$as_me: WARNING: cross-compiling by any means is not supported (yet)!" >&2;}
  4391. echo "cross-compiling by any means is not supported (yet)!" >> warn
  4392. fi
  4393. if echo "$build_os" | grep cygwin; then
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Cygwin version" >&5
  4395. $as_echo_n "checking Cygwin version... " >&6; }
  4396. CygwinVer=`uname -r`
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CygwinVer" >&5
  4398. $as_echo "$CygwinVer" >&6; }
  4399. if test "`echo $CygwinVer | $AWK -F . '{ print $1$2 }'`" -lt "15"; then
  4400. as_fn_error "You need at least Cygwin V1.5.x" "$LINENO" 5
  4401. fi
  4402. else
  4403. CygwinVer="false"
  4404. fi
  4405. case "$build_os" in
  4406. solaris*)
  4407. test_gtk=yes
  4408. test_cairo=yes
  4409. test_kde=yes
  4410. test_cups=yes
  4411. test_randr=yes
  4412. test_freetype=yes
  4413. _os=SunOS
  4414. # Extract the first word of "gtar", so it can be a program name with args.
  4415. set dummy gtar; ac_word=$2
  4416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4417. $as_echo_n "checking for $ac_word... " >&6; }
  4418. if test "${ac_cv_path_GNUTAR+set}" = set; then :
  4419. $as_echo_n "(cached) " >&6
  4420. else
  4421. case $GNUTAR in
  4422. [\\/]* | ?:[\\/]*)
  4423. ac_cv_path_GNUTAR="$GNUTAR" # Let the user override the test with a path.
  4424. ;;
  4425. *)
  4426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4427. as_dummy="$PATH:/usr/sfw/bin"
  4428. for as_dir in $as_dummy
  4429. do
  4430. IFS=$as_save_IFS
  4431. test -z "$as_dir" && as_dir=.
  4432. for ac_exec_ext in '' $ac_executable_extensions; do
  4433. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4434. ac_cv_path_GNUTAR="$as_dir/$ac_word$ac_exec_ext"
  4435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4436. break 2
  4437. fi
  4438. done
  4439. done
  4440. IFS=$as_save_IFS
  4441. ;;
  4442. esac
  4443. fi
  4444. GNUTAR=$ac_cv_path_GNUTAR
  4445. if test -n "$GNUTAR"; then
  4446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
  4447. $as_echo "$GNUTAR" >&6; }
  4448. else
  4449. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4450. $as_echo "no" >&6; }
  4451. fi
  4452. if test -z "$GNUTAR"; then
  4453. as_fn_error "gtar (gnu tar) not found but needed. Install it (SUN Freeware package)." "$LINENO" 5
  4454. fi
  4455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Solaris operating system release" >&5
  4456. $as_echo_n "checking the Solaris operating system release... " >&6; }
  4457. _os_release=`echo $build_os | $SED -e s/solaris2\.//`
  4458. if test "$_os_release" -lt "6"; then
  4459. as_fn_error "use solaris >= 6 to build OpenOffice.org" "$LINENO" 5
  4460. else
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($_os_release)" >&5
  4462. $as_echo "ok ($_os_release)" >&6; }
  4463. fi
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the processor type" >&5
  4465. $as_echo_n "checking the processor type... " >&6; }
  4466. if test "$build_cpu" = "sparc" -o "$build_cpu" = "i386"; then
  4467. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok ($build_cpu)" >&5
  4468. $as_echo "ok ($build_cpu)" >&6; }
  4469. else
  4470. as_fn_error "only sparc and i386 processors are supported" "$LINENO" 5
  4471. fi
  4472. ;;
  4473. linux-gnu*)
  4474. test_gtk=yes
  4475. test_cairo=yes
  4476. test_kde=yes
  4477. test_kde4=yes
  4478. test_cups=yes
  4479. test_randr=yes
  4480. test_freetype=yes
  4481. _os=Linux
  4482. ;;
  4483. gnu)
  4484. test_cups=no
  4485. _os=GNU
  4486. ;;
  4487. cygwin*) # Windows
  4488. test_cups=no
  4489. test_cairo=yes
  4490. test_freetype=no
  4491. _os=WINNT
  4492. ;;
  4493. darwin*) # Mac OS X
  4494. test_cups=yes
  4495. test_gtk=yes
  4496. test_cairo=yes
  4497. test_randr=no
  4498. test_freetype=no
  4499. _os=Darwin
  4500. if test "$enable_systray" = "yes" && test "$enable_gtk" != "no"; then
  4501. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >&5
  4502. $as_echo "$as_me: WARNING: Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >&2;}
  4503. echo "Disabling gtk-quickstarter - not supported on Mac. Use --disable-systray" >>warn
  4504. enable_systray=no
  4505. fi
  4506. ;;
  4507. os2*)
  4508. test_x=no
  4509. test_cups=no
  4510. test_randr=no
  4511. test_gtk=no
  4512. test_freetype=no
  4513. _os=OS2
  4514. ;;
  4515. freebsd*)
  4516. test_gtk=yes
  4517. test_cairo=yes
  4518. test_kde=yes
  4519. test_kde4=yes
  4520. test_cups=yes
  4521. test_randr=yes
  4522. test_freetype=yes
  4523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the FreeBSD operating system release" >&5
  4524. $as_echo_n "checking the FreeBSD operating system release... " >&6; }
  4525. if test -n "$with_os_version"; then
  4526. OSVERSION="$with_os_version"
  4527. else
  4528. OSVERSION=`/sbin/sysctl -n kern.osreldate`
  4529. fi
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found OSVERSION=$OSVERSION" >&5
  4531. $as_echo "found OSVERSION=$OSVERSION" >&6; }
  4532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which thread library to use" >&5
  4533. $as_echo_n "checking which thread library to use... " >&6; }
  4534. if test "$OSVERSION" -lt "500016"; then
  4535. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  4536. PTHREAD_LIBS="-pthread"
  4537. elif test "$OSVERSION" -lt "502102"; then
  4538. PTHREAD_CFLAGS="-D_THREAD_SAFE"
  4539. PTHREAD_LIBS="-lc_r"
  4540. else
  4541. PTHREAD_CFLAGS=""
  4542. PTHREAD_LIBS="-pthread"
  4543. fi
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_LIBS" >&5
  4545. $as_echo "$PTHREAD_LIBS" >&6; }
  4546. _os=FreeBSD
  4547. ;;
  4548. osf)
  4549. test_cups=no
  4550. test_randr=no
  4551. _os=OSF1
  4552. ;;
  4553. netbsd)
  4554. test_gtk=yes
  4555. test_cairo=yes
  4556. test_kde=yes
  4557. test_kde4=yes
  4558. test_cups=no
  4559. test_randr=yes
  4560. test_freetype=yes
  4561. PTHREAD_CFLAGS="-pthread"
  4562. PTHREAD_LIBS="-pthread -lpthread"
  4563. _os=NetBSD
  4564. ;;
  4565. aix*)
  4566. test_cups=no
  4567. test_randr=no
  4568. test_freetype=yes
  4569. PTHREAD_LIBS=-pthread
  4570. echo "AIX is an alpha port --- Use at own risk" >> warn
  4571. _os=AIX
  4572. ;;
  4573. *)
  4574. as_fn_error "$_os operating system is not suitable to build OpenOffice.org!" "$LINENO" 5
  4575. ;;
  4576. esac
  4577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable crashdump feature" >&5
  4578. $as_echo_n "checking whether to enable crashdump feature... " >&6; }
  4579. if test "$enable_crashdump" = "yes"; then
  4580. ENABLE_CRASHDUMP="TRUE"
  4581. BUILD_TYPE="$BUILD_TYPE CRASHREP"
  4582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4583. $as_echo "yes" >&6; }
  4584. else
  4585. ENABLE_CRASHDUMP=""
  4586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4587. $as_echo "no" >&6; }
  4588. fi
  4589. if test "$_os" = "WINNT"; then
  4590. BUILD_TYPE="$BUILD_TYPE TWAIN"
  4591. fi
  4592. if test "$_os" = "WINNT"; then
  4593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use the standard non-optimizing compiler" >&5
  4594. $as_echo_n "checking whether to use the standard non-optimizing compiler... " >&6; }
  4595. if test "$enable_cl_standard" = "" -o "$enable_cl_standard" = "no"; then
  4596. VC_STANDARD=""
  4597. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4598. $as_echo "no" >&6; }
  4599. else
  4600. VC_STANDARD="TRUE"
  4601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4602. $as_echo "yes" >&6; }
  4603. fi
  4604. fi
  4605. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to turn warnings to errors" >&5
  4606. $as_echo_n "checking whether to turn warnings to errors... " >&6; }
  4607. if test -n "$enable_werror" && test "$enable_werror" != "no"; then
  4608. ENABLE_WERROR="TRUE"
  4609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4610. $as_echo "yes" >&6; }
  4611. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Turning warnings to errors has no effect in modules or" >&5
  4612. $as_echo "$as_me: WARNING: Turning warnings to errors has no effect in modules or" >&2;}
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: on platforms where it has been disabled explicitely" >&5
  4614. $as_echo "$as_me: WARNING: on platforms where it has been disabled explicitely" >&2;}
  4615. echo "Turning warnings to errors has no effect in modules or on platforms where it has been disabled explicitely" >> warn
  4616. else
  4617. ENABLE_WERROR="FALSE"
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4619. $as_echo "no" >&6; }
  4620. fi
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to do a debug build" >&5
  4622. $as_echo_n "checking whether to do a debug build... " >&6; }
  4623. if test -n "$enable_debug" && test "$enable_debug" != "no"; then
  4624. ENABLE_DEBUG="TRUE"
  4625. if test -z "$enable_symbols"; then
  4626. enable_symbols="yes"
  4627. fi
  4628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4629. $as_echo "yes" >&6; }
  4630. else
  4631. ENABLE_DEBUG="FALSE"
  4632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4633. $as_echo "no" >&6; }
  4634. fi
  4635. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with additional debug utilities" >&5
  4636. $as_echo_n "checking whether to build with additional debug utilities... " >&6; }
  4637. if test -n "$enable_dbgutil" && test "$enable_dbgutil" != "no"; then
  4638. PROEXT=""
  4639. PRODUCT=""
  4640. PROFULLSWITCH=""
  4641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4642. $as_echo "yes" >&6; }
  4643. else
  4644. PRODUCT="full"
  4645. PROFULLSWITCH="product=full"
  4646. PROEXT=".pro"
  4647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, full product build" >&5
  4648. $as_echo "no, full product build" >&6; }
  4649. fi
  4650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include symbols into final build" >&5
  4651. $as_echo_n "checking whether to include symbols into final build... " >&6; }
  4652. if test -n "$enable_symbols" && test "$enable_symbols" != "no"; then
  4653. if test "$enable_symbols" = "yes" -o "$enable_symbols" = "TRUE"; then
  4654. ENABLE_SYMBOLS="TRUE"
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4656. $as_echo "yes" >&6; }
  4657. else
  4658. if test "$enable_symbols" = "SMALL" -o "$enable_symbols" = "small"; then
  4659. ENABLE_SYMBOLS="SMALL"
  4660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, small ones" >&5
  4661. $as_echo "yes, small ones" >&6; }
  4662. else if test "$enable_symbols" != "no" ; then
  4663. echo enable symbols is: $enable_symbols
  4664. as_fn_error "--enable-symbols only accepts yes, TRUE or SMALL as parameter." "$LINENO" 5
  4665. else
  4666. ENABLE_SYMBOLS=
  4667. fi
  4668. fi
  4669. fi
  4670. else
  4671. ENABLE_SYMBOLS=
  4672. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4673. $as_echo "no" >&6; }
  4674. fi
  4675. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to strip the solver or not." >&5
  4676. $as_echo_n "checking whether to strip the solver or not.... " >&6; }
  4677. if test -n "$enable_strip_solver"; then
  4678. if test "$enable_strip_solver" = "yes"; then
  4679. DISABLE_STRIP=
  4680. else if test "$enable_strip_solver" = "no"; then
  4681. DISABLE_STRIP="TRUE"
  4682. else
  4683. as_fn_error "--disable-strip-solver only accepts yes or no as parameter." "$LINENO" 5
  4684. fi
  4685. fi
  4686. else
  4687. if test -n "$ENABLE_SYMBOLS"; then
  4688. DISABLE_STRIP="TRUE"
  4689. else
  4690. DISABLE_STRIP=
  4691. fi
  4692. fi
  4693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable native CUPS support" >&5
  4694. $as_echo_n "checking whether to enable native CUPS support... " >&6; }
  4695. if test "$test_cups" = "yes" -a \( "$enable_cups" = "yes" -o "$enable_cups" = "TRUE" \) ; then
  4696. ENABLE_CUPS="TRUE"
  4697. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4698. $as_echo "yes" >&6; }
  4699. else
  4700. ENABLE_CUPS=""
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4702. $as_echo "no" >&6; }
  4703. fi
  4704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable fontconfig support" >&5
  4705. $as_echo_n "checking whether to enable fontconfig support... " >&6; }
  4706. if test "$_os" != "WINNT" -a "$_os" != "Darwin" -a \( "$enable_fontconfig" = "yes" -o "$enable_fontconfig" = "TRUE" \); then
  4707. ENABLE_FONTCONFIG="TRUE"
  4708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4709. $as_echo "yes" >&6; }
  4710. else
  4711. ENABLE_FONTCONFIG=""
  4712. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4713. $as_echo "no" >&6; }
  4714. fi
  4715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable filters for legacy binary file formats (StarOffice 5.2)" >&5
  4716. $as_echo_n "checking whether to enable filters for legacy binary file formats (StarOffice 5.2)... " >&6; }
  4717. if test "$enable_binfilter" = "no"; then
  4718. WITH_BINFILTER="NO"
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4720. $as_echo "no" >&6; }
  4721. else
  4722. WITH_BINFILTER="YES"
  4723. BUILD_TYPE="$BUILD_TYPE BINFILTER"
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4725. $as_echo "yes" >&6; }
  4726. fi
  4727. if test "$_os" = "WINNT"; then
  4728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use DirectX" >&5
  4729. $as_echo_n "checking whether to use DirectX... " >&6; }
  4730. if test "$enable_directx" = "yes" -o "$enable_directx" = "TRUE" -o "$enable_directx" = ""; then
  4731. ENABLE_DIRECTX="TRUE"
  4732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4733. $as_echo "yes" >&6; }
  4734. else
  4735. ENABLE_DIRECTX=""
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4737. $as_echo "no" >&6; }
  4738. fi
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ActiveX" >&5
  4740. $as_echo_n "checking whether to use ActiveX... " >&6; }
  4741. if test "$enable_activex" = "yes" -o "$enable_activex" = "TRUE" -o "$enable_activex" = ""; then
  4742. DISABLE_ACTIVEX=""
  4743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4744. $as_echo "yes" >&6; }
  4745. else
  4746. DISABLE_ACTIVEX="TRUE"
  4747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4748. $as_echo "no" >&6; }
  4749. fi
  4750. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use ATL" >&5
  4751. $as_echo_n "checking whether to use ATL... " >&6; }
  4752. if test "$enable_atl" = "yes" -o "$enable_atl" = "TRUE" -o "$enable_atl" = ""; then
  4753. DISABLE_ATL=""
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4755. $as_echo "yes" >&6; }
  4756. else
  4757. DISABLE_ATL="TRUE"
  4758. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4759. $as_echo "no" >&6; }
  4760. fi
  4761. fi
  4762. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use RPATH in shared libraries" >&5
  4763. $as_echo_n "checking whether to use RPATH in shared libraries... " >&6; }
  4764. if test "$enable_rpath" = "no"; then
  4765. ENABLE_RPATH="no"
  4766. else
  4767. ENABLE_RPATH="yes"
  4768. fi
  4769. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_RPATH" >&5
  4770. $as_echo "$ENABLE_RPATH" >&6; }
  4771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to include MySpell dictionaries" >&5
  4772. $as_echo_n "checking whether to include MySpell dictionaries... " >&6; }
  4773. if test -z "$with_myspell_dicts" || test "$with_myspell_dicts" = "yes"; then
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4775. $as_echo "yes" >&6; }
  4776. WITH_MYSPELL_DICTS=YES
  4777. BUILD_TYPE="$BUILD_TYPE DICTIONARIES"
  4778. else
  4779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4780. $as_echo "no" >&6; }
  4781. WITH_MYSPELL_DICTS=NO
  4782. fi
  4783. if test "$WITH_MYSPELL_DICTS" = "NO"; then
  4784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dicts from external paths" >&5
  4785. $as_echo_n "checking whether to use dicts from external paths... " >&6; }
  4786. if test -n "$with_system_dicts" -a "$with_system_dicts" = "yes"; then
  4787. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4788. $as_echo "yes" >&6; }
  4789. SYSTEM_DICTS=YES
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for spelling dictionary directory" >&5
  4791. $as_echo_n "checking for spelling dictionary directory... " >&6; }
  4792. if test -n "$with_external_dict_dir"; then
  4793. DICT_SYSTEM_DIR=file://$with_external_dict_dir
  4794. else
  4795. DICT_SYSTEM_DIR=file:///usr/share/hunspell
  4796. fi
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DICT_SYSTEM_DIR" >&5
  4798. $as_echo "$DICT_SYSTEM_DIR" >&6; }
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hyphenation patterns directory" >&5
  4800. $as_echo_n "checking for hyphenation patterns directory... " >&6; }
  4801. if test -n "$with_external_hyph_dir"; then
  4802. HYPH_SYSTEM_DIR=file://$with_external_hyph_dir
  4803. else
  4804. HYPH_SYSTEM_DIR=file:///usr/share/hyphen
  4805. fi
  4806. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HYPH_SYSTEM_DIR" >&5
  4807. $as_echo "$HYPH_SYSTEM_DIR" >&6; }
  4808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for thesaurus directory" >&5
  4809. $as_echo_n "checking for thesaurus directory... " >&6; }
  4810. if test -n "$with_external_thes_dir"; then
  4811. THES_SYSTEM_DIR=file://$with_external_thes_dir
  4812. else
  4813. THES_SYSTEM_DIR=file:///usr/share/mythes
  4814. fi
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THES_SYSTEM_DIR" >&5
  4816. $as_echo "$THES_SYSTEM_DIR" >&6; }
  4817. else
  4818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4819. $as_echo "no" >&6; }
  4820. SYSTEM_DICTS=NO
  4821. fi
  4822. fi
  4823. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which shell to use" >&5
  4824. $as_echo_n "checking which shell to use... " >&6; }
  4825. if test $_os = "WINNT"; then
  4826. if test "$with_use_shell" != "tcsh" -a "$with_use_shell" != "bash"; then
  4827. as_fn_error "only \"tcsh\" or \"bash\" are supported options" "$LINENO" 5
  4828. fi
  4829. if test -L $AWK -o -L `which awk` -o -L `which tar` -o -L `which gunzip` ; then
  4830. as_fn_error "$AWK, awk, tar or gunzip is a cygwin symlink!
  4831. Native windows programs cannot use cygwin symlinks. Remove the symbolic
  4832. link, and copy the program to the name of the link." "$LINENO" 5
  4833. fi
  4834. CC=`echo $CC | $SED "s/^guw.exe //"`
  4835. CXX=`echo $CXX | $SED "s/^guw.exe //"`
  4836. if test -n "$CC";then
  4837. if test "`$CC -dumpmachine 2>/dev/null | $SED -e 's/^.*-//'`" = "mingw32"; then
  4838. WITH_MINGWIN="yes"
  4839. fi
  4840. fi
  4841. if test "$WITH_MINGWIN" = "yes" ; then
  4842. if test "x$with_use_shell" = "x"; then
  4843. with_use_shell="tcsh"
  4844. fi
  4845. if test -z "$CC"; then
  4846. CC="gcc -mno-cygwin"
  4847. CXX="g++ -mno-cygwin"
  4848. fi
  4849. fi
  4850. elif test $_os = "OS2"; then
  4851. if test "$with_use_shell" != "tcsh"; then
  4852. as_fn_error "only \"tcsh\" is supported options" "$LINENO" 5
  4853. fi
  4854. else
  4855. if test "$with_use_shell" != "tcsh" -a "$with_use_shell" != "bash"; then
  4856. as_fn_error "only \"tcsh\" or \"bash\" are supported options" "$LINENO" 5
  4857. fi
  4858. fi
  4859. USE_SHELL="$with_use_shell"
  4860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_SHELL" >&5
  4861. $as_echo "$USE_SHELL" >&6; }
  4862. if test "$_os" = "WINNT" ; then
  4863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cygwin gcc/g++" >&5
  4864. $as_echo_n "checking for cygwin gcc/g++... " >&6; }
  4865. if which gcc > /dev/null && which g++ > /dev/null ; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  4867. $as_echo "found" >&6; }
  4868. else
  4869. as_fn_error "cygwin gcc and g++ are needed, please install them." "$LINENO" 5
  4870. fi
  4871. fi
  4872. if test "$with_use_shell" = "tcsh"; then
  4873. # Extract the first word of "tcsh", so it can be a program name with args.
  4874. set dummy tcsh; ac_word=$2
  4875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4876. $as_echo_n "checking for $ac_word... " >&6; }
  4877. if test "${ac_cv_path_SHELLPATH+set}" = set; then :
  4878. $as_echo_n "(cached) " >&6
  4879. else
  4880. case $SHELLPATH in
  4881. [\\/]* | ?:[\\/]*)
  4882. ac_cv_path_SHELLPATH="$SHELLPATH" # Let the user override the test with a path.
  4883. ;;
  4884. *)
  4885. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4886. for as_dir in $PATH
  4887. do
  4888. IFS=$as_save_IFS
  4889. test -z "$as_dir" && as_dir=.
  4890. for ac_exec_ext in '' $ac_executable_extensions; do
  4891. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4892. ac_cv_path_SHELLPATH="$as_dir/$ac_word$ac_exec_ext"
  4893. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4894. break 2
  4895. fi
  4896. done
  4897. done
  4898. IFS=$as_save_IFS
  4899. ;;
  4900. esac
  4901. fi
  4902. SHELLPATH=$ac_cv_path_SHELLPATH
  4903. if test -n "$SHELLPATH"; then
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELLPATH" >&5
  4905. $as_echo "$SHELLPATH" >&6; }
  4906. else
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4908. $as_echo "no" >&6; }
  4909. fi
  4910. if test -z "$SHELLPATH"; then
  4911. as_fn_error "tcsh not found in \$PATH" "$LINENO" 5
  4912. else
  4913. SHELLPATH=`echo $SHELLPATH | $SED -n "s/\/tcsh$//p"`
  4914. fi
  4915. elif test "$with_use_shell" = "bash"; then
  4916. # Extract the first word of "bash", so it can be a program name with args.
  4917. set dummy bash; ac_word=$2
  4918. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4919. $as_echo_n "checking for $ac_word... " >&6; }
  4920. if test "${ac_cv_path_SHELLPATH+set}" = set; then :
  4921. $as_echo_n "(cached) " >&6
  4922. else
  4923. case $SHELLPATH in
  4924. [\\/]* | ?:[\\/]*)
  4925. ac_cv_path_SHELLPATH="$SHELLPATH" # Let the user override the test with a path.
  4926. ;;
  4927. *)
  4928. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4929. for as_dir in $PATH
  4930. do
  4931. IFS=$as_save_IFS
  4932. test -z "$as_dir" && as_dir=.
  4933. for ac_exec_ext in '' $ac_executable_extensions; do
  4934. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  4935. ac_cv_path_SHELLPATH="$as_dir/$ac_word$ac_exec_ext"
  4936. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4937. break 2
  4938. fi
  4939. done
  4940. done
  4941. IFS=$as_save_IFS
  4942. ;;
  4943. esac
  4944. fi
  4945. SHELLPATH=$ac_cv_path_SHELLPATH
  4946. if test -n "$SHELLPATH"; then
  4947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SHELLPATH" >&5
  4948. $as_echo "$SHELLPATH" >&6; }
  4949. else
  4950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4951. $as_echo "no" >&6; }
  4952. fi
  4953. if test -z "$SHELLPATH"; then
  4954. as_fn_error "bash not found in \$PATH" "$LINENO" 5
  4955. else
  4956. SHELLPATH=`echo $SHELLPATH | $SED -n "s/\/bash$//p"`
  4957. fi
  4958. else
  4959. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Windows/OS/2 4NT builds don't test for the shell" >&5
  4960. $as_echo "$as_me: WARNING: Windows/OS/2 4NT builds don't test for the shell" >&2;}
  4961. SHELLPATH="NO_SHELLPATH_NEEDED"
  4962. fi
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc home" >&5
  4964. $as_echo_n "checking gcc home... " >&6; }
  4965. if test -z "$with_gcc_home"; then
  4966. GCC_HOME=`which gcc | $SED -e s,/bin/gcc,,`
  4967. else
  4968. GCC_HOME="$with_gcc_home"
  4969. fi
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCC_HOME" >&5
  4971. $as_echo "$GCC_HOME" >&6; }
  4972. if test -n "$with_gcc_home"; then
  4973. if test -z "$CC"; then
  4974. CC="$with_gcc_home/bin/gcc"
  4975. fi
  4976. fi
  4977. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  4978. ac_ext=c
  4979. ac_cpp='$CPP $CPPFLAGS'
  4980. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4981. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4982. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4983. if test -n "$ac_tool_prefix"; then
  4984. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4985. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4987. $as_echo_n "checking for $ac_word... " >&6; }
  4988. if test "${ac_cv_prog_CC+set}" = set; then :
  4989. $as_echo_n "(cached) " >&6
  4990. else
  4991. if test -n "$CC"; then
  4992. ac_cv_prog_CC="$CC" # Let the user override the test.
  4993. else
  4994. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4995. for as_dir in $PATH
  4996. do
  4997. IFS=$as_save_IFS
  4998. test -z "$as_dir" && as_dir=.
  4999. for ac_exec_ext in '' $ac_executable_extensions; do
  5000. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5001. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  5002. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5003. break 2
  5004. fi
  5005. done
  5006. done
  5007. IFS=$as_save_IFS
  5008. fi
  5009. fi
  5010. CC=$ac_cv_prog_CC
  5011. if test -n "$CC"; then
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5013. $as_echo "$CC" >&6; }
  5014. else
  5015. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5016. $as_echo "no" >&6; }
  5017. fi
  5018. fi
  5019. if test -z "$ac_cv_prog_CC"; then
  5020. ac_ct_CC=$CC
  5021. # Extract the first word of "gcc", so it can be a program name with args.
  5022. set dummy gcc; ac_word=$2
  5023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5024. $as_echo_n "checking for $ac_word... " >&6; }
  5025. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  5026. $as_echo_n "(cached) " >&6
  5027. else
  5028. if test -n "$ac_ct_CC"; then
  5029. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5030. else
  5031. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5032. for as_dir in $PATH
  5033. do
  5034. IFS=$as_save_IFS
  5035. test -z "$as_dir" && as_dir=.
  5036. for ac_exec_ext in '' $ac_executable_extensions; do
  5037. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5038. ac_cv_prog_ac_ct_CC="gcc"
  5039. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5040. break 2
  5041. fi
  5042. done
  5043. done
  5044. IFS=$as_save_IFS
  5045. fi
  5046. fi
  5047. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5048. if test -n "$ac_ct_CC"; then
  5049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5050. $as_echo "$ac_ct_CC" >&6; }
  5051. else
  5052. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5053. $as_echo "no" >&6; }
  5054. fi
  5055. if test "x$ac_ct_CC" = x; then
  5056. CC=""
  5057. else
  5058. case $cross_compiling:$ac_tool_warned in
  5059. yes:)
  5060. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5061. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5062. ac_tool_warned=yes ;;
  5063. esac
  5064. CC=$ac_ct_CC
  5065. fi
  5066. else
  5067. CC="$ac_cv_prog_CC"
  5068. fi
  5069. if test -z "$CC"; then
  5070. if test -n "$ac_tool_prefix"; then
  5071. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  5072. set dummy ${ac_tool_prefix}cc; ac_word=$2
  5073. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5074. $as_echo_n "checking for $ac_word... " >&6; }
  5075. if test "${ac_cv_prog_CC+set}" = set; then :
  5076. $as_echo_n "(cached) " >&6
  5077. else
  5078. if test -n "$CC"; then
  5079. ac_cv_prog_CC="$CC" # Let the user override the test.
  5080. else
  5081. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5082. for as_dir in $PATH
  5083. do
  5084. IFS=$as_save_IFS
  5085. test -z "$as_dir" && as_dir=.
  5086. for ac_exec_ext in '' $ac_executable_extensions; do
  5087. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5088. ac_cv_prog_CC="${ac_tool_prefix}cc"
  5089. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5090. break 2
  5091. fi
  5092. done
  5093. done
  5094. IFS=$as_save_IFS
  5095. fi
  5096. fi
  5097. CC=$ac_cv_prog_CC
  5098. if test -n "$CC"; then
  5099. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5100. $as_echo "$CC" >&6; }
  5101. else
  5102. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5103. $as_echo "no" >&6; }
  5104. fi
  5105. fi
  5106. fi
  5107. if test -z "$CC"; then
  5108. # Extract the first word of "cc", so it can be a program name with args.
  5109. set dummy cc; ac_word=$2
  5110. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5111. $as_echo_n "checking for $ac_word... " >&6; }
  5112. if test "${ac_cv_prog_CC+set}" = set; then :
  5113. $as_echo_n "(cached) " >&6
  5114. else
  5115. if test -n "$CC"; then
  5116. ac_cv_prog_CC="$CC" # Let the user override the test.
  5117. else
  5118. ac_prog_rejected=no
  5119. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5120. for as_dir in $PATH
  5121. do
  5122. IFS=$as_save_IFS
  5123. test -z "$as_dir" && as_dir=.
  5124. for ac_exec_ext in '' $ac_executable_extensions; do
  5125. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5126. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  5127. ac_prog_rejected=yes
  5128. continue
  5129. fi
  5130. ac_cv_prog_CC="cc"
  5131. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5132. break 2
  5133. fi
  5134. done
  5135. done
  5136. IFS=$as_save_IFS
  5137. if test $ac_prog_rejected = yes; then
  5138. # We found a bogon in the path, so make sure we never use it.
  5139. set dummy $ac_cv_prog_CC
  5140. shift
  5141. if test $# != 0; then
  5142. # We chose a different compiler from the bogus one.
  5143. # However, it has the same basename, so the bogon will be chosen
  5144. # first if we set CC to just the basename; use the full file name.
  5145. shift
  5146. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  5147. fi
  5148. fi
  5149. fi
  5150. fi
  5151. CC=$ac_cv_prog_CC
  5152. if test -n "$CC"; then
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5154. $as_echo "$CC" >&6; }
  5155. else
  5156. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5157. $as_echo "no" >&6; }
  5158. fi
  5159. fi
  5160. if test -z "$CC"; then
  5161. if test -n "$ac_tool_prefix"; then
  5162. for ac_prog in cl.exe
  5163. do
  5164. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5165. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5166. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5167. $as_echo_n "checking for $ac_word... " >&6; }
  5168. if test "${ac_cv_prog_CC+set}" = set; then :
  5169. $as_echo_n "(cached) " >&6
  5170. else
  5171. if test -n "$CC"; then
  5172. ac_cv_prog_CC="$CC" # Let the user override the test.
  5173. else
  5174. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5175. for as_dir in $PATH
  5176. do
  5177. IFS=$as_save_IFS
  5178. test -z "$as_dir" && as_dir=.
  5179. for ac_exec_ext in '' $ac_executable_extensions; do
  5180. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5181. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  5182. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5183. break 2
  5184. fi
  5185. done
  5186. done
  5187. IFS=$as_save_IFS
  5188. fi
  5189. fi
  5190. CC=$ac_cv_prog_CC
  5191. if test -n "$CC"; then
  5192. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  5193. $as_echo "$CC" >&6; }
  5194. else
  5195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5196. $as_echo "no" >&6; }
  5197. fi
  5198. test -n "$CC" && break
  5199. done
  5200. fi
  5201. if test -z "$CC"; then
  5202. ac_ct_CC=$CC
  5203. for ac_prog in cl.exe
  5204. do
  5205. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5206. set dummy $ac_prog; ac_word=$2
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5208. $as_echo_n "checking for $ac_word... " >&6; }
  5209. if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  5210. $as_echo_n "(cached) " >&6
  5211. else
  5212. if test -n "$ac_ct_CC"; then
  5213. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  5214. else
  5215. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5216. for as_dir in $PATH
  5217. do
  5218. IFS=$as_save_IFS
  5219. test -z "$as_dir" && as_dir=.
  5220. for ac_exec_ext in '' $ac_executable_extensions; do
  5221. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5222. ac_cv_prog_ac_ct_CC="$ac_prog"
  5223. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5224. break 2
  5225. fi
  5226. done
  5227. done
  5228. IFS=$as_save_IFS
  5229. fi
  5230. fi
  5231. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  5232. if test -n "$ac_ct_CC"; then
  5233. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  5234. $as_echo "$ac_ct_CC" >&6; }
  5235. else
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5237. $as_echo "no" >&6; }
  5238. fi
  5239. test -n "$ac_ct_CC" && break
  5240. done
  5241. if test "x$ac_ct_CC" = x; then
  5242. CC=""
  5243. else
  5244. case $cross_compiling:$ac_tool_warned in
  5245. yes:)
  5246. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5247. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5248. ac_tool_warned=yes ;;
  5249. esac
  5250. CC=$ac_ct_CC
  5251. fi
  5252. fi
  5253. fi
  5254. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5255. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5256. as_fn_error "no acceptable C compiler found in \$PATH
  5257. See \`config.log' for more details." "$LINENO" 5; }
  5258. # Provide some information about the compiler.
  5259. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  5260. set X $ac_compile
  5261. ac_compiler=$2
  5262. for ac_option in --version -v -V -qversion; do
  5263. { { ac_try="$ac_compiler $ac_option >&5"
  5264. case "(($ac_try" in
  5265. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5266. *) ac_try_echo=$ac_try;;
  5267. esac
  5268. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5269. $as_echo "$ac_try_echo"; } >&5
  5270. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  5271. ac_status=$?
  5272. if test -s conftest.err; then
  5273. sed '10a\
  5274. ... rest of stderr output deleted ...
  5275. 10q' conftest.err >conftest.er1
  5276. cat conftest.er1 >&5
  5277. rm -f conftest.er1 conftest.err
  5278. fi
  5279. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5280. test $ac_status = 0; }
  5281. done
  5282. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5283. /* end confdefs.h. */
  5284. #include <stdio.h>
  5285. int
  5286. main ()
  5287. {
  5288. FILE *f = fopen ("conftest.out", "w");
  5289. return ferror (f) || fclose (f) != 0;
  5290. ;
  5291. return 0;
  5292. }
  5293. _ACEOF
  5294. ac_clean_files_save=$ac_clean_files
  5295. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
  5296. # Try to create an executable without -o first, disregard a.out.
  5297. # It will help us diagnose broken compilers, and finding out an intuition
  5298. # of exeext.
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  5300. $as_echo_n "checking for C compiler default output file name... " >&6; }
  5301. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  5302. # The possible output files:
  5303. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  5304. ac_rmfiles=
  5305. for ac_file in $ac_files
  5306. do
  5307. case $ac_file in
  5308. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5309. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  5310. esac
  5311. done
  5312. rm -f $ac_rmfiles
  5313. if { { ac_try="$ac_link_default"
  5314. case "(($ac_try" in
  5315. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5316. *) ac_try_echo=$ac_try;;
  5317. esac
  5318. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5319. $as_echo "$ac_try_echo"; } >&5
  5320. (eval "$ac_link_default") 2>&5
  5321. ac_status=$?
  5322. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5323. test $ac_status = 0; }; then :
  5324. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  5325. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  5326. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  5327. # so that the user can short-circuit this test for compilers unknown to
  5328. # Autoconf.
  5329. for ac_file in $ac_files ''
  5330. do
  5331. test -f "$ac_file" || continue
  5332. case $ac_file in
  5333. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  5334. ;;
  5335. [ab].out )
  5336. # We found the default executable, but exeext='' is most
  5337. # certainly right.
  5338. break;;
  5339. *.* )
  5340. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  5341. then :; else
  5342. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5343. fi
  5344. # We set ac_cv_exeext here because the later test for it is not
  5345. # safe: cross compilers may not add the suffix if given an `-o'
  5346. # argument, so we may need to know it at that point already.
  5347. # Even if this section looks crufty: it has the advantage of
  5348. # actually working.
  5349. break;;
  5350. * )
  5351. break;;
  5352. esac
  5353. done
  5354. test "$ac_cv_exeext" = no && ac_cv_exeext=
  5355. else
  5356. ac_file=''
  5357. fi
  5358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  5359. $as_echo "$ac_file" >&6; }
  5360. if test -z "$ac_file"; then :
  5361. $as_echo "$as_me: failed program was:" >&5
  5362. sed 's/^/| /' conftest.$ac_ext >&5
  5363. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5364. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5365. { as_fn_set_status 77
  5366. as_fn_error "C compiler cannot create executables
  5367. See \`config.log' for more details." "$LINENO" 5; }; }
  5368. fi
  5369. ac_exeext=$ac_cv_exeext
  5370. # Check that the compiler produces executables we can run. If not, either
  5371. # the compiler is broken, or we cross compile.
  5372. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  5373. $as_echo_n "checking whether the C compiler works... " >&6; }
  5374. # If not cross compiling, check that we can run a simple program.
  5375. if test "$cross_compiling" != yes; then
  5376. if { ac_try='./$ac_file'
  5377. { { case "(($ac_try" in
  5378. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5379. *) ac_try_echo=$ac_try;;
  5380. esac
  5381. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5382. $as_echo "$ac_try_echo"; } >&5
  5383. (eval "$ac_try") 2>&5
  5384. ac_status=$?
  5385. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5386. test $ac_status = 0; }; }; then
  5387. cross_compiling=no
  5388. else
  5389. if test "$cross_compiling" = maybe; then
  5390. cross_compiling=yes
  5391. else
  5392. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5393. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5394. as_fn_error "cannot run C compiled programs.
  5395. If you meant to cross compile, use \`--host'.
  5396. See \`config.log' for more details." "$LINENO" 5; }
  5397. fi
  5398. fi
  5399. fi
  5400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5401. $as_echo "yes" >&6; }
  5402. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
  5403. ac_clean_files=$ac_clean_files_save
  5404. # Check that the compiler produces executables we can run. If not, either
  5405. # the compiler is broken, or we cross compile.
  5406. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  5407. $as_echo_n "checking whether we are cross compiling... " >&6; }
  5408. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  5409. $as_echo "$cross_compiling" >&6; }
  5410. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  5411. $as_echo_n "checking for suffix of executables... " >&6; }
  5412. if { { ac_try="$ac_link"
  5413. case "(($ac_try" in
  5414. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5415. *) ac_try_echo=$ac_try;;
  5416. esac
  5417. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5418. $as_echo "$ac_try_echo"; } >&5
  5419. (eval "$ac_link") 2>&5
  5420. ac_status=$?
  5421. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5422. test $ac_status = 0; }; then :
  5423. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  5424. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  5425. # work properly (i.e., refer to `conftest.exe'), while it won't with
  5426. # `rm'.
  5427. for ac_file in conftest.exe conftest conftest.*; do
  5428. test -f "$ac_file" || continue
  5429. case $ac_file in
  5430. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  5431. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  5432. break;;
  5433. * ) break;;
  5434. esac
  5435. done
  5436. else
  5437. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5438. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5439. as_fn_error "cannot compute suffix of executables: cannot compile and link
  5440. See \`config.log' for more details." "$LINENO" 5; }
  5441. fi
  5442. rm -f conftest$ac_cv_exeext
  5443. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  5444. $as_echo "$ac_cv_exeext" >&6; }
  5445. rm -f conftest.$ac_ext
  5446. EXEEXT=$ac_cv_exeext
  5447. ac_exeext=$EXEEXT
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  5449. $as_echo_n "checking for suffix of object files... " >&6; }
  5450. if test "${ac_cv_objext+set}" = set; then :
  5451. $as_echo_n "(cached) " >&6
  5452. else
  5453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5454. /* end confdefs.h. */
  5455. int
  5456. main ()
  5457. {
  5458. ;
  5459. return 0;
  5460. }
  5461. _ACEOF
  5462. rm -f conftest.o conftest.obj
  5463. if { { ac_try="$ac_compile"
  5464. case "(($ac_try" in
  5465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  5466. *) ac_try_echo=$ac_try;;
  5467. esac
  5468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  5469. $as_echo "$ac_try_echo"; } >&5
  5470. (eval "$ac_compile") 2>&5
  5471. ac_status=$?
  5472. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5473. test $ac_status = 0; }; then :
  5474. for ac_file in conftest.o conftest.obj conftest.*; do
  5475. test -f "$ac_file" || continue;
  5476. case $ac_file in
  5477. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  5478. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  5479. break;;
  5480. esac
  5481. done
  5482. else
  5483. $as_echo "$as_me: failed program was:" >&5
  5484. sed 's/^/| /' conftest.$ac_ext >&5
  5485. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5486. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5487. as_fn_error "cannot compute suffix of object files: cannot compile
  5488. See \`config.log' for more details." "$LINENO" 5; }
  5489. fi
  5490. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  5491. fi
  5492. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  5493. $as_echo "$ac_cv_objext" >&6; }
  5494. OBJEXT=$ac_cv_objext
  5495. ac_objext=$OBJEXT
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  5497. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  5498. if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5502. /* end confdefs.h. */
  5503. int
  5504. main ()
  5505. {
  5506. #ifndef __GNUC__
  5507. choke me
  5508. #endif
  5509. ;
  5510. return 0;
  5511. }
  5512. _ACEOF
  5513. if ac_fn_c_try_compile "$LINENO"; then :
  5514. ac_compiler_gnu=yes
  5515. else
  5516. ac_compiler_gnu=no
  5517. fi
  5518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5519. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  5520. fi
  5521. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  5522. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  5523. if test $ac_compiler_gnu = yes; then
  5524. GCC=yes
  5525. else
  5526. GCC=
  5527. fi
  5528. ac_test_CFLAGS=${CFLAGS+set}
  5529. ac_save_CFLAGS=$CFLAGS
  5530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  5531. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  5532. if test "${ac_cv_prog_cc_g+set}" = set; then :
  5533. $as_echo_n "(cached) " >&6
  5534. else
  5535. ac_save_c_werror_flag=$ac_c_werror_flag
  5536. ac_c_werror_flag=yes
  5537. ac_cv_prog_cc_g=no
  5538. CFLAGS="-g"
  5539. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5540. /* end confdefs.h. */
  5541. int
  5542. main ()
  5543. {
  5544. ;
  5545. return 0;
  5546. }
  5547. _ACEOF
  5548. if ac_fn_c_try_compile "$LINENO"; then :
  5549. ac_cv_prog_cc_g=yes
  5550. else
  5551. CFLAGS=""
  5552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5553. /* end confdefs.h. */
  5554. int
  5555. main ()
  5556. {
  5557. ;
  5558. return 0;
  5559. }
  5560. _ACEOF
  5561. if ac_fn_c_try_compile "$LINENO"; then :
  5562. else
  5563. ac_c_werror_flag=$ac_save_c_werror_flag
  5564. CFLAGS="-g"
  5565. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5566. /* end confdefs.h. */
  5567. int
  5568. main ()
  5569. {
  5570. ;
  5571. return 0;
  5572. }
  5573. _ACEOF
  5574. if ac_fn_c_try_compile "$LINENO"; then :
  5575. ac_cv_prog_cc_g=yes
  5576. fi
  5577. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5578. fi
  5579. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5580. fi
  5581. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5582. ac_c_werror_flag=$ac_save_c_werror_flag
  5583. fi
  5584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  5585. $as_echo "$ac_cv_prog_cc_g" >&6; }
  5586. if test "$ac_test_CFLAGS" = set; then
  5587. CFLAGS=$ac_save_CFLAGS
  5588. elif test $ac_cv_prog_cc_g = yes; then
  5589. if test "$GCC" = yes; then
  5590. CFLAGS="-g -O2"
  5591. else
  5592. CFLAGS="-g"
  5593. fi
  5594. else
  5595. if test "$GCC" = yes; then
  5596. CFLAGS="-O2"
  5597. else
  5598. CFLAGS=
  5599. fi
  5600. fi
  5601. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  5602. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  5603. if test "${ac_cv_prog_cc_c89+set}" = set; then :
  5604. $as_echo_n "(cached) " >&6
  5605. else
  5606. ac_cv_prog_cc_c89=no
  5607. ac_save_CC=$CC
  5608. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5609. /* end confdefs.h. */
  5610. #include <stdarg.h>
  5611. #include <stdio.h>
  5612. #include <sys/types.h>
  5613. #include <sys/stat.h>
  5614. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  5615. struct buf { int x; };
  5616. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  5617. static char *e (p, i)
  5618. char **p;
  5619. int i;
  5620. {
  5621. return p[i];
  5622. }
  5623. static char *f (char * (*g) (char **, int), char **p, ...)
  5624. {
  5625. char *s;
  5626. va_list v;
  5627. va_start (v,p);
  5628. s = g (p, va_arg (v,int));
  5629. va_end (v);
  5630. return s;
  5631. }
  5632. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  5633. function prototypes and stuff, but not '\xHH' hex character constants.
  5634. These don't provoke an error unfortunately, instead are silently treated
  5635. as 'x'. The following induces an error, until -std is added to get
  5636. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  5637. array size at least. It's necessary to write '\x00'==0 to get something
  5638. that's true only with -std. */
  5639. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  5640. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  5641. inside strings and character constants. */
  5642. #define FOO(x) 'x'
  5643. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  5644. int test (int i, double x);
  5645. struct s1 {int (*f) (int a);};
  5646. struct s2 {int (*f) (double a);};
  5647. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  5648. int argc;
  5649. char **argv;
  5650. int
  5651. main ()
  5652. {
  5653. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  5654. ;
  5655. return 0;
  5656. }
  5657. _ACEOF
  5658. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  5659. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  5660. do
  5661. CC="$ac_save_CC $ac_arg"
  5662. if ac_fn_c_try_compile "$LINENO"; then :
  5663. ac_cv_prog_cc_c89=$ac_arg
  5664. fi
  5665. rm -f core conftest.err conftest.$ac_objext
  5666. test "x$ac_cv_prog_cc_c89" != "xno" && break
  5667. done
  5668. rm -f conftest.$ac_ext
  5669. CC=$ac_save_CC
  5670. fi
  5671. # AC_CACHE_VAL
  5672. case "x$ac_cv_prog_cc_c89" in
  5673. x)
  5674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  5675. $as_echo "none needed" >&6; } ;;
  5676. xno)
  5677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  5678. $as_echo "unsupported" >&6; } ;;
  5679. *)
  5680. CC="$CC $ac_cv_prog_cc_c89"
  5681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  5682. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  5683. esac
  5684. if test "x$ac_cv_prog_cc_c89" != xno; then :
  5685. fi
  5686. ac_ext=c
  5687. ac_cpp='$CPP $CPPFLAGS'
  5688. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5689. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5690. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5691. fi
  5692. COMPATH=`dirname "$CC"`
  5693. if test "$COMPATH" = "." ; then
  5694. for ac_prog in $CC
  5695. do
  5696. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5697. set dummy $ac_prog; ac_word=$2
  5698. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5699. $as_echo_n "checking for $ac_word... " >&6; }
  5700. if test "${ac_cv_path_COMPATH+set}" = set; then :
  5701. $as_echo_n "(cached) " >&6
  5702. else
  5703. case $COMPATH in
  5704. [\\/]* | ?:[\\/]*)
  5705. ac_cv_path_COMPATH="$COMPATH" # Let the user override the test with a path.
  5706. ;;
  5707. *)
  5708. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5709. for as_dir in $PATH
  5710. do
  5711. IFS=$as_save_IFS
  5712. test -z "$as_dir" && as_dir=.
  5713. for ac_exec_ext in '' $ac_executable_extensions; do
  5714. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5715. ac_cv_path_COMPATH="$as_dir/$ac_word$ac_exec_ext"
  5716. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5717. break 2
  5718. fi
  5719. done
  5720. done
  5721. IFS=$as_save_IFS
  5722. ;;
  5723. esac
  5724. fi
  5725. COMPATH=$ac_cv_path_COMPATH
  5726. if test -n "$COMPATH"; then
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPATH" >&5
  5728. $as_echo "$COMPATH" >&6; }
  5729. else
  5730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5731. $as_echo "no" >&6; }
  5732. fi
  5733. test -n "$COMPATH" && break
  5734. done
  5735. COMPATH=`echo $COMPATH | $SED "s@/[^/:]*\\\$@@"`;
  5736. fi
  5737. COMPATH=`echo $COMPATH | $SED "s@/[Bb][Ii][Nn]\\\$@@"`;
  5738. echo $COMPATH
  5739. GCCVER=20995
  5740. if test \( "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes" \) -a "$GCC" = "yes"; then
  5741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU gcc compiler version" >&5
  5742. $as_echo_n "checking the GNU gcc compiler version... " >&6; }
  5743. _gcc_version=`$CC -dumpversion`
  5744. _gcc_major=`echo $_gcc_version | $AWK -F. '{ print \$1 }'`
  5745. _gcc_longver=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  5746. GCCVER=`echo $_gcc_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  5747. if test "$_gcc_major" -lt "3"; then
  5748. as_fn_error "found version \"$_gcc_version\", use version 3+ of the gcc compiler" "$LINENO" 5
  5749. else
  5750. if test "$GCCVER" -eq "030203"; then
  5751. if test "$ENABLE_SYMBOLS" = "SMALL"; then
  5752. as_fn_error "version \"$_gcc_version\" gives internal error with small." "$LINENO" 5
  5753. fi
  5754. fi
  5755. fi
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (gcc $_gcc_version)" >&5
  5757. $as_echo "checked (gcc $_gcc_version)" >&6; }
  5758. if test "$_os" = "SunOS"; then
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gcc linker" >&5
  5760. $as_echo_n "checking gcc linker... " >&6; }
  5761. if $CC -Wl,--version 2>&1 |head -n 1| grep -v GNU > /dev/null;then
  5762. as_fn_error "failed (not GNU ld). Use GNU ld instead of Sun ld on Solaris" "$LINENO" 5
  5763. fi
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (GNU ld)" >&5
  5765. $as_echo "ok (GNU ld)" >&6; }
  5766. fi
  5767. fi
  5768. HAVE_LD_BSYMBOLIC_FUNCTIONS=
  5769. if test "$GCC" = "yes"; then
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -Bsymbolic-functions linker support " >&5
  5771. $as_echo_n "checking for -Bsymbolic-functions linker support ... " >&6; }
  5772. bsymbolic_functions_ldflags_save=$LDFLAGS
  5773. LDFLAGS="$LDFLAGS -Wl,-Bsymbolic-functions -Wl,--dynamic-list-cpp-new -Wl,--dynamic-list-cpp-typeinfo"
  5774. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5775. /* end confdefs.h. */
  5776. #include <stdio.h>
  5777. int
  5778. main ()
  5779. {
  5780. printf ("hello world\n");
  5781. ;
  5782. return 0;
  5783. }
  5784. _ACEOF
  5785. if ac_fn_c_try_link "$LINENO"; then :
  5786. HAVE_LD_BSYMBOLIC_FUNCTIONS=TRUE
  5787. fi
  5788. rm -f core conftest.err conftest.$ac_objext \
  5789. conftest$ac_exeext conftest.$ac_ext
  5790. if test "z$HAVE_LD_BSYMBOLIC_FUNCTIONS" = "zTRUE"; then
  5791. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found " >&5
  5792. $as_echo "found " >&6; }
  5793. else
  5794. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found " >&5
  5795. $as_echo "not found " >&6; }
  5796. fi
  5797. LDFLAGS=$bsymbolic_functions_ldflags_save
  5798. fi
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pch feature" >&5
  5800. $as_echo_n "checking whether to enable pch feature... " >&6; }
  5801. if test -n "$enable_pch" && test "$enable_pch" != "no"; then
  5802. if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
  5803. ENABLE_PCH="TRUE"
  5804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5805. $as_echo "yes" >&6; }
  5806. elif test "$GCC" = "yes" -a "$GCCVER" -gt "030400"; then
  5807. ENABLE_PCH="TRUE"
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5809. $as_echo "yes" >&6; }
  5810. else
  5811. ENABLE_PCH=""
  5812. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Precompiled header not yet supported for your platform/compiler" >&5
  5813. $as_echo "$as_me: WARNING: Precompiled header not yet supported for your platform/compiler" >&2;}
  5814. fi
  5815. else
  5816. ENABLE_PCH=""
  5817. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5818. $as_echo "no" >&6; }
  5819. fi
  5820. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable hid list feature" >&5
  5821. $as_echo_n "checking whether to enable hid list feature... " >&6; }
  5822. if test -n "$enable_hids" && test "$enable_hids" != "no"; then
  5823. NO_HIDS=""
  5824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5825. $as_echo "yes" >&6; }
  5826. else
  5827. NO_HIDS="TRUE"
  5828. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5829. $as_echo "no" >&6; }
  5830. fi
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make" >&5
  5832. $as_echo_n "checking for GNU make... " >&6; }
  5833. for a in "$MAKE" $GNUMAKE make gmake gnumake; do
  5834. $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
  5835. if test $? -eq 0; then
  5836. GNUMAKE=$a
  5837. break
  5838. fi
  5839. done
  5840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE" >&5
  5841. $as_echo "$GNUMAKE" >&6; }
  5842. if test -z "$GNUMAKE"; then
  5843. as_fn_error "not found. install GNU make." "$LINENO" 5
  5844. fi
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU make version" >&5
  5846. $as_echo_n "checking the GNU make version... " >&6; }
  5847. _make_version=`$GNUMAKE --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
  5848. _make_longver=`echo $_make_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  5849. if test "$_make_longver" -ge "037901" ; then
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
  5851. $as_echo "$GNUMAKE $_make_version" >&6; }
  5852. else
  5853. if test "$_os" = "Darwin"; then
  5854. if test "$_make_longver" -ge "037900" ; then
  5855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUMAKE $_make_version" >&5
  5856. $as_echo "$GNUMAKE $_make_version" >&6; }
  5857. else
  5858. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: failed ($GNUMAKE $_make_version need 3.79.0+)" >&5
  5859. $as_echo "$as_me: WARNING: failed ($GNUMAKE $_make_version need 3.79.0+)" >&2;}
  5860. fi
  5861. else
  5862. as_fn_error "failed ($GNUMAKE $_make_version need 3.79.1+)" "$LINENO" 5
  5863. fi
  5864. fi
  5865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU tar" >&5
  5866. $as_echo_n "checking for GNU tar... " >&6; }
  5867. for a in $GNUTAR gtar gnutar tar; do
  5868. $a --version 2> /dev/null | grep GNU 2>&1 > /dev/null
  5869. if test $? -eq 0; then
  5870. GNUTAR=$a
  5871. break
  5872. fi
  5873. done
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GNUTAR" >&5
  5875. $as_echo "$GNUTAR" >&6; }
  5876. if test -z "$GNUTAR"; then
  5877. as_fn_error "not found. install GNU tar." "$LINENO" 5
  5878. fi
  5879. if test "$_os" = "SunOS"; then
  5880. if test "$CC" = "cc"; then
  5881. for ac_prog in cc
  5882. do
  5883. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5884. set dummy $ac_prog; ac_word=$2
  5885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5886. $as_echo_n "checking for $ac_word... " >&6; }
  5887. if test "${ac_cv_path__cc+set}" = set; then :
  5888. $as_echo_n "(cached) " >&6
  5889. else
  5890. case $_cc in
  5891. [\\/]* | ?:[\\/]*)
  5892. ac_cv_path__cc="$_cc" # Let the user override the test with a path.
  5893. ;;
  5894. *)
  5895. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5896. for as_dir in $PATH
  5897. do
  5898. IFS=$as_save_IFS
  5899. test -z "$as_dir" && as_dir=.
  5900. for ac_exec_ext in '' $ac_executable_extensions; do
  5901. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5902. ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
  5903. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5904. break 2
  5905. fi
  5906. done
  5907. done
  5908. IFS=$as_save_IFS
  5909. ;;
  5910. esac
  5911. fi
  5912. _cc=$ac_cv_path__cc
  5913. if test -n "$_cc"; then
  5914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cc" >&5
  5915. $as_echo "$_cc" >&6; }
  5916. else
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5918. $as_echo "no" >&6; }
  5919. fi
  5920. test -n "$_cc" && break
  5921. done
  5922. COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the SunStudio C/C++ compiler version" >&5
  5924. $as_echo_n "checking the SunStudio C/C++ compiler version... " >&6; }
  5925. _sunstudio_string=`$CC -V 2>&1 | grep '^cc' | sed -e 's/.* C //'`
  5926. _sunstudio_version=`echo $_sunstudio_string | $AWK '{ print $1 }'`
  5927. _sunstudio_major=`echo $_sunstudio_version | $AWK -F. '{ print $1 }'`
  5928. if test "$_sunstudio_major" != "5"; then
  5929. as_fn_error "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
  5930. else
  5931. _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" }'`
  5932. if test "$_sunstudio_minor" = "false"; then
  5933. as_fn_error "found version \"$_sunstudio_version\", use version 5.5, 5.7, 5.8 or 5.9 of the SunStudio C/C++ compiler" "$LINENO" 5
  5934. else
  5935. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  5936. $as_echo "checked" >&6; }
  5937. fi
  5938. fi
  5939. fi
  5940. fi
  5941. if test "$GCC" = "yes"; then
  5942. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --hash-style=both linker support " >&5
  5943. $as_echo_n "checking for --hash-style=both linker support ... " >&6; }
  5944. hash_style_ldflags_save=$LDFLAGS
  5945. LDFLAGS="$LDFLAGS -Wl,--hash-style=both"
  5946. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5947. /* end confdefs.h. */
  5948. #include <stdio.h>
  5949. int
  5950. main ()
  5951. {
  5952. printf ("hello world\n");
  5953. ;
  5954. return 0;
  5955. }
  5956. _ACEOF
  5957. if ac_fn_c_try_link "$LINENO"; then :
  5958. HAVE_LD_HASH_STYLE=TRUE
  5959. else
  5960. HAVE_LD_HASH_STYLE=FALSE
  5961. fi
  5962. rm -f core conftest.err conftest.$ac_objext \
  5963. conftest$ac_exeext conftest.$ac_ext
  5964. if test "z$HAVE_LD_HASH_STYLE" = "zTRUE"; then
  5965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found " >&5
  5966. $as_echo "found " >&6; }
  5967. else
  5968. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found " >&5
  5969. $as_echo "not found " >&6; }
  5970. fi
  5971. LDFLAGS=$hash_style_ldflags_save
  5972. fi
  5973. if test "$_os" = "OSF1"; then
  5974. if test "$CC" = "cc"; then
  5975. for ac_prog in cc
  5976. do
  5977. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5978. set dummy $ac_prog; ac_word=$2
  5979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5980. $as_echo_n "checking for $ac_word... " >&6; }
  5981. if test "${ac_cv_path__cc+set}" = set; then :
  5982. $as_echo_n "(cached) " >&6
  5983. else
  5984. case $_cc in
  5985. [\\/]* | ?:[\\/]*)
  5986. ac_cv_path__cc="$_cc" # Let the user override the test with a path.
  5987. ;;
  5988. *)
  5989. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5990. for as_dir in $PATH
  5991. do
  5992. IFS=$as_save_IFS
  5993. test -z "$as_dir" && as_dir=.
  5994. for ac_exec_ext in '' $ac_executable_extensions; do
  5995. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  5996. ac_cv_path__cc="$as_dir/$ac_word$ac_exec_ext"
  5997. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5998. break 2
  5999. fi
  6000. done
  6001. done
  6002. IFS=$as_save_IFS
  6003. ;;
  6004. esac
  6005. fi
  6006. _cc=$ac_cv_path__cc
  6007. if test -n "$_cc"; then
  6008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_cc" >&5
  6009. $as_echo "$_cc" >&6; }
  6010. else
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6012. $as_echo "no" >&6; }
  6013. fi
  6014. test -n "$_cc" && break
  6015. done
  6016. COMPATH=`echo $_cc | $SED -n "s/\/bin\/cc//p"`
  6017. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ******* $_cc , $COMPATH" >&5
  6018. $as_echo "$as_me: WARNING: ******* $_cc , $COMPATH" >&2;}
  6019. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Compaq C compiler version" >&5
  6020. $as_echo_n "checking the Compaq C compiler version... " >&6; }
  6021. _compaqc_version=`$CC -V 2>&1 | $AWK '{ print $3 }'`
  6022. _compaqc_major=`echo $_compaqc_version | $AWK -F. '{ print $1 }'`
  6023. if test "$_compaqc_major" != "T6"; then
  6024. as_fn_error "found version \"$_compaqc_version\", use version 6 of the Compaq C compiler" "$LINENO" 5
  6025. else
  6026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  6027. $as_echo "checked" >&6; }
  6028. fi
  6029. fi
  6030. fi
  6031. if test -z "$with_perl_home"; then
  6032. # Extract the first word of "perl", so it can be a program name with args.
  6033. set dummy perl; ac_word=$2
  6034. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6035. $as_echo_n "checking for $ac_word... " >&6; }
  6036. if test "${ac_cv_path_PERL+set}" = set; then :
  6037. $as_echo_n "(cached) " >&6
  6038. else
  6039. case $PERL in
  6040. [\\/]* | ?:[\\/]*)
  6041. ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
  6042. ;;
  6043. *)
  6044. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6045. for as_dir in $PATH
  6046. do
  6047. IFS=$as_save_IFS
  6048. test -z "$as_dir" && as_dir=.
  6049. for ac_exec_ext in '' $ac_executable_extensions; do
  6050. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6051. ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
  6052. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6053. break 2
  6054. fi
  6055. done
  6056. done
  6057. IFS=$as_save_IFS
  6058. ;;
  6059. esac
  6060. fi
  6061. PERL=$ac_cv_path_PERL
  6062. if test -n "$PERL"; then
  6063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
  6064. $as_echo "$PERL" >&6; }
  6065. else
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6067. $as_echo "no" >&6; }
  6068. fi
  6069. else
  6070. if test "$_os" = "WINNT"; then
  6071. with_perl_home=`cygpath -u "$with_perl_home"`
  6072. fi
  6073. _perl_path="$with_perl_home/bin/perl"
  6074. if test -x "$_perl_path"; then
  6075. PERL=$_perl_path
  6076. else
  6077. as_fn_error "$_perl_path not found" "$LINENO" 5
  6078. fi
  6079. fi
  6080. if test "$PERL"; then
  6081. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Perl version" >&5
  6082. $as_echo_n "checking the Perl version... " >&6; }
  6083. ${PERL} -e "exit($]);"
  6084. _perl_version=$?
  6085. if test "$_perl_version" -lt 5; then
  6086. as_fn_error "found Perl version \"$_perl_version\", use version 5 of Perl" "$LINENO" 5
  6087. fi
  6088. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (perl $_perl_version)" >&5
  6089. $as_echo "checked (perl $_perl_version)" >&6; }
  6090. else
  6091. as_fn_error "Perl not found, install version 5 of Perl" "$LINENO" 5
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for required Perl modules" >&5
  6094. $as_echo_n "checking for required Perl modules... " >&6; }
  6095. if `$PERL -e 'use Archive::Zip;'`; then
  6096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: all modules found" >&5
  6097. $as_echo "all modules found" >&6; }
  6098. else
  6099. as_fn_error "Failed to find some modules" "$LINENO" 5
  6100. fi
  6101. if test "$_os" = "WINNT"; then
  6102. if test "$WITH_MINGWIN" != "yes"; then
  6103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for friendly registry keys" >&5
  6104. $as_echo_n "checking for friendly registry keys... " >&6; }
  6105. # VS.Net 2003, VS.Net 2005
  6106. if test -z "$with_cl_home"; then
  6107. vctest=`./oowintool --msvc-productdir`;
  6108. if test -x "$vctest/bin/cl.exe"; then
  6109. with_cl_home=$vctest;
  6110. fi
  6111. else
  6112. with_cl_home=`cygpath -u "$with_cl_home"`
  6113. fi
  6114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  6115. $as_echo "done" >&6; }
  6116. if test -n "$with_mspdb_path";then
  6117. with_mspdb_path=`cygpath -u "$with_mspdb_path"`
  6118. fi
  6119. if test -e "$with_mspdb_path/mspdb71.dll" -o -e "$with_mspdb_path/mspdb80.dll"; then
  6120. MSPDB_PATH="$with_mspdb_path"
  6121. fi
  6122. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb71.dll"; then
  6123. MSPDB_PATH="$with_cl_home/../Common7/IDE"
  6124. fi
  6125. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/../Common7/IDE/mspdb80.dll"; then
  6126. MSPDB_PATH="$with_cl_home/../Common7/IDE"
  6127. fi
  6128. if test -z "$MSPDB_PATH" -a -e "$with_cl_home/bin/mspdb80.dll"; then
  6129. MSPDB_PATH="$with_cl_home/bin"
  6130. fi
  6131. if test -z "$MSPDB_PATH";then
  6132. # Extract the first word of "mspdb80.dll", so it can be a program name with args.
  6133. set dummy mspdb80.dll; ac_word=$2
  6134. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6135. $as_echo_n "checking for $ac_word... " >&6; }
  6136. if test "${ac_cv_path_MSPDB_PATH+set}" = set; then :
  6137. $as_echo_n "(cached) " >&6
  6138. else
  6139. case $MSPDB_PATH in
  6140. [\\/]* | ?:[\\/]*)
  6141. ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  6142. ;;
  6143. *)
  6144. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6145. for as_dir in $PATH
  6146. do
  6147. IFS=$as_save_IFS
  6148. test -z "$as_dir" && as_dir=.
  6149. for ac_exec_ext in '' $ac_executable_extensions; do
  6150. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6151. ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
  6152. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6153. break 2
  6154. fi
  6155. done
  6156. done
  6157. IFS=$as_save_IFS
  6158. ;;
  6159. esac
  6160. fi
  6161. MSPDB_PATH=$ac_cv_path_MSPDB_PATH
  6162. if test -n "$MSPDB_PATH"; then
  6163. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
  6164. $as_echo "$MSPDB_PATH" >&6; }
  6165. else
  6166. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6167. $as_echo "no" >&6; }
  6168. fi
  6169. # Extract the first word of "mspdb71.dll", so it can be a program name with args.
  6170. set dummy mspdb71.dll; ac_word=$2
  6171. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6172. $as_echo_n "checking for $ac_word... " >&6; }
  6173. if test "${ac_cv_path_MSPDB_PATH+set}" = set; then :
  6174. $as_echo_n "(cached) " >&6
  6175. else
  6176. case $MSPDB_PATH in
  6177. [\\/]* | ?:[\\/]*)
  6178. ac_cv_path_MSPDB_PATH="$MSPDB_PATH" # Let the user override the test with a path.
  6179. ;;
  6180. *)
  6181. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6182. for as_dir in $PATH
  6183. do
  6184. IFS=$as_save_IFS
  6185. test -z "$as_dir" && as_dir=.
  6186. for ac_exec_ext in '' $ac_executable_extensions; do
  6187. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6188. ac_cv_path_MSPDB_PATH="$as_dir/$ac_word$ac_exec_ext"
  6189. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6190. break 2
  6191. fi
  6192. done
  6193. done
  6194. IFS=$as_save_IFS
  6195. ;;
  6196. esac
  6197. fi
  6198. MSPDB_PATH=$ac_cv_path_MSPDB_PATH
  6199. if test -n "$MSPDB_PATH"; then
  6200. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSPDB_PATH" >&5
  6201. $as_echo "$MSPDB_PATH" >&6; }
  6202. else
  6203. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6204. $as_echo "no" >&6; }
  6205. fi
  6206. MSPDB_PATH=`dirname "$MSPDB_PATH"`
  6207. fi
  6208. if test -z "$MSPDB_PATH"; then
  6209. as_fn_error "You need a mspdb71.dll/mspdb80.dll, make sure it's in the path or use --with-mspdb-path" "$LINENO" 5
  6210. fi
  6211. MSPDB_PATH=`cygpath -d "$MSPDB_PATH"`
  6212. MSPDB_PATH=`cygpath -u "$MSPDB_PATH"`
  6213. PATH="$MSPDB_PATH:$PATH"
  6214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Microsoft C/C++ Compiler" >&5
  6215. $as_echo_n "checking the Microsoft C/C++ Compiler... " >&6; }
  6216. if test -x "$with_cl_home/bin/cl.exe"; then
  6217. CC="$with_cl_home/bin/cl.exe"
  6218. else
  6219. # Extract the first word of "cl.exe", so it can be a program name with args.
  6220. set dummy cl.exe; ac_word=$2
  6221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6222. $as_echo_n "checking for $ac_word... " >&6; }
  6223. if test "${ac_cv_path_CC+set}" = set; then :
  6224. $as_echo_n "(cached) " >&6
  6225. else
  6226. case $CC in
  6227. [\\/]* | ?:[\\/]*)
  6228. ac_cv_path_CC="$CC" # Let the user override the test with a path.
  6229. ;;
  6230. *)
  6231. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6232. for as_dir in $PATH
  6233. do
  6234. IFS=$as_save_IFS
  6235. test -z "$as_dir" && as_dir=.
  6236. for ac_exec_ext in '' $ac_executable_extensions; do
  6237. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6238. ac_cv_path_CC="$as_dir/$ac_word$ac_exec_ext"
  6239. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6240. break 2
  6241. fi
  6242. done
  6243. done
  6244. IFS=$as_save_IFS
  6245. ;;
  6246. esac
  6247. fi
  6248. CC=$ac_cv_path_CC
  6249. if test -n "$CC"; then
  6250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  6251. $as_echo "$CC" >&6; }
  6252. else
  6253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6254. $as_echo "no" >&6; }
  6255. fi
  6256. fi
  6257. if test -e "$CC"; then
  6258. # This gives us a posix path with 8.3 filename restrictions
  6259. CC=`cygpath -d "$CC"`
  6260. CC=`cygpath -u "$CC"`
  6261. # Remove /cl.exe from CC case insensitive
  6262. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found ($CC)" >&5
  6263. $as_echo "found ($CC)" >&6; }
  6264. COMPATH=`echo $CC | $SED 's@\/[Bb][Ii][Nn]\/[cC][lL]\.[eE][xX][eE]@@'`
  6265. export INCLUDE=`cygpath -d "$COMPATH/Include"`
  6266. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Version of Microsoft C/C++ Compiler" >&5
  6267. $as_echo_n "checking the Version of Microsoft C/C++ Compiler... " >&6; }
  6268. CCNUMVER=`$CC 2>&1 | $AWK "/Microsoft/ && /..\\...\\...../ {
  6269. x = match( \\\$0, /..\\...\\...../ )
  6270. CCversion = substr( \\\$0, RSTART, RLENGTH)
  6271. tokencount = split (CCversion,vertoken,\".\")
  6272. for ( i = 1 ; i <= tokencount ; i++ ) {
  6273. printf (\"%04d\",vertoken[i] )
  6274. }
  6275. }"`
  6276. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found Compiler version $CCNUMVER." >&5
  6277. $as_echo "found Compiler version $CCNUMVER." >&6; }
  6278. if test "$CCNUMVER" -ge "001500000000"; then
  6279. COMEX=12
  6280. MSVSVER=2008
  6281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found .NET 2008 / VS 9.0." >&5
  6282. $as_echo "found .NET 2008 / VS 9.0." >&6; }
  6283. elif test "$CCNUMVER" -ge "001400000000"; then
  6284. COMEX=11
  6285. MSVSVER=2005
  6286. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found .NET 2005." >&5
  6287. $as_echo "found .NET 2005." >&6; }
  6288. elif test "$CCNUMVER" -ge "001300102240"; then
  6289. COMEX=10
  6290. MSVSVER=2003
  6291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found .NET 2003." >&5
  6292. $as_echo "found .NET 2003." >&6; }
  6293. else
  6294. as_fn_error "Compiler too old. Use Microsoft C/C++ .NET 2003/2005 compiler." "$LINENO" 5
  6295. fi
  6296. else
  6297. as_fn_error "Microsoft C/C++ Compiler not found. Use --with-cl-home or set path to cl.exe." "$LINENO" 5
  6298. fi
  6299. else
  6300. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the Mingwin32 C++ Compiler" >&5
  6301. $as_echo_n "checking the Mingwin32 C++ Compiler... " >&6; }
  6302. if test `$CC -dumpmachine | $SED -e 's/^.*-//'` = "mingw32"; then
  6303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  6304. $as_echo "found." >&6; }
  6305. if $CC -dumpspecs | grep -q "mno-cygwin"; then
  6306. USE_MINGW="cygwin"
  6307. else
  6308. USE_MINGW="pure-mingw"
  6309. fi
  6310. else
  6311. as_fn_error "Mingwin32 C++ Compiler not found." "$LINENO" 5
  6312. fi
  6313. fi
  6314. fi
  6315. if test "$_os" = "WINNT"; then
  6316. if test "$WITH_MINGWIN" = "yes" || test "$COMEX" -ge "10"; then
  6317. # Extract the first word of "midl.exe", so it can be a program name with args.
  6318. set dummy midl.exe; ac_word=$2
  6319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6320. $as_echo_n "checking for $ac_word... " >&6; }
  6321. if test "${ac_cv_path_MIDL_PATH+set}" = set; then :
  6322. $as_echo_n "(cached) " >&6
  6323. else
  6324. case $MIDL_PATH in
  6325. [\\/]* | ?:[\\/]*)
  6326. ac_cv_path_MIDL_PATH="$MIDL_PATH" # Let the user override the test with a path.
  6327. ;;
  6328. *)
  6329. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6330. for as_dir in $PATH
  6331. do
  6332. IFS=$as_save_IFS
  6333. test -z "$as_dir" && as_dir=.
  6334. for ac_exec_ext in '' $ac_executable_extensions; do
  6335. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6336. ac_cv_path_MIDL_PATH="$as_dir/$ac_word$ac_exec_ext"
  6337. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6338. break 2
  6339. fi
  6340. done
  6341. done
  6342. IFS=$as_save_IFS
  6343. ;;
  6344. esac
  6345. fi
  6346. MIDL_PATH=$ac_cv_path_MIDL_PATH
  6347. if test -n "$MIDL_PATH"; then
  6348. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MIDL_PATH" >&5
  6349. $as_echo "$MIDL_PATH" >&6; }
  6350. else
  6351. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6352. $as_echo "no" >&6; }
  6353. fi
  6354. if test -n "$MIDL_PATH";then
  6355. MIDL_PATH=`dirname "$MIDL_PATH"`
  6356. fi
  6357. if test -n "$with_midl_path";then
  6358. with_midl_path=`cygpath -u "$with_midl_path"`
  6359. fi
  6360. if test -x "$with_midl_path/midl.exe"; then
  6361. MIDL_PATH="$with_midl_path"
  6362. fi
  6363. if test -z "$MIDL_PATH" -a -e "$with_cl_home/../Common7/Tools/Bin/midl.exe"; then
  6364. MIDL_PATH="$with_cl_home/../Common7/Tools/Bin"
  6365. fi
  6366. if test -z "$MIDL_PATH" ; then
  6367. vstest=`./oowintool --msvs-productdir`;
  6368. if test -x "$vstest/Common7/Tools/Bin/midl.exe" ; then
  6369. MIDL_PATH="$vstest/Common7/Tools/Bin"
  6370. fi
  6371. fi
  6372. if test -z "$MIDL_PATH" ; then
  6373. psdktest=`./oowintool --psdk-home`
  6374. if test -x "$psdktest/Bin/midl.exe" ; then
  6375. MIDL_PATH="$psdktest/Bin"
  6376. fi
  6377. fi
  6378. if test ! -x "$MIDL_PATH/midl.exe"; then
  6379. as_fn_error "midl.exe not found. Make sure it's in the path or use --with-midl-path" "$LINENO" 5
  6380. fi
  6381. # Convert to posix path with 8.3 filename restrictions ( No spaces )
  6382. MIDL_PATH=`cygpath -d "$MIDL_PATH"`
  6383. MIDL_PATH=`cygpath -u "$MIDL_PATH"`
  6384. # Extract the first word of "csc.exe", so it can be a program name with args.
  6385. set dummy csc.exe; ac_word=$2
  6386. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6387. $as_echo_n "checking for $ac_word... " >&6; }
  6388. if test "${ac_cv_path_CSC_PATH+set}" = set; then :
  6389. $as_echo_n "(cached) " >&6
  6390. else
  6391. case $CSC_PATH in
  6392. [\\/]* | ?:[\\/]*)
  6393. ac_cv_path_CSC_PATH="$CSC_PATH" # Let the user override the test with a path.
  6394. ;;
  6395. *)
  6396. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6397. for as_dir in $PATH
  6398. do
  6399. IFS=$as_save_IFS
  6400. test -z "$as_dir" && as_dir=.
  6401. for ac_exec_ext in '' $ac_executable_extensions; do
  6402. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6403. ac_cv_path_CSC_PATH="$as_dir/$ac_word$ac_exec_ext"
  6404. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6405. break 2
  6406. fi
  6407. done
  6408. done
  6409. IFS=$as_save_IFS
  6410. ;;
  6411. esac
  6412. fi
  6413. CSC_PATH=$ac_cv_path_CSC_PATH
  6414. if test -n "$CSC_PATH"; then
  6415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CSC_PATH" >&5
  6416. $as_echo "$CSC_PATH" >&6; }
  6417. else
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6419. $as_echo "no" >&6; }
  6420. fi
  6421. if test -n "$CSC_PATH";then
  6422. CSC_PATH=`dirname "$CSC_PATH"`
  6423. fi
  6424. if test -n "$with_csc_path";then
  6425. with_csc_path=`cygpath -u "$with_csc_path"`
  6426. fi
  6427. if test -x "$with_csc_path/csc.exe"; then
  6428. CSC_PATH="$with_csc_path"
  6429. else
  6430. csctest=`./oowintool --csc-compilerdir`;
  6431. if test -x "$csctest/csc.exe"; then
  6432. CSC_PATH="$csctest"
  6433. fi
  6434. fi
  6435. if test ! -x "$CSC_PATH/csc.exe"; then
  6436. as_fn_error "csc.exe not found. Make sure it's in the path or use --with-csc-path" "$LINENO" 5
  6437. fi
  6438. # Convert to posix path with 8.3 filename restrictions ( No spaces )
  6439. CSC_PATH=`cygpath -d "$CSC_PATH"`
  6440. CSC_PATH=`cygpath -u "$CSC_PATH"`
  6441. { $as_echo "$as_me:${as_lineno-$LINENO}: checking .NET Framework" >&5
  6442. $as_echo_n "checking .NET Framework... " >&6; }
  6443. if test -n "$with_frame_home"; then
  6444. with_frame_home=`cygpath -u "$with_frame_home"`
  6445. fi
  6446. if test -f "$with_frame_home/lib/mscoree.lib"; then
  6447. FRAME_HOME="$with_frame_home"
  6448. fi
  6449. if test -z "$FRAME_HOME" -a -e "$with_cl_home/../SDK/v1.1/lib/mscoree.lib"; then
  6450. FRAME_HOME="$with_cl_home/../SDK/v1.1"
  6451. fi
  6452. if test -z "$FRAME_HOME" ; then
  6453. frametest=`./oowintool --dotnetsdk-dir`
  6454. if test -f "$frametest/lib/mscoree.lib"; then
  6455. FRAME_HOME="$frametest"
  6456. else
  6457. frametest=`./oowintool --psdk-home`
  6458. if test -f "$frametest/lib/mscoree.lib"; then
  6459. FRAME_HOME="$frametest"
  6460. fi
  6461. fi
  6462. fi
  6463. if test ! -f "$FRAME_HOME/lib/mscoree.lib"; then
  6464. as_fn_error "mscoree.lib (.NET Framework) not found. Make sure you use --with-frame-home" "$LINENO" 5
  6465. fi
  6466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  6467. $as_echo "found" >&6; }
  6468. # Convert to posix path with 8.3 filename restrictions ( No spaces )
  6469. FRAME_HOME=`cygpath -d "$FRAME_HOME"`
  6470. FRAME_HOME=`cygpath -u "$FRAME_HOME"`
  6471. fi
  6472. fi
  6473. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  6474. ac_ext=c
  6475. ac_cpp='$CPP $CPPFLAGS'
  6476. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6477. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6478. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6480. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6481. # On Suns, sometimes $CPP names a directory.
  6482. if test -n "$CPP" && test -d "$CPP"; then
  6483. CPP=
  6484. fi
  6485. if test -z "$CPP"; then
  6486. if test "${ac_cv_prog_CPP+set}" = set; then :
  6487. $as_echo_n "(cached) " >&6
  6488. else
  6489. # Double quotes because CPP needs to be expanded
  6490. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6491. do
  6492. ac_preproc_ok=false
  6493. for ac_c_preproc_warn_flag in '' yes
  6494. do
  6495. # Use a header file that comes with gcc, so configuring glibc
  6496. # with a fresh cross-compiler works.
  6497. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6498. # <limits.h> exists even on freestanding compilers.
  6499. # On the NeXT, cc -E runs the code through the compiler's parser,
  6500. # not just through cpp. "Syntax error" is here to catch this case.
  6501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6502. /* end confdefs.h. */
  6503. #ifdef __STDC__
  6504. # include <limits.h>
  6505. #else
  6506. # include <assert.h>
  6507. #endif
  6508. Syntax error
  6509. _ACEOF
  6510. if ac_fn_c_try_cpp "$LINENO"; then :
  6511. else
  6512. # Broken: fails on valid input.
  6513. continue
  6514. fi
  6515. rm -f conftest.err conftest.$ac_ext
  6516. # OK, works on sane cases. Now check whether nonexistent headers
  6517. # can be detected and how.
  6518. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6519. /* end confdefs.h. */
  6520. #include <ac_nonexistent.h>
  6521. _ACEOF
  6522. if ac_fn_c_try_cpp "$LINENO"; then :
  6523. # Broken: success on invalid input.
  6524. continue
  6525. else
  6526. # Passes both tests.
  6527. ac_preproc_ok=:
  6528. break
  6529. fi
  6530. rm -f conftest.err conftest.$ac_ext
  6531. done
  6532. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6533. rm -f conftest.err conftest.$ac_ext
  6534. if $ac_preproc_ok; then :
  6535. break
  6536. fi
  6537. done
  6538. ac_cv_prog_CPP=$CPP
  6539. fi
  6540. CPP=$ac_cv_prog_CPP
  6541. else
  6542. ac_cv_prog_CPP=$CPP
  6543. fi
  6544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6545. $as_echo "$CPP" >&6; }
  6546. ac_preproc_ok=false
  6547. for ac_c_preproc_warn_flag in '' yes
  6548. do
  6549. # Use a header file that comes with gcc, so configuring glibc
  6550. # with a fresh cross-compiler works.
  6551. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6552. # <limits.h> exists even on freestanding compilers.
  6553. # On the NeXT, cc -E runs the code through the compiler's parser,
  6554. # not just through cpp. "Syntax error" is here to catch this case.
  6555. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6556. /* end confdefs.h. */
  6557. #ifdef __STDC__
  6558. # include <limits.h>
  6559. #else
  6560. # include <assert.h>
  6561. #endif
  6562. Syntax error
  6563. _ACEOF
  6564. if ac_fn_c_try_cpp "$LINENO"; then :
  6565. else
  6566. # Broken: fails on valid input.
  6567. continue
  6568. fi
  6569. rm -f conftest.err conftest.$ac_ext
  6570. # OK, works on sane cases. Now check whether nonexistent headers
  6571. # can be detected and how.
  6572. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6573. /* end confdefs.h. */
  6574. #include <ac_nonexistent.h>
  6575. _ACEOF
  6576. if ac_fn_c_try_cpp "$LINENO"; then :
  6577. # Broken: success on invalid input.
  6578. continue
  6579. else
  6580. # Passes both tests.
  6581. ac_preproc_ok=:
  6582. break
  6583. fi
  6584. rm -f conftest.err conftest.$ac_ext
  6585. done
  6586. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6587. rm -f conftest.err conftest.$ac_ext
  6588. if $ac_preproc_ok; then :
  6589. else
  6590. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6591. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6592. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  6593. See \`config.log' for more details." "$LINENO" 5; }
  6594. fi
  6595. ac_ext=c
  6596. ac_cpp='$CPP $CPPFLAGS'
  6597. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6598. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6599. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6601. $as_echo_n "checking for ANSI C header files... " >&6; }
  6602. if test "${ac_cv_header_stdc+set}" = set; then :
  6603. $as_echo_n "(cached) " >&6
  6604. else
  6605. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6606. /* end confdefs.h. */
  6607. #include <stdlib.h>
  6608. #include <stdarg.h>
  6609. #include <string.h>
  6610. #include <float.h>
  6611. int
  6612. main ()
  6613. {
  6614. ;
  6615. return 0;
  6616. }
  6617. _ACEOF
  6618. if ac_fn_c_try_compile "$LINENO"; then :
  6619. ac_cv_header_stdc=yes
  6620. else
  6621. ac_cv_header_stdc=no
  6622. fi
  6623. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6624. if test $ac_cv_header_stdc = yes; then
  6625. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6626. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6627. /* end confdefs.h. */
  6628. #include <string.h>
  6629. _ACEOF
  6630. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6631. $EGREP "memchr" >/dev/null 2>&1; then :
  6632. else
  6633. ac_cv_header_stdc=no
  6634. fi
  6635. rm -f conftest*
  6636. fi
  6637. if test $ac_cv_header_stdc = yes; then
  6638. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6639. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6640. /* end confdefs.h. */
  6641. #include <stdlib.h>
  6642. _ACEOF
  6643. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6644. $EGREP "free" >/dev/null 2>&1; then :
  6645. else
  6646. ac_cv_header_stdc=no
  6647. fi
  6648. rm -f conftest*
  6649. fi
  6650. if test $ac_cv_header_stdc = yes; then
  6651. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6652. if test "$cross_compiling" = yes; then :
  6653. :
  6654. else
  6655. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6656. /* end confdefs.h. */
  6657. #include <ctype.h>
  6658. #include <stdlib.h>
  6659. #if ((' ' & 0x0FF) == 0x020)
  6660. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6661. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6662. #else
  6663. # define ISLOWER(c) \
  6664. (('a' <= (c) && (c) <= 'i') \
  6665. || ('j' <= (c) && (c) <= 'r') \
  6666. || ('s' <= (c) && (c) <= 'z'))
  6667. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6668. #endif
  6669. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6670. int
  6671. main ()
  6672. {
  6673. int i;
  6674. for (i = 0; i < 256; i++)
  6675. if (XOR (islower (i), ISLOWER (i))
  6676. || toupper (i) != TOUPPER (i))
  6677. return 2;
  6678. return 0;
  6679. }
  6680. _ACEOF
  6681. if ac_fn_c_try_run "$LINENO"; then :
  6682. else
  6683. ac_cv_header_stdc=no
  6684. fi
  6685. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6686. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6687. fi
  6688. fi
  6689. fi
  6690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6691. $as_echo "$ac_cv_header_stdc" >&6; }
  6692. if test $ac_cv_header_stdc = yes; then
  6693. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6694. fi
  6695. fi
  6696. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  6697. ac_ext=cpp
  6698. ac_cpp='$CXXCPP $CPPFLAGS'
  6699. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6700. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6701. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6702. if test -z "$CXX"; then
  6703. if test -n "$CCC"; then
  6704. CXX=$CCC
  6705. else
  6706. if test -n "$ac_tool_prefix"; then
  6707. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6708. do
  6709. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  6710. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  6711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6712. $as_echo_n "checking for $ac_word... " >&6; }
  6713. if test "${ac_cv_prog_CXX+set}" = set; then :
  6714. $as_echo_n "(cached) " >&6
  6715. else
  6716. if test -n "$CXX"; then
  6717. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  6718. else
  6719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6720. for as_dir in $PATH
  6721. do
  6722. IFS=$as_save_IFS
  6723. test -z "$as_dir" && as_dir=.
  6724. for ac_exec_ext in '' $ac_executable_extensions; do
  6725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6726. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  6727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6728. break 2
  6729. fi
  6730. done
  6731. done
  6732. IFS=$as_save_IFS
  6733. fi
  6734. fi
  6735. CXX=$ac_cv_prog_CXX
  6736. if test -n "$CXX"; then
  6737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  6738. $as_echo "$CXX" >&6; }
  6739. else
  6740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6741. $as_echo "no" >&6; }
  6742. fi
  6743. test -n "$CXX" && break
  6744. done
  6745. fi
  6746. if test -z "$CXX"; then
  6747. ac_ct_CXX=$CXX
  6748. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  6749. do
  6750. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6751. set dummy $ac_prog; ac_word=$2
  6752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6753. $as_echo_n "checking for $ac_word... " >&6; }
  6754. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  6755. $as_echo_n "(cached) " >&6
  6756. else
  6757. if test -n "$ac_ct_CXX"; then
  6758. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  6759. else
  6760. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6761. for as_dir in $PATH
  6762. do
  6763. IFS=$as_save_IFS
  6764. test -z "$as_dir" && as_dir=.
  6765. for ac_exec_ext in '' $ac_executable_extensions; do
  6766. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  6767. ac_cv_prog_ac_ct_CXX="$ac_prog"
  6768. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6769. break 2
  6770. fi
  6771. done
  6772. done
  6773. IFS=$as_save_IFS
  6774. fi
  6775. fi
  6776. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  6777. if test -n "$ac_ct_CXX"; then
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  6779. $as_echo "$ac_ct_CXX" >&6; }
  6780. else
  6781. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6782. $as_echo "no" >&6; }
  6783. fi
  6784. test -n "$ac_ct_CXX" && break
  6785. done
  6786. if test "x$ac_ct_CXX" = x; then
  6787. CXX="g++"
  6788. else
  6789. case $cross_compiling:$ac_tool_warned in
  6790. yes:)
  6791. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6792. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6793. ac_tool_warned=yes ;;
  6794. esac
  6795. CXX=$ac_ct_CXX
  6796. fi
  6797. fi
  6798. fi
  6799. fi
  6800. # Provide some information about the compiler.
  6801. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  6802. set X $ac_compile
  6803. ac_compiler=$2
  6804. for ac_option in --version -v -V -qversion; do
  6805. { { ac_try="$ac_compiler $ac_option >&5"
  6806. case "(($ac_try" in
  6807. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  6808. *) ac_try_echo=$ac_try;;
  6809. esac
  6810. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  6811. $as_echo "$ac_try_echo"; } >&5
  6812. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  6813. ac_status=$?
  6814. if test -s conftest.err; then
  6815. sed '10a\
  6816. ... rest of stderr output deleted ...
  6817. 10q' conftest.err >conftest.er1
  6818. cat conftest.er1 >&5
  6819. rm -f conftest.er1 conftest.err
  6820. fi
  6821. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6822. test $ac_status = 0; }
  6823. done
  6824. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  6825. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  6826. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  6827. $as_echo_n "(cached) " >&6
  6828. else
  6829. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6830. /* end confdefs.h. */
  6831. int
  6832. main ()
  6833. {
  6834. #ifndef __GNUC__
  6835. choke me
  6836. #endif
  6837. ;
  6838. return 0;
  6839. }
  6840. _ACEOF
  6841. if ac_fn_cxx_try_compile "$LINENO"; then :
  6842. ac_compiler_gnu=yes
  6843. else
  6844. ac_compiler_gnu=no
  6845. fi
  6846. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6847. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  6848. fi
  6849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  6850. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  6851. if test $ac_compiler_gnu = yes; then
  6852. GXX=yes
  6853. else
  6854. GXX=
  6855. fi
  6856. ac_test_CXXFLAGS=${CXXFLAGS+set}
  6857. ac_save_CXXFLAGS=$CXXFLAGS
  6858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  6859. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  6860. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  6861. $as_echo_n "(cached) " >&6
  6862. else
  6863. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  6864. ac_cxx_werror_flag=yes
  6865. ac_cv_prog_cxx_g=no
  6866. CXXFLAGS="-g"
  6867. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6868. /* end confdefs.h. */
  6869. int
  6870. main ()
  6871. {
  6872. ;
  6873. return 0;
  6874. }
  6875. _ACEOF
  6876. if ac_fn_cxx_try_compile "$LINENO"; then :
  6877. ac_cv_prog_cxx_g=yes
  6878. else
  6879. CXXFLAGS=""
  6880. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6881. /* end confdefs.h. */
  6882. int
  6883. main ()
  6884. {
  6885. ;
  6886. return 0;
  6887. }
  6888. _ACEOF
  6889. if ac_fn_cxx_try_compile "$LINENO"; then :
  6890. else
  6891. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6892. CXXFLAGS="-g"
  6893. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6894. /* end confdefs.h. */
  6895. int
  6896. main ()
  6897. {
  6898. ;
  6899. return 0;
  6900. }
  6901. _ACEOF
  6902. if ac_fn_cxx_try_compile "$LINENO"; then :
  6903. ac_cv_prog_cxx_g=yes
  6904. fi
  6905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6906. fi
  6907. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6908. fi
  6909. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6910. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  6911. fi
  6912. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  6913. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  6914. if test "$ac_test_CXXFLAGS" = set; then
  6915. CXXFLAGS=$ac_save_CXXFLAGS
  6916. elif test $ac_cv_prog_cxx_g = yes; then
  6917. if test "$GXX" = yes; then
  6918. CXXFLAGS="-g -O2"
  6919. else
  6920. CXXFLAGS="-g"
  6921. fi
  6922. else
  6923. if test "$GXX" = yes; then
  6924. CXXFLAGS="-O2"
  6925. else
  6926. CXXFLAGS=
  6927. fi
  6928. fi
  6929. ac_ext=c
  6930. ac_cpp='$CPP $CPPFLAGS'
  6931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6934. ac_ext=cpp
  6935. ac_cpp='$CXXCPP $CPPFLAGS'
  6936. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6937. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6938. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  6940. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  6941. if test -z "$CXXCPP"; then
  6942. if test "${ac_cv_prog_CXXCPP+set}" = set; then :
  6943. $as_echo_n "(cached) " >&6
  6944. else
  6945. # Double quotes because CXXCPP needs to be expanded
  6946. for CXXCPP in "$CXX -E" "/lib/cpp"
  6947. do
  6948. ac_preproc_ok=false
  6949. for ac_cxx_preproc_warn_flag in '' yes
  6950. do
  6951. # Use a header file that comes with gcc, so configuring glibc
  6952. # with a fresh cross-compiler works.
  6953. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6954. # <limits.h> exists even on freestanding compilers.
  6955. # On the NeXT, cc -E runs the code through the compiler's parser,
  6956. # not just through cpp. "Syntax error" is here to catch this case.
  6957. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6958. /* end confdefs.h. */
  6959. #ifdef __STDC__
  6960. # include <limits.h>
  6961. #else
  6962. # include <assert.h>
  6963. #endif
  6964. Syntax error
  6965. _ACEOF
  6966. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6967. else
  6968. # Broken: fails on valid input.
  6969. continue
  6970. fi
  6971. rm -f conftest.err conftest.$ac_ext
  6972. # OK, works on sane cases. Now check whether nonexistent headers
  6973. # can be detected and how.
  6974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6975. /* end confdefs.h. */
  6976. #include <ac_nonexistent.h>
  6977. _ACEOF
  6978. if ac_fn_cxx_try_cpp "$LINENO"; then :
  6979. # Broken: success on invalid input.
  6980. continue
  6981. else
  6982. # Passes both tests.
  6983. ac_preproc_ok=:
  6984. break
  6985. fi
  6986. rm -f conftest.err conftest.$ac_ext
  6987. done
  6988. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6989. rm -f conftest.err conftest.$ac_ext
  6990. if $ac_preproc_ok; then :
  6991. break
  6992. fi
  6993. done
  6994. ac_cv_prog_CXXCPP=$CXXCPP
  6995. fi
  6996. CXXCPP=$ac_cv_prog_CXXCPP
  6997. else
  6998. ac_cv_prog_CXXCPP=$CXXCPP
  6999. fi
  7000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  7001. $as_echo "$CXXCPP" >&6; }
  7002. ac_preproc_ok=false
  7003. for ac_cxx_preproc_warn_flag in '' yes
  7004. do
  7005. # Use a header file that comes with gcc, so configuring glibc
  7006. # with a fresh cross-compiler works.
  7007. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7008. # <limits.h> exists even on freestanding compilers.
  7009. # On the NeXT, cc -E runs the code through the compiler's parser,
  7010. # not just through cpp. "Syntax error" is here to catch this case.
  7011. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7012. /* end confdefs.h. */
  7013. #ifdef __STDC__
  7014. # include <limits.h>
  7015. #else
  7016. # include <assert.h>
  7017. #endif
  7018. Syntax error
  7019. _ACEOF
  7020. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7021. else
  7022. # Broken: fails on valid input.
  7023. continue
  7024. fi
  7025. rm -f conftest.err conftest.$ac_ext
  7026. # OK, works on sane cases. Now check whether nonexistent headers
  7027. # can be detected and how.
  7028. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7029. /* end confdefs.h. */
  7030. #include <ac_nonexistent.h>
  7031. _ACEOF
  7032. if ac_fn_cxx_try_cpp "$LINENO"; then :
  7033. # Broken: success on invalid input.
  7034. continue
  7035. else
  7036. # Passes both tests.
  7037. ac_preproc_ok=:
  7038. break
  7039. fi
  7040. rm -f conftest.err conftest.$ac_ext
  7041. done
  7042. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7043. rm -f conftest.err conftest.$ac_ext
  7044. if $ac_preproc_ok; then :
  7045. else
  7046. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7047. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7048. as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
  7049. See \`config.log' for more details." "$LINENO" 5; }
  7050. fi
  7051. ac_ext=c
  7052. ac_cpp='$CPP $CPPFLAGS'
  7053. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7054. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7055. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7056. if test "$_os" = "SunOS"; then
  7057. CPP=$CXXCPP
  7058. else
  7059. ac_ext=c
  7060. ac_cpp='$CPP $CPPFLAGS'
  7061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7065. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7066. # On Suns, sometimes $CPP names a directory.
  7067. if test -n "$CPP" && test -d "$CPP"; then
  7068. CPP=
  7069. fi
  7070. if test -z "$CPP"; then
  7071. if test "${ac_cv_prog_CPP+set}" = set; then :
  7072. $as_echo_n "(cached) " >&6
  7073. else
  7074. # Double quotes because CPP needs to be expanded
  7075. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7076. do
  7077. ac_preproc_ok=false
  7078. for ac_c_preproc_warn_flag in '' yes
  7079. do
  7080. # Use a header file that comes with gcc, so configuring glibc
  7081. # with a fresh cross-compiler works.
  7082. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7083. # <limits.h> exists even on freestanding compilers.
  7084. # On the NeXT, cc -E runs the code through the compiler's parser,
  7085. # not just through cpp. "Syntax error" is here to catch this case.
  7086. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7087. /* end confdefs.h. */
  7088. #ifdef __STDC__
  7089. # include <limits.h>
  7090. #else
  7091. # include <assert.h>
  7092. #endif
  7093. Syntax error
  7094. _ACEOF
  7095. if ac_fn_c_try_cpp "$LINENO"; then :
  7096. else
  7097. # Broken: fails on valid input.
  7098. continue
  7099. fi
  7100. rm -f conftest.err conftest.$ac_ext
  7101. # OK, works on sane cases. Now check whether nonexistent headers
  7102. # can be detected and how.
  7103. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7104. /* end confdefs.h. */
  7105. #include <ac_nonexistent.h>
  7106. _ACEOF
  7107. if ac_fn_c_try_cpp "$LINENO"; then :
  7108. # Broken: success on invalid input.
  7109. continue
  7110. else
  7111. # Passes both tests.
  7112. ac_preproc_ok=:
  7113. break
  7114. fi
  7115. rm -f conftest.err conftest.$ac_ext
  7116. done
  7117. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7118. rm -f conftest.err conftest.$ac_ext
  7119. if $ac_preproc_ok; then :
  7120. break
  7121. fi
  7122. done
  7123. ac_cv_prog_CPP=$CPP
  7124. fi
  7125. CPP=$ac_cv_prog_CPP
  7126. else
  7127. ac_cv_prog_CPP=$CPP
  7128. fi
  7129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7130. $as_echo "$CPP" >&6; }
  7131. ac_preproc_ok=false
  7132. for ac_c_preproc_warn_flag in '' yes
  7133. do
  7134. # Use a header file that comes with gcc, so configuring glibc
  7135. # with a fresh cross-compiler works.
  7136. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7137. # <limits.h> exists even on freestanding compilers.
  7138. # On the NeXT, cc -E runs the code through the compiler's parser,
  7139. # not just through cpp. "Syntax error" is here to catch this case.
  7140. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7141. /* end confdefs.h. */
  7142. #ifdef __STDC__
  7143. # include <limits.h>
  7144. #else
  7145. # include <assert.h>
  7146. #endif
  7147. Syntax error
  7148. _ACEOF
  7149. if ac_fn_c_try_cpp "$LINENO"; then :
  7150. else
  7151. # Broken: fails on valid input.
  7152. continue
  7153. fi
  7154. rm -f conftest.err conftest.$ac_ext
  7155. # OK, works on sane cases. Now check whether nonexistent headers
  7156. # can be detected and how.
  7157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7158. /* end confdefs.h. */
  7159. #include <ac_nonexistent.h>
  7160. _ACEOF
  7161. if ac_fn_c_try_cpp "$LINENO"; then :
  7162. # Broken: success on invalid input.
  7163. continue
  7164. else
  7165. # Passes both tests.
  7166. ac_preproc_ok=:
  7167. break
  7168. fi
  7169. rm -f conftest.err conftest.$ac_ext
  7170. done
  7171. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7172. rm -f conftest.err conftest.$ac_ext
  7173. if $ac_preproc_ok; then :
  7174. else
  7175. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7176. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7177. as_fn_error "C preprocessor \"$CPP\" fails sanity check
  7178. See \`config.log' for more details." "$LINENO" 5; }
  7179. fi
  7180. ac_ext=c
  7181. ac_cpp='$CPP $CPPFLAGS'
  7182. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7183. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7184. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7185. fi
  7186. fi
  7187. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7188. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7189. inttypes.h stdint.h unistd.h
  7190. do :
  7191. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7192. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7193. "
  7194. eval as_val=\$$as_ac_Header
  7195. if test "x$as_val" = x""yes; then :
  7196. cat >>confdefs.h <<_ACEOF
  7197. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7198. _ACEOF
  7199. fi
  7200. done
  7201. # The cast to long int works around a bug in the HP C Compiler
  7202. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  7203. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  7204. # This bug is HP SR number 8606223364.
  7205. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  7206. $as_echo_n "checking size of long... " >&6; }
  7207. if test "${ac_cv_sizeof_long+set}" = set; then :
  7208. $as_echo_n "(cached) " >&6
  7209. else
  7210. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  7211. else
  7212. if test "$ac_cv_type_long" = yes; then
  7213. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7214. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7215. { as_fn_set_status 77
  7216. as_fn_error "cannot compute sizeof (long)
  7217. See \`config.log' for more details." "$LINENO" 5; }; }
  7218. else
  7219. ac_cv_sizeof_long=0
  7220. fi
  7221. fi
  7222. fi
  7223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  7224. $as_echo "$ac_cv_sizeof_long" >&6; }
  7225. cat >>confdefs.h <<_ACEOF
  7226. #define SIZEOF_LONG $ac_cv_sizeof_long
  7227. _ACEOF
  7228. SIZEOF_LONG=$ac_cv_sizeof_long
  7229. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
  7230. $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
  7231. if test "${ac_cv_c_bigendian+set}" = set; then :
  7232. $as_echo_n "(cached) " >&6
  7233. else
  7234. ac_cv_c_bigendian=unknown
  7235. # See if we're dealing with a universal compiler.
  7236. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7237. /* end confdefs.h. */
  7238. #ifndef __APPLE_CC__
  7239. not a universal capable compiler
  7240. #endif
  7241. typedef int dummy;
  7242. _ACEOF
  7243. if ac_fn_c_try_compile "$LINENO"; then :
  7244. # Check for potential -arch flags. It is not universal unless
  7245. # there are at least two -arch flags with different values.
  7246. ac_arch=
  7247. ac_prev=
  7248. for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
  7249. if test -n "$ac_prev"; then
  7250. case $ac_word in
  7251. i?86 | x86_64 | ppc | ppc64)
  7252. if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
  7253. ac_arch=$ac_word
  7254. else
  7255. ac_cv_c_bigendian=universal
  7256. break
  7257. fi
  7258. ;;
  7259. esac
  7260. ac_prev=
  7261. elif test "x$ac_word" = "x-arch"; then
  7262. ac_prev=arch
  7263. fi
  7264. done
  7265. fi
  7266. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7267. if test $ac_cv_c_bigendian = unknown; then
  7268. # See if sys/param.h defines the BYTE_ORDER macro.
  7269. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7270. /* end confdefs.h. */
  7271. #include <sys/types.h>
  7272. #include <sys/param.h>
  7273. int
  7274. main ()
  7275. {
  7276. #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
  7277. && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
  7278. && LITTLE_ENDIAN)
  7279. bogus endian macros
  7280. #endif
  7281. ;
  7282. return 0;
  7283. }
  7284. _ACEOF
  7285. if ac_fn_c_try_compile "$LINENO"; then :
  7286. # It does; now see whether it defined to BIG_ENDIAN or not.
  7287. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7288. /* end confdefs.h. */
  7289. #include <sys/types.h>
  7290. #include <sys/param.h>
  7291. int
  7292. main ()
  7293. {
  7294. #if BYTE_ORDER != BIG_ENDIAN
  7295. not big endian
  7296. #endif
  7297. ;
  7298. return 0;
  7299. }
  7300. _ACEOF
  7301. if ac_fn_c_try_compile "$LINENO"; then :
  7302. ac_cv_c_bigendian=yes
  7303. else
  7304. ac_cv_c_bigendian=no
  7305. fi
  7306. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7307. fi
  7308. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7309. fi
  7310. if test $ac_cv_c_bigendian = unknown; then
  7311. # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
  7312. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7313. /* end confdefs.h. */
  7314. #include <limits.h>
  7315. int
  7316. main ()
  7317. {
  7318. #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
  7319. bogus endian macros
  7320. #endif
  7321. ;
  7322. return 0;
  7323. }
  7324. _ACEOF
  7325. if ac_fn_c_try_compile "$LINENO"; then :
  7326. # It does; now see whether it defined to _BIG_ENDIAN or not.
  7327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7328. /* end confdefs.h. */
  7329. #include <limits.h>
  7330. int
  7331. main ()
  7332. {
  7333. #ifndef _BIG_ENDIAN
  7334. not big endian
  7335. #endif
  7336. ;
  7337. return 0;
  7338. }
  7339. _ACEOF
  7340. if ac_fn_c_try_compile "$LINENO"; then :
  7341. ac_cv_c_bigendian=yes
  7342. else
  7343. ac_cv_c_bigendian=no
  7344. fi
  7345. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7346. fi
  7347. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7348. fi
  7349. if test $ac_cv_c_bigendian = unknown; then
  7350. # Compile a test program.
  7351. if test "$cross_compiling" = yes; then :
  7352. # Try to guess by grepping values from an object file.
  7353. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7354. /* end confdefs.h. */
  7355. short int ascii_mm[] =
  7356. { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
  7357. short int ascii_ii[] =
  7358. { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
  7359. int use_ascii (int i) {
  7360. return ascii_mm[i] + ascii_ii[i];
  7361. }
  7362. short int ebcdic_ii[] =
  7363. { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
  7364. short int ebcdic_mm[] =
  7365. { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
  7366. int use_ebcdic (int i) {
  7367. return ebcdic_mm[i] + ebcdic_ii[i];
  7368. }
  7369. extern int foo;
  7370. int
  7371. main ()
  7372. {
  7373. return use_ascii (foo) == use_ebcdic (foo);
  7374. ;
  7375. return 0;
  7376. }
  7377. _ACEOF
  7378. if ac_fn_c_try_compile "$LINENO"; then :
  7379. if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
  7380. ac_cv_c_bigendian=yes
  7381. fi
  7382. if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
  7383. if test "$ac_cv_c_bigendian" = unknown; then
  7384. ac_cv_c_bigendian=no
  7385. else
  7386. # finding both strings is unlikely to happen, but who knows?
  7387. ac_cv_c_bigendian=unknown
  7388. fi
  7389. fi
  7390. fi
  7391. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7392. else
  7393. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7394. /* end confdefs.h. */
  7395. $ac_includes_default
  7396. int
  7397. main ()
  7398. {
  7399. /* Are we little or big endian? From Harbison&Steele. */
  7400. union
  7401. {
  7402. long int l;
  7403. char c[sizeof (long int)];
  7404. } u;
  7405. u.l = 1;
  7406. return u.c[sizeof (long int) - 1] == 1;
  7407. ;
  7408. return 0;
  7409. }
  7410. _ACEOF
  7411. if ac_fn_c_try_run "$LINENO"; then :
  7412. ac_cv_c_bigendian=no
  7413. else
  7414. ac_cv_c_bigendian=yes
  7415. fi
  7416. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7417. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7418. fi
  7419. fi
  7420. fi
  7421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
  7422. $as_echo "$ac_cv_c_bigendian" >&6; }
  7423. case $ac_cv_c_bigendian in #(
  7424. yes)
  7425. $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
  7426. ;; #(
  7427. no)
  7428. ;; #(
  7429. universal)
  7430. $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
  7431. ;; #(
  7432. *)
  7433. as_fn_error "unknown endianness
  7434. presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
  7435. esac
  7436. WORDS_BIGENDIAN=$ac_cv_c_bigendian
  7437. # Check whether --enable-largefile was given.
  7438. if test "${enable_largefile+set}" = set; then :
  7439. enableval=$enable_largefile;
  7440. fi
  7441. if test "$enable_largefile" != no; then
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  7443. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  7444. if test "${ac_cv_sys_largefile_CC+set}" = set; then :
  7445. $as_echo_n "(cached) " >&6
  7446. else
  7447. ac_cv_sys_largefile_CC=no
  7448. if test "$GCC" != yes; then
  7449. ac_save_CC=$CC
  7450. while :; do
  7451. # IRIX 6.2 and later do not support large files by default,
  7452. # so use the C compiler's -n32 option if that helps.
  7453. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7454. /* end confdefs.h. */
  7455. #include <sys/types.h>
  7456. /* Check that off_t can represent 2**63 - 1 correctly.
  7457. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7458. since some C++ compilers masquerading as C compilers
  7459. incorrectly reject 9223372036854775807. */
  7460. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7461. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7462. && LARGE_OFF_T % 2147483647 == 1)
  7463. ? 1 : -1];
  7464. int
  7465. main ()
  7466. {
  7467. ;
  7468. return 0;
  7469. }
  7470. _ACEOF
  7471. if ac_fn_c_try_compile "$LINENO"; then :
  7472. break
  7473. fi
  7474. rm -f core conftest.err conftest.$ac_objext
  7475. CC="$CC -n32"
  7476. if ac_fn_c_try_compile "$LINENO"; then :
  7477. ac_cv_sys_largefile_CC=' -n32'; break
  7478. fi
  7479. rm -f core conftest.err conftest.$ac_objext
  7480. break
  7481. done
  7482. CC=$ac_save_CC
  7483. rm -f conftest.$ac_ext
  7484. fi
  7485. fi
  7486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  7487. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  7488. if test "$ac_cv_sys_largefile_CC" != no; then
  7489. CC=$CC$ac_cv_sys_largefile_CC
  7490. fi
  7491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  7492. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  7493. if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
  7494. $as_echo_n "(cached) " >&6
  7495. else
  7496. while :; do
  7497. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7498. /* end confdefs.h. */
  7499. #include <sys/types.h>
  7500. /* Check that off_t can represent 2**63 - 1 correctly.
  7501. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7502. since some C++ compilers masquerading as C compilers
  7503. incorrectly reject 9223372036854775807. */
  7504. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7505. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7506. && LARGE_OFF_T % 2147483647 == 1)
  7507. ? 1 : -1];
  7508. int
  7509. main ()
  7510. {
  7511. ;
  7512. return 0;
  7513. }
  7514. _ACEOF
  7515. if ac_fn_c_try_compile "$LINENO"; then :
  7516. ac_cv_sys_file_offset_bits=no; break
  7517. fi
  7518. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7519. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7520. /* end confdefs.h. */
  7521. #define _FILE_OFFSET_BITS 64
  7522. #include <sys/types.h>
  7523. /* Check that off_t can represent 2**63 - 1 correctly.
  7524. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7525. since some C++ compilers masquerading as C compilers
  7526. incorrectly reject 9223372036854775807. */
  7527. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7528. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7529. && LARGE_OFF_T % 2147483647 == 1)
  7530. ? 1 : -1];
  7531. int
  7532. main ()
  7533. {
  7534. ;
  7535. return 0;
  7536. }
  7537. _ACEOF
  7538. if ac_fn_c_try_compile "$LINENO"; then :
  7539. ac_cv_sys_file_offset_bits=64; break
  7540. fi
  7541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7542. ac_cv_sys_file_offset_bits=unknown
  7543. break
  7544. done
  7545. fi
  7546. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  7547. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  7548. case $ac_cv_sys_file_offset_bits in #(
  7549. no | unknown) ;;
  7550. *)
  7551. cat >>confdefs.h <<_ACEOF
  7552. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  7553. _ACEOF
  7554. ;;
  7555. esac
  7556. rm -rf conftest*
  7557. if test $ac_cv_sys_file_offset_bits = unknown; then
  7558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  7559. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  7560. if test "${ac_cv_sys_large_files+set}" = set; then :
  7561. $as_echo_n "(cached) " >&6
  7562. else
  7563. while :; do
  7564. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7565. /* end confdefs.h. */
  7566. #include <sys/types.h>
  7567. /* Check that off_t can represent 2**63 - 1 correctly.
  7568. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7569. since some C++ compilers masquerading as C compilers
  7570. incorrectly reject 9223372036854775807. */
  7571. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7572. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7573. && LARGE_OFF_T % 2147483647 == 1)
  7574. ? 1 : -1];
  7575. int
  7576. main ()
  7577. {
  7578. ;
  7579. return 0;
  7580. }
  7581. _ACEOF
  7582. if ac_fn_c_try_compile "$LINENO"; then :
  7583. ac_cv_sys_large_files=no; break
  7584. fi
  7585. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7586. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7587. /* end confdefs.h. */
  7588. #define _LARGE_FILES 1
  7589. #include <sys/types.h>
  7590. /* Check that off_t can represent 2**63 - 1 correctly.
  7591. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  7592. since some C++ compilers masquerading as C compilers
  7593. incorrectly reject 9223372036854775807. */
  7594. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  7595. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  7596. && LARGE_OFF_T % 2147483647 == 1)
  7597. ? 1 : -1];
  7598. int
  7599. main ()
  7600. {
  7601. ;
  7602. return 0;
  7603. }
  7604. _ACEOF
  7605. if ac_fn_c_try_compile "$LINENO"; then :
  7606. ac_cv_sys_large_files=1; break
  7607. fi
  7608. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7609. ac_cv_sys_large_files=unknown
  7610. break
  7611. done
  7612. fi
  7613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  7614. $as_echo "$ac_cv_sys_large_files" >&6; }
  7615. case $ac_cv_sys_large_files in #(
  7616. no | unknown) ;;
  7617. *)
  7618. cat >>confdefs.h <<_ACEOF
  7619. #define _LARGE_FILES $ac_cv_sys_large_files
  7620. _ACEOF
  7621. ;;
  7622. esac
  7623. rm -rf conftest*
  7624. fi
  7625. fi
  7626. if test -n "$ac_cv_sys_file_offset_bits"; then
  7627. LFS_CFLAGS="-D_FILE_OFFSET_BITS=$ac_cv_sys_file_offset_bits"
  7628. fi
  7629. if test -n "$ac_cv_sys_large_files" && test "$ac_cv_sys_large_files" != "no"; then
  7630. LFS_CFLAGS="$LFS_CFLAGS -D_LARGE_FILES"
  7631. fi
  7632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable vba feature" >&5
  7633. $as_echo_n "checking whether to disable vba feature... " >&6; }
  7634. if test -n "$enable_vba" && test "$enable_vba" = "no"; then
  7635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7636. $as_echo "yes" >&6; }
  7637. ENABLE_VBA=NO
  7638. else
  7639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7640. $as_echo "no" >&6; }
  7641. ENABLE_VBA=YES
  7642. fi
  7643. if test "$ENABLE_VBA" = "YES"; then
  7644. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to package the vba compatibility api" >&5
  7645. $as_echo_n "checking how to package the vba compatibility api... " >&6; }
  7646. if test -n "$with_vba_package_format"; then
  7647. if test "$with_vba_package_format" = "extn"; then
  7648. VBA_EXTENSION=YES
  7649. { $as_echo "$as_me:${as_lineno-$LINENO}: result: uno extension" >&5
  7650. $as_echo "uno extension" >&6; }
  7651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: --with-vba-package-format=extn can cause problems" >&5
  7652. $as_echo "$as_me: WARNING: --with-vba-package-format=extn can cause problems" >&2;}
  7653. else if test "$with_vba_package_format" = "builtin"; then
  7654. VBA_EXTENSION=NO
  7655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: build into installset" >&5
  7656. $as_echo "build into installset" >&6; }
  7657. else
  7658. as_fn_error "unknown packaging method" "$LINENO" 5
  7659. fi
  7660. fi
  7661. else
  7662. VBA_EXTENSION=NO
  7663. { $as_echo "$as_me:${as_lineno-$LINENO}: result: defaulting to build into installset" >&5
  7664. $as_echo "defaulting to build into installset" >&6; }
  7665. fi
  7666. else
  7667. VBA_EXTENSION=NO
  7668. fi
  7669. if test "$test_cups" = "yes" -a "$ENABLE_CUPS" = "TRUE" ; then
  7670. ac_fn_c_check_header_mongrel "$LINENO" "cups/cups.h" "ac_cv_header_cups_cups_h" "$ac_includes_default"
  7671. if test "x$ac_cv_header_cups_cups_h" = x""yes; then :
  7672. else
  7673. as_fn_error "cups/cups.h could not be found. libcupsys2-dev or cups???-devel missing?" "$LINENO" 5
  7674. fi
  7675. fi
  7676. if test "$_os" = "Linux" -o "$_os" = "FreeBSD" -o "$_os" = "GNU"; then
  7677. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable pam support" >&5
  7678. $as_echo_n "checking whether to enable pam support... " >&6; }
  7679. if test -z "$enable_pam" || test "$enable_pam" != "no"; then
  7680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7681. $as_echo "yes" >&6; }
  7682. PAM=YES
  7683. ac_fn_c_check_header_mongrel "$LINENO" "security/pam_appl.h" "ac_cv_header_security_pam_appl_h" "$ac_includes_default"
  7684. if test "x$ac_cv_header_security_pam_appl_h" = x""yes; then :
  7685. else
  7686. as_fn_error "pam_appl.h could not be found. libpam-dev or pam-devel missing?" "$LINENO" 5
  7687. fi
  7688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link to libpam" >&5
  7689. $as_echo_n "checking whether to link to libpam... " >&6; }
  7690. if test -n "$enable_pam_link" -a "$enable_pam_link" != "no"; then
  7691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7692. $as_echo "yes" >&6; }
  7693. PAM_LINK=YES
  7694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
  7695. $as_echo_n "checking for pam_start in -lpam... " >&6; }
  7696. if test "${ac_cv_lib_pam_pam_start+set}" = set; then :
  7697. $as_echo_n "(cached) " >&6
  7698. else
  7699. ac_check_lib_save_LIBS=$LIBS
  7700. LIBS="-lpam $LIBS"
  7701. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7702. /* end confdefs.h. */
  7703. /* Override any GCC internal prototype to avoid an error.
  7704. Use char because int might match the return type of a GCC
  7705. builtin and then its argument prototype would still apply. */
  7706. #ifdef __cplusplus
  7707. extern "C"
  7708. #endif
  7709. char pam_start ();
  7710. int
  7711. main ()
  7712. {
  7713. return pam_start ();
  7714. ;
  7715. return 0;
  7716. }
  7717. _ACEOF
  7718. if ac_fn_c_try_link "$LINENO"; then :
  7719. ac_cv_lib_pam_pam_start=yes
  7720. else
  7721. ac_cv_lib_pam_pam_start=no
  7722. fi
  7723. rm -f core conftest.err conftest.$ac_objext \
  7724. conftest$ac_exeext conftest.$ac_ext
  7725. LIBS=$ac_check_lib_save_LIBS
  7726. fi
  7727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pam_pam_start" >&5
  7728. $as_echo "$ac_cv_lib_pam_pam_start" >&6; }
  7729. if test "x$ac_cv_lib_pam_pam_start" = x""yes; then :
  7730. cat >>confdefs.h <<_ACEOF
  7731. #define HAVE_LIBPAM 1
  7732. _ACEOF
  7733. LIBS="-lpam $LIBS"
  7734. else
  7735. as_fn_error "libpam not found or functional" "$LINENO" 5
  7736. fi
  7737. else
  7738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, dynamically open it" >&5
  7739. $as_echo "no, dynamically open it" >&6; }
  7740. PAM_LINK=NO
  7741. fi
  7742. else
  7743. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7744. $as_echo "no" >&6; }
  7745. PAM=NO
  7746. PAM_LINK=NO
  7747. ac_ext=c
  7748. ac_cpp='$CPP $CPPFLAGS'
  7749. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7750. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7751. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7752. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments getspnam_r() takes" >&5
  7753. $as_echo_n "checking how many arguments getspnam_r() takes... " >&6; }
  7754. if test "${ac_cv_func_which_getspnam_r+set}" = set; then :
  7755. $as_echo_n "(cached) " >&6
  7756. else
  7757. ################################################################
  7758. ac_cv_func_which_getspnam_r=unknown
  7759. #
  7760. # ONE ARGUMENT (sanity check)
  7761. #
  7762. # This should fail, as there is no variant of getspnam_r() that takes
  7763. # a single argument. If it actually compiles, then we can assume that
  7764. # netdb.h is not declaring the function, and the compiler is thereby
  7765. # assuming an implicit prototype. In which case, we're out of luck.
  7766. #
  7767. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7768. /* end confdefs.h. */
  7769. #include <sys/types.h>
  7770. #include <shadow.h>
  7771. int
  7772. main ()
  7773. {
  7774. const char *name = "myname";
  7775. getspnam_r(name) /* ; */
  7776. ;
  7777. return 0;
  7778. }
  7779. _ACEOF
  7780. if ac_fn_c_try_compile "$LINENO"; then :
  7781. ac_cv_func_which_getspnam_r=no
  7782. fi
  7783. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7784. #
  7785. # FIVE ARGUMENTS
  7786. #
  7787. if test "$ac_cv_func_which_getspnam_r" = "unknown"; then
  7788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7789. /* end confdefs.h. */
  7790. #include <sys/types.h>
  7791. #include <shadow.h>
  7792. int
  7793. main ()
  7794. {
  7795. char buffer[] = { '\0' };
  7796. struct spwd spwdStruct;
  7797. const char *name = "myname";
  7798. getspnam_r(name, &spwdStruct, buffer, sizeof buffer, 0) /* ; */
  7799. ;
  7800. return 0;
  7801. }
  7802. _ACEOF
  7803. if ac_fn_c_try_compile "$LINENO"; then :
  7804. ac_cv_func_which_getspnam_r=five
  7805. fi
  7806. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7807. fi
  7808. #
  7809. # FOUR ARGUMENTS
  7810. #
  7811. if test "$ac_cv_func_which_getspnam_r" = "unknown"; then
  7812. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7813. /* end confdefs.h. */
  7814. #include <sys/types.h>
  7815. #include <shadow.h>
  7816. int
  7817. main ()
  7818. {
  7819. char buffer[] = { '\0' };
  7820. struct spwd spwdStruct;
  7821. const char *name = "myname";
  7822. getspnam_r(name, &spwdStruct, buffer, sizeof buffer) /* ; */
  7823. ;
  7824. return 0;
  7825. }
  7826. _ACEOF
  7827. if ac_fn_c_try_compile "$LINENO"; then :
  7828. ac_cv_func_which_getspnam_r=four
  7829. fi
  7830. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7831. fi
  7832. ################################################################
  7833. fi
  7834. case "$ac_cv_func_which_getspnam_r" in
  7835. five)
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
  7837. $as_echo "five" >&6; }
  7838. NEW_SHADOW_API=YES
  7839. ;;
  7840. four)
  7841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: four" >&5
  7842. $as_echo "four" >&6; }
  7843. ;;
  7844. no)
  7845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in shadow.h" >&5
  7846. $as_echo "cannot find function declaration in shadow.h" >&6; }
  7847. ;;
  7848. unknown)
  7849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
  7850. $as_echo "can't tell" >&6; }
  7851. ;;
  7852. *)
  7853. as_fn_error "internal error" "$LINENO" 5
  7854. ;;
  7855. esac
  7856. ac_ext=c
  7857. ac_cpp='$CPP $CPPFLAGS'
  7858. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7859. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7860. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7861. fi
  7862. fi
  7863. if test "$_os" = "Linux"; then
  7864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to link to libcrypt" >&5
  7865. $as_echo_n "checking whether to link to libcrypt... " >&6; }
  7866. if test -n "$enable_crypt_link" -a "$enable_crypt_link" != "no"; then
  7867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  7868. $as_echo "yes" >&6; }
  7869. CRYPT_LINK=YES
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for crypt in -lcrypt" >&5
  7871. $as_echo_n "checking for crypt in -lcrypt... " >&6; }
  7872. if test "${ac_cv_lib_crypt_crypt+set}" = set; then :
  7873. $as_echo_n "(cached) " >&6
  7874. else
  7875. ac_check_lib_save_LIBS=$LIBS
  7876. LIBS="-lcrypt $LIBS"
  7877. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7878. /* end confdefs.h. */
  7879. /* Override any GCC internal prototype to avoid an error.
  7880. Use char because int might match the return type of a GCC
  7881. builtin and then its argument prototype would still apply. */
  7882. #ifdef __cplusplus
  7883. extern "C"
  7884. #endif
  7885. char crypt ();
  7886. int
  7887. main ()
  7888. {
  7889. return crypt ();
  7890. ;
  7891. return 0;
  7892. }
  7893. _ACEOF
  7894. if ac_fn_c_try_link "$LINENO"; then :
  7895. ac_cv_lib_crypt_crypt=yes
  7896. else
  7897. ac_cv_lib_crypt_crypt=no
  7898. fi
  7899. rm -f core conftest.err conftest.$ac_objext \
  7900. conftest$ac_exeext conftest.$ac_ext
  7901. LIBS=$ac_check_lib_save_LIBS
  7902. fi
  7903. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_crypt_crypt" >&5
  7904. $as_echo "$ac_cv_lib_crypt_crypt" >&6; }
  7905. if test "x$ac_cv_lib_crypt_crypt" = x""yes; then :
  7906. cat >>confdefs.h <<_ACEOF
  7907. #define HAVE_LIBCRYPT 1
  7908. _ACEOF
  7909. LIBS="-lcrypt $LIBS"
  7910. else
  7911. as_fn_error "libcrypt not found or functional" "$LINENO" 5
  7912. fi
  7913. else
  7914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, dynamically open it" >&5
  7915. $as_echo "no, dynamically open it" >&6; }
  7916. CRYPT_LINK=NO
  7917. fi
  7918. fi
  7919. if test -n "$with_gcc_home"; then
  7920. if test -z "$CXX"; then
  7921. CXX="$with_gcc_home/bin/g++"
  7922. fi
  7923. fi
  7924. if test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
  7925. if test -e "$CC"; then
  7926. CXX="$CC"
  7927. fi
  7928. fi
  7929. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  7930. ac_ext=cpp
  7931. ac_cpp='$CXXCPP $CPPFLAGS'
  7932. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7933. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7934. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  7935. if test -z "$CXX"; then
  7936. if test -n "$CCC"; then
  7937. CXX=$CCC
  7938. else
  7939. if test -n "$ac_tool_prefix"; then
  7940. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7941. do
  7942. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  7943. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  7944. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7945. $as_echo_n "checking for $ac_word... " >&6; }
  7946. if test "${ac_cv_prog_CXX+set}" = set; then :
  7947. $as_echo_n "(cached) " >&6
  7948. else
  7949. if test -n "$CXX"; then
  7950. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  7951. else
  7952. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7953. for as_dir in $PATH
  7954. do
  7955. IFS=$as_save_IFS
  7956. test -z "$as_dir" && as_dir=.
  7957. for ac_exec_ext in '' $ac_executable_extensions; do
  7958. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  7959. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  7960. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7961. break 2
  7962. fi
  7963. done
  7964. done
  7965. IFS=$as_save_IFS
  7966. fi
  7967. fi
  7968. CXX=$ac_cv_prog_CXX
  7969. if test -n "$CXX"; then
  7970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  7971. $as_echo "$CXX" >&6; }
  7972. else
  7973. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7974. $as_echo "no" >&6; }
  7975. fi
  7976. test -n "$CXX" && break
  7977. done
  7978. fi
  7979. if test -z "$CXX"; then
  7980. ac_ct_CXX=$CXX
  7981. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  7982. do
  7983. # Extract the first word of "$ac_prog", so it can be a program name with args.
  7984. set dummy $ac_prog; ac_word=$2
  7985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7986. $as_echo_n "checking for $ac_word... " >&6; }
  7987. if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
  7988. $as_echo_n "(cached) " >&6
  7989. else
  7990. if test -n "$ac_ct_CXX"; then
  7991. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  7992. else
  7993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7994. for as_dir in $PATH
  7995. do
  7996. IFS=$as_save_IFS
  7997. test -z "$as_dir" && as_dir=.
  7998. for ac_exec_ext in '' $ac_executable_extensions; do
  7999. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8000. ac_cv_prog_ac_ct_CXX="$ac_prog"
  8001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8002. break 2
  8003. fi
  8004. done
  8005. done
  8006. IFS=$as_save_IFS
  8007. fi
  8008. fi
  8009. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  8010. if test -n "$ac_ct_CXX"; then
  8011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  8012. $as_echo "$ac_ct_CXX" >&6; }
  8013. else
  8014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8015. $as_echo "no" >&6; }
  8016. fi
  8017. test -n "$ac_ct_CXX" && break
  8018. done
  8019. if test "x$ac_ct_CXX" = x; then
  8020. CXX="g++"
  8021. else
  8022. case $cross_compiling:$ac_tool_warned in
  8023. yes:)
  8024. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  8025. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  8026. ac_tool_warned=yes ;;
  8027. esac
  8028. CXX=$ac_ct_CXX
  8029. fi
  8030. fi
  8031. fi
  8032. fi
  8033. # Provide some information about the compiler.
  8034. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  8035. set X $ac_compile
  8036. ac_compiler=$2
  8037. for ac_option in --version -v -V -qversion; do
  8038. { { ac_try="$ac_compiler $ac_option >&5"
  8039. case "(($ac_try" in
  8040. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  8041. *) ac_try_echo=$ac_try;;
  8042. esac
  8043. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  8044. $as_echo "$ac_try_echo"; } >&5
  8045. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  8046. ac_status=$?
  8047. if test -s conftest.err; then
  8048. sed '10a\
  8049. ... rest of stderr output deleted ...
  8050. 10q' conftest.err >conftest.er1
  8051. cat conftest.er1 >&5
  8052. rm -f conftest.er1 conftest.err
  8053. fi
  8054. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8055. test $ac_status = 0; }
  8056. done
  8057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  8058. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  8059. if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
  8060. $as_echo_n "(cached) " >&6
  8061. else
  8062. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8063. /* end confdefs.h. */
  8064. int
  8065. main ()
  8066. {
  8067. #ifndef __GNUC__
  8068. choke me
  8069. #endif
  8070. ;
  8071. return 0;
  8072. }
  8073. _ACEOF
  8074. if ac_fn_cxx_try_compile "$LINENO"; then :
  8075. ac_compiler_gnu=yes
  8076. else
  8077. ac_compiler_gnu=no
  8078. fi
  8079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8080. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  8081. fi
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  8083. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  8084. if test $ac_compiler_gnu = yes; then
  8085. GXX=yes
  8086. else
  8087. GXX=
  8088. fi
  8089. ac_test_CXXFLAGS=${CXXFLAGS+set}
  8090. ac_save_CXXFLAGS=$CXXFLAGS
  8091. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  8092. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  8093. if test "${ac_cv_prog_cxx_g+set}" = set; then :
  8094. $as_echo_n "(cached) " >&6
  8095. else
  8096. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  8097. ac_cxx_werror_flag=yes
  8098. ac_cv_prog_cxx_g=no
  8099. CXXFLAGS="-g"
  8100. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8101. /* end confdefs.h. */
  8102. int
  8103. main ()
  8104. {
  8105. ;
  8106. return 0;
  8107. }
  8108. _ACEOF
  8109. if ac_fn_cxx_try_compile "$LINENO"; then :
  8110. ac_cv_prog_cxx_g=yes
  8111. else
  8112. CXXFLAGS=""
  8113. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8114. /* end confdefs.h. */
  8115. int
  8116. main ()
  8117. {
  8118. ;
  8119. return 0;
  8120. }
  8121. _ACEOF
  8122. if ac_fn_cxx_try_compile "$LINENO"; then :
  8123. else
  8124. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  8125. CXXFLAGS="-g"
  8126. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8127. /* end confdefs.h. */
  8128. int
  8129. main ()
  8130. {
  8131. ;
  8132. return 0;
  8133. }
  8134. _ACEOF
  8135. if ac_fn_cxx_try_compile "$LINENO"; then :
  8136. ac_cv_prog_cxx_g=yes
  8137. fi
  8138. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8139. fi
  8140. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8141. fi
  8142. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8143. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  8144. fi
  8145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  8146. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  8147. if test "$ac_test_CXXFLAGS" = set; then
  8148. CXXFLAGS=$ac_save_CXXFLAGS
  8149. elif test $ac_cv_prog_cxx_g = yes; then
  8150. if test "$GXX" = yes; then
  8151. CXXFLAGS="-g -O2"
  8152. else
  8153. CXXFLAGS="-g"
  8154. fi
  8155. else
  8156. if test "$GXX" = yes; then
  8157. CXXFLAGS="-O2"
  8158. else
  8159. CXXFLAGS=
  8160. fi
  8161. fi
  8162. ac_ext=c
  8163. ac_cpp='$CPP $CPPFLAGS'
  8164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8167. fi
  8168. if test "$GXX" = "yes"; then
  8169. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the GNU C++ compiler version" >&5
  8170. $as_echo_n "checking the GNU C++ compiler version... " >&6; }
  8171. _gpp_version=`$CXX -dumpversion`
  8172. _gpp_major=`echo $_gpp_version | $AWK -F. '{ print \$1 }'`
  8173. _gpp_minor=`echo $_gpp_version | $AWK -F. '{ print \$2 }'`
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (g++ $_gpp_version)" >&5
  8175. $as_echo "checked (g++ $_gpp_version)" >&6; }
  8176. if test "$_gpp_major" = "3"; then
  8177. if test "$_gpp_minor" = "4"; then
  8178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX has the enum bug" >&5
  8179. $as_echo_n "checking whether $CXX has the enum bug... " >&6; }
  8180. if test "$cross_compiling" = yes; then :
  8181. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  8182. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  8183. as_fn_error "cannot run test program while cross compiling
  8184. See \`config.log' for more details." "$LINENO" 5; }
  8185. else
  8186. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8187. /* end confdefs.h. */
  8188. extern "C" void abort (void);
  8189. extern "C" void exit (int status);
  8190. enum E { E0, E1, E2, E3, E4, E5 };
  8191. void
  8192. test (enum E e)
  8193. {
  8194. if (e == E2 || e == E3 || e == E1)
  8195. exit (1);
  8196. }
  8197. int
  8198. main (void)
  8199. {
  8200. test (E4);
  8201. test (E5);
  8202. test (E0);
  8203. return 0;
  8204. }
  8205. _ACEOF
  8206. if ac_fn_c_try_run "$LINENO"; then :
  8207. as_fn_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." "$LINENO" 5
  8208. else
  8209. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8210. $as_echo "no" >&6; }
  8211. fi
  8212. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  8213. conftest.$ac_objext conftest.beam conftest.$ac_ext
  8214. fi
  8215. fi
  8216. fi
  8217. fi
  8218. # Removed the special FreeBSD treatment. The problem was that with_gxx_include_path
  8219. # often contains an i386 which is expanded as a macro. Solved in stlport.
  8220. if test "$GXX" = "yes"; then
  8221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for g++ include path" >&5
  8222. $as_echo_n "checking for g++ include path... " >&6; }
  8223. if test -z "$with_gxx_include_path"; then
  8224. with_gxx_include_path=`echo "#include <cstring>" | $CXX -E -xc++ - | $SED -n '/.*1*"\(.*\)\/cstring".*/s//\1/p' | head -n 1`
  8225. if test "$with_gxx_include_path" = "/usr/libexec/(null)/include"; then
  8226. with_gxx_include_path="/usr/include"
  8227. fi
  8228. if test "$WITH_MINGWIN" = "yes"; then
  8229. with_gxx_include_path=`cygpath -d "$with_gxx_include_path"`
  8230. with_gxx_include_path=`cygpath -u "$with_gxx_include_path"`
  8231. fi
  8232. if echo $with_gxx_include_path | grep -q linux; then
  8233. # workaround for Mandriva - issue 100049
  8234. with_gxx_include_path=`cd $with_gxx_include_path && pwd`
  8235. fi
  8236. fi
  8237. fi
  8238. if test -z "$with_gxx_include_path"; then
  8239. with_gxx_include_path="NO_GXX_INCLUDE"
  8240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no g++ includes" >&5
  8241. $as_echo "no g++ includes" >&6; }
  8242. else
  8243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_gxx_include_path" >&5
  8244. $as_echo "$with_gxx_include_path" >&6; }
  8245. fi
  8246. GXX_INCLUDE_PATH="$with_gxx_include_path"
  8247. if test "$WITH_MINGWIN" = "yes"; then
  8248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mingwin runtime include path" >&5
  8249. $as_echo_n "checking for mingwin runtime include path... " >&6; }
  8250. cat >conftest.$ac_ext <<_ACEOF
  8251. #include <stddef.h>
  8252. #include <bits/c++config.h>
  8253. _ACEOF
  8254. _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`
  8255. rm conftest.$ac_ext
  8256. if test -n "$_mingw_lib_include_path"; then
  8257. _temp=""
  8258. for a in $_mingw_lib_include_path
  8259. do
  8260. a=`cygpath -d "$a"`
  8261. _temp="$_temp "`cygpath -u "$a"`
  8262. done
  8263. _mingw_lib_include_path=$_temp
  8264. fi
  8265. if test -z "$_mingw_lib_include_path"; then
  8266. _mingw_lib_include_path="NO_LIB_INCLUDE"
  8267. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no mingwin runtime includes" >&5
  8268. $as_echo "no mingwin runtime includes" >&6; }
  8269. else
  8270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_mingw_lib_include_path" >&5
  8271. $as_echo "$_mingw_lib_include_path" >&6; }
  8272. fi
  8273. MINGW_LIB_INCLUDE_PATH="$_mingw_lib_include_path"
  8274. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mingwin c++ backward include path" >&5
  8275. $as_echo_n "checking for mingwin c++ backward include path... " >&6; }
  8276. cat >conftest.$ac_ext <<_ACEOF
  8277. #include <hash_set>
  8278. _ACEOF
  8279. _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`
  8280. rm conftest.$ac_ext
  8281. if test -n "$_mingw_backward_include_path"; then
  8282. _mingw_backward_include_path=`cygpath -d $_mingw_backward_include_path`
  8283. _mingw_backward_include_path=`cygpath -u $_mingw_backward_include_path`
  8284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_mingw_backward_include_path" >&5
  8285. $as_echo "$_mingw_backward_include_path" >&6; }
  8286. else
  8287. _mingw_backward_include_path="NO_BACKWARD_INCLUDE"
  8288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no mingwin c++ backward includes" >&5
  8289. $as_echo "no mingwin c++ backward includes" >&6; }
  8290. fi
  8291. MINGW_BACKWARD_INCLUDE_PATH="$_mingw_backward_include_path"
  8292. mingw_crtbegin=`$CC -print-file-name=crtbegin.o`
  8293. MINGW_CLIB_DIR=`dirname $mingw_crtbegin`
  8294. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic libgcc" >&5
  8295. $as_echo_n "checking whether to use dynamic libgcc... " >&6; }
  8296. if test -e "$MINGW_CLIB_DIR/libgcc_s.a"; then
  8297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic libgcc name" >&5
  8298. $as_echo_n "checking dynamic libgcc name... " >&6; }
  8299. 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'`
  8300. MINGW_GCCDLL=`cd $COMPATH/bin && ls $MINGW_GCCDLL_pattern 2>/dev/null`
  8301. if test -n "$MINGW_GCCDLL"; then
  8302. MINGW_SHARED_GCCLIB=YES
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: use $MINGW_GCCDLL" >&5
  8304. $as_echo "use $MINGW_GCCDLL" >&6; }
  8305. else
  8306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8307. $as_echo "no" >&6; }
  8308. fi
  8309. else
  8310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8311. $as_echo "no" >&6; }
  8312. fi
  8313. if test -e "$MINGW_CLIB_DIR/libgcc_eh.a"; then
  8314. MINGW_GCCLIB_EH=YES
  8315. fi
  8316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use dynamic libstdc++" >&5
  8317. $as_echo_n "checking whether to use dynamic libstdc++... " >&6; }
  8318. if test -e "$MINGW_CLIB_DIR/libstdc++_s.a" ; then
  8319. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic libstdc++ name" >&5
  8320. $as_echo_n "checking dynamic libstdc++ name... " >&6; }
  8321. 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'`
  8322. MINGW_GXXDLL=`cd $COMPATH/bin && ls $MINGW_GXXDLL_pattern 2>/dev/null`
  8323. if test -n "$MINGW_GXXDLL"; then
  8324. MINGW_SHARED_GXXLIB=YES
  8325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: use $MINGW_GXXDLL" >&5
  8326. $as_echo "use $MINGW_GXXDLL" >&6; }
  8327. else
  8328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8329. $as_echo "no" >&6; }
  8330. fi
  8331. else
  8332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8333. $as_echo "no" >&6; }
  8334. fi
  8335. MINGW_CLIB_DIR=`cygpath $MINGW_CLIB_DIR`
  8336. fi
  8337. if test "$_os" = "SunOS"; then
  8338. if test "$CC" = "cc"; then
  8339. { $as_echo "$as_me:${as_lineno-$LINENO}: checking SunStudio C++ Compiler" >&5
  8340. $as_echo_n "checking SunStudio C++ Compiler... " >&6; }
  8341. if test "$CXX" != "CC"; then
  8342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: SunStudio C++ was not found" >&5
  8343. $as_echo "$as_me: WARNING: SunStudio C++ was not found" >&2;}
  8344. echo "SunStudio C++ was not found" >> warn
  8345. else
  8346. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8347. $as_echo "checked" >&6; }
  8348. fi
  8349. fi
  8350. fi
  8351. if test "$_os" = "Darwin"; then
  8352. if test "$CC" = "cc"; then
  8353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Macosx c++ Compiler" >&5
  8354. $as_echo_n "checking Macosx c++ Compiler... " >&6; }
  8355. if test "$CXX" != "c++"; then
  8356. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Macosx C++ was not found" >&5
  8357. $as_echo "$as_me: WARNING: Macosx C++ was not found" >&2;}
  8358. echo "Macosx C++ was not found" >> warn
  8359. else
  8360. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8361. $as_echo "checked" >&6; }
  8362. fi
  8363. fi
  8364. fi
  8365. if test "$_os" = "OSF1"; then
  8366. { $as_echo "$as_me:${as_lineno-$LINENO}: checking Compaq C++ compiler version" >&5
  8367. $as_echo_n "checking Compaq C++ compiler version... " >&6; }
  8368. _compaqcxx_version=`$CXX -V 2>&1 | $AWK '{ print $3 }'`
  8369. _compaqcxx_major=`echo $_compaqcxx_version | $AWK -F. '{ print $1 }'`
  8370. if test "$_compaqcxx_major" != "V6"; then
  8371. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: found version \"$_compaqc_version\", use version 6 of the Compaq C++ compiler" >&5
  8372. $as_echo "$as_me: WARNING: found version \"$_compaqc_version\", use version 6 of the Compaq C++ compiler" >&2;}
  8373. echo "found version $_compaqc_version, use version 6 of the Compaq C++ compiler" >> warn
  8374. else
  8375. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8376. $as_echo "checked" >&6; }
  8377. fi
  8378. fi
  8379. { $as_echo "$as_me:${as_lineno-$LINENO}: checking exception type" >&5
  8380. $as_echo_n "checking exception type... " >&6; }
  8381. ac_ext=cpp
  8382. ac_cpp='$CXXCPP $CPPFLAGS'
  8383. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8384. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8385. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8386. if test "$WITH_MINGWIN" = "yes"; then
  8387. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8388. /* end confdefs.h. */
  8389. #include <iostream>
  8390. extern "C" void _Unwind_SjLj_RaiseException(void) __attribute__ ((__noreturn__));
  8391. int
  8392. main ()
  8393. {
  8394. _Unwind_SjLj_RaiseException()
  8395. ;
  8396. return 0;
  8397. }
  8398. _ACEOF
  8399. if ac_fn_cxx_try_link "$LINENO"; then :
  8400. exceptions_type="sjlj"
  8401. else
  8402. exceptions_type="dwarf2"
  8403. fi
  8404. rm -f core conftest.err conftest.$ac_objext \
  8405. conftest$ac_exeext conftest.$ac_ext
  8406. fi
  8407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $exceptions_type" >&5
  8408. $as_echo "$exceptions_type" >&6; }
  8409. ac_ext=c
  8410. ac_cpp='$CPP $CPPFLAGS'
  8411. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8412. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8413. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8414. EXCEPTIONS="$exceptions_type"
  8415. if test "$_os" = "SunOS"; then
  8416. _temp=`showrev -p | $AWK -F" " '{ print $2 }'`
  8417. if test "$_os_release" = "7"; then
  8418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for patch 106327-06 or greater" >&5
  8419. $as_echo_n "checking for patch 106327-06 or greater... " >&6; }
  8420. _patch=`echo $_temp | $AWK '/106327-06/ { print "found" }'`
  8421. _patch="false"
  8422. for i in $_temp
  8423. do
  8424. _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
  8425. if test "$_patch_major" = "106327"; then
  8426. _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
  8427. if test "$_patch_rev" -ge "6"; then
  8428. _patch="found"
  8429. fi
  8430. fi
  8431. done
  8432. if test "$_patch" = "found"; then
  8433. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  8434. $as_echo "found" >&6; }
  8435. else
  8436. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: patch 106327-06 not found, please install compiler patch 106327-06 or greater" >&5
  8437. $as_echo "$as_me: WARNING: patch 106327-06 not found, please install compiler patch 106327-06 or greater" >&2;}
  8438. echo "patch 106327-06 not found, please install compiler patch 106327-06 or greater" >> warn
  8439. fi
  8440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for patch 106950-11 or greater" >&5
  8441. $as_echo_n "checking for patch 106950-11 or greater... " >&6; }
  8442. _patch=`echo $_temp | $AWK '/106950-11/ { print "found" }'`
  8443. _patch="false"
  8444. for i in $_temp
  8445. do
  8446. _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
  8447. if test "$_patch_major" = "106950"; then
  8448. _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
  8449. if test "$_patch_rev" -ge "11"; then
  8450. _patch="found"
  8451. fi
  8452. fi
  8453. done
  8454. if test "$_patch" = "found"; then
  8455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  8456. $as_echo "found" >&6; }
  8457. else
  8458. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: patch 106950-11 not found, please install linker patch 106950-11 or greater" >&5
  8459. $as_echo "$as_me: WARNING: patch 106950-11 not found, please install linker patch 106950-11 or greater" >&2;}
  8460. echo "patch 106950-11 not found, please install linker patch 106950-11 or greater" >> warn
  8461. fi
  8462. else
  8463. if test "$_os_release" = "6"; then
  8464. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for patch 105591-09 or greater" >&5
  8465. $as_echo_n "checking for patch 105591-09 or greater... " >&6; }
  8466. _patch=`echo $_temp | $AWK '/105591-09/ { print "found" }'`
  8467. _patch="false"
  8468. for i in $_temp
  8469. do
  8470. _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
  8471. if test "$_patch_major" = "105591"; then
  8472. _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
  8473. if test "$_patch_rev" -ge "9"; then
  8474. _patch="found"
  8475. fi
  8476. fi
  8477. done
  8478. if test "$_patch" = "found"; then
  8479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  8480. $as_echo "found" >&6; }
  8481. else
  8482. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: patch 105591-09 not found, please install compiler patch 105591-09 or greater" >&5
  8483. $as_echo "$as_me: WARNING: patch 105591-09 not found, please install compiler patch 105591-09 or greater" >&2;}
  8484. echo "patch 105591-09 not found, please install compiler patch 105591-09 or greater" >> warn
  8485. fi
  8486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for patch 107733-08 or greater" >&5
  8487. $as_echo_n "checking for patch 107733-08 or greater... " >&6; }
  8488. _patch=`echo $_temp | $AWK '/107733-08/ { print "found" }'`
  8489. _patch="false"
  8490. for i in $_temp
  8491. do
  8492. _patch_major=`echo $i | $AWK -F"-" '{ print $1 }'`
  8493. if test "$_patch_major" = "107733"; then
  8494. _patch_rev=`echo $i | $AWK -F"-" '{ print $2 }'`
  8495. if test "$_patch_rev" -ge "8"; then
  8496. _patch="found"
  8497. fi
  8498. fi
  8499. done
  8500. if test "$_patch" = "found"; then
  8501. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  8502. $as_echo "found" >&6; }
  8503. else
  8504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: patch 107733-06 not found, please install linker patch 107733-08 or greater" >&5
  8505. $as_echo "$as_me: WARNING: patch 107733-06 not found, please install linker patch 107733-08 or greater" >&2;}
  8506. echo "patch 107733-06 not found, please install linker patch 107733-08 or greater" >> warn
  8507. fi
  8508. fi
  8509. fi
  8510. fi
  8511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking what the default STL should be" >&5
  8512. $as_echo_n "checking what the default STL should be... " >&6; }
  8513. DEFAULT_TO_STLPORT="no"
  8514. if test "$_os" = "Linux"; then
  8515. case "$build_cpu" in
  8516. i?86)
  8517. DEFAULT_TO_STLPORT="yes"
  8518. ;;
  8519. *)
  8520. DEFAULT_TO_STLPORT="no"
  8521. ;;
  8522. esac
  8523. elif test "$_os" = "SunOS"; then
  8524. DEFAULT_TO_STLPORT="yes"
  8525. elif test "$_os" = "WINNT" -a "$WITH_MINGWIN" != "yes"; then
  8526. DEFAULT_TO_STLPORT="yes"
  8527. elif test "$_os" = "OS2"; then
  8528. DEFAULT_TO_STLPORT="yes"
  8529. elif test "$_os" = "FreeBSD"; then
  8530. DEFAULT_TO_STLPORT="yes"
  8531. fi
  8532. if test "$DEFAULT_TO_STLPORT" = "yes"; then
  8533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: stlport" >&5
  8534. $as_echo "stlport" >&6; }
  8535. else
  8536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  8537. $as_echo "system" >&6; }
  8538. fi
  8539. if test "$WITH_STLPORT" = "auto"; then
  8540. WITH_STLPORT=$DEFAULT_TO_STLPORT
  8541. fi
  8542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STL providing headers" >&5
  8543. $as_echo_n "checking for STL providing headers... " >&6; }
  8544. STLPORT4=""
  8545. USE_SYSTEM_STL=""
  8546. if test "$WITH_STLPORT" = "yes"; then
  8547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using internal stlport." >&5
  8548. $as_echo "using internal stlport." >&6; }
  8549. if test "$DEFAULT_TO_STLPORT" != "yes"; then
  8550. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using stlport. Warning, breaks your ABI compatability!" >&5
  8551. $as_echo "$as_me: WARNING: using stlport. Warning, breaks your ABI compatability!" >&2;}
  8552. echo "using stlport. Warning, breaks your ABI compatability!" >>warn
  8553. fi
  8554. elif test "$WITH_STLPORT" = "no"; then
  8555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: using system STL" >&5
  8556. $as_echo "using system STL" >&6; }
  8557. USE_SYSTEM_STL="YES"
  8558. if test "$DEFAULT_TO_STLPORT" != "no"; then
  8559. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using system STL. Warning, breaks your ABI compatability!" >&5
  8560. $as_echo "$as_me: WARNING: using system STL. Warning, breaks your ABI compatability!" >&2;}
  8561. echo "using system STL. Warning, breaks your ABI compatability!" >>warn
  8562. fi
  8563. else
  8564. STLPORT4=$WITH_STLPORT
  8565. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  8566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8567. /* end confdefs.h. */
  8568. $STLPORT4/stlport/hash_map
  8569. _ACEOF
  8570. if ac_fn_c_try_cpp "$LINENO"; then :
  8571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked." >&5
  8572. $as_echo "checked." >&6; }
  8573. else
  8574. as_fn_error "STLport headers not found." "$LINENO" 5
  8575. fi
  8576. rm -f conftest.err conftest.$ac_ext
  8577. else
  8578. if test -f "$STLPORT4/stlport/hash_map"; then
  8579. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked." >&5
  8580. $as_echo "checked." >&6; }
  8581. else
  8582. as_fn_error "STLport headers not found." "$LINENO" 5
  8583. fi
  8584. fi
  8585. if test "$_os" != "WINNT" -o "$WITH_MINGWIN" = "yes"; then
  8586. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for STLport libraries" >&5
  8587. $as_echo_n "checking for STLport libraries... " >&6; }
  8588. if test "$_os" = "SunOS"; then
  8589. if test -f "$STLPORT4/lib/libstlport_sunpro.so"; then
  8590. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8591. $as_echo "checked" >&6; }
  8592. elif test -f "$STLPORT4/lib/libstlport.so"; then
  8593. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8594. $as_echo "checked" >&6; }
  8595. STLPORT_VER=500
  8596. else
  8597. as_fn_error "STLport libraries not found" "$LINENO" 5
  8598. fi
  8599. elif test "$_os" = "Darwin"; then
  8600. if test -f "$STLPORT4/lib/libstlport_gcc.dylib"; then
  8601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8602. $as_echo "checked" >&6; }
  8603. elif test -f "$STLPORT4/lib/libstlport.dylib"; then
  8604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8605. $as_echo "checked" >&6; }
  8606. STLPORT_VER=500
  8607. else
  8608. as_fn_error "STLport libraries not found" "$LINENO" 5
  8609. fi
  8610. else
  8611. if test -f "$STLPORT4/lib/libstlport_gcc.so"; then
  8612. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8613. $as_echo "checked" >&6; }
  8614. elif test -f "$STLPORT4/lib/libstlport.so"; then
  8615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked" >&5
  8616. $as_echo "checked" >&6; }
  8617. STLPORT_VER=500
  8618. else
  8619. as_fn_error "STLport libraries not found" "$LINENO" 5
  8620. fi
  8621. fi
  8622. fi
  8623. if test "$DEFAULT_TO_STLPORT" != "yes"; then
  8624. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using stlport. Warning, breaks your ABI compatability!" >&5
  8625. $as_echo "$as_me: WARNING: using stlport. Warning, breaks your ABI compatability!" >&2;}
  8626. echo "using stlport. Warning, breaks your ABI compatability!" >>warn
  8627. fi
  8628. fi
  8629. if test -z "$STLPORT4"; then
  8630. STLPORT4="NO_STLPORT4"
  8631. fi
  8632. if test -z "$STLPORT_VER"; then
  8633. STLPORT_VER=400
  8634. fi
  8635. if test "$GCC" = "yes"; then
  8636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports -fvisibility=hidden" >&5
  8637. $as_echo_n "checking whether $CC supports -fvisibility=hidden... " >&6; }
  8638. save_CFLAGS=$CFLAGS
  8639. CFLAGS="$CFLAGS -fvisibility=hidden"
  8640. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8641. /* end confdefs.h. */
  8642. int
  8643. main ()
  8644. {
  8645. return 0;
  8646. ;
  8647. return 0;
  8648. }
  8649. _ACEOF
  8650. if ac_fn_c_try_link "$LINENO"; then :
  8651. HAVE_GCC_VISIBILITY_FEATURE=TRUE
  8652. fi
  8653. rm -f core conftest.err conftest.$ac_objext \
  8654. conftest$ac_exeext conftest.$ac_ext
  8655. CFLAGS=$save_CFLAGS
  8656. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  8657. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8658. $as_echo "yes" >&6; }
  8659. else
  8660. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8661. $as_echo "no" >&6; }
  8662. fi
  8663. fi
  8664. # ===================================================================
  8665. # use --ccache-skip?
  8666. # ===================================================================
  8667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are allowed and able to use --ccache-skip" >&5
  8668. $as_echo_n "checking whether we are allowed and able to use --ccache-skip... " >&6; }
  8669. if test "$_os" != "Darwin" ; then
  8670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: only used on Mac currently, skipping" >&5
  8671. $as_echo "only used on Mac currently, skipping" >&6; }
  8672. elif test "$enable_ccache_skip" = "no" ; then
  8673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no - diabled explicitly" >&5
  8674. $as_echo "no - diabled explicitly" >&6; }
  8675. elif test "$enable_ccache_skip" = "yes" ; then
  8676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes - enabled explicitly, skipping checks" >&5
  8677. $as_echo "yes - enabled explicitly, skipping checks" >&6; }
  8678. USE_CCACHE=YES
  8679. elif test "$enable_ccache_skip" = "auto" ; then
  8680. # checking for ccache presence/version
  8681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: probing..." >&5
  8682. $as_echo "probing..." >&6; }
  8683. # Extract the first word of "ccache", so it can be a program name with args.
  8684. set dummy ccache; ac_word=$2
  8685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  8686. $as_echo_n "checking for $ac_word... " >&6; }
  8687. if test "${ac_cv_path_CCACHE+set}" = set; then :
  8688. $as_echo_n "(cached) " >&6
  8689. else
  8690. case $CCACHE in
  8691. [\\/]* | ?:[\\/]*)
  8692. ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
  8693. ;;
  8694. *)
  8695. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8696. for as_dir in $PATH
  8697. do
  8698. IFS=$as_save_IFS
  8699. test -z "$as_dir" && as_dir=.
  8700. for ac_exec_ext in '' $ac_executable_extensions; do
  8701. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  8702. ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
  8703. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  8704. break 2
  8705. fi
  8706. done
  8707. done
  8708. IFS=$as_save_IFS
  8709. test -z "$ac_cv_path_CCACHE" && ac_cv_path_CCACHE="not_found"
  8710. ;;
  8711. esac
  8712. fi
  8713. CCACHE=$ac_cv_path_CCACHE
  8714. if test -n "$CCACHE"; then
  8715. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
  8716. $as_echo "$CCACHE" >&6; }
  8717. else
  8718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8719. $as_echo "no" >&6; }
  8720. fi
  8721. if test "$CCACHE" = "not_found" ; then
  8722. { $as_echo "$as_me:${as_lineno-$LINENO}: not enabling --ccache-skip (ccache not found)" >&5
  8723. $as_echo "$as_me: not enabling --ccache-skip (ccache not found)" >&6;}
  8724. else
  8725. # check ccache version
  8726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether version of ccache is suitable" >&5
  8727. $as_echo_n "checking whether version of ccache is suitable... " >&6; }
  8728. CCACHE_VERSION=`"$CCACHE" -V | "$AWK" '/^ccache version/{print $3}'`
  8729. if test "$CCACHE_VERSION" = "2.4_OOo"; then
  8730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  8731. $as_echo "yes" >&6; }
  8732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ccache is actually used for the build" >&5
  8733. $as_echo_n "checking whether ccache is actually used for the build... " >&6; }
  8734. ac_ext=cpp
  8735. ac_cpp='$CXXCPP $CPPFLAGS'
  8736. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8737. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8738. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8739. save_CXXFLAGS=$CXXFLAGS
  8740. CXXFLAGS="$CXXFLAGS --ccache-skip -O2"
  8741. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8742. /* end confdefs.h. */
  8743. int
  8744. main ()
  8745. {
  8746. ;
  8747. return 0;
  8748. }
  8749. _ACEOF
  8750. if ac_fn_cxx_try_compile "$LINENO"; then :
  8751. use_ccache=yes
  8752. else
  8753. use_ccache=no
  8754. fi
  8755. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8756. if test $use_ccache = yes ; then
  8757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, will enable --ccache-skip" >&5
  8758. $as_echo "yes, will enable --ccache-skip" >&6; }
  8759. USE_CCACHE=YES
  8760. else
  8761. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, will not enable --ccache-skip" >&5
  8762. $as_echo "no, will not enable --ccache-skip" >&6; }
  8763. fi
  8764. CXXFLAGS=$save_CXXFLAGS
  8765. ac_ext=c
  8766. ac_cpp='$CPP $CPPFLAGS'
  8767. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8768. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8769. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8770. else
  8771. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8772. $as_echo "no" >&6; }
  8773. { $as_echo "$as_me:${as_lineno-$LINENO}: ccache version $CCACHE_VERSION not accepted. See description for --enable-ccache-skip" >&5
  8774. $as_echo "$as_me: ccache version $CCACHE_VERSION not accepted. See description for --enable-ccache-skip" >&6;}
  8775. fi
  8776. fi
  8777. else
  8778. as_fn_error "invalid option to --enable-ccache-skip. Valid values are \"auto\", \"yes\" and \"no\"" "$LINENO" 5
  8779. fi
  8780. if test "$USE_SYSTEM_STL" = "YES"; then
  8781. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hash_map will be in __gnu_cxx namespace" >&5
  8782. $as_echo_n "checking if hash_map will be in __gnu_cxx namespace... " >&6; }
  8783. ac_ext=cpp
  8784. ac_cpp='$CXXCPP $CPPFLAGS'
  8785. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8786. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8787. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  8788. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8789. /* end confdefs.h. */
  8790. #include <ext/hash_map>
  8791. using namespace __gnu_cxx;
  8792. int
  8793. main ()
  8794. {
  8795. hash_map<int, int> t; return 0;
  8796. ;
  8797. return 0;
  8798. }
  8799. _ACEOF
  8800. if ac_fn_cxx_try_compile "$LINENO"; then :
  8801. ac_cv_cxx_have_ext_hash_map=yes
  8802. else
  8803. ac_cv_cxx_have_ext_hash_map=no
  8804. fi
  8805. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  8806. if test "$ac_cv_cxx_have_ext_hash_map" = "no"; then
  8807. as_fn_error "Can't find hash_map. Try with --with-stlport" "$LINENO" 5
  8808. else
  8809. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_have_ext_hash_map" >&5
  8810. $as_echo "$ac_cv_cxx_have_ext_hash_map" >&6; }
  8811. fi
  8812. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  8813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if STL headers are visibility safe" >&5
  8814. $as_echo_n "checking if STL headers are visibility safe... " >&6; }
  8815. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8816. /* end confdefs.h. */
  8817. #include <string>
  8818. _ACEOF
  8819. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  8820. $EGREP "visibility push" >/dev/null 2>&1; then :
  8821. stlvisok=yes
  8822. else
  8823. stlvisok=no
  8824. fi
  8825. rm -f conftest*
  8826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $stlvisok" >&5
  8827. $as_echo "$stlvisok" >&6; }
  8828. if test "$stlvisok" = "no"; then
  8829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&5
  8830. $as_echo "$as_me: WARNING: Your gcc STL headers are not visibility safe. Disabling visibility" >&2;}
  8831. echo "Your gcc STL headers are not visibility safe. Disabling visibility" >> warn
  8832. unset HAVE_GCC_VISIBILITY_FEATURE
  8833. fi
  8834. fi
  8835. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  8836. sharedlink_ldflags_save=$LDFLAGS
  8837. LDFLAGS="$LDFLAGS -fvisibility-inlines-hidden -fpic -shared"
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc is -fvisibility-inlines-hidden safe with STL headers" >&5
  8839. $as_echo_n "checking if gcc is -fvisibility-inlines-hidden safe with STL headers... " >&6; }
  8840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8841. /* end confdefs.h. */
  8842. #include <sstream>
  8843. using namespace std;
  8844. int
  8845. main ()
  8846. {
  8847. istringstream strm( "test" ); return 0;
  8848. ;
  8849. return 0;
  8850. }
  8851. _ACEOF
  8852. if ac_fn_cxx_try_link "$LINENO"; then :
  8853. $EGREP -q unresolvable conftest.err;
  8854. if test $? -eq 0; then gccvisok=no; else gccvisok=yes; fi
  8855. else
  8856. gccvisok=no
  8857. fi
  8858. rm -f core conftest.err conftest.$ac_objext \
  8859. conftest$ac_exeext conftest.$ac_ext
  8860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisok" >&5
  8861. $as_echo "$gccvisok" >&6; }
  8862. if test "$gccvisok" = "no"; then
  8863. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >&5
  8864. $as_echo "$as_me: WARNING: Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >&2;}
  8865. echo "Your gcc is not -fvisibility-inlines-hidden safe. Disabling visibility" >> warn
  8866. unset HAVE_GCC_VISIBILITY_FEATURE
  8867. fi
  8868. LDFLAGS=$sharedlink_ldflags_save
  8869. fi
  8870. if test "$HAVE_GCC_VISIBILITY_FEATURE" = "TRUE"; then
  8871. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)" >&5
  8872. $as_echo_n "checking if gcc has a visibility bug with class-level attributes (GCC bug 26905)... " >&6; }
  8873. cat >visibility.cxx <<_ACEOF
  8874. #pragma GCC visibility push(hidden)
  8875. struct __attribute__ ((visibility ("default"))) TestStruct {
  8876. static void Init();
  8877. };
  8878. __attribute__ ((visibility ("default"))) void TestFunc() {
  8879. TestStruct::Init();
  8880. }
  8881. _ACEOF
  8882. if ! $CXX $CXXFLAGS $CPPFLAGS -fpic -S visibility.cxx 2>/dev/null > /dev/null; then
  8883. gccvisbroken=yes
  8884. else
  8885. case "$build_cpu" in
  8886. i?86|x86_64)
  8887. if $EGREP -q '@PLT' visibility.s; then
  8888. gccvisbroken=no
  8889. else
  8890. gccvisbroken=yes
  8891. fi
  8892. ;;
  8893. *)
  8894. gccvisbroken=no
  8895. ;;
  8896. esac
  8897. fi
  8898. rm -f visibility.s
  8899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gccvisbroken" >&5
  8900. $as_echo "$gccvisbroken" >&6; }
  8901. if test "$gccvisbroken" = "yes"; then
  8902. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&5
  8903. $as_echo "$as_me: WARNING: Your gcc is not -fvisibility=hidden safe. Disabling visibility" >&2;}
  8904. echo "Your gcc is not -fvisibility=hidden safe. Disabling visibility" >> warn
  8905. unset HAVE_GCC_VISIBILITY_FEATURE
  8906. fi
  8907. fi
  8908. ac_ext=c
  8909. ac_cpp='$CPP $CPPFLAGS'
  8910. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  8911. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  8912. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  8913. fi
  8914. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which memory allocator to use" >&5
  8915. $as_echo_n "checking which memory allocator to use... " >&6; }
  8916. if test "$with_alloc" = "system"; then
  8917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: system" >&5
  8918. $as_echo "system" >&6; }
  8919. ALLOC="SYS_ALLOC";
  8920. for ac_func in malloc realloc calloc free
  8921. do :
  8922. as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  8923. ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  8924. eval as_val=\$$as_ac_var
  8925. if test "x$as_val" = x""yes; then :
  8926. cat >>confdefs.h <<_ACEOF
  8927. #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  8928. _ACEOF
  8929. fi
  8930. done
  8931. fi
  8932. if test "$with_alloc" = "tcmalloc"; then
  8933. { $as_echo "$as_me:${as_lineno-$LINENO}: result: tcmalloc" >&5
  8934. $as_echo "tcmalloc" >&6; }
  8935. if ! echo $build_cpu | grep -E 'i[3456]86' 2>/dev/null >/dev/null; then
  8936. as_fn_error "tcmalloc only available/usable on ix86" "$LINENO" 5
  8937. fi
  8938. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for malloc in -ltcmalloc" >&5
  8939. $as_echo_n "checking for malloc in -ltcmalloc... " >&6; }
  8940. if test "${ac_cv_lib_tcmalloc_malloc+set}" = set; then :
  8941. $as_echo_n "(cached) " >&6
  8942. else
  8943. ac_check_lib_save_LIBS=$LIBS
  8944. LIBS="-ltcmalloc $LIBS"
  8945. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8946. /* end confdefs.h. */
  8947. /* Override any GCC internal prototype to avoid an error.
  8948. Use char because int might match the return type of a GCC
  8949. builtin and then its argument prototype would still apply. */
  8950. #ifdef __cplusplus
  8951. extern "C"
  8952. #endif
  8953. char malloc ();
  8954. int
  8955. main ()
  8956. {
  8957. return malloc ();
  8958. ;
  8959. return 0;
  8960. }
  8961. _ACEOF
  8962. if ac_fn_c_try_link "$LINENO"; then :
  8963. ac_cv_lib_tcmalloc_malloc=yes
  8964. else
  8965. ac_cv_lib_tcmalloc_malloc=no
  8966. fi
  8967. rm -f core conftest.err conftest.$ac_objext \
  8968. conftest$ac_exeext conftest.$ac_ext
  8969. LIBS=$ac_check_lib_save_LIBS
  8970. fi
  8971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tcmalloc_malloc" >&5
  8972. $as_echo "$ac_cv_lib_tcmalloc_malloc" >&6; }
  8973. if test "x$ac_cv_lib_tcmalloc_malloc" = x""yes; then :
  8974. cat >>confdefs.h <<_ACEOF
  8975. #define HAVE_LIBTCMALLOC 1
  8976. _ACEOF
  8977. LIBS="-ltcmalloc $LIBS"
  8978. else
  8979. as_fn_error "tcmalloc not found or functional. Install the Google Profiling Tools" "$LINENO" 5
  8980. fi
  8981. ALLOC="TCMALLOC";
  8982. fi
  8983. if test "$with_alloc" = "internal" -o -z "$with_alloc"; then
  8984. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  8985. $as_echo "internal" >&6; }
  8986. fi
  8987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to add custom build version" >&5
  8988. $as_echo_n "checking whether to add custom build version... " >&6; }
  8989. if test "z$with_build_version" != "z"; then
  8990. BUILD_VER_STRING=$with_build_version
  8991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, $BUILD_VER_STRING" >&5
  8992. $as_echo "yes, $BUILD_VER_STRING" >&6; }
  8993. else
  8994. BUILD_VER_STRING=
  8995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  8996. $as_echo "no" >&6; }
  8997. fi
  8998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with Java support" >&5
  8999. $as_echo_n "checking whether to build with Java support... " >&6; }
  9000. if test "$WITH_JAVA" != "no"; then
  9001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9002. $as_echo "yes" >&6; }
  9003. SOLAR_JAVA="TRUE"
  9004. else
  9005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9006. $as_echo "no" >&6; }
  9007. SOLAR_JAVA=""
  9008. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: building without java will mean some features will not be available" >&5
  9009. $as_echo "$as_me: WARNING: building without java will mean some features will not be available" >&2;}
  9010. echo "building without java will mean some features will not be available" >>warn
  9011. fi
  9012. if test "$_os" = "Linux" && test "$build_cpu" = "powerpc"; then
  9013. # IBMs JDK needs this...
  9014. JITC_PROCESSOR_TYPE=6
  9015. export JITC_PROCESSOR_TYPE
  9016. fi
  9017. if test "$_os" = "WINNT"; then
  9018. if test -z "$with_jdk_home"; then
  9019. _jdk_home=`./oowintool --jdk-home`
  9020. if test -d "$_jdk_home"; then
  9021. with_jdk_home="$_jdk_home"
  9022. fi
  9023. else
  9024. with_jdk_home=`cygpath -u "$with_jdk_home"`
  9025. fi
  9026. fi
  9027. if test "$SOLAR_JAVA" != ""; then
  9028. JAVA_HOME=; export JAVA_HOME
  9029. if test -z "$with_jdk_home"; then
  9030. # Extract the first word of "$WITH_JAVA", so it can be a program name with args.
  9031. set dummy $WITH_JAVA; ac_word=$2
  9032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9033. $as_echo_n "checking for $ac_word... " >&6; }
  9034. if test "${ac_cv_path_JAVAINTERPRETER+set}" = set; then :
  9035. $as_echo_n "(cached) " >&6
  9036. else
  9037. case $JAVAINTERPRETER in
  9038. [\\/]* | ?:[\\/]*)
  9039. ac_cv_path_JAVAINTERPRETER="$JAVAINTERPRETER" # Let the user override the test with a path.
  9040. ;;
  9041. *)
  9042. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9043. for as_dir in $PATH
  9044. do
  9045. IFS=$as_save_IFS
  9046. test -z "$as_dir" && as_dir=.
  9047. for ac_exec_ext in '' $ac_executable_extensions; do
  9048. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9049. ac_cv_path_JAVAINTERPRETER="$as_dir/$ac_word$ac_exec_ext"
  9050. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9051. break 2
  9052. fi
  9053. done
  9054. done
  9055. IFS=$as_save_IFS
  9056. ;;
  9057. esac
  9058. fi
  9059. JAVAINTERPRETER=$ac_cv_path_JAVAINTERPRETER
  9060. if test -n "$JAVAINTERPRETER"; then
  9061. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAINTERPRETER" >&5
  9062. $as_echo "$JAVAINTERPRETER" >&6; }
  9063. else
  9064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9065. $as_echo "no" >&6; }
  9066. fi
  9067. else
  9068. _java_path="$with_jdk_home/bin/$WITH_JAVA"
  9069. if test -x "$_java_path"; then
  9070. JAVAINTERPRETER=$_java_path
  9071. else
  9072. as_fn_error "$_java_path not found set with_jdk_home" "$LINENO" 5
  9073. fi
  9074. fi
  9075. if test "$_os" = "WINNT"; then
  9076. if test x`echo "$JAVAINTERPRETER" | grep -i '\.exe$'` = x; then
  9077. JAVAINTERPRETER="${JAVAINTERPRETER}.exe"
  9078. fi
  9079. JAVAINTERPRETER=`cygpath -d "$JAVAINTERPRETER"`
  9080. JAVAINTERPRETER=`cygpath -u "$JAVAINTERPRETER"`
  9081. fi
  9082. fi
  9083. if test "$SOLAR_JAVA" != ""; then
  9084. _gij_longver=0
  9085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the installed JDK" >&5
  9086. $as_echo_n "checking the installed JDK... " >&6; }
  9087. if test -n "$JAVAINTERPRETER"; then
  9088. if test `$JAVAINTERPRETER -version 2>&1 | grep -c "Kaffe"` -gt 0; then
  9089. as_fn_error "No valid check available. Please check the block for your desired java in configure.in" "$LINENO" 5
  9090. # dnl Kaffe specific tests
  9091. # KAFFE_VER=`$JAVAINTERPRETER -version 2>&1 | $EGREP " Version:" | $SED -r "s/.* Version: ([[0-9\.]]*).*/\1/"`
  9092. # if test -z "$KAFFE_VER"; then
  9093. # AC_MSG_ERROR([looks like Kaffe but version detection failed])
  9094. # fi
  9095. # _kaffe_ver=`echo "$KAFFE_VER" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  9096. # if test "$_kaffe_ver" -lt 10100; then
  9097. # AC_MSG_ERROR([Kaffe is too old ($KAFFE_VER - $_kaffe_ver), you need at least 1.1.0])
  9098. # fi
  9099. # JDK=kaffe
  9100. #
  9101. # dnl TODO: define some project exclusion variables
  9102. #
  9103. # AC_MSG_RESULT([checked (Kaffe $KAFFE_VER)])
  9104. # AC_MSG_WARN([EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile])
  9105. # echo "EXPERIMENTAL: Kaffe is not a full JDK replacement - some projects will fail to compile" >>warn
  9106. # JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
  9107. elif test `$JAVAINTERPRETER --version 2>&1 | grep -c "GNU libgcj"` -gt 0; then
  9108. JDK=gcj
  9109. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (gcj)" >&5
  9110. $as_echo "checked (gcj)" >&6; }
  9111. _gij_version=`$JAVAINTERPRETER --version | grep GNU | $SED -e 's@^[^0-9]*@@' -e 's@ .*@@' -e 's@,.*@@'`;
  9112. _gij_longver=`echo $_gij_version | $AWK -F. '{ print \$1*10000+\$2*100+\$3 }'`
  9113. elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "BEA"` -gt 0; then
  9114. as_fn_error "No valid check available. Please check the block for your desired java in configure.in" "$LINENO" 5
  9115. # JDK=bea
  9116. #
  9117. # dnl BEA JDK specific tests
  9118. # _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[[-A-Za-z]]*//`
  9119. # _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  9120. #
  9121. # if test "$_jdk_ver" -lt 10500; then
  9122. # AC_MSG_ERROR([JDK is too old, you need at least BEA JDK 1.5.0])
  9123. # fi
  9124. #
  9125. # AC_MSG_RESULT([checked (BEA JDK $_jdk)])
  9126. #
  9127. # if test "$with_jdk_home" = ""; then
  9128. # AC_MSG_ERROR([In order to successfully build OpenOffice.org using the BEA JDK,
  9129. #you must use the "--with-jdk-home" configure option explicitly])
  9130. # fi
  9131. #
  9132. # AC_MSG_WARN([A bug in certain BEA JREs can prevent you from successfully compiling some modules])
  9133. # echo "A bug in certain BEA JREs can prevent you from successfully compiling some modules" >>warn
  9134. #
  9135. # JAVA_HOME=$with_jdk_home
  9136. #
  9137. elif test `$JAVAINTERPRETER -version 2>&1 | awk '{ print }' | grep -c "IBM"` -gt 0; then
  9138. JDK=ibm
  9139. _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
  9140. _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  9141. if test "$_jdk_ver" -lt 10500; then
  9142. as_fn_error "IBM JDK is too old, you need at least 1.5" "$LINENO" 5
  9143. fi
  9144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (IBM JDK $_jdk)" >&5
  9145. $as_echo "checked (IBM JDK $_jdk)" >&6; }
  9146. if test "$with_jdk_home" = ""; then
  9147. as_fn_error "In order to successfully build OpenOffice.org using the IBM JDK,
  9148. you must use the \"--with-jdk-home\" configure option explicitly" "$LINENO" 5
  9149. fi
  9150. JAVA_HOME=$with_jdk_home
  9151. else
  9152. JDK=sun
  9153. _jdk=`$JAVAINTERPRETER -version 2>&1 | $AWK -F'"' '{ print \$2 }' | $SED s/[-A-Za-z]*//`
  9154. _jdk_ver=`echo "$_jdk" | $AWK -F. '{ print (($1 * 100) + $2) * 100 + $3;}'`
  9155. if test "$_jdk_ver" -lt 10500; then
  9156. as_fn_error "JDK is too old, you need at least 1.5" "$LINENO" 5
  9157. fi
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (JDK $_jdk)" >&5
  9159. $as_echo "checked (JDK $_jdk)" >&6; }
  9160. JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*java,,p"`
  9161. if test "$_os" = "WINNT"; then
  9162. JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
  9163. fi
  9164. if test "$_os" = "OS2"; then
  9165. JAVA_HOME=`echo $JAVA_HOME | $SED "s,\.[eE][xX][eE]$,,"`
  9166. fi
  9167. fi
  9168. else
  9169. as_fn_error "JAVA not found. You need at least jdk-1.5, or gcj-4" "$LINENO" 5
  9170. fi
  9171. else
  9172. JAVA_HOME=NO_JAVA_HOME ; export JAVA_HOME
  9173. fi
  9174. if test "$SOLAR_JAVA" != ""; then
  9175. if test "$JDK" = "gcj"; then
  9176. javacompiler=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g" | $SED -e "s/java/javac/g"`
  9177. else
  9178. javacompiler="javac"
  9179. fi
  9180. if test "$_os" = "OS2"; then
  9181. if test x`echo "$javacompiler" | grep -i '\.exe$'` = x; then
  9182. javacompiler="${javacompiler}.exe"
  9183. fi
  9184. fi
  9185. if test -z "$with_jdk_home"; then
  9186. # Extract the first word of "$javacompiler", so it can be a program name with args.
  9187. set dummy $javacompiler; ac_word=$2
  9188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9189. $as_echo_n "checking for $ac_word... " >&6; }
  9190. if test "${ac_cv_path_JAVACOMPILER+set}" = set; then :
  9191. $as_echo_n "(cached) " >&6
  9192. else
  9193. case $JAVACOMPILER in
  9194. [\\/]* | ?:[\\/]*)
  9195. ac_cv_path_JAVACOMPILER="$JAVACOMPILER" # Let the user override the test with a path.
  9196. ;;
  9197. *)
  9198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9199. for as_dir in $PATH
  9200. do
  9201. IFS=$as_save_IFS
  9202. test -z "$as_dir" && as_dir=.
  9203. for ac_exec_ext in '' $ac_executable_extensions; do
  9204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9205. ac_cv_path_JAVACOMPILER="$as_dir/$ac_word$ac_exec_ext"
  9206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9207. break 2
  9208. fi
  9209. done
  9210. done
  9211. IFS=$as_save_IFS
  9212. ;;
  9213. esac
  9214. fi
  9215. JAVACOMPILER=$ac_cv_path_JAVACOMPILER
  9216. if test -n "$JAVACOMPILER"; then
  9217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVACOMPILER" >&5
  9218. $as_echo "$JAVACOMPILER" >&6; }
  9219. else
  9220. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9221. $as_echo "no" >&6; }
  9222. fi
  9223. else
  9224. _javac_path="$with_jdk_home/bin/$javacompiler"
  9225. if test -x "$_javac_path"; then
  9226. JAVACOMPILER=$_javac_path
  9227. fi
  9228. fi
  9229. if test -z "$JAVACOMPILER"; then
  9230. as_fn_error "$javacompiler not found set with_jdk_home" "$LINENO" 5
  9231. fi
  9232. if test "$_os" = "WINNT"; then
  9233. if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
  9234. JAVACOMPILER="${JAVACOMPILER}.exe"
  9235. fi
  9236. JAVACOMPILER=`cygpath -d "$JAVACOMPILER"`
  9237. JAVACOMPILER=`cygpath -u "$JAVACOMPILER"`
  9238. fi
  9239. if test "$_os" = "OS2"; then
  9240. if test x`echo "$JAVACOMPILER" | grep -i '\.exe$'` = x; then
  9241. JAVACOMPILER="${JAVACOMPILER}.exe"
  9242. fi
  9243. fi
  9244. if test `$JAVACOMPILER -version 2>&1 | grep -c "Eclipse Java Compiler"` -gt 0; then
  9245. { $as_echo "$as_me:${as_lineno-$LINENO}: checking re-checking JDK" >&5
  9246. $as_echo_n "checking re-checking JDK... " >&6; }
  9247. JDK=gcj
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked (ecj)" >&5
  9249. $as_echo "checked (ecj)" >&6; }
  9250. #TODO: what's to do here? some switch to do 1.5 compiling?
  9251. JAVAFLAGS="-source 1.5 -target 1.5"
  9252. _gij_longver="40200"
  9253. fi
  9254. fi
  9255. JAVACISGCJ=""
  9256. if test "$SOLAR_JAVA" != ""; then
  9257. if test `$JAVACOMPILER --version 2>&1 | grep -c "GCC"` -gt 0; then
  9258. JAVACISGCJ="yes"
  9259. fi
  9260. fi
  9261. if test "$SOLAR_JAVA" != ""; then
  9262. if test -z "$with_jdk_home"; then
  9263. # Extract the first word of "javadoc", so it can be a program name with args.
  9264. set dummy javadoc; ac_word=$2
  9265. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9266. $as_echo_n "checking for $ac_word... " >&6; }
  9267. if test "${ac_cv_path_JAVADOC+set}" = set; then :
  9268. $as_echo_n "(cached) " >&6
  9269. else
  9270. case $JAVADOC in
  9271. [\\/]* | ?:[\\/]*)
  9272. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  9273. ;;
  9274. *)
  9275. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9276. for as_dir in $PATH
  9277. do
  9278. IFS=$as_save_IFS
  9279. test -z "$as_dir" && as_dir=.
  9280. for ac_exec_ext in '' $ac_executable_extensions; do
  9281. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9282. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  9283. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9284. break 2
  9285. fi
  9286. done
  9287. done
  9288. IFS=$as_save_IFS
  9289. ;;
  9290. esac
  9291. fi
  9292. JAVADOC=$ac_cv_path_JAVADOC
  9293. if test -n "$JAVADOC"; then
  9294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  9295. $as_echo "$JAVADOC" >&6; }
  9296. else
  9297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9298. $as_echo "no" >&6; }
  9299. fi
  9300. else
  9301. _javadoc_path="$with_jdk_home/bin/javadoc"
  9302. if test "$_os" = "OS2"; then
  9303. if test x`echo "$_javadoc_path" | grep -i '\.exe$'` = x; then
  9304. _javadoc_path="${_javadoc_path}.exe"
  9305. fi
  9306. fi
  9307. if test -x "$_javadoc_path"; then
  9308. JAVADOC=$_javadoc_path
  9309. else
  9310. # Extract the first word of "javadoc", so it can be a program name with args.
  9311. set dummy javadoc; ac_word=$2
  9312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9313. $as_echo_n "checking for $ac_word... " >&6; }
  9314. if test "${ac_cv_path_JAVADOC+set}" = set; then :
  9315. $as_echo_n "(cached) " >&6
  9316. else
  9317. case $JAVADOC in
  9318. [\\/]* | ?:[\\/]*)
  9319. ac_cv_path_JAVADOC="$JAVADOC" # Let the user override the test with a path.
  9320. ;;
  9321. *)
  9322. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9323. for as_dir in $PATH
  9324. do
  9325. IFS=$as_save_IFS
  9326. test -z "$as_dir" && as_dir=.
  9327. for ac_exec_ext in '' $ac_executable_extensions; do
  9328. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9329. ac_cv_path_JAVADOC="$as_dir/$ac_word$ac_exec_ext"
  9330. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9331. break 2
  9332. fi
  9333. done
  9334. done
  9335. IFS=$as_save_IFS
  9336. ;;
  9337. esac
  9338. fi
  9339. JAVADOC=$ac_cv_path_JAVADOC
  9340. if test -n "$JAVADOC"; then
  9341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVADOC" >&5
  9342. $as_echo "$JAVADOC" >&6; }
  9343. else
  9344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9345. $as_echo "no" >&6; }
  9346. fi
  9347. fi
  9348. fi
  9349. if test -z "$JAVADOC"; then
  9350. as_fn_error "$_javadoc_path not found set with_jdk_home" "$LINENO" 5
  9351. fi
  9352. if test "$_os" = "WINNT"; then
  9353. if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
  9354. JAVADOC="${JAVADOC}.exe"
  9355. fi
  9356. JAVADOC=`cygpath -d "$JAVADOC"`
  9357. JAVADOC=`cygpath -u "$JAVADOC"`
  9358. fi
  9359. if test "$_os" = "OS2"; then
  9360. if test x`echo "$JAVADOC" | grep -i '\.exe$'` = x; then
  9361. JAVADOC="${JAVADOC}.exe"
  9362. fi
  9363. fi
  9364. fi
  9365. if test "$SOLAR_JAVA" != ""; then
  9366. if test "$JDK" == "gcj" -a -z "$JAVA_HOME"; then
  9367. if test "x$with_jdk_home" = "x" -a "$_gij_longver" -ge "40200"; then
  9368. cat > findhome.java <<_ACEOF
  9369. import java.io.File;
  9370. class findhome
  9371. {
  9372. public static void main(String args[])
  9373. {
  9374. String jrelocation = System.getProperty("java.home");
  9375. File jre = new File(jrelocation);
  9376. System.out.println(jre.getParent());
  9377. }
  9378. }
  9379. _ACEOF
  9380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if javac works" >&5
  9381. $as_echo_n "checking if javac works... " >&6; }
  9382. javac_cmd="$JAVACOMPILER findhome.java 1>&2"
  9383. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$javac_cmd\""; } >&5
  9384. (eval $javac_cmd) 2>&5
  9385. ac_status=$?
  9386. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9387. test $ac_status = 0; }
  9388. if test $? = 0 && test -f ./findhome.class ; then
  9389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: javac works" >&5
  9390. $as_echo "javac works" >&6; }
  9391. else
  9392. echo "configure: javac test failed" >&5
  9393. cat findhome.java >&5
  9394. as_fn_error "javac does not work - java projects will not build!" "$LINENO" 5
  9395. fi
  9396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gij knows its java.home" >&5
  9397. $as_echo_n "checking if gij knows its java.home... " >&6; }
  9398. JAVA_HOME=`$JAVAINTERPRETER findhome`
  9399. if test $? = 0 && test "$JAVA_HOME" != "" ; then
  9400. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_HOME" >&5
  9401. $as_echo "$JAVA_HOME" >&6; }
  9402. else
  9403. echo "configure: java test failed" >&5
  9404. cat findhome.java >&5
  9405. as_fn_error "gij does not know its java.home - use --with-jdk-home" "$LINENO" 5
  9406. fi
  9407. else
  9408. JAVA_HOME=`echo $JAVAINTERPRETER | $SED -n "s,//*bin//*$WITH_JAVA,,p"`
  9409. fi
  9410. fi
  9411. if test "$JDK" != "gcj" -o "$_gij_longver" -ge "40200"; then
  9412. # check if JAVA_HOME was (maybe incorrectly?) set automatically to /usr
  9413. if test "$JAVA_HOME" = "/usr" -a "x$with_jdk_home" = "x"; then
  9414. if basename $(readlink $(readlink $JAVACOMPILER)) >/dev/null 2>/dev/null; then
  9415. # try to recover first by looking whether we have a alternatives
  9416. # system as in Debian or newer SuSEs where following /usr/bin/javac
  9417. # over /etc/alternatives/javac leads to the right bindir where we
  9418. # just need to strip a bit away to get a valid JAVA_HOME
  9419. JAVA_HOME=$(readlink $(readlink $JAVACOMPILER))
  9420. elif readlink $JAVACOMPILER >/dev/null 2>/dev/null; then
  9421. # maybe only one level of symlink (e.g. on Mac)
  9422. JAVA_HOME=$(readlink $JAVACOMPILER)
  9423. else
  9424. # else warn
  9425. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&5
  9426. $as_echo "$as_me: WARNING: JAVA_HOME is set to /usr - this is very likely to be incorrect" >&2;}
  9427. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&5
  9428. $as_echo "$as_me: WARNING: if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >&2;}
  9429. echo "JAVA_HOME is set to /usr - this is very likely to be incorrect" >> warn
  9430. echo "if this is the case, please inform the correct JAVA_HOME with --with-jdk-home" >> warn
  9431. fi
  9432. if test "$JAVA_HOME" != "/usr"; then
  9433. if test "$_os" = "Darwin"; then
  9434. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/Current/Commands/javac$,/CurrentJDK/Home,)
  9435. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/CurrentJDK/Commands/javac$,/CurrentJDK/Home,)
  9436. else
  9437. JAVA_HOME=$(echo $JAVA_HOME | $SED -e s,/bin/javac$,,)
  9438. fi
  9439. fi
  9440. fi
  9441. # now check if $JAVA_HOME is really valid
  9442. if test "$_os" = "Darwin"; then
  9443. if test ! -f "$JAVA_HOME/lib/jvm.cfg" -a "x$with_jdk_home" = "x"; then
  9444. JAVA_HOME_OK="NO"
  9445. fi
  9446. elif test ! -d "$JAVA_HOME/jre" -a "x$with_jdk_home" = "x"; then
  9447. JAVA_HOME_OK="NO"
  9448. fi
  9449. if test "$JAVA_HOME_OK" = "NO"; then
  9450. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&5
  9451. $as_echo "$as_me: WARNING: JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >&2;}
  9452. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&5
  9453. $as_echo "$as_me: WARNING: attempted to find JAVA_HOME automatically, but apparently it failed" >&2;}
  9454. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&5
  9455. $as_echo "$as_me: WARNING: in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >&2;}
  9456. echo "JAVA_HOME was not explicitly informed with --with-jdk-home. the configure script" >> warn
  9457. echo "attempted to find JAVA_HOME automatically, but apparently it failed" >> warn
  9458. echo "in case JAVA_HOME is incorrectly set, some projects with not be built correctly" >> warn
  9459. # if test "$JDK" == "gcj"; then
  9460. # 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
  9461. # fi
  9462. fi
  9463. fi
  9464. fi
  9465. AWTLIB=
  9466. if test "$SOLAR_JAVA" != ""; then
  9467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jawt lib name" >&5
  9468. $as_echo_n "checking for jawt lib name... " >&6; }
  9469. if test "$JDK" = "gcj"; then
  9470. save_CFLAGS=$CFLAGS
  9471. save_LDFLAGS=$LDFLAGS
  9472. CFLAGS="$CFLAGS -I$JAVA_HOME/include"
  9473. LDFLAGS="$LDFLAGS -L$JAVA_HOME/lib -lgcj"
  9474. exec 6>/dev/null # no output
  9475. ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
  9476. if test "x$ac_cv_header_jni_h" = x""yes; then :
  9477. else
  9478. as_fn_error "jni.h could not be found. Mismatch between gcc and libgcj or libgcj-devel missing?" "$LINENO" 5
  9479. fi
  9480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lgcjawt" >&5
  9481. $as_echo_n "checking for JAWT_GetAWT in -lgcjawt... " >&6; }
  9482. if test "${ac_cv_lib_gcjawt_JAWT_GetAWT+set}" = set; then :
  9483. $as_echo_n "(cached) " >&6
  9484. else
  9485. ac_check_lib_save_LIBS=$LIBS
  9486. LIBS="-lgcjawt $LIBS"
  9487. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9488. /* end confdefs.h. */
  9489. /* Override any GCC internal prototype to avoid an error.
  9490. Use char because int might match the return type of a GCC
  9491. builtin and then its argument prototype would still apply. */
  9492. #ifdef __cplusplus
  9493. extern "C"
  9494. #endif
  9495. char JAWT_GetAWT ();
  9496. int
  9497. main ()
  9498. {
  9499. return JAWT_GetAWT ();
  9500. ;
  9501. return 0;
  9502. }
  9503. _ACEOF
  9504. if ac_fn_c_try_link "$LINENO"; then :
  9505. ac_cv_lib_gcjawt_JAWT_GetAWT=yes
  9506. else
  9507. ac_cv_lib_gcjawt_JAWT_GetAWT=no
  9508. fi
  9509. rm -f core conftest.err conftest.$ac_objext \
  9510. conftest$ac_exeext conftest.$ac_ext
  9511. LIBS=$ac_check_lib_save_LIBS
  9512. fi
  9513. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcjawt_JAWT_GetAWT" >&5
  9514. $as_echo "$ac_cv_lib_gcjawt_JAWT_GetAWT" >&6; }
  9515. if test "x$ac_cv_lib_gcjawt_JAWT_GetAWT" = x""yes; then :
  9516. AWTLIB="-lgcjawt -lgcj"
  9517. fi
  9518. exec 6>&1 # output on again
  9519. CFLAGS=$save_CFLAGS
  9520. LDFLAGS=$save_LDFLAGS
  9521. fi
  9522. # IBM SDK 1.5.0-sr5 includes libjawt.so with unresolved symbols.
  9523. # A workaround is to link also against libpmawt.so
  9524. if test "$JDK" = "ibm" ; then
  9525. save_CFLAGS=$CFLAGS
  9526. save_LDFLAGS=$LDFLAGS
  9527. save_LD_LIBRARY_PATH=$LD_LIBRARY_PATH
  9528. CFLAGS="$CFLAGS -I$JAVA_HOME/include"
  9529. LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin"
  9530. LD_LIBRARY_PATH=$JAVA_HOME/jre/bin:$JAVA_HOME/jre/bin/classic:$JAVA_HOME/jre/bin/xawt:$LD_LIBRARY_PATH
  9531. export LD_LIBRARY_PATH
  9532. exec 6>/dev/null # no output
  9533. ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
  9534. if test "x$ac_cv_header_jni_h" = x""yes; then :
  9535. else
  9536. as_fn_error "jni.h could not be found." "$LINENO" 5
  9537. fi
  9538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -ljawt" >&5
  9539. $as_echo_n "checking for JAWT_GetAWT in -ljawt... " >&6; }
  9540. if test "${ac_cv_lib_jawt_JAWT_GetAWT+set}" = set; then :
  9541. $as_echo_n "(cached) " >&6
  9542. else
  9543. ac_check_lib_save_LIBS=$LIBS
  9544. LIBS="-ljawt $LIBS"
  9545. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9546. /* end confdefs.h. */
  9547. /* Override any GCC internal prototype to avoid an error.
  9548. Use char because int might match the return type of a GCC
  9549. builtin and then its argument prototype would still apply. */
  9550. #ifdef __cplusplus
  9551. extern "C"
  9552. #endif
  9553. char JAWT_GetAWT ();
  9554. int
  9555. main ()
  9556. {
  9557. return JAWT_GetAWT ();
  9558. ;
  9559. return 0;
  9560. }
  9561. _ACEOF
  9562. if ac_fn_c_try_link "$LINENO"; then :
  9563. ac_cv_lib_jawt_JAWT_GetAWT=yes
  9564. else
  9565. ac_cv_lib_jawt_JAWT_GetAWT=no
  9566. fi
  9567. rm -f core conftest.err conftest.$ac_objext \
  9568. conftest$ac_exeext conftest.$ac_ext
  9569. LIBS=$ac_check_lib_save_LIBS
  9570. fi
  9571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jawt_JAWT_GetAWT" >&5
  9572. $as_echo "$ac_cv_lib_jawt_JAWT_GetAWT" >&6; }
  9573. if test "x$ac_cv_lib_jawt_JAWT_GetAWT" = x""yes; then :
  9574. AWTLIB="-ljawt"
  9575. fi
  9576. if test -z "$AWTLIB"; then
  9577. LDFLAGS="$LDFLAGS -L$JAVA_HOME/jre/bin/xawt -ljawt"
  9578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JAWT_GetAWT in -lmawt" >&5
  9579. $as_echo_n "checking for JAWT_GetAWT in -lmawt... " >&6; }
  9580. if test "${ac_cv_lib_mawt_JAWT_GetAWT+set}" = set; then :
  9581. $as_echo_n "(cached) " >&6
  9582. else
  9583. ac_check_lib_save_LIBS=$LIBS
  9584. LIBS="-lmawt $LIBS"
  9585. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9586. /* end confdefs.h. */
  9587. /* Override any GCC internal prototype to avoid an error.
  9588. Use char because int might match the return type of a GCC
  9589. builtin and then its argument prototype would still apply. */
  9590. #ifdef __cplusplus
  9591. extern "C"
  9592. #endif
  9593. char JAWT_GetAWT ();
  9594. int
  9595. main ()
  9596. {
  9597. return JAWT_GetAWT ();
  9598. ;
  9599. return 0;
  9600. }
  9601. _ACEOF
  9602. if ac_fn_c_try_link "$LINENO"; then :
  9603. ac_cv_lib_mawt_JAWT_GetAWT=yes
  9604. else
  9605. ac_cv_lib_mawt_JAWT_GetAWT=no
  9606. fi
  9607. rm -f core conftest.err conftest.$ac_objext \
  9608. conftest$ac_exeext conftest.$ac_ext
  9609. LIBS=$ac_check_lib_save_LIBS
  9610. fi
  9611. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mawt_JAWT_GetAWT" >&5
  9612. $as_echo "$ac_cv_lib_mawt_JAWT_GetAWT" >&6; }
  9613. if test "x$ac_cv_lib_mawt_JAWT_GetAWT" = x""yes; then :
  9614. AWTLIB="-L$JAVA_HOME/jre/bin/xawt -ljawt -lmawt"
  9615. fi
  9616. fi
  9617. exec 6>&1 # output on again
  9618. CFLAGS=$save_CFLAGS
  9619. LDFLAGS=$save_LDFLAGS
  9620. LD_LIBRARY_PATH=$save_LD_LIBRARY_PATH
  9621. fi
  9622. if test -z "$AWTLIB"; then
  9623. AWTLIB=-ljawt
  9624. fi
  9625. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWTLIB" >&5
  9626. $as_echo "$AWTLIB" >&6; }
  9627. fi
  9628. if test "$SOLAR_JAVA" != ""; then
  9629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable gcj aot compilation" >&5
  9630. $as_echo_n "checking whether to enable gcj aot compilation... " >&6; }
  9631. if test -n "$enable_gcjaot" && test "$enable_gcjaot" != "no"; then
  9632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9633. $as_echo "yes" >&6; }
  9634. if test `echo $WITH_JAVA | grep -c "gij"` -eq 0; then
  9635. gcjaot="gcj"
  9636. else
  9637. gcjaot=`echo $WITH_JAVA | $SED -e "s/gij/gcj/g"`
  9638. fi
  9639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcjaot" >&5
  9640. $as_echo "$gcjaot" >&6; }
  9641. if test -n "$with_jdk_home"; then
  9642. _javac_path="$with_jdk_home/bin/$gcjaot"
  9643. if test -x "$_javac_path"; then
  9644. JAVAAOTCOMPILER=$_javac_path
  9645. fi
  9646. fi
  9647. if test -z "$JAVAAOTCOMPILER"; then
  9648. # Extract the first word of "$gcjaot", so it can be a program name with args.
  9649. set dummy $gcjaot; ac_word=$2
  9650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9651. $as_echo_n "checking for $ac_word... " >&6; }
  9652. if test "${ac_cv_path_JAVAAOTCOMPILER+set}" = set; then :
  9653. $as_echo_n "(cached) " >&6
  9654. else
  9655. case $JAVAAOTCOMPILER in
  9656. [\\/]* | ?:[\\/]*)
  9657. ac_cv_path_JAVAAOTCOMPILER="$JAVAAOTCOMPILER" # Let the user override the test with a path.
  9658. ;;
  9659. *)
  9660. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9661. for as_dir in $PATH
  9662. do
  9663. IFS=$as_save_IFS
  9664. test -z "$as_dir" && as_dir=.
  9665. for ac_exec_ext in '' $ac_executable_extensions; do
  9666. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9667. ac_cv_path_JAVAAOTCOMPILER="$as_dir/$ac_word$ac_exec_ext"
  9668. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9669. break 2
  9670. fi
  9671. done
  9672. done
  9673. IFS=$as_save_IFS
  9674. ;;
  9675. esac
  9676. fi
  9677. JAVAAOTCOMPILER=$ac_cv_path_JAVAAOTCOMPILER
  9678. if test -n "$JAVAAOTCOMPILER"; then
  9679. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAAOTCOMPILER" >&5
  9680. $as_echo "$JAVAAOTCOMPILER" >&6; }
  9681. else
  9682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9683. $as_echo "no" >&6; }
  9684. fi
  9685. fi
  9686. if test -z "$JAVAAOTCOMPILER"; then
  9687. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $gcjaot not found, set with_jdk_home" >&5
  9688. $as_echo "$as_me: WARNING: $gcjaot not found, set with_jdk_home" >&2;}
  9689. fi
  9690. else
  9691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9692. $as_echo "no" >&6; }
  9693. fi
  9694. fi
  9695. # Extract the first word of "dmake", so it can be a program name with args.
  9696. set dummy dmake; ac_word=$2
  9697. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9698. $as_echo_n "checking for $ac_word... " >&6; }
  9699. if test "${ac_cv_path_DMAKE+set}" = set; then :
  9700. $as_echo_n "(cached) " >&6
  9701. else
  9702. case $DMAKE in
  9703. [\\/]* | ?:[\\/]*)
  9704. ac_cv_path_DMAKE="$DMAKE" # Let the user override the test with a path.
  9705. ;;
  9706. *)
  9707. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9708. for as_dir in $PATH
  9709. do
  9710. IFS=$as_save_IFS
  9711. test -z "$as_dir" && as_dir=.
  9712. for ac_exec_ext in '' $ac_executable_extensions; do
  9713. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9714. ac_cv_path_DMAKE="$as_dir/$ac_word$ac_exec_ext"
  9715. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9716. break 2
  9717. fi
  9718. done
  9719. done
  9720. IFS=$as_save_IFS
  9721. test -z "$ac_cv_path_DMAKE" && ac_cv_path_DMAKE="no"
  9722. ;;
  9723. esac
  9724. fi
  9725. DMAKE=$ac_cv_path_DMAKE
  9726. if test -n "$DMAKE"; then
  9727. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DMAKE" >&5
  9728. $as_echo "$DMAKE" >&6; }
  9729. else
  9730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9731. $as_echo "no" >&6; }
  9732. fi
  9733. if test "$DMAKE" = "no"; then
  9734. BUILD_DMAKE=YES
  9735. echo "dmake will be built on ./bootstrap"
  9736. else
  9737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found dmake is the right dmake" >&5
  9738. $as_echo_n "checking whether the found dmake is the right dmake... " >&6; }
  9739. # we need to find out whether that dmake we found is "our" dmake
  9740. # or the dmake from Sun's SunStudio Compiler which is something
  9741. # different
  9742. # This test _should_ work because the one accepts -V (ours) and one
  9743. # (the other) not...
  9744. $DMAKE -V 2>/dev/null | grep 'dmake .* Version .*' >/dev/null
  9745. if test $? -eq 0; then
  9746. BUILD_DMAKE=NO
  9747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9748. $as_echo "yes" >&6; }
  9749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the dmake version" >&5
  9750. $as_echo_n "checking the dmake version... " >&6; }
  9751. DMAKE_VERSION=`$DMAKE -V | $AWK '$3 == "Version" {print $4}'`
  9752. if test "`echo $DMAKE_VERSION | cut -d'.' -f1`" -gt "4"; then
  9753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
  9754. $as_echo "OK, >= 4.11" >&6; }
  9755. elif test "`echo $DMAKE_VERSION | cut -d'.' -f1`" = "4" && \
  9756. test "`echo $DMAKE_VERSION | cut -d'.' -f2`" -ge "11"; then
  9757. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 4.11" >&5
  9758. $as_echo "OK, >= 4.11" >&6; }
  9759. else
  9760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. >= 4.11 is needed" >&5
  9761. $as_echo "too old. >= 4.11 is needed" >&6; }
  9762. echo "A newer dmake will be built on ./bootstrap"
  9763. BUILD_DMAKE=YES
  9764. fi
  9765. else
  9766. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9767. $as_echo "no" >&6; }
  9768. echo "dmake will be built on ./bootstrap"
  9769. BUILD_DMAKE=YES
  9770. fi
  9771. fi
  9772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable EPM for packing" >&5
  9773. $as_echo_n "checking whether to enable EPM for packing... " >&6; }
  9774. if test "$_os" != "WINNT" -a \( "z$enable_epm" = "z" -o "$enable_epm" != "no" \) ; then
  9775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9776. $as_echo "yes" >&6; }
  9777. if test "$_os" != "WINNT"; then
  9778. if test -n "$with_epm"; then
  9779. EPM=$with_epm
  9780. else
  9781. # Extract the first word of "epm", so it can be a program name with args.
  9782. set dummy epm; ac_word=$2
  9783. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9784. $as_echo_n "checking for $ac_word... " >&6; }
  9785. if test "${ac_cv_path_EPM+set}" = set; then :
  9786. $as_echo_n "(cached) " >&6
  9787. else
  9788. case $EPM in
  9789. [\\/]* | ?:[\\/]*)
  9790. ac_cv_path_EPM="$EPM" # Let the user override the test with a path.
  9791. ;;
  9792. *)
  9793. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9794. for as_dir in $PATH
  9795. do
  9796. IFS=$as_save_IFS
  9797. test -z "$as_dir" && as_dir=.
  9798. for ac_exec_ext in '' $ac_executable_extensions; do
  9799. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9800. ac_cv_path_EPM="$as_dir/$ac_word$ac_exec_ext"
  9801. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9802. break 2
  9803. fi
  9804. done
  9805. done
  9806. IFS=$as_save_IFS
  9807. test -z "$ac_cv_path_EPM" && ac_cv_path_EPM="no"
  9808. ;;
  9809. esac
  9810. fi
  9811. EPM=$ac_cv_path_EPM
  9812. if test -n "$EPM"; then
  9813. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EPM" >&5
  9814. $as_echo "$EPM" >&6; }
  9815. else
  9816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9817. $as_echo "no" >&6; }
  9818. fi
  9819. fi
  9820. if test "$EPM" = "no" || test "$EPM" = "internal"; then
  9821. echo "EPM will be built."
  9822. BUILD_EPM=YES
  9823. BUILD_TYPE="$BUILD_TYPE EPM"
  9824. else
  9825. # Gentoo has some epm which is something different...
  9826. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the found epm is the right epm" >&5
  9827. $as_echo_n "checking whether the found epm is the right epm... " >&6; }
  9828. if $EPM | grep "ESP Package Manager" >/dev/null 2>/dev/null; then
  9829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9830. $as_echo "yes" >&6; }
  9831. else
  9832. as_fn_error "no. Install ESP Package Manager (www.easysw.com/epm) and/or specify the path to the right epm" "$LINENO" 5
  9833. fi
  9834. { $as_echo "$as_me:${as_lineno-$LINENO}: checking epm version" >&5
  9835. $as_echo_n "checking epm version... " >&6; }
  9836. EPM_VERSION=`$EPM | grep 'ESP Package Manager' | cut -d' ' -f4 | $SED -e s/v//`
  9837. if test "`echo $EPM_VERSION | cut -d'.' -f1`" -gt "3" || \
  9838. test "`echo $EPM_VERSION | cut -d'.' -f1`" -eq "3" -a "`echo $EPM_VERSION | cut -d'.' -f2`" -ge "7"; then
  9839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK, >= 3.7" >&5
  9840. $as_echo "OK, >= 3.7" >&6; }
  9841. BUILD_EPM=NO
  9842. if test "$_os" = "Darwin"; then
  9843. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which PackageMaker EPM thinks to use" >&5
  9844. $as_echo_n "checking which PackageMaker EPM thinks to use... " >&6; }
  9845. _pm=`strings $EPM | grep PackageMaker | cut -d" " -f1`
  9846. if test "$_pm" = "/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker"; then
  9847. as_fn_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)" "$LINENO" 5
  9848. elif test "$_pm" = "/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker"; then
  9849. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_pm, ok" >&5
  9850. $as_echo "$_pm, ok" >&6; }
  9851. else # we never should get here, but go safe
  9852. as_fn_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)" "$LINENO" 5
  9853. fi
  9854. fi
  9855. else
  9856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: too old. epm >= 3.7 is required." >&5
  9857. $as_echo "too old. epm >= 3.7 is required." >&6; }
  9858. echo "EPM will be built."
  9859. BUILD_EPM=YES
  9860. BUILD_TYPE="$BUILD_TYPE EPM"
  9861. fi
  9862. fi
  9863. fi
  9864. # test which package format to use
  9865. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which package format to use" >&5
  9866. $as_echo_n "checking which package format to use... " >&6; }
  9867. # epm supports the following formats:
  9868. # aix - AIX software distribution
  9869. # bsd - FreeBSD, NetBSD, or OpenBSD software distribution
  9870. # depot or swinstall - HP-UX software distribution
  9871. # deb - Debian software distribution
  9872. # inst or tardist - IRIX software distribution
  9873. # osx - MacOS X software distribution
  9874. # pkg - Solaris software distribution
  9875. # rpm - RedHat software distribution
  9876. # setld - Tru64 (setld) software distribution
  9877. # native - "Native" software distribution for the platform
  9878. # portable - Portable software distribution
  9879. # defaults
  9880. case "$_os" in
  9881. OS2)
  9882. PKGFORMAT=native
  9883. ;;
  9884. Darwin)
  9885. PKGFORMAT=dmg
  9886. ;;
  9887. SunOS)
  9888. PKGFORMAT=pkg
  9889. ;;
  9890. Linux)
  9891. # if building on Debian, default should be deb...
  9892. if test -e /etc/debian_version; then
  9893. PKGFORMAT=deb
  9894. else
  9895. PKGFORMAT=rpm
  9896. fi
  9897. ;;
  9898. AIX)
  9899. PKGFORMAT=aix
  9900. ;;
  9901. *BSD)
  9902. PKGFORMAT=bsd
  9903. ;;
  9904. OSF1)
  9905. PKGFORMAT=setld
  9906. ;;
  9907. # we never should get here since we check the arciecture/os at the beginning,
  9908. # but go sure...
  9909. *)
  9910. as_fn_error "unknown system" "$LINENO" 5
  9911. esac
  9912. if test -n "$with_package_format"; then
  9913. for i in $with_package_format; do
  9914. case "$i" in
  9915. aix | bsd | deb | inst | tardist | osx | pkg | rpm | setld | native | portable)
  9916. ;;
  9917. *)
  9918. as_fn_error "unsupported format $i. Supported by EPM are:
  9919. aix - AIX software distribution
  9920. bsd - FreeBSD, NetBSD, or OpenBSD software distribution
  9921. depot or swinstall - HP-UX software distribution
  9922. deb - Debian software distribution
  9923. inst or tardist - IRIX software distribution
  9924. osx - MacOS X software distribution
  9925. pkg - Solaris software distribution
  9926. rpm - RedHat software distribution
  9927. setld - Tru64 (setld) software distribution
  9928. native - \"Native\" software distribution for the platform
  9929. portable - Portable software distribution
  9930. " "$LINENO" 5
  9931. ;;
  9932. esac
  9933. done
  9934. PKGFORMAT="$with_package_format"
  9935. fi
  9936. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGFORMAT" >&5
  9937. $as_echo "$PKGFORMAT" >&6; }
  9938. if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null; then
  9939. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpm" >&5
  9940. $as_echo_n "checking for rpm... " >&6; }
  9941. for a in "$RPM" rpmbuild rpm; do
  9942. $a --usage >/dev/null 2> /dev/null
  9943. if test $? -eq 0; then
  9944. RPM=$a
  9945. break
  9946. else
  9947. $a --version >/dev/null 2> /dev/null
  9948. if test $? -eq 0; then
  9949. RPM=$a
  9950. break
  9951. fi
  9952. fi
  9953. done
  9954. if test -z "$RPM" ; then
  9955. as_fn_error "not found" "$LINENO" 5
  9956. else
  9957. RPM_PATH=`which $RPM`
  9958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM_PATH" >&5
  9959. $as_echo "$RPM_PATH" >&6; }
  9960. fi
  9961. fi
  9962. if echo "$PKGFORMAT" | $EGREP deb 2>&1 >/dev/null; then
  9963. # Extract the first word of "dpkg", so it can be a program name with args.
  9964. set dummy dpkg; ac_word=$2
  9965. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  9966. $as_echo_n "checking for $ac_word... " >&6; }
  9967. if test "${ac_cv_path_DPKG+set}" = set; then :
  9968. $as_echo_n "(cached) " >&6
  9969. else
  9970. case $DPKG in
  9971. [\\/]* | ?:[\\/]*)
  9972. ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
  9973. ;;
  9974. *)
  9975. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9976. for as_dir in $PATH
  9977. do
  9978. IFS=$as_save_IFS
  9979. test -z "$as_dir" && as_dir=.
  9980. for ac_exec_ext in '' $ac_executable_extensions; do
  9981. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  9982. ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
  9983. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  9984. break 2
  9985. fi
  9986. done
  9987. done
  9988. IFS=$as_save_IFS
  9989. test -z "$ac_cv_path_DPKG" && ac_cv_path_DPKG="no"
  9990. ;;
  9991. esac
  9992. fi
  9993. DPKG=$ac_cv_path_DPKG
  9994. if test -n "$DPKG"; then
  9995. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
  9996. $as_echo "$DPKG" >&6; }
  9997. else
  9998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9999. $as_echo "no" >&6; }
  10000. fi
  10001. if test "$DPKG" = "no"; then
  10002. as_fn_error "dpkg needed for deb creation. Install dpkg." "$LINENO" 5
  10003. fi
  10004. fi
  10005. if echo "PKGFORMAT" | $EGREP osx 2>&1 >/dev/null; then
  10006. if test "$_os" = "Darwin"; then
  10007. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker availability" >&5
  10008. $as_echo_n "checking for PackageMaker availability... " >&6; }
  10009. if ! test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker; then
  10010. as_fn_error "not installed. Please install Apples Dev Tools" "$LINENO" 5
  10011. else
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  10013. $as_echo "ok" >&6; }
  10014. fi
  10015. else
  10016. as_fn_error "PackageMaker needed to build OSX packages and you are not on OSX..." "$LINENO" 5
  10017. fi
  10018. fi
  10019. if echo "$PKGFORMAT" | $EGREP rpm 2>&1 >/dev/null || \
  10020. echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
  10021. if test "$EPM" != "no" && test "$EPM" != "internal"; then
  10022. if test "`echo $EPM_VERSION | cut -d'.' -f1`" -lt "4"; then
  10023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether epm is patched for OOos needs" >&5
  10024. $as_echo_n "checking whether epm is patched for OOos needs... " >&6; }
  10025. if grep "Patched for OpenOffice.org" $EPM >/dev/null 2>/dev/null; then
  10026. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10027. $as_echo "yes" >&6; }
  10028. else
  10029. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10030. $as_echo "no" >&6; }
  10031. if echo "$PKGFORMAT" | grep -q rpm; then
  10032. _pt="rpm"
  10033. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the rpms will need to be installed with --nodeps" >&5
  10034. $as_echo "$as_me: WARNING: the rpms will need to be installed with --nodeps" >&2;}
  10035. echo "the rpms will need to be installed with --nodeps" >> warn
  10036. else
  10037. _pt="pkg"
  10038. fi
  10039. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: the ${_pt}s will not be relocateable" >&5
  10040. $as_echo "$as_me: WARNING: the ${_pt}s will not be relocateable" >&2;}
  10041. echo "the ${_pt}s will not be relocateable" >> warn
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: if you want to make sure installation without --nodeps and
  10043. relocation will work, you need to patch your epm with the
  10044. patch in epm/epm-3.7.patch or build with
  10045. --with-epm=internal which will build a suitable epm" >&5
  10046. $as_echo "$as_me: WARNING: if you want to make sure installation without --nodeps and
  10047. relocation will work, you need to patch your epm with the
  10048. patch in epm/epm-3.7.patch or build with
  10049. --with-epm=internal which will build a suitable epm" >&2;}
  10050. fi
  10051. fi
  10052. fi
  10053. fi
  10054. if echo "$PKGFORMAT" | $EGREP pkg 2>&1 >/dev/null; then
  10055. # Extract the first word of "pkgmk", so it can be a program name with args.
  10056. set dummy pkgmk; ac_word=$2
  10057. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10058. $as_echo_n "checking for $ac_word... " >&6; }
  10059. if test "${ac_cv_path_PKGMK+set}" = set; then :
  10060. $as_echo_n "(cached) " >&6
  10061. else
  10062. case $PKGMK in
  10063. [\\/]* | ?:[\\/]*)
  10064. ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
  10065. ;;
  10066. *)
  10067. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10068. for as_dir in $PATH
  10069. do
  10070. IFS=$as_save_IFS
  10071. test -z "$as_dir" && as_dir=.
  10072. for ac_exec_ext in '' $ac_executable_extensions; do
  10073. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10074. ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
  10075. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10076. break 2
  10077. fi
  10078. done
  10079. done
  10080. IFS=$as_save_IFS
  10081. test -z "$ac_cv_path_PKGMK" && ac_cv_path_PKGMK="no"
  10082. ;;
  10083. esac
  10084. fi
  10085. PKGMK=$ac_cv_path_PKGMK
  10086. if test -n "$PKGMK"; then
  10087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
  10088. $as_echo "$PKGMK" >&6; }
  10089. else
  10090. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10091. $as_echo "no" >&6; }
  10092. fi
  10093. if test "$PKGMK" = "no"; then
  10094. as_fn_error "pkgmk needed for Solaris pkg creation. Install it." "$LINENO" 5
  10095. fi
  10096. fi
  10097. else
  10098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10099. $as_echo "no" >&6; }
  10100. EPM=NO
  10101. fi
  10102. # Extract the first word of "gperf", so it can be a program name with args.
  10103. set dummy gperf; ac_word=$2
  10104. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10105. $as_echo_n "checking for $ac_word... " >&6; }
  10106. if test "${ac_cv_path_GPERF+set}" = set; then :
  10107. $as_echo_n "(cached) " >&6
  10108. else
  10109. case $GPERF in
  10110. [\\/]* | ?:[\\/]*)
  10111. ac_cv_path_GPERF="$GPERF" # Let the user override the test with a path.
  10112. ;;
  10113. *)
  10114. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10115. for as_dir in $PATH
  10116. do
  10117. IFS=$as_save_IFS
  10118. test -z "$as_dir" && as_dir=.
  10119. for ac_exec_ext in '' $ac_executable_extensions; do
  10120. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10121. ac_cv_path_GPERF="$as_dir/$ac_word$ac_exec_ext"
  10122. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10123. break 2
  10124. fi
  10125. done
  10126. done
  10127. IFS=$as_save_IFS
  10128. ;;
  10129. esac
  10130. fi
  10131. GPERF=$ac_cv_path_GPERF
  10132. if test -n "$GPERF"; then
  10133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GPERF" >&5
  10134. $as_echo "$GPERF" >&6; }
  10135. else
  10136. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10137. $as_echo "no" >&6; }
  10138. fi
  10139. if test -z "$GPERF"; then
  10140. as_fn_error "gperf not found but needed. Install it." "$LINENO" 5
  10141. fi
  10142. { $as_echo "$as_me:${as_lineno-$LINENO}: checking gperf version" >&5
  10143. $as_echo_n "checking gperf version... " >&6; }
  10144. if test "`$GPERF --version | $EGREP ^GNU\ gperf | $AWK '{ print $3 }' | cut -d. -f1`" -ge "3"; then
  10145. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  10146. $as_echo "OK" >&6; }
  10147. else
  10148. as_fn_error "too old, you need at least 3.0.0" "$LINENO" 5
  10149. fi
  10150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the ODK" >&5
  10151. $as_echo_n "checking whether to build the ODK... " >&6; }
  10152. if test "z$enable_odk" = "z" -o "$enable_odk" != "no"; then
  10153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10154. $as_echo "yes" >&6; }
  10155. if test "$WITH_JAVA" != "no"; then
  10156. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for external/unowinreg/unowinreg.dll" >&5
  10157. $as_echo_n "checking for external/unowinreg/unowinreg.dll... " >&6; }
  10158. if ! test -f "./external/unowinreg/unowinreg.dll"; then
  10159. HAVE_UNOWINREG_DLL=no
  10160. else
  10161. HAVE_UNOWINREG_DLL=yes
  10162. fi
  10163. if test "$HAVE_UNOWINREG_DLL" = "yes"; then
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  10165. $as_echo "found" >&6; }
  10166. BUILD_UNOWINREG=NO
  10167. else
  10168. if test "$_os" = "WINNT"; then
  10169. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found, will be built" >&5
  10170. $as_echo "not found, will be built" >&6; }
  10171. else
  10172. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: not found, will be cross-built using mingw32" >&5
  10173. $as_echo "$as_me: WARNING: not found, will be cross-built using mingw32" >&2;}
  10174. fi
  10175. BUILD_UNOWINREG=YES
  10176. fi
  10177. if test "$_os" != "WINNT" && test "$BUILD_UNOWINREG" = "YES"; then
  10178. if test -z "$WITH_MINGWIN" || test "$WITH_MINGWIN" = "0"; then
  10179. as_fn_error "for rebuilding unowinreg.dll you need the mingw32 C++ compiler.
  10180. Specify mingw32 g++ executable name with --with-mingwin.
  10181. Or use prebuilt one from http://tools.openoffice.org/unowinreg_prebuild/680/ and
  10182. put it into external/unowinreg" "$LINENO" 5
  10183. fi
  10184. if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
  10185. if ! test -x "$WITH_MINGWIN"; then MINGWCXX=false; else MINGWCXX=`basename $WITH_MINGWIN`; fi
  10186. else
  10187. if test -n "$ac_tool_prefix"; then
  10188. # Extract the first word of "${ac_tool_prefix}$WITH_MINGWIN", so it can be a program name with args.
  10189. set dummy ${ac_tool_prefix}$WITH_MINGWIN; ac_word=$2
  10190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10191. $as_echo_n "checking for $ac_word... " >&6; }
  10192. if test "${ac_cv_prog_MINGWCXX+set}" = set; then :
  10193. $as_echo_n "(cached) " >&6
  10194. else
  10195. if test -n "$MINGWCXX"; then
  10196. ac_cv_prog_MINGWCXX="$MINGWCXX" # Let the user override the test.
  10197. else
  10198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10199. for as_dir in $PATH
  10200. do
  10201. IFS=$as_save_IFS
  10202. test -z "$as_dir" && as_dir=.
  10203. for ac_exec_ext in '' $ac_executable_extensions; do
  10204. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10205. ac_cv_prog_MINGWCXX="${ac_tool_prefix}$WITH_MINGWIN"
  10206. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10207. break 2
  10208. fi
  10209. done
  10210. done
  10211. IFS=$as_save_IFS
  10212. fi
  10213. fi
  10214. MINGWCXX=$ac_cv_prog_MINGWCXX
  10215. if test -n "$MINGWCXX"; then
  10216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWCXX" >&5
  10217. $as_echo "$MINGWCXX" >&6; }
  10218. else
  10219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10220. $as_echo "no" >&6; }
  10221. fi
  10222. fi
  10223. if test -z "$ac_cv_prog_MINGWCXX"; then
  10224. ac_ct_MINGWCXX=$MINGWCXX
  10225. # Extract the first word of "$WITH_MINGWIN", so it can be a program name with args.
  10226. set dummy $WITH_MINGWIN; ac_word=$2
  10227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10228. $as_echo_n "checking for $ac_word... " >&6; }
  10229. if test "${ac_cv_prog_ac_ct_MINGWCXX+set}" = set; then :
  10230. $as_echo_n "(cached) " >&6
  10231. else
  10232. if test -n "$ac_ct_MINGWCXX"; then
  10233. ac_cv_prog_ac_ct_MINGWCXX="$ac_ct_MINGWCXX" # Let the user override the test.
  10234. else
  10235. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10236. for as_dir in $PATH
  10237. do
  10238. IFS=$as_save_IFS
  10239. test -z "$as_dir" && as_dir=.
  10240. for ac_exec_ext in '' $ac_executable_extensions; do
  10241. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10242. ac_cv_prog_ac_ct_MINGWCXX="$WITH_MINGWIN"
  10243. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10244. break 2
  10245. fi
  10246. done
  10247. done
  10248. IFS=$as_save_IFS
  10249. fi
  10250. fi
  10251. ac_ct_MINGWCXX=$ac_cv_prog_ac_ct_MINGWCXX
  10252. if test -n "$ac_ct_MINGWCXX"; then
  10253. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWCXX" >&5
  10254. $as_echo "$ac_ct_MINGWCXX" >&6; }
  10255. else
  10256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10257. $as_echo "no" >&6; }
  10258. fi
  10259. if test "x$ac_ct_MINGWCXX" = x; then
  10260. MINGWCXX="false"
  10261. else
  10262. case $cross_compiling:$ac_tool_warned in
  10263. yes:)
  10264. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10265. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10266. ac_tool_warned=yes ;;
  10267. esac
  10268. MINGWCXX=$ac_ct_MINGWCXX
  10269. fi
  10270. else
  10271. MINGWCXX="$ac_cv_prog_MINGWCXX"
  10272. fi
  10273. fi
  10274. if test "$MINGWCXX" = "false"; then
  10275. as_fn_error "specified MinGW32 C++ cross-compiler not found. Install it or correct name." "$LINENO" 5
  10276. fi
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the MinGW32 cross C++ compiler" >&5
  10278. $as_echo_n "checking whether we are using the MinGW32 cross C++ compiler... " >&6; }
  10279. if ! echo "`$MINGWCXX -dumpmachine`" | grep -q mingw32; then
  10280. as_fn_error "no" "$LINENO" 5
  10281. else
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10283. $as_echo "yes" >&6; }
  10284. fi
  10285. if echo "$WITH_MINGWIN" | $EGREP -q "/"; then
  10286. 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
  10287. else
  10288. if test -n "$ac_tool_prefix"; then
  10289. # 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.
  10290. set dummy ${ac_tool_prefix}`echo $WITH_MINGWIN | $SED -e s/g++/strip/`; ac_word=$2
  10291. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10292. $as_echo_n "checking for $ac_word... " >&6; }
  10293. if test "${ac_cv_prog_MINGWSTRIP+set}" = set; then :
  10294. $as_echo_n "(cached) " >&6
  10295. else
  10296. if test -n "$MINGWSTRIP"; then
  10297. ac_cv_prog_MINGWSTRIP="$MINGWSTRIP" # Let the user override the test.
  10298. else
  10299. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10300. for as_dir in $PATH
  10301. do
  10302. IFS=$as_save_IFS
  10303. test -z "$as_dir" && as_dir=.
  10304. for ac_exec_ext in '' $ac_executable_extensions; do
  10305. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10306. ac_cv_prog_MINGWSTRIP="${ac_tool_prefix}`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"
  10307. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10308. break 2
  10309. fi
  10310. done
  10311. done
  10312. IFS=$as_save_IFS
  10313. fi
  10314. fi
  10315. MINGWSTRIP=$ac_cv_prog_MINGWSTRIP
  10316. if test -n "$MINGWSTRIP"; then
  10317. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MINGWSTRIP" >&5
  10318. $as_echo "$MINGWSTRIP" >&6; }
  10319. else
  10320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10321. $as_echo "no" >&6; }
  10322. fi
  10323. fi
  10324. if test -z "$ac_cv_prog_MINGWSTRIP"; then
  10325. ac_ct_MINGWSTRIP=$MINGWSTRIP
  10326. # Extract the first word of "`echo $WITH_MINGWIN | $SED -e s/g++/strip/`", so it can be a program name with args.
  10327. set dummy `echo $WITH_MINGWIN | $SED -e s/g++/strip/`; ac_word=$2
  10328. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10329. $as_echo_n "checking for $ac_word... " >&6; }
  10330. if test "${ac_cv_prog_ac_ct_MINGWSTRIP+set}" = set; then :
  10331. $as_echo_n "(cached) " >&6
  10332. else
  10333. if test -n "$ac_ct_MINGWSTRIP"; then
  10334. ac_cv_prog_ac_ct_MINGWSTRIP="$ac_ct_MINGWSTRIP" # Let the user override the test.
  10335. else
  10336. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10337. for as_dir in $PATH
  10338. do
  10339. IFS=$as_save_IFS
  10340. test -z "$as_dir" && as_dir=.
  10341. for ac_exec_ext in '' $ac_executable_extensions; do
  10342. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10343. ac_cv_prog_ac_ct_MINGWSTRIP="`echo $WITH_MINGWIN | $SED -e s/g++/strip/`"
  10344. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10345. break 2
  10346. fi
  10347. done
  10348. done
  10349. IFS=$as_save_IFS
  10350. fi
  10351. fi
  10352. ac_ct_MINGWSTRIP=$ac_cv_prog_ac_ct_MINGWSTRIP
  10353. if test -n "$ac_ct_MINGWSTRIP"; then
  10354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MINGWSTRIP" >&5
  10355. $as_echo "$ac_ct_MINGWSTRIP" >&6; }
  10356. else
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10358. $as_echo "no" >&6; }
  10359. fi
  10360. if test "x$ac_ct_MINGWSTRIP" = x; then
  10361. MINGWSTRIP="false"
  10362. else
  10363. case $cross_compiling:$ac_tool_warned in
  10364. yes:)
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10366. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10367. ac_tool_warned=yes ;;
  10368. esac
  10369. MINGWSTRIP=$ac_ct_MINGWSTRIP
  10370. fi
  10371. else
  10372. MINGWSTRIP="$ac_cv_prog_MINGWSTRIP"
  10373. fi
  10374. fi
  10375. if test "$MINGWSTRIP" = "false"; then
  10376. as_fn_error "MinGW32 binutils needed. Install them." "$LINENO" 5
  10377. fi
  10378. ac_ext=cpp
  10379. ac_cpp='$CXXCPP $CPPFLAGS'
  10380. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10381. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10382. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10383. save_CXX=$CXX
  10384. save_CXXCPP=$CXXCPP
  10385. CXX=$MINGWCXX
  10386. CXXCPP="$MINGWCXX -E"
  10387. save_CXXFLAGS=$CXXFLAGS
  10388. save_CPPFLAGS=$CPPFLAGS
  10389. CXXFLAGS="$CXXFLAGS -I$JAVA_HOME/include"
  10390. CPPFLAGS="$CPPFLAGS -I$JAVA_HOME/include"
  10391. # LIBS contains -lcrypt etc due to teh AC_CHECK_LIBS which obviously
  10392. # do not make sense here (and 'd make the check fail)
  10393. save_LIBS=$LIBS
  10394. LIBS=""
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lkernel32" >&5
  10396. $as_echo_n "checking for main in -lkernel32... " >&6; }
  10397. if test "${ac_cv_lib_kernel32_main+set}" = set; then :
  10398. $as_echo_n "(cached) " >&6
  10399. else
  10400. ac_check_lib_save_LIBS=$LIBS
  10401. LIBS="-lkernel32 $LIBS"
  10402. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10403. /* end confdefs.h. */
  10404. int
  10405. main ()
  10406. {
  10407. return main ();
  10408. ;
  10409. return 0;
  10410. }
  10411. _ACEOF
  10412. if ac_fn_cxx_try_link "$LINENO"; then :
  10413. ac_cv_lib_kernel32_main=yes
  10414. else
  10415. ac_cv_lib_kernel32_main=no
  10416. fi
  10417. rm -f core conftest.err conftest.$ac_objext \
  10418. conftest$ac_exeext conftest.$ac_ext
  10419. LIBS=$ac_check_lib_save_LIBS
  10420. fi
  10421. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kernel32_main" >&5
  10422. $as_echo "$ac_cv_lib_kernel32_main" >&6; }
  10423. if test "x$ac_cv_lib_kernel32_main" = x""yes; then :
  10424. cat >>confdefs.h <<_ACEOF
  10425. #define HAVE_LIBKERNEL32 1
  10426. _ACEOF
  10427. LIBS="-lkernel32 $LIBS"
  10428. fi
  10429. ac_cv_lib_kernel32=ac_cv_lib_kernel32_main
  10430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ladvapi32" >&5
  10431. $as_echo_n "checking for main in -ladvapi32... " >&6; }
  10432. if test "${ac_cv_lib_advapi32_main+set}" = set; then :
  10433. $as_echo_n "(cached) " >&6
  10434. else
  10435. ac_check_lib_save_LIBS=$LIBS
  10436. LIBS="-ladvapi32 $LIBS"
  10437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10438. /* end confdefs.h. */
  10439. int
  10440. main ()
  10441. {
  10442. return main ();
  10443. ;
  10444. return 0;
  10445. }
  10446. _ACEOF
  10447. if ac_fn_cxx_try_link "$LINENO"; then :
  10448. ac_cv_lib_advapi32_main=yes
  10449. else
  10450. ac_cv_lib_advapi32_main=no
  10451. fi
  10452. rm -f core conftest.err conftest.$ac_objext \
  10453. conftest$ac_exeext conftest.$ac_ext
  10454. LIBS=$ac_check_lib_save_LIBS
  10455. fi
  10456. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_advapi32_main" >&5
  10457. $as_echo "$ac_cv_lib_advapi32_main" >&6; }
  10458. if test "x$ac_cv_lib_advapi32_main" = x""yes; then :
  10459. cat >>confdefs.h <<_ACEOF
  10460. #define HAVE_LIBADVAPI32 1
  10461. _ACEOF
  10462. LIBS="-ladvapi32 $LIBS"
  10463. fi
  10464. ac_cv_lib_advapi32=ac_cv_lib_advapi32_main
  10465. ac_fn_cxx_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default"
  10466. if test "x$ac_cv_header_windows_h" = x""yes; then :
  10467. else
  10468. as_fn_error "windows.h missing" "$LINENO" 5
  10469. fi
  10470. CXXFLAGS=$save_CXXFLAGS
  10471. CPPFLAGS=$save_CPPFLAGS
  10472. CXX=$save_CXX
  10473. CXXCPP=$save_CXXCPP
  10474. LIBS=$save_LIBS
  10475. ac_ext=c
  10476. ac_cpp='$CPP $CPPFLAGS'
  10477. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10478. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10479. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10480. fi
  10481. fi
  10482. BUILD_TYPE="$BUILD_TYPE ODK"
  10483. else
  10484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10485. $as_echo "no" >&6; }
  10486. BUILD_UNOWINREG=NO
  10487. fi
  10488. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build qadevOOo" >&5
  10489. $as_echo_n "checking whether to build qadevOOo... " >&6; }
  10490. if test "z$enable_qadevooo" = "z" -o "$enable_qadevooo" != "no"; then
  10491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10492. $as_echo "yes" >&6; }
  10493. BUILD_QADEVOOO="YES"
  10494. BUILD_TYPE="$BUILD_TYPE QADEVOOO"
  10495. else
  10496. BUILD_QADEVOOO="NO"
  10497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10498. $as_echo "no" >&6; }
  10499. fi
  10500. if test "$_os" = "Linux" -a -z "$with_system_stdlibs" -a -z "$with_system_libs"; then
  10501. if test -n "$checkforstdlibproblems"; then
  10502. if test -f /etc/rpm/macros.prelink; then
  10503. with_system_stdlibs=yes
  10504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: prelinked libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >&5
  10505. $as_echo "$as_me: WARNING: prelinked libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >&2;}
  10506. echo "prelinked libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >> warn
  10507. elif test "$GCC" = "yes" -a ! -e `$CC -print-file-name=libgcc_s.so.1`; then
  10508. with_system_stdlibs=yes
  10509. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform doesn't have a libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >&5
  10510. $as_echo "$as_me: WARNING: platform doesn't have a libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >&2;}
  10511. echo "platform doesn't have a libgcc_s.so.1, enabling --with-system-stdlibs, use --without-system-stdlibs to override" >> warn
  10512. fi
  10513. fi
  10514. fi
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to provide libstdc++/libgcc_s in the installset" >&5
  10516. $as_echo_n "checking whether to provide libstdc++/libgcc_s in the installset... " >&6; }
  10517. if test -n "$with_system_stdlibs" -o -n "$with_system_libs" && \
  10518. test "$with_system_stdlibs" != "no"; then
  10519. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10520. $as_echo "no" >&6; }
  10521. SYSTEM_STDLIBS=YES
  10522. else
  10523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10524. $as_echo "yes" >&6; }
  10525. SYSTEM_STDLIBS=NO
  10526. fi
  10527. if test "$_os" = "Darwin" && test "$with_system_zlib" != "no"; then
  10528. with_system_zlib=yes
  10529. fi
  10530. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which zlib to use" >&5
  10531. $as_echo_n "checking which zlib to use... " >&6; }
  10532. if test -n "$with_system_zlib" -o -n "$with_system_libs" && \
  10533. test "$with_system_zlib" != "no"; then
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  10535. $as_echo "external" >&6; }
  10536. SYSTEM_ZLIB=YES
  10537. ac_fn_c_check_header_mongrel "$LINENO" "zlib.h" "ac_cv_header_zlib_h" "$ac_includes_default"
  10538. if test "x$ac_cv_header_zlib_h" = x""yes; then :
  10539. else
  10540. as_fn_error "zlib.h not found. install zlib" "$LINENO" 5
  10541. fi
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
  10543. $as_echo_n "checking for deflate in -lz... " >&6; }
  10544. if test "${ac_cv_lib_z_deflate+set}" = set; then :
  10545. $as_echo_n "(cached) " >&6
  10546. else
  10547. ac_check_lib_save_LIBS=$LIBS
  10548. LIBS="-lz $LIBS"
  10549. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10550. /* end confdefs.h. */
  10551. /* Override any GCC internal prototype to avoid an error.
  10552. Use char because int might match the return type of a GCC
  10553. builtin and then its argument prototype would still apply. */
  10554. #ifdef __cplusplus
  10555. extern "C"
  10556. #endif
  10557. char deflate ();
  10558. int
  10559. main ()
  10560. {
  10561. return deflate ();
  10562. ;
  10563. return 0;
  10564. }
  10565. _ACEOF
  10566. if ac_fn_c_try_link "$LINENO"; then :
  10567. ac_cv_lib_z_deflate=yes
  10568. else
  10569. ac_cv_lib_z_deflate=no
  10570. fi
  10571. rm -f core conftest.err conftest.$ac_objext \
  10572. conftest$ac_exeext conftest.$ac_ext
  10573. LIBS=$ac_check_lib_save_LIBS
  10574. fi
  10575. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
  10576. $as_echo "$ac_cv_lib_z_deflate" >&6; }
  10577. if test "x$ac_cv_lib_z_deflate" = x""yes; then :
  10578. ZLIB=-lz
  10579. else
  10580. as_fn_error "zlib not found or functional" "$LINENO" 5
  10581. fi
  10582. else
  10583. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  10584. $as_echo "internal" >&6; }
  10585. SYSTEM_ZLIB=NO
  10586. BUILD_TYPE="$BUILD_TYPE ZLIB"
  10587. fi
  10588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which jpeg to use" >&5
  10589. $as_echo_n "checking which jpeg to use... " >&6; }
  10590. if test -n "$with_system_jpeg" -o -n "$with_system_libs" && \
  10591. test "$with_system_jpeg" != "no"; then
  10592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  10593. $as_echo "external" >&6; }
  10594. SYSTEM_JPEG=YES
  10595. ac_fn_c_check_header_mongrel "$LINENO" "jpeglib.h" "ac_cv_header_jpeglib_h" "$ac_includes_default"
  10596. if test "x$ac_cv_header_jpeglib_h" = x""yes; then :
  10597. else
  10598. as_fn_error "jpeg.h not found. install libjpeg" "$LINENO" 5
  10599. fi
  10600. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jpeg_resync_to_restart in -ljpeg" >&5
  10601. $as_echo_n "checking for jpeg_resync_to_restart in -ljpeg... " >&6; }
  10602. if test "${ac_cv_lib_jpeg_jpeg_resync_to_restart+set}" = set; then :
  10603. $as_echo_n "(cached) " >&6
  10604. else
  10605. ac_check_lib_save_LIBS=$LIBS
  10606. LIBS="-ljpeg $LIBS"
  10607. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10608. /* end confdefs.h. */
  10609. /* Override any GCC internal prototype to avoid an error.
  10610. Use char because int might match the return type of a GCC
  10611. builtin and then its argument prototype would still apply. */
  10612. #ifdef __cplusplus
  10613. extern "C"
  10614. #endif
  10615. char jpeg_resync_to_restart ();
  10616. int
  10617. main ()
  10618. {
  10619. return jpeg_resync_to_restart ();
  10620. ;
  10621. return 0;
  10622. }
  10623. _ACEOF
  10624. if ac_fn_c_try_link "$LINENO"; then :
  10625. ac_cv_lib_jpeg_jpeg_resync_to_restart=yes
  10626. else
  10627. ac_cv_lib_jpeg_jpeg_resync_to_restart=no
  10628. fi
  10629. rm -f core conftest.err conftest.$ac_objext \
  10630. conftest$ac_exeext conftest.$ac_ext
  10631. LIBS=$ac_check_lib_save_LIBS
  10632. fi
  10633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_jpeg_resync_to_restart" >&5
  10634. $as_echo "$ac_cv_lib_jpeg_jpeg_resync_to_restart" >&6; }
  10635. if test "x$ac_cv_lib_jpeg_jpeg_resync_to_restart" = x""yes; then :
  10636. JPEG3RDLIB=-ljpeg
  10637. else
  10638. { $as_echo "$as_me:${as_lineno-$LINENO}: checking jpeg library not found or fuctional" >&5
  10639. $as_echo_n "checking jpeg library not found or fuctional... " >&6; }
  10640. fi
  10641. else
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  10643. $as_echo "internal" >&6; }
  10644. SYSTEM_JPEG=NO
  10645. BUILD_TYPE="$BUILD_TYPE JPEG"
  10646. fi
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which expat to use" >&5
  10648. $as_echo_n "checking which expat to use... " >&6; }
  10649. if test -n "$with_system_expat" -o -n "$with_system_libs" && \
  10650. test "$with_system_expat" != "no"; then
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  10652. $as_echo "external" >&6; }
  10653. SYSTEM_EXPAT=YES
  10654. ac_fn_c_check_header_mongrel "$LINENO" "expat.h" "ac_cv_header_expat_h" "$ac_includes_default"
  10655. if test "x$ac_cv_header_expat_h" = x""yes; then :
  10656. else
  10657. as_fn_error "expat.h not found. install expat" "$LINENO" 5
  10658. fi
  10659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XML_ParserCreate in -lexpat" >&5
  10660. $as_echo_n "checking for XML_ParserCreate in -lexpat... " >&6; }
  10661. if test "${ac_cv_lib_expat_XML_ParserCreate+set}" = set; then :
  10662. $as_echo_n "(cached) " >&6
  10663. else
  10664. ac_check_lib_save_LIBS=$LIBS
  10665. LIBS="-lexpat $LIBS"
  10666. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10667. /* end confdefs.h. */
  10668. /* Override any GCC internal prototype to avoid an error.
  10669. Use char because int might match the return type of a GCC
  10670. builtin and then its argument prototype would still apply. */
  10671. #ifdef __cplusplus
  10672. extern "C"
  10673. #endif
  10674. char XML_ParserCreate ();
  10675. int
  10676. main ()
  10677. {
  10678. return XML_ParserCreate ();
  10679. ;
  10680. return 0;
  10681. }
  10682. _ACEOF
  10683. if ac_fn_c_try_link "$LINENO"; then :
  10684. ac_cv_lib_expat_XML_ParserCreate=yes
  10685. else
  10686. ac_cv_lib_expat_XML_ParserCreate=no
  10687. fi
  10688. rm -f core conftest.err conftest.$ac_objext \
  10689. conftest$ac_exeext conftest.$ac_ext
  10690. LIBS=$ac_check_lib_save_LIBS
  10691. fi
  10692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_expat_XML_ParserCreate" >&5
  10693. $as_echo "$ac_cv_lib_expat_XML_ParserCreate" >&6; }
  10694. if test "x$ac_cv_lib_expat_XML_ParserCreate" = x""yes; then :
  10695. cat >>confdefs.h <<_ACEOF
  10696. #define HAVE_LIBEXPAT 1
  10697. _ACEOF
  10698. LIBS="-lexpat $LIBS"
  10699. else
  10700. { $as_echo "$as_me:${as_lineno-$LINENO}: result: expat library not found or functional." >&5
  10701. $as_echo "expat library not found or functional." >&6; }
  10702. fi
  10703. else
  10704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  10705. $as_echo "internal" >&6; }
  10706. SYSTEM_EXPAT=NO
  10707. BUILD_TYPE="$BUILD_TYPE EXPAT"
  10708. fi
  10709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libwpd to use" >&5
  10710. $as_echo_n "checking which libwpd to use... " >&6; }
  10711. if test -n "$with_system_libwpd" -o -n "$with_system_libs" && \
  10712. test "$with_system_libwpd" != "no"; then
  10713. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  10714. $as_echo "external" >&6; }
  10715. SYSTEM_LIBWPD=YES
  10716. succeeded=no
  10717. if test -z "$PKG_CONFIG"; then
  10718. # Extract the first word of "pkg-config", so it can be a program name with args.
  10719. set dummy pkg-config; ac_word=$2
  10720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10721. $as_echo_n "checking for $ac_word... " >&6; }
  10722. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10723. $as_echo_n "(cached) " >&6
  10724. else
  10725. case $PKG_CONFIG in
  10726. [\\/]* | ?:[\\/]*)
  10727. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10728. ;;
  10729. *)
  10730. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10731. for as_dir in $PATH
  10732. do
  10733. IFS=$as_save_IFS
  10734. test -z "$as_dir" && as_dir=.
  10735. for ac_exec_ext in '' $ac_executable_extensions; do
  10736. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10737. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10738. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10739. break 2
  10740. fi
  10741. done
  10742. done
  10743. IFS=$as_save_IFS
  10744. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10745. ;;
  10746. esac
  10747. fi
  10748. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10749. if test -n "$PKG_CONFIG"; then
  10750. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10751. $as_echo "$PKG_CONFIG" >&6; }
  10752. else
  10753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10754. $as_echo "no" >&6; }
  10755. fi
  10756. fi
  10757. if test "$PKG_CONFIG" = "no" ; then
  10758. echo "*** The pkg-config script could not be found. Make sure it is"
  10759. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10760. echo "*** to the full path to pkg-config."
  10761. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10762. else
  10763. PKG_CONFIG_MIN_VERSION=0.9.0
  10764. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10765. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libwpd-0.8 " >&5
  10766. $as_echo_n "checking for libwpd-0.8 ... " >&6; }
  10767. if $PKG_CONFIG --exists "libwpd-0.8 " ; then
  10768. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10769. $as_echo "yes" >&6; }
  10770. succeeded=yes
  10771. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBWPD_CFLAGS" >&5
  10772. $as_echo_n "checking LIBWPD_CFLAGS... " >&6; }
  10773. LIBWPD_CFLAGS=`$PKG_CONFIG --cflags "libwpd-0.8 "`
  10774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWPD_CFLAGS" >&5
  10775. $as_echo "$LIBWPD_CFLAGS" >&6; }
  10776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBWPD_LIBS" >&5
  10777. $as_echo_n "checking LIBWPD_LIBS... " >&6; }
  10778. LIBWPD_LIBS=`$PKG_CONFIG --libs "libwpd-0.8 "`
  10779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBWPD_LIBS" >&5
  10780. $as_echo "$LIBWPD_LIBS" >&6; }
  10781. else
  10782. LIBWPD_CFLAGS=""
  10783. LIBWPD_LIBS=""
  10784. ## If we have a custom action on failure, don't print errors, but
  10785. ## do set a variable so people can do so.
  10786. LIBWPD_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libwpd-0.8 "`
  10787. echo $LIBWPD_PKG_ERRORS
  10788. fi
  10789. else
  10790. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10791. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10792. fi
  10793. fi
  10794. if test $succeeded = yes; then
  10795. :
  10796. else
  10797. as_fn_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." "$LINENO" 5
  10798. fi
  10799. else
  10800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  10801. $as_echo "internal" >&6; }
  10802. SYSTEM_LIBWPD=NO
  10803. BUILD_TYPE="$BUILD_TYPE LIBWPD"
  10804. fi
  10805. if test "$test_freetype" = "yes"; then
  10806. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether freetype is available" >&5
  10807. $as_echo_n "checking whether freetype is available... " >&6; }
  10808. succeeded=no
  10809. if test -z "$PKG_CONFIG"; then
  10810. # Extract the first word of "pkg-config", so it can be a program name with args.
  10811. set dummy pkg-config; ac_word=$2
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10813. $as_echo_n "checking for $ac_word... " >&6; }
  10814. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10815. $as_echo_n "(cached) " >&6
  10816. else
  10817. case $PKG_CONFIG in
  10818. [\\/]* | ?:[\\/]*)
  10819. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10820. ;;
  10821. *)
  10822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10823. for as_dir in $PATH
  10824. do
  10825. IFS=$as_save_IFS
  10826. test -z "$as_dir" && as_dir=.
  10827. for ac_exec_ext in '' $ac_executable_extensions; do
  10828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  10829. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10831. break 2
  10832. fi
  10833. done
  10834. done
  10835. IFS=$as_save_IFS
  10836. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  10837. ;;
  10838. esac
  10839. fi
  10840. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10841. if test -n "$PKG_CONFIG"; then
  10842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10843. $as_echo "$PKG_CONFIG" >&6; }
  10844. else
  10845. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10846. $as_echo "no" >&6; }
  10847. fi
  10848. fi
  10849. if test "$PKG_CONFIG" = "no" ; then
  10850. echo "*** The pkg-config script could not be found. Make sure it is"
  10851. echo "*** in your path, or set the PKG_CONFIG environment variable"
  10852. echo "*** to the full path to pkg-config."
  10853. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  10854. else
  10855. PKG_CONFIG_MIN_VERSION=0.9.0
  10856. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  10857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2 >= 2.0 " >&5
  10858. $as_echo_n "checking for freetype2 >= 2.0 ... " >&6; }
  10859. if $PKG_CONFIG --exists "freetype2 >= 2.0 " ; then
  10860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10861. $as_echo "yes" >&6; }
  10862. succeeded=yes
  10863. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_CFLAGS" >&5
  10864. $as_echo_n "checking FREETYPE_CFLAGS... " >&6; }
  10865. FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2 >= 2.0 "`
  10866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_CFLAGS" >&5
  10867. $as_echo "$FREETYPE_CFLAGS" >&6; }
  10868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE_LIBS" >&5
  10869. $as_echo_n "checking FREETYPE_LIBS... " >&6; }
  10870. FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2 >= 2.0 "`
  10871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE_LIBS" >&5
  10872. $as_echo "$FREETYPE_LIBS" >&6; }
  10873. else
  10874. FREETYPE_CFLAGS=""
  10875. FREETYPE_LIBS=""
  10876. ## If we have a custom action on failure, don't print errors, but
  10877. ## do set a variable so people can do so.
  10878. FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2 >= 2.0 "`
  10879. echo $FREETYPE_PKG_ERRORS
  10880. fi
  10881. else
  10882. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  10883. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  10884. fi
  10885. fi
  10886. if test $succeeded = yes; then
  10887. :
  10888. else
  10889. as_fn_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." "$LINENO" 5
  10890. fi
  10891. fi
  10892. if test "$test_freetype" = "yes"; then
  10893. save_CPPFLAGS="$CPPFLAGS"
  10894. save_LDFLAGS="$LDFLAGS"
  10895. save_LIBS="$LIBS"
  10896. CPPFLAGS="$CPPFLAGS $FREETYPE_CFLAGS"
  10897. LDFLAGS="$LDFLAGS $FREETYPE_LIBS"
  10898. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FT_GlyphSlot_Embolden in -lfreetype" >&5
  10899. $as_echo_n "checking for FT_GlyphSlot_Embolden in -lfreetype... " >&6; }
  10900. if test "${ac_cv_lib_freetype_FT_GlyphSlot_Embolden+set}" = set; then :
  10901. $as_echo_n "(cached) " >&6
  10902. else
  10903. ac_check_lib_save_LIBS=$LIBS
  10904. LIBS="-lfreetype $LIBS"
  10905. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10906. /* end confdefs.h. */
  10907. /* Override any GCC internal prototype to avoid an error.
  10908. Use char because int might match the return type of a GCC
  10909. builtin and then its argument prototype would still apply. */
  10910. #ifdef __cplusplus
  10911. extern "C"
  10912. #endif
  10913. char FT_GlyphSlot_Embolden ();
  10914. int
  10915. main ()
  10916. {
  10917. return FT_GlyphSlot_Embolden ();
  10918. ;
  10919. return 0;
  10920. }
  10921. _ACEOF
  10922. if ac_fn_c_try_link "$LINENO"; then :
  10923. ac_cv_lib_freetype_FT_GlyphSlot_Embolden=yes
  10924. else
  10925. ac_cv_lib_freetype_FT_GlyphSlot_Embolden=no
  10926. fi
  10927. rm -f core conftest.err conftest.$ac_objext \
  10928. conftest$ac_exeext conftest.$ac_ext
  10929. LIBS=$ac_check_lib_save_LIBS
  10930. fi
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&5
  10932. $as_echo "$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" >&6; }
  10933. if test "x$ac_cv_lib_freetype_FT_GlyphSlot_Embolden" = x""yes; then :
  10934. USE_FT_EMBOLDEN="YES"
  10935. else
  10936. USE_FT_EMBOLDEN="NO"
  10937. fi
  10938. LDFLAGS="$save_LDFLAGS"
  10939. CPPFLAGS="$save_CPPFLAGS"
  10940. LIBS="$save_LIBS"
  10941. fi
  10942. if test -n "$with_system_libxslt" -o -n "$with_system_libs" && \
  10943. test "$with_system_libxslt" != "no"; then
  10944. if test -z "$with_system_libxml" -a -z "$with_system_libs" || \
  10945. test "$with_system_libxml" == "no"; then
  10946. # somehow AC_MSG_WARN won't work...
  10947. echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml"
  10948. echo "to prevent incompatibilities between internal libxml2 and libxslt, the office will be build with system-libxml" >> warn
  10949. with_system_libxml=yes
  10950. fi
  10951. fi
  10952. if test -n "$with_system_libxml" -o -n "$with_system_libs" && \
  10953. test "$with_system_libxml" != "no"; then
  10954. if test -z "$with_system_libxslt" -a -z "$with_system_libs" || \
  10955. test "$with_system_libxslt" == "no"; then
  10956. # somehow AC_MSG_WARN won't work...
  10957. echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt"
  10958. echo "to prevent incompatibilities between internal libxslt and libxml2, the office will be build with system-libxslt" >> warn
  10959. with_system_libxslt=yes
  10960. fi
  10961. fi
  10962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxslt to use" >&5
  10963. $as_echo_n "checking which libxslt to use... " >&6; }
  10964. if test -n "$with_system_libxslt" -o -n "$with_system_libs" -o \
  10965. "$_os" = "Darwin" && \
  10966. test "$with_system_libxslt" != "no"; then
  10967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  10968. $as_echo "external" >&6; }
  10969. SYSTEM_LIBXSLT=YES
  10970. if test "$_os" = "Darwin"; then
  10971. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXSLT_CFLAGS" >&5
  10972. $as_echo_n "checking LIBXSLT_CFLAGS... " >&6; }
  10973. LIBXSLT_CFLAGS=`xslt-config --cflags`
  10974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CFLAGS" >&5
  10975. $as_echo "$LIBXSLT_CFLAGS" >&6; }
  10976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXSLT_LIBS" >&5
  10977. $as_echo_n "checking LIBXSLT_LIBS... " >&6; }
  10978. LIBXSLT_LIBS=`xslt-config --libs`
  10979. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_LIBS" >&5
  10980. $as_echo "$LIBXSLT_LIBS" >&6; }
  10981. else
  10982. succeeded=no
  10983. if test -z "$PKG_CONFIG"; then
  10984. # Extract the first word of "pkg-config", so it can be a program name with args.
  10985. set dummy pkg-config; ac_word=$2
  10986. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10987. $as_echo_n "checking for $ac_word... " >&6; }
  10988. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  10989. $as_echo_n "(cached) " >&6
  10990. else
  10991. case $PKG_CONFIG in
  10992. [\\/]* | ?:[\\/]*)
  10993. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10994. ;;
  10995. *)
  10996. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10997. for as_dir in $PATH
  10998. do
  10999. IFS=$as_save_IFS
  11000. test -z "$as_dir" && as_dir=.
  11001. for ac_exec_ext in '' $ac_executable_extensions; do
  11002. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11003. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11004. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11005. break 2
  11006. fi
  11007. done
  11008. done
  11009. IFS=$as_save_IFS
  11010. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11011. ;;
  11012. esac
  11013. fi
  11014. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11015. if test -n "$PKG_CONFIG"; then
  11016. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11017. $as_echo "$PKG_CONFIG" >&6; }
  11018. else
  11019. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11020. $as_echo "no" >&6; }
  11021. fi
  11022. fi
  11023. if test "$PKG_CONFIG" = "no" ; then
  11024. echo "*** The pkg-config script could not be found. Make sure it is"
  11025. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11026. echo "*** to the full path to pkg-config."
  11027. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11028. else
  11029. PKG_CONFIG_MIN_VERSION=0.9.0
  11030. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt" >&5
  11032. $as_echo_n "checking for libxslt... " >&6; }
  11033. if $PKG_CONFIG --exists "libxslt" ; then
  11034. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11035. $as_echo "yes" >&6; }
  11036. succeeded=yes
  11037. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXSLT_CFLAGS" >&5
  11038. $as_echo_n "checking LIBXSLT_CFLAGS... " >&6; }
  11039. LIBXSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt"`
  11040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_CFLAGS" >&5
  11041. $as_echo "$LIBXSLT_CFLAGS" >&6; }
  11042. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXSLT_LIBS" >&5
  11043. $as_echo_n "checking LIBXSLT_LIBS... " >&6; }
  11044. LIBXSLT_LIBS=`$PKG_CONFIG --libs "libxslt"`
  11045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXSLT_LIBS" >&5
  11046. $as_echo "$LIBXSLT_LIBS" >&6; }
  11047. else
  11048. LIBXSLT_CFLAGS=""
  11049. LIBXSLT_LIBS=""
  11050. ## If we have a custom action on failure, don't print errors, but
  11051. ## do set a variable so people can do so.
  11052. LIBXSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt"`
  11053. echo $LIBXSLT_PKG_ERRORS
  11054. fi
  11055. else
  11056. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11057. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11058. fi
  11059. fi
  11060. if test $succeeded = yes; then
  11061. :
  11062. else
  11063. as_fn_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." "$LINENO" 5
  11064. fi
  11065. fi
  11066. # Extract the first word of "xsltproc", so it can be a program name with args.
  11067. set dummy xsltproc; ac_word=$2
  11068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11069. $as_echo_n "checking for $ac_word... " >&6; }
  11070. if test "${ac_cv_path_XSLTPROC+set}" = set; then :
  11071. $as_echo_n "(cached) " >&6
  11072. else
  11073. case $XSLTPROC in
  11074. [\\/]* | ?:[\\/]*)
  11075. ac_cv_path_XSLTPROC="$XSLTPROC" # Let the user override the test with a path.
  11076. ;;
  11077. *)
  11078. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11079. for as_dir in $PATH
  11080. do
  11081. IFS=$as_save_IFS
  11082. test -z "$as_dir" && as_dir=.
  11083. for ac_exec_ext in '' $ac_executable_extensions; do
  11084. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11085. ac_cv_path_XSLTPROC="$as_dir/$ac_word$ac_exec_ext"
  11086. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11087. break 2
  11088. fi
  11089. done
  11090. done
  11091. IFS=$as_save_IFS
  11092. test -z "$ac_cv_path_XSLTPROC" && ac_cv_path_XSLTPROC="no"
  11093. ;;
  11094. esac
  11095. fi
  11096. XSLTPROC=$ac_cv_path_XSLTPROC
  11097. if test -n "$XSLTPROC"; then
  11098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLTPROC" >&5
  11099. $as_echo "$XSLTPROC" >&6; }
  11100. else
  11101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11102. $as_echo "no" >&6; }
  11103. fi
  11104. if test "$XSLTPROC" = "no"; then
  11105. as_fn_error "xsltproc is required" "$LINENO" 5
  11106. fi
  11107. else
  11108. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11109. $as_echo "internal" >&6; }
  11110. SYSTEM_LIBXSLT=NO
  11111. BUILD_TYPE="$BUILD_TYPE LIBXSLT"
  11112. fi
  11113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which libxml to use" >&5
  11114. $as_echo_n "checking which libxml to use... " >&6; }
  11115. if test -n "$with_system_libxml" -o -n "$with_system_libs" -o \
  11116. "$_os" = "Darwin" && \
  11117. test "$with_system_libxml" != "no"; then
  11118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11119. $as_echo "external" >&6; }
  11120. SYSTEM_LIBXML=YES
  11121. if test "$_os" = "Darwin"; then
  11122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML_CFLAGS" >&5
  11123. $as_echo_n "checking LIBXML_CFLAGS... " >&6; }
  11124. LIBXML_CFLAGS=`xml2-config --cflags`
  11125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CFLAGS" >&5
  11126. $as_echo "$LIBXML_CFLAGS" >&6; }
  11127. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML_LIBS" >&5
  11128. $as_echo_n "checking LIBXML_LIBS... " >&6; }
  11129. LIBXML_LIBS=`xml2-config --libs`
  11130. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_LIBS" >&5
  11131. $as_echo "$LIBXML_LIBS" >&6; }
  11132. else
  11133. succeeded=no
  11134. if test -z "$PKG_CONFIG"; then
  11135. # Extract the first word of "pkg-config", so it can be a program name with args.
  11136. set dummy pkg-config; ac_word=$2
  11137. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11138. $as_echo_n "checking for $ac_word... " >&6; }
  11139. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  11140. $as_echo_n "(cached) " >&6
  11141. else
  11142. case $PKG_CONFIG in
  11143. [\\/]* | ?:[\\/]*)
  11144. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  11145. ;;
  11146. *)
  11147. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11148. for as_dir in $PATH
  11149. do
  11150. IFS=$as_save_IFS
  11151. test -z "$as_dir" && as_dir=.
  11152. for ac_exec_ext in '' $ac_executable_extensions; do
  11153. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11154. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  11155. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11156. break 2
  11157. fi
  11158. done
  11159. done
  11160. IFS=$as_save_IFS
  11161. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  11162. ;;
  11163. esac
  11164. fi
  11165. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  11166. if test -n "$PKG_CONFIG"; then
  11167. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  11168. $as_echo "$PKG_CONFIG" >&6; }
  11169. else
  11170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11171. $as_echo "no" >&6; }
  11172. fi
  11173. fi
  11174. if test "$PKG_CONFIG" = "no" ; then
  11175. echo "*** The pkg-config script could not be found. Make sure it is"
  11176. echo "*** in your path, or set the PKG_CONFIG environment variable"
  11177. echo "*** to the full path to pkg-config."
  11178. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  11179. else
  11180. PKG_CONFIG_MIN_VERSION=0.9.0
  11181. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  11182. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.0" >&5
  11183. $as_echo_n "checking for libxml-2.0 >= 2.0... " >&6; }
  11184. if $PKG_CONFIG --exists "libxml-2.0 >= 2.0" ; then
  11185. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11186. $as_echo "yes" >&6; }
  11187. succeeded=yes
  11188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML_CFLAGS" >&5
  11189. $as_echo_n "checking LIBXML_CFLAGS... " >&6; }
  11190. LIBXML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.0"`
  11191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_CFLAGS" >&5
  11192. $as_echo "$LIBXML_CFLAGS" >&6; }
  11193. { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBXML_LIBS" >&5
  11194. $as_echo_n "checking LIBXML_LIBS... " >&6; }
  11195. LIBXML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.0"`
  11196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBXML_LIBS" >&5
  11197. $as_echo "$LIBXML_LIBS" >&6; }
  11198. else
  11199. LIBXML_CFLAGS=""
  11200. LIBXML_LIBS=""
  11201. ## If we have a custom action on failure, don't print errors, but
  11202. ## do set a variable so people can do so.
  11203. LIBXML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.0"`
  11204. echo $LIBXML_PKG_ERRORS
  11205. fi
  11206. else
  11207. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  11208. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  11209. fi
  11210. fi
  11211. if test $succeeded = yes; then
  11212. :
  11213. else
  11214. as_fn_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." "$LINENO" 5
  11215. fi
  11216. fi
  11217. BUILD_TYPE="$BUILD_TYPE LIBXMLSEC"
  11218. else
  11219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11220. $as_echo "internal" >&6; }
  11221. SYSTEM_LIBXML=NO
  11222. BUILD_TYPE="$BUILD_TYPE LIBXML2 LIBXMLSEC"
  11223. fi
  11224. if test "$_os" = "Darwin" && test "$with_system_python" != "no"; then
  11225. with_system_python=yes
  11226. fi
  11227. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which python to use" >&5
  11228. $as_echo_n "checking which python to use... " >&6; }
  11229. if test -n "$with_system_python" -o -n "$with_system_libs" && \
  11230. test "$with_system_python" != "no"; then
  11231. SYSTEM_PYTHON=YES
  11232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11233. $as_echo "external" >&6; }
  11234. if test -n "$PYTHON"; then
  11235. # If the user set $PYTHON, use it and don't search something else.
  11236. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $PYTHON version >= 2.2" >&5
  11237. $as_echo_n "checking whether $PYTHON version >= 2.2... " >&6; }
  11238. prog="import sys, string
  11239. # split strings by '.' and convert to numeric. Append some zeros
  11240. # because we need at least 4 digits for the hex conversion.
  11241. minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
  11242. minverhex = 0
  11243. for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
  11244. sys.exit(sys.hexversion < minverhex)"
  11245. if { echo "$as_me:$LINENO: $PYTHON -c "$prog"" >&5
  11246. ($PYTHON -c "$prog") >&5 2>&5
  11247. ac_status=$?
  11248. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11249. (exit $ac_status); }; then :
  11250. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11251. $as_echo "yes" >&6; }
  11252. else
  11253. as_fn_error "too old" "$LINENO" 5
  11254. fi
  11255. am_display_PYTHON=$PYTHON
  11256. else
  11257. # Otherwise, try each interpreter until we find one that satisfies
  11258. # VERSION.
  11259. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a Python interpreter with version >= 2.2" >&5
  11260. $as_echo_n "checking for a Python interpreter with version >= 2.2... " >&6; }
  11261. if test "${am_cv_pathless_PYTHON+set}" = set; then :
  11262. $as_echo_n "(cached) " >&6
  11263. else
  11264. 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
  11265. test "$am_cv_pathless_PYTHON" = none && break
  11266. prog="import sys, string
  11267. # split strings by '.' and convert to numeric. Append some zeros
  11268. # because we need at least 4 digits for the hex conversion.
  11269. minver = map(int, string.split('2.2', '.')) + [0, 0, 0]
  11270. minverhex = 0
  11271. for i in xrange(0, 4): minverhex = (minverhex << 8) + minver[i]
  11272. sys.exit(sys.hexversion < minverhex)"
  11273. if { echo "$as_me:$LINENO: $am_cv_pathless_PYTHON -c "$prog"" >&5
  11274. ($am_cv_pathless_PYTHON -c "$prog") >&5 2>&5
  11275. ac_status=$?
  11276. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  11277. (exit $ac_status); }; then :
  11278. break
  11279. fi
  11280. done
  11281. fi
  11282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_pathless_PYTHON" >&5
  11283. $as_echo "$am_cv_pathless_PYTHON" >&6; }
  11284. # Set $PYTHON to the absolute path of $am_cv_pathless_PYTHON.
  11285. if test "$am_cv_pathless_PYTHON" = none; then
  11286. PYTHON=:
  11287. else
  11288. # Extract the first word of "$am_cv_pathless_PYTHON", so it can be a program name with args.
  11289. set dummy $am_cv_pathless_PYTHON; ac_word=$2
  11290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11291. $as_echo_n "checking for $ac_word... " >&6; }
  11292. if test "${ac_cv_path_PYTHON+set}" = set; then :
  11293. $as_echo_n "(cached) " >&6
  11294. else
  11295. case $PYTHON in
  11296. [\\/]* | ?:[\\/]*)
  11297. ac_cv_path_PYTHON="$PYTHON" # Let the user override the test with a path.
  11298. ;;
  11299. *)
  11300. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11301. for as_dir in $PATH
  11302. do
  11303. IFS=$as_save_IFS
  11304. test -z "$as_dir" && as_dir=.
  11305. for ac_exec_ext in '' $ac_executable_extensions; do
  11306. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11307. ac_cv_path_PYTHON="$as_dir/$ac_word$ac_exec_ext"
  11308. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11309. break 2
  11310. fi
  11311. done
  11312. done
  11313. IFS=$as_save_IFS
  11314. ;;
  11315. esac
  11316. fi
  11317. PYTHON=$ac_cv_path_PYTHON
  11318. if test -n "$PYTHON"; then
  11319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
  11320. $as_echo "$PYTHON" >&6; }
  11321. else
  11322. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11323. $as_echo "no" >&6; }
  11324. fi
  11325. fi
  11326. am_display_PYTHON=$am_cv_pathless_PYTHON
  11327. fi
  11328. if test "$PYTHON" = :; then
  11329. as_fn_error "no suitable Python interpreter found" "$LINENO" 5
  11330. else
  11331. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON version" >&5
  11332. $as_echo_n "checking for $am_display_PYTHON version... " >&6; }
  11333. if test "${am_cv_python_version+set}" = set; then :
  11334. $as_echo_n "(cached) " >&6
  11335. else
  11336. am_cv_python_version=`$PYTHON -c "import sys; print sys.version[:3]"`
  11337. fi
  11338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_version" >&5
  11339. $as_echo "$am_cv_python_version" >&6; }
  11340. PYTHON_VERSION=$am_cv_python_version
  11341. PYTHON_PREFIX='${prefix}'
  11342. PYTHON_EXEC_PREFIX='${exec_prefix}'
  11343. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON platform" >&5
  11344. $as_echo_n "checking for $am_display_PYTHON platform... " >&6; }
  11345. if test "${am_cv_python_platform+set}" = set; then :
  11346. $as_echo_n "(cached) " >&6
  11347. else
  11348. am_cv_python_platform=`$PYTHON -c "import sys; print sys.platform"`
  11349. fi
  11350. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_platform" >&5
  11351. $as_echo "$am_cv_python_platform" >&6; }
  11352. PYTHON_PLATFORM=$am_cv_python_platform
  11353. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON script directory" >&5
  11354. $as_echo_n "checking for $am_display_PYTHON script directory... " >&6; }
  11355. if test "${am_cv_python_pythondir+set}" = set; then :
  11356. $as_echo_n "(cached) " >&6
  11357. else
  11358. am_cv_python_pythondir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(0,0,prefix='$PYTHON_PREFIX')" 2>/dev/null ||
  11359. echo "$PYTHON_PREFIX/lib/python$PYTHON_VERSION/site-packages"`
  11360. fi
  11361. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pythondir" >&5
  11362. $as_echo "$am_cv_python_pythondir" >&6; }
  11363. pythondir=$am_cv_python_pythondir
  11364. pkgpythondir=\${pythondir}/$PACKAGE
  11365. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $am_display_PYTHON extension module directory" >&5
  11366. $as_echo_n "checking for $am_display_PYTHON extension module directory... " >&6; }
  11367. if test "${am_cv_python_pyexecdir+set}" = set; then :
  11368. $as_echo_n "(cached) " >&6
  11369. else
  11370. am_cv_python_pyexecdir=`$PYTHON -c "from distutils import sysconfig; print sysconfig.get_python_lib(1,0,prefix='$PYTHON_EXEC_PREFIX')" 2>/dev/null ||
  11371. echo "${PYTHON_EXEC_PREFIX}/lib/python${PYTHON_VERSION}/site-packages"`
  11372. fi
  11373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_python_pyexecdir" >&5
  11374. $as_echo "$am_cv_python_pyexecdir" >&6; }
  11375. pyexecdir=$am_cv_python_pyexecdir
  11376. pkgpyexecdir=\${pyexecdir}/$PACKAGE
  11377. fi
  11378. python_include=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('INCLUDEPY');"`
  11379. python_version=`$PYTHON -c "import distutils.sysconfig; print distutils.sysconfig.get_config_var('VERSION');"`
  11380. PYTHON_CFLAGS="-I$python_include"
  11381. if test "$_os" = "Darwin"; then
  11382. PYTHON_LIBS="-framework Python"
  11383. else
  11384. PYTHON_LIBS="-lpython$python_version"
  11385. fi
  11386. save_CPPFLAGS="$CPPFLAGS"
  11387. CPPFLAGS="$CPPFLAGS $PYTHON_CFLAGS"
  11388. ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
  11389. if test "x$ac_cv_header_Python_h" = x""yes; then :
  11390. else
  11391. as_fn_error "Python headers not found" "$LINENO" 5
  11392. fi
  11393. CPPFLAGS="$save_CPPFLAGS"
  11394. else
  11395. SYSTEM_PYTHON=NO
  11396. BUILD_TYPE="$BUILD_TYPE PYTHON"
  11397. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11398. $as_echo "internal" >&6; }
  11399. # Embedded python dies without Home set
  11400. if test "z$HOME" = "z"; then
  11401. export HOME="";
  11402. fi
  11403. # bz2 tarball and bzip2 is not standard
  11404. if test -z "$BZIP2"; then
  11405. # Extract the first word of "bzip2", so it can be a program name with args.
  11406. set dummy bzip2; ac_word=$2
  11407. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11408. $as_echo_n "checking for $ac_word... " >&6; }
  11409. if test "${ac_cv_path_BZIP2+set}" = set; then :
  11410. $as_echo_n "(cached) " >&6
  11411. else
  11412. case $BZIP2 in
  11413. [\\/]* | ?:[\\/]*)
  11414. ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
  11415. ;;
  11416. *)
  11417. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11418. for as_dir in $PATH
  11419. do
  11420. IFS=$as_save_IFS
  11421. test -z "$as_dir" && as_dir=.
  11422. for ac_exec_ext in '' $ac_executable_extensions; do
  11423. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11424. ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
  11425. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11426. break 2
  11427. fi
  11428. done
  11429. done
  11430. IFS=$as_save_IFS
  11431. ;;
  11432. esac
  11433. fi
  11434. BZIP2=$ac_cv_path_BZIP2
  11435. if test -n "$BZIP2"; then
  11436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
  11437. $as_echo "$BZIP2" >&6; }
  11438. else
  11439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11440. $as_echo "no" >&6; }
  11441. fi
  11442. if test -z "$BZIP2"; then
  11443. as_fn_error "the internal Python module has a .tar.bz2. You need bzip2" "$LINENO" 5
  11444. fi
  11445. fi
  11446. fi
  11447. HOME=`echo $HOME | sed 's:\\\\:/:g'`
  11448. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which db to use" >&5
  11449. $as_echo_n "checking which db to use... " >&6; }
  11450. if test -n "$with_system_db" -o -n "$with_system_libs" && \
  11451. test "$with_system_db" != "no"; then
  11452. SYSTEM_DB=YES
  11453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11454. $as_echo "external" >&6; }
  11455. ac_fn_c_check_header_compile "$LINENO" "db.h" "ac_cv_header_db_h" "
  11456. "
  11457. if test "x$ac_cv_header_db_h" = x""yes; then :
  11458. DB_INCLUDES=/usr/include
  11459. else
  11460. CFLAGS=-I/usr/include/db4
  11461. ac_fn_c_check_header_compile "$LINENO" "db4/db.h" "ac_cv_header_db4_db_h" "+
  11462. "
  11463. if test "x$ac_cv_header_db4_db_h" = x""yes; then :
  11464. DB_INCLUDES=/usr/include/db4
  11465. else
  11466. as_fn_error "no. install the db4 libraries" "$LINENO" 5
  11467. fi
  11468. fi
  11469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether db is at least 4.1" >&5
  11470. $as_echo_n "checking whether db is at least 4.1... " >&6; }
  11471. if test "$cross_compiling" = yes; then :
  11472. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11473. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11474. as_fn_error "cannot run test program while cross compiling
  11475. See \`config.log' for more details." "$LINENO" 5; }
  11476. else
  11477. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11478. /* end confdefs.h. */
  11479. #include <db.h>
  11480. int main(int argc, char **argv) {
  11481. if(DB_VERSION_MAJOR > 4 || (DB_VERSION_MAJOR == 4 && DB_VERSION_MINOR >= 1)) return 0;
  11482. else return 1;
  11483. }
  11484. _ACEOF
  11485. if ac_fn_c_try_run "$LINENO"; then :
  11486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11487. $as_echo "yes" >&6; }
  11488. else
  11489. as_fn_error "no. you need at least db 4.1" "$LINENO" 5
  11490. fi
  11491. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11492. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11493. fi
  11494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ldb" >&5
  11495. $as_echo_n "checking for main in -ldb... " >&6; }
  11496. if test "${ac_cv_lib_db_main+set}" = set; then :
  11497. $as_echo_n "(cached) " >&6
  11498. else
  11499. ac_check_lib_save_LIBS=$LIBS
  11500. LIBS="-ldb $LIBS"
  11501. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11502. /* end confdefs.h. */
  11503. int
  11504. main ()
  11505. {
  11506. return main ();
  11507. ;
  11508. return 0;
  11509. }
  11510. _ACEOF
  11511. if ac_fn_c_try_link "$LINENO"; then :
  11512. ac_cv_lib_db_main=yes
  11513. else
  11514. ac_cv_lib_db_main=no
  11515. fi
  11516. rm -f core conftest.err conftest.$ac_objext \
  11517. conftest$ac_exeext conftest.$ac_ext
  11518. LIBS=$ac_check_lib_save_LIBS
  11519. fi
  11520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_db_main" >&5
  11521. $as_echo "$ac_cv_lib_db_main" >&6; }
  11522. if test "x$ac_cv_lib_db_main" = x""yes; then :
  11523. cat >>confdefs.h <<_ACEOF
  11524. #define HAVE_LIBDB 1
  11525. _ACEOF
  11526. LIBS="-ldb $LIBS"
  11527. else
  11528. as_fn_error "db not installed or functional" "$LINENO" 5
  11529. fi
  11530. ac_cv_lib_db=ac_cv_lib_db_main
  11531. SCPDEFS="$SCPDEFS -DSYSTEM_DB"
  11532. else
  11533. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11534. $as_echo "internal" >&6; }
  11535. SYSTEM_DB=NO
  11536. BUILD_TYPE="$BUILD_TYPE BERKELEYDB"
  11537. fi
  11538. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which lucene to use" >&5
  11539. $as_echo_n "checking which lucene to use... " >&6; }
  11540. if test -n "$with_system_lucene" -o -n "$with_system_libs" && \
  11541. test "$with_system_lucene" != "no" && test "$with_system_jars" != "no"; then
  11542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11543. $as_echo "external" >&6; }
  11544. SYSTEM_LUCENE=YES
  11545. if test -z $LUCENE_CORE_JAR; then
  11546. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/lucene-core-2.3.jar" >&5
  11547. $as_echo_n "checking for /usr/share/java/lucene-core-2.3.jar... " >&6; }
  11548. if test "${ac_cv_file__usr_share_java_lucene_core_2_3_jar+set}" = set; then :
  11549. $as_echo_n "(cached) " >&6
  11550. else
  11551. test "$cross_compiling" = yes &&
  11552. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11553. if test -r "/usr/share/java/lucene-core-2.3.jar"; then
  11554. ac_cv_file__usr_share_java_lucene_core_2_3_jar=yes
  11555. else
  11556. ac_cv_file__usr_share_java_lucene_core_2_3_jar=no
  11557. fi
  11558. fi
  11559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&5
  11560. $as_echo "$ac_cv_file__usr_share_java_lucene_core_2_3_jar" >&6; }
  11561. if test "x$ac_cv_file__usr_share_java_lucene_core_2_3_jar" = x""yes; then :
  11562. LUCENE_CORE_JAR=/usr/share/java/lucene-core-2.3.jar
  11563. else
  11564. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/lucene.jar" >&5
  11565. $as_echo_n "checking for /usr/share/java/lucene.jar... " >&6; }
  11566. if test "${ac_cv_file__usr_share_java_lucene_jar+set}" = set; then :
  11567. $as_echo_n "(cached) " >&6
  11568. else
  11569. test "$cross_compiling" = yes &&
  11570. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11571. if test -r "/usr/share/java/lucene.jar"; then
  11572. ac_cv_file__usr_share_java_lucene_jar=yes
  11573. else
  11574. ac_cv_file__usr_share_java_lucene_jar=no
  11575. fi
  11576. fi
  11577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_lucene_jar" >&5
  11578. $as_echo "$ac_cv_file__usr_share_java_lucene_jar" >&6; }
  11579. if test "x$ac_cv_file__usr_share_java_lucene_jar" = x""yes; then :
  11580. LUCENE_CORE_JAR=/usr/share/java/lucene.jar
  11581. else
  11582. as_fn_error "lucene-core.jar replacement not found" "$LINENO" 5
  11583. fi
  11584. fi
  11585. else
  11586. as_ac_File=`$as_echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
  11587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUCENE_CORE_JAR" >&5
  11588. $as_echo_n "checking for $LUCENE_CORE_JAR... " >&6; }
  11589. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  11590. $as_echo_n "(cached) " >&6
  11591. else
  11592. test "$cross_compiling" = yes &&
  11593. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11594. if test -r "$LUCENE_CORE_JAR"; then
  11595. eval "$as_ac_File=yes"
  11596. else
  11597. eval "$as_ac_File=no"
  11598. fi
  11599. fi
  11600. eval ac_res=\$$as_ac_File
  11601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11602. $as_echo "$ac_res" >&6; }
  11603. eval as_val=\$$as_ac_File
  11604. if test "x$as_val" = x""yes; then :
  11605. else
  11606. as_fn_error "lucene-core.jar not found." "$LINENO" 5
  11607. fi
  11608. fi
  11609. if test -z $LUCENE_ANALYZERS_JAR; then
  11610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/lucene-analyzers-2.3.jar" >&5
  11611. $as_echo_n "checking for /usr/share/java/lucene-analyzers-2.3.jar... " >&6; }
  11612. if test "${ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar+set}" = set; then :
  11613. $as_echo_n "(cached) " >&6
  11614. else
  11615. test "$cross_compiling" = yes &&
  11616. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11617. if test -r "/usr/share/java/lucene-analyzers-2.3.jar"; then
  11618. ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=yes
  11619. else
  11620. ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar=no
  11621. fi
  11622. fi
  11623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&5
  11624. $as_echo "$ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" >&6; }
  11625. if test "x$ac_cv_file__usr_share_java_lucene_analyzers_2_3_jar" = x""yes; then :
  11626. LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-analyzers-2.3.jar
  11627. else
  11628. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar" >&5
  11629. $as_echo_n "checking for /usr/share/java/lucene-contrib/lucene-analyzers.jar... " >&6; }
  11630. if test "${ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar+set}" = set; then :
  11631. $as_echo_n "(cached) " >&6
  11632. else
  11633. test "$cross_compiling" = yes &&
  11634. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11635. if test -r "/usr/share/java/lucene-contrib/lucene-analyzers.jar"; then
  11636. ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=yes
  11637. else
  11638. ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar=no
  11639. fi
  11640. fi
  11641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&5
  11642. $as_echo "$ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" >&6; }
  11643. if test "x$ac_cv_file__usr_share_java_lucene_contrib_lucene_analyzers_jar" = x""yes; then :
  11644. LUCENE_ANALYZERS_JAR=/usr/share/java/lucene-contrib/lucene-analyzers.jar
  11645. else
  11646. as_fn_error "lucene-analyzers.jar replacement not found." "$LINENO" 5
  11647. fi
  11648. fi
  11649. else
  11650. as_ac_File=`$as_echo "ac_cv_file_$LUCENE_CORE_JAR" | $as_tr_sh`
  11651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LUCENE_CORE_JAR" >&5
  11652. $as_echo_n "checking for $LUCENE_CORE_JAR... " >&6; }
  11653. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  11654. $as_echo_n "(cached) " >&6
  11655. else
  11656. test "$cross_compiling" = yes &&
  11657. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11658. if test -r "$LUCENE_CORE_JAR"; then
  11659. eval "$as_ac_File=yes"
  11660. else
  11661. eval "$as_ac_File=no"
  11662. fi
  11663. fi
  11664. eval ac_res=\$$as_ac_File
  11665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11666. $as_echo "$ac_res" >&6; }
  11667. eval as_val=\$$as_ac_File
  11668. if test "x$as_val" = x""yes; then :
  11669. else
  11670. as_fn_error "lucene-analyzers.jar not found." "$LINENO" 5
  11671. fi
  11672. fi
  11673. else
  11674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11675. $as_echo "internal" >&6; }
  11676. SYSTEM_LUCENE=NO
  11677. BUILD_TYPE="$BUILD_TYPE LUCENE"
  11678. fi
  11679. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build the MySQL Connector extension" >&5
  11680. $as_echo_n "checking whether to build the MySQL Connector extension... " >&6; }
  11681. if test -n "$enable_mysql_connector" -a "$enable_mysql_connector" != "no"; then
  11682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11683. $as_echo "yes" >&6; }
  11684. ENABLE_MYSQLC=YES
  11685. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysqlc module" >&5
  11686. $as_echo_n "checking for mysqlc module... " >&6; }
  11687. if test -d mysqlc; then
  11688. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  11689. $as_echo "OK" >&6; }
  11690. else
  11691. as_fn_error "not existing. get it (did you get the -extensions tarball?)" "$LINENO" 5
  11692. fi
  11693. BUILD_TYPE="$BUILD_TYPE MYSQLC"
  11694. else
  11695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11696. $as_echo "no" >&6; }
  11697. ENABLE_MYSQLC=NO
  11698. fi
  11699. if test "$ENABLE_MYSQLC" = "YES"; then
  11700. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql pre-requisites" >&5
  11701. $as_echo_n "checking for mysql pre-requisites... " >&6; }
  11702. if test -n "$with_system_mysql" -o -n "$with_system_libs" && \
  11703. test "$with_system_mysql" != "no" && test "$with_system_libs" != "no"; then
  11704. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external MySQL" >&5
  11705. $as_echo "external MySQL" >&6; }
  11706. SYSTEM_MYSQL=YES
  11707. # Extract the first word of "mysql_config", so it can be a program name with args.
  11708. set dummy mysql_config; ac_word=$2
  11709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  11710. $as_echo_n "checking for $ac_word... " >&6; }
  11711. if test "${ac_cv_path_MYSQLCONFIG+set}" = set; then :
  11712. $as_echo_n "(cached) " >&6
  11713. else
  11714. case $MYSQLCONFIG in
  11715. [\\/]* | ?:[\\/]*)
  11716. ac_cv_path_MYSQLCONFIG="$MYSQLCONFIG" # Let the user override the test with a path.
  11717. ;;
  11718. *)
  11719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11720. for as_dir in $PATH
  11721. do
  11722. IFS=$as_save_IFS
  11723. test -z "$as_dir" && as_dir=.
  11724. for ac_exec_ext in '' $ac_executable_extensions; do
  11725. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  11726. ac_cv_path_MYSQLCONFIG="$as_dir/$ac_word$ac_exec_ext"
  11727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  11728. break 2
  11729. fi
  11730. done
  11731. done
  11732. IFS=$as_save_IFS
  11733. ;;
  11734. esac
  11735. fi
  11736. MYSQLCONFIG=$ac_cv_path_MYSQLCONFIG
  11737. if test -n "$MYSQLCONFIG"; then
  11738. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQLCONFIG" >&5
  11739. $as_echo "$MYSQLCONFIG" >&6; }
  11740. else
  11741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  11742. $as_echo "no" >&6; }
  11743. fi
  11744. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL version" >&5
  11745. $as_echo_n "checking MySQL version... " >&6; }
  11746. MYSQL_VERSION=`$MYSQLCONFIG --version`
  11747. MYSQL_MAJOR=`$MYSQLCONFIG --version | cut -d"." -f1`
  11748. if test "$MYSQL_MAJOR" -ge "5"; then
  11749. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  11750. $as_echo "OK" >&6; }
  11751. else
  11752. as_fn_error "too old, use 5.0.x or 5.1.x" "$LINENO" 5
  11753. fi
  11754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL Client library" >&5
  11755. $as_echo_n "checking for MySQL Client library... " >&6; }
  11756. MYSQL_INC=`$MYSQLCONFIG --include`
  11757. MYSQL_LIB=`$MYSQLCONFIG --libs`
  11758. MYSQL_DEFINES=`$MYSQLCONFIG --cflags | sed -e s,$MYSQL_INC,,`
  11759. { $as_echo "$as_me:${as_lineno-$LINENO}: result: includes $MYSQL_INC, libraries $MYSQL_LIB" >&5
  11760. $as_echo "includes $MYSQL_INC, libraries $MYSQL_LIB" >&6; }
  11761. else
  11762. SYSTEM_MYSQL=NO
  11763. if test -n "$with_libmysql_path"; then
  11764. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external Connector/C (libmysql)" >&5
  11765. $as_echo "external Connector/C (libmysql)" >&6; }
  11766. LIBMYSQL=libmysql.so
  11767. if test "$_os" = "Darwin"; then
  11768. LIBMYSQL=libmysql.dylib
  11769. elif test "$_os" = "WINNT"; then
  11770. LIBMYSQL=libmysql.dll
  11771. fi
  11772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LIBMYSQL" >&5
  11773. $as_echo_n "checking for $LIBMYSQL... " >&6; }
  11774. if test -e "$with_libmysql_path/lib/$LIBMYSQL"; then
  11775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found." >&5
  11776. $as_echo "found." >&6; }
  11777. LIBMYSQL_PATH=$with_libmysql_path
  11778. else
  11779. as_fn_error "not found. Please specify proper path in --with-libmysql-path." "$LINENO" 5
  11780. fi
  11781. else
  11782. as_fn_error "not given. Please specify either --with-system-mysql or --with-libmysql-path" "$LINENO" 5
  11783. fi
  11784. fi
  11785. ac_ext=cpp
  11786. ac_cpp='$CXXCPP $CPPFLAGS'
  11787. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11788. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11789. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11790. # FIXME!
  11791. # who thought this too-generic cppconn dir was a good idea?
  11792. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MySQL Connector/C++" >&5
  11793. $as_echo_n "checking MySQL Connector/C++... " >&6; }
  11794. if test -n "$with_system_mysql_cppconn" -o -n "$with_system_libs" && \
  11795. test "$with_system_mysql_cppconn" != "no" && test "$with_system_libs" != "no"; then
  11796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11797. $as_echo "external" >&6; }
  11798. SYSTEM_MYSQL_CPPCONN=YES
  11799. ac_ext=cpp
  11800. ac_cpp='$CXXCPP $CPPFLAGS'
  11801. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11802. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11803. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11804. ac_fn_cxx_check_header_mongrel "$LINENO" "mysql_driver.h" "ac_cv_header_mysql_driver_h" "$ac_includes_default"
  11805. if test "x$ac_cv_header_mysql_driver_h" = x""yes; then :
  11806. else
  11807. as_fn_error "mysql_driver.h not found. install MySQL C++ Connectivity" "$LINENO" 5
  11808. fi
  11809. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lmysqlcppconn" >&5
  11810. $as_echo_n "checking for main in -lmysqlcppconn... " >&6; }
  11811. if test "${ac_cv_lib_mysqlcppconn_main+set}" = set; then :
  11812. $as_echo_n "(cached) " >&6
  11813. else
  11814. ac_check_lib_save_LIBS=$LIBS
  11815. LIBS="-lmysqlcppconn $LIBS"
  11816. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11817. /* end confdefs.h. */
  11818. int
  11819. main ()
  11820. {
  11821. return main ();
  11822. ;
  11823. return 0;
  11824. }
  11825. _ACEOF
  11826. if ac_fn_cxx_try_link "$LINENO"; then :
  11827. ac_cv_lib_mysqlcppconn_main=yes
  11828. else
  11829. ac_cv_lib_mysqlcppconn_main=no
  11830. fi
  11831. rm -f core conftest.err conftest.$ac_objext \
  11832. conftest$ac_exeext conftest.$ac_ext
  11833. LIBS=$ac_check_lib_save_LIBS
  11834. fi
  11835. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlcppconn_main" >&5
  11836. $as_echo "$ac_cv_lib_mysqlcppconn_main" >&6; }
  11837. if test "x$ac_cv_lib_mysqlcppconn_main" = x""yes; then :
  11838. cat >>confdefs.h <<_ACEOF
  11839. #define HAVE_LIBMYSQLCPPCONN 1
  11840. _ACEOF
  11841. LIBS="-lmysqlcppconn $LIBS"
  11842. else
  11843. as_fn_error "MySQL C++ Connectivity lib not found or functional" "$LINENO" 5
  11844. fi
  11845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking version" >&5
  11846. $as_echo_n "checking version... " >&6; }
  11847. if test "$cross_compiling" = yes; then :
  11848. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  11849. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  11850. as_fn_error "cannot run test program while cross compiling
  11851. See \`config.log' for more details." "$LINENO" 5; }
  11852. else
  11853. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11854. /* end confdefs.h. */
  11855. #include <mysql_driver.h>
  11856. int main(int argc, char **argv) {
  11857. sql::Driver *driver;
  11858. driver = get_driver_instance();
  11859. if (driver->getMajorVersion() > 1 || \
  11860. (driver->getMajorVersion() == 1 && driver->getMinorVersion() > 0) || \
  11861. (driver->getMajorVersion() == 1 && driver->getMinorVersion() == 0 && driver->getPatchVersion() >= 6))
  11862. return 0;
  11863. else
  11864. return 1;
  11865. }
  11866. _ACEOF
  11867. if ac_fn_cxx_try_run "$LINENO"; then :
  11868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  11869. $as_echo "OK" >&6; }
  11870. else
  11871. as_fn_error "not suitable, we need >= 1.0.6" "$LINENO" 5
  11872. fi
  11873. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  11874. conftest.$ac_objext conftest.beam conftest.$ac_ext
  11875. fi
  11876. ac_ext=cpp
  11877. ac_cpp='$CXXCPP $CPPFLAGS'
  11878. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11879. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11880. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  11881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking STL compatibility" >&5
  11882. $as_echo_n "checking STL compatibility... " >&6; }
  11883. if test "$WITH_STLPORT" != "no"; then
  11884. as_fn_error "to use system mysqlcppconn you need to use --without-stlport" "$LINENO" 5
  11885. else
  11886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  11887. $as_echo "OK" >&6; }
  11888. fi
  11889. else
  11890. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11891. $as_echo "internal" >&6; }
  11892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysqlcppconn module" >&5
  11893. $as_echo_n "checking for mysqlcppconn module... " >&6; }
  11894. if test -d mysqlcppconn; then
  11895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  11896. $as_echo "OK" >&6; }
  11897. else
  11898. as_fn_error "not existing. get it (did you get the -extensions tarball?)" "$LINENO" 5
  11899. fi
  11900. BUILD_TYPE="$BUILD_TYPE MYSQLCPPCONN"
  11901. SYSTEM_MYSQL_CPPCONN=NO
  11902. fi
  11903. ac_ext=c
  11904. ac_cpp='$CPP $CPPFLAGS'
  11905. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  11906. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  11907. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  11908. fi
  11909. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which hsqldb to use" >&5
  11910. $as_echo_n "checking which hsqldb to use... " >&6; }
  11911. if test -n "$with_system_hsqldb" -o -n "$with_system_libs" && \
  11912. test "$with_system_hsqldb" != "no" && test "$with_system_jars" != "no"; then
  11913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11914. $as_echo "external" >&6; }
  11915. SYSTEM_HSQLDB=YES
  11916. if test -z $HSQLDB_JAR; then
  11917. HSQLDB_JAR=/usr/share/java/hsqldb.jar
  11918. fi
  11919. as_ac_File=`$as_echo "ac_cv_file_$HSQLDB_JAR" | $as_tr_sh`
  11920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $HSQLDB_JAR" >&5
  11921. $as_echo_n "checking for $HSQLDB_JAR... " >&6; }
  11922. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  11923. $as_echo_n "(cached) " >&6
  11924. else
  11925. test "$cross_compiling" = yes &&
  11926. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11927. if test -r "$HSQLDB_JAR"; then
  11928. eval "$as_ac_File=yes"
  11929. else
  11930. eval "$as_ac_File=no"
  11931. fi
  11932. fi
  11933. eval ac_res=\$$as_ac_File
  11934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  11935. $as_echo "$ac_res" >&6; }
  11936. eval as_val=\$$as_ac_File
  11937. if test "x$as_val" = x""yes; then :
  11938. else
  11939. as_fn_error "hsqldb.jar not found." "$LINENO" 5
  11940. fi
  11941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether hsqldb is >= 1.8.0.9" >&5
  11942. $as_echo_n "checking whether hsqldb is >= 1.8.0.9... " >&6; }
  11943. export HSQLDB_JAR
  11944. if $PERL -e 'use Archive::Zip;
  11945. my $file = "$ENV{'HSQLDB_JAR'}";
  11946. my $zip = Archive::Zip->new( $file );
  11947. my $mf = $zip->contents ( "META-INF/MANIFEST.MF" );
  11948. if ( $mf =~ m/Specification-Version: 1.8.*/ ) {
  11949. push @l, split(/\n/, $mf);
  11950. foreach my $line (@l) {
  11951. if ($line =~ m/Specification-Version:/) {
  11952. ($t, $version) = split (/:/,$line);
  11953. $version =~ s/^\s//;
  11954. ($a, $b, $c, $d) = split (/\./,$version);
  11955. if (($c == "0" && $d > "8") || $c > 0) {
  11956. exit 0;
  11957. } else {
  11958. exit 1;
  11959. }
  11960. }
  11961. }
  11962. } else {
  11963. exit 1;
  11964. }'; then
  11965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  11966. $as_echo "yes" >&6; }
  11967. else
  11968. as_fn_error "no, hsqldb >= 1.8.0.9 is needed" "$LINENO" 5
  11969. fi
  11970. else
  11971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  11972. $as_echo "internal" >&6; }
  11973. SYSTEM_HSQLDB=NO
  11974. BUILD_TYPE="$BUILD_TYPE HSQLDB"
  11975. fi
  11976. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which beanshell to use" >&5
  11977. $as_echo_n "checking which beanshell to use... " >&6; }
  11978. if test -n "$with_system_beanshell" -o -n "$with_system_libs" && \
  11979. test "$with_system_beanshell" != "no" && test "$with_system_jars" != "no"; then
  11980. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  11981. $as_echo "external" >&6; }
  11982. SYSTEM_BSH=YES
  11983. if test -z $BSH_JAR; then
  11984. BSH_JAR=/usr/share/java/bsh.jar
  11985. fi
  11986. as_ac_File=`$as_echo "ac_cv_file_$BSH_JAR" | $as_tr_sh`
  11987. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $BSH_JAR" >&5
  11988. $as_echo_n "checking for $BSH_JAR... " >&6; }
  11989. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  11990. $as_echo_n "(cached) " >&6
  11991. else
  11992. test "$cross_compiling" = yes &&
  11993. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  11994. if test -r "$BSH_JAR"; then
  11995. eval "$as_ac_File=yes"
  11996. else
  11997. eval "$as_ac_File=no"
  11998. fi
  11999. fi
  12000. eval ac_res=\$$as_ac_File
  12001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12002. $as_echo "$ac_res" >&6; }
  12003. eval as_val=\$$as_ac_File
  12004. if test "x$as_val" = x""yes; then :
  12005. else
  12006. as_fn_error "bsh.jar not found." "$LINENO" 5
  12007. fi
  12008. else
  12009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12010. $as_echo "internal" >&6; }
  12011. SYSTEM_BSH=NO
  12012. BUILD_TYPE="$BUILD_TYPE BSH"
  12013. fi
  12014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which saxon to use" >&5
  12015. $as_echo_n "checking which saxon to use... " >&6; }
  12016. if test -n "$with_system_saxon" -o -n "$with_system_libs" && \
  12017. test "$with_system_saxon" != "no" && test "$with_system_jars" != "no"; then
  12018. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12019. $as_echo "external" >&6; }
  12020. SYSTEM_SAXON=YES
  12021. if test -z $SAXON_JAR; then
  12022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon9.jar" >&5
  12023. $as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
  12024. if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then :
  12025. $as_echo_n "(cached) " >&6
  12026. else
  12027. test "$cross_compiling" = yes &&
  12028. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  12029. if test -r "/usr/share/java/saxon9.jar"; then
  12030. ac_cv_file__usr_share_java_saxon9_jar=yes
  12031. else
  12032. ac_cv_file__usr_share_java_saxon9_jar=no
  12033. fi
  12034. fi
  12035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
  12036. $as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
  12037. if test "x$ac_cv_file__usr_share_java_saxon9_jar" = x""yes; then :
  12038. SAXON_JAR=/usr/share/java/saxon9.jar
  12039. else
  12040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon.jar" >&5
  12041. $as_echo_n "checking for /usr/share/java/saxon.jar... " >&6; }
  12042. if test "${ac_cv_file__usr_share_java_saxon_jar+set}" = set; then :
  12043. $as_echo_n "(cached) " >&6
  12044. else
  12045. test "$cross_compiling" = yes &&
  12046. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  12047. if test -r "/usr/share/java/saxon.jar"; then
  12048. ac_cv_file__usr_share_java_saxon_jar=yes
  12049. else
  12050. ac_cv_file__usr_share_java_saxon_jar=no
  12051. fi
  12052. fi
  12053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon_jar" >&5
  12054. $as_echo "$ac_cv_file__usr_share_java_saxon_jar" >&6; }
  12055. if test "x$ac_cv_file__usr_share_java_saxon_jar" = x""yes; then :
  12056. SAXON_JAR=/usr/share/java/saxon.jar
  12057. else
  12058. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /usr/share/java/saxon9.jar" >&5
  12059. $as_echo_n "checking for /usr/share/java/saxon9.jar... " >&6; }
  12060. if test "${ac_cv_file__usr_share_java_saxon9_jar+set}" = set; then :
  12061. $as_echo_n "(cached) " >&6
  12062. else
  12063. test "$cross_compiling" = yes &&
  12064. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  12065. if test -r "/usr/share/java/saxon9.jar"; then
  12066. ac_cv_file__usr_share_java_saxon9_jar=yes
  12067. else
  12068. ac_cv_file__usr_share_java_saxon9_jar=no
  12069. fi
  12070. fi
  12071. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_file__usr_share_java_saxon9_jar" >&5
  12072. $as_echo "$ac_cv_file__usr_share_java_saxon9_jar" >&6; }
  12073. if test "x$ac_cv_file__usr_share_java_saxon9_jar" = x""yes; then :
  12074. SAXON_JAR=/usr/share/java/saxon9.jar
  12075. else
  12076. as_fn_error "saxon.jar replacement not found" "$LINENO" 5
  12077. fi
  12078. fi
  12079. fi
  12080. else
  12081. as_ac_File=`$as_echo "ac_cv_file_$SAXON_JAR" | $as_tr_sh`
  12082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SAXON_JAR" >&5
  12083. $as_echo_n "checking for $SAXON_JAR... " >&6; }
  12084. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  12085. $as_echo_n "(cached) " >&6
  12086. else
  12087. test "$cross_compiling" = yes &&
  12088. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  12089. if test -r "$SAXON_JAR"; then
  12090. eval "$as_ac_File=yes"
  12091. else
  12092. eval "$as_ac_File=no"
  12093. fi
  12094. fi
  12095. eval ac_res=\$$as_ac_File
  12096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12097. $as_echo "$ac_res" >&6; }
  12098. eval as_val=\$$as_ac_File
  12099. if test "x$as_val" = x""yes; then :
  12100. else
  12101. as_fn_error "saxon.jar replacement not found." "$LINENO" 5
  12102. fi
  12103. fi
  12104. if test -n "$SERIALIZER_JAR"; then
  12105. as_ac_File=`$as_echo "ac_cv_file_$SERIALIZER_JAR" | $as_tr_sh`
  12106. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $SERIALIZER_JAR" >&5
  12107. $as_echo_n "checking for $SERIALIZER_JAR... " >&6; }
  12108. if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
  12109. $as_echo_n "(cached) " >&6
  12110. else
  12111. test "$cross_compiling" = yes &&
  12112. as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
  12113. if test -r "$SERIALIZER_JAR"; then
  12114. eval "$as_ac_File=yes"
  12115. else
  12116. eval "$as_ac_File=no"
  12117. fi
  12118. fi
  12119. eval ac_res=\$$as_ac_File
  12120. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  12121. $as_echo "$ac_res" >&6; }
  12122. eval as_val=\$$as_ac_File
  12123. if test "x$as_val" = x""yes; then :
  12124. else
  12125. as_fn_error "serializer.jar not found." "$LINENO" 5
  12126. fi
  12127. fi
  12128. else
  12129. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12130. $as_echo "internal" >&6; }
  12131. SYSTEM_SAXON=NO
  12132. NEED_SAXON=TRUE
  12133. fi
  12134. if test -n "$NEED_SAXON"; then
  12135. BUILD_TYPE="$BUILD_TYPE SAXON"
  12136. fi
  12137. if test "$_os" = "Darwin" && test "$with_system_curl" != "no"; then
  12138. with_system_curl=yes
  12139. fi
  12140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which curl to use" >&5
  12141. $as_echo_n "checking which curl to use... " >&6; }
  12142. if test -n "$with_system_curl" -o -n "$with_system_libs" && \
  12143. test "$with_system_curl" != "no"; then
  12144. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12145. $as_echo "external" >&6; }
  12146. SYSTEM_CURL=YES
  12147. # Extract the first word of "curl-config", so it can be a program name with args.
  12148. set dummy curl-config; ac_word=$2
  12149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12150. $as_echo_n "checking for $ac_word... " >&6; }
  12151. if test "${ac_cv_path_CURLCONFIG+set}" = set; then :
  12152. $as_echo_n "(cached) " >&6
  12153. else
  12154. case $CURLCONFIG in
  12155. [\\/]* | ?:[\\/]*)
  12156. ac_cv_path_CURLCONFIG="$CURLCONFIG" # Let the user override the test with a path.
  12157. ;;
  12158. *)
  12159. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12160. for as_dir in $PATH
  12161. do
  12162. IFS=$as_save_IFS
  12163. test -z "$as_dir" && as_dir=.
  12164. for ac_exec_ext in '' $ac_executable_extensions; do
  12165. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12166. ac_cv_path_CURLCONFIG="$as_dir/$ac_word$ac_exec_ext"
  12167. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12168. break 2
  12169. fi
  12170. done
  12171. done
  12172. IFS=$as_save_IFS
  12173. ;;
  12174. esac
  12175. fi
  12176. CURLCONFIG=$ac_cv_path_CURLCONFIG
  12177. if test -n "$CURLCONFIG"; then
  12178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CURLCONFIG" >&5
  12179. $as_echo "$CURLCONFIG" >&6; }
  12180. else
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12182. $as_echo "no" >&6; }
  12183. fi
  12184. if test -z "$CURLCONFIG"; then
  12185. as_fn_error "install curl to run this script" "$LINENO" 5
  12186. fi
  12187. # check curl version
  12188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether curl is >= 7.13.1" >&5
  12189. $as_echo_n "checking whether curl is >= 7.13.1... " >&6; }
  12190. if test "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $1 }'`" -gt "7" -a \
  12191. "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $2 }'`" -gt "13" -a \
  12192. "`$CURLCONFIG --version | $AWK -F' ' '{print $2}' | $AWK -F. '{ print $3 }'`" -gt "1"; then
  12193. as_fn_error "no, you need at least curl 7.13,1" "$LINENO" 5
  12194. else
  12195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12196. $as_echo "yes" >&6; }
  12197. fi
  12198. CURL_LIBS=`$CURLCONFIG --libs`
  12199. CURL_CFLAGS=`$CURLCONFIG --cflags`
  12200. else
  12201. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12202. $as_echo "internal" >&6; }
  12203. SYSTEM_CURL=NO
  12204. BUILD_TYPE="$BUILD_TYPE CURL"
  12205. fi
  12206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which boost to use" >&5
  12207. $as_echo_n "checking which boost to use... " >&6; }
  12208. if test -n "$with_system_boost" -o -n "$with_system_headers" && \
  12209. test "$with_system_boost" != "no"; then
  12210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12211. $as_echo "external" >&6; }
  12212. SYSTEM_BOOST=YES
  12213. ac_ext=cpp
  12214. ac_cpp='$CXXCPP $CPPFLAGS'
  12215. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12216. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12217. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12218. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/shared_ptr.hpp" "ac_cv_header_boost_shared_ptr_hpp" "$ac_includes_default"
  12219. if test "x$ac_cv_header_boost_shared_ptr_hpp" = x""yes; then :
  12220. else
  12221. as_fn_error "boost/shared_ptr.hpp not found. install boost" "$LINENO" 5
  12222. fi
  12223. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/spirit/include/classic_core.hpp" "ac_cv_header_boost_spirit_include_classic_core_hpp" "$ac_includes_default"
  12224. if test "x$ac_cv_header_boost_spirit_include_classic_core_hpp" = x""yes; then :
  12225. else
  12226. as_fn_error "boost/spirit/include/classic_core.hpp not found. install boost >= 1.38" "$LINENO" 5
  12227. fi
  12228. ac_fn_cxx_check_header_mongrel "$LINENO" "boost/function.hpp" "ac_cv_header_boost_function_hpp" "$ac_includes_default"
  12229. if test "x$ac_cv_header_boost_function_hpp" = x""yes; then :
  12230. else
  12231. as_fn_error "boost/function.hpp not found. install boost" "$LINENO" 5
  12232. fi
  12233. save_CXXFLAGS=$CXXFLAGS
  12234. CXXFLAGS="$CXXFLAGS -fno-exceptions"
  12235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether boost/function.hpp compiles with -fno-exceptions" >&5
  12236. $as_echo_n "checking whether boost/function.hpp compiles with -fno-exceptions... " >&6; }
  12237. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12238. /* end confdefs.h. */
  12239. #include <boost/function.hpp>
  12240. int
  12241. main ()
  12242. {
  12243. ;
  12244. return 0;
  12245. }
  12246. _ACEOF
  12247. if ac_fn_cxx_try_compile "$LINENO"; then :
  12248. ac_cv_cxx_boost_no_exceptons_broken=no
  12249. else
  12250. ac_cv_cxx_boost_no_exceptons_broken=yes
  12251. fi
  12252. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  12253. if test "$ac_cv_cxx_boost_no_exceptons_broken" = "yes"; then
  12254. as_fn_error "no, see https://bugzilla.redhat.com/show_bug.cgi?id=477131" "$LINENO" 5
  12255. else
  12256. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12257. $as_echo "yes" >&6; }
  12258. fi
  12259. CXXFLAGS=$save_CXXFLAGS
  12260. ac_ext=c
  12261. ac_cpp='$CPP $CPPFLAGS'
  12262. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12263. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12264. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12265. else
  12266. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12267. $as_echo "internal" >&6; }
  12268. BUILD_TYPE="$BUILD_TYPE BOOST"
  12269. SYSTEM_BOOST=NO
  12270. fi
  12271. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which vigra to use" >&5
  12272. $as_echo_n "checking which vigra to use... " >&6; }
  12273. if test -n "$with_system_vigra" -o -n "$with_system_headers" && \
  12274. test "$with_system_vigra" != "no"; then
  12275. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12276. $as_echo "external" >&6; }
  12277. SYSTEM_VIGRA=YES
  12278. ac_ext=cpp
  12279. ac_cpp='$CXXCPP $CPPFLAGS'
  12280. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12281. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12282. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  12283. ac_fn_cxx_check_header_mongrel "$LINENO" "vigra/copyimage.hxx" "ac_cv_header_vigra_copyimage_hxx" "$ac_includes_default"
  12284. if test "x$ac_cv_header_vigra_copyimage_hxx" = x""yes; then :
  12285. else
  12286. as_fn_error "vigra/copyimage.hxx not found. install vigra" "$LINENO" 5
  12287. fi
  12288. ac_ext=c
  12289. ac_cpp='$CPP $CPPFLAGS'
  12290. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  12291. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  12292. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  12293. else
  12294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12295. $as_echo "internal" >&6; }
  12296. BUILD_TYPE="$BUILD_TYPE VIGRA"
  12297. SYSTEM_VIGRA=NO
  12298. fi
  12299. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which odbc headers to use" >&5
  12300. $as_echo_n "checking which odbc headers to use... " >&6; }
  12301. if test -n "$with_system_odbc_headers" -o -n "$with_system_headers" && \
  12302. test "$with_system_odbc_headers" != "no"; then
  12303. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12304. $as_echo "external" >&6; }
  12305. SYSTEM_ODBC_HEADERS=YES
  12306. ac_fn_c_check_header_mongrel "$LINENO" "sqlext.h" "ac_cv_header_sqlext_h" "$ac_includes_default"
  12307. if test "x$ac_cv_header_sqlext_h" = x""yes; then :
  12308. else
  12309. as_fn_error "odbc not found. install odbc" "$LINENO" 5
  12310. fi
  12311. else
  12312. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  12313. $as_echo "internal" >&6; }
  12314. SYSTEM_ODBC_HEADERS=NO
  12315. BUILD_TYPE="$BUILD_TYPE UNIXODBC"
  12316. fi
  12317. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build of Mozilla/Mozilla NSS-using components" >&5
  12318. $as_echo_n "checking whether to enable build of Mozilla/Mozilla NSS-using components... " >&6; }
  12319. if test "$enable_mozilla" = "no"; then
  12320. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12321. $as_echo "no" >&6; }
  12322. WITH_MOZILLA=NO
  12323. ENABLE_NSS_MODULE=NO
  12324. else
  12325. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12326. $as_echo "yes" >&6; }
  12327. WITH_MOZILLA=YES
  12328. fi
  12329. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Mozilla addressbook connectivity" >&5
  12330. $as_echo_n "checking whether to build Mozilla addressbook connectivity... " >&6; }
  12331. if test "$enable_mozilla" = "no"; then
  12332. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12333. $as_echo "no" >&6; }
  12334. elif test "$with_system_mozilla" = "yes"; then
  12335. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, not possible with system-mozilla" >&5
  12336. $as_echo "no, not possible with system-mozilla" >&6; }
  12337. else
  12338. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12339. $as_echo "yes" >&6; }
  12340. fi
  12341. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build XML Security support" >&5
  12342. $as_echo_n "checking whether to build XML Security support... " >&6; }
  12343. if test "$enable_mozilla" = "no"; then
  12344. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, since Mozilla (NSS) disabled but needed" >&5
  12345. $as_echo "no, since Mozilla (NSS) disabled but needed" >&6; }
  12346. else
  12347. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12348. $as_echo "yes" >&6; }
  12349. fi
  12350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build LDAP configuration backend" >&5
  12351. $as_echo_n "checking whether to build LDAP configuration backend... " >&6; }
  12352. if test -z "$enable_ldap" || test "$enable_ldap" = "yes"; then
  12353. if test "$enable_mozilla" = "yes" || test "$with_openldap" = "yes"; then
  12354. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12355. $as_echo "yes" >&6; }
  12356. WITH_LDAP=YES
  12357. else
  12358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no. Either Mozilla or OpenLDAP needed" >&5
  12359. $as_echo "no. Either Mozilla or OpenLDAP needed" >&6; }
  12360. WITH_LDAP=NO
  12361. fi
  12362. else
  12363. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12364. $as_echo "no" >&6; }
  12365. WITH_LDAP=NO
  12366. fi
  12367. if test "$WITH_LDAP" = "YES"; then
  12368. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which LDAP SDK to use" >&5
  12369. $as_echo_n "checking which LDAP SDK to use... " >&6; }
  12370. if test -n "$with_openldap" && test "$with_openldap" != "no"; then
  12371. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenLDAP" >&5
  12372. $as_echo "OpenLDAP" >&6; }
  12373. WITH_OPENLDAP=YES
  12374. for ac_header in ldap.h
  12375. do :
  12376. ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
  12377. if test "x$ac_cv_header_ldap_h" = x""yes; then :
  12378. cat >>confdefs.h <<_ACEOF
  12379. #define HAVE_LDAP_H 1
  12380. _ACEOF
  12381. else
  12382. as_fn_error "ldap.h not found. install openldap libs" "$LINENO" 5
  12383. fi
  12384. done
  12385. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_simple_bind_s in -lldap" >&5
  12386. $as_echo_n "checking for ldap_simple_bind_s in -lldap... " >&6; }
  12387. if test "${ac_cv_lib_ldap_ldap_simple_bind_s+set}" = set; then :
  12388. $as_echo_n "(cached) " >&6
  12389. else
  12390. ac_check_lib_save_LIBS=$LIBS
  12391. LIBS="-lldap $LIBS"
  12392. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12393. /* end confdefs.h. */
  12394. /* Override any GCC internal prototype to avoid an error.
  12395. Use char because int might match the return type of a GCC
  12396. builtin and then its argument prototype would still apply. */
  12397. #ifdef __cplusplus
  12398. extern "C"
  12399. #endif
  12400. char ldap_simple_bind_s ();
  12401. int
  12402. main ()
  12403. {
  12404. return ldap_simple_bind_s ();
  12405. ;
  12406. return 0;
  12407. }
  12408. _ACEOF
  12409. if ac_fn_c_try_link "$LINENO"; then :
  12410. ac_cv_lib_ldap_ldap_simple_bind_s=yes
  12411. else
  12412. ac_cv_lib_ldap_ldap_simple_bind_s=no
  12413. fi
  12414. rm -f core conftest.err conftest.$ac_objext \
  12415. conftest$ac_exeext conftest.$ac_ext
  12416. LIBS=$ac_check_lib_save_LIBS
  12417. fi
  12418. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_simple_bind_s" >&5
  12419. $as_echo "$ac_cv_lib_ldap_ldap_simple_bind_s" >&6; }
  12420. if test "x$ac_cv_lib_ldap_ldap_simple_bind_s" = x""yes; then :
  12421. cat >>confdefs.h <<_ACEOF
  12422. #define HAVE_LIBLDAP 1
  12423. _ACEOF
  12424. LIBS="-lldap $LIBS"
  12425. else
  12426. as_fn_error "openldap lib not found or functional" "$LINENO" 5
  12427. fi
  12428. # rumours say that OpenLDAP doesn't have that function. I looked and
  12429. # it has it. Test for it to be sure
  12430. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_set_option in -lldap" >&5
  12431. $as_echo_n "checking for ldap_set_option in -lldap... " >&6; }
  12432. if test "${ac_cv_lib_ldap_ldap_set_option+set}" = set; then :
  12433. $as_echo_n "(cached) " >&6
  12434. else
  12435. ac_check_lib_save_LIBS=$LIBS
  12436. LIBS="-lldap $LIBS"
  12437. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12438. /* end confdefs.h. */
  12439. /* Override any GCC internal prototype to avoid an error.
  12440. Use char because int might match the return type of a GCC
  12441. builtin and then its argument prototype would still apply. */
  12442. #ifdef __cplusplus
  12443. extern "C"
  12444. #endif
  12445. char ldap_set_option ();
  12446. int
  12447. main ()
  12448. {
  12449. return ldap_set_option ();
  12450. ;
  12451. return 0;
  12452. }
  12453. _ACEOF
  12454. if ac_fn_c_try_link "$LINENO"; then :
  12455. ac_cv_lib_ldap_ldap_set_option=yes
  12456. else
  12457. ac_cv_lib_ldap_ldap_set_option=no
  12458. fi
  12459. rm -f core conftest.err conftest.$ac_objext \
  12460. conftest$ac_exeext conftest.$ac_ext
  12461. LIBS=$ac_check_lib_save_LIBS
  12462. fi
  12463. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_set_option" >&5
  12464. $as_echo "$ac_cv_lib_ldap_ldap_set_option" >&6; }
  12465. if test "x$ac_cv_lib_ldap_ldap_set_option" = x""yes; then :
  12466. cat >>confdefs.h <<_ACEOF
  12467. #define HAVE_LIBLDAP 1
  12468. _ACEOF
  12469. LIBS="-lldap $LIBS"
  12470. else
  12471. as_fn_error "openldap lib not found or functional" "$LINENO" 5
  12472. fi
  12473. else
  12474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: Netscape/Mozilla" >&5
  12475. $as_echo "Netscape/Mozilla" >&6; }
  12476. # TODO. Actually do a sanity check and check for
  12477. # LDAP_OPT_SIZELIMIT and LDAP_X_OPT_CONNECT_TIMEOUT
  12478. WITH_OPENLDAP=NO
  12479. fi
  12480. fi
  12481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mozilla to use" >&5
  12482. $as_echo_n "checking which mozilla to use... " >&6; }
  12483. if test -n "$with_system_mozilla" && test "$with_system_mozilla" != "no"; then
  12484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  12485. $as_echo "external" >&6; }
  12486. SYSTEM_MOZILLA=YES
  12487. ENABLE_NSS_MODULE=NO
  12488. enable_nss_module=no
  12489. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which Mozilla flavour to use" >&5
  12490. $as_echo_n "checking which Mozilla flavour to use... " >&6; }
  12491. if test -n "$with_system_mozilla" && test "$with_system_mozilla" = "libxul"; then
  12492. MOZ_FLAVOUR=libxul
  12493. elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "xulrunner"; then
  12494. MOZ_FLAVOUR=xulrunner
  12495. elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "seamonkey"; then
  12496. MOZ_FLAVOUR=seamonkey
  12497. elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "firefox"; then
  12498. MOZ_FLAVOUR=firefox
  12499. elif test -n "$with_system_mozilla" && test "$with_system_mozilla" = "mozilla"; then
  12500. MOZ_FLAVOUR=mozilla
  12501. else
  12502. MOZ_FLAVOUR=libxul
  12503. fi
  12504. tmp=`echo $MOZ_FLAVOUR | $PERL -e 'print ucfirst(<STDIN>);'`
  12505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $tmp" >&5
  12506. $as_echo "$tmp" >&6; }
  12507. succeeded=no
  12508. if test -z "$PKG_CONFIG"; then
  12509. # Extract the first word of "pkg-config", so it can be a program name with args.
  12510. set dummy pkg-config; ac_word=$2
  12511. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12512. $as_echo_n "checking for $ac_word... " >&6; }
  12513. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12514. $as_echo_n "(cached) " >&6
  12515. else
  12516. case $PKG_CONFIG in
  12517. [\\/]* | ?:[\\/]*)
  12518. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12519. ;;
  12520. *)
  12521. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12522. for as_dir in $PATH
  12523. do
  12524. IFS=$as_save_IFS
  12525. test -z "$as_dir" && as_dir=.
  12526. for ac_exec_ext in '' $ac_executable_extensions; do
  12527. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12528. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12529. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12530. break 2
  12531. fi
  12532. done
  12533. done
  12534. IFS=$as_save_IFS
  12535. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12536. ;;
  12537. esac
  12538. fi
  12539. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12540. if test -n "$PKG_CONFIG"; then
  12541. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12542. $as_echo "$PKG_CONFIG" >&6; }
  12543. else
  12544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12545. $as_echo "no" >&6; }
  12546. fi
  12547. fi
  12548. if test "$PKG_CONFIG" = "no" ; then
  12549. echo "*** The pkg-config script could not be found. Make sure it is"
  12550. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12551. echo "*** to the full path to pkg-config."
  12552. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12553. else
  12554. PKG_CONFIG_MIN_VERSION=0.9.0
  12555. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nss" >&5
  12557. $as_echo_n "checking for nss... " >&6; }
  12558. if $PKG_CONFIG --exists "nss" ; then
  12559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12560. $as_echo "yes" >&6; }
  12561. succeeded=yes
  12562. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSS_CFLAGS" >&5
  12563. $as_echo_n "checking MOZ_NSS_CFLAGS... " >&6; }
  12564. MOZ_NSS_CFLAGS=`$PKG_CONFIG --cflags "nss"`
  12565. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSS_CFLAGS" >&5
  12566. $as_echo "$MOZ_NSS_CFLAGS" >&6; }
  12567. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSS_LIBS" >&5
  12568. $as_echo_n "checking MOZ_NSS_LIBS... " >&6; }
  12569. MOZ_NSS_LIBS=`$PKG_CONFIG --libs "nss"`
  12570. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSS_LIBS" >&5
  12571. $as_echo "$MOZ_NSS_LIBS" >&6; }
  12572. else
  12573. MOZ_NSS_CFLAGS=""
  12574. MOZ_NSS_LIBS=""
  12575. ## If we have a custom action on failure, don't print errors, but
  12576. ## do set a variable so people can do so.
  12577. MOZ_NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nss"`
  12578. fi
  12579. else
  12580. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12581. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12582. fi
  12583. fi
  12584. if test $succeeded = yes; then
  12585. STANDALONENSS="TRUE"
  12586. else
  12587. STANDALONENSS=""
  12588. fi
  12589. if test -z "$STANDALONENSS"; then
  12590. succeeded=no
  12591. if test -z "$PKG_CONFIG"; then
  12592. # Extract the first word of "pkg-config", so it can be a program name with args.
  12593. set dummy pkg-config; ac_word=$2
  12594. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12595. $as_echo_n "checking for $ac_word... " >&6; }
  12596. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12597. $as_echo_n "(cached) " >&6
  12598. else
  12599. case $PKG_CONFIG in
  12600. [\\/]* | ?:[\\/]*)
  12601. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12602. ;;
  12603. *)
  12604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12605. for as_dir in $PATH
  12606. do
  12607. IFS=$as_save_IFS
  12608. test -z "$as_dir" && as_dir=.
  12609. for ac_exec_ext in '' $ac_executable_extensions; do
  12610. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12611. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12612. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12613. break 2
  12614. fi
  12615. done
  12616. done
  12617. IFS=$as_save_IFS
  12618. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12619. ;;
  12620. esac
  12621. fi
  12622. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12623. if test -n "$PKG_CONFIG"; then
  12624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12625. $as_echo "$PKG_CONFIG" >&6; }
  12626. else
  12627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12628. $as_echo "no" >&6; }
  12629. fi
  12630. fi
  12631. if test "$PKG_CONFIG" = "no" ; then
  12632. echo "*** The pkg-config script could not be found. Make sure it is"
  12633. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12634. echo "*** to the full path to pkg-config."
  12635. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12636. else
  12637. PKG_CONFIG_MIN_VERSION=0.9.0
  12638. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MOZ_FLAVOUR-nss " >&5
  12640. $as_echo_n "checking for $MOZ_FLAVOUR-nss ... " >&6; }
  12641. if $PKG_CONFIG --exists "$MOZ_FLAVOUR-nss " ; then
  12642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12643. $as_echo "yes" >&6; }
  12644. succeeded=yes
  12645. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSS_CFLAGS" >&5
  12646. $as_echo_n "checking MOZ_NSS_CFLAGS... " >&6; }
  12647. MOZ_NSS_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-nss "`
  12648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSS_CFLAGS" >&5
  12649. $as_echo "$MOZ_NSS_CFLAGS" >&6; }
  12650. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSS_LIBS" >&5
  12651. $as_echo_n "checking MOZ_NSS_LIBS... " >&6; }
  12652. MOZ_NSS_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-nss "`
  12653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSS_LIBS" >&5
  12654. $as_echo "$MOZ_NSS_LIBS" >&6; }
  12655. else
  12656. MOZ_NSS_CFLAGS=""
  12657. MOZ_NSS_LIBS=""
  12658. ## If we have a custom action on failure, don't print errors, but
  12659. ## do set a variable so people can do so.
  12660. MOZ_NSS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-nss "`
  12661. echo $MOZ_NSS_PKG_ERRORS
  12662. fi
  12663. else
  12664. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12665. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12666. fi
  12667. fi
  12668. if test $succeeded = yes; then
  12669. :
  12670. else
  12671. as_fn_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." "$LINENO" 5
  12672. fi
  12673. else
  12674. NSS_LIB="-L`$PKG_CONFIG --variable=libdir nss`"
  12675. fi
  12676. if $PKG_CONFIG --exists nspr ; then
  12677. succeeded=no
  12678. if test -z "$PKG_CONFIG"; then
  12679. # Extract the first word of "pkg-config", so it can be a program name with args.
  12680. set dummy pkg-config; ac_word=$2
  12681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12682. $as_echo_n "checking for $ac_word... " >&6; }
  12683. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12684. $as_echo_n "(cached) " >&6
  12685. else
  12686. case $PKG_CONFIG in
  12687. [\\/]* | ?:[\\/]*)
  12688. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12689. ;;
  12690. *)
  12691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12692. for as_dir in $PATH
  12693. do
  12694. IFS=$as_save_IFS
  12695. test -z "$as_dir" && as_dir=.
  12696. for ac_exec_ext in '' $ac_executable_extensions; do
  12697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12698. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12700. break 2
  12701. fi
  12702. done
  12703. done
  12704. IFS=$as_save_IFS
  12705. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12706. ;;
  12707. esac
  12708. fi
  12709. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12710. if test -n "$PKG_CONFIG"; then
  12711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12712. $as_echo "$PKG_CONFIG" >&6; }
  12713. else
  12714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12715. $as_echo "no" >&6; }
  12716. fi
  12717. fi
  12718. if test "$PKG_CONFIG" = "no" ; then
  12719. echo "*** The pkg-config script could not be found. Make sure it is"
  12720. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12721. echo "*** to the full path to pkg-config."
  12722. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12723. else
  12724. PKG_CONFIG_MIN_VERSION=0.9.0
  12725. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nspr " >&5
  12727. $as_echo_n "checking for nspr ... " >&6; }
  12728. if $PKG_CONFIG --exists "nspr " ; then
  12729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12730. $as_echo "yes" >&6; }
  12731. succeeded=yes
  12732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSPR_CFLAGS" >&5
  12733. $as_echo_n "checking MOZ_NSPR_CFLAGS... " >&6; }
  12734. MOZ_NSPR_CFLAGS=`$PKG_CONFIG --cflags "nspr "`
  12735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSPR_CFLAGS" >&5
  12736. $as_echo "$MOZ_NSPR_CFLAGS" >&6; }
  12737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSPR_LIBS" >&5
  12738. $as_echo_n "checking MOZ_NSPR_LIBS... " >&6; }
  12739. MOZ_NSPR_LIBS=`$PKG_CONFIG --libs "nspr "`
  12740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSPR_LIBS" >&5
  12741. $as_echo "$MOZ_NSPR_LIBS" >&6; }
  12742. else
  12743. MOZ_NSPR_CFLAGS=""
  12744. MOZ_NSPR_LIBS=""
  12745. ## If we have a custom action on failure, don't print errors, but
  12746. ## do set a variable so people can do so.
  12747. MOZ_NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "nspr "`
  12748. echo $MOZ_NSPR_PKG_ERRORS
  12749. fi
  12750. else
  12751. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12752. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12753. fi
  12754. fi
  12755. if test $succeeded = yes; then
  12756. :
  12757. else
  12758. as_fn_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." "$LINENO" 5
  12759. fi
  12760. NSPR_LIB="-L`$PKG_CONFIG --variable=libdir nspr`"
  12761. else
  12762. succeeded=no
  12763. if test -z "$PKG_CONFIG"; then
  12764. # Extract the first word of "pkg-config", so it can be a program name with args.
  12765. set dummy pkg-config; ac_word=$2
  12766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12767. $as_echo_n "checking for $ac_word... " >&6; }
  12768. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12769. $as_echo_n "(cached) " >&6
  12770. else
  12771. case $PKG_CONFIG in
  12772. [\\/]* | ?:[\\/]*)
  12773. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12774. ;;
  12775. *)
  12776. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12777. for as_dir in $PATH
  12778. do
  12779. IFS=$as_save_IFS
  12780. test -z "$as_dir" && as_dir=.
  12781. for ac_exec_ext in '' $ac_executable_extensions; do
  12782. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12783. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12784. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12785. break 2
  12786. fi
  12787. done
  12788. done
  12789. IFS=$as_save_IFS
  12790. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12791. ;;
  12792. esac
  12793. fi
  12794. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12795. if test -n "$PKG_CONFIG"; then
  12796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12797. $as_echo "$PKG_CONFIG" >&6; }
  12798. else
  12799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12800. $as_echo "no" >&6; }
  12801. fi
  12802. fi
  12803. if test "$PKG_CONFIG" = "no" ; then
  12804. echo "*** The pkg-config script could not be found. Make sure it is"
  12805. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12806. echo "*** to the full path to pkg-config."
  12807. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12808. else
  12809. PKG_CONFIG_MIN_VERSION=0.9.0
  12810. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MOZ_FLAVOUR-nspr " >&5
  12812. $as_echo_n "checking for $MOZ_FLAVOUR-nspr ... " >&6; }
  12813. if $PKG_CONFIG --exists "$MOZ_FLAVOUR-nspr " ; then
  12814. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12815. $as_echo "yes" >&6; }
  12816. succeeded=yes
  12817. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSPR_CFLAGS" >&5
  12818. $as_echo_n "checking MOZ_NSPR_CFLAGS... " >&6; }
  12819. MOZ_NSPR_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-nspr "`
  12820. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSPR_CFLAGS" >&5
  12821. $as_echo "$MOZ_NSPR_CFLAGS" >&6; }
  12822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZ_NSPR_LIBS" >&5
  12823. $as_echo_n "checking MOZ_NSPR_LIBS... " >&6; }
  12824. MOZ_NSPR_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-nspr "`
  12825. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZ_NSPR_LIBS" >&5
  12826. $as_echo "$MOZ_NSPR_LIBS" >&6; }
  12827. else
  12828. MOZ_NSPR_CFLAGS=""
  12829. MOZ_NSPR_LIBS=""
  12830. ## If we have a custom action on failure, don't print errors, but
  12831. ## do set a variable so people can do so.
  12832. MOZ_NSPR_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-nspr "`
  12833. echo $MOZ_NSPR_PKG_ERRORS
  12834. fi
  12835. else
  12836. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12837. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12838. fi
  12839. fi
  12840. if test $succeeded = yes; then
  12841. :
  12842. else
  12843. as_fn_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." "$LINENO" 5
  12844. fi
  12845. fi
  12846. if test "$MOZ_FLAVOUR" != "libxul"; then
  12847. succeeded=no
  12848. if test -z "$PKG_CONFIG"; then
  12849. # Extract the first word of "pkg-config", so it can be a program name with args.
  12850. set dummy pkg-config; ac_word=$2
  12851. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12852. $as_echo_n "checking for $ac_word... " >&6; }
  12853. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12854. $as_echo_n "(cached) " >&6
  12855. else
  12856. case $PKG_CONFIG in
  12857. [\\/]* | ?:[\\/]*)
  12858. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12859. ;;
  12860. *)
  12861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12862. for as_dir in $PATH
  12863. do
  12864. IFS=$as_save_IFS
  12865. test -z "$as_dir" && as_dir=.
  12866. for ac_exec_ext in '' $ac_executable_extensions; do
  12867. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12868. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12869. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12870. break 2
  12871. fi
  12872. done
  12873. done
  12874. IFS=$as_save_IFS
  12875. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12876. ;;
  12877. esac
  12878. fi
  12879. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12880. if test -n "$PKG_CONFIG"; then
  12881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12882. $as_echo "$PKG_CONFIG" >&6; }
  12883. else
  12884. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12885. $as_echo "no" >&6; }
  12886. fi
  12887. fi
  12888. if test "$PKG_CONFIG" = "no" ; then
  12889. echo "*** The pkg-config script could not be found. Make sure it is"
  12890. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12891. echo "*** to the full path to pkg-config."
  12892. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12893. else
  12894. PKG_CONFIG_MIN_VERSION=0.9.0
  12895. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12896. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MOZ_FLAVOUR-xpcom" >&5
  12897. $as_echo_n "checking for $MOZ_FLAVOUR-xpcom... " >&6; }
  12898. if $PKG_CONFIG --exists "$MOZ_FLAVOUR-xpcom" ; then
  12899. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12900. $as_echo "yes" >&6; }
  12901. succeeded=yes
  12902. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLAXPCOM_CFLAGS" >&5
  12903. $as_echo_n "checking MOZILLAXPCOM_CFLAGS... " >&6; }
  12904. MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "$MOZ_FLAVOUR-xpcom"`
  12905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLAXPCOM_CFLAGS" >&5
  12906. $as_echo "$MOZILLAXPCOM_CFLAGS" >&6; }
  12907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLAXPCOM_LIBS" >&5
  12908. $as_echo_n "checking MOZILLAXPCOM_LIBS... " >&6; }
  12909. MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "$MOZ_FLAVOUR-xpcom"`
  12910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLAXPCOM_LIBS" >&5
  12911. $as_echo "$MOZILLAXPCOM_LIBS" >&6; }
  12912. else
  12913. MOZILLAXPCOM_CFLAGS=""
  12914. MOZILLAXPCOM_LIBS=""
  12915. ## If we have a custom action on failure, don't print errors, but
  12916. ## do set a variable so people can do so.
  12917. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$MOZ_FLAVOUR-xpcom"`
  12918. fi
  12919. else
  12920. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  12921. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  12922. fi
  12923. fi
  12924. if test $succeeded = yes; then
  12925. HASXPCOM="TRUE"
  12926. else
  12927. HASXPCOM=""
  12928. fi
  12929. MOZ_INC=`$PKG_CONFIG --variable=includedir $MOZ_FLAVOUR-xpcom`
  12930. MOZ_LIB=`$PKG_CONFIG --variable=libdir $MOZ_FLAVOUR-xpcom`
  12931. fi
  12932. if test -z "$HASXPCOM"; then
  12933. succeeded=no
  12934. if test -z "$PKG_CONFIG"; then
  12935. # Extract the first word of "pkg-config", so it can be a program name with args.
  12936. set dummy pkg-config; ac_word=$2
  12937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  12938. $as_echo_n "checking for $ac_word... " >&6; }
  12939. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  12940. $as_echo_n "(cached) " >&6
  12941. else
  12942. case $PKG_CONFIG in
  12943. [\\/]* | ?:[\\/]*)
  12944. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  12945. ;;
  12946. *)
  12947. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12948. for as_dir in $PATH
  12949. do
  12950. IFS=$as_save_IFS
  12951. test -z "$as_dir" && as_dir=.
  12952. for ac_exec_ext in '' $ac_executable_extensions; do
  12953. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  12954. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  12955. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  12956. break 2
  12957. fi
  12958. done
  12959. done
  12960. IFS=$as_save_IFS
  12961. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  12962. ;;
  12963. esac
  12964. fi
  12965. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  12966. if test -n "$PKG_CONFIG"; then
  12967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  12968. $as_echo "$PKG_CONFIG" >&6; }
  12969. else
  12970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  12971. $as_echo "no" >&6; }
  12972. fi
  12973. fi
  12974. if test "$PKG_CONFIG" = "no" ; then
  12975. echo "*** The pkg-config script could not be found. Make sure it is"
  12976. echo "*** in your path, or set the PKG_CONFIG environment variable"
  12977. echo "*** to the full path to pkg-config."
  12978. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  12979. else
  12980. PKG_CONFIG_MIN_VERSION=0.9.0
  12981. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  12982. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxul " >&5
  12983. $as_echo_n "checking for libxul ... " >&6; }
  12984. if $PKG_CONFIG --exists "libxul " ; then
  12985. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  12986. $as_echo "yes" >&6; }
  12987. succeeded=yes
  12988. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLAXPCOM_CFLAGS" >&5
  12989. $as_echo_n "checking MOZILLAXPCOM_CFLAGS... " >&6; }
  12990. MOZILLAXPCOM_CFLAGS=`$PKG_CONFIG --cflags "libxul "`
  12991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLAXPCOM_CFLAGS" >&5
  12992. $as_echo "$MOZILLAXPCOM_CFLAGS" >&6; }
  12993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLAXPCOM_LIBS" >&5
  12994. $as_echo_n "checking MOZILLAXPCOM_LIBS... " >&6; }
  12995. MOZILLAXPCOM_LIBS=`$PKG_CONFIG --libs "libxul "`
  12996. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLAXPCOM_LIBS" >&5
  12997. $as_echo "$MOZILLAXPCOM_LIBS" >&6; }
  12998. else
  12999. MOZILLAXPCOM_CFLAGS=""
  13000. MOZILLAXPCOM_LIBS=""
  13001. ## If we have a custom action on failure, don't print errors, but
  13002. ## do set a variable so people can do so.
  13003. MOZILLAXPCOM_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxul "`
  13004. echo $MOZILLAXPCOM_PKG_ERRORS
  13005. fi
  13006. else
  13007. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13008. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13009. fi
  13010. fi
  13011. if test $succeeded = yes; then
  13012. :
  13013. else
  13014. as_fn_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." "$LINENO" 5
  13015. fi
  13016. MOZ_INC=`$PKG_CONFIG --variable=includedir libxul`
  13017. MOZ_LIB=`$PKG_CONFIG --variable=libdir libxul`
  13018. if ! test -e "$MOZ_LIB/libxul.so"; then
  13019. MOZ_LIB=`$PKG_CONFIG --variable=sdkdir libxul`
  13020. if test -e "$MOZ_LIB/sdk/lib/libxul.so"; then
  13021. MOZ_LIB="$MOZ_LIB/sdk/lib"
  13022. fi
  13023. fi
  13024. fi
  13025. save_CPPFLAGS="$CPPFLAGS"
  13026. save_LDFLAGS="$LDFLAGS"
  13027. save_LIBS="$LIBS"
  13028. CPPFLAGS="$CPPFLAGS $MOZ_NSS_CFLAGS"
  13029. LDFLAGS="$LDFLAGS $MOZ_NSS_LIBS"
  13030. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PK11_GetCertFromPrivateKey in -lnss3" >&5
  13031. $as_echo_n "checking for PK11_GetCertFromPrivateKey in -lnss3... " >&6; }
  13032. if test "${ac_cv_lib_nss3_PK11_GetCertFromPrivateKey+set}" = set; then :
  13033. $as_echo_n "(cached) " >&6
  13034. else
  13035. ac_check_lib_save_LIBS=$LIBS
  13036. LIBS="-lnss3 $LIBS"
  13037. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13038. /* end confdefs.h. */
  13039. /* Override any GCC internal prototype to avoid an error.
  13040. Use char because int might match the return type of a GCC
  13041. builtin and then its argument prototype would still apply. */
  13042. #ifdef __cplusplus
  13043. extern "C"
  13044. #endif
  13045. char PK11_GetCertFromPrivateKey ();
  13046. int
  13047. main ()
  13048. {
  13049. return PK11_GetCertFromPrivateKey ();
  13050. ;
  13051. return 0;
  13052. }
  13053. _ACEOF
  13054. if ac_fn_c_try_link "$LINENO"; then :
  13055. ac_cv_lib_nss3_PK11_GetCertFromPrivateKey=yes
  13056. else
  13057. ac_cv_lib_nss3_PK11_GetCertFromPrivateKey=no
  13058. fi
  13059. rm -f core conftest.err conftest.$ac_objext \
  13060. conftest$ac_exeext conftest.$ac_ext
  13061. LIBS=$ac_check_lib_save_LIBS
  13062. fi
  13063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_PK11_GetCertFromPrivateKey" >&5
  13064. $as_echo "$ac_cv_lib_nss3_PK11_GetCertFromPrivateKey" >&6; }
  13065. if test "x$ac_cv_lib_nss3_PK11_GetCertFromPrivateKey" = x""yes; then :
  13066. cat >>confdefs.h <<_ACEOF
  13067. #define HAVE_LIBNSS3 1
  13068. _ACEOF
  13069. LIBS="-lnss3 $LIBS"
  13070. else
  13071. as_fn_error "PK11_GetCertFromPrivateKey missing but needed.
  13072. See https://bugzilla.mozilla.org/show_bug.cgi?id=262274.
  13073. Fixed since nss 3.9.3 (contained by e.g. mozilla >= 1.7.5)" "$LINENO" 5
  13074. fi
  13075. LDFLAGS="$save_LDFLAGS"
  13076. CPPFLAGS="$save_CPPFLAGS"
  13077. LIBS="$save_LIBS"
  13078. MOZ_LIB_XPCOM=$MOZILLAXPCOM_LIBS
  13079. if test "$WITH_LDAP" != "NO" && test "$WITH_OPENLDAP" != "YES"; then
  13080. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $tmp was compiled with --enable-ldap" >&5
  13081. $as_echo_n "checking whether $tmp was compiled with --enable-ldap... " >&6; }
  13082. if test -d "$MOZ_INC/ldap"; then
  13083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13084. $as_echo "yes" >&6; }
  13085. MOZ_LDAP_CFLAGS="-I$MOZ_INC"
  13086. else
  13087. as_fn_error "no.
  13088. Could not find LDAP header include files in $MOZ_INC/ldap.
  13089. Please recompile $tmp with --enable-ldap or use --with-openldap." "$LINENO" 5
  13090. fi
  13091. fi
  13092. #e.g. http://fedoraproject.org/wiki/Releases/FeatureXULRunnerAPIChanges
  13093. #the plugin pkg-config etc. reverts to "mozilla-plugin" with libxul
  13094. if test "$MOZ_FLAVOUR" == "libxul"; then
  13095. MOZ_FLAVOUR="mozilla"
  13096. fi
  13097. elif test "$enable_mozilla" = "no"; then
  13098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  13099. $as_echo "none" >&6; }
  13100. WITH_MOZILLA=NO
  13101. ENABLE_NSS_MODULE=NO
  13102. enable_nss_module=no
  13103. else
  13104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  13105. $as_echo "internal" >&6; }
  13106. SYSTEM_MOZILLA=NO
  13107. BUILD_TYPE="$BUILD_TYPE MOZ"
  13108. if test -z "$with_mozilla_version"; then
  13109. MOZILLA_VERSION=
  13110. else
  13111. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which mozilla version to build" >&5
  13112. $as_echo_n "checking which mozilla version to build... " >&6; }
  13113. MOZILLA_VERSION=$with_mozilla_version
  13114. enable_build_mozilla=1
  13115. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_VERSION" >&5
  13116. $as_echo "$MOZILLA_VERSION" >&6; }
  13117. fi
  13118. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for toolkit mozilla should use" >&5
  13119. $as_echo_n "checking for toolkit mozilla should use... " >&6; }
  13120. if test -z "$with_mozilla_toolkit"; then
  13121. if test "$_os" != "WINNT" ; then
  13122. if test "$_os" = "Darwin" ; then
  13123. MOZILLA_TOOLKIT=mac
  13124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: mac" >&5
  13125. $as_echo "mac" >&6; }
  13126. else
  13127. MOZILLA_TOOLKIT=gtk2
  13128. { $as_echo "$as_me:${as_lineno-$LINENO}: result: gtk2" >&5
  13129. $as_echo "gtk2" >&6; }
  13130. fi
  13131. fi
  13132. else
  13133. MOZILLA_TOOLKIT=$with_mozilla_toolkit
  13134. enable_build_mozilla=1
  13135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_TOOLKIT" >&5
  13136. $as_echo "$MOZILLA_TOOLKIT" >&6; }
  13137. fi
  13138. #if test "$_os" = "Darwin" && test "$MOZILLA_TOOLKIT" != "gtk2"; then
  13139. # #only gtk2 toolkit supported - xlib or cocoa nees glib1 and libIDL1 - the latter is not
  13140. # #available using fink, mac (carbon) doesn't work because xcode installs conflicting headers
  13141. # AC_MSG_ERROR([Only gtk2 toolkit supported on Mac, sorry.])
  13142. #fi
  13143. # default to enabling build mozilla
  13144. if test "$enable_build_mozilla" != "no"; then
  13145. enable_build_mozilla=yes
  13146. else
  13147. enable_build_mozilla=
  13148. fi
  13149. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build Mozilla/SeaMonkey" >&5
  13150. $as_echo_n "checking whether to build Mozilla/SeaMonkey... " >&6; }
  13151. if test -n "$enable_build_mozilla"; then
  13152. BUILD_MOZAB="TRUE"
  13153. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13154. $as_echo "yes" >&6; }
  13155. else
  13156. BUILD_MOZAB=""
  13157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13158. $as_echo "no" >&6; }
  13159. fi
  13160. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build provided NSS module" >&5
  13161. $as_echo_n "checking whether to build provided NSS module... " >&6; }
  13162. if test "$enable_nss_module" != "no"; then
  13163. ENABLE_NSS_MODULE="YES"
  13164. BUILD_TYPE="$BUILD_TYPE NSS"
  13165. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13166. $as_echo "yes" >&6; }
  13167. if test "$_os" = "WINNT"; then
  13168. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Mozilla build tooling" >&5
  13169. $as_echo_n "checking for Mozilla build tooling... " >&6; }
  13170. if test -z "$MOZILLABUILD" ; then
  13171. as_fn_error "Mozilla build tooling not found.
  13172. Use the --with-mozilla-build option after installling the tools obtained
  13173. from http://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32" "$LINENO" 5
  13174. else
  13175. if test \( "$WITH_MINGWIN" = "yes" \) ; then
  13176. if test ! -d "$MOZILLABUILD" ; then
  13177. as_fn_error "Mozilla build tooling incomplete!" "$LINENO" 5
  13178. else
  13179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  13180. $as_echo "ok" >&6; }
  13181. fi
  13182. else
  13183. if test ! -d "$MOZILLABUILD/moztools" \
  13184. -o ! -d "$MOZILLABUILD/msys" ; then
  13185. as_fn_error "Mozilla build tooling incomplete!" "$LINENO" 5
  13186. else
  13187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  13188. $as_echo "ok" >&6; }
  13189. fi
  13190. fi
  13191. fi
  13192. fi
  13193. else
  13194. ENABLE_NSS_MODULE="NO"
  13195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13196. $as_echo "no" >&6; }
  13197. fi
  13198. if test "$BUILD_MOZAB" = "TRUE"; then
  13199. if test "$_os" = "WINNT"; then
  13200. if test "$WITH_MINGWIN" != "yes"; then
  13201. # compiling with MSVC. Only supported platform here is MSVS2005 at the moment.
  13202. if test "$MSVSVER" != "2005"; then
  13203. as_fn_error "Building SeaMonkey is supported with Microsoft Visual Studio .NET 2005 only." "$LINENO" 5
  13204. fi
  13205. else
  13206. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Building SeaMonkey with mingwin is not tested, and likely to break." >&5
  13207. $as_echo "$as_me: WARNING: Building SeaMonkey with mingwin is not tested, and likely to break." >&2;}
  13208. echo "Building SeaMonkey with mingwin is not tested, and likely to break." >> warn
  13209. fi
  13210. fi
  13211. if test -z "$MOZILLA_VERSION"; then
  13212. MOZILLA_VERSION=1.1.14
  13213. fi
  13214. MOZILLA_SOURCE_VERSION="seamonkey-${MOZILLA_VERSION}.source"
  13215. for e in gz bz2; do
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $MOZILLA_SOURCE_VERSION.tar.$e" >&5
  13217. $as_echo_n "checking for $MOZILLA_SOURCE_VERSION.tar.$e... " >&6; }
  13218. if test ! -e "moz/download/$MOZILLA_SOURCE_VERSION.tar.$e" && test "$HAVE_MOZILLA_TARBALL" != "y"; then
  13219. { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
  13220. $as_echo "not found" >&6; }
  13221. HAVE_MOZILLA_TARBALL=n
  13222. else
  13223. { $as_echo "$as_me:${as_lineno-$LINENO}: result: found" >&5
  13224. $as_echo "found" >&6; }
  13225. HAVE_MOZILLA_TARBALL=y
  13226. fi
  13227. done
  13228. if test "$HAVE_MOZILLA_TARBALL" != "y"; then
  13229. as_fn_error "Mozilla/SeaMonkey source archive not found.
  13230. Please copy $MOZILLA_SOURCE_VERSION.tar.bz2 or $MOZILLA_SOURCE_VERSION.tar.gz to moz/download/.
  13231. The archives can be found here:
  13232. ftp://ftp.mozilla.org/pub/mozilla.org/seamonkey/releases/$MOZILLA_VERSION/" "$LINENO" 5
  13233. fi
  13234. if test "$_os" = "WINNT"; then
  13235. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for moztools binaries" >&5
  13236. $as_echo_n "checking for moztools binaries... " >&6; }
  13237. if test ! -e "moz/download/vc8-moztools.zip" ; then
  13238. as_fn_error "The following file is missing in moz/download: vc8-moztools.zip
  13239. (from ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/historic/vc8/)" "$LINENO" 5
  13240. else
  13241. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  13242. $as_echo "ok" >&6; }
  13243. fi
  13244. elif test "$_os" = "Darwin"; then
  13245. if test "$MOZILLA_TOOLKIT" = "gtk2"; then
  13246. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether mozilla can be built..." >&5
  13247. $as_echo "$as_me: checking whether mozilla can be built..." >&6;}
  13248. succeeded=no
  13249. if test -z "$PKG_CONFIG"; then
  13250. # Extract the first word of "pkg-config", so it can be a program name with args.
  13251. set dummy pkg-config; ac_word=$2
  13252. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13253. $as_echo_n "checking for $ac_word... " >&6; }
  13254. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13255. $as_echo_n "(cached) " >&6
  13256. else
  13257. case $PKG_CONFIG in
  13258. [\\/]* | ?:[\\/]*)
  13259. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13260. ;;
  13261. *)
  13262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13263. for as_dir in $PATH
  13264. do
  13265. IFS=$as_save_IFS
  13266. test -z "$as_dir" && as_dir=.
  13267. for ac_exec_ext in '' $ac_executable_extensions; do
  13268. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13269. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13271. break 2
  13272. fi
  13273. done
  13274. done
  13275. IFS=$as_save_IFS
  13276. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13277. ;;
  13278. esac
  13279. fi
  13280. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13281. if test -n "$PKG_CONFIG"; then
  13282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13283. $as_echo "$PKG_CONFIG" >&6; }
  13284. else
  13285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13286. $as_echo "no" >&6; }
  13287. fi
  13288. fi
  13289. if test "$PKG_CONFIG" = "no" ; then
  13290. echo "*** The pkg-config script could not be found. Make sure it is"
  13291. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13292. echo "*** to the full path to pkg-config."
  13293. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13294. else
  13295. PKG_CONFIG_MIN_VERSION=0.9.0
  13296. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8" >&5
  13298. $as_echo_n "checking for gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8... " >&6; }
  13299. if $PKG_CONFIG --exists "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8" ; then
  13300. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13301. $as_echo "yes" >&6; }
  13302. succeeded=yes
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZGTK2_CFLAGS" >&5
  13304. $as_echo_n "checking MOZGTK2_CFLAGS... " >&6; }
  13305. MOZGTK2_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
  13306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZGTK2_CFLAGS" >&5
  13307. $as_echo "$MOZGTK2_CFLAGS" >&6; }
  13308. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZGTK2_LIBS" >&5
  13309. $as_echo_n "checking MOZGTK2_LIBS... " >&6; }
  13310. MOZGTK2_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
  13311. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZGTK2_LIBS" >&5
  13312. $as_echo "$MOZGTK2_LIBS" >&6; }
  13313. else
  13314. MOZGTK2_CFLAGS=""
  13315. MOZGTK2_LIBS=""
  13316. ## If we have a custom action on failure, don't print errors, but
  13317. ## do set a variable so people can do so.
  13318. MOZGTK2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.4 libIDL-2.0 >= 0.8"`
  13319. fi
  13320. else
  13321. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13322. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13323. fi
  13324. fi
  13325. if test $succeeded = yes; then
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: OK - can build mozilla" >&5
  13327. $as_echo "$as_me: OK - can build mozilla" >&6;}
  13328. else
  13329. as_fn_error "Prerequisites to build mozilla not met. Either use the precompiled mozilla binaries or install the missing packages" "$LINENO" 5
  13330. fi
  13331. else
  13332. succeeded=no
  13333. if test -z "$PKG_CONFIG"; then
  13334. # Extract the first word of "pkg-config", so it can be a program name with args.
  13335. set dummy pkg-config; ac_word=$2
  13336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13337. $as_echo_n "checking for $ac_word... " >&6; }
  13338. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13339. $as_echo_n "(cached) " >&6
  13340. else
  13341. case $PKG_CONFIG in
  13342. [\\/]* | ?:[\\/]*)
  13343. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13344. ;;
  13345. *)
  13346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13347. for as_dir in $PATH
  13348. do
  13349. IFS=$as_save_IFS
  13350. test -z "$as_dir" && as_dir=.
  13351. for ac_exec_ext in '' $ac_executable_extensions; do
  13352. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13353. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13355. break 2
  13356. fi
  13357. done
  13358. done
  13359. IFS=$as_save_IFS
  13360. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13361. ;;
  13362. esac
  13363. fi
  13364. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13365. if test -n "$PKG_CONFIG"; then
  13366. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13367. $as_echo "$PKG_CONFIG" >&6; }
  13368. else
  13369. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13370. $as_echo "no" >&6; }
  13371. fi
  13372. fi
  13373. if test "$PKG_CONFIG" = "no" ; then
  13374. echo "*** The pkg-config script could not be found. Make sure it is"
  13375. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13376. echo "*** to the full path to pkg-config."
  13377. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13378. else
  13379. PKG_CONFIG_MIN_VERSION=0.9.0
  13380. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libIDL-2.0 >= 0.6.3" >&5
  13382. $as_echo_n "checking for libIDL-2.0 >= 0.6.3... " >&6; }
  13383. if $PKG_CONFIG --exists "libIDL-2.0 >= 0.6.3" ; then
  13384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13385. $as_echo "yes" >&6; }
  13386. succeeded=yes
  13387. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_CFLAGS" >&5
  13388. $as_echo_n "checking MOZLIBREQ_CFLAGS... " >&6; }
  13389. MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.6.3"`
  13390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_CFLAGS" >&5
  13391. $as_echo "$MOZLIBREQ_CFLAGS" >&6; }
  13392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_LIBS" >&5
  13393. $as_echo_n "checking MOZLIBREQ_LIBS... " >&6; }
  13394. MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.6.3"`
  13395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_LIBS" >&5
  13396. $as_echo "$MOZLIBREQ_LIBS" >&6; }
  13397. else
  13398. MOZLIBREQ_CFLAGS=""
  13399. MOZLIBREQ_LIBS=""
  13400. ## If we have a custom action on failure, don't print errors, but
  13401. ## do set a variable so people can do so.
  13402. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libIDL-2.0 >= 0.6.3"`
  13403. fi
  13404. else
  13405. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13406. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13407. fi
  13408. fi
  13409. if test $succeeded = yes; then
  13410. MOZIDL="TRUE"
  13411. else
  13412. MOZIDL=""
  13413. fi
  13414. if test -z "$MOZIDL"; then
  13415. as_fn_error "libIDL 0.6.3 or newer is needed to build mozilla with mac toolkit." "$LINENO" 5
  13416. fi
  13417. fi
  13418. else
  13419. # Generic Unix/Linux section
  13420. if test "$MOZILLA_TOOLKIT" = "gtk2"; then
  13421. succeeded=no
  13422. if test -z "$PKG_CONFIG"; then
  13423. # Extract the first word of "pkg-config", so it can be a program name with args.
  13424. set dummy pkg-config; ac_word=$2
  13425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13426. $as_echo_n "checking for $ac_word... " >&6; }
  13427. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13428. $as_echo_n "(cached) " >&6
  13429. else
  13430. case $PKG_CONFIG in
  13431. [\\/]* | ?:[\\/]*)
  13432. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13433. ;;
  13434. *)
  13435. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13436. for as_dir in $PATH
  13437. do
  13438. IFS=$as_save_IFS
  13439. test -z "$as_dir" && as_dir=.
  13440. for ac_exec_ext in '' $ac_executable_extensions; do
  13441. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13442. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13443. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13444. break 2
  13445. fi
  13446. done
  13447. done
  13448. IFS=$as_save_IFS
  13449. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13450. ;;
  13451. esac
  13452. fi
  13453. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13454. if test -n "$PKG_CONFIG"; then
  13455. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13456. $as_echo "$PKG_CONFIG" >&6; }
  13457. else
  13458. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13459. $as_echo "no" >&6; }
  13460. fi
  13461. fi
  13462. if test "$PKG_CONFIG" = "no" ; then
  13463. echo "*** The pkg-config script could not be found. Make sure it is"
  13464. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13465. echo "*** to the full path to pkg-config."
  13466. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13467. else
  13468. PKG_CONFIG_MIN_VERSION=0.9.0
  13469. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13470. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0" >&5
  13471. $as_echo_n "checking for gtk+-2.0... " >&6; }
  13472. if $PKG_CONFIG --exists "gtk+-2.0" ; then
  13473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13474. $as_echo "yes" >&6; }
  13475. succeeded=yes
  13476. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_CFLAGS" >&5
  13477. $as_echo_n "checking MOZLIBREQ_CFLAGS... " >&6; }
  13478. MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0"`
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_CFLAGS" >&5
  13480. $as_echo "$MOZLIBREQ_CFLAGS" >&6; }
  13481. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_LIBS" >&5
  13482. $as_echo_n "checking MOZLIBREQ_LIBS... " >&6; }
  13483. MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+-2.0"`
  13484. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_LIBS" >&5
  13485. $as_echo "$MOZLIBREQ_LIBS" >&6; }
  13486. else
  13487. MOZLIBREQ_CFLAGS=""
  13488. MOZLIBREQ_LIBS=""
  13489. ## If we have a custom action on failure, don't print errors, but
  13490. ## do set a variable so people can do so.
  13491. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0"`
  13492. fi
  13493. else
  13494. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13495. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13496. fi
  13497. fi
  13498. if test $succeeded = yes; then
  13499. MOZGTK="TRUE"
  13500. else
  13501. MOZGTK=""
  13502. fi
  13503. if test -z "$MOZGTK"; then
  13504. as_fn_error "GTK2 is needed to build mozilla." "$LINENO" 5
  13505. fi
  13506. succeeded=no
  13507. if test -z "$PKG_CONFIG"; then
  13508. # Extract the first word of "pkg-config", so it can be a program name with args.
  13509. set dummy pkg-config; ac_word=$2
  13510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13511. $as_echo_n "checking for $ac_word... " >&6; }
  13512. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13513. $as_echo_n "(cached) " >&6
  13514. else
  13515. case $PKG_CONFIG in
  13516. [\\/]* | ?:[\\/]*)
  13517. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13518. ;;
  13519. *)
  13520. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13521. for as_dir in $PATH
  13522. do
  13523. IFS=$as_save_IFS
  13524. test -z "$as_dir" && as_dir=.
  13525. for ac_exec_ext in '' $ac_executable_extensions; do
  13526. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13527. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13528. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13529. break 2
  13530. fi
  13531. done
  13532. done
  13533. IFS=$as_save_IFS
  13534. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13535. ;;
  13536. esac
  13537. fi
  13538. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13539. if test -n "$PKG_CONFIG"; then
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13541. $as_echo "$PKG_CONFIG" >&6; }
  13542. else
  13543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13544. $as_echo "no" >&6; }
  13545. fi
  13546. fi
  13547. if test "$PKG_CONFIG" = "no" ; then
  13548. echo "*** The pkg-config script could not be found. Make sure it is"
  13549. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13550. echo "*** to the full path to pkg-config."
  13551. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13552. else
  13553. PKG_CONFIG_MIN_VERSION=0.9.0
  13554. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13555. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libIDL-2.0 >= 0.8.0" >&5
  13556. $as_echo_n "checking for libIDL-2.0 >= 0.8.0... " >&6; }
  13557. if $PKG_CONFIG --exists "libIDL-2.0 >= 0.8.0" ; then
  13558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13559. $as_echo "yes" >&6; }
  13560. succeeded=yes
  13561. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_CFLAGS" >&5
  13562. $as_echo_n "checking MOZLIBREQ_CFLAGS... " >&6; }
  13563. MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libIDL-2.0 >= 0.8.0"`
  13564. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_CFLAGS" >&5
  13565. $as_echo "$MOZLIBREQ_CFLAGS" >&6; }
  13566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_LIBS" >&5
  13567. $as_echo_n "checking MOZLIBREQ_LIBS... " >&6; }
  13568. MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libIDL-2.0 >= 0.8.0"`
  13569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_LIBS" >&5
  13570. $as_echo "$MOZLIBREQ_LIBS" >&6; }
  13571. else
  13572. MOZLIBREQ_CFLAGS=""
  13573. MOZLIBREQ_LIBS=""
  13574. ## If we have a custom action on failure, don't print errors, but
  13575. ## do set a variable so people can do so.
  13576. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libIDL-2.0 >= 0.8.0"`
  13577. fi
  13578. else
  13579. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13580. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13581. fi
  13582. fi
  13583. if test $succeeded = yes; then
  13584. MOZIDL="TRUE"
  13585. else
  13586. MOZIDL=""
  13587. fi
  13588. if test -z "$MOZIDL"; then
  13589. as_fn_error "libIDL >= 0.8.0 is needed when using GTK2 to build mozilla." "$LINENO" 5
  13590. fi
  13591. else
  13592. succeeded=no
  13593. if test -z "$PKG_CONFIG"; then
  13594. # Extract the first word of "pkg-config", so it can be a program name with args.
  13595. set dummy pkg-config; ac_word=$2
  13596. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13597. $as_echo_n "checking for $ac_word... " >&6; }
  13598. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13599. $as_echo_n "(cached) " >&6
  13600. else
  13601. case $PKG_CONFIG in
  13602. [\\/]* | ?:[\\/]*)
  13603. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13604. ;;
  13605. *)
  13606. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13607. for as_dir in $PATH
  13608. do
  13609. IFS=$as_save_IFS
  13610. test -z "$as_dir" && as_dir=.
  13611. for ac_exec_ext in '' $ac_executable_extensions; do
  13612. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13613. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13614. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13615. break 2
  13616. fi
  13617. done
  13618. done
  13619. IFS=$as_save_IFS
  13620. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13621. ;;
  13622. esac
  13623. fi
  13624. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13625. if test -n "$PKG_CONFIG"; then
  13626. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13627. $as_echo "$PKG_CONFIG" >&6; }
  13628. else
  13629. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13630. $as_echo "no" >&6; }
  13631. fi
  13632. fi
  13633. if test "$PKG_CONFIG" = "no" ; then
  13634. echo "*** The pkg-config script could not be found. Make sure it is"
  13635. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13636. echo "*** to the full path to pkg-config."
  13637. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13638. else
  13639. PKG_CONFIG_MIN_VERSION=0.9.0
  13640. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+ >= 1.2.3" >&5
  13642. $as_echo_n "checking for gtk+ >= 1.2.3... " >&6; }
  13643. if $PKG_CONFIG --exists "gtk+ >= 1.2.3" ; then
  13644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13645. $as_echo "yes" >&6; }
  13646. succeeded=yes
  13647. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_CFLAGS" >&5
  13648. $as_echo_n "checking MOZLIBREQ_CFLAGS... " >&6; }
  13649. MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "gtk+ >= 1.2.3"`
  13650. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_CFLAGS" >&5
  13651. $as_echo "$MOZLIBREQ_CFLAGS" >&6; }
  13652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_LIBS" >&5
  13653. $as_echo_n "checking MOZLIBREQ_LIBS... " >&6; }
  13654. MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "gtk+ >= 1.2.3"`
  13655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_LIBS" >&5
  13656. $as_echo "$MOZLIBREQ_LIBS" >&6; }
  13657. else
  13658. MOZLIBREQ_CFLAGS=""
  13659. MOZLIBREQ_LIBS=""
  13660. ## If we have a custom action on failure, don't print errors, but
  13661. ## do set a variable so people can do so.
  13662. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+ >= 1.2.3"`
  13663. fi
  13664. else
  13665. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13666. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13667. fi
  13668. fi
  13669. if test $succeeded = yes; then
  13670. MOZGTK="TRUE"
  13671. else
  13672. MOZGTK=""
  13673. fi
  13674. if test -z "$MOZGTK"; then
  13675. as_fn_error "gtk 1.2 is needed when not using GTK2 to build mozilla." "$LINENO" 5
  13676. fi
  13677. succeeded=no
  13678. if test -z "$PKG_CONFIG"; then
  13679. # Extract the first word of "pkg-config", so it can be a program name with args.
  13680. set dummy pkg-config; ac_word=$2
  13681. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13682. $as_echo_n "checking for $ac_word... " >&6; }
  13683. if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
  13684. $as_echo_n "(cached) " >&6
  13685. else
  13686. case $PKG_CONFIG in
  13687. [\\/]* | ?:[\\/]*)
  13688. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  13689. ;;
  13690. *)
  13691. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13692. for as_dir in $PATH
  13693. do
  13694. IFS=$as_save_IFS
  13695. test -z "$as_dir" && as_dir=.
  13696. for ac_exec_ext in '' $ac_executable_extensions; do
  13697. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13698. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  13699. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13700. break 2
  13701. fi
  13702. done
  13703. done
  13704. IFS=$as_save_IFS
  13705. test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
  13706. ;;
  13707. esac
  13708. fi
  13709. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  13710. if test -n "$PKG_CONFIG"; then
  13711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  13712. $as_echo "$PKG_CONFIG" >&6; }
  13713. else
  13714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13715. $as_echo "no" >&6; }
  13716. fi
  13717. fi
  13718. if test "$PKG_CONFIG" = "no" ; then
  13719. echo "*** The pkg-config script could not be found. Make sure it is"
  13720. echo "*** in your path, or set the PKG_CONFIG environment variable"
  13721. echo "*** to the full path to pkg-config."
  13722. echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
  13723. else
  13724. PKG_CONFIG_MIN_VERSION=0.9.0
  13725. if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
  13726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libidl >= 0.6.3 libidl <= 0.6.8" >&5
  13727. $as_echo_n "checking for libidl >= 0.6.3 libidl <= 0.6.8... " >&6; }
  13728. if $PKG_CONFIG --exists "libidl >= 0.6.3 libidl <= 0.6.8" ; then
  13729. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13730. $as_echo "yes" >&6; }
  13731. succeeded=yes
  13732. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_CFLAGS" >&5
  13733. $as_echo_n "checking MOZLIBREQ_CFLAGS... " >&6; }
  13734. MOZLIBREQ_CFLAGS=`$PKG_CONFIG --cflags "libidl >= 0.6.3 libidl <= 0.6.8"`
  13735. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_CFLAGS" >&5
  13736. $as_echo "$MOZLIBREQ_CFLAGS" >&6; }
  13737. { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZLIBREQ_LIBS" >&5
  13738. $as_echo_n "checking MOZLIBREQ_LIBS... " >&6; }
  13739. MOZLIBREQ_LIBS=`$PKG_CONFIG --libs "libidl >= 0.6.3 libidl <= 0.6.8"`
  13740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZLIBREQ_LIBS" >&5
  13741. $as_echo "$MOZLIBREQ_LIBS" >&6; }
  13742. else
  13743. MOZLIBREQ_CFLAGS=""
  13744. MOZLIBREQ_LIBS=""
  13745. ## If we have a custom action on failure, don't print errors, but
  13746. ## do set a variable so people can do so.
  13747. MOZLIBREQ_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libidl >= 0.6.3 libidl <= 0.6.8"`
  13748. fi
  13749. else
  13750. echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
  13751. echo "*** See http://www.freedesktop.org/software/pkgconfig"
  13752. fi
  13753. fi
  13754. if test $succeeded = yes; then
  13755. MOZIDL="TRUE"
  13756. else
  13757. MOZIDL=""
  13758. fi
  13759. if test -z "$MOZIDL"; then
  13760. as_fn_error "libIDL 0.6.3 - 0.6.8 is needed when not using GTK2 to build mozilla." "$LINENO" 5
  13761. fi
  13762. fi
  13763. fi
  13764. fi
  13765. fi
  13766. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which sane header to use" >&5
  13767. $as_echo_n "checking which sane header to use... " >&6; }
  13768. if test -n "$with_system_sane_header" -o -n "$with_system_headers" && \
  13769. test "$with_system_sane_header" != "no"; then
  13770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  13771. $as_echo "external" >&6; }
  13772. SYSTEM_SANE_HEADER=YES
  13773. ac_fn_c_check_header_mongrel "$LINENO" "sane/sane.h" "ac_cv_header_sane_sane_h" "$ac_includes_default"
  13774. if test "x$ac_cv_header_sane_sane_h" = x""yes; then :
  13775. else
  13776. as_fn_error "sane not found. install sane" "$LINENO" 5
  13777. fi
  13778. else
  13779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  13780. $as_echo "internal" >&6; }
  13781. SYSTEM_SANE_HEADER=NO
  13782. BUILD_TYPE="$BUILD_TYPE SANE"
  13783. fi
  13784. { $as_echo "$as_me:${as_lineno-$LINENO}: checking which icu to use" >&5
  13785. $as_echo_n "checking which icu to use... " >&6; }
  13786. if test -n "$with_system_icu" -o -n "$with_system_libs" && \
  13787. test "$with_system_icu" != "no"; then
  13788. { $as_echo "$as_me:${as_lineno-$LINENO}: result: external" >&5
  13789. $as_echo "external" >&6; }
  13790. SYSTEM_ICU=YES
  13791. ac_ext=cpp
  13792. ac_cpp='$CXXCPP $CPPFLAGS'
  13793. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13794. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13795. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  13796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unicode/rbbi.h" >&5
  13797. $as_echo_n "checking for unicode/rbbi.h... " >&6; }
  13798. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13799. /* end confdefs.h. */
  13800. unicode/rbbi.h
  13801. _ACEOF
  13802. if ac_fn_cxx_try_cpp "$LINENO"; then :
  13803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: checked." >&5
  13804. $as_echo "checked." >&6; }
  13805. else
  13806. as_fn_error "icu headers not found." "$LINENO" 5
  13807. fi
  13808. rm -f conftest.err conftest.$ac_ext
  13809. # Extract the first word of "genbrk", so it can be a program name with args.
  13810. set dummy genbrk; ac_word=$2
  13811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13812. $as_echo_n "checking for $ac_word... " >&6; }
  13813. if test "${ac_cv_path_SYSTEM_GENBRK+set}" = set; then :
  13814. $as_echo_n "(cached) " >&6
  13815. else
  13816. case $SYSTEM_GENBRK in
  13817. [\\/]* | ?:[\\/]*)
  13818. ac_cv_path_SYSTEM_GENBRK="$SYSTEM_GENBRK" # Let the user override the test with a path.
  13819. ;;
  13820. *)
  13821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13822. as_dummy="$PATH:/usr/sbin:/sbin"
  13823. for as_dir in $as_dummy
  13824. do
  13825. IFS=$as_save_IFS
  13826. test -z "$as_dir" && as_dir=.
  13827. for ac_exec_ext in '' $ac_executable_extensions; do
  13828. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13829. ac_cv_path_SYSTEM_GENBRK="$as_dir/$ac_word$ac_exec_ext"
  13830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13831. break 2
  13832. fi
  13833. done
  13834. done
  13835. IFS=$as_save_IFS
  13836. ;;
  13837. esac
  13838. fi
  13839. SYSTEM_GENBRK=$ac_cv_path_SYSTEM_GENBRK
  13840. if test -n "$SYSTEM_GENBRK"; then
  13841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENBRK" >&5
  13842. $as_echo "$SYSTEM_GENBRK" >&6; }
  13843. else
  13844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13845. $as_echo "no" >&6; }
  13846. fi
  13847. if test -z "$SYSTEM_GENBRK"; then
  13848. as_fn_error "\\"genbrk\\" not found in \$PATH, install the icu development tool \\"genbrk\"\" "$LINENO" 5
  13849. fi
  13850. # Extract the first word of "genccode", so it can be a program name with args.
  13851. set dummy genccode; ac_word=$2
  13852. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13853. $as_echo_n "checking for $ac_word... " >&6; }
  13854. if test "${ac_cv_path_SYSTEM_GENCCODE+set}" = set; then :
  13855. $as_echo_n "(cached) " >&6
  13856. else
  13857. case $SYSTEM_GENCCODE in
  13858. [\\/]* | ?:[\\/]*)
  13859. ac_cv_path_SYSTEM_GENCCODE="$SYSTEM_GENCCODE" # Let the user override the test with a path.
  13860. ;;
  13861. *)
  13862. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13863. as_dummy="$PATH:/usr/sbin:/sbin"
  13864. for as_dir in $as_dummy
  13865. do
  13866. IFS=$as_save_IFS
  13867. test -z "$as_dir" && as_dir=.
  13868. for ac_exec_ext in '' $ac_executable_extensions; do
  13869. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13870. ac_cv_path_SYSTEM_GENCCODE="$as_dir/$ac_word$ac_exec_ext"
  13871. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13872. break 2
  13873. fi
  13874. done
  13875. done
  13876. IFS=$as_save_IFS
  13877. ;;
  13878. esac
  13879. fi
  13880. SYSTEM_GENCCODE=$ac_cv_path_SYSTEM_GENCCODE
  13881. if test -n "$SYSTEM_GENCCODE"; then
  13882. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCCODE" >&5
  13883. $as_echo "$SYSTEM_GENCCODE" >&6; }
  13884. else
  13885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13886. $as_echo "no" >&6; }
  13887. fi
  13888. if test -z "$SYSTEM_GENCCODE"; then
  13889. as_fn_error "\\"genccode\\" not found in \$PATH, install the icu development tool \\"genccode\"\" "$LINENO" 5
  13890. fi
  13891. # Extract the first word of "gencmn", so it can be a program name with args.
  13892. set dummy gencmn; ac_word=$2
  13893. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13894. $as_echo_n "checking for $ac_word... " >&6; }
  13895. if test "${ac_cv_path_SYSTEM_GENCMN+set}" = set; then :
  13896. $as_echo_n "(cached) " >&6
  13897. else
  13898. case $SYSTEM_GENCMN in
  13899. [\\/]* | ?:[\\/]*)
  13900. ac_cv_path_SYSTEM_GENCMN="$SYSTEM_GENCMN" # Let the user override the test with a path.
  13901. ;;
  13902. *)
  13903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13904. as_dummy="$PATH:/usr/sbin:/sbin"
  13905. for as_dir in $as_dummy
  13906. do
  13907. IFS=$as_save_IFS
  13908. test -z "$as_dir" && as_dir=.
  13909. for ac_exec_ext in '' $ac_executable_extensions; do
  13910. if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  13911. ac_cv_path_SYSTEM_GENCMN="$as_dir/$ac_word$ac_exec_ext"
  13912. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13913. break 2
  13914. fi
  13915. done
  13916. done
  13917. IFS=$as_save_IFS
  13918. ;;
  13919. esac
  13920. fi
  13921. SYSTEM_GENCMN=$ac_cv_path_SYSTEM_GENCMN
  13922. if test -n "$SYSTEM_GENCMN"; then
  13923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEM_GENCMN" >&5
  13924. $as_echo "$SYSTEM_GENCMN" >&6; }
  13925. else
  13926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13927. $as_echo "no" >&6; }
  13928. fi
  13929. if test -z "$SYSTEM_GENCMN"; then
  13930. as_fn_error "\\"gencmn\\" not found in \$PATH, install the icu development tool \\"gencmn\"\" "$LINENO" 5
  13931. fi
  13932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking ICU version" >&5
  13933. $as_echo_n "checking ICU version... " >&6; }
  13934. if test "$cross_compiling" = yes; then :
  13935. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  13936. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  13937. as_fn_error "cannot run test program while cross compiling
  13938. See \`config.log' for more details." "$LINENO" 5; }
  13939. else
  13940. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13941. /* end confdefs.h. */
  13942. #include <unicode/uversion.h>
  13943. int main(int argc, char **argv) {
  13944. if(U_ICU_VERSION_MAJOR_NUM < 4)
  13945. return 1;
  13946. else
  13947. return 0;
  13948. }
  13949. _ACEOF
  13950. if ac_fn_cxx_try_run "$LINENO"; then :
  13951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: OK" >&5
  13952. $as_echo "OK" >&6; }
  13953. else
  13954. as_fn_error "not suitable, only >= 4.0 supported currently" "$LINENO" 5
  13955. fi
  13956. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  13957. conftest.$ac_objext conftest.beam conftest.$ac_ext
  13958. fi
  13959. ac_ext=c
  13960. ac_cpp='$CPP $CPPFLAGS'
  13961. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13962. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13963. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13964. else
  13965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: internal" >&5
  13966. $as_echo "internal" >&6; }
  13967. SYSTEM_ICU=NO
  13968. BUILD_TYPE="$BUILD_TYPE ICU"
  13969. fi
  13970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable graphite support" >&5
  13971. $as_echo_n "checking whether to enable graphite support... " >&6; }
  13972. if test "$_os" = "WINNT" -o "$_os" = "Linux" && test "z$enable_graphite" == "z" -o "$enable_graphite" != "no"