configure revision 443:efd26e051e50
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.67 for openjdk version-0.1.
4#
5# Report bugs to <build-infra-dev@openjdk.java.net>.
6#
7#
8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
10# Foundation, Inc.
11#
12#
13# This configure script is free software; the Free Software Foundation
14# gives unlimited permission to copy, distribute and modify it.
15## -------------------- ##
16## M4sh Initialization. ##
17## -------------------- ##
18
19# Be more Bourne compatible
20DUALCASE=1; export DUALCASE # for MKS sh
21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22  emulate sh
23  NULLCMD=:
24  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25  # is contrary to our usage.  Disable this feature.
26  alias -g '${1+"$@"}'='"$@"'
27  setopt NO_GLOB_SUBST
28else
29  case `(set -o) 2>/dev/null` in #(
30  *posix*) :
31    set -o posix ;; #(
32  *) :
33     ;;
34esac
35fi
36
37
38as_nl='
39'
40export as_nl
41# Printing a long string crashes Solaris 7 /usr/bin/printf.
42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45# Prefer a ksh shell builtin over an external printf program on Solaris,
46# but without wasting forks for bash or zsh.
47if test -z "$BASH_VERSION$ZSH_VERSION" \
48    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
49  as_echo='print -r --'
50  as_echo_n='print -rn --'
51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
52  as_echo='printf %s\n'
53  as_echo_n='printf %s'
54else
55  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
57    as_echo_n='/usr/ucb/echo -n'
58  else
59    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60    as_echo_n_body='eval
61      arg=$1;
62      case $arg in #(
63      *"$as_nl"*)
64	expr "X$arg" : "X\\(.*\\)$as_nl";
65	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
66      esac;
67      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68    '
69    export as_echo_n_body
70    as_echo_n='sh -c $as_echo_n_body as_echo'
71  fi
72  export as_echo_body
73  as_echo='sh -c $as_echo_body as_echo'
74fi
75
76# The user is always right.
77if test "${PATH_SEPARATOR+set}" != set; then
78  PATH_SEPARATOR=:
79  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
81      PATH_SEPARATOR=';'
82  }
83fi
84
85
86# IFS
87# We need space, tab and new line, in precisely that order.  Quoting is
88# there to prevent editors from complaining about space-tab.
89# (If _AS_PATH_WALK were called with IFS unset, it would disable word
90# splitting by setting IFS to empty value.)
91IFS=" ""	$as_nl"
92
93# Find who we are.  Look in the path if we contain no directory separator.
94case $0 in #((
95  *[\\/]* ) as_myself=$0 ;;
96  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97for as_dir in $PATH
98do
99  IFS=$as_save_IFS
100  test -z "$as_dir" && as_dir=.
101    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
102  done
103IFS=$as_save_IFS
104
105     ;;
106esac
107# We did not find ourselves, most probably we were run as `sh COMMAND'
108# in which case we are not to be found in the path.
109if test "x$as_myself" = x; then
110  as_myself=$0
111fi
112if test ! -f "$as_myself"; then
113  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114  exit 1
115fi
116
117# Unset variables that we do not need and which cause bugs (e.g. in
118# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
119# suppresses any "Segmentation fault" message there.  '((' could
120# trigger a bug in pdksh 5.2.14.
121for as_var in BASH_ENV ENV MAIL MAILPATH
122do eval test x\${$as_var+set} = xset \
123  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
124done
125PS1='$ '
126PS2='> '
127PS4='+ '
128
129# NLS nuisances.
130LC_ALL=C
131export LC_ALL
132LANGUAGE=C
133export LANGUAGE
134
135# CDPATH.
136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137
138if test "x$CONFIG_SHELL" = x; then
139  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
140  emulate sh
141  NULLCMD=:
142  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143  # is contrary to our usage.  Disable this feature.
144  alias -g '\${1+\"\$@\"}'='\"\$@\"'
145  setopt NO_GLOB_SUBST
146else
147  case \`(set -o) 2>/dev/null\` in #(
148  *posix*) :
149    set -o posix ;; #(
150  *) :
151     ;;
152esac
153fi
154"
155  as_required="as_fn_return () { (exit \$1); }
156as_fn_success () { as_fn_return 0; }
157as_fn_failure () { as_fn_return 1; }
158as_fn_ret_success () { return 0; }
159as_fn_ret_failure () { return 1; }
160
161exitcode=0
162as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
167
168else
169  exitcode=1; echo positional parameters were not saved.
170fi
171test x\$exitcode = x0 || exit 1"
172  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
173  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
174  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176test \$(( 1 + 1 )) = 2 || exit 1"
177  if (eval "$as_required") 2>/dev/null; then :
178  as_have_required=yes
179else
180  as_have_required=no
181fi
182  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
183
184else
185  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186as_found=false
187for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
188do
189  IFS=$as_save_IFS
190  test -z "$as_dir" && as_dir=.
191  as_found=:
192  case $as_dir in #(
193	 /*)
194	   for as_base in sh bash ksh sh5; do
195	     # Try only shells that exist, to save several forks.
196	     as_shell=$as_dir/$as_base
197	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
198		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
199  CONFIG_SHELL=$as_shell as_have_required=yes
200		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
201  break 2
202fi
203fi
204	   done;;
205       esac
206  as_found=false
207done
208$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
209	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
210  CONFIG_SHELL=$SHELL as_have_required=yes
211fi; }
212IFS=$as_save_IFS
213
214
215      if test "x$CONFIG_SHELL" != x; then :
216  # We cannot yet assume a decent shell, so we have to provide a
217	# neutralization value for shells without unset; and this also
218	# works around shells that cannot unset nonexistent variables.
219	BASH_ENV=/dev/null
220	ENV=/dev/null
221	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
222	export CONFIG_SHELL
223	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
224fi
225
226    if test x$as_have_required = xno; then :
227  $as_echo "$0: This script requires a shell more modern than all"
228  $as_echo "$0: the shells that I found on your system."
229  if test x${ZSH_VERSION+set} = xset ; then
230    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
232  else
233    $as_echo "$0: Please tell bug-autoconf@gnu.org and
234$0: build-infra-dev@openjdk.java.net about your system,
235$0: including any error possibly output before this
236$0: message. Then install a modern shell, or manually run
237$0: the script under such a shell if you do have one."
238  fi
239  exit 1
240fi
241fi
242fi
243SHELL=${CONFIG_SHELL-/bin/sh}
244export SHELL
245# Unset more variables known to interfere with behavior of common tools.
246CLICOLOR_FORCE= GREP_OPTIONS=
247unset CLICOLOR_FORCE GREP_OPTIONS
248
249## --------------------- ##
250## M4sh Shell Functions. ##
251## --------------------- ##
252# as_fn_unset VAR
253# ---------------
254# Portably unset VAR.
255as_fn_unset ()
256{
257  { eval $1=; unset $1;}
258}
259as_unset=as_fn_unset
260
261# as_fn_set_status STATUS
262# -----------------------
263# Set $? to STATUS, without forking.
264as_fn_set_status ()
265{
266  return $1
267} # as_fn_set_status
268
269# as_fn_exit STATUS
270# -----------------
271# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
272as_fn_exit ()
273{
274  set +e
275  as_fn_set_status $1
276  exit $1
277} # as_fn_exit
278
279# as_fn_mkdir_p
280# -------------
281# Create "$as_dir" as a directory, including parents if necessary.
282as_fn_mkdir_p ()
283{
284
285  case $as_dir in #(
286  -*) as_dir=./$as_dir;;
287  esac
288  test -d "$as_dir" || eval $as_mkdir_p || {
289    as_dirs=
290    while :; do
291      case $as_dir in #(
292      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
293      *) as_qdir=$as_dir;;
294      esac
295      as_dirs="'$as_qdir' $as_dirs"
296      as_dir=`$as_dirname -- "$as_dir" ||
297$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298	 X"$as_dir" : 'X\(//\)[^/]' \| \
299	 X"$as_dir" : 'X\(//\)$' \| \
300	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301$as_echo X"$as_dir" |
302    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
303	    s//\1/
304	    q
305	  }
306	  /^X\(\/\/\)[^/].*/{
307	    s//\1/
308	    q
309	  }
310	  /^X\(\/\/\)$/{
311	    s//\1/
312	    q
313	  }
314	  /^X\(\/\).*/{
315	    s//\1/
316	    q
317	  }
318	  s/.*/./; q'`
319      test -d "$as_dir" && break
320    done
321    test -z "$as_dirs" || eval "mkdir $as_dirs"
322  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
323
324
325} # as_fn_mkdir_p
326# as_fn_append VAR VALUE
327# ----------------------
328# Append the text in VALUE to the end of the definition contained in VAR. Take
329# advantage of any shell optimizations that allow amortized linear growth over
330# repeated appends, instead of the typical quadratic growth present in naive
331# implementations.
332if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
333  eval 'as_fn_append ()
334  {
335    eval $1+=\$2
336  }'
337else
338  as_fn_append ()
339  {
340    eval $1=\$$1\$2
341  }
342fi # as_fn_append
343
344# as_fn_arith ARG...
345# ------------------
346# Perform arithmetic evaluation on the ARGs, and store the result in the
347# global $as_val. Take advantage of shells that can avoid forks. The arguments
348# must be portable across $(()) and expr.
349if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
350  eval 'as_fn_arith ()
351  {
352    as_val=$(( $* ))
353  }'
354else
355  as_fn_arith ()
356  {
357    as_val=`expr "$@" || test $? -eq 1`
358  }
359fi # as_fn_arith
360
361
362# as_fn_error STATUS ERROR [LINENO LOG_FD]
363# ----------------------------------------
364# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366# script with STATUS, using 1 if that was 0.
367as_fn_error ()
368{
369  as_status=$1; test $as_status -eq 0 && as_status=1
370  if test "$4"; then
371    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
372    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
373  fi
374  $as_echo "$as_me: error: $2" >&2
375  as_fn_exit $as_status
376} # as_fn_error
377
378if expr a : '\(a\)' >/dev/null 2>&1 &&
379   test "X`expr 00001 : '.*\(...\)'`" = X001; then
380  as_expr=expr
381else
382  as_expr=false
383fi
384
385if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
386  as_basename=basename
387else
388  as_basename=false
389fi
390
391if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
392  as_dirname=dirname
393else
394  as_dirname=false
395fi
396
397as_me=`$as_basename -- "$0" ||
398$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399	 X"$0" : 'X\(//\)$' \| \
400	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
401$as_echo X/"$0" |
402    sed '/^.*\/\([^/][^/]*\)\/*$/{
403	    s//\1/
404	    q
405	  }
406	  /^X\/\(\/\/\)$/{
407	    s//\1/
408	    q
409	  }
410	  /^X\/\(\/\).*/{
411	    s//\1/
412	    q
413	  }
414	  s/.*/./; q'`
415
416# Avoid depending upon Character Ranges.
417as_cr_letters='abcdefghijklmnopqrstuvwxyz'
418as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419as_cr_Letters=$as_cr_letters$as_cr_LETTERS
420as_cr_digits='0123456789'
421as_cr_alnum=$as_cr_Letters$as_cr_digits
422
423
424  as_lineno_1=$LINENO as_lineno_1a=$LINENO
425  as_lineno_2=$LINENO as_lineno_2a=$LINENO
426  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
428  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
429  sed -n '
430    p
431    /[$]LINENO/=
432  ' <$as_myself |
433    sed '
434      s/[$]LINENO.*/&-/
435      t lineno
436      b
437      :lineno
438      N
439      :loop
440      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
441      t loop
442      s/-\n.*//
443    ' >$as_me.lineno &&
444  chmod +x "$as_me.lineno" ||
445    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
446
447  # Don't try to exec as it changes $[0], causing all sort of problems
448  # (the dirname of $[0] is not the place where we might find the
449  # original and so on.  Autoconf is especially sensitive to this).
450  . "./$as_me.lineno"
451  # Exit status is that of the last command.
452  exit
453}
454
455ECHO_C= ECHO_N= ECHO_T=
456case `echo -n x` in #(((((
457-n*)
458  case `echo 'xy\c'` in
459  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
460  xy)  ECHO_C='\c';;
461  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
462       ECHO_T='	';;
463  esac;;
464*)
465  ECHO_N='-n';;
466esac
467
468rm -f conf$$ conf$$.exe conf$$.file
469if test -d conf$$.dir; then
470  rm -f conf$$.dir/conf$$.file
471else
472  rm -f conf$$.dir
473  mkdir conf$$.dir 2>/dev/null
474fi
475if (echo >conf$$.file) 2>/dev/null; then
476  if ln -s conf$$.file conf$$ 2>/dev/null; then
477    as_ln_s='ln -s'
478    # ... but there are two gotchas:
479    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481    # In both cases, we have to default to `cp -p'.
482    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
483      as_ln_s='cp -p'
484  elif ln conf$$.file conf$$ 2>/dev/null; then
485    as_ln_s=ln
486  else
487    as_ln_s='cp -p'
488  fi
489else
490  as_ln_s='cp -p'
491fi
492rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
493rmdir conf$$.dir 2>/dev/null
494
495if mkdir -p . 2>/dev/null; then
496  as_mkdir_p='mkdir -p "$as_dir"'
497else
498  test -d ./-p && rmdir ./-p
499  as_mkdir_p=false
500fi
501
502if test -x / >/dev/null 2>&1; then
503  as_test_x='test -x'
504else
505  if ls -dL / >/dev/null 2>&1; then
506    as_ls_L_option=L
507  else
508    as_ls_L_option=
509  fi
510  as_test_x='
511    eval sh -c '\''
512      if test -d "$1"; then
513	test -d "$1/.";
514      else
515	case $1 in #(
516	-*)set "./$1";;
517	esac;
518	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519	???[sx]*):;;*)false;;esac;fi
520    '\'' sh
521  '
522fi
523as_executable_p=$as_test_x
524
525# Sed expression to map a string onto a valid CPP name.
526as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
527
528# Sed expression to map a string onto a valid variable name.
529as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
530
531
532test -n "$DJDIR" || exec 7<&0 </dev/null
533exec 6>&1
534
535# Name of the host.
536# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
537# so uname gets run too.
538ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
539
540#
541# Initializations.
542#
543ac_default_prefix=/usr/local
544ac_clean_files=
545ac_config_libobj_dir=.
546LIBOBJS=
547cross_compiling=no
548subdirs=
549MFLAGS=
550MAKEFLAGS=
551
552# Identity of this package.
553PACKAGE_NAME='openjdk'
554PACKAGE_TARNAME='openjdk'
555PACKAGE_VERSION='version-0.1'
556PACKAGE_STRING='openjdk version-0.1'
557PACKAGE_BUGREPORT='build-infra-dev@openjdk.java.net'
558PACKAGE_URL=''
559
560# Factoring default headers for most tests.
561ac_includes_default="\
562#include <stdio.h>
563#ifdef HAVE_SYS_TYPES_H
564# include <sys/types.h>
565#endif
566#ifdef HAVE_SYS_STAT_H
567# include <sys/stat.h>
568#endif
569#ifdef STDC_HEADERS
570# include <stdlib.h>
571# include <stddef.h>
572#else
573# ifdef HAVE_STDLIB_H
574#  include <stdlib.h>
575# endif
576#endif
577#ifdef HAVE_STRING_H
578# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
579#  include <memory.h>
580# endif
581# include <string.h>
582#endif
583#ifdef HAVE_STRINGS_H
584# include <strings.h>
585#endif
586#ifdef HAVE_INTTYPES_H
587# include <inttypes.h>
588#endif
589#ifdef HAVE_STDINT_H
590# include <stdint.h>
591#endif
592#ifdef HAVE_UNISTD_H
593# include <unistd.h>
594#endif"
595
596ac_subst_vars='LTLIBOBJS
597LIBOBJS
598CACERTS_FILE
599TEST_IN_BUILD
600SALIB_NAME
601OS_VERSION_MICRO
602OS_VERSION_MINOR
603OS_VERSION_MAJOR
604LIBCXX
605LDFLAGS_JDKEXE_SUFFIX
606LDFLAGS_JDKLIB_SUFFIX
607LDFLAGS_JDKEXE
608LDFLAGS_JDKLIB
609CXXFLAGS_JDKEXE
610CXXFLAGS_JDKLIB
611CFLAGS_JDKEXE
612CFLAGS_JDKLIB
613PACKAGE_PATH
614IMAGES_MAKE_ARGS
615IMAGES_OUTPUTDIR
616JDK_MAKE_ARGS
617JDK_OUTPUTDIR
618HOTSPOT_MAKE_ARGS
619HOTSPOT_DIST
620HOTSPOT_OUTPUTDIR
621JAXWS_MAKE_ARGS
622JAXWS_DIST
623JAXWS_OUTPUTDIR
624JAXP_MAKE_ARGS
625JAXP_DIST
626JAXP_OUTPUTDIR
627CORBA_MAKE_ARGS
628CORBA_DIST
629CORBA_OUTPUTDIR
630LANGTOOLS_MAKE_ARGS
631LANGTOOLS_DIST
632LANGTOOLS_OUTPUTDIR
633CXX_FLAG_DEPS
634C_FLAG_DEPS
635CXX_O_FLAG_NONE
636CXX_O_FLAG_NORM
637CXX_O_FLAG_HI
638CXX_O_FLAG_HIGHEST
639C_O_FLAG_NONE
640C_O_FLAG_NORM
641C_O_FLAG_HI
642C_O_FLAG_HIGHEST
643DISABLE_NIMBUS
644GENERATE_DOCS
645ENABLE_DOCS
646LIBDL
647LIBM
648USE_EXTERNAL_LIBZ
649USE_EXTERNAL_LIBGIF
650USE_EXTERNAL_LIBJPEG
651PULSE_LIBS
652PULSE_CFLAGS
653LIBPULSE_LIBS
654LIBPULSE_CFLAGS
655ALSA_LIBS
656ALSA_CFLAGS
657FREETYPE2_LIB_PATH
658USING_SYSTEM_FT_LIB
659FREETYPE2_LIBS
660FREETYPE2_CFLAGS
661CUPS_LIBS
662CUPS_CFLAGS
663OPENWIN_HOME
664X_EXTRA_LIBS
665X_LIBS
666X_PRE_LIBS
667X_CFLAGS
668XMKMF
669JAVAC_USE_MODE
670JAVAC_USE_DEPS
671JAVAC_SERVER_CORES
672JAVAC_SERVERS
673JAVAC_USE_REMOTE
674SERVER_JAVA
675BOOT_JDK_JVMARGS
676OVERRIDE_SRC_ROOT
677ADD_SRC_ROOT
678NATIVE2ASCII
679RMIC
680JAR
681JAVAH
682JAVAC_FLAGS
683JAVAC
684BOOT_JDK_SOURCETARGET
685JAVA
686BOOT_TOOLSJAR
687BOOT_RTJAR
688BOOT_JDK
689JAVA_CHECK
690JAVAC_CHECK
691ENDIAN
692POST_MCS_CMD
693POST_STRIP_CMD
694SET_SHARED_LIBRARY_ORIGIN
695CXX_FLAG_REORDER
696C_FLAG_REORDER
697SET_SHARED_LIBRARY_MAPFILE
698SET_SHARED_LIBRARY_NAME
699SHARED_LIBRARY_FLAGS
700EXE_SUFFIX
701STATIC_LIBRARY_SUFFIX
702SHARED_LIBRARY_SUFFIX
703LIBRARY_PREFIX
704STATIC_LIBRARY
705SHARED_LIBRARY
706OBJ_SUFFIX
707USE_PRECOMPILED_HEADER
708ARCH_DATA_MODEL
709LP64
710BUILD_LOG_WRAPPER
711BUILD_LOG
712CCACHE
713UNCYGDRIVE
714MCS
715STRIP
716NM
717ASFLAGS
718AS
719CXXCPP
720CPP
721COMPILER_TYPE
722RC_FLAGS
723DUMPBIN
724WINAR
725RC
726MT
727WINLD
728ARFLAGS
729AR
730LDEXECXX
731LDCXX
732LDEXE
733LD
734ac_ct_OBJC
735OBJCFLAGS
736OBJC
737ac_ct_CXX
738CXXFLAGS
739CXX
740OBJEXT
741EXEEXT
742ac_ct_CC
743CPPFLAGS
744LDFLAGS
745CFLAGS
746CC
747HOSTCXX
748HOSTCC
749HOST_CXX
750HOST_CC
751DEFINE_CROSS_COMPILE_ARCH
752AR_OUT_OPTION
753LD_OUT_OPTION
754EXE_OUT_OPTION
755CC_OUT_OPTION
756SYS_ROOT
757BDEPS_FTP
758BDEPS_UNZIP
759PKG_CONFIG
760JDK_TOPDIR
761HOTSPOT_TOPDIR
762JAXWS_TOPDIR
763JAXP_TOPDIR
764CORBA_TOPDIR
765LANGTOOLS_TOPDIR
766OUTPUT_ROOT
767CONF_NAME
768SPEC
769MSVCR100DLL
770CHECK_FOR_VCINSTALLDIR
771SETUPDEVENV
772COOKED_BUILD_NUMBER
773FULL_VERSION
774RELEASE
775JDK_VERSION
776RUNTIME_NAME
777COPYRIGHT_YEAR
778COMPANY_NAME
779JDK_RC_PLATFORM_NAME
780PRODUCT_SUFFIX
781PRODUCT_NAME
782LAUNCHER_NAME
783MILESTONE
784JDK_BUILD_NUMBER
785JDK_UPDATE_VERSION
786JDK_MICRO_VERSION
787JDK_MINOR_VERSION
788JDK_MAJOR_VERSION
789BUILD_VARIANT_RELEASE
790DEBUG_CLASSFILES
791FASTDEBUG
792VARIANT
793DEBUG_LEVEL
794JVM_VARIANT_ZEROSHARK
795JVM_VARIANT_ZERO
796JVM_VARIANT_KERNEL
797JVM_VARIANT_CLIENT
798JVM_VARIANT_SERVER
799JVM_VARIANTS
800BUILD_HEADLESS_ONLY
801BUILD_HEADLESS
802SUPPORT_HEADFUL
803SUPPORT_HEADLESS
804JDK_VARIANT
805MINIMIZE_RAM_USAGE
806JAVASE_EMBEDDED
807JIGSAW
808SET_OPENJDK
809PATH_SEP
810CYGPATH
811SRC_ROOT
812MEMORY_SIZE
813CONCURRENT_BUILD_JOBS
814NUM_CORES
815DATE_WHEN_CONFIGURED
816REQUIRED_OS_VERSION
817REQUIRED_OS_NAME
818LEGACY_BUILD_CPU3
819LEGACY_BUILD_CPU2
820LEGACY_BUILD_CPU1
821BUILD_CPU_ENDIAN
822BUILD_CPU_BITS
823BUILD_CPU_ARCH
824BUILD_CPU
825LEGACY_BUILD_OS_API
826BUILD_OS_API
827BUILD_OS_FAMILY
828BUILD_OS
829LEGACY_HOST_CPU3
830LEGACY_HOST_CPU2
831LEGACY_HOST_CPU1
832HOST_CPU_ENDIAN
833HOST_CPU_BITS
834HOST_CPU_ARCH
835HOST_CPU
836LEGACY_HOST_OS_API
837HOST_OS_API
838HOST_OS_FAMILY
839HOST_OS
840BUILD
841HOST
842host_os
843host_vendor
844host_cpu
845host
846build_os
847build_vendor
848build_cpu
849build
850HG
851FILE
852EXPR
853READELF
854OTOOL
855LDD
856UNZIP
857ZIP
858XARGS
859WC
860TOUCH
861TR
862TEE
863TAIL
864TAR
865SORT
866SH
867SED
868RM
869THEPWDCMD
870PRINTF
871NAWK
872MV
873MKDIR
874MAKE
875LS
876LN
877HEAD
878FIND_DELETE
879FIND
880FGREP
881EGREP
882GREP
883ECHO
884DIFF
885DF
886DATE
887CUT
888CPIO
889CP
890CHMOD
891CAT
892AWK
893READLINK
894CONFIGURE_COMMAND_LINE
895PKGHANDLER
896target_alias
897host_alias
898build_alias
899LIBS
900ECHO_T
901ECHO_N
902ECHO_C
903DEFS
904mandir
905localedir
906libdir
907psdir
908pdfdir
909dvidir
910htmldir
911infodir
912docdir
913oldincludedir
914includedir
915localstatedir
916sharedstatedir
917sysconfdir
918datadir
919datarootdir
920libexecdir
921sbindir
922bindir
923program_transform_name
924prefix
925exec_prefix
926PACKAGE_URL
927PACKAGE_BUGREPORT
928PACKAGE_STRING
929PACKAGE_VERSION
930PACKAGE_TARNAME
931PACKAGE_NAME
932PATH_SEPARATOR
933SHELL'
934ac_subst_files=''
935ac_user_opts='
936enable_option_checking
937with_data_model
938with_num_cores
939with_memory_size
940enable_openjdk_only
941enable_jigsaw
942with_jdk_variant
943enable_headful
944with_jvm_variants
945enable_debug
946with_debug_level
947with_msvcr100dll
948with_builddeps_conf
949with_builddeps_server
950with_builddeps_dir
951with_builddeps_group
952enable_list_builddeps
953with_sys_root
954enable_ccache
955with_ccache_dir
956enable_precompiled_headers
957with_boot_jdk
958with_add_source_root
959with_override_source_root
960with_adds_and_overrides
961with_override_langtools
962with_override_corba
963with_override_jaxp
964with_override_jaxws
965with_override_hotspot
966with_override_jdk
967with_boot_jdk_jvmargs
968with_server_java
969enable_javac_server
970with_javac_server_cores
971enable_javac_deps
972enable_javac_multi_core
973enable_macosx_runtime_support
974with_x
975with_cups
976with_cups_include
977with_cups_lib
978with_freetype
979with_alsa
980with_alsa_include
981with_alsa_lib
982with_pulse
983with_pulse_include
984with_pulse_lib
985enable_docs
986enable_nimbus
987enable_static_link_stdc__
988enable_hotspot_test_in_build
989with_cacerts_file
990'
991      ac_precious_vars='build_alias
992host_alias
993target_alias
994PKG_CONFIG
995CC
996CFLAGS
997LDFLAGS
998LIBS
999CPPFLAGS
1000CXX
1001CXXFLAGS
1002CCC
1003OBJC
1004OBJCFLAGS
1005CPP
1006CXXCPP
1007XMKMF
1008FREETYPE2_CFLAGS
1009FREETYPE2_LIBS
1010ALSA_CFLAGS
1011ALSA_LIBS
1012LIBPULSE_CFLAGS
1013LIBPULSE_LIBS'
1014
1015
1016# Initialize some variables set by options.
1017ac_init_help=
1018ac_init_version=false
1019ac_unrecognized_opts=
1020ac_unrecognized_sep=
1021# The variables have the same names as the options, with
1022# dashes changed to underlines.
1023cache_file=/dev/null
1024exec_prefix=NONE
1025no_create=
1026no_recursion=
1027prefix=NONE
1028program_prefix=NONE
1029program_suffix=NONE
1030program_transform_name=s,x,x,
1031silent=
1032site=
1033srcdir=
1034verbose=
1035x_includes=NONE
1036x_libraries=NONE
1037
1038# Installation directory options.
1039# These are left unexpanded so users can "make install exec_prefix=/foo"
1040# and all the variables that are supposed to be based on exec_prefix
1041# by default will actually change.
1042# Use braces instead of parens because sh, perl, etc. also accept them.
1043# (The list follows the same order as the GNU Coding Standards.)
1044bindir='${exec_prefix}/bin'
1045sbindir='${exec_prefix}/sbin'
1046libexecdir='${exec_prefix}/libexec'
1047datarootdir='${prefix}/share'
1048datadir='${datarootdir}'
1049sysconfdir='${prefix}/etc'
1050sharedstatedir='${prefix}/com'
1051localstatedir='${prefix}/var'
1052includedir='${prefix}/include'
1053oldincludedir='/usr/include'
1054docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1055infodir='${datarootdir}/info'
1056htmldir='${docdir}'
1057dvidir='${docdir}'
1058pdfdir='${docdir}'
1059psdir='${docdir}'
1060libdir='${exec_prefix}/lib'
1061localedir='${datarootdir}/locale'
1062mandir='${datarootdir}/man'
1063
1064ac_prev=
1065ac_dashdash=
1066for ac_option
1067do
1068  # If the previous option needs an argument, assign it.
1069  if test -n "$ac_prev"; then
1070    eval $ac_prev=\$ac_option
1071    ac_prev=
1072    continue
1073  fi
1074
1075  case $ac_option in
1076  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1077  *=)   ac_optarg= ;;
1078  *)    ac_optarg=yes ;;
1079  esac
1080
1081  # Accept the important Cygnus configure options, so we can diagnose typos.
1082
1083  case $ac_dashdash$ac_option in
1084  --)
1085    ac_dashdash=yes ;;
1086
1087  -bindir | --bindir | --bindi | --bind | --bin | --bi)
1088    ac_prev=bindir ;;
1089  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1090    bindir=$ac_optarg ;;
1091
1092  -build | --build | --buil | --bui | --bu)
1093    ac_prev=build_alias ;;
1094  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1095    build_alias=$ac_optarg ;;
1096
1097  -cache-file | --cache-file | --cache-fil | --cache-fi \
1098  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1099    ac_prev=cache_file ;;
1100  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1101  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1102    cache_file=$ac_optarg ;;
1103
1104  --config-cache | -C)
1105    cache_file=config.cache ;;
1106
1107  -datadir | --datadir | --datadi | --datad)
1108    ac_prev=datadir ;;
1109  -datadir=* | --datadir=* | --datadi=* | --datad=*)
1110    datadir=$ac_optarg ;;
1111
1112  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1113  | --dataroo | --dataro | --datar)
1114    ac_prev=datarootdir ;;
1115  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1116  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1117    datarootdir=$ac_optarg ;;
1118
1119  -disable-* | --disable-*)
1120    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1121    # Reject names that are not valid shell variable names.
1122    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1123      as_fn_error $? "invalid feature name: $ac_useropt"
1124    ac_useropt_orig=$ac_useropt
1125    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1126    case $ac_user_opts in
1127      *"
1128"enable_$ac_useropt"
1129"*) ;;
1130      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1131	 ac_unrecognized_sep=', ';;
1132    esac
1133    eval enable_$ac_useropt=no ;;
1134
1135  -docdir | --docdir | --docdi | --doc | --do)
1136    ac_prev=docdir ;;
1137  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1138    docdir=$ac_optarg ;;
1139
1140  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1141    ac_prev=dvidir ;;
1142  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1143    dvidir=$ac_optarg ;;
1144
1145  -enable-* | --enable-*)
1146    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1147    # Reject names that are not valid shell variable names.
1148    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1149      as_fn_error $? "invalid feature name: $ac_useropt"
1150    ac_useropt_orig=$ac_useropt
1151    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1152    case $ac_user_opts in
1153      *"
1154"enable_$ac_useropt"
1155"*) ;;
1156      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1157	 ac_unrecognized_sep=', ';;
1158    esac
1159    eval enable_$ac_useropt=\$ac_optarg ;;
1160
1161  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1162  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1163  | --exec | --exe | --ex)
1164    ac_prev=exec_prefix ;;
1165  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1166  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1167  | --exec=* | --exe=* | --ex=*)
1168    exec_prefix=$ac_optarg ;;
1169
1170  -gas | --gas | --ga | --g)
1171    # Obsolete; use --with-gas.
1172    with_gas=yes ;;
1173
1174  -help | --help | --hel | --he | -h)
1175    ac_init_help=long ;;
1176  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1177    ac_init_help=recursive ;;
1178  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1179    ac_init_help=short ;;
1180
1181  -host | --host | --hos | --ho)
1182    ac_prev=host_alias ;;
1183  -host=* | --host=* | --hos=* | --ho=*)
1184    host_alias=$ac_optarg ;;
1185
1186  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1187    ac_prev=htmldir ;;
1188  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1189  | --ht=*)
1190    htmldir=$ac_optarg ;;
1191
1192  -includedir | --includedir | --includedi | --included | --include \
1193  | --includ | --inclu | --incl | --inc)
1194    ac_prev=includedir ;;
1195  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1196  | --includ=* | --inclu=* | --incl=* | --inc=*)
1197    includedir=$ac_optarg ;;
1198
1199  -infodir | --infodir | --infodi | --infod | --info | --inf)
1200    ac_prev=infodir ;;
1201  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1202    infodir=$ac_optarg ;;
1203
1204  -libdir | --libdir | --libdi | --libd)
1205    ac_prev=libdir ;;
1206  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1207    libdir=$ac_optarg ;;
1208
1209  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1210  | --libexe | --libex | --libe)
1211    ac_prev=libexecdir ;;
1212  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1213  | --libexe=* | --libex=* | --libe=*)
1214    libexecdir=$ac_optarg ;;
1215
1216  -localedir | --localedir | --localedi | --localed | --locale)
1217    ac_prev=localedir ;;
1218  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1219    localedir=$ac_optarg ;;
1220
1221  -localstatedir | --localstatedir | --localstatedi | --localstated \
1222  | --localstate | --localstat | --localsta | --localst | --locals)
1223    ac_prev=localstatedir ;;
1224  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1225  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1226    localstatedir=$ac_optarg ;;
1227
1228  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1229    ac_prev=mandir ;;
1230  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1231    mandir=$ac_optarg ;;
1232
1233  -nfp | --nfp | --nf)
1234    # Obsolete; use --without-fp.
1235    with_fp=no ;;
1236
1237  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1238  | --no-cr | --no-c | -n)
1239    no_create=yes ;;
1240
1241  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1242  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1243    no_recursion=yes ;;
1244
1245  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1246  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1247  | --oldin | --oldi | --old | --ol | --o)
1248    ac_prev=oldincludedir ;;
1249  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1250  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1251  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1252    oldincludedir=$ac_optarg ;;
1253
1254  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1255    ac_prev=prefix ;;
1256  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1257    prefix=$ac_optarg ;;
1258
1259  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1260  | --program-pre | --program-pr | --program-p)
1261    ac_prev=program_prefix ;;
1262  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1263  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1264    program_prefix=$ac_optarg ;;
1265
1266  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1267  | --program-suf | --program-su | --program-s)
1268    ac_prev=program_suffix ;;
1269  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1270  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1271    program_suffix=$ac_optarg ;;
1272
1273  -program-transform-name | --program-transform-name \
1274  | --program-transform-nam | --program-transform-na \
1275  | --program-transform-n | --program-transform- \
1276  | --program-transform | --program-transfor \
1277  | --program-transfo | --program-transf \
1278  | --program-trans | --program-tran \
1279  | --progr-tra | --program-tr | --program-t)
1280    ac_prev=program_transform_name ;;
1281  -program-transform-name=* | --program-transform-name=* \
1282  | --program-transform-nam=* | --program-transform-na=* \
1283  | --program-transform-n=* | --program-transform-=* \
1284  | --program-transform=* | --program-transfor=* \
1285  | --program-transfo=* | --program-transf=* \
1286  | --program-trans=* | --program-tran=* \
1287  | --progr-tra=* | --program-tr=* | --program-t=*)
1288    program_transform_name=$ac_optarg ;;
1289
1290  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1291    ac_prev=pdfdir ;;
1292  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1293    pdfdir=$ac_optarg ;;
1294
1295  -psdir | --psdir | --psdi | --psd | --ps)
1296    ac_prev=psdir ;;
1297  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1298    psdir=$ac_optarg ;;
1299
1300  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1301  | -silent | --silent | --silen | --sile | --sil)
1302    silent=yes ;;
1303
1304  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1305    ac_prev=sbindir ;;
1306  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1307  | --sbi=* | --sb=*)
1308    sbindir=$ac_optarg ;;
1309
1310  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1311  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1312  | --sharedst | --shareds | --shared | --share | --shar \
1313  | --sha | --sh)
1314    ac_prev=sharedstatedir ;;
1315  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1316  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1317  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1318  | --sha=* | --sh=*)
1319    sharedstatedir=$ac_optarg ;;
1320
1321  -site | --site | --sit)
1322    ac_prev=site ;;
1323  -site=* | --site=* | --sit=*)
1324    site=$ac_optarg ;;
1325
1326  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1327    ac_prev=srcdir ;;
1328  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1329    srcdir=$ac_optarg ;;
1330
1331  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1332  | --syscon | --sysco | --sysc | --sys | --sy)
1333    ac_prev=sysconfdir ;;
1334  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1335  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1336    sysconfdir=$ac_optarg ;;
1337
1338  -target | --target | --targe | --targ | --tar | --ta | --t)
1339    ac_prev=target_alias ;;
1340  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1341    target_alias=$ac_optarg ;;
1342
1343  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1344    verbose=yes ;;
1345
1346  -version | --version | --versio | --versi | --vers | -V)
1347    ac_init_version=: ;;
1348
1349  -with-* | --with-*)
1350    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1351    # Reject names that are not valid shell variable names.
1352    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1353      as_fn_error $? "invalid package name: $ac_useropt"
1354    ac_useropt_orig=$ac_useropt
1355    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1356    case $ac_user_opts in
1357      *"
1358"with_$ac_useropt"
1359"*) ;;
1360      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1361	 ac_unrecognized_sep=', ';;
1362    esac
1363    eval with_$ac_useropt=\$ac_optarg ;;
1364
1365  -without-* | --without-*)
1366    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1367    # Reject names that are not valid shell variable names.
1368    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1369      as_fn_error $? "invalid package name: $ac_useropt"
1370    ac_useropt_orig=$ac_useropt
1371    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1372    case $ac_user_opts in
1373      *"
1374"with_$ac_useropt"
1375"*) ;;
1376      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1377	 ac_unrecognized_sep=', ';;
1378    esac
1379    eval with_$ac_useropt=no ;;
1380
1381  --x)
1382    # Obsolete; use --with-x.
1383    with_x=yes ;;
1384
1385  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1386  | --x-incl | --x-inc | --x-in | --x-i)
1387    ac_prev=x_includes ;;
1388  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1389  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1390    x_includes=$ac_optarg ;;
1391
1392  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1393  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1394    ac_prev=x_libraries ;;
1395  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1396  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1397    x_libraries=$ac_optarg ;;
1398
1399  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1400Try \`$0 --help' for more information"
1401    ;;
1402
1403  *=*)
1404    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1405    # Reject names that are not valid shell variable names.
1406    case $ac_envvar in #(
1407      '' | [0-9]* | *[!_$as_cr_alnum]* )
1408      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1409    esac
1410    eval $ac_envvar=\$ac_optarg
1411    export $ac_envvar ;;
1412
1413  *)
1414    # FIXME: should be removed in autoconf 3.0.
1415    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1416    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1417      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1418    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1419    ;;
1420
1421  esac
1422done
1423
1424if test -n "$ac_prev"; then
1425  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1426  as_fn_error $? "missing argument to $ac_option"
1427fi
1428
1429if test -n "$ac_unrecognized_opts"; then
1430  case $enable_option_checking in
1431    no) ;;
1432    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1433    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1434  esac
1435fi
1436
1437# Check all directory arguments for consistency.
1438for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1439		datadir sysconfdir sharedstatedir localstatedir includedir \
1440		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1441		libdir localedir mandir
1442do
1443  eval ac_val=\$$ac_var
1444  # Remove trailing slashes.
1445  case $ac_val in
1446    */ )
1447      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1448      eval $ac_var=\$ac_val;;
1449  esac
1450  # Be sure to have absolute directory names.
1451  case $ac_val in
1452    [\\/$]* | ?:[\\/]* )  continue;;
1453    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1454  esac
1455  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1456done
1457
1458# There might be people who depend on the old broken behavior: `$host'
1459# used to hold the argument of --host etc.
1460# FIXME: To remove some day.
1461build=$build_alias
1462host=$host_alias
1463target=$target_alias
1464
1465# FIXME: To remove some day.
1466if test "x$host_alias" != x; then
1467  if test "x$build_alias" = x; then
1468    cross_compiling=maybe
1469    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1470    If a cross compiler is detected then cross compile mode will be used" >&2
1471  elif test "x$build_alias" != "x$host_alias"; then
1472    cross_compiling=yes
1473  fi
1474fi
1475
1476ac_tool_prefix=
1477test -n "$host_alias" && ac_tool_prefix=$host_alias-
1478
1479test "$silent" = yes && exec 6>/dev/null
1480
1481
1482ac_pwd=`pwd` && test -n "$ac_pwd" &&
1483ac_ls_di=`ls -di .` &&
1484ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1485  as_fn_error $? "working directory cannot be determined"
1486test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1487  as_fn_error $? "pwd does not report name of working directory"
1488
1489
1490# Find the source files, if location was not specified.
1491if test -z "$srcdir"; then
1492  ac_srcdir_defaulted=yes
1493  # Try the directory containing this script, then the parent directory.
1494  ac_confdir=`$as_dirname -- "$as_myself" ||
1495$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1496	 X"$as_myself" : 'X\(//\)[^/]' \| \
1497	 X"$as_myself" : 'X\(//\)$' \| \
1498	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1499$as_echo X"$as_myself" |
1500    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1501	    s//\1/
1502	    q
1503	  }
1504	  /^X\(\/\/\)[^/].*/{
1505	    s//\1/
1506	    q
1507	  }
1508	  /^X\(\/\/\)$/{
1509	    s//\1/
1510	    q
1511	  }
1512	  /^X\(\/\).*/{
1513	    s//\1/
1514	    q
1515	  }
1516	  s/.*/./; q'`
1517  srcdir=$ac_confdir
1518  if test ! -r "$srcdir/$ac_unique_file"; then
1519    srcdir=..
1520  fi
1521else
1522  ac_srcdir_defaulted=no
1523fi
1524if test ! -r "$srcdir/$ac_unique_file"; then
1525  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1526  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1527fi
1528ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1529ac_abs_confdir=`(
1530	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1531	pwd)`
1532# When building in place, set srcdir=.
1533if test "$ac_abs_confdir" = "$ac_pwd"; then
1534  srcdir=.
1535fi
1536# Remove unnecessary trailing slashes from srcdir.
1537# Double slashes in file names in object file debugging info
1538# mess up M-x gdb in Emacs.
1539case $srcdir in
1540*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1541esac
1542for ac_var in $ac_precious_vars; do
1543  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1544  eval ac_env_${ac_var}_value=\$${ac_var}
1545  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1546  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1547done
1548
1549#
1550# Report the --help message.
1551#
1552if test "$ac_init_help" = "long"; then
1553  # Omit some internal or obsolete options to make the list less imposing.
1554  # This message is too long to be a string in the A/UX 3.1 sh.
1555  cat <<_ACEOF
1556\`configure' configures openjdk version-0.1 to adapt to many kinds of systems.
1557
1558Usage: $0 [OPTION]... [VAR=VALUE]...
1559
1560To assign environment variables (e.g., CC, CFLAGS...), specify them as
1561VAR=VALUE.  See below for descriptions of some of the useful variables.
1562
1563Defaults for the options are specified in brackets.
1564
1565Configuration:
1566  -h, --help              display this help and exit
1567      --help=short        display options specific to this package
1568      --help=recursive    display the short help of all the included packages
1569  -V, --version           display version information and exit
1570  -q, --quiet, --silent   do not print \`checking ...' messages
1571      --cache-file=FILE   cache test results in FILE [disabled]
1572  -C, --config-cache      alias for \`--cache-file=config.cache'
1573  -n, --no-create         do not create output files
1574      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1575
1576Installation directories:
1577  --prefix=PREFIX         install architecture-independent files in PREFIX
1578                          [$ac_default_prefix]
1579  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1580                          [PREFIX]
1581
1582By default, \`make install' will install all the files in
1583\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1584an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1585for instance \`--prefix=\$HOME'.
1586
1587For better control, use the options below.
1588
1589Fine tuning of the installation directories:
1590  --bindir=DIR            user executables [EPREFIX/bin]
1591  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1592  --libexecdir=DIR        program executables [EPREFIX/libexec]
1593  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1594  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1595  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1596  --libdir=DIR            object code libraries [EPREFIX/lib]
1597  --includedir=DIR        C header files [PREFIX/include]
1598  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1599  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1600  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1601  --infodir=DIR           info documentation [DATAROOTDIR/info]
1602  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1603  --mandir=DIR            man documentation [DATAROOTDIR/man]
1604  --docdir=DIR            documentation root [DATAROOTDIR/doc/openjdk]
1605  --htmldir=DIR           html documentation [DOCDIR]
1606  --dvidir=DIR            dvi documentation [DOCDIR]
1607  --pdfdir=DIR            pdf documentation [DOCDIR]
1608  --psdir=DIR             ps documentation [DOCDIR]
1609_ACEOF
1610
1611  cat <<\_ACEOF
1612
1613X features:
1614  --x-includes=DIR    X include files are in DIR
1615  --x-libraries=DIR   X library files are in DIR
1616
1617System types:
1618  --build=BUILD     configure for building on BUILD [guessed]
1619  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1620_ACEOF
1621fi
1622
1623if test -n "$ac_init_help"; then
1624  case $ac_init_help in
1625     short | recursive ) echo "Configuration of openjdk version-0.1:";;
1626   esac
1627  cat <<\_ACEOF
1628
1629Optional Features:
1630  --disable-option-checking  ignore unrecognized --enable/--with options
1631  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1632  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1633  --enable-openjdk-only   build OpenJDK regardless of the presence of closed
1634                          repositories [disabled]
1635  --enable-jigsaw         build Jigsaw images (not yet available) [disabled]
1636  --disable-headful       build headful support (graphical UI support)
1637                          [enabled]
1638  --enable-debug          set the debug level to fastdebug (shorthand for
1639                          --with-debug-level=fastdebug) [disabled]
1640  --enable-list-builddeps list all build dependencies known to the configure
1641                          script
1642  --disable-ccache        use ccache to speed up recompilations [enabled]
1643  --disable-precompiled-headers
1644                          use precompiled headers when compiling C++ [enabled]
1645  --enable-javac-server   enable the shared javac server during the build
1646                          process [disabled]
1647  --enable-javac-deps     enable the dependency tracking between Java packages
1648                          [disabled]
1649  --enable-javac-multi-core
1650                          compile Java packages concurrently [disabled]
1651  --disable-macosx-runtime-support
1652                          disable the use of MacOSX Java runtime support
1653                          framework [enabled]
1654  --enable-docs           enable generation of Javadoc documentation
1655                          [disabled]
1656  --disable-nimbus        disable Nimbus L&F [enabled]
1657  --disable-static-link-stdc++
1658                          disable static linking of the C++ runtime on Linux
1659                          [enabled]
1660  --enable-hotspot-test-in-build
1661                          enable running of Queens test after Hotspot build
1662                          (not yet available) [disabled]
1663
1664Optional Packages:
1665  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1666  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1667  --with-data-model       build 32-bit or 64-bit binaries (for platforms that
1668                          support it), e.g. --with-data-model=32 [guessed]
1669  --with-num-cores        number of cores in the build system, e.g.
1670                          --with-num-cores=8 [probed]
1671  --with-memory-size      memory (in MB) available in the build system, e.g.
1672                          --with-memory-size=1024 [probed]
1673  --with-jdk-variant      JDK variant to build (normal, embedded) [normal]
1674  --with-jvm-variants     JVM variants (separated by commas) to build (server,
1675                          client, kernel, zero, zeroshark) [server]
1676  --with-debug-level      set the debug level (release, fastdebug, slowdebug)
1677                          [release]
1678  --with-msvcr100dll      copy this msvcr100.dll into the built JDK
1679  --with-builddeps-conf   use this configuration file for the builddeps
1680  --with-builddeps-server download and use build dependencies from this server
1681                          url, e.g.
1682                          --with-builddeps-server=ftp://example.com/dir
1683  --with-builddeps-dir    store downloaded build dependencies here
1684                          [d/localhome/builddeps]
1685  --with-builddeps-group  chgrp the downloaded build dependencies to this
1686                          group
1687  --with-sys-root         pass this sys-root to the compilers and linker
1688                          (useful if the sys-root encoded in the cross
1689                          compiler tools is incorrect)
1690  --with-ccache-dir       where to store ccache files [~/.ccache]
1691  --with-boot-jdk         path to Boot JDK (used to bootstrap build) [probed]
1692  --with-add-source-root  for each and every source directory, look in this
1693                          additional source root for the same directory; if it
1694                          exists and have files in it, include it in the build
1695  --with-override-source-root
1696                          for each and every source directory, look in this
1697                          override source root for the same directory; if it
1698                          exists, use that directory instead and ignore the
1699                          directory in the original source root
1700  --with-adds-and-overrides
1701                          use the subdirs 'adds' and 'overrides' in the
1702                          specified directory as add-source-root and
1703                          override-source-root
1704  --with-override-langtools
1705                          use this langtools dir for the build
1706  --with-override-corba   use this corba dir for the build
1707  --with-override-jaxp    use this jaxp dir for the build
1708  --with-override-jaxws   use this jaxws dir for the build
1709  --with-override-hotspot use this hotspot dir for the build
1710  --with-override-jdk     use this jdk dir for the build
1711  --with-boot-jdk-jvmargs specify JVM arguments to be passed to all
1712                          invocations of the Boot JDK, overriding the default
1713                          values, e.g --with-boot-jdk-jvmargs="-Xmx8G
1714                          -enableassertions"
1715  --with-server-java      use this java binary for running the javac
1716                          background server and other long running java tasks
1717                          in the build process, e.g.
1718                          ---with-server-java="/opt/jrockit/bin/java -server"
1719  --with-javac-server-cores
1720                          use at most this number of concurrent threads on the
1721                          javac server [probed]
1722  --with-x                use the X Window System
1723  --with-cups             specify prefix directory for the cups package
1724                          (expecting the libraries under PATH/lib and the
1725                          headers under PATH/include)
1726  --with-cups-include     specify directory for the cups include files
1727  --with-cups-lib         specify directory for the cups library
1728  --with-freetype         specify prefix directory for the freetype2 package
1729                          (expecting the libraries under PATH/lib and the
1730                          headers under PATH/include)
1731  --with-alsa             specify prefix directory for the alsa package
1732                          (expecting the libraries under PATH/lib and the
1733                          headers under PATH/include)
1734  --with-alsa-include     specify directory for the alsa include files
1735  --with-alsa-lib         specify directory for the alsa library
1736  --with-pulse            specify prefix directory for the pulseaudio package
1737                          (expecting the libraries under PATH/lib and the
1738                          headers under PATH/include)
1739  --with-pulse-include    specify directory for the pulseaudio include files
1740  --with-pulse-lib        specify directory for the pulseaudio library
1741  --with-cacerts-file     specify alternative cacerts file
1742
1743Some influential environment variables:
1744  PKG_CONFIG  path to pkg-config utility
1745  CC          C compiler command
1746  CFLAGS      C compiler flags
1747  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1748              nonstandard directory <lib dir>
1749  LIBS        libraries to pass to the linker, e.g. -l<library>
1750  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1751              you have headers in a nonstandard directory <include dir>
1752  CXX         C++ compiler command
1753  CXXFLAGS    C++ compiler flags
1754  OBJC        Objective C compiler command
1755  OBJCFLAGS   Objective C compiler flags
1756  CPP         C preprocessor
1757  CXXCPP      C++ preprocessor
1758  XMKMF       Path to xmkmf, Makefile generator for X Window System
1759  FREETYPE2_CFLAGS
1760              C compiler flags for FREETYPE2, overriding pkg-config
1761  FREETYPE2_LIBS
1762              linker flags for FREETYPE2, overriding pkg-config
1763  ALSA_CFLAGS C compiler flags for ALSA, overriding pkg-config
1764  ALSA_LIBS   linker flags for ALSA, overriding pkg-config
1765  LIBPULSE_CFLAGS
1766              C compiler flags for LIBPULSE, overriding pkg-config
1767  LIBPULSE_LIBS
1768              linker flags for LIBPULSE, overriding pkg-config
1769
1770Use these variables to override the choices made by `configure' or to help
1771it to find libraries and programs with nonstandard names/locations.
1772
1773Report bugs to <build-infra-dev@openjdk.java.net>.
1774_ACEOF
1775ac_status=$?
1776fi
1777
1778if test "$ac_init_help" = "recursive"; then
1779  # If there are subdirs, report their specific --help.
1780  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1781    test -d "$ac_dir" ||
1782      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1783      continue
1784    ac_builddir=.
1785
1786case "$ac_dir" in
1787.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1788*)
1789  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1790  # A ".." for each directory in $ac_dir_suffix.
1791  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1792  case $ac_top_builddir_sub in
1793  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1794  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1795  esac ;;
1796esac
1797ac_abs_top_builddir=$ac_pwd
1798ac_abs_builddir=$ac_pwd$ac_dir_suffix
1799# for backward compatibility:
1800ac_top_builddir=$ac_top_build_prefix
1801
1802case $srcdir in
1803  .)  # We are building in place.
1804    ac_srcdir=.
1805    ac_top_srcdir=$ac_top_builddir_sub
1806    ac_abs_top_srcdir=$ac_pwd ;;
1807  [\\/]* | ?:[\\/]* )  # Absolute name.
1808    ac_srcdir=$srcdir$ac_dir_suffix;
1809    ac_top_srcdir=$srcdir
1810    ac_abs_top_srcdir=$srcdir ;;
1811  *) # Relative name.
1812    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1813    ac_top_srcdir=$ac_top_build_prefix$srcdir
1814    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1815esac
1816ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1817
1818    cd "$ac_dir" || { ac_status=$?; continue; }
1819    # Check for guested configure.
1820    if test -f "$ac_srcdir/configure.gnu"; then
1821      echo &&
1822      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1823    elif test -f "$ac_srcdir/configure"; then
1824      echo &&
1825      $SHELL "$ac_srcdir/configure" --help=recursive
1826    else
1827      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1828    fi || ac_status=$?
1829    cd "$ac_pwd" || { ac_status=$?; break; }
1830  done
1831fi
1832
1833test -n "$ac_init_help" && exit $ac_status
1834if $ac_init_version; then
1835  cat <<\_ACEOF
1836openjdk configure version-0.1
1837generated by GNU Autoconf 2.67
1838
1839Copyright (C) 2010 Free Software Foundation, Inc.
1840This configure script is free software; the Free Software Foundation
1841gives unlimited permission to copy, distribute and modify it.
1842_ACEOF
1843  exit
1844fi
1845
1846## ------------------------ ##
1847## Autoconf initialization. ##
1848## ------------------------ ##
1849
1850# ac_fn_c_try_compile LINENO
1851# --------------------------
1852# Try to compile conftest.$ac_ext, and return whether this succeeded.
1853ac_fn_c_try_compile ()
1854{
1855  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856  rm -f conftest.$ac_objext
1857  if { { ac_try="$ac_compile"
1858case "(($ac_try" in
1859  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860  *) ac_try_echo=$ac_try;;
1861esac
1862eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863$as_echo "$ac_try_echo"; } >&5
1864  (eval "$ac_compile") 2>conftest.err
1865  ac_status=$?
1866  if test -s conftest.err; then
1867    grep -v '^ *+' conftest.err >conftest.er1
1868    cat conftest.er1 >&5
1869    mv -f conftest.er1 conftest.err
1870  fi
1871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872  test $ac_status = 0; } && {
1873	 test -z "$ac_c_werror_flag" ||
1874	 test ! -s conftest.err
1875       } && test -s conftest.$ac_objext; then :
1876  ac_retval=0
1877else
1878  $as_echo "$as_me: failed program was:" >&5
1879sed 's/^/| /' conftest.$ac_ext >&5
1880
1881	ac_retval=1
1882fi
1883  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1884  as_fn_set_status $ac_retval
1885
1886} # ac_fn_c_try_compile
1887
1888# ac_fn_cxx_try_compile LINENO
1889# ----------------------------
1890# Try to compile conftest.$ac_ext, and return whether this succeeded.
1891ac_fn_cxx_try_compile ()
1892{
1893  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1894  rm -f conftest.$ac_objext
1895  if { { ac_try="$ac_compile"
1896case "(($ac_try" in
1897  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1898  *) ac_try_echo=$ac_try;;
1899esac
1900eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1901$as_echo "$ac_try_echo"; } >&5
1902  (eval "$ac_compile") 2>conftest.err
1903  ac_status=$?
1904  if test -s conftest.err; then
1905    grep -v '^ *+' conftest.err >conftest.er1
1906    cat conftest.er1 >&5
1907    mv -f conftest.er1 conftest.err
1908  fi
1909  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1910  test $ac_status = 0; } && {
1911	 test -z "$ac_cxx_werror_flag" ||
1912	 test ! -s conftest.err
1913       } && test -s conftest.$ac_objext; then :
1914  ac_retval=0
1915else
1916  $as_echo "$as_me: failed program was:" >&5
1917sed 's/^/| /' conftest.$ac_ext >&5
1918
1919	ac_retval=1
1920fi
1921  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1922  as_fn_set_status $ac_retval
1923
1924} # ac_fn_cxx_try_compile
1925
1926# ac_fn_objc_try_compile LINENO
1927# -----------------------------
1928# Try to compile conftest.$ac_ext, and return whether this succeeded.
1929ac_fn_objc_try_compile ()
1930{
1931  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1932  rm -f conftest.$ac_objext
1933  if { { ac_try="$ac_compile"
1934case "(($ac_try" in
1935  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1936  *) ac_try_echo=$ac_try;;
1937esac
1938eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1939$as_echo "$ac_try_echo"; } >&5
1940  (eval "$ac_compile") 2>conftest.err
1941  ac_status=$?
1942  if test -s conftest.err; then
1943    grep -v '^ *+' conftest.err >conftest.er1
1944    cat conftest.er1 >&5
1945    mv -f conftest.er1 conftest.err
1946  fi
1947  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1948  test $ac_status = 0; } && {
1949	 test -z "$ac_objc_werror_flag" ||
1950	 test ! -s conftest.err
1951       } && test -s conftest.$ac_objext; then :
1952  ac_retval=0
1953else
1954  $as_echo "$as_me: failed program was:" >&5
1955sed 's/^/| /' conftest.$ac_ext >&5
1956
1957	ac_retval=1
1958fi
1959  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960  as_fn_set_status $ac_retval
1961
1962} # ac_fn_objc_try_compile
1963
1964# ac_fn_c_try_cpp LINENO
1965# ----------------------
1966# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1967ac_fn_c_try_cpp ()
1968{
1969  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970  if { { ac_try="$ac_cpp conftest.$ac_ext"
1971case "(($ac_try" in
1972  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1973  *) ac_try_echo=$ac_try;;
1974esac
1975eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1976$as_echo "$ac_try_echo"; } >&5
1977  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1978  ac_status=$?
1979  if test -s conftest.err; then
1980    grep -v '^ *+' conftest.err >conftest.er1
1981    cat conftest.er1 >&5
1982    mv -f conftest.er1 conftest.err
1983  fi
1984  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1985  test $ac_status = 0; } > conftest.i && {
1986	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1987	 test ! -s conftest.err
1988       }; then :
1989  ac_retval=0
1990else
1991  $as_echo "$as_me: failed program was:" >&5
1992sed 's/^/| /' conftest.$ac_ext >&5
1993
1994    ac_retval=1
1995fi
1996  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1997  as_fn_set_status $ac_retval
1998
1999} # ac_fn_c_try_cpp
2000
2001# ac_fn_cxx_try_cpp LINENO
2002# ------------------------
2003# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2004ac_fn_cxx_try_cpp ()
2005{
2006  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2007  if { { ac_try="$ac_cpp conftest.$ac_ext"
2008case "(($ac_try" in
2009  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2010  *) ac_try_echo=$ac_try;;
2011esac
2012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2013$as_echo "$ac_try_echo"; } >&5
2014  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2015  ac_status=$?
2016  if test -s conftest.err; then
2017    grep -v '^ *+' conftest.err >conftest.er1
2018    cat conftest.er1 >&5
2019    mv -f conftest.er1 conftest.err
2020  fi
2021  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2022  test $ac_status = 0; } > conftest.i && {
2023	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2024	 test ! -s conftest.err
2025       }; then :
2026  ac_retval=0
2027else
2028  $as_echo "$as_me: failed program was:" >&5
2029sed 's/^/| /' conftest.$ac_ext >&5
2030
2031    ac_retval=1
2032fi
2033  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2034  as_fn_set_status $ac_retval
2035
2036} # ac_fn_cxx_try_cpp
2037
2038# ac_fn_cxx_try_link LINENO
2039# -------------------------
2040# Try to link conftest.$ac_ext, and return whether this succeeded.
2041ac_fn_cxx_try_link ()
2042{
2043  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2044  rm -f conftest.$ac_objext conftest$ac_exeext
2045  if { { ac_try="$ac_link"
2046case "(($ac_try" in
2047  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2048  *) ac_try_echo=$ac_try;;
2049esac
2050eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2051$as_echo "$ac_try_echo"; } >&5
2052  (eval "$ac_link") 2>conftest.err
2053  ac_status=$?
2054  if test -s conftest.err; then
2055    grep -v '^ *+' conftest.err >conftest.er1
2056    cat conftest.er1 >&5
2057    mv -f conftest.er1 conftest.err
2058  fi
2059  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2060  test $ac_status = 0; } && {
2061	 test -z "$ac_cxx_werror_flag" ||
2062	 test ! -s conftest.err
2063       } && test -s conftest$ac_exeext && {
2064	 test "$cross_compiling" = yes ||
2065	 $as_test_x conftest$ac_exeext
2066       }; then :
2067  ac_retval=0
2068else
2069  $as_echo "$as_me: failed program was:" >&5
2070sed 's/^/| /' conftest.$ac_ext >&5
2071
2072	ac_retval=1
2073fi
2074  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2075  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2076  # interfere with the next link command; also delete a directory that is
2077  # left behind by Apple's compiler.  We do this before executing the actions.
2078  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2079  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2080  as_fn_set_status $ac_retval
2081
2082} # ac_fn_cxx_try_link
2083
2084# ac_fn_cxx_try_run LINENO
2085# ------------------------
2086# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2087# that executables *can* be run.
2088ac_fn_cxx_try_run ()
2089{
2090  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2091  if { { ac_try="$ac_link"
2092case "(($ac_try" in
2093  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094  *) ac_try_echo=$ac_try;;
2095esac
2096eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097$as_echo "$ac_try_echo"; } >&5
2098  (eval "$ac_link") 2>&5
2099  ac_status=$?
2100  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2102  { { case "(($ac_try" in
2103  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2104  *) ac_try_echo=$ac_try;;
2105esac
2106eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2107$as_echo "$ac_try_echo"; } >&5
2108  (eval "$ac_try") 2>&5
2109  ac_status=$?
2110  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2111  test $ac_status = 0; }; }; then :
2112  ac_retval=0
2113else
2114  $as_echo "$as_me: program exited with status $ac_status" >&5
2115       $as_echo "$as_me: failed program was:" >&5
2116sed 's/^/| /' conftest.$ac_ext >&5
2117
2118       ac_retval=$ac_status
2119fi
2120  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2121  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2122  as_fn_set_status $ac_retval
2123
2124} # ac_fn_cxx_try_run
2125
2126# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES
2127# ----------------------------------------------
2128# Tries to find the compile-time value of EXPR in a program that includes
2129# INCLUDES, setting VAR accordingly. Returns whether the value could be
2130# computed
2131ac_fn_cxx_compute_int ()
2132{
2133  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2134  if test "$cross_compiling" = yes; then
2135    # Depending upon the size, compute the lo and hi bounds.
2136cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2137/* end confdefs.h.  */
2138$4
2139int
2140main ()
2141{
2142static int test_array [1 - 2 * !(($2) >= 0)];
2143test_array [0] = 0
2144
2145  ;
2146  return 0;
2147}
2148_ACEOF
2149if ac_fn_cxx_try_compile "$LINENO"; then :
2150  ac_lo=0 ac_mid=0
2151  while :; do
2152    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2153/* end confdefs.h.  */
2154$4
2155int
2156main ()
2157{
2158static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2159test_array [0] = 0
2160
2161  ;
2162  return 0;
2163}
2164_ACEOF
2165if ac_fn_cxx_try_compile "$LINENO"; then :
2166  ac_hi=$ac_mid; break
2167else
2168  as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2169			if test $ac_lo -le $ac_mid; then
2170			  ac_lo= ac_hi=
2171			  break
2172			fi
2173			as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2174fi
2175rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176  done
2177else
2178  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179/* end confdefs.h.  */
2180$4
2181int
2182main ()
2183{
2184static int test_array [1 - 2 * !(($2) < 0)];
2185test_array [0] = 0
2186
2187  ;
2188  return 0;
2189}
2190_ACEOF
2191if ac_fn_cxx_try_compile "$LINENO"; then :
2192  ac_hi=-1 ac_mid=-1
2193  while :; do
2194    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2195/* end confdefs.h.  */
2196$4
2197int
2198main ()
2199{
2200static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2201test_array [0] = 0
2202
2203  ;
2204  return 0;
2205}
2206_ACEOF
2207if ac_fn_cxx_try_compile "$LINENO"; then :
2208  ac_lo=$ac_mid; break
2209else
2210  as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2211			if test $ac_mid -le $ac_hi; then
2212			  ac_lo= ac_hi=
2213			  break
2214			fi
2215			as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2216fi
2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2218  done
2219else
2220  ac_lo= ac_hi=
2221fi
2222rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2223fi
2224rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2225# Binary search between lo and hi bounds.
2226while test "x$ac_lo" != "x$ac_hi"; do
2227  as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2228  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2229/* end confdefs.h.  */
2230$4
2231int
2232main ()
2233{
2234static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2235test_array [0] = 0
2236
2237  ;
2238  return 0;
2239}
2240_ACEOF
2241if ac_fn_cxx_try_compile "$LINENO"; then :
2242  ac_hi=$ac_mid
2243else
2244  as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2245fi
2246rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247done
2248case $ac_lo in #((
2249?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2250'') ac_retval=1 ;;
2251esac
2252  else
2253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2254/* end confdefs.h.  */
2255$4
2256static long int longval () { return $2; }
2257static unsigned long int ulongval () { return $2; }
2258#include <stdio.h>
2259#include <stdlib.h>
2260int
2261main ()
2262{
2263
2264  FILE *f = fopen ("conftest.val", "w");
2265  if (! f)
2266    return 1;
2267  if (($2) < 0)
2268    {
2269      long int i = longval ();
2270      if (i != ($2))
2271	return 1;
2272      fprintf (f, "%ld", i);
2273    }
2274  else
2275    {
2276      unsigned long int i = ulongval ();
2277      if (i != ($2))
2278	return 1;
2279      fprintf (f, "%lu", i);
2280    }
2281  /* Do not output a trailing newline, as this causes \r\n confusion
2282     on some platforms.  */
2283  return ferror (f) || fclose (f) != 0;
2284
2285  ;
2286  return 0;
2287}
2288_ACEOF
2289if ac_fn_cxx_try_run "$LINENO"; then :
2290  echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2291else
2292  ac_retval=1
2293fi
2294rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2295  conftest.$ac_objext conftest.beam conftest.$ac_ext
2296rm -f conftest.val
2297
2298  fi
2299  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2300  as_fn_set_status $ac_retval
2301
2302} # ac_fn_cxx_compute_int
2303
2304# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
2305# ---------------------------------------------------------
2306# Tests whether HEADER exists and can be compiled using the include files in
2307# INCLUDES, setting the cache variable VAR accordingly.
2308ac_fn_cxx_check_header_compile ()
2309{
2310  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2311  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2312$as_echo_n "checking for $2... " >&6; }
2313if eval "test \"\${$3+set}\"" = set; then :
2314  $as_echo_n "(cached) " >&6
2315else
2316  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2317/* end confdefs.h.  */
2318$4
2319#include <$2>
2320_ACEOF
2321if ac_fn_cxx_try_compile "$LINENO"; then :
2322  eval "$3=yes"
2323else
2324  eval "$3=no"
2325fi
2326rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2327fi
2328eval ac_res=\$$3
2329	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2330$as_echo "$ac_res" >&6; }
2331  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2332
2333} # ac_fn_cxx_check_header_compile
2334
2335# ac_fn_cxx_check_func LINENO FUNC VAR
2336# ------------------------------------
2337# Tests whether FUNC exists, setting the cache variable VAR accordingly
2338ac_fn_cxx_check_func ()
2339{
2340  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2341  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2342$as_echo_n "checking for $2... " >&6; }
2343if eval "test \"\${$3+set}\"" = set; then :
2344  $as_echo_n "(cached) " >&6
2345else
2346  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2347/* end confdefs.h.  */
2348/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2349   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2350#define $2 innocuous_$2
2351
2352/* System header to define __stub macros and hopefully few prototypes,
2353    which can conflict with char $2 (); below.
2354    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2355    <limits.h> exists even on freestanding compilers.  */
2356
2357#ifdef __STDC__
2358# include <limits.h>
2359#else
2360# include <assert.h>
2361#endif
2362
2363#undef $2
2364
2365/* Override any GCC internal prototype to avoid an error.
2366   Use char because int might match the return type of a GCC
2367   builtin and then its argument prototype would still apply.  */
2368#ifdef __cplusplus
2369extern "C"
2370#endif
2371char $2 ();
2372/* The GNU C library defines this for functions which it implements
2373    to always fail with ENOSYS.  Some functions are actually named
2374    something starting with __ and the normal name is an alias.  */
2375#if defined __stub_$2 || defined __stub___$2
2376choke me
2377#endif
2378
2379int
2380main ()
2381{
2382return $2 ();
2383  ;
2384  return 0;
2385}
2386_ACEOF
2387if ac_fn_cxx_try_link "$LINENO"; then :
2388  eval "$3=yes"
2389else
2390  eval "$3=no"
2391fi
2392rm -f core conftest.err conftest.$ac_objext \
2393    conftest$ac_exeext conftest.$ac_ext
2394fi
2395eval ac_res=\$$3
2396	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2397$as_echo "$ac_res" >&6; }
2398  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2399
2400} # ac_fn_cxx_check_func
2401
2402# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2403# -------------------------------------------------------
2404# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2405# the include files in INCLUDES and setting the cache variable VAR
2406# accordingly.
2407ac_fn_c_check_header_mongrel ()
2408{
2409  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2410  if eval "test \"\${$3+set}\"" = set; then :
2411  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2412$as_echo_n "checking for $2... " >&6; }
2413if eval "test \"\${$3+set}\"" = set; then :
2414  $as_echo_n "(cached) " >&6
2415fi
2416eval ac_res=\$$3
2417	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2418$as_echo "$ac_res" >&6; }
2419else
2420  # Is the header compilable?
2421{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2422$as_echo_n "checking $2 usability... " >&6; }
2423cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2424/* end confdefs.h.  */
2425$4
2426#include <$2>
2427_ACEOF
2428if ac_fn_c_try_compile "$LINENO"; then :
2429  ac_header_compiler=yes
2430else
2431  ac_header_compiler=no
2432fi
2433rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2435$as_echo "$ac_header_compiler" >&6; }
2436
2437# Is the header present?
2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2439$as_echo_n "checking $2 presence... " >&6; }
2440cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2441/* end confdefs.h.  */
2442#include <$2>
2443_ACEOF
2444if ac_fn_c_try_cpp "$LINENO"; then :
2445  ac_header_preproc=yes
2446else
2447  ac_header_preproc=no
2448fi
2449rm -f conftest.err conftest.i conftest.$ac_ext
2450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2451$as_echo "$ac_header_preproc" >&6; }
2452
2453# So?  What about this header?
2454case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2455  yes:no: )
2456    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2457$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2458    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2459$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2460    ;;
2461  no:yes:* )
2462    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2463$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2464    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2465$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2466    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2467$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2468    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2469$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2470    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2471$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2472( $as_echo "## ----------------------------------------------- ##
2473## Report this to build-infra-dev@openjdk.java.net ##
2474## ----------------------------------------------- ##"
2475     ) | sed "s/^/$as_me: WARNING:     /" >&2
2476    ;;
2477esac
2478  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2479$as_echo_n "checking for $2... " >&6; }
2480if eval "test \"\${$3+set}\"" = set; then :
2481  $as_echo_n "(cached) " >&6
2482else
2483  eval "$3=\$ac_header_compiler"
2484fi
2485eval ac_res=\$$3
2486	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2487$as_echo "$ac_res" >&6; }
2488fi
2489  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2490
2491} # ac_fn_c_check_header_mongrel
2492
2493# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2494# ---------------------------------------------------------
2495# Tests whether HEADER exists, giving a warning if it cannot be compiled using
2496# the include files in INCLUDES and setting the cache variable VAR
2497# accordingly.
2498ac_fn_cxx_check_header_mongrel ()
2499{
2500  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2501  if eval "test \"\${$3+set}\"" = set; then :
2502  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2503$as_echo_n "checking for $2... " >&6; }
2504if eval "test \"\${$3+set}\"" = set; then :
2505  $as_echo_n "(cached) " >&6
2506fi
2507eval ac_res=\$$3
2508	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2509$as_echo "$ac_res" >&6; }
2510else
2511  # Is the header compilable?
2512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2513$as_echo_n "checking $2 usability... " >&6; }
2514cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2515/* end confdefs.h.  */
2516$4
2517#include <$2>
2518_ACEOF
2519if ac_fn_cxx_try_compile "$LINENO"; then :
2520  ac_header_compiler=yes
2521else
2522  ac_header_compiler=no
2523fi
2524rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2525{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2526$as_echo "$ac_header_compiler" >&6; }
2527
2528# Is the header present?
2529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2530$as_echo_n "checking $2 presence... " >&6; }
2531cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2532/* end confdefs.h.  */
2533#include <$2>
2534_ACEOF
2535if ac_fn_cxx_try_cpp "$LINENO"; then :
2536  ac_header_preproc=yes
2537else
2538  ac_header_preproc=no
2539fi
2540rm -f conftest.err conftest.i conftest.$ac_ext
2541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2542$as_echo "$ac_header_preproc" >&6; }
2543
2544# So?  What about this header?
2545case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2546  yes:no: )
2547    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2548$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2549    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2550$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2551    ;;
2552  no:yes:* )
2553    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2554$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2555    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
2556$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
2557    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2558$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2559    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
2560$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
2561    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2562$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2563( $as_echo "## ----------------------------------------------- ##
2564## Report this to build-infra-dev@openjdk.java.net ##
2565## ----------------------------------------------- ##"
2566     ) | sed "s/^/$as_me: WARNING:     /" >&2
2567    ;;
2568esac
2569  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2570$as_echo_n "checking for $2... " >&6; }
2571if eval "test \"\${$3+set}\"" = set; then :
2572  $as_echo_n "(cached) " >&6
2573else
2574  eval "$3=\$ac_header_compiler"
2575fi
2576eval ac_res=\$$3
2577	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2578$as_echo "$ac_res" >&6; }
2579fi
2580  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2581
2582} # ac_fn_cxx_check_header_mongrel
2583cat >config.log <<_ACEOF
2584This file contains any messages produced by compilers while
2585running configure, to aid debugging if configure makes a mistake.
2586
2587It was created by openjdk $as_me version-0.1, which was
2588generated by GNU Autoconf 2.67.  Invocation command line was
2589
2590  $ $0 $@
2591
2592_ACEOF
2593exec 5>>config.log
2594{
2595cat <<_ASUNAME
2596## --------- ##
2597## Platform. ##
2598## --------- ##
2599
2600hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2601uname -m = `(uname -m) 2>/dev/null || echo unknown`
2602uname -r = `(uname -r) 2>/dev/null || echo unknown`
2603uname -s = `(uname -s) 2>/dev/null || echo unknown`
2604uname -v = `(uname -v) 2>/dev/null || echo unknown`
2605
2606/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2607/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2608
2609/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2610/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2611/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2612/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2613/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2614/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2615/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2616
2617_ASUNAME
2618
2619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2620for as_dir in $PATH
2621do
2622  IFS=$as_save_IFS
2623  test -z "$as_dir" && as_dir=.
2624    $as_echo "PATH: $as_dir"
2625  done
2626IFS=$as_save_IFS
2627
2628} >&5
2629
2630cat >&5 <<_ACEOF
2631
2632
2633## ----------- ##
2634## Core tests. ##
2635## ----------- ##
2636
2637_ACEOF
2638
2639
2640# Keep a trace of the command line.
2641# Strip out --no-create and --no-recursion so they do not pile up.
2642# Strip out --silent because we don't want to record it for future runs.
2643# Also quote any args containing shell meta-characters.
2644# Make two passes to allow for proper duplicate-argument suppression.
2645ac_configure_args=
2646ac_configure_args0=
2647ac_configure_args1=
2648ac_must_keep_next=false
2649for ac_pass in 1 2
2650do
2651  for ac_arg
2652  do
2653    case $ac_arg in
2654    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2655    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2656    | -silent | --silent | --silen | --sile | --sil)
2657      continue ;;
2658    *\'*)
2659      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2660    esac
2661    case $ac_pass in
2662    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2663    2)
2664      as_fn_append ac_configure_args1 " '$ac_arg'"
2665      if test $ac_must_keep_next = true; then
2666	ac_must_keep_next=false # Got value, back to normal.
2667      else
2668	case $ac_arg in
2669	  *=* | --config-cache | -C | -disable-* | --disable-* \
2670	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2671	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2672	  | -with-* | --with-* | -without-* | --without-* | --x)
2673	    case "$ac_configure_args0 " in
2674	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2675	    esac
2676	    ;;
2677	  -* ) ac_must_keep_next=true ;;
2678	esac
2679      fi
2680      as_fn_append ac_configure_args " '$ac_arg'"
2681      ;;
2682    esac
2683  done
2684done
2685{ ac_configure_args0=; unset ac_configure_args0;}
2686{ ac_configure_args1=; unset ac_configure_args1;}
2687
2688# When interrupted or exit'd, cleanup temporary files, and complete
2689# config.log.  We remove comments because anyway the quotes in there
2690# would cause problems or look ugly.
2691# WARNING: Use '\'' to represent an apostrophe within the trap.
2692# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2693trap 'exit_status=$?
2694  # Save into config.log some information that might help in debugging.
2695  {
2696    echo
2697
2698    $as_echo "## ---------------- ##
2699## Cache variables. ##
2700## ---------------- ##"
2701    echo
2702    # The following way of writing the cache mishandles newlines in values,
2703(
2704  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2705    eval ac_val=\$$ac_var
2706    case $ac_val in #(
2707    *${as_nl}*)
2708      case $ac_var in #(
2709      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2710$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2711      esac
2712      case $ac_var in #(
2713      _ | IFS | as_nl) ;; #(
2714      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2715      *) { eval $ac_var=; unset $ac_var;} ;;
2716      esac ;;
2717    esac
2718  done
2719  (set) 2>&1 |
2720    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2721    *${as_nl}ac_space=\ *)
2722      sed -n \
2723	"s/'\''/'\''\\\\'\'''\''/g;
2724	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2725      ;; #(
2726    *)
2727      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2728      ;;
2729    esac |
2730    sort
2731)
2732    echo
2733
2734    $as_echo "## ----------------- ##
2735## Output variables. ##
2736## ----------------- ##"
2737    echo
2738    for ac_var in $ac_subst_vars
2739    do
2740      eval ac_val=\$$ac_var
2741      case $ac_val in
2742      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2743      esac
2744      $as_echo "$ac_var='\''$ac_val'\''"
2745    done | sort
2746    echo
2747
2748    if test -n "$ac_subst_files"; then
2749      $as_echo "## ------------------- ##
2750## File substitutions. ##
2751## ------------------- ##"
2752      echo
2753      for ac_var in $ac_subst_files
2754      do
2755	eval ac_val=\$$ac_var
2756	case $ac_val in
2757	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2758	esac
2759	$as_echo "$ac_var='\''$ac_val'\''"
2760      done | sort
2761      echo
2762    fi
2763
2764    if test -s confdefs.h; then
2765      $as_echo "## ----------- ##
2766## confdefs.h. ##
2767## ----------- ##"
2768      echo
2769      cat confdefs.h
2770      echo
2771    fi
2772    test "$ac_signal" != 0 &&
2773      $as_echo "$as_me: caught signal $ac_signal"
2774    $as_echo "$as_me: exit $exit_status"
2775  } >&5
2776  rm -f core *.core core.conftest.* &&
2777    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2778    exit $exit_status
2779' 0
2780for ac_signal in 1 2 13 15; do
2781  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2782done
2783ac_signal=0
2784
2785# confdefs.h avoids OS command line length limits that DEFS can exceed.
2786rm -f -r conftest* confdefs.h
2787
2788$as_echo "/* confdefs.h */" > confdefs.h
2789
2790# Predefined preprocessor variables.
2791
2792cat >>confdefs.h <<_ACEOF
2793#define PACKAGE_NAME "$PACKAGE_NAME"
2794_ACEOF
2795
2796cat >>confdefs.h <<_ACEOF
2797#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2798_ACEOF
2799
2800cat >>confdefs.h <<_ACEOF
2801#define PACKAGE_VERSION "$PACKAGE_VERSION"
2802_ACEOF
2803
2804cat >>confdefs.h <<_ACEOF
2805#define PACKAGE_STRING "$PACKAGE_STRING"
2806_ACEOF
2807
2808cat >>confdefs.h <<_ACEOF
2809#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2810_ACEOF
2811
2812cat >>confdefs.h <<_ACEOF
2813#define PACKAGE_URL "$PACKAGE_URL"
2814_ACEOF
2815
2816
2817# Let the site file select an alternate cache file if it wants to.
2818# Prefer an explicitly selected file to automatically selected ones.
2819ac_site_file1=NONE
2820ac_site_file2=NONE
2821if test -n "$CONFIG_SITE"; then
2822  # We do not want a PATH search for config.site.
2823  case $CONFIG_SITE in #((
2824    -*)  ac_site_file1=./$CONFIG_SITE;;
2825    */*) ac_site_file1=$CONFIG_SITE;;
2826    *)   ac_site_file1=./$CONFIG_SITE;;
2827  esac
2828elif test "x$prefix" != xNONE; then
2829  ac_site_file1=$prefix/share/config.site
2830  ac_site_file2=$prefix/etc/config.site
2831else
2832  ac_site_file1=$ac_default_prefix/share/config.site
2833  ac_site_file2=$ac_default_prefix/etc/config.site
2834fi
2835for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2836do
2837  test "x$ac_site_file" = xNONE && continue
2838  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2839    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2840$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2841    sed 's/^/| /' "$ac_site_file" >&5
2842    . "$ac_site_file" \
2843      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2845as_fn_error $? "failed to load site script $ac_site_file
2846See \`config.log' for more details" "$LINENO" 5 ; }
2847  fi
2848done
2849
2850if test -r "$cache_file"; then
2851  # Some versions of bash will fail to source /dev/null (special files
2852  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2853  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2854    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2855$as_echo "$as_me: loading cache $cache_file" >&6;}
2856    case $cache_file in
2857      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2858      *)                      . "./$cache_file";;
2859    esac
2860  fi
2861else
2862  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2863$as_echo "$as_me: creating cache $cache_file" >&6;}
2864  >$cache_file
2865fi
2866
2867# Check that the precious variables saved in the cache have kept the same
2868# value.
2869ac_cache_corrupted=false
2870for ac_var in $ac_precious_vars; do
2871  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2872  eval ac_new_set=\$ac_env_${ac_var}_set
2873  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2874  eval ac_new_val=\$ac_env_${ac_var}_value
2875  case $ac_old_set,$ac_new_set in
2876    set,)
2877      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2878$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2879      ac_cache_corrupted=: ;;
2880    ,set)
2881      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2882$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2883      ac_cache_corrupted=: ;;
2884    ,);;
2885    *)
2886      if test "x$ac_old_val" != "x$ac_new_val"; then
2887	# differences in whitespace do not lead to failure.
2888	ac_old_val_w=`echo x $ac_old_val`
2889	ac_new_val_w=`echo x $ac_new_val`
2890	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2891	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2892$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2893	  ac_cache_corrupted=:
2894	else
2895	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2896$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2897	  eval $ac_var=\$ac_old_val
2898	fi
2899	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2900$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2901	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2902$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2903      fi;;
2904  esac
2905  # Pass precious variables to config.status.
2906  if test "$ac_new_set" = set; then
2907    case $ac_new_val in
2908    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2909    *) ac_arg=$ac_var=$ac_new_val ;;
2910    esac
2911    case " $ac_configure_args " in
2912      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2913      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2914    esac
2915  fi
2916done
2917if $ac_cache_corrupted; then
2918  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2919$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2920  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2921$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2922  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2923fi
2924## -------------------- ##
2925## Main body of script. ##
2926## -------------------- ##
2927
2928ac_ext=c
2929ac_cpp='$CPP $CPPFLAGS'
2930ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2931ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2932ac_compiler_gnu=$ac_cv_c_compiler_gnu
2933
2934
2935
2936ac_aux_dir=
2937for ac_dir in build-aux "$srcdir"/build-aux; do
2938  if test -f "$ac_dir/install-sh"; then
2939    ac_aux_dir=$ac_dir
2940    ac_install_sh="$ac_aux_dir/install-sh -c"
2941    break
2942  elif test -f "$ac_dir/install.sh"; then
2943    ac_aux_dir=$ac_dir
2944    ac_install_sh="$ac_aux_dir/install.sh -c"
2945    break
2946  elif test -f "$ac_dir/shtool"; then
2947    ac_aux_dir=$ac_dir
2948    ac_install_sh="$ac_aux_dir/shtool install -c"
2949    break
2950  fi
2951done
2952if test -z "$ac_aux_dir"; then
2953  as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
2954fi
2955
2956# These three variables are undocumented and unsupported,
2957# and are intended to be withdrawn in a future Autoconf release.
2958# They can cause serious problems if a builder's source tree is in a directory
2959# whose full name contains unusual characters.
2960ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2961ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2962ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2963
2964
2965
2966# pkg.m4 - Macros to locate and utilise pkg-config.            -*- Autoconf -*-
2967#
2968# Copyright �� 2004 Scott James Remnant <scott@netsplit.com>.
2969#
2970# This program is free software; you can redistribute it and/or modify
2971# it under the terms of the GNU General Public License as published by
2972# the Free Software Foundation; either version 2 of the License, or
2973# (at your option) any later version.
2974#
2975# This program is distributed in the hope that it will be useful, but
2976# WITHOUT ANY WARRANTY; without even the implied warranty of
2977# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
2978# General Public License for more details.
2979#
2980# You should have received a copy of the GNU General Public License
2981# along with this program; if not, write to the Free Software
2982# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
2983#
2984# As a special exception to the GNU General Public License, if you
2985# distribute this file as part of a program that contains a
2986# configuration script generated by Autoconf, you may include it under
2987# the same distribution terms that you use for the rest of that program.
2988
2989# PKG_PROG_PKG_CONFIG([MIN-VERSION])
2990# ----------------------------------
2991# PKG_PROG_PKG_CONFIG
2992
2993# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
2994#
2995# Check to see whether a particular set of modules exists.  Similar
2996# to PKG_CHECK_MODULES(), but does not set variables or print errors.
2997#
2998#
2999# Similar to PKG_CHECK_MODULES, make sure that the first instance of
3000# this or PKG_CHECK_MODULES is called, or make sure to call
3001# PKG_CHECK_EXISTS manually
3002# --------------------------------------------------------------
3003
3004
3005
3006# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
3007# ---------------------------------------------
3008# _PKG_CONFIG
3009
3010# _PKG_SHORT_ERRORS_SUPPORTED
3011# -----------------------------
3012# _PKG_SHORT_ERRORS_SUPPORTED
3013
3014
3015# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
3016# [ACTION-IF-NOT-FOUND])
3017#
3018#
3019# Note that if there is a possibility the first call to
3020# PKG_CHECK_MODULES might not happen, you should be sure to include an
3021# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
3022#
3023#
3024# --------------------------------------------------------------
3025# PKG_CHECK_MODULES
3026
3027#
3028# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3029# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3030#
3031# This code is free software; you can redistribute it and/or modify it
3032# under the terms of the GNU General Public License version 2 only, as
3033# published by the Free Software Foundation.  Oracle designates this
3034# particular file as subject to the "Classpath" exception as provided
3035# by Oracle in the LICENSE file that accompanied this code.
3036#
3037# This code is distributed in the hope that it will be useful, but WITHOUT
3038# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3039# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3040# version 2 for more details (a copy is included in the LICENSE file that
3041# accompanied this code).
3042#
3043# You should have received a copy of the GNU General Public License version
3044# 2 along with this work; if not, write to the Free Software Foundation,
3045# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3046#
3047# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3048# or visit www.oracle.com if you need additional information or have any
3049# questions.
3050#
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060#
3061# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3062# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3063#
3064# This code is free software; you can redistribute it and/or modify it
3065# under the terms of the GNU General Public License version 2 only, as
3066# published by the Free Software Foundation.  Oracle designates this
3067# particular file as subject to the "Classpath" exception as provided
3068# by Oracle in the LICENSE file that accompanied this code.
3069#
3070# This code is distributed in the hope that it will be useful, but WITHOUT
3071# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3072# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3073# version 2 for more details (a copy is included in the LICENSE file that
3074# accompanied this code).
3075#
3076# You should have received a copy of the GNU General Public License version
3077# 2 along with this work; if not, write to the Free Software Foundation,
3078# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3079#
3080# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3081# or visit www.oracle.com if you need additional information or have any
3082# questions.
3083#
3084
3085
3086
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097
3098
3099
3100
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110
3111
3112
3113
3114
3115# Fixes paths on windows hosts to be mixed mode short.
3116
3117
3118
3119
3120#
3121# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3122# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3123#
3124# This code is free software; you can redistribute it and/or modify it
3125# under the terms of the GNU General Public License version 2 only, as
3126# published by the Free Software Foundation.  Oracle designates this
3127# particular file as subject to the "Classpath" exception as provided
3128# by Oracle in the LICENSE file that accompanied this code.
3129#
3130# This code is distributed in the hope that it will be useful, but WITHOUT
3131# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3132# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3133# version 2 for more details (a copy is included in the LICENSE file that
3134# accompanied this code).
3135#
3136# You should have received a copy of the GNU General Public License version
3137# 2 along with this work; if not, write to the Free Software Foundation,
3138# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3139#
3140# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3141# or visit www.oracle.com if you need additional information or have any
3142# questions.
3143#
3144
3145
3146
3147
3148
3149#
3150# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
3151# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3152#
3153# This code is free software; you can redistribute it and/or modify it
3154# under the terms of the GNU General Public License version 2 only, as
3155# published by the Free Software Foundation.  Oracle designates this
3156# particular file as subject to the "Classpath" exception as provided
3157# by Oracle in the LICENSE file that accompanied this code.
3158#
3159# This code is distributed in the hope that it will be useful, but WITHOUT
3160# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3161# FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
3162# version 2 for more details (a copy is included in the LICENSE file that
3163# accompanied this code).
3164#
3165# You should have received a copy of the GNU General Public License version
3166# 2 along with this work; if not, write to the Free Software Foundation,
3167# Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
3168#
3169# Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
3170# or visit www.oracle.com if you need additional information or have any
3171# questions.
3172#
3173
3174function prepare_help_system {
3175    for ac_prog in apt-get yum port pkgutil pkgadd
3176do
3177  # Extract the first word of "$ac_prog", so it can be a program name with args.
3178set dummy $ac_prog; ac_word=$2
3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3180$as_echo_n "checking for $ac_word... " >&6; }
3181if test "${ac_cv_prog_PKGHANDLER+set}" = set; then :
3182  $as_echo_n "(cached) " >&6
3183else
3184  if test -n "$PKGHANDLER"; then
3185  ac_cv_prog_PKGHANDLER="$PKGHANDLER" # Let the user override the test.
3186else
3187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188for as_dir in $PATH
3189do
3190  IFS=$as_save_IFS
3191  test -z "$as_dir" && as_dir=.
3192    for ac_exec_ext in '' $ac_executable_extensions; do
3193  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194    ac_cv_prog_PKGHANDLER="$ac_prog"
3195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3196    break 2
3197  fi
3198done
3199  done
3200IFS=$as_save_IFS
3201
3202fi
3203fi
3204PKGHANDLER=$ac_cv_prog_PKGHANDLER
3205if test -n "$PKGHANDLER"; then
3206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGHANDLER" >&5
3207$as_echo "$PKGHANDLER" >&6; }
3208else
3209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3210$as_echo "no" >&6; }
3211fi
3212
3213
3214  test -n "$PKGHANDLER" && break
3215done
3216
3217}
3218
3219function help_on_build_dependency {
3220    # Print a helpful message on how to acquire the necessary build dependency.
3221    # $1 is the help tag: freetyp2, cups, pulse, alsa etc
3222    MISSING_DEPENDENCY=$1
3223    PKGHANDLER_COMMAND=
3224
3225    case $PKGHANDLER in
3226	apt-get)
3227                apt_help     $MISSING_DEPENDENCY ;;
3228    yum)
3229                yum_help     $MISSING_DEPENDENCY ;;
3230	port)
3231                port_help    $MISSING_DEPENDENCY ;;
3232	pkgutil)
3233                pkgutil_help $MISSING_DEPENDENCY ;;
3234	pkgadd)
3235                pkgadd_help  $MISSING_DEPENDENCY ;;
3236    * )
3237      break ;;
3238    esac
3239
3240    if test "x$PKGHANDLER_COMMAND" != x; then
3241        HELP_MSG="You might be able to fix this by running '$PKGHANDLER_COMMAND'."
3242    fi
3243}
3244
3245function apt_help {
3246    case $1 in
3247    devkit)
3248        PKGHANDLER_COMMAND="sudo apt-get install build-essential" ;;
3249    openjdk)
3250        PKGHANDLER_COMMAND="sudo apt-get install openjdk-7-jdk" ;;
3251    alsa)
3252        PKGHANDLER_COMMAND="sudo apt-get install libasound2-dev" ;;
3253    cups)
3254        PKGHANDLER_COMMAND="sudo apt-get install libcups2-dev" ;;
3255    freetype2)
3256        PKGHANDLER_COMMAND="sudo apt-get install libfreetype6-dev" ;;
3257    pulse)
3258        PKGHANDLER_COMMAND="sudo apt-get install libpulse-dev" ;;
3259    x11)
3260        PKGHANDLER_COMMAND="sudo apt-get install libX11-dev libxext-dev libxrender-dev libxtst-dev" ;;
3261    ccache)
3262        PKGHANDLER_COMMAND="sudo apt-get install ccache" ;;
3263    * )
3264       break ;;
3265    esac
3266}
3267
3268function yum_help {
3269    case $1 in
3270    devkit)
3271        PKGHANDLER_COMMAND="sudo yum groupinstall \"Development Tools\"" ;;
3272    openjdk)
3273        PKGHANDLER_COMMAND="sudo yum install java-1.7.0-openjdk" ;;
3274    alsa)
3275        PKGHANDLER_COMMAND="sudo yum install alsa-lib-devel" ;;
3276    cups)
3277        PKGHANDLER_COMMAND="sudo yum install cups-devel" ;;
3278    freetype2)
3279        PKGHANDLER_COMMAND="sudo yum install freetype2-devel" ;;
3280    pulse)
3281        PKGHANDLER_COMMAND="sudo yum install pulseaudio-libs-devel" ;;
3282    x11)
3283        PKGHANDLER_COMMAND="sudo yum install libXtst-devel" ;;
3284    ccache)
3285        PKGHANDLER_COMMAND="sudo yum install ccache" ;;
3286    * )
3287       break ;;
3288    esac
3289}
3290
3291function port_help {
3292    PKGHANDLER_COMMAND=""
3293}
3294
3295function pkgutil_help {
3296    PKGHANDLER_COMMAND=""
3297}
3298
3299function pkgadd_help {
3300    PKGHANDLER_COMMAND=""
3301}
3302
3303
3304# Save the command line. Do this very early, before it is lost by calling autoconf macros.
3305CONFIGURE_COMMAND_LINE="$@"
3306
3307
3308# Locate the directory of this script.
3309SCRIPT="$0"
3310
3311    if test "x$BUILD_OS" != xwindows; then
3312        # Follow a chain of symbolic links. Use readlink
3313        # where it exists, else fall back to horribly
3314        # complicated shell code.
3315        # Extract the first word of "readlink", so it can be a program name with args.
3316set dummy readlink; ac_word=$2
3317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3318$as_echo_n "checking for $ac_word... " >&6; }
3319if test "${ac_cv_path_READLINK+set}" = set; then :
3320  $as_echo_n "(cached) " >&6
3321else
3322  case $READLINK in
3323  [\\/]* | ?:[\\/]*)
3324  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
3325  ;;
3326  *)
3327  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328for as_dir in $PATH
3329do
3330  IFS=$as_save_IFS
3331  test -z "$as_dir" && as_dir=.
3332    for ac_exec_ext in '' $ac_executable_extensions; do
3333  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3334    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
3335    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336    break 2
3337  fi
3338done
3339  done
3340IFS=$as_save_IFS
3341
3342  ;;
3343esac
3344fi
3345READLINK=$ac_cv_path_READLINK
3346if test -n "$READLINK"; then
3347  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
3348$as_echo "$READLINK" >&6; }
3349else
3350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3351$as_echo "no" >&6; }
3352fi
3353
3354
3355        if test "x$READLINK_TESTED" != yes; then
3356            # On MacOSX there is a readlink tool with a different
3357            # purpose than the GNU readlink tool. Check the found readlink.
3358            ISGNU=`$READLINK --help 2>&1 | grep GNU`
3359            if test "x$ISGNU" = x; then
3360                 # A readlink that we do not know how to use.
3361                 # Are there other non-GNU readlinks out there?
3362                 READLINK_TESTED=yes
3363                 READLINK=
3364            fi
3365        fi
3366
3367        if test "x$READLINK" != x; then
3368            SCRIPT=`$READLINK -f $SCRIPT`
3369        else
3370            STARTDIR=$PWD
3371            COUNTER=0
3372            DIR=`dirname $SCRIPT`
3373            FIL=`basename $SCRIPT`
3374            while test $COUNTER -lt 20; do
3375                ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
3376                if test "x$ISLINK" == x; then
3377                    # This is not a symbolic link! We are done!
3378                    break
3379                fi
3380                # The link might be relative! We have to use cd to travel safely.
3381                cd $DIR
3382                cd `dirname $ISLINK`
3383                DIR=`pwd`
3384                FIL=`basename $ISLINK`
3385                let COUNTER=COUNTER+1
3386            done
3387            cd $STARTDIR
3388            SCRIPT=$DIR/$FIL
3389        fi
3390    fi
3391
3392AUTOCONF_DIR=`dirname $0`
3393
3394# Start with tools that do not need have cross compilation support
3395# and can be expected to be found in the default PATH. These tools are
3396# used by configure. Nor are these tools expected to be found in the
3397# devkit from the builddeps server either, since they are
3398# needed to download the devkit.
3399for ac_prog in gawk mawk nawk awk
3400do
3401  # Extract the first word of "$ac_prog", so it can be a program name with args.
3402set dummy $ac_prog; ac_word=$2
3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3404$as_echo_n "checking for $ac_word... " >&6; }
3405if test "${ac_cv_prog_AWK+set}" = set; then :
3406  $as_echo_n "(cached) " >&6
3407else
3408  if test -n "$AWK"; then
3409  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3410else
3411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3412for as_dir in $PATH
3413do
3414  IFS=$as_save_IFS
3415  test -z "$as_dir" && as_dir=.
3416    for ac_exec_ext in '' $ac_executable_extensions; do
3417  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3418    ac_cv_prog_AWK="$ac_prog"
3419    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3420    break 2
3421  fi
3422done
3423  done
3424IFS=$as_save_IFS
3425
3426fi
3427fi
3428AWK=$ac_cv_prog_AWK
3429if test -n "$AWK"; then
3430  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3431$as_echo "$AWK" >&6; }
3432else
3433  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3434$as_echo "no" >&6; }
3435fi
3436
3437
3438  test -n "$AWK" && break
3439done
3440
3441
3442    # Test that variable AWK is not empty.
3443    if test "" = "$AWK"; then as_fn_error $? "Could not find awk !" "$LINENO" 5 ; fi
3444
3445# Extract the first word of "cat", so it can be a program name with args.
3446set dummy cat; ac_word=$2
3447{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3448$as_echo_n "checking for $ac_word... " >&6; }
3449if test "${ac_cv_path_CAT+set}" = set; then :
3450  $as_echo_n "(cached) " >&6
3451else
3452  case $CAT in
3453  [\\/]* | ?:[\\/]*)
3454  ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
3455  ;;
3456  *)
3457  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3458for as_dir in $PATH
3459do
3460  IFS=$as_save_IFS
3461  test -z "$as_dir" && as_dir=.
3462    for ac_exec_ext in '' $ac_executable_extensions; do
3463  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3464    ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
3465    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3466    break 2
3467  fi
3468done
3469  done
3470IFS=$as_save_IFS
3471
3472  ;;
3473esac
3474fi
3475CAT=$ac_cv_path_CAT
3476if test -n "$CAT"; then
3477  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAT" >&5
3478$as_echo "$CAT" >&6; }
3479else
3480  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3481$as_echo "no" >&6; }
3482fi
3483
3484
3485
3486    # Test that variable CAT is not empty.
3487    if test "" = "$CAT"; then as_fn_error $? "Could not find cat !" "$LINENO" 5 ; fi
3488
3489# Extract the first word of "chmod", so it can be a program name with args.
3490set dummy chmod; ac_word=$2
3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3492$as_echo_n "checking for $ac_word... " >&6; }
3493if test "${ac_cv_path_CHMOD+set}" = set; then :
3494  $as_echo_n "(cached) " >&6
3495else
3496  case $CHMOD in
3497  [\\/]* | ?:[\\/]*)
3498  ac_cv_path_CHMOD="$CHMOD" # Let the user override the test with a path.
3499  ;;
3500  *)
3501  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3502for as_dir in $PATH
3503do
3504  IFS=$as_save_IFS
3505  test -z "$as_dir" && as_dir=.
3506    for ac_exec_ext in '' $ac_executable_extensions; do
3507  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3508    ac_cv_path_CHMOD="$as_dir/$ac_word$ac_exec_ext"
3509    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3510    break 2
3511  fi
3512done
3513  done
3514IFS=$as_save_IFS
3515
3516  ;;
3517esac
3518fi
3519CHMOD=$ac_cv_path_CHMOD
3520if test -n "$CHMOD"; then
3521  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3522$as_echo "$CHMOD" >&6; }
3523else
3524  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525$as_echo "no" >&6; }
3526fi
3527
3528
3529
3530    # Test that variable CHMOD is not empty.
3531    if test "" = "$CHMOD"; then as_fn_error $? "Could not find chmod !" "$LINENO" 5 ; fi
3532
3533# Extract the first word of "cp", so it can be a program name with args.
3534set dummy cp; ac_word=$2
3535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536$as_echo_n "checking for $ac_word... " >&6; }
3537if test "${ac_cv_path_CP+set}" = set; then :
3538  $as_echo_n "(cached) " >&6
3539else
3540  case $CP in
3541  [\\/]* | ?:[\\/]*)
3542  ac_cv_path_CP="$CP" # Let the user override the test with a path.
3543  ;;
3544  *)
3545  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3546for as_dir in $PATH
3547do
3548  IFS=$as_save_IFS
3549  test -z "$as_dir" && as_dir=.
3550    for ac_exec_ext in '' $ac_executable_extensions; do
3551  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3552    ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
3553    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3554    break 2
3555  fi
3556done
3557  done
3558IFS=$as_save_IFS
3559
3560  ;;
3561esac
3562fi
3563CP=$ac_cv_path_CP
3564if test -n "$CP"; then
3565  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
3566$as_echo "$CP" >&6; }
3567else
3568  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569$as_echo "no" >&6; }
3570fi
3571
3572
3573
3574    # Test that variable CP is not empty.
3575    if test "" = "$CP"; then as_fn_error $? "Could not find cp !" "$LINENO" 5 ; fi
3576
3577# Extract the first word of "cpio", so it can be a program name with args.
3578set dummy cpio; ac_word=$2
3579{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3580$as_echo_n "checking for $ac_word... " >&6; }
3581if test "${ac_cv_path_CPIO+set}" = set; then :
3582  $as_echo_n "(cached) " >&6
3583else
3584  case $CPIO in
3585  [\\/]* | ?:[\\/]*)
3586  ac_cv_path_CPIO="$CPIO" # Let the user override the test with a path.
3587  ;;
3588  *)
3589  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in $PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594    for ac_exec_ext in '' $ac_executable_extensions; do
3595  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3596    ac_cv_path_CPIO="$as_dir/$ac_word$ac_exec_ext"
3597    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598    break 2
3599  fi
3600done
3601  done
3602IFS=$as_save_IFS
3603
3604  ;;
3605esac
3606fi
3607CPIO=$ac_cv_path_CPIO
3608if test -n "$CPIO"; then
3609  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPIO" >&5
3610$as_echo "$CPIO" >&6; }
3611else
3612  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3613$as_echo "no" >&6; }
3614fi
3615
3616
3617
3618    # Test that variable CPIO is not empty.
3619    if test "" = "$CPIO"; then as_fn_error $? "Could not find cpio !" "$LINENO" 5 ; fi
3620
3621# Extract the first word of "cut", so it can be a program name with args.
3622set dummy cut; ac_word=$2
3623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3624$as_echo_n "checking for $ac_word... " >&6; }
3625if test "${ac_cv_path_CUT+set}" = set; then :
3626  $as_echo_n "(cached) " >&6
3627else
3628  case $CUT in
3629  [\\/]* | ?:[\\/]*)
3630  ac_cv_path_CUT="$CUT" # Let the user override the test with a path.
3631  ;;
3632  *)
3633  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3634for as_dir in $PATH
3635do
3636  IFS=$as_save_IFS
3637  test -z "$as_dir" && as_dir=.
3638    for ac_exec_ext in '' $ac_executable_extensions; do
3639  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3640    ac_cv_path_CUT="$as_dir/$ac_word$ac_exec_ext"
3641    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3642    break 2
3643  fi
3644done
3645  done
3646IFS=$as_save_IFS
3647
3648  ;;
3649esac
3650fi
3651CUT=$ac_cv_path_CUT
3652if test -n "$CUT"; then
3653  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUT" >&5
3654$as_echo "$CUT" >&6; }
3655else
3656  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3657$as_echo "no" >&6; }
3658fi
3659
3660
3661
3662    # Test that variable CUT is not empty.
3663    if test "" = "$CUT"; then as_fn_error $? "Could not find cut !" "$LINENO" 5 ; fi
3664
3665# Extract the first word of "date", so it can be a program name with args.
3666set dummy date; ac_word=$2
3667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3668$as_echo_n "checking for $ac_word... " >&6; }
3669if test "${ac_cv_path_DATE+set}" = set; then :
3670  $as_echo_n "(cached) " >&6
3671else
3672  case $DATE in
3673  [\\/]* | ?:[\\/]*)
3674  ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
3675  ;;
3676  *)
3677  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3678for as_dir in $PATH
3679do
3680  IFS=$as_save_IFS
3681  test -z "$as_dir" && as_dir=.
3682    for ac_exec_ext in '' $ac_executable_extensions; do
3683  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3684    ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
3685    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3686    break 2
3687  fi
3688done
3689  done
3690IFS=$as_save_IFS
3691
3692  ;;
3693esac
3694fi
3695DATE=$ac_cv_path_DATE
3696if test -n "$DATE"; then
3697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
3698$as_echo "$DATE" >&6; }
3699else
3700  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3701$as_echo "no" >&6; }
3702fi
3703
3704
3705
3706    # Test that variable DATE is not empty.
3707    if test "" = "$DATE"; then as_fn_error $? "Could not find date !" "$LINENO" 5 ; fi
3708
3709# Extract the first word of "df", so it can be a program name with args.
3710set dummy df; ac_word=$2
3711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3712$as_echo_n "checking for $ac_word... " >&6; }
3713if test "${ac_cv_path_DF+set}" = set; then :
3714  $as_echo_n "(cached) " >&6
3715else
3716  case $DF in
3717  [\\/]* | ?:[\\/]*)
3718  ac_cv_path_DF="$DF" # Let the user override the test with a path.
3719  ;;
3720  *)
3721  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3722for as_dir in $PATH
3723do
3724  IFS=$as_save_IFS
3725  test -z "$as_dir" && as_dir=.
3726    for ac_exec_ext in '' $ac_executable_extensions; do
3727  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3728    ac_cv_path_DF="$as_dir/$ac_word$ac_exec_ext"
3729    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3730    break 2
3731  fi
3732done
3733  done
3734IFS=$as_save_IFS
3735
3736  ;;
3737esac
3738fi
3739DF=$ac_cv_path_DF
3740if test -n "$DF"; then
3741  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DF" >&5
3742$as_echo "$DF" >&6; }
3743else
3744  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3745$as_echo "no" >&6; }
3746fi
3747
3748
3749
3750    # Test that variable DF is not empty.
3751    if test "" = "$DF"; then as_fn_error $? "Could not find df !" "$LINENO" 5 ; fi
3752
3753# Extract the first word of "diff", so it can be a program name with args.
3754set dummy diff; ac_word=$2
3755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3756$as_echo_n "checking for $ac_word... " >&6; }
3757if test "${ac_cv_path_DIFF+set}" = set; then :
3758  $as_echo_n "(cached) " >&6
3759else
3760  case $DIFF in
3761  [\\/]* | ?:[\\/]*)
3762  ac_cv_path_DIFF="$DIFF" # Let the user override the test with a path.
3763  ;;
3764  *)
3765  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3766for as_dir in $PATH
3767do
3768  IFS=$as_save_IFS
3769  test -z "$as_dir" && as_dir=.
3770    for ac_exec_ext in '' $ac_executable_extensions; do
3771  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3772    ac_cv_path_DIFF="$as_dir/$ac_word$ac_exec_ext"
3773    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3774    break 2
3775  fi
3776done
3777  done
3778IFS=$as_save_IFS
3779
3780  ;;
3781esac
3782fi
3783DIFF=$ac_cv_path_DIFF
3784if test -n "$DIFF"; then
3785  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DIFF" >&5
3786$as_echo "$DIFF" >&6; }
3787else
3788  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789$as_echo "no" >&6; }
3790fi
3791
3792
3793
3794    # Test that variable DIFF is not empty.
3795    if test "" = "$DIFF"; then as_fn_error $? "Could not find diff !" "$LINENO" 5 ; fi
3796
3797# Warning echo is really, really unportable!!!!! Different
3798# behaviour in bash and dash and in a lot of other shells!
3799# Use printf for serious work!
3800# Extract the first word of "echo", so it can be a program name with args.
3801set dummy echo; ac_word=$2
3802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3803$as_echo_n "checking for $ac_word... " >&6; }
3804if test "${ac_cv_path_ECHO+set}" = set; then :
3805  $as_echo_n "(cached) " >&6
3806else
3807  case $ECHO in
3808  [\\/]* | ?:[\\/]*)
3809  ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
3810  ;;
3811  *)
3812  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3813for as_dir in $PATH
3814do
3815  IFS=$as_save_IFS
3816  test -z "$as_dir" && as_dir=.
3817    for ac_exec_ext in '' $ac_executable_extensions; do
3818  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3819    ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
3820    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3821    break 2
3822  fi
3823done
3824  done
3825IFS=$as_save_IFS
3826
3827  ;;
3828esac
3829fi
3830ECHO=$ac_cv_path_ECHO
3831if test -n "$ECHO"; then
3832  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
3833$as_echo "$ECHO" >&6; }
3834else
3835  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3836$as_echo "no" >&6; }
3837fi
3838
3839
3840
3841    # Test that variable ECHO is not empty.
3842    if test "" = "$ECHO"; then as_fn_error $? "Could not find echo !" "$LINENO" 5 ; fi
3843
3844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3845$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3846if test "${ac_cv_path_GREP+set}" = set; then :
3847  $as_echo_n "(cached) " >&6
3848else
3849  if test -z "$GREP"; then
3850  ac_path_GREP_found=false
3851  # Loop through the user's path and test for each of PROGNAME-LIST
3852  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3853for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3854do
3855  IFS=$as_save_IFS
3856  test -z "$as_dir" && as_dir=.
3857    for ac_prog in grep ggrep; do
3858    for ac_exec_ext in '' $ac_executable_extensions; do
3859      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3860      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3861# Check for GNU ac_path_GREP and select it if it is found.
3862  # Check for GNU $ac_path_GREP
3863case `"$ac_path_GREP" --version 2>&1` in
3864*GNU*)
3865  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3866*)
3867  ac_count=0
3868  $as_echo_n 0123456789 >"conftest.in"
3869  while :
3870  do
3871    cat "conftest.in" "conftest.in" >"conftest.tmp"
3872    mv "conftest.tmp" "conftest.in"
3873    cp "conftest.in" "conftest.nl"
3874    $as_echo 'GREP' >> "conftest.nl"
3875    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3876    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3877    as_fn_arith $ac_count + 1 && ac_count=$as_val
3878    if test $ac_count -gt ${ac_path_GREP_max-0}; then
3879      # Best one so far, save it but keep looking for a better one
3880      ac_cv_path_GREP="$ac_path_GREP"
3881      ac_path_GREP_max=$ac_count
3882    fi
3883    # 10*(2^10) chars as input seems more than enough
3884    test $ac_count -gt 10 && break
3885  done
3886  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3887esac
3888
3889      $ac_path_GREP_found && break 3
3890    done
3891  done
3892  done
3893IFS=$as_save_IFS
3894  if test -z "$ac_cv_path_GREP"; then
3895    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3896  fi
3897else
3898  ac_cv_path_GREP=$GREP
3899fi
3900
3901fi
3902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3903$as_echo "$ac_cv_path_GREP" >&6; }
3904 GREP="$ac_cv_path_GREP"
3905
3906
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3908$as_echo_n "checking for egrep... " >&6; }
3909if test "${ac_cv_path_EGREP+set}" = set; then :
3910  $as_echo_n "(cached) " >&6
3911else
3912  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3913   then ac_cv_path_EGREP="$GREP -E"
3914   else
3915     if test -z "$EGREP"; then
3916  ac_path_EGREP_found=false
3917  # Loop through the user's path and test for each of PROGNAME-LIST
3918  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3919for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3920do
3921  IFS=$as_save_IFS
3922  test -z "$as_dir" && as_dir=.
3923    for ac_prog in egrep; do
3924    for ac_exec_ext in '' $ac_executable_extensions; do
3925      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3926      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3927# Check for GNU ac_path_EGREP and select it if it is found.
3928  # Check for GNU $ac_path_EGREP
3929case `"$ac_path_EGREP" --version 2>&1` in
3930*GNU*)
3931  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3932*)
3933  ac_count=0
3934  $as_echo_n 0123456789 >"conftest.in"
3935  while :
3936  do
3937    cat "conftest.in" "conftest.in" >"conftest.tmp"
3938    mv "conftest.tmp" "conftest.in"
3939    cp "conftest.in" "conftest.nl"
3940    $as_echo 'EGREP' >> "conftest.nl"
3941    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3942    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3943    as_fn_arith $ac_count + 1 && ac_count=$as_val
3944    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3945      # Best one so far, save it but keep looking for a better one
3946      ac_cv_path_EGREP="$ac_path_EGREP"
3947      ac_path_EGREP_max=$ac_count
3948    fi
3949    # 10*(2^10) chars as input seems more than enough
3950    test $ac_count -gt 10 && break
3951  done
3952  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3953esac
3954
3955      $ac_path_EGREP_found && break 3
3956    done
3957  done
3958  done
3959IFS=$as_save_IFS
3960  if test -z "$ac_cv_path_EGREP"; then
3961    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3962  fi
3963else
3964  ac_cv_path_EGREP=$EGREP
3965fi
3966
3967   fi
3968fi
3969{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3970$as_echo "$ac_cv_path_EGREP" >&6; }
3971 EGREP="$ac_cv_path_EGREP"
3972
3973
3974
3975    # Test that variable EGREP is not empty.
3976    if test "" = "$EGREP"; then as_fn_error $? "Could not find egrep !" "$LINENO" 5 ; fi
3977
3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
3979$as_echo_n "checking for fgrep... " >&6; }
3980if test "${ac_cv_path_FGREP+set}" = set; then :
3981  $as_echo_n "(cached) " >&6
3982else
3983  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
3984   then ac_cv_path_FGREP="$GREP -F"
3985   else
3986     if test -z "$FGREP"; then
3987  ac_path_FGREP_found=false
3988  # Loop through the user's path and test for each of PROGNAME-LIST
3989  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3990for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3991do
3992  IFS=$as_save_IFS
3993  test -z "$as_dir" && as_dir=.
3994    for ac_prog in fgrep; do
3995    for ac_exec_ext in '' $ac_executable_extensions; do
3996      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
3997      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
3998# Check for GNU ac_path_FGREP and select it if it is found.
3999  # Check for GNU $ac_path_FGREP
4000case `"$ac_path_FGREP" --version 2>&1` in
4001*GNU*)
4002  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4003*)
4004  ac_count=0
4005  $as_echo_n 0123456789 >"conftest.in"
4006  while :
4007  do
4008    cat "conftest.in" "conftest.in" >"conftest.tmp"
4009    mv "conftest.tmp" "conftest.in"
4010    cp "conftest.in" "conftest.nl"
4011    $as_echo 'FGREP' >> "conftest.nl"
4012    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4013    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4014    as_fn_arith $ac_count + 1 && ac_count=$as_val
4015    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4016      # Best one so far, save it but keep looking for a better one
4017      ac_cv_path_FGREP="$ac_path_FGREP"
4018      ac_path_FGREP_max=$ac_count
4019    fi
4020    # 10*(2^10) chars as input seems more than enough
4021    test $ac_count -gt 10 && break
4022  done
4023  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4024esac
4025
4026      $ac_path_FGREP_found && break 3
4027    done
4028  done
4029  done
4030IFS=$as_save_IFS
4031  if test -z "$ac_cv_path_FGREP"; then
4032    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4033  fi
4034else
4035  ac_cv_path_FGREP=$FGREP
4036fi
4037
4038   fi
4039fi
4040{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4041$as_echo "$ac_cv_path_FGREP" >&6; }
4042 FGREP="$ac_cv_path_FGREP"
4043
4044
4045
4046    # Test that variable FGREP is not empty.
4047    if test "" = "$FGREP"; then as_fn_error $? "Could not find fgrep !" "$LINENO" 5 ; fi
4048
4049
4050# Extract the first word of "find", so it can be a program name with args.
4051set dummy find; ac_word=$2
4052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4053$as_echo_n "checking for $ac_word... " >&6; }
4054if test "${ac_cv_path_FIND+set}" = set; then :
4055  $as_echo_n "(cached) " >&6
4056else
4057  case $FIND in
4058  [\\/]* | ?:[\\/]*)
4059  ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4060  ;;
4061  *)
4062  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4063for as_dir in $PATH
4064do
4065  IFS=$as_save_IFS
4066  test -z "$as_dir" && as_dir=.
4067    for ac_exec_ext in '' $ac_executable_extensions; do
4068  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4069    ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4070    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4071    break 2
4072  fi
4073done
4074  done
4075IFS=$as_save_IFS
4076
4077  ;;
4078esac
4079fi
4080FIND=$ac_cv_path_FIND
4081if test -n "$FIND"; then
4082  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4083$as_echo "$FIND" >&6; }
4084else
4085  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4086$as_echo "no" >&6; }
4087fi
4088
4089
4090
4091    # Test that variable FIND is not empty.
4092    if test "" = "$FIND"; then as_fn_error $? "Could not find find !" "$LINENO" 5 ; fi
4093
4094
4095    # Test if find supports -delete
4096    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if find supports -delete" >&5
4097$as_echo_n "checking if find supports -delete... " >&6; }
4098    FIND_DELETE="-delete"
4099
4100    DELETEDIR=`mktemp -d tmp.XXXXXXXXXX` || (echo Could not create temporary directory!; exit $?)
4101
4102    echo Hejsan > $DELETEDIR/TestIfFindSupportsDelete
4103
4104    TEST_DELETE=`$FIND "$DELETEDIR" -name TestIfFindSupportsDelete $FIND_DELETE 2>&1`
4105    if test -f $DELETEDIR/TestIfFindSupportsDelete; then
4106        # No, it does not.
4107        rm $DELETEDIR/TestIfFindSupportsDelete
4108        FIND_DELETE="-exec rm \{\} \+"
4109        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4110$as_echo "no" >&6; }
4111    else
4112        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4113$as_echo "yes" >&6; }
4114    fi
4115    rmdir $DELETEDIR
4116
4117
4118
4119{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4120$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4121if test "${ac_cv_path_GREP+set}" = set; then :
4122  $as_echo_n "(cached) " >&6
4123else
4124  if test -z "$GREP"; then
4125  ac_path_GREP_found=false
4126  # Loop through the user's path and test for each of PROGNAME-LIST
4127  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4128for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4129do
4130  IFS=$as_save_IFS
4131  test -z "$as_dir" && as_dir=.
4132    for ac_prog in grep ggrep; do
4133    for ac_exec_ext in '' $ac_executable_extensions; do
4134      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4135      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4136# Check for GNU ac_path_GREP and select it if it is found.
4137  # Check for GNU $ac_path_GREP
4138case `"$ac_path_GREP" --version 2>&1` in
4139*GNU*)
4140  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4141*)
4142  ac_count=0
4143  $as_echo_n 0123456789 >"conftest.in"
4144  while :
4145  do
4146    cat "conftest.in" "conftest.in" >"conftest.tmp"
4147    mv "conftest.tmp" "conftest.in"
4148    cp "conftest.in" "conftest.nl"
4149    $as_echo 'GREP' >> "conftest.nl"
4150    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4151    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4152    as_fn_arith $ac_count + 1 && ac_count=$as_val
4153    if test $ac_count -gt ${ac_path_GREP_max-0}; then
4154      # Best one so far, save it but keep looking for a better one
4155      ac_cv_path_GREP="$ac_path_GREP"
4156      ac_path_GREP_max=$ac_count
4157    fi
4158    # 10*(2^10) chars as input seems more than enough
4159    test $ac_count -gt 10 && break
4160  done
4161  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4162esac
4163
4164      $ac_path_GREP_found && break 3
4165    done
4166  done
4167  done
4168IFS=$as_save_IFS
4169  if test -z "$ac_cv_path_GREP"; then
4170    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4171  fi
4172else
4173  ac_cv_path_GREP=$GREP
4174fi
4175
4176fi
4177{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4178$as_echo "$ac_cv_path_GREP" >&6; }
4179 GREP="$ac_cv_path_GREP"
4180
4181
4182
4183    # Test that variable GREP is not empty.
4184    if test "" = "$GREP"; then as_fn_error $? "Could not find grep !" "$LINENO" 5 ; fi
4185
4186# Extract the first word of "head", so it can be a program name with args.
4187set dummy head; ac_word=$2
4188{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4189$as_echo_n "checking for $ac_word... " >&6; }
4190if test "${ac_cv_path_HEAD+set}" = set; then :
4191  $as_echo_n "(cached) " >&6
4192else
4193  case $HEAD in
4194  [\\/]* | ?:[\\/]*)
4195  ac_cv_path_HEAD="$HEAD" # Let the user override the test with a path.
4196  ;;
4197  *)
4198  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4199for as_dir in $PATH
4200do
4201  IFS=$as_save_IFS
4202  test -z "$as_dir" && as_dir=.
4203    for ac_exec_ext in '' $ac_executable_extensions; do
4204  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4205    ac_cv_path_HEAD="$as_dir/$ac_word$ac_exec_ext"
4206    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4207    break 2
4208  fi
4209done
4210  done
4211IFS=$as_save_IFS
4212
4213  ;;
4214esac
4215fi
4216HEAD=$ac_cv_path_HEAD
4217if test -n "$HEAD"; then
4218  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HEAD" >&5
4219$as_echo "$HEAD" >&6; }
4220else
4221  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4222$as_echo "no" >&6; }
4223fi
4224
4225
4226
4227    # Test that variable HEAD is not empty.
4228    if test "" = "$HEAD"; then as_fn_error $? "Could not find head !" "$LINENO" 5 ; fi
4229
4230# Extract the first word of "ln", so it can be a program name with args.
4231set dummy ln; ac_word=$2
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4233$as_echo_n "checking for $ac_word... " >&6; }
4234if test "${ac_cv_path_LN+set}" = set; then :
4235  $as_echo_n "(cached) " >&6
4236else
4237  case $LN in
4238  [\\/]* | ?:[\\/]*)
4239  ac_cv_path_LN="$LN" # Let the user override the test with a path.
4240  ;;
4241  *)
4242  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4243for as_dir in $PATH
4244do
4245  IFS=$as_save_IFS
4246  test -z "$as_dir" && as_dir=.
4247    for ac_exec_ext in '' $ac_executable_extensions; do
4248  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4249    ac_cv_path_LN="$as_dir/$ac_word$ac_exec_ext"
4250    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4251    break 2
4252  fi
4253done
4254  done
4255IFS=$as_save_IFS
4256
4257  ;;
4258esac
4259fi
4260LN=$ac_cv_path_LN
4261if test -n "$LN"; then
4262  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LN" >&5
4263$as_echo "$LN" >&6; }
4264else
4265  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4266$as_echo "no" >&6; }
4267fi
4268
4269
4270
4271    # Test that variable LN is not empty.
4272    if test "" = "$LN"; then as_fn_error $? "Could not find ln !" "$LINENO" 5 ; fi
4273
4274# Extract the first word of "ls", so it can be a program name with args.
4275set dummy ls; ac_word=$2
4276{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4277$as_echo_n "checking for $ac_word... " >&6; }
4278if test "${ac_cv_path_LS+set}" = set; then :
4279  $as_echo_n "(cached) " >&6
4280else
4281  case $LS in
4282  [\\/]* | ?:[\\/]*)
4283  ac_cv_path_LS="$LS" # Let the user override the test with a path.
4284  ;;
4285  *)
4286  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4287for as_dir in $PATH
4288do
4289  IFS=$as_save_IFS
4290  test -z "$as_dir" && as_dir=.
4291    for ac_exec_ext in '' $ac_executable_extensions; do
4292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4293    ac_cv_path_LS="$as_dir/$ac_word$ac_exec_ext"
4294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4295    break 2
4296  fi
4297done
4298  done
4299IFS=$as_save_IFS
4300
4301  ;;
4302esac
4303fi
4304LS=$ac_cv_path_LS
4305if test -n "$LS"; then
4306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LS" >&5
4307$as_echo "$LS" >&6; }
4308else
4309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4310$as_echo "no" >&6; }
4311fi
4312
4313
4314
4315    # Test that variable LS is not empty.
4316    if test "" = "$LS"; then as_fn_error $? "Could not find ls !" "$LINENO" 5 ; fi
4317
4318for ac_prog in gmake make
4319do
4320  # Extract the first word of "$ac_prog", so it can be a program name with args.
4321set dummy $ac_prog; ac_word=$2
4322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4323$as_echo_n "checking for $ac_word... " >&6; }
4324if test "${ac_cv_path_MAKE+set}" = set; then :
4325  $as_echo_n "(cached) " >&6
4326else
4327  case $MAKE in
4328  [\\/]* | ?:[\\/]*)
4329  ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
4330  ;;
4331  *)
4332  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4333for as_dir in $PATH
4334do
4335  IFS=$as_save_IFS
4336  test -z "$as_dir" && as_dir=.
4337    for ac_exec_ext in '' $ac_executable_extensions; do
4338  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4339    ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
4340    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4341    break 2
4342  fi
4343done
4344  done
4345IFS=$as_save_IFS
4346
4347  ;;
4348esac
4349fi
4350MAKE=$ac_cv_path_MAKE
4351if test -n "$MAKE"; then
4352  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
4353$as_echo "$MAKE" >&6; }
4354else
4355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4356$as_echo "no" >&6; }
4357fi
4358
4359
4360  test -n "$MAKE" && break
4361done
4362
4363
4364    # Test that variable MAKE is not empty.
4365    if test "" = "$MAKE"; then as_fn_error $? "Could not find make !" "$LINENO" 5 ; fi
4366
4367MAKE_VERSION=`$MAKE --version | head -n 1 | grep '3.8[12346789]'`
4368if test "x$MAKE_VERSION" = x; then
4369    as_fn_error $? "You must use GNU make 3.81 or newer! Please put it in the path." "$LINENO" 5
4370fi
4371# Extract the first word of "mkdir", so it can be a program name with args.
4372set dummy mkdir; ac_word=$2
4373{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4374$as_echo_n "checking for $ac_word... " >&6; }
4375if test "${ac_cv_path_MKDIR+set}" = set; then :
4376  $as_echo_n "(cached) " >&6
4377else
4378  case $MKDIR in
4379  [\\/]* | ?:[\\/]*)
4380  ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
4381  ;;
4382  *)
4383  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384for as_dir in $PATH
4385do
4386  IFS=$as_save_IFS
4387  test -z "$as_dir" && as_dir=.
4388    for ac_exec_ext in '' $ac_executable_extensions; do
4389  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4390    ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
4391    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392    break 2
4393  fi
4394done
4395  done
4396IFS=$as_save_IFS
4397
4398  ;;
4399esac
4400fi
4401MKDIR=$ac_cv_path_MKDIR
4402if test -n "$MKDIR"; then
4403  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
4404$as_echo "$MKDIR" >&6; }
4405else
4406  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4407$as_echo "no" >&6; }
4408fi
4409
4410
4411
4412    # Test that variable MKDIR is not empty.
4413    if test "" = "$MKDIR"; then as_fn_error $? "Could not find mkdir !" "$LINENO" 5 ; fi
4414
4415# Extract the first word of "mv", so it can be a program name with args.
4416set dummy mv; ac_word=$2
4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4418$as_echo_n "checking for $ac_word... " >&6; }
4419if test "${ac_cv_path_MV+set}" = set; then :
4420  $as_echo_n "(cached) " >&6
4421else
4422  case $MV in
4423  [\\/]* | ?:[\\/]*)
4424  ac_cv_path_MV="$MV" # Let the user override the test with a path.
4425  ;;
4426  *)
4427  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4428for as_dir in $PATH
4429do
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_MV="$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
4438done
4439  done
4440IFS=$as_save_IFS
4441
4442  ;;
4443esac
4444fi
4445MV=$ac_cv_path_MV
4446if test -n "$MV"; then
4447  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MV" >&5
4448$as_echo "$MV" >&6; }
4449else
4450  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4451$as_echo "no" >&6; }
4452fi
4453
4454
4455
4456    # Test that variable MV is not empty.
4457    if test "" = "$MV"; then as_fn_error $? "Could not find mv !" "$LINENO" 5 ; fi
4458
4459for ac_prog in nawk gawk awk
4460do
4461  # Extract the first word of "$ac_prog", so it can be a program name with args.
4462set dummy $ac_prog; ac_word=$2
4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464$as_echo_n "checking for $ac_word... " >&6; }
4465if test "${ac_cv_path_NAWK+set}" = set; then :
4466  $as_echo_n "(cached) " >&6
4467else
4468  case $NAWK in
4469  [\\/]* | ?:[\\/]*)
4470  ac_cv_path_NAWK="$NAWK" # Let the user override the test with a path.
4471  ;;
4472  *)
4473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474for as_dir in $PATH
4475do
4476  IFS=$as_save_IFS
4477  test -z "$as_dir" && as_dir=.
4478    for ac_exec_ext in '' $ac_executable_extensions; do
4479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4480    ac_cv_path_NAWK="$as_dir/$ac_word$ac_exec_ext"
4481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482    break 2
4483  fi
4484done
4485  done
4486IFS=$as_save_IFS
4487
4488  ;;
4489esac
4490fi
4491NAWK=$ac_cv_path_NAWK
4492if test -n "$NAWK"; then
4493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NAWK" >&5
4494$as_echo "$NAWK" >&6; }
4495else
4496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4497$as_echo "no" >&6; }
4498fi
4499
4500
4501  test -n "$NAWK" && break
4502done
4503
4504
4505    # Test that variable NAWK is not empty.
4506    if test "" = "$NAWK"; then as_fn_error $? "Could not find nawk !" "$LINENO" 5 ; fi
4507
4508# Extract the first word of "printf", so it can be a program name with args.
4509set dummy printf; ac_word=$2
4510{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511$as_echo_n "checking for $ac_word... " >&6; }
4512if test "${ac_cv_path_PRINTF+set}" = set; then :
4513  $as_echo_n "(cached) " >&6
4514else
4515  case $PRINTF in
4516  [\\/]* | ?:[\\/]*)
4517  ac_cv_path_PRINTF="$PRINTF" # Let the user override the test with a path.
4518  ;;
4519  *)
4520  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521for as_dir in $PATH
4522do
4523  IFS=$as_save_IFS
4524  test -z "$as_dir" && as_dir=.
4525    for ac_exec_ext in '' $ac_executable_extensions; do
4526  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4527    ac_cv_path_PRINTF="$as_dir/$ac_word$ac_exec_ext"
4528    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529    break 2
4530  fi
4531done
4532  done
4533IFS=$as_save_IFS
4534
4535  ;;
4536esac
4537fi
4538PRINTF=$ac_cv_path_PRINTF
4539if test -n "$PRINTF"; then
4540  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PRINTF" >&5
4541$as_echo "$PRINTF" >&6; }
4542else
4543  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4544$as_echo "no" >&6; }
4545fi
4546
4547
4548
4549    # Test that variable PRINTF is not empty.
4550    if test "" = "$PRINTF"; then as_fn_error $? "Could not find printf !" "$LINENO" 5 ; fi
4551
4552# Extract the first word of "pwd", so it can be a program name with args.
4553set dummy pwd; ac_word=$2
4554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4555$as_echo_n "checking for $ac_word... " >&6; }
4556if test "${ac_cv_path_THEPWDCMD+set}" = set; then :
4557  $as_echo_n "(cached) " >&6
4558else
4559  case $THEPWDCMD in
4560  [\\/]* | ?:[\\/]*)
4561  ac_cv_path_THEPWDCMD="$THEPWDCMD" # Let the user override the test with a path.
4562  ;;
4563  *)
4564  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565for as_dir in $PATH
4566do
4567  IFS=$as_save_IFS
4568  test -z "$as_dir" && as_dir=.
4569    for ac_exec_ext in '' $ac_executable_extensions; do
4570  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4571    ac_cv_path_THEPWDCMD="$as_dir/$ac_word$ac_exec_ext"
4572    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4573    break 2
4574  fi
4575done
4576  done
4577IFS=$as_save_IFS
4578
4579  ;;
4580esac
4581fi
4582THEPWDCMD=$ac_cv_path_THEPWDCMD
4583if test -n "$THEPWDCMD"; then
4584  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $THEPWDCMD" >&5
4585$as_echo "$THEPWDCMD" >&6; }
4586else
4587  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588$as_echo "no" >&6; }
4589fi
4590
4591
4592# Extract the first word of "rm", so it can be a program name with args.
4593set dummy rm; ac_word=$2
4594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4595$as_echo_n "checking for $ac_word... " >&6; }
4596if test "${ac_cv_path_RM+set}" = set; then :
4597  $as_echo_n "(cached) " >&6
4598else
4599  case $RM in
4600  [\\/]* | ?:[\\/]*)
4601  ac_cv_path_RM="$RM" # Let the user override the test with a path.
4602  ;;
4603  *)
4604  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605for as_dir in $PATH
4606do
4607  IFS=$as_save_IFS
4608  test -z "$as_dir" && as_dir=.
4609    for ac_exec_ext in '' $ac_executable_extensions; do
4610  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4611    ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
4612    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4613    break 2
4614  fi
4615done
4616  done
4617IFS=$as_save_IFS
4618
4619  ;;
4620esac
4621fi
4622RM=$ac_cv_path_RM
4623if test -n "$RM"; then
4624  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RM" >&5
4625$as_echo "$RM" >&6; }
4626else
4627  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4628$as_echo "no" >&6; }
4629fi
4630
4631
4632
4633    # Test that variable RM is not empty.
4634    if test "" = "$RM"; then as_fn_error $? "Could not find rm !" "$LINENO" 5 ; fi
4635
4636RM="$RM -f"
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4638$as_echo_n "checking for a sed that does not truncate output... " >&6; }
4639if test "${ac_cv_path_SED+set}" = set; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4643     for ac_i in 1 2 3 4 5 6 7; do
4644       ac_script="$ac_script$as_nl$ac_script"
4645     done
4646     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4647     { ac_script=; unset ac_script;}
4648     if test -z "$SED"; then
4649  ac_path_SED_found=false
4650  # Loop through the user's path and test for each of PROGNAME-LIST
4651  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4652for as_dir in $PATH
4653do
4654  IFS=$as_save_IFS
4655  test -z "$as_dir" && as_dir=.
4656    for ac_prog in sed gsed; do
4657    for ac_exec_ext in '' $ac_executable_extensions; do
4658      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4659      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
4660# Check for GNU ac_path_SED and select it if it is found.
4661  # Check for GNU $ac_path_SED
4662case `"$ac_path_SED" --version 2>&1` in
4663*GNU*)
4664  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4665*)
4666  ac_count=0
4667  $as_echo_n 0123456789 >"conftest.in"
4668  while :
4669  do
4670    cat "conftest.in" "conftest.in" >"conftest.tmp"
4671    mv "conftest.tmp" "conftest.in"
4672    cp "conftest.in" "conftest.nl"
4673    $as_echo '' >> "conftest.nl"
4674    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4675    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4676    as_fn_arith $ac_count + 1 && ac_count=$as_val
4677    if test $ac_count -gt ${ac_path_SED_max-0}; then
4678      # Best one so far, save it but keep looking for a better one
4679      ac_cv_path_SED="$ac_path_SED"
4680      ac_path_SED_max=$ac_count
4681    fi
4682    # 10*(2^10) chars as input seems more than enough
4683    test $ac_count -gt 10 && break
4684  done
4685  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4686esac
4687
4688      $ac_path_SED_found && break 3
4689    done
4690  done
4691  done
4692IFS=$as_save_IFS
4693  if test -z "$ac_cv_path_SED"; then
4694    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4695  fi
4696else
4697  ac_cv_path_SED=$SED
4698fi
4699
4700fi
4701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4702$as_echo "$ac_cv_path_SED" >&6; }
4703 SED="$ac_cv_path_SED"
4704  rm -f conftest.sed
4705
4706
4707    # Test that variable SED is not empty.
4708    if test "" = "$SED"; then as_fn_error $? "Could not find sed !" "$LINENO" 5 ; fi
4709
4710# Extract the first word of "sh", so it can be a program name with args.
4711set dummy sh; ac_word=$2
4712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4713$as_echo_n "checking for $ac_word... " >&6; }
4714if test "${ac_cv_path_SH+set}" = set; then :
4715  $as_echo_n "(cached) " >&6
4716else
4717  case $SH in
4718  [\\/]* | ?:[\\/]*)
4719  ac_cv_path_SH="$SH" # Let the user override the test with a path.
4720  ;;
4721  *)
4722  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4723for as_dir in $PATH
4724do
4725  IFS=$as_save_IFS
4726  test -z "$as_dir" && as_dir=.
4727    for ac_exec_ext in '' $ac_executable_extensions; do
4728  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4729    ac_cv_path_SH="$as_dir/$ac_word$ac_exec_ext"
4730    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4731    break 2
4732  fi
4733done
4734  done
4735IFS=$as_save_IFS
4736
4737  ;;
4738esac
4739fi
4740SH=$ac_cv_path_SH
4741if test -n "$SH"; then
4742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SH" >&5
4743$as_echo "$SH" >&6; }
4744else
4745  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4746$as_echo "no" >&6; }
4747fi
4748
4749
4750
4751    # Test that variable SH is not empty.
4752    if test "" = "$SH"; then as_fn_error $? "Could not find sh !" "$LINENO" 5 ; fi
4753
4754# Extract the first word of "sort", so it can be a program name with args.
4755set dummy sort; ac_word=$2
4756{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4757$as_echo_n "checking for $ac_word... " >&6; }
4758if test "${ac_cv_path_SORT+set}" = set; then :
4759  $as_echo_n "(cached) " >&6
4760else
4761  case $SORT in
4762  [\\/]* | ?:[\\/]*)
4763  ac_cv_path_SORT="$SORT" # Let the user override the test with a path.
4764  ;;
4765  *)
4766  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4767for as_dir in $PATH
4768do
4769  IFS=$as_save_IFS
4770  test -z "$as_dir" && as_dir=.
4771    for ac_exec_ext in '' $ac_executable_extensions; do
4772  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4773    ac_cv_path_SORT="$as_dir/$ac_word$ac_exec_ext"
4774    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4775    break 2
4776  fi
4777done
4778  done
4779IFS=$as_save_IFS
4780
4781  ;;
4782esac
4783fi
4784SORT=$ac_cv_path_SORT
4785if test -n "$SORT"; then
4786  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SORT" >&5
4787$as_echo "$SORT" >&6; }
4788else
4789  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4790$as_echo "no" >&6; }
4791fi
4792
4793
4794
4795    # Test that variable SORT is not empty.
4796    if test "" = "$SORT"; then as_fn_error $? "Could not find sort !" "$LINENO" 5 ; fi
4797
4798# Extract the first word of "tar", so it can be a program name with args.
4799set dummy tar; ac_word=$2
4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4801$as_echo_n "checking for $ac_word... " >&6; }
4802if test "${ac_cv_path_TAR+set}" = set; then :
4803  $as_echo_n "(cached) " >&6
4804else
4805  case $TAR in
4806  [\\/]* | ?:[\\/]*)
4807  ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
4808  ;;
4809  *)
4810  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4811for as_dir in $PATH
4812do
4813  IFS=$as_save_IFS
4814  test -z "$as_dir" && as_dir=.
4815    for ac_exec_ext in '' $ac_executable_extensions; do
4816  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4817    ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
4818    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4819    break 2
4820  fi
4821done
4822  done
4823IFS=$as_save_IFS
4824
4825  ;;
4826esac
4827fi
4828TAR=$ac_cv_path_TAR
4829if test -n "$TAR"; then
4830  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
4831$as_echo "$TAR" >&6; }
4832else
4833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834$as_echo "no" >&6; }
4835fi
4836
4837
4838
4839    # Test that variable TAR is not empty.
4840    if test "" = "$TAR"; then as_fn_error $? "Could not find tar !" "$LINENO" 5 ; fi
4841
4842# Extract the first word of "tail", so it can be a program name with args.
4843set dummy tail; ac_word=$2
4844{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4845$as_echo_n "checking for $ac_word... " >&6; }
4846if test "${ac_cv_path_TAIL+set}" = set; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  case $TAIL in
4850  [\\/]* | ?:[\\/]*)
4851  ac_cv_path_TAIL="$TAIL" # Let the user override the test with a path.
4852  ;;
4853  *)
4854  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4855for as_dir in $PATH
4856do
4857  IFS=$as_save_IFS
4858  test -z "$as_dir" && as_dir=.
4859    for ac_exec_ext in '' $ac_executable_extensions; do
4860  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4861    ac_cv_path_TAIL="$as_dir/$ac_word$ac_exec_ext"
4862    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4863    break 2
4864  fi
4865done
4866  done
4867IFS=$as_save_IFS
4868
4869  ;;
4870esac
4871fi
4872TAIL=$ac_cv_path_TAIL
4873if test -n "$TAIL"; then
4874  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAIL" >&5
4875$as_echo "$TAIL" >&6; }
4876else
4877  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4878$as_echo "no" >&6; }
4879fi
4880
4881
4882
4883    # Test that variable TAIL is not empty.
4884    if test "" = "$TAIL"; then as_fn_error $? "Could not find tail !" "$LINENO" 5 ; fi
4885
4886# Extract the first word of "tee", so it can be a program name with args.
4887set dummy tee; ac_word=$2
4888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4889$as_echo_n "checking for $ac_word... " >&6; }
4890if test "${ac_cv_path_TEE+set}" = set; then :
4891  $as_echo_n "(cached) " >&6
4892else
4893  case $TEE in
4894  [\\/]* | ?:[\\/]*)
4895  ac_cv_path_TEE="$TEE" # Let the user override the test with a path.
4896  ;;
4897  *)
4898  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4899for as_dir in $PATH
4900do
4901  IFS=$as_save_IFS
4902  test -z "$as_dir" && as_dir=.
4903    for ac_exec_ext in '' $ac_executable_extensions; do
4904  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4905    ac_cv_path_TEE="$as_dir/$ac_word$ac_exec_ext"
4906    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4907    break 2
4908  fi
4909done
4910  done
4911IFS=$as_save_IFS
4912
4913  ;;
4914esac
4915fi
4916TEE=$ac_cv_path_TEE
4917if test -n "$TEE"; then
4918  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TEE" >&5
4919$as_echo "$TEE" >&6; }
4920else
4921  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922$as_echo "no" >&6; }
4923fi
4924
4925
4926
4927    # Test that variable TEE is not empty.
4928    if test "" = "$TEE"; then as_fn_error $? "Could not find tee !" "$LINENO" 5 ; fi
4929
4930# Extract the first word of "tr", so it can be a program name with args.
4931set dummy tr; ac_word=$2
4932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4933$as_echo_n "checking for $ac_word... " >&6; }
4934if test "${ac_cv_path_TR+set}" = set; then :
4935  $as_echo_n "(cached) " >&6
4936else
4937  case $TR in
4938  [\\/]* | ?:[\\/]*)
4939  ac_cv_path_TR="$TR" # Let the user override the test with a path.
4940  ;;
4941  *)
4942  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4943for as_dir in $PATH
4944do
4945  IFS=$as_save_IFS
4946  test -z "$as_dir" && as_dir=.
4947    for ac_exec_ext in '' $ac_executable_extensions; do
4948  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4949    ac_cv_path_TR="$as_dir/$ac_word$ac_exec_ext"
4950    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4951    break 2
4952  fi
4953done
4954  done
4955IFS=$as_save_IFS
4956
4957  ;;
4958esac
4959fi
4960TR=$ac_cv_path_TR
4961if test -n "$TR"; then
4962  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TR" >&5
4963$as_echo "$TR" >&6; }
4964else
4965  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4966$as_echo "no" >&6; }
4967fi
4968
4969
4970
4971    # Test that variable TR is not empty.
4972    if test "" = "$TR"; then as_fn_error $? "Could not find tr !" "$LINENO" 5 ; fi
4973
4974# Extract the first word of "touch", so it can be a program name with args.
4975set dummy touch; ac_word=$2
4976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4977$as_echo_n "checking for $ac_word... " >&6; }
4978if test "${ac_cv_path_TOUCH+set}" = set; then :
4979  $as_echo_n "(cached) " >&6
4980else
4981  case $TOUCH in
4982  [\\/]* | ?:[\\/]*)
4983  ac_cv_path_TOUCH="$TOUCH" # Let the user override the test with a path.
4984  ;;
4985  *)
4986  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4987for as_dir in $PATH
4988do
4989  IFS=$as_save_IFS
4990  test -z "$as_dir" && as_dir=.
4991    for ac_exec_ext in '' $ac_executable_extensions; do
4992  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4993    ac_cv_path_TOUCH="$as_dir/$ac_word$ac_exec_ext"
4994    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4995    break 2
4996  fi
4997done
4998  done
4999IFS=$as_save_IFS
5000
5001  ;;
5002esac
5003fi
5004TOUCH=$ac_cv_path_TOUCH
5005if test -n "$TOUCH"; then
5006  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TOUCH" >&5
5007$as_echo "$TOUCH" >&6; }
5008else
5009  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5010$as_echo "no" >&6; }
5011fi
5012
5013
5014
5015    # Test that variable TOUCH is not empty.
5016    if test "" = "$TOUCH"; then as_fn_error $? "Could not find touch !" "$LINENO" 5 ; fi
5017
5018# Extract the first word of "wc", so it can be a program name with args.
5019set dummy wc; ac_word=$2
5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5021$as_echo_n "checking for $ac_word... " >&6; }
5022if test "${ac_cv_path_WC+set}" = set; then :
5023  $as_echo_n "(cached) " >&6
5024else
5025  case $WC in
5026  [\\/]* | ?:[\\/]*)
5027  ac_cv_path_WC="$WC" # Let the user override the test with a path.
5028  ;;
5029  *)
5030  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5031for as_dir in $PATH
5032do
5033  IFS=$as_save_IFS
5034  test -z "$as_dir" && as_dir=.
5035    for ac_exec_ext in '' $ac_executable_extensions; do
5036  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5037    ac_cv_path_WC="$as_dir/$ac_word$ac_exec_ext"
5038    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5039    break 2
5040  fi
5041done
5042  done
5043IFS=$as_save_IFS
5044
5045  ;;
5046esac
5047fi
5048WC=$ac_cv_path_WC
5049if test -n "$WC"; then
5050  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WC" >&5
5051$as_echo "$WC" >&6; }
5052else
5053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054$as_echo "no" >&6; }
5055fi
5056
5057
5058
5059    # Test that variable WC is not empty.
5060    if test "" = "$WC"; then as_fn_error $? "Could not find wc !" "$LINENO" 5 ; fi
5061
5062# Extract the first word of "xargs", so it can be a program name with args.
5063set dummy xargs; ac_word=$2
5064{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5065$as_echo_n "checking for $ac_word... " >&6; }
5066if test "${ac_cv_path_XARGS+set}" = set; then :
5067  $as_echo_n "(cached) " >&6
5068else
5069  case $XARGS in
5070  [\\/]* | ?:[\\/]*)
5071  ac_cv_path_XARGS="$XARGS" # Let the user override the test with a path.
5072  ;;
5073  *)
5074  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075for as_dir in $PATH
5076do
5077  IFS=$as_save_IFS
5078  test -z "$as_dir" && as_dir=.
5079    for ac_exec_ext in '' $ac_executable_extensions; do
5080  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081    ac_cv_path_XARGS="$as_dir/$ac_word$ac_exec_ext"
5082    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083    break 2
5084  fi
5085done
5086  done
5087IFS=$as_save_IFS
5088
5089  ;;
5090esac
5091fi
5092XARGS=$ac_cv_path_XARGS
5093if test -n "$XARGS"; then
5094  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XARGS" >&5
5095$as_echo "$XARGS" >&6; }
5096else
5097  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5098$as_echo "no" >&6; }
5099fi
5100
5101
5102
5103    # Test that variable XARGS is not empty.
5104    if test "" = "$XARGS"; then as_fn_error $? "Could not find xargs !" "$LINENO" 5 ; fi
5105
5106# Extract the first word of "zip", so it can be a program name with args.
5107set dummy zip; ac_word=$2
5108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5109$as_echo_n "checking for $ac_word... " >&6; }
5110if test "${ac_cv_path_ZIP+set}" = set; then :
5111  $as_echo_n "(cached) " >&6
5112else
5113  case $ZIP in
5114  [\\/]* | ?:[\\/]*)
5115  ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
5116  ;;
5117  *)
5118  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119for as_dir in $PATH
5120do
5121  IFS=$as_save_IFS
5122  test -z "$as_dir" && as_dir=.
5123    for ac_exec_ext in '' $ac_executable_extensions; do
5124  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5125    ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
5126    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5127    break 2
5128  fi
5129done
5130  done
5131IFS=$as_save_IFS
5132
5133  ;;
5134esac
5135fi
5136ZIP=$ac_cv_path_ZIP
5137if test -n "$ZIP"; then
5138  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
5139$as_echo "$ZIP" >&6; }
5140else
5141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5142$as_echo "no" >&6; }
5143fi
5144
5145
5146
5147    # Test that variable ZIP is not empty.
5148    if test "" = "$ZIP"; then as_fn_error $? "Could not find zip !" "$LINENO" 5 ; fi
5149
5150# Extract the first word of "unzip", so it can be a program name with args.
5151set dummy unzip; ac_word=$2
5152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5153$as_echo_n "checking for $ac_word... " >&6; }
5154if test "${ac_cv_path_UNZIP+set}" = set; then :
5155  $as_echo_n "(cached) " >&6
5156else
5157  case $UNZIP in
5158  [\\/]* | ?:[\\/]*)
5159  ac_cv_path_UNZIP="$UNZIP" # Let the user override the test with a path.
5160  ;;
5161  *)
5162  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163for as_dir in $PATH
5164do
5165  IFS=$as_save_IFS
5166  test -z "$as_dir" && as_dir=.
5167    for ac_exec_ext in '' $ac_executable_extensions; do
5168  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169    ac_cv_path_UNZIP="$as_dir/$ac_word$ac_exec_ext"
5170    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5171    break 2
5172  fi
5173done
5174  done
5175IFS=$as_save_IFS
5176
5177  ;;
5178esac
5179fi
5180UNZIP=$ac_cv_path_UNZIP
5181if test -n "$UNZIP"; then
5182  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNZIP" >&5
5183$as_echo "$UNZIP" >&6; }
5184else
5185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5186$as_echo "no" >&6; }
5187fi
5188
5189
5190
5191    # Test that variable UNZIP is not empty.
5192    if test "" = "$UNZIP"; then as_fn_error $? "Could not find unzip !" "$LINENO" 5 ; fi
5193
5194# Extract the first word of "ldd", so it can be a program name with args.
5195set dummy ldd; ac_word=$2
5196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5197$as_echo_n "checking for $ac_word... " >&6; }
5198if test "${ac_cv_path_LDD+set}" = set; then :
5199  $as_echo_n "(cached) " >&6
5200else
5201  case $LDD in
5202  [\\/]* | ?:[\\/]*)
5203  ac_cv_path_LDD="$LDD" # Let the user override the test with a path.
5204  ;;
5205  *)
5206  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207for as_dir in $PATH
5208do
5209  IFS=$as_save_IFS
5210  test -z "$as_dir" && as_dir=.
5211    for ac_exec_ext in '' $ac_executable_extensions; do
5212  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5213    ac_cv_path_LDD="$as_dir/$ac_word$ac_exec_ext"
5214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5215    break 2
5216  fi
5217done
5218  done
5219IFS=$as_save_IFS
5220
5221  ;;
5222esac
5223fi
5224LDD=$ac_cv_path_LDD
5225if test -n "$LDD"; then
5226  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LDD" >&5
5227$as_echo "$LDD" >&6; }
5228else
5229  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5230$as_echo "no" >&6; }
5231fi
5232
5233
5234if test "x$LDD" = "x"; then
5235    # List shared lib dependencies is used for
5236    # debug output and checking for forbidden dependencies.
5237    # We can build without it.
5238    LDD="true"
5239fi
5240# Extract the first word of "otool", so it can be a program name with args.
5241set dummy otool; ac_word=$2
5242{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243$as_echo_n "checking for $ac_word... " >&6; }
5244if test "${ac_cv_path_OTOOL+set}" = set; then :
5245  $as_echo_n "(cached) " >&6
5246else
5247  case $OTOOL in
5248  [\\/]* | ?:[\\/]*)
5249  ac_cv_path_OTOOL="$OTOOL" # Let the user override the test with a path.
5250  ;;
5251  *)
5252  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5253for as_dir in $PATH
5254do
5255  IFS=$as_save_IFS
5256  test -z "$as_dir" && as_dir=.
5257    for ac_exec_ext in '' $ac_executable_extensions; do
5258  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5259    ac_cv_path_OTOOL="$as_dir/$ac_word$ac_exec_ext"
5260    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5261    break 2
5262  fi
5263done
5264  done
5265IFS=$as_save_IFS
5266
5267  ;;
5268esac
5269fi
5270OTOOL=$ac_cv_path_OTOOL
5271if test -n "$OTOOL"; then
5272  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
5273$as_echo "$OTOOL" >&6; }
5274else
5275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5276$as_echo "no" >&6; }
5277fi
5278
5279
5280if test "x$OTOOL" = "x"; then
5281   OTOOL="true"
5282fi
5283# Extract the first word of "readelf", so it can be a program name with args.
5284set dummy readelf; ac_word=$2
5285{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5286$as_echo_n "checking for $ac_word... " >&6; }
5287if test "${ac_cv_path_READELF+set}" = set; then :
5288  $as_echo_n "(cached) " >&6
5289else
5290  case $READELF in
5291  [\\/]* | ?:[\\/]*)
5292  ac_cv_path_READELF="$READELF" # Let the user override the test with a path.
5293  ;;
5294  *)
5295  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5296for as_dir in $PATH
5297do
5298  IFS=$as_save_IFS
5299  test -z "$as_dir" && as_dir=.
5300    for ac_exec_ext in '' $ac_executable_extensions; do
5301  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5302    ac_cv_path_READELF="$as_dir/$ac_word$ac_exec_ext"
5303    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5304    break 2
5305  fi
5306done
5307  done
5308IFS=$as_save_IFS
5309
5310  ;;
5311esac
5312fi
5313READELF=$ac_cv_path_READELF
5314if test -n "$READELF"; then
5315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READELF" >&5
5316$as_echo "$READELF" >&6; }
5317else
5318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5319$as_echo "no" >&6; }
5320fi
5321
5322
5323# Extract the first word of "expr", so it can be a program name with args.
5324set dummy expr; ac_word=$2
5325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5326$as_echo_n "checking for $ac_word... " >&6; }
5327if test "${ac_cv_path_EXPR+set}" = set; then :
5328  $as_echo_n "(cached) " >&6
5329else
5330  case $EXPR in
5331  [\\/]* | ?:[\\/]*)
5332  ac_cv_path_EXPR="$EXPR" # Let the user override the test with a path.
5333  ;;
5334  *)
5335  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5336for as_dir in $PATH
5337do
5338  IFS=$as_save_IFS
5339  test -z "$as_dir" && as_dir=.
5340    for ac_exec_ext in '' $ac_executable_extensions; do
5341  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5342    ac_cv_path_EXPR="$as_dir/$ac_word$ac_exec_ext"
5343    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5344    break 2
5345  fi
5346done
5347  done
5348IFS=$as_save_IFS
5349
5350  ;;
5351esac
5352fi
5353EXPR=$ac_cv_path_EXPR
5354if test -n "$EXPR"; then
5355  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXPR" >&5
5356$as_echo "$EXPR" >&6; }
5357else
5358  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5359$as_echo "no" >&6; }
5360fi
5361
5362
5363
5364    # Test that variable EXPR is not empty.
5365    if test "" = "$EXPR"; then as_fn_error $? "Could not find expr !" "$LINENO" 5 ; fi
5366
5367# Extract the first word of "file", so it can be a program name with args.
5368set dummy file; ac_word=$2
5369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5370$as_echo_n "checking for $ac_word... " >&6; }
5371if test "${ac_cv_path_FILE+set}" = set; then :
5372  $as_echo_n "(cached) " >&6
5373else
5374  case $FILE in
5375  [\\/]* | ?:[\\/]*)
5376  ac_cv_path_FILE="$FILE" # Let the user override the test with a path.
5377  ;;
5378  *)
5379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5380for as_dir in $PATH
5381do
5382  IFS=$as_save_IFS
5383  test -z "$as_dir" && as_dir=.
5384    for ac_exec_ext in '' $ac_executable_extensions; do
5385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5386    ac_cv_path_FILE="$as_dir/$ac_word$ac_exec_ext"
5387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5388    break 2
5389  fi
5390done
5391  done
5392IFS=$as_save_IFS
5393
5394  ;;
5395esac
5396fi
5397FILE=$ac_cv_path_FILE
5398if test -n "$FILE"; then
5399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FILE" >&5
5400$as_echo "$FILE" >&6; }
5401else
5402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5403$as_echo "no" >&6; }
5404fi
5405
5406
5407
5408    # Test that variable FILE is not empty.
5409    if test "" = "$FILE"; then as_fn_error $? "Could not find file !" "$LINENO" 5 ; fi
5410
5411# Extract the first word of "hg", so it can be a program name with args.
5412set dummy hg; ac_word=$2
5413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5414$as_echo_n "checking for $ac_word... " >&6; }
5415if test "${ac_cv_path_HG+set}" = set; then :
5416  $as_echo_n "(cached) " >&6
5417else
5418  case $HG in
5419  [\\/]* | ?:[\\/]*)
5420  ac_cv_path_HG="$HG" # Let the user override the test with a path.
5421  ;;
5422  *)
5423  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5424for as_dir in $PATH
5425do
5426  IFS=$as_save_IFS
5427  test -z "$as_dir" && as_dir=.
5428    for ac_exec_ext in '' $ac_executable_extensions; do
5429  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5430    ac_cv_path_HG="$as_dir/$ac_word$ac_exec_ext"
5431    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5432    break 2
5433  fi
5434done
5435  done
5436IFS=$as_save_IFS
5437
5438  ;;
5439esac
5440fi
5441HG=$ac_cv_path_HG
5442if test -n "$HG"; then
5443  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HG" >&5
5444$as_echo "$HG" >&6; }
5445else
5446  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5447$as_echo "no" >&6; }
5448fi
5449
5450
5451
5452# Figure out the build and host system.
5453# Make sure we can run config.sub.
5454$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
5455  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
5456
5457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
5458$as_echo_n "checking build system type... " >&6; }
5459if test "${ac_cv_build+set}" = set; then :
5460  $as_echo_n "(cached) " >&6
5461else
5462  ac_build_alias=$build_alias
5463test "x$ac_build_alias" = x &&
5464  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
5465test "x$ac_build_alias" = x &&
5466  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
5467ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
5468  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
5469
5470fi
5471{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
5472$as_echo "$ac_cv_build" >&6; }
5473case $ac_cv_build in
5474*-*-*) ;;
5475*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5 ;;
5476esac
5477build=$ac_cv_build
5478ac_save_IFS=$IFS; IFS='-'
5479set x $ac_cv_build
5480shift
5481build_cpu=$1
5482build_vendor=$2
5483shift; shift
5484# Remember, the first character of IFS is used to create $*,
5485# except with old shells:
5486build_os=$*
5487IFS=$ac_save_IFS
5488case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
5489
5490
5491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
5492$as_echo_n "checking host system type... " >&6; }
5493if test "${ac_cv_host+set}" = set; then :
5494  $as_echo_n "(cached) " >&6
5495else
5496  if test "x$host_alias" = x; then
5497  ac_cv_host=$ac_cv_build
5498else
5499  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
5500    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
5501fi
5502
5503fi
5504{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
5505$as_echo "$ac_cv_host" >&6; }
5506case $ac_cv_host in
5507*-*-*) ;;
5508*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5 ;;
5509esac
5510host=$ac_cv_host
5511ac_save_IFS=$IFS; IFS='-'
5512set x $ac_cv_host
5513shift
5514host_cpu=$1
5515host_vendor=$2
5516shift; shift
5517# Remember, the first character of IFS is used to create $*,
5518# except with old shells:
5519host_os=$*
5520IFS=$ac_save_IFS
5521case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
5522
5523
5524
5525
5526# Check whether --with-data-model was given.
5527if test "${with_data_model+set}" = set; then :
5528  withval=$with_data_model;
5529fi
5530
5531
5532if test "x$with_data_model" != x && \
5533   test "x$with_data_model" != x32 && \
5534   test "x$with_data_model" != x64 ; then
5535    as_fn_error $? "The data model can only be 32 or 64!" "$LINENO" 5
5536fi
5537# Translate the standard cpu-vendor-kernel-os quadruplets into
5538# the new HOST_.... and BUILD_... and the legacy names used by
5539# the openjdk build.
5540# It uses $host_os $host_cpu $build_os $build_cpu and $with_data_model
5541
5542    # Expects $host_os $host_cpu $build_os and $build_cpu
5543    # and $with_data_model to have been setup!
5544    #
5545    # Translate the standard triplet(quadruplet) definition
5546    # of the host/build system into
5547    # HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
5548    # HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
5549    # HOST_OS_API=posix,winapi
5550    #
5551    # HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
5552    # HOST_CPU_ARCH=x86,sparc,pcc,arm
5553    # HOST_CPU_BITS=32,64
5554    # HOST_CPU_ENDIAN=big,little
5555    #
5556    # The same values are setup for BUILD_...
5557    #
5558    # And the legacy variables, for controlling the old makefiles.
5559    # LEGACY_HOST_CPU1=i586,amd64/x86_64,sparc,sparcv9,arm,arm64...
5560    # LEGACY_HOST_CPU2=i386,amd64,sparc,sparcv9,arm,arm64...
5561    # LEGACY_HOST_CPU3=sparcv9,amd64 (but only on solaris)
5562    # LEGACY_HOST_OS_API=solaris,windows
5563    #
5564    # We also copy the autoconf trip/quadruplet
5565    # verbatim to HOST and BUILD
5566    HOST=${host}
5567
5568    BUILD=${build}
5569
5570
5571
5572
5573  case "$host_os" in
5574    *linux*)
5575      VAR_OS=linux
5576      VAR_OS_API=posix
5577      VAR_OS_FAMILY=gnu
5578      ;;
5579    *solaris*)
5580      VAR_OS=solaris
5581      VAR_OS_API=posix
5582      VAR_OS_FAMILY=sysv
5583      ;;
5584    *darwin*)
5585      VAR_OS=macosx
5586      VAR_OS_API=posix
5587      VAR_OS_FAMILY=bsd
5588      ;;
5589    *bsd*)
5590      VAR_OS=bsd
5591      VAR_OS_API=posix
5592      VAR_OS_FAMILY=bsd
5593      ;;
5594    *cygwin*|*windows*)
5595      VAR_OS=windows
5596      VAR_OS_API=winapi
5597      VAR_OS_FAMILY=windows
5598      ;;
5599    *)
5600      as_fn_error $? "unsupported host operating system $host_os" "$LINENO" 5
5601      ;;
5602  esac
5603
5604    HOST_OS="$VAR_OS"
5605    HOST_OS_FAMILY="$VAR_OS_FAMILY"
5606    HOST_OS_API="$VAR_OS_API"
5607
5608
5609
5610
5611
5612    if test "x$HOST_OS_API" = xposix; then
5613        LEGACY_HOST_OS_API="solaris"
5614    fi
5615    if test "x$HOST_OS_API" = xwinapi; then
5616        LEGACY_HOST_OS_API="windows"
5617    fi
5618
5619
5620
5621
5622  # First argument is the cpu name from the trip/quad
5623  case "$host_cpu" in
5624    x86_64)
5625      VAR_CPU=x64
5626      VAR_CPU_ARCH=x86
5627      VAR_CPU_BITS=64
5628      VAR_CPU_ENDIAN=little
5629      VAR_LEGACY_CPU=amd64
5630      ;;
5631    i?86)
5632      VAR_CPU=ia32
5633      VAR_CPU_ARCH=x86
5634      VAR_CPU_BITS=32
5635      VAR_CPU_ENDIAN=little
5636      VAR_LEGACY_CPU=i586
5637      ;;
5638    alpha*)
5639      VAR_CPU=alpha
5640      VAR_CPU_ARCH=alpha
5641      VAR_CPU_BITS=64
5642      VAR_CPU_ENDIAN=big
5643      VAR_LEGACY_CPU=alpha
5644      ;;
5645    arm*)
5646      VAR_CPU=arm
5647      VAR_CPU_ARCH=arm
5648      VAR_CPU_BITS=3264
5649      VAR_CPU_ENDIAN=big
5650      VAR_LEGACY_CPU=arm
5651      ;;
5652    mips)
5653      VAR_CPU=mips
5654      VAR_CPU_ARCH=mips
5655      VAR_CPU_BITS=woot
5656      VAR_CPU_ENDIAN=woot
5657      VAR_LEGACY_CPU=mips
5658       ;;
5659    mipsel)
5660      VAR_CPU=mipsel
5661      VAR_CPU_ARCH=mips
5662      VAR_CPU_BITS=woot
5663      VAR_CPU_ENDIAN=woot
5664      VAR_LEGACY_CPU=mipsel
5665       ;;
5666    powerpc)
5667      VAR_CPU=ppc
5668      VAR_CPU_ARCH=ppc
5669      VAR_CPU_BITS=32
5670      VAR_CPU_ENDIAN=big
5671      VAR_LEGACY_CPU=ppc
5672       ;;
5673    powerpc64)
5674      VAR_CPU=ppc64
5675      VAR_CPU_ARCH=ppc
5676      VAR_CPU_BITS=64
5677      VAR_CPU_ENDIAN=32
5678      VAR_LEGACY_CPU=ppc64
5679       ;;
5680    sparc)
5681      VAR_CPU=sparc
5682      VAR_CPU_ARCH=sparc
5683      VAR_CPU_BITS=32
5684      VAR_CPU_ENDIAN=big
5685      VAR_LEGACY_CPU=sparc
5686       ;;
5687    sparc64)
5688      VAR_CPU=sparcv9
5689      VAR_CPU_ARCH=sparc
5690      VAR_CPU_BITS=64
5691      VAR_CPU_ENDIAN=big
5692      VAR_LEGACY_CPU=sparc_sparcv9
5693       ;;
5694    s390)
5695      VAR_CPU=s390
5696      VAR_CPU_ARCH=s390
5697      VAR_CPU_BITS=32
5698      VAR_CPU_ENDIAN=woot
5699      VAR_LEGACY_CPU=s390
5700      VAR_LEGACY_CPU=s390
5701       ;;
5702    s390x)
5703      VAR_CPU=s390x
5704      VAR_CPU_ARCH=s390
5705      VAR_CPU_BITS=64
5706      VAR_CPU_ENDIAN=woot
5707      VAR_LEGACY_CPU=s390x
5708       ;;
5709    *)
5710      as_fn_error $? "unsupported cpu $host_cpu" "$LINENO" 5
5711      ;;
5712  esac
5713
5714  # Workaround cygwin not knowing about 64 bit.
5715  if test "x$VAR_OS" = "xwindows"; then
5716      if test "x$PROCESSOR_IDENTIFIER" != "x"; then
5717          PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
5718          case "$PROC_ARCH" in
5719            intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
5720              VAR_CPU=x64
5721              VAR_CPU_BITS=64
5722              VAR_LEGACY_CPU=amd64
5723              ;;
5724          esac
5725      fi
5726  fi
5727
5728  if test "x$VAR_CPU_ARCH" = "xx86"; then
5729      if test "x$with_data_model" = "x64"; then
5730          VAR_CPU=x64
5731          VAR_CPU_BITS=64
5732          VAR_LEGACY_CPU=amd64
5733      fi
5734      if test "x$with_data_model" = "x32"; then
5735          VAR_CPU=ia32
5736          VAR_CPU_BITS=32
5737          VAR_LEGACY_CPU=i586
5738      fi
5739  fi
5740
5741    HOST_CPU="$VAR_CPU"
5742    HOST_CPU_ARCH="$VAR_CPU_ARCH"
5743    HOST_CPU_BITS="$VAR_CPU_BITS"
5744    HOST_CPU_ENDIAN="$VAR_CPU_ENDIAN"
5745
5746
5747
5748
5749
5750
5751    # Also store the legacy naming of the cpu.
5752    # Ie i586 and amd64 instead of ia32 and x64
5753    LEGACY_HOST_CPU1="$VAR_LEGACY_CPU"
5754
5755
5756    # And the second legacy naming of the cpu.
5757    # Ie i386 and amd64 instead of ia32 and x64.
5758    LEGACY_HOST_CPU2="$LEGACY_HOST_CPU1"
5759    if test "x$LEGACY_HOST_CPU1" = xi586; then
5760        LEGACY_HOST_CPU2=i386
5761    fi
5762
5763
5764    # And the third legacy naming of the cpu.
5765    # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
5766    LEGACY_HOST_CPU3=""
5767    if test "x$HOST_CPU" = xx64; then
5768        LEGACY_HOST_CPU3=amd64
5769    fi
5770    if test "x$HOST_CPU" = xsparcv9; then
5771        LEGACY_HOST_CPU3=sparvc9
5772    fi
5773
5774
5775
5776
5777
5778  case "$build_os" in
5779    *linux*)
5780      VAR_OS=linux
5781      VAR_OS_API=posix
5782      VAR_OS_FAMILY=gnu
5783      ;;
5784    *solaris*)
5785      VAR_OS=solaris
5786      VAR_OS_API=posix
5787      VAR_OS_FAMILY=sysv
5788      ;;
5789    *darwin*)
5790      VAR_OS=macosx
5791      VAR_OS_API=posix
5792      VAR_OS_FAMILY=bsd
5793      ;;
5794    *bsd*)
5795      VAR_OS=bsd
5796      VAR_OS_API=posix
5797      VAR_OS_FAMILY=bsd
5798      ;;
5799    *cygwin*|*windows*)
5800      VAR_OS=windows
5801      VAR_OS_API=winapi
5802      VAR_OS_FAMILY=windows
5803      ;;
5804    *)
5805      as_fn_error $? "unsupported host operating system $build_os" "$LINENO" 5
5806      ;;
5807  esac
5808
5809    BUILD_OS="$VAR_OS"
5810    BUILD_OS_FAMILY="$VAR_OS_FAMILY"
5811    BUILD_OS_API="$VAR_OS_API"
5812
5813
5814
5815
5816
5817    if test "x$BUILD_OS_API" = xposix; then
5818        LEGACY_BUILD_OS_API="solaris"
5819    fi
5820    if test "x$BUILD_OS_API" = xwinapi; then
5821        LEGACY_BUILD_OS_API="windows"
5822    fi
5823
5824
5825
5826
5827  # First argument is the cpu name from the trip/quad
5828  case "$build_cpu" in
5829    x86_64)
5830      VAR_CPU=x64
5831      VAR_CPU_ARCH=x86
5832      VAR_CPU_BITS=64
5833      VAR_CPU_ENDIAN=little
5834      VAR_LEGACY_CPU=amd64
5835      ;;
5836    i?86)
5837      VAR_CPU=ia32
5838      VAR_CPU_ARCH=x86
5839      VAR_CPU_BITS=32
5840      VAR_CPU_ENDIAN=little
5841      VAR_LEGACY_CPU=i586
5842      ;;
5843    alpha*)
5844      VAR_CPU=alpha
5845      VAR_CPU_ARCH=alpha
5846      VAR_CPU_BITS=64
5847      VAR_CPU_ENDIAN=big
5848      VAR_LEGACY_CPU=alpha
5849      ;;
5850    arm*)
5851      VAR_CPU=arm
5852      VAR_CPU_ARCH=arm
5853      VAR_CPU_BITS=3264
5854      VAR_CPU_ENDIAN=big
5855      VAR_LEGACY_CPU=arm
5856      ;;
5857    mips)
5858      VAR_CPU=mips
5859      VAR_CPU_ARCH=mips
5860      VAR_CPU_BITS=woot
5861      VAR_CPU_ENDIAN=woot
5862      VAR_LEGACY_CPU=mips
5863       ;;
5864    mipsel)
5865      VAR_CPU=mipsel
5866      VAR_CPU_ARCH=mips
5867      VAR_CPU_BITS=woot
5868      VAR_CPU_ENDIAN=woot
5869      VAR_LEGACY_CPU=mipsel
5870       ;;
5871    powerpc)
5872      VAR_CPU=ppc
5873      VAR_CPU_ARCH=ppc
5874      VAR_CPU_BITS=32
5875      VAR_CPU_ENDIAN=big
5876      VAR_LEGACY_CPU=ppc
5877       ;;
5878    powerpc64)
5879      VAR_CPU=ppc64
5880      VAR_CPU_ARCH=ppc
5881      VAR_CPU_BITS=64
5882      VAR_CPU_ENDIAN=32
5883      VAR_LEGACY_CPU=ppc64
5884       ;;
5885    sparc)
5886      VAR_CPU=sparc
5887      VAR_CPU_ARCH=sparc
5888      VAR_CPU_BITS=32
5889      VAR_CPU_ENDIAN=big
5890      VAR_LEGACY_CPU=sparc
5891       ;;
5892    sparc64)
5893      VAR_CPU=sparcv9
5894      VAR_CPU_ARCH=sparc
5895      VAR_CPU_BITS=64
5896      VAR_CPU_ENDIAN=big
5897      VAR_LEGACY_CPU=sparc_sparcv9
5898       ;;
5899    s390)
5900      VAR_CPU=s390
5901      VAR_CPU_ARCH=s390
5902      VAR_CPU_BITS=32
5903      VAR_CPU_ENDIAN=woot
5904      VAR_LEGACY_CPU=s390
5905      VAR_LEGACY_CPU=s390
5906       ;;
5907    s390x)
5908      VAR_CPU=s390x
5909      VAR_CPU_ARCH=s390
5910      VAR_CPU_BITS=64
5911      VAR_CPU_ENDIAN=woot
5912      VAR_LEGACY_CPU=s390x
5913       ;;
5914    *)
5915      as_fn_error $? "unsupported cpu $build_cpu" "$LINENO" 5
5916      ;;
5917  esac
5918
5919  # Workaround cygwin not knowing about 64 bit.
5920  if test "x$VAR_OS" = "xwindows"; then
5921      if test "x$PROCESSOR_IDENTIFIER" != "x"; then
5922          PROC_ARCH=`echo $PROCESSOR_IDENTIFIER | $CUT -f1 -d' '`
5923          case "$PROC_ARCH" in
5924            intel64|Intel64|INTEL64|em64t|EM64T|amd64|AMD64|8664|x86_64)
5925              VAR_CPU=x64
5926              VAR_CPU_BITS=64
5927              VAR_LEGACY_CPU=amd64
5928              ;;
5929          esac
5930      fi
5931  fi
5932
5933  if test "x$VAR_CPU_ARCH" = "xx86"; then
5934      if test "x$with_data_model" = "x64"; then
5935          VAR_CPU=x64
5936          VAR_CPU_BITS=64
5937          VAR_LEGACY_CPU=amd64
5938      fi
5939      if test "x$with_data_model" = "x32"; then
5940          VAR_CPU=ia32
5941          VAR_CPU_BITS=32
5942          VAR_LEGACY_CPU=i586
5943      fi
5944  fi
5945
5946    BUILD_CPU="$VAR_CPU"
5947    BUILD_CPU_ARCH="$VAR_CPU_ARCH"
5948    BUILD_CPU_BITS="$VAR_CPU_BITS"
5949    BUILD_CPU_ENDIAN="$VAR_CPU_ENDIAN"
5950
5951
5952
5953
5954
5955
5956    # Also store the legacy naming of the cpu.
5957    # Ie i586 and amd64 instead of ia32 and x64
5958    LEGACY_BUILD_CPU1="$VAR_LEGACY_CPU"
5959
5960
5961    # And the second legacy naming of the cpu.
5962    # Ie i386 and amd64 instead of ia32 and x64.
5963    LEGACY_BUILD_CPU2="$LEGACY_BUILD_CPU1"
5964    if test "x$LEGACY_BUILD_CPU1" = xi586; then
5965        LEGACY_BUILD_CPU2=i386
5966    fi
5967
5968
5969    # And the third legacy naming of the cpu.
5970    # Ie only amd64 or sparcv9, used for the ISA_DIR on Solaris.
5971    LEGACY_BUILD_CPU3=""
5972    if test "x$BUILD_CPU" = xx64; then
5973        LEGACY_BUILD_CPU3=amd64
5974    fi
5975    if test "x$BUILD_CPU" = xsparcv9; then
5976        LEGACY_BUILD_CPU3=sparvc9
5977    fi
5978
5979
5980
5981    if test "x$HOST_OS" != xsolaris; then
5982        LEGACY_HOST_CPU3=""
5983        LEGACY_BUILD_CPU3=""
5984    fi
5985
5986    # On MacOSX and MacOSX only, we have a different name for the x64 CPU in ARCH (LEGACY_HOST_CPU1) ...
5987    if test "x$HOST_OS" = xmacosx && test "x$HOST_CPU" = xx64; then
5988        LEGACY_HOST_CPU1="x86_64"
5989    fi
5990
5991
5992    if test "x$HOST_OS" = "xsolaris"; then
5993       REQUIRED_OS_NAME=SunOS
5994       REQUIRED_OS_VERSION=5.10
5995    fi
5996    if test "x$HOST_OS" = "xlinux"; then
5997       REQUIRED_OS_NAME=Linux
5998       REQUIRED_OS_VERSION=2.6
5999    fi
6000    if test "x$HOST_OS" = "xwindows"; then
6001        REQUIRED_OS_NAME=Windows
6002        REQUIRED_OS_VERSION=5.1
6003    fi
6004    if test "x$HOST_OS" = "xmacosx"; then
6005        REQUIRED_OS_NAME=Darwin
6006        REQUIRED_OS_VERSION=11.2
6007    fi
6008
6009
6010
6011
6012
6013# Now the following vars are defined.
6014# HOST_OS=aix,bsd,hpux,linux,macosx,solaris,windows
6015# HOST_OS_FAMILY=bsd,gnu,sysv,win32,wince
6016# HOST_OS_API=posix,winapi
6017#
6018# HOST_CPU=ia32,x64,sparc,sparcv9,arm,arm64,ppc,ppc64
6019# HOST_CPU_ARCH=x86,sparc,pcc,arm
6020# HOST_CPU_BITS=32,64
6021# HOST_CPU_ENDIAN=big,little
6022#
6023# There is also a:
6024# LEGACY_HOST_CPU1=i586,amd64,....  # used to set the old var ARCH
6025# LEGACY_HOST_CPU2=i386,amd64,.... # used to set the old var LIBARCH
6026# LEGACY_HOST_CPU3=only sparcv9,amd64 # used to set the ISA_DIR on Solaris
6027# There was also a BUILDARCH that had i486,amd64,... but we do not use that
6028# in the new build.
6029# LEGACY_HOST_OS_API=solaris,windows # used to select source roots
6030
6031DATE_WHEN_CONFIGURED=`LANG=C date`
6032
6033
6034# How many cores do we have on this build system?
6035
6036# Check whether --with-num-cores was given.
6037if test "${with_num_cores+set}" = set; then :
6038  withval=$with_num_cores;
6039fi
6040
6041if test "x$with_num_cores" = x; then
6042    # The number of cores were not specified, try to probe them.
6043
6044    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for number of cores" >&5
6045$as_echo_n "checking for number of cores... " >&6; }
6046    NUM_CORES=1
6047    FOUND_CORES=no
6048
6049    if test -f /proc/cpuinfo; then
6050        # Looks like a Linux system
6051        NUM_CORES=`cat /proc/cpuinfo  | grep -c processor`
6052        FOUND_CORES=yes
6053    fi
6054
6055    if test -x /usr/sbin/psrinfo; then
6056        # Looks like a Solaris system
6057        NUM_CORES=`LC_MESSAGES=C /usr/sbin/psrinfo -v | grep -c on-line`
6058        FOUND_CORES=yes
6059    fi
6060
6061    if test -x /usr/sbin/system_profiler; then
6062        # Looks like a MacOSX system
6063        NUM_CORES=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Cores' | awk  '{print $5}'`
6064        FOUND_CORES=yes
6065    fi
6066
6067    if test "x$build_os" = xwindows; then
6068        NUM_CORES=4
6069    fi
6070
6071    # For c/c++ code we run twice as many concurrent build
6072    # jobs than we have cores, otherwise we will stall on io.
6073    CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
6074
6075    if test "x$FOUND_CORES" = xyes; then
6076        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NUM_CORES" >&5
6077$as_echo "$NUM_CORES" >&6; }
6078    else
6079        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect number of cores, defaulting to 1!" >&5
6080$as_echo "could not detect number of cores, defaulting to 1!" >&6; }
6081    fi
6082
6083
6084else
6085    NUM_CORES=$with_num_cores
6086    CONCURRENT_BUILD_JOBS=`expr $NUM_CORES \* 2`
6087fi
6088
6089
6090
6091# How many cores do we have on this build system?
6092
6093# Check whether --with-memory-size was given.
6094if test "${with_memory_size+set}" = set; then :
6095  withval=$with_memory_size;
6096fi
6097
6098if test "x$with_memory_size" = x; then
6099    # The memory size was not specified, try to probe it.
6100
6101    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memory size" >&5
6102$as_echo_n "checking for memory size... " >&6; }
6103    # Default to 1024MB
6104    MEMORY_SIZE=1024
6105    FOUND_MEM=no
6106
6107    if test -f /proc/cpuinfo; then
6108        # Looks like a Linux system
6109        MEMORY_SIZE=`cat /proc/meminfo | grep MemTotal | awk '{print $2}'`
6110        MEMORY_SIZE=`expr $MEMORY_SIZE / 1024`
6111        FOUND_MEM=yes
6112    fi
6113
6114    if test -x /usr/sbin/prtconf; then
6115        # Looks like a Solaris system
6116        MEMORY_SIZE=`/usr/sbin/prtconf | grep "Memory size" | awk '{ print $3 }'`
6117        FOUND_MEM=yes
6118    fi
6119
6120    if test -x /usr/sbin/system_profiler; then
6121        # Looks like a MacOSX system
6122        MEMORY_SIZE=`/usr/sbin/system_profiler -detailLevel full SPHardwareDataType | grep 'Memory' | awk  '{print $2}'`
6123        MEMORY_SIZE=`expr $MEMORY_SIZE \* 1024`
6124        FOUND_MEM=yes
6125    fi
6126
6127    if test "x$build_os" = xwindows; then
6128        MEMORY_SIZE=`systeminfo | grep 'Total Physical Memory:' | awk '{ print $4 }' | sed 's/,//'`
6129        FOUND_MEM=yes
6130    fi
6131
6132    if test "x$FOUND_MEM" = xyes; then
6133        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MEMORY_SIZE MB" >&5
6134$as_echo "$MEMORY_SIZE MB" >&6; }
6135    else
6136        { $as_echo "$as_me:${as_lineno-$LINENO}: result: could not detect memory size defaulting to 1024MB!" >&5
6137$as_echo "could not detect memory size defaulting to 1024MB!" >&6; }
6138    fi
6139
6140else
6141    MEMORY_SIZE=$with_memory_size
6142fi
6143
6144
6145# Where is the source? It is located two levels above the configure script.
6146CURDIR="$PWD"
6147cd "$AUTOCONF_DIR/../.."
6148SRC_ROOT="`pwd`"
6149
6150cd "$CURDIR"
6151
6152# For cygwin we need cygpath first, since it is used everywhere.
6153# Extract the first word of "cygpath", so it can be a program name with args.
6154set dummy cygpath; ac_word=$2
6155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6156$as_echo_n "checking for $ac_word... " >&6; }
6157if test "${ac_cv_path_CYGPATH+set}" = set; then :
6158  $as_echo_n "(cached) " >&6
6159else
6160  case $CYGPATH in
6161  [\\/]* | ?:[\\/]*)
6162  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
6163  ;;
6164  *)
6165  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6166for as_dir in $PATH
6167do
6168  IFS=$as_save_IFS
6169  test -z "$as_dir" && as_dir=.
6170    for ac_exec_ext in '' $ac_executable_extensions; do
6171  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6172    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
6173    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6174    break 2
6175  fi
6176done
6177  done
6178IFS=$as_save_IFS
6179
6180  ;;
6181esac
6182fi
6183CYGPATH=$ac_cv_path_CYGPATH
6184if test -n "$CYGPATH"; then
6185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
6186$as_echo "$CYGPATH" >&6; }
6187else
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6189$as_echo "no" >&6; }
6190fi
6191
6192
6193PATH_SEP=":"
6194if test "x$BUILD_OS" = "xwindows"; then
6195    if test "x$CYGPATH" = x; then
6196        as_fn_error $? "Something is wrong with your cygwin installation since I cannot find cygpath.exe in your path" "$LINENO" 5
6197    fi
6198    PATH_SEP=";"
6199fi
6200
6201
6202
6203    # Fail with message the path to the source root if var SRC_ROOT contains a path with no spaces in it.
6204    # Unless on Windows, where we can rewrite the path.
6205    HAS_SPACE=`echo "$SRC_ROOT" | grep " "`
6206    if test "x$HAS_SPACE" != x; then
6207        if test "x$BUILD_OS" = "xwindows"; then
6208            SRC_ROOT=`$CYGPATH -s -m -a "$SRC_ROOT"`
6209            SRC_ROOT=`$CYGPATH -u "$SRC_ROOT"`
6210        else
6211            as_fn_error $? "You cannot have spaces in the path to the source root! \"$SRC_ROOT\"" "$LINENO" 5
6212        fi
6213    fi
6214
6215
6216    # Fail with message the path to the current directory if var CURDIR contains a path with no spaces in it.
6217    # Unless on Windows, where we can rewrite the path.
6218    HAS_SPACE=`echo "$CURDIR" | grep " "`
6219    if test "x$HAS_SPACE" != x; then
6220        if test "x$BUILD_OS" = "xwindows"; then
6221            CURDIR=`$CYGPATH -s -m -a "$CURDIR"`
6222            CURDIR=`$CYGPATH -u "$CURDIR"`
6223        else
6224            as_fn_error $? "You cannot have spaces in the path to the current directory! \"$CURDIR\"" "$LINENO" 5
6225        fi
6226    fi
6227
6228
6229if test "x$BUILD_OS" = "xsolaris"; then
6230    # Also search in /usr/ccs/bin for utilities like ar and as.
6231    PATH="/usr/ccs/bin:$PATH"
6232fi
6233
6234###############################################################################
6235#
6236# OpenJDK or closed
6237#
6238# Check whether --enable-openjdk-only was given.
6239if test "${enable_openjdk_only+set}" = set; then :
6240  enableval=$enable_openjdk_only;
6241fi
6242
6243
6244if test "x$enable_openjdk_only" = "xyes"; then
6245    OPENJDK=true
6246elif test "x$enable_openjdk_only" = "xno"; then
6247    OPENJDK=false
6248elif test -d "$SRC_ROOT/jdk/src/closed"; then
6249    OPENJDK=false
6250else
6251    OPENJDK=true
6252fi
6253
6254if test "x$OPENJDK" = "xtrue"; then
6255    SET_OPENJDK=OPENJDK=true
6256fi
6257
6258
6259
6260###############################################################################
6261#
6262# JIGSAW or not.  The JIGSAW variable is used during the intermediate
6263# stage when we are building both the old style JDK and the new style modularized JDK.
6264# When the modularized JDK is finalized, this option will go away.
6265#
6266# Check whether --enable-jigsaw was given.
6267if test "${enable_jigsaw+set}" = set; then :
6268  enableval=$enable_jigsaw;
6269fi
6270
6271
6272if test "x$enable_jigsaw" = "xyes"; then
6273    JIGSAW=true
6274else
6275    JIGSAW=false
6276fi
6277
6278
6279###############################################################################
6280#
6281# Check which variant of the JDK that we want to build.
6282# Currently we have:
6283#    normal:   standard edition
6284#    embedded: cut down to a smaller footprint
6285#
6286# Effectively the JDK variant gives a name to a specific set of
6287# modules to compile into the JDK. In the future, these modules
6288# might even be Jigsaw modules.
6289#
6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of the JDK to build" >&5
6291$as_echo_n "checking which variant of the JDK to build... " >&6; }
6292
6293# Check whether --with-jdk-variant was given.
6294if test "${with_jdk_variant+set}" = set; then :
6295  withval=$with_jdk_variant;
6296fi
6297
6298
6299if test "x$with_jdk_variant" = xnormal || test "x$with_jdk_variant" = x; then
6300    JAVASE_EMBEDDED=""
6301    MINIMIZE_RAM_USAGE=""
6302    JDK_VARIANT="normal"
6303elif test "x$with_jdk_variant" = xembedded; then
6304    JAVASE_EMBEDDED="JAVASE_EMBEDDED:=true"
6305    MINIMIZE_RAM_USAGE="MINIMIZE_RAM_USAGE:=true"
6306    JDK_VARIANT="embedded"
6307else
6308    as_fn_error $? "The available JDK variants are: normal, embedded" "$LINENO" 5
6309fi
6310
6311
6312
6313
6314
6315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $JDK_VARIANT" >&5
6316$as_echo "$JDK_VARIANT" >&6; }
6317
6318###############################################################################
6319#
6320# Should we build a JDK/JVM with head support (ie a graphical ui)?
6321# We always build headless support.
6322#
6323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking headful support" >&5
6324$as_echo_n "checking headful support... " >&6; }
6325# Check whether --enable-headful was given.
6326if test "${enable_headful+set}" = set; then :
6327  enableval=$enable_headful; SUPPORT_HEADFUL=${enable_headful}
6328else
6329  SUPPORT_HEADFUL=yes
6330fi
6331
6332
6333SUPPORT_HEADLESS=yes
6334BUILD_HEADLESS="BUILD_HEADLESS:=true"
6335
6336if test "x$SUPPORT_HEADFUL" = xyes; then
6337    # We are building both headful and headless.
6338    BUILD_HEADLESS_ONLY=""
6339    headful_msg="inlude support for both headful and headless"
6340fi
6341
6342if test "x$SUPPORT_HEADFUL" = xno; then
6343    # Thus we are building headless only.
6344    BUILD_HEADLESS="BUILD_HEADLESS:=true"
6345    BUILD_HEADLESS_ONLY="BUILD_HEADLESS_ONLY:=true"
6346    headful_msg="headless only"
6347fi
6348
6349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $headful_msg" >&5
6350$as_echo "$headful_msg" >&6; }
6351
6352
6353
6354
6355
6356
6357###############################################################################
6358#
6359# Check which variants of the JVM that we want to build.
6360# Currently we have:
6361#    server: normal interpreter and a tiered C1/C2 compiler
6362#    client: normal interpreter and C1 (no C2 compiler) (only 32-bit platforms)
6363#    kernel: kernel footprint JVM that passes the TCK without major performance problems,
6364#             ie normal interpreter and C1, only the serial GC, kernel jvmti etc
6365#    zero: no machine code interpreter, no compiler
6366#    zeroshark: zero interpreter and shark/llvm compiler backend
6367{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which variants of the JVM that should be built" >&5
6368$as_echo_n "checking which variants of the JVM that should be built... " >&6; }
6369
6370# Check whether --with-jvm-variants was given.
6371if test "${with_jvm_variants+set}" = set; then :
6372  withval=$with_jvm_variants;
6373fi
6374
6375
6376if test "x$with_jvm_variants" = x; then
6377    if test "x$JDK_VARIANT" = xembedded; then
6378        with_jvm_variants="kernel"
6379    elif test "x$HOST_CPU_BITS" = x64; then
6380        with_jvm_variants="server"
6381    else
6382        # Yes, on 32-bit machines, the same source (almost) is compiled twice
6383        # to generate two libjvm.so files. Fun, fun.
6384        with_jvm_variants="client,server"
6385    fi
6386fi
6387
6388JVM_VARIANTS=",$with_jvm_variants,"
6389TEST_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,//' -e 's/client,//' -e 's/kernel,//' -e 's/zero,//' -e 's/zeroshark,//'`
6390
6391if test "x$TEST_VARIANTS" != "x,"; then
6392   as_fn_error $? "The available JVM variants are: server, client, kernel, zero, zeroshark" "$LINENO" 5
6393fi
6394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_jvm_variants" >&5
6395$as_echo "$with_jvm_variants" >&6; }
6396
6397JVM_VARIANT_SERVER=`$ECHO "$JVM_VARIANTS" | $SED -e '/,server,/!s/.*/false/g' -e '/,server,/s/.*/true/g'`
6398JVM_VARIANT_CLIENT=`$ECHO "$JVM_VARIANTS" | $SED -e '/,client,/!s/.*/false/g' -e '/,client,/s/.*/true/g'`
6399JVM_VARIANT_KERNEL=`$ECHO "$JVM_VARIANTS" | $SED -e '/,kernel,/!s/.*/false/g' -e '/,kernel,/s/.*/true/g'`
6400JVM_VARIANT_ZERO=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zero,/!s/.*/false/g' -e '/,zero,/s/.*/true/g'`
6401JVM_VARIANT_ZEROSHARK=`$ECHO "$JVM_VARIANTS" | $SED -e '/,zeroshark,/!s/.*/false/g' -e '/,zeroshark,/s/.*/true/g'`
6402
6403if test "x$JVM_VARIANT_CLIENT" = xtrue; then
6404    if test "x$HOST_CPU_BITS" = x64; then
6405        as_fn_error $? "You cannot build a client JVM for a 64-bit machine." "$LINENO" 5
6406    fi
6407fi
6408if test "x$JVM_VARIANT_KERNEL" = xtrue; then
6409    if test "x$HOST_CPU_BITS" = x64; then
6410        as_fn_error $? "You cannot build a kernel JVM for a 64-bit machine." "$LINENO" 5
6411    fi
6412fi
6413
6414COUNT_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/server,/1/' -e 's/client,/1/' -e 's/kernel,/1/' -e 's/zero,/1/' -e 's/zeroshark,/1/'`
6415# Replace the commas with AND for use in the build directory name.
6416ANDED_JVM_VARIANTS=`$ECHO "$JVM_VARIANTS" | $SED -e 's/^,//' -e 's/,$//' -e 's/,/AND/'`
6417if test "x$COUNT_VARIANTS" != "x,1"; then
6418    { $as_echo "$as_me:${as_lineno-$LINENO}: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&5
6419$as_echo "$as_me: NOTE! Longer build time since we are building more than one version of the libjvm! $with_jvm_variants" >&6;}
6420fi
6421
6422
6423
6424
6425
6426
6427
6428
6429###############################################################################
6430#
6431# Set the debug level
6432#    release: no debug information, all optimizations, no asserts.
6433#    fastdebug: debug information (-g), all optimizations, all asserts
6434#    slowdebug: debug information (-g), no optimizations, all asserts
6435#
6436DEBUG_LEVEL="release"
6437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which debug level to use" >&5
6438$as_echo_n "checking which debug level to use... " >&6; }
6439# Check whether --enable-debug was given.
6440if test "${enable_debug+set}" = set; then :
6441  enableval=$enable_debug;
6442        ENABLE_DEBUG="${enableval}"
6443        DEBUG_LEVEL="fastdebug"
6444
6445else
6446  ENABLE_DEBUG="no"
6447fi
6448
6449
6450
6451# Check whether --with-debug-level was given.
6452if test "${with_debug_level+set}" = set; then :
6453  withval=$with_debug_level;
6454        DEBUG_LEVEL="${withval}"
6455        if test "x$ENABLE_DEBUG" = xyes; then
6456			as_fn_error $? "You cannot use both --enable-debug and --with-debug-level at the same time." "$LINENO" 5
6457        fi
6458
6459fi
6460
6461{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $DEBUG_LEVEL" >&5
6462$as_echo "$DEBUG_LEVEL" >&6; }
6463
6464if test "x$DEBUG_LEVEL" != xrelease && \
6465   test "x$DEBUG_LEVEL" != xfastdebug && \
6466   test "x$DEBUG_LEVEL" != xslowdebug; then
6467   as_fn_error $? "Allowed debug levels are: release, fastdebug and slowdebug" "$LINENO" 5
6468fi
6469
6470case $DEBUG_LEVEL in
6471      release )
6472          VARIANT="OPT"
6473          FASTDEBUG="false"
6474          DEBUG_CLASSFILES="false"
6475          BUILD_VARIANT_RELEASE=""
6476           ;;
6477      fastdebug )
6478          VARIANT="DBG"
6479          FASTDEBUG="true"
6480          DEBUG_CLASSFILES="true"
6481          BUILD_VARIANT_RELEASE="-fastdebug"
6482           ;;
6483      slowdebug )
6484          VARIANT="DBG"
6485          FASTDEBUG="false"
6486          DEBUG_CLASSFILES="true"
6487          BUILD_VARIANT_RELEASE="-debug"
6488           ;;
6489esac
6490
6491
6492
6493
6494
6495
6496
6497# Source the version numbers
6498. $AUTOCONF_DIR/version.numbers
6499if test "x$OPENJDK" = "xfalse"; then
6500    . $AUTOCONF_DIR/closed.version.numbers
6501fi
6502# Now set the JDK version, milestone, build number etc.
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515COPYRIGHT_YEAR=`date +'%Y'`
6516
6517
6518RUNTIME_NAME="$PRODUCT_NAME $PRODUCT_SUFFIX"
6519
6520
6521if test "x$JDK_UPDATE_VERSION" != x; then
6522    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}_${JDK_UPDATE_VERSION}"
6523else
6524    JDK_VERSION="${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_MICRO_VERSION}"
6525fi
6526
6527
6528if test "x$MILESTONE" != x; then
6529    RELEASE="${JDK_VERSION}-${MILESTONE}${BUILD_VARIANT_RELEASE}"
6530else
6531    RELEASE="${JDK_VERSION}${BUILD_VARIANT_RELEASE}"
6532fi
6533
6534
6535if test "x$JDK_BUILD_NUMBER" != x; then
6536    FULL_VERSION="${RELEASE}-${JDK_BUILD_NUMBER}"
6537else
6538    JDK_BUILD_NUMBER=b00
6539    BUILD_DATE=`date '+%Y_%m_%d_%H_%M'`
6540    # Avoid [:alnum:] since it depends on the locale.
6541    CLEAN_USERNAME=`echo "$USER" | $TR -d -c 'abcdefghijklmnopqrstuvqxyz0123456789'`
6542    USER_RELEASE_SUFFIX=`echo "${CLEAN_USERNAME}_${BUILD_DATE}" | $TR 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvqxyz'`
6543    FULL_VERSION="${RELEASE}-${USER_RELEASE_SUFFIX}-${JDK_BUILD_NUMBER}"
6544fi
6545
6546COOKED_BUILD_NUMBER=`$ECHO $JDK_BUILD_NUMBER | $SED -e 's/^b//' -e 's/^0//'`
6547
6548
6549# Test from where we are running configure, in or outside of src root.
6550if test "x$CURDIR" = "x$SRC_ROOT" || test "x$CURDIR" = "x$SRC_ROOT/common" || test "x$CURDIR" = "x$SRC_ROOT/common/autoconf" || test "x$CURDIR" = "x$SRC_ROOT/common/makefiles" ; then
6551    # We are running configure from the src root.
6552    # Create a default ./build/host-variant-debuglevel output root.
6553    CONF_NAME="${HOST_OS}-${HOST_CPU}-${JDK_VARIANT}-${ANDED_JVM_VARIANTS}-${DEBUG_LEVEL}"
6554    OUTPUT_ROOT="$SRC_ROOT/build/${CONF_NAME}"
6555    mkdir -p "$OUTPUT_ROOT"
6556    if test ! -d "$OUTPUT_ROOT"; then
6557        as_fn_error $? "Could not create build directory $OUTPUT_ROOT" "$LINENO" 5
6558    fi
6559else
6560    # We are running configure from outside of the src dir.
6561    # Then use the current directory as output dir!
6562    # If configuration is situated in normal build directory, just use the build
6563    # directory name as configuration name, otherwise use the complete path.
6564    CONF_NAME=`$ECHO $CURDIR | $SED -e "s!^${SRC_ROOT}/build/!!"`
6565    OUTPUT_ROOT="$CURDIR"
6566fi
6567
6568
6569    # Fail with message the path to the output root if var OUTPUT_ROOT contains a path with no spaces in it.
6570    # Unless on Windows, where we can rewrite the path.
6571    HAS_SPACE=`echo "$OUTPUT_ROOT" | grep " "`
6572    if test "x$HAS_SPACE" != x; then
6573        if test "x$BUILD_OS" = "xwindows"; then
6574            OUTPUT_ROOT=`$CYGPATH -s -m -a "$OUTPUT_ROOT"`
6575            OUTPUT_ROOT=`$CYGPATH -u "$OUTPUT_ROOT"`
6576        else
6577            as_fn_error $? "You cannot have spaces in the path to the output root! \"$OUTPUT_ROOT\"" "$LINENO" 5
6578        fi
6579    fi
6580
6581
6582# Save the arguments given to us
6583echo "$CONFIGURE_COMMAND_LINE" > $OUTPUT_ROOT/configure-arguments
6584
6585# Check if the VS env variables were setup prior to running configure.
6586# If not, then find vcvarsall.bat and run it automatically, and integrate
6587# the set env variables into the spec file.
6588SETUPDEVENV="# No special vars"
6589if test "x$BUILD_OS" = "xwindows"; then
6590    # If vcvarsall.bat has been run, then VCINSTALLDIR is set.
6591    if test "x$VCINSTALLDIR" != x; then
6592        # No further setup is needed. The build will happen from this kind
6593        # of shell.
6594        SETUPDEVENV="# This spec file expects that you are running bash from within a VS command prompt."
6595        # Make sure to remind you, if you forget to run make from a cygwin bash shell
6596        # that is spawned "bash -l" from a VS command prompt.
6597        CHECK_FOR_VCINSTALLDIR=yes
6598        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if you are running from within a VS command prompt" >&5
6599$as_echo_n "checking if you are running from within a VS command prompt... " >&6; }
6600        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6601$as_echo "yes" >&6; }
6602    else
6603        # Ah, we have not yet run vcvarsall.bat/vsvars32.bat/vsvars64.bat. Lets do that. First find it.
6604        if test "x$VS100COMNTOOLS" != x; then
6605            VARSBAT=`find "$VS100COMNTOOLS/../.." -name vcvarsall.bat`
6606	    SEARCH_ROOT="$VS100COMNTOOLS"
6607        else
6608            VARSBAT=`find "$PROGRAMFILES" -name vcvarsall.bat`
6609	    SEARCH_ROOT="$PROGRAMFILES"
6610        fi
6611        VCPATH=`dirname "$VARSBAT"`
6612        VCPATH=`cygpath -w "$VCPATH"`
6613	if test "x$VARSBAT" = x || test ! -d "$VCPATH"; then
6614            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
6615$as_echo_n "checking if we can find the VS installation... " >&6; }
6616            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6617$as_echo "no" >&6; }
6618            as_fn_error $? "Tried to find a VS installation using both $SEARCH_ROOT but failed. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6619        fi
6620        case "$LEGACY_HOST_CPU1" in
6621          i?86)
6622            VARSBAT_ARCH=x86
6623            ;;
6624          *)
6625            VARSBAT_ARCH=$LEGACY_HOST_CPU1
6626            ;;
6627        esac
6628        # Lets extract the variables that are set by vcvarsall.bat/vsvars32.bat/vsvars64.bat
6629        cd $OUTPUT_ROOT
6630        bash $SRC_ROOT/common/bin/extractvcvars.sh "$VARSBAT" "$VARSBAT_ARCH"
6631	cd $CURDIR
6632	if test ! -s $OUTPUT_ROOT/localdevenv.sh || test ! -s $OUTPUT_ROOT/localdevenv.gmk; then
6633            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can extract the needed env variables" >&5
6634$as_echo_n "checking if we can extract the needed env variables... " >&6; }
6635            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6636$as_echo "no" >&6; }
6637            as_fn_error $? "Could not succesfully extract the env variables needed for the VS setup. Please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6638        fi
6639        # Now set all paths and other env variables. This will allow the rest of
6640        # the configure script to find and run the compiler in the proper way.
6641        . $OUTPUT_ROOT/localdevenv.sh
6642        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can find the VS installation" >&5
6643$as_echo_n "checking if we can find the VS installation... " >&6; }
6644	if test "x$VCINSTALLDIR" != x; then
6645            { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VCINSTALLDIR" >&5
6646$as_echo "$VCINSTALLDIR" >&6; }
6647        else
6648            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6649$as_echo "no" >&6; }
6650            as_fn_error $? "Could not find VS installation. Please install. If you are sure you have installed VS, then please run \"c:\\cygwin\\bin\\bash.exe -l\" from a VS command prompt and then run configure/make from there." "$LINENO" 5
6651        fi
6652        CHECK_FOR_VCINSTALLDIR=no
6653	SETUPDEVENV="include $OUTPUT_ROOT/localdevenv.gmk"
6654
6655	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for msvcr100.dll" >&5
6656$as_echo_n "checking for msvcr100.dll... " >&6; }
6657
6658# Check whether --with-msvcr100dll was given.
6659if test "${with_msvcr100dll+set}" = set; then :
6660  withval=$with_msvcr100dll;
6661fi
6662
6663        if test "x$with_msvcr100dll" != x; then
6664            MSVCR100DLL="$with_msvcr100dll"
6665        else
6666            if test "x$HOST_CPU_BITS" = x64; then
6667                MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x64 | head --lines 1`
6668            else
6669                MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | grep x86 | grep -v ia64 | grep -v x64 | head --lines 1`
6670                if test "x$MSVCR100DLL" = x; then
6671                    MSVCR100DLL=`find "$VCINSTALLDIR/.." -name msvcr100.dll | head --lines 1`
6672                fi
6673            fi
6674        fi
6675	if test "x$MSVCR100DLL" = x; then
6676           { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6677$as_echo "no" >&6; }
6678	   as_fn_error $? "Could not find msvcr100.dll !" "$LINENO" 5
6679        fi
6680        { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSVCR100DLL" >&5
6681$as_echo "$MSVCR100DLL" >&6; }
6682
6683    # Fail with message the path to msvcr100.dll if var MSVCR100DLL contains a path with no spaces in it.
6684    # Unless on Windows, where we can rewrite the path.
6685    HAS_SPACE=`echo "$MSVCR100DLL" | grep " "`
6686    if test "x$HAS_SPACE" != x; then
6687        if test "x$BUILD_OS" = "xwindows"; then
6688            MSVCR100DLL=`$CYGPATH -s -m -a "$MSVCR100DLL"`
6689            MSVCR100DLL=`$CYGPATH -u "$MSVCR100DLL"`
6690        else
6691            as_fn_error $? "You cannot have spaces in the path to msvcr100.dll! \"$MSVCR100DLL\"" "$LINENO" 5
6692        fi
6693    fi
6694
6695    fi
6696fi
6697
6698
6699
6700
6701# Most of the probed defines are put into config.h
6702ac_config_headers="$ac_config_headers $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in"
6703
6704# The spec.gmk file contains all variables for the make system.
6705ac_config_files="$ac_config_files $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in"
6706
6707# The generated Makefile knows where the spec.gmk is and where the source is.
6708# You can run make from the OUTPUT_ROOT. If you have only
6709# one configured host, then you can also run make from the SRC_ROOT,
6710# since it will go look for a single spec.gmk file. Or perhaps it
6711# should instead make all configured hosts it can find?
6712ac_config_files="$ac_config_files $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in"
6713
6714
6715SPEC=$OUTPUT_ROOT/spec.gmk
6716
6717CONF_NAME=$CONF_NAME
6718
6719OUTPUT_ROOT=$OUTPUT_ROOT
6720
6721
6722# Where are the sources. Any of these can be overridden
6723# using --with-override-corba and the likes.
6724LANGTOOLS_TOPDIR="$SRC_ROOT/langtools"
6725CORBA_TOPDIR="$SRC_ROOT/corba"
6726JAXP_TOPDIR="$SRC_ROOT/jaxp"
6727JAXWS_TOPDIR="$SRC_ROOT/jaxws"
6728HOTSPOT_TOPDIR="$SRC_ROOT/hotspot"
6729JDK_TOPDIR="$SRC_ROOT/jdk"
6730
6731
6732
6733
6734
6735
6736
6737# Check if pkg-config is available.
6738
6739
6740if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6741	if test -n "$ac_tool_prefix"; then
6742  # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
6743set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
6744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6745$as_echo_n "checking for $ac_word... " >&6; }
6746if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
6747  $as_echo_n "(cached) " >&6
6748else
6749  case $PKG_CONFIG in
6750  [\\/]* | ?:[\\/]*)
6751  ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6752  ;;
6753  *)
6754  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6755for as_dir in $PATH
6756do
6757  IFS=$as_save_IFS
6758  test -z "$as_dir" && as_dir=.
6759    for ac_exec_ext in '' $ac_executable_extensions; do
6760  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6761    ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6762    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6763    break 2
6764  fi
6765done
6766  done
6767IFS=$as_save_IFS
6768
6769  ;;
6770esac
6771fi
6772PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6773if test -n "$PKG_CONFIG"; then
6774  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
6775$as_echo "$PKG_CONFIG" >&6; }
6776else
6777  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6778$as_echo "no" >&6; }
6779fi
6780
6781
6782fi
6783if test -z "$ac_cv_path_PKG_CONFIG"; then
6784  ac_pt_PKG_CONFIG=$PKG_CONFIG
6785  # Extract the first word of "pkg-config", so it can be a program name with args.
6786set dummy pkg-config; ac_word=$2
6787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6788$as_echo_n "checking for $ac_word... " >&6; }
6789if test "${ac_cv_path_ac_pt_PKG_CONFIG+set}" = set; then :
6790  $as_echo_n "(cached) " >&6
6791else
6792  case $ac_pt_PKG_CONFIG in
6793  [\\/]* | ?:[\\/]*)
6794  ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
6795  ;;
6796  *)
6797  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6798for as_dir in $PATH
6799do
6800  IFS=$as_save_IFS
6801  test -z "$as_dir" && as_dir=.
6802    for ac_exec_ext in '' $ac_executable_extensions; do
6803  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6804    ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6805    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6806    break 2
6807  fi
6808done
6809  done
6810IFS=$as_save_IFS
6811
6812  ;;
6813esac
6814fi
6815ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
6816if test -n "$ac_pt_PKG_CONFIG"; then
6817  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
6818$as_echo "$ac_pt_PKG_CONFIG" >&6; }
6819else
6820  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6821$as_echo "no" >&6; }
6822fi
6823
6824  if test "x$ac_pt_PKG_CONFIG" = x; then
6825    PKG_CONFIG=""
6826  else
6827    case $cross_compiling:$ac_tool_warned in
6828yes:)
6829{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6830$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6831ac_tool_warned=yes ;;
6832esac
6833    PKG_CONFIG=$ac_pt_PKG_CONFIG
6834  fi
6835else
6836  PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
6837fi
6838
6839fi
6840if test -n "$PKG_CONFIG"; then
6841	_pkg_min_version=0.9.0
6842	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
6843$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
6844	if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6845		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6846$as_echo "yes" >&6; }
6847	else
6848		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6849$as_echo "no" >&6; }
6850		PKG_CONFIG=""
6851	fi
6852
6853fi
6854
6855
6856# Check whether --with-builddeps-conf was given.
6857if test "${with_builddeps_conf+set}" = set; then :
6858  withval=$with_builddeps_conf;
6859fi
6860
6861
6862
6863# Check whether --with-builddeps-server was given.
6864if test "${with_builddeps_server+set}" = set; then :
6865  withval=$with_builddeps_server;
6866fi
6867
6868
6869
6870# Check whether --with-builddeps-dir was given.
6871if test "${with_builddeps_dir+set}" = set; then :
6872  withval=$with_builddeps_dir;
6873else
6874  with_builddeps_dir=/localhome/builddeps
6875fi
6876
6877
6878
6879# Check whether --with-builddeps-group was given.
6880if test "${with_builddeps_group+set}" = set; then :
6881  withval=$with_builddeps_group;
6882fi
6883
6884
6885# Check whether --enable-list-builddeps was given.
6886if test "${enable_list_builddeps+set}" = set; then :
6887  enableval=$enable_list_builddeps; LIST_BUILDDEPS="${enableval}"
6888else
6889  LIST_BUILDDEPS='no'
6890fi
6891
6892
6893if test "x$LIST_BUILDDEPS" = xyes; then
6894    echo
6895    echo List of build dependencies known to the configure script,
6896    echo that can be used in builddeps.conf files:
6897    cat $SRC_ROOT/configure.ac | grep BDEPS_CHECK_MODUL | grep -v configure.ac | cut -f 2 -d ',' | tr -d ' ' | sort
6898    echo
6899    exit 1
6900fi
6901
6902# If builddeps server or conf file is given. Setup buildeps usage.
6903
6904
6905    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
6906        if test "x$with_builddeps_conf" != x; then
6907            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for supplied builddeps configuration file" >&5
6908$as_echo_n "checking for supplied builddeps configuration file... " >&6; }
6909            builddepsfile=$with_builddeps_conf
6910            if test -s $builddepsfile; then
6911                . $builddepsfile
6912                { $as_echo "$as_me:${as_lineno-$LINENO}: result: loaded!" >&5
6913$as_echo "loaded!" >&6; }
6914            else
6915               as_fn_error $? "The given builddeps conf file $with_builddeps_conf could not be loaded!" "$LINENO" 5
6916           fi
6917        else
6918            { $as_echo "$as_me:${as_lineno-$LINENO}: checking for builddeps.conf files in sources..." >&5
6919$as_echo_n "checking for builddeps.conf files in sources...... " >&6; }
6920            builddepsfile=`mktemp`
6921            touch $builddepsfile
6922            # Put all found confs into a single file.
6923            find ${SRC_ROOT} -name builddeps.conf -exec cat \{\} \; >> $builddepsfile
6924            # Source the file to acquire the variables
6925            if test -s $builddepsfile; then
6926                . $builddepsfile
6927                { $as_echo "$as_me:${as_lineno-$LINENO}: result: found at least one!" >&5
6928$as_echo "found at least one!" >&6; }
6929            else
6930               as_fn_error $? "Could not find any builddeps.conf at all!" "$LINENO" 5
6931           fi
6932        fi
6933        # Create build and host names that use _ instead of "-" and ".".
6934        # This is necessary to use them in variable names.
6935        build_var=`echo ${build} | tr '-' '_' | tr '.' '_'`
6936        host_var=`echo ${host} | tr '-' '_' | tr '.' '_'`
6937        # Extract rewrite information for build and host
6938        eval rewritten_build=\${REWRITE_${build_var}}
6939        if test "x$rewritten_build" = x; then
6940            rewritten_build=${build}
6941            echo Build stays the same $rewritten_build
6942        else
6943            echo Rewriting build for builddeps into $rewritten_build
6944        fi
6945        eval rewritten_host=\${REWRITE_${host_var}}
6946        if test "x$rewritten_host" = x; then
6947            rewritten_host=${host}
6948            echo Host stays the same $rewritten_host
6949        else
6950            echo Rewriting host for builddeps into $rewritten_host
6951        fi
6952        rewritten_build_var=`echo ${rewritten_build} | tr '-' '_' | tr '.' '_'`
6953        rewritten_host_var=`echo ${rewritten_host} | tr '-' '_' | tr '.' '_'`
6954    fi
6955    for ac_prog in 7z unzip
6956do
6957  # Extract the first word of "$ac_prog", so it can be a program name with args.
6958set dummy $ac_prog; ac_word=$2
6959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960$as_echo_n "checking for $ac_word... " >&6; }
6961if test "${ac_cv_prog_BDEPS_UNZIP+set}" = set; then :
6962  $as_echo_n "(cached) " >&6
6963else
6964  if test -n "$BDEPS_UNZIP"; then
6965  ac_cv_prog_BDEPS_UNZIP="$BDEPS_UNZIP" # Let the user override the test.
6966else
6967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968for as_dir in $PATH
6969do
6970  IFS=$as_save_IFS
6971  test -z "$as_dir" && as_dir=.
6972    for ac_exec_ext in '' $ac_executable_extensions; do
6973  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6974    ac_cv_prog_BDEPS_UNZIP="$ac_prog"
6975    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976    break 2
6977  fi
6978done
6979  done
6980IFS=$as_save_IFS
6981
6982fi
6983fi
6984BDEPS_UNZIP=$ac_cv_prog_BDEPS_UNZIP
6985if test -n "$BDEPS_UNZIP"; then
6986  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_UNZIP" >&5
6987$as_echo "$BDEPS_UNZIP" >&6; }
6988else
6989  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990$as_echo "no" >&6; }
6991fi
6992
6993
6994  test -n "$BDEPS_UNZIP" && break
6995done
6996
6997    if test "x$BDEPS_UNZIP" = x7z; then
6998        BDEPS_UNZIP="7z x"
6999    fi
7000
7001    for ac_prog in wget lftp ftp
7002do
7003  # Extract the first word of "$ac_prog", so it can be a program name with args.
7004set dummy $ac_prog; ac_word=$2
7005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7006$as_echo_n "checking for $ac_word... " >&6; }
7007if test "${ac_cv_prog_BDEPS_FTP+set}" = set; then :
7008  $as_echo_n "(cached) " >&6
7009else
7010  if test -n "$BDEPS_FTP"; then
7011  ac_cv_prog_BDEPS_FTP="$BDEPS_FTP" # Let the user override the test.
7012else
7013as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7014for as_dir in $PATH
7015do
7016  IFS=$as_save_IFS
7017  test -z "$as_dir" && as_dir=.
7018    for ac_exec_ext in '' $ac_executable_extensions; do
7019  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7020    ac_cv_prog_BDEPS_FTP="$ac_prog"
7021    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7022    break 2
7023  fi
7024done
7025  done
7026IFS=$as_save_IFS
7027
7028fi
7029fi
7030BDEPS_FTP=$ac_cv_prog_BDEPS_FTP
7031if test -n "$BDEPS_FTP"; then
7032  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BDEPS_FTP" >&5
7033$as_echo "$BDEPS_FTP" >&6; }
7034else
7035  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7036$as_echo "no" >&6; }
7037fi
7038
7039
7040  test -n "$BDEPS_FTP" && break
7041done
7042
7043
7044
7045###############################################################################
7046#
7047# Configure the development tool paths and potential sysroot.
7048#
7049ac_ext=cpp
7050ac_cpp='$CXXCPP $CPPFLAGS'
7051ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7052ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7053ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7054
7055DEVKIT=
7056SYS_ROOT=/
7057
7058
7059# The option used to specify the target .o,.a or .so file.
7060# When compiling, how to specify the to be created object file.
7061CC_OUT_OPTION='-o$(SPACE)'
7062# When linking, how to specify the to be created executable.
7063EXE_OUT_OPTION='-o$(SPACE)'
7064# When linking, how to specify the to be created dynamically linkable library.
7065LD_OUT_OPTION='-o$(SPACE)'
7066# When archiving, how to specify the to be create static archive for object files.
7067AR_OUT_OPTION='rcs$(SPACE)'
7068
7069
7070
7071
7072
7073# If --build AND --host is set, then the configure script will find any
7074# cross compilation tools in the PATH. Cross compilation tools
7075# follows the cross compilation standard where they are prefixed with ${host}.
7076# For example the binary i686-sun-solaris2.10-gcc
7077# will cross compile for i686-sun-solaris2.10
7078# If neither of build and host is not set, then build=host and the
7079# default compiler found in the path will be used.
7080# Setting only --host, does not seem to be really supported.
7081# Please set both --build and --host if you want to cross compile.
7082
7083DEFINE_CROSS_COMPILE_ARCH=""
7084HOSTCC=""
7085HOSTCXX=""
7086
7087
7088
7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if this is a cross compile" >&5
7090$as_echo_n "checking if this is a cross compile... " >&6; }
7091if test "x$build_var" != "x$host_var"; then
7092    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, from $build_var to $host_var" >&5
7093$as_echo "yes, from $build_var to $host_var" >&6; }
7094    # We have detected a cross compile!
7095    DEFINE_CROSS_COMPILE_ARCH="CROSS_COMPILE_ARCH:=$LEGACY_HOST_CPU1"
7096    # Now we to find a C/C++ compiler that can build executables for the build
7097    # platform. We can't use the AC_PROG_CC macro, since it can only be used
7098    # once.
7099    for ac_prog in cl cc gcc
7100do
7101  # Extract the first word of "$ac_prog", so it can be a program name with args.
7102set dummy $ac_prog; ac_word=$2
7103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7104$as_echo_n "checking for $ac_word... " >&6; }
7105if test "${ac_cv_path_HOSTCC+set}" = set; then :
7106  $as_echo_n "(cached) " >&6
7107else
7108  case $HOSTCC in
7109  [\\/]* | ?:[\\/]*)
7110  ac_cv_path_HOSTCC="$HOSTCC" # Let the user override the test with a path.
7111  ;;
7112  *)
7113  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7114for as_dir in $PATH
7115do
7116  IFS=$as_save_IFS
7117  test -z "$as_dir" && as_dir=.
7118    for ac_exec_ext in '' $ac_executable_extensions; do
7119  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7120    ac_cv_path_HOSTCC="$as_dir/$ac_word$ac_exec_ext"
7121    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7122    break 2
7123  fi
7124done
7125  done
7126IFS=$as_save_IFS
7127
7128  ;;
7129esac
7130fi
7131HOSTCC=$ac_cv_path_HOSTCC
7132if test -n "$HOSTCC"; then
7133  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCC" >&5
7134$as_echo "$HOSTCC" >&6; }
7135else
7136  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7137$as_echo "no" >&6; }
7138fi
7139
7140
7141  test -n "$HOSTCC" && break
7142done
7143
7144
7145    # Translate "gcc -E" into "`which gcc` -E" ie
7146    # extract the full path to the binary and at the
7147    # same time maintain any arguments passed to it.
7148    # The command MUST exist in the path, or else!
7149    tmp="$HOSTCC"
7150    car="${tmp%% *}"
7151    tmp="$HOSTCC EOL"
7152    cdr="${tmp#* }"
7153    # On windows we want paths without spaces.
7154    if test "x$BUILD_OS" = "xwindows"; then
7155
7156    # Translate long cygdrive or C:\sdfsf path
7157    # into a short mixed mode path that has no
7158    # spaces in it.
7159    tmp="$car"
7160    if test "x$BUILD_OS" = "xwindows"; then
7161        tmp=`$CYGPATH -u "$car"`
7162        tmp=`which "$tmp"`
7163        # If file exists with .exe appended, that's the real filename
7164        # and cygpath needs that to convert to short style path.
7165        if test -f "${tmp}.exe"; then
7166           tmp="${tmp}.exe"
7167        elif test -f "${tmp}.cmd"; then
7168           tmp="${tmp}.cmd"
7169        fi
7170        # Convert to C:/ mixed style path without spaces.
7171         tmp=`$CYGPATH -s -m "$tmp"`
7172    fi
7173    car="$tmp"
7174
7175    else
7176        # "which" is not portable, but is used here
7177        # because we know that the command exists!
7178        car=`which $car`
7179    fi
7180    if test "x$cdr" != xEOL; then
7181        HOSTCC="$car ${cdr% *}"
7182    else
7183        HOSTCC="$car"
7184    fi
7185
7186    for ac_prog in cl CC g++
7187do
7188  # Extract the first word of "$ac_prog", so it can be a program name with args.
7189set dummy $ac_prog; ac_word=$2
7190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7191$as_echo_n "checking for $ac_word... " >&6; }
7192if test "${ac_cv_path_HOSTCXX+set}" = set; then :
7193  $as_echo_n "(cached) " >&6
7194else
7195  case $HOSTCXX in
7196  [\\/]* | ?:[\\/]*)
7197  ac_cv_path_HOSTCXX="$HOSTCXX" # Let the user override the test with a path.
7198  ;;
7199  *)
7200  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201for as_dir in $PATH
7202do
7203  IFS=$as_save_IFS
7204  test -z "$as_dir" && as_dir=.
7205    for ac_exec_ext in '' $ac_executable_extensions; do
7206  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7207    ac_cv_path_HOSTCXX="$as_dir/$ac_word$ac_exec_ext"
7208    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209    break 2
7210  fi
7211done
7212  done
7213IFS=$as_save_IFS
7214
7215  ;;
7216esac
7217fi
7218HOSTCXX=$ac_cv_path_HOSTCXX
7219if test -n "$HOSTCXX"; then
7220  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HOSTCXX" >&5
7221$as_echo "$HOSTCXX" >&6; }
7222else
7223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7224$as_echo "no" >&6; }
7225fi
7226
7227
7228  test -n "$HOSTCXX" && break
7229done
7230
7231
7232    # Translate "gcc -E" into "`which gcc` -E" ie
7233    # extract the full path to the binary and at the
7234    # same time maintain any arguments passed to it.
7235    # The command MUST exist in the path, or else!
7236    tmp="$HOSTCXX"
7237    car="${tmp%% *}"
7238    tmp="$HOSTCXX EOL"
7239    cdr="${tmp#* }"
7240    # On windows we want paths without spaces.
7241    if test "x$BUILD_OS" = "xwindows"; then
7242
7243    # Translate long cygdrive or C:\sdfsf path
7244    # into a short mixed mode path that has no
7245    # spaces in it.
7246    tmp="$car"
7247    if test "x$BUILD_OS" = "xwindows"; then
7248        tmp=`$CYGPATH -u "$car"`
7249        tmp=`which "$tmp"`
7250        # If file exists with .exe appended, that's the real filename
7251        # and cygpath needs that to convert to short style path.
7252        if test -f "${tmp}.exe"; then
7253           tmp="${tmp}.exe"
7254        elif test -f "${tmp}.cmd"; then
7255           tmp="${tmp}.cmd"
7256        fi
7257        # Convert to C:/ mixed style path without spaces.
7258         tmp=`$CYGPATH -s -m "$tmp"`
7259    fi
7260    car="$tmp"
7261
7262    else
7263        # "which" is not portable, but is used here
7264        # because we know that the command exists!
7265        car=`which $car`
7266    fi
7267    if test "x$cdr" != xEOL; then
7268        HOSTCXX="$car ${cdr% *}"
7269    else
7270        HOSTCXX="$car"
7271    fi
7272
7273    # Building for the build platform should be easy. Therefore
7274    # we do not need any linkers or assemblers etc.
7275else
7276    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7277$as_echo "no" >&6; }
7278fi
7279
7280# You can force the sys-root if the sys-root encoded into the cross compiler tools
7281# is not correct.
7282
7283# Check whether --with-sys-root was given.
7284if test "${with_sys_root+set}" = set; then :
7285  withval=$with_sys_root;
7286fi
7287
7288
7289if test "x$with_sys_root" != x; then
7290    SYS_ROOT=$with_sys_root
7291fi
7292
7293# If a devkit is found on the builddeps server, then prepend its path to the
7294# PATH variable. If there are cross compilers available in the devkit, these
7295# will be found by AC_PROG_CC et al.
7296
7297
7298    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
7299        # Source the builddeps file again, to make sure it uses the latest variables!
7300        . $builddepsfile
7301        # Look for a host and build machine specific resource!
7302        eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
7303        if test "x$resource" = x; then
7304            # Ok, lets instead look for a host specific resource
7305            eval resource=\${builddep_devkit_HOST_${rewritten_host_var}}
7306        fi
7307        if test "x$resource" = x; then
7308            # Ok, lets instead look for a build specific resource
7309            eval resource=\${builddep_devkit_BUILD_${rewritten_build_var}}
7310        fi
7311        if test "x$resource" = x; then
7312            # Ok, lets instead look for a generic resource
7313            # (The devkit comes from M4 and not the shell, thus no need for eval here.)
7314            resource=${builddep_devkit}
7315        fi
7316        if test "x$resource" != x; then
7317            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for devkit" >&5
7318$as_echo "$as_me: Using builddeps $resource for devkit" >&6;}
7319	    # If the resource in the builddeps.conf file is an existing directory,
7320	    # for example /java/linux/cups
7321	    if test -d ${resource}; then
7322	       depdir=${resource}
7323	    else
7324
7325# devkit is for example mymodule
7326# $resource is for example libs/general/libmymod_1_2_3.zip
7327# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
7328# $with_builddeps_dir is for example /localhome/builddeps
7329# depdir is the name of the variable into which we store the depdir, eg MYMOD
7330# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
7331# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
7332    filename=`basename $resource`
7333    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
7334    filebase=${filename%%.*}
7335    extension=${filename#*.}
7336    installdir=$with_builddeps_dir/$filebase
7337    if test ! -f $installdir/$filename.unpacked; then
7338        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&5
7339$as_echo "$as_me: Downloading build dependency devkit from $with_builddeps_server/$resource and installing into $installdir" >&6;}
7340        if test ! -d $installdir; then
7341            mkdir -p $installdir
7342        fi
7343        if test ! -d $installdir; then
7344            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
7345        fi
7346        tmpfile=`mktemp $installdir/devkit.XXXXXXXXX`
7347        touch $tmpfile
7348        if test ! -f $tmpfile; then
7349            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
7350        fi
7351
7352    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
7353    # $tmpfile is the local file name for the downloaded file.
7354    VALID_TOOL=no
7355    if test "x$BDEPS_FTP" = xwget; then
7356       VALID_TOOL=yes
7357       wget -O $tmpfile $with_builddeps_server/$resource
7358    fi
7359    if test "x$BDEPS_FTP" = xlftp; then
7360       VALID_TOOL=yes
7361       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
7362    fi
7363    if test "x$BDEPS_FTP" = xftp; then
7364        VALID_TOOL=yes
7365        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
7366        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
7367        FTPUSERPWD=${FTPSERVER%%@*}
7368        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
7369            FTPUSER=${userpwd%%:*}
7370            FTPPWD=${userpwd#*@}
7371            FTPSERVER=${FTPSERVER#*@}
7372        else
7373            FTPUSER=ftp
7374            FTPPWD=ftp
7375        fi
7376        # the "pass" command does not work on some
7377        # ftp clients (read ftp.exe) but if it works,
7378        # passive mode is better!
7379        (\
7380            echo "user $FTPUSER $FTPPWD"        ;\
7381            echo "pass"                         ;\
7382            echo "bin"                          ;\
7383            echo "get $FTPPATH $tmpfile"              ;\
7384        ) | ftp -in $FTPSERVER
7385    fi
7386    if test "x$VALID_TOOL" != xyes; then
7387       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
7388    fi
7389
7390        mv $tmpfile $installdir/$filename
7391        if test ! -s $installdir/$filename; then
7392            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
7393        fi
7394        case "$extension" in
7395            zip)  echo "Unzipping $installdir/$filename..."
7396               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
7397            ;;
7398            tar.gz) echo "Untaring $installdir/$filename..."
7399               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7400            ;;
7401            tgz) echo "Untaring $installdir/$filename..."
7402               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
7403            ;;
7404            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
7405            ;;
7406        esac
7407    fi
7408    if test -f $installdir/$filename.unpacked; then
7409        depdir=$installdir
7410    fi
7411
7412	    fi
7413            # Source the builddeps file again, because in the previous command, the depdir
7414            # was updated to point at the current build dependency install directory.
7415            . $builddepsfile
7416            # Now extract variables from the builddeps.conf files.
7417            theroot=${builddep_devkit_ROOT}
7418            thecflags=${builddep_devkit_CFLAGS}
7419            thelibs=${builddep_devkit_LIBS}
7420            if test "x$depdir" = x; then
7421                as_fn_error $? "Could not download build dependency devkit" "$LINENO" 5
7422            fi
7423            DEVKIT=$depdir
7424            if test "x$theroot" != x; then
7425               DEVKIT="$theroot"
7426            fi
7427            if test "x$thecflags" != x; then
7428               DEVKIT_CFLAGS="$thecflags"
7429            fi
7430            if test "x$thelibs" != x; then
7431               DEVKIT_LIBS="$thelibs"
7432            fi
7433            # Found devkit
7434                     PATH="$DEVKIT/bin:$PATH"
7435                     SYS_ROOT="$DEVKIT/${rewritten_host}/sys-root"
7436                     if test "x$x_includes" = "xNONE"; then
7437                         x_includes="$SYS_ROOT/usr/include/X11"
7438                     fi
7439                     if test "x$x_libraries" = "xNONE"; then
7440                         x_libraries="$SYS_ROOT/usr/lib"
7441                     fi
7442
7443
7444        fi
7445
7446    fi
7447
7448
7449if test "x$SYS_ROOT" != "x/" ; then
7450    CFLAGS="--sysroot=$SYS_ROOT $CFLAGS"
7451    CXXFLAGS="--sysroot=$SYS_ROOT $CXXFLAGS"
7452    OBJCFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
7453    OBJCXXFLAGS="--sysroot=$SYS_ROOT $OBJCFLAGS"
7454    CPPFLAGS="--sysroot=$SYS_ROOT $CPPFLAGS"
7455    LDFLAGS="--sysroot=$SYS_ROOT $LDFLAGS"
7456fi
7457
7458# Store the CFLAGS etal passed to the configure script.
7459ORG_CFLAGS="$CFLAGS"
7460ORG_CXXFLAGS="$CXXFLAGS"
7461ORG_OBJCFLAGS="$OBJCFLAGS"
7462
7463prepare_help_system
7464
7465# gcc is almost always present, but on Windows we
7466# prefer cl.exe and on Solaris we prefer CC.
7467# Thus test for them in this order.
7468ac_ext=c
7469ac_cpp='$CPP $CPPFLAGS'
7470ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7471ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7472ac_compiler_gnu=$ac_cv_c_compiler_gnu
7473if test -n "$ac_tool_prefix"; then
7474  for ac_prog in cl cc gcc
7475  do
7476    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7477set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7478{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7479$as_echo_n "checking for $ac_word... " >&6; }
7480if test "${ac_cv_prog_CC+set}" = set; then :
7481  $as_echo_n "(cached) " >&6
7482else
7483  if test -n "$CC"; then
7484  ac_cv_prog_CC="$CC" # Let the user override the test.
7485else
7486as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7487for as_dir in $PATH
7488do
7489  IFS=$as_save_IFS
7490  test -z "$as_dir" && as_dir=.
7491    for ac_exec_ext in '' $ac_executable_extensions; do
7492  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7493    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7494    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7495    break 2
7496  fi
7497done
7498  done
7499IFS=$as_save_IFS
7500
7501fi
7502fi
7503CC=$ac_cv_prog_CC
7504if test -n "$CC"; then
7505  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7506$as_echo "$CC" >&6; }
7507else
7508  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7509$as_echo "no" >&6; }
7510fi
7511
7512
7513    test -n "$CC" && break
7514  done
7515fi
7516if test -z "$CC"; then
7517  ac_ct_CC=$CC
7518  for ac_prog in cl cc gcc
7519do
7520  # Extract the first word of "$ac_prog", so it can be a program name with args.
7521set dummy $ac_prog; ac_word=$2
7522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7523$as_echo_n "checking for $ac_word... " >&6; }
7524if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
7525  $as_echo_n "(cached) " >&6
7526else
7527  if test -n "$ac_ct_CC"; then
7528  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7529else
7530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7531for as_dir in $PATH
7532do
7533  IFS=$as_save_IFS
7534  test -z "$as_dir" && as_dir=.
7535    for ac_exec_ext in '' $ac_executable_extensions; do
7536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7537    ac_cv_prog_ac_ct_CC="$ac_prog"
7538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7539    break 2
7540  fi
7541done
7542  done
7543IFS=$as_save_IFS
7544
7545fi
7546fi
7547ac_ct_CC=$ac_cv_prog_ac_ct_CC
7548if test -n "$ac_ct_CC"; then
7549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7550$as_echo "$ac_ct_CC" >&6; }
7551else
7552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7553$as_echo "no" >&6; }
7554fi
7555
7556
7557  test -n "$ac_ct_CC" && break
7558done
7559
7560  if test "x$ac_ct_CC" = x; then
7561    CC=""
7562  else
7563    case $cross_compiling:$ac_tool_warned in
7564yes:)
7565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7567ac_tool_warned=yes ;;
7568esac
7569    CC=$ac_ct_CC
7570  fi
7571fi
7572
7573
7574test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7576as_fn_error $? "no acceptable C compiler found in \$PATH
7577See \`config.log' for more details" "$LINENO" 5 ; }
7578
7579# Provide some information about the compiler.
7580$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7581set X $ac_compile
7582ac_compiler=$2
7583for ac_option in --version -v -V -qversion; do
7584  { { ac_try="$ac_compiler $ac_option >&5"
7585case "(($ac_try" in
7586  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587  *) ac_try_echo=$ac_try;;
7588esac
7589eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7590$as_echo "$ac_try_echo"; } >&5
7591  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7592  ac_status=$?
7593  if test -s conftest.err; then
7594    sed '10a\
7595... rest of stderr output deleted ...
7596         10q' conftest.err >conftest.er1
7597    cat conftest.er1 >&5
7598  fi
7599  rm -f conftest.er1 conftest.err
7600  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7601  test $ac_status = 0; }
7602done
7603
7604cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7605/* end confdefs.h.  */
7606
7607int
7608main ()
7609{
7610
7611  ;
7612  return 0;
7613}
7614_ACEOF
7615ac_clean_files_save=$ac_clean_files
7616ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
7617# Try to create an executable without -o first, disregard a.out.
7618# It will help us diagnose broken compilers, and finding out an intuition
7619# of exeext.
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
7621$as_echo_n "checking whether the C compiler works... " >&6; }
7622ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
7623
7624# The possible output files:
7625ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
7626
7627ac_rmfiles=
7628for ac_file in $ac_files
7629do
7630  case $ac_file in
7631    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7632    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
7633  esac
7634done
7635rm -f $ac_rmfiles
7636
7637if { { ac_try="$ac_link_default"
7638case "(($ac_try" in
7639  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640  *) ac_try_echo=$ac_try;;
7641esac
7642eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7643$as_echo "$ac_try_echo"; } >&5
7644  (eval "$ac_link_default") 2>&5
7645  ac_status=$?
7646  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7647  test $ac_status = 0; }; then :
7648  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
7649# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
7650# in a Makefile.  We should not override ac_cv_exeext if it was cached,
7651# so that the user can short-circuit this test for compilers unknown to
7652# Autoconf.
7653for ac_file in $ac_files ''
7654do
7655  test -f "$ac_file" || continue
7656  case $ac_file in
7657    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
7658	;;
7659    [ab].out )
7660	# We found the default executable, but exeext='' is most
7661	# certainly right.
7662	break;;
7663    *.* )
7664	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
7665	then :; else
7666	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7667	fi
7668	# We set ac_cv_exeext here because the later test for it is not
7669	# safe: cross compilers may not add the suffix if given an `-o'
7670	# argument, so we may need to know it at that point already.
7671	# Even if this section looks crufty: it has the advantage of
7672	# actually working.
7673	break;;
7674    * )
7675	break;;
7676  esac
7677done
7678test "$ac_cv_exeext" = no && ac_cv_exeext=
7679
7680else
7681  ac_file=''
7682fi
7683if test -z "$ac_file"; then :
7684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7685$as_echo "no" >&6; }
7686$as_echo "$as_me: failed program was:" >&5
7687sed 's/^/| /' conftest.$ac_ext >&5
7688
7689{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7690$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7691as_fn_error 77 "C compiler cannot create executables
7692See \`config.log' for more details" "$LINENO" 5 ; }
7693else
7694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7695$as_echo "yes" >&6; }
7696fi
7697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
7698$as_echo_n "checking for C compiler default output file name... " >&6; }
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
7700$as_echo "$ac_file" >&6; }
7701ac_exeext=$ac_cv_exeext
7702
7703rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
7704ac_clean_files=$ac_clean_files_save
7705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
7706$as_echo_n "checking for suffix of executables... " >&6; }
7707if { { ac_try="$ac_link"
7708case "(($ac_try" in
7709  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7710  *) ac_try_echo=$ac_try;;
7711esac
7712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7713$as_echo "$ac_try_echo"; } >&5
7714  (eval "$ac_link") 2>&5
7715  ac_status=$?
7716  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7717  test $ac_status = 0; }; then :
7718  # If both `conftest.exe' and `conftest' are `present' (well, observable)
7719# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
7720# work properly (i.e., refer to `conftest.exe'), while it won't with
7721# `rm'.
7722for ac_file in conftest.exe conftest conftest.*; do
7723  test -f "$ac_file" || continue
7724  case $ac_file in
7725    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
7726    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
7727	  break;;
7728    * ) break;;
7729  esac
7730done
7731else
7732  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7733$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7734as_fn_error $? "cannot compute suffix of executables: cannot compile and link
7735See \`config.log' for more details" "$LINENO" 5 ; }
7736fi
7737rm -f conftest conftest$ac_cv_exeext
7738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
7739$as_echo "$ac_cv_exeext" >&6; }
7740
7741rm -f conftest.$ac_ext
7742EXEEXT=$ac_cv_exeext
7743ac_exeext=$EXEEXT
7744cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7745/* end confdefs.h.  */
7746#include <stdio.h>
7747int
7748main ()
7749{
7750FILE *f = fopen ("conftest.out", "w");
7751 return ferror (f) || fclose (f) != 0;
7752
7753  ;
7754  return 0;
7755}
7756_ACEOF
7757ac_clean_files="$ac_clean_files conftest.out"
7758# Check that the compiler produces executables we can run.  If not, either
7759# the compiler is broken, or we cross compile.
7760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
7761$as_echo_n "checking whether we are cross compiling... " >&6; }
7762if test "$cross_compiling" != yes; then
7763  { { ac_try="$ac_link"
7764case "(($ac_try" in
7765  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7766  *) ac_try_echo=$ac_try;;
7767esac
7768eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7769$as_echo "$ac_try_echo"; } >&5
7770  (eval "$ac_link") 2>&5
7771  ac_status=$?
7772  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7773  test $ac_status = 0; }
7774  if { ac_try='./conftest$ac_cv_exeext'
7775  { { case "(($ac_try" in
7776  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7777  *) ac_try_echo=$ac_try;;
7778esac
7779eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7780$as_echo "$ac_try_echo"; } >&5
7781  (eval "$ac_try") 2>&5
7782  ac_status=$?
7783  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7784  test $ac_status = 0; }; }; then
7785    cross_compiling=no
7786  else
7787    if test "$cross_compiling" = maybe; then
7788	cross_compiling=yes
7789    else
7790	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7791$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7792as_fn_error $? "cannot run C compiled programs.
7793If you meant to cross compile, use \`--host'.
7794See \`config.log' for more details" "$LINENO" 5 ; }
7795    fi
7796  fi
7797fi
7798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
7799$as_echo "$cross_compiling" >&6; }
7800
7801rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
7802ac_clean_files=$ac_clean_files_save
7803{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
7804$as_echo_n "checking for suffix of object files... " >&6; }
7805if test "${ac_cv_objext+set}" = set; then :
7806  $as_echo_n "(cached) " >&6
7807else
7808  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7809/* end confdefs.h.  */
7810
7811int
7812main ()
7813{
7814
7815  ;
7816  return 0;
7817}
7818_ACEOF
7819rm -f conftest.o conftest.obj
7820if { { ac_try="$ac_compile"
7821case "(($ac_try" in
7822  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7823  *) ac_try_echo=$ac_try;;
7824esac
7825eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7826$as_echo "$ac_try_echo"; } >&5
7827  (eval "$ac_compile") 2>&5
7828  ac_status=$?
7829  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7830  test $ac_status = 0; }; then :
7831  for ac_file in conftest.o conftest.obj conftest.*; do
7832  test -f "$ac_file" || continue;
7833  case $ac_file in
7834    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
7835    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
7836       break;;
7837  esac
7838done
7839else
7840  $as_echo "$as_me: failed program was:" >&5
7841sed 's/^/| /' conftest.$ac_ext >&5
7842
7843{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7844$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7845as_fn_error $? "cannot compute suffix of object files: cannot compile
7846See \`config.log' for more details" "$LINENO" 5 ; }
7847fi
7848rm -f conftest.$ac_cv_objext conftest.$ac_ext
7849fi
7850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
7851$as_echo "$ac_cv_objext" >&6; }
7852OBJEXT=$ac_cv_objext
7853ac_objext=$OBJEXT
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7855$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7856if test "${ac_cv_c_compiler_gnu+set}" = set; then :
7857  $as_echo_n "(cached) " >&6
7858else
7859  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7860/* end confdefs.h.  */
7861
7862int
7863main ()
7864{
7865#ifndef __GNUC__
7866       choke me
7867#endif
7868
7869  ;
7870  return 0;
7871}
7872_ACEOF
7873if ac_fn_c_try_compile "$LINENO"; then :
7874  ac_compiler_gnu=yes
7875else
7876  ac_compiler_gnu=no
7877fi
7878rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7879ac_cv_c_compiler_gnu=$ac_compiler_gnu
7880
7881fi
7882{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7883$as_echo "$ac_cv_c_compiler_gnu" >&6; }
7884if test $ac_compiler_gnu = yes; then
7885  GCC=yes
7886else
7887  GCC=
7888fi
7889ac_test_CFLAGS=${CFLAGS+set}
7890ac_save_CFLAGS=$CFLAGS
7891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7892$as_echo_n "checking whether $CC accepts -g... " >&6; }
7893if test "${ac_cv_prog_cc_g+set}" = set; then :
7894  $as_echo_n "(cached) " >&6
7895else
7896  ac_save_c_werror_flag=$ac_c_werror_flag
7897   ac_c_werror_flag=yes
7898   ac_cv_prog_cc_g=no
7899   CFLAGS="-g"
7900   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7901/* end confdefs.h.  */
7902
7903int
7904main ()
7905{
7906
7907  ;
7908  return 0;
7909}
7910_ACEOF
7911if ac_fn_c_try_compile "$LINENO"; then :
7912  ac_cv_prog_cc_g=yes
7913else
7914  CFLAGS=""
7915      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7916/* end confdefs.h.  */
7917
7918int
7919main ()
7920{
7921
7922  ;
7923  return 0;
7924}
7925_ACEOF
7926if ac_fn_c_try_compile "$LINENO"; then :
7927
7928else
7929  ac_c_werror_flag=$ac_save_c_werror_flag
7930	 CFLAGS="-g"
7931	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7932/* end confdefs.h.  */
7933
7934int
7935main ()
7936{
7937
7938  ;
7939  return 0;
7940}
7941_ACEOF
7942if ac_fn_c_try_compile "$LINENO"; then :
7943  ac_cv_prog_cc_g=yes
7944fi
7945rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7946fi
7947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7948fi
7949rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7950   ac_c_werror_flag=$ac_save_c_werror_flag
7951fi
7952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7953$as_echo "$ac_cv_prog_cc_g" >&6; }
7954if test "$ac_test_CFLAGS" = set; then
7955  CFLAGS=$ac_save_CFLAGS
7956elif test $ac_cv_prog_cc_g = yes; then
7957  if test "$GCC" = yes; then
7958    CFLAGS="-g -O2"
7959  else
7960    CFLAGS="-g"
7961  fi
7962else
7963  if test "$GCC" = yes; then
7964    CFLAGS="-O2"
7965  else
7966    CFLAGS=
7967  fi
7968fi
7969{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7970$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7971if test "${ac_cv_prog_cc_c89+set}" = set; then :
7972  $as_echo_n "(cached) " >&6
7973else
7974  ac_cv_prog_cc_c89=no
7975ac_save_CC=$CC
7976cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7977/* end confdefs.h.  */
7978#include <stdarg.h>
7979#include <stdio.h>
7980#include <sys/types.h>
7981#include <sys/stat.h>
7982/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
7983struct buf { int x; };
7984FILE * (*rcsopen) (struct buf *, struct stat *, int);
7985static char *e (p, i)
7986     char **p;
7987     int i;
7988{
7989  return p[i];
7990}
7991static char *f (char * (*g) (char **, int), char **p, ...)
7992{
7993  char *s;
7994  va_list v;
7995  va_start (v,p);
7996  s = g (p, va_arg (v,int));
7997  va_end (v);
7998  return s;
7999}
8000
8001/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
8002   function prototypes and stuff, but not '\xHH' hex character constants.
8003   These don't provoke an error unfortunately, instead are silently treated
8004   as 'x'.  The following induces an error, until -std is added to get
8005   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
8006   array size at least.  It's necessary to write '\x00'==0 to get something
8007   that's true only with -std.  */
8008int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8009
8010/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8011   inside strings and character constants.  */
8012#define FOO(x) 'x'
8013int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8014
8015int test (int i, double x);
8016struct s1 {int (*f) (int a);};
8017struct s2 {int (*f) (double a);};
8018int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8019int argc;
8020char **argv;
8021int
8022main ()
8023{
8024return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
8025  ;
8026  return 0;
8027}
8028_ACEOF
8029for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8030	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8031do
8032  CC="$ac_save_CC $ac_arg"
8033  if ac_fn_c_try_compile "$LINENO"; then :
8034  ac_cv_prog_cc_c89=$ac_arg
8035fi
8036rm -f core conftest.err conftest.$ac_objext
8037  test "x$ac_cv_prog_cc_c89" != "xno" && break
8038done
8039rm -f conftest.$ac_ext
8040CC=$ac_save_CC
8041
8042fi
8043# AC_CACHE_VAL
8044case "x$ac_cv_prog_cc_c89" in
8045  x)
8046    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8047$as_echo "none needed" >&6; } ;;
8048  xno)
8049    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8050$as_echo "unsupported" >&6; } ;;
8051  *)
8052    CC="$CC $ac_cv_prog_cc_c89"
8053    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8054$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8055esac
8056if test "x$ac_cv_prog_cc_c89" != xno; then :
8057
8058fi
8059
8060ac_ext=cpp
8061ac_cpp='$CXXCPP $CPPFLAGS'
8062ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8063ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8064ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8065
8066if test "x$CC" = x; then
8067    help_on_build_dependency devkit
8068    as_fn_error $? "Could not find a compiler. $HELP_MSG" "$LINENO" 5
8069fi
8070if test "x$CC" = xcc && test "x$BUILD_OS" = xmacosx; then
8071    # Do not use cc on MacOSX use gcc instead.
8072    CC="gcc"
8073fi
8074
8075    # Translate "gcc -E" into "`which gcc` -E" ie
8076    # extract the full path to the binary and at the
8077    # same time maintain any arguments passed to it.
8078    # The command MUST exist in the path, or else!
8079    tmp="$CC"
8080    car="${tmp%% *}"
8081    tmp="$CC EOL"
8082    cdr="${tmp#* }"
8083    # On windows we want paths without spaces.
8084    if test "x$BUILD_OS" = "xwindows"; then
8085
8086    # Translate long cygdrive or C:\sdfsf path
8087    # into a short mixed mode path that has no
8088    # spaces in it.
8089    tmp="$car"
8090    if test "x$BUILD_OS" = "xwindows"; then
8091        tmp=`$CYGPATH -u "$car"`
8092        tmp=`which "$tmp"`
8093        # If file exists with .exe appended, that's the real filename
8094        # and cygpath needs that to convert to short style path.
8095        if test -f "${tmp}.exe"; then
8096           tmp="${tmp}.exe"
8097        elif test -f "${tmp}.cmd"; then
8098           tmp="${tmp}.cmd"
8099        fi
8100        # Convert to C:/ mixed style path without spaces.
8101         tmp=`$CYGPATH -s -m "$tmp"`
8102    fi
8103    car="$tmp"
8104
8105    else
8106        # "which" is not portable, but is used here
8107        # because we know that the command exists!
8108        car=`which $car`
8109    fi
8110    if test "x$cdr" != xEOL; then
8111        CC="$car ${cdr% *}"
8112    else
8113        CC="$car"
8114    fi
8115
8116
8117ac_ext=cpp
8118ac_cpp='$CXXCPP $CPPFLAGS'
8119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8122if test -z "$CXX"; then
8123  if test -n "$CCC"; then
8124    CXX=$CCC
8125  else
8126    if test -n "$ac_tool_prefix"; then
8127  for ac_prog in cl CC g++
8128  do
8129    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132$as_echo_n "checking for $ac_word... " >&6; }
8133if test "${ac_cv_prog_CXX+set}" = set; then :
8134  $as_echo_n "(cached) " >&6
8135else
8136  if test -n "$CXX"; then
8137  ac_cv_prog_CXX="$CXX" # Let the user override the test.
8138else
8139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140for as_dir in $PATH
8141do
8142  IFS=$as_save_IFS
8143  test -z "$as_dir" && as_dir=.
8144    for ac_exec_ext in '' $ac_executable_extensions; do
8145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8146    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
8147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148    break 2
8149  fi
8150done
8151  done
8152IFS=$as_save_IFS
8153
8154fi
8155fi
8156CXX=$ac_cv_prog_CXX
8157if test -n "$CXX"; then
8158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
8159$as_echo "$CXX" >&6; }
8160else
8161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162$as_echo "no" >&6; }
8163fi
8164
8165
8166    test -n "$CXX" && break
8167  done
8168fi
8169if test -z "$CXX"; then
8170  ac_ct_CXX=$CXX
8171  for ac_prog in cl CC g++
8172do
8173  # Extract the first word of "$ac_prog", so it can be a program name with args.
8174set dummy $ac_prog; ac_word=$2
8175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8176$as_echo_n "checking for $ac_word... " >&6; }
8177if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
8178  $as_echo_n "(cached) " >&6
8179else
8180  if test -n "$ac_ct_CXX"; then
8181  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8182else
8183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8184for as_dir in $PATH
8185do
8186  IFS=$as_save_IFS
8187  test -z "$as_dir" && as_dir=.
8188    for ac_exec_ext in '' $ac_executable_extensions; do
8189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8190    ac_cv_prog_ac_ct_CXX="$ac_prog"
8191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8192    break 2
8193  fi
8194done
8195  done
8196IFS=$as_save_IFS
8197
8198fi
8199fi
8200ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8201if test -n "$ac_ct_CXX"; then
8202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
8203$as_echo "$ac_ct_CXX" >&6; }
8204else
8205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206$as_echo "no" >&6; }
8207fi
8208
8209
8210  test -n "$ac_ct_CXX" && break
8211done
8212
8213  if test "x$ac_ct_CXX" = x; then
8214    CXX="g++"
8215  else
8216    case $cross_compiling:$ac_tool_warned in
8217yes:)
8218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8220ac_tool_warned=yes ;;
8221esac
8222    CXX=$ac_ct_CXX
8223  fi
8224fi
8225
8226  fi
8227fi
8228# Provide some information about the compiler.
8229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
8230set X $ac_compile
8231ac_compiler=$2
8232for ac_option in --version -v -V -qversion; do
8233  { { ac_try="$ac_compiler $ac_option >&5"
8234case "(($ac_try" in
8235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236  *) ac_try_echo=$ac_try;;
8237esac
8238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8239$as_echo "$ac_try_echo"; } >&5
8240  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8241  ac_status=$?
8242  if test -s conftest.err; then
8243    sed '10a\
8244... rest of stderr output deleted ...
8245         10q' conftest.err >conftest.er1
8246    cat conftest.er1 >&5
8247  fi
8248  rm -f conftest.er1 conftest.err
8249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8250  test $ac_status = 0; }
8251done
8252
8253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
8254$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
8255if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
8256  $as_echo_n "(cached) " >&6
8257else
8258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8259/* end confdefs.h.  */
8260
8261int
8262main ()
8263{
8264#ifndef __GNUC__
8265       choke me
8266#endif
8267
8268  ;
8269  return 0;
8270}
8271_ACEOF
8272if ac_fn_cxx_try_compile "$LINENO"; then :
8273  ac_compiler_gnu=yes
8274else
8275  ac_compiler_gnu=no
8276fi
8277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8278ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8279
8280fi
8281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
8282$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
8283if test $ac_compiler_gnu = yes; then
8284  GXX=yes
8285else
8286  GXX=
8287fi
8288ac_test_CXXFLAGS=${CXXFLAGS+set}
8289ac_save_CXXFLAGS=$CXXFLAGS
8290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
8291$as_echo_n "checking whether $CXX accepts -g... " >&6; }
8292if test "${ac_cv_prog_cxx_g+set}" = set; then :
8293  $as_echo_n "(cached) " >&6
8294else
8295  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
8296   ac_cxx_werror_flag=yes
8297   ac_cv_prog_cxx_g=no
8298   CXXFLAGS="-g"
8299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8300/* end confdefs.h.  */
8301
8302int
8303main ()
8304{
8305
8306  ;
8307  return 0;
8308}
8309_ACEOF
8310if ac_fn_cxx_try_compile "$LINENO"; then :
8311  ac_cv_prog_cxx_g=yes
8312else
8313  CXXFLAGS=""
8314      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8315/* end confdefs.h.  */
8316
8317int
8318main ()
8319{
8320
8321  ;
8322  return 0;
8323}
8324_ACEOF
8325if ac_fn_cxx_try_compile "$LINENO"; then :
8326
8327else
8328  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8329	 CXXFLAGS="-g"
8330	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8331/* end confdefs.h.  */
8332
8333int
8334main ()
8335{
8336
8337  ;
8338  return 0;
8339}
8340_ACEOF
8341if ac_fn_cxx_try_compile "$LINENO"; then :
8342  ac_cv_prog_cxx_g=yes
8343fi
8344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8345fi
8346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8347fi
8348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
8350fi
8351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
8352$as_echo "$ac_cv_prog_cxx_g" >&6; }
8353if test "$ac_test_CXXFLAGS" = set; then
8354  CXXFLAGS=$ac_save_CXXFLAGS
8355elif test $ac_cv_prog_cxx_g = yes; then
8356  if test "$GXX" = yes; then
8357    CXXFLAGS="-g -O2"
8358  else
8359    CXXFLAGS="-g"
8360  fi
8361else
8362  if test "$GXX" = yes; then
8363    CXXFLAGS="-O2"
8364  else
8365    CXXFLAGS=
8366  fi
8367fi
8368ac_ext=cpp
8369ac_cpp='$CXXCPP $CPPFLAGS'
8370ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8371ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8372ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8373
8374if test "x$CXX" = xCC && test "x$BUILD_OS" = xmacosx; then
8375    # The found CC, even though it seems to be a g++ derivate, cannot compile
8376    # c++ code. Override.
8377    CXX="g++"
8378fi
8379
8380    # Translate "gcc -E" into "`which gcc` -E" ie
8381    # extract the full path to the binary and at the
8382    # same time maintain any arguments passed to it.
8383    # The command MUST exist in the path, or else!
8384    tmp="$CXX"
8385    car="${tmp%% *}"
8386    tmp="$CXX EOL"
8387    cdr="${tmp#* }"
8388    # On windows we want paths without spaces.
8389    if test "x$BUILD_OS" = "xwindows"; then
8390
8391    # Translate long cygdrive or C:\sdfsf path
8392    # into a short mixed mode path that has no
8393    # spaces in it.
8394    tmp="$car"
8395    if test "x$BUILD_OS" = "xwindows"; then
8396        tmp=`$CYGPATH -u "$car"`
8397        tmp=`which "$tmp"`
8398        # If file exists with .exe appended, that's the real filename
8399        # and cygpath needs that to convert to short style path.
8400        if test -f "${tmp}.exe"; then
8401           tmp="${tmp}.exe"
8402        elif test -f "${tmp}.cmd"; then
8403           tmp="${tmp}.cmd"
8404        fi
8405        # Convert to C:/ mixed style path without spaces.
8406         tmp=`$CYGPATH -s -m "$tmp"`
8407    fi
8408    car="$tmp"
8409
8410    else
8411        # "which" is not portable, but is used here
8412        # because we know that the command exists!
8413        car=`which $car`
8414    fi
8415    if test "x$cdr" != xEOL; then
8416        CXX="$car ${cdr% *}"
8417    else
8418        CXX="$car"
8419    fi
8420
8421
8422if test "x$CXX" = x || test "x$CC" = x; then
8423    help_on_build_dependency devkit
8424    as_fn_error $? "Could not find the needed compilers! $HELP_MSG " "$LINENO" 5
8425fi
8426
8427if test "x$BUILD_OS" != xwindows; then
8428    ac_ext=m
8429ac_cpp='$OBJCPP $CPPFLAGS'
8430ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8431ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8432ac_compiler_gnu=$ac_cv_objc_compiler_gnu
8433if test -n "$ac_tool_prefix"; then
8434  for ac_prog in gcc objcc objc cc CC
8435  do
8436    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8437set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8439$as_echo_n "checking for $ac_word... " >&6; }
8440if test "${ac_cv_prog_OBJC+set}" = set; then :
8441  $as_echo_n "(cached) " >&6
8442else
8443  if test -n "$OBJC"; then
8444  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
8445else
8446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8447for as_dir in $PATH
8448do
8449  IFS=$as_save_IFS
8450  test -z "$as_dir" && as_dir=.
8451    for ac_exec_ext in '' $ac_executable_extensions; do
8452  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8453    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
8454    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8455    break 2
8456  fi
8457done
8458  done
8459IFS=$as_save_IFS
8460
8461fi
8462fi
8463OBJC=$ac_cv_prog_OBJC
8464if test -n "$OBJC"; then
8465  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
8466$as_echo "$OBJC" >&6; }
8467else
8468  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8469$as_echo "no" >&6; }
8470fi
8471
8472
8473    test -n "$OBJC" && break
8474  done
8475fi
8476if test -z "$OBJC"; then
8477  ac_ct_OBJC=$OBJC
8478  for ac_prog in gcc objcc objc cc CC
8479do
8480  # Extract the first word of "$ac_prog", so it can be a program name with args.
8481set dummy $ac_prog; ac_word=$2
8482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483$as_echo_n "checking for $ac_word... " >&6; }
8484if test "${ac_cv_prog_ac_ct_OBJC+set}" = set; then :
8485  $as_echo_n "(cached) " >&6
8486else
8487  if test -n "$ac_ct_OBJC"; then
8488  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
8489else
8490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491for as_dir in $PATH
8492do
8493  IFS=$as_save_IFS
8494  test -z "$as_dir" && as_dir=.
8495    for ac_exec_ext in '' $ac_executable_extensions; do
8496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8497    ac_cv_prog_ac_ct_OBJC="$ac_prog"
8498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499    break 2
8500  fi
8501done
8502  done
8503IFS=$as_save_IFS
8504
8505fi
8506fi
8507ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
8508if test -n "$ac_ct_OBJC"; then
8509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
8510$as_echo "$ac_ct_OBJC" >&6; }
8511else
8512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513$as_echo "no" >&6; }
8514fi
8515
8516
8517  test -n "$ac_ct_OBJC" && break
8518done
8519
8520  if test "x$ac_ct_OBJC" = x; then
8521    OBJC="gcc"
8522  else
8523    case $cross_compiling:$ac_tool_warned in
8524yes:)
8525{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8526$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8527ac_tool_warned=yes ;;
8528esac
8529    OBJC=$ac_ct_OBJC
8530  fi
8531fi
8532
8533# Provide some information about the compiler.
8534$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
8535set X $ac_compile
8536ac_compiler=$2
8537for ac_option in --version -v -V -qversion; do
8538  { { ac_try="$ac_compiler $ac_option >&5"
8539case "(($ac_try" in
8540  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541  *) ac_try_echo=$ac_try;;
8542esac
8543eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8544$as_echo "$ac_try_echo"; } >&5
8545  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8546  ac_status=$?
8547  if test -s conftest.err; then
8548    sed '10a\
8549... rest of stderr output deleted ...
8550         10q' conftest.err >conftest.er1
8551    cat conftest.er1 >&5
8552  fi
8553  rm -f conftest.er1 conftest.err
8554  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8555  test $ac_status = 0; }
8556done
8557
8558{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
8559$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
8560if test "${ac_cv_objc_compiler_gnu+set}" = set; then :
8561  $as_echo_n "(cached) " >&6
8562else
8563  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8564/* end confdefs.h.  */
8565
8566int
8567main ()
8568{
8569#ifndef __GNUC__
8570       choke me
8571#endif
8572
8573  ;
8574  return 0;
8575}
8576_ACEOF
8577if ac_fn_objc_try_compile "$LINENO"; then :
8578  ac_compiler_gnu=yes
8579else
8580  ac_compiler_gnu=no
8581fi
8582rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8583ac_cv_objc_compiler_gnu=$ac_compiler_gnu
8584
8585fi
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
8587$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
8588if test $ac_compiler_gnu = yes; then
8589  GOBJC=yes
8590else
8591  GOBJC=
8592fi
8593ac_test_OBJCFLAGS=${OBJCFLAGS+set}
8594ac_save_OBJCFLAGS=$OBJCFLAGS
8595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
8596$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
8597if test "${ac_cv_prog_objc_g+set}" = set; then :
8598  $as_echo_n "(cached) " >&6
8599else
8600  ac_save_objc_werror_flag=$ac_objc_werror_flag
8601   ac_objc_werror_flag=yes
8602   ac_cv_prog_objc_g=no
8603   OBJCFLAGS="-g"
8604   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8605/* end confdefs.h.  */
8606
8607int
8608main ()
8609{
8610
8611  ;
8612  return 0;
8613}
8614_ACEOF
8615if ac_fn_objc_try_compile "$LINENO"; then :
8616  ac_cv_prog_objc_g=yes
8617else
8618  OBJCFLAGS=""
8619      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8620/* end confdefs.h.  */
8621
8622int
8623main ()
8624{
8625
8626  ;
8627  return 0;
8628}
8629_ACEOF
8630if ac_fn_objc_try_compile "$LINENO"; then :
8631
8632else
8633  ac_objc_werror_flag=$ac_save_objc_werror_flag
8634	 OBJCFLAGS="-g"
8635	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8636/* end confdefs.h.  */
8637
8638int
8639main ()
8640{
8641
8642  ;
8643  return 0;
8644}
8645_ACEOF
8646if ac_fn_objc_try_compile "$LINENO"; then :
8647  ac_cv_prog_objc_g=yes
8648fi
8649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650fi
8651rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652fi
8653rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8654   ac_objc_werror_flag=$ac_save_objc_werror_flag
8655fi
8656{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
8657$as_echo "$ac_cv_prog_objc_g" >&6; }
8658if test "$ac_test_OBJCFLAGS" = set; then
8659  OBJCFLAGS=$ac_save_OBJCFLAGS
8660elif test $ac_cv_prog_objc_g = yes; then
8661  if test "$GOBJC" = yes; then
8662    OBJCFLAGS="-g -O2"
8663  else
8664    OBJCFLAGS="-g"
8665  fi
8666else
8667  if test "$GOBJC" = yes; then
8668    OBJCFLAGS="-O2"
8669  else
8670    OBJCFLAGS=
8671  fi
8672fi
8673ac_ext=cpp
8674ac_cpp='$CXXCPP $CPPFLAGS'
8675ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8676ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8677ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8678
8679
8680    # Translate "gcc -E" into "`which gcc` -E" ie
8681    # extract the full path to the binary and at the
8682    # same time maintain any arguments passed to it.
8683    # The command MUST exist in the path, or else!
8684    tmp="$OBJC"
8685    car="${tmp%% *}"
8686    tmp="$OBJC EOL"
8687    cdr="${tmp#* }"
8688    # On windows we want paths without spaces.
8689    if test "x$BUILD_OS" = "xwindows"; then
8690
8691    # Translate long cygdrive or C:\sdfsf path
8692    # into a short mixed mode path that has no
8693    # spaces in it.
8694    tmp="$car"
8695    if test "x$BUILD_OS" = "xwindows"; then
8696        tmp=`$CYGPATH -u "$car"`
8697        tmp=`which "$tmp"`
8698        # If file exists with .exe appended, that's the real filename
8699        # and cygpath needs that to convert to short style path.
8700        if test -f "${tmp}.exe"; then
8701           tmp="${tmp}.exe"
8702        elif test -f "${tmp}.cmd"; then
8703           tmp="${tmp}.cmd"
8704        fi
8705        # Convert to C:/ mixed style path without spaces.
8706         tmp=`$CYGPATH -s -m "$tmp"`
8707    fi
8708    car="$tmp"
8709
8710    else
8711        # "which" is not portable, but is used here
8712        # because we know that the command exists!
8713        car=`which $car`
8714    fi
8715    if test "x$cdr" != xEOL; then
8716        OBJC="$car ${cdr% *}"
8717    else
8718        OBJC="$car"
8719    fi
8720
8721else
8722    OBJC=
8723fi
8724
8725# Restore the flags to the user specified values.
8726# This is necessary since AC_PROG_CC defaults CFLAGS to "-g -O2"
8727CFLAGS="$ORG_CFLAGS"
8728CXXFLAGS="$ORG_CXXFLAGS"
8729OBJCFLAGS="$ORG_OBJCFLAGS"
8730
8731# If we are not cross compiling, use the same compilers for
8732# building the build platform executables.
8733if test "x$DEFINE_CROSS_COMPILE_ARCH" = x; then
8734    HOSTCC="$CC"
8735    HOSTCXX="$CXX"
8736fi
8737
8738if test -n "$ac_tool_prefix"; then
8739  # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
8740set dummy ${ac_tool_prefix}ld; ac_word=$2
8741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8742$as_echo_n "checking for $ac_word... " >&6; }
8743if test "${ac_cv_prog_LD+set}" = set; then :
8744  $as_echo_n "(cached) " >&6
8745else
8746  if test -n "$LD"; then
8747  ac_cv_prog_LD="$LD" # Let the user override the test.
8748else
8749as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8750for as_dir in $PATH
8751do
8752  IFS=$as_save_IFS
8753  test -z "$as_dir" && as_dir=.
8754    for ac_exec_ext in '' $ac_executable_extensions; do
8755  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8756    ac_cv_prog_LD="${ac_tool_prefix}ld"
8757    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8758    break 2
8759  fi
8760done
8761  done
8762IFS=$as_save_IFS
8763
8764fi
8765fi
8766LD=$ac_cv_prog_LD
8767if test -n "$LD"; then
8768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8769$as_echo "$LD" >&6; }
8770else
8771  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772$as_echo "no" >&6; }
8773fi
8774
8775
8776fi
8777if test -z "$ac_cv_prog_LD"; then
8778  ac_ct_LD=$LD
8779  # Extract the first word of "ld", so it can be a program name with args.
8780set dummy ld; ac_word=$2
8781{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782$as_echo_n "checking for $ac_word... " >&6; }
8783if test "${ac_cv_prog_ac_ct_LD+set}" = set; then :
8784  $as_echo_n "(cached) " >&6
8785else
8786  if test -n "$ac_ct_LD"; then
8787  ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
8788else
8789as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790for as_dir in $PATH
8791do
8792  IFS=$as_save_IFS
8793  test -z "$as_dir" && as_dir=.
8794    for ac_exec_ext in '' $ac_executable_extensions; do
8795  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8796    ac_cv_prog_ac_ct_LD="ld"
8797    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798    break 2
8799  fi
8800done
8801  done
8802IFS=$as_save_IFS
8803
8804fi
8805fi
8806ac_ct_LD=$ac_cv_prog_ac_ct_LD
8807if test -n "$ac_ct_LD"; then
8808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LD" >&5
8809$as_echo "$ac_ct_LD" >&6; }
8810else
8811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812$as_echo "no" >&6; }
8813fi
8814
8815  if test "x$ac_ct_LD" = x; then
8816    LD=""
8817  else
8818    case $cross_compiling:$ac_tool_warned in
8819yes:)
8820{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8821$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8822ac_tool_warned=yes ;;
8823esac
8824    LD=$ac_ct_LD
8825  fi
8826else
8827  LD="$ac_cv_prog_LD"
8828fi
8829
8830
8831    # Translate "gcc -E" into "`which gcc` -E" ie
8832    # extract the full path to the binary and at the
8833    # same time maintain any arguments passed to it.
8834    # The command MUST exist in the path, or else!
8835    tmp="$LD"
8836    car="${tmp%% *}"
8837    tmp="$LD EOL"
8838    cdr="${tmp#* }"
8839    # On windows we want paths without spaces.
8840    if test "x$BUILD_OS" = "xwindows"; then
8841
8842    # Translate long cygdrive or C:\sdfsf path
8843    # into a short mixed mode path that has no
8844    # spaces in it.
8845    tmp="$car"
8846    if test "x$BUILD_OS" = "xwindows"; then
8847        tmp=`$CYGPATH -u "$car"`
8848        tmp=`which "$tmp"`
8849        # If file exists with .exe appended, that's the real filename
8850        # and cygpath needs that to convert to short style path.
8851        if test -f "${tmp}.exe"; then
8852           tmp="${tmp}.exe"
8853        elif test -f "${tmp}.cmd"; then
8854           tmp="${tmp}.cmd"
8855        fi
8856        # Convert to C:/ mixed style path without spaces.
8857         tmp=`$CYGPATH -s -m "$tmp"`
8858    fi
8859    car="$tmp"
8860
8861    else
8862        # "which" is not portable, but is used here
8863        # because we know that the command exists!
8864        car=`which $car`
8865    fi
8866    if test "x$cdr" != xEOL; then
8867        LD="$car ${cdr% *}"
8868    else
8869        LD="$car"
8870    fi
8871
8872LD="$CC"
8873LDEXE="$CC"
8874LDCXX="$CXX"
8875LDEXECXX="$CXX"
8876# LDEXE is the linker to use, when creating executables.
8877
8878# Linking C++ libraries.
8879
8880# Linking C++ executables.
8881
8882
8883if test -n "$ac_tool_prefix"; then
8884  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8885set dummy ${ac_tool_prefix}ar; ac_word=$2
8886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8887$as_echo_n "checking for $ac_word... " >&6; }
8888if test "${ac_cv_prog_AR+set}" = set; then :
8889  $as_echo_n "(cached) " >&6
8890else
8891  if test -n "$AR"; then
8892  ac_cv_prog_AR="$AR" # Let the user override the test.
8893else
8894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8895for as_dir in $PATH
8896do
8897  IFS=$as_save_IFS
8898  test -z "$as_dir" && as_dir=.
8899    for ac_exec_ext in '' $ac_executable_extensions; do
8900  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8901    ac_cv_prog_AR="${ac_tool_prefix}ar"
8902    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8903    break 2
8904  fi
8905done
8906  done
8907IFS=$as_save_IFS
8908
8909fi
8910fi
8911AR=$ac_cv_prog_AR
8912if test -n "$AR"; then
8913  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8914$as_echo "$AR" >&6; }
8915else
8916  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8917$as_echo "no" >&6; }
8918fi
8919
8920
8921fi
8922if test -z "$ac_cv_prog_AR"; then
8923  ac_ct_AR=$AR
8924  # Extract the first word of "ar", so it can be a program name with args.
8925set dummy ar; ac_word=$2
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8927$as_echo_n "checking for $ac_word... " >&6; }
8928if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
8929  $as_echo_n "(cached) " >&6
8930else
8931  if test -n "$ac_ct_AR"; then
8932  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8933else
8934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8935for as_dir in $PATH
8936do
8937  IFS=$as_save_IFS
8938  test -z "$as_dir" && as_dir=.
8939    for ac_exec_ext in '' $ac_executable_extensions; do
8940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8941    ac_cv_prog_ac_ct_AR="ar"
8942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8943    break 2
8944  fi
8945done
8946  done
8947IFS=$as_save_IFS
8948
8949fi
8950fi
8951ac_ct_AR=$ac_cv_prog_ac_ct_AR
8952if test -n "$ac_ct_AR"; then
8953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8954$as_echo "$ac_ct_AR" >&6; }
8955else
8956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8957$as_echo "no" >&6; }
8958fi
8959
8960  if test "x$ac_ct_AR" = x; then
8961    AR=""
8962  else
8963    case $cross_compiling:$ac_tool_warned in
8964yes:)
8965{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8966$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8967ac_tool_warned=yes ;;
8968esac
8969    AR=$ac_ct_AR
8970  fi
8971else
8972  AR="$ac_cv_prog_AR"
8973fi
8974
8975
8976    # Translate "gcc -E" into "`which gcc` -E" ie
8977    # extract the full path to the binary and at the
8978    # same time maintain any arguments passed to it.
8979    # The command MUST exist in the path, or else!
8980    tmp="$AR"
8981    car="${tmp%% *}"
8982    tmp="$AR EOL"
8983    cdr="${tmp#* }"
8984    # On windows we want paths without spaces.
8985    if test "x$BUILD_OS" = "xwindows"; then
8986
8987    # Translate long cygdrive or C:\sdfsf path
8988    # into a short mixed mode path that has no
8989    # spaces in it.
8990    tmp="$car"
8991    if test "x$BUILD_OS" = "xwindows"; then
8992        tmp=`$CYGPATH -u "$car"`
8993        tmp=`which "$tmp"`
8994        # If file exists with .exe appended, that's the real filename
8995        # and cygpath needs that to convert to short style path.
8996        if test -f "${tmp}.exe"; then
8997           tmp="${tmp}.exe"
8998        elif test -f "${tmp}.cmd"; then
8999           tmp="${tmp}.cmd"
9000        fi
9001        # Convert to C:/ mixed style path without spaces.
9002         tmp=`$CYGPATH -s -m "$tmp"`
9003    fi
9004    car="$tmp"
9005
9006    else
9007        # "which" is not portable, but is used here
9008        # because we know that the command exists!
9009        car=`which $car`
9010    fi
9011    if test "x$cdr" != xEOL; then
9012        AR="$car ${cdr% *}"
9013    else
9014        AR="$car"
9015    fi
9016
9017if test "x$BUILD_OS" = xmacosx; then
9018    ARFLAGS="-r"
9019else
9020    ARFLAGS=""
9021fi
9022
9023
9024COMPILER_NAME=gcc
9025COMPILER_TYPE=CC
9026if test "x$BUILD_OS" = xwindows; then :
9027
9028    # For now, assume that we are always compiling using cl.exe.
9029    CC_OUT_OPTION=-Fo
9030    EXE_OUT_OPTION=-out:
9031    LD_OUT_OPTION=-out:
9032    AR_OUT_OPTION=-out:
9033    # On Windows, reject /usr/bin/link, which is a cygwin
9034    # program for something completely different.
9035    # Extract the first word of "link", so it can be a program name with args.
9036set dummy link; ac_word=$2
9037{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9038$as_echo_n "checking for $ac_word... " >&6; }
9039if test "${ac_cv_prog_WINLD+set}" = set; then :
9040  $as_echo_n "(cached) " >&6
9041else
9042  if test -n "$WINLD"; then
9043  ac_cv_prog_WINLD="$WINLD" # Let the user override the test.
9044else
9045  ac_prog_rejected=no
9046as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9047for as_dir in $PATH
9048do
9049  IFS=$as_save_IFS
9050  test -z "$as_dir" && as_dir=.
9051    for ac_exec_ext in '' $ac_executable_extensions; do
9052  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9053    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/link"; then
9054       ac_prog_rejected=yes
9055       continue
9056     fi
9057    ac_cv_prog_WINLD="link"
9058    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9059    break 2
9060  fi
9061done
9062  done
9063IFS=$as_save_IFS
9064
9065if test $ac_prog_rejected = yes; then
9066  # We found a bogon in the path, so make sure we never use it.
9067  set dummy $ac_cv_prog_WINLD
9068  shift
9069  if test $# != 0; then
9070    # We chose a different compiler from the bogus one.
9071    # However, it has the same basename, so the bogon will be chosen
9072    # first if we set WINLD to just the basename; use the full file name.
9073    shift
9074    ac_cv_prog_WINLD="$as_dir/$ac_word${1+' '}$@"
9075  fi
9076fi
9077fi
9078fi
9079WINLD=$ac_cv_prog_WINLD
9080if test -n "$WINLD"; then
9081  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINLD" >&5
9082$as_echo "$WINLD" >&6; }
9083else
9084  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9085$as_echo "no" >&6; }
9086fi
9087
9088
9089    # Since we must ignore the first found link, WINLD will contain
9090    # the full path to the link.exe program.
9091
9092    # Translate long cygdrive or C:\sdfsf path
9093    # into a short mixed mode path that has no
9094    # spaces in it.
9095    tmp="$WINLD"
9096    if test "x$BUILD_OS" = "xwindows"; then
9097        tmp=`$CYGPATH -u "$WINLD"`
9098        tmp=`which "$tmp"`
9099        # If file exists with .exe appended, that's the real filename
9100        # and cygpath needs that to convert to short style path.
9101        if test -f "${tmp}.exe"; then
9102           tmp="${tmp}.exe"
9103        elif test -f "${tmp}.cmd"; then
9104           tmp="${tmp}.cmd"
9105        fi
9106        # Convert to C:/ mixed style path without spaces.
9107         tmp=`$CYGPATH -s -m "$tmp"`
9108    fi
9109    WINLD="$tmp"
9110
9111    LD="$WINLD"
9112    LDEXE="$WINLD"
9113    LDCXX="$WINLD"
9114    LDEXECXX="$WINLD"
9115
9116    # Extract the first word of "mt", so it can be a program name with args.
9117set dummy mt; ac_word=$2
9118{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9119$as_echo_n "checking for $ac_word... " >&6; }
9120if test "${ac_cv_prog_MT+set}" = set; then :
9121  $as_echo_n "(cached) " >&6
9122else
9123  if test -n "$MT"; then
9124  ac_cv_prog_MT="$MT" # Let the user override the test.
9125else
9126  ac_prog_rejected=no
9127as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9128for as_dir in $PATH
9129do
9130  IFS=$as_save_IFS
9131  test -z "$as_dir" && as_dir=.
9132    for ac_exec_ext in '' $ac_executable_extensions; do
9133  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9134    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/mt"; then
9135       ac_prog_rejected=yes
9136       continue
9137     fi
9138    ac_cv_prog_MT="mt"
9139    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9140    break 2
9141  fi
9142done
9143  done
9144IFS=$as_save_IFS
9145
9146if test $ac_prog_rejected = yes; then
9147  # We found a bogon in the path, so make sure we never use it.
9148  set dummy $ac_cv_prog_MT
9149  shift
9150  if test $# != 0; then
9151    # We chose a different compiler from the bogus one.
9152    # However, it has the same basename, so the bogon will be chosen
9153    # first if we set MT to just the basename; use the full file name.
9154    shift
9155    ac_cv_prog_MT="$as_dir/$ac_word${1+' '}$@"
9156  fi
9157fi
9158fi
9159fi
9160MT=$ac_cv_prog_MT
9161if test -n "$MT"; then
9162  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MT" >&5
9163$as_echo "$MT" >&6; }
9164else
9165  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9166$as_echo "no" >&6; }
9167fi
9168
9169
9170
9171    # Translate long cygdrive or C:\sdfsf path
9172    # into a short mixed mode path that has no
9173    # spaces in it.
9174    tmp="$MT"
9175    if test "x$BUILD_OS" = "xwindows"; then
9176        tmp=`$CYGPATH -u "$MT"`
9177        tmp=`which "$tmp"`
9178        # If file exists with .exe appended, that's the real filename
9179        # and cygpath needs that to convert to short style path.
9180        if test -f "${tmp}.exe"; then
9181           tmp="${tmp}.exe"
9182        elif test -f "${tmp}.cmd"; then
9183           tmp="${tmp}.cmd"
9184        fi
9185        # Convert to C:/ mixed style path without spaces.
9186         tmp=`$CYGPATH -s -m "$tmp"`
9187    fi
9188    MT="$tmp"
9189
9190    # The resource compiler
9191    # Extract the first word of "rc", so it can be a program name with args.
9192set dummy rc; ac_word=$2
9193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9194$as_echo_n "checking for $ac_word... " >&6; }
9195if test "${ac_cv_prog_RC+set}" = set; then :
9196  $as_echo_n "(cached) " >&6
9197else
9198  if test -n "$RC"; then
9199  ac_cv_prog_RC="$RC" # Let the user override the test.
9200else
9201  ac_prog_rejected=no
9202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9203for as_dir in $PATH
9204do
9205  IFS=$as_save_IFS
9206  test -z "$as_dir" && as_dir=.
9207    for ac_exec_ext in '' $ac_executable_extensions; do
9208  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9209    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/bin/rc"; then
9210       ac_prog_rejected=yes
9211       continue
9212     fi
9213    ac_cv_prog_RC="rc"
9214    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9215    break 2
9216  fi
9217done
9218  done
9219IFS=$as_save_IFS
9220
9221if test $ac_prog_rejected = yes; then
9222  # We found a bogon in the path, so make sure we never use it.
9223  set dummy $ac_cv_prog_RC
9224  shift
9225  if test $# != 0; then
9226    # We chose a different compiler from the bogus one.
9227    # However, it has the same basename, so the bogon will be chosen
9228    # first if we set RC to just the basename; use the full file name.
9229    shift
9230    ac_cv_prog_RC="$as_dir/$ac_word${1+' '}$@"
9231  fi
9232fi
9233fi
9234fi
9235RC=$ac_cv_prog_RC
9236if test -n "$RC"; then
9237  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC" >&5
9238$as_echo "$RC" >&6; }
9239else
9240  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9241$as_echo "no" >&6; }
9242fi
9243
9244
9245
9246    # Translate long cygdrive or C:\sdfsf path
9247    # into a short mixed mode path that has no
9248    # spaces in it.
9249    tmp="$RC"
9250    if test "x$BUILD_OS" = "xwindows"; then
9251        tmp=`$CYGPATH -u "$RC"`
9252        tmp=`which "$tmp"`
9253        # If file exists with .exe appended, that's the real filename
9254        # and cygpath needs that to convert to short style path.
9255        if test -f "${tmp}.exe"; then
9256           tmp="${tmp}.exe"
9257        elif test -f "${tmp}.cmd"; then
9258           tmp="${tmp}.cmd"
9259        fi
9260        # Convert to C:/ mixed style path without spaces.
9261         tmp=`$CYGPATH -s -m "$tmp"`
9262    fi
9263    RC="$tmp"
9264
9265
9266    RC_FLAGS="-nologo /l 0x409 /r"
9267    if test "x$VARIANT" = xOPT; then :
9268
9269        RC_FLAGS="$RC_FLAGS -d NDEBUG"
9270
9271fi
9272    JDK_UPDATE_VERSION_NOTNULL=$JDK_UPDATE_VERSION
9273    if test "x$JDK_UPDATE_VERSION" = x; then :
9274
9275        JDK_UPDATE_VERSION_NOTNULL=0
9276
9277fi
9278    RC_FLAGS="$RC_FLAGS -d \"JDK_BUILD_ID=$FULL_VERSION\""
9279    RC_FLAGS="$RC_FLAGS -d \"JDK_COMPANY=$COMPANY_NAME\""
9280    RC_FLAGS="$RC_FLAGS -d \"JDK_COMPONENT=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME binary\""
9281    RC_FLAGS="$RC_FLAGS -d \"JDK_VER=$JDK_MINOR_VERSION.$JDK_MICRO_VERSION.$JDK_UPDATE_VERSION_NOTNULL.$COOKED_BUILD_NUMBER\""
9282    RC_FLAGS="$RC_FLAGS -d \"JDK_COPYRIGHT=Copyright \xA9 $COPYRIGHT_YEAR\""
9283    RC_FLAGS="$RC_FLAGS -d \"JDK_NAME=$PRODUCT_NAME $JDK_RC_PLATFORM_NAME $JDK_MINOR_VERSION $JDK_UPDATE_META_TAG\""
9284    RC_FLAGS="$RC_FLAGS -d \"JDK_FVER=$JDK_MINOR_VERSION,$JDK_MICRO_VERSION,$JDK_UPDATE_VERSION_NOTNULL,$COOKED_BUILD_NUMBER\""
9285
9286    # lib.exe is used to create static libraries.
9287    # Extract the first word of "lib", so it can be a program name with args.
9288set dummy lib; ac_word=$2
9289{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9290$as_echo_n "checking for $ac_word... " >&6; }
9291if test "${ac_cv_prog_WINAR+set}" = set; then :
9292  $as_echo_n "(cached) " >&6
9293else
9294  if test -n "$WINAR"; then
9295  ac_cv_prog_WINAR="$WINAR" # Let the user override the test.
9296else
9297as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9298for as_dir in $PATH
9299do
9300  IFS=$as_save_IFS
9301  test -z "$as_dir" && as_dir=.
9302    for ac_exec_ext in '' $ac_executable_extensions; do
9303  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9304    ac_cv_prog_WINAR="lib"
9305    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9306    break 2
9307  fi
9308done
9309  done
9310IFS=$as_save_IFS
9311
9312fi
9313fi
9314WINAR=$ac_cv_prog_WINAR
9315if test -n "$WINAR"; then
9316  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINAR" >&5
9317$as_echo "$WINAR" >&6; }
9318else
9319  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9320$as_echo "no" >&6; }
9321fi
9322
9323
9324
9325    # Translate long cygdrive or C:\sdfsf path
9326    # into a short mixed mode path that has no
9327    # spaces in it.
9328    tmp="$WINAR"
9329    if test "x$BUILD_OS" = "xwindows"; then
9330        tmp=`$CYGPATH -u "$WINAR"`
9331        tmp=`which "$tmp"`
9332        # If file exists with .exe appended, that's the real filename
9333        # and cygpath needs that to convert to short style path.
9334        if test -f "${tmp}.exe"; then
9335           tmp="${tmp}.exe"
9336        elif test -f "${tmp}.cmd"; then
9337           tmp="${tmp}.cmd"
9338        fi
9339        # Convert to C:/ mixed style path without spaces.
9340         tmp=`$CYGPATH -s -m "$tmp"`
9341    fi
9342    WINAR="$tmp"
9343
9344    AR="$WINAR"
9345    ARFLAGS="-nologo -NODEFAULTLIB:MSVCRT"
9346
9347    # Extract the first word of "dumpbin", so it can be a program name with args.
9348set dummy dumpbin; ac_word=$2
9349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9350$as_echo_n "checking for $ac_word... " >&6; }
9351if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
9352  $as_echo_n "(cached) " >&6
9353else
9354  if test -n "$DUMPBIN"; then
9355  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
9356else
9357as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9358for as_dir in $PATH
9359do
9360  IFS=$as_save_IFS
9361  test -z "$as_dir" && as_dir=.
9362    for ac_exec_ext in '' $ac_executable_extensions; do
9363  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9364    ac_cv_prog_DUMPBIN="dumpbin"
9365    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9366    break 2
9367  fi
9368done
9369  done
9370IFS=$as_save_IFS
9371
9372fi
9373fi
9374DUMPBIN=$ac_cv_prog_DUMPBIN
9375if test -n "$DUMPBIN"; then
9376  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
9377$as_echo "$DUMPBIN" >&6; }
9378else
9379  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9380$as_echo "no" >&6; }
9381fi
9382
9383
9384
9385    # Translate long cygdrive or C:\sdfsf path
9386    # into a short mixed mode path that has no
9387    # spaces in it.
9388    tmp="$DUMPBIN"
9389    if test "x$BUILD_OS" = "xwindows"; then
9390        tmp=`$CYGPATH -u "$DUMPBIN"`
9391        tmp=`which "$tmp"`
9392        # If file exists with .exe appended, that's the real filename
9393        # and cygpath needs that to convert to short style path.
9394        if test -f "${tmp}.exe"; then
9395           tmp="${tmp}.exe"
9396        elif test -f "${tmp}.cmd"; then
9397           tmp="${tmp}.cmd"
9398        fi
9399        # Convert to C:/ mixed style path without spaces.
9400         tmp=`$CYGPATH -s -m "$tmp"`
9401    fi
9402    DUMPBIN="$tmp"
9403
9404
9405    COMPILER_TYPE=CL
9406    CCXXFLAGS="$CCXXFLAGS -nologo"
9407    LDFLAGS="$LDFLAGS -nologo -opt:ref -incremental:no"
9408    if test "x$LEGACY_HOST_CPU1" = xi586; then
9409        LDFLAGS="$LDFLAGS -safeseh"
9410    fi
9411    # TODO: make -debug optional "--disable-full-debug-symbols"
9412    LDFLAGS="$LDFLAGS -debug"
9413
9414fi
9415
9416
9417
9418ac_ext=c
9419ac_cpp='$CPP $CPPFLAGS'
9420ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9421ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9422ac_compiler_gnu=$ac_cv_c_compiler_gnu
9423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9424$as_echo_n "checking how to run the C preprocessor... " >&6; }
9425# On Suns, sometimes $CPP names a directory.
9426if test -n "$CPP" && test -d "$CPP"; then
9427  CPP=
9428fi
9429if test -z "$CPP"; then
9430  if test "${ac_cv_prog_CPP+set}" = set; then :
9431  $as_echo_n "(cached) " >&6
9432else
9433      # Double quotes because CPP needs to be expanded
9434    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9435    do
9436      ac_preproc_ok=false
9437for ac_c_preproc_warn_flag in '' yes
9438do
9439  # Use a header file that comes with gcc, so configuring glibc
9440  # with a fresh cross-compiler works.
9441  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9442  # <limits.h> exists even on freestanding compilers.
9443  # On the NeXT, cc -E runs the code through the compiler's parser,
9444  # not just through cpp. "Syntax error" is here to catch this case.
9445  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9446/* end confdefs.h.  */
9447#ifdef __STDC__
9448# include <limits.h>
9449#else
9450# include <assert.h>
9451#endif
9452		     Syntax error
9453_ACEOF
9454if ac_fn_c_try_cpp "$LINENO"; then :
9455
9456else
9457  # Broken: fails on valid input.
9458continue
9459fi
9460rm -f conftest.err conftest.i conftest.$ac_ext
9461
9462  # OK, works on sane cases.  Now check whether nonexistent headers
9463  # can be detected and how.
9464  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9465/* end confdefs.h.  */
9466#include <ac_nonexistent.h>
9467_ACEOF
9468if ac_fn_c_try_cpp "$LINENO"; then :
9469  # Broken: success on invalid input.
9470continue
9471else
9472  # Passes both tests.
9473ac_preproc_ok=:
9474break
9475fi
9476rm -f conftest.err conftest.i conftest.$ac_ext
9477
9478done
9479# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9480rm -f conftest.i conftest.err conftest.$ac_ext
9481if $ac_preproc_ok; then :
9482  break
9483fi
9484
9485    done
9486    ac_cv_prog_CPP=$CPP
9487
9488fi
9489  CPP=$ac_cv_prog_CPP
9490else
9491  ac_cv_prog_CPP=$CPP
9492fi
9493{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9494$as_echo "$CPP" >&6; }
9495ac_preproc_ok=false
9496for ac_c_preproc_warn_flag in '' yes
9497do
9498  # Use a header file that comes with gcc, so configuring glibc
9499  # with a fresh cross-compiler works.
9500  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9501  # <limits.h> exists even on freestanding compilers.
9502  # On the NeXT, cc -E runs the code through the compiler's parser,
9503  # not just through cpp. "Syntax error" is here to catch this case.
9504  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9505/* end confdefs.h.  */
9506#ifdef __STDC__
9507# include <limits.h>
9508#else
9509# include <assert.h>
9510#endif
9511		     Syntax error
9512_ACEOF
9513if ac_fn_c_try_cpp "$LINENO"; then :
9514
9515else
9516  # Broken: fails on valid input.
9517continue
9518fi
9519rm -f conftest.err conftest.i conftest.$ac_ext
9520
9521  # OK, works on sane cases.  Now check whether nonexistent headers
9522  # can be detected and how.
9523  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9524/* end confdefs.h.  */
9525#include <ac_nonexistent.h>
9526_ACEOF
9527if ac_fn_c_try_cpp "$LINENO"; then :
9528  # Broken: success on invalid input.
9529continue
9530else
9531  # Passes both tests.
9532ac_preproc_ok=:
9533break
9534fi
9535rm -f conftest.err conftest.i conftest.$ac_ext
9536
9537done
9538# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9539rm -f conftest.i conftest.err conftest.$ac_ext
9540if $ac_preproc_ok; then :
9541
9542else
9543  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9544$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9545as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
9546See \`config.log' for more details" "$LINENO" 5 ; }
9547fi
9548
9549ac_ext=cpp
9550ac_cpp='$CXXCPP $CPPFLAGS'
9551ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9552ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9553ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9554
9555
9556    # Translate "gcc -E" into "`which gcc` -E" ie
9557    # extract the full path to the binary and at the
9558    # same time maintain any arguments passed to it.
9559    # The command MUST exist in the path, or else!
9560    tmp="$CPP"
9561    car="${tmp%% *}"
9562    tmp="$CPP EOL"
9563    cdr="${tmp#* }"
9564    # On windows we want paths without spaces.
9565    if test "x$BUILD_OS" = "xwindows"; then
9566
9567    # Translate long cygdrive or C:\sdfsf path
9568    # into a short mixed mode path that has no
9569    # spaces in it.
9570    tmp="$car"
9571    if test "x$BUILD_OS" = "xwindows"; then
9572        tmp=`$CYGPATH -u "$car"`
9573        tmp=`which "$tmp"`
9574        # If file exists with .exe appended, that's the real filename
9575        # and cygpath needs that to convert to short style path.
9576        if test -f "${tmp}.exe"; then
9577           tmp="${tmp}.exe"
9578        elif test -f "${tmp}.cmd"; then
9579           tmp="${tmp}.cmd"
9580        fi
9581        # Convert to C:/ mixed style path without spaces.
9582         tmp=`$CYGPATH -s -m "$tmp"`
9583    fi
9584    car="$tmp"
9585
9586    else
9587        # "which" is not portable, but is used here
9588        # because we know that the command exists!
9589        car=`which $car`
9590    fi
9591    if test "x$cdr" != xEOL; then
9592        CPP="$car ${cdr% *}"
9593    else
9594        CPP="$car"
9595    fi
9596
9597
9598ac_ext=cpp
9599ac_cpp='$CXXCPP $CPPFLAGS'
9600ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9601ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9602ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9603{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
9604$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
9605if test -z "$CXXCPP"; then
9606  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
9607  $as_echo_n "(cached) " >&6
9608else
9609      # Double quotes because CXXCPP needs to be expanded
9610    for CXXCPP in "$CXX -E" "/lib/cpp"
9611    do
9612      ac_preproc_ok=false
9613for ac_cxx_preproc_warn_flag in '' yes
9614do
9615  # Use a header file that comes with gcc, so configuring glibc
9616  # with a fresh cross-compiler works.
9617  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9618  # <limits.h> exists even on freestanding compilers.
9619  # On the NeXT, cc -E runs the code through the compiler's parser,
9620  # not just through cpp. "Syntax error" is here to catch this case.
9621  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9622/* end confdefs.h.  */
9623#ifdef __STDC__
9624# include <limits.h>
9625#else
9626# include <assert.h>
9627#endif
9628		     Syntax error
9629_ACEOF
9630if ac_fn_cxx_try_cpp "$LINENO"; then :
9631
9632else
9633  # Broken: fails on valid input.
9634continue
9635fi
9636rm -f conftest.err conftest.i conftest.$ac_ext
9637
9638  # OK, works on sane cases.  Now check whether nonexistent headers
9639  # can be detected and how.
9640  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9641/* end confdefs.h.  */
9642#include <ac_nonexistent.h>
9643_ACEOF
9644if ac_fn_cxx_try_cpp "$LINENO"; then :
9645  # Broken: success on invalid input.
9646continue
9647else
9648  # Passes both tests.
9649ac_preproc_ok=:
9650break
9651fi
9652rm -f conftest.err conftest.i conftest.$ac_ext
9653
9654done
9655# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9656rm -f conftest.i conftest.err conftest.$ac_ext
9657if $ac_preproc_ok; then :
9658  break
9659fi
9660
9661    done
9662    ac_cv_prog_CXXCPP=$CXXCPP
9663
9664fi
9665  CXXCPP=$ac_cv_prog_CXXCPP
9666else
9667  ac_cv_prog_CXXCPP=$CXXCPP
9668fi
9669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
9670$as_echo "$CXXCPP" >&6; }
9671ac_preproc_ok=false
9672for ac_cxx_preproc_warn_flag in '' yes
9673do
9674  # Use a header file that comes with gcc, so configuring glibc
9675  # with a fresh cross-compiler works.
9676  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9677  # <limits.h> exists even on freestanding compilers.
9678  # On the NeXT, cc -E runs the code through the compiler's parser,
9679  # not just through cpp. "Syntax error" is here to catch this case.
9680  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9681/* end confdefs.h.  */
9682#ifdef __STDC__
9683# include <limits.h>
9684#else
9685# include <assert.h>
9686#endif
9687		     Syntax error
9688_ACEOF
9689if ac_fn_cxx_try_cpp "$LINENO"; then :
9690
9691else
9692  # Broken: fails on valid input.
9693continue
9694fi
9695rm -f conftest.err conftest.i conftest.$ac_ext
9696
9697  # OK, works on sane cases.  Now check whether nonexistent headers
9698  # can be detected and how.
9699  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9700/* end confdefs.h.  */
9701#include <ac_nonexistent.h>
9702_ACEOF
9703if ac_fn_cxx_try_cpp "$LINENO"; then :
9704  # Broken: success on invalid input.
9705continue
9706else
9707  # Passes both tests.
9708ac_preproc_ok=:
9709break
9710fi
9711rm -f conftest.err conftest.i conftest.$ac_ext
9712
9713done
9714# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9715rm -f conftest.i conftest.err conftest.$ac_ext
9716if $ac_preproc_ok; then :
9717
9718else
9719  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9720$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9721as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
9722See \`config.log' for more details" "$LINENO" 5 ; }
9723fi
9724
9725ac_ext=cpp
9726ac_cpp='$CXXCPP $CPPFLAGS'
9727ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9728ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9729ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9730
9731
9732    # Translate "gcc -E" into "`which gcc` -E" ie
9733    # extract the full path to the binary and at the
9734    # same time maintain any arguments passed to it.
9735    # The command MUST exist in the path, or else!
9736    tmp="$CXXCPP"
9737    car="${tmp%% *}"
9738    tmp="$CXXCPP EOL"
9739    cdr="${tmp#* }"
9740    # On windows we want paths without spaces.
9741    if test "x$BUILD_OS" = "xwindows"; then
9742
9743    # Translate long cygdrive or C:\sdfsf path
9744    # into a short mixed mode path that has no
9745    # spaces in it.
9746    tmp="$car"
9747    if test "x$BUILD_OS" = "xwindows"; then
9748        tmp=`$CYGPATH -u "$car"`
9749        tmp=`which "$tmp"`
9750        # If file exists with .exe appended, that's the real filename
9751        # and cygpath needs that to convert to short style path.
9752        if test -f "${tmp}.exe"; then
9753           tmp="${tmp}.exe"
9754        elif test -f "${tmp}.cmd"; then
9755           tmp="${tmp}.cmd"
9756        fi
9757        # Convert to C:/ mixed style path without spaces.
9758         tmp=`$CYGPATH -s -m "$tmp"`
9759    fi
9760    car="$tmp"
9761
9762    else
9763        # "which" is not portable, but is used here
9764        # because we know that the command exists!
9765        car=`which $car`
9766    fi
9767    if test "x$cdr" != xEOL; then
9768        CXXCPP="$car ${cdr% *}"
9769    else
9770        CXXCPP="$car"
9771    fi
9772
9773
9774# Find the right assembler.
9775if test "x$BUILD_OS" = xsolaris; then
9776    # Extract the first word of "as", so it can be a program name with args.
9777set dummy as; ac_word=$2
9778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9779$as_echo_n "checking for $ac_word... " >&6; }
9780if test "${ac_cv_path_AS+set}" = set; then :
9781  $as_echo_n "(cached) " >&6
9782else
9783  case $AS in
9784  [\\/]* | ?:[\\/]*)
9785  ac_cv_path_AS="$AS" # Let the user override the test with a path.
9786  ;;
9787  *)
9788  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9789for as_dir in $PATH
9790do
9791  IFS=$as_save_IFS
9792  test -z "$as_dir" && as_dir=.
9793    for ac_exec_ext in '' $ac_executable_extensions; do
9794  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9795    ac_cv_path_AS="$as_dir/$ac_word$ac_exec_ext"
9796    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9797    break 2
9798  fi
9799done
9800  done
9801IFS=$as_save_IFS
9802
9803  ;;
9804esac
9805fi
9806AS=$ac_cv_path_AS
9807if test -n "$AS"; then
9808  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
9809$as_echo "$AS" >&6; }
9810else
9811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9812$as_echo "no" >&6; }
9813fi
9814
9815
9816
9817    # Translate "gcc -E" into "`which gcc` -E" ie
9818    # extract the full path to the binary and at the
9819    # same time maintain any arguments passed to it.
9820    # The command MUST exist in the path, or else!
9821    tmp="$AS"
9822    car="${tmp%% *}"
9823    tmp="$AS EOL"
9824    cdr="${tmp#* }"
9825    # On windows we want paths without spaces.
9826    if test "x$BUILD_OS" = "xwindows"; then
9827
9828    # Translate long cygdrive or C:\sdfsf path
9829    # into a short mixed mode path that has no
9830    # spaces in it.
9831    tmp="$car"
9832    if test "x$BUILD_OS" = "xwindows"; then
9833        tmp=`$CYGPATH -u "$car"`
9834        tmp=`which "$tmp"`
9835        # If file exists with .exe appended, that's the real filename
9836        # and cygpath needs that to convert to short style path.
9837        if test -f "${tmp}.exe"; then
9838           tmp="${tmp}.exe"
9839        elif test -f "${tmp}.cmd"; then
9840           tmp="${tmp}.cmd"
9841        fi
9842        # Convert to C:/ mixed style path without spaces.
9843         tmp=`$CYGPATH -s -m "$tmp"`
9844    fi
9845    car="$tmp"
9846
9847    else
9848        # "which" is not portable, but is used here
9849        # because we know that the command exists!
9850        car=`which $car`
9851    fi
9852    if test "x$cdr" != xEOL; then
9853        AS="$car ${cdr% *}"
9854    else
9855        AS="$car"
9856    fi
9857
9858    ASFLAGS=" "
9859else
9860    AS="$CC -c"
9861    ASFLAGS=" "
9862fi
9863
9864
9865
9866if test "x$HOST_CPU_BITS" = x32 && test "x$HOST_OS" = xmacosx; then
9867    # On 32-bit MacOSX the OS requires C-entry points to be 16 byte aligned.
9868    # While waiting for a better solution, the current workaround is to use -mstackrealign.
9869    CFLAGS="$CFLAGS -mstackrealign"
9870    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if 32-bit compiler supports -mstackrealign" >&5
9871$as_echo_n "checking if 32-bit compiler supports -mstackrealign... " >&6; }
9872
9873cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9874/* end confdefs.h.  */
9875int main() { return 0; }
9876_ACEOF
9877if ac_fn_cxx_try_link "$LINENO"; then :
9878
9879		        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9880$as_echo "yes" >&6; }
9881
9882else
9883
9884		        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9885$as_echo "no" >&6; }
9886	                as_fn_error $? "The selected compiler $CXX does not support -mstackrealign! Try to put another compiler in the path." "$LINENO" 5
9887
9888fi
9889rm -f core conftest.err conftest.$ac_objext \
9890    conftest$ac_exeext conftest.$ac_ext
9891fi
9892
9893if test "x$BUILD_OS" = xsolaris; then
9894    # Extract the first word of "nm", so it can be a program name with args.
9895set dummy nm; ac_word=$2
9896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9897$as_echo_n "checking for $ac_word... " >&6; }
9898if test "${ac_cv_path_NM+set}" = set; then :
9899  $as_echo_n "(cached) " >&6
9900else
9901  case $NM in
9902  [\\/]* | ?:[\\/]*)
9903  ac_cv_path_NM="$NM" # Let the user override the test with a path.
9904  ;;
9905  *)
9906  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9907for as_dir in $PATH
9908do
9909  IFS=$as_save_IFS
9910  test -z "$as_dir" && as_dir=.
9911    for ac_exec_ext in '' $ac_executable_extensions; do
9912  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9913    ac_cv_path_NM="$as_dir/$ac_word$ac_exec_ext"
9914    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9915    break 2
9916  fi
9917done
9918  done
9919IFS=$as_save_IFS
9920
9921  ;;
9922esac
9923fi
9924NM=$ac_cv_path_NM
9925if test -n "$NM"; then
9926  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
9927$as_echo "$NM" >&6; }
9928else
9929  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9930$as_echo "no" >&6; }
9931fi
9932
9933
9934
9935    # Translate "gcc -E" into "`which gcc` -E" ie
9936    # extract the full path to the binary and at the
9937    # same time maintain any arguments passed to it.
9938    # The command MUST exist in the path, or else!
9939    tmp="$NM"
9940    car="${tmp%% *}"
9941    tmp="$NM EOL"
9942    cdr="${tmp#* }"
9943    # On windows we want paths without spaces.
9944    if test "x$BUILD_OS" = "xwindows"; then
9945
9946    # Translate long cygdrive or C:\sdfsf path
9947    # into a short mixed mode path that has no
9948    # spaces in it.
9949    tmp="$car"
9950    if test "x$BUILD_OS" = "xwindows"; then
9951        tmp=`$CYGPATH -u "$car"`
9952        tmp=`which "$tmp"`
9953        # If file exists with .exe appended, that's the real filename
9954        # and cygpath needs that to convert to short style path.
9955        if test -f "${tmp}.exe"; then
9956           tmp="${tmp}.exe"
9957        elif test -f "${tmp}.cmd"; then
9958           tmp="${tmp}.cmd"
9959        fi
9960        # Convert to C:/ mixed style path without spaces.
9961         tmp=`$CYGPATH -s -m "$tmp"`
9962    fi
9963    car="$tmp"
9964
9965    else
9966        # "which" is not portable, but is used here
9967        # because we know that the command exists!
9968        car=`which $car`
9969    fi
9970    if test "x$cdr" != xEOL; then
9971        NM="$car ${cdr% *}"
9972    else
9973        NM="$car"
9974    fi
9975
9976    # Extract the first word of "strip", so it can be a program name with args.
9977set dummy strip; ac_word=$2
9978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9979$as_echo_n "checking for $ac_word... " >&6; }
9980if test "${ac_cv_path_STRIP+set}" = set; then :
9981  $as_echo_n "(cached) " >&6
9982else
9983  case $STRIP in
9984  [\\/]* | ?:[\\/]*)
9985  ac_cv_path_STRIP="$STRIP" # Let the user override the test with a path.
9986  ;;
9987  *)
9988  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9989for as_dir in $PATH
9990do
9991  IFS=$as_save_IFS
9992  test -z "$as_dir" && as_dir=.
9993    for ac_exec_ext in '' $ac_executable_extensions; do
9994  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9995    ac_cv_path_STRIP="$as_dir/$ac_word$ac_exec_ext"
9996    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9997    break 2
9998  fi
9999done
10000  done
10001IFS=$as_save_IFS
10002
10003  ;;
10004esac
10005fi
10006STRIP=$ac_cv_path_STRIP
10007if test -n "$STRIP"; then
10008  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10009$as_echo "$STRIP" >&6; }
10010else
10011  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10012$as_echo "no" >&6; }
10013fi
10014
10015
10016
10017    # Translate "gcc -E" into "`which gcc` -E" ie
10018    # extract the full path to the binary and at the
10019    # same time maintain any arguments passed to it.
10020    # The command MUST exist in the path, or else!
10021    tmp="$STRIP"
10022    car="${tmp%% *}"
10023    tmp="$STRIP EOL"
10024    cdr="${tmp#* }"
10025    # On windows we want paths without spaces.
10026    if test "x$BUILD_OS" = "xwindows"; then
10027
10028    # Translate long cygdrive or C:\sdfsf path
10029    # into a short mixed mode path that has no
10030    # spaces in it.
10031    tmp="$car"
10032    if test "x$BUILD_OS" = "xwindows"; then
10033        tmp=`$CYGPATH -u "$car"`
10034        tmp=`which "$tmp"`
10035        # If file exists with .exe appended, that's the real filename
10036        # and cygpath needs that to convert to short style path.
10037        if test -f "${tmp}.exe"; then
10038           tmp="${tmp}.exe"
10039        elif test -f "${tmp}.cmd"; then
10040           tmp="${tmp}.cmd"
10041        fi
10042        # Convert to C:/ mixed style path without spaces.
10043         tmp=`$CYGPATH -s -m "$tmp"`
10044    fi
10045    car="$tmp"
10046
10047    else
10048        # "which" is not portable, but is used here
10049        # because we know that the command exists!
10050        car=`which $car`
10051    fi
10052    if test "x$cdr" != xEOL; then
10053        STRIP="$car ${cdr% *}"
10054    else
10055        STRIP="$car"
10056    fi
10057
10058    # Extract the first word of "mcs", so it can be a program name with args.
10059set dummy mcs; ac_word=$2
10060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10061$as_echo_n "checking for $ac_word... " >&6; }
10062if test "${ac_cv_path_MCS+set}" = set; then :
10063  $as_echo_n "(cached) " >&6
10064else
10065  case $MCS in
10066  [\\/]* | ?:[\\/]*)
10067  ac_cv_path_MCS="$MCS" # Let the user override the test with a path.
10068  ;;
10069  *)
10070  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071for as_dir in $PATH
10072do
10073  IFS=$as_save_IFS
10074  test -z "$as_dir" && as_dir=.
10075    for ac_exec_ext in '' $ac_executable_extensions; do
10076  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077    ac_cv_path_MCS="$as_dir/$ac_word$ac_exec_ext"
10078    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10079    break 2
10080  fi
10081done
10082  done
10083IFS=$as_save_IFS
10084
10085  ;;
10086esac
10087fi
10088MCS=$ac_cv_path_MCS
10089if test -n "$MCS"; then
10090  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MCS" >&5
10091$as_echo "$MCS" >&6; }
10092else
10093  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10094$as_echo "no" >&6; }
10095fi
10096
10097
10098
10099    # Translate "gcc -E" into "`which gcc` -E" ie
10100    # extract the full path to the binary and at the
10101    # same time maintain any arguments passed to it.
10102    # The command MUST exist in the path, or else!
10103    tmp="$MCS"
10104    car="${tmp%% *}"
10105    tmp="$MCS EOL"
10106    cdr="${tmp#* }"
10107    # On windows we want paths without spaces.
10108    if test "x$BUILD_OS" = "xwindows"; then
10109
10110    # Translate long cygdrive or C:\sdfsf path
10111    # into a short mixed mode path that has no
10112    # spaces in it.
10113    tmp="$car"
10114    if test "x$BUILD_OS" = "xwindows"; then
10115        tmp=`$CYGPATH -u "$car"`
10116        tmp=`which "$tmp"`
10117        # If file exists with .exe appended, that's the real filename
10118        # and cygpath needs that to convert to short style path.
10119        if test -f "${tmp}.exe"; then
10120           tmp="${tmp}.exe"
10121        elif test -f "${tmp}.cmd"; then
10122           tmp="${tmp}.cmd"
10123        fi
10124        # Convert to C:/ mixed style path without spaces.
10125         tmp=`$CYGPATH -s -m "$tmp"`
10126    fi
10127    car="$tmp"
10128
10129    else
10130        # "which" is not portable, but is used here
10131        # because we know that the command exists!
10132        car=`which $car`
10133    fi
10134    if test "x$cdr" != xEOL; then
10135        MCS="$car ${cdr% *}"
10136    else
10137        MCS="$car"
10138    fi
10139
10140else
10141    if test -n "$ac_tool_prefix"; then
10142  # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
10143set dummy ${ac_tool_prefix}nm; ac_word=$2
10144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10145$as_echo_n "checking for $ac_word... " >&6; }
10146if test "${ac_cv_prog_NM+set}" = set; then :
10147  $as_echo_n "(cached) " >&6
10148else
10149  if test -n "$NM"; then
10150  ac_cv_prog_NM="$NM" # Let the user override the test.
10151else
10152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10153for as_dir in $PATH
10154do
10155  IFS=$as_save_IFS
10156  test -z "$as_dir" && as_dir=.
10157    for ac_exec_ext in '' $ac_executable_extensions; do
10158  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10159    ac_cv_prog_NM="${ac_tool_prefix}nm"
10160    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10161    break 2
10162  fi
10163done
10164  done
10165IFS=$as_save_IFS
10166
10167fi
10168fi
10169NM=$ac_cv_prog_NM
10170if test -n "$NM"; then
10171  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
10172$as_echo "$NM" >&6; }
10173else
10174  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10175$as_echo "no" >&6; }
10176fi
10177
10178
10179fi
10180if test -z "$ac_cv_prog_NM"; then
10181  ac_ct_NM=$NM
10182  # Extract the first word of "nm", so it can be a program name with args.
10183set dummy nm; ac_word=$2
10184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10185$as_echo_n "checking for $ac_word... " >&6; }
10186if test "${ac_cv_prog_ac_ct_NM+set}" = set; then :
10187  $as_echo_n "(cached) " >&6
10188else
10189  if test -n "$ac_ct_NM"; then
10190  ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
10191else
10192as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10193for as_dir in $PATH
10194do
10195  IFS=$as_save_IFS
10196  test -z "$as_dir" && as_dir=.
10197    for ac_exec_ext in '' $ac_executable_extensions; do
10198  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10199    ac_cv_prog_ac_ct_NM="nm"
10200    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10201    break 2
10202  fi
10203done
10204  done
10205IFS=$as_save_IFS
10206
10207fi
10208fi
10209ac_ct_NM=$ac_cv_prog_ac_ct_NM
10210if test -n "$ac_ct_NM"; then
10211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
10212$as_echo "$ac_ct_NM" >&6; }
10213else
10214  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10215$as_echo "no" >&6; }
10216fi
10217
10218  if test "x$ac_ct_NM" = x; then
10219    NM=""
10220  else
10221    case $cross_compiling:$ac_tool_warned in
10222yes:)
10223{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10224$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10225ac_tool_warned=yes ;;
10226esac
10227    NM=$ac_ct_NM
10228  fi
10229else
10230  NM="$ac_cv_prog_NM"
10231fi
10232
10233
10234    # Translate "gcc -E" into "`which gcc` -E" ie
10235    # extract the full path to the binary and at the
10236    # same time maintain any arguments passed to it.
10237    # The command MUST exist in the path, or else!
10238    tmp="$NM"
10239    car="${tmp%% *}"
10240    tmp="$NM EOL"
10241    cdr="${tmp#* }"
10242    # On windows we want paths without spaces.
10243    if test "x$BUILD_OS" = "xwindows"; then
10244
10245    # Translate long cygdrive or C:\sdfsf path
10246    # into a short mixed mode path that has no
10247    # spaces in it.
10248    tmp="$car"
10249    if test "x$BUILD_OS" = "xwindows"; then
10250        tmp=`$CYGPATH -u "$car"`
10251        tmp=`which "$tmp"`
10252        # If file exists with .exe appended, that's the real filename
10253        # and cygpath needs that to convert to short style path.
10254        if test -f "${tmp}.exe"; then
10255           tmp="${tmp}.exe"
10256        elif test -f "${tmp}.cmd"; then
10257           tmp="${tmp}.cmd"
10258        fi
10259        # Convert to C:/ mixed style path without spaces.
10260         tmp=`$CYGPATH -s -m "$tmp"`
10261    fi
10262    car="$tmp"
10263
10264    else
10265        # "which" is not portable, but is used here
10266        # because we know that the command exists!
10267        car=`which $car`
10268    fi
10269    if test "x$cdr" != xEOL; then
10270        NM="$car ${cdr% *}"
10271    else
10272        NM="$car"
10273    fi
10274
10275    if test -n "$ac_tool_prefix"; then
10276  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
10277set dummy ${ac_tool_prefix}strip; ac_word=$2
10278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10279$as_echo_n "checking for $ac_word... " >&6; }
10280if test "${ac_cv_prog_STRIP+set}" = set; then :
10281  $as_echo_n "(cached) " >&6
10282else
10283  if test -n "$STRIP"; then
10284  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
10285else
10286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10287for as_dir in $PATH
10288do
10289  IFS=$as_save_IFS
10290  test -z "$as_dir" && as_dir=.
10291    for ac_exec_ext in '' $ac_executable_extensions; do
10292  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10293    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
10294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10295    break 2
10296  fi
10297done
10298  done
10299IFS=$as_save_IFS
10300
10301fi
10302fi
10303STRIP=$ac_cv_prog_STRIP
10304if test -n "$STRIP"; then
10305  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
10306$as_echo "$STRIP" >&6; }
10307else
10308  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10309$as_echo "no" >&6; }
10310fi
10311
10312
10313fi
10314if test -z "$ac_cv_prog_STRIP"; then
10315  ac_ct_STRIP=$STRIP
10316  # Extract the first word of "strip", so it can be a program name with args.
10317set dummy strip; ac_word=$2
10318{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10319$as_echo_n "checking for $ac_word... " >&6; }
10320if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
10321  $as_echo_n "(cached) " >&6
10322else
10323  if test -n "$ac_ct_STRIP"; then
10324  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
10325else
10326as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10327for as_dir in $PATH
10328do
10329  IFS=$as_save_IFS
10330  test -z "$as_dir" && as_dir=.
10331    for ac_exec_ext in '' $ac_executable_extensions; do
10332  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10333    ac_cv_prog_ac_ct_STRIP="strip"
10334    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10335    break 2
10336  fi
10337done
10338  done
10339IFS=$as_save_IFS
10340
10341fi
10342fi
10343ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
10344if test -n "$ac_ct_STRIP"; then
10345  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
10346$as_echo "$ac_ct_STRIP" >&6; }
10347else
10348  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10349$as_echo "no" >&6; }
10350fi
10351
10352  if test "x$ac_ct_STRIP" = x; then
10353    STRIP=""
10354  else
10355    case $cross_compiling:$ac_tool_warned in
10356yes:)
10357{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10358$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10359ac_tool_warned=yes ;;
10360esac
10361    STRIP=$ac_ct_STRIP
10362  fi
10363else
10364  STRIP="$ac_cv_prog_STRIP"
10365fi
10366
10367
10368    # Translate "gcc -E" into "`which gcc` -E" ie
10369    # extract the full path to the binary and at the
10370    # same time maintain any arguments passed to it.
10371    # The command MUST exist in the path, or else!
10372    tmp="$STRIP"
10373    car="${tmp%% *}"
10374    tmp="$STRIP EOL"
10375    cdr="${tmp#* }"
10376    # On windows we want paths without spaces.
10377    if test "x$BUILD_OS" = "xwindows"; then
10378
10379    # Translate long cygdrive or C:\sdfsf path
10380    # into a short mixed mode path that has no
10381    # spaces in it.
10382    tmp="$car"
10383    if test "x$BUILD_OS" = "xwindows"; then
10384        tmp=`$CYGPATH -u "$car"`
10385        tmp=`which "$tmp"`
10386        # If file exists with .exe appended, that's the real filename
10387        # and cygpath needs that to convert to short style path.
10388        if test -f "${tmp}.exe"; then
10389           tmp="${tmp}.exe"
10390        elif test -f "${tmp}.cmd"; then
10391           tmp="${tmp}.cmd"
10392        fi
10393        # Convert to C:/ mixed style path without spaces.
10394         tmp=`$CYGPATH -s -m "$tmp"`
10395    fi
10396    car="$tmp"
10397
10398    else
10399        # "which" is not portable, but is used here
10400        # because we know that the command exists!
10401        car=`which $car`
10402    fi
10403    if test "x$cdr" != xEOL; then
10404        STRIP="$car ${cdr% *}"
10405    else
10406        STRIP="$car"
10407    fi
10408
10409fi
10410
10411# When using cygwin, we need a wrapper binary that renames
10412# /cygdrive/c/ arguments into c:/ arguments and peeks into
10413# @files and rewrites these too! This wrapper binary is
10414# called uncygdrive.exe.
10415UNCYGDRIVE=
10416if test "x$BUILD_OS" = xwindows; then
10417    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive can be created" >&5
10418$as_echo_n "checking if uncygdrive can be created... " >&6; }
10419    UNCYGDRIVE_SRC=`$CYGPATH -m $SRC_ROOT/common/src/uncygdrive.c`
10420    rm -f $OUTPUT_ROOT/uncygdrive*
10421    UNCYGDRIVE=`$CYGPATH -m $OUTPUT_ROOT/uncygdrive.exe`
10422    cd $OUTPUT_ROOT
10423    $CC $UNCYGDRIVE_SRC /Fe$UNCYGDRIVE > $OUTPUT_ROOT/uncygdrive1.log 2>&1
10424    cd $CURDIR
10425
10426    if test ! -x $OUTPUT_ROOT/uncygdrive.exe; then
10427        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428$as_echo "no" >&6; }
10429        cat $OUTPUT_ROOT/uncygdrive1.log
10430        as_fn_error $? "Could not create $OUTPUT_ROOT/uncygdrive.exe" "$LINENO" 5
10431    fi
10432    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $UNCYGDRIVE" >&5
10433$as_echo "$UNCYGDRIVE" >&6; }
10434    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uncygdrive.exe works" >&5
10435$as_echo_n "checking if uncygdrive.exe works... " >&6; }
10436    cd $OUTPUT_ROOT
10437    $UNCYGDRIVE $CC $SRC_ROOT/common/src/uncygdrive.c /Fe$OUTPUT_ROOT/uncygdrive2.exe > $OUTPUT_ROOT/uncygdrive2.log 2>&1
10438    cd $CURDIR
10439    if test ! -x $OUTPUT_ROOT/uncygdrive2.exe; then
10440        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10441$as_echo "no" >&6; }
10442        cat $OUTPUT_ROOT/uncygdrive2.log
10443        as_fn_error $? "Uncygdrive did not work!" "$LINENO" 5
10444    fi
10445    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10446$as_echo "yes" >&6; }
10447    rm -f $OUTPUT_ROOT/uncygdrive?.??? $OUTPUT_ROOT/uncygdrive.obj
10448fi
10449
10450
10451
10452
10453    # Check whether --enable-ccache was given.
10454if test "${enable_ccache+set}" = set; then :
10455  enableval=$enable_ccache; ENABLE_CCACHE=${enable_ccache}
10456else
10457  ENABLE_CCACHE=yes
10458fi
10459
10460    if test "x$ENABLE_CCACHE" = xyes; then
10461        # Extract the first word of "ccache", so it can be a program name with args.
10462set dummy ccache; ac_word=$2
10463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10464$as_echo_n "checking for $ac_word... " >&6; }
10465if test "${ac_cv_path_CCACHE+set}" = set; then :
10466  $as_echo_n "(cached) " >&6
10467else
10468  case $CCACHE in
10469  [\\/]* | ?:[\\/]*)
10470  ac_cv_path_CCACHE="$CCACHE" # Let the user override the test with a path.
10471  ;;
10472  *)
10473  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10474for as_dir in $PATH
10475do
10476  IFS=$as_save_IFS
10477  test -z "$as_dir" && as_dir=.
10478    for ac_exec_ext in '' $ac_executable_extensions; do
10479  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10480    ac_cv_path_CCACHE="$as_dir/$ac_word$ac_exec_ext"
10481    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10482    break 2
10483  fi
10484done
10485  done
10486IFS=$as_save_IFS
10487
10488  ;;
10489esac
10490fi
10491CCACHE=$ac_cv_path_CCACHE
10492if test -n "$CCACHE"; then
10493  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCACHE" >&5
10494$as_echo "$CCACHE" >&6; }
10495else
10496  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10497$as_echo "no" >&6; }
10498fi
10499
10500
10501    else
10502        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccache" >&5
10503$as_echo_n "checking for ccache... " >&6; }
10504        { $as_echo "$as_me:${as_lineno-$LINENO}: result: explicitly disabled" >&5
10505$as_echo "explicitly disabled" >&6; }
10506        CCACHE=
10507    fi
10508
10509
10510
10511# Check whether --with-ccache-dir was given.
10512if test "${with_ccache_dir+set}" = set; then :
10513  withval=$with_ccache_dir;
10514fi
10515
10516
10517    if test "x$with_ccache_dir" != x; then
10518        # When using a non home ccache directory, assume the use is to share ccache files
10519        # with other users. Thus change the umask.
10520        SET_CCACHE_DIR="CCACHE_DIR=$with_ccache_dir CCACHE_UMASK=002"
10521    fi
10522    CCACHE_FOUND=""
10523    if test "x$CCACHE" != x; then
10524
10525    if test "x$CCACHE" != x; then
10526        CCACHE_FOUND="true"
10527        # Only use ccache if it is 3.1.4 or later, which supports
10528        # precompiled headers.
10529        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ccache supports precompiled headers" >&5
10530$as_echo_n "checking if ccache supports precompiled headers... " >&6; }
10531        HAS_GOOD_CCACHE=`($CCACHE --version | head -n 1 | grep -E 3.1.[456789]) 2> /dev/null`
10532        if test "x$HAS_GOOD_CCACHE" = x; then
10533            { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccache" >&5
10534$as_echo "no, disabling ccache" >&6; }
10535            CCACHE=
10536        else
10537            { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10538$as_echo "yes" >&6; }
10539            { $as_echo "$as_me:${as_lineno-$LINENO}: checking if C-compiler supports ccache precompiled headers" >&5
10540$as_echo_n "checking if C-compiler supports ccache precompiled headers... " >&6; }
10541            PUSHED_FLAGS="$CXXFLAGS"
10542            CXXFLAGS="-fpch-preprocess $CXXFLAGS"
10543            cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10544/* end confdefs.h.  */
10545
10546int
10547main ()
10548{
10549
10550  ;
10551  return 0;
10552}
10553_ACEOF
10554if ac_fn_cxx_try_compile "$LINENO"; then :
10555  CC_KNOWS_CCACHE_TRICK=yes
10556else
10557  CC_KNOWS_CCACHE_TRICK=no
10558fi
10559rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10560            CXXFLAGS="$PUSHED_FLAGS"
10561            if test "x$CC_KNOWS_CCACHE_TRICK" = xyes; then
10562                { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563$as_echo "yes" >&6; }
10564            else
10565                { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, disabling ccaching of precompiled headers" >&5
10566$as_echo "no, disabling ccaching of precompiled headers" >&6; }
10567                CCACHE=
10568            fi
10569        fi
10570    fi
10571
10572    if test "x$CCACHE" != x; then
10573        CCACHE_SLOPPINESS=time_macros
10574        CCACHE="CCACHE_COMPRESS=1 $SET_CCACHE_DIR CCACHE_SLOPPINESS=$CCACHE_SLOPPINESS $CCACHE"
10575        CCACHE_FLAGS=-fpch-preprocess
10576
10577        if test "x$SET_CCACHE_DIR" != x; then
10578            mkdir -p $CCACHE_DIR > /dev/null 2>&1
10579	    chmod a+rwxs $CCACHE_DIR > /dev/null 2>&1
10580        fi
10581    fi
10582
10583    fi
10584
10585
10586# Used on GNU/Linux systems, can be empty...
10587#AC_PATH_PROG(ELFDUMP, elfdump)
10588
10589# Setup default logging of stdout and stderr to build.log in the output root.
10590BUILD_LOG='$(OUTPUT_ROOT)/build.log'
10591BUILD_LOG_WRAPPER='$(SH) $(SRC_ROOT)/common/bin/logger.sh $(BUILD_LOG)'
10592
10593
10594
10595###############################################################################
10596#
10597# Now we check if libjvm.so will use 32 or 64 bit pointers for the C/C++ code.
10598# (The JVM can use 32 or 64 bit Java pointers but that decision
10599# is made at runtime.)
10600#
10601ac_ext=cpp
10602ac_cpp='$CXXCPP $CPPFLAGS'
10603ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10604ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10605ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10606
10607OLD_CXXFLAGS="$CXXFLAGS"
10608if test "x$HOST_OS" = xsolaris && test "x$with_data_model" != x; then
10609	CXXFLAGS="-m{$with_data_model} $CXXFLAGS"
10610fi
10611
10612{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10613$as_echo_n "checking for ANSI C header files... " >&6; }
10614if test "${ac_cv_header_stdc+set}" = set; then :
10615  $as_echo_n "(cached) " >&6
10616else
10617  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10618/* end confdefs.h.  */
10619#include <stdlib.h>
10620#include <stdarg.h>
10621#include <string.h>
10622#include <float.h>
10623
10624int
10625main ()
10626{
10627
10628  ;
10629  return 0;
10630}
10631_ACEOF
10632if ac_fn_cxx_try_compile "$LINENO"; then :
10633  ac_cv_header_stdc=yes
10634else
10635  ac_cv_header_stdc=no
10636fi
10637rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10638
10639if test $ac_cv_header_stdc = yes; then
10640  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10642/* end confdefs.h.  */
10643#include <string.h>
10644
10645_ACEOF
10646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10647  $EGREP "memchr" >/dev/null 2>&1; then :
10648
10649else
10650  ac_cv_header_stdc=no
10651fi
10652rm -f conftest*
10653
10654fi
10655
10656if test $ac_cv_header_stdc = yes; then
10657  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10658  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10659/* end confdefs.h.  */
10660#include <stdlib.h>
10661
10662_ACEOF
10663if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10664  $EGREP "free" >/dev/null 2>&1; then :
10665
10666else
10667  ac_cv_header_stdc=no
10668fi
10669rm -f conftest*
10670
10671fi
10672
10673if test $ac_cv_header_stdc = yes; then
10674  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10675  if test "$cross_compiling" = yes; then :
10676  :
10677else
10678  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10679/* end confdefs.h.  */
10680#include <ctype.h>
10681#include <stdlib.h>
10682#if ((' ' & 0x0FF) == 0x020)
10683# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10684# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10685#else
10686# define ISLOWER(c) \
10687		   (('a' <= (c) && (c) <= 'i') \
10688		     || ('j' <= (c) && (c) <= 'r') \
10689		     || ('s' <= (c) && (c) <= 'z'))
10690# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10691#endif
10692
10693#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10694int
10695main ()
10696{
10697  int i;
10698  for (i = 0; i < 256; i++)
10699    if (XOR (islower (i), ISLOWER (i))
10700	|| toupper (i) != TOUPPER (i))
10701      return 2;
10702  return 0;
10703}
10704_ACEOF
10705if ac_fn_cxx_try_run "$LINENO"; then :
10706
10707else
10708  ac_cv_header_stdc=no
10709fi
10710rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10711  conftest.$ac_objext conftest.beam conftest.$ac_ext
10712fi
10713
10714fi
10715fi
10716{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10717$as_echo "$ac_cv_header_stdc" >&6; }
10718if test $ac_cv_header_stdc = yes; then
10719
10720$as_echo "#define STDC_HEADERS 1" >>confdefs.h
10721
10722fi
10723
10724# On IRIX 5.3, sys/types and inttypes.h are conflicting.
10725for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10726		  inttypes.h stdint.h unistd.h
10727do :
10728  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10729ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10730"
10731if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
10732  cat >>confdefs.h <<_ACEOF
10733#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10734_ACEOF
10735
10736fi
10737
10738done
10739
10740
10741# The cast to long int works around a bug in the HP C Compiler
10742# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
10743# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
10744# This bug is HP SR number 8606223364.
10745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int *" >&5
10746$as_echo_n "checking size of int *... " >&6; }
10747if test "${ac_cv_sizeof_int_p+set}" = set; then :
10748  $as_echo_n "(cached) " >&6
10749else
10750  if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (int *))" "ac_cv_sizeof_int_p"        "$ac_includes_default"; then :
10751
10752else
10753  if test "$ac_cv_type_int_p" = yes; then
10754     { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10755$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10756as_fn_error 77 "cannot compute sizeof (int *)
10757See \`config.log' for more details" "$LINENO" 5 ; }
10758   else
10759     ac_cv_sizeof_int_p=0
10760   fi
10761fi
10762
10763fi
10764{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int_p" >&5
10765$as_echo "$ac_cv_sizeof_int_p" >&6; }
10766
10767
10768
10769cat >>confdefs.h <<_ACEOF
10770#define SIZEOF_INT_P $ac_cv_sizeof_int_p
10771_ACEOF
10772
10773
10774CXXFLAGS="$OLD_CXXFLAGS"
10775ac_ext=cpp
10776ac_cpp='$CXXCPP $CPPFLAGS'
10777ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10778ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10779ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10780
10781
10782if test "x$ac_cv_sizeof_int_p" = x0; then
10783    # The test failed, lets pick the assumed value.
10784    ARCH_DATA_MODEL=$HOST_CPU_BITS
10785else
10786    ARCH_DATA_MODEL=`expr 8 \* $ac_cv_sizeof_int_p`
10787fi
10788
10789if test "x$ARCH_DATA_MODEL" = x64; then
10790    A_LP64="LP64:="
10791    ADD_LP64="-D_LP64=1"
10792fi
10793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for host address size" >&5
10794$as_echo_n "checking for host address size... " >&6; }
10795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ARCH_DATA_MODEL bits" >&5
10796$as_echo "$ARCH_DATA_MODEL bits" >&6; }
10797LP64=$A_LP64
10798
10799
10800
10801if test "x$ARCH_DATA_MODEL" != "x$HOST_CPU_BITS"; then
10802    as_fn_error $? "The tested number of bits in the host ($ARCH_DATA_MODEL) differs from the number of bits expected to be found in the host ($HOST_CPU_BITS)" "$LINENO" 5
10803fi
10804
10805###############################################################################
10806#
10807# Can the C/C++ compiler use precompiled headers?
10808#
10809# Check whether --enable-precompiled-headers was given.
10810if test "${enable_precompiled_headers+set}" = set; then :
10811  enableval=$enable_precompiled_headers; ENABLE_PRECOMPH=${enable_precompiled-headers}
10812else
10813  ENABLE_PRECOMPH=yes
10814fi
10815
10816
10817USE_PRECOMPILED_HEADER=1
10818if test "x$ENABLE_PRECOMPH" = xno; then
10819    USE_PRECOMPILED_HEADER=0
10820fi
10821
10822if test "x$ENABLE_PRECOMPH" = xyes; then
10823    # Check that the compiler actually supports precomp headers.
10824    if test "x$GCC" = xyes; then
10825         { $as_echo "$as_me:${as_lineno-$LINENO}: checking that precompiled headers work" >&5
10826$as_echo_n "checking that precompiled headers work... " >&6; }
10827         echo "int alfa();" > conftest.h
10828         $CXX -x c++-header conftest.h -o conftest.hpp.gch
10829         if test ! -f conftest.hpp.gch; then
10830             echo Precompiled header is not working!
10831             USE_PRECOMPILED_HEADER=0
10832             { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10833$as_echo "no" >&6; }
10834         else
10835             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10836$as_echo "yes" >&6; }
10837         fi
10838         rm -f conftest.h
10839    fi
10840fi
10841
10842
10843
10844###############################################################################
10845#
10846# How to compile shared libraries.
10847#
10848
10849if test "x$GCC" = xyes; then
10850    COMPILER_NAME=gcc
10851    PICFLAG="-fPIC"
10852    LIBRARY_PREFIX=lib
10853    SHARED_LIBRARY='lib$1.so'
10854    STATIC_LIBRARY='lib$1.a'
10855    SHARED_LIBRARY_FLAGS="-shared"
10856    SHARED_LIBRARY_SUFFIX='.so'
10857    STATIC_LIBRARY_SUFFIX='.a'
10858    OBJ_SUFFIX='.o'
10859    EXE_SUFFIX=''
10860    SET_SHARED_LIBRARY_NAME='-Xlinker -soname=$1'
10861    SET_SHARED_LIBRARY_MAPFILE='-Xlinker -version-script=$1'
10862    C_FLAG_REORDER=''
10863    CXX_FLAG_REORDER=''
10864    SET_SHARED_LIBRARY_ORIGIN='-Xlinker -z -Xlinker origin -Xlinker -rpath -Xlinker \$$$$ORIGIN/$1'
10865    LD="$CC"
10866    LDEXE="$CC"
10867    LDCXX="$CXX"
10868    LDEXECXX="$CXX"
10869    # TODO: for embedded set --strip-unneeded
10870    POST_STRIP_CMD="$STRIP -g"
10871
10872    # Linking is different on MacOSX
10873    if test "x$BUILD_OS" = xmacosx; then
10874        # Might change in the future to clang.
10875        COMPILER_NAME=gcc
10876        SHARED_LIBRARY='lib$1.dylib'
10877        SHARED_LIBRARY_FLAGS="-dynamiclib -compatibility_version 1.0.0 -current_version 1.0.0 $PICFLAG"
10878        SHARED_LIBRARY_SUFFIX='.dylib'
10879        EXE_SUFFIX=''
10880        SET_SHARED_LIBRARY_NAME='-Xlinker -install_name -Xlinker @rpath/$1'
10881        SET_SHARED_LIBRARY_MAPFILE=''
10882        SET_SHARED_LIBRARY_ORIGIN='-Xlinker -rpath -Xlinker @loader_path/.'
10883        POST_STRIP_CMD="$STRIP -S"
10884    fi
10885else
10886    if test "x$BUILD_OS" = xsolaris; then
10887        # If it is not gcc, then assume it is the Oracle Solaris Studio Compiler
10888        COMPILER_NAME=ossc
10889        PICFLAG="-KPIC"
10890        LIBRARY_PREFIX=lib
10891        SHARED_LIBRARY='lib$1.so'
10892        STATIC_LIBRARY='lib$1.a'
10893        SHARED_LIBRARY_FLAGS="-G"
10894        SHARED_LIBRARY_SUFFIX='.so'
10895        STATIC_LIBRARY_SUFFIX='.a'
10896        OBJ_SUFFIX='.o'
10897        EXE_SUFFIX=''
10898        SET_SHARED_LIBRARY_NAME=''
10899        SET_SHARED_LIBRARY_MAPFILE='-M $1'
10900	C_FLAG_REORDER='-xF'
10901	CXX_FLAG_REORDER='-xF'
10902        SET_SHARED_LIBRARY_ORIGIN='-R \$$$$ORIGIN/$1'
10903        CFLAGS_JDKLIB_EXTRA='-xstrconst -D__solaris__'
10904        POST_STRIP_CMD="$STRIP -x"
10905        POST_MCS_CMD="$MCS -d -a \"JDK $FULL_VERSION\""
10906    fi
10907    if test "x$BUILD_OS" = xwindows; then
10908        # If it is not gcc, then assume it is the MS Visual Studio compiler
10909        COMPILER_NAME=cl
10910        PICFLAG=""
10911        LIBRARY_PREFIX=
10912        SHARED_LIBRARY='$1.dll'
10913        STATIC_LIBRARY='$1.lib'
10914        SHARED_LIBRARY_FLAGS="-LD"
10915        SHARED_LIBRARY_SUFFIX='.dll'
10916        STATIC_LIBRARY_SUFFIX='.lib'
10917        OBJ_SUFFIX='.obj'
10918        EXE_SUFFIX='.exe'
10919        SET_SHARED_LIBRARY_NAME=''
10920        SET_SHARED_LIBRARY_MAPFILE=''
10921        SET_SHARED_LIBRARY_ORIGIN=''
10922    fi
10923fi
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941# The (cross) compiler is now configured, we can now test capabilities
10942# of the host platform.
10943
10944###############################################################################
10945#
10946# Is the host little of big endian?
10947#
10948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
10949$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
10950if test "${ac_cv_c_bigendian+set}" = set; then :
10951  $as_echo_n "(cached) " >&6
10952else
10953  ac_cv_c_bigendian=unknown
10954    # See if we're dealing with a universal compiler.
10955    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10956/* end confdefs.h.  */
10957#ifndef __APPLE_CC__
10958	       not a universal capable compiler
10959	     #endif
10960	     typedef int dummy;
10961
10962_ACEOF
10963if ac_fn_cxx_try_compile "$LINENO"; then :
10964
10965	# Check for potential -arch flags.  It is not universal unless
10966	# there are at least two -arch flags with different values.
10967	ac_arch=
10968	ac_prev=
10969	for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
10970	 if test -n "$ac_prev"; then
10971	   case $ac_word in
10972	     i?86 | x86_64 | ppc | ppc64)
10973	       if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
10974		 ac_arch=$ac_word
10975	       else
10976		 ac_cv_c_bigendian=universal
10977		 break
10978	       fi
10979	       ;;
10980	   esac
10981	   ac_prev=
10982	 elif test "x$ac_word" = "x-arch"; then
10983	   ac_prev=arch
10984	 fi
10985       done
10986fi
10987rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10988    if test $ac_cv_c_bigendian = unknown; then
10989      # See if sys/param.h defines the BYTE_ORDER macro.
10990      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10991/* end confdefs.h.  */
10992#include <sys/types.h>
10993	     #include <sys/param.h>
10994
10995int
10996main ()
10997{
10998#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
10999		     && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
11000		     && LITTLE_ENDIAN)
11001	      bogus endian macros
11002	     #endif
11003
11004  ;
11005  return 0;
11006}
11007_ACEOF
11008if ac_fn_cxx_try_compile "$LINENO"; then :
11009  # It does; now see whether it defined to BIG_ENDIAN or not.
11010	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11011/* end confdefs.h.  */
11012#include <sys/types.h>
11013		#include <sys/param.h>
11014
11015int
11016main ()
11017{
11018#if BYTE_ORDER != BIG_ENDIAN
11019		 not big endian
11020		#endif
11021
11022  ;
11023  return 0;
11024}
11025_ACEOF
11026if ac_fn_cxx_try_compile "$LINENO"; then :
11027  ac_cv_c_bigendian=yes
11028else
11029  ac_cv_c_bigendian=no
11030fi
11031rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11032fi
11033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11034    fi
11035    if test $ac_cv_c_bigendian = unknown; then
11036      # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
11037      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11038/* end confdefs.h.  */
11039#include <limits.h>
11040
11041int
11042main ()
11043{
11044#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
11045	      bogus endian macros
11046	     #endif
11047
11048  ;
11049  return 0;
11050}
11051_ACEOF
11052if ac_fn_cxx_try_compile "$LINENO"; then :
11053  # It does; now see whether it defined to _BIG_ENDIAN or not.
11054	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11055/* end confdefs.h.  */
11056#include <limits.h>
11057
11058int
11059main ()
11060{
11061#ifndef _BIG_ENDIAN
11062		 not big endian
11063		#endif
11064
11065  ;
11066  return 0;
11067}
11068_ACEOF
11069if ac_fn_cxx_try_compile "$LINENO"; then :
11070  ac_cv_c_bigendian=yes
11071else
11072  ac_cv_c_bigendian=no
11073fi
11074rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11075fi
11076rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11077    fi
11078    if test $ac_cv_c_bigendian = unknown; then
11079      # Compile a test program.
11080      if test "$cross_compiling" = yes; then :
11081  # Try to guess by grepping values from an object file.
11082	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11083/* end confdefs.h.  */
11084short int ascii_mm[] =
11085		  { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
11086		short int ascii_ii[] =
11087		  { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
11088		int use_ascii (int i) {
11089		  return ascii_mm[i] + ascii_ii[i];
11090		}
11091		short int ebcdic_ii[] =
11092		  { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
11093		short int ebcdic_mm[] =
11094		  { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
11095		int use_ebcdic (int i) {
11096		  return ebcdic_mm[i] + ebcdic_ii[i];
11097		}
11098		extern int foo;
11099
11100int
11101main ()
11102{
11103return use_ascii (foo) == use_ebcdic (foo);
11104  ;
11105  return 0;
11106}
11107_ACEOF
11108if ac_fn_cxx_try_compile "$LINENO"; then :
11109  if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
11110	      ac_cv_c_bigendian=yes
11111	    fi
11112	    if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
11113	      if test "$ac_cv_c_bigendian" = unknown; then
11114		ac_cv_c_bigendian=no
11115	      else
11116		# finding both strings is unlikely to happen, but who knows?
11117		ac_cv_c_bigendian=unknown
11118	      fi
11119	    fi
11120fi
11121rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11122else
11123  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11124/* end confdefs.h.  */
11125$ac_includes_default
11126int
11127main ()
11128{
11129
11130	     /* Are we little or big endian?  From Harbison&Steele.  */
11131	     union
11132	     {
11133	       long int l;
11134	       char c[sizeof (long int)];
11135	     } u;
11136	     u.l = 1;
11137	     return u.c[sizeof (long int) - 1] == 1;
11138
11139  ;
11140  return 0;
11141}
11142_ACEOF
11143if ac_fn_cxx_try_run "$LINENO"; then :
11144  ac_cv_c_bigendian=no
11145else
11146  ac_cv_c_bigendian=yes
11147fi
11148rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11149  conftest.$ac_objext conftest.beam conftest.$ac_ext
11150fi
11151
11152    fi
11153fi
11154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
11155$as_echo "$ac_cv_c_bigendian" >&6; }
11156 case $ac_cv_c_bigendian in #(
11157   yes)
11158     ENDIAN="big";; #(
11159   no)
11160     ENDIAN="little" ;; #(
11161   universal)
11162     ENDIAN="universal"
11163     ;; #(
11164   *)
11165     ENDIAN="unknown" ;;
11166 esac
11167
11168
11169if test "x$ENDIAN" = xuniversal; then
11170    as_fn_error $? "It seems like someone needs to decide how we are to deal with universal binaries on the MacOSX?" "$LINENO" 5
11171fi
11172if test "x$ENDIAN" = xunknown; then
11173    ENDIAN="$HOST_CPU_ENDIAN"
11174fi
11175if test "x$ENDIAN" != "x$HOST_CPU_ENDIAN"; then
11176    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&5
11177$as_echo "$as_me: WARNING: The tested endian in the host ($ENDIAN) differs from the endian expected to be found in the host ($HOST_CPU_ENDIAN)" >&2;}
11178    ENDIAN="$HOST_CPU_ENDIAN"
11179fi
11180
11181
11182###############################################################################
11183#
11184# We need a Boot JDK to bootstrap the build.
11185#
11186BOOT_JDK_FOUND=no
11187
11188# Check whether --with-boot-jdk was given.
11189if test "${with_boot_jdk+set}" = set; then :
11190  withval=$with_boot_jdk;
11191fi
11192
11193
11194if test "x$with_boot_jdk" != x; then
11195    BOOT_JDK=$with_boot_jdk
11196    BOOT_JDK_FOUND=yes
11197fi
11198if test "x$BOOT_JDK_FOUND" = xno; then
11199
11200
11201    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
11202        # Source the builddeps file again, to make sure it uses the latest variables!
11203        . $builddepsfile
11204        # Look for a host and build machine specific resource!
11205        eval resource=\${builddep_boot-jdk_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
11206        if test "x$resource" = x; then
11207            # Ok, lets instead look for a host specific resource
11208            eval resource=\${builddep_boot-jdk_HOST_${rewritten_host_var}}
11209        fi
11210        if test "x$resource" = x; then
11211            # Ok, lets instead look for a build specific resource
11212            eval resource=\${builddep_boot-jdk_BUILD_${rewritten_build_var}}
11213        fi
11214        if test "x$resource" = x; then
11215            # Ok, lets instead look for a generic resource
11216            # (The boot-jdk comes from M4 and not the shell, thus no need for eval here.)
11217            resource=${builddep_boot-jdk}
11218        fi
11219        if test "x$resource" != x; then
11220            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for boot-jdk" >&5
11221$as_echo "$as_me: Using builddeps $resource for boot-jdk" >&6;}
11222	    # If the resource in the builddeps.conf file is an existing directory,
11223	    # for example /java/linux/cups
11224	    if test -d ${resource}; then
11225	       depdir=${resource}
11226	    else
11227
11228# boot-jdk is for example mymodule
11229# $resource is for example libs/general/libmymod_1_2_3.zip
11230# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
11231# $with_builddeps_dir is for example /localhome/builddeps
11232# depdir is the name of the variable into which we store the depdir, eg MYMOD
11233# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
11234# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
11235    filename=`basename $resource`
11236    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
11237    filebase=${filename%%.*}
11238    extension=${filename#*.}
11239    installdir=$with_builddeps_dir/$filebase
11240    if test ! -f $installdir/$filename.unpacked; then
11241        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency boot-jdk from $with_builddeps_server/$resource and installing into $installdir" >&5
11242$as_echo "$as_me: Downloading build dependency boot-jdk from $with_builddeps_server/$resource and installing into $installdir" >&6;}
11243        if test ! -d $installdir; then
11244            mkdir -p $installdir
11245        fi
11246        if test ! -d $installdir; then
11247            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
11248        fi
11249        tmpfile=`mktemp $installdir/boot-jdk.XXXXXXXXX`
11250        touch $tmpfile
11251        if test ! -f $tmpfile; then
11252            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
11253        fi
11254
11255    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
11256    # $tmpfile is the local file name for the downloaded file.
11257    VALID_TOOL=no
11258    if test "x$BDEPS_FTP" = xwget; then
11259       VALID_TOOL=yes
11260       wget -O $tmpfile $with_builddeps_server/$resource
11261    fi
11262    if test "x$BDEPS_FTP" = xlftp; then
11263       VALID_TOOL=yes
11264       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
11265    fi
11266    if test "x$BDEPS_FTP" = xftp; then
11267        VALID_TOOL=yes
11268        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
11269        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
11270        FTPUSERPWD=${FTPSERVER%%@*}
11271        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
11272            FTPUSER=${userpwd%%:*}
11273            FTPPWD=${userpwd#*@}
11274            FTPSERVER=${FTPSERVER#*@}
11275        else
11276            FTPUSER=ftp
11277            FTPPWD=ftp
11278        fi
11279        # the "pass" command does not work on some
11280        # ftp clients (read ftp.exe) but if it works,
11281        # passive mode is better!
11282        (\
11283            echo "user $FTPUSER $FTPPWD"        ;\
11284            echo "pass"                         ;\
11285            echo "bin"                          ;\
11286            echo "get $FTPPATH $tmpfile"              ;\
11287        ) | ftp -in $FTPSERVER
11288    fi
11289    if test "x$VALID_TOOL" != xyes; then
11290       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
11291    fi
11292
11293        mv $tmpfile $installdir/$filename
11294        if test ! -s $installdir/$filename; then
11295            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
11296        fi
11297        case "$extension" in
11298            zip)  echo "Unzipping $installdir/$filename..."
11299               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
11300            ;;
11301            tar.gz) echo "Untaring $installdir/$filename..."
11302               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
11303            ;;
11304            tgz) echo "Untaring $installdir/$filename..."
11305               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
11306            ;;
11307            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
11308            ;;
11309        esac
11310    fi
11311    if test -f $installdir/$filename.unpacked; then
11312        depdir=$installdir
11313    fi
11314
11315	    fi
11316            # Source the builddeps file again, because in the previous command, the depdir
11317            # was updated to point at the current build dependency install directory.
11318            . $builddepsfile
11319            # Now extract variables from the builddeps.conf files.
11320            theroot=${builddep_boot-jdk_ROOT}
11321            thecflags=${builddep_boot-jdk_CFLAGS}
11322            thelibs=${builddep_boot-jdk_LIBS}
11323            if test "x$depdir" = x; then
11324                as_fn_error $? "Could not download build dependency boot-jdk" "$LINENO" 5
11325            fi
11326            BOOT_JDK=$depdir
11327            if test "x$theroot" != x; then
11328               BOOT_JDK="$theroot"
11329            fi
11330            if test "x$thecflags" != x; then
11331               BOOT_JDK_CFLAGS="$thecflags"
11332            fi
11333            if test "x$thelibs" != x; then
11334               BOOT_JDK_LIBS="$thelibs"
11335            fi
11336            BOOT_JDK_FOUND=yes
11337            else BOOT_JDK_FOUND=no
11338
11339        fi
11340        else BOOT_JDK_FOUND=no
11341
11342    fi
11343
11344fi
11345
11346if test "x$BOOT_JDK_FOUND" = xno; then
11347    if test "x$JAVA_HOME" != x; then
11348        if test ! -d "$JAVA_HOME"; then
11349            as_fn_error $? "Your JAVA_HOME points to a non-existing directory!" "$LINENO" 5
11350        fi
11351        # Aha, the user has set a JAVA_HOME
11352        # let us use that as the Boot JDK.
11353        BOOT_JDK="$JAVA_HOME"
11354        BOOT_JDK_FOUND=yes
11355        # To be on the safe side, lets check that it is a JDK.
11356        if test -x "$BOOT_JDK/bin/javac" && test -x "$BOOT_JDK/bin/java"; then
11357            JAVAC="$BOOT_JDK/bin/javac"
11358            JAVA="$BOOT_JDK/bin/java"
11359            BOOT_JDK_FOUND=yes
11360        else
11361            as_fn_error $? "Your JAVA_HOME points to a JRE! The build needs a JDK! Please point JAVA_HOME to a JDK. JAVA_HOME=$JAVA_HOME" "$LINENO" 5
11362        fi
11363    fi
11364fi
11365
11366if test "x$BOOT_JDK_FOUND" = xno; then
11367    # Extract the first word of "javac", so it can be a program name with args.
11368set dummy javac; ac_word=$2
11369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11370$as_echo_n "checking for $ac_word... " >&6; }
11371if test "${ac_cv_path_JAVAC_CHECK+set}" = set; then :
11372  $as_echo_n "(cached) " >&6
11373else
11374  case $JAVAC_CHECK in
11375  [\\/]* | ?:[\\/]*)
11376  ac_cv_path_JAVAC_CHECK="$JAVAC_CHECK" # Let the user override the test with a path.
11377  ;;
11378  *)
11379  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11380for as_dir in $PATH
11381do
11382  IFS=$as_save_IFS
11383  test -z "$as_dir" && as_dir=.
11384    for ac_exec_ext in '' $ac_executable_extensions; do
11385  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11386    ac_cv_path_JAVAC_CHECK="$as_dir/$ac_word$ac_exec_ext"
11387    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11388    break 2
11389  fi
11390done
11391  done
11392IFS=$as_save_IFS
11393
11394  ;;
11395esac
11396fi
11397JAVAC_CHECK=$ac_cv_path_JAVAC_CHECK
11398if test -n "$JAVAC_CHECK"; then
11399  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC_CHECK" >&5
11400$as_echo "$JAVAC_CHECK" >&6; }
11401else
11402  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11403$as_echo "no" >&6; }
11404fi
11405
11406
11407    # Extract the first word of "java", so it can be a program name with args.
11408set dummy java; ac_word=$2
11409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11410$as_echo_n "checking for $ac_word... " >&6; }
11411if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
11412  $as_echo_n "(cached) " >&6
11413else
11414  case $JAVA_CHECK in
11415  [\\/]* | ?:[\\/]*)
11416  ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11417  ;;
11418  *)
11419  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11420for as_dir in $PATH
11421do
11422  IFS=$as_save_IFS
11423  test -z "$as_dir" && as_dir=.
11424    for ac_exec_ext in '' $ac_executable_extensions; do
11425  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11426    ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11427    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11428    break 2
11429  fi
11430done
11431  done
11432IFS=$as_save_IFS
11433
11434  ;;
11435esac
11436fi
11437JAVA_CHECK=$ac_cv_path_JAVA_CHECK
11438if test -n "$JAVA_CHECK"; then
11439  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
11440$as_echo "$JAVA_CHECK" >&6; }
11441else
11442  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11443$as_echo "no" >&6; }
11444fi
11445
11446
11447    BINARY="$JAVAC_CHECK"
11448    if test "x$JAVAC_CHECK" = x; then
11449        BINARY="$JAVA_CHECK"
11450    fi
11451    if test "x$BINARY" != x; then
11452        # So there is a java(c) binary, it might be part of a JDK.
11453        # Lets find the JDK/JRE directory by following symbolic links.
11454        # Linux/GNU systems often have links from /usr/bin/java to
11455        # /etc/alternatives/java to the real JDK binary.
11456
11457    # Translate long cygdrive or C:\sdfsf path
11458    # into a short mixed mode path that has no
11459    # spaces in it.
11460    tmp="$BINARY"
11461    if test "x$BUILD_OS" = "xwindows"; then
11462        tmp=`$CYGPATH -u "$BINARY"`
11463        tmp=`which "$tmp"`
11464        # If file exists with .exe appended, that's the real filename
11465        # and cygpath needs that to convert to short style path.
11466        if test -f "${tmp}.exe"; then
11467           tmp="${tmp}.exe"
11468        elif test -f "${tmp}.cmd"; then
11469           tmp="${tmp}.cmd"
11470        fi
11471        # Convert to C:/ mixed style path without spaces.
11472         tmp=`$CYGPATH -s -m "$tmp"`
11473    fi
11474    BINARY="$tmp"
11475
11476
11477    if test "x$BUILD_OS" != xwindows; then
11478        # Follow a chain of symbolic links. Use readlink
11479        # where it exists, else fall back to horribly
11480        # complicated shell code.
11481        # Extract the first word of "readlink", so it can be a program name with args.
11482set dummy readlink; ac_word=$2
11483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11484$as_echo_n "checking for $ac_word... " >&6; }
11485if test "${ac_cv_path_READLINK+set}" = set; then :
11486  $as_echo_n "(cached) " >&6
11487else
11488  case $READLINK in
11489  [\\/]* | ?:[\\/]*)
11490  ac_cv_path_READLINK="$READLINK" # Let the user override the test with a path.
11491  ;;
11492  *)
11493  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11494for as_dir in $PATH
11495do
11496  IFS=$as_save_IFS
11497  test -z "$as_dir" && as_dir=.
11498    for ac_exec_ext in '' $ac_executable_extensions; do
11499  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11500    ac_cv_path_READLINK="$as_dir/$ac_word$ac_exec_ext"
11501    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11502    break 2
11503  fi
11504done
11505  done
11506IFS=$as_save_IFS
11507
11508  ;;
11509esac
11510fi
11511READLINK=$ac_cv_path_READLINK
11512if test -n "$READLINK"; then
11513  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $READLINK" >&5
11514$as_echo "$READLINK" >&6; }
11515else
11516  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11517$as_echo "no" >&6; }
11518fi
11519
11520
11521        if test "x$READLINK_TESTED" != yes; then
11522            # On MacOSX there is a readlink tool with a different
11523            # purpose than the GNU readlink tool. Check the found readlink.
11524            ISGNU=`$READLINK --help 2>&1 | grep GNU`
11525            if test "x$ISGNU" = x; then
11526                 # A readlink that we do not know how to use.
11527                 # Are there other non-GNU readlinks out there?
11528                 READLINK_TESTED=yes
11529                 READLINK=
11530            fi
11531        fi
11532
11533        if test "x$READLINK" != x; then
11534            BINARY=`$READLINK -f $BINARY`
11535        else
11536            STARTDIR=$PWD
11537            COUNTER=0
11538            DIR=`dirname $BINARY`
11539            FIL=`basename $BINARY`
11540            while test $COUNTER -lt 20; do
11541                ISLINK=`ls -l $DIR/$FIL | grep '\->' | sed -e 's/.*-> \(.*\)/\1/'`
11542                if test "x$ISLINK" == x; then
11543                    # This is not a symbolic link! We are done!
11544                    break
11545                fi
11546                # The link might be relative! We have to use cd to travel safely.
11547                cd $DIR
11548                cd `dirname $ISLINK`
11549                DIR=`pwd`
11550                FIL=`basename $ISLINK`
11551                let COUNTER=COUNTER+1
11552            done
11553            cd $STARTDIR
11554            BINARY=$DIR/$FIL
11555        fi
11556    fi
11557
11558        BOOT_JDK=`dirname $BINARY`
11559        BOOT_JDK=`cd $BOOT_JDK/..; pwd`
11560        if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
11561            JAVAC=$BOOT_JDK/bin/javac
11562            JAVA=$BOOT_JDK/bin/java
11563            BOOT_JDK_FOUND=yes
11564        fi
11565    fi
11566fi
11567
11568if test "x$BOOT_JDK_FOUND" = xno; then
11569    # Try the MacOSX way.
11570    if test -x /usr/libexec/java_home; then
11571        BOOT_JDK=`/usr/libexec/java_home`
11572        if test -x $BOOT_JDK/bin/javac && test -x $BOOT_JDK/bin/java; then
11573            JAVAC=$BOOT_JDK/bin/javac
11574            JAVA=$BOOT_JDK/bin/java
11575            BOOT_JDK_FOUND=yes
11576        fi
11577    fi
11578fi
11579
11580if test "x$BOOT_JDK_FOUND" = xno; then
11581    # Extract the first word of "java", so it can be a program name with args.
11582set dummy java; ac_word=$2
11583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11584$as_echo_n "checking for $ac_word... " >&6; }
11585if test "${ac_cv_path_JAVA_CHECK+set}" = set; then :
11586  $as_echo_n "(cached) " >&6
11587else
11588  case $JAVA_CHECK in
11589  [\\/]* | ?:[\\/]*)
11590  ac_cv_path_JAVA_CHECK="$JAVA_CHECK" # Let the user override the test with a path.
11591  ;;
11592  *)
11593  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11594for as_dir in $PATH
11595do
11596  IFS=$as_save_IFS
11597  test -z "$as_dir" && as_dir=.
11598    for ac_exec_ext in '' $ac_executable_extensions; do
11599  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11600    ac_cv_path_JAVA_CHECK="$as_dir/$ac_word$ac_exec_ext"
11601    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11602    break 2
11603  fi
11604done
11605  done
11606IFS=$as_save_IFS
11607
11608  ;;
11609esac
11610fi
11611JAVA_CHECK=$ac_cv_path_JAVA_CHECK
11612if test -n "$JAVA_CHECK"; then
11613  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA_CHECK" >&5
11614$as_echo "$JAVA_CHECK" >&6; }
11615else
11616  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11617$as_echo "no" >&6; }
11618fi
11619
11620
11621    if test "x$JAVA_CHECK" != x; then
11622        # There is a java in the path. But apparently we have not found a javac
11623        # in the path, since that would have been tested earlier.
11624        if test "x$HOST_OS" = xwindows; then
11625            # Now if this is a windows platform. The default installation of a JDK
11626            # actually puts the JRE in the path and keeps the JDK out of the path!
11627            # Go look in the default installation location.
11628            BOOT_JDK=/cygdrive/c/Program\ Files/Java/`ls /cygdrive/c/Program\ Files/Java | grep jdk | sort -r | head --lines 1`
11629            if test -d "$BOOT_JDK"; then
11630                BOOT_JDK_FOUND=yes
11631            fi
11632        fi
11633        if test "x$BOOT_JDK_FOUND" = xno; then
11634            help_on_build_dependency openjdk
11635            as_fn_error $? "Found a JRE, not not a JDK! Please remove the JRE from your path and put a JDK there instead. $HELP_MSG" "$LINENO" 5
11636        fi
11637    else
11638        help_on_build_dependency openjdk
11639        as_fn_error $? "Could not find a JDK. $HELP_MSG" "$LINENO" 5
11640    fi
11641fi
11642
11643
11644    if test "x$BUILD_OS" = "xwindows"; then
11645        # Extract the first word of "cygpath", so it can be a program name with args.
11646set dummy cygpath; ac_word=$2
11647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11648$as_echo_n "checking for $ac_word... " >&6; }
11649if test "${ac_cv_path_CYGPATH+set}" = set; then :
11650  $as_echo_n "(cached) " >&6
11651else
11652  case $CYGPATH in
11653  [\\/]* | ?:[\\/]*)
11654  ac_cv_path_CYGPATH="$CYGPATH" # Let the user override the test with a path.
11655  ;;
11656  *)
11657  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11658for as_dir in $PATH
11659do
11660  IFS=$as_save_IFS
11661  test -z "$as_dir" && as_dir=.
11662    for ac_exec_ext in '' $ac_executable_extensions; do
11663  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11664    ac_cv_path_CYGPATH="$as_dir/$ac_word$ac_exec_ext"
11665    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11666    break 2
11667  fi
11668done
11669  done
11670IFS=$as_save_IFS
11671
11672  ;;
11673esac
11674fi
11675CYGPATH=$ac_cv_path_CYGPATH
11676if test -n "$CYGPATH"; then
11677  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CYGPATH" >&5
11678$as_echo "$CYGPATH" >&6; }
11679else
11680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11681$as_echo "no" >&6; }
11682fi
11683
11684
11685        tmp="$BOOT_JDK"
11686        # Convert to C:/ mixed style path without spaces.
11687        tmp=`$CYGPATH -s -m "$tmp"`
11688        BOOT_JDK="$tmp"
11689    fi
11690
11691
11692# Now see if we can find the rt.jar, or its nearest equivalent.
11693BOOT_RTJAR="$BOOT_JDK/jre/lib/rt.jar"
11694
11695    # Fail with message the path to the Boot JDK rt.jar (or nearest equivalent) if var BOOT_RTJAR contains a path with no spaces in it.
11696    # Unless on Windows, where we can rewrite the path.
11697    HAS_SPACE=`echo "$BOOT_RTJAR" | grep " "`
11698    if test "x$HAS_SPACE" != x; then
11699        if test "x$BUILD_OS" = "xwindows"; then
11700            BOOT_RTJAR=`$CYGPATH -s -m -a "$BOOT_RTJAR"`
11701            BOOT_RTJAR=`$CYGPATH -u "$BOOT_RTJAR"`
11702        else
11703            as_fn_error $? "You cannot have spaces in the path to the Boot JDK rt.jar (or nearest equivalent)! \"$BOOT_RTJAR\"" "$LINENO" 5
11704        fi
11705    fi
11706
11707
11708BOOT_TOOLSJAR="$BOOT_JDK/lib/tools.jar"
11709
11710    # Fail with message the path to the Boot JDK tools.jar (or nearest equivalent) if var BOOT_TOOLSJAR contains a path with no spaces in it.
11711    # Unless on Windows, where we can rewrite the path.
11712    HAS_SPACE=`echo "$BOOT_TOOLSJAR" | grep " "`
11713    if test "x$HAS_SPACE" != x; then
11714        if test "x$BUILD_OS" = "xwindows"; then
11715            BOOT_TOOLSJAR=`$CYGPATH -s -m -a "$BOOT_TOOLSJAR"`
11716            BOOT_TOOLSJAR=`$CYGPATH -u "$BOOT_TOOLSJAR"`
11717        else
11718            as_fn_error $? "You cannot have spaces in the path to the Boot JDK tools.jar (or nearest equivalent)! \"$BOOT_TOOLSJAR\"" "$LINENO" 5
11719        fi
11720    fi
11721
11722
11723if test ! -f $BOOT_RTJAR; then
11724    # On MacOSX it is called classes.jar
11725    BOOT_RTJAR=$BOOT_JDK/../Classes/classes.jar
11726    if test ! -f $BOOT_RTJAR; then
11727        as_fn_error $? "Cannot find the rt.jar or its equivalent!" "$LINENO" 5
11728    fi
11729    # Remove the ..
11730    BOOT_RTJAR="`cd ${BOOT_RTJAR%/*} && pwd`/${BOOT_RTJAR##*/}"
11731    # The tools.jar is part of classes.jar
11732    BOOT_TOOLSJAR="$BOOT_RTJAR"
11733fi
11734
11735
11736
11737
11738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot JDK" >&5
11739$as_echo_n "checking for Boot JDK... " >&6; }
11740{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_JDK" >&5
11741$as_echo "$BOOT_JDK" >&6; }
11742{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot rt.jar" >&5
11743$as_echo_n "checking for Boot rt.jar... " >&6; }
11744{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_RTJAR" >&5
11745$as_echo "$BOOT_RTJAR" >&6; }
11746{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Boot tools.jar" >&5
11747$as_echo_n "checking for Boot tools.jar... " >&6; }
11748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $BOOT_TOOLSJAR" >&5
11749$as_echo "$BOOT_TOOLSJAR" >&6; }
11750
11751# Use the java tool from the Boot JDK.
11752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for java in Boot JDK" >&5
11753$as_echo_n "checking for java in Boot JDK... " >&6; }
11754JAVA=$BOOT_JDK/bin/java
11755if test ! -x $JAVA; then
11756    as_fn_error $? "Could not find a working java" "$LINENO" 5
11757fi
11758BOOT_JDK_VERSION=`$JAVA -version 2>&1 | head -n 1`
11759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes $BOOT_JDK_VERSION" >&5
11760$as_echo "yes $BOOT_JDK_VERSION" >&6; }
11761
11762
11763# Extra M4 quote needed to protect [] in grep expression.
11764FOUND_VERSION_78=`echo $BOOT_JDK_VERSION | grep  '\"1\.[78]\.'`
11765if test "x$FOUND_VERSION_78" = x; then
11766    help_on_build_dependency openjdk
11767    as_fn_error $? "Your boot-jdk must be version 7 or 8. $HELP_MSG" "$LINENO" 5
11768fi
11769
11770# When compiling code to be executed by the Boot JDK, force jdk7 compatibility.
11771BOOT_JDK_SOURCETARGET="-source 7 -target 7"
11772
11773
11774# Use the javac tool from the Boot JDK.
11775{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac in Boot JDK" >&5
11776$as_echo_n "checking for javac in Boot JDK... " >&6; }
11777JAVAC=$BOOT_JDK/bin/javac
11778if test ! -x $JAVAC; then
11779    as_fn_error $? "Could not find a working javac" "$LINENO" 5
11780fi
11781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11782$as_echo "yes" >&6; }
11783
11784
11785
11786# Use the javah tool from the Boot JDK.
11787{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for javah in Boot JDK" >&5
11788$as_echo_n "checking for javah in Boot JDK... " >&6; }
11789JAVAH=$BOOT_JDK/bin/javah
11790if test ! -x $JAVAH; then
11791    as_fn_error $? "Could not find a working javah" "$LINENO" 5
11792fi
11793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11794$as_echo "yes" >&6; }
11795
11796
11797# Use the jar tool from the Boot JDK.
11798{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar in Boot JDK" >&5
11799$as_echo_n "checking for jar in Boot JDK... " >&6; }
11800JAR=$BOOT_JDK/bin/jar
11801if test ! -x $JAR; then
11802    as_fn_error $? "Could not find a working jar" "$LINENO" 5
11803fi
11804
11805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11806$as_echo "yes" >&6; }
11807
11808# Use the rmic tool from the Boot JDK.
11809{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for rmic in Boot JDK" >&5
11810$as_echo_n "checking for rmic in Boot JDK... " >&6; }
11811RMIC=$BOOT_JDK/bin/rmic
11812if test ! -x $RMIC; then
11813    as_fn_error $? "Could not find a working rmic" "$LINENO" 5
11814fi
11815
11816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11817$as_echo "yes" >&6; }
11818
11819# Use the native2ascii tool from the Boot JDK.
11820{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for native2ascii in Boot JDK" >&5
11821$as_echo_n "checking for native2ascii in Boot JDK... " >&6; }
11822NATIVE2ASCII=$BOOT_JDK/bin/native2ascii
11823if test ! -x $NATIVE2ASCII; then
11824    as_fn_error $? "Could not find a working native2ascii" "$LINENO" 5
11825fi
11826{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11827$as_echo "yes" >&6; }
11828
11829
11830###############################################################################
11831#
11832# Pickup additional source for a component from outside of the source root
11833# or override source for a component.
11834#
11835
11836# Check whether --with-add-source-root was given.
11837if test "${with_add_source_root+set}" = set; then :
11838  withval=$with_add_source_root;
11839fi
11840
11841
11842
11843# Check whether --with-override-source-root was given.
11844if test "${with_override_source_root+set}" = set; then :
11845  withval=$with_override_source_root;
11846fi
11847
11848
11849
11850# Check whether --with-adds-and-overrides was given.
11851if test "${with_adds_and_overrides+set}" = set; then :
11852  withval=$with_adds_and_overrides;
11853fi
11854
11855
11856if test "x$with_adds_and_overrides" != x; then
11857    with_add_source_root="$with_adds_and_overrides/adds"
11858    with_override_source_root="$with_adds_and_overrides/overrides"
11859fi
11860
11861if test "x$with_add_source_root" != x; then
11862    if ! test -d $with_add_source_root; then
11863       as_fn_error $? "Trying to use a non-existant add-source-root $with_add_source_root" "$LINENO" 5
11864    fi
11865    CURDIR="$PWD"
11866    cd "$with_add_source_root"
11867    ADD_SRC_ROOT="`pwd`"
11868    cd "$CURDIR"
11869    # Verify that the addon source root does not have any root makefiles.
11870    # If it does, then it is usually an error, prevent this.
11871    if test -f $with_add_source_root/langtools/makefiles/Makefile || \
11872       test -f $with_add_source_root/langtools/make/Makefile; then
11873        as_fn_error $? "Your add source root seems to contain a full langtools repo! An add source root should only contain additional sources." "$LINENO" 5
11874    fi
11875    if test -f $with_add_source_root/corba/makefiles/Makefile || \
11876       test -f $with_add_source_root/corba/make/Makefile; then
11877        as_fn_error $? "Your add source root seems to contain a full corba repo! An add source root should only contain additional sources." "$LINENO" 5
11878    fi
11879    if test -f $with_add_source_root/jaxp/makefiles/Makefile || \
11880       test -f $with_add_source_root/jaxp/make/Makefile; then
11881        as_fn_error $? "Your add source root seems to contain a full jaxp repo! An add source root should only contain additional sources." "$LINENO" 5
11882    fi
11883    if test -f $with_add_source_root/jaxws/makefiles/Makefile || \
11884       test -f $with_add_source_root/jaxws/make/Makefile; then
11885        as_fn_error $? "Your add source root seems to contain a full jaxws repo! An add source root should only contain additional sources." "$LINENO" 5
11886    fi
11887    if test -f $with_add_source_root/hotspot/makefiles/Makefile || \
11888       test -f $with_add_source_root/hotspot/make/Makefile; then
11889        as_fn_error $? "Your add source root seems to contain a full hotspot repo! An add source root should only contain additional sources." "$LINENO" 5
11890    fi
11891    if test -f $with_add_source_root/jdk/makefiles/Makefile || \
11892       test -f $with_add_source_root/jdk/make/Makefile; then
11893        as_fn_error $? "Your add source root seems to contain a full JDK repo! An add source root should only contain additional sources." "$LINENO" 5
11894    fi
11895fi
11896
11897
11898if test "x$with_override_source_root" != x; then
11899    if ! test -d $with_override_source_root; then
11900       as_fn_error $? "Trying to use a non-existant override-source-root $with_override_source_root" "$LINENO" 5
11901    fi
11902    CURDIR="$PWD"
11903    cd "$with_override_source_root"
11904    OVERRIDE_SRC_ROOT="`pwd`"
11905    cd "$CURDIR"
11906    if test -f $with_override_source_root/langtools/makefiles/Makefile || \
11907       test -f $with_override_source_root/langtools/make/Makefile; then
11908        as_fn_error $? "Your override source root seems to contain a full langtools repo! An override source root should only contain sources that override." "$LINENO" 5
11909    fi
11910    if test -f $with_override_source_root/corba/makefiles/Makefile || \
11911       test -f $with_override_source_root/corba/make/Makefile; then
11912        as_fn_error $? "Your override source root seems to contain a full corba repo! An override source root should only contain sources that override." "$LINENO" 5
11913    fi
11914    if test -f $with_override_source_root/jaxp/makefiles/Makefile || \
11915       test -f $with_override_source_root/jaxp/make/Makefile; then
11916        as_fn_error $? "Your override source root seems to contain a full jaxp repo! An override source root should only contain sources that override." "$LINENO" 5
11917    fi
11918    if test -f $with_override_source_root/jaxws/makefiles/Makefile || \
11919       test -f $with_override_source_root/jaxws/make/Makefile; then
11920        as_fn_error $? "Your override source root seems to contain a full jaxws repo! An override source root should only contain sources that override." "$LINENO" 5
11921    fi
11922    if test -f $with_override_source_root/hotspot/makefiles/Makefile || \
11923       test -f $with_override_source_root/hotspot/make/Makefile; then
11924        as_fn_error $? "Your override source root seems to contain a full hotspot repo! An override source root should only contain sources that override." "$LINENO" 5
11925    fi
11926    if test -f $with_override_source_root/jdk/makefiles/Makefile || \
11927       test -f $with_override_source_root/jdk/make/Makefile; then
11928        as_fn_error $? "Your override source root seems to contain a full JDK repo! An override source root should only contain sources that override." "$LINENO" 5
11929    fi
11930fi
11931
11932
11933###############################################################################
11934#
11935# Override a repo completely, this is used for example when you have 3 small
11936# development sandboxes of the langtools sources and want to avoid having 3 full
11937# OpenJDK sources checked out on disk.
11938#
11939# Assuming that the 3 langtools sandboxes are located here:
11940# /home/fredrik/sandbox1/langtools
11941# /home/fredrik/sandbox2/langtools
11942# /home/fredrik/sandbox3/langtools
11943#
11944# From the source root you create build subdirs manually:
11945#     mkdir -p build1 build2 build3
11946# in each build directory run:
11947#     (cd build1 && ../configure --with-override-langtools=/home/fredrik/sandbox1 && make)
11948#     (cd build2 && ../configure --with-override-langtools=/home/fredrik/sandbox2 && make)
11949#     (cd build3 && ../configure --with-override-langtools=/home/fredrik/sandbox3 && make)
11950#
11951
11952
11953# Check whether --with-override-langtools was given.
11954if test "${with_override_langtools+set}" = set; then :
11955  withval=$with_override_langtools;
11956fi
11957
11958
11959
11960# Check whether --with-override-corba was given.
11961if test "${with_override_corba+set}" = set; then :
11962  withval=$with_override_corba;
11963fi
11964
11965
11966
11967# Check whether --with-override-jaxp was given.
11968if test "${with_override_jaxp+set}" = set; then :
11969  withval=$with_override_jaxp;
11970fi
11971
11972
11973
11974# Check whether --with-override-jaxws was given.
11975if test "${with_override_jaxws+set}" = set; then :
11976  withval=$with_override_jaxws;
11977fi
11978
11979
11980
11981# Check whether --with-override-hotspot was given.
11982if test "${with_override_hotspot+set}" = set; then :
11983  withval=$with_override_hotspot;
11984fi
11985
11986
11987
11988# Check whether --with-override-jdk was given.
11989if test "${with_override_jdk+set}" = set; then :
11990  withval=$with_override_jdk;
11991fi
11992
11993
11994if test "x$with_override_langtools" != x; then
11995    CURDIR="$PWD"
11996    cd "$with_override_langtools"
11997    LANGTOOLS_TOPDIR="`pwd`"
11998    cd "$CURDIR"
11999    if ! test -f $LANGTOOLS_TOPDIR/makefiles/Makefile; then
12000        as_fn_error $? "You have to override langtools with a full langtools repo!" "$LINENO" 5
12001    fi
12002    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if langtools should be overridden" >&5
12003$as_echo_n "checking if langtools should be overridden... " >&6; }
12004    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $LANGTOOLS_TOPDIR" >&5
12005$as_echo "yes with $LANGTOOLS_TOPDIR" >&6; }
12006fi
12007if test "x$with_override_corba" != x; then
12008    CURDIR="$PWD"
12009    cd "$with_override_corba"
12010    CORBA_TOPDIR="`pwd`"
12011    cd "$CURDIR"
12012    if ! test -f $CORBA_TOPDIR/makefiles/Makefile; then
12013        as_fn_error $? "You have to override corba with a full corba repo!" "$LINENO" 5
12014    fi
12015    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if corba should be overridden" >&5
12016$as_echo_n "checking if corba should be overridden... " >&6; }
12017    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $CORBA_TOPDIR" >&5
12018$as_echo "yes with $CORBA_TOPDIR" >&6; }
12019fi
12020if test "x$with_override_jaxp" != x; then
12021    CURDIR="$PWD"
12022    cd "$with_override_jaxp"
12023    JAXP_TOPDIR="`pwd`"
12024    cd "$CURDIR"
12025    if ! test -f $JAXP_TOPDIR/makefiles/Makefile; then
12026        as_fn_error $? "You have to override jaxp with a full jaxp repo!" "$LINENO" 5
12027    fi
12028    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxp should be overridden" >&5
12029$as_echo_n "checking if jaxp should be overridden... " >&6; }
12030    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXP_TOPDIR" >&5
12031$as_echo "yes with $JAXP_TOPDIR" >&6; }
12032fi
12033if test "x$with_override_jaxws" != x; then
12034    CURDIR="$PWD"
12035    cd "$with_override_jaxws"
12036    JAXWS_TOPDIR="`pwd`"
12037    cd "$CURDIR"
12038    if ! test -f $JAXWS_TOPDIR/makefiles/Makefile; then
12039        as_fn_error $? "You have to override jaxws with a full jaxws repo!" "$LINENO" 5
12040    fi
12041    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if jaxws should be overridden" >&5
12042$as_echo_n "checking if jaxws should be overridden... " >&6; }
12043    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JAXWS_TOPDIR" >&5
12044$as_echo "yes with $JAXWS_TOPDIR" >&6; }
12045fi
12046if test "x$with_override_hotspot" != x; then
12047    CURDIR="$PWD"
12048    cd "$with_override_hotspot"
12049    HOTSPOT_TOPDIR="`pwd`"
12050    cd "$CURDIR"
12051    if ! test -f $HOTSPOT_TOPDIR/make/Makefile && \
12052       ! test -f $HOTSPOT_TOPDIR/makefiles/Makefile; then
12053        as_fn_error $? "You have to override hotspot with a full hotspot repo!" "$LINENO" 5
12054    fi
12055    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if hotspot should be overridden" >&5
12056$as_echo_n "checking if hotspot should be overridden... " >&6; }
12057    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $HOTSPOT_TOPDIR" >&5
12058$as_echo "yes with $HOTSPOT_TOPDIR" >&6; }
12059fi
12060if test "x$with_override_jdk" != x; then
12061    CURDIR="$PWD"
12062    cd "$with_override_jdk"
12063    JDK_TOPDIR="`pwd`"
12064    cd "$CURDIR"
12065    if ! test -f $JDK_TOPDIR/makefiles/Makefile; then
12066        as_fn_error $? "You have to override JDK with a full JDK repo!" "$LINENO" 5
12067    fi
12068    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if JDK should be overridden" >&5
12069$as_echo_n "checking if JDK should be overridden... " >&6; }
12070    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes with $JDK_TOPDIR" >&5
12071$as_echo "yes with $JDK_TOPDIR" >&6; }
12072fi
12073
12074###############################################################################
12075#
12076# Specify options for anything that is run with the Boot JDK.
12077#
12078
12079# Check whether --with-boot-jdk-jvmargs was given.
12080if test "${with_boot_jdk_jvmargs+set}" = set; then :
12081  withval=$with_boot_jdk_jvmargs;
12082fi
12083
12084
12085if test "x$with_boot_jdk_jvmargs" = x; then
12086    # Not all JVM:s accept the same arguments on the command line.
12087    # OpenJDK specific increase in thread stack for JDK build,
12088    # well more specifically, when running javac.
12089    if test "x$BUILD_NUM_BITS" = x32; then
12090       STACK_SIZE=768
12091    else
12092       # Running Javac on a JVM on a 64-bit machine, the stack takes more space
12093       # since 64-bit pointers are pushed on the stach. Apparently, we need
12094       # to increase the stack space when javacing the JDK....
12095       STACK_SIZE=1536
12096    fi
12097
12098    # Minimum amount of heap memory.
12099
12100    # Test if -Xms64M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12101    # If so, then append -Xms64M to boot_jdk_jvmargs
12102    FOUND_WARN=`$JAVA -Xms64M -version 2>&1 | grep -i warn`
12103    FOUND_VERSION=`$JAVA -Xms64M -version 2>&1 | grep " version \""`
12104    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12105        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xms64M"
12106    fi
12107
12108    if test "x$HOST_OS" = "xmacosx"; then
12109        # Why does macosx need more heap? Its the huge JDK batch.
12110
12111    # Test if -Xmx1600M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12112    # If so, then append -Xmx1600M to boot_jdk_jvmargs
12113    FOUND_WARN=`$JAVA -Xmx1600M -version 2>&1 | grep -i warn`
12114    FOUND_VERSION=`$JAVA -Xmx1600M -version 2>&1 | grep " version \""`
12115    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12116        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1600M"
12117    fi
12118
12119    else
12120
12121    # Test if -Xmx1100M is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12122    # If so, then append -Xmx1100M to boot_jdk_jvmargs
12123    FOUND_WARN=`$JAVA -Xmx1100M -version 2>&1 | grep -i warn`
12124    FOUND_VERSION=`$JAVA -Xmx1100M -version 2>&1 | grep " version \""`
12125    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12126        boot_jdk_jvmargs="$boot_jdk_jvmargs -Xmx1100M"
12127    fi
12128
12129    fi
12130    # When is adding -client something that speeds up the JVM?
12131    # ADD_JVM_ARG_IF_OK([-client],boot_jdk_jvmargs,[$JAVA])
12132
12133    # Test if -XX:PermSize=32m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12134    # If so, then append -XX:PermSize=32m to boot_jdk_jvmargs
12135    FOUND_WARN=`$JAVA -XX:PermSize=32m -version 2>&1 | grep -i warn`
12136    FOUND_VERSION=`$JAVA -XX:PermSize=32m -version 2>&1 | grep " version \""`
12137    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12138        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:PermSize=32m"
12139    fi
12140
12141
12142    # Test if -XX:MaxPermSize=160m is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12143    # If so, then append -XX:MaxPermSize=160m to boot_jdk_jvmargs
12144    FOUND_WARN=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep -i warn`
12145    FOUND_VERSION=`$JAVA -XX:MaxPermSize=160m -version 2>&1 | grep " version \""`
12146    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12147        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:MaxPermSize=160m"
12148    fi
12149
12150
12151    # Test if -XX:ThreadStackSize=$STACK_SIZE is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12152    # If so, then append -XX:ThreadStackSize=$STACK_SIZE to boot_jdk_jvmargs
12153    FOUND_WARN=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep -i warn`
12154    FOUND_VERSION=`$JAVA -XX:ThreadStackSize=$STACK_SIZE -version 2>&1 | grep " version \""`
12155    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12156        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:ThreadStackSize=$STACK_SIZE"
12157    fi
12158
12159    # Disable special log output when a debug build is used as Boot JDK...
12160
12161    # Test if -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12162    # If so, then append -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput to boot_jdk_jvmargs
12163    FOUND_WARN=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep -i warn`
12164    FOUND_VERSION=`$JAVA -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput -version 2>&1 | grep " version \""`
12165    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12166        boot_jdk_jvmargs="$boot_jdk_jvmargs -XX:-PrintVMOptions -XX:-UnlockDiagnosticVMOptions -XX:-LogVMOutput"
12167    fi
12168
12169fi
12170
12171BOOT_JDK_JVMARGS=$boot_jdk_jvmargs
12172
12173
12174
12175# Check whether --with-server-java was given.
12176if test "${with_server_java+set}" = set; then :
12177  withval=$with_server_java;
12178fi
12179
12180
12181if test "x$with_server_java" != x; then
12182    SERVER_JAVA="$with_server_java"
12183    FOUND_VERSION=`$SERVER_JAVA -version 2>&1 | grep " version \""`
12184    if test "x$FOUND_VERSION" = x; then
12185        as_fn_error $? "Could not execute server java: $SERVER_JAVA" "$LINENO" 5
12186    fi
12187else
12188    SERVER_JAVA=""
12189    # Hotspot specific options.
12190
12191    # Test if -XX:+UseParallelOldGC is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12192    # If so, then append -XX:+UseParallelOldGC to SERVER_JAVA
12193    FOUND_WARN=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep -i warn`
12194    FOUND_VERSION=`$JAVA -XX:+UseParallelOldGC -version 2>&1 | grep " version \""`
12195    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12196        SERVER_JAVA="$SERVER_JAVA -XX:+UseParallelOldGC"
12197    fi
12198
12199
12200    # Test if -verbosegc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12201    # If so, then append -verbosegc to SERVER_JAVA
12202    FOUND_WARN=`$JAVA -verbosegc -version 2>&1 | grep -i warn`
12203    FOUND_VERSION=`$JAVA -verbosegc -version 2>&1 | grep " version \""`
12204    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12205        SERVER_JAVA="$SERVER_JAVA -verbosegc"
12206    fi
12207
12208    # JRockit specific options.
12209
12210    # Test if -Xverbose:gc is a valid argument to $JAVA (often is $JAVA passed as $JAVA)
12211    # If so, then append -Xverbose:gc to SERVER_JAVA
12212    FOUND_WARN=`$JAVA -Xverbose:gc -version 2>&1 | grep -i warn`
12213    FOUND_VERSION=`$JAVA -Xverbose:gc -version 2>&1 | grep " version \""`
12214    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12215        SERVER_JAVA="$SERVER_JAVA -Xverbose:gc"
12216    fi
12217
12218    SERVER_JAVA="$JAVA $SERVER_JAVA"
12219fi
12220
12221
12222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use shared server for javac" >&5
12223$as_echo_n "checking whether to use shared server for javac... " >&6; }
12224# Check whether --enable-javac-server was given.
12225if test "${enable_javac_server+set}" = set; then :
12226  enableval=$enable_javac_server; ENABLE_JAVAC_SERVER="${enableval}"
12227else
12228  ENABLE_JAVAC_SERVER='no'
12229fi
12230
12231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_SERVER" >&5
12232$as_echo "$ENABLE_JAVAC_SERVER" >&6; }
12233if test "x$ENABLE_JAVAC_SERVER" = xyes; then
12234    JAVAC_USE_REMOTE=true
12235    JAVAC_SERVERS="$OUTPUT_ROOT/javacservers"
12236else
12237    JAVAC_USE_REMOTE=false
12238    JAVAC_SERVERS=
12239fi
12240
12241
12242
12243
12244# Check whether --with-javac-server-cores was given.
12245if test "${with_javac_server_cores+set}" = set; then :
12246  withval=$with_javac_server_cores;
12247fi
12248
12249if test "x$with_javac_server_cores" != x; then
12250    JAVAC_SERVER_CORES="$with_javac_server_cores"
12251else
12252    if test "$NUM_CORES" -gt 16; then
12253        # We set this arbitrary limit because we want to limit the heap
12254        # size of the javac server.
12255        # In the future we will make the javac compilers in the server
12256        # share more and more state, thus enabling us to use more and
12257        # more concurrent threads in the server.
12258        JAVAC_SERVER_CORES="16"
12259    else
12260        JAVAC_SERVER_CORES="$NUM_CORES"
12261    fi
12262
12263    if test "$MEMORY_SIZE" -gt "17000"; then
12264        MAX_HEAP_MEM=10000
12265
12266    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12267    # If so, then append -d64 to SERVER_JAVA
12268    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12269    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12270    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12271        SERVER_JAVA="$SERVER_JAVA -d64"
12272    fi
12273
12274
12275    # Test if -Xms10G -Xmx10G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12276    # If so, then append -Xms10G -Xmx10G to SERVER_JAVA
12277    FOUND_WARN=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep -i warn`
12278    FOUND_VERSION=`$SERVER_JAVA -Xms10G -Xmx10G -version 2>&1 | grep " version \""`
12279    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12280        SERVER_JAVA="$SERVER_JAVA -Xms10G -Xmx10G"
12281    fi
12282
12283
12284    # Test if -Xmn2G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12285    # If so, then append -Xmn2G to SERVER_JAVA
12286    FOUND_WARN=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep -i warn`
12287    FOUND_VERSION=`$SERVER_JAVA -Xmn2G -version 2>&1 | grep " version \""`
12288    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12289        SERVER_JAVA="$SERVER_JAVA -Xmn2G"
12290    fi
12291
12292    elif test "$MEMORY_SIZE" -gt "10000"; then
12293        MAX_HEAP_MEM=6000
12294
12295    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12296    # If so, then append -d64 to SERVER_JAVA
12297    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12298    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12299    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12300        SERVER_JAVA="$SERVER_JAVA -d64"
12301    fi
12302
12303
12304    # Test if -Xms6G -Xmx6G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12305    # If so, then append -Xms6G -Xmx6G to SERVER_JAVA
12306    FOUND_WARN=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep -i warn`
12307    FOUND_VERSION=`$SERVER_JAVA -Xms6G -Xmx6G -version 2>&1 | grep " version \""`
12308    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12309        SERVER_JAVA="$SERVER_JAVA -Xms6G -Xmx6G"
12310    fi
12311
12312
12313    # Test if -Xmn1G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12314    # If so, then append -Xmn1G to SERVER_JAVA
12315    FOUND_WARN=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep -i warn`
12316    FOUND_VERSION=`$SERVER_JAVA -Xmn1G -version 2>&1 | grep " version \""`
12317    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12318        SERVER_JAVA="$SERVER_JAVA -Xmn1G"
12319    fi
12320
12321    elif test "$MEMORY_SIZE" -gt "5000"; then
12322        MAX_HEAP_MEM=3000
12323
12324    # Test if -d64 is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12325    # If so, then append -d64 to SERVER_JAVA
12326    FOUND_WARN=`$SERVER_JAVA -d64 -version 2>&1 | grep -i warn`
12327    FOUND_VERSION=`$SERVER_JAVA -d64 -version 2>&1 | grep " version \""`
12328    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12329        SERVER_JAVA="$SERVER_JAVA -d64"
12330    fi
12331
12332
12333    # Test if -Xms1G -Xmx3G is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12334    # If so, then append -Xms1G -Xmx3G to SERVER_JAVA
12335    FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep -i warn`
12336    FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx3G -version 2>&1 | grep " version \""`
12337    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12338        SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx3G"
12339    fi
12340
12341
12342    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12343    # If so, then append -Xmn256M to SERVER_JAVA
12344    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12345    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12346    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12347        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12348    fi
12349
12350    elif test "$MEMORY_SIZE" -gt "3800"; then
12351        MAX_HEAP_MEM=2500
12352
12353    # Test if -Xms1G -Xmx2500M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12354    # If so, then append -Xms1G -Xmx2500M to SERVER_JAVA
12355    FOUND_WARN=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep -i warn`
12356    FOUND_VERSION=`$SERVER_JAVA -Xms1G -Xmx2500M -version 2>&1 | grep " version \""`
12357    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12358        SERVER_JAVA="$SERVER_JAVA -Xms1G -Xmx2500M"
12359    fi
12360
12361
12362    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12363    # If so, then append -Xmn256M to SERVER_JAVA
12364    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12365    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12366    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12367        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12368    fi
12369
12370    elif test "$MEMORY_SIZE" -gt "1900"; then
12371        MAX_HEAP_MEM=1200
12372
12373    # Test if -Xms700M -Xmx1200M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12374    # If so, then append -Xms700M -Xmx1200M to SERVER_JAVA
12375    FOUND_WARN=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep -i warn`
12376    FOUND_VERSION=`$SERVER_JAVA -Xms700M -Xmx1200M -version 2>&1 | grep " version \""`
12377    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12378        SERVER_JAVA="$SERVER_JAVA -Xms700M -Xmx1200M"
12379    fi
12380
12381
12382    # Test if -Xmn256M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12383    # If so, then append -Xmn256M to SERVER_JAVA
12384    FOUND_WARN=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep -i warn`
12385    FOUND_VERSION=`$SERVER_JAVA -Xmn256M -version 2>&1 | grep " version \""`
12386    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12387        SERVER_JAVA="$SERVER_JAVA -Xmn256M"
12388    fi
12389
12390    elif test "$MEMORY_SIZE" -gt "1000"; then
12391        MAX_HEAP_MEM=900
12392
12393    # Test if -Xms400M -Xmx900M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12394    # If so, then append -Xms400M -Xmx900M to SERVER_JAVA
12395    FOUND_WARN=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep -i warn`
12396    FOUND_VERSION=`$SERVER_JAVA -Xms400M -Xmx900M -version 2>&1 | grep " version \""`
12397    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12398        SERVER_JAVA="$SERVER_JAVA -Xms400M -Xmx900M"
12399    fi
12400
12401
12402    # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12403    # If so, then append -Xmn128M to SERVER_JAVA
12404    FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
12405    FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
12406    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12407        SERVER_JAVA="$SERVER_JAVA -Xmn128M"
12408    fi
12409
12410    else
12411        MAX_HEAP_MEM=512
12412
12413    # Test if -Xms256M -Xmx512M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12414    # If so, then append -Xms256M -Xmx512M to SERVER_JAVA
12415    FOUND_WARN=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep -i warn`
12416    FOUND_VERSION=`$SERVER_JAVA -Xms256M -Xmx512M -version 2>&1 | grep " version \""`
12417    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12418        SERVER_JAVA="$SERVER_JAVA -Xms256M -Xmx512M"
12419    fi
12420
12421
12422    # Test if -Xmn128M is a valid argument to $SERVER_JAVA (often is $JAVA passed as $SERVER_JAVA)
12423    # If so, then append -Xmn128M to SERVER_JAVA
12424    FOUND_WARN=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep -i warn`
12425    FOUND_VERSION=`$SERVER_JAVA -Xmn128M -version 2>&1 | grep " version \""`
12426    if test "x$FOUND_VERSION" != x && test "x$FOUND_WARN" = x; then
12427        SERVER_JAVA="$SERVER_JAVA -Xmn128M"
12428    fi
12429
12430    fi
12431
12432    MAX_COMPILERS_IN_HEAP=`expr $MAX_HEAP_MEM / 501`
12433    if test "$JAVAC_SERVER_CORES" -gt "$MAX_COMPILERS_IN_HEAP"; then
12434        { $as_echo "$as_me:${as_lineno-$LINENO}: checking if number of server cores must be reduced" >&5
12435$as_echo_n "checking if number of server cores must be reduced... " >&6; }
12436        JAVAC_SERVER_CORES="$MAX_COMPILERS_IN_HEAP"
12437        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&5
12438$as_echo "yes, to $JAVAC_SERVER_CORES with max heap size $MAX_HEAP_MEM MB" >&6; }
12439    fi
12440fi
12441
12442
12443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to track dependencies between Java packages" >&5
12444$as_echo_n "checking whether to track dependencies between Java packages... " >&6; }
12445# Check whether --enable-javac-deps was given.
12446if test "${enable_javac_deps+set}" = set; then :
12447  enableval=$enable_javac_deps; ENABLE_JAVAC_DEPS="${enableval}"
12448else
12449  ENABLE_JAVAC_DEPS='no'
12450fi
12451
12452{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_DEPS" >&5
12453$as_echo "$ENABLE_JAVAC_DEPS" >&6; }
12454if test "x$ENABLE_JAVAC_DEPS" = xyes; then
12455    JAVAC_USE_DEPS=true
12456else
12457    JAVAC_USE_DEPS=false
12458fi
12459
12460
12461{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use multiple cores for javac compilation" >&5
12462$as_echo_n "checking whether to use multiple cores for javac compilation... " >&6; }
12463# Check whether --enable-javac-multi-core was given.
12464if test "${enable_javac_multi_core+set}" = set; then :
12465  enableval=$enable_javac_multi_core; ENABLE_JAVAC_MULTICORE="${enableval}"
12466else
12467  ENABLE_JAVAC_MULTICORE='no'
12468fi
12469
12470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_JAVAC_MULTICORE" >&5
12471$as_echo "$ENABLE_JAVAC_MULTICORE" >&6; }
12472if test "x$ENABLE_JAVAC_MULTICORE" = xyes; then
12473    JAVAC_USE_MODE=MULTI_CORE_CONCURRENT
12474else
12475    JAVAC_USE_MODE=SINGLE_THREADED_BATCH
12476    if test "x$ENABLE_JAVAC_DEPS" = xyes; then
12477        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&5
12478$as_echo "$as_me: WARNING: Dependency tracking is not supported with single threaded batch compiles of Java source roots. Please add --disable-javac-deps to your configure options." >&2;}
12479        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling dependency tracking for you now." >&5
12480$as_echo "$as_me: WARNING: Disabling dependency tracking for you now." >&2;}
12481        JAVAC_USE_DEPS=false
12482    fi
12483    if test "x$ENABLE_JAVAC_SERVER" = xyes; then
12484        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&5
12485$as_echo "$as_me: WARNING: The javac server will not be used since single threaded batch compiles are run within their own JVM. Please add --disable-javac-server to your configure options." >&2;}
12486        { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Disabling javac server for you now." >&5
12487$as_echo "$as_me: WARNING: Disabling javac server for you now." >&2;}
12488        JAVAC_USE_REMOTE=false
12489    fi
12490fi
12491
12492
12493###############################################################################
12494#
12495# OS specific settings that we never will need to probe.
12496#
12497if test "x$HOST_OS" = xlinux; then
12498    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Linux?" >&5
12499$as_echo_n "checking what is not needed on Linux?... " >&6; }
12500    PULSE_NOT_NEEDED=yes
12501    { $as_echo "$as_me:${as_lineno-$LINENO}: result: pulse" >&5
12502$as_echo "pulse" >&6; }
12503fi
12504
12505if test "x$HOST_OS" = xsolaris; then
12506    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Solaris?" >&5
12507$as_echo_n "checking what is not needed on Solaris?... " >&6; }
12508    ALSA_NOT_NEEDED=yes
12509    PULSE_NOT_NEEDED=yes
12510    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
12511$as_echo "alsa pulse" >&6; }
12512fi
12513
12514if test "x$HOST_OS" = xwindows; then
12515    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on Windows?" >&5
12516$as_echo_n "checking what is not needed on Windows?... " >&6; }
12517    CUPS_NOT_NEEDED=yes
12518    ALSA_NOT_NEEDED=yes
12519    PULSE_NOT_NEEDED=yes
12520    X11_NOT_NEEDED=yes
12521    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa cups pulse x11" >&5
12522$as_echo "alsa cups pulse x11" >&6; }
12523fi
12524
12525if test "x$HOST_OS" = xmacosx; then
12526    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on MacOSX?" >&5
12527$as_echo_n "checking what is not needed on MacOSX?... " >&6; }
12528    ALSA_NOT_NEEDED=yes
12529    PULSE_NOT_NEEDED=yes
12530    X11_NOT_NEEDED=yes
12531    FREETYPE2_NOT_NEEDED=yes
12532    # If the java runtime framework is disabled, then we need X11.
12533    # This will be adjusted below.
12534    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse x11" >&5
12535$as_echo "alsa pulse x11" >&6; }
12536fi
12537
12538if test "x$HOST_OS" = xbsd; then
12539    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on bsd?" >&5
12540$as_echo_n "checking what is not needed on bsd?... " >&6; }
12541    ALSA_NOT_NEEDED=yes
12542    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa" >&5
12543$as_echo "alsa" >&6; }
12544fi
12545
12546###############################################################################
12547#
12548# Check for MacOSX support for OpenJDK. If this exists, try to build a JVM
12549# that uses this API.
12550#
12551# Check whether --enable-macosx-runtime-support was given.
12552if test "${enable_macosx_runtime_support+set}" = set; then :
12553  enableval=$enable_macosx_runtime_support; MACOSX_RUNTIME_SUPPORT="${enableval}"
12554else
12555  MACOSX_RUNTIME_SUPPORT="no"
12556fi
12557
12558
12559USE_MACOSX_RUNTIME_SUPPORT=no
12560{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for explicit Java runtime support in the OS" >&5
12561$as_echo_n "checking for explicit Java runtime support in the OS... " >&6; }
12562if test -f /System/Library/Frameworks/JavaVM.framework/Frameworks/JavaRuntimeSupport.framework/Headers/JavaRuntimeSupport.h; then
12563    if test "x$MACOSX_RUNTIME_SUPPORT" != xno; then
12564        MACOSX_RUNTIME_SUPPORT=yes
12565        USE_MACOSX_RUNTIME_SUPPORT=yes
12566        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, does not need alsa freetype2 pulse and X11" >&5
12567$as_echo "yes, does not need alsa freetype2 pulse and X11" >&6; }
12568    else
12569        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes, but explicitly disabled." >&5
12570$as_echo "yes, but explicitly disabled." >&6; }
12571    fi
12572else
12573    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12574$as_echo "no" >&6; }
12575fi
12576
12577if test "x$HOST_OS" = xmacosx && test "x$USE_MACOSX_RUNTIME_SUPPORT" = xno; then
12578    { $as_echo "$as_me:${as_lineno-$LINENO}: checking what is not needed on an X11 build on MacOSX?" >&5
12579$as_echo_n "checking what is not needed on an X11 build on MacOSX?... " >&6; }
12580    X11_NOT_NEEDED=
12581    FREETYPE2_NOT_NEEDED=
12582    { $as_echo "$as_me:${as_lineno-$LINENO}: result: alsa pulse" >&5
12583$as_echo "alsa pulse" >&6; }
12584fi
12585
12586###############################################################################
12587#
12588# Check for X Windows
12589#
12590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
12591$as_echo_n "checking for X... " >&6; }
12592
12593
12594# Check whether --with-x was given.
12595if test "${with_x+set}" = set; then :
12596  withval=$with_x;
12597fi
12598
12599# $have_x is `yes', `no', `disabled', or empty when we do not yet know.
12600if test "x$with_x" = xno; then
12601  # The user explicitly disabled X.
12602  have_x=disabled
12603else
12604  case $x_includes,$x_libraries in #(
12605    *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5 ;; #(
12606    *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
12607  $as_echo_n "(cached) " >&6
12608else
12609  # One or both of the vars are not set, and there is no cached value.
12610ac_x_includes=no ac_x_libraries=no
12611rm -f -r conftest.dir
12612if mkdir conftest.dir; then
12613  cd conftest.dir
12614  cat >Imakefile <<'_ACEOF'
12615incroot:
12616	@echo incroot='${INCROOT}'
12617usrlibdir:
12618	@echo usrlibdir='${USRLIBDIR}'
12619libdir:
12620	@echo libdir='${LIBDIR}'
12621_ACEOF
12622  if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
12623    # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
12624    for ac_var in incroot usrlibdir libdir; do
12625      eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
12626    done
12627    # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
12628    for ac_extension in a so sl dylib la dll; do
12629      if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
12630	 test -f "$ac_im_libdir/libX11.$ac_extension"; then
12631	ac_im_usrlibdir=$ac_im_libdir; break
12632      fi
12633    done
12634    # Screen out bogus values from the imake configuration.  They are
12635    # bogus both because they are the default anyway, and because
12636    # using them would break gcc on systems where it needs fixed includes.
12637    case $ac_im_incroot in
12638	/usr/include) ac_x_includes= ;;
12639	*) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
12640    esac
12641    case $ac_im_usrlibdir in
12642	/usr/lib | /usr/lib64 | /lib | /lib64) ;;
12643	*) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
12644    esac
12645  fi
12646  cd ..
12647  rm -f -r conftest.dir
12648fi
12649
12650# Standard set of common directories for X headers.
12651# Check X11 before X11Rn because it is often a symlink to the current release.
12652ac_x_header_dirs='
12653/usr/X11/include
12654/usr/X11R7/include
12655/usr/X11R6/include
12656/usr/X11R5/include
12657/usr/X11R4/include
12658
12659/usr/include/X11
12660/usr/include/X11R7
12661/usr/include/X11R6
12662/usr/include/X11R5
12663/usr/include/X11R4
12664
12665/usr/local/X11/include
12666/usr/local/X11R7/include
12667/usr/local/X11R6/include
12668/usr/local/X11R5/include
12669/usr/local/X11R4/include
12670
12671/usr/local/include/X11
12672/usr/local/include/X11R7
12673/usr/local/include/X11R6
12674/usr/local/include/X11R5
12675/usr/local/include/X11R4
12676
12677/usr/X386/include
12678/usr/x386/include
12679/usr/XFree86/include/X11
12680
12681/usr/include
12682/usr/local/include
12683/usr/unsupported/include
12684/usr/athena/include
12685/usr/local/x11r5/include
12686/usr/lpp/Xamples/include
12687
12688/usr/openwin/include
12689/usr/openwin/share/include'
12690
12691if test "$ac_x_includes" = no; then
12692  # Guess where to find include files, by looking for Xlib.h.
12693  # First, try using that file with no special directory specified.
12694  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12695/* end confdefs.h.  */
12696#include <X11/Xlib.h>
12697_ACEOF
12698if ac_fn_cxx_try_cpp "$LINENO"; then :
12699  # We can compile using X headers with no special include directory.
12700ac_x_includes=
12701else
12702  for ac_dir in $ac_x_header_dirs; do
12703  if test -r "$ac_dir/X11/Xlib.h"; then
12704    ac_x_includes=$ac_dir
12705    break
12706  fi
12707done
12708fi
12709rm -f conftest.err conftest.i conftest.$ac_ext
12710fi # $ac_x_includes = no
12711
12712if test "$ac_x_libraries" = no; then
12713  # Check for the libraries.
12714  # See if we find them without any special options.
12715  # Don't add to $LIBS permanently.
12716  ac_save_LIBS=$LIBS
12717  LIBS="-lX11 $LIBS"
12718  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12719/* end confdefs.h.  */
12720#include <X11/Xlib.h>
12721int
12722main ()
12723{
12724XrmInitialize ()
12725  ;
12726  return 0;
12727}
12728_ACEOF
12729if ac_fn_cxx_try_link "$LINENO"; then :
12730  LIBS=$ac_save_LIBS
12731# We can link X programs with no special library path.
12732ac_x_libraries=
12733else
12734  LIBS=$ac_save_LIBS
12735for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
12736do
12737  # Don't even attempt the hair of trying to link an X program!
12738  for ac_extension in a so sl dylib la dll; do
12739    if test -r "$ac_dir/libX11.$ac_extension"; then
12740      ac_x_libraries=$ac_dir
12741      break 2
12742    fi
12743  done
12744done
12745fi
12746rm -f core conftest.err conftest.$ac_objext \
12747    conftest$ac_exeext conftest.$ac_ext
12748fi # $ac_x_libraries = no
12749
12750case $ac_x_includes,$ac_x_libraries in #(
12751  no,* | *,no | *\'*)
12752    # Didn't find X, or a directory has "'" in its name.
12753    ac_cv_have_x="have_x=no";; #(
12754  *)
12755    # Record where we found X for the cache.
12756    ac_cv_have_x="have_x=yes\
12757	ac_x_includes='$ac_x_includes'\
12758	ac_x_libraries='$ac_x_libraries'"
12759esac
12760fi
12761;; #(
12762    *) have_x=yes;;
12763  esac
12764  eval "$ac_cv_have_x"
12765fi # $with_x != no
12766
12767if test "$have_x" != yes; then
12768  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
12769$as_echo "$have_x" >&6; }
12770  no_x=yes
12771else
12772  # If each of the values was on the command line, it overrides each guess.
12773  test "x$x_includes" = xNONE && x_includes=$ac_x_includes
12774  test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
12775  # Update the cache value to reflect the command line values.
12776  ac_cv_have_x="have_x=yes\
12777	ac_x_includes='$x_includes'\
12778	ac_x_libraries='$x_libraries'"
12779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
12780$as_echo "libraries $x_libraries, headers $x_includes" >&6; }
12781fi
12782
12783if test "$no_x" = yes; then
12784  # Not all programs may use this symbol, but it does not hurt to define it.
12785
12786$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
12787
12788  X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
12789else
12790  if test -n "$x_includes"; then
12791    X_CFLAGS="$X_CFLAGS -I$x_includes"
12792  fi
12793
12794  # It would also be nice to do this for all -L options, not just this one.
12795  if test -n "$x_libraries"; then
12796    X_LIBS="$X_LIBS -L$x_libraries"
12797    # For Solaris; some versions of Sun CC require a space after -R and
12798    # others require no space.  Words are not sufficient . . . .
12799    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
12800$as_echo_n "checking whether -R must be followed by a space... " >&6; }
12801    ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
12802    ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag
12803    ac_cxx_werror_flag=yes
12804    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12805/* end confdefs.h.  */
12806
12807int
12808main ()
12809{
12810
12811  ;
12812  return 0;
12813}
12814_ACEOF
12815if ac_fn_cxx_try_link "$LINENO"; then :
12816  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12817$as_echo "no" >&6; }
12818       X_LIBS="$X_LIBS -R$x_libraries"
12819else
12820  LIBS="$ac_xsave_LIBS -R $x_libraries"
12821       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12822/* end confdefs.h.  */
12823
12824int
12825main ()
12826{
12827
12828  ;
12829  return 0;
12830}
12831_ACEOF
12832if ac_fn_cxx_try_link "$LINENO"; then :
12833  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12834$as_echo "yes" >&6; }
12835	  X_LIBS="$X_LIBS -R $x_libraries"
12836else
12837  { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
12838$as_echo "neither works" >&6; }
12839fi
12840rm -f core conftest.err conftest.$ac_objext \
12841    conftest$ac_exeext conftest.$ac_ext
12842fi
12843rm -f core conftest.err conftest.$ac_objext \
12844    conftest$ac_exeext conftest.$ac_ext
12845    ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag
12846    LIBS=$ac_xsave_LIBS
12847  fi
12848
12849  # Check for system-dependent libraries X programs must link with.
12850  # Do this before checking for the system-independent R6 libraries
12851  # (-lICE), since we may need -lsocket or whatever for X linking.
12852
12853  if test "$ISC" = yes; then
12854    X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
12855  else
12856    # Martyn Johnson says this is needed for Ultrix, if the X
12857    # libraries were built with DECnet support.  And Karl Berry says
12858    # the Alpha needs dnet_stub (dnet does not exist).
12859    ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
12860    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12861/* end confdefs.h.  */
12862
12863/* Override any GCC internal prototype to avoid an error.
12864   Use char because int might match the return type of a GCC
12865   builtin and then its argument prototype would still apply.  */
12866#ifdef __cplusplus
12867extern "C"
12868#endif
12869char XOpenDisplay ();
12870int
12871main ()
12872{
12873return XOpenDisplay ();
12874  ;
12875  return 0;
12876}
12877_ACEOF
12878if ac_fn_cxx_try_link "$LINENO"; then :
12879
12880else
12881  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
12882$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
12883if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
12884  $as_echo_n "(cached) " >&6
12885else
12886  ac_check_lib_save_LIBS=$LIBS
12887LIBS="-ldnet  $LIBS"
12888cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889/* end confdefs.h.  */
12890
12891/* Override any GCC internal prototype to avoid an error.
12892   Use char because int might match the return type of a GCC
12893   builtin and then its argument prototype would still apply.  */
12894#ifdef __cplusplus
12895extern "C"
12896#endif
12897char dnet_ntoa ();
12898int
12899main ()
12900{
12901return dnet_ntoa ();
12902  ;
12903  return 0;
12904}
12905_ACEOF
12906if ac_fn_cxx_try_link "$LINENO"; then :
12907  ac_cv_lib_dnet_dnet_ntoa=yes
12908else
12909  ac_cv_lib_dnet_dnet_ntoa=no
12910fi
12911rm -f core conftest.err conftest.$ac_objext \
12912    conftest$ac_exeext conftest.$ac_ext
12913LIBS=$ac_check_lib_save_LIBS
12914fi
12915{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
12916$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
12917if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
12918  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
12919fi
12920
12921    if test $ac_cv_lib_dnet_dnet_ntoa = no; then
12922      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
12923$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
12924if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
12925  $as_echo_n "(cached) " >&6
12926else
12927  ac_check_lib_save_LIBS=$LIBS
12928LIBS="-ldnet_stub  $LIBS"
12929cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12930/* end confdefs.h.  */
12931
12932/* Override any GCC internal prototype to avoid an error.
12933   Use char because int might match the return type of a GCC
12934   builtin and then its argument prototype would still apply.  */
12935#ifdef __cplusplus
12936extern "C"
12937#endif
12938char dnet_ntoa ();
12939int
12940main ()
12941{
12942return dnet_ntoa ();
12943  ;
12944  return 0;
12945}
12946_ACEOF
12947if ac_fn_cxx_try_link "$LINENO"; then :
12948  ac_cv_lib_dnet_stub_dnet_ntoa=yes
12949else
12950  ac_cv_lib_dnet_stub_dnet_ntoa=no
12951fi
12952rm -f core conftest.err conftest.$ac_objext \
12953    conftest$ac_exeext conftest.$ac_ext
12954LIBS=$ac_check_lib_save_LIBS
12955fi
12956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
12957$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
12958if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
12959  X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
12960fi
12961
12962    fi
12963fi
12964rm -f core conftest.err conftest.$ac_objext \
12965    conftest$ac_exeext conftest.$ac_ext
12966    LIBS="$ac_xsave_LIBS"
12967
12968    # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
12969    # to get the SysV transport functions.
12970    # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
12971    # needs -lnsl.
12972    # The nsl library prevents programs from opening the X display
12973    # on Irix 5.2, according to T.E. Dickey.
12974    # The functions gethostbyname, getservbyname, and inet_addr are
12975    # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
12976    ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
12977if test "x$ac_cv_func_gethostbyname" = x""yes; then :
12978
12979fi
12980
12981    if test $ac_cv_func_gethostbyname = no; then
12982      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
12983$as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
12984if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
12985  $as_echo_n "(cached) " >&6
12986else
12987  ac_check_lib_save_LIBS=$LIBS
12988LIBS="-lnsl  $LIBS"
12989cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990/* end confdefs.h.  */
12991
12992/* Override any GCC internal prototype to avoid an error.
12993   Use char because int might match the return type of a GCC
12994   builtin and then its argument prototype would still apply.  */
12995#ifdef __cplusplus
12996extern "C"
12997#endif
12998char gethostbyname ();
12999int
13000main ()
13001{
13002return gethostbyname ();
13003  ;
13004  return 0;
13005}
13006_ACEOF
13007if ac_fn_cxx_try_link "$LINENO"; then :
13008  ac_cv_lib_nsl_gethostbyname=yes
13009else
13010  ac_cv_lib_nsl_gethostbyname=no
13011fi
13012rm -f core conftest.err conftest.$ac_objext \
13013    conftest$ac_exeext conftest.$ac_ext
13014LIBS=$ac_check_lib_save_LIBS
13015fi
13016{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13017$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13018if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
13019  X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13020fi
13021
13022      if test $ac_cv_lib_nsl_gethostbyname = no; then
13023	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13024$as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13025if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
13026  $as_echo_n "(cached) " >&6
13027else
13028  ac_check_lib_save_LIBS=$LIBS
13029LIBS="-lbsd  $LIBS"
13030cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031/* end confdefs.h.  */
13032
13033/* Override any GCC internal prototype to avoid an error.
13034   Use char because int might match the return type of a GCC
13035   builtin and then its argument prototype would still apply.  */
13036#ifdef __cplusplus
13037extern "C"
13038#endif
13039char gethostbyname ();
13040int
13041main ()
13042{
13043return gethostbyname ();
13044  ;
13045  return 0;
13046}
13047_ACEOF
13048if ac_fn_cxx_try_link "$LINENO"; then :
13049  ac_cv_lib_bsd_gethostbyname=yes
13050else
13051  ac_cv_lib_bsd_gethostbyname=no
13052fi
13053rm -f core conftest.err conftest.$ac_objext \
13054    conftest$ac_exeext conftest.$ac_ext
13055LIBS=$ac_check_lib_save_LIBS
13056fi
13057{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13058$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13059if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
13060  X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13061fi
13062
13063      fi
13064    fi
13065
13066    # lieder@skyler.mavd.honeywell.com says without -lsocket,
13067    # socket/setsockopt and other routines are undefined under SCO ODT
13068    # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
13069    # on later versions), says Simon Leinen: it contains gethostby*
13070    # variants that don't use the name server (or something).  -lsocket
13071    # must be given before -lnsl if both are needed.  We assume that
13072    # if connect needs -lnsl, so does gethostbyname.
13073    ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect"
13074if test "x$ac_cv_func_connect" = x""yes; then :
13075
13076fi
13077
13078    if test $ac_cv_func_connect = no; then
13079      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13080$as_echo_n "checking for connect in -lsocket... " >&6; }
13081if test "${ac_cv_lib_socket_connect+set}" = set; then :
13082  $as_echo_n "(cached) " >&6
13083else
13084  ac_check_lib_save_LIBS=$LIBS
13085LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13086cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13087/* end confdefs.h.  */
13088
13089/* Override any GCC internal prototype to avoid an error.
13090   Use char because int might match the return type of a GCC
13091   builtin and then its argument prototype would still apply.  */
13092#ifdef __cplusplus
13093extern "C"
13094#endif
13095char connect ();
13096int
13097main ()
13098{
13099return connect ();
13100  ;
13101  return 0;
13102}
13103_ACEOF
13104if ac_fn_cxx_try_link "$LINENO"; then :
13105  ac_cv_lib_socket_connect=yes
13106else
13107  ac_cv_lib_socket_connect=no
13108fi
13109rm -f core conftest.err conftest.$ac_objext \
13110    conftest$ac_exeext conftest.$ac_ext
13111LIBS=$ac_check_lib_save_LIBS
13112fi
13113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13114$as_echo "$ac_cv_lib_socket_connect" >&6; }
13115if test "x$ac_cv_lib_socket_connect" = x""yes; then :
13116  X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13117fi
13118
13119    fi
13120
13121    # Guillermo Gomez says -lposix is necessary on A/UX.
13122    ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove"
13123if test "x$ac_cv_func_remove" = x""yes; then :
13124
13125fi
13126
13127    if test $ac_cv_func_remove = no; then
13128      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13129$as_echo_n "checking for remove in -lposix... " >&6; }
13130if test "${ac_cv_lib_posix_remove+set}" = set; then :
13131  $as_echo_n "(cached) " >&6
13132else
13133  ac_check_lib_save_LIBS=$LIBS
13134LIBS="-lposix  $LIBS"
13135cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13136/* end confdefs.h.  */
13137
13138/* Override any GCC internal prototype to avoid an error.
13139   Use char because int might match the return type of a GCC
13140   builtin and then its argument prototype would still apply.  */
13141#ifdef __cplusplus
13142extern "C"
13143#endif
13144char remove ();
13145int
13146main ()
13147{
13148return remove ();
13149  ;
13150  return 0;
13151}
13152_ACEOF
13153if ac_fn_cxx_try_link "$LINENO"; then :
13154  ac_cv_lib_posix_remove=yes
13155else
13156  ac_cv_lib_posix_remove=no
13157fi
13158rm -f core conftest.err conftest.$ac_objext \
13159    conftest$ac_exeext conftest.$ac_ext
13160LIBS=$ac_check_lib_save_LIBS
13161fi
13162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13163$as_echo "$ac_cv_lib_posix_remove" >&6; }
13164if test "x$ac_cv_lib_posix_remove" = x""yes; then :
13165  X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13166fi
13167
13168    fi
13169
13170    # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13171    ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13172if test "x$ac_cv_func_shmat" = x""yes; then :
13173
13174fi
13175
13176    if test $ac_cv_func_shmat = no; then
13177      { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13178$as_echo_n "checking for shmat in -lipc... " >&6; }
13179if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
13180  $as_echo_n "(cached) " >&6
13181else
13182  ac_check_lib_save_LIBS=$LIBS
13183LIBS="-lipc  $LIBS"
13184cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13185/* end confdefs.h.  */
13186
13187/* Override any GCC internal prototype to avoid an error.
13188   Use char because int might match the return type of a GCC
13189   builtin and then its argument prototype would still apply.  */
13190#ifdef __cplusplus
13191extern "C"
13192#endif
13193char shmat ();
13194int
13195main ()
13196{
13197return shmat ();
13198  ;
13199  return 0;
13200}
13201_ACEOF
13202if ac_fn_cxx_try_link "$LINENO"; then :
13203  ac_cv_lib_ipc_shmat=yes
13204else
13205  ac_cv_lib_ipc_shmat=no
13206fi
13207rm -f core conftest.err conftest.$ac_objext \
13208    conftest$ac_exeext conftest.$ac_ext
13209LIBS=$ac_check_lib_save_LIBS
13210fi
13211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13212$as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13213if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
13214  X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13215fi
13216
13217    fi
13218  fi
13219
13220  # Check for libraries that X11R6 Xt/Xaw programs need.
13221  ac_save_LDFLAGS=$LDFLAGS
13222  test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13223  # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13224  # check for ICE first), but we must link in the order -lSM -lICE or
13225  # we get undefined symbols.  So assume we have SM if we have ICE.
13226  # These have to be linked with before -lX11, unlike the other
13227  # libraries we check for below, so use a different variable.
13228  # John Interrante, Karl Berry
13229  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13230$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13231if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
13232  $as_echo_n "(cached) " >&6
13233else
13234  ac_check_lib_save_LIBS=$LIBS
13235LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13236cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13237/* end confdefs.h.  */
13238
13239/* Override any GCC internal prototype to avoid an error.
13240   Use char because int might match the return type of a GCC
13241   builtin and then its argument prototype would still apply.  */
13242#ifdef __cplusplus
13243extern "C"
13244#endif
13245char IceConnectionNumber ();
13246int
13247main ()
13248{
13249return IceConnectionNumber ();
13250  ;
13251  return 0;
13252}
13253_ACEOF
13254if ac_fn_cxx_try_link "$LINENO"; then :
13255  ac_cv_lib_ICE_IceConnectionNumber=yes
13256else
13257  ac_cv_lib_ICE_IceConnectionNumber=no
13258fi
13259rm -f core conftest.err conftest.$ac_objext \
13260    conftest$ac_exeext conftest.$ac_ext
13261LIBS=$ac_check_lib_save_LIBS
13262fi
13263{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13264$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13265if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
13266  X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13267fi
13268
13269  LDFLAGS=$ac_save_LDFLAGS
13270
13271fi
13272
13273
13274if test "x$no_x" = xyes && test "x$X11_NOT_NEEDED" != xyes; then
13275    help_on_build_dependency x11
13276    as_fn_error $? "Could not find X11 libraries. $HELP_MSG" "$LINENO" 5
13277fi
13278
13279# Some of the old makefiles require a setting of OPENWIN_HOME
13280# Since the X11R6 directory has disappeared on later Linuxes,
13281# we need to probe for it.
13282if test "x$HOST_OS" = xlinux; then
13283    if test -d "$SYS_ROOT/usr/X11R6"; then
13284        OPENWIN_HOME="$SYS_ROOT/usr/X11R6"
13285    fi
13286    if test -d "$SYS_ROOT/usr/include/X11"; then
13287        OPENWIN_HOME="$SYS_ROOT/usr"
13288    fi
13289fi
13290if test "x$HOST_OS" = xsolaris; then
13291    OPENWIN_HOME="/usr/openwin"
13292fi
13293
13294
13295
13296#
13297# Weird Sol10 something check...TODO change to try compile
13298#
13299if test "x${HOST_OS}" = xsolaris; then
13300  if test "`uname -r`" = "5.10"; then
13301     if test "`${EGREP} -c XLinearGradient ${OPENWIN_HOME}/share/include/X11/extensions/Xrender.h`" = "0"; then
13302     	X_CFLAGS="${X_CFLAGS} -DSOLARIS10_NO_XRENDER_STRUCTS"
13303     fi
13304  fi
13305fi
13306
13307ac_ext=c
13308ac_cpp='$CPP $CPPFLAGS'
13309ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13310ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13311ac_compiler_gnu=$ac_cv_c_compiler_gnu
13312
13313OLD_CFLAGS="$CFLAGS"
13314CFLAGS="$CFLAGS $X_CFLAGS"
13315
13316
13317for ac_header in X11/extensions/shape.h X11/extensions/Xrender.h X11/extensions/XTest.h
13318do :
13319  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13320ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13321if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13322  cat >>confdefs.h <<_ACEOF
13323#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13324_ACEOF
13325 X11_A_OK=yes
13326else
13327  X11_A_OK=no
13328fi
13329
13330done
13331
13332CFLAGS="$OLD_CFLAGS"
13333ac_ext=cpp
13334ac_cpp='$CXXCPP $CPPFLAGS'
13335ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13336ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13337ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13338
13339
13340if test "x$X11_A_OK" = xno && test "x$X11_NOT_NEEDED" != xyes; then
13341    help_on_build_dependency x11
13342    as_fn_error $? "Could not find all X11 headers (shape.h Xrender.h XTest.h). $HELP_MSG" "$LINENO" 5
13343fi
13344
13345
13346
13347
13348###############################################################################
13349#
13350# The common unix printing system cups is used to print from java.
13351#
13352
13353# Check whether --with-cups was given.
13354if test "${with_cups+set}" = set; then :
13355  withval=$with_cups;
13356fi
13357
13358
13359# Check whether --with-cups-include was given.
13360if test "${with_cups_include+set}" = set; then :
13361  withval=$with_cups_include;
13362fi
13363
13364
13365# Check whether --with-cups-lib was given.
13366if test "${with_cups_lib+set}" = set; then :
13367  withval=$with_cups_lib;
13368fi
13369
13370
13371if test "x$CUPS_NOT_NEEDED" = xyes; then
13372	if test "x${with_cups}" != x || test "x${with_cups_include}" != x || test "x${with_cups_lib}" != x; then
13373		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cups not used, so --with-cups is ignored" >&5
13374$as_echo "$as_me: WARNING: cups not used, so --with-cups is ignored" >&2;}
13375	fi
13376	CUPS_CFLAGS=
13377	CUPS_LIBS=
13378else
13379	CUPS_FOUND=no
13380
13381	if test "x${with_cups}" = xno || test "x${with_cups_include}" = xno || test "x${with_cups_lib}" = xno; then
13382	    as_fn_error $? "It is not possible to disable the use of cups. Remove the --without-cups option." "$LINENO" 5
13383	fi
13384
13385	if test "x${with_cups}" != x; then
13386	    CUPS_LIBS="-L${with_cups}/lib -lcups"
13387	    CUPS_CFLAGS="-I${with_cups}/include"
13388	    CUPS_FOUND=yes
13389	fi
13390	if test "x${with_cups_include}" != x; then
13391	    CUPS_CFLAGS="-I${with_cups_include}"
13392	    CUPS_FOUND=yes
13393	fi
13394	if test "x${with_cups_lib}" != x; then
13395	    CUPS_LIBS="-L${with_cups_lib} -lcups"
13396	    CUPS_FOUND=yes
13397	fi
13398	if test "x$CUPS_FOUND" = xno; then
13399
13400
13401    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13402        # Source the builddeps file again, to make sure it uses the latest variables!
13403        . $builddepsfile
13404        # Look for a host and build machine specific resource!
13405        eval resource=\${builddep_cups_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13406        if test "x$resource" = x; then
13407            # Ok, lets instead look for a host specific resource
13408            eval resource=\${builddep_cups_HOST_${rewritten_host_var}}
13409        fi
13410        if test "x$resource" = x; then
13411            # Ok, lets instead look for a build specific resource
13412            eval resource=\${builddep_cups_BUILD_${rewritten_build_var}}
13413        fi
13414        if test "x$resource" = x; then
13415            # Ok, lets instead look for a generic resource
13416            # (The cups comes from M4 and not the shell, thus no need for eval here.)
13417            resource=${builddep_cups}
13418        fi
13419        if test "x$resource" != x; then
13420            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for cups" >&5
13421$as_echo "$as_me: Using builddeps $resource for cups" >&6;}
13422	    # If the resource in the builddeps.conf file is an existing directory,
13423	    # for example /java/linux/cups
13424	    if test -d ${resource}; then
13425	       depdir=${resource}
13426	    else
13427
13428# cups is for example mymodule
13429# $resource is for example libs/general/libmymod_1_2_3.zip
13430# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
13431# $with_builddeps_dir is for example /localhome/builddeps
13432# depdir is the name of the variable into which we store the depdir, eg MYMOD
13433# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
13434# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
13435    filename=`basename $resource`
13436    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
13437    filebase=${filename%%.*}
13438    extension=${filename#*.}
13439    installdir=$with_builddeps_dir/$filebase
13440    if test ! -f $installdir/$filename.unpacked; then
13441        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&5
13442$as_echo "$as_me: Downloading build dependency cups from $with_builddeps_server/$resource and installing into $installdir" >&6;}
13443        if test ! -d $installdir; then
13444            mkdir -p $installdir
13445        fi
13446        if test ! -d $installdir; then
13447            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
13448        fi
13449        tmpfile=`mktemp $installdir/cups.XXXXXXXXX`
13450        touch $tmpfile
13451        if test ! -f $tmpfile; then
13452            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
13453        fi
13454
13455    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
13456    # $tmpfile is the local file name for the downloaded file.
13457    VALID_TOOL=no
13458    if test "x$BDEPS_FTP" = xwget; then
13459       VALID_TOOL=yes
13460       wget -O $tmpfile $with_builddeps_server/$resource
13461    fi
13462    if test "x$BDEPS_FTP" = xlftp; then
13463       VALID_TOOL=yes
13464       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
13465    fi
13466    if test "x$BDEPS_FTP" = xftp; then
13467        VALID_TOOL=yes
13468        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
13469        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
13470        FTPUSERPWD=${FTPSERVER%%@*}
13471        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
13472            FTPUSER=${userpwd%%:*}
13473            FTPPWD=${userpwd#*@}
13474            FTPSERVER=${FTPSERVER#*@}
13475        else
13476            FTPUSER=ftp
13477            FTPPWD=ftp
13478        fi
13479        # the "pass" command does not work on some
13480        # ftp clients (read ftp.exe) but if it works,
13481        # passive mode is better!
13482        (\
13483            echo "user $FTPUSER $FTPPWD"        ;\
13484            echo "pass"                         ;\
13485            echo "bin"                          ;\
13486            echo "get $FTPPATH $tmpfile"              ;\
13487        ) | ftp -in $FTPSERVER
13488    fi
13489    if test "x$VALID_TOOL" != xyes; then
13490       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
13491    fi
13492
13493        mv $tmpfile $installdir/$filename
13494        if test ! -s $installdir/$filename; then
13495            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
13496        fi
13497        case "$extension" in
13498            zip)  echo "Unzipping $installdir/$filename..."
13499               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
13500            ;;
13501            tar.gz) echo "Untaring $installdir/$filename..."
13502               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13503            ;;
13504            tgz) echo "Untaring $installdir/$filename..."
13505               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13506            ;;
13507            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
13508            ;;
13509        esac
13510    fi
13511    if test -f $installdir/$filename.unpacked; then
13512        depdir=$installdir
13513    fi
13514
13515	    fi
13516            # Source the builddeps file again, because in the previous command, the depdir
13517            # was updated to point at the current build dependency install directory.
13518            . $builddepsfile
13519            # Now extract variables from the builddeps.conf files.
13520            theroot=${builddep_cups_ROOT}
13521            thecflags=${builddep_cups_CFLAGS}
13522            thelibs=${builddep_cups_LIBS}
13523            if test "x$depdir" = x; then
13524                as_fn_error $? "Could not download build dependency cups" "$LINENO" 5
13525            fi
13526            CUPS=$depdir
13527            if test "x$theroot" != x; then
13528               CUPS="$theroot"
13529            fi
13530            if test "x$thecflags" != x; then
13531               CUPS_CFLAGS="$thecflags"
13532            fi
13533            if test "x$thelibs" != x; then
13534               CUPS_LIBS="$thelibs"
13535            fi
13536            CUPS_FOUND=yes
13537
13538        fi
13539
13540    fi
13541
13542	fi
13543	if test "x$CUPS_FOUND" = xno; then
13544	    # Are the cups headers installed in the default /usr/include location?
13545	    for ac_header in cups/cups.h cups/ppd.h
13546do :
13547  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
13548ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
13549if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
13550  cat >>confdefs.h <<_ACEOF
13551#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
13552_ACEOF
13553 CUPS_FOUND=yes
13554	                      CUPS_CFLAGS=
13555	                      CUPS_LIBS="-lcups"
13556	                      DEFAULT_CUPS=yes
13557fi
13558
13559done
13560
13561	fi
13562	if test "x$CUPS_FOUND" = xno; then
13563	    # Getting nervous now? Lets poke around for standard Solaris third-party
13564	    # package installation locations.
13565	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cups headers and libs" >&5
13566$as_echo_n "checking for cups headers and libs... " >&6; }
13567	    if test -s /opt/sfw/cups/include/cups/cups.h; then
13568	       # An SFW package seems to be installed!
13569	       CUPS_FOUND=yes
13570	       CUPS_CFLAGS="-I/opt/sfw/cups/include"
13571	       CUPS_LIBS="-L/opt/sfw/cups/lib -lcups"
13572	    elif test -s /opt/csw/include/cups/cups.h; then
13573	       # A CSW package seems to be installed!
13574	       CUPS_FOUND=yes
13575	       CUPS_CFLAGS="-I/opt/csw/include"
13576	       CUPS_LIBS="-L/opt/csw/lib -lcups"
13577	    fi
13578	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CUPS_FOUND" >&5
13579$as_echo "$CUPS_FOUND" >&6; }
13580	fi
13581	if test "x$CUPS_FOUND" = xno; then
13582	    help_on_build_dependency cups
13583	    as_fn_error $? "Could not find cups! $HELP_MSG " "$LINENO" 5
13584	fi
13585fi
13586
13587
13588
13589
13590###############################################################################
13591#
13592# The ubiquitous freetype2 library is used to render fonts.
13593#
13594
13595# Check whether --with-freetype was given.
13596if test "${with_freetype+set}" = set; then :
13597  withval=$with_freetype;
13598fi
13599
13600
13601# If we are using the OS installed system lib for freetype, then we do not need to copy it to the build tree
13602USING_SYSTEM_FT_LIB=false
13603
13604if test "x$FREETYPE2_NOT_NEEDED" = xyes; then
13605	if test "x$with_freetype" != x || test "x$with_freetype_include" != x || test "x$with_freetype_lib" != x; then
13606		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: freetype not used, so --with-freetype is ignored" >&5
13607$as_echo "$as_me: WARNING: freetype not used, so --with-freetype is ignored" >&2;}
13608	fi
13609	FREETYPE2_CFLAGS=
13610	FREETYPE2_LIBS=
13611        FREETYPE2_LIB_PATH=
13612else
13613	FREETYPE2_FOUND=no
13614
13615	if test "x$with_freetype" != x; then
13616
13617    # Fail with message the path to freetype if var with_freetype contains a path with no spaces in it.
13618    # Unless on Windows, where we can rewrite the path.
13619    HAS_SPACE=`echo "$with_freetype" | grep " "`
13620    if test "x$HAS_SPACE" != x; then
13621        if test "x$BUILD_OS" = "xwindows"; then
13622            with_freetype=`$CYGPATH -s -m -a "$with_freetype"`
13623            with_freetype=`$CYGPATH -u "$with_freetype"`
13624        else
13625            as_fn_error $? "You cannot have spaces in the path to freetype! \"$with_freetype\"" "$LINENO" 5
13626        fi
13627    fi
13628
13629	    FREETYPE2_LIBS="-L$with_freetype/lib -lfreetype"
13630            if test "x$HOST_OS" = xwindows; then
13631                FREETYPE2_LIBS="$with_freetype/lib/freetype.lib"
13632            fi
13633            FREETYPE2_LIB_PATH="$with_freetype/lib"
13634	    FREETYPE2_CFLAGS="-I$with_freetype/include"
13635            if test -s $with_freetype/include/ft2build.h && test -d $with_freetype/include/freetype2/freetype; then
13636                FREETYPE2_CFLAGS="-I$with_freetype/include/freetype2 -I$with_freetype/include"
13637            fi
13638	    FREETYPE2_FOUND=yes
13639   	    if test "x$FREETYPE2_FOUND" = xyes; then
13640	        # Verify that the directories exist
13641                if ! test -d "$with_freetype/lib" || ! test -d "$with_freetype/include"; then
13642		   as_fn_error $? "Could not find the expected directories $with_freetype/lib and $with_freetype/include" "$LINENO" 5
13643		fi
13644	        # List the contents of the lib.
13645		FREETYPELIB=`ls $with_freetype/lib/libfreetype.so $with_freetype/lib/freetype.dll 2> /dev/null`
13646                if test "x$FREETYPELIB" = x; then
13647		   as_fn_error $? "Could not find libfreetype.se nor freetype.dll in $with_freetype/lib" "$LINENO" 5
13648		fi
13649	        # Check one h-file
13650                if ! test -s "$with_freetype/include/ft2build.h"; then
13651		   as_fn_error $? "Could not find $with_freetype/include/ft2build.h" "$LINENO" 5
13652		fi
13653            fi
13654        fi
13655	if test "x$FREETYPE2_FOUND" = xno; then
13656
13657
13658    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13659        # Source the builddeps file again, to make sure it uses the latest variables!
13660        . $builddepsfile
13661        # Look for a host and build machine specific resource!
13662        eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13663        if test "x$resource" = x; then
13664            # Ok, lets instead look for a host specific resource
13665            eval resource=\${builddep_freetype2_HOST_${rewritten_host_var}}
13666        fi
13667        if test "x$resource" = x; then
13668            # Ok, lets instead look for a build specific resource
13669            eval resource=\${builddep_freetype2_BUILD_${rewritten_build_var}}
13670        fi
13671        if test "x$resource" = x; then
13672            # Ok, lets instead look for a generic resource
13673            # (The freetype2 comes from M4 and not the shell, thus no need for eval here.)
13674            resource=${builddep_freetype2}
13675        fi
13676        if test "x$resource" != x; then
13677            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for freetype2" >&5
13678$as_echo "$as_me: Using builddeps $resource for freetype2" >&6;}
13679	    # If the resource in the builddeps.conf file is an existing directory,
13680	    # for example /java/linux/cups
13681	    if test -d ${resource}; then
13682	       depdir=${resource}
13683	    else
13684
13685# freetype2 is for example mymodule
13686# $resource is for example libs/general/libmymod_1_2_3.zip
13687# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
13688# $with_builddeps_dir is for example /localhome/builddeps
13689# depdir is the name of the variable into which we store the depdir, eg MYMOD
13690# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
13691# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
13692    filename=`basename $resource`
13693    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
13694    filebase=${filename%%.*}
13695    extension=${filename#*.}
13696    installdir=$with_builddeps_dir/$filebase
13697    if test ! -f $installdir/$filename.unpacked; then
13698        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&5
13699$as_echo "$as_me: Downloading build dependency freetype2 from $with_builddeps_server/$resource and installing into $installdir" >&6;}
13700        if test ! -d $installdir; then
13701            mkdir -p $installdir
13702        fi
13703        if test ! -d $installdir; then
13704            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
13705        fi
13706        tmpfile=`mktemp $installdir/freetype2.XXXXXXXXX`
13707        touch $tmpfile
13708        if test ! -f $tmpfile; then
13709            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
13710        fi
13711
13712    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
13713    # $tmpfile is the local file name for the downloaded file.
13714    VALID_TOOL=no
13715    if test "x$BDEPS_FTP" = xwget; then
13716       VALID_TOOL=yes
13717       wget -O $tmpfile $with_builddeps_server/$resource
13718    fi
13719    if test "x$BDEPS_FTP" = xlftp; then
13720       VALID_TOOL=yes
13721       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
13722    fi
13723    if test "x$BDEPS_FTP" = xftp; then
13724        VALID_TOOL=yes
13725        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
13726        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
13727        FTPUSERPWD=${FTPSERVER%%@*}
13728        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
13729            FTPUSER=${userpwd%%:*}
13730            FTPPWD=${userpwd#*@}
13731            FTPSERVER=${FTPSERVER#*@}
13732        else
13733            FTPUSER=ftp
13734            FTPPWD=ftp
13735        fi
13736        # the "pass" command does not work on some
13737        # ftp clients (read ftp.exe) but if it works,
13738        # passive mode is better!
13739        (\
13740            echo "user $FTPUSER $FTPPWD"        ;\
13741            echo "pass"                         ;\
13742            echo "bin"                          ;\
13743            echo "get $FTPPATH $tmpfile"              ;\
13744        ) | ftp -in $FTPSERVER
13745    fi
13746    if test "x$VALID_TOOL" != xyes; then
13747       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
13748    fi
13749
13750        mv $tmpfile $installdir/$filename
13751        if test ! -s $installdir/$filename; then
13752            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
13753        fi
13754        case "$extension" in
13755            zip)  echo "Unzipping $installdir/$filename..."
13756               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
13757            ;;
13758            tar.gz) echo "Untaring $installdir/$filename..."
13759               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13760            ;;
13761            tgz) echo "Untaring $installdir/$filename..."
13762               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
13763            ;;
13764            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
13765            ;;
13766        esac
13767    fi
13768    if test -f $installdir/$filename.unpacked; then
13769        depdir=$installdir
13770    fi
13771
13772	    fi
13773            # Source the builddeps file again, because in the previous command, the depdir
13774            # was updated to point at the current build dependency install directory.
13775            . $builddepsfile
13776            # Now extract variables from the builddeps.conf files.
13777            theroot=${builddep_freetype2_ROOT}
13778            thecflags=${builddep_freetype2_CFLAGS}
13779            thelibs=${builddep_freetype2_LIBS}
13780            if test "x$depdir" = x; then
13781                as_fn_error $? "Could not download build dependency freetype2" "$LINENO" 5
13782            fi
13783            FREETYPE2=$depdir
13784            if test "x$theroot" != x; then
13785               FREETYPE2="$theroot"
13786            fi
13787            if test "x$thecflags" != x; then
13788               FREETYPE2_CFLAGS="$thecflags"
13789            fi
13790            if test "x$thelibs" != x; then
13791               FREETYPE2_LIBS="$thelibs"
13792            fi
13793            FREETYPE2_FOUND=yes
13794            else FREETYPE2_FOUND=no
13795
13796        fi
13797        else FREETYPE2_FOUND=no
13798
13799    fi
13800
13801            USING_SYSTEM_FT_LIB=true
13802	fi
13803	if test "x$FREETYPE2_FOUND" = xno; then
13804
13805pkg_failed=no
13806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for FREETYPE2" >&5
13807$as_echo_n "checking for FREETYPE2... " >&6; }
13808
13809if test -n "$FREETYPE2_CFLAGS"; then
13810    pkg_cv_FREETYPE2_CFLAGS="$FREETYPE2_CFLAGS"
13811 elif test -n "$PKG_CONFIG"; then
13812    if test -n "$PKG_CONFIG" && \
13813    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13814  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13815  ac_status=$?
13816  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13817  test $ac_status = 0; }; then
13818  pkg_cv_FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2" 2>/dev/null`
13819else
13820  pkg_failed=yes
13821fi
13822 else
13823    pkg_failed=untried
13824fi
13825if test -n "$FREETYPE2_LIBS"; then
13826    pkg_cv_FREETYPE2_LIBS="$FREETYPE2_LIBS"
13827 elif test -n "$PKG_CONFIG"; then
13828    if test -n "$PKG_CONFIG" && \
13829    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"freetype2\""; } >&5
13830  ($PKG_CONFIG --exists --print-errors "freetype2") 2>&5
13831  ac_status=$?
13832  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13833  test $ac_status = 0; }; then
13834  pkg_cv_FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2" 2>/dev/null`
13835else
13836  pkg_failed=yes
13837fi
13838 else
13839    pkg_failed=untried
13840fi
13841
13842
13843
13844if test $pkg_failed = yes; then
13845
13846if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
13847        _pkg_short_errors_supported=yes
13848else
13849        _pkg_short_errors_supported=no
13850fi
13851        if test $_pkg_short_errors_supported = yes; then
13852	        FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "freetype2" 2>&1`
13853        else
13854	        FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --print-errors "freetype2" 2>&1`
13855        fi
13856	# Put the nasty error message in config.log where it belongs
13857	echo "$FREETYPE2_PKG_ERRORS" >&5
13858
13859	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13860$as_echo "no" >&6; }
13861                FREETYPE2_FOUND=no
13862elif test $pkg_failed = untried; then
13863	FREETYPE2_FOUND=no
13864else
13865	FREETYPE2_CFLAGS=$pkg_cv_FREETYPE2_CFLAGS
13866	FREETYPE2_LIBS=$pkg_cv_FREETYPE2_LIBS
13867        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13868$as_echo "yes" >&6; }
13869	FREETYPE2_FOUND=yes
13870fi
13871            USING_SYSTEM_FT_LIB=true
13872	fi
13873	if test "x$FREETYPE2_FOUND" = xno; then
13874	    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype in some standard locations" >&5
13875$as_echo_n "checking for freetype in some standard locations... " >&6; }
13876
13877	    if test -s /usr/X11/include/ft2build.h && test -d /usr/X11/include/freetype2/freetype; then
13878	        DEFAULT_FREETYPE_CFLAGS="-I/usr/X11/include/freetype2 -I/usr/X11/include"
13879	        DEFAULT_FREETYPE_LIBS="-L/usr/X11/lib -lfreetype"
13880	    fi
13881	    if test -s /usr/include/ft2build.h && test -d /usr/include/freetype2/freetype; then
13882	        DEFAULT_FREETYPE_CFLAGS="-I/usr/include/freetype2"
13883	        DEFAULT_FREETYPE_LIBS="-lfreetype"
13884	    fi
13885
13886	    PREV_CXXCFLAGS="$CXXFLAGS"
13887	    PREV_LDFLAGS="$LDFLAGS"
13888	    CXXFLAGS="$CXXFLAGS $DEFAULT_FREETYPE_CFLAGS"
13889	    LDFLAGS="$LDFLAGS $DEFAULT_FREETYPE_LIBS"
13890	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13891/* end confdefs.h.  */
13892#include<ft2build.h>
13893	                    #include FT_FREETYPE_H
13894	                   int main() { return 0; }
13895
13896_ACEOF
13897if ac_fn_cxx_try_link "$LINENO"; then :
13898
13899	                      # Yes, the default cflags and libs did the trick.
13900	                      FREETYPE2_FOUND=yes
13901	                      FREETYPE2_CFLAGS="$DEFAULT_FREETYPE_CFLAGS"
13902	                      FREETYPE2_LIBS="$DEFAULT_FREETYPE_LIBS"
13903
13904else
13905
13906	                      FREETYPE2_FOUND=no
13907
13908fi
13909rm -f core conftest.err conftest.$ac_objext \
13910    conftest$ac_exeext conftest.$ac_ext
13911            CXXCFLAGS="$PREV_CXXFLAGS"
13912	    LDFLAGS="$PREV_LDFLAGS"
13913	    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_FOUND" >&5
13914$as_echo "$FREETYPE2_FOUND" >&6; }
13915            USING_SYSTEM_FT_LIB=true
13916	fi
13917	if test "x$FREETYPE2_FOUND" = xno; then
13918		help_on_build_dependency freetype2
13919		as_fn_error $? "Could not find freetype2! $HELP_MSG " "$LINENO" 5
13920	fi
13921fi
13922
13923
13924
13925
13926
13927
13928###############################################################################
13929#
13930# Check for alsa headers and libraries. Used on Linux/GNU systems.
13931#
13932
13933# Check whether --with-alsa was given.
13934if test "${with_alsa+set}" = set; then :
13935  withval=$with_alsa;
13936fi
13937
13938
13939# Check whether --with-alsa-include was given.
13940if test "${with_alsa_include+set}" = set; then :
13941  withval=$with_alsa_include;
13942fi
13943
13944
13945# Check whether --with-alsa-lib was given.
13946if test "${with_alsa_lib+set}" = set; then :
13947  withval=$with_alsa_lib;
13948fi
13949
13950
13951if test "x$ALSA_NOT_NEEDED" = xyes; then
13952	if test "x${with_alsa}" != x || test "x${with_alsa_include}" != x || test "x${with_alsa_lib}" != x; then
13953		{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: alsa not used, so --with-alsa is ignored" >&5
13954$as_echo "$as_me: WARNING: alsa not used, so --with-alsa is ignored" >&2;}
13955	fi
13956	ALSA_CFLAGS=
13957	ALSA_LIBS=
13958else
13959	ALSA_FOUND=no
13960
13961	if test "x${with_alsa}" = xno || test "x${with_alsa_include}" = xno || test "x${with_alsa_lib}" = xno; then
13962	    as_fn_error $? "It is not possible to disable the use of alsa. Remove the --without-alsa option." "$LINENO" 5
13963	fi
13964
13965	if test "x${with_alsa}" != x; then
13966	    ALSA_LIBS="-L${with_alsa}/lib -lalsa"
13967	    ALSA_CFLAGS="-I${with_alsa}/include"
13968	    ALSA_FOUND=yes
13969	fi
13970	if test "x${with_alsa_include}" != x; then
13971	    ALSA_CFLAGS="-I${with_alsa_include}"
13972	    ALSA_FOUND=yes
13973	fi
13974	if test "x${with_alsa_lib}" != x; then
13975	    ALSA_LIBS="-L${with_alsa_lib} -lalsa"
13976	    ALSA_FOUND=yes
13977	fi
13978	if test "x$ALSA_FOUND" = xno; then
13979
13980
13981    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
13982        # Source the builddeps file again, to make sure it uses the latest variables!
13983        . $builddepsfile
13984        # Look for a host and build machine specific resource!
13985        eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
13986        if test "x$resource" = x; then
13987            # Ok, lets instead look for a host specific resource
13988            eval resource=\${builddep_alsa_HOST_${rewritten_host_var}}
13989        fi
13990        if test "x$resource" = x; then
13991            # Ok, lets instead look for a build specific resource
13992            eval resource=\${builddep_alsa_BUILD_${rewritten_build_var}}
13993        fi
13994        if test "x$resource" = x; then
13995            # Ok, lets instead look for a generic resource
13996            # (The alsa comes from M4 and not the shell, thus no need for eval here.)
13997            resource=${builddep_alsa}
13998        fi
13999        if test "x$resource" != x; then
14000            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for alsa" >&5
14001$as_echo "$as_me: Using builddeps $resource for alsa" >&6;}
14002	    # If the resource in the builddeps.conf file is an existing directory,
14003	    # for example /java/linux/cups
14004	    if test -d ${resource}; then
14005	       depdir=${resource}
14006	    else
14007
14008# alsa is for example mymodule
14009# $resource is for example libs/general/libmymod_1_2_3.zip
14010# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
14011# $with_builddeps_dir is for example /localhome/builddeps
14012# depdir is the name of the variable into which we store the depdir, eg MYMOD
14013# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
14014# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
14015    filename=`basename $resource`
14016    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
14017    filebase=${filename%%.*}
14018    extension=${filename#*.}
14019    installdir=$with_builddeps_dir/$filebase
14020    if test ! -f $installdir/$filename.unpacked; then
14021        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&5
14022$as_echo "$as_me: Downloading build dependency alsa from $with_builddeps_server/$resource and installing into $installdir" >&6;}
14023        if test ! -d $installdir; then
14024            mkdir -p $installdir
14025        fi
14026        if test ! -d $installdir; then
14027            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
14028        fi
14029        tmpfile=`mktemp $installdir/alsa.XXXXXXXXX`
14030        touch $tmpfile
14031        if test ! -f $tmpfile; then
14032            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
14033        fi
14034
14035    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
14036    # $tmpfile is the local file name for the downloaded file.
14037    VALID_TOOL=no
14038    if test "x$BDEPS_FTP" = xwget; then
14039       VALID_TOOL=yes
14040       wget -O $tmpfile $with_builddeps_server/$resource
14041    fi
14042    if test "x$BDEPS_FTP" = xlftp; then
14043       VALID_TOOL=yes
14044       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
14045    fi
14046    if test "x$BDEPS_FTP" = xftp; then
14047        VALID_TOOL=yes
14048        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
14049        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
14050        FTPUSERPWD=${FTPSERVER%%@*}
14051        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
14052            FTPUSER=${userpwd%%:*}
14053            FTPPWD=${userpwd#*@}
14054            FTPSERVER=${FTPSERVER#*@}
14055        else
14056            FTPUSER=ftp
14057            FTPPWD=ftp
14058        fi
14059        # the "pass" command does not work on some
14060        # ftp clients (read ftp.exe) but if it works,
14061        # passive mode is better!
14062        (\
14063            echo "user $FTPUSER $FTPPWD"        ;\
14064            echo "pass"                         ;\
14065            echo "bin"                          ;\
14066            echo "get $FTPPATH $tmpfile"              ;\
14067        ) | ftp -in $FTPSERVER
14068    fi
14069    if test "x$VALID_TOOL" != xyes; then
14070       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
14071    fi
14072
14073        mv $tmpfile $installdir/$filename
14074        if test ! -s $installdir/$filename; then
14075            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
14076        fi
14077        case "$extension" in
14078            zip)  echo "Unzipping $installdir/$filename..."
14079               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
14080            ;;
14081            tar.gz) echo "Untaring $installdir/$filename..."
14082               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14083            ;;
14084            tgz) echo "Untaring $installdir/$filename..."
14085               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14086            ;;
14087            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
14088            ;;
14089        esac
14090    fi
14091    if test -f $installdir/$filename.unpacked; then
14092        depdir=$installdir
14093    fi
14094
14095	    fi
14096            # Source the builddeps file again, because in the previous command, the depdir
14097            # was updated to point at the current build dependency install directory.
14098            . $builddepsfile
14099            # Now extract variables from the builddeps.conf files.
14100            theroot=${builddep_alsa_ROOT}
14101            thecflags=${builddep_alsa_CFLAGS}
14102            thelibs=${builddep_alsa_LIBS}
14103            if test "x$depdir" = x; then
14104                as_fn_error $? "Could not download build dependency alsa" "$LINENO" 5
14105            fi
14106            ALSA=$depdir
14107            if test "x$theroot" != x; then
14108               ALSA="$theroot"
14109            fi
14110            if test "x$thecflags" != x; then
14111               ALSA_CFLAGS="$thecflags"
14112            fi
14113            if test "x$thelibs" != x; then
14114               ALSA_LIBS="$thelibs"
14115            fi
14116            ALSA_FOUND=yes
14117            else ALSA_FOUND=no
14118
14119        fi
14120        else ALSA_FOUND=no
14121
14122    fi
14123
14124	fi
14125	if test "x$ALSA_FOUND" = xno; then
14126
14127pkg_failed=no
14128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ALSA" >&5
14129$as_echo_n "checking for ALSA... " >&6; }
14130
14131if test -n "$ALSA_CFLAGS"; then
14132    pkg_cv_ALSA_CFLAGS="$ALSA_CFLAGS"
14133 elif test -n "$PKG_CONFIG"; then
14134    if test -n "$PKG_CONFIG" && \
14135    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
14136  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
14137  ac_status=$?
14138  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14139  test $ac_status = 0; }; then
14140  pkg_cv_ALSA_CFLAGS=`$PKG_CONFIG --cflags "alsa" 2>/dev/null`
14141else
14142  pkg_failed=yes
14143fi
14144 else
14145    pkg_failed=untried
14146fi
14147if test -n "$ALSA_LIBS"; then
14148    pkg_cv_ALSA_LIBS="$ALSA_LIBS"
14149 elif test -n "$PKG_CONFIG"; then
14150    if test -n "$PKG_CONFIG" && \
14151    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"alsa\""; } >&5
14152  ($PKG_CONFIG --exists --print-errors "alsa") 2>&5
14153  ac_status=$?
14154  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14155  test $ac_status = 0; }; then
14156  pkg_cv_ALSA_LIBS=`$PKG_CONFIG --libs "alsa" 2>/dev/null`
14157else
14158  pkg_failed=yes
14159fi
14160 else
14161    pkg_failed=untried
14162fi
14163
14164
14165
14166if test $pkg_failed = yes; then
14167
14168if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14169        _pkg_short_errors_supported=yes
14170else
14171        _pkg_short_errors_supported=no
14172fi
14173        if test $_pkg_short_errors_supported = yes; then
14174	        ALSA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "alsa" 2>&1`
14175        else
14176	        ALSA_PKG_ERRORS=`$PKG_CONFIG --print-errors "alsa" 2>&1`
14177        fi
14178	# Put the nasty error message in config.log where it belongs
14179	echo "$ALSA_PKG_ERRORS" >&5
14180
14181	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14182$as_echo "no" >&6; }
14183                ALSA_FOUND=no
14184elif test $pkg_failed = untried; then
14185	ALSA_FOUND=no
14186else
14187	ALSA_CFLAGS=$pkg_cv_ALSA_CFLAGS
14188	ALSA_LIBS=$pkg_cv_ALSA_LIBS
14189        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14190$as_echo "yes" >&6; }
14191	ALSA_FOUND=yes
14192fi
14193	fi
14194	if test "x$ALSA_FOUND" = xno; then
14195	    for ac_header in alsa/asoundlib.h
14196do :
14197  ac_fn_cxx_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
14198if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
14199  cat >>confdefs.h <<_ACEOF
14200#define HAVE_ALSA_ASOUNDLIB_H 1
14201_ACEOF
14202 ALSA_FOUND=yes
14203	                      ALSA_CFLAGS=-Iignoreme
14204	                      ALSA_LIBS=-lasound
14205	                      DEFAULT_ALSA=yes
14206else
14207  ALSA_FOUND=no
14208fi
14209
14210done
14211
14212	fi
14213	if test "x$ALSA_FOUND" = xno; then
14214	    help_on_build_dependency alsa
14215	    as_fn_error $? "Could not find alsa! $HELP_MSG " "$LINENO" 5
14216	fi
14217fi
14218
14219
14220
14221
14222###############################################################################
14223#
14224# Check for pulse audio headers and libraries.
14225#
14226PULSE_FOUND=no
14227
14228# Check whether --with-pulse was given.
14229if test "${with_pulse+set}" = set; then :
14230  withval=$with_pulse;
14231fi
14232
14233
14234# Check whether --with-pulse-include was given.
14235if test "${with_pulse_include+set}" = set; then :
14236  withval=$with_pulse_include;
14237fi
14238
14239
14240# Check whether --with-pulse-lib was given.
14241if test "${with_pulse_lib+set}" = set; then :
14242  withval=$with_pulse_lib;
14243fi
14244
14245
14246if test "x${with_pulse}" != x; then
14247    PULSE_LIBS="-L${with_pulse}/lib -lfreetype"
14248    PULSE_CFLAGS="-I${with_pulse}/include"
14249    PULSE_FOUND=yes
14250fi
14251if test "x${with_pulse_include}" != x; then
14252    PULSE_CFLAGS="-I${with_pulse_include}"
14253    PULSE_FOUND=yes
14254fi
14255if test "x${with_pulse_lib}" != x; then
14256    PULSE_LIBS="-L${with_pulse_lib} -lpulse"
14257    PULSE_FOUND=yes
14258fi
14259if test "x$PULSE_FOUND" = xno; then
14260
14261
14262    if test "x$with_builddeps_server" != x || test "x$with_builddeps_conf" != x; then
14263        # Source the builddeps file again, to make sure it uses the latest variables!
14264        . $builddepsfile
14265        # Look for a host and build machine specific resource!
14266        eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}_HOST_${rewritten_host_var}}
14267        if test "x$resource" = x; then
14268            # Ok, lets instead look for a host specific resource
14269            eval resource=\${builddep_pulse_HOST_${rewritten_host_var}}
14270        fi
14271        if test "x$resource" = x; then
14272            # Ok, lets instead look for a build specific resource
14273            eval resource=\${builddep_pulse_BUILD_${rewritten_build_var}}
14274        fi
14275        if test "x$resource" = x; then
14276            # Ok, lets instead look for a generic resource
14277            # (The pulse comes from M4 and not the shell, thus no need for eval here.)
14278            resource=${builddep_pulse}
14279        fi
14280        if test "x$resource" != x; then
14281            { $as_echo "$as_me:${as_lineno-$LINENO}: Using builddeps $resource for pulse" >&5
14282$as_echo "$as_me: Using builddeps $resource for pulse" >&6;}
14283	    # If the resource in the builddeps.conf file is an existing directory,
14284	    # for example /java/linux/cups
14285	    if test -d ${resource}; then
14286	       depdir=${resource}
14287	    else
14288
14289# pulse is for example mymodule
14290# $resource is for example libs/general/libmymod_1_2_3.zip
14291# $with_builddeps_server is for example ftp://mybuilddeps.myserver.com/builddeps
14292# $with_builddeps_dir is for example /localhome/builddeps
14293# depdir is the name of the variable into which we store the depdir, eg MYMOD
14294# Will download ftp://mybuilddeps.myserver.com/builddeps/libs/general/libmymod_1_2_3.zip and
14295# unzip into the directory: /localhome/builddeps/libmymod_1_2_3
14296    filename=`basename $resource`
14297    filebase=`echo $filename | sed 's/\.[^\.]*$//'`
14298    filebase=${filename%%.*}
14299    extension=${filename#*.}
14300    installdir=$with_builddeps_dir/$filebase
14301    if test ! -f $installdir/$filename.unpacked; then
14302        { $as_echo "$as_me:${as_lineno-$LINENO}: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&5
14303$as_echo "$as_me: Downloading build dependency pulse from $with_builddeps_server/$resource and installing into $installdir" >&6;}
14304        if test ! -d $installdir; then
14305            mkdir -p $installdir
14306        fi
14307        if test ! -d $installdir; then
14308            as_fn_error $? "Could not create directory $installdir" "$LINENO" 5
14309        fi
14310        tmpfile=`mktemp $installdir/pulse.XXXXXXXXX`
14311        touch $tmpfile
14312        if test ! -f $tmpfile; then
14313            as_fn_error $? "Could not create files in directory $installdir" "$LINENO" 5
14314        fi
14315
14316    # $with_builddeps_server/$resource  is the ftp://abuilddeps.server.com/libs/cups.zip
14317    # $tmpfile is the local file name for the downloaded file.
14318    VALID_TOOL=no
14319    if test "x$BDEPS_FTP" = xwget; then
14320       VALID_TOOL=yes
14321       wget -O $tmpfile $with_builddeps_server/$resource
14322    fi
14323    if test "x$BDEPS_FTP" = xlftp; then
14324       VALID_TOOL=yes
14325       lftp -c "get $with_builddeps_server/$resource  -o $tmpfile"
14326    fi
14327    if test "x$BDEPS_FTP" = xftp; then
14328        VALID_TOOL=yes
14329        FTPSERVER=`echo $with_builddeps_server/$resource  | cut -f 3 -d '/'`
14330        FTPPATH=`echo $with_builddeps_server/$resource  | cut -f 4- -d '/'`
14331        FTPUSERPWD=${FTPSERVER%%@*}
14332        if test "x$FTPSERVER" != "x$FTPUSERPWD"; then
14333            FTPUSER=${userpwd%%:*}
14334            FTPPWD=${userpwd#*@}
14335            FTPSERVER=${FTPSERVER#*@}
14336        else
14337            FTPUSER=ftp
14338            FTPPWD=ftp
14339        fi
14340        # the "pass" command does not work on some
14341        # ftp clients (read ftp.exe) but if it works,
14342        # passive mode is better!
14343        (\
14344            echo "user $FTPUSER $FTPPWD"        ;\
14345            echo "pass"                         ;\
14346            echo "bin"                          ;\
14347            echo "get $FTPPATH $tmpfile"              ;\
14348        ) | ftp -in $FTPSERVER
14349    fi
14350    if test "x$VALID_TOOL" != xyes; then
14351       as_fn_error $? "I do not know how to use the tool: $BDEPS_FTP" "$LINENO" 5
14352    fi
14353
14354        mv $tmpfile $installdir/$filename
14355        if test ! -s $installdir/$filename; then
14356            as_fn_error $? "Could not download $with_builddeps_server/$resource" "$LINENO" 5
14357        fi
14358        case "$extension" in
14359            zip)  echo "Unzipping $installdir/$filename..."
14360               (cd $installdir ; rm -f $installdir/$filename.unpacked ; $BDEPS_UNZIP $installdir/$filename > /dev/null && touch $installdir/$filename.unpacked)
14361            ;;
14362            tar.gz) echo "Untaring $installdir/$filename..."
14363               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14364            ;;
14365            tgz) echo "Untaring $installdir/$filename..."
14366               (cd $installdir ; rm -f $installdir/$filename.unpacked ; tar xzf $installdir/$filename && touch $installdir/$filename.unpacked)
14367            ;;
14368            *) as_fn_error $? "Cannot handle build depency archive with extension $extension" "$LINENO" 5
14369            ;;
14370        esac
14371    fi
14372    if test -f $installdir/$filename.unpacked; then
14373        depdir=$installdir
14374    fi
14375
14376	    fi
14377            # Source the builddeps file again, because in the previous command, the depdir
14378            # was updated to point at the current build dependency install directory.
14379            . $builddepsfile
14380            # Now extract variables from the builddeps.conf files.
14381            theroot=${builddep_pulse_ROOT}
14382            thecflags=${builddep_pulse_CFLAGS}
14383            thelibs=${builddep_pulse_LIBS}
14384            if test "x$depdir" = x; then
14385                as_fn_error $? "Could not download build dependency pulse" "$LINENO" 5
14386            fi
14387            PULSE=$depdir
14388            if test "x$theroot" != x; then
14389               PULSE="$theroot"
14390            fi
14391            if test "x$thecflags" != x; then
14392               PULSE_CFLAGS="$thecflags"
14393            fi
14394            if test "x$thelibs" != x; then
14395               PULSE_LIBS="$thelibs"
14396            fi
14397            PULSE_FOUND=yes
14398            else PULSE_FOUND=no
14399
14400        fi
14401        else PULSE_FOUND=no
14402
14403    fi
14404
14405fi
14406if test "x$PULSE_FOUND" = xno; then
14407
14408pkg_failed=no
14409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBPULSE" >&5
14410$as_echo_n "checking for LIBPULSE... " >&6; }
14411
14412if test -n "$LIBPULSE_CFLAGS"; then
14413    pkg_cv_LIBPULSE_CFLAGS="$LIBPULSE_CFLAGS"
14414 elif test -n "$PKG_CONFIG"; then
14415    if test -n "$PKG_CONFIG" && \
14416    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
14417  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
14418  ac_status=$?
14419  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14420  test $ac_status = 0; }; then
14421  pkg_cv_LIBPULSE_CFLAGS=`$PKG_CONFIG --cflags "libpulse >= 0.9.11" 2>/dev/null`
14422else
14423  pkg_failed=yes
14424fi
14425 else
14426    pkg_failed=untried
14427fi
14428if test -n "$LIBPULSE_LIBS"; then
14429    pkg_cv_LIBPULSE_LIBS="$LIBPULSE_LIBS"
14430 elif test -n "$PKG_CONFIG"; then
14431    if test -n "$PKG_CONFIG" && \
14432    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libpulse >= 0.9.11\""; } >&5
14433  ($PKG_CONFIG --exists --print-errors "libpulse >= 0.9.11") 2>&5
14434  ac_status=$?
14435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14436  test $ac_status = 0; }; then
14437  pkg_cv_LIBPULSE_LIBS=`$PKG_CONFIG --libs "libpulse >= 0.9.11" 2>/dev/null`
14438else
14439  pkg_failed=yes
14440fi
14441 else
14442    pkg_failed=untried
14443fi
14444
14445
14446
14447if test $pkg_failed = yes; then
14448
14449if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14450        _pkg_short_errors_supported=yes
14451else
14452        _pkg_short_errors_supported=no
14453fi
14454        if test $_pkg_short_errors_supported = yes; then
14455	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libpulse >= 0.9.11" 2>&1`
14456        else
14457	        LIBPULSE_PKG_ERRORS=`$PKG_CONFIG --print-errors "libpulse >= 0.9.11" 2>&1`
14458        fi
14459	# Put the nasty error message in config.log where it belongs
14460	echo "$LIBPULSE_PKG_ERRORS" >&5
14461
14462	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14463$as_echo "no" >&6; }
14464                PULSE_FOUND=no
14465elif test $pkg_failed = untried; then
14466	PULSE_FOUND=no
14467else
14468	LIBPULSE_CFLAGS=$pkg_cv_LIBPULSE_CFLAGS
14469	LIBPULSE_LIBS=$pkg_cv_LIBPULSE_LIBS
14470        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14471$as_echo "yes" >&6; }
14472	PULSE_FOUND=yes
14473fi
14474fi
14475if test "x$PULSE_FOUND" = xno; then
14476    for ac_header in pulse/pulseaudio.h
14477do :
14478  ac_fn_cxx_check_header_mongrel "$LINENO" "pulse/pulseaudio.h" "ac_cv_header_pulse_pulseaudio_h" "$ac_includes_default"
14479if test "x$ac_cv_header_pulse_pulseaudio_h" = x""yes; then :
14480  cat >>confdefs.h <<_ACEOF
14481#define HAVE_PULSE_PULSEAUDIO_H 1
14482_ACEOF
14483 PULSE_FOUND=yes
14484                      PULSE_CFLAGS=-Iignoreme
14485                      PULSE_LIBS=
14486                      DEFAULT_PULSE=yes
14487else
14488  PULSE_FOUND=no
14489fi
14490
14491done
14492
14493fi
14494
14495if test "x$PULSE_FOUND" = xno && test "x$PULSE_NOT_NEEDED" != xyes; then
14496    help_on_build_dependency pulse
14497    as_fn_error $? "Could not find pulse audio libraries. $HELP_MSG " "$LINENO" 5
14498fi
14499
14500
14501
14502
14503###############################################################################
14504#
14505# Check for the jpeg library
14506#
14507
14508USE_EXTERNAL_LIBJPEG=true
14509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -ljpeg" >&5
14510$as_echo_n "checking for main in -ljpeg... " >&6; }
14511if test "${ac_cv_lib_jpeg_main+set}" = set; then :
14512  $as_echo_n "(cached) " >&6
14513else
14514  ac_check_lib_save_LIBS=$LIBS
14515LIBS="-ljpeg  $LIBS"
14516cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14517/* end confdefs.h.  */
14518
14519
14520int
14521main ()
14522{
14523return main ();
14524  ;
14525  return 0;
14526}
14527_ACEOF
14528if ac_fn_cxx_try_link "$LINENO"; then :
14529  ac_cv_lib_jpeg_main=yes
14530else
14531  ac_cv_lib_jpeg_main=no
14532fi
14533rm -f core conftest.err conftest.$ac_objext \
14534    conftest$ac_exeext conftest.$ac_ext
14535LIBS=$ac_check_lib_save_LIBS
14536fi
14537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jpeg_main" >&5
14538$as_echo "$ac_cv_lib_jpeg_main" >&6; }
14539if test "x$ac_cv_lib_jpeg_main" = x""yes; then :
14540  cat >>confdefs.h <<_ACEOF
14541#define HAVE_LIBJPEG 1
14542_ACEOF
14543
14544  LIBS="-ljpeg $LIBS"
14545
14546else
14547   USE_EXTERNAL_LIBJPEG=false
14548               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use jpeg decoder bundled with the OpenJDK source" >&5
14549$as_echo "$as_me: Will use jpeg decoder bundled with the OpenJDK source" >&6;}
14550
14551fi
14552
14553
14554
14555###############################################################################
14556#
14557# Check for the gif library
14558#
14559
14560USE_EXTERNAL_LIBJPEG=true
14561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lgif" >&5
14562$as_echo_n "checking for main in -lgif... " >&6; }
14563if test "${ac_cv_lib_gif_main+set}" = set; then :
14564  $as_echo_n "(cached) " >&6
14565else
14566  ac_check_lib_save_LIBS=$LIBS
14567LIBS="-lgif  $LIBS"
14568cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14569/* end confdefs.h.  */
14570
14571
14572int
14573main ()
14574{
14575return main ();
14576  ;
14577  return 0;
14578}
14579_ACEOF
14580if ac_fn_cxx_try_link "$LINENO"; then :
14581  ac_cv_lib_gif_main=yes
14582else
14583  ac_cv_lib_gif_main=no
14584fi
14585rm -f core conftest.err conftest.$ac_objext \
14586    conftest$ac_exeext conftest.$ac_ext
14587LIBS=$ac_check_lib_save_LIBS
14588fi
14589{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gif_main" >&5
14590$as_echo "$ac_cv_lib_gif_main" >&6; }
14591if test "x$ac_cv_lib_gif_main" = x""yes; then :
14592  cat >>confdefs.h <<_ACEOF
14593#define HAVE_LIBGIF 1
14594_ACEOF
14595
14596  LIBS="-lgif $LIBS"
14597
14598else
14599   USE_EXTERNAL_LIBGIF=false
14600               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use gif decoder bundled with the OpenJDK source" >&5
14601$as_echo "$as_me: Will use gif decoder bundled with the OpenJDK source" >&6;}
14602
14603fi
14604
14605
14606
14607###############################################################################
14608#
14609# Check for the zlib library
14610#
14611
14612USE_EXTERNAL_LIBZ=true
14613{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lz" >&5
14614$as_echo_n "checking for main in -lz... " >&6; }
14615if test "${ac_cv_lib_z_main+set}" = set; then :
14616  $as_echo_n "(cached) " >&6
14617else
14618  ac_check_lib_save_LIBS=$LIBS
14619LIBS="-lz  $LIBS"
14620cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14621/* end confdefs.h.  */
14622
14623
14624int
14625main ()
14626{
14627return main ();
14628  ;
14629  return 0;
14630}
14631_ACEOF
14632if ac_fn_cxx_try_link "$LINENO"; then :
14633  ac_cv_lib_z_main=yes
14634else
14635  ac_cv_lib_z_main=no
14636fi
14637rm -f core conftest.err conftest.$ac_objext \
14638    conftest$ac_exeext conftest.$ac_ext
14639LIBS=$ac_check_lib_save_LIBS
14640fi
14641{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_main" >&5
14642$as_echo "$ac_cv_lib_z_main" >&6; }
14643if test "x$ac_cv_lib_z_main" = x""yes; then :
14644  cat >>confdefs.h <<_ACEOF
14645#define HAVE_LIBZ 1
14646_ACEOF
14647
14648  LIBS="-lz $LIBS"
14649
14650else
14651   USE_EXTERNAL_LIBZ=false
14652               { $as_echo "$as_me:${as_lineno-$LINENO}: Will use zlib bundled with the OpenJDK source" >&5
14653$as_echo "$as_me: Will use zlib bundled with the OpenJDK source" >&6;}
14654
14655fi
14656
14657
14658
14659###############################################################################
14660#
14661# Check if altzone exists in time.h
14662#
14663
14664cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14665/* end confdefs.h.  */
14666#include <time.h>
14667int
14668main ()
14669{
14670return (int)altzone;
14671  ;
14672  return 0;
14673}
14674_ACEOF
14675if ac_fn_cxx_try_link "$LINENO"; then :
14676  has_altzone=yes
14677else
14678  has_altzone=no
14679fi
14680rm -f core conftest.err conftest.$ac_objext \
14681    conftest$ac_exeext conftest.$ac_ext
14682if test "x$has_altzone" = xyes; then
14683
14684$as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14685
14686fi
14687
14688###############################################################################
14689#
14690# Check the maths library
14691#
14692
14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
14694$as_echo_n "checking for cos in -lm... " >&6; }
14695if test "${ac_cv_lib_m_cos+set}" = set; then :
14696  $as_echo_n "(cached) " >&6
14697else
14698  ac_check_lib_save_LIBS=$LIBS
14699LIBS="-lm  $LIBS"
14700cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14701/* end confdefs.h.  */
14702
14703/* Override any GCC internal prototype to avoid an error.
14704   Use char because int might match the return type of a GCC
14705   builtin and then its argument prototype would still apply.  */
14706#ifdef __cplusplus
14707extern "C"
14708#endif
14709char cos ();
14710int
14711main ()
14712{
14713return cos ();
14714  ;
14715  return 0;
14716}
14717_ACEOF
14718if ac_fn_cxx_try_link "$LINENO"; then :
14719  ac_cv_lib_m_cos=yes
14720else
14721  ac_cv_lib_m_cos=no
14722fi
14723rm -f core conftest.err conftest.$ac_objext \
14724    conftest$ac_exeext conftest.$ac_ext
14725LIBS=$ac_check_lib_save_LIBS
14726fi
14727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
14728$as_echo "$ac_cv_lib_m_cos" >&6; }
14729if test "x$ac_cv_lib_m_cos" = x""yes; then :
14730  cat >>confdefs.h <<_ACEOF
14731#define HAVE_LIBM 1
14732_ACEOF
14733
14734  LIBS="-lm $LIBS"
14735
14736else
14737
14738                  { $as_echo "$as_me:${as_lineno-$LINENO}: Maths library was not found" >&5
14739$as_echo "$as_me: Maths library was not found" >&6;}
14740
14741fi
14742
14743
14744
14745###############################################################################
14746#
14747# Check for libdl.so
14748
14749save_LIBS="$LIBS"
14750LIBS=""
14751{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14752$as_echo_n "checking for dlopen in -ldl... " >&6; }
14753if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14754  $as_echo_n "(cached) " >&6
14755else
14756  ac_check_lib_save_LIBS=$LIBS
14757LIBS="-ldl  $LIBS"
14758cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14759/* end confdefs.h.  */
14760
14761/* Override any GCC internal prototype to avoid an error.
14762   Use char because int might match the return type of a GCC
14763   builtin and then its argument prototype would still apply.  */
14764#ifdef __cplusplus
14765extern "C"
14766#endif
14767char dlopen ();
14768int
14769main ()
14770{
14771return dlopen ();
14772  ;
14773  return 0;
14774}
14775_ACEOF
14776if ac_fn_cxx_try_link "$LINENO"; then :
14777  ac_cv_lib_dl_dlopen=yes
14778else
14779  ac_cv_lib_dl_dlopen=no
14780fi
14781rm -f core conftest.err conftest.$ac_objext \
14782    conftest$ac_exeext conftest.$ac_ext
14783LIBS=$ac_check_lib_save_LIBS
14784fi
14785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14786$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14787if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14788  cat >>confdefs.h <<_ACEOF
14789#define HAVE_LIBDL 1
14790_ACEOF
14791
14792  LIBS="-ldl $LIBS"
14793
14794fi
14795
14796LIBDL="$LIBS"
14797
14798LIBS="$save_LIBS"
14799
14800###############################################################################
14801#
14802# Should we run the painfully slow javadoc tool?
14803#
14804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5
14805$as_echo_n "checking whether to build documentation... " >&6; }
14806# Check whether --enable-docs was given.
14807if test "${enable_docs+set}" = set; then :
14808  enableval=$enable_docs; ENABLE_DOCS="${enableval}"
14809else
14810  ENABLE_DOCS='no'
14811fi
14812
14813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_DOCS" >&5
14814$as_echo "$ENABLE_DOCS" >&6; }
14815
14816GENERATE_DOCS=false
14817if test "x$ENABLE_DOCS" = xyes; then
14818    GENERATE_DOCS=true
14819fi
14820
14821
14822###############################################################################
14823#
14824# Should we compile nimbus swing L&F? We can probably remove this option
14825# since nimbus is officially part of javax now.
14826#
14827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build nimbus L&F" >&5
14828$as_echo_n "checking whether to build nimbus L&F... " >&6; }
14829# Check whether --enable-nimbus was given.
14830if test "${enable_nimbus+set}" = set; then :
14831  enableval=$enable_nimbus; ENABLE_NIMBUS="${enableval}"
14832else
14833  ENABLE_NIMBUS='yes'
14834fi
14835
14836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ENABLE_NIMBUS" >&5
14837$as_echo "$ENABLE_NIMBUS" >&6; }
14838DISABLE_NIMBUS=
14839if test "x$ENABLE_NIMBUS" = xno; then
14840    DISABLE_NIMBUS=true
14841fi
14842
14843
14844###############################################################################
14845#
14846# Setup the opt flags for different compilers
14847# and different operating systems.
14848#
14849C_FLAG_DEPS="-MMD -MF"
14850CXX_FLAG_DEPS="-MMD -MF"
14851
14852case $COMPILER_TYPE in
14853  CC )
14854    D_FLAG="-g"
14855    case $COMPILER_NAME in
14856      gcc )
14857      	case $PLATFORM in
14858	  macosx )
14859	    # On MacOSX we optimize for size, something
14860	    # we should do for all platforms?
14861	    C_O_FLAG_HI="-Os"
14862	    C_O_FLAG_NORM="-Os"
14863	    C_O_FLAG_NONE=""
14864	    ;;
14865	  *)
14866	    C_O_FLAG_HI="-O3"
14867	    C_O_FLAG_NORM="-O2"
14868	    C_O_FLAG_NONE="-O0"
14869	    ;;
14870	esac
14871        CXX_O_FLAG_HI="$C_O_FLAG_HI"
14872        CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
14873        CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
14874        ;;
14875      ossc )
14876        #
14877        # Forte has different names for this with their C++ compiler...
14878        #
14879	CXX_FLAG_DEPS="-xMMD -xMF"
14880
14881# Extra options used with HIGHEST
14882#
14883# WARNING: Use of OPTIMIZATION_LEVEL=HIGHEST in your Makefile needs to be
14884#          done with care, there are some assumptions below that need to
14885#          be understood about the use of pointers, and IEEE behavior.
14886#
14887# Use non-standard floating point mode (not IEEE 754)
14888CC_HIGHEST="$CC_HIGHEST -fns"
14889# Do some simplification of floating point arithmetic (not IEEE 754)
14890CC_HIGHEST="$CC_HIGHEST -fsimple"
14891# Use single precision floating point with 'float'
14892CC_HIGHEST="$CC_HIGHEST -fsingle"
14893# Assume memory references via basic pointer types do not alias
14894#   (Source with excessing pointer casting and data access with mixed
14895#    pointer types are not recommended)
14896CC_HIGHEST="$CC_HIGHEST -xalias_level=basic"
14897# Use intrinsic or inline versions for math/std functions
14898#   (If you expect perfect errno behavior, do not use this)
14899CC_HIGHEST="$CC_HIGHEST -xbuiltin=%all"
14900# Loop data dependency optimizations (need -xO3 or higher)
14901CC_HIGHEST="$CC_HIGHEST -xdepend"
14902# Pointer parameters to functions do not overlap
14903#   (Similar to -xalias_level=basic usage, but less obvious sometimes.
14904#    If you pass in multiple pointers to the same data, do not use this)
14905CC_HIGHEST="$CC_HIGHEST -xrestrict"
14906# Inline some library routines
14907#   (If you expect perfect errno behavior, do not use this)
14908CC_HIGHEST="$CC_HIGHEST -xlibmil"
14909# Use optimized math routines
14910#   (If you expect perfect errno behavior, do not use this)
14911#  Can cause undefined external on Solaris 8 X86 on __sincos, removing for now
14912#CC_HIGHEST="$CC_HIGHEST -xlibmopt"
14913
14914        case $LEGACY_HOST_CPU1 in
14915          i586)
14916            C_O_FLAG_HIGHEST="-xO4 -Wu,-O4~yz $CC_HIGHEST -xchip=pentium"
14917            C_O_FLAG_HI="-xO4 -Wu,-O4~yz"
14918            C_O_FLAG_NORM="-xO2 -Wu,-O2~yz"
14919            C_O_FLAG_NONE=""
14920            CXX_O_FLAG_HIGHEST="-xO4 -Qoption ube -O4~yz $CC_HIGHEST -xchip=pentium"
14921            CXX_O_FLAG_HI="-xO4 -Qoption ube -O4~yz"
14922            CXX_O_FLAG_NORM="-xO2 -Qoption ube -O2~yz"
14923            CXX_O_FLAG_NONE=""
14924            ;;
14925          sparc)
14926            C_O_FLAG_HIGHEST="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
14927            C_O_FLAG_HI="-xO4 -Wc,-Qrm-s -Wc,-Qiselect-T0"
14928            C_O_FLAG_NORM="-xO2 -Wc,-Qrm-s -Wc,-Qiselect-T0"
14929            C_O_FLAG_NONE=""
14930            CXX_O_FLAG_HIGHEST="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0 $CC_HIGHEST -xprefetch=auto,explicit -xchip=ultra"
14931            CXX_O_FLAG_HI="-xO4 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
14932            CXX_O_FLAG_NORM="-xO2 -Qoption cg -Qrm-s -Qoption cg -Qiselect-T0"
14933            CXX_O_FLAG_NONE=""
14934            ;;
14935        esac
14936    esac
14937    ;;
14938  CL )
14939    D_FLAG=
14940    C_O_FLAG_HI="-O2"
14941    C_O_FLAG_NORM="-O1"
14942    C_O_FLAG_NONE="-Od"
14943    CXX_O_FLAG_HI="$C_O_FLAG_HI"
14944    CXX_O_FLAG_NORM="$C_O_FLAG_NORM"
14945    CXX_O_FLAG_NONE="$C_O_FLAG_NONE"
14946    ;;
14947esac
14948
14949if test -z "$C_O_FLAG_HIGHEST"; then
14950   C_O_FLAG_HIGHEST="$C_O_FLAG_HI"
14951fi
14952
14953if test -z "$CXX_O_FLAG_HIGHEST"; then
14954   CXX_O_FLAG_HIGHEST="$CXX_O_FLAG_HI"
14955fi
14956
14957
14958
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968###############################################################################
14969#
14970# Setup legacy vars/targets and new vars to deal with different debug levels.
14971#
14972case $DEBUG_LEVEL in
14973      release )
14974              HOTSPOT_DEBUG_LEVEL="product"
14975              HOTSPOT_EXPORT="product"
14976              ;;
14977      fastdebug )
14978              HOTSPOT_DEBUG_LEVEL="fastdebug"
14979              HOTSPOT_EXPORT="fastdebug"
14980              CFLAGS="$CFLAGS $D_FLAG"
14981              JAVAC_FLAGS="$JAVAC_FLAGS -g"
14982              ;;
14983      slowdebug )
14984              HOTSPOT_DEBUG_LEVEL="jvmg"
14985              HOTSPOT_EXPORT="debug"
14986              CFLAGS="$CFLAGS $D_FLAG"
14987	      C_O_FLAG_HI="$C_O_FLAG_NONE"
14988	      C_O_FLAG_NORM="$C_O_FLAG_NONE"
14989	      CXX_O_FLAG_HI="$CXX_O_FLAG_NONE"
14990	      CXX_O_FLAG_NORM="$CXX_O_FLAG_NONE"
14991              JAVAC_FLAGS="$JAVAC_FLAGS -g"
14992              ;;
14993esac
14994
14995###############################################################################
14996#
14997# Generate the legacy makefile targets for hotspot.
14998# The hotspot api for selecting the build artifacts, really, needs to be improved.
14999#
15000HOTSPOT_TARGET=""
15001
15002if test "x$JVM_VARIANT_SERVER" = xtrue; then
15003    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL} "
15004fi
15005
15006if test "x$JVM_VARIANT_CLIENT" = xtrue; then
15007    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}1 "
15008fi
15009
15010if test "x$JVM_VARIANT_KERNEL" = xtrue; then
15011    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}kernel "
15012fi
15013
15014if test "x$JVM_VARIANT_ZERO" = xtrue; then
15015    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}zero "
15016fi
15017
15018if test "x$JVM_VARIANT_ZEROSHARK" = xtrue; then
15019    HOTSPOT_TARGET="$HOTSPOT_TARGET${HOTSPOT_DEBUG_LEVEL}shark "
15020fi
15021
15022HOTSPOT_TARGET="$HOTSPOT_TARGET docs export_$HOTSPOT_EXPORT"
15023
15024###############################################################################
15025#
15026# Setup all directories for the subrepoes and the arguments to the sub makes.
15027#
15028LANGTOOLS_OUTPUTDIR="$OUTPUT_ROOT/langtools"
15029LANGTOOLS_DIST="$OUTPUT_ROOT/langtools/dist"
15030LANGTOOLS_MAKE_ARGS=""
15031
15032
15033
15034
15035CORBA_OUTPUTDIR="$OUTPUT_ROOT/corba"
15036CORBA_DIST="$OUTPUT_ROOT/corba/dist"
15037CORBA_MAKE_ARGS=""
15038
15039
15040
15041
15042JAXP_OUTPUTDIR="$OUTPUT_ROOT/jaxp"
15043JAXP_DIST="$OUTPUT_ROOT/jaxp/dist"
15044JAXP_MAKE_ARGS=""
15045
15046
15047
15048
15049JAXWS_OUTPUTDIR="$OUTPUT_ROOT/jaxws"
15050JAXWS_DIST="$OUTPUT_ROOT/jaxws/dist"
15051JAXWS_MAKE_ARGS=""
15052
15053
15054
15055
15056HOTSPOT_OUTPUTDIR="$OUTPUT_ROOT/hotspot"
15057HOTSPOT_DIST="$OUTPUT_ROOT/hotspot/dist"
15058HOTSPOT_MAKE_ARGS="ALT_OUTPUTDIR=$HOTSPOT_OUTPUTDIR ALT_EXPORT_PATH=$HOTSPOT_DIST $HOTSPOT_TARGET"
15059
15060
15061
15062
15063JDK_OUTPUTDIR="$OUTPUT_ROOT/jdk"
15064JDK_MAKE_ARGS="ALT_OUTPUTDIR=\"$OUTPUT_ROOT/jdk\""
15065
15066
15067
15068IMAGES_OUTPUTDIR=$OUTPUT_ROOT/images
15069IMAGES_MAKE_ARGS="ALT_OUTPUTDIR=$OUTPUT_ROOT/jdk \
15070                  SHARE_SRC=$JDK_TOPDIR/src/share \
15071                  PLATFORM_SRC=$JDK_TOPDIR/src/$LEGACY_HOST_OS_API \
15072                  TEMPDIR=$IMAGES_OUTPUTDIR/tmp \
15073                  ABS_TEMPDIR=$IMAGES_OUTPUTDIR/tmp "
15074
15075
15076
15077###############################################################################
15078#
15079# Now setup the CFLAGS and LDFLAGS for the JDK build.
15080# Later we will also have CFLAGS and LDFLAGS for the hotspot subrepo build.
15081#
15082case $COMPILER_NAME in
15083      gcc )
15084      	  CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -W -Wall -Wno-unused -Wno-parentheses \
15085                          -pipe -fno-omit-frame-pointer \
15086                          -D_GNU_SOURCE -D_REENTRANT -D_LARGEFILE64_SOURCE"
15087          CFLAGS_JDK="$CFLAGS_JDK -fno-strict-aliasing"
15088          ;;
15089      ossc )
15090      	  CFLAGS_JDK="$CFLAGS_JDK -xc99=%none -xCC -errshort=tags -Xa -v -mt -norunpath -xnolib"
15091      	  CXXFLAGS_JDK="$CXXFLAGS_JDK -errtags=yes +w -mt -features=no%except -DCC_NOEX"
15092          ;;
15093      cl )
15094          CCXXFLAGS_JDK="$CCXXFLAGS $CCXXFLAGS_JDK -Zi -MD -Zc:wchar_t- -W3 -wd4800 \
15095               -D_STATIC_CPPLIB -D_DISABLE_DEPRECATE_STATIC_CPPLIB -DWIN32_LEAN_AND_MEAN \
15096	       -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE \
15097	       -DWIN32 -DIAL"
15098          case $LEGACY_HOST_CPU1 in
15099              i?86 )
15100                  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_X86_ -Dx86"
15101                  ;;
15102              amd64 )
15103                  CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_AMD64_ -Damd64"
15104                  ;;
15105          esac
15106          ;;
15107esac
15108
15109CCXXFLAGS_JDK="$CCXXFLAGS_JDK $ADD_LP64"
15110
15111# The package path is used only on macosx?
15112PACKAGE_PATH=/opt/local
15113
15114
15115# Sometimes we use a cpu dir (.../lib/amd64/server)
15116# Sometimes not (.../lib/server)
15117LIBARCHDIR="$LEGACY_HOST_CPU2/"
15118if test "x$ENDIAN" = xlittle; then
15119    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_LITTLE_ENDIAN"
15120else
15121    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -D_BIG_ENDIAN"
15122fi
15123if test "x$HOST_OS" = xlinux; then
15124    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DLINUX"
15125fi
15126if test "x$HOST_OS" = xwindows; then
15127    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DWINDOWS"
15128fi
15129if test "x$HOST_OS" = xsolaris; then
15130    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DSOLARIS"
15131fi
15132if test "x$HOST_OS" = xmacosx; then
15133    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DMACOSX -D_ALLBSD_SOURCE"
15134    LIBARCHDIR=""
15135fi
15136if test "x$HOST_OS" = xbsd; then
15137    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DBSD -D_ALLBSD_SOURCE"
15138fi
15139if test "x$DEBUG_LEVEL" = xrelease; then
15140    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DNDEBUG"
15141else
15142    CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DDEBUG"
15143fi
15144
15145CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DARCH='\"$LEGACY_HOST_CPU1\"' -D$LEGACY_HOST_CPU1"
15146CCXXFLAGS_JDK="$CCXXFLAGS_JDK -DRELEASE='\"$RELEASE\"'"
15147
15148CCXXFLAGS_JDK="$CCXXFLAGS_JDK \
15149        -I${JDK_OUTPUTDIR}/include \
15150        -I${JDK_OUTPUTDIR}/include/$PLATFORM \
15151        -I${JDK_TOPDIR}/src/share/javavm/export \
15152        -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/javavm/export \
15153        -I${JDK_TOPDIR}/src/share/native/common \
15154        -I${JDK_TOPDIR}/src/$LEGACY_HOST_OS_API/native/common"
15155
15156# The shared libraries are compiled using the picflag.
15157CFLAGS_JDKLIB="$CCXXFLAGS_JDK $CFLAGS_JDK $PICFLAG $CFLAGS_JDKLIB_EXTRA"
15158CXXFLAGS_JDKLIB="$CCXXFLAGS_JDK $CXXFLAGS_JDK $PICFLAG"
15159
15160# Executable flags
15161CFLAGS_JDKEXE="$CCXXFLAGS_JDK $CFLAGS_JDK"
15162CXXFLAGS_JDKEXE="$CCXXFLAGS_JDK $CXXFLAGS_JDK"
15163
15164# Now this is odd. The JDK native libraries have to link against libjvm.so
15165# On 32-bit machines there is normally two distinct libjvm.so:s, client and server.
15166# Which should we link to? Are we lucky enough that the binary api to the libjvm.so library
15167# is identical for client and server? Yes. Which is picked at runtime (client or server)?
15168# Neither, since the chosen libjvm.so has already been loaded by the launcher, all the following
15169# libraries will link to whatever is in memory. Yuck.
15170#
15171# Thus we offer the compiler to find libjvm.so first in server then in client. It works. Ugh.
15172if test "x$COMPILER_TYPE" = xCL; then
15173    LDFLAGS_JDKLIB="$LDFLAGS -dll -libpath:${JDK_OUTPUTDIR}/lib -libpath:${JDK_OUTPUTDIR}/objs"
15174    LDFLAGS_JDKLIB_SUFFIX=""
15175    if test "$HOST_CPU_BITS" == "64"; then
15176        LDFLAGS_STACK_SIZE=1048576
15177    else
15178        LDFLAGS_STACK_SIZE=327680
15179    fi
15180    LDFLAGS_JDKEXE="$LDFLAGS /STACK:$LDFLAGS_STACK_SIZE"
15181else
15182    # If this is a --hash-style=gnu system, use --hash-style=both, why?
15183    HAS_GNU_HASH=`$CC -dumpspecs 2>/dev/null | $GREP 'hash-style=gnu'`
15184    if test -n "$HAS_GNU_HASH"; then
15185        # And since we now know that the linker is gnu, then add -z defs, to forbid
15186        # undefined symbols in object files.
15187        LDFLAGS="$LDFLAGS -Xlinker --hash-style=both -Xlinker -z -Xlinker defs"
15188        if test "x$DEBUG_LEVEL" == "xrelease"; then
15189            # When building release libraries, tell the linker optimize them.
15190            # Should this be supplied to the OSS linker as well?
15191            LDFLAGS="$LDFLAGS -Xlinker -O1"
15192        fi
15193    fi
15194
15195    LDFLAGS_JDKLIB="$LDFLAGS $SHARED_LIBRARY_FLAGS \
15196                    -L${JDK_OUTPUTDIR}/objs \
15197                    -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}server \
15198                    -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}client \
15199  	            -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}"
15200    LDFLAGS_JDKLIB_SUFFIX="-ljvm -ljava"
15201    if test "x$COMPILER_NAME" = xossc; then
15202        LDFLAGS_JDKLIB_SUFFIX="$LDFLAGS_JDKLIB_SUFFIX -lc"
15203    fi
15204
15205    # Only the jli library is explicitly linked when the launchers are built.
15206    # The libjvm is then dynamically loaded/linked by the launcher.
15207    if test "x$HOST_OS" != "xmacosx"; then
15208       LDFLAGS_JDKEXE="$LDFLAGS -L${JDK_OUTPUTDIR}/lib/${LIBARCHDIR}jli"
15209       LDFLAGS_JDKEXE_SUFFIX="-ljli"
15210    fi
15211fi
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226###############################################################################
15227#
15228# statically link libstdc++ before C++ ABI is stablized on Linux unless
15229# dynamic build is configured on command line.
15230#
15231# Check whether --enable-static-link-stdc++ was given.
15232if test "${enable_static_link_stdc__+set}" = set; then :
15233  enableval=$enable_static_link_stdc__;
15234else
15235
15236		enable_static_link_stdc__=yes
15237
15238fi
15239
15240
15241if test "x$HOST_OS" = xlinux; then
15242    # Test if -lstdc++ works.
15243    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if dynamic link of stdc++ is possible" >&5
15244$as_echo_n "checking if dynamic link of stdc++ is possible... " >&6; }
15245    ac_ext=cpp
15246ac_cpp='$CXXCPP $CPPFLAGS'
15247ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15248ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15249ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15250
15251    OLD_CXXFLAGS="$CXXFLAGS"
15252    CXXFLAGS="$CXXFLAGS -lstdc++"
15253    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15254/* end confdefs.h.  */
15255
15256int
15257main ()
15258{
15259return 0;
15260  ;
15261  return 0;
15262}
15263_ACEOF
15264if ac_fn_cxx_try_link "$LINENO"; then :
15265  has_dynamic_libstdcxx=yes
15266else
15267  has_dynamic_libstdcxx=no
15268fi
15269rm -f core conftest.err conftest.$ac_objext \
15270    conftest$ac_exeext conftest.$ac_ext
15271    CXXFLAGS="$OLD_CXXFLAGS"
15272    ac_ext=cpp
15273ac_cpp='$CXXCPP $CPPFLAGS'
15274ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15275ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15276ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15277
15278    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_dynamic_libstdcxx" >&5
15279$as_echo "$has_dynamic_libstdcxx" >&6; }
15280
15281    # Test if stdc++ can be linked statically.
15282    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if static link of stdc++ is possible" >&5
15283$as_echo_n "checking if static link of stdc++ is possible... " >&6; }
15284    STATIC_STDCXX_FLAGS="-Wl,-Bstatic -lstdc++ -lgcc -Wl,-Bdynamic"
15285    ac_ext=cpp
15286ac_cpp='$CXXCPP $CPPFLAGS'
15287ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15288ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15289ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15290
15291    OLD_LIBS="$LIBS"
15292    OLD_CXX="$CXX"
15293    LIBS="$STATIC_STDCXX_FLAGS"
15294    CXX="$CC"
15295    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15296/* end confdefs.h.  */
15297
15298int
15299main ()
15300{
15301return 0;
15302  ;
15303  return 0;
15304}
15305_ACEOF
15306if ac_fn_cxx_try_link "$LINENO"; then :
15307  has_static_libstdcxx=yes
15308else
15309  has_static_libstdcxx=no
15310fi
15311rm -f core conftest.err conftest.$ac_objext \
15312    conftest$ac_exeext conftest.$ac_ext
15313    LIBS="$OLD_LIBS"
15314    CXX="$OLD_CXX"
15315    ac_ext=cpp
15316ac_cpp='$CXXCPP $CPPFLAGS'
15317ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15318ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15319ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15320
15321    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $has_static_libstdcxx" >&5
15322$as_echo "$has_static_libstdcxx" >&6; }
15323
15324    if test "x$has_static_libcxx" = xno && test "x$has_dynamic_libcxx" = xno; then
15325        as_fn_error $? "I cannot link to stdc++! Neither dynamically nor statically." "$LINENO" 5
15326    fi
15327
15328    if test "x$enable_static_link_stdc__" = xyes && test "x$has_static_libstdcxx" = xno; then
15329        { $as_echo "$as_me:${as_lineno-$LINENO}: Static linking of libstdc++ was not possible reverting to dynamic linking." >&5
15330$as_echo "$as_me: Static linking of libstdc++ was not possible reverting to dynamic linking." >&6;}
15331        enable_static_link_stdc__=no
15332    fi
15333
15334    if test "x$enable_static_link_stdc__" = xno && test "x$has_dynamic_libstdcxx" = xno; then
15335        { $as_echo "$as_me:${as_lineno-$LINENO}: Dynamic linking of libstdc++ was not possible reverting to static linking." >&5
15336$as_echo "$as_me: Dynamic linking of libstdc++ was not possible reverting to static linking." >&6;}
15337        enable_static_link_stdc__=yes
15338    fi
15339
15340    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libstdc++" >&5
15341$as_echo_n "checking how to link with libstdc++... " >&6; }
15342    if test "x$enable_static_link_stdc__" = xyes; then
15343        LIBCXX="$LIBCXX $STATIC_STDCXX_FLAGS"
15344        LDCXX="$CC"
15345        { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
15346$as_echo "static" >&6; }
15347    else
15348        LIBCXX="$LIBCXX -lstdc++"
15349        LDCXX="$CXX"
15350        { $as_echo "$as_me:${as_lineno-$LINENO}: result: dynamic" >&5
15351$as_echo "dynamic" >&6; }
15352    fi
15353fi
15354
15355###############################################################################
15356#
15357# Could someone enlighten this configure script with a comment about libCrun?
15358# The LEGACY_HOST_CPU3 is the setting for ISA_DIR.
15359#
15360if test "x$HOST_OS" = xsolaris && test "x$LIBCXX" = x; then
15361    LIBCXX="/usr/lib${LEGACY_HOST_CPU3}/libCrun.so.1"
15362fi
15363
15364# TODO better (platform agnostic) test
15365if test "x$HOST_OS" = xmacosx && test "x$LIBCXX" = x && test "x$GCC" = xyes; then
15366    LIBCXX="-lstdc++"
15367fi
15368
15369
15370
15371###############################################################################
15372
15373OS_VERSION="`uname -r | ${SED} 's!\.! !g' | ${SED} 's!-! !g'`"
15374OS_VERSION_MAJOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 1 -d ' '`"
15375OS_VERSION_MINOR="`${ECHO} ${OS_VERSION} | ${CUT} -f 2 -d ' '`"
15376OS_VERSION_MICRO="`${ECHO} ${OS_VERSION} | ${CUT} -f 3 -d ' '`"
15377
15378
15379
15380
15381###############################################################################
15382#
15383# Misc
15384#
15385
15386# The name of the Service Agent jar.
15387SALIB_NAME="${LIBRARY_PREFIX}saproc${SHARED_LIBRARY_SUFFIX}"
15388if test "x$HOST_OS" = "xwindows"; then
15389    SALIB_NAME="${LIBRARY_PREFIX}sawindbg${SHARED_LIBRARY_SUFFIX}"
15390fi
15391
15392
15393# Control wether Hotspot runs Queens test after build.
15394# Check whether --enable-hotspot-test-in-build was given.
15395if test "${enable_hotspot_test_in_build+set}" = set; then :
15396  enableval=$enable_hotspot_test_in_build;
15397else
15398  enable_hotspot_test_in_build=no
15399fi
15400
15401if test "x$enable_hotspot_test_in_build" = "xyes"; then
15402    TEST_IN_BUILD=true
15403else
15404    TEST_IN_BUILD=false
15405fi
15406
15407
15408###############################################################################
15409#
15410# Choose cacerts source file
15411#
15412
15413# Check whether --with-cacerts-file was given.
15414if test "${with_cacerts_file+set}" = set; then :
15415  withval=$with_cacerts_file;
15416fi
15417
15418if test "x$with_cacerts_file" != x; then
15419    CACERTS_FILE=$with_cacerts_file
15420else
15421    if test "x$OPENJDK" = "xtrue"; then
15422        CACERTS_FILE=${SRC_ROOT}/jdk/src/share/lib/security/cacerts
15423    else
15424        CACERTS_FILE=${SRC_ROOT}/jdk/src/closed/share/lib/security/cacerts.internal
15425    fi
15426fi
15427
15428
15429# Check if build directory is on local disk.
15430# return 0 if it is on local disk, non-0 if on remote disk or failure
15431function is_directory_on_local_disk {
15432	# df -l lists only local disks; if the given directory is not found then
15433	# a non-zero exit code is given
15434	$DF -l $1 > /dev/null 2>&1
15435}
15436
15437{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if build directory is on local disk" >&5
15438$as_echo_n "checking if build directory is on local disk... " >&6; }
15439if is_directory_on_local_disk $OUTPUT_ROOT; then
15440	OUTPUT_DIR_IS_LOCAL="yes"
15441else
15442	OUTPUT_DIR_IS_LOCAL="no"
15443fi
15444{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $OUTPUT_DIR_IS_LOCAL" >&5
15445$as_echo "$OUTPUT_DIR_IS_LOCAL" >&6; }
15446
15447# We're messing a bit with internal autoconf variables to put the config.status in the
15448# output directory instead of the current directory.
15449CONFIG_STATUS=$OUTPUT_ROOT/config.status
15450
15451# Now create the actual output files, after this, the main work of configure is done
15452cat >confcache <<\_ACEOF
15453# This file is a shell script that caches the results of configure
15454# tests run on this system so they can be shared between configure
15455# scripts and configure runs, see configure's option --config-cache.
15456# It is not useful on other systems.  If it contains results you don't
15457# want to keep, you may remove or edit it.
15458#
15459# config.status only pays attention to the cache file if you give it
15460# the --recheck option to rerun configure.
15461#
15462# `ac_cv_env_foo' variables (set or unset) will be overridden when
15463# loading this file, other *unset* `ac_cv_foo' will be assigned the
15464# following values.
15465
15466_ACEOF
15467
15468# The following way of writing the cache mishandles newlines in values,
15469# but we know of no workaround that is simple, portable, and efficient.
15470# So, we kill variables containing newlines.
15471# Ultrix sh set writes to stderr and can't be redirected directly,
15472# and sets the high bit in the cache file unless we assign to the vars.
15473(
15474  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15475    eval ac_val=\$$ac_var
15476    case $ac_val in #(
15477    *${as_nl}*)
15478      case $ac_var in #(
15479      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15480$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15481      esac
15482      case $ac_var in #(
15483      _ | IFS | as_nl) ;; #(
15484      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15485      *) { eval $ac_var=; unset $ac_var;} ;;
15486      esac ;;
15487    esac
15488  done
15489
15490  (set) 2>&1 |
15491    case $as_nl`(ac_space=' '; set) 2>&1` in #(
15492    *${as_nl}ac_space=\ *)
15493      # `set' does not quote correctly, so add quotes: double-quote
15494      # substitution turns \\\\ into \\, and sed turns \\ into \.
15495      sed -n \
15496	"s/'/'\\\\''/g;
15497	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15498      ;; #(
15499    *)
15500      # `set' quotes correctly as required by POSIX, so do not add quotes.
15501      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15502      ;;
15503    esac |
15504    sort
15505) |
15506  sed '
15507     /^ac_cv_env_/b end
15508     t clear
15509     :clear
15510     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15511     t end
15512     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15513     :end' >>confcache
15514if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15515  if test -w "$cache_file"; then
15516    test "x$cache_file" != "x/dev/null" &&
15517      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15518$as_echo "$as_me: updating cache $cache_file" >&6;}
15519    cat confcache >$cache_file
15520  else
15521    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15522$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15523  fi
15524fi
15525rm -f confcache
15526
15527test "x$prefix" = xNONE && prefix=$ac_default_prefix
15528# Let make expand exec_prefix.
15529test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15530
15531DEFS=-DHAVE_CONFIG_H
15532
15533ac_libobjs=
15534ac_ltlibobjs=
15535U=
15536for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15537  # 1. Remove the extension, and $U if already installed.
15538  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15539  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15540  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15541  #    will be set to the directory where LIBOBJS objects are built.
15542  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15543  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15544done
15545LIBOBJS=$ac_libobjs
15546
15547LTLIBOBJS=$ac_ltlibobjs
15548
15549
15550
15551: ${CONFIG_STATUS=./config.status}
15552ac_write_fail=0
15553ac_clean_files_save=$ac_clean_files
15554ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15555{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15556$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15557as_write_fail=0
15558cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15559#! $SHELL
15560# Generated by $as_me.
15561# Run this file to recreate the current configuration.
15562# Compiler output produced by configure, useful for debugging
15563# configure, is in config.log if it exists.
15564
15565debug=false
15566ac_cs_recheck=false
15567ac_cs_silent=false
15568
15569SHELL=\${CONFIG_SHELL-$SHELL}
15570export SHELL
15571_ASEOF
15572cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15573## -------------------- ##
15574## M4sh Initialization. ##
15575## -------------------- ##
15576
15577# Be more Bourne compatible
15578DUALCASE=1; export DUALCASE # for MKS sh
15579if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15580  emulate sh
15581  NULLCMD=:
15582  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15583  # is contrary to our usage.  Disable this feature.
15584  alias -g '${1+"$@"}'='"$@"'
15585  setopt NO_GLOB_SUBST
15586else
15587  case `(set -o) 2>/dev/null` in #(
15588  *posix*) :
15589    set -o posix ;; #(
15590  *) :
15591     ;;
15592esac
15593fi
15594
15595
15596as_nl='
15597'
15598export as_nl
15599# Printing a long string crashes Solaris 7 /usr/bin/printf.
15600as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15601as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15602as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15603# Prefer a ksh shell builtin over an external printf program on Solaris,
15604# but without wasting forks for bash or zsh.
15605if test -z "$BASH_VERSION$ZSH_VERSION" \
15606    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15607  as_echo='print -r --'
15608  as_echo_n='print -rn --'
15609elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15610  as_echo='printf %s\n'
15611  as_echo_n='printf %s'
15612else
15613  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15614    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15615    as_echo_n='/usr/ucb/echo -n'
15616  else
15617    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15618    as_echo_n_body='eval
15619      arg=$1;
15620      case $arg in #(
15621      *"$as_nl"*)
15622	expr "X$arg" : "X\\(.*\\)$as_nl";
15623	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15624      esac;
15625      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15626    '
15627    export as_echo_n_body
15628    as_echo_n='sh -c $as_echo_n_body as_echo'
15629  fi
15630  export as_echo_body
15631  as_echo='sh -c $as_echo_body as_echo'
15632fi
15633
15634# The user is always right.
15635if test "${PATH_SEPARATOR+set}" != set; then
15636  PATH_SEPARATOR=:
15637  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15638    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15639      PATH_SEPARATOR=';'
15640  }
15641fi
15642
15643
15644# IFS
15645# We need space, tab and new line, in precisely that order.  Quoting is
15646# there to prevent editors from complaining about space-tab.
15647# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15648# splitting by setting IFS to empty value.)
15649IFS=" ""	$as_nl"
15650
15651# Find who we are.  Look in the path if we contain no directory separator.
15652case $0 in #((
15653  *[\\/]* ) as_myself=$0 ;;
15654  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15655for as_dir in $PATH
15656do
15657  IFS=$as_save_IFS
15658  test -z "$as_dir" && as_dir=.
15659    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15660  done
15661IFS=$as_save_IFS
15662
15663     ;;
15664esac
15665# We did not find ourselves, most probably we were run as `sh COMMAND'
15666# in which case we are not to be found in the path.
15667if test "x$as_myself" = x; then
15668  as_myself=$0
15669fi
15670if test ! -f "$as_myself"; then
15671  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15672  exit 1
15673fi
15674
15675# Unset variables that we do not need and which cause bugs (e.g. in
15676# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15677# suppresses any "Segmentation fault" message there.  '((' could
15678# trigger a bug in pdksh 5.2.14.
15679for as_var in BASH_ENV ENV MAIL MAILPATH
15680do eval test x\${$as_var+set} = xset \
15681  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15682done
15683PS1='$ '
15684PS2='> '
15685PS4='+ '
15686
15687# NLS nuisances.
15688LC_ALL=C
15689export LC_ALL
15690LANGUAGE=C
15691export LANGUAGE
15692
15693# CDPATH.
15694(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15695
15696
15697# as_fn_error STATUS ERROR [LINENO LOG_FD]
15698# ----------------------------------------
15699# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15700# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15701# script with STATUS, using 1 if that was 0.
15702as_fn_error ()
15703{
15704  as_status=$1; test $as_status -eq 0 && as_status=1
15705  if test "$4"; then
15706    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15707    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15708  fi
15709  $as_echo "$as_me: error: $2" >&2
15710  as_fn_exit $as_status
15711} # as_fn_error
15712
15713
15714# as_fn_set_status STATUS
15715# -----------------------
15716# Set $? to STATUS, without forking.
15717as_fn_set_status ()
15718{
15719  return $1
15720} # as_fn_set_status
15721
15722# as_fn_exit STATUS
15723# -----------------
15724# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15725as_fn_exit ()
15726{
15727  set +e
15728  as_fn_set_status $1
15729  exit $1
15730} # as_fn_exit
15731
15732# as_fn_unset VAR
15733# ---------------
15734# Portably unset VAR.
15735as_fn_unset ()
15736{
15737  { eval $1=; unset $1;}
15738}
15739as_unset=as_fn_unset
15740# as_fn_append VAR VALUE
15741# ----------------------
15742# Append the text in VALUE to the end of the definition contained in VAR. Take
15743# advantage of any shell optimizations that allow amortized linear growth over
15744# repeated appends, instead of the typical quadratic growth present in naive
15745# implementations.
15746if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15747  eval 'as_fn_append ()
15748  {
15749    eval $1+=\$2
15750  }'
15751else
15752  as_fn_append ()
15753  {
15754    eval $1=\$$1\$2
15755  }
15756fi # as_fn_append
15757
15758# as_fn_arith ARG...
15759# ------------------
15760# Perform arithmetic evaluation on the ARGs, and store the result in the
15761# global $as_val. Take advantage of shells that can avoid forks. The arguments
15762# must be portable across $(()) and expr.
15763if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15764  eval 'as_fn_arith ()
15765  {
15766    as_val=$(( $* ))
15767  }'
15768else
15769  as_fn_arith ()
15770  {
15771    as_val=`expr "$@" || test $? -eq 1`
15772  }
15773fi # as_fn_arith
15774
15775
15776if expr a : '\(a\)' >/dev/null 2>&1 &&
15777   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15778  as_expr=expr
15779else
15780  as_expr=false
15781fi
15782
15783if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15784  as_basename=basename
15785else
15786  as_basename=false
15787fi
15788
15789if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15790  as_dirname=dirname
15791else
15792  as_dirname=false
15793fi
15794
15795as_me=`$as_basename -- "$0" ||
15796$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15797	 X"$0" : 'X\(//\)$' \| \
15798	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15799$as_echo X/"$0" |
15800    sed '/^.*\/\([^/][^/]*\)\/*$/{
15801	    s//\1/
15802	    q
15803	  }
15804	  /^X\/\(\/\/\)$/{
15805	    s//\1/
15806	    q
15807	  }
15808	  /^X\/\(\/\).*/{
15809	    s//\1/
15810	    q
15811	  }
15812	  s/.*/./; q'`
15813
15814# Avoid depending upon Character Ranges.
15815as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15816as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15817as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15818as_cr_digits='0123456789'
15819as_cr_alnum=$as_cr_Letters$as_cr_digits
15820
15821ECHO_C= ECHO_N= ECHO_T=
15822case `echo -n x` in #(((((
15823-n*)
15824  case `echo 'xy\c'` in
15825  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15826  xy)  ECHO_C='\c';;
15827  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15828       ECHO_T='	';;
15829  esac;;
15830*)
15831  ECHO_N='-n';;
15832esac
15833
15834rm -f conf$$ conf$$.exe conf$$.file
15835if test -d conf$$.dir; then
15836  rm -f conf$$.dir/conf$$.file
15837else
15838  rm -f conf$$.dir
15839  mkdir conf$$.dir 2>/dev/null
15840fi
15841if (echo >conf$$.file) 2>/dev/null; then
15842  if ln -s conf$$.file conf$$ 2>/dev/null; then
15843    as_ln_s='ln -s'
15844    # ... but there are two gotchas:
15845    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15846    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15847    # In both cases, we have to default to `cp -p'.
15848    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15849      as_ln_s='cp -p'
15850  elif ln conf$$.file conf$$ 2>/dev/null; then
15851    as_ln_s=ln
15852  else
15853    as_ln_s='cp -p'
15854  fi
15855else
15856  as_ln_s='cp -p'
15857fi
15858rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15859rmdir conf$$.dir 2>/dev/null
15860
15861
15862# as_fn_mkdir_p
15863# -------------
15864# Create "$as_dir" as a directory, including parents if necessary.
15865as_fn_mkdir_p ()
15866{
15867
15868  case $as_dir in #(
15869  -*) as_dir=./$as_dir;;
15870  esac
15871  test -d "$as_dir" || eval $as_mkdir_p || {
15872    as_dirs=
15873    while :; do
15874      case $as_dir in #(
15875      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15876      *) as_qdir=$as_dir;;
15877      esac
15878      as_dirs="'$as_qdir' $as_dirs"
15879      as_dir=`$as_dirname -- "$as_dir" ||
15880$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15881	 X"$as_dir" : 'X\(//\)[^/]' \| \
15882	 X"$as_dir" : 'X\(//\)$' \| \
15883	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15884$as_echo X"$as_dir" |
15885    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15886	    s//\1/
15887	    q
15888	  }
15889	  /^X\(\/\/\)[^/].*/{
15890	    s//\1/
15891	    q
15892	  }
15893	  /^X\(\/\/\)$/{
15894	    s//\1/
15895	    q
15896	  }
15897	  /^X\(\/\).*/{
15898	    s//\1/
15899	    q
15900	  }
15901	  s/.*/./; q'`
15902      test -d "$as_dir" && break
15903    done
15904    test -z "$as_dirs" || eval "mkdir $as_dirs"
15905  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15906
15907
15908} # as_fn_mkdir_p
15909if mkdir -p . 2>/dev/null; then
15910  as_mkdir_p='mkdir -p "$as_dir"'
15911else
15912  test -d ./-p && rmdir ./-p
15913  as_mkdir_p=false
15914fi
15915
15916if test -x / >/dev/null 2>&1; then
15917  as_test_x='test -x'
15918else
15919  if ls -dL / >/dev/null 2>&1; then
15920    as_ls_L_option=L
15921  else
15922    as_ls_L_option=
15923  fi
15924  as_test_x='
15925    eval sh -c '\''
15926      if test -d "$1"; then
15927	test -d "$1/.";
15928      else
15929	case $1 in #(
15930	-*)set "./$1";;
15931	esac;
15932	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15933	???[sx]*):;;*)false;;esac;fi
15934    '\'' sh
15935  '
15936fi
15937as_executable_p=$as_test_x
15938
15939# Sed expression to map a string onto a valid CPP name.
15940as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15941
15942# Sed expression to map a string onto a valid variable name.
15943as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15944
15945
15946exec 6>&1
15947## ----------------------------------- ##
15948## Main body of $CONFIG_STATUS script. ##
15949## ----------------------------------- ##
15950_ASEOF
15951test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15952
15953cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15954# Save the log message, to keep $0 and so on meaningful, and to
15955# report actual input values of CONFIG_FILES etc. instead of their
15956# values after options handling.
15957ac_log="
15958This file was extended by openjdk $as_me version-0.1, which was
15959generated by GNU Autoconf 2.67.  Invocation command line was
15960
15961  CONFIG_FILES    = $CONFIG_FILES
15962  CONFIG_HEADERS  = $CONFIG_HEADERS
15963  CONFIG_LINKS    = $CONFIG_LINKS
15964  CONFIG_COMMANDS = $CONFIG_COMMANDS
15965  $ $0 $@
15966
15967on `(hostname || uname -n) 2>/dev/null | sed 1q`
15968"
15969
15970_ACEOF
15971
15972case $ac_config_files in *"
15973"*) set x $ac_config_files; shift; ac_config_files=$*;;
15974esac
15975
15976case $ac_config_headers in *"
15977"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15978esac
15979
15980
15981cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15982# Files that config.status was made for.
15983config_files="$ac_config_files"
15984config_headers="$ac_config_headers"
15985
15986_ACEOF
15987
15988cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15989ac_cs_usage="\
15990\`$as_me' instantiates files and other configuration actions
15991from templates according to the current configuration.  Unless the files
15992and actions are specified as TAGs, all are instantiated by default.
15993
15994Usage: $0 [OPTION]... [TAG]...
15995
15996  -h, --help       print this help, then exit
15997  -V, --version    print version number and configuration settings, then exit
15998      --config     print configuration, then exit
15999  -q, --quiet, --silent
16000                   do not print progress messages
16001  -d, --debug      don't remove temporary files
16002      --recheck    update $as_me by reconfiguring in the same conditions
16003      --file=FILE[:TEMPLATE]
16004                   instantiate the configuration file FILE
16005      --header=FILE[:TEMPLATE]
16006                   instantiate the configuration header FILE
16007
16008Configuration files:
16009$config_files
16010
16011Configuration headers:
16012$config_headers
16013
16014Report bugs to <build-infra-dev@openjdk.java.net>."
16015
16016_ACEOF
16017cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16018ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16019ac_cs_version="\\
16020openjdk config.status version-0.1
16021configured by $0, generated by GNU Autoconf 2.67,
16022  with options \\"\$ac_cs_config\\"
16023
16024Copyright (C) 2010 Free Software Foundation, Inc.
16025This config.status script is free software; the Free Software Foundation
16026gives unlimited permission to copy, distribute and modify it."
16027
16028ac_pwd='$ac_pwd'
16029srcdir='$srcdir'
16030AWK='$AWK'
16031test -n "\$AWK" || AWK=awk
16032_ACEOF
16033
16034cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16035# The default lists apply if the user does not specify any file.
16036ac_need_defaults=:
16037while test $# != 0
16038do
16039  case $1 in
16040  --*=?*)
16041    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16042    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16043    ac_shift=:
16044    ;;
16045  --*=)
16046    ac_option=`expr "X$1" : 'X\([^=]*\)='`
16047    ac_optarg=
16048    ac_shift=:
16049    ;;
16050  *)
16051    ac_option=$1
16052    ac_optarg=$2
16053    ac_shift=shift
16054    ;;
16055  esac
16056
16057  case $ac_option in
16058  # Handling of the options.
16059  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16060    ac_cs_recheck=: ;;
16061  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16062    $as_echo "$ac_cs_version"; exit ;;
16063  --config | --confi | --conf | --con | --co | --c )
16064    $as_echo "$ac_cs_config"; exit ;;
16065  --debug | --debu | --deb | --de | --d | -d )
16066    debug=: ;;
16067  --file | --fil | --fi | --f )
16068    $ac_shift
16069    case $ac_optarg in
16070    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16071    '') as_fn_error $? "missing file argument" ;;
16072    esac
16073    as_fn_append CONFIG_FILES " '$ac_optarg'"
16074    ac_need_defaults=false;;
16075  --header | --heade | --head | --hea )
16076    $ac_shift
16077    case $ac_optarg in
16078    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16079    esac
16080    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16081    ac_need_defaults=false;;
16082  --he | --h)
16083    # Conflict between --help and --header
16084    as_fn_error $? "ambiguous option: \`$1'
16085Try \`$0 --help' for more information.";;
16086  --help | --hel | -h )
16087    $as_echo "$ac_cs_usage"; exit ;;
16088  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16089  | -silent | --silent | --silen | --sile | --sil | --si | --s)
16090    ac_cs_silent=: ;;
16091
16092  # This is an error.
16093  -*) as_fn_error $? "unrecognized option: \`$1'
16094Try \`$0 --help' for more information." ;;
16095
16096  *) as_fn_append ac_config_targets " $1"
16097     ac_need_defaults=false ;;
16098
16099  esac
16100  shift
16101done
16102
16103ac_configure_extra_args=
16104
16105if $ac_cs_silent; then
16106  exec 6>/dev/null
16107  ac_configure_extra_args="$ac_configure_extra_args --silent"
16108fi
16109
16110_ACEOF
16111cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112if \$ac_cs_recheck; then
16113  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16114  shift
16115  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16116  CONFIG_SHELL='$SHELL'
16117  export CONFIG_SHELL
16118  exec "\$@"
16119fi
16120
16121_ACEOF
16122cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16123exec 5>>config.log
16124{
16125  echo
16126  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16127## Running $as_me. ##
16128_ASBOX
16129  $as_echo "$ac_log"
16130} >&5
16131
16132_ACEOF
16133cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16134_ACEOF
16135
16136cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16137
16138# Handling of arguments.
16139for ac_config_target in $ac_config_targets
16140do
16141  case $ac_config_target in
16142    "$OUTPUT_ROOT/config.h") CONFIG_HEADERS="$CONFIG_HEADERS $OUTPUT_ROOT/config.h:$AUTOCONF_DIR/config.h.in" ;;
16143    "$OUTPUT_ROOT/spec.gmk") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/spec.gmk:$AUTOCONF_DIR/spec.gmk.in" ;;
16144    "$OUTPUT_ROOT/Makefile") CONFIG_FILES="$CONFIG_FILES $OUTPUT_ROOT/Makefile:$AUTOCONF_DIR/Makefile.in" ;;
16145
16146  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5 ;;
16147  esac
16148done
16149
16150
16151# If the user did not use the arguments to specify the items to instantiate,
16152# then the envvar interface is used.  Set only those that are not.
16153# We use the long form for the default assignment because of an extremely
16154# bizarre bug on SunOS 4.1.3.
16155if $ac_need_defaults; then
16156  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16157  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16158fi
16159
16160# Have a temporary directory for convenience.  Make it in the build tree
16161# simply because there is no reason against having it here, and in addition,
16162# creating and moving files from /tmp can sometimes cause problems.
16163# Hook for its removal unless debugging.
16164# Note that there is a small window in which the directory will not be cleaned:
16165# after its creation but before its name has been assigned to `$tmp'.
16166$debug ||
16167{
16168  tmp=
16169  trap 'exit_status=$?
16170  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16171' 0
16172  trap 'as_fn_exit 1' 1 2 13 15
16173}
16174# Create a (secure) tmp directory for tmp files.
16175
16176{
16177  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16178  test -n "$tmp" && test -d "$tmp"
16179}  ||
16180{
16181  tmp=./conf$$-$RANDOM
16182  (umask 077 && mkdir "$tmp")
16183} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16184
16185# Set up the scripts for CONFIG_FILES section.
16186# No need to generate them if there are no CONFIG_FILES.
16187# This happens for instance with `./config.status config.h'.
16188if test -n "$CONFIG_FILES"; then
16189
16190
16191ac_cr=`echo X | tr X '\015'`
16192# On cygwin, bash can eat \r inside `` if the user requested igncr.
16193# But we know of no other shell where ac_cr would be empty at this
16194# point, so we can use a bashism as a fallback.
16195if test "x$ac_cr" = x; then
16196  eval ac_cr=\$\'\\r\'
16197fi
16198ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16199if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16200  ac_cs_awk_cr='\\r'
16201else
16202  ac_cs_awk_cr=$ac_cr
16203fi
16204
16205echo 'BEGIN {' >"$tmp/subs1.awk" &&
16206_ACEOF
16207
16208
16209{
16210  echo "cat >conf$$subs.awk <<_ACEOF" &&
16211  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16212  echo "_ACEOF"
16213} >conf$$subs.sh ||
16214  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16215ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16216ac_delim='%!_!# '
16217for ac_last_try in false false false false false :; do
16218  . ./conf$$subs.sh ||
16219    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16220
16221  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16222  if test $ac_delim_n = $ac_delim_num; then
16223    break
16224  elif $ac_last_try; then
16225    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16226  else
16227    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16228  fi
16229done
16230rm -f conf$$subs.sh
16231
16232cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16233cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
16234_ACEOF
16235sed -n '
16236h
16237s/^/S["/; s/!.*/"]=/
16238p
16239g
16240s/^[^!]*!//
16241:repl
16242t repl
16243s/'"$ac_delim"'$//
16244t delim
16245:nl
16246h
16247s/\(.\{148\}\)..*/\1/
16248t more1
16249s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16250p
16251n
16252b repl
16253:more1
16254s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16255p
16256g
16257s/.\{148\}//
16258t nl
16259:delim
16260h
16261s/\(.\{148\}\)..*/\1/
16262t more2
16263s/["\\]/\\&/g; s/^/"/; s/$/"/
16264p
16265b
16266:more2
16267s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16268p
16269g
16270s/.\{148\}//
16271t delim
16272' <conf$$subs.awk | sed '
16273/^[^""]/{
16274  N
16275  s/\n//
16276}
16277' >>$CONFIG_STATUS || ac_write_fail=1
16278rm -f conf$$subs.awk
16279cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16280_ACAWK
16281cat >>"\$tmp/subs1.awk" <<_ACAWK &&
16282  for (key in S) S_is_set[key] = 1
16283  FS = ""
16284
16285}
16286{
16287  line = $ 0
16288  nfields = split(line, field, "@")
16289  substed = 0
16290  len = length(field[1])
16291  for (i = 2; i < nfields; i++) {
16292    key = field[i]
16293    keylen = length(key)
16294    if (S_is_set[key]) {
16295      value = S[key]
16296      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16297      len += length(value) + length(field[++i])
16298      substed = 1
16299    } else
16300      len += 1 + keylen
16301  }
16302
16303  print line
16304}
16305
16306_ACAWK
16307_ACEOF
16308cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16309if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16310  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16311else
16312  cat
16313fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
16314  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16315_ACEOF
16316
16317# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16318# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16319# trailing colons and then remove the whole line if VPATH becomes empty
16320# (actually we leave an empty line to preserve line numbers).
16321if test "x$srcdir" = x.; then
16322  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
16323h
16324s///
16325s/^/:/
16326s/[	 ]*$/:/
16327s/:\$(srcdir):/:/g
16328s/:\${srcdir}:/:/g
16329s/:@srcdir@:/:/g
16330s/^:*//
16331s/:*$//
16332x
16333s/\(=[	 ]*\).*/\1/
16334G
16335s/\n//
16336s/^[^=]*=[	 ]*$//
16337}'
16338fi
16339
16340cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16341fi # test -n "$CONFIG_FILES"
16342
16343# Set up the scripts for CONFIG_HEADERS section.
16344# No need to generate them if there are no CONFIG_HEADERS.
16345# This happens for instance with `./config.status Makefile'.
16346if test -n "$CONFIG_HEADERS"; then
16347cat >"$tmp/defines.awk" <<\_ACAWK ||
16348BEGIN {
16349_ACEOF
16350
16351# Transform confdefs.h into an awk script `defines.awk', embedded as
16352# here-document in config.status, that substitutes the proper values into
16353# config.h.in to produce config.h.
16354
16355# Create a delimiter string that does not exist in confdefs.h, to ease
16356# handling of long lines.
16357ac_delim='%!_!# '
16358for ac_last_try in false false :; do
16359  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16360  if test -z "$ac_t"; then
16361    break
16362  elif $ac_last_try; then
16363    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16364  else
16365    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16366  fi
16367done
16368
16369# For the awk script, D is an array of macro values keyed by name,
16370# likewise P contains macro parameters if any.  Preserve backslash
16371# newline sequences.
16372
16373ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16374sed -n '
16375s/.\{148\}/&'"$ac_delim"'/g
16376t rset
16377:rset
16378s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16379t def
16380d
16381:def
16382s/\\$//
16383t bsnl
16384s/["\\]/\\&/g
16385s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16386D["\1"]=" \3"/p
16387s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16388d
16389:bsnl
16390s/["\\]/\\&/g
16391s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16392D["\1"]=" \3\\\\\\n"\\/p
16393t cont
16394s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16395t cont
16396d
16397:cont
16398n
16399s/.\{148\}/&'"$ac_delim"'/g
16400t clear
16401:clear
16402s/\\$//
16403t bsnlc
16404s/["\\]/\\&/g; s/^/"/; s/$/"/p
16405d
16406:bsnlc
16407s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16408b cont
16409' <confdefs.h | sed '
16410s/'"$ac_delim"'/"\\\
16411"/g' >>$CONFIG_STATUS || ac_write_fail=1
16412
16413cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16414  for (key in D) D_is_set[key] = 1
16415  FS = ""
16416}
16417/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16418  line = \$ 0
16419  split(line, arg, " ")
16420  if (arg[1] == "#") {
16421    defundef = arg[2]
16422    mac1 = arg[3]
16423  } else {
16424    defundef = substr(arg[1], 2)
16425    mac1 = arg[2]
16426  }
16427  split(mac1, mac2, "(") #)
16428  macro = mac2[1]
16429  prefix = substr(line, 1, index(line, defundef) - 1)
16430  if (D_is_set[macro]) {
16431    # Preserve the white space surrounding the "#".
16432    print prefix "define", macro P[macro] D[macro]
16433    next
16434  } else {
16435    # Replace #undef with comments.  This is necessary, for example,
16436    # in the case of _POSIX_SOURCE, which is predefined and required
16437    # on some systems where configure will not decide to define it.
16438    if (defundef == "undef") {
16439      print "/*", prefix defundef, macro, "*/"
16440      next
16441    }
16442  }
16443}
16444{ print }
16445_ACAWK
16446_ACEOF
16447cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16448  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16449fi # test -n "$CONFIG_HEADERS"
16450
16451
16452eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    "
16453shift
16454for ac_tag
16455do
16456  case $ac_tag in
16457  :[FHLC]) ac_mode=$ac_tag; continue;;
16458  esac
16459  case $ac_mode$ac_tag in
16460  :[FHL]*:*);;
16461  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5 ;;
16462  :[FH]-) ac_tag=-:-;;
16463  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16464  esac
16465  ac_save_IFS=$IFS
16466  IFS=:
16467  set x $ac_tag
16468  IFS=$ac_save_IFS
16469  shift
16470  ac_file=$1
16471  shift
16472
16473  case $ac_mode in
16474  :L) ac_source=$1;;
16475  :[FH])
16476    ac_file_inputs=
16477    for ac_f
16478    do
16479      case $ac_f in
16480      -) ac_f="$tmp/stdin";;
16481      *) # Look for the file first in the build tree, then in the source tree
16482	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16483	 # because $ac_f cannot contain `:'.
16484	 test -f "$ac_f" ||
16485	   case $ac_f in
16486	   [\\/$]*) false;;
16487	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16488	   esac ||
16489	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5 ;;
16490      esac
16491      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16492      as_fn_append ac_file_inputs " '$ac_f'"
16493    done
16494
16495    # Let's still pretend it is `configure' which instantiates (i.e., don't
16496    # use $as_me), people would be surprised to read:
16497    #    /* config.h.  Generated by config.status.  */
16498    configure_input='Generated from '`
16499	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16500	`' by configure.'
16501    if test x"$ac_file" != x-; then
16502      configure_input="$ac_file.  $configure_input"
16503      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16504$as_echo "$as_me: creating $ac_file" >&6;}
16505    fi
16506    # Neutralize special characters interpreted by sed in replacement strings.
16507    case $configure_input in #(
16508    *\&* | *\|* | *\\* )
16509       ac_sed_conf_input=`$as_echo "$configure_input" |
16510       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16511    *) ac_sed_conf_input=$configure_input;;
16512    esac
16513
16514    case $ac_tag in
16515    *:-:* | *:-) cat >"$tmp/stdin" \
16516      || as_fn_error $? "could not create $ac_file" "$LINENO" 5  ;;
16517    esac
16518    ;;
16519  esac
16520
16521  ac_dir=`$as_dirname -- "$ac_file" ||
16522$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16523	 X"$ac_file" : 'X\(//\)[^/]' \| \
16524	 X"$ac_file" : 'X\(//\)$' \| \
16525	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16526$as_echo X"$ac_file" |
16527    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16528	    s//\1/
16529	    q
16530	  }
16531	  /^X\(\/\/\)[^/].*/{
16532	    s//\1/
16533	    q
16534	  }
16535	  /^X\(\/\/\)$/{
16536	    s//\1/
16537	    q
16538	  }
16539	  /^X\(\/\).*/{
16540	    s//\1/
16541	    q
16542	  }
16543	  s/.*/./; q'`
16544  as_dir="$ac_dir"; as_fn_mkdir_p
16545  ac_builddir=.
16546
16547case "$ac_dir" in
16548.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16549*)
16550  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16551  # A ".." for each directory in $ac_dir_suffix.
16552  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16553  case $ac_top_builddir_sub in
16554  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16555  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16556  esac ;;
16557esac
16558ac_abs_top_builddir=$ac_pwd
16559ac_abs_builddir=$ac_pwd$ac_dir_suffix
16560# for backward compatibility:
16561ac_top_builddir=$ac_top_build_prefix
16562
16563case $srcdir in
16564  .)  # We are building in place.
16565    ac_srcdir=.
16566    ac_top_srcdir=$ac_top_builddir_sub
16567    ac_abs_top_srcdir=$ac_pwd ;;
16568  [\\/]* | ?:[\\/]* )  # Absolute name.
16569    ac_srcdir=$srcdir$ac_dir_suffix;
16570    ac_top_srcdir=$srcdir
16571    ac_abs_top_srcdir=$srcdir ;;
16572  *) # Relative name.
16573    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16574    ac_top_srcdir=$ac_top_build_prefix$srcdir
16575    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16576esac
16577ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16578
16579
16580  case $ac_mode in
16581  :F)
16582  #
16583  # CONFIG_FILE
16584  #
16585
16586_ACEOF
16587
16588cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16589# If the template does not know about datarootdir, expand it.
16590# FIXME: This hack should be removed a few years after 2.60.
16591ac_datarootdir_hack=; ac_datarootdir_seen=
16592ac_sed_dataroot='
16593/datarootdir/ {
16594  p
16595  q
16596}
16597/@datadir@/p
16598/@docdir@/p
16599/@infodir@/p
16600/@localedir@/p
16601/@mandir@/p'
16602case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16603*datarootdir*) ac_datarootdir_seen=yes;;
16604*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16605  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16606$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16607_ACEOF
16608cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16609  ac_datarootdir_hack='
16610  s&@datadir@&$datadir&g
16611  s&@docdir@&$docdir&g
16612  s&@infodir@&$infodir&g
16613  s&@localedir@&$localedir&g
16614  s&@mandir@&$mandir&g
16615  s&\\\${datarootdir}&$datarootdir&g' ;;
16616esac
16617_ACEOF
16618
16619# Neutralize VPATH when `$srcdir' = `.'.
16620# Shell code in configure.ac might set extrasub.
16621# FIXME: do we really want to maintain this feature?
16622cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16623ac_sed_extra="$ac_vpsub
16624$extrasub
16625_ACEOF
16626cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16627:t
16628/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16629s|@configure_input@|$ac_sed_conf_input|;t t
16630s&@top_builddir@&$ac_top_builddir_sub&;t t
16631s&@top_build_prefix@&$ac_top_build_prefix&;t t
16632s&@srcdir@&$ac_srcdir&;t t
16633s&@abs_srcdir@&$ac_abs_srcdir&;t t
16634s&@top_srcdir@&$ac_top_srcdir&;t t
16635s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16636s&@builddir@&$ac_builddir&;t t
16637s&@abs_builddir@&$ac_abs_builddir&;t t
16638s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16639$ac_datarootdir_hack
16640"
16641eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
16642  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16643
16644test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16645  { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
16646  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
16647  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16648which seems to be undefined.  Please make sure it is defined" >&5
16649$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16650which seems to be undefined.  Please make sure it is defined" >&2;}
16651
16652  rm -f "$tmp/stdin"
16653  case $ac_file in
16654  -) cat "$tmp/out" && rm -f "$tmp/out";;
16655  *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
16656  esac \
16657  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16658 ;;
16659  :H)
16660  #
16661  # CONFIG_HEADER
16662  #
16663  if test x"$ac_file" != x-; then
16664    {
16665      $as_echo "/* $configure_input  */" \
16666      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16667    } >"$tmp/config.h" \
16668      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16669    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16670      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16671$as_echo "$as_me: $ac_file is unchanged" >&6;}
16672    else
16673      rm -f "$ac_file"
16674      mv "$tmp/config.h" "$ac_file" \
16675	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16676    fi
16677  else
16678    $as_echo "/* $configure_input  */" \
16679      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16680      || as_fn_error $? "could not create -" "$LINENO" 5
16681  fi
16682 ;;
16683
16684
16685  esac
16686
16687done # for ac_tag
16688
16689
16690as_fn_exit 0
16691_ACEOF
16692ac_clean_files=$ac_clean_files_save
16693
16694test $ac_write_fail = 0 ||
16695  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16696
16697
16698# configure is writing to config.log, and then calls config.status.
16699# config.status does its own redirection, appending to config.log.
16700# Unfortunately, on DOS this fails, as config.log is still kept open
16701# by configure, so config.status won't be able to write to it; its
16702# output is simply discarded.  So we exec the FD to /dev/null,
16703# effectively closing config.log, so it can be properly (re)opened and
16704# appended to by config.status.  When coming back to configure, we
16705# need to make the FD available again.
16706if test "$no_create" != yes; then
16707  ac_cs_success=:
16708  ac_config_status_args=
16709  test "$silent" = yes &&
16710    ac_config_status_args="$ac_config_status_args --quiet"
16711  exec 5>/dev/null
16712  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16713  exec 5>>config.log
16714  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16715  # would make configure fail if this is the last instruction.
16716  $ac_cs_success || as_fn_exit 1
16717fi
16718if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16719  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16720$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
16721fi
16722
16723
16724# Finally output some useful information to the user
16725
16726if test "x$CCACHE_FOUND" != x; then
16727	if  test "x$HAS_GOOD_CCACHE" = x; then
16728		CCACHE_STATUS="installed, but disabled (version older than 3.1.4)"
16729		CCACHE_HELP_MSG="You have ccache installed, but it is a version prior to 3.1.4. Try upgrading."
16730	else
16731		CCACHE_STATUS="installed and in use"
16732	fi
16733else
16734	if test "x$GCC" = xyes; then
16735		CCACHE_STATUS="not installed (consider installing)"
16736		CCACHE_HELP_MSG="You do not have ccache installed. Try installing it."
16737	else
16738		CCACHE_STATUS="not available for your system"
16739	fi
16740fi
16741
16742printf "\n"
16743printf "====================================================\n"
16744printf "A new configuration has been successfully created in\n"
16745printf "$OUTPUT_ROOT\n"
16746if test "x$CONFIGURE_COMMAND_LINE" != x; then
16747	printf "using configure arguments '$CONFIGURE_COMMAND_LINE'.\n"
16748else
16749	printf "using default settings.\n"
16750fi
16751
16752printf "\n"
16753printf "Configuration summary:\n"
16754printf "* Debug level:  $DEBUG_LEVEL\n"
16755printf "* JDK variant:  $JDK_VARIANT\n"
16756printf "* JVM variants: $with_jvm_variants\n"
16757printf "* Host info:    OS: $HOST_OS, CPU architecture: $HOST_CPU_ARCH, address length: $HOST_CPU_BITS\n"
16758printf "* Boot JDK:     $BOOT_JDK\n"
16759
16760printf "\n"
16761printf "Build performance summary:\n"
16762printf "* Cores to use:  $NUM_CORES\n"
16763printf "* Memory limit:  $MEMORY_SIZE MB\n"
16764printf "* ccache status: $CCACHE_STATUS\n"
16765
16766if test "x$OUTPUT_DIR_IS_LOCAL" != "xyes"; then
16767	printf "\n"
16768	printf "WARNING: Your build output directory is not on a local disk.\n"
16769	printf "This will severely degrade build performance!\n"
16770	printf "It is recommended that you create an output directory on a local disk,\n"
16771	printf "and run the configure script again from that directory.\n"
16772fi
16773
16774if test "x$CCACHE_HELP_MSG" != x; then
16775	printf "\n"
16776	printf "Build performance tip: ccache gives a tremendous speedup for C++ recompilations.\n"
16777	printf "$CCACHE_HELP_MSG\n"
16778
16779    help_on_build_dependency ccache
16780    printf "$HELP_MSG\n"
16781fi
16782