Imported Upstream version 4.8.1
[platform/upstream/gcc48.git] / libjava / classpath / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Classpath 0.99.1-pre.
4 #
5 # Report bugs to <classpath@gnu.org>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
9 # Foundation, Inc.
10 #
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
16
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20   emulate sh
21   NULLCMD=:
22   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23   # is contrary to our usage.  Disable this feature.
24   alias -g '${1+"$@"}'='"$@"'
25   setopt NO_GLOB_SUBST
26 else
27   case `(set -o) 2>/dev/null` in #(
28   *posix*) :
29     set -o posix ;; #(
30   *) :
31      ;;
32 esac
33 fi
34
35
36 as_nl='
37 '
38 export as_nl
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47   as_echo='print -r --'
48   as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50   as_echo='printf %s\n'
51   as_echo_n='printf %s'
52 else
53   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55     as_echo_n='/usr/ucb/echo -n'
56   else
57     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58     as_echo_n_body='eval
59       arg=$1;
60       case $arg in #(
61       *"$as_nl"*)
62         expr "X$arg" : "X\\(.*\\)$as_nl";
63         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64       esac;
65       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66     '
67     export as_echo_n_body
68     as_echo_n='sh -c $as_echo_n_body as_echo'
69   fi
70   export as_echo_body
71   as_echo='sh -c $as_echo_body as_echo'
72 fi
73
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
76   PATH_SEPARATOR=:
77   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79       PATH_SEPARATOR=';'
80   }
81 fi
82
83
84 # IFS
85 # We need space, tab and new line, in precisely that order.  Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
89 IFS=" ""        $as_nl"
90
91 # Find who we are.  Look in the path if we contain no directory separator.
92 case $0 in #((
93   *[\\/]* ) as_myself=$0 ;;
94   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95 for as_dir in $PATH
96 do
97   IFS=$as_save_IFS
98   test -z "$as_dir" && as_dir=.
99     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100   done
101 IFS=$as_save_IFS
102
103      ;;
104 esac
105 # We did not find ourselves, most probably we were run as `sh COMMAND'
106 # in which case we are not to be found in the path.
107 if test "x$as_myself" = x; then
108   as_myself=$0
109 fi
110 if test ! -f "$as_myself"; then
111   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112   exit 1
113 fi
114
115 # Unset variables that we do not need and which cause bugs (e.g. in
116 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117 # suppresses any "Segmentation fault" message there.  '((' could
118 # trigger a bug in pdksh 5.2.14.
119 for as_var in BASH_ENV ENV MAIL MAILPATH
120 do eval test x\${$as_var+set} = xset \
121   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122 done
123 PS1='$ '
124 PS2='> '
125 PS4='+ '
126
127 # NLS nuisances.
128 LC_ALL=C
129 export LC_ALL
130 LANGUAGE=C
131 export LANGUAGE
132
133 # CDPATH.
134 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136 if test "x$CONFIG_SHELL" = x; then
137   as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138   emulate sh
139   NULLCMD=:
140   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141   # is contrary to our usage.  Disable this feature.
142   alias -g '\${1+\"\$@\"}'='\"\$@\"'
143   setopt NO_GLOB_SUBST
144 else
145   case \`(set -o) 2>/dev/null\` in #(
146   *posix*) :
147     set -o posix ;; #(
148   *) :
149      ;;
150 esac
151 fi
152 "
153   as_required="as_fn_return () { (exit \$1); }
154 as_fn_success () { as_fn_return 0; }
155 as_fn_failure () { as_fn_return 1; }
156 as_fn_ret_success () { return 0; }
157 as_fn_ret_failure () { return 1; }
158
159 exitcode=0
160 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166 else
167   exitcode=1; echo positional parameters were not saved.
168 fi
169 test x\$exitcode = x0 || exit 1"
170   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174 test \$(( 1 + 1 )) = 2 || exit 1
175
176   test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177     ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179     ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180     PATH=/empty FPATH=/empty; export PATH FPATH
181     test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182       || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183   if (eval "$as_required") 2>/dev/null; then :
184   as_have_required=yes
185 else
186   as_have_required=no
187 fi
188   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190 else
191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192 as_found=false
193 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194 do
195   IFS=$as_save_IFS
196   test -z "$as_dir" && as_dir=.
197   as_found=:
198   case $as_dir in #(
199          /*)
200            for as_base in sh bash ksh sh5; do
201              # Try only shells that exist, to save several forks.
202              as_shell=$as_dir/$as_base
203              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204                     { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205   CONFIG_SHELL=$as_shell as_have_required=yes
206                    if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207   break 2
208 fi
209 fi
210            done;;
211        esac
212   as_found=false
213 done
214 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215               { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216   CONFIG_SHELL=$SHELL as_have_required=yes
217 fi; }
218 IFS=$as_save_IFS
219
220
221       if test "x$CONFIG_SHELL" != x; then :
222   # We cannot yet assume a decent shell, so we have to provide a
223         # neutralization value for shells without unset; and this also
224         # works around shells that cannot unset nonexistent variables.
225         BASH_ENV=/dev/null
226         ENV=/dev/null
227         (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228         export CONFIG_SHELL
229         exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 fi
231
232     if test x$as_have_required = xno; then :
233   $as_echo "$0: This script requires a shell more modern than all"
234   $as_echo "$0: the shells that I found on your system."
235   if test x${ZSH_VERSION+set} = xset ; then
236     $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237     $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238   else
239     $as_echo "$0: Please tell bug-autoconf@gnu.org and classpath@gnu.org
240 $0: about your system, including any error possibly output
241 $0: before this message. Then install a modern shell, or
242 $0: manually run the script under such a shell if you do
243 $0: have one."
244   fi
245   exit 1
246 fi
247 fi
248 fi
249 SHELL=${CONFIG_SHELL-/bin/sh}
250 export SHELL
251 # Unset more variables known to interfere with behavior of common tools.
252 CLICOLOR_FORCE= GREP_OPTIONS=
253 unset CLICOLOR_FORCE GREP_OPTIONS
254
255 ## --------------------- ##
256 ## M4sh Shell Functions. ##
257 ## --------------------- ##
258 # as_fn_unset VAR
259 # ---------------
260 # Portably unset VAR.
261 as_fn_unset ()
262 {
263   { eval $1=; unset $1;}
264 }
265 as_unset=as_fn_unset
266
267 # as_fn_set_status STATUS
268 # -----------------------
269 # Set $? to STATUS, without forking.
270 as_fn_set_status ()
271 {
272   return $1
273 } # as_fn_set_status
274
275 # as_fn_exit STATUS
276 # -----------------
277 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
278 as_fn_exit ()
279 {
280   set +e
281   as_fn_set_status $1
282   exit $1
283 } # as_fn_exit
284
285 # as_fn_mkdir_p
286 # -------------
287 # Create "$as_dir" as a directory, including parents if necessary.
288 as_fn_mkdir_p ()
289 {
290
291   case $as_dir in #(
292   -*) as_dir=./$as_dir;;
293   esac
294   test -d "$as_dir" || eval $as_mkdir_p || {
295     as_dirs=
296     while :; do
297       case $as_dir in #(
298       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
299       *) as_qdir=$as_dir;;
300       esac
301       as_dirs="'$as_qdir' $as_dirs"
302       as_dir=`$as_dirname -- "$as_dir" ||
303 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
304          X"$as_dir" : 'X\(//\)[^/]' \| \
305          X"$as_dir" : 'X\(//\)$' \| \
306          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
307 $as_echo X"$as_dir" |
308     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
309             s//\1/
310             q
311           }
312           /^X\(\/\/\)[^/].*/{
313             s//\1/
314             q
315           }
316           /^X\(\/\/\)$/{
317             s//\1/
318             q
319           }
320           /^X\(\/\).*/{
321             s//\1/
322             q
323           }
324           s/.*/./; q'`
325       test -d "$as_dir" && break
326     done
327     test -z "$as_dirs" || eval "mkdir $as_dirs"
328   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
329
330
331 } # as_fn_mkdir_p
332 # as_fn_append VAR VALUE
333 # ----------------------
334 # Append the text in VALUE to the end of the definition contained in VAR. Take
335 # advantage of any shell optimizations that allow amortized linear growth over
336 # repeated appends, instead of the typical quadratic growth present in naive
337 # implementations.
338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
339   eval 'as_fn_append ()
340   {
341     eval $1+=\$2
342   }'
343 else
344   as_fn_append ()
345   {
346     eval $1=\$$1\$2
347   }
348 fi # as_fn_append
349
350 # as_fn_arith ARG...
351 # ------------------
352 # Perform arithmetic evaluation on the ARGs, and store the result in the
353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
354 # must be portable across $(()) and expr.
355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
356   eval 'as_fn_arith ()
357   {
358     as_val=$(( $* ))
359   }'
360 else
361   as_fn_arith ()
362   {
363     as_val=`expr "$@" || test $? -eq 1`
364   }
365 fi # as_fn_arith
366
367
368 # as_fn_error ERROR [LINENO LOG_FD]
369 # ---------------------------------
370 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
371 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
372 # script with status $?, using 1 if that was 0.
373 as_fn_error ()
374 {
375   as_status=$?; test $as_status -eq 0 && as_status=1
376   if test "$3"; then
377     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
378     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
379   fi
380   $as_echo "$as_me: error: $1" >&2
381   as_fn_exit $as_status
382 } # as_fn_error
383
384 if expr a : '\(a\)' >/dev/null 2>&1 &&
385    test "X`expr 00001 : '.*\(...\)'`" = X001; then
386   as_expr=expr
387 else
388   as_expr=false
389 fi
390
391 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
392   as_basename=basename
393 else
394   as_basename=false
395 fi
396
397 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
398   as_dirname=dirname
399 else
400   as_dirname=false
401 fi
402
403 as_me=`$as_basename -- "$0" ||
404 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
405          X"$0" : 'X\(//\)$' \| \
406          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 $as_echo X/"$0" |
408     sed '/^.*\/\([^/][^/]*\)\/*$/{
409             s//\1/
410             q
411           }
412           /^X\/\(\/\/\)$/{
413             s//\1/
414             q
415           }
416           /^X\/\(\/\).*/{
417             s//\1/
418             q
419           }
420           s/.*/./; q'`
421
422 # Avoid depending upon Character Ranges.
423 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
424 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
425 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
426 as_cr_digits='0123456789'
427 as_cr_alnum=$as_cr_Letters$as_cr_digits
428
429
430   as_lineno_1=$LINENO as_lineno_1a=$LINENO
431   as_lineno_2=$LINENO as_lineno_2a=$LINENO
432   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
433   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
434   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
435   sed -n '
436     p
437     /[$]LINENO/=
438   ' <$as_myself |
439     sed '
440       s/[$]LINENO.*/&-/
441       t lineno
442       b
443       :lineno
444       N
445       :loop
446       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
447       t loop
448       s/-\n.*//
449     ' >$as_me.lineno &&
450   chmod +x "$as_me.lineno" ||
451     { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452
453   # Don't try to exec as it changes $[0], causing all sort of problems
454   # (the dirname of $[0] is not the place where we might find the
455   # original and so on.  Autoconf is especially sensitive to this).
456   . "./$as_me.lineno"
457   # Exit status is that of the last command.
458   exit
459 }
460
461 ECHO_C= ECHO_N= ECHO_T=
462 case `echo -n x` in #(((((
463 -n*)
464   case `echo 'xy\c'` in
465   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
466   xy)  ECHO_C='\c';;
467   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
468        ECHO_T=' ';;
469   esac;;
470 *)
471   ECHO_N='-n';;
472 esac
473
474 rm -f conf$$ conf$$.exe conf$$.file
475 if test -d conf$$.dir; then
476   rm -f conf$$.dir/conf$$.file
477 else
478   rm -f conf$$.dir
479   mkdir conf$$.dir 2>/dev/null
480 fi
481 if (echo >conf$$.file) 2>/dev/null; then
482   if ln -s conf$$.file conf$$ 2>/dev/null; then
483     as_ln_s='ln -s'
484     # ... but there are two gotchas:
485     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
486     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
487     # In both cases, we have to default to `cp -p'.
488     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489       as_ln_s='cp -p'
490   elif ln conf$$.file conf$$ 2>/dev/null; then
491     as_ln_s=ln
492   else
493     as_ln_s='cp -p'
494   fi
495 else
496   as_ln_s='cp -p'
497 fi
498 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
499 rmdir conf$$.dir 2>/dev/null
500
501 if mkdir -p . 2>/dev/null; then
502   as_mkdir_p='mkdir -p "$as_dir"'
503 else
504   test -d ./-p && rmdir ./-p
505   as_mkdir_p=false
506 fi
507
508 if test -x / >/dev/null 2>&1; then
509   as_test_x='test -x'
510 else
511   if ls -dL / >/dev/null 2>&1; then
512     as_ls_L_option=L
513   else
514     as_ls_L_option=
515   fi
516   as_test_x='
517     eval sh -c '\''
518       if test -d "$1"; then
519         test -d "$1/.";
520       else
521         case $1 in #(
522         -*)set "./$1";;
523         esac;
524         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
525         ???[sx]*):;;*)false;;esac;fi
526     '\'' sh
527   '
528 fi
529 as_executable_p=$as_test_x
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537 SHELL=${CONFIG_SHELL-/bin/sh}
538
539
540 exec 7<&0 </dev/null 6>&1
541
542 # Name of the host.
543 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
544 # so uname gets run too.
545 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547 #
548 # Initializations.
549 #
550 ac_default_prefix=/usr/local
551 ac_clean_files=
552 ac_config_libobj_dir=.
553 LIBOBJS=
554 cross_compiling=no
555 subdirs=
556 MFLAGS=
557 MAKEFLAGS=
558
559 # Identity of this package.
560 PACKAGE_NAME='GNU Classpath'
561 PACKAGE_TARNAME='classpath'
562 PACKAGE_VERSION='0.99.1-pre'
563 PACKAGE_STRING='GNU Classpath 0.99.1-pre'
564 PACKAGE_BUGREPORT='classpath@gnu.org'
565 PACKAGE_URL='http://www.gnu.org/software/classpath/'
566
567 ac_unique_file="java/lang/System.java"
568 ac_default_prefix=/usr/local/classpath
569 # Factoring default headers for most tests.
570 ac_includes_default="\
571 #include <stdio.h>
572 #ifdef HAVE_SYS_TYPES_H
573 # include <sys/types.h>
574 #endif
575 #ifdef HAVE_SYS_STAT_H
576 # include <sys/stat.h>
577 #endif
578 #ifdef STDC_HEADERS
579 # include <stdlib.h>
580 # include <stddef.h>
581 #else
582 # ifdef HAVE_STDLIB_H
583 #  include <stdlib.h>
584 # endif
585 #endif
586 #ifdef HAVE_STRING_H
587 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
588 #  include <memory.h>
589 # endif
590 # include <string.h>
591 #endif
592 #ifdef HAVE_STRINGS_H
593 # include <strings.h>
594 #endif
595 #ifdef HAVE_INTTYPES_H
596 # include <inttypes.h>
597 #endif
598 #ifdef HAVE_STDINT_H
599 # include <stdint.h>
600 #endif
601 #ifdef HAVE_UNISTD_H
602 # include <unistd.h>
603 #endif"
604
605 ac_subst_vars='am__EXEEXT_FALSE
606 am__EXEEXT_TRUE
607 LTLIBOBJS
608 LIBOBJS
609 CREATE_GMPBI_LIBRARY_FALSE
610 CREATE_GMPBI_LIBRARY_TRUE
611 WANT_NATIVE_BIG_INTEGER
612 DEFAULT_PREFS_PEER
613 ENABLE_LOCAL_SOCKETS_FALSE
614 ENABLE_LOCAL_SOCKETS_TRUE
615 PATH_TO_ESCHER
616 USE_ESCHER_FALSE
617 USE_ESCHER_TRUE
618 JAVAC_MEM_OPT
619 ac_ct_ANTLR
620 ANTLR
621 ANTLR_JAR
622 GCJ_JAVAC_FALSE
623 GCJ_JAVAC_TRUE
624 JAVAC_IS_GCJ
625 JAVAC
626 uudecode
627 JAVA
628 PATH_TO_GLIBJ_ZIP
629 USE_PREBUILT_GLIBJ_ZIP_FALSE
630 USE_PREBUILT_GLIBJ_ZIP_TRUE
631 REGEN_PARSERS_FALSE
632 REGEN_PARSERS_TRUE
633 JAY_SKELETON
634 JAY
635 CREATE_API_DOCS_FALSE
636 CREATE_API_DOCS_TRUE
637 GJDOC
638 TOOLSDIR
639 EXAMPLESDIR
640 BUILD_CLASS_FILES_FALSE
641 BUILD_CLASS_FILES_TRUE
642 INSTALL_CLASS_FILES_FALSE
643 INSTALL_CLASS_FILES_TRUE
644 INSTALL_GLIBJ_ZIP_FALSE
645 INSTALL_GLIBJ_ZIP_TRUE
646 WITH_JAR_FALSE
647 WITH_JAR_TRUE
648 JAR
649 ZIP
650 FIND
651 DATE
652 CP
653 MKDIR
654 REMOVE
655 JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION
656 ECJ_JAR
657 INIT_LOAD_LIBRARY
658 LIBDEBUG
659 MAINT
660 MAINTAINER_MODE_FALSE
661 MAINTAINER_MODE_TRUE
662 vm_classes
663 CLASSPATH_INCLUDES
664 USER_JAVAH
665 GMP_LIBS
666 GMP_CFLAGS
667 PLUGIN_DIR
668 GLIB_LIBS
669 GLIB_CFLAGS
670 MOZILLA_LIBS
671 MOZILLA_CFLAGS
672 MOC4
673 MOC
674 QT_LIBS
675 QT_CFLAGS
676 GSTREAMER_MIXER_PROVIDER
677 GSTREAMER_FILE_READER
678 GST_PLUGIN_LDFLAGS
679 GSTREAMER_PLUGINS_BASE_LIBS
680 GSTREAMER_PLUGINS_BASE_CFLAGS
681 GSTREAMER_BASE_LIBS
682 GSTREAMER_BASE_CFLAGS
683 GSTREAMER_LIBS
684 GSTREAMER_CFLAGS
685 GDK_LIBS
686 GDK_CFLAGS
687 GCONF_LIBS
688 GCONF_CFLAGS
689 XTEST_LIBS
690 CAIRO_LIBS
691 CAIRO_CFLAGS
692 PANGOFT2_LIBS
693 PANGOFT2_CFLAGS
694 FREETYPE2_LIBS
695 FREETYPE2_CFLAGS
696 GTK_LIBS
697 GTK_CFLAGS
698 X_EXTRA_LIBS
699 X_LIBS
700 X_PRE_LIBS
701 X_CFLAGS
702 XMKMF
703 XSLT_LIBS
704 XSLT_CFLAGS
705 XML_LIBS
706 XML_CFLAGS
707 PKG_CONFIG
708 ERROR_CFLAGS
709 STRICT_WARNING_CFLAGS
710 EXTRA_CFLAGS
711 WARNING_CFLAGS
712 LTLIBICONV
713 LIBICONV
714 LIBMAGIC
715 COLLECTIONS_PREFIX
716 PERL
717 CXXCPP
718 am__fastdepCXX_FALSE
719 am__fastdepCXX_TRUE
720 CXXDEPMODE
721 ac_ct_CXX
722 CXXFLAGS
723 CXX
724 OTOOL64
725 OTOOL
726 LIPO
727 NMEDIT
728 DSYMUTIL
729 RANLIB
730 AR
731 OBJDUMP
732 NM
733 ac_ct_DUMPBIN
734 DUMPBIN
735 LD
736 FGREP
737 SED
738 LIBTOOL
739 LN_S
740 CREATE_WRAPPERS_FALSE
741 CREATE_WRAPPERS_TRUE
742 CREATE_GJDOC_PARSER_FALSE
743 CREATE_GJDOC_PARSER_TRUE
744 CREATE_JNI_HEADERS_FALSE
745 CREATE_JNI_HEADERS_TRUE
746 glibjdir
747 nativeexeclibdir
748 toolexeclibdir
749 CREATE_GJDOC_FALSE
750 CREATE_GJDOC_TRUE
751 CREATE_PLUGIN_FALSE
752 CREATE_PLUGIN_TRUE
753 CREATE_QT_PEER_LIBRARIES_FALSE
754 CREATE_QT_PEER_LIBRARIES_TRUE
755 CREATE_GTK_PEER_LIBRARIES_FALSE
756 CREATE_GTK_PEER_LIBRARIES_TRUE
757 CREATE_DSSI_LIBRARIES_FALSE
758 CREATE_DSSI_LIBRARIES_TRUE
759 CREATE_ALSA_LIBRARIES_FALSE
760 CREATE_ALSA_LIBRARIES_TRUE
761 EGREP
762 GREP
763 CPP
764 am__fastdepCC_FALSE
765 am__fastdepCC_TRUE
766 CCDEPMODE
767 AMDEPBACKSLASH
768 AMDEP_FALSE
769 AMDEP_TRUE
770 am__quote
771 am__include
772 DEPDIR
773 OBJEXT
774 EXEEXT
775 ac_ct_CC
776 CPPFLAGS
777 LDFLAGS
778 CFLAGS
779 CC
780 CREATE_XMLJ_LIBRARY_FALSE
781 CREATE_XMLJ_LIBRARY_TRUE
782 default_toolkit
783 CREATE_GSTREAMER_PEER_LIBRARIES_FALSE
784 CREATE_GSTREAMER_PEER_LIBRARIES_TRUE
785 CREATE_GCONF_PEER_LIBRARIES_FALSE
786 CREATE_GCONF_PEER_LIBRARIES_TRUE
787 CREATE_CORE_JNI_LIBRARIES_FALSE
788 CREATE_CORE_JNI_LIBRARIES_TRUE
789 CREATE_JNI_LIBRARIES_FALSE
790 CREATE_JNI_LIBRARIES_TRUE
791 CREATE_COLLECTIONS_FALSE
792 CREATE_COLLECTIONS_TRUE
793 am__untar
794 am__tar
795 AMTAR
796 am__leading_dot
797 SET_MAKE
798 AWK
799 mkdir_p
800 MKDIR_P
801 INSTALL_STRIP_PROGRAM
802 STRIP
803 install_sh
804 MAKEINFO
805 AUTOHEADER
806 AUTOMAKE
807 AUTOCONF
808 ACLOCAL
809 VERSION
810 PACKAGE
811 CYGPATH_W
812 am__isrc
813 INSTALL_DATA
814 INSTALL_SCRIPT
815 INSTALL_PROGRAM
816 CLASSPATH_CONVENIENCE
817 CLASSPATH_MODULE
818 LIBVERSION
819 INSTALL_BINARIES_FALSE
820 INSTALL_BINARIES_TRUE
821 multi_basedir
822 GENINSRC_FALSE
823 GENINSRC_TRUE
824 JAVA_MAINTAINER_MODE_FALSE
825 JAVA_MAINTAINER_MODE_TRUE
826 target_os
827 target_vendor
828 target_cpu
829 target
830 host_os
831 host_vendor
832 host_cpu
833 host
834 build_os
835 build_vendor
836 build_cpu
837 build
838 target_alias
839 host_alias
840 build_alias
841 LIBS
842 ECHO_T
843 ECHO_N
844 ECHO_C
845 DEFS
846 mandir
847 localedir
848 libdir
849 psdir
850 pdfdir
851 dvidir
852 htmldir
853 infodir
854 docdir
855 oldincludedir
856 includedir
857 localstatedir
858 sharedstatedir
859 sysconfdir
860 datadir
861 datarootdir
862 libexecdir
863 sbindir
864 bindir
865 program_transform_name
866 prefix
867 exec_prefix
868 PACKAGE_URL
869 PACKAGE_BUGREPORT
870 PACKAGE_STRING
871 PACKAGE_VERSION
872 PACKAGE_TARNAME
873 PACKAGE_NAME
874 PATH_SEPARATOR
875 SHELL'
876 ac_subst_files=''
877 ac_user_opts='
878 enable_option_checking
879 enable_java_maintainer_mode
880 enable_generated_files_in_srcdir
881 enable_multilib
882 enable_collections
883 enable_jni
884 enable_core_jni
885 enable_default_preferences_peer
886 enable_gconf_peer
887 enable_gconf_peers
888 enable_gstreamer_peer
889 enable_gstreamer_peers
890 enable_Werror
891 enable_default_toolkit
892 enable_xmlj
893 enable_alsa
894 enable_dependency_tracking
895 enable_dssi
896 enable_gtk_peer
897 enable_gtk_peers
898 enable_qt_peer
899 enable_plugin
900 enable_gmp
901 enable_gjdoc
902 with_native_libdir
903 with_glibj_dir
904 with_antlr_jar
905 enable_regen_headers
906 enable_regen_gjdoc_parser
907 enable_tool_wrappers
908 enable_static
909 enable_shared
910 with_pic
911 enable_fast_install
912 with_gnu_ld
913 enable_libtool_lock
914 enable_rpath
915 with_libiconv_prefix
916 with_x
917 with_qt4dir
918 with_gmp
919 with_gmp_include
920 with_gmp_lib
921 with_javah
922 with_vm_classes
923 enable_maintainer_mode
924 enable_debug
925 enable_load_library
926 with_ecj_jar
927 enable_java_lang_system_explicit_initialization
928 with_jar
929 with_glibj
930 enable_examples
931 enable_tools
932 with_gjdoc
933 with_jay
934 enable_portable_native_sync
935 with_glibj_zip
936 with_escher
937 enable_local_sockets
938 '
939       ac_precious_vars='build_alias
940 host_alias
941 target_alias
942 CC
943 CFLAGS
944 LDFLAGS
945 LIBS
946 CPPFLAGS
947 CPP
948 CXX
949 CXXFLAGS
950 CCC
951 CXXCPP
952 XMKMF'
953
954
955 # Initialize some variables set by options.
956 ac_init_help=
957 ac_init_version=false
958 ac_unrecognized_opts=
959 ac_unrecognized_sep=
960 # The variables have the same names as the options, with
961 # dashes changed to underlines.
962 cache_file=/dev/null
963 exec_prefix=NONE
964 no_create=
965 no_recursion=
966 prefix=NONE
967 program_prefix=NONE
968 program_suffix=NONE
969 program_transform_name=s,x,x,
970 silent=
971 site=
972 srcdir=
973 verbose=
974 x_includes=NONE
975 x_libraries=NONE
976
977 # Installation directory options.
978 # These are left unexpanded so users can "make install exec_prefix=/foo"
979 # and all the variables that are supposed to be based on exec_prefix
980 # by default will actually change.
981 # Use braces instead of parens because sh, perl, etc. also accept them.
982 # (The list follows the same order as the GNU Coding Standards.)
983 bindir='${exec_prefix}/bin'
984 sbindir='${exec_prefix}/sbin'
985 libexecdir='${exec_prefix}/libexec'
986 datarootdir='${prefix}/share'
987 datadir='${datarootdir}'
988 sysconfdir='${prefix}/etc'
989 sharedstatedir='${prefix}/com'
990 localstatedir='${prefix}/var'
991 includedir='${prefix}/include'
992 oldincludedir='/usr/include'
993 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
994 infodir='${datarootdir}/info'
995 htmldir='${docdir}'
996 dvidir='${docdir}'
997 pdfdir='${docdir}'
998 psdir='${docdir}'
999 libdir='${exec_prefix}/lib'
1000 localedir='${datarootdir}/locale'
1001 mandir='${datarootdir}/man'
1002
1003 ac_prev=
1004 ac_dashdash=
1005 for ac_option
1006 do
1007   # If the previous option needs an argument, assign it.
1008   if test -n "$ac_prev"; then
1009     eval $ac_prev=\$ac_option
1010     ac_prev=
1011     continue
1012   fi
1013
1014   case $ac_option in
1015   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1016   *)    ac_optarg=yes ;;
1017   esac
1018
1019   # Accept the important Cygnus configure options, so we can diagnose typos.
1020
1021   case $ac_dashdash$ac_option in
1022   --)
1023     ac_dashdash=yes ;;
1024
1025   -bindir | --bindir | --bindi | --bind | --bin | --bi)
1026     ac_prev=bindir ;;
1027   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1028     bindir=$ac_optarg ;;
1029
1030   -build | --build | --buil | --bui | --bu)
1031     ac_prev=build_alias ;;
1032   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1033     build_alias=$ac_optarg ;;
1034
1035   -cache-file | --cache-file | --cache-fil | --cache-fi \
1036   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1037     ac_prev=cache_file ;;
1038   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1039   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1040     cache_file=$ac_optarg ;;
1041
1042   --config-cache | -C)
1043     cache_file=config.cache ;;
1044
1045   -datadir | --datadir | --datadi | --datad)
1046     ac_prev=datadir ;;
1047   -datadir=* | --datadir=* | --datadi=* | --datad=*)
1048     datadir=$ac_optarg ;;
1049
1050   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1051   | --dataroo | --dataro | --datar)
1052     ac_prev=datarootdir ;;
1053   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1054   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1055     datarootdir=$ac_optarg ;;
1056
1057   -disable-* | --disable-*)
1058     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1059     # Reject names that are not valid shell variable names.
1060     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061       as_fn_error "invalid feature name: $ac_useropt"
1062     ac_useropt_orig=$ac_useropt
1063     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064     case $ac_user_opts in
1065       *"
1066 "enable_$ac_useropt"
1067 "*) ;;
1068       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1069          ac_unrecognized_sep=', ';;
1070     esac
1071     eval enable_$ac_useropt=no ;;
1072
1073   -docdir | --docdir | --docdi | --doc | --do)
1074     ac_prev=docdir ;;
1075   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1076     docdir=$ac_optarg ;;
1077
1078   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1079     ac_prev=dvidir ;;
1080   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1081     dvidir=$ac_optarg ;;
1082
1083   -enable-* | --enable-*)
1084     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1085     # Reject names that are not valid shell variable names.
1086     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1087       as_fn_error "invalid feature name: $ac_useropt"
1088     ac_useropt_orig=$ac_useropt
1089     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1090     case $ac_user_opts in
1091       *"
1092 "enable_$ac_useropt"
1093 "*) ;;
1094       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1095          ac_unrecognized_sep=', ';;
1096     esac
1097     eval enable_$ac_useropt=\$ac_optarg ;;
1098
1099   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1100   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1101   | --exec | --exe | --ex)
1102     ac_prev=exec_prefix ;;
1103   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1104   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1105   | --exec=* | --exe=* | --ex=*)
1106     exec_prefix=$ac_optarg ;;
1107
1108   -gas | --gas | --ga | --g)
1109     # Obsolete; use --with-gas.
1110     with_gas=yes ;;
1111
1112   -help | --help | --hel | --he | -h)
1113     ac_init_help=long ;;
1114   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1115     ac_init_help=recursive ;;
1116   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1117     ac_init_help=short ;;
1118
1119   -host | --host | --hos | --ho)
1120     ac_prev=host_alias ;;
1121   -host=* | --host=* | --hos=* | --ho=*)
1122     host_alias=$ac_optarg ;;
1123
1124   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1125     ac_prev=htmldir ;;
1126   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1127   | --ht=*)
1128     htmldir=$ac_optarg ;;
1129
1130   -includedir | --includedir | --includedi | --included | --include \
1131   | --includ | --inclu | --incl | --inc)
1132     ac_prev=includedir ;;
1133   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1134   | --includ=* | --inclu=* | --incl=* | --inc=*)
1135     includedir=$ac_optarg ;;
1136
1137   -infodir | --infodir | --infodi | --infod | --info | --inf)
1138     ac_prev=infodir ;;
1139   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1140     infodir=$ac_optarg ;;
1141
1142   -libdir | --libdir | --libdi | --libd)
1143     ac_prev=libdir ;;
1144   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1145     libdir=$ac_optarg ;;
1146
1147   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1148   | --libexe | --libex | --libe)
1149     ac_prev=libexecdir ;;
1150   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1151   | --libexe=* | --libex=* | --libe=*)
1152     libexecdir=$ac_optarg ;;
1153
1154   -localedir | --localedir | --localedi | --localed | --locale)
1155     ac_prev=localedir ;;
1156   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1157     localedir=$ac_optarg ;;
1158
1159   -localstatedir | --localstatedir | --localstatedi | --localstated \
1160   | --localstate | --localstat | --localsta | --localst | --locals)
1161     ac_prev=localstatedir ;;
1162   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1163   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1164     localstatedir=$ac_optarg ;;
1165
1166   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1167     ac_prev=mandir ;;
1168   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1169     mandir=$ac_optarg ;;
1170
1171   -nfp | --nfp | --nf)
1172     # Obsolete; use --without-fp.
1173     with_fp=no ;;
1174
1175   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1176   | --no-cr | --no-c | -n)
1177     no_create=yes ;;
1178
1179   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1180   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1181     no_recursion=yes ;;
1182
1183   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1184   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1185   | --oldin | --oldi | --old | --ol | --o)
1186     ac_prev=oldincludedir ;;
1187   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1188   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1189   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1190     oldincludedir=$ac_optarg ;;
1191
1192   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1193     ac_prev=prefix ;;
1194   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1195     prefix=$ac_optarg ;;
1196
1197   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1198   | --program-pre | --program-pr | --program-p)
1199     ac_prev=program_prefix ;;
1200   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1201   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1202     program_prefix=$ac_optarg ;;
1203
1204   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1205   | --program-suf | --program-su | --program-s)
1206     ac_prev=program_suffix ;;
1207   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1208   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1209     program_suffix=$ac_optarg ;;
1210
1211   -program-transform-name | --program-transform-name \
1212   | --program-transform-nam | --program-transform-na \
1213   | --program-transform-n | --program-transform- \
1214   | --program-transform | --program-transfor \
1215   | --program-transfo | --program-transf \
1216   | --program-trans | --program-tran \
1217   | --progr-tra | --program-tr | --program-t)
1218     ac_prev=program_transform_name ;;
1219   -program-transform-name=* | --program-transform-name=* \
1220   | --program-transform-nam=* | --program-transform-na=* \
1221   | --program-transform-n=* | --program-transform-=* \
1222   | --program-transform=* | --program-transfor=* \
1223   | --program-transfo=* | --program-transf=* \
1224   | --program-trans=* | --program-tran=* \
1225   | --progr-tra=* | --program-tr=* | --program-t=*)
1226     program_transform_name=$ac_optarg ;;
1227
1228   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1229     ac_prev=pdfdir ;;
1230   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1231     pdfdir=$ac_optarg ;;
1232
1233   -psdir | --psdir | --psdi | --psd | --ps)
1234     ac_prev=psdir ;;
1235   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1236     psdir=$ac_optarg ;;
1237
1238   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1239   | -silent | --silent | --silen | --sile | --sil)
1240     silent=yes ;;
1241
1242   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1243     ac_prev=sbindir ;;
1244   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1245   | --sbi=* | --sb=*)
1246     sbindir=$ac_optarg ;;
1247
1248   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1249   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1250   | --sharedst | --shareds | --shared | --share | --shar \
1251   | --sha | --sh)
1252     ac_prev=sharedstatedir ;;
1253   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1254   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1255   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1256   | --sha=* | --sh=*)
1257     sharedstatedir=$ac_optarg ;;
1258
1259   -site | --site | --sit)
1260     ac_prev=site ;;
1261   -site=* | --site=* | --sit=*)
1262     site=$ac_optarg ;;
1263
1264   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1265     ac_prev=srcdir ;;
1266   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1267     srcdir=$ac_optarg ;;
1268
1269   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1270   | --syscon | --sysco | --sysc | --sys | --sy)
1271     ac_prev=sysconfdir ;;
1272   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1273   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1274     sysconfdir=$ac_optarg ;;
1275
1276   -target | --target | --targe | --targ | --tar | --ta | --t)
1277     ac_prev=target_alias ;;
1278   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1279     target_alias=$ac_optarg ;;
1280
1281   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1282     verbose=yes ;;
1283
1284   -version | --version | --versio | --versi | --vers | -V)
1285     ac_init_version=: ;;
1286
1287   -with-* | --with-*)
1288     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1289     # Reject names that are not valid shell variable names.
1290     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1291       as_fn_error "invalid package name: $ac_useropt"
1292     ac_useropt_orig=$ac_useropt
1293     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1294     case $ac_user_opts in
1295       *"
1296 "with_$ac_useropt"
1297 "*) ;;
1298       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1299          ac_unrecognized_sep=', ';;
1300     esac
1301     eval with_$ac_useropt=\$ac_optarg ;;
1302
1303   -without-* | --without-*)
1304     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1305     # Reject names that are not valid shell variable names.
1306     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1307       as_fn_error "invalid package name: $ac_useropt"
1308     ac_useropt_orig=$ac_useropt
1309     ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1310     case $ac_user_opts in
1311       *"
1312 "with_$ac_useropt"
1313 "*) ;;
1314       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1315          ac_unrecognized_sep=', ';;
1316     esac
1317     eval with_$ac_useropt=no ;;
1318
1319   --x)
1320     # Obsolete; use --with-x.
1321     with_x=yes ;;
1322
1323   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1324   | --x-incl | --x-inc | --x-in | --x-i)
1325     ac_prev=x_includes ;;
1326   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1327   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1328     x_includes=$ac_optarg ;;
1329
1330   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1331   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1332     ac_prev=x_libraries ;;
1333   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1334   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1335     x_libraries=$ac_optarg ;;
1336
1337   -*) as_fn_error "unrecognized option: \`$ac_option'
1338 Try \`$0 --help' for more information."
1339     ;;
1340
1341   *=*)
1342     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1343     # Reject names that are not valid shell variable names.
1344     case $ac_envvar in #(
1345       '' | [0-9]* | *[!_$as_cr_alnum]* )
1346       as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1347     esac
1348     eval $ac_envvar=\$ac_optarg
1349     export $ac_envvar ;;
1350
1351   *)
1352     # FIXME: should be removed in autoconf 3.0.
1353     $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1354     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1355       $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1356     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1357     ;;
1358
1359   esac
1360 done
1361
1362 if test -n "$ac_prev"; then
1363   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1364   as_fn_error "missing argument to $ac_option"
1365 fi
1366
1367 if test -n "$ac_unrecognized_opts"; then
1368   case $enable_option_checking in
1369     no) ;;
1370     fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1371     *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1372   esac
1373 fi
1374
1375 # Check all directory arguments for consistency.
1376 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1377                 datadir sysconfdir sharedstatedir localstatedir includedir \
1378                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1379                 libdir localedir mandir
1380 do
1381   eval ac_val=\$$ac_var
1382   # Remove trailing slashes.
1383   case $ac_val in
1384     */ )
1385       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1386       eval $ac_var=\$ac_val;;
1387   esac
1388   # Be sure to have absolute directory names.
1389   case $ac_val in
1390     [\\/$]* | ?:[\\/]* )  continue;;
1391     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1392   esac
1393   as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1394 done
1395
1396 # There might be people who depend on the old broken behavior: `$host'
1397 # used to hold the argument of --host etc.
1398 # FIXME: To remove some day.
1399 build=$build_alias
1400 host=$host_alias
1401 target=$target_alias
1402
1403 # FIXME: To remove some day.
1404 if test "x$host_alias" != x; then
1405   if test "x$build_alias" = x; then
1406     cross_compiling=maybe
1407     $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1408     If a cross compiler is detected then cross compile mode will be used." >&2
1409   elif test "x$build_alias" != "x$host_alias"; then
1410     cross_compiling=yes
1411   fi
1412 fi
1413
1414 ac_tool_prefix=
1415 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1416
1417 test "$silent" = yes && exec 6>/dev/null
1418
1419
1420 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1421 ac_ls_di=`ls -di .` &&
1422 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1423   as_fn_error "working directory cannot be determined"
1424 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1425   as_fn_error "pwd does not report name of working directory"
1426
1427
1428 # Find the source files, if location was not specified.
1429 if test -z "$srcdir"; then
1430   ac_srcdir_defaulted=yes
1431   # Try the directory containing this script, then the parent directory.
1432   ac_confdir=`$as_dirname -- "$as_myself" ||
1433 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1434          X"$as_myself" : 'X\(//\)[^/]' \| \
1435          X"$as_myself" : 'X\(//\)$' \| \
1436          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1437 $as_echo X"$as_myself" |
1438     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1439             s//\1/
1440             q
1441           }
1442           /^X\(\/\/\)[^/].*/{
1443             s//\1/
1444             q
1445           }
1446           /^X\(\/\/\)$/{
1447             s//\1/
1448             q
1449           }
1450           /^X\(\/\).*/{
1451             s//\1/
1452             q
1453           }
1454           s/.*/./; q'`
1455   srcdir=$ac_confdir
1456   if test ! -r "$srcdir/$ac_unique_file"; then
1457     srcdir=..
1458   fi
1459 else
1460   ac_srcdir_defaulted=no
1461 fi
1462 if test ! -r "$srcdir/$ac_unique_file"; then
1463   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1464   as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1465 fi
1466 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1467 ac_abs_confdir=`(
1468         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1469         pwd)`
1470 # When building in place, set srcdir=.
1471 if test "$ac_abs_confdir" = "$ac_pwd"; then
1472   srcdir=.
1473 fi
1474 # Remove unnecessary trailing slashes from srcdir.
1475 # Double slashes in file names in object file debugging info
1476 # mess up M-x gdb in Emacs.
1477 case $srcdir in
1478 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1479 esac
1480 for ac_var in $ac_precious_vars; do
1481   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1482   eval ac_env_${ac_var}_value=\$${ac_var}
1483   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1484   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1485 done
1486
1487 #
1488 # Report the --help message.
1489 #
1490 if test "$ac_init_help" = "long"; then
1491   # Omit some internal or obsolete options to make the list less imposing.
1492   # This message is too long to be a string in the A/UX 3.1 sh.
1493   cat <<_ACEOF
1494 \`configure' configures GNU Classpath 0.99.1-pre to adapt to many kinds of systems.
1495
1496 Usage: $0 [OPTION]... [VAR=VALUE]...
1497
1498 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1499 VAR=VALUE.  See below for descriptions of some of the useful variables.
1500
1501 Defaults for the options are specified in brackets.
1502
1503 Configuration:
1504   -h, --help              display this help and exit
1505       --help=short        display options specific to this package
1506       --help=recursive    display the short help of all the included packages
1507   -V, --version           display version information and exit
1508   -q, --quiet, --silent   do not print \`checking...' messages
1509       --cache-file=FILE   cache test results in FILE [disabled]
1510   -C, --config-cache      alias for \`--cache-file=config.cache'
1511   -n, --no-create         do not create output files
1512       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1513
1514 Installation directories:
1515   --prefix=PREFIX         install architecture-independent files in PREFIX
1516                           [$ac_default_prefix]
1517   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1518                           [PREFIX]
1519
1520 By default, \`make install' will install all the files in
1521 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1522 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1523 for instance \`--prefix=\$HOME'.
1524
1525 For better control, use the options below.
1526
1527 Fine tuning of the installation directories:
1528   --bindir=DIR            user executables [EPREFIX/bin]
1529   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1530   --libexecdir=DIR        program executables [EPREFIX/libexec]
1531   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1532   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1533   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1534   --libdir=DIR            object code libraries [EPREFIX/lib]
1535   --includedir=DIR        C header files [PREFIX/include]
1536   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1537   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1538   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1539   --infodir=DIR           info documentation [DATAROOTDIR/info]
1540   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1541   --mandir=DIR            man documentation [DATAROOTDIR/man]
1542   --docdir=DIR            documentation root [DATAROOTDIR/doc/classpath]
1543   --htmldir=DIR           html documentation [DOCDIR]
1544   --dvidir=DIR            dvi documentation [DOCDIR]
1545   --pdfdir=DIR            pdf documentation [DOCDIR]
1546   --psdir=DIR             ps documentation [DOCDIR]
1547 _ACEOF
1548
1549   cat <<\_ACEOF
1550
1551 Program names:
1552   --program-prefix=PREFIX            prepend PREFIX to installed program names
1553   --program-suffix=SUFFIX            append SUFFIX to installed program names
1554   --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1555
1556 X features:
1557   --x-includes=DIR    X include files are in DIR
1558   --x-libraries=DIR   X library files are in DIR
1559
1560 System types:
1561   --build=BUILD     configure for building on BUILD [guessed]
1562   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1563   --target=TARGET   configure for building compilers for TARGET [HOST]
1564 _ACEOF
1565 fi
1566
1567 if test -n "$ac_init_help"; then
1568   case $ac_init_help in
1569      short | recursive ) echo "Configuration of GNU Classpath 0.99.1-pre:";;
1570    esac
1571   cat <<\_ACEOF
1572
1573 Optional Features:
1574   --disable-option-checking  ignore unrecognized --enable/--with options
1575   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1576   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1577   --enable-java-maintainer-mode
1578                           allow rebuilding of .class and .h files
1579   --enable-generated-files-in-srcdir
1580                           put copies of generated files in source dir
1581                           intended for creating source tarballs for users
1582                           without texinfo, perl, bison or flex.
1583   --enable-multilib       build many library versions (default)
1584   --enable-collections    create collections.jar default=no
1585   --enable-jni            compile JNI source default=yes
1586   --enable-core-jni       compile JNI sources for core default=yes
1587   --enable-default-preferences-peer[=peer type or class name]
1588                           specify one of: "gconf" [default] for a GConf based
1589                           backend, "file" for a file based one, "memory" for a
1590                           transient one, or a fully qualified class name
1591                           implementing java.util.prefs.PreferencesFactory
1592   --disable-gconf-peer    compile GConf native peers (disabled by
1593                           --disable-jni) default=yes
1594
1595   --enable-gstreamer-peer compile GStreamer native peers (disabled by
1596                           --disable-jni) default=no
1597   --enable-Werror         whether to compile C code with -Werror which turns
1598                           any compiler warning into a compilation failure
1599                           default=no
1600   --enable-default-toolkit
1601                           fully qualified class name of default AWT toolkit
1602   --enable-xmlj           compile native libxml/xslt library default=no
1603   --disable-alsa          compile ALSA providers (enable by --enable-alsa)
1604                           default=yes
1605   --disable-dependency-tracking  speeds up one-time build
1606   --enable-dependency-tracking   do not reject slow dependency extractors
1607   --disable-dssi          compile DSSI providers (enable by --enable-dssi)
1608                           default=yes
1609   --disable-gtk-peer      compile GTK native peers (disabled by --disable-jni)
1610                           default=yes
1611   --enable-qt-peer        compile Qt4 native peers (disabled by --disable-jni)
1612                           default=no
1613   --disable-plugin        compile gcjwebplugin (disabled by --disable-plugin)
1614                           default=yes
1615   --enable-gmp            compile native java.math.BigInteger library
1616                           (disabled by --disable-gmp) default=yes
1617   --disable-gjdoc         compile GJDoc (disabled by --disable-gjdoc)
1618                           default=yes
1619   --enable-regen-headers  automatically regenerate JNI headers default=yes if
1620                           headers don't exist
1621   --enable-regen-gjdoc-parser
1622                           automatically regenerate the GJDoc parser
1623                           default=yes if generated source doesn't exist
1624   --enable-tool-wrappers  create tool wrapper binaries default=no
1625   --enable-static[=PKGS]  build static libraries [default=no]
1626   --enable-shared[=PKGS]  build shared libraries [default=yes]
1627   --enable-fast-install[=PKGS]
1628                           optimize for fast installation [default=yes]
1629   --disable-libtool-lock  avoid locking (might break parallel builds)
1630   --disable-rpath         do not hardcode runtime library paths
1631   --enable-maintainer-mode  enable make rules and dependencies not useful
1632                           (and sometimes confusing) to the casual installer
1633   --enable-debug          enable runtime debugging code
1634   --enable-load-library   enable to use JNI native methods default=yes
1635   --enable-java-lang-system-explicit-initialization
1636                           will the VM explicitly invoke java.lang.System's
1637                           static initialization methods default=no
1638   --enable-examples       enable build of the examples default=yes
1639   --enable-tools          enable build of the tools default=yes
1640   --enable-portable-native-sync
1641                           synchronize VM threads portably
1642   --enable-local-sockets  enables local (AF_LOCAL) socket API default: no
1643
1644 Optional Packages:
1645   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1646   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1647   --with-native-libdir    sets the installation directory for native libraries
1648                           default='${libdir}/${PACKAGE}'
1649   --with-glibj-dir        sets the installation directory for glibj.zip
1650                           default='${libdir}/${PACKAGE}'
1651   --with-antlr-jar=file   Use ANTLR from the specified jar file
1652   --with-pic              try to use only PIC/non-PIC objects [default=use
1653                           both]
1654   --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1655   --with-gnu-ld           assume the C compiler uses GNU ld default=no
1656   --with-libiconv-prefix[=DIR]  search for libiconv in DIR/include and DIR/lib
1657   --without-libiconv-prefix     don't search for libiconv in includedir and libdir
1658   --with-x                use the X Window System
1659   --with-qt4dir=DIR       Qt4 installation directory used for OS-X. For other
1660                           systems use pkg-config.
1661   --with-gmp=PATH         specify prefix directory for the installed GMP package.
1662                           Equivalent to --with-gmp-include=PATH/include
1663                           plus --with-gmp-lib=PATH/lib
1664   --with-gmp-include=PATH specify directory for installed GMP include files
1665   --with-gmp-lib=PATH     specify directory for the installed GMP library
1666   --with-javah            specify path or name of a javah-like program
1667   --with-vm-classes       specify path to VM override source files
1668   --with-ecj-jar=ABS.PATH specify jar file containing the Eclipse Java
1669                           Compiler
1670   --with-jar=PATH         define to use a jar style tool
1671   --with-glibj            define what to install (zip|flat|both|none|build)
1672                           [default=zip]
1673   --with-gjdoc            generate documentation using gjdoc (default is NO)
1674   --with-jay=DIR|PATH     Regenerate the parsers with jay
1675   --with-glibj-zip=ABS.PATH
1676                           use prebuilt glibj.zip class library
1677   --with-escher=ABS.PATH  specify path to escher dir or JAR for X peers
1678
1679 Some influential environment variables:
1680   CC          C compiler command
1681   CFLAGS      C compiler flags
1682   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1683               nonstandard directory <lib dir>
1684   LIBS        libraries to pass to the linker, e.g. -l<library>
1685   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1686               you have headers in a nonstandard directory <include dir>
1687   CPP         C preprocessor
1688   CXX         C++ compiler command
1689   CXXFLAGS    C++ compiler flags
1690   CXXCPP      C++ preprocessor
1691   XMKMF       Path to xmkmf, Makefile generator for X Window System
1692
1693 Use these variables to override the choices made by `configure' or to help
1694 it to find libraries and programs with nonstandard names/locations.
1695
1696 Report bugs to <classpath@gnu.org>.
1697 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
1698 General help using GNU software: <http://www.gnu.org/gethelp/>.
1699 _ACEOF
1700 ac_status=$?
1701 fi
1702
1703 if test "$ac_init_help" = "recursive"; then
1704   # If there are subdirs, report their specific --help.
1705   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1706     test -d "$ac_dir" ||
1707       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1708       continue
1709     ac_builddir=.
1710
1711 case "$ac_dir" in
1712 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1713 *)
1714   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1715   # A ".." for each directory in $ac_dir_suffix.
1716   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1717   case $ac_top_builddir_sub in
1718   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1719   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1720   esac ;;
1721 esac
1722 ac_abs_top_builddir=$ac_pwd
1723 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1724 # for backward compatibility:
1725 ac_top_builddir=$ac_top_build_prefix
1726
1727 case $srcdir in
1728   .)  # We are building in place.
1729     ac_srcdir=.
1730     ac_top_srcdir=$ac_top_builddir_sub
1731     ac_abs_top_srcdir=$ac_pwd ;;
1732   [\\/]* | ?:[\\/]* )  # Absolute name.
1733     ac_srcdir=$srcdir$ac_dir_suffix;
1734     ac_top_srcdir=$srcdir
1735     ac_abs_top_srcdir=$srcdir ;;
1736   *) # Relative name.
1737     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1738     ac_top_srcdir=$ac_top_build_prefix$srcdir
1739     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1740 esac
1741 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1742
1743     cd "$ac_dir" || { ac_status=$?; continue; }
1744     # Check for guested configure.
1745     if test -f "$ac_srcdir/configure.gnu"; then
1746       echo &&
1747       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1748     elif test -f "$ac_srcdir/configure"; then
1749       echo &&
1750       $SHELL "$ac_srcdir/configure" --help=recursive
1751     else
1752       $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1753     fi || ac_status=$?
1754     cd "$ac_pwd" || { ac_status=$?; break; }
1755   done
1756 fi
1757
1758 test -n "$ac_init_help" && exit $ac_status
1759 if $ac_init_version; then
1760   cat <<\_ACEOF
1761 GNU Classpath configure 0.99.1-pre
1762 generated by GNU Autoconf 2.64
1763
1764 Copyright (C) 2009 Free Software Foundation, Inc.
1765 This configure script is free software; the Free Software Foundation
1766 gives unlimited permission to copy, distribute and modify it.
1767 _ACEOF
1768   exit
1769 fi
1770
1771 ## ------------------------ ##
1772 ## Autoconf initialization. ##
1773 ## ------------------------ ##
1774
1775 # ac_fn_c_try_compile LINENO
1776 # --------------------------
1777 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1778 ac_fn_c_try_compile ()
1779 {
1780   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1781   rm -f conftest.$ac_objext
1782   if { { ac_try="$ac_compile"
1783 case "(($ac_try" in
1784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1785   *) ac_try_echo=$ac_try;;
1786 esac
1787 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1788 $as_echo "$ac_try_echo"; } >&5
1789   (eval "$ac_compile") 2>conftest.err
1790   ac_status=$?
1791   if test -s conftest.err; then
1792     grep -v '^ *+' conftest.err >conftest.er1
1793     cat conftest.er1 >&5
1794     mv -f conftest.er1 conftest.err
1795   fi
1796   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1797   test $ac_status = 0; } && {
1798          test -z "$ac_c_werror_flag" ||
1799          test ! -s conftest.err
1800        } && test -s conftest.$ac_objext; then :
1801   ac_retval=0
1802 else
1803   $as_echo "$as_me: failed program was:" >&5
1804 sed 's/^/| /' conftest.$ac_ext >&5
1805
1806         ac_retval=1
1807 fi
1808   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809   return $ac_retval
1810
1811 } # ac_fn_c_try_compile
1812
1813 # ac_fn_c_try_cpp LINENO
1814 # ----------------------
1815 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1816 ac_fn_c_try_cpp ()
1817 {
1818   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819   if { { ac_try="$ac_cpp conftest.$ac_ext"
1820 case "(($ac_try" in
1821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822   *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1827   ac_status=$?
1828   if test -s conftest.err; then
1829     grep -v '^ *+' conftest.err >conftest.er1
1830     cat conftest.er1 >&5
1831     mv -f conftest.er1 conftest.err
1832   fi
1833   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834   test $ac_status = 0; } >/dev/null && {
1835          test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1836          test ! -s conftest.err
1837        }; then :
1838   ac_retval=0
1839 else
1840   $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1842
1843     ac_retval=1
1844 fi
1845   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1846   return $ac_retval
1847
1848 } # ac_fn_c_try_cpp
1849
1850 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1851 # -------------------------------------------------------
1852 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1853 # the include files in INCLUDES and setting the cache variable VAR
1854 # accordingly.
1855 ac_fn_c_check_header_mongrel ()
1856 {
1857   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1858   if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1859   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1860 $as_echo_n "checking for $2... " >&6; }
1861 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1862   $as_echo_n "(cached) " >&6
1863 fi
1864 eval ac_res=\$$3
1865                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1866 $as_echo "$ac_res" >&6; }
1867 else
1868   # Is the header compilable?
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1870 $as_echo_n "checking $2 usability... " >&6; }
1871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1872 /* end confdefs.h.  */
1873 $4
1874 #include <$2>
1875 _ACEOF
1876 if ac_fn_c_try_compile "$LINENO"; then :
1877   ac_header_compiler=yes
1878 else
1879   ac_header_compiler=no
1880 fi
1881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1883 $as_echo "$ac_header_compiler" >&6; }
1884
1885 # Is the header present?
1886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1887 $as_echo_n "checking $2 presence... " >&6; }
1888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1889 /* end confdefs.h.  */
1890 #include <$2>
1891 _ACEOF
1892 if ac_fn_c_try_cpp "$LINENO"; then :
1893   ac_header_preproc=yes
1894 else
1895   ac_header_preproc=no
1896 fi
1897 rm -f conftest.err conftest.$ac_ext
1898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1899 $as_echo "$ac_header_preproc" >&6; }
1900
1901 # So?  What about this header?
1902 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1903   yes:no: )
1904     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1905 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1906     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1907 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1908     ;;
1909   no:yes:* )
1910     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1911 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1912     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1913 $as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1914     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1915 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1916     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1917 $as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1918     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1919 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1920 ( cat <<\_ASBOX
1921 ## -------------------------------- ##
1922 ## Report this to classpath@gnu.org ##
1923 ## -------------------------------- ##
1924 _ASBOX
1925      ) | sed "s/^/$as_me: WARNING:     /" >&2
1926     ;;
1927 esac
1928   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1929 $as_echo_n "checking for $2... " >&6; }
1930 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1931   $as_echo_n "(cached) " >&6
1932 else
1933   eval "$3=\$ac_header_compiler"
1934 fi
1935 eval ac_res=\$$3
1936                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1937 $as_echo "$ac_res" >&6; }
1938 fi
1939   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1940
1941 } # ac_fn_c_check_header_mongrel
1942
1943 # ac_fn_c_try_run LINENO
1944 # ----------------------
1945 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1946 # that executables *can* be run.
1947 ac_fn_c_try_run ()
1948 {
1949   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1950   if { { ac_try="$ac_link"
1951 case "(($ac_try" in
1952   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1953   *) ac_try_echo=$ac_try;;
1954 esac
1955 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1956 $as_echo "$ac_try_echo"; } >&5
1957   (eval "$ac_link") 2>&5
1958   ac_status=$?
1959   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1960   test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1961   { { case "(($ac_try" in
1962   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963   *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967   (eval "$ac_try") 2>&5
1968   ac_status=$?
1969   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1970   test $ac_status = 0; }; }; then :
1971   ac_retval=0
1972 else
1973   $as_echo "$as_me: program exited with status $ac_status" >&5
1974        $as_echo "$as_me: failed program was:" >&5
1975 sed 's/^/| /' conftest.$ac_ext >&5
1976
1977        ac_retval=$ac_status
1978 fi
1979   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1980   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1981   return $ac_retval
1982
1983 } # ac_fn_c_try_run
1984
1985 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1986 # -------------------------------------------------------
1987 # Tests whether HEADER exists and can be compiled using the include files in
1988 # INCLUDES, setting the cache variable VAR accordingly.
1989 ac_fn_c_check_header_compile ()
1990 {
1991   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1992   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1993 $as_echo_n "checking for $2... " >&6; }
1994 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1995   $as_echo_n "(cached) " >&6
1996 else
1997   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1998 /* end confdefs.h.  */
1999 $4
2000 #include <$2>
2001 _ACEOF
2002 if ac_fn_c_try_compile "$LINENO"; then :
2003   eval "$3=yes"
2004 else
2005   eval "$3=no"
2006 fi
2007 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 fi
2009 eval ac_res=\$$3
2010                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2011 $as_echo "$ac_res" >&6; }
2012   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2013
2014 } # ac_fn_c_check_header_compile
2015
2016 # ac_fn_c_try_link LINENO
2017 # -----------------------
2018 # Try to link conftest.$ac_ext, and return whether this succeeded.
2019 ac_fn_c_try_link ()
2020 {
2021   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2022   rm -f conftest.$ac_objext conftest$ac_exeext
2023   if { { ac_try="$ac_link"
2024 case "(($ac_try" in
2025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2026   *) ac_try_echo=$ac_try;;
2027 esac
2028 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2029 $as_echo "$ac_try_echo"; } >&5
2030   (eval "$ac_link") 2>conftest.err
2031   ac_status=$?
2032   if test -s conftest.err; then
2033     grep -v '^ *+' conftest.err >conftest.er1
2034     cat conftest.er1 >&5
2035     mv -f conftest.er1 conftest.err
2036   fi
2037   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2038   test $ac_status = 0; } && {
2039          test -z "$ac_c_werror_flag" ||
2040          test ! -s conftest.err
2041        } && test -s conftest$ac_exeext && {
2042          test "$cross_compiling" = yes ||
2043          $as_test_x conftest$ac_exeext
2044        }; then :
2045   ac_retval=0
2046 else
2047   $as_echo "$as_me: failed program was:" >&5
2048 sed 's/^/| /' conftest.$ac_ext >&5
2049
2050         ac_retval=1
2051 fi
2052   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2053   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2054   # interfere with the next link command; also delete a directory that is
2055   # left behind by Apple's compiler.  We do this before executing the actions.
2056   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2057   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2058   return $ac_retval
2059
2060 } # ac_fn_c_try_link
2061
2062 # ac_fn_c_check_func LINENO FUNC VAR
2063 # ----------------------------------
2064 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2065 ac_fn_c_check_func ()
2066 {
2067   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2068   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2069 $as_echo_n "checking for $2... " >&6; }
2070 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2071   $as_echo_n "(cached) " >&6
2072 else
2073   if test x$gcc_no_link = xyes; then
2074   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2075 fi
2076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2077 /* end confdefs.h.  */
2078 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2079    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2080 #define $2 innocuous_$2
2081
2082 /* System header to define __stub macros and hopefully few prototypes,
2083     which can conflict with char $2 (); below.
2084     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2085     <limits.h> exists even on freestanding compilers.  */
2086
2087 #ifdef __STDC__
2088 # include <limits.h>
2089 #else
2090 # include <assert.h>
2091 #endif
2092
2093 #undef $2
2094
2095 /* Override any GCC internal prototype to avoid an error.
2096    Use char because int might match the return type of a GCC
2097    builtin and then its argument prototype would still apply.  */
2098 #ifdef __cplusplus
2099 extern "C"
2100 #endif
2101 char $2 ();
2102 /* The GNU C library defines this for functions which it implements
2103     to always fail with ENOSYS.  Some functions are actually named
2104     something starting with __ and the normal name is an alias.  */
2105 #if defined __stub_$2 || defined __stub___$2
2106 choke me
2107 #endif
2108
2109 int
2110 main ()
2111 {
2112 return $2 ();
2113   ;
2114   return 0;
2115 }
2116 _ACEOF
2117 if ac_fn_c_try_link "$LINENO"; then :
2118   eval "$3=yes"
2119 else
2120   eval "$3=no"
2121 fi
2122 rm -f core conftest.err conftest.$ac_objext \
2123     conftest$ac_exeext conftest.$ac_ext
2124 fi
2125 eval ac_res=\$$3
2126                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2127 $as_echo "$ac_res" >&6; }
2128   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2129
2130 } # ac_fn_c_check_func
2131
2132 # ac_fn_cxx_try_compile LINENO
2133 # ----------------------------
2134 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2135 ac_fn_cxx_try_compile ()
2136 {
2137   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138   rm -f conftest.$ac_objext
2139   if { { ac_try="$ac_compile"
2140 case "(($ac_try" in
2141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2142   *) ac_try_echo=$ac_try;;
2143 esac
2144 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2145 $as_echo "$ac_try_echo"; } >&5
2146   (eval "$ac_compile") 2>conftest.err
2147   ac_status=$?
2148   if test -s conftest.err; then
2149     grep -v '^ *+' conftest.err >conftest.er1
2150     cat conftest.er1 >&5
2151     mv -f conftest.er1 conftest.err
2152   fi
2153   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2154   test $ac_status = 0; } && {
2155          test -z "$ac_cxx_werror_flag" ||
2156          test ! -s conftest.err
2157        } && test -s conftest.$ac_objext; then :
2158   ac_retval=0
2159 else
2160   $as_echo "$as_me: failed program was:" >&5
2161 sed 's/^/| /' conftest.$ac_ext >&5
2162
2163         ac_retval=1
2164 fi
2165   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2166   return $ac_retval
2167
2168 } # ac_fn_cxx_try_compile
2169
2170 # ac_fn_cxx_try_cpp LINENO
2171 # ------------------------
2172 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2173 ac_fn_cxx_try_cpp ()
2174 {
2175   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2176   if { { ac_try="$ac_cpp conftest.$ac_ext"
2177 case "(($ac_try" in
2178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2179   *) ac_try_echo=$ac_try;;
2180 esac
2181 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2182 $as_echo "$ac_try_echo"; } >&5
2183   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2184   ac_status=$?
2185   if test -s conftest.err; then
2186     grep -v '^ *+' conftest.err >conftest.er1
2187     cat conftest.er1 >&5
2188     mv -f conftest.er1 conftest.err
2189   fi
2190   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2191   test $ac_status = 0; } >/dev/null && {
2192          test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2193          test ! -s conftest.err
2194        }; then :
2195   ac_retval=0
2196 else
2197   $as_echo "$as_me: failed program was:" >&5
2198 sed 's/^/| /' conftest.$ac_ext >&5
2199
2200     ac_retval=1
2201 fi
2202   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2203   return $ac_retval
2204
2205 } # ac_fn_cxx_try_cpp
2206
2207 # ac_fn_cxx_try_link LINENO
2208 # -------------------------
2209 # Try to link conftest.$ac_ext, and return whether this succeeded.
2210 ac_fn_cxx_try_link ()
2211 {
2212   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2213   rm -f conftest.$ac_objext conftest$ac_exeext
2214   if { { ac_try="$ac_link"
2215 case "(($ac_try" in
2216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2217   *) ac_try_echo=$ac_try;;
2218 esac
2219 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2220 $as_echo "$ac_try_echo"; } >&5
2221   (eval "$ac_link") 2>conftest.err
2222   ac_status=$?
2223   if test -s conftest.err; then
2224     grep -v '^ *+' conftest.err >conftest.er1
2225     cat conftest.er1 >&5
2226     mv -f conftest.er1 conftest.err
2227   fi
2228   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2229   test $ac_status = 0; } && {
2230          test -z "$ac_cxx_werror_flag" ||
2231          test ! -s conftest.err
2232        } && test -s conftest$ac_exeext && {
2233          test "$cross_compiling" = yes ||
2234          $as_test_x conftest$ac_exeext
2235        }; then :
2236   ac_retval=0
2237 else
2238   $as_echo "$as_me: failed program was:" >&5
2239 sed 's/^/| /' conftest.$ac_ext >&5
2240
2241         ac_retval=1
2242 fi
2243   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2244   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2245   # interfere with the next link command; also delete a directory that is
2246   # left behind by Apple's compiler.  We do this before executing the actions.
2247   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2248   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2249   return $ac_retval
2250
2251 } # ac_fn_cxx_try_link
2252
2253 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2254 # ----------------------------------------------------
2255 # Tries to find if the field MEMBER exists in type AGGR, after including
2256 # INCLUDES, setting cache variable VAR accordingly.
2257 ac_fn_c_check_member ()
2258 {
2259   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2260   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2261 $as_echo_n "checking for $2.$3... " >&6; }
2262 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2263   $as_echo_n "(cached) " >&6
2264 else
2265   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2266 /* end confdefs.h.  */
2267 $5
2268 int
2269 main ()
2270 {
2271 static $2 ac_aggr;
2272 if (ac_aggr.$3)
2273 return 0;
2274   ;
2275   return 0;
2276 }
2277 _ACEOF
2278 if ac_fn_c_try_compile "$LINENO"; then :
2279   eval "$4=yes"
2280 else
2281   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2282 /* end confdefs.h.  */
2283 $5
2284 int
2285 main ()
2286 {
2287 static $2 ac_aggr;
2288 if (sizeof ac_aggr.$3)
2289 return 0;
2290   ;
2291   return 0;
2292 }
2293 _ACEOF
2294 if ac_fn_c_try_compile "$LINENO"; then :
2295   eval "$4=yes"
2296 else
2297   eval "$4=no"
2298 fi
2299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2300 fi
2301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2302 fi
2303 eval ac_res=\$$4
2304                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2305 $as_echo "$ac_res" >&6; }
2306   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2307
2308 } # ac_fn_c_check_member
2309
2310 # ac_fn_c_check_decl LINENO SYMBOL VAR
2311 # ------------------------------------
2312 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2313 ac_fn_c_check_decl ()
2314 {
2315   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2316   as_decl_name=`echo $2|sed 's/ *(.*//'`
2317   as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2318   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2319 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321   $as_echo_n "(cached) " >&6
2322 else
2323   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h.  */
2325 $4
2326 int
2327 main ()
2328 {
2329 #ifndef $as_decl_name
2330 #ifdef __cplusplus
2331   (void) $as_decl_use;
2332 #else
2333   (void) $as_decl_name;
2334 #endif
2335 #endif
2336
2337   ;
2338   return 0;
2339 }
2340 _ACEOF
2341 if ac_fn_c_try_compile "$LINENO"; then :
2342   eval "$3=yes"
2343 else
2344   eval "$3=no"
2345 fi
2346 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2347 fi
2348 eval ac_res=\$$3
2349                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2350 $as_echo "$ac_res" >&6; }
2351   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2352
2353 } # ac_fn_c_check_decl
2354
2355 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2356 # -------------------------------------------
2357 # Tests whether TYPE exists after having included INCLUDES, setting cache
2358 # variable VAR accordingly.
2359 ac_fn_c_check_type ()
2360 {
2361   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2362   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2363 $as_echo_n "checking for $2... " >&6; }
2364 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2365   $as_echo_n "(cached) " >&6
2366 else
2367   eval "$3=no"
2368   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2369 /* end confdefs.h.  */
2370 $4
2371 int
2372 main ()
2373 {
2374 if (sizeof ($2))
2375          return 0;
2376   ;
2377   return 0;
2378 }
2379 _ACEOF
2380 if ac_fn_c_try_compile "$LINENO"; then :
2381   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2382 /* end confdefs.h.  */
2383 $4
2384 int
2385 main ()
2386 {
2387 if (sizeof (($2)))
2388             return 0;
2389   ;
2390   return 0;
2391 }
2392 _ACEOF
2393 if ac_fn_c_try_compile "$LINENO"; then :
2394
2395 else
2396   eval "$3=yes"
2397 fi
2398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 fi
2400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2401 fi
2402 eval ac_res=\$$3
2403                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2404 $as_echo "$ac_res" >&6; }
2405   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2406
2407 } # ac_fn_c_check_type
2408
2409 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2410 # --------------------------------------------
2411 # Tries to find the compile-time value of EXPR in a program that includes
2412 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2413 # computed
2414 ac_fn_c_compute_int ()
2415 {
2416   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2417   if test "$cross_compiling" = yes; then
2418     # Depending upon the size, compute the lo and hi bounds.
2419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2420 /* end confdefs.h.  */
2421 $4
2422 int
2423 main ()
2424 {
2425 static int test_array [1 - 2 * !(($2) >= 0)];
2426 test_array [0] = 0
2427
2428   ;
2429   return 0;
2430 }
2431 _ACEOF
2432 if ac_fn_c_try_compile "$LINENO"; then :
2433   ac_lo=0 ac_mid=0
2434   while :; do
2435     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2436 /* end confdefs.h.  */
2437 $4
2438 int
2439 main ()
2440 {
2441 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2442 test_array [0] = 0
2443
2444   ;
2445   return 0;
2446 }
2447 _ACEOF
2448 if ac_fn_c_try_compile "$LINENO"; then :
2449   ac_hi=$ac_mid; break
2450 else
2451   as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2452                         if test $ac_lo -le $ac_mid; then
2453                           ac_lo= ac_hi=
2454                           break
2455                         fi
2456                         as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2457 fi
2458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2459   done
2460 else
2461   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2462 /* end confdefs.h.  */
2463 $4
2464 int
2465 main ()
2466 {
2467 static int test_array [1 - 2 * !(($2) < 0)];
2468 test_array [0] = 0
2469
2470   ;
2471   return 0;
2472 }
2473 _ACEOF
2474 if ac_fn_c_try_compile "$LINENO"; then :
2475   ac_hi=-1 ac_mid=-1
2476   while :; do
2477     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2478 /* end confdefs.h.  */
2479 $4
2480 int
2481 main ()
2482 {
2483 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2484 test_array [0] = 0
2485
2486   ;
2487   return 0;
2488 }
2489 _ACEOF
2490 if ac_fn_c_try_compile "$LINENO"; then :
2491   ac_lo=$ac_mid; break
2492 else
2493   as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2494                         if test $ac_mid -le $ac_hi; then
2495                           ac_lo= ac_hi=
2496                           break
2497                         fi
2498                         as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2499 fi
2500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2501   done
2502 else
2503   ac_lo= ac_hi=
2504 fi
2505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2506 fi
2507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2508 # Binary search between lo and hi bounds.
2509 while test "x$ac_lo" != "x$ac_hi"; do
2510   as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2511   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h.  */
2513 $4
2514 int
2515 main ()
2516 {
2517 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2518 test_array [0] = 0
2519
2520   ;
2521   return 0;
2522 }
2523 _ACEOF
2524 if ac_fn_c_try_compile "$LINENO"; then :
2525   ac_hi=$ac_mid
2526 else
2527   as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2528 fi
2529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2530 done
2531 case $ac_lo in #((
2532 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2533 '') ac_retval=1 ;;
2534 esac
2535   else
2536     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2537 /* end confdefs.h.  */
2538 $4
2539 static long int longval () { return $2; }
2540 static unsigned long int ulongval () { return $2; }
2541 #include <stdio.h>
2542 #include <stdlib.h>
2543 int
2544 main ()
2545 {
2546
2547   FILE *f = fopen ("conftest.val", "w");
2548   if (! f)
2549     return 1;
2550   if (($2) < 0)
2551     {
2552       long int i = longval ();
2553       if (i != ($2))
2554         return 1;
2555       fprintf (f, "%ld", i);
2556     }
2557   else
2558     {
2559       unsigned long int i = ulongval ();
2560       if (i != ($2))
2561         return 1;
2562       fprintf (f, "%lu", i);
2563     }
2564   /* Do not output a trailing newline, as this causes \r\n confusion
2565      on some platforms.  */
2566   return ferror (f) || fclose (f) != 0;
2567
2568   ;
2569   return 0;
2570 }
2571 _ACEOF
2572 if ac_fn_c_try_run "$LINENO"; then :
2573   echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2574 else
2575   ac_retval=1
2576 fi
2577 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2578   conftest.$ac_objext conftest.beam conftest.$ac_ext
2579 rm -f conftest.val
2580
2581   fi
2582   eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2583   return $ac_retval
2584
2585 } # ac_fn_c_compute_int
2586 cat >config.log <<_ACEOF
2587 This file contains any messages produced by compilers while
2588 running configure, to aid debugging if configure makes a mistake.
2589
2590 It was created by GNU Classpath $as_me 0.99.1-pre, which was
2591 generated by GNU Autoconf 2.64.  Invocation command line was
2592
2593   $ $0 $@
2594
2595 _ACEOF
2596 exec 5>>config.log
2597 {
2598 cat <<_ASUNAME
2599 ## --------- ##
2600 ## Platform. ##
2601 ## --------- ##
2602
2603 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2604 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2605 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2606 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2607 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2608
2609 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2610 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2611
2612 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2613 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2614 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2615 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2616 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2617 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2618 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2619
2620 _ASUNAME
2621
2622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2623 for as_dir in $PATH
2624 do
2625   IFS=$as_save_IFS
2626   test -z "$as_dir" && as_dir=.
2627     $as_echo "PATH: $as_dir"
2628   done
2629 IFS=$as_save_IFS
2630
2631 } >&5
2632
2633 cat >&5 <<_ACEOF
2634
2635
2636 ## ----------- ##
2637 ## Core tests. ##
2638 ## ----------- ##
2639
2640 _ACEOF
2641
2642
2643 # Keep a trace of the command line.
2644 # Strip out --no-create and --no-recursion so they do not pile up.
2645 # Strip out --silent because we don't want to record it for future runs.
2646 # Also quote any args containing shell meta-characters.
2647 # Make two passes to allow for proper duplicate-argument suppression.
2648 ac_configure_args=
2649 ac_configure_args0=
2650 ac_configure_args1=
2651 ac_must_keep_next=false
2652 for ac_pass in 1 2
2653 do
2654   for ac_arg
2655   do
2656     case $ac_arg in
2657     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2658     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2659     | -silent | --silent | --silen | --sile | --sil)
2660       continue ;;
2661     *\'*)
2662       ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2663     esac
2664     case $ac_pass in
2665     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2666     2)
2667       as_fn_append ac_configure_args1 " '$ac_arg'"
2668       if test $ac_must_keep_next = true; then
2669         ac_must_keep_next=false # Got value, back to normal.
2670       else
2671         case $ac_arg in
2672           *=* | --config-cache | -C | -disable-* | --disable-* \
2673           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2674           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2675           | -with-* | --with-* | -without-* | --without-* | --x)
2676             case "$ac_configure_args0 " in
2677               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2678             esac
2679             ;;
2680           -* ) ac_must_keep_next=true ;;
2681         esac
2682       fi
2683       as_fn_append ac_configure_args " '$ac_arg'"
2684       ;;
2685     esac
2686   done
2687 done
2688 { ac_configure_args0=; unset ac_configure_args0;}
2689 { ac_configure_args1=; unset ac_configure_args1;}
2690
2691 # When interrupted or exit'd, cleanup temporary files, and complete
2692 # config.log.  We remove comments because anyway the quotes in there
2693 # would cause problems or look ugly.
2694 # WARNING: Use '\'' to represent an apostrophe within the trap.
2695 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2696 trap 'exit_status=$?
2697   # Save into config.log some information that might help in debugging.
2698   {
2699     echo
2700
2701     cat <<\_ASBOX
2702 ## ---------------- ##
2703 ## Cache variables. ##
2704 ## ---------------- ##
2705 _ASBOX
2706     echo
2707     # The following way of writing the cache mishandles newlines in values,
2708 (
2709   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2710     eval ac_val=\$$ac_var
2711     case $ac_val in #(
2712     *${as_nl}*)
2713       case $ac_var in #(
2714       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2715 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2716       esac
2717       case $ac_var in #(
2718       _ | IFS | as_nl) ;; #(
2719       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2720       *) { eval $ac_var=; unset $ac_var;} ;;
2721       esac ;;
2722     esac
2723   done
2724   (set) 2>&1 |
2725     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2726     *${as_nl}ac_space=\ *)
2727       sed -n \
2728         "s/'\''/'\''\\\\'\'''\''/g;
2729           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2730       ;; #(
2731     *)
2732       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2733       ;;
2734     esac |
2735     sort
2736 )
2737     echo
2738
2739     cat <<\_ASBOX
2740 ## ----------------- ##
2741 ## Output variables. ##
2742 ## ----------------- ##
2743 _ASBOX
2744     echo
2745     for ac_var in $ac_subst_vars
2746     do
2747       eval ac_val=\$$ac_var
2748       case $ac_val in
2749       *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2750       esac
2751       $as_echo "$ac_var='\''$ac_val'\''"
2752     done | sort
2753     echo
2754
2755     if test -n "$ac_subst_files"; then
2756       cat <<\_ASBOX
2757 ## ------------------- ##
2758 ## File substitutions. ##
2759 ## ------------------- ##
2760 _ASBOX
2761       echo
2762       for ac_var in $ac_subst_files
2763       do
2764         eval ac_val=\$$ac_var
2765         case $ac_val in
2766         *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2767         esac
2768         $as_echo "$ac_var='\''$ac_val'\''"
2769       done | sort
2770       echo
2771     fi
2772
2773     if test -s confdefs.h; then
2774       cat <<\_ASBOX
2775 ## ----------- ##
2776 ## confdefs.h. ##
2777 ## ----------- ##
2778 _ASBOX
2779       echo
2780       cat confdefs.h
2781       echo
2782     fi
2783     test "$ac_signal" != 0 &&
2784       $as_echo "$as_me: caught signal $ac_signal"
2785     $as_echo "$as_me: exit $exit_status"
2786   } >&5
2787   rm -f core *.core core.conftest.* &&
2788     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2789     exit $exit_status
2790 ' 0
2791 for ac_signal in 1 2 13 15; do
2792   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2793 done
2794 ac_signal=0
2795
2796 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2797 rm -f -r conftest* confdefs.h
2798
2799 $as_echo "/* confdefs.h */" > confdefs.h
2800
2801 # Predefined preprocessor variables.
2802
2803 cat >>confdefs.h <<_ACEOF
2804 #define PACKAGE_NAME "$PACKAGE_NAME"
2805 _ACEOF
2806
2807 cat >>confdefs.h <<_ACEOF
2808 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2809 _ACEOF
2810
2811 cat >>confdefs.h <<_ACEOF
2812 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2813 _ACEOF
2814
2815 cat >>confdefs.h <<_ACEOF
2816 #define PACKAGE_STRING "$PACKAGE_STRING"
2817 _ACEOF
2818
2819 cat >>confdefs.h <<_ACEOF
2820 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2821 _ACEOF
2822
2823 cat >>confdefs.h <<_ACEOF
2824 #define PACKAGE_URL "$PACKAGE_URL"
2825 _ACEOF
2826
2827
2828 # Let the site file select an alternate cache file if it wants to.
2829 # Prefer an explicitly selected file to automatically selected ones.
2830 ac_site_file1=NONE
2831 ac_site_file2=NONE
2832 if test -n "$CONFIG_SITE"; then
2833   ac_site_file1=$CONFIG_SITE
2834 elif test "x$prefix" != xNONE; then
2835   ac_site_file1=$prefix/share/config.site
2836   ac_site_file2=$prefix/etc/config.site
2837 else
2838   ac_site_file1=$ac_default_prefix/share/config.site
2839   ac_site_file2=$ac_default_prefix/etc/config.site
2840 fi
2841 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2842 do
2843   test "x$ac_site_file" = xNONE && continue
2844   if test -r "$ac_site_file"; then
2845     { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2846 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2847     sed 's/^/| /' "$ac_site_file" >&5
2848     . "$ac_site_file"
2849   fi
2850 done
2851
2852 if test -r "$cache_file"; then
2853   # Some versions of bash will fail to source /dev/null (special
2854   # files actually), so we avoid doing that.
2855   if test -f "$cache_file"; then
2856     { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2857 $as_echo "$as_me: loading cache $cache_file" >&6;}
2858     case $cache_file in
2859       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2860       *)                      . "./$cache_file";;
2861     esac
2862   fi
2863 else
2864   { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2865 $as_echo "$as_me: creating cache $cache_file" >&6;}
2866   >$cache_file
2867 fi
2868
2869 # Check that the precious variables saved in the cache have kept the same
2870 # value.
2871 ac_cache_corrupted=false
2872 for ac_var in $ac_precious_vars; do
2873   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2874   eval ac_new_set=\$ac_env_${ac_var}_set
2875   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2876   eval ac_new_val=\$ac_env_${ac_var}_value
2877   case $ac_old_set,$ac_new_set in
2878     set,)
2879       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2880 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2881       ac_cache_corrupted=: ;;
2882     ,set)
2883       { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2884 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2885       ac_cache_corrupted=: ;;
2886     ,);;
2887     *)
2888       if test "x$ac_old_val" != "x$ac_new_val"; then
2889         # differences in whitespace do not lead to failure.
2890         ac_old_val_w=`echo x $ac_old_val`
2891         ac_new_val_w=`echo x $ac_new_val`
2892         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2893           { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2894 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2895           ac_cache_corrupted=:
2896         else
2897           { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2898 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2899           eval $ac_var=\$ac_old_val
2900         fi
2901         { $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2902 $as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2903         { $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2904 $as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2905       fi;;
2906   esac
2907   # Pass precious variables to config.status.
2908   if test "$ac_new_set" = set; then
2909     case $ac_new_val in
2910     *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2911     *) ac_arg=$ac_var=$ac_new_val ;;
2912     esac
2913     case " $ac_configure_args " in
2914       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2915       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2916     esac
2917   fi
2918 done
2919 if $ac_cache_corrupted; then
2920   { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2921 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2922   { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2923 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2924   as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2925 fi
2926 ## -------------------- ##
2927 ## Main body of script. ##
2928 ## -------------------- ##
2929
2930 ac_ext=c
2931 ac_cpp='$CPP $CPPFLAGS'
2932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2935
2936
2937
2938
2939
2940
2941
2942
2943 ac_aux_dir=
2944 for ac_dir in ../.. "$srcdir"/../..; do
2945   for ac_t in install-sh install.sh shtool; do
2946     if test -f "$ac_dir/$ac_t"; then
2947       ac_aux_dir=$ac_dir
2948       ac_install_sh="$ac_aux_dir/$ac_t -c"
2949       break 2
2950     fi
2951   done
2952 done
2953 if test -z "$ac_aux_dir"; then
2954   as_fn_error "cannot find install-sh, install.sh, or shtool in ../.. \"$srcdir\"/../.." "$LINENO" 5
2955 fi
2956
2957 # These three variables are undocumented and unsupported,
2958 # and are intended to be withdrawn in a future Autoconf release.
2959 # They can cause serious problems if a builder's source tree is in a directory
2960 # whose full name contains unusual characters.
2961 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2962 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2963 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2964
2965
2966
2967 # Make sure we can run config.sub.
2968 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2969   as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2970
2971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2972 $as_echo_n "checking build system type... " >&6; }
2973 if test "${ac_cv_build+set}" = set; then :
2974   $as_echo_n "(cached) " >&6
2975 else
2976   ac_build_alias=$build_alias
2977 test "x$ac_build_alias" = x &&
2978   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2979 test "x$ac_build_alias" = x &&
2980   as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2981 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2982   as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2983
2984 fi
2985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2986 $as_echo "$ac_cv_build" >&6; }
2987 case $ac_cv_build in
2988 *-*-*) ;;
2989 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2990 esac
2991 build=$ac_cv_build
2992 ac_save_IFS=$IFS; IFS='-'
2993 set x $ac_cv_build
2994 shift
2995 build_cpu=$1
2996 build_vendor=$2
2997 shift; shift
2998 # Remember, the first character of IFS is used to create $*,
2999 # except with old shells:
3000 build_os=$*
3001 IFS=$ac_save_IFS
3002 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3003
3004
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3006 $as_echo_n "checking host system type... " >&6; }
3007 if test "${ac_cv_host+set}" = set; then :
3008   $as_echo_n "(cached) " >&6
3009 else
3010   if test "x$host_alias" = x; then
3011   ac_cv_host=$ac_cv_build
3012 else
3013   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3014     as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3015 fi
3016
3017 fi
3018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3019 $as_echo "$ac_cv_host" >&6; }
3020 case $ac_cv_host in
3021 *-*-*) ;;
3022 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3023 esac
3024 host=$ac_cv_host
3025 ac_save_IFS=$IFS; IFS='-'
3026 set x $ac_cv_host
3027 shift
3028 host_cpu=$1
3029 host_vendor=$2
3030 shift; shift
3031 # Remember, the first character of IFS is used to create $*,
3032 # except with old shells:
3033 host_os=$*
3034 IFS=$ac_save_IFS
3035 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3036
3037
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3039 $as_echo_n "checking target system type... " >&6; }
3040 if test "${ac_cv_target+set}" = set; then :
3041   $as_echo_n "(cached) " >&6
3042 else
3043   if test "x$target_alias" = x; then
3044   ac_cv_target=$ac_cv_host
3045 else
3046   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3047     as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3048 fi
3049
3050 fi
3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3052 $as_echo "$ac_cv_target" >&6; }
3053 case $ac_cv_target in
3054 *-*-*) ;;
3055 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
3056 esac
3057 target=$ac_cv_target
3058 ac_save_IFS=$IFS; IFS='-'
3059 set x $ac_cv_target
3060 shift
3061 target_cpu=$1
3062 target_vendor=$2
3063 shift; shift
3064 # Remember, the first character of IFS is used to create $*,
3065 # except with old shells:
3066 target_os=$*
3067 IFS=$ac_save_IFS
3068 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3069
3070
3071 # The aliases save the names the user supplied, while $host etc.
3072 # will get canonicalized.
3073 test -n "$target_alias" &&
3074   test "$program_prefix$program_suffix$program_transform_name" = \
3075     NONENONEs,x,x, &&
3076   program_prefix=${target_alias}-
3077
3078 # Check whether --enable-java-maintainer-mode was given.
3079 if test "${enable_java_maintainer_mode+set}" = set; then :
3080   enableval=$enable_java_maintainer_mode;
3081 fi
3082
3083  if test "$enable_java_maintainer_mode" = yes; then
3084   JAVA_MAINTAINER_MODE_TRUE=
3085   JAVA_MAINTAINER_MODE_FALSE='#'
3086 else
3087   JAVA_MAINTAINER_MODE_TRUE='#'
3088   JAVA_MAINTAINER_MODE_FALSE=
3089 fi
3090
3091
3092 # We would like to our source tree to be readonly.  However when releases or
3093 # pre-releases are generated, the man pages need to be included as they are
3094 # converted from the texi files via perl which we don't require end users to
3095 # have installed.
3096 # Therefore we have --enable-generated-files-in-srcdir to do just that.
3097
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to place generated files in the source directory" >&5
3099 $as_echo_n "checking whether to place generated files in the source directory... " >&6; }
3100     # Check whether --enable-generated-files-in-srcdir was given.
3101 if test "${enable_generated_files_in_srcdir+set}" = set; then :
3102   enableval=$enable_generated_files_in_srcdir; generated_files_in_srcdir=$enableval
3103 else
3104   generated_files_in_srcdir=no
3105 fi
3106
3107
3108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $generated_files_in_srcdir" >&5
3109 $as_echo "$generated_files_in_srcdir" >&6; }
3110  if test x$generated_files_in_srcdir = xyes; then
3111   GENINSRC_TRUE=
3112   GENINSRC_FALSE='#'
3113 else
3114   GENINSRC_TRUE='#'
3115   GENINSRC_FALSE=
3116 fi
3117
3118
3119 # Find the rest of the source tree framework.
3120 # Default to --enable-multilib
3121 # Check whether --enable-multilib was given.
3122 if test "${enable_multilib+set}" = set; then :
3123   enableval=$enable_multilib; case "$enableval" in
3124   yes) multilib=yes ;;
3125   no)  multilib=no ;;
3126   *)   as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3127  esac
3128 else
3129   multilib=yes
3130 fi
3131
3132
3133 # We may get other options which we leave undocumented:
3134 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3135 # See config-ml.in if you want the gory details.
3136
3137 if test "$srcdir" = "."; then
3138   if test "$with_target_subdir" != "."; then
3139     multi_basedir="$srcdir/$with_multisrctop../../.."
3140   else
3141     multi_basedir="$srcdir/$with_multisrctop../.."
3142   fi
3143 else
3144   multi_basedir="$srcdir/../.."
3145 fi
3146
3147
3148 # Even if the default multilib is not a cross compilation,
3149 # it may be that some of the other multilibs are.
3150 if test $cross_compiling = no && test $multilib = yes \
3151    && test "x${with_multisubdir}" != x ; then
3152    cross_compiling=maybe
3153 fi
3154
3155 ac_config_commands="$ac_config_commands default-1"
3156
3157
3158  if test -z "${with_multisubdir}"; then
3159   INSTALL_BINARIES_TRUE=
3160   INSTALL_BINARIES_FALSE='#'
3161 else
3162   INSTALL_BINARIES_TRUE='#'
3163   INSTALL_BINARIES_FALSE=
3164 fi
3165
3166
3167 if expr ${target_cpu} : '.*86' > /dev/null; then target_cpu=x86; fi
3168
3169 LIBVERSION="0:0:0"
3170
3171 case "$host_os" in
3172      darwin*)
3173         cp_module=""
3174         ;;
3175         *)
3176         cp_module="-module"
3177         ;;
3178 esac
3179
3180 CLASSPATH_MODULE="${cp_module} -version-info ${LIBVERSION} -no-undefined"
3181
3182
3183 CLASSPATH_CONVENIENCE="-no-undefined"
3184
3185
3186
3187 am__api_version='1.11'
3188
3189 # Find a good install program.  We prefer a C program (faster),
3190 # so one script is as good as another.  But avoid the broken or
3191 # incompatible versions:
3192 # SysV /etc/install, /usr/sbin/install
3193 # SunOS /usr/etc/install
3194 # IRIX /sbin/install
3195 # AIX /bin/install
3196 # AmigaOS /C/install, which installs bootblocks on floppy discs
3197 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3198 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3199 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3200 # OS/2's system install, which has a completely different semantic
3201 # ./install, which can be erroneously created by make from ./install.sh.
3202 # Reject install programs that cannot install multiple files.
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3204 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3205 if test -z "$INSTALL"; then
3206 if test "${ac_cv_path_install+set}" = set; then :
3207   $as_echo_n "(cached) " >&6
3208 else
3209   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH
3211 do
3212   IFS=$as_save_IFS
3213   test -z "$as_dir" && as_dir=.
3214     # Account for people who put trailing slashes in PATH elements.
3215 case $as_dir/ in #((
3216   ./ | .// | /[cC]/* | \
3217   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3218   ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3219   /usr/ucb/* ) ;;
3220   *)
3221     # OSF1 and SCO ODT 3.0 have their own names for install.
3222     # Don't use installbsd from OSF since it installs stuff as root
3223     # by default.
3224     for ac_prog in ginstall scoinst install; do
3225       for ac_exec_ext in '' $ac_executable_extensions; do
3226         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3227           if test $ac_prog = install &&
3228             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3229             # AIX install.  It has an incompatible calling convention.
3230             :
3231           elif test $ac_prog = install &&
3232             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3233             # program-specific install script used by HP pwplus--don't use.
3234             :
3235           else
3236             rm -rf conftest.one conftest.two conftest.dir
3237             echo one > conftest.one
3238             echo two > conftest.two
3239             mkdir conftest.dir
3240             if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3241               test -s conftest.one && test -s conftest.two &&
3242               test -s conftest.dir/conftest.one &&
3243               test -s conftest.dir/conftest.two
3244             then
3245               ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3246               break 3
3247             fi
3248           fi
3249         fi
3250       done
3251     done
3252     ;;
3253 esac
3254
3255   done
3256 IFS=$as_save_IFS
3257
3258 rm -rf conftest.one conftest.two conftest.dir
3259
3260 fi
3261   if test "${ac_cv_path_install+set}" = set; then
3262     INSTALL=$ac_cv_path_install
3263   else
3264     # As a last resort, use the slow shell script.  Don't cache a
3265     # value for INSTALL within a source directory, because that will
3266     # break other packages using the cache if that directory is
3267     # removed, or if the value is a relative name.
3268     INSTALL=$ac_install_sh
3269   fi
3270 fi
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3272 $as_echo "$INSTALL" >&6; }
3273
3274 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3275 # It thinks the first close brace ends the variable substitution.
3276 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3277
3278 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3279
3280 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3281
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3283 $as_echo_n "checking whether build environment is sane... " >&6; }
3284 # Just in case
3285 sleep 1
3286 echo timestamp > conftest.file
3287 # Reject unsafe characters in $srcdir or the absolute working directory
3288 # name.  Accept space and tab only in the latter.
3289 am_lf='
3290 '
3291 case `pwd` in
3292   *[\\\"\#\$\&\'\`$am_lf]*)
3293     as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3294 esac
3295 case $srcdir in
3296   *[\\\"\#\$\&\'\`$am_lf\ \     ]*)
3297     as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3298 esac
3299
3300 # Do `set' in a subshell so we don't clobber the current shell's
3301 # arguments.  Must try -L first in case configure is actually a
3302 # symlink; some systems play weird games with the mod time of symlinks
3303 # (eg FreeBSD returns the mod time of the symlink's containing
3304 # directory).
3305 if (
3306    set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3307    if test "$*" = "X"; then
3308       # -L didn't work.
3309       set X `ls -t "$srcdir/configure" conftest.file`
3310    fi
3311    rm -f conftest.file
3312    if test "$*" != "X $srcdir/configure conftest.file" \
3313       && test "$*" != "X conftest.file $srcdir/configure"; then
3314
3315       # If neither matched, then we have a broken ls.  This can happen
3316       # if, for instance, CONFIG_SHELL is bash and it inherits a
3317       # broken ls alias from the environment.  This has actually
3318       # happened.  Such a system could not be considered "sane".
3319       as_fn_error "ls -t appears to fail.  Make sure there is not a broken
3320 alias in your environment" "$LINENO" 5
3321    fi
3322
3323    test "$2" = conftest.file
3324    )
3325 then
3326    # Ok.
3327    :
3328 else
3329    as_fn_error "newly created file is older than distributed files!
3330 Check your system clock" "$LINENO" 5
3331 fi
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3333 $as_echo "yes" >&6; }
3334 test "$program_prefix" != NONE &&
3335   program_transform_name="s&^&$program_prefix&;$program_transform_name"
3336 # Use a double $ so make ignores it.
3337 test "$program_suffix" != NONE &&
3338   program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3339 # Double any \ or $.
3340 # By default was `s,x,x', remove it if useless.
3341 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3342 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3343
3344 # expand $ac_aux_dir to an absolute path
3345 am_aux_dir=`cd $ac_aux_dir && pwd`
3346
3347 if test x"${MISSING+set}" != xset; then
3348   case $am_aux_dir in
3349   *\ * | *\     *)
3350     MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3351   *)
3352     MISSING="\${SHELL} $am_aux_dir/missing" ;;
3353   esac
3354 fi
3355 # Use eval to expand $SHELL
3356 if eval "$MISSING --run true"; then
3357   am_missing_run="$MISSING --run "
3358 else
3359   am_missing_run=
3360   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3361 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3362 fi
3363
3364 if test x"${install_sh}" != xset; then
3365   case $am_aux_dir in
3366   *\ * | *\     *)
3367     install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3368   *)
3369     install_sh="\${SHELL} $am_aux_dir/install-sh"
3370   esac
3371 fi
3372
3373 # Installed binaries are usually stripped using `strip' when the user
3374 # run `make install-strip'.  However `strip' might not be the right
3375 # tool to use in cross-compilation environments, therefore Automake
3376 # will honor the `STRIP' environment variable to overrule this program.
3377 if test "$cross_compiling" != no; then
3378   if test -n "$ac_tool_prefix"; then
3379   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3380 set dummy ${ac_tool_prefix}strip; ac_word=$2
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3382 $as_echo_n "checking for $ac_word... " >&6; }
3383 if test "${ac_cv_prog_STRIP+set}" = set; then :
3384   $as_echo_n "(cached) " >&6
3385 else
3386   if test -n "$STRIP"; then
3387   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3388 else
3389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3390 for as_dir in $PATH
3391 do
3392   IFS=$as_save_IFS
3393   test -z "$as_dir" && as_dir=.
3394     for ac_exec_ext in '' $ac_executable_extensions; do
3395   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3396     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3397     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3398     break 2
3399   fi
3400 done
3401   done
3402 IFS=$as_save_IFS
3403
3404 fi
3405 fi
3406 STRIP=$ac_cv_prog_STRIP
3407 if test -n "$STRIP"; then
3408   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3409 $as_echo "$STRIP" >&6; }
3410 else
3411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3412 $as_echo "no" >&6; }
3413 fi
3414
3415
3416 fi
3417 if test -z "$ac_cv_prog_STRIP"; then
3418   ac_ct_STRIP=$STRIP
3419   # Extract the first word of "strip", so it can be a program name with args.
3420 set dummy strip; ac_word=$2
3421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3422 $as_echo_n "checking for $ac_word... " >&6; }
3423 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3424   $as_echo_n "(cached) " >&6
3425 else
3426   if test -n "$ac_ct_STRIP"; then
3427   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3428 else
3429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3430 for as_dir in $PATH
3431 do
3432   IFS=$as_save_IFS
3433   test -z "$as_dir" && as_dir=.
3434     for ac_exec_ext in '' $ac_executable_extensions; do
3435   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3436     ac_cv_prog_ac_ct_STRIP="strip"
3437     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3438     break 2
3439   fi
3440 done
3441   done
3442 IFS=$as_save_IFS
3443
3444 fi
3445 fi
3446 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3447 if test -n "$ac_ct_STRIP"; then
3448   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3449 $as_echo "$ac_ct_STRIP" >&6; }
3450 else
3451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3452 $as_echo "no" >&6; }
3453 fi
3454
3455   if test "x$ac_ct_STRIP" = x; then
3456     STRIP=":"
3457   else
3458     case $cross_compiling:$ac_tool_warned in
3459 yes:)
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3461 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3462 ac_tool_warned=yes ;;
3463 esac
3464     STRIP=$ac_ct_STRIP
3465   fi
3466 else
3467   STRIP="$ac_cv_prog_STRIP"
3468 fi
3469
3470 fi
3471 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3472
3473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3474 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3475 if test -z "$MKDIR_P"; then
3476   if test "${ac_cv_path_mkdir+set}" = set; then :
3477   $as_echo_n "(cached) " >&6
3478 else
3479   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3480 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3481 do
3482   IFS=$as_save_IFS
3483   test -z "$as_dir" && as_dir=.
3484     for ac_prog in mkdir gmkdir; do
3485          for ac_exec_ext in '' $ac_executable_extensions; do
3486            { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3487            case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3488              'mkdir (GNU coreutils) '* | \
3489              'mkdir (coreutils) '* | \
3490              'mkdir (fileutils) '4.1*)
3491                ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3492                break 3;;
3493            esac
3494          done
3495        done
3496   done
3497 IFS=$as_save_IFS
3498
3499 fi
3500
3501   if test "${ac_cv_path_mkdir+set}" = set; then
3502     MKDIR_P="$ac_cv_path_mkdir -p"
3503   else
3504     # As a last resort, use the slow shell script.  Don't cache a
3505     # value for MKDIR_P within a source directory, because that will
3506     # break other packages using the cache if that directory is
3507     # removed, or if the value is a relative name.
3508     test -d ./--version && rmdir ./--version
3509     MKDIR_P="$ac_install_sh -d"
3510   fi
3511 fi
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3513 $as_echo "$MKDIR_P" >&6; }
3514
3515 mkdir_p="$MKDIR_P"
3516 case $mkdir_p in
3517   [\\/$]* | ?:[\\/]*) ;;
3518   */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3519 esac
3520
3521 for ac_prog in gawk mawk nawk awk
3522 do
3523   # Extract the first word of "$ac_prog", so it can be a program name with args.
3524 set dummy $ac_prog; ac_word=$2
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3526 $as_echo_n "checking for $ac_word... " >&6; }
3527 if test "${ac_cv_prog_AWK+set}" = set; then :
3528   $as_echo_n "(cached) " >&6
3529 else
3530   if test -n "$AWK"; then
3531   ac_cv_prog_AWK="$AWK" # Let the user override the test.
3532 else
3533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3534 for as_dir in $PATH
3535 do
3536   IFS=$as_save_IFS
3537   test -z "$as_dir" && as_dir=.
3538     for ac_exec_ext in '' $ac_executable_extensions; do
3539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3540     ac_cv_prog_AWK="$ac_prog"
3541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3542     break 2
3543   fi
3544 done
3545   done
3546 IFS=$as_save_IFS
3547
3548 fi
3549 fi
3550 AWK=$ac_cv_prog_AWK
3551 if test -n "$AWK"; then
3552   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3553 $as_echo "$AWK" >&6; }
3554 else
3555   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3556 $as_echo "no" >&6; }
3557 fi
3558
3559
3560   test -n "$AWK" && break
3561 done
3562
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3564 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3565 set x ${MAKE-make}
3566 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3567 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3568   $as_echo_n "(cached) " >&6
3569 else
3570   cat >conftest.make <<\_ACEOF
3571 SHELL = /bin/sh
3572 all:
3573         @echo '@@@%%%=$(MAKE)=@@@%%%'
3574 _ACEOF
3575 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3576 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3577   *@@@%%%=?*=@@@%%%*)
3578     eval ac_cv_prog_make_${ac_make}_set=yes;;
3579   *)
3580     eval ac_cv_prog_make_${ac_make}_set=no;;
3581 esac
3582 rm -f conftest.make
3583 fi
3584 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3585   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3586 $as_echo "yes" >&6; }
3587   SET_MAKE=
3588 else
3589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3591   SET_MAKE="MAKE=${MAKE-make}"
3592 fi
3593
3594 rm -rf .tst 2>/dev/null
3595 mkdir .tst 2>/dev/null
3596 if test -d .tst; then
3597   am__leading_dot=.
3598 else
3599   am__leading_dot=_
3600 fi
3601 rmdir .tst 2>/dev/null
3602
3603 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3604   # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3605   # is not polluted with repeated "-I."
3606   am__isrc=' -I$(srcdir)'
3607   # test to see if srcdir already configured
3608   if test -f $srcdir/config.status; then
3609     as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3610   fi
3611 fi
3612
3613 # test whether we have cygpath
3614 if test -z "$CYGPATH_W"; then
3615   if (cygpath --version) >/dev/null 2>/dev/null; then
3616     CYGPATH_W='cygpath -w'
3617   else
3618     CYGPATH_W=echo
3619   fi
3620 fi
3621
3622
3623 # Define the identity of the package.
3624  PACKAGE='classpath'
3625  VERSION='0.99.1-pre'
3626
3627
3628 cat >>confdefs.h <<_ACEOF
3629 #define PACKAGE "$PACKAGE"
3630 _ACEOF
3631
3632
3633 cat >>confdefs.h <<_ACEOF
3634 #define VERSION "$VERSION"
3635 _ACEOF
3636
3637 # Some tools Automake needs.
3638
3639 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3640
3641
3642 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3643
3644
3645 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3646
3647
3648 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3649
3650
3651 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3652
3653 # We need awk for the "check" target.  The system "awk" is bad on
3654 # some platforms.
3655 # Always define AMTAR for backward compatibility.
3656
3657 AMTAR=${AMTAR-"${am_missing_run}tar"}
3658
3659
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3661 $as_echo_n "checking how to create a ustar tar archive... " >&6; }
3662 # Loop over all known methods to create a tar archive until one works.
3663 _am_tools='gnutar plaintar pax cpio none'
3664 _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3665 # Do not fold the above two line into one, because Tru64 sh and
3666 # Solaris sh will not grok spaces in the rhs of `-'.
3667 for _am_tool in $_am_tools
3668 do
3669   case $_am_tool in
3670   gnutar)
3671     for _am_tar in tar gnutar gtar;
3672     do
3673       { echo "$as_me:$LINENO: $_am_tar --version" >&5
3674    ($_am_tar --version) >&5 2>&5
3675    ac_status=$?
3676    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3677    (exit $ac_status); } && break
3678     done
3679     am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3680     am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3681     am__untar="$_am_tar -xf -"
3682     ;;
3683   plaintar)
3684     # Must skip GNU tar: if it does not support --format= it doesn't create
3685     # ustar tarball either.
3686     (tar --version) >/dev/null 2>&1 && continue
3687     am__tar='tar chf - "$$tardir"'
3688     am__tar_='tar chf - "$tardir"'
3689     am__untar='tar xf -'
3690     ;;
3691   pax)
3692     am__tar='pax -L -x ustar -w "$$tardir"'
3693     am__tar_='pax -L -x ustar -w "$tardir"'
3694     am__untar='pax -r'
3695     ;;
3696   cpio)
3697     am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3698     am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3699     am__untar='cpio -i -H ustar -d'
3700     ;;
3701   none)
3702     am__tar=false
3703     am__tar_=false
3704     am__untar=false
3705     ;;
3706   esac
3707
3708   # If the value was cached, stop now.  We just wanted to have am__tar
3709   # and am__untar set.
3710   test -n "${am_cv_prog_tar_ustar}" && break
3711
3712   # tar/untar a dummy directory, and stop if the command works
3713   rm -rf conftest.dir
3714   mkdir conftest.dir
3715   echo GrepMe > conftest.dir/file
3716   { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3717    (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3718    ac_status=$?
3719    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3720    (exit $ac_status); }
3721   rm -rf conftest.dir
3722   if test -s conftest.tar; then
3723     { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3724    ($am__untar <conftest.tar) >&5 2>&5
3725    ac_status=$?
3726    echo "$as_me:$LINENO: \$? = $ac_status" >&5
3727    (exit $ac_status); }
3728     grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3729   fi
3730 done
3731 rm -rf conftest.dir
3732
3733 if test "${am_cv_prog_tar_ustar+set}" = set; then :
3734   $as_echo_n "(cached) " >&6
3735 else
3736   am_cv_prog_tar_ustar=$_am_tool
3737 fi
3738
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3740 $as_echo "$am_cv_prog_tar_ustar" >&6; }
3741
3742
3743
3744
3745
3746 ac_config_headers="$ac_config_headers include/config.h"
3747
3748
3749
3750
3751
3752 # Check whether --enable-collections was given.
3753 if test "${enable_collections+set}" = set; then :
3754   enableval=$enable_collections; case x"${enableval}" in
3755                 xyes) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3756                 xno) COMPILE_COLLECTIONS=no ;;
3757                 x) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"gnu/java/util/collections\"" ;;
3758                 *) COMPILE_COLLECTIONS=yes; COLLECTIONS_PREFIX="\"${enableval}\"" ;;
3759               esac
3760 else
3761   COMPILE_COLLECTIONS=no
3762 fi
3763
3764  if test "x${COMPILE_COLLECTIONS}" = xyes; then
3765   CREATE_COLLECTIONS_TRUE=
3766   CREATE_COLLECTIONS_FALSE='#'
3767 else
3768   CREATE_COLLECTIONS_TRUE='#'
3769   CREATE_COLLECTIONS_FALSE=
3770 fi
3771
3772
3773 # Check whether --enable-jni was given.
3774 if test "${enable_jni+set}" = set; then :
3775   enableval=$enable_jni; case "${enableval}" in
3776                 yes) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3777                 no) COMPILE_JNI=no ;;
3778                 *) COMPILE_JNI=yes; COMPILE_JAVA=yes ;;
3779               esac
3780 else
3781   COMPILE_JNI=yes
3782 fi
3783
3784  if test "x${COMPILE_JNI}" = xyes; then
3785   CREATE_JNI_LIBRARIES_TRUE=
3786   CREATE_JNI_LIBRARIES_FALSE='#'
3787 else
3788   CREATE_JNI_LIBRARIES_TRUE='#'
3789   CREATE_JNI_LIBRARIES_FALSE=
3790 fi
3791
3792
3793 # Check whether --enable-core-jni was given.
3794 if test "${enable_core_jni+set}" = set; then :
3795   enableval=$enable_core_jni; case "${enableval}" in
3796                 yes) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3797                 no) COMPILE_CORE_JNI=no ;;
3798                 *) COMPILE_CORE_JNI=yes; COMPILE_JAVA=yes ;;
3799               esac
3800 else
3801   COMPILE_CORE_JNI=yes
3802 fi
3803
3804  if test "x${COMPILE_CORE_JNI}" = xyes; then
3805   CREATE_CORE_JNI_LIBRARIES_TRUE=
3806   CREATE_CORE_JNI_LIBRARIES_FALSE='#'
3807 else
3808   CREATE_CORE_JNI_LIBRARIES_TRUE='#'
3809   CREATE_CORE_JNI_LIBRARIES_FALSE=
3810 fi
3811
3812
3813 # Check whether --enable-default-preferences-peer was given.
3814 if test "${enable_default_preferences_peer+set}" = set; then :
3815   enableval=$enable_default_preferences_peer; case "${enableval}" in
3816                 file) DEFAULT_PREFS_PEER=gnu.java.util.prefs.FileBasedFactory  ;;
3817                 gconf|yes|true) DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory  ;;
3818                 memory) DEFAULT_PREFS_PEER=gnu.java.util.prefs.MemoryBasedFactory  ;;
3819                 no|false) as_fn_error "bad value '${enableval}' for --enable-default-preferences-peer" "$LINENO" 5 ;;
3820                 *) DEFAULT_PREFS_PEER=${enableval} ;;
3821               esac
3822 else
3823   DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
3824 fi
3825
3826
3827 # Check whether --enable-gconf-peer was given.
3828 if test "${enable_gconf_peer+set}" = set; then :
3829   enableval=$enable_gconf_peer; case "${enableval}" in
3830                 yes) COMPILE_GCONF_PEER=yes ;;
3831                 no) COMPILE_GCONF_PEER=no ;;
3832                 *) COMPILE_GCONF_PEER=yes ;;
3833               esac
3834 else
3835   COMPILE_GCONF_PEER=yes
3836 fi
3837
3838  if test "x${COMPILE_GCONF_PEER}" = xyes; then
3839   CREATE_GCONF_PEER_LIBRARIES_TRUE=
3840   CREATE_GCONF_PEER_LIBRARIES_FALSE='#'
3841 else
3842   CREATE_GCONF_PEER_LIBRARIES_TRUE='#'
3843   CREATE_GCONF_PEER_LIBRARIES_FALSE=
3844 fi
3845
3846
3847 # Check whether --enable-gconf-peers was given.
3848 if test "${enable_gconf_peers+set}" = set; then :
3849   enableval=$enable_gconf_peers; as_fn_error "No --enable-gconf-peers (or --disable-gconf-peers) option; you want --enable-gconf-peer" "$LINENO" 5
3850 fi
3851
3852
3853 # Check whether --enable-gstreamer-peer was given.
3854 if test "${enable_gstreamer_peer+set}" = set; then :
3855   enableval=$enable_gstreamer_peer; case "${enableval}" in
3856                 yes) COMPILE_GSTREAMER_PEER=yes ;;
3857                 no) COMPILE_GSTREAMER_PEER=no ;;
3858                 *) COMPILE_GSTREAMER_PEER=default ;;
3859               esac
3860 else
3861   COMPILE_GSTREAMER_PEER=default
3862 fi
3863
3864  if test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
3865   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE=
3866   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE='#'
3867 else
3868   CREATE_GSTREAMER_PEER_LIBRARIES_TRUE='#'
3869   CREATE_GSTREAMER_PEER_LIBRARIES_FALSE=
3870 fi
3871
3872
3873 # Check whether --enable-gstreamer-peers was given.
3874 if test "${enable_gstreamer_peers+set}" = set; then :
3875   enableval=$enable_gstreamer_peers; as_fn_error "No --enable-gstreamer-peers (or --disable-gstreamer-peers) option; you want --enable-gstreamer-peer" "$LINENO" 5
3876 fi
3877
3878
3879 # Check whether --enable-Werror was given.
3880 if test "${enable_Werror+set}" = set; then :
3881   enableval=$enable_Werror; case "${enableval}" in
3882                 yes) ENABLE_WERROR=yes ;;
3883                 no) ENABLE_WERROR=no ;;
3884                 *) ENABLE_WERROR=no ;;
3885               esac
3886 else
3887   ENABLE_WERROR=no
3888 fi
3889
3890
3891 # Check whether --enable-default-toolkit was given.
3892 if test "${enable_default_toolkit+set}" = set; then :
3893   enableval=$enable_default_toolkit;
3894 fi
3895
3896 default_toolkit=$enable_default_toolkit
3897 if test "$default_toolkit" = ""; then
3898    default_toolkit=gnu.java.awt.peer.gtk.GtkToolkit
3899 fi
3900
3901
3902 # Check whether --enable-xmlj was given.
3903 if test "${enable_xmlj+set}" = set; then :
3904   enableval=$enable_xmlj; case "${enableval}" in
3905                 yes) COMPILE_XMLJ=yes ;;
3906                 no) COMPILE_XMLJ=no ;;
3907                 *) COMPILE_XMLJ=no ;;
3908               esac
3909 else
3910   COMPILE_XMLJ=no
3911 fi
3912
3913  if test "x${COMPILE_XMLJ}" = xyes; then
3914   CREATE_XMLJ_LIBRARY_TRUE=
3915   CREATE_XMLJ_LIBRARY_FALSE='#'
3916 else
3917   CREATE_XMLJ_LIBRARY_TRUE='#'
3918   CREATE_XMLJ_LIBRARY_FALSE=
3919 fi
3920
3921
3922 DEPDIR="${am__leading_dot}deps"
3923
3924 ac_config_commands="$ac_config_commands depfiles"
3925
3926
3927 am_make=${MAKE-make}
3928 cat > confinc << 'END'
3929 am__doit:
3930         @echo this is the am__doit target
3931 .PHONY: am__doit
3932 END
3933 # If we don't find an include directive, just comment out the code.
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3935 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3936 am__include="#"
3937 am__quote=
3938 _am_result=none
3939 # First try GNU make style include.
3940 echo "include confinc" > confmf
3941 # Ignore all kinds of additional output from `make'.
3942 case `$am_make -s -f confmf 2> /dev/null` in #(
3943 *the\ am__doit\ target*)
3944   am__include=include
3945   am__quote=
3946   _am_result=GNU
3947   ;;
3948 esac
3949 # Now try BSD make style include.
3950 if test "$am__include" = "#"; then
3951    echo '.include "confinc"' > confmf
3952    case `$am_make -s -f confmf 2> /dev/null` in #(
3953    *the\ am__doit\ target*)
3954      am__include=.include
3955      am__quote="\""
3956      _am_result=BSD
3957      ;;
3958    esac
3959 fi
3960
3961
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3963 $as_echo "$_am_result" >&6; }
3964 rm -f confinc confmf
3965
3966 # Check whether --enable-dependency-tracking was given.
3967 if test "${enable_dependency_tracking+set}" = set; then :
3968   enableval=$enable_dependency_tracking;
3969 fi
3970
3971 if test "x$enable_dependency_tracking" != xno; then
3972   am_depcomp="$ac_aux_dir/depcomp"
3973   AMDEPBACKSLASH='\'
3974 fi
3975  if test "x$enable_dependency_tracking" != xno; then
3976   AMDEP_TRUE=
3977   AMDEP_FALSE='#'
3978 else
3979   AMDEP_TRUE='#'
3980   AMDEP_FALSE=
3981 fi
3982
3983
3984 ac_ext=c
3985 ac_cpp='$CPP $CPPFLAGS'
3986 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3987 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3988 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3989 if test -n "$ac_tool_prefix"; then
3990   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3991 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3993 $as_echo_n "checking for $ac_word... " >&6; }
3994 if test "${ac_cv_prog_CC+set}" = set; then :
3995   $as_echo_n "(cached) " >&6
3996 else
3997   if test -n "$CC"; then
3998   ac_cv_prog_CC="$CC" # Let the user override the test.
3999 else
4000 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4001 for as_dir in $PATH
4002 do
4003   IFS=$as_save_IFS
4004   test -z "$as_dir" && as_dir=.
4005     for ac_exec_ext in '' $ac_executable_extensions; do
4006   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4007     ac_cv_prog_CC="${ac_tool_prefix}gcc"
4008     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4009     break 2
4010   fi
4011 done
4012   done
4013 IFS=$as_save_IFS
4014
4015 fi
4016 fi
4017 CC=$ac_cv_prog_CC
4018 if test -n "$CC"; then
4019   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4020 $as_echo "$CC" >&6; }
4021 else
4022   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4023 $as_echo "no" >&6; }
4024 fi
4025
4026
4027 fi
4028 if test -z "$ac_cv_prog_CC"; then
4029   ac_ct_CC=$CC
4030   # Extract the first word of "gcc", so it can be a program name with args.
4031 set dummy gcc; ac_word=$2
4032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4033 $as_echo_n "checking for $ac_word... " >&6; }
4034 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4035   $as_echo_n "(cached) " >&6
4036 else
4037   if test -n "$ac_ct_CC"; then
4038   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4039 else
4040 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4041 for as_dir in $PATH
4042 do
4043   IFS=$as_save_IFS
4044   test -z "$as_dir" && as_dir=.
4045     for ac_exec_ext in '' $ac_executable_extensions; do
4046   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4047     ac_cv_prog_ac_ct_CC="gcc"
4048     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4049     break 2
4050   fi
4051 done
4052   done
4053 IFS=$as_save_IFS
4054
4055 fi
4056 fi
4057 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4058 if test -n "$ac_ct_CC"; then
4059   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4060 $as_echo "$ac_ct_CC" >&6; }
4061 else
4062   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4063 $as_echo "no" >&6; }
4064 fi
4065
4066   if test "x$ac_ct_CC" = x; then
4067     CC=""
4068   else
4069     case $cross_compiling:$ac_tool_warned in
4070 yes:)
4071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4073 ac_tool_warned=yes ;;
4074 esac
4075     CC=$ac_ct_CC
4076   fi
4077 else
4078   CC="$ac_cv_prog_CC"
4079 fi
4080
4081 if test -z "$CC"; then
4082           if test -n "$ac_tool_prefix"; then
4083     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4084 set dummy ${ac_tool_prefix}cc; ac_word=$2
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4086 $as_echo_n "checking for $ac_word... " >&6; }
4087 if test "${ac_cv_prog_CC+set}" = set; then :
4088   $as_echo_n "(cached) " >&6
4089 else
4090   if test -n "$CC"; then
4091   ac_cv_prog_CC="$CC" # Let the user override the test.
4092 else
4093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 for as_dir in $PATH
4095 do
4096   IFS=$as_save_IFS
4097   test -z "$as_dir" && as_dir=.
4098     for ac_exec_ext in '' $ac_executable_extensions; do
4099   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4100     ac_cv_prog_CC="${ac_tool_prefix}cc"
4101     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4102     break 2
4103   fi
4104 done
4105   done
4106 IFS=$as_save_IFS
4107
4108 fi
4109 fi
4110 CC=$ac_cv_prog_CC
4111 if test -n "$CC"; then
4112   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4113 $as_echo "$CC" >&6; }
4114 else
4115   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4116 $as_echo "no" >&6; }
4117 fi
4118
4119
4120   fi
4121 fi
4122 if test -z "$CC"; then
4123   # Extract the first word of "cc", so it can be a program name with args.
4124 set dummy cc; ac_word=$2
4125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4126 $as_echo_n "checking for $ac_word... " >&6; }
4127 if test "${ac_cv_prog_CC+set}" = set; then :
4128   $as_echo_n "(cached) " >&6
4129 else
4130   if test -n "$CC"; then
4131   ac_cv_prog_CC="$CC" # Let the user override the test.
4132 else
4133   ac_prog_rejected=no
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4136 do
4137   IFS=$as_save_IFS
4138   test -z "$as_dir" && as_dir=.
4139     for ac_exec_ext in '' $ac_executable_extensions; do
4140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4141     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4142        ac_prog_rejected=yes
4143        continue
4144      fi
4145     ac_cv_prog_CC="cc"
4146     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4147     break 2
4148   fi
4149 done
4150   done
4151 IFS=$as_save_IFS
4152
4153 if test $ac_prog_rejected = yes; then
4154   # We found a bogon in the path, so make sure we never use it.
4155   set dummy $ac_cv_prog_CC
4156   shift
4157   if test $# != 0; then
4158     # We chose a different compiler from the bogus one.
4159     # However, it has the same basename, so the bogon will be chosen
4160     # first if we set CC to just the basename; use the full file name.
4161     shift
4162     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4163   fi
4164 fi
4165 fi
4166 fi
4167 CC=$ac_cv_prog_CC
4168 if test -n "$CC"; then
4169   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4170 $as_echo "$CC" >&6; }
4171 else
4172   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4173 $as_echo "no" >&6; }
4174 fi
4175
4176
4177 fi
4178 if test -z "$CC"; then
4179   if test -n "$ac_tool_prefix"; then
4180   for ac_prog in cl.exe
4181   do
4182     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4183 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4185 $as_echo_n "checking for $ac_word... " >&6; }
4186 if test "${ac_cv_prog_CC+set}" = set; then :
4187   $as_echo_n "(cached) " >&6
4188 else
4189   if test -n "$CC"; then
4190   ac_cv_prog_CC="$CC" # Let the user override the test.
4191 else
4192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4193 for as_dir in $PATH
4194 do
4195   IFS=$as_save_IFS
4196   test -z "$as_dir" && as_dir=.
4197     for ac_exec_ext in '' $ac_executable_extensions; do
4198   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4199     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4200     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4201     break 2
4202   fi
4203 done
4204   done
4205 IFS=$as_save_IFS
4206
4207 fi
4208 fi
4209 CC=$ac_cv_prog_CC
4210 if test -n "$CC"; then
4211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4212 $as_echo "$CC" >&6; }
4213 else
4214   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4215 $as_echo "no" >&6; }
4216 fi
4217
4218
4219     test -n "$CC" && break
4220   done
4221 fi
4222 if test -z "$CC"; then
4223   ac_ct_CC=$CC
4224   for ac_prog in cl.exe
4225 do
4226   # Extract the first word of "$ac_prog", so it can be a program name with args.
4227 set dummy $ac_prog; ac_word=$2
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4229 $as_echo_n "checking for $ac_word... " >&6; }
4230 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4231   $as_echo_n "(cached) " >&6
4232 else
4233   if test -n "$ac_ct_CC"; then
4234   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4235 else
4236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4237 for as_dir in $PATH
4238 do
4239   IFS=$as_save_IFS
4240   test -z "$as_dir" && as_dir=.
4241     for ac_exec_ext in '' $ac_executable_extensions; do
4242   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4243     ac_cv_prog_ac_ct_CC="$ac_prog"
4244     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4245     break 2
4246   fi
4247 done
4248   done
4249 IFS=$as_save_IFS
4250
4251 fi
4252 fi
4253 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4254 if test -n "$ac_ct_CC"; then
4255   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4256 $as_echo "$ac_ct_CC" >&6; }
4257 else
4258   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4259 $as_echo "no" >&6; }
4260 fi
4261
4262
4263   test -n "$ac_ct_CC" && break
4264 done
4265
4266   if test "x$ac_ct_CC" = x; then
4267     CC=""
4268   else
4269     case $cross_compiling:$ac_tool_warned in
4270 yes:)
4271 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4272 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4273 ac_tool_warned=yes ;;
4274 esac
4275     CC=$ac_ct_CC
4276   fi
4277 fi
4278
4279 fi
4280
4281
4282 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4283 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4284 as_fn_error "no acceptable C compiler found in \$PATH
4285 See \`config.log' for more details." "$LINENO" 5; }
4286
4287 # Provide some information about the compiler.
4288 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4289 set X $ac_compile
4290 ac_compiler=$2
4291 for ac_option in --version -v -V -qversion; do
4292   { { ac_try="$ac_compiler $ac_option >&5"
4293 case "(($ac_try" in
4294   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4295   *) ac_try_echo=$ac_try;;
4296 esac
4297 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4298 $as_echo "$ac_try_echo"; } >&5
4299   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4300   ac_status=$?
4301   if test -s conftest.err; then
4302     sed '10a\
4303 ... rest of stderr output deleted ...
4304          10q' conftest.err >conftest.er1
4305     cat conftest.er1 >&5
4306     rm -f conftest.er1 conftest.err
4307   fi
4308   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4309   test $ac_status = 0; }
4310 done
4311
4312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4313 /* end confdefs.h.  */
4314
4315 int
4316 main ()
4317 {
4318
4319   ;
4320   return 0;
4321 }
4322 _ACEOF
4323 # FIXME: Cleanup?
4324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
4325   (eval $ac_link) 2>&5
4326   ac_status=$?
4327   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4328   test $ac_status = 0; }; then :
4329   gcc_no_link=no
4330 else
4331   gcc_no_link=yes
4332 fi
4333 if test x$gcc_no_link = xyes; then
4334   # Setting cross_compile will disable run tests; it will
4335   # also disable AC_CHECK_FILE but that's generally
4336   # correct if we can't link.
4337   cross_compiling=yes
4338   EXEEXT=
4339 else
4340   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4341 /* end confdefs.h.  */
4342
4343 int
4344 main ()
4345 {
4346
4347   ;
4348   return 0;
4349 }
4350 _ACEOF
4351 ac_clean_files_save=$ac_clean_files
4352 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4353 # Try to create an executable without -o first, disregard a.out.
4354 # It will help us diagnose broken compilers, and finding out an intuition
4355 # of exeext.
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4357 $as_echo_n "checking for C compiler default output file name... " >&6; }
4358 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4359
4360 # The possible output files:
4361 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4362
4363 ac_rmfiles=
4364 for ac_file in $ac_files
4365 do
4366   case $ac_file in
4367     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4368     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4369   esac
4370 done
4371 rm -f $ac_rmfiles
4372
4373 if { { ac_try="$ac_link_default"
4374 case "(($ac_try" in
4375   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4376   *) ac_try_echo=$ac_try;;
4377 esac
4378 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4379 $as_echo "$ac_try_echo"; } >&5
4380   (eval "$ac_link_default") 2>&5
4381   ac_status=$?
4382   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4383   test $ac_status = 0; }; then :
4384   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4385 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4386 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
4387 # so that the user can short-circuit this test for compilers unknown to
4388 # Autoconf.
4389 for ac_file in $ac_files ''
4390 do
4391   test -f "$ac_file" || continue
4392   case $ac_file in
4393     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4394         ;;
4395     [ab].out )
4396         # We found the default executable, but exeext='' is most
4397         # certainly right.
4398         break;;
4399     *.* )
4400         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4401         then :; else
4402            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4403         fi
4404         # We set ac_cv_exeext here because the later test for it is not
4405         # safe: cross compilers may not add the suffix if given an `-o'
4406         # argument, so we may need to know it at that point already.
4407         # Even if this section looks crufty: it has the advantage of
4408         # actually working.
4409         break;;
4410     * )
4411         break;;
4412   esac
4413 done
4414 test "$ac_cv_exeext" = no && ac_cv_exeext=
4415
4416 else
4417   ac_file=''
4418 fi
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4420 $as_echo "$ac_file" >&6; }
4421 if test -z "$ac_file"; then :
4422   $as_echo "$as_me: failed program was:" >&5
4423 sed 's/^/| /' conftest.$ac_ext >&5
4424
4425 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4426 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4427 { as_fn_set_status 77
4428 as_fn_error "C compiler cannot create executables
4429 See \`config.log' for more details." "$LINENO" 5; }; }
4430 fi
4431 ac_exeext=$ac_cv_exeext
4432
4433 # Check that the compiler produces executables we can run.  If not, either
4434 # the compiler is broken, or we cross compile.
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4436 $as_echo_n "checking whether the C compiler works... " >&6; }
4437 # If not cross compiling, check that we can run a simple program.
4438 if test "$cross_compiling" != yes; then
4439   if { ac_try='./$ac_file'
4440   { { case "(($ac_try" in
4441   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4442   *) ac_try_echo=$ac_try;;
4443 esac
4444 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4445 $as_echo "$ac_try_echo"; } >&5
4446   (eval "$ac_try") 2>&5
4447   ac_status=$?
4448   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4449   test $ac_status = 0; }; }; then
4450     cross_compiling=no
4451   else
4452     if test "$cross_compiling" = maybe; then
4453         cross_compiling=yes
4454     else
4455         { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4456 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4457 as_fn_error "cannot run C compiled programs.
4458 If you meant to cross compile, use \`--host'.
4459 See \`config.log' for more details." "$LINENO" 5; }
4460     fi
4461   fi
4462 fi
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4464 $as_echo "yes" >&6; }
4465
4466 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4467 ac_clean_files=$ac_clean_files_save
4468 # Check that the compiler produces executables we can run.  If not, either
4469 # the compiler is broken, or we cross compile.
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4471 $as_echo_n "checking whether we are cross compiling... " >&6; }
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4473 $as_echo "$cross_compiling" >&6; }
4474
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4476 $as_echo_n "checking for suffix of executables... " >&6; }
4477 if { { ac_try="$ac_link"
4478 case "(($ac_try" in
4479   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4480   *) ac_try_echo=$ac_try;;
4481 esac
4482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4483 $as_echo "$ac_try_echo"; } >&5
4484   (eval "$ac_link") 2>&5
4485   ac_status=$?
4486   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4487   test $ac_status = 0; }; then :
4488   # If both `conftest.exe' and `conftest' are `present' (well, observable)
4489 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4490 # work properly (i.e., refer to `conftest.exe'), while it won't with
4491 # `rm'.
4492 for ac_file in conftest.exe conftest conftest.*; do
4493   test -f "$ac_file" || continue
4494   case $ac_file in
4495     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4496     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4497           break;;
4498     * ) break;;
4499   esac
4500 done
4501 else
4502   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4503 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4504 as_fn_error "cannot compute suffix of executables: cannot compile and link
4505 See \`config.log' for more details." "$LINENO" 5; }
4506 fi
4507 rm -f conftest$ac_cv_exeext
4508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4509 $as_echo "$ac_cv_exeext" >&6; }
4510
4511 rm -f conftest.$ac_ext
4512 EXEEXT=$ac_cv_exeext
4513 ac_exeext=$EXEEXT
4514 fi
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4516 $as_echo_n "checking for suffix of object files... " >&6; }
4517 if test "${ac_cv_objext+set}" = set; then :
4518   $as_echo_n "(cached) " >&6
4519 else
4520   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h.  */
4522
4523 int
4524 main ()
4525 {
4526
4527   ;
4528   return 0;
4529 }
4530 _ACEOF
4531 rm -f conftest.o conftest.obj
4532 if { { ac_try="$ac_compile"
4533 case "(($ac_try" in
4534   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4535   *) ac_try_echo=$ac_try;;
4536 esac
4537 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4538 $as_echo "$ac_try_echo"; } >&5
4539   (eval "$ac_compile") 2>&5
4540   ac_status=$?
4541   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4542   test $ac_status = 0; }; then :
4543   for ac_file in conftest.o conftest.obj conftest.*; do
4544   test -f "$ac_file" || continue;
4545   case $ac_file in
4546     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4547     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4548        break;;
4549   esac
4550 done
4551 else
4552   $as_echo "$as_me: failed program was:" >&5
4553 sed 's/^/| /' conftest.$ac_ext >&5
4554
4555 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4556 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4557 as_fn_error "cannot compute suffix of object files: cannot compile
4558 See \`config.log' for more details." "$LINENO" 5; }
4559 fi
4560 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4561 fi
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4563 $as_echo "$ac_cv_objext" >&6; }
4564 OBJEXT=$ac_cv_objext
4565 ac_objext=$OBJEXT
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4567 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4568 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4569   $as_echo_n "(cached) " >&6
4570 else
4571   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4572 /* end confdefs.h.  */
4573
4574 int
4575 main ()
4576 {
4577 #ifndef __GNUC__
4578        choke me
4579 #endif
4580
4581   ;
4582   return 0;
4583 }
4584 _ACEOF
4585 if ac_fn_c_try_compile "$LINENO"; then :
4586   ac_compiler_gnu=yes
4587 else
4588   ac_compiler_gnu=no
4589 fi
4590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4591 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4592
4593 fi
4594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4595 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4596 if test $ac_compiler_gnu = yes; then
4597   GCC=yes
4598 else
4599   GCC=
4600 fi
4601 ac_test_CFLAGS=${CFLAGS+set}
4602 ac_save_CFLAGS=$CFLAGS
4603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4604 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4605 if test "${ac_cv_prog_cc_g+set}" = set; then :
4606   $as_echo_n "(cached) " >&6
4607 else
4608   ac_save_c_werror_flag=$ac_c_werror_flag
4609    ac_c_werror_flag=yes
4610    ac_cv_prog_cc_g=no
4611    CFLAGS="-g"
4612    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4613 /* end confdefs.h.  */
4614
4615 int
4616 main ()
4617 {
4618
4619   ;
4620   return 0;
4621 }
4622 _ACEOF
4623 if ac_fn_c_try_compile "$LINENO"; then :
4624   ac_cv_prog_cc_g=yes
4625 else
4626   CFLAGS=""
4627       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4628 /* end confdefs.h.  */
4629
4630 int
4631 main ()
4632 {
4633
4634   ;
4635   return 0;
4636 }
4637 _ACEOF
4638 if ac_fn_c_try_compile "$LINENO"; then :
4639
4640 else
4641   ac_c_werror_flag=$ac_save_c_werror_flag
4642          CFLAGS="-g"
4643          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4644 /* end confdefs.h.  */
4645
4646 int
4647 main ()
4648 {
4649
4650   ;
4651   return 0;
4652 }
4653 _ACEOF
4654 if ac_fn_c_try_compile "$LINENO"; then :
4655   ac_cv_prog_cc_g=yes
4656 fi
4657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4658 fi
4659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4660 fi
4661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4662    ac_c_werror_flag=$ac_save_c_werror_flag
4663 fi
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4665 $as_echo "$ac_cv_prog_cc_g" >&6; }
4666 if test "$ac_test_CFLAGS" = set; then
4667   CFLAGS=$ac_save_CFLAGS
4668 elif test $ac_cv_prog_cc_g = yes; then
4669   if test "$GCC" = yes; then
4670     CFLAGS="-g -O2"
4671   else
4672     CFLAGS="-g"
4673   fi
4674 else
4675   if test "$GCC" = yes; then
4676     CFLAGS="-O2"
4677   else
4678     CFLAGS=
4679   fi
4680 fi
4681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4682 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4683 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4684   $as_echo_n "(cached) " >&6
4685 else
4686   ac_cv_prog_cc_c89=no
4687 ac_save_CC=$CC
4688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4689 /* end confdefs.h.  */
4690 #include <stdarg.h>
4691 #include <stdio.h>
4692 #include <sys/types.h>
4693 #include <sys/stat.h>
4694 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4695 struct buf { int x; };
4696 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4697 static char *e (p, i)
4698      char **p;
4699      int i;
4700 {
4701   return p[i];
4702 }
4703 static char *f (char * (*g) (char **, int), char **p, ...)
4704 {
4705   char *s;
4706   va_list v;
4707   va_start (v,p);
4708   s = g (p, va_arg (v,int));
4709   va_end (v);
4710   return s;
4711 }
4712
4713 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4714    function prototypes and stuff, but not '\xHH' hex character constants.
4715    These don't provoke an error unfortunately, instead are silently treated
4716    as 'x'.  The following induces an error, until -std is added to get
4717    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4718    array size at least.  It's necessary to write '\x00'==0 to get something
4719    that's true only with -std.  */
4720 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4721
4722 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4723    inside strings and character constants.  */
4724 #define FOO(x) 'x'
4725 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4726
4727 int test (int i, double x);
4728 struct s1 {int (*f) (int a);};
4729 struct s2 {int (*f) (double a);};
4730 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4731 int argc;
4732 char **argv;
4733 int
4734 main ()
4735 {
4736 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4737   ;
4738   return 0;
4739 }
4740 _ACEOF
4741 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4742         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4743 do
4744   CC="$ac_save_CC $ac_arg"
4745   if ac_fn_c_try_compile "$LINENO"; then :
4746   ac_cv_prog_cc_c89=$ac_arg
4747 fi
4748 rm -f core conftest.err conftest.$ac_objext
4749   test "x$ac_cv_prog_cc_c89" != "xno" && break
4750 done
4751 rm -f conftest.$ac_ext
4752 CC=$ac_save_CC
4753
4754 fi
4755 # AC_CACHE_VAL
4756 case "x$ac_cv_prog_cc_c89" in
4757   x)
4758     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4759 $as_echo "none needed" >&6; } ;;
4760   xno)
4761     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4762 $as_echo "unsupported" >&6; } ;;
4763   *)
4764     CC="$CC $ac_cv_prog_cc_c89"
4765     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4766 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4767 esac
4768 if test "x$ac_cv_prog_cc_c89" != xno; then :
4769
4770 fi
4771
4772 ac_ext=c
4773 ac_cpp='$CPP $CPPFLAGS'
4774 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4775 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4776 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4777
4778 depcc="$CC"   am_compiler_list=
4779
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4781 $as_echo_n "checking dependency style of $depcc... " >&6; }
4782 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4783   $as_echo_n "(cached) " >&6
4784 else
4785   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4786   # We make a subdir and do the tests there.  Otherwise we can end up
4787   # making bogus files that we don't know about and never remove.  For
4788   # instance it was reported that on HP-UX the gcc test will end up
4789   # making a dummy file named `D' -- because `-MD' means `put the output
4790   # in D'.
4791   mkdir conftest.dir
4792   # Copy depcomp to subdir because otherwise we won't find it if we're
4793   # using a relative directory.
4794   cp "$am_depcomp" conftest.dir
4795   cd conftest.dir
4796   # We will build objects and dependencies in a subdirectory because
4797   # it helps to detect inapplicable dependency modes.  For instance
4798   # both Tru64's cc and ICC support -MD to output dependencies as a
4799   # side effect of compilation, but ICC will put the dependencies in
4800   # the current directory while Tru64 will put them in the object
4801   # directory.
4802   mkdir sub
4803
4804   am_cv_CC_dependencies_compiler_type=none
4805   if test "$am_compiler_list" = ""; then
4806      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4807   fi
4808   am__universal=false
4809   case " $depcc " in #(
4810      *\ -arch\ *\ -arch\ *) am__universal=true ;;
4811      esac
4812
4813   for depmode in $am_compiler_list; do
4814     # Setup a source with many dependencies, because some compilers
4815     # like to wrap large dependency lists on column 80 (with \), and
4816     # we should not choose a depcomp mode which is confused by this.
4817     #
4818     # We need to recreate these files for each test, as the compiler may
4819     # overwrite some of them when testing with obscure command lines.
4820     # This happens at least with the AIX C compiler.
4821     : > sub/conftest.c
4822     for i in 1 2 3 4 5 6; do
4823       echo '#include "conftst'$i'.h"' >> sub/conftest.c
4824       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4825       # Solaris 8's {/usr,}/bin/sh.
4826       touch sub/conftst$i.h
4827     done
4828     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4829
4830     # We check with `-c' and `-o' for the sake of the "dashmstdout"
4831     # mode.  It turns out that the SunPro C++ compiler does not properly
4832     # handle `-M -o', and we need to detect this.  Also, some Intel
4833     # versions had trouble with output in subdirs
4834     am__obj=sub/conftest.${OBJEXT-o}
4835     am__minus_obj="-o $am__obj"
4836     case $depmode in
4837     gcc)
4838       # This depmode causes a compiler race in universal mode.
4839       test "$am__universal" = false || continue
4840       ;;
4841     nosideeffect)
4842       # after this tag, mechanisms are not by side-effect, so they'll
4843       # only be used when explicitly requested
4844       if test "x$enable_dependency_tracking" = xyes; then
4845         continue
4846       else
4847         break
4848       fi
4849       ;;
4850     msvisualcpp | msvcmsys)
4851       # This compiler won't grok `-c -o', but also, the minuso test has
4852       # not run yet.  These depmodes are late enough in the game, and
4853       # so weak that their functioning should not be impacted.
4854       am__obj=conftest.${OBJEXT-o}
4855       am__minus_obj=
4856       ;;
4857     none) break ;;
4858     esac
4859     if depmode=$depmode \
4860        source=sub/conftest.c object=$am__obj \
4861        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4862        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4863          >/dev/null 2>conftest.err &&
4864        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4865        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4866        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4867        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4868       # icc doesn't choke on unknown options, it will just issue warnings
4869       # or remarks (even with -Werror).  So we grep stderr for any message
4870       # that says an option was ignored or not supported.
4871       # When given -MP, icc 7.0 and 7.1 complain thusly:
4872       #   icc: Command line warning: ignoring option '-M'; no argument required
4873       # The diagnosis changed in icc 8.0:
4874       #   icc: Command line remark: option '-MP' not supported
4875       if (grep 'ignoring option' conftest.err ||
4876           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4877         am_cv_CC_dependencies_compiler_type=$depmode
4878         break
4879       fi
4880     fi
4881   done
4882
4883   cd ..
4884   rm -rf conftest.dir
4885 else
4886   am_cv_CC_dependencies_compiler_type=none
4887 fi
4888
4889 fi
4890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4891 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4892 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4893
4894  if
4895   test "x$enable_dependency_tracking" != xno \
4896   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4897   am__fastdepCC_TRUE=
4898   am__fastdepCC_FALSE='#'
4899 else
4900   am__fastdepCC_TRUE='#'
4901   am__fastdepCC_FALSE=
4902 fi
4903
4904
4905
4906 ac_ext=c
4907 ac_cpp='$CPP $CPPFLAGS'
4908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4912 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4913 # On Suns, sometimes $CPP names a directory.
4914 if test -n "$CPP" && test -d "$CPP"; then
4915   CPP=
4916 fi
4917 if test -z "$CPP"; then
4918   if test "${ac_cv_prog_CPP+set}" = set; then :
4919   $as_echo_n "(cached) " >&6
4920 else
4921       # Double quotes because CPP needs to be expanded
4922     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4923     do
4924       ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4926 do
4927   # Use a header file that comes with gcc, so configuring glibc
4928   # with a fresh cross-compiler works.
4929   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930   # <limits.h> exists even on freestanding compilers.
4931   # On the NeXT, cc -E runs the code through the compiler's parser,
4932   # not just through cpp. "Syntax error" is here to catch this case.
4933   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4934 /* end confdefs.h.  */
4935 #ifdef __STDC__
4936 # include <limits.h>
4937 #else
4938 # include <assert.h>
4939 #endif
4940                      Syntax error
4941 _ACEOF
4942 if ac_fn_c_try_cpp "$LINENO"; then :
4943
4944 else
4945   # Broken: fails on valid input.
4946 continue
4947 fi
4948 rm -f conftest.err conftest.$ac_ext
4949
4950   # OK, works on sane cases.  Now check whether nonexistent headers
4951   # can be detected and how.
4952   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4953 /* end confdefs.h.  */
4954 #include <ac_nonexistent.h>
4955 _ACEOF
4956 if ac_fn_c_try_cpp "$LINENO"; then :
4957   # Broken: success on invalid input.
4958 continue
4959 else
4960   # Passes both tests.
4961 ac_preproc_ok=:
4962 break
4963 fi
4964 rm -f conftest.err conftest.$ac_ext
4965
4966 done
4967 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4968 rm -f conftest.err conftest.$ac_ext
4969 if $ac_preproc_ok; then :
4970   break
4971 fi
4972
4973     done
4974     ac_cv_prog_CPP=$CPP
4975
4976 fi
4977   CPP=$ac_cv_prog_CPP
4978 else
4979   ac_cv_prog_CPP=$CPP
4980 fi
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4982 $as_echo "$CPP" >&6; }
4983 ac_preproc_ok=false
4984 for ac_c_preproc_warn_flag in '' yes
4985 do
4986   # Use a header file that comes with gcc, so configuring glibc
4987   # with a fresh cross-compiler works.
4988   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4989   # <limits.h> exists even on freestanding compilers.
4990   # On the NeXT, cc -E runs the code through the compiler's parser,
4991   # not just through cpp. "Syntax error" is here to catch this case.
4992   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4993 /* end confdefs.h.  */
4994 #ifdef __STDC__
4995 # include <limits.h>
4996 #else
4997 # include <assert.h>
4998 #endif
4999                      Syntax error
5000 _ACEOF
5001 if ac_fn_c_try_cpp "$LINENO"; then :
5002
5003 else
5004   # Broken: fails on valid input.
5005 continue
5006 fi
5007 rm -f conftest.err conftest.$ac_ext
5008
5009   # OK, works on sane cases.  Now check whether nonexistent headers
5010   # can be detected and how.
5011   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5012 /* end confdefs.h.  */
5013 #include <ac_nonexistent.h>
5014 _ACEOF
5015 if ac_fn_c_try_cpp "$LINENO"; then :
5016   # Broken: success on invalid input.
5017 continue
5018 else
5019   # Passes both tests.
5020 ac_preproc_ok=:
5021 break
5022 fi
5023 rm -f conftest.err conftest.$ac_ext
5024
5025 done
5026 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5027 rm -f conftest.err conftest.$ac_ext
5028 if $ac_preproc_ok; then :
5029
5030 else
5031   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5033 as_fn_error "C preprocessor \"$CPP\" fails sanity check
5034 See \`config.log' for more details." "$LINENO" 5; }
5035 fi
5036
5037 ac_ext=c
5038 ac_cpp='$CPP $CPPFLAGS'
5039 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5040 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5041 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5042
5043
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5045 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5046 if test "${ac_cv_path_GREP+set}" = set; then :
5047   $as_echo_n "(cached) " >&6
5048 else
5049   if test -z "$GREP"; then
5050   ac_path_GREP_found=false
5051   # Loop through the user's path and test for each of PROGNAME-LIST
5052   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5053 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5054 do
5055   IFS=$as_save_IFS
5056   test -z "$as_dir" && as_dir=.
5057     for ac_prog in grep ggrep; do
5058     for ac_exec_ext in '' $ac_executable_extensions; do
5059       ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5060       { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
5061 # Check for GNU ac_path_GREP and select it if it is found.
5062   # Check for GNU $ac_path_GREP
5063 case `"$ac_path_GREP" --version 2>&1` in
5064 *GNU*)
5065   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5066 *)
5067   ac_count=0
5068   $as_echo_n 0123456789 >"conftest.in"
5069   while :
5070   do
5071     cat "conftest.in" "conftest.in" >"conftest.tmp"
5072     mv "conftest.tmp" "conftest.in"
5073     cp "conftest.in" "conftest.nl"
5074     $as_echo 'GREP' >> "conftest.nl"
5075     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5076     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5077     as_fn_arith $ac_count + 1 && ac_count=$as_val
5078     if test $ac_count -gt ${ac_path_GREP_max-0}; then
5079       # Best one so far, save it but keep looking for a better one
5080       ac_cv_path_GREP="$ac_path_GREP"
5081       ac_path_GREP_max=$ac_count
5082     fi
5083     # 10*(2^10) chars as input seems more than enough
5084     test $ac_count -gt 10 && break
5085   done
5086   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5087 esac
5088
5089       $ac_path_GREP_found && break 3
5090     done
5091   done
5092   done
5093 IFS=$as_save_IFS
5094   if test -z "$ac_cv_path_GREP"; then
5095     as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5096   fi
5097 else
5098   ac_cv_path_GREP=$GREP
5099 fi
5100
5101 fi
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5103 $as_echo "$ac_cv_path_GREP" >&6; }
5104  GREP="$ac_cv_path_GREP"
5105
5106
5107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5108 $as_echo_n "checking for egrep... " >&6; }
5109 if test "${ac_cv_path_EGREP+set}" = set; then :
5110   $as_echo_n "(cached) " >&6
5111 else
5112   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5113    then ac_cv_path_EGREP="$GREP -E"
5114    else
5115      if test -z "$EGREP"; then
5116   ac_path_EGREP_found=false
5117   # Loop through the user's path and test for each of PROGNAME-LIST
5118   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5119 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5120 do
5121   IFS=$as_save_IFS
5122   test -z "$as_dir" && as_dir=.
5123     for ac_prog in egrep; do
5124     for ac_exec_ext in '' $ac_executable_extensions; do
5125       ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5126       { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
5127 # Check for GNU ac_path_EGREP and select it if it is found.
5128   # Check for GNU $ac_path_EGREP
5129 case `"$ac_path_EGREP" --version 2>&1` in
5130 *GNU*)
5131   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5132 *)
5133   ac_count=0
5134   $as_echo_n 0123456789 >"conftest.in"
5135   while :
5136   do
5137     cat "conftest.in" "conftest.in" >"conftest.tmp"
5138     mv "conftest.tmp" "conftest.in"
5139     cp "conftest.in" "conftest.nl"
5140     $as_echo 'EGREP' >> "conftest.nl"
5141     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5142     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5143     as_fn_arith $ac_count + 1 && ac_count=$as_val
5144     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5145       # Best one so far, save it but keep looking for a better one
5146       ac_cv_path_EGREP="$ac_path_EGREP"
5147       ac_path_EGREP_max=$ac_count
5148     fi
5149     # 10*(2^10) chars as input seems more than enough
5150     test $ac_count -gt 10 && break
5151   done
5152   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5153 esac
5154
5155       $ac_path_EGREP_found && break 3
5156     done
5157   done
5158   done
5159 IFS=$as_save_IFS
5160   if test -z "$ac_cv_path_EGREP"; then
5161     as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5162   fi
5163 else
5164   ac_cv_path_EGREP=$EGREP
5165 fi
5166
5167    fi
5168 fi
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5170 $as_echo "$ac_cv_path_EGREP" >&6; }
5171  EGREP="$ac_cv_path_EGREP"
5172
5173
5174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5175 $as_echo_n "checking for ANSI C header files... " >&6; }
5176 if test "${ac_cv_header_stdc+set}" = set; then :
5177   $as_echo_n "(cached) " >&6
5178 else
5179   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5180 /* end confdefs.h.  */
5181 #include <stdlib.h>
5182 #include <stdarg.h>
5183 #include <string.h>
5184 #include <float.h>
5185
5186 int
5187 main ()
5188 {
5189
5190   ;
5191   return 0;
5192 }
5193 _ACEOF
5194 if ac_fn_c_try_compile "$LINENO"; then :
5195   ac_cv_header_stdc=yes
5196 else
5197   ac_cv_header_stdc=no
5198 fi
5199 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5200
5201 if test $ac_cv_header_stdc = yes; then
5202   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5203   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204 /* end confdefs.h.  */
5205 #include <string.h>
5206
5207 _ACEOF
5208 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5209   $EGREP "memchr" >/dev/null 2>&1; then :
5210
5211 else
5212   ac_cv_header_stdc=no
5213 fi
5214 rm -f conftest*
5215
5216 fi
5217
5218 if test $ac_cv_header_stdc = yes; then
5219   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5220   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5221 /* end confdefs.h.  */
5222 #include <stdlib.h>
5223
5224 _ACEOF
5225 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5226   $EGREP "free" >/dev/null 2>&1; then :
5227
5228 else
5229   ac_cv_header_stdc=no
5230 fi
5231 rm -f conftest*
5232
5233 fi
5234
5235 if test $ac_cv_header_stdc = yes; then
5236   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5237   if test "$cross_compiling" = yes; then :
5238   :
5239 else
5240   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5241 /* end confdefs.h.  */
5242 #include <ctype.h>
5243 #include <stdlib.h>
5244 #if ((' ' & 0x0FF) == 0x020)
5245 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5246 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5247 #else
5248 # define ISLOWER(c) \
5249                    (('a' <= (c) && (c) <= 'i') \
5250                      || ('j' <= (c) && (c) <= 'r') \
5251                      || ('s' <= (c) && (c) <= 'z'))
5252 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5253 #endif
5254
5255 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5256 int
5257 main ()
5258 {
5259   int i;
5260   for (i = 0; i < 256; i++)
5261     if (XOR (islower (i), ISLOWER (i))
5262         || toupper (i) != TOUPPER (i))
5263       return 2;
5264   return 0;
5265 }
5266 _ACEOF
5267 if ac_fn_c_try_run "$LINENO"; then :
5268
5269 else
5270   ac_cv_header_stdc=no
5271 fi
5272 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5273   conftest.$ac_objext conftest.beam conftest.$ac_ext
5274 fi
5275
5276 fi
5277 fi
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5279 $as_echo "$ac_cv_header_stdc" >&6; }
5280 if test $ac_cv_header_stdc = yes; then
5281
5282 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5283
5284 fi
5285
5286 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5287 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5288                   inttypes.h stdint.h unistd.h
5289 do :
5290   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5291 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5292 "
5293 eval as_val=\$$as_ac_Header
5294    if test "x$as_val" = x""yes; then :
5295   cat >>confdefs.h <<_ACEOF
5296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5297 _ACEOF
5298
5299 fi
5300
5301 done
5302
5303
5304 # Check whether --enable-alsa was given.
5305 if test "${enable_alsa+set}" = set; then :
5306   enableval=$enable_alsa; case "${enableval}" in
5307                 yes) COMPILE_ALSA=yes ;;
5308                 no) COMPILE_ALSA=no ;;
5309                 *) COMPILE_ALSA=yes ;;
5310               esac
5311 else
5312   for ac_header in alsa/asoundlib.h
5313 do :
5314   ac_fn_c_check_header_mongrel "$LINENO" "alsa/asoundlib.h" "ac_cv_header_alsa_asoundlib_h" "$ac_includes_default"
5315 if test "x$ac_cv_header_alsa_asoundlib_h" = x""yes; then :
5316   cat >>confdefs.h <<_ACEOF
5317 #define HAVE_ALSA_ASOUNDLIB_H 1
5318 _ACEOF
5319  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for snd_seq_open in -lasound" >&5
5320 $as_echo_n "checking for snd_seq_open in -lasound... " >&6; }
5321 if test "${ac_cv_lib_asound_snd_seq_open+set}" = set; then :
5322   $as_echo_n "(cached) " >&6
5323 else
5324   ac_check_lib_save_LIBS=$LIBS
5325 LIBS="-lasound  $LIBS"
5326 if test x$gcc_no_link = xyes; then
5327   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5328 fi
5329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5330 /* end confdefs.h.  */
5331
5332 /* Override any GCC internal prototype to avoid an error.
5333    Use char because int might match the return type of a GCC
5334    builtin and then its argument prototype would still apply.  */
5335 #ifdef __cplusplus
5336 extern "C"
5337 #endif
5338 char snd_seq_open ();
5339 int
5340 main ()
5341 {
5342 return snd_seq_open ();
5343   ;
5344   return 0;
5345 }
5346 _ACEOF
5347 if ac_fn_c_try_link "$LINENO"; then :
5348   ac_cv_lib_asound_snd_seq_open=yes
5349 else
5350   ac_cv_lib_asound_snd_seq_open=no
5351 fi
5352 rm -f core conftest.err conftest.$ac_objext \
5353     conftest$ac_exeext conftest.$ac_ext
5354 LIBS=$ac_check_lib_save_LIBS
5355 fi
5356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_asound_snd_seq_open" >&5
5357 $as_echo "$ac_cv_lib_asound_snd_seq_open" >&6; }
5358 if test "x$ac_cv_lib_asound_snd_seq_open" = x""yes; then :
5359   COMPILE_ALSA=yes
5360 else
5361   COMPILE_ALSA=no
5362 fi
5363
5364 else
5365   COMPILE_ALSA=no
5366 fi
5367
5368 done
5369
5370 fi
5371
5372  if test "x${COMPILE_ALSA}" = xyes; then
5373   CREATE_ALSA_LIBRARIES_TRUE=
5374   CREATE_ALSA_LIBRARIES_FALSE='#'
5375 else
5376   CREATE_ALSA_LIBRARIES_TRUE='#'
5377   CREATE_ALSA_LIBRARIES_FALSE=
5378 fi
5379
5380
5381 # Check whether --enable-dssi was given.
5382 if test "${enable_dssi+set}" = set; then :
5383   enableval=$enable_dssi; case "${enableval}" in
5384                 yes) COMPILE_DSSI=yes ;;
5385                 no) COMPILE_DSSI=no ;;
5386                 *) COMPILE_DSSI=yes ;;
5387               esac
5388 else
5389   COMPILE_DSSI=no
5390                for ac_header in dssi.h
5391 do :
5392   ac_fn_c_check_header_mongrel "$LINENO" "dssi.h" "ac_cv_header_dssi_h" "$ac_includes_default"
5393 if test "x$ac_cv_header_dssi_h" = x""yes; then :
5394   cat >>confdefs.h <<_ACEOF
5395 #define HAVE_DSSI_H 1
5396 _ACEOF
5397
5398                  for ac_header in jack/jack.h
5399 do :
5400   ac_fn_c_check_header_mongrel "$LINENO" "jack/jack.h" "ac_cv_header_jack_jack_h" "$ac_includes_default"
5401 if test "x$ac_cv_header_jack_jack_h" = x""yes; then :
5402   cat >>confdefs.h <<_ACEOF
5403 #define HAVE_JACK_JACK_H 1
5404 _ACEOF
5405  COMPILE_DSSI=yes
5406 fi
5407
5408 done
5409
5410 fi
5411
5412 done
5413
5414 fi
5415
5416  if test "x${COMPILE_DSSI}" = xyes; then
5417   CREATE_DSSI_LIBRARIES_TRUE=
5418   CREATE_DSSI_LIBRARIES_FALSE='#'
5419 else
5420   CREATE_DSSI_LIBRARIES_TRUE='#'
5421   CREATE_DSSI_LIBRARIES_FALSE=
5422 fi
5423
5424
5425 # Check whether --enable-gtk-peer was given.
5426 if test "${enable_gtk_peer+set}" = set; then :
5427   enableval=$enable_gtk_peer; case "${enableval}" in
5428                 yes) COMPILE_GTK_PEER=yes ;;
5429                 no) COMPILE_GTK_PEER=no ;;
5430                 *) COMPILE_GTK_PEER=yes ;;
5431               esac
5432 else
5433   COMPILE_GTK_PEER=yes
5434 fi
5435
5436  if test "x${COMPILE_GTK_PEER}" = xyes; then
5437   CREATE_GTK_PEER_LIBRARIES_TRUE=
5438   CREATE_GTK_PEER_LIBRARIES_FALSE='#'
5439 else
5440   CREATE_GTK_PEER_LIBRARIES_TRUE='#'
5441   CREATE_GTK_PEER_LIBRARIES_FALSE=
5442 fi
5443
5444
5445 # Check whether --enable-gtk-peers was given.
5446 if test "${enable_gtk_peers+set}" = set; then :
5447   enableval=$enable_gtk_peers; as_fn_error "No --enable-gtk-peers (or --disable-gtk-peers) option; you want --enable-gtk-peer" "$LINENO" 5
5448 fi
5449
5450
5451 # Check whether --enable-qt-peer was given.
5452 if test "${enable_qt_peer+set}" = set; then :
5453   enableval=$enable_qt_peer; case "${enableval}" in
5454                 yes) COMPILE_QT_PEER=yes ;;
5455                 no) COMPILE_QT_PEER=no ;;
5456                 *) COMPILE_QT_PEER=yes ;;
5457               esac
5458 else
5459   COMPILE_QT_PEER=no
5460 fi
5461
5462  if test "x${COMPILE_QT_PEER}" = xyes; then
5463   CREATE_QT_PEER_LIBRARIES_TRUE=
5464   CREATE_QT_PEER_LIBRARIES_FALSE='#'
5465 else
5466   CREATE_QT_PEER_LIBRARIES_TRUE='#'
5467   CREATE_QT_PEER_LIBRARIES_FALSE=
5468 fi
5469
5470
5471 # Check whether --enable-plugin was given.
5472 if test "${enable_plugin+set}" = set; then :
5473   enableval=$enable_plugin; case "${enableval}" in
5474                 yes) COMPILE_PLUGIN=yes ;;
5475                 no) COMPILE_PLUGIN=no ;;
5476                 *) COMPILE_PLUGIN=yes ;;
5477               esac
5478 else
5479   COMPILE_PLUGIN=no
5480 fi
5481
5482  if test "x${COMPILE_PLUGIN}" = xyes; then
5483   CREATE_PLUGIN_TRUE=
5484   CREATE_PLUGIN_FALSE='#'
5485 else
5486   CREATE_PLUGIN_TRUE='#'
5487   CREATE_PLUGIN_FALSE=
5488 fi
5489
5490
5491 # Check whether --enable-gmp was given.
5492 if test "${enable_gmp+set}" = set; then :
5493   enableval=$enable_gmp; case "${enableval}" in
5494                 yes|true) COMPILE_GMP=yes ;;
5495                 no|false) COMPILE_GMP=no ;;
5496                 *) COMPILE_GMP=yes ;;
5497               esac
5498 else
5499   COMPILE_GMP=yes
5500 fi
5501
5502
5503 # Check whether --enable-gjdoc was given.
5504 if test "${enable_gjdoc+set}" = set; then :
5505   enableval=$enable_gjdoc; case "${enableval}" in
5506                 yes) COMPILE_GJDOC=yes ;;
5507                 no) COMPILE_GJDOC=no ;;
5508                 *) COMPILE_GJDOC=yes ;;
5509               esac
5510 else
5511   COMPILE_GJDOC=yes
5512 fi
5513
5514  if test "x${COMPILE_GJDOC}" = xyes; then
5515   CREATE_GJDOC_TRUE=
5516   CREATE_GJDOC_FALSE='#'
5517 else
5518   CREATE_GJDOC_TRUE='#'
5519   CREATE_GJDOC_FALSE=
5520 fi
5521
5522
5523
5524   multi_os_directory=`$CC -print-multi-os-directory`
5525   case $multi_os_directory in
5526     .) toolexeclibdir=${libdir} ;; # Avoid trailing /.
5527     *) toolexeclibdir=${libdir}/${multi_os_directory} ;;
5528   esac
5529
5530
5531
5532
5533 # Check whether --with-native-libdir was given.
5534 if test "${with_native_libdir+set}" = set; then :
5535   withval=$with_native_libdir;
5536              nativeexeclibdir=${withval}
5537
5538 else
5539
5540              nativeexeclibdir='${toolexeclibdir}/gcj-'`cat ${srcdir}/../../gcc/BASE-VER`-`awk -F: '/^[^#].*:/ { print $1 }' ${srcdir}/../libtool-version`
5541
5542 fi
5543
5544
5545
5546
5547
5548 # Check whether --with-glibj-dir was given.
5549 if test "${with_glibj_dir+set}" = set; then :
5550   withval=$with_glibj_dir;
5551              glibjdir=${withval}
5552
5553 else
5554
5555              glibjdir='${datadir}/${PACKAGE}'
5556
5557 fi
5558
5559
5560
5561
5562
5563 # Check whether --with-antlr-jar was given.
5564 if test "${with_antlr_jar+set}" = set; then :
5565   withval=$with_antlr_jar;
5566              ANTLR_JAR=$withval
5567
5568 else
5569
5570              ANTLR_JAR="$ANTLR_JAR"
5571
5572 fi
5573
5574
5575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the headers" >&5
5576 $as_echo_n "checking whether to regenerate the headers... " >&6; }
5577 # Check whether --enable-regen-headers was given.
5578 if test "${enable_regen_headers+set}" = set; then :
5579   enableval=$enable_regen_headers; case "${enableval}" in
5580                 yes) REGENERATE_JNI_HEADERS=yes ;;
5581                 no) REGENERATE_JNI_HEADERS=no ;;
5582                 *) REGENERATE_JNI_HEADERS=yes ;;
5583               esac
5584 else
5585   if test -e ${srcdir}/include/java_lang_VMSystem.h; then
5586                         REGENERATE_JNI_HEADERS=no ;
5587                    else
5588                         REGENERATE_JNI_HEADERS=yes ;
5589                fi
5590 fi
5591
5592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_JNI_HEADERS}" >&5
5593 $as_echo "${REGENERATE_JNI_HEADERS}" >&6; }
5594  if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
5595   CREATE_JNI_HEADERS_TRUE=
5596   CREATE_JNI_HEADERS_FALSE='#'
5597 else
5598   CREATE_JNI_HEADERS_TRUE='#'
5599   CREATE_JNI_HEADERS_FALSE=
5600 fi
5601
5602
5603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate the GJDoc parser" >&5
5604 $as_echo_n "checking whether to regenerate the GJDoc parser... " >&6; }
5605 # Check whether --enable-regen-gjdoc-parser was given.
5606 if test "${enable_regen_gjdoc_parser+set}" = set; then :
5607   enableval=$enable_regen_gjdoc_parser; case "${enableval}" in
5608                 yes) REGENERATE_GJDOC_PARSER=yes ;;
5609                 no) REGENERATE_GJDOC_PARSER=no ;;
5610                 *) REGENERATE_GJDOC_PARSER=yes ;;
5611               esac
5612 else
5613   if test -e ${srcdir}/tools/generated/gnu/classpath/tools/gjdoc/expr/JavaLexer.java; then
5614                         REGENERATE_GJDOC_PARSER=no ;
5615                    else
5616                         REGENERATE_GJDOC_PARSER=yes ;
5617                fi
5618 fi
5619
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${REGENERATE_GJDOC_PARSER}" >&5
5621 $as_echo "${REGENERATE_GJDOC_PARSER}" >&6; }
5622  if test "x${REGENERATE_GJDOC_PARSER}" = xyes; then
5623   CREATE_GJDOC_PARSER_TRUE=
5624   CREATE_GJDOC_PARSER_FALSE='#'
5625 else
5626   CREATE_GJDOC_PARSER_TRUE='#'
5627   CREATE_GJDOC_PARSER_FALSE=
5628 fi
5629
5630
5631 # Check whether --enable-tool-wrappers was given.
5632 if test "${enable_tool_wrappers+set}" = set; then :
5633   enableval=$enable_tool_wrappers; case x"${enableval}" in
5634                 xyes)
5635                   COMPILE_WRAPPERS=yes;
5636                   for ac_header in ltdl.h
5637 do :
5638   ac_fn_c_check_header_mongrel "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default"
5639 if test "x$ac_cv_header_ltdl_h" = x""yes; then :
5640   cat >>confdefs.h <<_ACEOF
5641 #define HAVE_LTDL_H 1
5642 _ACEOF
5643
5644 else
5645   as_fn_error "cannot find ltdl.h" "$LINENO" 5
5646 fi
5647
5648 done
5649
5650                   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dlopen in -lltdl" >&5
5651 $as_echo_n "checking for lt_dlopen in -lltdl... " >&6; }
5652 if test "${ac_cv_lib_ltdl_lt_dlopen+set}" = set; then :
5653   $as_echo_n "(cached) " >&6
5654 else
5655   ac_check_lib_save_LIBS=$LIBS
5656 LIBS="-lltdl  $LIBS"
5657 if test x$gcc_no_link = xyes; then
5658   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5659 fi
5660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5661 /* end confdefs.h.  */
5662
5663 /* Override any GCC internal prototype to avoid an error.
5664    Use char because int might match the return type of a GCC
5665    builtin and then its argument prototype would still apply.  */
5666 #ifdef __cplusplus
5667 extern "C"
5668 #endif
5669 char lt_dlopen ();
5670 int
5671 main ()
5672 {
5673 return lt_dlopen ();
5674   ;
5675   return 0;
5676 }
5677 _ACEOF
5678 if ac_fn_c_try_link "$LINENO"; then :
5679   ac_cv_lib_ltdl_lt_dlopen=yes
5680 else
5681   ac_cv_lib_ltdl_lt_dlopen=no
5682 fi
5683 rm -f core conftest.err conftest.$ac_objext \
5684     conftest$ac_exeext conftest.$ac_ext
5685 LIBS=$ac_check_lib_save_LIBS
5686 fi
5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dlopen" >&5
5688 $as_echo "$ac_cv_lib_ltdl_lt_dlopen" >&6; }
5689 if test "x$ac_cv_lib_ltdl_lt_dlopen" = x""yes; then :
5690   cat >>confdefs.h <<_ACEOF
5691 #define HAVE_LIBLTDL 1
5692 _ACEOF
5693
5694   LIBS="-lltdl $LIBS"
5695
5696 else
5697   as_fn_error "cannot find libltdl" "$LINENO" 5
5698 fi
5699
5700                   ;;
5701                 xno) COMPILE_WRAPPERS=no ;;
5702                 x) COMPILE_WRAPPERS=yes ;;
5703                 *) COMPILE_WRAPPERS=yes ;;
5704               esac
5705 else
5706   COMPILE_WRAPPERS=no
5707 fi
5708
5709  if test "x${COMPILE_WRAPPERS}" = xyes; then
5710   CREATE_WRAPPERS_TRUE=
5711   CREATE_WRAPPERS_FALSE='#'
5712 else
5713   CREATE_WRAPPERS_TRUE='#'
5714   CREATE_WRAPPERS_FALSE=
5715 fi
5716
5717
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5719 $as_echo_n "checking whether ln -s works... " >&6; }
5720 LN_S=$as_ln_s
5721 if test "$LN_S" = "ln -s"; then
5722   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5723 $as_echo "yes" >&6; }
5724 else
5725   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5726 $as_echo "no, using $LN_S" >&6; }
5727 fi
5728
5729
5730
5731
5732 # Check whether --enable-static was given.
5733 if test "${enable_static+set}" = set; then :
5734   enableval=$enable_static; p=${PACKAGE-default}
5735     case $enableval in
5736     yes) enable_static=yes ;;
5737     no) enable_static=no ;;
5738     *)
5739      enable_static=no
5740       # Look at the argument we got.  We use all the common list separators.
5741       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5742       for pkg in $enableval; do
5743         IFS="$lt_save_ifs"
5744         if test "X$pkg" = "X$p"; then
5745           enable_static=yes
5746         fi
5747       done
5748       IFS="$lt_save_ifs"
5749       ;;
5750     esac
5751 else
5752   enable_static=no
5753 fi
5754
5755
5756
5757
5758
5759
5760
5761
5762
5763 case `pwd` in
5764   *\ * | *\     *)
5765     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5766 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5767 esac
5768
5769
5770
5771 macro_version='2.2.7a'
5772 macro_revision='1.3134'
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786 ltmain="$ac_aux_dir/ltmain.sh"
5787
5788 # Backslashify metacharacters that are still active within
5789 # double-quoted strings.
5790 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5791
5792 # Same as above, but do not quote variable references.
5793 double_quote_subst='s/\(["`\\]\)/\\\1/g'
5794
5795 # Sed substitution to delay expansion of an escaped shell variable in a
5796 # double_quote_subst'ed string.
5797 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5798
5799 # Sed substitution to delay expansion of an escaped single quote.
5800 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5801
5802 # Sed substitution to avoid accidental globbing in evaled expressions
5803 no_glob_subst='s/\*/\\\*/g'
5804
5805 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5806 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5807 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5808
5809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5810 $as_echo_n "checking how to print strings... " >&6; }
5811 # Test print first, because it will be a builtin if present.
5812 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5813    test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5814   ECHO='print -r --'
5815 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5816   ECHO='printf %s\n'
5817 else
5818   # Use this function as a fallback that always works.
5819   func_fallback_echo ()
5820   {
5821     eval 'cat <<_LTECHO_EOF
5822 $1
5823 _LTECHO_EOF'
5824   }
5825   ECHO='func_fallback_echo'
5826 fi
5827
5828 # func_echo_all arg...
5829 # Invoke $ECHO with all args, space-separated.
5830 func_echo_all ()
5831 {
5832     $ECHO ""
5833 }
5834
5835 case "$ECHO" in
5836   printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5837 $as_echo "printf" >&6; } ;;
5838   print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5839 $as_echo "print -r" >&6; } ;;
5840   *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5841 $as_echo "cat" >&6; } ;;
5842 esac
5843
5844
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5858 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
5859 if test "${ac_cv_path_SED+set}" = set; then :
5860   $as_echo_n "(cached) " >&6
5861 else
5862             ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5863      for ac_i in 1 2 3 4 5 6 7; do
5864        ac_script="$ac_script$as_nl$ac_script"
5865      done
5866      echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5867      { ac_script=; unset ac_script;}
5868      if test -z "$SED"; then
5869   ac_path_SED_found=false
5870   # Loop through the user's path and test for each of PROGNAME-LIST
5871   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5872 for as_dir in $PATH
5873 do
5874   IFS=$as_save_IFS
5875   test -z "$as_dir" && as_dir=.
5876     for ac_prog in sed gsed; do
5877     for ac_exec_ext in '' $ac_executable_extensions; do
5878       ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5879       { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5880 # Check for GNU ac_path_SED and select it if it is found.
5881   # Check for GNU $ac_path_SED
5882 case `"$ac_path_SED" --version 2>&1` in
5883 *GNU*)
5884   ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5885 *)
5886   ac_count=0
5887   $as_echo_n 0123456789 >"conftest.in"
5888   while :
5889   do
5890     cat "conftest.in" "conftest.in" >"conftest.tmp"
5891     mv "conftest.tmp" "conftest.in"
5892     cp "conftest.in" "conftest.nl"
5893     $as_echo '' >> "conftest.nl"
5894     "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5895     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5896     as_fn_arith $ac_count + 1 && ac_count=$as_val
5897     if test $ac_count -gt ${ac_path_SED_max-0}; then
5898       # Best one so far, save it but keep looking for a better one
5899       ac_cv_path_SED="$ac_path_SED"
5900       ac_path_SED_max=$ac_count
5901     fi
5902     # 10*(2^10) chars as input seems more than enough
5903     test $ac_count -gt 10 && break
5904   done
5905   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5906 esac
5907
5908       $ac_path_SED_found && break 3
5909     done
5910   done
5911   done
5912 IFS=$as_save_IFS
5913   if test -z "$ac_cv_path_SED"; then
5914     as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
5915   fi
5916 else
5917   ac_cv_path_SED=$SED
5918 fi
5919
5920 fi
5921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5922 $as_echo "$ac_cv_path_SED" >&6; }
5923  SED="$ac_cv_path_SED"
5924   rm -f conftest.sed
5925
5926 test -z "$SED" && SED=sed
5927 Xsed="$SED -e 1s/^X//"
5928
5929
5930
5931
5932
5933
5934
5935
5936
5937
5938
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5940 $as_echo_n "checking for fgrep... " >&6; }
5941 if test "${ac_cv_path_FGREP+set}" = set; then :
5942   $as_echo_n "(cached) " >&6
5943 else
5944   if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5945    then ac_cv_path_FGREP="$GREP -F"
5946    else
5947      if test -z "$FGREP"; then
5948   ac_path_FGREP_found=false
5949   # Loop through the user's path and test for each of PROGNAME-LIST
5950   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5951 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5952 do
5953   IFS=$as_save_IFS
5954   test -z "$as_dir" && as_dir=.
5955     for ac_prog in fgrep; do
5956     for ac_exec_ext in '' $ac_executable_extensions; do
5957       ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5958       { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5959 # Check for GNU ac_path_FGREP and select it if it is found.
5960   # Check for GNU $ac_path_FGREP
5961 case `"$ac_path_FGREP" --version 2>&1` in
5962 *GNU*)
5963   ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5964 *)
5965   ac_count=0
5966   $as_echo_n 0123456789 >"conftest.in"
5967   while :
5968   do
5969     cat "conftest.in" "conftest.in" >"conftest.tmp"
5970     mv "conftest.tmp" "conftest.in"
5971     cp "conftest.in" "conftest.nl"
5972     $as_echo 'FGREP' >> "conftest.nl"
5973     "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5974     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5975     as_fn_arith $ac_count + 1 && ac_count=$as_val
5976     if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5977       # Best one so far, save it but keep looking for a better one
5978       ac_cv_path_FGREP="$ac_path_FGREP"
5979       ac_path_FGREP_max=$ac_count
5980     fi
5981     # 10*(2^10) chars as input seems more than enough
5982     test $ac_count -gt 10 && break
5983   done
5984   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5985 esac
5986
5987       $ac_path_FGREP_found && break 3
5988     done
5989   done
5990   done
5991 IFS=$as_save_IFS
5992   if test -z "$ac_cv_path_FGREP"; then
5993     as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5994   fi
5995 else
5996   ac_cv_path_FGREP=$FGREP
5997 fi
5998
5999    fi
6000 fi
6001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6002 $as_echo "$ac_cv_path_FGREP" >&6; }
6003  FGREP="$ac_cv_path_FGREP"
6004
6005
6006 test -z "$GREP" && GREP=grep
6007
6008
6009
6010
6011
6012
6013
6014
6015
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025
6026 # Check whether --with-gnu-ld was given.
6027 if test "${with_gnu_ld+set}" = set; then :
6028   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6029 else
6030   with_gnu_ld=no
6031 fi
6032
6033 ac_prog=ld
6034 if test "$GCC" = yes; then
6035   # Check if gcc -print-prog-name=ld gives a path.
6036   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6037 $as_echo_n "checking for ld used by $CC... " >&6; }
6038   case $host in
6039   *-*-mingw*)
6040     # gcc leaves a trailing carriage return which upsets mingw
6041     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6042   *)
6043     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6044   esac
6045   case $ac_prog in
6046     # Accept absolute paths.
6047     [\\/]* | ?:[\\/]*)
6048       re_direlt='/[^/][^/]*/\.\./'
6049       # Canonicalize the pathname of ld
6050       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6051       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6052         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6053       done
6054       test -z "$LD" && LD="$ac_prog"
6055       ;;
6056   "")
6057     # If it fails, then pretend we aren't using GCC.
6058     ac_prog=ld
6059     ;;
6060   *)
6061     # If it is relative, then search for the first ld in PATH.
6062     with_gnu_ld=unknown
6063     ;;
6064   esac
6065 elif test "$with_gnu_ld" = yes; then
6066   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6067 $as_echo_n "checking for GNU ld... " >&6; }
6068 else
6069   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6070 $as_echo_n "checking for non-GNU ld... " >&6; }
6071 fi
6072 if test "${lt_cv_path_LD+set}" = set; then :
6073   $as_echo_n "(cached) " >&6
6074 else
6075   if test -z "$LD"; then
6076   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6077   for ac_dir in $PATH; do
6078     IFS="$lt_save_ifs"
6079     test -z "$ac_dir" && ac_dir=.
6080     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6081       lt_cv_path_LD="$ac_dir/$ac_prog"
6082       # Check to see if the program is GNU ld.  I'd rather use --version,
6083       # but apparently some variants of GNU ld only accept -v.
6084       # Break only if it was the GNU/non-GNU ld that we prefer.
6085       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6086       *GNU* | *'with BFD'*)
6087         test "$with_gnu_ld" != no && break
6088         ;;
6089       *)
6090         test "$with_gnu_ld" != yes && break
6091         ;;
6092       esac
6093     fi
6094   done
6095   IFS="$lt_save_ifs"
6096 else
6097   lt_cv_path_LD="$LD" # Let the user override the test with a path.
6098 fi
6099 fi
6100
6101 LD="$lt_cv_path_LD"
6102 if test -n "$LD"; then
6103   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6104 $as_echo "$LD" >&6; }
6105 else
6106   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6109 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6111 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6112 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6113   $as_echo_n "(cached) " >&6
6114 else
6115   # I'd rather use --version here, but apparently some GNU lds only accept -v.
6116 case `$LD -v 2>&1 </dev/null` in
6117 *GNU* | *'with BFD'*)
6118   lt_cv_prog_gnu_ld=yes
6119   ;;
6120 *)
6121   lt_cv_prog_gnu_ld=no
6122   ;;
6123 esac
6124 fi
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6126 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6127 with_gnu_ld=$lt_cv_prog_gnu_ld
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6138 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6139 if test "${lt_cv_path_NM+set}" = set; then :
6140   $as_echo_n "(cached) " >&6
6141 else
6142   if test -n "$NM"; then
6143   # Let the user override the test.
6144   lt_cv_path_NM="$NM"
6145 else
6146   lt_nm_to_check="${ac_tool_prefix}nm"
6147   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6148     lt_nm_to_check="$lt_nm_to_check nm"
6149   fi
6150   for lt_tmp_nm in $lt_nm_to_check; do
6151     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6152     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6153       IFS="$lt_save_ifs"
6154       test -z "$ac_dir" && ac_dir=.
6155       tmp_nm="$ac_dir/$lt_tmp_nm"
6156       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6157         # Check to see if the nm accepts a BSD-compat flag.
6158         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6159         #   nm: unknown option "B" ignored
6160         # Tru64's nm complains that /dev/null is an invalid object file
6161         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6162         */dev/null* | *'Invalid file or object type'*)
6163           lt_cv_path_NM="$tmp_nm -B"
6164           break
6165           ;;
6166         *)
6167           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6168           */dev/null*)
6169             lt_cv_path_NM="$tmp_nm -p"
6170             break
6171             ;;
6172           *)
6173             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6174             continue # so that we can try to find one that supports BSD flags
6175             ;;
6176           esac
6177           ;;
6178         esac
6179       fi
6180     done
6181     IFS="$lt_save_ifs"
6182   done
6183   : ${lt_cv_path_NM=no}
6184 fi
6185 fi
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6187 $as_echo "$lt_cv_path_NM" >&6; }
6188 if test "$lt_cv_path_NM" != "no"; then
6189   NM="$lt_cv_path_NM"
6190 else
6191   # Didn't find any BSD compatible name lister, look for dumpbin.
6192   if test -n "$DUMPBIN"; then :
6193     # Let the user override the test.
6194   else
6195     if test -n "$ac_tool_prefix"; then
6196   for ac_prog in dumpbin "link -dump"
6197   do
6198     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6199 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6201 $as_echo_n "checking for $ac_word... " >&6; }
6202 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6203   $as_echo_n "(cached) " >&6
6204 else
6205   if test -n "$DUMPBIN"; then
6206   ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6207 else
6208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6209 for as_dir in $PATH
6210 do
6211   IFS=$as_save_IFS
6212   test -z "$as_dir" && as_dir=.
6213     for ac_exec_ext in '' $ac_executable_extensions; do
6214   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6215     ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6216     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6217     break 2
6218   fi
6219 done
6220   done
6221 IFS=$as_save_IFS
6222
6223 fi
6224 fi
6225 DUMPBIN=$ac_cv_prog_DUMPBIN
6226 if test -n "$DUMPBIN"; then
6227   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6228 $as_echo "$DUMPBIN" >&6; }
6229 else
6230   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6231 $as_echo "no" >&6; }
6232 fi
6233
6234
6235     test -n "$DUMPBIN" && break
6236   done
6237 fi
6238 if test -z "$DUMPBIN"; then
6239   ac_ct_DUMPBIN=$DUMPBIN
6240   for ac_prog in dumpbin "link -dump"
6241 do
6242   # Extract the first word of "$ac_prog", so it can be a program name with args.
6243 set dummy $ac_prog; ac_word=$2
6244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6245 $as_echo_n "checking for $ac_word... " >&6; }
6246 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6247   $as_echo_n "(cached) " >&6
6248 else
6249   if test -n "$ac_ct_DUMPBIN"; then
6250   ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6251 else
6252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6253 for as_dir in $PATH
6254 do
6255   IFS=$as_save_IFS
6256   test -z "$as_dir" && as_dir=.
6257     for ac_exec_ext in '' $ac_executable_extensions; do
6258   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6259     ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6260     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6261     break 2
6262   fi
6263 done
6264   done
6265 IFS=$as_save_IFS
6266
6267 fi
6268 fi
6269 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6270 if test -n "$ac_ct_DUMPBIN"; then
6271   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6272 $as_echo "$ac_ct_DUMPBIN" >&6; }
6273 else
6274   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6275 $as_echo "no" >&6; }
6276 fi
6277
6278
6279   test -n "$ac_ct_DUMPBIN" && break
6280 done
6281
6282   if test "x$ac_ct_DUMPBIN" = x; then
6283     DUMPBIN=":"
6284   else
6285     case $cross_compiling:$ac_tool_warned in
6286 yes:)
6287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6289 ac_tool_warned=yes ;;
6290 esac
6291     DUMPBIN=$ac_ct_DUMPBIN
6292   fi
6293 fi
6294
6295     case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6296     *COFF*)
6297       DUMPBIN="$DUMPBIN -symbols"
6298       ;;
6299     *)
6300       DUMPBIN=:
6301       ;;
6302     esac
6303   fi
6304
6305   if test "$DUMPBIN" != ":"; then
6306     NM="$DUMPBIN"
6307   fi
6308 fi
6309 test -z "$NM" && NM=nm
6310
6311
6312
6313
6314
6315
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6317 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6318 if test "${lt_cv_nm_interface+set}" = set; then :
6319   $as_echo_n "(cached) " >&6
6320 else
6321   lt_cv_nm_interface="BSD nm"
6322   echo "int some_variable = 0;" > conftest.$ac_ext
6323   (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6324   (eval "$ac_compile" 2>conftest.err)
6325   cat conftest.err >&5
6326   (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6327   (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6328   cat conftest.err >&5
6329   (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6330   cat conftest.out >&5
6331   if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6332     lt_cv_nm_interface="MS dumpbin"
6333   fi
6334   rm -f conftest*
6335 fi
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6337 $as_echo "$lt_cv_nm_interface" >&6; }
6338
6339 # find the maximum length of command line arguments
6340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6341 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6342 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6343   $as_echo_n "(cached) " >&6
6344 else
6345     i=0
6346   teststring="ABCD"
6347
6348   case $build_os in
6349   msdosdjgpp*)
6350     # On DJGPP, this test can blow up pretty badly due to problems in libc
6351     # (any single argument exceeding 2000 bytes causes a buffer overrun
6352     # during glob expansion).  Even if it were fixed, the result of this
6353     # check would be larger than it should be.
6354     lt_cv_sys_max_cmd_len=12288;    # 12K is about right
6355     ;;
6356
6357   gnu*)
6358     # Under GNU Hurd, this test is not required because there is
6359     # no limit to the length of command line arguments.
6360     # Libtool will interpret -1 as no limit whatsoever
6361     lt_cv_sys_max_cmd_len=-1;
6362     ;;
6363
6364   cygwin* | mingw* | cegcc*)
6365     # On Win9x/ME, this test blows up -- it succeeds, but takes
6366     # about 5 minutes as the teststring grows exponentially.
6367     # Worse, since 9x/ME are not pre-emptively multitasking,
6368     # you end up with a "frozen" computer, even though with patience
6369     # the test eventually succeeds (with a max line length of 256k).
6370     # Instead, let's just punt: use the minimum linelength reported by
6371     # all of the supported platforms: 8192 (on NT/2K/XP).
6372     lt_cv_sys_max_cmd_len=8192;
6373     ;;
6374
6375   mint*)
6376     # On MiNT this can take a long time and run out of memory.
6377     lt_cv_sys_max_cmd_len=8192;
6378     ;;
6379
6380   amigaos*)
6381     # On AmigaOS with pdksh, this test takes hours, literally.
6382     # So we just punt and use a minimum line length of 8192.
6383     lt_cv_sys_max_cmd_len=8192;
6384     ;;
6385
6386   netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6387     # This has been around since 386BSD, at least.  Likely further.
6388     if test -x /sbin/sysctl; then
6389       lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6390     elif test -x /usr/sbin/sysctl; then
6391       lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6392     else
6393       lt_cv_sys_max_cmd_len=65536       # usable default for all BSDs
6394     fi
6395     # And add a safety zone
6396     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6397     lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6398     ;;
6399
6400   interix*)
6401     # We know the value 262144 and hardcode it with a safety zone (like BSD)
6402     lt_cv_sys_max_cmd_len=196608
6403     ;;
6404
6405   osf*)
6406     # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6407     # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6408     # nice to cause kernel panics so lets avoid the loop below.
6409     # First set a reasonable default.
6410     lt_cv_sys_max_cmd_len=16384
6411     #
6412     if test -x /sbin/sysconfig; then
6413       case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6414         *1*) lt_cv_sys_max_cmd_len=-1 ;;
6415       esac
6416     fi
6417     ;;
6418   sco3.2v5*)
6419     lt_cv_sys_max_cmd_len=102400
6420     ;;
6421   sysv5* | sco5v6* | sysv4.2uw2*)
6422     kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6423     if test -n "$kargmax"; then
6424       lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[  ]//'`
6425     else
6426       lt_cv_sys_max_cmd_len=32768
6427     fi
6428     ;;
6429   *)
6430     lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6431     if test -n "$lt_cv_sys_max_cmd_len"; then
6432       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6433       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6434     else
6435       # Make teststring a little bigger before we do anything with it.
6436       # a 1K string should be a reasonable start.
6437       for i in 1 2 3 4 5 6 7 8 ; do
6438         teststring=$teststring$teststring
6439       done
6440       SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6441       # If test is not a shell built-in, we'll probably end up computing a
6442       # maximum length that is only half of the actual maximum length, but
6443       # we can't tell.
6444       while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6445                  = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6446               test $i != 17 # 1/2 MB should be enough
6447       do
6448         i=`expr $i + 1`
6449         teststring=$teststring$teststring
6450       done
6451       # Only check the string length outside the loop.
6452       lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6453       teststring=
6454       # Add a significant safety factor because C++ compilers can tack on
6455       # massive amounts of additional arguments before passing them to the
6456       # linker.  It appears as though 1/2 is a usable value.
6457       lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6458     fi
6459     ;;
6460   esac
6461
6462 fi
6463
6464 if test -n $lt_cv_sys_max_cmd_len ; then
6465   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6466 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6467 else
6468   { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6469 $as_echo "none" >&6; }
6470 fi
6471 max_cmd_len=$lt_cv_sys_max_cmd_len
6472
6473
6474
6475
6476
6477
6478 : ${CP="cp -f"}
6479 : ${MV="mv -f"}
6480 : ${RM="rm -f"}
6481
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6483 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6484 # Try some XSI features
6485 xsi_shell=no
6486 ( _lt_dummy="a/b/c"
6487   test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6488       = c,a/b,, \
6489     && eval 'test $(( 1 + 1 )) -eq 2 \
6490     && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6491   && xsi_shell=yes
6492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6493 $as_echo "$xsi_shell" >&6; }
6494
6495
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6497 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6498 lt_shell_append=no
6499 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6500     >/dev/null 2>&1 \
6501   && lt_shell_append=yes
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6503 $as_echo "$lt_shell_append" >&6; }
6504
6505
6506 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6507   lt_unset=unset
6508 else
6509   lt_unset=false
6510 fi
6511
6512
6513
6514
6515
6516 # test EBCDIC or ASCII
6517 case `echo X|tr X '\101'` in
6518  A) # ASCII based system
6519     # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6520   lt_SP2NL='tr \040 \012'
6521   lt_NL2SP='tr \015\012 \040\040'
6522   ;;
6523  *) # EBCDIC based system
6524   lt_SP2NL='tr \100 \n'
6525   lt_NL2SP='tr \r\n \100\100'
6526   ;;
6527 esac
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6538 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6539 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6540   $as_echo_n "(cached) " >&6
6541 else
6542   lt_cv_ld_reload_flag='-r'
6543 fi
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6545 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6546 reload_flag=$lt_cv_ld_reload_flag
6547 case $reload_flag in
6548 "" | " "*) ;;
6549 *) reload_flag=" $reload_flag" ;;
6550 esac
6551 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6552 case $host_os in
6553   darwin*)
6554     if test "$GCC" = yes; then
6555       reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6556     else
6557       reload_cmds='$LD$reload_flag -o $output$reload_objs'
6558     fi
6559     ;;
6560 esac
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570 if test -n "$ac_tool_prefix"; then
6571   # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6572 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6574 $as_echo_n "checking for $ac_word... " >&6; }
6575 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6576   $as_echo_n "(cached) " >&6
6577 else
6578   if test -n "$OBJDUMP"; then
6579   ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6580 else
6581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6582 for as_dir in $PATH
6583 do
6584   IFS=$as_save_IFS
6585   test -z "$as_dir" && as_dir=.
6586     for ac_exec_ext in '' $ac_executable_extensions; do
6587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6588     ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6589     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6590     break 2
6591   fi
6592 done
6593   done
6594 IFS=$as_save_IFS
6595
6596 fi
6597 fi
6598 OBJDUMP=$ac_cv_prog_OBJDUMP
6599 if test -n "$OBJDUMP"; then
6600   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6601 $as_echo "$OBJDUMP" >&6; }
6602 else
6603   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6604 $as_echo "no" >&6; }
6605 fi
6606
6607
6608 fi
6609 if test -z "$ac_cv_prog_OBJDUMP"; then
6610   ac_ct_OBJDUMP=$OBJDUMP
6611   # Extract the first word of "objdump", so it can be a program name with args.
6612 set dummy objdump; ac_word=$2
6613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6614 $as_echo_n "checking for $ac_word... " >&6; }
6615 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6616   $as_echo_n "(cached) " >&6
6617 else
6618   if test -n "$ac_ct_OBJDUMP"; then
6619   ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6620 else
6621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6622 for as_dir in $PATH
6623 do
6624   IFS=$as_save_IFS
6625   test -z "$as_dir" && as_dir=.
6626     for ac_exec_ext in '' $ac_executable_extensions; do
6627   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6628     ac_cv_prog_ac_ct_OBJDUMP="objdump"
6629     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6630     break 2
6631   fi
6632 done
6633   done
6634 IFS=$as_save_IFS
6635
6636 fi
6637 fi
6638 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6639 if test -n "$ac_ct_OBJDUMP"; then
6640   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6641 $as_echo "$ac_ct_OBJDUMP" >&6; }
6642 else
6643   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6644 $as_echo "no" >&6; }
6645 fi
6646
6647   if test "x$ac_ct_OBJDUMP" = x; then
6648     OBJDUMP="false"
6649   else
6650     case $cross_compiling:$ac_tool_warned in
6651 yes:)
6652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6653 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6654 ac_tool_warned=yes ;;
6655 esac
6656     OBJDUMP=$ac_ct_OBJDUMP
6657   fi
6658 else
6659   OBJDUMP="$ac_cv_prog_OBJDUMP"
6660 fi
6661
6662 test -z "$OBJDUMP" && OBJDUMP=objdump
6663
6664
6665
6666
6667
6668
6669
6670
6671
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6673 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6674 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6675   $as_echo_n "(cached) " >&6
6676 else
6677   lt_cv_file_magic_cmd='$MAGIC_CMD'
6678 lt_cv_file_magic_test_file=
6679 lt_cv_deplibs_check_method='unknown'
6680 # Need to set the preceding variable on all platforms that support
6681 # interlibrary dependencies.
6682 # 'none' -- dependencies not supported.
6683 # `unknown' -- same as none, but documents that we really don't know.
6684 # 'pass_all' -- all dependencies passed with no checks.
6685 # 'test_compile' -- check by making test program.
6686 # 'file_magic [[regex]]' -- check by looking for files in library path
6687 # which responds to the $file_magic_cmd with a given extended regex.
6688 # If you have `file' or equivalent on your system and you're not sure
6689 # whether `pass_all' will *always* work, you probably want this one.
6690
6691 case $host_os in
6692 aix[4-9]*)
6693   lt_cv_deplibs_check_method=pass_all
6694   ;;
6695
6696 beos*)
6697   lt_cv_deplibs_check_method=pass_all
6698   ;;
6699
6700 bsdi[45]*)
6701   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6702   lt_cv_file_magic_cmd='/usr/bin/file -L'
6703   lt_cv_file_magic_test_file=/shlib/libc.so
6704   ;;
6705
6706 cygwin*)
6707   # func_win32_libid is a shell function defined in ltmain.sh
6708   lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6709   lt_cv_file_magic_cmd='func_win32_libid'
6710   ;;
6711
6712 mingw* | pw32*)
6713   # Base MSYS/MinGW do not provide the 'file' command needed by
6714   # func_win32_libid shell function, so use a weaker test based on 'objdump',
6715   # unless we find 'file', for example because we are cross-compiling.
6716   # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6717   if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6718     lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6719     lt_cv_file_magic_cmd='func_win32_libid'
6720   else
6721     lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6722     lt_cv_file_magic_cmd='$OBJDUMP -f'
6723   fi
6724   ;;
6725
6726 cegcc*)
6727   # use the weaker test based on 'objdump'. See mingw*.
6728   lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6729   lt_cv_file_magic_cmd='$OBJDUMP -f'
6730   ;;
6731
6732 darwin* | rhapsody*)
6733   lt_cv_deplibs_check_method=pass_all
6734   ;;
6735
6736 freebsd* | dragonfly*)
6737   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6738     case $host_cpu in
6739     i*86 )
6740       # Not sure whether the presence of OpenBSD here was a mistake.
6741       # Let's accept both of them until this is cleared up.
6742       lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6743       lt_cv_file_magic_cmd=/usr/bin/file
6744       lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6745       ;;
6746     esac
6747   else
6748     lt_cv_deplibs_check_method=pass_all
6749   fi
6750   ;;
6751
6752 gnu*)
6753   lt_cv_deplibs_check_method=pass_all
6754   ;;
6755
6756 haiku*)
6757   lt_cv_deplibs_check_method=pass_all
6758   ;;
6759
6760 hpux10.20* | hpux11*)
6761   lt_cv_file_magic_cmd=/usr/bin/file
6762   case $host_cpu in
6763   ia64*)
6764     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6765     lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6766     ;;
6767   hppa*64*)
6768     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
6769     lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6770     ;;
6771   *)
6772     lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6773     lt_cv_file_magic_test_file=/usr/lib/libc.sl
6774     ;;
6775   esac
6776   ;;
6777
6778 interix[3-9]*)
6779   # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6780   lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6781   ;;
6782
6783 irix5* | irix6* | nonstopux*)
6784   case $LD in
6785   *-32|*"-32 ") libmagic=32-bit;;
6786   *-n32|*"-n32 ") libmagic=N32;;
6787   *-64|*"-64 ") libmagic=64-bit;;
6788   *) libmagic=never-match;;
6789   esac
6790   lt_cv_deplibs_check_method=pass_all
6791   ;;
6792
6793 # This must be Linux ELF.
6794 linux* | k*bsd*-gnu | kopensolaris*-gnu)
6795   lt_cv_deplibs_check_method=pass_all
6796   ;;
6797
6798 netbsd*)
6799   if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6800     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6801   else
6802     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6803   fi
6804   ;;
6805
6806 newos6*)
6807   lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6808   lt_cv_file_magic_cmd=/usr/bin/file
6809   lt_cv_file_magic_test_file=/usr/lib/libnls.so
6810   ;;
6811
6812 *nto* | *qnx*)
6813   lt_cv_deplibs_check_method=pass_all
6814   ;;
6815
6816 openbsd*)
6817   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6818     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6819   else
6820     lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6821   fi
6822   ;;
6823
6824 osf3* | osf4* | osf5*)
6825   lt_cv_deplibs_check_method=pass_all
6826   ;;
6827
6828 rdos*)
6829   lt_cv_deplibs_check_method=pass_all
6830   ;;
6831
6832 solaris*)
6833   lt_cv_deplibs_check_method=pass_all
6834   ;;
6835
6836 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6837   lt_cv_deplibs_check_method=pass_all
6838   ;;
6839
6840 sysv4 | sysv4.3*)
6841   case $host_vendor in
6842   motorola)
6843     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
6844     lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6845     ;;
6846   ncr)
6847     lt_cv_deplibs_check_method=pass_all
6848     ;;
6849   sequent)
6850     lt_cv_file_magic_cmd='/bin/file'
6851     lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6852     ;;
6853   sni)
6854     lt_cv_file_magic_cmd='/bin/file'
6855     lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6856     lt_cv_file_magic_test_file=/lib/libc.so
6857     ;;
6858   siemens)
6859     lt_cv_deplibs_check_method=pass_all
6860     ;;
6861   pc)
6862     lt_cv_deplibs_check_method=pass_all
6863     ;;
6864   esac
6865   ;;
6866
6867 tpf*)
6868   lt_cv_deplibs_check_method=pass_all
6869   ;;
6870 esac
6871
6872 fi
6873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6874 $as_echo "$lt_cv_deplibs_check_method" >&6; }
6875 file_magic_cmd=$lt_cv_file_magic_cmd
6876 deplibs_check_method=$lt_cv_deplibs_check_method
6877 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6878
6879
6880
6881
6882
6883
6884
6885
6886
6887
6888
6889
6890 if test -n "$ac_tool_prefix"; then
6891   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6892 set dummy ${ac_tool_prefix}ar; ac_word=$2
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6894 $as_echo_n "checking for $ac_word... " >&6; }
6895 if test "${ac_cv_prog_AR+set}" = set; then :
6896   $as_echo_n "(cached) " >&6
6897 else
6898   if test -n "$AR"; then
6899   ac_cv_prog_AR="$AR" # Let the user override the test.
6900 else
6901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6902 for as_dir in $PATH
6903 do
6904   IFS=$as_save_IFS
6905   test -z "$as_dir" && as_dir=.
6906     for ac_exec_ext in '' $ac_executable_extensions; do
6907   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6908     ac_cv_prog_AR="${ac_tool_prefix}ar"
6909     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6910     break 2
6911   fi
6912 done
6913   done
6914 IFS=$as_save_IFS
6915
6916 fi
6917 fi
6918 AR=$ac_cv_prog_AR
6919 if test -n "$AR"; then
6920   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6921 $as_echo "$AR" >&6; }
6922 else
6923   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6924 $as_echo "no" >&6; }
6925 fi
6926
6927
6928 fi
6929 if test -z "$ac_cv_prog_AR"; then
6930   ac_ct_AR=$AR
6931   # Extract the first word of "ar", so it can be a program name with args.
6932 set dummy ar; ac_word=$2
6933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6934 $as_echo_n "checking for $ac_word... " >&6; }
6935 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6936   $as_echo_n "(cached) " >&6
6937 else
6938   if test -n "$ac_ct_AR"; then
6939   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6940 else
6941 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6942 for as_dir in $PATH
6943 do
6944   IFS=$as_save_IFS
6945   test -z "$as_dir" && as_dir=.
6946     for ac_exec_ext in '' $ac_executable_extensions; do
6947   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6948     ac_cv_prog_ac_ct_AR="ar"
6949     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6950     break 2
6951   fi
6952 done
6953   done
6954 IFS=$as_save_IFS
6955
6956 fi
6957 fi
6958 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6959 if test -n "$ac_ct_AR"; then
6960   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6961 $as_echo "$ac_ct_AR" >&6; }
6962 else
6963   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6964 $as_echo "no" >&6; }
6965 fi
6966
6967   if test "x$ac_ct_AR" = x; then
6968     AR="false"
6969   else
6970     case $cross_compiling:$ac_tool_warned in
6971 yes:)
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6973 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6974 ac_tool_warned=yes ;;
6975 esac
6976     AR=$ac_ct_AR
6977   fi
6978 else
6979   AR="$ac_cv_prog_AR"
6980 fi
6981
6982 test -z "$AR" && AR=ar
6983 test -z "$AR_FLAGS" && AR_FLAGS=cru
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995 if test -n "$ac_tool_prefix"; then
6996   # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6997 set dummy ${ac_tool_prefix}strip; ac_word=$2
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6999 $as_echo_n "checking for $ac_word... " >&6; }
7000 if test "${ac_cv_prog_STRIP+set}" = set; then :
7001   $as_echo_n "(cached) " >&6
7002 else
7003   if test -n "$STRIP"; then
7004   ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7005 else
7006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7007 for as_dir in $PATH
7008 do
7009   IFS=$as_save_IFS
7010   test -z "$as_dir" && as_dir=.
7011     for ac_exec_ext in '' $ac_executable_extensions; do
7012   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7013     ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7014     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7015     break 2
7016   fi
7017 done
7018   done
7019 IFS=$as_save_IFS
7020
7021 fi
7022 fi
7023 STRIP=$ac_cv_prog_STRIP
7024 if test -n "$STRIP"; then
7025   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7026 $as_echo "$STRIP" >&6; }
7027 else
7028   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7029 $as_echo "no" >&6; }
7030 fi
7031
7032
7033 fi
7034 if test -z "$ac_cv_prog_STRIP"; then
7035   ac_ct_STRIP=$STRIP
7036   # Extract the first word of "strip", so it can be a program name with args.
7037 set dummy strip; ac_word=$2
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7039 $as_echo_n "checking for $ac_word... " >&6; }
7040 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7041   $as_echo_n "(cached) " >&6
7042 else
7043   if test -n "$ac_ct_STRIP"; then
7044   ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7045 else
7046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7047 for as_dir in $PATH
7048 do
7049   IFS=$as_save_IFS
7050   test -z "$as_dir" && as_dir=.
7051     for ac_exec_ext in '' $ac_executable_extensions; do
7052   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7053     ac_cv_prog_ac_ct_STRIP="strip"
7054     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7055     break 2
7056   fi
7057 done
7058   done
7059 IFS=$as_save_IFS
7060
7061 fi
7062 fi
7063 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7064 if test -n "$ac_ct_STRIP"; then
7065   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7066 $as_echo "$ac_ct_STRIP" >&6; }
7067 else
7068   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7069 $as_echo "no" >&6; }
7070 fi
7071
7072   if test "x$ac_ct_STRIP" = x; then
7073     STRIP=":"
7074   else
7075     case $cross_compiling:$ac_tool_warned in
7076 yes:)
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7078 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7079 ac_tool_warned=yes ;;
7080 esac
7081     STRIP=$ac_ct_STRIP
7082   fi
7083 else
7084   STRIP="$ac_cv_prog_STRIP"
7085 fi
7086
7087 test -z "$STRIP" && STRIP=:
7088
7089
7090
7091
7092
7093
7094 if test -n "$ac_tool_prefix"; then
7095   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7096 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7098 $as_echo_n "checking for $ac_word... " >&6; }
7099 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7100   $as_echo_n "(cached) " >&6
7101 else
7102   if test -n "$RANLIB"; then
7103   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7104 else
7105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7106 for as_dir in $PATH
7107 do
7108   IFS=$as_save_IFS
7109   test -z "$as_dir" && as_dir=.
7110     for ac_exec_ext in '' $ac_executable_extensions; do
7111   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7112     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7113     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7114     break 2
7115   fi
7116 done
7117   done
7118 IFS=$as_save_IFS
7119
7120 fi
7121 fi
7122 RANLIB=$ac_cv_prog_RANLIB
7123 if test -n "$RANLIB"; then
7124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7125 $as_echo "$RANLIB" >&6; }
7126 else
7127   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7128 $as_echo "no" >&6; }
7129 fi
7130
7131
7132 fi
7133 if test -z "$ac_cv_prog_RANLIB"; then
7134   ac_ct_RANLIB=$RANLIB
7135   # Extract the first word of "ranlib", so it can be a program name with args.
7136 set dummy ranlib; ac_word=$2
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7138 $as_echo_n "checking for $ac_word... " >&6; }
7139 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7140   $as_echo_n "(cached) " >&6
7141 else
7142   if test -n "$ac_ct_RANLIB"; then
7143   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7144 else
7145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7146 for as_dir in $PATH
7147 do
7148   IFS=$as_save_IFS
7149   test -z "$as_dir" && as_dir=.
7150     for ac_exec_ext in '' $ac_executable_extensions; do
7151   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7152     ac_cv_prog_ac_ct_RANLIB="ranlib"
7153     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7154     break 2
7155   fi
7156 done
7157   done
7158 IFS=$as_save_IFS
7159
7160 fi
7161 fi
7162 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7163 if test -n "$ac_ct_RANLIB"; then
7164   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7165 $as_echo "$ac_ct_RANLIB" >&6; }
7166 else
7167   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7168 $as_echo "no" >&6; }
7169 fi
7170
7171   if test "x$ac_ct_RANLIB" = x; then
7172     RANLIB=":"
7173   else
7174     case $cross_compiling:$ac_tool_warned in
7175 yes:)
7176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7178 ac_tool_warned=yes ;;
7179 esac
7180     RANLIB=$ac_ct_RANLIB
7181   fi
7182 else
7183   RANLIB="$ac_cv_prog_RANLIB"
7184 fi
7185
7186 test -z "$RANLIB" && RANLIB=:
7187
7188
7189
7190
7191
7192
7193 # Determine commands to create old-style static archives.
7194 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7195 old_postinstall_cmds='chmod 644 $oldlib'
7196 old_postuninstall_cmds=
7197
7198 if test -n "$RANLIB"; then
7199   case $host_os in
7200   openbsd*)
7201     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7202     ;;
7203   *)
7204     old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7205     ;;
7206   esac
7207   old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7208 fi
7209
7210 case $host_os in
7211   darwin*)
7212     lock_old_archive_extraction=yes ;;
7213   *)
7214     lock_old_archive_extraction=no ;;
7215 esac
7216
7217
7218
7219
7220
7221
7222
7223
7224
7225
7226
7227
7228
7229
7230
7231
7232
7233
7234
7235
7236
7237
7238
7239
7240
7241
7242
7243
7244
7245
7246
7247
7248
7249
7250
7251
7252
7253
7254
7255 # If no C compiler was specified, use CC.
7256 LTCC=${LTCC-"$CC"}
7257
7258 # If no C compiler flags were specified, use CFLAGS.
7259 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7260
7261 # Allow CC to be a program name with arguments.
7262 compiler=$CC
7263
7264
7265 # Check for command to grab the raw symbol name followed by C symbol from nm.
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7267 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7268 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7269   $as_echo_n "(cached) " >&6
7270 else
7271
7272 # These are sane defaults that work on at least a few old systems.
7273 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
7274
7275 # Character class describing NM global symbol codes.
7276 symcode='[BCDEGRST]'
7277
7278 # Regexp to match symbols that can be accessed directly from C.
7279 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7280
7281 # Define system-specific variables.
7282 case $host_os in
7283 aix*)
7284   symcode='[BCDT]'
7285   ;;
7286 cygwin* | mingw* | pw32* | cegcc*)
7287   symcode='[ABCDGISTW]'
7288   ;;
7289 hpux*)
7290   if test "$host_cpu" = ia64; then
7291     symcode='[ABCDEGRST]'
7292   fi
7293   ;;
7294 irix* | nonstopux*)
7295   symcode='[BCDEGRST]'
7296   ;;
7297 osf*)
7298   symcode='[BCDEGQRST]'
7299   ;;
7300 solaris*)
7301   symcode='[BDRT]'
7302   ;;
7303 sco3.2v5*)
7304   symcode='[DT]'
7305   ;;
7306 sysv4.2uw2*)
7307   symcode='[DT]'
7308   ;;
7309 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7310   symcode='[ABDT]'
7311   ;;
7312 sysv4)
7313   symcode='[DFNSTU]'
7314   ;;
7315 esac
7316
7317 # If we're using GNU nm, then use its standard symbol codes.
7318 case `$NM -V 2>&1` in
7319 *GNU* | *'with BFD'*)
7320   symcode='[ABCDGIRSTW]' ;;
7321 esac
7322
7323 # Transform an extracted symbol line into a proper C declaration.
7324 # Some systems (esp. on ia64) link data and code symbols differently,
7325 # so use this general approach.
7326 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7327
7328 # Transform an extracted symbol line into symbol name and symbol address
7329 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
7330 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
7331
7332 # Handle CRLF in mingw tool chain
7333 opt_cr=
7334 case $build_os in
7335 mingw*)
7336   opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7337   ;;
7338 esac
7339
7340 # Try without a prefix underscore, then with it.
7341 for ac_symprfx in "" "_"; do
7342
7343   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7344   symxfrm="\\1 $ac_symprfx\\2 \\2"
7345
7346   # Write the raw and C identifiers.
7347   if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7348     # Fake it for dumpbin and say T for any non-static function
7349     # and D for any global variable.
7350     # Also find C++ and __fastcall symbols from MSVC++,
7351     # which start with @ or ?.
7352     lt_cv_sys_global_symbol_pipe="$AWK '"\
7353 "     {last_section=section; section=\$ 3};"\
7354 "     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7355 "     \$ 0!~/External *\|/{next};"\
7356 "     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7357 "     {if(hide[section]) next};"\
7358 "     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7359 "     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7360 "     s[1]~/^[@?]/{print s[1], s[1]; next};"\
7361 "     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7362 "     ' prfx=^$ac_symprfx"
7363   else
7364     lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[      ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7365   fi
7366
7367   # Check to see that the pipe works correctly.
7368   pipe_works=no
7369
7370   rm -f conftest*
7371   cat > conftest.$ac_ext <<_LT_EOF
7372 #ifdef __cplusplus
7373 extern "C" {
7374 #endif
7375 char nm_test_var;
7376 void nm_test_func(void);
7377 void nm_test_func(void){}
7378 #ifdef __cplusplus
7379 }
7380 #endif
7381 int main(){nm_test_var='a';nm_test_func();return(0);}
7382 _LT_EOF
7383
7384   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7385   (eval $ac_compile) 2>&5
7386   ac_status=$?
7387   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7388   test $ac_status = 0; }; then
7389     # Now try to grab the symbols.
7390     nlist=conftest.nm
7391     if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7392   (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7393   ac_status=$?
7394   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7395   test $ac_status = 0; } && test -s "$nlist"; then
7396       # Try sorting and uniquifying the output.
7397       if sort "$nlist" | uniq > "$nlist"T; then
7398         mv -f "$nlist"T "$nlist"
7399       else
7400         rm -f "$nlist"T
7401       fi
7402
7403       # Make sure that we snagged all the symbols we need.
7404       if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7405         if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7406           cat <<_LT_EOF > conftest.$ac_ext
7407 #ifdef __cplusplus
7408 extern "C" {
7409 #endif
7410
7411 _LT_EOF
7412           # Now generate the symbol file.
7413           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7414
7415           cat <<_LT_EOF >> conftest.$ac_ext
7416
7417 /* The mapping between symbol names and symbols.  */
7418 const struct {
7419   const char *name;
7420   void       *address;
7421 }
7422 lt__PROGRAM__LTX_preloaded_symbols[] =
7423 {
7424   { "@PROGRAM@", (void *) 0 },
7425 _LT_EOF
7426           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7427           cat <<\_LT_EOF >> conftest.$ac_ext
7428   {0, (void *) 0}
7429 };
7430
7431 /* This works around a problem in FreeBSD linker */
7432 #ifdef FREEBSD_WORKAROUND
7433 static const void *lt_preloaded_setup() {
7434   return lt__PROGRAM__LTX_preloaded_symbols;
7435 }
7436 #endif
7437
7438 #ifdef __cplusplus
7439 }
7440 #endif
7441 _LT_EOF
7442           # Now try linking the two files.
7443           mv conftest.$ac_objext conftstm.$ac_objext
7444           lt_save_LIBS="$LIBS"
7445           lt_save_CFLAGS="$CFLAGS"
7446           LIBS="conftstm.$ac_objext"
7447           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7448           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7449   (eval $ac_link) 2>&5
7450   ac_status=$?
7451   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7452   test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7453             pipe_works=yes
7454           fi
7455           LIBS="$lt_save_LIBS"
7456           CFLAGS="$lt_save_CFLAGS"
7457         else
7458           echo "cannot find nm_test_func in $nlist" >&5
7459         fi
7460       else
7461         echo "cannot find nm_test_var in $nlist" >&5
7462       fi
7463     else
7464       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7465     fi
7466   else
7467     echo "$progname: failed program was:" >&5
7468     cat conftest.$ac_ext >&5
7469   fi
7470   rm -rf conftest* conftst*
7471
7472   # Do not use the global_symbol_pipe unless it works.
7473   if test "$pipe_works" = yes; then
7474     break
7475   else
7476     lt_cv_sys_global_symbol_pipe=
7477   fi
7478 done
7479
7480 fi
7481
7482 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7483   lt_cv_sys_global_symbol_to_cdecl=
7484 fi
7485 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7486   { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7487 $as_echo "failed" >&6; }
7488 else
7489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7490 $as_echo "ok" >&6; }
7491 fi
7492
7493
7494
7495
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505
7506
7507
7508
7509
7510
7511
7512
7513
7514 # Check whether --enable-libtool-lock was given.
7515 if test "${enable_libtool_lock+set}" = set; then :
7516   enableval=$enable_libtool_lock;
7517 fi
7518
7519 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7520
7521 # Some flags need to be propagated to the compiler or linker for good
7522 # libtool support.
7523 case $host in
7524 ia64-*-hpux*)
7525   # Find out which ABI we are using.
7526   echo 'int i;' > conftest.$ac_ext
7527   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7528   (eval $ac_compile) 2>&5
7529   ac_status=$?
7530   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7531   test $ac_status = 0; }; then
7532     case `/usr/bin/file conftest.$ac_objext` in
7533       *ELF-32*)
7534         HPUX_IA64_MODE="32"
7535         ;;
7536       *ELF-64*)
7537         HPUX_IA64_MODE="64"
7538         ;;
7539     esac
7540   fi
7541   rm -rf conftest*
7542   ;;
7543 *-*-irix6*)
7544   # Find out which ABI we are using.
7545   echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7546   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7547   (eval $ac_compile) 2>&5
7548   ac_status=$?
7549   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550   test $ac_status = 0; }; then
7551     if test "$lt_cv_prog_gnu_ld" = yes; then
7552       case `/usr/bin/file conftest.$ac_objext` in
7553         *32-bit*)
7554           LD="${LD-ld} -melf32bsmip"
7555           ;;
7556         *N32*)
7557           LD="${LD-ld} -melf32bmipn32"
7558           ;;
7559         *64-bit*)
7560           LD="${LD-ld} -melf64bmip"
7561         ;;
7562       esac
7563     else
7564       case `/usr/bin/file conftest.$ac_objext` in
7565         *32-bit*)
7566           LD="${LD-ld} -32"
7567           ;;
7568         *N32*)
7569           LD="${LD-ld} -n32"
7570           ;;
7571         *64-bit*)
7572           LD="${LD-ld} -64"
7573           ;;
7574       esac
7575     fi
7576   fi
7577   rm -rf conftest*
7578   ;;
7579
7580 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7581 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7582   # Find out which ABI we are using.
7583   echo 'int i;' > conftest.$ac_ext
7584   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7585   (eval $ac_compile) 2>&5
7586   ac_status=$?
7587   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7588   test $ac_status = 0; }; then
7589     case `/usr/bin/file conftest.o` in
7590       *32-bit*)
7591         case $host in
7592           x86_64-*kfreebsd*-gnu)
7593             LD="${LD-ld} -m elf_i386_fbsd"
7594             ;;
7595           x86_64-*linux*)
7596             case `/usr/bin/file conftest.o` in
7597               *x86-64*)
7598                 LD="${LD-ld} -m elf32_x86_64"
7599                 ;;
7600               *)
7601                 LD="${LD-ld} -m elf_i386"
7602                 ;;
7603             esac
7604             ;;
7605           ppc64-*linux*|powerpc64-*linux*)
7606             LD="${LD-ld} -m elf32ppclinux"
7607             ;;
7608           s390x-*linux*)
7609             LD="${LD-ld} -m elf_s390"
7610             ;;
7611           sparc64-*linux*)
7612             LD="${LD-ld} -m elf32_sparc"
7613             ;;
7614         esac
7615         ;;
7616       *64-bit*)
7617         case $host in
7618           x86_64-*kfreebsd*-gnu)
7619             LD="${LD-ld} -m elf_x86_64_fbsd"
7620             ;;
7621           x86_64-*linux*)
7622             LD="${LD-ld} -m elf_x86_64"
7623             ;;
7624           ppc*-*linux*|powerpc*-*linux*)
7625             LD="${LD-ld} -m elf64ppc"
7626             ;;
7627           s390*-*linux*|s390*-*tpf*)
7628             LD="${LD-ld} -m elf64_s390"
7629             ;;
7630           sparc*-*linux*)
7631             LD="${LD-ld} -m elf64_sparc"
7632             ;;
7633         esac
7634         ;;
7635     esac
7636   fi
7637   rm -rf conftest*
7638   ;;
7639
7640 *-*-sco3.2v5*)
7641   # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7642   SAVE_CFLAGS="$CFLAGS"
7643   CFLAGS="$CFLAGS -belf"
7644   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7645 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7646 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7647   $as_echo_n "(cached) " >&6
7648 else
7649   ac_ext=c
7650 ac_cpp='$CPP $CPPFLAGS'
7651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7654
7655      if test x$gcc_no_link = xyes; then
7656   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7657 fi
7658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7659 /* end confdefs.h.  */
7660
7661 int
7662 main ()
7663 {
7664
7665   ;
7666   return 0;
7667 }
7668 _ACEOF
7669 if ac_fn_c_try_link "$LINENO"; then :
7670   lt_cv_cc_needs_belf=yes
7671 else
7672   lt_cv_cc_needs_belf=no
7673 fi
7674 rm -f core conftest.err conftest.$ac_objext \
7675     conftest$ac_exeext conftest.$ac_ext
7676      ac_ext=c
7677 ac_cpp='$CPP $CPPFLAGS'
7678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7681
7682 fi
7683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7684 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7685   if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7686     # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7687     CFLAGS="$SAVE_CFLAGS"
7688   fi
7689   ;;
7690 sparc*-*solaris*)
7691   # Find out which ABI we are using.
7692   echo 'int i;' > conftest.$ac_ext
7693   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7694   (eval $ac_compile) 2>&5
7695   ac_status=$?
7696   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7697   test $ac_status = 0; }; then
7698     case `/usr/bin/file conftest.o` in
7699     *64-bit*)
7700       case $lt_cv_prog_gnu_ld in
7701       yes*) LD="${LD-ld} -m elf64_sparc" ;;
7702       *)
7703         if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7704           LD="${LD-ld} -64"
7705         fi
7706         ;;
7707       esac
7708       ;;
7709     esac
7710   fi
7711   rm -rf conftest*
7712   ;;
7713 esac
7714
7715 need_locks="$enable_libtool_lock"
7716
7717
7718   case $host_os in
7719     rhapsody* | darwin*)
7720     if test -n "$ac_tool_prefix"; then
7721   # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7722 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7724 $as_echo_n "checking for $ac_word... " >&6; }
7725 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7726   $as_echo_n "(cached) " >&6
7727 else
7728   if test -n "$DSYMUTIL"; then
7729   ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7730 else
7731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7732 for as_dir in $PATH
7733 do
7734   IFS=$as_save_IFS
7735   test -z "$as_dir" && as_dir=.
7736     for ac_exec_ext in '' $ac_executable_extensions; do
7737   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7738     ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7739     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7740     break 2
7741   fi
7742 done
7743   done
7744 IFS=$as_save_IFS
7745
7746 fi
7747 fi
7748 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7749 if test -n "$DSYMUTIL"; then
7750   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7751 $as_echo "$DSYMUTIL" >&6; }
7752 else
7753   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7755 fi
7756
7757
7758 fi
7759 if test -z "$ac_cv_prog_DSYMUTIL"; then
7760   ac_ct_DSYMUTIL=$DSYMUTIL
7761   # Extract the first word of "dsymutil", so it can be a program name with args.
7762 set dummy dsymutil; ac_word=$2
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7764 $as_echo_n "checking for $ac_word... " >&6; }
7765 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7766   $as_echo_n "(cached) " >&6
7767 else
7768   if test -n "$ac_ct_DSYMUTIL"; then
7769   ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7770 else
7771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7772 for as_dir in $PATH
7773 do
7774   IFS=$as_save_IFS
7775   test -z "$as_dir" && as_dir=.
7776     for ac_exec_ext in '' $ac_executable_extensions; do
7777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7778     ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7780     break 2
7781   fi
7782 done
7783   done
7784 IFS=$as_save_IFS
7785
7786 fi
7787 fi
7788 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7789 if test -n "$ac_ct_DSYMUTIL"; then
7790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7791 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7792 else
7793   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7794 $as_echo "no" >&6; }
7795 fi
7796
7797   if test "x$ac_ct_DSYMUTIL" = x; then
7798     DSYMUTIL=":"
7799   else
7800     case $cross_compiling:$ac_tool_warned in
7801 yes:)
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7804 ac_tool_warned=yes ;;
7805 esac
7806     DSYMUTIL=$ac_ct_DSYMUTIL
7807   fi
7808 else
7809   DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7810 fi
7811
7812     if test -n "$ac_tool_prefix"; then
7813   # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7814 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7816 $as_echo_n "checking for $ac_word... " >&6; }
7817 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7818   $as_echo_n "(cached) " >&6
7819 else
7820   if test -n "$NMEDIT"; then
7821   ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7822 else
7823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7824 for as_dir in $PATH
7825 do
7826   IFS=$as_save_IFS
7827   test -z "$as_dir" && as_dir=.
7828     for ac_exec_ext in '' $ac_executable_extensions; do
7829   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7830     ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7831     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7832     break 2
7833   fi
7834 done
7835   done
7836 IFS=$as_save_IFS
7837
7838 fi
7839 fi
7840 NMEDIT=$ac_cv_prog_NMEDIT
7841 if test -n "$NMEDIT"; then
7842   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7843 $as_echo "$NMEDIT" >&6; }
7844 else
7845   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7846 $as_echo "no" >&6; }
7847 fi
7848
7849
7850 fi
7851 if test -z "$ac_cv_prog_NMEDIT"; then
7852   ac_ct_NMEDIT=$NMEDIT
7853   # Extract the first word of "nmedit", so it can be a program name with args.
7854 set dummy nmedit; ac_word=$2
7855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7856 $as_echo_n "checking for $ac_word... " >&6; }
7857 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7858   $as_echo_n "(cached) " >&6
7859 else
7860   if test -n "$ac_ct_NMEDIT"; then
7861   ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7862 else
7863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7864 for as_dir in $PATH
7865 do
7866   IFS=$as_save_IFS
7867   test -z "$as_dir" && as_dir=.
7868     for ac_exec_ext in '' $ac_executable_extensions; do
7869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7870     ac_cv_prog_ac_ct_NMEDIT="nmedit"
7871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7872     break 2
7873   fi
7874 done
7875   done
7876 IFS=$as_save_IFS
7877
7878 fi
7879 fi
7880 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7881 if test -n "$ac_ct_NMEDIT"; then
7882   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7883 $as_echo "$ac_ct_NMEDIT" >&6; }
7884 else
7885   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7886 $as_echo "no" >&6; }
7887 fi
7888
7889   if test "x$ac_ct_NMEDIT" = x; then
7890     NMEDIT=":"
7891   else
7892     case $cross_compiling:$ac_tool_warned in
7893 yes:)
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7895 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7896 ac_tool_warned=yes ;;
7897 esac
7898     NMEDIT=$ac_ct_NMEDIT
7899   fi
7900 else
7901   NMEDIT="$ac_cv_prog_NMEDIT"
7902 fi
7903
7904     if test -n "$ac_tool_prefix"; then
7905   # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7906 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7908 $as_echo_n "checking for $ac_word... " >&6; }
7909 if test "${ac_cv_prog_LIPO+set}" = set; then :
7910   $as_echo_n "(cached) " >&6
7911 else
7912   if test -n "$LIPO"; then
7913   ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7914 else
7915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7916 for as_dir in $PATH
7917 do
7918   IFS=$as_save_IFS
7919   test -z "$as_dir" && as_dir=.
7920     for ac_exec_ext in '' $ac_executable_extensions; do
7921   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7922     ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7923     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7924     break 2
7925   fi
7926 done
7927   done
7928 IFS=$as_save_IFS
7929
7930 fi
7931 fi
7932 LIPO=$ac_cv_prog_LIPO
7933 if test -n "$LIPO"; then
7934   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7935 $as_echo "$LIPO" >&6; }
7936 else
7937   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7938 $as_echo "no" >&6; }
7939 fi
7940
7941
7942 fi
7943 if test -z "$ac_cv_prog_LIPO"; then
7944   ac_ct_LIPO=$LIPO
7945   # Extract the first word of "lipo", so it can be a program name with args.
7946 set dummy lipo; ac_word=$2
7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7948 $as_echo_n "checking for $ac_word... " >&6; }
7949 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7950   $as_echo_n "(cached) " >&6
7951 else
7952   if test -n "$ac_ct_LIPO"; then
7953   ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7954 else
7955 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7956 for as_dir in $PATH
7957 do
7958   IFS=$as_save_IFS
7959   test -z "$as_dir" && as_dir=.
7960     for ac_exec_ext in '' $ac_executable_extensions; do
7961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7962     ac_cv_prog_ac_ct_LIPO="lipo"
7963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7964     break 2
7965   fi
7966 done
7967   done
7968 IFS=$as_save_IFS
7969
7970 fi
7971 fi
7972 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7973 if test -n "$ac_ct_LIPO"; then
7974   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7975 $as_echo "$ac_ct_LIPO" >&6; }
7976 else
7977   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7978 $as_echo "no" >&6; }
7979 fi
7980
7981   if test "x$ac_ct_LIPO" = x; then
7982     LIPO=":"
7983   else
7984     case $cross_compiling:$ac_tool_warned in
7985 yes:)
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7988 ac_tool_warned=yes ;;
7989 esac
7990     LIPO=$ac_ct_LIPO
7991   fi
7992 else
7993   LIPO="$ac_cv_prog_LIPO"
7994 fi
7995
7996     if test -n "$ac_tool_prefix"; then
7997   # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7998 set dummy ${ac_tool_prefix}otool; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8002   $as_echo_n "(cached) " >&6
8003 else
8004   if test -n "$OTOOL"; then
8005   ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8009 do
8010   IFS=$as_save_IFS
8011   test -z "$as_dir" && as_dir=.
8012     for ac_exec_ext in '' $ac_executable_extensions; do
8013   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8014     ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8015     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016     break 2
8017   fi
8018 done
8019   done
8020 IFS=$as_save_IFS
8021
8022 fi
8023 fi
8024 OTOOL=$ac_cv_prog_OTOOL
8025 if test -n "$OTOOL"; then
8026   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8027 $as_echo "$OTOOL" >&6; }
8028 else
8029   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8031 fi
8032
8033
8034 fi
8035 if test -z "$ac_cv_prog_OTOOL"; then
8036   ac_ct_OTOOL=$OTOOL
8037   # Extract the first word of "otool", so it can be a program name with args.
8038 set dummy otool; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8042   $as_echo_n "(cached) " >&6
8043 else
8044   if test -n "$ac_ct_OTOOL"; then
8045   ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8049 do
8050   IFS=$as_save_IFS
8051   test -z "$as_dir" && as_dir=.
8052     for ac_exec_ext in '' $ac_executable_extensions; do
8053   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8054     ac_cv_prog_ac_ct_OTOOL="otool"
8055     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056     break 2
8057   fi
8058 done
8059   done
8060 IFS=$as_save_IFS
8061
8062 fi
8063 fi
8064 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8065 if test -n "$ac_ct_OTOOL"; then
8066   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8067 $as_echo "$ac_ct_OTOOL" >&6; }
8068 else
8069   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8071 fi
8072
8073   if test "x$ac_ct_OTOOL" = x; then
8074     OTOOL=":"
8075   else
8076     case $cross_compiling:$ac_tool_warned in
8077 yes:)
8078 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8079 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8080 ac_tool_warned=yes ;;
8081 esac
8082     OTOOL=$ac_ct_OTOOL
8083   fi
8084 else
8085   OTOOL="$ac_cv_prog_OTOOL"
8086 fi
8087
8088     if test -n "$ac_tool_prefix"; then
8089   # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8090 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8092 $as_echo_n "checking for $ac_word... " >&6; }
8093 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8094   $as_echo_n "(cached) " >&6
8095 else
8096   if test -n "$OTOOL64"; then
8097   ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8098 else
8099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8100 for as_dir in $PATH
8101 do
8102   IFS=$as_save_IFS
8103   test -z "$as_dir" && as_dir=.
8104     for ac_exec_ext in '' $ac_executable_extensions; do
8105   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8106     ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8107     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8108     break 2
8109   fi
8110 done
8111   done
8112 IFS=$as_save_IFS
8113
8114 fi
8115 fi
8116 OTOOL64=$ac_cv_prog_OTOOL64
8117 if test -n "$OTOOL64"; then
8118   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8119 $as_echo "$OTOOL64" >&6; }
8120 else
8121   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8122 $as_echo "no" >&6; }
8123 fi
8124
8125
8126 fi
8127 if test -z "$ac_cv_prog_OTOOL64"; then
8128   ac_ct_OTOOL64=$OTOOL64
8129   # Extract the first word of "otool64", so it can be a program name with args.
8130 set dummy otool64; 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; }
8133 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8134   $as_echo_n "(cached) " >&6
8135 else
8136   if test -n "$ac_ct_OTOOL64"; then
8137   ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8141 do
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_ac_ct_OTOOL64="otool64"
8147     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148     break 2
8149   fi
8150 done
8151   done
8152 IFS=$as_save_IFS
8153
8154 fi
8155 fi
8156 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8157 if test -n "$ac_ct_OTOOL64"; then
8158   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8159 $as_echo "$ac_ct_OTOOL64" >&6; }
8160 else
8161   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8163 fi
8164
8165   if test "x$ac_ct_OTOOL64" = x; then
8166     OTOOL64=":"
8167   else
8168     case $cross_compiling:$ac_tool_warned in
8169 yes:)
8170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8172 ac_tool_warned=yes ;;
8173 esac
8174     OTOOL64=$ac_ct_OTOOL64
8175   fi
8176 else
8177   OTOOL64="$ac_cv_prog_OTOOL64"
8178 fi
8179
8180
8181
8182
8183
8184
8185
8186
8187
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8207 $as_echo_n "checking for -single_module linker flag... " >&6; }
8208 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8209   $as_echo_n "(cached) " >&6
8210 else
8211   lt_cv_apple_cc_single_mod=no
8212       if test -z "${LT_MULTI_MODULE}"; then
8213         # By default we will add the -single_module flag. You can override
8214         # by either setting the environment variable LT_MULTI_MODULE
8215         # non-empty at configure time, or by adding -multi_module to the
8216         # link flags.
8217         rm -rf libconftest.dylib*
8218         echo "int foo(void){return 1;}" > conftest.c
8219         echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8220 -dynamiclib -Wl,-single_module conftest.c" >&5
8221         $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8222           -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8223         _lt_result=$?
8224         if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8225           lt_cv_apple_cc_single_mod=yes
8226         else
8227           cat conftest.err >&5
8228         fi
8229         rm -rf libconftest.dylib*
8230         rm -f conftest.*
8231       fi
8232 fi
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8234 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8235     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8236 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8237 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8238   $as_echo_n "(cached) " >&6
8239 else
8240   lt_cv_ld_exported_symbols_list=no
8241       save_LDFLAGS=$LDFLAGS
8242       echo "_main" > conftest.sym
8243       LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8244       if test x$gcc_no_link = xyes; then
8245   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8246 fi
8247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8248 /* end confdefs.h.  */
8249
8250 int
8251 main ()
8252 {
8253
8254   ;
8255   return 0;
8256 }
8257 _ACEOF
8258 if ac_fn_c_try_link "$LINENO"; then :
8259   lt_cv_ld_exported_symbols_list=yes
8260 else
8261   lt_cv_ld_exported_symbols_list=no
8262 fi
8263 rm -f core conftest.err conftest.$ac_objext \
8264     conftest$ac_exeext conftest.$ac_ext
8265         LDFLAGS="$save_LDFLAGS"
8266
8267 fi
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8269 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8270     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8271 $as_echo_n "checking for -force_load linker flag... " >&6; }
8272 if test "${lt_cv_ld_force_load+set}" = set; then :
8273   $as_echo_n "(cached) " >&6
8274 else
8275   lt_cv_ld_force_load=no
8276       cat > conftest.c << _LT_EOF
8277 int forced_loaded() { return 2;}
8278 _LT_EOF
8279       echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8280       $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8281       echo "$AR cru libconftest.a conftest.o" >&5
8282       $AR cru libconftest.a conftest.o 2>&5
8283       cat > conftest.c << _LT_EOF
8284 int main() { return 0;}
8285 _LT_EOF
8286       echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8287       $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8288       _lt_result=$?
8289       if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8290         lt_cv_ld_force_load=yes
8291       else
8292         cat conftest.err >&5
8293       fi
8294         rm -f conftest.err libconftest.a conftest conftest.c
8295         rm -rf conftest.dSYM
8296
8297 fi
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8299 $as_echo "$lt_cv_ld_force_load" >&6; }
8300     case $host_os in
8301     rhapsody* | darwin1.[012])
8302       _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8303     darwin1.*)
8304       _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8305     darwin*) # darwin 5.x on
8306       # if running on 10.5 or later, the deployment target defaults
8307       # to the OS version, if on x86, and 10.4, the deployment
8308       # target defaults to 10.4. Don't you love it?
8309       case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8310         10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8311           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8312         10.[012]*)
8313           _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8314         10.*)
8315           _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8316       esac
8317     ;;
8318   esac
8319     if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8320       _lt_dar_single_mod='$single_module'
8321     fi
8322     if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8323       _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8324     else
8325       _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8326     fi
8327     if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8328       _lt_dsymutil='~$DSYMUTIL $lib || :'
8329     else
8330       _lt_dsymutil=
8331     fi
8332     ;;
8333   esac
8334
8335 for ac_header in dlfcn.h
8336 do :
8337   ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8338 "
8339 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8340   cat >>confdefs.h <<_ACEOF
8341 #define HAVE_DLFCN_H 1
8342 _ACEOF
8343
8344 fi
8345
8346 done
8347
8348
8349
8350
8351
8352 # Set options
8353
8354
8355
8356         enable_dlopen=no
8357
8358
8359   enable_win32_dll=no
8360
8361
8362             # Check whether --enable-shared was given.
8363 if test "${enable_shared+set}" = set; then :
8364   enableval=$enable_shared; p=${PACKAGE-default}
8365     case $enableval in
8366     yes) enable_shared=yes ;;
8367     no) enable_shared=no ;;
8368     *)
8369       enable_shared=no
8370       # Look at the argument we got.  We use all the common list separators.
8371       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8372       for pkg in $enableval; do
8373         IFS="$lt_save_ifs"
8374         if test "X$pkg" = "X$p"; then
8375           enable_shared=yes
8376         fi
8377       done
8378       IFS="$lt_save_ifs"
8379       ;;
8380     esac
8381 else
8382   enable_shared=yes
8383 fi
8384
8385
8386
8387
8388
8389
8390
8391
8392
8393
8394
8395 # Check whether --with-pic was given.
8396 if test "${with_pic+set}" = set; then :
8397   withval=$with_pic; pic_mode="$withval"
8398 else
8399   pic_mode=default
8400 fi
8401
8402
8403 test -z "$pic_mode" && pic_mode=default
8404
8405
8406
8407
8408
8409
8410
8411   # Check whether --enable-fast-install was given.
8412 if test "${enable_fast_install+set}" = set; then :
8413   enableval=$enable_fast_install; p=${PACKAGE-default}
8414     case $enableval in
8415     yes) enable_fast_install=yes ;;
8416     no) enable_fast_install=no ;;
8417     *)
8418       enable_fast_install=no
8419       # Look at the argument we got.  We use all the common list separators.
8420       lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8421       for pkg in $enableval; do
8422         IFS="$lt_save_ifs"
8423         if test "X$pkg" = "X$p"; then
8424           enable_fast_install=yes
8425         fi
8426       done
8427       IFS="$lt_save_ifs"
8428       ;;
8429     esac
8430 else
8431   enable_fast_install=yes
8432 fi
8433
8434
8435
8436
8437
8438
8439
8440
8441
8442
8443
8444 # This can be used to rebuild libtool when needed
8445 LIBTOOL_DEPS="$ltmain"
8446
8447 # Always use our own libtool.
8448 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460
8461
8462
8463
8464
8465
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475 test -z "$LN_S" && LN_S="ln -s"
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488
8489
8490 if test -n "${ZSH_VERSION+set}" ; then
8491    setopt NO_GLOB_SUBST
8492 fi
8493
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8495 $as_echo_n "checking for objdir... " >&6; }
8496 if test "${lt_cv_objdir+set}" = set; then :
8497   $as_echo_n "(cached) " >&6
8498 else
8499   rm -f .libs 2>/dev/null
8500 mkdir .libs 2>/dev/null
8501 if test -d .libs; then
8502   lt_cv_objdir=.libs
8503 else
8504   # MS-DOS does not allow filenames that begin with a dot.
8505   lt_cv_objdir=_libs
8506 fi
8507 rmdir .libs 2>/dev/null
8508 fi
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8510 $as_echo "$lt_cv_objdir" >&6; }
8511 objdir=$lt_cv_objdir
8512
8513
8514
8515
8516
8517 cat >>confdefs.h <<_ACEOF
8518 #define LT_OBJDIR "$lt_cv_objdir/"
8519 _ACEOF
8520
8521
8522
8523
8524 case $host_os in
8525 aix3*)
8526   # AIX sometimes has problems with the GCC collect2 program.  For some
8527   # reason, if we set the COLLECT_NAMES environment variable, the problems
8528   # vanish in a puff of smoke.
8529   if test "X${COLLECT_NAMES+set}" != Xset; then
8530     COLLECT_NAMES=
8531     export COLLECT_NAMES
8532   fi
8533   ;;
8534 esac
8535
8536 # Global variables:
8537 ofile=libtool
8538 can_build_shared=yes
8539
8540 # All known linkers require a `.a' archive for static linking (except MSVC,
8541 # which needs '.lib').
8542 libext=a
8543
8544 with_gnu_ld="$lt_cv_prog_gnu_ld"
8545
8546 old_CC="$CC"
8547 old_CFLAGS="$CFLAGS"
8548
8549 # Set sane defaults for various variables
8550 test -z "$CC" && CC=cc
8551 test -z "$LTCC" && LTCC=$CC
8552 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8553 test -z "$LD" && LD=ld
8554 test -z "$ac_objext" && ac_objext=o
8555
8556 for cc_temp in $compiler""; do
8557   case $cc_temp in
8558     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8559     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8560     \-*) ;;
8561     *) break;;
8562   esac
8563 done
8564 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8565
8566
8567 # Only perform the check for file, if the check method requires it
8568 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8569 case $deplibs_check_method in
8570 file_magic*)
8571   if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8572     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8573 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8574 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8575   $as_echo_n "(cached) " >&6
8576 else
8577   case $MAGIC_CMD in
8578 [\\/*] |  ?:[\\/]*)
8579   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8580   ;;
8581 *)
8582   lt_save_MAGIC_CMD="$MAGIC_CMD"
8583   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8584   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8585   for ac_dir in $ac_dummy; do
8586     IFS="$lt_save_ifs"
8587     test -z "$ac_dir" && ac_dir=.
8588     if test -f $ac_dir/${ac_tool_prefix}file; then
8589       lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8590       if test -n "$file_magic_test_file"; then
8591         case $deplibs_check_method in
8592         "file_magic "*)
8593           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8594           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8595           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8596             $EGREP "$file_magic_regex" > /dev/null; then
8597             :
8598           else
8599             cat <<_LT_EOF 1>&2
8600
8601 *** Warning: the command libtool uses to detect shared libraries,
8602 *** $file_magic_cmd, produces output that libtool cannot recognize.
8603 *** The result is that libtool may fail to recognize shared libraries
8604 *** as such.  This will affect the creation of libtool libraries that
8605 *** depend on shared libraries, but programs linked with such libtool
8606 *** libraries will work regardless of this problem.  Nevertheless, you
8607 *** may want to report the problem to your system manager and/or to
8608 *** bug-libtool@gnu.org
8609
8610 _LT_EOF
8611           fi ;;
8612         esac
8613       fi
8614       break
8615     fi
8616   done
8617   IFS="$lt_save_ifs"
8618   MAGIC_CMD="$lt_save_MAGIC_CMD"
8619   ;;
8620 esac
8621 fi
8622
8623 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8624 if test -n "$MAGIC_CMD"; then
8625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8626 $as_echo "$MAGIC_CMD" >&6; }
8627 else
8628   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8630 fi
8631
8632
8633
8634
8635
8636 if test -z "$lt_cv_path_MAGIC_CMD"; then
8637   if test -n "$ac_tool_prefix"; then
8638     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8639 $as_echo_n "checking for file... " >&6; }
8640 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8641   $as_echo_n "(cached) " >&6
8642 else
8643   case $MAGIC_CMD in
8644 [\\/*] |  ?:[\\/]*)
8645   lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8646   ;;
8647 *)
8648   lt_save_MAGIC_CMD="$MAGIC_CMD"
8649   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8650   ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8651   for ac_dir in $ac_dummy; do
8652     IFS="$lt_save_ifs"
8653     test -z "$ac_dir" && ac_dir=.
8654     if test -f $ac_dir/file; then
8655       lt_cv_path_MAGIC_CMD="$ac_dir/file"
8656       if test -n "$file_magic_test_file"; then
8657         case $deplibs_check_method in
8658         "file_magic "*)
8659           file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8660           MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8661           if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8662             $EGREP "$file_magic_regex" > /dev/null; then
8663             :
8664           else
8665             cat <<_LT_EOF 1>&2
8666
8667 *** Warning: the command libtool uses to detect shared libraries,
8668 *** $file_magic_cmd, produces output that libtool cannot recognize.
8669 *** The result is that libtool may fail to recognize shared libraries
8670 *** as such.  This will affect the creation of libtool libraries that
8671 *** depend on shared libraries, but programs linked with such libtool
8672 *** libraries will work regardless of this problem.  Nevertheless, you
8673 *** may want to report the problem to your system manager and/or to
8674 *** bug-libtool@gnu.org
8675
8676 _LT_EOF
8677           fi ;;
8678         esac
8679       fi
8680       break
8681     fi
8682   done
8683   IFS="$lt_save_ifs"
8684   MAGIC_CMD="$lt_save_MAGIC_CMD"
8685   ;;
8686 esac
8687 fi
8688
8689 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8690 if test -n "$MAGIC_CMD"; then
8691   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8692 $as_echo "$MAGIC_CMD" >&6; }
8693 else
8694   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8695 $as_echo "no" >&6; }
8696 fi
8697
8698
8699   else
8700     MAGIC_CMD=:
8701   fi
8702 fi
8703
8704   fi
8705   ;;
8706 esac
8707
8708 # Use C for the default configuration in the libtool script
8709
8710 lt_save_CC="$CC"
8711 ac_ext=c
8712 ac_cpp='$CPP $CPPFLAGS'
8713 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8714 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8715 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8716
8717
8718 # Source file extension for C test sources.
8719 ac_ext=c
8720
8721 # Object file extension for compiled C test sources.
8722 objext=o
8723 objext=$objext
8724
8725 # Code to be used in simple compile tests
8726 lt_simple_compile_test_code="int some_variable = 0;"
8727
8728 # Code to be used in simple link tests
8729 lt_simple_link_test_code='int main(){return(0);}'
8730
8731
8732
8733
8734
8735
8736
8737 # If no C compiler was specified, use CC.
8738 LTCC=${LTCC-"$CC"}
8739
8740 # If no C compiler flags were specified, use CFLAGS.
8741 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8742
8743 # Allow CC to be a program name with arguments.
8744 compiler=$CC
8745
8746 # Save the default compiler, since it gets overwritten when the other
8747 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8748 compiler_DEFAULT=$CC
8749
8750 # save warnings/boilerplate of simple test code
8751 ac_outfile=conftest.$ac_objext
8752 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8753 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8754 _lt_compiler_boilerplate=`cat conftest.err`
8755 $RM conftest*
8756
8757 ac_outfile=conftest.$ac_objext
8758 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8759 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8760 _lt_linker_boilerplate=`cat conftest.err`
8761 $RM -r conftest*
8762
8763
8764 ## CAVEAT EMPTOR:
8765 ## There is no encapsulation within the following macros, do not change
8766 ## the running order or otherwise move them around unless you know exactly
8767 ## what you are doing...
8768 if test -n "$compiler"; then
8769
8770 lt_prog_compiler_no_builtin_flag=
8771
8772 if test "$GCC" = yes; then
8773   case $cc_basename in
8774   nvcc*)
8775     lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8776   *)
8777     lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8778   esac
8779
8780   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8781 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8782 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8783   $as_echo_n "(cached) " >&6
8784 else
8785   lt_cv_prog_compiler_rtti_exceptions=no
8786    ac_outfile=conftest.$ac_objext
8787    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8788    lt_compiler_flag="-fno-rtti -fno-exceptions"
8789    # Insert the option either (1) after the last *FLAGS variable, or
8790    # (2) before a word containing "conftest.", or (3) at the end.
8791    # Note that $ac_compile itself does not contain backslashes and begins
8792    # with a dollar sign (not a hyphen), so the echo should work correctly.
8793    # The option is referenced via a variable to avoid confusing sed.
8794    lt_compile=`echo "$ac_compile" | $SED \
8795    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8796    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8797    -e 's:$: $lt_compiler_flag:'`
8798    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8799    (eval "$lt_compile" 2>conftest.err)
8800    ac_status=$?
8801    cat conftest.err >&5
8802    echo "$as_me:$LINENO: \$? = $ac_status" >&5
8803    if (exit $ac_status) && test -s "$ac_outfile"; then
8804      # The compiler can only warn and ignore the option if not recognized
8805      # So say no if there are warnings other than the usual output.
8806      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8807      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8808      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8809        lt_cv_prog_compiler_rtti_exceptions=yes
8810      fi
8811    fi
8812    $RM conftest*
8813
8814 fi
8815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8816 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8817
8818 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8819     lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8820 else
8821     :
8822 fi
8823
8824 fi
8825
8826
8827
8828
8829
8830
8831   lt_prog_compiler_wl=
8832 lt_prog_compiler_pic=
8833 lt_prog_compiler_static=
8834
8835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8836 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8837
8838   if test "$GCC" = yes; then
8839     lt_prog_compiler_wl='-Wl,'
8840     lt_prog_compiler_static='-static'
8841
8842     case $host_os in
8843       aix*)
8844       # All AIX code is PIC.
8845       if test "$host_cpu" = ia64; then
8846         # AIX 5 now supports IA64 processor
8847         lt_prog_compiler_static='-Bstatic'
8848       fi
8849       lt_prog_compiler_pic='-fPIC'
8850       ;;
8851
8852     amigaos*)
8853       case $host_cpu in
8854       powerpc)
8855             # see comment about AmigaOS4 .so support
8856             lt_prog_compiler_pic='-fPIC'
8857         ;;
8858       m68k)
8859             # FIXME: we need at least 68020 code to build shared libraries, but
8860             # adding the `-m68020' flag to GCC prevents building anything better,
8861             # like `-m68040'.
8862             lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8863         ;;
8864       esac
8865       ;;
8866
8867     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8868       # PIC is the default for these OSes.
8869       ;;
8870
8871     mingw* | cygwin* | pw32* | os2* | cegcc*)
8872       # This hack is so that the source file can tell whether it is being
8873       # built for inclusion in a dll (and should export symbols for example).
8874       # Although the cygwin gcc ignores -fPIC, still need this for old-style
8875       # (--disable-auto-import) libraries
8876       lt_prog_compiler_pic='-DDLL_EXPORT'
8877       ;;
8878
8879     darwin* | rhapsody*)
8880       # PIC is the default on this platform
8881       # Common symbols not allowed in MH_DYLIB files
8882       lt_prog_compiler_pic='-fno-common'
8883       ;;
8884
8885     haiku*)
8886       # PIC is the default for Haiku.
8887       # The "-static" flag exists, but is broken.
8888       lt_prog_compiler_static=
8889       ;;
8890
8891     hpux*)
8892       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8893       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8894       # sets the default TLS model and affects inlining.
8895       case $host_cpu in
8896       hppa*64*)
8897         # +Z the default
8898         ;;
8899       *)
8900         lt_prog_compiler_pic='-fPIC'
8901         ;;
8902       esac
8903       ;;
8904
8905     interix[3-9]*)
8906       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8907       # Instead, we relocate shared libraries at runtime.
8908       ;;
8909
8910     msdosdjgpp*)
8911       # Just because we use GCC doesn't mean we suddenly get shared libraries
8912       # on systems that don't support them.
8913       lt_prog_compiler_can_build_shared=no
8914       enable_shared=no
8915       ;;
8916
8917     *nto* | *qnx*)
8918       # QNX uses GNU C++, but need to define -shared option too, otherwise
8919       # it will coredump.
8920       lt_prog_compiler_pic='-fPIC -shared'
8921       ;;
8922
8923     sysv4*MP*)
8924       if test -d /usr/nec; then
8925         lt_prog_compiler_pic=-Kconform_pic
8926       fi
8927       ;;
8928
8929     *)
8930       lt_prog_compiler_pic='-fPIC'
8931       ;;
8932     esac
8933
8934     case $cc_basename in
8935     nvcc*) # Cuda Compiler Driver 2.2
8936       lt_prog_compiler_wl='-Xlinker '
8937       lt_prog_compiler_pic='-Xcompiler -fPIC'
8938       ;;
8939     esac
8940   else
8941     # PORTME Check for flag to pass linker flags through the system compiler.
8942     case $host_os in
8943     aix*)
8944       lt_prog_compiler_wl='-Wl,'
8945       if test "$host_cpu" = ia64; then
8946         # AIX 5 now supports IA64 processor
8947         lt_prog_compiler_static='-Bstatic'
8948       else
8949         lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8950       fi
8951       ;;
8952
8953     mingw* | cygwin* | pw32* | os2* | cegcc*)
8954       # This hack is so that the source file can tell whether it is being
8955       # built for inclusion in a dll (and should export symbols for example).
8956       lt_prog_compiler_pic='-DDLL_EXPORT'
8957       ;;
8958
8959     hpux9* | hpux10* | hpux11*)
8960       lt_prog_compiler_wl='-Wl,'
8961       # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8962       # not for PA HP-UX.
8963       case $host_cpu in
8964       hppa*64*|ia64*)
8965         # +Z the default
8966         ;;
8967       *)
8968         lt_prog_compiler_pic='+Z'
8969         ;;
8970       esac
8971       # Is there a better lt_prog_compiler_static that works with the bundled CC?
8972       lt_prog_compiler_static='${wl}-a ${wl}archive'
8973       ;;
8974
8975     irix5* | irix6* | nonstopux*)
8976       lt_prog_compiler_wl='-Wl,'
8977       # PIC (with -KPIC) is the default.
8978       lt_prog_compiler_static='-non_shared'
8979       ;;
8980
8981     linux* | k*bsd*-gnu | kopensolaris*-gnu)
8982       case $cc_basename in
8983       # old Intel for x86_64 which still supported -KPIC.
8984       ecc*)
8985         lt_prog_compiler_wl='-Wl,'
8986         lt_prog_compiler_pic='-KPIC'
8987         lt_prog_compiler_static='-static'
8988         ;;
8989       # icc used to be incompatible with GCC.
8990       # ICC 10 doesn't accept -KPIC any more.
8991       icc* | ifort*)
8992         lt_prog_compiler_wl='-Wl,'
8993         lt_prog_compiler_pic='-fPIC'
8994         lt_prog_compiler_static='-static'
8995         ;;
8996       # Lahey Fortran 8.1.
8997       lf95*)
8998         lt_prog_compiler_wl='-Wl,'
8999         lt_prog_compiler_pic='--shared'
9000         lt_prog_compiler_static='--static'
9001         ;;
9002       pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9003         # Portland Group compilers (*not* the Pentium gcc compiler,
9004         # which looks to be a dead project)
9005         lt_prog_compiler_wl='-Wl,'
9006         lt_prog_compiler_pic='-fpic'
9007         lt_prog_compiler_static='-Bstatic'
9008         ;;
9009       ccc*)
9010         lt_prog_compiler_wl='-Wl,'
9011         # All Alpha code is PIC.
9012         lt_prog_compiler_static='-non_shared'
9013         ;;
9014       xl* | bgxl* | bgf* | mpixl*)
9015         # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9016         lt_prog_compiler_wl='-Wl,'
9017         lt_prog_compiler_pic='-qpic'
9018         lt_prog_compiler_static='-qstaticlink'
9019         ;;
9020       *)
9021         case `$CC -V 2>&1 | sed 5q` in
9022         *Sun\ F* | *Sun*Fortran*)
9023           # Sun Fortran 8.3 passes all unrecognized flags to the linker
9024           lt_prog_compiler_pic='-KPIC'
9025           lt_prog_compiler_static='-Bstatic'
9026           lt_prog_compiler_wl=''
9027           ;;
9028         *Sun\ C*)
9029           # Sun C 5.9
9030           lt_prog_compiler_pic='-KPIC'
9031           lt_prog_compiler_static='-Bstatic'
9032           lt_prog_compiler_wl='-Wl,'
9033           ;;
9034         esac
9035         ;;
9036       esac
9037       ;;
9038
9039     newsos6)
9040       lt_prog_compiler_pic='-KPIC'
9041       lt_prog_compiler_static='-Bstatic'
9042       ;;
9043
9044     *nto* | *qnx*)
9045       # QNX uses GNU C++, but need to define -shared option too, otherwise
9046       # it will coredump.
9047       lt_prog_compiler_pic='-fPIC -shared'
9048       ;;
9049
9050     osf3* | osf4* | osf5*)
9051       lt_prog_compiler_wl='-Wl,'
9052       # All OSF/1 code is PIC.
9053       lt_prog_compiler_static='-non_shared'
9054       ;;
9055
9056     rdos*)
9057       lt_prog_compiler_static='-non_shared'
9058       ;;
9059
9060     solaris*)
9061       lt_prog_compiler_pic='-KPIC'
9062       lt_prog_compiler_static='-Bstatic'
9063       case $cc_basename in
9064       f77* | f90* | f95*)
9065         lt_prog_compiler_wl='-Qoption ld ';;
9066       *)
9067         lt_prog_compiler_wl='-Wl,';;
9068       esac
9069       ;;
9070
9071     sunos4*)
9072       lt_prog_compiler_wl='-Qoption ld '
9073       lt_prog_compiler_pic='-PIC'
9074       lt_prog_compiler_static='-Bstatic'
9075       ;;
9076
9077     sysv4 | sysv4.2uw2* | sysv4.3*)
9078       lt_prog_compiler_wl='-Wl,'
9079       lt_prog_compiler_pic='-KPIC'
9080       lt_prog_compiler_static='-Bstatic'
9081       ;;
9082
9083     sysv4*MP*)
9084       if test -d /usr/nec ;then
9085         lt_prog_compiler_pic='-Kconform_pic'
9086         lt_prog_compiler_static='-Bstatic'
9087       fi
9088       ;;
9089
9090     sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9091       lt_prog_compiler_wl='-Wl,'
9092       lt_prog_compiler_pic='-KPIC'
9093       lt_prog_compiler_static='-Bstatic'
9094       ;;
9095
9096     unicos*)
9097       lt_prog_compiler_wl='-Wl,'
9098       lt_prog_compiler_can_build_shared=no
9099       ;;
9100
9101     uts4*)
9102       lt_prog_compiler_pic='-pic'
9103       lt_prog_compiler_static='-Bstatic'
9104       ;;
9105
9106     *)
9107       lt_prog_compiler_can_build_shared=no
9108       ;;
9109     esac
9110   fi
9111
9112 case $host_os in
9113   # For platforms which do not support PIC, -DPIC is meaningless:
9114   *djgpp*)
9115     lt_prog_compiler_pic=
9116     ;;
9117   *)
9118     lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9119     ;;
9120 esac
9121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9122 $as_echo "$lt_prog_compiler_pic" >&6; }
9123
9124
9125
9126
9127
9128
9129 #
9130 # Check to make sure the PIC flag actually works.
9131 #
9132 if test -n "$lt_prog_compiler_pic"; then
9133   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9134 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9135 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9136   $as_echo_n "(cached) " >&6
9137 else
9138   lt_cv_prog_compiler_pic_works=no
9139    ac_outfile=conftest.$ac_objext
9140    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9141    lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9142    # Insert the option either (1) after the last *FLAGS variable, or
9143    # (2) before a word containing "conftest.", or (3) at the end.
9144    # Note that $ac_compile itself does not contain backslashes and begins
9145    # with a dollar sign (not a hyphen), so the echo should work correctly.
9146    # The option is referenced via a variable to avoid confusing sed.
9147    lt_compile=`echo "$ac_compile" | $SED \
9148    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9149    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9150    -e 's:$: $lt_compiler_flag:'`
9151    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9152    (eval "$lt_compile" 2>conftest.err)
9153    ac_status=$?
9154    cat conftest.err >&5
9155    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9156    if (exit $ac_status) && test -s "$ac_outfile"; then
9157      # The compiler can only warn and ignore the option if not recognized
9158      # So say no if there are warnings other than the usual output.
9159      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9160      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9161      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9162        lt_cv_prog_compiler_pic_works=yes
9163      fi
9164    fi
9165    $RM conftest*
9166
9167 fi
9168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9169 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9170
9171 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9172     case $lt_prog_compiler_pic in
9173      "" | " "*) ;;
9174      *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9175      esac
9176 else
9177     lt_prog_compiler_pic=
9178      lt_prog_compiler_can_build_shared=no
9179 fi
9180
9181 fi
9182
9183
9184
9185
9186
9187
9188 #
9189 # Check to make sure the static flag actually works.
9190 #
9191 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9193 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9194 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9195   $as_echo_n "(cached) " >&6
9196 else
9197   lt_cv_prog_compiler_static_works=no
9198    save_LDFLAGS="$LDFLAGS"
9199    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9200    echo "$lt_simple_link_test_code" > conftest.$ac_ext
9201    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9202      # The linker can only warn and ignore the option if not recognized
9203      # So say no if there are warnings
9204      if test -s conftest.err; then
9205        # Append any errors to the config.log.
9206        cat conftest.err 1>&5
9207        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9208        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9209        if diff conftest.exp conftest.er2 >/dev/null; then
9210          lt_cv_prog_compiler_static_works=yes
9211        fi
9212      else
9213        lt_cv_prog_compiler_static_works=yes
9214      fi
9215    fi
9216    $RM -r conftest*
9217    LDFLAGS="$save_LDFLAGS"
9218
9219 fi
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9221 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9222
9223 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9224     :
9225 else
9226     lt_prog_compiler_static=
9227 fi
9228
9229
9230
9231
9232
9233
9234
9235   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9236 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9237 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9238   $as_echo_n "(cached) " >&6
9239 else
9240   lt_cv_prog_compiler_c_o=no
9241    $RM -r conftest 2>/dev/null
9242    mkdir conftest
9243    cd conftest
9244    mkdir out
9245    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9246
9247    lt_compiler_flag="-o out/conftest2.$ac_objext"
9248    # Insert the option either (1) after the last *FLAGS variable, or
9249    # (2) before a word containing "conftest.", or (3) at the end.
9250    # Note that $ac_compile itself does not contain backslashes and begins
9251    # with a dollar sign (not a hyphen), so the echo should work correctly.
9252    lt_compile=`echo "$ac_compile" | $SED \
9253    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9254    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9255    -e 's:$: $lt_compiler_flag:'`
9256    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9257    (eval "$lt_compile" 2>out/conftest.err)
9258    ac_status=$?
9259    cat out/conftest.err >&5
9260    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9261    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9262    then
9263      # The compiler can only warn and ignore the option if not recognized
9264      # So say no if there are warnings
9265      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9266      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9267      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9268        lt_cv_prog_compiler_c_o=yes
9269      fi
9270    fi
9271    chmod u+w . 2>&5
9272    $RM conftest*
9273    # SGI C++ compiler will create directory out/ii_files/ for
9274    # template instantiation
9275    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9276    $RM out/* && rmdir out
9277    cd ..
9278    $RM -r conftest
9279    $RM conftest*
9280
9281 fi
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9283 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9284
9285
9286
9287
9288
9289
9290   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9291 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9292 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9293   $as_echo_n "(cached) " >&6
9294 else
9295   lt_cv_prog_compiler_c_o=no
9296    $RM -r conftest 2>/dev/null
9297    mkdir conftest
9298    cd conftest
9299    mkdir out
9300    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9301
9302    lt_compiler_flag="-o out/conftest2.$ac_objext"
9303    # Insert the option either (1) after the last *FLAGS variable, or
9304    # (2) before a word containing "conftest.", or (3) at the end.
9305    # Note that $ac_compile itself does not contain backslashes and begins
9306    # with a dollar sign (not a hyphen), so the echo should work correctly.
9307    lt_compile=`echo "$ac_compile" | $SED \
9308    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9309    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9310    -e 's:$: $lt_compiler_flag:'`
9311    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9312    (eval "$lt_compile" 2>out/conftest.err)
9313    ac_status=$?
9314    cat out/conftest.err >&5
9315    echo "$as_me:$LINENO: \$? = $ac_status" >&5
9316    if (exit $ac_status) && test -s out/conftest2.$ac_objext
9317    then
9318      # The compiler can only warn and ignore the option if not recognized
9319      # So say no if there are warnings
9320      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9321      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9322      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9323        lt_cv_prog_compiler_c_o=yes
9324      fi
9325    fi
9326    chmod u+w . 2>&5
9327    $RM conftest*
9328    # SGI C++ compiler will create directory out/ii_files/ for
9329    # template instantiation
9330    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9331    $RM out/* && rmdir out
9332    cd ..
9333    $RM -r conftest
9334    $RM conftest*
9335
9336 fi
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9338 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9339
9340
9341
9342
9343 hard_links="nottested"
9344 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9345   # do not overwrite the value of need_locks provided by the user
9346   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9347 $as_echo_n "checking if we can lock with hard links... " >&6; }
9348   hard_links=yes
9349   $RM conftest*
9350   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9351   touch conftest.a
9352   ln conftest.a conftest.b 2>&5 || hard_links=no
9353   ln conftest.a conftest.b 2>/dev/null && hard_links=no
9354   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9355 $as_echo "$hard_links" >&6; }
9356   if test "$hard_links" = no; then
9357     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9358 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9359     need_locks=warn
9360   fi
9361 else
9362   need_locks=no
9363 fi
9364
9365
9366
9367
9368
9369
9370   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9371 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9372
9373   runpath_var=
9374   allow_undefined_flag=
9375   always_export_symbols=no
9376   archive_cmds=
9377   archive_expsym_cmds=
9378   compiler_needs_object=no
9379   enable_shared_with_static_runtimes=no
9380   export_dynamic_flag_spec=
9381   export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9382   hardcode_automatic=no
9383   hardcode_direct=no
9384   hardcode_direct_absolute=no
9385   hardcode_libdir_flag_spec=
9386   hardcode_libdir_flag_spec_ld=
9387   hardcode_libdir_separator=
9388   hardcode_minus_L=no
9389   hardcode_shlibpath_var=unsupported
9390   inherit_rpath=no
9391   link_all_deplibs=unknown
9392   module_cmds=
9393   module_expsym_cmds=
9394   old_archive_from_new_cmds=
9395   old_archive_from_expsyms_cmds=
9396   thread_safe_flag_spec=
9397   whole_archive_flag_spec=
9398   # include_expsyms should be a list of space-separated symbols to be *always*
9399   # included in the symbol list
9400   include_expsyms=
9401   # exclude_expsyms can be an extended regexp of symbols to exclude
9402   # it will be wrapped by ` (' and `)$', so one must not match beginning or
9403   # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9404   # as well as any symbol that contains `d'.
9405   exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9406   # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9407   # platforms (ab)use it in PIC code, but their linkers get confused if
9408   # the symbol is explicitly referenced.  Since portable code cannot
9409   # rely on this symbol name, it's probably fine to never include it in
9410   # preloaded symbol tables.
9411   # Exclude shared library initialization/finalization symbols.
9412   extract_expsyms_cmds=
9413
9414   case $host_os in
9415   cygwin* | mingw* | pw32* | cegcc*)
9416     # FIXME: the MSVC++ port hasn't been tested in a loooong time
9417     # When not using gcc, we currently assume that we are using
9418     # Microsoft Visual C++.
9419     if test "$GCC" != yes; then
9420       with_gnu_ld=no
9421     fi
9422     ;;
9423   interix*)
9424     # we just hope/assume this is gcc and not c89 (= MSVC++)
9425     with_gnu_ld=yes
9426     ;;
9427   openbsd*)
9428     with_gnu_ld=no
9429     ;;
9430   esac
9431
9432   ld_shlibs=yes
9433
9434   # On some targets, GNU ld is compatible enough with the native linker
9435   # that we're better off using the native interface for both.
9436   lt_use_gnu_ld_interface=no
9437   if test "$with_gnu_ld" = yes; then
9438     case $host_os in
9439       aix*)
9440         # The AIX port of GNU ld has always aspired to compatibility
9441         # with the native linker.  However, as the warning in the GNU ld
9442         # block says, versions before 2.19.5* couldn't really create working
9443         # shared libraries, regardless of the interface used.
9444         case `$LD -v 2>&1` in
9445           *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9446           *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9447           *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9448           *)
9449             lt_use_gnu_ld_interface=yes
9450             ;;
9451         esac
9452         ;;
9453       *)
9454         lt_use_gnu_ld_interface=yes
9455         ;;
9456     esac
9457   fi
9458
9459   if test "$lt_use_gnu_ld_interface" = yes; then
9460     # If archive_cmds runs LD, not CC, wlarc should be empty
9461     wlarc='${wl}'
9462
9463     # Set some defaults for GNU ld with shared library support. These
9464     # are reset later if shared libraries are not supported. Putting them
9465     # here allows them to be overridden if necessary.
9466     runpath_var=LD_RUN_PATH
9467     hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9468     export_dynamic_flag_spec='${wl}--export-dynamic'
9469     # ancient GNU ld didn't support --whole-archive et. al.
9470     if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9471       whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9472     else
9473       whole_archive_flag_spec=
9474     fi
9475     supports_anon_versioning=no
9476     case `$LD -v 2>&1` in
9477       *GNU\ gold*) supports_anon_versioning=yes ;;
9478       *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9479       *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9480       *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9481       *\ 2.11.*) ;; # other 2.11 versions
9482       *) supports_anon_versioning=yes ;;
9483     esac
9484
9485     # See if GNU ld supports shared libraries.
9486     case $host_os in
9487     aix[3-9]*)
9488       # On AIX/PPC, the GNU linker is very broken
9489       if test "$host_cpu" != ia64; then
9490         ld_shlibs=no
9491         cat <<_LT_EOF 1>&2
9492
9493 *** Warning: the GNU linker, at least up to release 2.19, is reported
9494 *** to be unable to reliably create shared libraries on AIX.
9495 *** Therefore, libtool is disabling shared libraries support.  If you
9496 *** really care for shared libraries, you may want to install binutils
9497 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9498 *** You will then need to restart the configuration process.
9499
9500 _LT_EOF
9501       fi
9502       ;;
9503
9504     amigaos*)
9505       case $host_cpu in
9506       powerpc)
9507             # see comment about AmigaOS4 .so support
9508             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9509             archive_expsym_cmds=''
9510         ;;
9511       m68k)
9512             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9513             hardcode_libdir_flag_spec='-L$libdir'
9514             hardcode_minus_L=yes
9515         ;;
9516       esac
9517       ;;
9518
9519     beos*)
9520       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9521         allow_undefined_flag=unsupported
9522         # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9523         # support --undefined.  This deserves some investigation.  FIXME
9524         archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9525       else
9526         ld_shlibs=no
9527       fi
9528       ;;
9529
9530     cygwin* | mingw* | pw32* | cegcc*)
9531       # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9532       # as there is no search path for DLLs.
9533       hardcode_libdir_flag_spec='-L$libdir'
9534       export_dynamic_flag_spec='${wl}--export-all-symbols'
9535       allow_undefined_flag=unsupported
9536       always_export_symbols=no
9537       enable_shared_with_static_runtimes=yes
9538       export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9539
9540       if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9541         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9542         # If the export-symbols file already is a .def file (1st line
9543         # is EXPORTS), use it as is; otherwise, prepend...
9544         archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9545           cp $export_symbols $output_objdir/$soname.def;
9546         else
9547           echo EXPORTS > $output_objdir/$soname.def;
9548           cat $export_symbols >> $output_objdir/$soname.def;
9549         fi~
9550         $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9551       else
9552         ld_shlibs=no
9553       fi
9554       ;;
9555
9556     haiku*)
9557       archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9558       link_all_deplibs=yes
9559       ;;
9560
9561     interix[3-9]*)
9562       hardcode_direct=no
9563       hardcode_shlibpath_var=no
9564       hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9565       export_dynamic_flag_spec='${wl}-E'
9566       # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9567       # Instead, shared libraries are loaded at an image base (0x10000000 by
9568       # default) and relocated if they conflict, which is a slow very memory
9569       # consuming and fragmenting process.  To avoid this, we pick a random,
9570       # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9571       # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9572       archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9573       archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9574       ;;
9575
9576     gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9577       tmp_diet=no
9578       if test "$host_os" = linux-dietlibc; then
9579         case $cc_basename in
9580           diet\ *) tmp_diet=yes;;       # linux-dietlibc with static linking (!diet-dyn)
9581         esac
9582       fi
9583       if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9584          && test "$tmp_diet" = no
9585       then
9586         tmp_addflag=
9587         tmp_sharedflag='-shared'
9588         case $cc_basename,$host_cpu in
9589         pgcc*)                          # Portland Group C compiler
9590           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9591           tmp_addflag=' $pic_flag'
9592           ;;
9593         pgf77* | pgf90* | pgf95* | pgfortran*)
9594                                         # Portland Group f77 and f90 compilers
9595           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9596           tmp_addflag=' $pic_flag -Mnomain' ;;
9597         ecc*,ia64* | icc*,ia64*)        # Intel C compiler on ia64
9598           tmp_addflag=' -i_dynamic' ;;
9599         efc*,ia64* | ifort*,ia64*)      # Intel Fortran compiler on ia64
9600           tmp_addflag=' -i_dynamic -nofor_main' ;;
9601         ifc* | ifort*)                  # Intel Fortran compiler
9602           tmp_addflag=' -nofor_main' ;;
9603         lf95*)                          # Lahey Fortran 8.1
9604           whole_archive_flag_spec=
9605           tmp_sharedflag='--shared' ;;
9606         xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9607           tmp_sharedflag='-qmkshrobj'
9608           tmp_addflag= ;;
9609         nvcc*)  # Cuda Compiler Driver 2.2
9610           whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9611           compiler_needs_object=yes
9612           ;;
9613         esac
9614         case `$CC -V 2>&1 | sed 5q` in
9615         *Sun\ C*)                       # Sun C 5.9
9616           whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9617           compiler_needs_object=yes
9618           tmp_sharedflag='-G' ;;
9619         *Sun\ F*)                       # Sun Fortran 8.3
9620           tmp_sharedflag='-G' ;;
9621         esac
9622         archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9623
9624         if test "x$supports_anon_versioning" = xyes; then
9625           archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9626             cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9627             echo "local: *; };" >> $output_objdir/$libname.ver~
9628             $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9629         fi
9630
9631         case $cc_basename in
9632         xlf* | bgf* | bgxlf* | mpixlf*)
9633           # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9634           whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9635           hardcode_libdir_flag_spec=
9636           hardcode_libdir_flag_spec_ld='-rpath $libdir'
9637           archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9638           if test "x$supports_anon_versioning" = xyes; then
9639             archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9640               cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9641               echo "local: *; };" >> $output_objdir/$libname.ver~
9642               $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9643           fi
9644           ;;
9645         esac
9646       else
9647         ld_shlibs=no
9648       fi
9649       ;;
9650
9651     netbsd*)
9652       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9653         archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9654         wlarc=
9655       else
9656         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9657         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9658       fi
9659       ;;
9660
9661     solaris*)
9662       if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9663         ld_shlibs=no
9664         cat <<_LT_EOF 1>&2
9665
9666 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9667 *** create shared libraries on Solaris systems.  Therefore, libtool
9668 *** is disabling shared libraries support.  We urge you to upgrade GNU
9669 *** binutils to release 2.9.1 or newer.  Another option is to modify
9670 *** your PATH or compiler configuration so that the native linker is
9671 *** used, and then restart.
9672
9673 _LT_EOF
9674       elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9675         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9676         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9677       else
9678         ld_shlibs=no
9679       fi
9680       ;;
9681
9682     sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9683       case `$LD -v 2>&1` in
9684         *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9685         ld_shlibs=no
9686         cat <<_LT_EOF 1>&2
9687
9688 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9689 *** reliably create shared libraries on SCO systems.  Therefore, libtool
9690 *** is disabling shared libraries support.  We urge you to upgrade GNU
9691 *** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9692 *** your PATH or compiler configuration so that the native linker is
9693 *** used, and then restart.
9694
9695 _LT_EOF
9696         ;;
9697         *)
9698           # For security reasons, it is highly recommended that you always
9699           # use absolute paths for naming shared libraries, and exclude the
9700           # DT_RUNPATH tag from executables and libraries.  But doing so
9701           # requires that you compile everything twice, which is a pain.
9702           if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9703             hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9704             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9705             archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9706           else
9707             ld_shlibs=no
9708           fi
9709         ;;
9710       esac
9711       ;;
9712
9713     sunos4*)
9714       archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9715       wlarc=
9716       hardcode_direct=yes
9717       hardcode_shlibpath_var=no
9718       ;;
9719
9720     *)
9721       if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9722         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9723         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9724       else
9725         ld_shlibs=no
9726       fi
9727       ;;
9728     esac
9729
9730     if test "$ld_shlibs" = no; then
9731       runpath_var=
9732       hardcode_libdir_flag_spec=
9733       export_dynamic_flag_spec=
9734       whole_archive_flag_spec=
9735     fi
9736   else
9737     # PORTME fill in a description of your system's linker (not GNU ld)
9738     case $host_os in
9739     aix3*)
9740       allow_undefined_flag=unsupported
9741       always_export_symbols=yes
9742       archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9743       # Note: this linker hardcodes the directories in LIBPATH if there
9744       # are no directories specified by -L.
9745       hardcode_minus_L=yes
9746       if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9747         # Neither direct hardcoding nor static linking is supported with a
9748         # broken collect2.
9749         hardcode_direct=unsupported
9750       fi
9751       ;;
9752
9753     aix[4-9]*)
9754       if test "$host_cpu" = ia64; then
9755         # On IA64, the linker does run time linking by default, so we don't
9756         # have to do anything special.
9757         aix_use_runtimelinking=no
9758         exp_sym_flag='-Bexport'
9759         no_entry_flag=""
9760       else
9761         # If we're using GNU nm, then we don't want the "-C" option.
9762         # -C means demangle to AIX nm, but means don't demangle with GNU nm
9763         # Also, AIX nm treats weak defined symbols like other global
9764         # defined symbols, whereas GNU nm marks them as "W".
9765         if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9766           export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9767         else
9768           export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9769         fi
9770         aix_use_runtimelinking=no
9771
9772         # Test if we are trying to use run time linking or normal
9773         # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9774         # need to do runtime linking.
9775         case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9776           for ld_flag in $LDFLAGS; do
9777           if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9778             aix_use_runtimelinking=yes
9779             break
9780           fi
9781           done
9782           ;;
9783         esac
9784
9785         exp_sym_flag='-bexport'
9786         no_entry_flag='-bnoentry'
9787       fi
9788
9789       # When large executables or shared objects are built, AIX ld can
9790       # have problems creating the table of contents.  If linking a library
9791       # or program results in "error TOC overflow" add -mminimal-toc to
9792       # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9793       # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9794
9795       archive_cmds=''
9796       hardcode_direct=yes
9797       hardcode_direct_absolute=yes
9798       hardcode_libdir_separator=':'
9799       link_all_deplibs=yes
9800       file_list_spec='${wl}-f,'
9801
9802       if test "$GCC" = yes; then
9803         case $host_os in aix4.[012]|aix4.[012].*)
9804         # We only want to do this on AIX 4.2 and lower, the check
9805         # below for broken collect2 doesn't work under 4.3+
9806           collect2name=`${CC} -print-prog-name=collect2`
9807           if test -f "$collect2name" &&
9808            strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9809           then
9810           # We have reworked collect2
9811           :
9812           else
9813           # We have old collect2
9814           hardcode_direct=unsupported
9815           # It fails to find uninstalled libraries when the uninstalled
9816           # path is not listed in the libpath.  Setting hardcode_minus_L
9817           # to unsupported forces relinking
9818           hardcode_minus_L=yes
9819           hardcode_libdir_flag_spec='-L$libdir'
9820           hardcode_libdir_separator=
9821           fi
9822           ;;
9823         esac
9824         shared_flag='-shared'
9825         if test "$aix_use_runtimelinking" = yes; then
9826           shared_flag="$shared_flag "'${wl}-G'
9827         fi
9828       else
9829         # not using gcc
9830         if test "$host_cpu" = ia64; then
9831         # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9832         # chokes on -Wl,-G. The following line is correct:
9833           shared_flag='-G'
9834         else
9835           if test "$aix_use_runtimelinking" = yes; then
9836             shared_flag='${wl}-G'
9837           else
9838             shared_flag='${wl}-bM:SRE'
9839           fi
9840         fi
9841       fi
9842
9843       export_dynamic_flag_spec='${wl}-bexpall'
9844       # It seems that -bexpall does not export symbols beginning with
9845       # underscore (_), so it is better to generate a list of symbols to export.
9846       always_export_symbols=yes
9847       if test "$aix_use_runtimelinking" = yes; then
9848         # Warning - without using the other runtime loading flags (-brtl),
9849         # -berok will link without error, but may produce a broken library.
9850         allow_undefined_flag='-berok'
9851         # Determine the default libpath from the value encoded in an
9852         # empty executable.
9853         if test x$gcc_no_link = xyes; then
9854   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9855 fi
9856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9857 /* end confdefs.h.  */
9858
9859 int
9860 main ()
9861 {
9862
9863   ;
9864   return 0;
9865 }
9866 _ACEOF
9867 if ac_fn_c_try_link "$LINENO"; then :
9868
9869 lt_aix_libpath_sed='
9870     /Import File Strings/,/^$/ {
9871         /^0/ {
9872             s/^0  *\(.*\)$/\1/
9873             p
9874         }
9875     }'
9876 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9877 # Check for a 64-bit object if we didn't find anything.
9878 if test -z "$aix_libpath"; then
9879   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9880 fi
9881 fi
9882 rm -f core conftest.err conftest.$ac_objext \
9883     conftest$ac_exeext conftest.$ac_ext
9884 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9885
9886         hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9887         archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9888       else
9889         if test "$host_cpu" = ia64; then
9890           hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9891           allow_undefined_flag="-z nodefs"
9892           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9893         else
9894          # Determine the default libpath from the value encoded in an
9895          # empty executable.
9896          if test x$gcc_no_link = xyes; then
9897   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9898 fi
9899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9900 /* end confdefs.h.  */
9901
9902 int
9903 main ()
9904 {
9905
9906   ;
9907   return 0;
9908 }
9909 _ACEOF
9910 if ac_fn_c_try_link "$LINENO"; then :
9911
9912 lt_aix_libpath_sed='
9913     /Import File Strings/,/^$/ {
9914         /^0/ {
9915             s/^0  *\(.*\)$/\1/
9916             p
9917         }
9918     }'
9919 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9920 # Check for a 64-bit object if we didn't find anything.
9921 if test -z "$aix_libpath"; then
9922   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9923 fi
9924 fi
9925 rm -f core conftest.err conftest.$ac_objext \
9926     conftest$ac_exeext conftest.$ac_ext
9927 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9928
9929          hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9930           # Warning - without using the other run time loading flags,
9931           # -berok will link without error, but may produce a broken library.
9932           no_undefined_flag=' ${wl}-bernotok'
9933           allow_undefined_flag=' ${wl}-berok'
9934           if test "$with_gnu_ld" = yes; then
9935             # We only use this code for GNU lds that support --whole-archive.
9936             whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9937           else
9938             # Exported symbols can be pulled into shared objects from archives
9939             whole_archive_flag_spec='$convenience'
9940           fi
9941           archive_cmds_need_lc=yes
9942           # This is similar to how AIX traditionally builds its shared libraries.
9943           archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9944         fi
9945       fi
9946       ;;
9947
9948     amigaos*)
9949       case $host_cpu in
9950       powerpc)
9951             # see comment about AmigaOS4 .so support
9952             archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9953             archive_expsym_cmds=''
9954         ;;
9955       m68k)
9956             archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9957             hardcode_libdir_flag_spec='-L$libdir'
9958             hardcode_minus_L=yes
9959         ;;
9960       esac
9961       ;;
9962
9963     bsdi[45]*)
9964       export_dynamic_flag_spec=-rdynamic
9965       ;;
9966
9967     cygwin* | mingw* | pw32* | cegcc*)
9968       # When not using gcc, we currently assume that we are using
9969       # Microsoft Visual C++.
9970       # hardcode_libdir_flag_spec is actually meaningless, as there is
9971       # no search path for DLLs.
9972       hardcode_libdir_flag_spec=' '
9973       allow_undefined_flag=unsupported
9974       # Tell ltmain to make .lib files, not .a files.
9975       libext=lib
9976       # Tell ltmain to make .dll files, not .so files.
9977       shrext_cmds=".dll"
9978       # FIXME: Setting linknames here is a bad hack.
9979       archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9980       # The linker will automatically build a .lib file if we build a DLL.
9981       old_archive_from_new_cmds='true'
9982       # FIXME: Should let the user specify the lib program.
9983       old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9984       fix_srcfile_path='`cygpath -w "$srcfile"`'
9985       enable_shared_with_static_runtimes=yes
9986       ;;
9987
9988     darwin* | rhapsody*)
9989
9990
9991   archive_cmds_need_lc=no
9992   hardcode_direct=no
9993   hardcode_automatic=yes
9994   hardcode_shlibpath_var=unsupported
9995   if test "$lt_cv_ld_force_load" = "yes"; then
9996     whole_archive_flag_spec='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9997   else
9998     whole_archive_flag_spec=''
9999   fi
10000   link_all_deplibs=yes
10001   allow_undefined_flag="$_lt_dar_allow_undefined"
10002   case $cc_basename in
10003      ifort*) _lt_dar_can_shared=yes ;;
10004      *) _lt_dar_can_shared=$GCC ;;
10005   esac
10006   if test "$_lt_dar_can_shared" = "yes"; then
10007     output_verbose_link_cmd=func_echo_all
10008     archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10009     module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10010     archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10011     module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
10012
10013   else
10014   ld_shlibs=no
10015   fi
10016
10017       ;;
10018
10019     dgux*)
10020       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10021       hardcode_libdir_flag_spec='-L$libdir'
10022       hardcode_shlibpath_var=no
10023       ;;
10024
10025     # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10026     # support.  Future versions do this automatically, but an explicit c++rt0.o
10027     # does not break anything, and helps significantly (at the cost of a little
10028     # extra space).
10029     freebsd2.2*)
10030       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10031       hardcode_libdir_flag_spec='-R$libdir'
10032       hardcode_direct=yes
10033       hardcode_shlibpath_var=no
10034       ;;
10035
10036     # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10037     freebsd2.*)
10038       archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10039       hardcode_direct=yes
10040       hardcode_minus_L=yes
10041       hardcode_shlibpath_var=no
10042       ;;
10043
10044     # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10045     freebsd* | dragonfly*)
10046       archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10047       hardcode_libdir_flag_spec='-R$libdir'
10048       hardcode_direct=yes
10049       hardcode_shlibpath_var=no
10050       ;;
10051
10052     hpux9*)
10053       if test "$GCC" = yes; then
10054         archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10055       else
10056         archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
10057       fi
10058       hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10059       hardcode_libdir_separator=:
10060       hardcode_direct=yes
10061
10062       # hardcode_minus_L: Not really in the search PATH,
10063       # but as the default location of the library.
10064       hardcode_minus_L=yes
10065       export_dynamic_flag_spec='${wl}-E'
10066       ;;
10067
10068     hpux10*)
10069       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10070         archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10071       else
10072         archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10073       fi
10074       if test "$with_gnu_ld" = no; then
10075         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10076         hardcode_libdir_flag_spec_ld='+b $libdir'
10077         hardcode_libdir_separator=:
10078         hardcode_direct=yes
10079         hardcode_direct_absolute=yes
10080         export_dynamic_flag_spec='${wl}-E'
10081         # hardcode_minus_L: Not really in the search PATH,
10082         # but as the default location of the library.
10083         hardcode_minus_L=yes
10084       fi
10085       ;;
10086
10087     hpux11*)
10088       if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10089         case $host_cpu in
10090         hppa*64*)
10091           archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10092           ;;
10093         ia64*)
10094           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10095           ;;
10096         *)
10097           archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10098           ;;
10099         esac
10100       else
10101         case $host_cpu in
10102         hppa*64*)
10103           archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10104           ;;
10105         ia64*)
10106           archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10107           ;;
10108         *)
10109
10110           # Older versions of the 11.00 compiler do not understand -b yet
10111           # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10112           { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10113 $as_echo_n "checking if $CC understands -b... " >&6; }
10114 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10115   $as_echo_n "(cached) " >&6
10116 else
10117   lt_cv_prog_compiler__b=no
10118    save_LDFLAGS="$LDFLAGS"
10119    LDFLAGS="$LDFLAGS -b"
10120    echo "$lt_simple_link_test_code" > conftest.$ac_ext
10121    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10122      # The linker can only warn and ignore the option if not recognized
10123      # So say no if there are warnings
10124      if test -s conftest.err; then
10125        # Append any errors to the config.log.
10126        cat conftest.err 1>&5
10127        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10128        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10129        if diff conftest.exp conftest.er2 >/dev/null; then
10130          lt_cv_prog_compiler__b=yes
10131        fi
10132      else
10133        lt_cv_prog_compiler__b=yes
10134      fi
10135    fi
10136    $RM -r conftest*
10137    LDFLAGS="$save_LDFLAGS"
10138
10139 fi
10140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10141 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10142
10143 if test x"$lt_cv_prog_compiler__b" = xyes; then
10144     archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10145 else
10146     archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10147 fi
10148
10149           ;;
10150         esac
10151       fi
10152       if test "$with_gnu_ld" = no; then
10153         hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10154         hardcode_libdir_separator=:
10155
10156         case $host_cpu in
10157         hppa*64*|ia64*)
10158           hardcode_direct=no
10159           hardcode_shlibpath_var=no
10160           ;;
10161         *)
10162           hardcode_direct=yes
10163           hardcode_direct_absolute=yes
10164           export_dynamic_flag_spec='${wl}-E'
10165
10166           # hardcode_minus_L: Not really in the search PATH,
10167           # but as the default location of the library.
10168           hardcode_minus_L=yes
10169           ;;
10170         esac
10171       fi
10172       ;;
10173
10174     irix5* | irix6* | nonstopux*)
10175       if test "$GCC" = yes; then
10176         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10177         # Try to use the -exported_symbol ld option, if it does not
10178         # work, assume that -exports_file does not work either and
10179         # implicitly export all symbols.
10180         save_LDFLAGS="$LDFLAGS"
10181         LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10182         if test x$gcc_no_link = xyes; then
10183   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10184 fi
10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10186 /* end confdefs.h.  */
10187 int foo(void) {}
10188 _ACEOF
10189 if ac_fn_c_try_link "$LINENO"; then :
10190   archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
10191
10192 fi
10193 rm -f core conftest.err conftest.$ac_objext \
10194     conftest$ac_exeext conftest.$ac_ext
10195         LDFLAGS="$save_LDFLAGS"
10196       else
10197         archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10198         archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
10199       fi
10200       archive_cmds_need_lc='no'
10201       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10202       hardcode_libdir_separator=:
10203       inherit_rpath=yes
10204       link_all_deplibs=yes
10205       ;;
10206
10207     netbsd*)
10208       if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10209         archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
10210       else
10211         archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
10212       fi
10213       hardcode_libdir_flag_spec='-R$libdir'
10214       hardcode_direct=yes
10215       hardcode_shlibpath_var=no
10216       ;;
10217
10218     newsos6)
10219       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10220       hardcode_direct=yes
10221       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10222       hardcode_libdir_separator=:
10223       hardcode_shlibpath_var=no
10224       ;;
10225
10226     *nto* | *qnx*)
10227       ;;
10228
10229     openbsd*)
10230       if test -f /usr/libexec/ld.so; then
10231         hardcode_direct=yes
10232         hardcode_shlibpath_var=no
10233         hardcode_direct_absolute=yes
10234         if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10235           archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10236           archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10237           hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10238           export_dynamic_flag_spec='${wl}-E'
10239         else
10240           case $host_os in
10241            openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10242              archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10243              hardcode_libdir_flag_spec='-R$libdir'
10244              ;;
10245            *)
10246              archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10247              hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10248              ;;
10249           esac
10250         fi
10251       else
10252         ld_shlibs=no
10253       fi
10254       ;;
10255
10256     os2*)
10257       hardcode_libdir_flag_spec='-L$libdir'
10258       hardcode_minus_L=yes
10259       allow_undefined_flag=unsupported
10260       archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10261       old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10262       ;;
10263
10264     osf3*)
10265       if test "$GCC" = yes; then
10266         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10267         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10268       else
10269         allow_undefined_flag=' -expect_unresolved \*'
10270         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10271       fi
10272       archive_cmds_need_lc='no'
10273       hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10274       hardcode_libdir_separator=:
10275       ;;
10276
10277     osf4* | osf5*)      # as osf3* with the addition of -msym flag
10278       if test "$GCC" = yes; then
10279         allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10280         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10281         hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10282       else
10283         allow_undefined_flag=' -expect_unresolved \*'
10284         archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10285         archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10286         $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10287
10288         # Both c and cxx compiler support -rpath directly
10289         hardcode_libdir_flag_spec='-rpath $libdir'
10290       fi
10291       archive_cmds_need_lc='no'
10292       hardcode_libdir_separator=:
10293       ;;
10294
10295     solaris*)
10296       no_undefined_flag=' -z defs'
10297       if test "$GCC" = yes; then
10298         wlarc='${wl}'
10299         archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10300         archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10301           $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10302       else
10303         case `$CC -V 2>&1` in
10304         *"Compilers 5.0"*)
10305           wlarc=''
10306           archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10307           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10308           $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10309           ;;
10310         *)
10311           wlarc='${wl}'
10312           archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10313           archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10314           $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10315           ;;
10316         esac
10317       fi
10318       hardcode_libdir_flag_spec='-R$libdir'
10319       hardcode_shlibpath_var=no
10320       case $host_os in
10321       solaris2.[0-5] | solaris2.[0-5].*) ;;
10322       *)
10323         # The compiler driver will combine and reorder linker options,
10324         # but understands `-z linker_flag'.  GCC discards it without `$wl',
10325         # but is careful enough not to reorder.
10326         # Supported since Solaris 2.6 (maybe 2.5.1?)
10327         if test "$GCC" = yes; then
10328           whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10329         else
10330           whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10331         fi
10332         ;;
10333       esac
10334       link_all_deplibs=yes
10335       ;;
10336
10337     sunos4*)
10338       if test "x$host_vendor" = xsequent; then
10339         # Use $CC to link under sequent, because it throws in some extra .o
10340         # files that make .init and .fini sections work.
10341         archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10342       else
10343         archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10344       fi
10345       hardcode_libdir_flag_spec='-L$libdir'
10346       hardcode_direct=yes
10347       hardcode_minus_L=yes
10348       hardcode_shlibpath_var=no
10349       ;;
10350
10351     sysv4)
10352       case $host_vendor in
10353         sni)
10354           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10355           hardcode_direct=yes # is this really true???
10356         ;;
10357         siemens)
10358           ## LD is ld it makes a PLAMLIB
10359           ## CC just makes a GrossModule.
10360           archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10361           reload_cmds='$CC -r -o $output$reload_objs'
10362           hardcode_direct=no
10363         ;;
10364         motorola)
10365           archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10366           hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10367         ;;
10368       esac
10369       runpath_var='LD_RUN_PATH'
10370       hardcode_shlibpath_var=no
10371       ;;
10372
10373     sysv4.3*)
10374       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10375       hardcode_shlibpath_var=no
10376       export_dynamic_flag_spec='-Bexport'
10377       ;;
10378
10379     sysv4*MP*)
10380       if test -d /usr/nec; then
10381         archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10382         hardcode_shlibpath_var=no
10383         runpath_var=LD_RUN_PATH
10384         hardcode_runpath_var=yes
10385         ld_shlibs=yes
10386       fi
10387       ;;
10388
10389     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10390       no_undefined_flag='${wl}-z,text'
10391       archive_cmds_need_lc=no
10392       hardcode_shlibpath_var=no
10393       runpath_var='LD_RUN_PATH'
10394
10395       if test "$GCC" = yes; then
10396         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10397         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10398       else
10399         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10400         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10401       fi
10402       ;;
10403
10404     sysv5* | sco3.2v5* | sco5v6*)
10405       # Note: We can NOT use -z defs as we might desire, because we do not
10406       # link with -lc, and that would cause any symbols used from libc to
10407       # always be unresolved, which means just about no library would
10408       # ever link correctly.  If we're not using GNU ld we use -z text
10409       # though, which does catch some bad symbols but isn't as heavy-handed
10410       # as -z defs.
10411       no_undefined_flag='${wl}-z,text'
10412       allow_undefined_flag='${wl}-z,nodefs'
10413       archive_cmds_need_lc=no
10414       hardcode_shlibpath_var=no
10415       hardcode_libdir_flag_spec='${wl}-R,$libdir'
10416       hardcode_libdir_separator=':'
10417       link_all_deplibs=yes
10418       export_dynamic_flag_spec='${wl}-Bexport'
10419       runpath_var='LD_RUN_PATH'
10420
10421       if test "$GCC" = yes; then
10422         archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10423         archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10424       else
10425         archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10426         archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10427       fi
10428       ;;
10429
10430     uts4*)
10431       archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10432       hardcode_libdir_flag_spec='-L$libdir'
10433       hardcode_shlibpath_var=no
10434       ;;
10435
10436     *)
10437       ld_shlibs=no
10438       ;;
10439     esac
10440
10441     if test x$host_vendor = xsni; then
10442       case $host in
10443       sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10444         export_dynamic_flag_spec='${wl}-Blargedynsym'
10445         ;;
10446       esac
10447     fi
10448   fi
10449
10450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10451 $as_echo "$ld_shlibs" >&6; }
10452 test "$ld_shlibs" = no && can_build_shared=no
10453
10454 with_gnu_ld=$with_gnu_ld
10455
10456
10457
10458
10459
10460
10461
10462
10463
10464
10465
10466
10467
10468
10469
10470 #
10471 # Do we need to explicitly link libc?
10472 #
10473 case "x$archive_cmds_need_lc" in
10474 x|xyes)
10475   # Assume -lc should be added
10476   archive_cmds_need_lc=yes
10477
10478   if test "$enable_shared" = yes && test "$GCC" = yes; then
10479     case $archive_cmds in
10480     *'~'*)
10481       # FIXME: we may have to deal with multi-command sequences.
10482       ;;
10483     '$CC '*)
10484       # Test whether the compiler implicitly links with -lc since on some
10485       # systems, -lgcc has to come before -lc. If gcc already passes -lc
10486       # to ld, don't add -lc before -lgcc.
10487       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10488 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10489 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10490   $as_echo_n "(cached) " >&6
10491 else
10492   $RM conftest*
10493         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10494
10495         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10496   (eval $ac_compile) 2>&5
10497   ac_status=$?
10498   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10499   test $ac_status = 0; } 2>conftest.err; then
10500           soname=conftest
10501           lib=conftest
10502           libobjs=conftest.$ac_objext
10503           deplibs=
10504           wl=$lt_prog_compiler_wl
10505           pic_flag=$lt_prog_compiler_pic
10506           compiler_flags=-v
10507           linker_flags=-v
10508           verstring=
10509           output_objdir=.
10510           libname=conftest
10511           lt_save_allow_undefined_flag=$allow_undefined_flag
10512           allow_undefined_flag=
10513           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10514   (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10515   ac_status=$?
10516   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10517   test $ac_status = 0; }
10518           then
10519             lt_cv_archive_cmds_need_lc=no
10520           else
10521             lt_cv_archive_cmds_need_lc=yes
10522           fi
10523           allow_undefined_flag=$lt_save_allow_undefined_flag
10524         else
10525           cat conftest.err 1>&5
10526         fi
10527         $RM conftest*
10528
10529 fi
10530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10531 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10532       archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10533       ;;
10534     esac
10535   fi
10536   ;;
10537 esac
10538
10539
10540
10541
10542
10543
10544
10545
10546
10547
10548
10549
10550
10551
10552
10553
10554
10555
10556
10557
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567
10568
10569
10570
10571
10572
10573
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583
10584
10585
10586
10587
10588
10589
10590
10591
10592
10593
10594
10595
10596
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612
10613
10614
10615
10616
10617
10618
10619
10620
10621
10622
10623
10624
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659
10660
10661
10662
10663
10664
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695   { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10696 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10697
10698 if test "$GCC" = yes; then
10699   case $host_os in
10700     darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10701     *) lt_awk_arg="/^libraries:/" ;;
10702   esac
10703   case $host_os in
10704     mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10705     *) lt_sed_strip_eq="s,=/,/,g" ;;
10706   esac
10707   lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10708   case $lt_search_path_spec in
10709   *\;*)
10710     # if the path contains ";" then we assume it to be the separator
10711     # otherwise default to the standard path separator (i.e. ":") - it is
10712     # assumed that no part of a normal pathname contains ";" but that should
10713     # okay in the real world where ";" in dirpaths is itself problematic.
10714     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10715     ;;
10716   *)
10717     lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10718     ;;
10719   esac
10720   # Ok, now we have the path, separated by spaces, we can step through it
10721   # and add multilib dir if necessary.
10722   lt_tmp_lt_search_path_spec=
10723   lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10724   for lt_sys_path in $lt_search_path_spec; do
10725     if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10726       lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10727     else
10728       test -d "$lt_sys_path" && \
10729         lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10730     fi
10731   done
10732   lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10733 BEGIN {RS=" "; FS="/|\n";} {
10734   lt_foo="";
10735   lt_count=0;
10736   for (lt_i = NF; lt_i > 0; lt_i--) {
10737     if ($lt_i != "" && $lt_i != ".") {
10738       if ($lt_i == "..") {
10739         lt_count++;
10740       } else {
10741         if (lt_count == 0) {
10742           lt_foo="/" $lt_i lt_foo;
10743         } else {
10744           lt_count--;
10745         }
10746       }
10747     }
10748   }
10749   if (lt_foo != "") { lt_freq[lt_foo]++; }
10750   if (lt_freq[lt_foo] == 1) { print lt_foo; }
10751 }'`
10752   # AWK program above erroneously prepends '/' to C:/dos/paths
10753   # for these hosts.
10754   case $host_os in
10755     mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10756       $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10757   esac
10758   sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10759 else
10760   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10761 fi
10762 library_names_spec=
10763 libname_spec='lib$name'
10764 soname_spec=
10765 shrext_cmds=".so"
10766 postinstall_cmds=
10767 postuninstall_cmds=
10768 finish_cmds=
10769 finish_eval=
10770 shlibpath_var=
10771 shlibpath_overrides_runpath=unknown
10772 version_type=none
10773 dynamic_linker="$host_os ld.so"
10774 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10775 need_lib_prefix=unknown
10776 hardcode_into_libs=no
10777
10778 # when you set need_version to no, make sure it does not cause -set_version
10779 # flags to be left without arguments
10780 need_version=unknown
10781
10782 case $host_os in
10783 aix3*)
10784   version_type=linux
10785   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10786   shlibpath_var=LIBPATH
10787
10788   # AIX 3 has no versioning support, so we append a major version to the name.
10789   soname_spec='${libname}${release}${shared_ext}$major'
10790   ;;
10791
10792 aix[4-9]*)
10793   version_type=linux
10794   need_lib_prefix=no
10795   need_version=no
10796   hardcode_into_libs=yes
10797   if test "$host_cpu" = ia64; then
10798     # AIX 5 supports IA64
10799     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10800     shlibpath_var=LD_LIBRARY_PATH
10801   else
10802     # With GCC up to 2.95.x, collect2 would create an import file
10803     # for dependence libraries.  The import file would start with
10804     # the line `#! .'.  This would cause the generated library to
10805     # depend on `.', always an invalid library.  This was fixed in
10806     # development snapshots of GCC prior to 3.0.
10807     case $host_os in
10808       aix4 | aix4.[01] | aix4.[01].*)
10809       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10810            echo ' yes '
10811            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10812         :
10813       else
10814         can_build_shared=no
10815       fi
10816       ;;
10817     esac
10818     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10819     # soname into executable. Probably we can add versioning support to
10820     # collect2, so additional links can be useful in future.
10821     if test "$aix_use_runtimelinking" = yes; then
10822       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10823       # instead of lib<name>.a to let people know that these are not
10824       # typical AIX shared libraries.
10825       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10826     else
10827       # We preserve .a as extension for shared libraries through AIX4.2
10828       # and later when we are not doing run time linking.
10829       library_names_spec='${libname}${release}.a $libname.a'
10830       soname_spec='${libname}${release}${shared_ext}$major'
10831     fi
10832     shlibpath_var=LIBPATH
10833   fi
10834   ;;
10835
10836 amigaos*)
10837   case $host_cpu in
10838   powerpc)
10839     # Since July 2007 AmigaOS4 officially supports .so libraries.
10840     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10841     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10842     ;;
10843   m68k)
10844     library_names_spec='$libname.ixlibrary $libname.a'
10845     # Create ${libname}_ixlibrary.a entries in /sys/libs.
10846     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10847     ;;
10848   esac
10849   ;;
10850
10851 beos*)
10852   library_names_spec='${libname}${shared_ext}'
10853   dynamic_linker="$host_os ld.so"
10854   shlibpath_var=LIBRARY_PATH
10855   ;;
10856
10857 bsdi[45]*)
10858   version_type=linux
10859   need_version=no
10860   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10861   soname_spec='${libname}${release}${shared_ext}$major'
10862   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10863   shlibpath_var=LD_LIBRARY_PATH
10864   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10865   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10866   # the default ld.so.conf also contains /usr/contrib/lib and
10867   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10868   # libtool to hard-code these into programs
10869   ;;
10870
10871 cygwin* | mingw* | pw32* | cegcc*)
10872   version_type=windows
10873   shrext_cmds=".dll"
10874   need_version=no
10875   need_lib_prefix=no
10876
10877   case $GCC,$host_os in
10878   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10879     library_names_spec='$libname.dll.a'
10880     # DLL is installed to $(libdir)/../bin by postinstall_cmds
10881     postinstall_cmds='base_file=`basename \${file}`~
10882       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10883       dldir=$destdir/`dirname \$dlpath`~
10884       test -d \$dldir || mkdir -p \$dldir~
10885       $install_prog $dir/$dlname \$dldir/$dlname~
10886       chmod a+x \$dldir/$dlname~
10887       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10888         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10889       fi'
10890     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10891       dlpath=$dir/\$dldll~
10892        $RM \$dlpath'
10893     shlibpath_overrides_runpath=yes
10894
10895     case $host_os in
10896     cygwin*)
10897       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10898       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10899
10900       sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10901       ;;
10902     mingw* | cegcc*)
10903       # MinGW DLLs use traditional 'lib' prefix
10904       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10905       ;;
10906     pw32*)
10907       # pw32 DLLs use 'pw' prefix rather than 'lib'
10908       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10909       ;;
10910     esac
10911     ;;
10912
10913   *)
10914     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10915     ;;
10916   esac
10917   dynamic_linker='Win32 ld.exe'
10918   # FIXME: first we should search . and the directory the executable is in
10919   shlibpath_var=PATH
10920   ;;
10921
10922 darwin* | rhapsody*)
10923   dynamic_linker="$host_os dyld"
10924   version_type=darwin
10925   need_lib_prefix=no
10926   need_version=no
10927   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10928   soname_spec='${libname}${release}${major}$shared_ext'
10929   shlibpath_overrides_runpath=yes
10930   shlibpath_var=DYLD_LIBRARY_PATH
10931   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10932
10933   sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10934   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10935   ;;
10936
10937 dgux*)
10938   version_type=linux
10939   need_lib_prefix=no
10940   need_version=no
10941   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10942   soname_spec='${libname}${release}${shared_ext}$major'
10943   shlibpath_var=LD_LIBRARY_PATH
10944   ;;
10945
10946 freebsd* | dragonfly*)
10947   # DragonFly does not have aout.  When/if they implement a new
10948   # versioning mechanism, adjust this.
10949   if test -x /usr/bin/objformat; then
10950     objformat=`/usr/bin/objformat`
10951   else
10952     case $host_os in
10953     freebsd[23].*) objformat=aout ;;
10954     *) objformat=elf ;;
10955     esac
10956   fi
10957   version_type=freebsd-$objformat
10958   case $version_type in
10959     freebsd-elf*)
10960       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10961       need_version=no
10962       need_lib_prefix=no
10963       ;;
10964     freebsd-*)
10965       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10966       need_version=yes
10967       ;;
10968   esac
10969   shlibpath_var=LD_LIBRARY_PATH
10970   case $host_os in
10971   freebsd2.*)
10972     shlibpath_overrides_runpath=yes
10973     ;;
10974   freebsd3.[01]* | freebsdelf3.[01]*)
10975     shlibpath_overrides_runpath=yes
10976     hardcode_into_libs=yes
10977     ;;
10978   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10979   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10980     shlibpath_overrides_runpath=no
10981     hardcode_into_libs=yes
10982     ;;
10983   *) # from 4.6 on, and DragonFly
10984     shlibpath_overrides_runpath=yes
10985     hardcode_into_libs=yes
10986     ;;
10987   esac
10988   ;;
10989
10990 gnu*)
10991   version_type=linux
10992   need_lib_prefix=no
10993   need_version=no
10994   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10995   soname_spec='${libname}${release}${shared_ext}$major'
10996   shlibpath_var=LD_LIBRARY_PATH
10997   hardcode_into_libs=yes
10998   ;;
10999
11000 haiku*)
11001   version_type=linux
11002   need_lib_prefix=no
11003   need_version=no
11004   dynamic_linker="$host_os runtime_loader"
11005   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11006   soname_spec='${libname}${release}${shared_ext}$major'
11007   shlibpath_var=LIBRARY_PATH
11008   shlibpath_overrides_runpath=yes
11009   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11010   hardcode_into_libs=yes
11011   ;;
11012
11013 hpux9* | hpux10* | hpux11*)
11014   # Give a soname corresponding to the major version so that dld.sl refuses to
11015   # link against other versions.
11016   version_type=sunos
11017   need_lib_prefix=no
11018   need_version=no
11019   case $host_cpu in
11020   ia64*)
11021     shrext_cmds='.so'
11022     hardcode_into_libs=yes
11023     dynamic_linker="$host_os dld.so"
11024     shlibpath_var=LD_LIBRARY_PATH
11025     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11026     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11027     soname_spec='${libname}${release}${shared_ext}$major'
11028     if test "X$HPUX_IA64_MODE" = X32; then
11029       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11030     else
11031       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11032     fi
11033     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11034     ;;
11035   hppa*64*)
11036     shrext_cmds='.sl'
11037     hardcode_into_libs=yes
11038     dynamic_linker="$host_os dld.sl"
11039     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11040     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11041     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11042     soname_spec='${libname}${release}${shared_ext}$major'
11043     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11044     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11045     ;;
11046   *)
11047     shrext_cmds='.sl'
11048     dynamic_linker="$host_os dld.sl"
11049     shlibpath_var=SHLIB_PATH
11050     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11051     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11052     soname_spec='${libname}${release}${shared_ext}$major'
11053     ;;
11054   esac
11055   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11056   postinstall_cmds='chmod 555 $lib'
11057   # or fails outright, so override atomically:
11058   install_override_mode=555
11059   ;;
11060
11061 interix[3-9]*)
11062   version_type=linux
11063   need_lib_prefix=no
11064   need_version=no
11065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11066   soname_spec='${libname}${release}${shared_ext}$major'
11067   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11068   shlibpath_var=LD_LIBRARY_PATH
11069   shlibpath_overrides_runpath=no
11070   hardcode_into_libs=yes
11071   ;;
11072
11073 irix5* | irix6* | nonstopux*)
11074   case $host_os in
11075     nonstopux*) version_type=nonstopux ;;
11076     *)
11077         if test "$lt_cv_prog_gnu_ld" = yes; then
11078                 version_type=linux
11079         else
11080                 version_type=irix
11081         fi ;;
11082   esac
11083   need_lib_prefix=no
11084   need_version=no
11085   soname_spec='${libname}${release}${shared_ext}$major'
11086   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11087   case $host_os in
11088   irix5* | nonstopux*)
11089     libsuff= shlibsuff=
11090     ;;
11091   *)
11092     case $LD in # libtool.m4 will add one of these switches to LD
11093     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11094       libsuff= shlibsuff= libmagic=32-bit;;
11095     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11096       libsuff=32 shlibsuff=N32 libmagic=N32;;
11097     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11098       libsuff=64 shlibsuff=64 libmagic=64-bit;;
11099     *) libsuff= shlibsuff= libmagic=never-match;;
11100     esac
11101     ;;
11102   esac
11103   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11104   shlibpath_overrides_runpath=no
11105   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11106   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11107   hardcode_into_libs=yes
11108   ;;
11109
11110 # No shared lib support for Linux oldld, aout, or coff.
11111 linux*oldld* | linux*aout* | linux*coff*)
11112   dynamic_linker=no
11113   ;;
11114
11115 # This must be Linux ELF.
11116 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11117   version_type=linux
11118   need_lib_prefix=no
11119   need_version=no
11120   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11121   soname_spec='${libname}${release}${shared_ext}$major'
11122   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11123   shlibpath_var=LD_LIBRARY_PATH
11124   shlibpath_overrides_runpath=no
11125
11126   # Some binutils ld are patched to set DT_RUNPATH
11127   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11128   $as_echo_n "(cached) " >&6
11129 else
11130   lt_cv_shlibpath_overrides_runpath=no
11131     save_LDFLAGS=$LDFLAGS
11132     save_libdir=$libdir
11133     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11134          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11135     if test x$gcc_no_link = xyes; then
11136   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11137 fi
11138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11139 /* end confdefs.h.  */
11140
11141 int
11142 main ()
11143 {
11144
11145   ;
11146   return 0;
11147 }
11148 _ACEOF
11149 if ac_fn_c_try_link "$LINENO"; then :
11150   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11151   lt_cv_shlibpath_overrides_runpath=yes
11152 fi
11153 fi
11154 rm -f core conftest.err conftest.$ac_objext \
11155     conftest$ac_exeext conftest.$ac_ext
11156     LDFLAGS=$save_LDFLAGS
11157     libdir=$save_libdir
11158
11159 fi
11160
11161   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11162
11163   # This implies no fast_install, which is unacceptable.
11164   # Some rework will be needed to allow for fast_install
11165   # before this can be enabled.
11166   hardcode_into_libs=yes
11167
11168   # Append ld.so.conf contents to the search path
11169   if test -f /etc/ld.so.conf; then
11170     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
11171     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11172   fi
11173
11174   # We used to test for /lib/ld.so.1 and disable shared libraries on
11175   # powerpc, because MkLinux only supported shared libraries with the
11176   # GNU dynamic linker.  Since this was broken with cross compilers,
11177   # most powerpc-linux boxes support dynamic linking these days and
11178   # people can always --disable-shared, the test was removed, and we
11179   # assume the GNU/Linux dynamic linker is in use.
11180   dynamic_linker='GNU/Linux ld.so'
11181   ;;
11182
11183 netbsd*)
11184   version_type=sunos
11185   need_lib_prefix=no
11186   need_version=no
11187   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11188     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11189     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11190     dynamic_linker='NetBSD (a.out) ld.so'
11191   else
11192     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11193     soname_spec='${libname}${release}${shared_ext}$major'
11194     dynamic_linker='NetBSD ld.elf_so'
11195   fi
11196   shlibpath_var=LD_LIBRARY_PATH
11197   shlibpath_overrides_runpath=yes
11198   hardcode_into_libs=yes
11199   ;;
11200
11201 newsos6)
11202   version_type=linux
11203   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11204   shlibpath_var=LD_LIBRARY_PATH
11205   shlibpath_overrides_runpath=yes
11206   ;;
11207
11208 *nto* | *qnx*)
11209   version_type=qnx
11210   need_lib_prefix=no
11211   need_version=no
11212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11213   soname_spec='${libname}${release}${shared_ext}$major'
11214   shlibpath_var=LD_LIBRARY_PATH
11215   shlibpath_overrides_runpath=no
11216   hardcode_into_libs=yes
11217   dynamic_linker='ldqnx.so'
11218   ;;
11219
11220 openbsd*)
11221   version_type=sunos
11222   sys_lib_dlsearch_path_spec="/usr/lib"
11223   need_lib_prefix=no
11224   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11225   case $host_os in
11226     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
11227     *)                          need_version=no  ;;
11228   esac
11229   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11230   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11231   shlibpath_var=LD_LIBRARY_PATH
11232   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11233     case $host_os in
11234       openbsd2.[89] | openbsd2.[89].*)
11235         shlibpath_overrides_runpath=no
11236         ;;
11237       *)
11238         shlibpath_overrides_runpath=yes
11239         ;;
11240       esac
11241   else
11242     shlibpath_overrides_runpath=yes
11243   fi
11244   ;;
11245
11246 os2*)
11247   libname_spec='$name'
11248   shrext_cmds=".dll"
11249   need_lib_prefix=no
11250   library_names_spec='$libname${shared_ext} $libname.a'
11251   dynamic_linker='OS/2 ld.exe'
11252   shlibpath_var=LIBPATH
11253   ;;
11254
11255 osf3* | osf4* | osf5*)
11256   version_type=osf
11257   need_lib_prefix=no
11258   need_version=no
11259   soname_spec='${libname}${release}${shared_ext}$major'
11260   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11261   shlibpath_var=LD_LIBRARY_PATH
11262   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11263   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11264   ;;
11265
11266 rdos*)
11267   dynamic_linker=no
11268   ;;
11269
11270 solaris*)
11271   version_type=linux
11272   need_lib_prefix=no
11273   need_version=no
11274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11275   soname_spec='${libname}${release}${shared_ext}$major'
11276   shlibpath_var=LD_LIBRARY_PATH
11277   shlibpath_overrides_runpath=yes
11278   hardcode_into_libs=yes
11279   # ldd complains unless libraries are executable
11280   postinstall_cmds='chmod +x $lib'
11281   ;;
11282
11283 sunos4*)
11284   version_type=sunos
11285   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11286   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11287   shlibpath_var=LD_LIBRARY_PATH
11288   shlibpath_overrides_runpath=yes
11289   if test "$with_gnu_ld" = yes; then
11290     need_lib_prefix=no
11291   fi
11292   need_version=yes
11293   ;;
11294
11295 sysv4 | sysv4.3*)
11296   version_type=linux
11297   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11298   soname_spec='${libname}${release}${shared_ext}$major'
11299   shlibpath_var=LD_LIBRARY_PATH
11300   case $host_vendor in
11301     sni)
11302       shlibpath_overrides_runpath=no
11303       need_lib_prefix=no
11304       runpath_var=LD_RUN_PATH
11305       ;;
11306     siemens)
11307       need_lib_prefix=no
11308       ;;
11309     motorola)
11310       need_lib_prefix=no
11311       need_version=no
11312       shlibpath_overrides_runpath=no
11313       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11314       ;;
11315   esac
11316   ;;
11317
11318 sysv4*MP*)
11319   if test -d /usr/nec ;then
11320     version_type=linux
11321     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11322     soname_spec='$libname${shared_ext}.$major'
11323     shlibpath_var=LD_LIBRARY_PATH
11324   fi
11325   ;;
11326
11327 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11328   version_type=freebsd-elf
11329   need_lib_prefix=no
11330   need_version=no
11331   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11332   soname_spec='${libname}${release}${shared_ext}$major'
11333   shlibpath_var=LD_LIBRARY_PATH
11334   shlibpath_overrides_runpath=yes
11335   hardcode_into_libs=yes
11336   if test "$with_gnu_ld" = yes; then
11337     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11338   else
11339     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11340     case $host_os in
11341       sco3.2v5*)
11342         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11343         ;;
11344     esac
11345   fi
11346   sys_lib_dlsearch_path_spec='/usr/lib'
11347   ;;
11348
11349 tpf*)
11350   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11351   version_type=linux
11352   need_lib_prefix=no
11353   need_version=no
11354   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355   shlibpath_var=LD_LIBRARY_PATH
11356   shlibpath_overrides_runpath=no
11357   hardcode_into_libs=yes
11358   ;;
11359
11360 uts4*)
11361   version_type=linux
11362   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11363   soname_spec='${libname}${release}${shared_ext}$major'
11364   shlibpath_var=LD_LIBRARY_PATH
11365   ;;
11366
11367 *)
11368   dynamic_linker=no
11369   ;;
11370 esac
11371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11372 $as_echo "$dynamic_linker" >&6; }
11373 test "$dynamic_linker" = no && can_build_shared=no
11374
11375 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11376 if test "$GCC" = yes; then
11377   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11378 fi
11379
11380 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11381   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11382 fi
11383 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11384   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11385 fi
11386
11387
11388
11389
11390
11391
11392
11393
11394
11395
11396
11397
11398
11399
11400
11401
11402
11403
11404
11405
11406
11407
11408
11409
11410
11411
11412
11413
11414
11415
11416
11417
11418
11419
11420
11421
11422
11423
11424
11425
11426
11427
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439
11440
11441
11442
11443
11444
11445
11446
11447
11448
11449
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461
11462
11463
11464
11465
11466
11467
11468
11469
11470
11471
11472
11473
11474
11475
11476
11477
11478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11479 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11480 hardcode_action=
11481 if test -n "$hardcode_libdir_flag_spec" ||
11482    test -n "$runpath_var" ||
11483    test "X$hardcode_automatic" = "Xyes" ; then
11484
11485   # We can hardcode non-existent directories.
11486   if test "$hardcode_direct" != no &&
11487      # If the only mechanism to avoid hardcoding is shlibpath_var, we
11488      # have to relink, otherwise we might link with an installed library
11489      # when we should be linking with a yet-to-be-installed one
11490      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11491      test "$hardcode_minus_L" != no; then
11492     # Linking always hardcodes the temporary library directory.
11493     hardcode_action=relink
11494   else
11495     # We can link without hardcoding, and we can hardcode nonexisting dirs.
11496     hardcode_action=immediate
11497   fi
11498 else
11499   # We cannot hardcode anything, or else we can only hardcode existing
11500   # directories.
11501   hardcode_action=unsupported
11502 fi
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11504 $as_echo "$hardcode_action" >&6; }
11505
11506 if test "$hardcode_action" = relink ||
11507    test "$inherit_rpath" = yes; then
11508   # Fast installation is not supported
11509   enable_fast_install=no
11510 elif test "$shlibpath_overrides_runpath" = yes ||
11511      test "$enable_shared" = no; then
11512   # Fast installation is not necessary
11513   enable_fast_install=needless
11514 fi
11515
11516
11517
11518
11519
11520
11521   if test "x$enable_dlopen" != xyes; then
11522   enable_dlopen=unknown
11523   enable_dlopen_self=unknown
11524   enable_dlopen_self_static=unknown
11525 else
11526   lt_cv_dlopen=no
11527   lt_cv_dlopen_libs=
11528
11529   case $host_os in
11530   beos*)
11531     lt_cv_dlopen="load_add_on"
11532     lt_cv_dlopen_libs=
11533     lt_cv_dlopen_self=yes
11534     ;;
11535
11536   mingw* | pw32* | cegcc*)
11537     lt_cv_dlopen="LoadLibrary"
11538     lt_cv_dlopen_libs=
11539     ;;
11540
11541   cygwin*)
11542     lt_cv_dlopen="dlopen"
11543     lt_cv_dlopen_libs=
11544     ;;
11545
11546   darwin*)
11547   # if libdl is installed we need to link against it
11548     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11549 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11550 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11551   $as_echo_n "(cached) " >&6
11552 else
11553   ac_check_lib_save_LIBS=$LIBS
11554 LIBS="-ldl  $LIBS"
11555 if test x$gcc_no_link = xyes; then
11556   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11557 fi
11558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11559 /* end confdefs.h.  */
11560
11561 /* Override any GCC internal prototype to avoid an error.
11562    Use char because int might match the return type of a GCC
11563    builtin and then its argument prototype would still apply.  */
11564 #ifdef __cplusplus
11565 extern "C"
11566 #endif
11567 char dlopen ();
11568 int
11569 main ()
11570 {
11571 return dlopen ();
11572   ;
11573   return 0;
11574 }
11575 _ACEOF
11576 if ac_fn_c_try_link "$LINENO"; then :
11577   ac_cv_lib_dl_dlopen=yes
11578 else
11579   ac_cv_lib_dl_dlopen=no
11580 fi
11581 rm -f core conftest.err conftest.$ac_objext \
11582     conftest$ac_exeext conftest.$ac_ext
11583 LIBS=$ac_check_lib_save_LIBS
11584 fi
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11586 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11587 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11588   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11589 else
11590
11591     lt_cv_dlopen="dyld"
11592     lt_cv_dlopen_libs=
11593     lt_cv_dlopen_self=yes
11594
11595 fi
11596
11597     ;;
11598
11599   *)
11600     ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11601 if test "x$ac_cv_func_shl_load" = x""yes; then :
11602   lt_cv_dlopen="shl_load"
11603 else
11604   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11605 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11606 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11607   $as_echo_n "(cached) " >&6
11608 else
11609   ac_check_lib_save_LIBS=$LIBS
11610 LIBS="-ldld  $LIBS"
11611 if test x$gcc_no_link = xyes; then
11612   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11613 fi
11614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11615 /* end confdefs.h.  */
11616
11617 /* Override any GCC internal prototype to avoid an error.
11618    Use char because int might match the return type of a GCC
11619    builtin and then its argument prototype would still apply.  */
11620 #ifdef __cplusplus
11621 extern "C"
11622 #endif
11623 char shl_load ();
11624 int
11625 main ()
11626 {
11627 return shl_load ();
11628   ;
11629   return 0;
11630 }
11631 _ACEOF
11632 if ac_fn_c_try_link "$LINENO"; then :
11633   ac_cv_lib_dld_shl_load=yes
11634 else
11635   ac_cv_lib_dld_shl_load=no
11636 fi
11637 rm -f core conftest.err conftest.$ac_objext \
11638     conftest$ac_exeext conftest.$ac_ext
11639 LIBS=$ac_check_lib_save_LIBS
11640 fi
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11642 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11643 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11644   lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11645 else
11646   ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11647 if test "x$ac_cv_func_dlopen" = x""yes; then :
11648   lt_cv_dlopen="dlopen"
11649 else
11650   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11651 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11652 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11653   $as_echo_n "(cached) " >&6
11654 else
11655   ac_check_lib_save_LIBS=$LIBS
11656 LIBS="-ldl  $LIBS"
11657 if test x$gcc_no_link = xyes; then
11658   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11659 fi
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h.  */
11662
11663 /* Override any GCC internal prototype to avoid an error.
11664    Use char because int might match the return type of a GCC
11665    builtin and then its argument prototype would still apply.  */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char dlopen ();
11670 int
11671 main ()
11672 {
11673 return dlopen ();
11674   ;
11675   return 0;
11676 }
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679   ac_cv_lib_dl_dlopen=yes
11680 else
11681   ac_cv_lib_dl_dlopen=no
11682 fi
11683 rm -f core conftest.err conftest.$ac_objext \
11684     conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11686 fi
11687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11688 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11689 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11690   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11691 else
11692   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11693 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11694 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11695   $as_echo_n "(cached) " >&6
11696 else
11697   ac_check_lib_save_LIBS=$LIBS
11698 LIBS="-lsvld  $LIBS"
11699 if test x$gcc_no_link = xyes; then
11700   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11701 fi
11702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11703 /* end confdefs.h.  */
11704
11705 /* Override any GCC internal prototype to avoid an error.
11706    Use char because int might match the return type of a GCC
11707    builtin and then its argument prototype would still apply.  */
11708 #ifdef __cplusplus
11709 extern "C"
11710 #endif
11711 char dlopen ();
11712 int
11713 main ()
11714 {
11715 return dlopen ();
11716   ;
11717   return 0;
11718 }
11719 _ACEOF
11720 if ac_fn_c_try_link "$LINENO"; then :
11721   ac_cv_lib_svld_dlopen=yes
11722 else
11723   ac_cv_lib_svld_dlopen=no
11724 fi
11725 rm -f core conftest.err conftest.$ac_objext \
11726     conftest$ac_exeext conftest.$ac_ext
11727 LIBS=$ac_check_lib_save_LIBS
11728 fi
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11730 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11731 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11732   lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11733 else
11734   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11735 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11736 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11737   $as_echo_n "(cached) " >&6
11738 else
11739   ac_check_lib_save_LIBS=$LIBS
11740 LIBS="-ldld  $LIBS"
11741 if test x$gcc_no_link = xyes; then
11742   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11743 fi
11744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11745 /* end confdefs.h.  */
11746
11747 /* Override any GCC internal prototype to avoid an error.
11748    Use char because int might match the return type of a GCC
11749    builtin and then its argument prototype would still apply.  */
11750 #ifdef __cplusplus
11751 extern "C"
11752 #endif
11753 char dld_link ();
11754 int
11755 main ()
11756 {
11757 return dld_link ();
11758   ;
11759   return 0;
11760 }
11761 _ACEOF
11762 if ac_fn_c_try_link "$LINENO"; then :
11763   ac_cv_lib_dld_dld_link=yes
11764 else
11765   ac_cv_lib_dld_dld_link=no
11766 fi
11767 rm -f core conftest.err conftest.$ac_objext \
11768     conftest$ac_exeext conftest.$ac_ext
11769 LIBS=$ac_check_lib_save_LIBS
11770 fi
11771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11772 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11773 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11774   lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11775 fi
11776
11777
11778 fi
11779
11780
11781 fi
11782
11783
11784 fi
11785
11786
11787 fi
11788
11789
11790 fi
11791
11792     ;;
11793   esac
11794
11795   if test "x$lt_cv_dlopen" != xno; then
11796     enable_dlopen=yes
11797   else
11798     enable_dlopen=no
11799   fi
11800
11801   case $lt_cv_dlopen in
11802   dlopen)
11803     save_CPPFLAGS="$CPPFLAGS"
11804     test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11805
11806     save_LDFLAGS="$LDFLAGS"
11807     wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11808
11809     save_LIBS="$LIBS"
11810     LIBS="$lt_cv_dlopen_libs $LIBS"
11811
11812     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11813 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11814 if test "${lt_cv_dlopen_self+set}" = set; then :
11815   $as_echo_n "(cached) " >&6
11816 else
11817           if test "$cross_compiling" = yes; then :
11818   lt_cv_dlopen_self=cross
11819 else
11820   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11821   lt_status=$lt_dlunknown
11822   cat > conftest.$ac_ext <<_LT_EOF
11823 #line 11823 "configure"
11824 #include "confdefs.h"
11825
11826 #if HAVE_DLFCN_H
11827 #include <dlfcn.h>
11828 #endif
11829
11830 #include <stdio.h>
11831
11832 #ifdef RTLD_GLOBAL
11833 #  define LT_DLGLOBAL           RTLD_GLOBAL
11834 #else
11835 #  ifdef DL_GLOBAL
11836 #    define LT_DLGLOBAL         DL_GLOBAL
11837 #  else
11838 #    define LT_DLGLOBAL         0
11839 #  endif
11840 #endif
11841
11842 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11843    find out it does not work in some platform. */
11844 #ifndef LT_DLLAZY_OR_NOW
11845 #  ifdef RTLD_LAZY
11846 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11847 #  else
11848 #    ifdef DL_LAZY
11849 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11850 #    else
11851 #      ifdef RTLD_NOW
11852 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11853 #      else
11854 #        ifdef DL_NOW
11855 #          define LT_DLLAZY_OR_NOW      DL_NOW
11856 #        else
11857 #          define LT_DLLAZY_OR_NOW      0
11858 #        endif
11859 #      endif
11860 #    endif
11861 #  endif
11862 #endif
11863
11864 /* When -fvisbility=hidden is used, assume the code has been annotated
11865    correspondingly for the symbols needed.  */
11866 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11867 void fnord () __attribute__((visibility("default")));
11868 #endif
11869
11870 void fnord () { int i=42; }
11871 int main ()
11872 {
11873   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11874   int status = $lt_dlunknown;
11875
11876   if (self)
11877     {
11878       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11879       else
11880         {
11881           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11882           else puts (dlerror ());
11883         }
11884       /* dlclose (self); */
11885     }
11886   else
11887     puts (dlerror ());
11888
11889   return status;
11890 }
11891 _LT_EOF
11892   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11893   (eval $ac_link) 2>&5
11894   ac_status=$?
11895   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11896   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11897     (./conftest; exit; ) >&5 2>/dev/null
11898     lt_status=$?
11899     case x$lt_status in
11900       x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11901       x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11902       x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11903     esac
11904   else :
11905     # compilation failed
11906     lt_cv_dlopen_self=no
11907   fi
11908 fi
11909 rm -fr conftest*
11910
11911
11912 fi
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11914 $as_echo "$lt_cv_dlopen_self" >&6; }
11915
11916     if test "x$lt_cv_dlopen_self" = xyes; then
11917       wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11918       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11919 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11920 if test "${lt_cv_dlopen_self_static+set}" = set; then :
11921   $as_echo_n "(cached) " >&6
11922 else
11923           if test "$cross_compiling" = yes; then :
11924   lt_cv_dlopen_self_static=cross
11925 else
11926   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11927   lt_status=$lt_dlunknown
11928   cat > conftest.$ac_ext <<_LT_EOF
11929 #line 11929 "configure"
11930 #include "confdefs.h"
11931
11932 #if HAVE_DLFCN_H
11933 #include <dlfcn.h>
11934 #endif
11935
11936 #include <stdio.h>
11937
11938 #ifdef RTLD_GLOBAL
11939 #  define LT_DLGLOBAL           RTLD_GLOBAL
11940 #else
11941 #  ifdef DL_GLOBAL
11942 #    define LT_DLGLOBAL         DL_GLOBAL
11943 #  else
11944 #    define LT_DLGLOBAL         0
11945 #  endif
11946 #endif
11947
11948 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11949    find out it does not work in some platform. */
11950 #ifndef LT_DLLAZY_OR_NOW
11951 #  ifdef RTLD_LAZY
11952 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11953 #  else
11954 #    ifdef DL_LAZY
11955 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11956 #    else
11957 #      ifdef RTLD_NOW
11958 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11959 #      else
11960 #        ifdef DL_NOW
11961 #          define LT_DLLAZY_OR_NOW      DL_NOW
11962 #        else
11963 #          define LT_DLLAZY_OR_NOW      0
11964 #        endif
11965 #      endif
11966 #    endif
11967 #  endif
11968 #endif
11969
11970 /* When -fvisbility=hidden is used, assume the code has been annotated
11971    correspondingly for the symbols needed.  */
11972 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11973 void fnord () __attribute__((visibility("default")));
11974 #endif
11975
11976 void fnord () { int i=42; }
11977 int main ()
11978 {
11979   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11980   int status = $lt_dlunknown;
11981
11982   if (self)
11983     {
11984       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11985       else
11986         {
11987           if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11988           else puts (dlerror ());
11989         }
11990       /* dlclose (self); */
11991     }
11992   else
11993     puts (dlerror ());
11994
11995   return status;
11996 }
11997 _LT_EOF
11998   if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11999   (eval $ac_link) 2>&5
12000   ac_status=$?
12001   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12002   test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12003     (./conftest; exit; ) >&5 2>/dev/null
12004     lt_status=$?
12005     case x$lt_status in
12006       x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12007       x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12008       x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12009     esac
12010   else :
12011     # compilation failed
12012     lt_cv_dlopen_self_static=no
12013   fi
12014 fi
12015 rm -fr conftest*
12016
12017
12018 fi
12019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12020 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12021     fi
12022
12023     CPPFLAGS="$save_CPPFLAGS"
12024     LDFLAGS="$save_LDFLAGS"
12025     LIBS="$save_LIBS"
12026     ;;
12027   esac
12028
12029   case $lt_cv_dlopen_self in
12030   yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12031   *) enable_dlopen_self=unknown ;;
12032   esac
12033
12034   case $lt_cv_dlopen_self_static in
12035   yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12036   *) enable_dlopen_self_static=unknown ;;
12037   esac
12038 fi
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056 striplib=
12057 old_striplib=
12058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12059 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12060 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12061   test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12062   test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12063   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12064 $as_echo "yes" >&6; }
12065 else
12066 # FIXME - insert some real tests, host_os isn't really good enough
12067   case $host_os in
12068   darwin*)
12069     if test -n "$STRIP" ; then
12070       striplib="$STRIP -x"
12071       old_striplib="$STRIP -S"
12072       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12074     else
12075       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12077     fi
12078     ;;
12079   *)
12080     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12081 $as_echo "no" >&6; }
12082     ;;
12083   esac
12084 fi
12085
12086
12087
12088
12089
12090
12091
12092
12093
12094
12095
12096
12097   # Report which library types will actually be built
12098   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12099 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12100   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12101 $as_echo "$can_build_shared" >&6; }
12102
12103   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12104 $as_echo_n "checking whether to build shared libraries... " >&6; }
12105   test "$can_build_shared" = "no" && enable_shared=no
12106
12107   # On AIX, shared libraries and static libraries use the same namespace, and
12108   # are all built from PIC.
12109   case $host_os in
12110   aix3*)
12111     test "$enable_shared" = yes && enable_static=no
12112     if test -n "$RANLIB"; then
12113       archive_cmds="$archive_cmds~\$RANLIB \$lib"
12114       postinstall_cmds='$RANLIB $lib'
12115     fi
12116     ;;
12117
12118   aix[4-9]*)
12119     if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12120       test "$enable_shared" = yes && enable_static=no
12121     fi
12122     ;;
12123   esac
12124   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12125 $as_echo "$enable_shared" >&6; }
12126
12127   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12128 $as_echo_n "checking whether to build static libraries... " >&6; }
12129   # Make sure either enable_shared or enable_static is yes.
12130   test "$enable_shared" = yes || enable_static=yes
12131   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12132 $as_echo "$enable_static" >&6; }
12133
12134
12135
12136
12137 fi
12138 ac_ext=c
12139 ac_cpp='$CPP $CPPFLAGS'
12140 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12141 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12142 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12143
12144 CC="$lt_save_CC"
12145
12146
12147
12148
12149
12150
12151
12152
12153
12154
12155
12156
12157
12158         ac_config_commands="$ac_config_commands libtool"
12159
12160
12161
12162
12163 # Only expand once:
12164
12165
12166 for ac_prog in gawk mawk nawk awk
12167 do
12168   # Extract the first word of "$ac_prog", so it can be a program name with args.
12169 set dummy $ac_prog; ac_word=$2
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12171 $as_echo_n "checking for $ac_word... " >&6; }
12172 if test "${ac_cv_prog_AWK+set}" = set; then :
12173   $as_echo_n "(cached) " >&6
12174 else
12175   if test -n "$AWK"; then
12176   ac_cv_prog_AWK="$AWK" # Let the user override the test.
12177 else
12178 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12179 for as_dir in $PATH
12180 do
12181   IFS=$as_save_IFS
12182   test -z "$as_dir" && as_dir=.
12183     for ac_exec_ext in '' $ac_executable_extensions; do
12184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12185     ac_cv_prog_AWK="$ac_prog"
12186     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12187     break 2
12188   fi
12189 done
12190   done
12191 IFS=$as_save_IFS
12192
12193 fi
12194 fi
12195 AWK=$ac_cv_prog_AWK
12196 if test -n "$AWK"; then
12197   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
12198 $as_echo "$AWK" >&6; }
12199 else
12200   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12201 $as_echo "no" >&6; }
12202 fi
12203
12204
12205   test -n "$AWK" && break
12206 done
12207
12208 ac_ext=c
12209 ac_cpp='$CPP $CPPFLAGS'
12210 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12211 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12212 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12213 if test -n "$ac_tool_prefix"; then
12214   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
12215 set dummy ${ac_tool_prefix}gcc; ac_word=$2
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12217 $as_echo_n "checking for $ac_word... " >&6; }
12218 if test "${ac_cv_prog_CC+set}" = set; then :
12219   $as_echo_n "(cached) " >&6
12220 else
12221   if test -n "$CC"; then
12222   ac_cv_prog_CC="$CC" # Let the user override the test.
12223 else
12224 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12225 for as_dir in $PATH
12226 do
12227   IFS=$as_save_IFS
12228   test -z "$as_dir" && as_dir=.
12229     for ac_exec_ext in '' $ac_executable_extensions; do
12230   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12231     ac_cv_prog_CC="${ac_tool_prefix}gcc"
12232     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12233     break 2
12234   fi
12235 done
12236   done
12237 IFS=$as_save_IFS
12238
12239 fi
12240 fi
12241 CC=$ac_cv_prog_CC
12242 if test -n "$CC"; then
12243   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12244 $as_echo "$CC" >&6; }
12245 else
12246   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12247 $as_echo "no" >&6; }
12248 fi
12249
12250
12251 fi
12252 if test -z "$ac_cv_prog_CC"; then
12253   ac_ct_CC=$CC
12254   # Extract the first word of "gcc", so it can be a program name with args.
12255 set dummy gcc; ac_word=$2
12256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12257 $as_echo_n "checking for $ac_word... " >&6; }
12258 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12259   $as_echo_n "(cached) " >&6
12260 else
12261   if test -n "$ac_ct_CC"; then
12262   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12263 else
12264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12265 for as_dir in $PATH
12266 do
12267   IFS=$as_save_IFS
12268   test -z "$as_dir" && as_dir=.
12269     for ac_exec_ext in '' $ac_executable_extensions; do
12270   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12271     ac_cv_prog_ac_ct_CC="gcc"
12272     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12273     break 2
12274   fi
12275 done
12276   done
12277 IFS=$as_save_IFS
12278
12279 fi
12280 fi
12281 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12282 if test -n "$ac_ct_CC"; then
12283   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12284 $as_echo "$ac_ct_CC" >&6; }
12285 else
12286   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12287 $as_echo "no" >&6; }
12288 fi
12289
12290   if test "x$ac_ct_CC" = x; then
12291     CC=""
12292   else
12293     case $cross_compiling:$ac_tool_warned in
12294 yes:)
12295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12296 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12297 ac_tool_warned=yes ;;
12298 esac
12299     CC=$ac_ct_CC
12300   fi
12301 else
12302   CC="$ac_cv_prog_CC"
12303 fi
12304
12305 if test -z "$CC"; then
12306           if test -n "$ac_tool_prefix"; then
12307     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
12308 set dummy ${ac_tool_prefix}cc; ac_word=$2
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12310 $as_echo_n "checking for $ac_word... " >&6; }
12311 if test "${ac_cv_prog_CC+set}" = set; then :
12312   $as_echo_n "(cached) " >&6
12313 else
12314   if test -n "$CC"; then
12315   ac_cv_prog_CC="$CC" # Let the user override the test.
12316 else
12317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12318 for as_dir in $PATH
12319 do
12320   IFS=$as_save_IFS
12321   test -z "$as_dir" && as_dir=.
12322     for ac_exec_ext in '' $ac_executable_extensions; do
12323   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12324     ac_cv_prog_CC="${ac_tool_prefix}cc"
12325     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12326     break 2
12327   fi
12328 done
12329   done
12330 IFS=$as_save_IFS
12331
12332 fi
12333 fi
12334 CC=$ac_cv_prog_CC
12335 if test -n "$CC"; then
12336   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12337 $as_echo "$CC" >&6; }
12338 else
12339   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12340 $as_echo "no" >&6; }
12341 fi
12342
12343
12344   fi
12345 fi
12346 if test -z "$CC"; then
12347   # Extract the first word of "cc", so it can be a program name with args.
12348 set dummy cc; ac_word=$2
12349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12350 $as_echo_n "checking for $ac_word... " >&6; }
12351 if test "${ac_cv_prog_CC+set}" = set; then :
12352   $as_echo_n "(cached) " >&6
12353 else
12354   if test -n "$CC"; then
12355   ac_cv_prog_CC="$CC" # Let the user override the test.
12356 else
12357   ac_prog_rejected=no
12358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12359 for as_dir in $PATH
12360 do
12361   IFS=$as_save_IFS
12362   test -z "$as_dir" && as_dir=.
12363     for ac_exec_ext in '' $ac_executable_extensions; do
12364   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12365     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
12366        ac_prog_rejected=yes
12367        continue
12368      fi
12369     ac_cv_prog_CC="cc"
12370     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12371     break 2
12372   fi
12373 done
12374   done
12375 IFS=$as_save_IFS
12376
12377 if test $ac_prog_rejected = yes; then
12378   # We found a bogon in the path, so make sure we never use it.
12379   set dummy $ac_cv_prog_CC
12380   shift
12381   if test $# != 0; then
12382     # We chose a different compiler from the bogus one.
12383     # However, it has the same basename, so the bogon will be chosen
12384     # first if we set CC to just the basename; use the full file name.
12385     shift
12386     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
12387   fi
12388 fi
12389 fi
12390 fi
12391 CC=$ac_cv_prog_CC
12392 if test -n "$CC"; then
12393   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12394 $as_echo "$CC" >&6; }
12395 else
12396   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12397 $as_echo "no" >&6; }
12398 fi
12399
12400
12401 fi
12402 if test -z "$CC"; then
12403   if test -n "$ac_tool_prefix"; then
12404   for ac_prog in cl.exe
12405   do
12406     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12407 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12409 $as_echo_n "checking for $ac_word... " >&6; }
12410 if test "${ac_cv_prog_CC+set}" = set; then :
12411   $as_echo_n "(cached) " >&6
12412 else
12413   if test -n "$CC"; then
12414   ac_cv_prog_CC="$CC" # Let the user override the test.
12415 else
12416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12417 for as_dir in $PATH
12418 do
12419   IFS=$as_save_IFS
12420   test -z "$as_dir" && as_dir=.
12421     for ac_exec_ext in '' $ac_executable_extensions; do
12422   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12423     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
12424     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12425     break 2
12426   fi
12427 done
12428   done
12429 IFS=$as_save_IFS
12430
12431 fi
12432 fi
12433 CC=$ac_cv_prog_CC
12434 if test -n "$CC"; then
12435   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
12436 $as_echo "$CC" >&6; }
12437 else
12438   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12439 $as_echo "no" >&6; }
12440 fi
12441
12442
12443     test -n "$CC" && break
12444   done
12445 fi
12446 if test -z "$CC"; then
12447   ac_ct_CC=$CC
12448   for ac_prog in cl.exe
12449 do
12450   # Extract the first word of "$ac_prog", so it can be a program name with args.
12451 set dummy $ac_prog; ac_word=$2
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12453 $as_echo_n "checking for $ac_word... " >&6; }
12454 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
12455   $as_echo_n "(cached) " >&6
12456 else
12457   if test -n "$ac_ct_CC"; then
12458   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
12459 else
12460 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12461 for as_dir in $PATH
12462 do
12463   IFS=$as_save_IFS
12464   test -z "$as_dir" && as_dir=.
12465     for ac_exec_ext in '' $ac_executable_extensions; do
12466   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12467     ac_cv_prog_ac_ct_CC="$ac_prog"
12468     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12469     break 2
12470   fi
12471 done
12472   done
12473 IFS=$as_save_IFS
12474
12475 fi
12476 fi
12477 ac_ct_CC=$ac_cv_prog_ac_ct_CC
12478 if test -n "$ac_ct_CC"; then
12479   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
12480 $as_echo "$ac_ct_CC" >&6; }
12481 else
12482   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12483 $as_echo "no" >&6; }
12484 fi
12485
12486
12487   test -n "$ac_ct_CC" && break
12488 done
12489
12490   if test "x$ac_ct_CC" = x; then
12491     CC=""
12492   else
12493     case $cross_compiling:$ac_tool_warned in
12494 yes:)
12495 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12496 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12497 ac_tool_warned=yes ;;
12498 esac
12499     CC=$ac_ct_CC
12500   fi
12501 fi
12502
12503 fi
12504
12505
12506 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
12507 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
12508 as_fn_error "no acceptable C compiler found in \$PATH
12509 See \`config.log' for more details." "$LINENO" 5; }
12510
12511 # Provide some information about the compiler.
12512 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
12513 set X $ac_compile
12514 ac_compiler=$2
12515 for ac_option in --version -v -V -qversion; do
12516   { { ac_try="$ac_compiler $ac_option >&5"
12517 case "(($ac_try" in
12518   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12519   *) ac_try_echo=$ac_try;;
12520 esac
12521 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12522 $as_echo "$ac_try_echo"; } >&5
12523   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12524   ac_status=$?
12525   if test -s conftest.err; then
12526     sed '10a\
12527 ... rest of stderr output deleted ...
12528          10q' conftest.err >conftest.er1
12529     cat conftest.er1 >&5
12530     rm -f conftest.er1 conftest.err
12531   fi
12532   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12533   test $ac_status = 0; }
12534 done
12535
12536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
12537 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
12538 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
12539   $as_echo_n "(cached) " >&6
12540 else
12541   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12542 /* end confdefs.h.  */
12543
12544 int
12545 main ()
12546 {
12547 #ifndef __GNUC__
12548        choke me
12549 #endif
12550
12551   ;
12552   return 0;
12553 }
12554 _ACEOF
12555 if ac_fn_c_try_compile "$LINENO"; then :
12556   ac_compiler_gnu=yes
12557 else
12558   ac_compiler_gnu=no
12559 fi
12560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12561 ac_cv_c_compiler_gnu=$ac_compiler_gnu
12562
12563 fi
12564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
12565 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
12566 if test $ac_compiler_gnu = yes; then
12567   GCC=yes
12568 else
12569   GCC=
12570 fi
12571 ac_test_CFLAGS=${CFLAGS+set}
12572 ac_save_CFLAGS=$CFLAGS
12573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
12574 $as_echo_n "checking whether $CC accepts -g... " >&6; }
12575 if test "${ac_cv_prog_cc_g+set}" = set; then :
12576   $as_echo_n "(cached) " >&6
12577 else
12578   ac_save_c_werror_flag=$ac_c_werror_flag
12579    ac_c_werror_flag=yes
12580    ac_cv_prog_cc_g=no
12581    CFLAGS="-g"
12582    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h.  */
12584
12585 int
12586 main ()
12587 {
12588
12589   ;
12590   return 0;
12591 }
12592 _ACEOF
12593 if ac_fn_c_try_compile "$LINENO"; then :
12594   ac_cv_prog_cc_g=yes
12595 else
12596   CFLAGS=""
12597       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12598 /* end confdefs.h.  */
12599
12600 int
12601 main ()
12602 {
12603
12604   ;
12605   return 0;
12606 }
12607 _ACEOF
12608 if ac_fn_c_try_compile "$LINENO"; then :
12609
12610 else
12611   ac_c_werror_flag=$ac_save_c_werror_flag
12612          CFLAGS="-g"
12613          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12614 /* end confdefs.h.  */
12615
12616 int
12617 main ()
12618 {
12619
12620   ;
12621   return 0;
12622 }
12623 _ACEOF
12624 if ac_fn_c_try_compile "$LINENO"; then :
12625   ac_cv_prog_cc_g=yes
12626 fi
12627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12628 fi
12629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12630 fi
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632    ac_c_werror_flag=$ac_save_c_werror_flag
12633 fi
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
12635 $as_echo "$ac_cv_prog_cc_g" >&6; }
12636 if test "$ac_test_CFLAGS" = set; then
12637   CFLAGS=$ac_save_CFLAGS
12638 elif test $ac_cv_prog_cc_g = yes; then
12639   if test "$GCC" = yes; then
12640     CFLAGS="-g -O2"
12641   else
12642     CFLAGS="-g"
12643   fi
12644 else
12645   if test "$GCC" = yes; then
12646     CFLAGS="-O2"
12647   else
12648     CFLAGS=
12649   fi
12650 fi
12651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
12652 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
12653 if test "${ac_cv_prog_cc_c89+set}" = set; then :
12654   $as_echo_n "(cached) " >&6
12655 else
12656   ac_cv_prog_cc_c89=no
12657 ac_save_CC=$CC
12658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12659 /* end confdefs.h.  */
12660 #include <stdarg.h>
12661 #include <stdio.h>
12662 #include <sys/types.h>
12663 #include <sys/stat.h>
12664 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
12665 struct buf { int x; };
12666 FILE * (*rcsopen) (struct buf *, struct stat *, int);
12667 static char *e (p, i)
12668      char **p;
12669      int i;
12670 {
12671   return p[i];
12672 }
12673 static char *f (char * (*g) (char **, int), char **p, ...)
12674 {
12675   char *s;
12676   va_list v;
12677   va_start (v,p);
12678   s = g (p, va_arg (v,int));
12679   va_end (v);
12680   return s;
12681 }
12682
12683 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
12684    function prototypes and stuff, but not '\xHH' hex character constants.
12685    These don't provoke an error unfortunately, instead are silently treated
12686    as 'x'.  The following induces an error, until -std is added to get
12687    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
12688    array size at least.  It's necessary to write '\x00'==0 to get something
12689    that's true only with -std.  */
12690 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
12691
12692 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
12693    inside strings and character constants.  */
12694 #define FOO(x) 'x'
12695 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
12696
12697 int test (int i, double x);
12698 struct s1 {int (*f) (int a);};
12699 struct s2 {int (*f) (double a);};
12700 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
12701 int argc;
12702 char **argv;
12703 int
12704 main ()
12705 {
12706 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
12707   ;
12708   return 0;
12709 }
12710 _ACEOF
12711 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
12712         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
12713 do
12714   CC="$ac_save_CC $ac_arg"
12715   if ac_fn_c_try_compile "$LINENO"; then :
12716   ac_cv_prog_cc_c89=$ac_arg
12717 fi
12718 rm -f core conftest.err conftest.$ac_objext
12719   test "x$ac_cv_prog_cc_c89" != "xno" && break
12720 done
12721 rm -f conftest.$ac_ext
12722 CC=$ac_save_CC
12723
12724 fi
12725 # AC_CACHE_VAL
12726 case "x$ac_cv_prog_cc_c89" in
12727   x)
12728     { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
12729 $as_echo "none needed" >&6; } ;;
12730   xno)
12731     { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
12732 $as_echo "unsupported" >&6; } ;;
12733   *)
12734     CC="$CC $ac_cv_prog_cc_c89"
12735     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
12736 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
12737 esac
12738 if test "x$ac_cv_prog_cc_c89" != xno; then :
12739
12740 fi
12741
12742 ac_ext=c
12743 ac_cpp='$CPP $CPPFLAGS'
12744 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12745 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12746 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12747
12748 depcc="$CC"   am_compiler_list=
12749
12750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
12751 $as_echo_n "checking dependency style of $depcc... " >&6; }
12752 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
12753   $as_echo_n "(cached) " >&6
12754 else
12755   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
12756   # We make a subdir and do the tests there.  Otherwise we can end up
12757   # making bogus files that we don't know about and never remove.  For
12758   # instance it was reported that on HP-UX the gcc test will end up
12759   # making a dummy file named `D' -- because `-MD' means `put the output
12760   # in D'.
12761   mkdir conftest.dir
12762   # Copy depcomp to subdir because otherwise we won't find it if we're
12763   # using a relative directory.
12764   cp "$am_depcomp" conftest.dir
12765   cd conftest.dir
12766   # We will build objects and dependencies in a subdirectory because
12767   # it helps to detect inapplicable dependency modes.  For instance
12768   # both Tru64's cc and ICC support -MD to output dependencies as a
12769   # side effect of compilation, but ICC will put the dependencies in
12770   # the current directory while Tru64 will put them in the object
12771   # directory.
12772   mkdir sub
12773
12774   am_cv_CC_dependencies_compiler_type=none
12775   if test "$am_compiler_list" = ""; then
12776      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
12777   fi
12778   am__universal=false
12779   case " $depcc " in #(
12780      *\ -arch\ *\ -arch\ *) am__universal=true ;;
12781      esac
12782
12783   for depmode in $am_compiler_list; do
12784     # Setup a source with many dependencies, because some compilers
12785     # like to wrap large dependency lists on column 80 (with \), and
12786     # we should not choose a depcomp mode which is confused by this.
12787     #
12788     # We need to recreate these files for each test, as the compiler may
12789     # overwrite some of them when testing with obscure command lines.
12790     # This happens at least with the AIX C compiler.
12791     : > sub/conftest.c
12792     for i in 1 2 3 4 5 6; do
12793       echo '#include "conftst'$i'.h"' >> sub/conftest.c
12794       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
12795       # Solaris 8's {/usr,}/bin/sh.
12796       touch sub/conftst$i.h
12797     done
12798     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
12799
12800     # We check with `-c' and `-o' for the sake of the "dashmstdout"
12801     # mode.  It turns out that the SunPro C++ compiler does not properly
12802     # handle `-M -o', and we need to detect this.  Also, some Intel
12803     # versions had trouble with output in subdirs
12804     am__obj=sub/conftest.${OBJEXT-o}
12805     am__minus_obj="-o $am__obj"
12806     case $depmode in
12807     gcc)
12808       # This depmode causes a compiler race in universal mode.
12809       test "$am__universal" = false || continue
12810       ;;
12811     nosideeffect)
12812       # after this tag, mechanisms are not by side-effect, so they'll
12813       # only be used when explicitly requested
12814       if test "x$enable_dependency_tracking" = xyes; then
12815         continue
12816       else
12817         break
12818       fi
12819       ;;
12820     msvisualcpp | msvcmsys)
12821       # This compiler won't grok `-c -o', but also, the minuso test has
12822       # not run yet.  These depmodes are late enough in the game, and
12823       # so weak that their functioning should not be impacted.
12824       am__obj=conftest.${OBJEXT-o}
12825       am__minus_obj=
12826       ;;
12827     none) break ;;
12828     esac
12829     if depmode=$depmode \
12830        source=sub/conftest.c object=$am__obj \
12831        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
12832        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
12833          >/dev/null 2>conftest.err &&
12834        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
12835        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
12836        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
12837        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
12838       # icc doesn't choke on unknown options, it will just issue warnings
12839       # or remarks (even with -Werror).  So we grep stderr for any message
12840       # that says an option was ignored or not supported.
12841       # When given -MP, icc 7.0 and 7.1 complain thusly:
12842       #   icc: Command line warning: ignoring option '-M'; no argument required
12843       # The diagnosis changed in icc 8.0:
12844       #   icc: Command line remark: option '-MP' not supported
12845       if (grep 'ignoring option' conftest.err ||
12846           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
12847         am_cv_CC_dependencies_compiler_type=$depmode
12848         break
12849       fi
12850     fi
12851   done
12852
12853   cd ..
12854   rm -rf conftest.dir
12855 else
12856   am_cv_CC_dependencies_compiler_type=none
12857 fi
12858
12859 fi
12860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
12861 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
12862 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
12863
12864  if
12865   test "x$enable_dependency_tracking" != xno \
12866   && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
12867   am__fastdepCC_TRUE=
12868   am__fastdepCC_FALSE='#'
12869 else
12870   am__fastdepCC_TRUE='#'
12871   am__fastdepCC_FALSE=
12872 fi
12873
12874
12875 if test "x$CC" != xcc; then
12876   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
12877 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
12878 else
12879   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
12880 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
12881 fi
12882 set dummy $CC; ac_cc=`$as_echo "$2" |
12883                       sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12884 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
12885   $as_echo_n "(cached) " >&6
12886 else
12887   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12888 /* end confdefs.h.  */
12889
12890 int
12891 main ()
12892 {
12893
12894   ;
12895   return 0;
12896 }
12897 _ACEOF
12898 # Make sure it works both with $CC and with simple cc.
12899 # We do the test twice because some compilers refuse to overwrite an
12900 # existing .o file with -o, though they will create one.
12901 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12902 rm -f conftest2.*
12903 if { { case "(($ac_try" in
12904   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12905   *) ac_try_echo=$ac_try;;
12906 esac
12907 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12908 $as_echo "$ac_try_echo"; } >&5
12909   (eval "$ac_try") 2>&5
12910   ac_status=$?
12911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12912   test $ac_status = 0; } &&
12913    test -f conftest2.$ac_objext && { { case "(($ac_try" in
12914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915   *) ac_try_echo=$ac_try;;
12916 esac
12917 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12918 $as_echo "$ac_try_echo"; } >&5
12919   (eval "$ac_try") 2>&5
12920   ac_status=$?
12921   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12922   test $ac_status = 0; };
12923 then
12924   eval ac_cv_prog_cc_${ac_cc}_c_o=yes
12925   if test "x$CC" != xcc; then
12926     # Test first that cc exists at all.
12927     if { ac_try='cc -c conftest.$ac_ext >&5'
12928   { { case "(($ac_try" in
12929   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12930   *) ac_try_echo=$ac_try;;
12931 esac
12932 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12933 $as_echo "$ac_try_echo"; } >&5
12934   (eval "$ac_try") 2>&5
12935   ac_status=$?
12936   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12937   test $ac_status = 0; }; }; then
12938       ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
12939       rm -f conftest2.*
12940       if { { case "(($ac_try" in
12941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12942   *) ac_try_echo=$ac_try;;
12943 esac
12944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12945 $as_echo "$ac_try_echo"; } >&5
12946   (eval "$ac_try") 2>&5
12947   ac_status=$?
12948   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12949   test $ac_status = 0; } &&
12950          test -f conftest2.$ac_objext && { { case "(($ac_try" in
12951   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12952   *) ac_try_echo=$ac_try;;
12953 esac
12954 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12955 $as_echo "$ac_try_echo"; } >&5
12956   (eval "$ac_try") 2>&5
12957   ac_status=$?
12958   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12959   test $ac_status = 0; };
12960       then
12961         # cc works too.
12962         :
12963       else
12964         # cc exists but doesn't like -o.
12965         eval ac_cv_prog_cc_${ac_cc}_c_o=no
12966       fi
12967     fi
12968   fi
12969 else
12970   eval ac_cv_prog_cc_${ac_cc}_c_o=no
12971 fi
12972 rm -f core conftest*
12973
12974 fi
12975 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
12976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12977 $as_echo "yes" >&6; }
12978 else
12979   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12980 $as_echo "no" >&6; }
12981
12982 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
12983
12984 fi
12985
12986 # FIXME: we rely on the cache variable name because
12987 # there is no other way.
12988 set dummy $CC
12989 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
12990 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
12991 if test "$am_t" != yes; then
12992    # Losing compiler, so override with the script.
12993    # FIXME: It is wrong to rewrite CC.
12994    # But if we don't then we get into trouble of one sort or another.
12995    # A longer-term fix would be to have automake use am__CC in this case,
12996    # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
12997    CC="$am_aux_dir/compile $CC"
12998 fi
12999
13000
13001 ac_ext=c
13002 ac_cpp='$CPP $CPPFLAGS'
13003 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13004 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13005 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
13007 $as_echo_n "checking how to run the C preprocessor... " >&6; }
13008 # On Suns, sometimes $CPP names a directory.
13009 if test -n "$CPP" && test -d "$CPP"; then
13010   CPP=
13011 fi
13012 if test -z "$CPP"; then
13013   if test "${ac_cv_prog_CPP+set}" = set; then :
13014   $as_echo_n "(cached) " >&6
13015 else
13016       # Double quotes because CPP needs to be expanded
13017     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
13018     do
13019       ac_preproc_ok=false
13020 for ac_c_preproc_warn_flag in '' yes
13021 do
13022   # Use a header file that comes with gcc, so configuring glibc
13023   # with a fresh cross-compiler works.
13024   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13025   # <limits.h> exists even on freestanding compilers.
13026   # On the NeXT, cc -E runs the code through the compiler's parser,
13027   # not just through cpp. "Syntax error" is here to catch this case.
13028   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13029 /* end confdefs.h.  */
13030 #ifdef __STDC__
13031 # include <limits.h>
13032 #else
13033 # include <assert.h>
13034 #endif
13035                      Syntax error
13036 _ACEOF
13037 if ac_fn_c_try_cpp "$LINENO"; then :
13038
13039 else
13040   # Broken: fails on valid input.
13041 continue
13042 fi
13043 rm -f conftest.err conftest.$ac_ext
13044
13045   # OK, works on sane cases.  Now check whether nonexistent headers
13046   # can be detected and how.
13047   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13048 /* end confdefs.h.  */
13049 #include <ac_nonexistent.h>
13050 _ACEOF
13051 if ac_fn_c_try_cpp "$LINENO"; then :
13052   # Broken: success on invalid input.
13053 continue
13054 else
13055   # Passes both tests.
13056 ac_preproc_ok=:
13057 break
13058 fi
13059 rm -f conftest.err conftest.$ac_ext
13060
13061 done
13062 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13063 rm -f conftest.err conftest.$ac_ext
13064 if $ac_preproc_ok; then :
13065   break
13066 fi
13067
13068     done
13069     ac_cv_prog_CPP=$CPP
13070
13071 fi
13072   CPP=$ac_cv_prog_CPP
13073 else
13074   ac_cv_prog_CPP=$CPP
13075 fi
13076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
13077 $as_echo "$CPP" >&6; }
13078 ac_preproc_ok=false
13079 for ac_c_preproc_warn_flag in '' yes
13080 do
13081   # Use a header file that comes with gcc, so configuring glibc
13082   # with a fresh cross-compiler works.
13083   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13084   # <limits.h> exists even on freestanding compilers.
13085   # On the NeXT, cc -E runs the code through the compiler's parser,
13086   # not just through cpp. "Syntax error" is here to catch this case.
13087   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13088 /* end confdefs.h.  */
13089 #ifdef __STDC__
13090 # include <limits.h>
13091 #else
13092 # include <assert.h>
13093 #endif
13094                      Syntax error
13095 _ACEOF
13096 if ac_fn_c_try_cpp "$LINENO"; then :
13097
13098 else
13099   # Broken: fails on valid input.
13100 continue
13101 fi
13102 rm -f conftest.err conftest.$ac_ext
13103
13104   # OK, works on sane cases.  Now check whether nonexistent headers
13105   # can be detected and how.
13106   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13107 /* end confdefs.h.  */
13108 #include <ac_nonexistent.h>
13109 _ACEOF
13110 if ac_fn_c_try_cpp "$LINENO"; then :
13111   # Broken: success on invalid input.
13112 continue
13113 else
13114   # Passes both tests.
13115 ac_preproc_ok=:
13116 break
13117 fi
13118 rm -f conftest.err conftest.$ac_ext
13119
13120 done
13121 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13122 rm -f conftest.err conftest.$ac_ext
13123 if $ac_preproc_ok; then :
13124
13125 else
13126   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13127 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13128 as_fn_error "C preprocessor \"$CPP\" fails sanity check
13129 See \`config.log' for more details." "$LINENO" 5; }
13130 fi
13131
13132 ac_ext=c
13133 ac_cpp='$CPP $CPPFLAGS'
13134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13137
13138 ac_ext=cpp
13139 ac_cpp='$CXXCPP $CPPFLAGS'
13140 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13141 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13142 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13143 if test -z "$CXX"; then
13144   if test -n "$CCC"; then
13145     CXX=$CCC
13146   else
13147     if test -n "$ac_tool_prefix"; then
13148   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13149   do
13150     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
13151 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
13152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13153 $as_echo_n "checking for $ac_word... " >&6; }
13154 if test "${ac_cv_prog_CXX+set}" = set; then :
13155   $as_echo_n "(cached) " >&6
13156 else
13157   if test -n "$CXX"; then
13158   ac_cv_prog_CXX="$CXX" # Let the user override the test.
13159 else
13160 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13161 for as_dir in $PATH
13162 do
13163   IFS=$as_save_IFS
13164   test -z "$as_dir" && as_dir=.
13165     for ac_exec_ext in '' $ac_executable_extensions; do
13166   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13167     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
13168     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13169     break 2
13170   fi
13171 done
13172   done
13173 IFS=$as_save_IFS
13174
13175 fi
13176 fi
13177 CXX=$ac_cv_prog_CXX
13178 if test -n "$CXX"; then
13179   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
13180 $as_echo "$CXX" >&6; }
13181 else
13182   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13183 $as_echo "no" >&6; }
13184 fi
13185
13186
13187     test -n "$CXX" && break
13188   done
13189 fi
13190 if test -z "$CXX"; then
13191   ac_ct_CXX=$CXX
13192   for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
13193 do
13194   # Extract the first word of "$ac_prog", so it can be a program name with args.
13195 set dummy $ac_prog; ac_word=$2
13196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13197 $as_echo_n "checking for $ac_word... " >&6; }
13198 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
13199   $as_echo_n "(cached) " >&6
13200 else
13201   if test -n "$ac_ct_CXX"; then
13202   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
13203 else
13204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13205 for as_dir in $PATH
13206 do
13207   IFS=$as_save_IFS
13208   test -z "$as_dir" && as_dir=.
13209     for ac_exec_ext in '' $ac_executable_extensions; do
13210   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13211     ac_cv_prog_ac_ct_CXX="$ac_prog"
13212     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13213     break 2
13214   fi
13215 done
13216   done
13217 IFS=$as_save_IFS
13218
13219 fi
13220 fi
13221 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
13222 if test -n "$ac_ct_CXX"; then
13223   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
13224 $as_echo "$ac_ct_CXX" >&6; }
13225 else
13226   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13227 $as_echo "no" >&6; }
13228 fi
13229
13230
13231   test -n "$ac_ct_CXX" && break
13232 done
13233
13234   if test "x$ac_ct_CXX" = x; then
13235     CXX="g++"
13236   else
13237     case $cross_compiling:$ac_tool_warned in
13238 yes:)
13239 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13240 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13241 ac_tool_warned=yes ;;
13242 esac
13243     CXX=$ac_ct_CXX
13244   fi
13245 fi
13246
13247   fi
13248 fi
13249 # Provide some information about the compiler.
13250 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
13251 set X $ac_compile
13252 ac_compiler=$2
13253 for ac_option in --version -v -V -qversion; do
13254   { { ac_try="$ac_compiler $ac_option >&5"
13255 case "(($ac_try" in
13256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257   *) ac_try_echo=$ac_try;;
13258 esac
13259 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
13260 $as_echo "$ac_try_echo"; } >&5
13261   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
13262   ac_status=$?
13263   if test -s conftest.err; then
13264     sed '10a\
13265 ... rest of stderr output deleted ...
13266          10q' conftest.err >conftest.er1
13267     cat conftest.er1 >&5
13268     rm -f conftest.er1 conftest.err
13269   fi
13270   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13271   test $ac_status = 0; }
13272 done
13273
13274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
13275 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
13276 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
13277   $as_echo_n "(cached) " >&6
13278 else
13279   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13280 /* end confdefs.h.  */
13281
13282 int
13283 main ()
13284 {
13285 #ifndef __GNUC__
13286        choke me
13287 #endif
13288
13289   ;
13290   return 0;
13291 }
13292 _ACEOF
13293 if ac_fn_cxx_try_compile "$LINENO"; then :
13294   ac_compiler_gnu=yes
13295 else
13296   ac_compiler_gnu=no
13297 fi
13298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13299 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
13300
13301 fi
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
13303 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
13304 if test $ac_compiler_gnu = yes; then
13305   GXX=yes
13306 else
13307   GXX=
13308 fi
13309 ac_test_CXXFLAGS=${CXXFLAGS+set}
13310 ac_save_CXXFLAGS=$CXXFLAGS
13311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
13312 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
13313 if test "${ac_cv_prog_cxx_g+set}" = set; then :
13314   $as_echo_n "(cached) " >&6
13315 else
13316   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
13317    ac_cxx_werror_flag=yes
13318    ac_cv_prog_cxx_g=no
13319    CXXFLAGS="-g"
13320    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13321 /* end confdefs.h.  */
13322
13323 int
13324 main ()
13325 {
13326
13327   ;
13328   return 0;
13329 }
13330 _ACEOF
13331 if ac_fn_cxx_try_compile "$LINENO"; then :
13332   ac_cv_prog_cxx_g=yes
13333 else
13334   CXXFLAGS=""
13335       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13336 /* end confdefs.h.  */
13337
13338 int
13339 main ()
13340 {
13341
13342   ;
13343   return 0;
13344 }
13345 _ACEOF
13346 if ac_fn_cxx_try_compile "$LINENO"; then :
13347
13348 else
13349   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13350          CXXFLAGS="-g"
13351          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h.  */
13353
13354 int
13355 main ()
13356 {
13357
13358   ;
13359   return 0;
13360 }
13361 _ACEOF
13362 if ac_fn_cxx_try_compile "$LINENO"; then :
13363   ac_cv_prog_cxx_g=yes
13364 fi
13365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13366 fi
13367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13368 fi
13369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13370    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
13371 fi
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
13373 $as_echo "$ac_cv_prog_cxx_g" >&6; }
13374 if test "$ac_test_CXXFLAGS" = set; then
13375   CXXFLAGS=$ac_save_CXXFLAGS
13376 elif test $ac_cv_prog_cxx_g = yes; then
13377   if test "$GXX" = yes; then
13378     CXXFLAGS="-g -O2"
13379   else
13380     CXXFLAGS="-g"
13381   fi
13382 else
13383   if test "$GXX" = yes; then
13384     CXXFLAGS="-O2"
13385   else
13386     CXXFLAGS=
13387   fi
13388 fi
13389 ac_ext=c
13390 ac_cpp='$CPP $CPPFLAGS'
13391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13394
13395 depcc="$CXX"  am_compiler_list=
13396
13397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13398 $as_echo_n "checking dependency style of $depcc... " >&6; }
13399 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
13400   $as_echo_n "(cached) " >&6
13401 else
13402   if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13403   # We make a subdir and do the tests there.  Otherwise we can end up
13404   # making bogus files that we don't know about and never remove.  For
13405   # instance it was reported that on HP-UX the gcc test will end up
13406   # making a dummy file named `D' -- because `-MD' means `put the output
13407   # in D'.
13408   mkdir conftest.dir
13409   # Copy depcomp to subdir because otherwise we won't find it if we're
13410   # using a relative directory.
13411   cp "$am_depcomp" conftest.dir
13412   cd conftest.dir
13413   # We will build objects and dependencies in a subdirectory because
13414   # it helps to detect inapplicable dependency modes.  For instance
13415   # both Tru64's cc and ICC support -MD to output dependencies as a
13416   # side effect of compilation, but ICC will put the dependencies in
13417   # the current directory while Tru64 will put them in the object
13418   # directory.
13419   mkdir sub
13420
13421   am_cv_CXX_dependencies_compiler_type=none
13422   if test "$am_compiler_list" = ""; then
13423      am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13424   fi
13425   am__universal=false
13426   case " $depcc " in #(
13427      *\ -arch\ *\ -arch\ *) am__universal=true ;;
13428      esac
13429
13430   for depmode in $am_compiler_list; do
13431     # Setup a source with many dependencies, because some compilers
13432     # like to wrap large dependency lists on column 80 (with \), and
13433     # we should not choose a depcomp mode which is confused by this.
13434     #
13435     # We need to recreate these files for each test, as the compiler may
13436     # overwrite some of them when testing with obscure command lines.
13437     # This happens at least with the AIX C compiler.
13438     : > sub/conftest.c
13439     for i in 1 2 3 4 5 6; do
13440       echo '#include "conftst'$i'.h"' >> sub/conftest.c
13441       # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
13442       # Solaris 8's {/usr,}/bin/sh.
13443       touch sub/conftst$i.h
13444     done
13445     echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13446
13447     # We check with `-c' and `-o' for the sake of the "dashmstdout"
13448     # mode.  It turns out that the SunPro C++ compiler does not properly
13449     # handle `-M -o', and we need to detect this.  Also, some Intel
13450     # versions had trouble with output in subdirs
13451     am__obj=sub/conftest.${OBJEXT-o}
13452     am__minus_obj="-o $am__obj"
13453     case $depmode in
13454     gcc)
13455       # This depmode causes a compiler race in universal mode.
13456       test "$am__universal" = false || continue
13457       ;;
13458     nosideeffect)
13459       # after this tag, mechanisms are not by side-effect, so they'll
13460       # only be used when explicitly requested
13461       if test "x$enable_dependency_tracking" = xyes; then
13462         continue
13463       else
13464         break
13465       fi
13466       ;;
13467     msvisualcpp | msvcmsys)
13468       # This compiler won't grok `-c -o', but also, the minuso test has
13469       # not run yet.  These depmodes are late enough in the game, and
13470       # so weak that their functioning should not be impacted.
13471       am__obj=conftest.${OBJEXT-o}
13472       am__minus_obj=
13473       ;;
13474     none) break ;;
13475     esac
13476     if depmode=$depmode \
13477        source=sub/conftest.c object=$am__obj \
13478        depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13479        $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13480          >/dev/null 2>conftest.err &&
13481        grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13482        grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13483        grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13484        ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13485       # icc doesn't choke on unknown options, it will just issue warnings
13486       # or remarks (even with -Werror).  So we grep stderr for any message
13487       # that says an option was ignored or not supported.
13488       # When given -MP, icc 7.0 and 7.1 complain thusly:
13489       #   icc: Command line warning: ignoring option '-M'; no argument required
13490       # The diagnosis changed in icc 8.0:
13491       #   icc: Command line remark: option '-MP' not supported
13492       if (grep 'ignoring option' conftest.err ||
13493           grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13494         am_cv_CXX_dependencies_compiler_type=$depmode
13495         break
13496       fi
13497     fi
13498   done
13499
13500   cd ..
13501   rm -rf conftest.dir
13502 else
13503   am_cv_CXX_dependencies_compiler_type=none
13504 fi
13505
13506 fi
13507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
13508 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
13509 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
13510
13511  if
13512   test "x$enable_dependency_tracking" != xno \
13513   && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
13514   am__fastdepCXX_TRUE=
13515   am__fastdepCXX_FALSE='#'
13516 else
13517   am__fastdepCXX_TRUE='#'
13518   am__fastdepCXX_FALSE=
13519 fi
13520
13521
13522       if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13523     ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13524     (test "X$CXX" != "Xg++"))) ; then
13525   ac_ext=cpp
13526 ac_cpp='$CXXCPP $CPPFLAGS'
13527 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13528 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13529 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13531 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13532 if test -z "$CXXCPP"; then
13533   if test "${ac_cv_prog_CXXCPP+set}" = set; then :
13534   $as_echo_n "(cached) " >&6
13535 else
13536       # Double quotes because CXXCPP needs to be expanded
13537     for CXXCPP in "$CXX -E" "/lib/cpp"
13538     do
13539       ac_preproc_ok=false
13540 for ac_cxx_preproc_warn_flag in '' yes
13541 do
13542   # Use a header file that comes with gcc, so configuring glibc
13543   # with a fresh cross-compiler works.
13544   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13545   # <limits.h> exists even on freestanding compilers.
13546   # On the NeXT, cc -E runs the code through the compiler's parser,
13547   # not just through cpp. "Syntax error" is here to catch this case.
13548   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13549 /* end confdefs.h.  */
13550 #ifdef __STDC__
13551 # include <limits.h>
13552 #else
13553 # include <assert.h>
13554 #endif
13555                      Syntax error
13556 _ACEOF
13557 if ac_fn_cxx_try_cpp "$LINENO"; then :
13558
13559 else
13560   # Broken: fails on valid input.
13561 continue
13562 fi
13563 rm -f conftest.err conftest.$ac_ext
13564
13565   # OK, works on sane cases.  Now check whether nonexistent headers
13566   # can be detected and how.
13567   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13568 /* end confdefs.h.  */
13569 #include <ac_nonexistent.h>
13570 _ACEOF
13571 if ac_fn_cxx_try_cpp "$LINENO"; then :
13572   # Broken: success on invalid input.
13573 continue
13574 else
13575   # Passes both tests.
13576 ac_preproc_ok=:
13577 break
13578 fi
13579 rm -f conftest.err conftest.$ac_ext
13580
13581 done
13582 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13583 rm -f conftest.err conftest.$ac_ext
13584 if $ac_preproc_ok; then :
13585   break
13586 fi
13587
13588     done
13589     ac_cv_prog_CXXCPP=$CXXCPP
13590
13591 fi
13592   CXXCPP=$ac_cv_prog_CXXCPP
13593 else
13594   ac_cv_prog_CXXCPP=$CXXCPP
13595 fi
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13597 $as_echo "$CXXCPP" >&6; }
13598 ac_preproc_ok=false
13599 for ac_cxx_preproc_warn_flag in '' yes
13600 do
13601   # Use a header file that comes with gcc, so configuring glibc
13602   # with a fresh cross-compiler works.
13603   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13604   # <limits.h> exists even on freestanding compilers.
13605   # On the NeXT, cc -E runs the code through the compiler's parser,
13606   # not just through cpp. "Syntax error" is here to catch this case.
13607   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13608 /* end confdefs.h.  */
13609 #ifdef __STDC__
13610 # include <limits.h>
13611 #else
13612 # include <assert.h>
13613 #endif
13614                      Syntax error
13615 _ACEOF
13616 if ac_fn_cxx_try_cpp "$LINENO"; then :
13617
13618 else
13619   # Broken: fails on valid input.
13620 continue
13621 fi
13622 rm -f conftest.err conftest.$ac_ext
13623
13624   # OK, works on sane cases.  Now check whether nonexistent headers
13625   # can be detected and how.
13626   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13627 /* end confdefs.h.  */
13628 #include <ac_nonexistent.h>
13629 _ACEOF
13630 if ac_fn_cxx_try_cpp "$LINENO"; then :
13631   # Broken: success on invalid input.
13632 continue
13633 else
13634   # Passes both tests.
13635 ac_preproc_ok=:
13636 break
13637 fi
13638 rm -f conftest.err conftest.$ac_ext
13639
13640 done
13641 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13642 rm -f conftest.err conftest.$ac_ext
13643 if $ac_preproc_ok; then :
13644
13645 else
13646   { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13647 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13648 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
13649 See \`config.log' for more details." "$LINENO" 5; }
13650 fi
13651
13652 ac_ext=c
13653 ac_cpp='$CPP $CPPFLAGS'
13654 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13655 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13656 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13657
13658 else
13659   _lt_caught_CXX_error=yes
13660 fi
13661
13662 ac_ext=cpp
13663 ac_cpp='$CXXCPP $CPPFLAGS'
13664 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13665 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13666 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13667
13668 archive_cmds_need_lc_CXX=no
13669 allow_undefined_flag_CXX=
13670 always_export_symbols_CXX=no
13671 archive_expsym_cmds_CXX=
13672 compiler_needs_object_CXX=no
13673 export_dynamic_flag_spec_CXX=
13674 hardcode_direct_CXX=no
13675 hardcode_direct_absolute_CXX=no
13676 hardcode_libdir_flag_spec_CXX=
13677 hardcode_libdir_flag_spec_ld_CXX=
13678 hardcode_libdir_separator_CXX=
13679 hardcode_minus_L_CXX=no
13680 hardcode_shlibpath_var_CXX=unsupported
13681 hardcode_automatic_CXX=no
13682 inherit_rpath_CXX=no
13683 module_cmds_CXX=
13684 module_expsym_cmds_CXX=
13685 link_all_deplibs_CXX=unknown
13686 old_archive_cmds_CXX=$old_archive_cmds
13687 reload_flag_CXX=$reload_flag
13688 reload_cmds_CXX=$reload_cmds
13689 no_undefined_flag_CXX=
13690 whole_archive_flag_spec_CXX=
13691 enable_shared_with_static_runtimes_CXX=no
13692
13693 # Source file extension for C++ test sources.
13694 ac_ext=cpp
13695
13696 # Object file extension for compiled C++ test sources.
13697 objext=o
13698 objext_CXX=$objext
13699
13700 # No sense in running all these tests if we already determined that
13701 # the CXX compiler isn't working.  Some variables (like enable_shared)
13702 # are currently assumed to apply to all compilers on this platform,
13703 # and will be corrupted by setting them based on a non-working compiler.
13704 if test "$_lt_caught_CXX_error" != yes; then
13705   # Code to be used in simple compile tests
13706   lt_simple_compile_test_code="int some_variable = 0;"
13707
13708   # Code to be used in simple link tests
13709   lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13710
13711   # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13712
13713
13714
13715
13716
13717
13718 # If no C compiler was specified, use CC.
13719 LTCC=${LTCC-"$CC"}
13720
13721 # If no C compiler flags were specified, use CFLAGS.
13722 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13723
13724 # Allow CC to be a program name with arguments.
13725 compiler=$CC
13726
13727
13728   # save warnings/boilerplate of simple test code
13729   ac_outfile=conftest.$ac_objext
13730 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13731 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13732 _lt_compiler_boilerplate=`cat conftest.err`
13733 $RM conftest*
13734
13735   ac_outfile=conftest.$ac_objext
13736 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13737 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13738 _lt_linker_boilerplate=`cat conftest.err`
13739 $RM -r conftest*
13740
13741
13742   # Allow CC to be a program name with arguments.
13743   lt_save_CC=$CC
13744   lt_save_LD=$LD
13745   lt_save_GCC=$GCC
13746   GCC=$GXX
13747   lt_save_with_gnu_ld=$with_gnu_ld
13748   lt_save_path_LD=$lt_cv_path_LD
13749   if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13750     lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13751   else
13752     $as_unset lt_cv_prog_gnu_ld
13753   fi
13754   if test -n "${lt_cv_path_LDCXX+set}"; then
13755     lt_cv_path_LD=$lt_cv_path_LDCXX
13756   else
13757     $as_unset lt_cv_path_LD
13758   fi
13759   test -z "${LDCXX+set}" || LD=$LDCXX
13760   CC=${CXX-"c++"}
13761   compiler=$CC
13762   compiler_CXX=$CC
13763   for cc_temp in $compiler""; do
13764   case $cc_temp in
13765     compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13766     distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13767     \-*) ;;
13768     *) break;;
13769   esac
13770 done
13771 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13772
13773
13774   if test -n "$compiler"; then
13775     # We don't want -fno-exception when compiling C++ code, so set the
13776     # no_builtin_flag separately
13777     if test "$GXX" = yes; then
13778       lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13779     else
13780       lt_prog_compiler_no_builtin_flag_CXX=
13781     fi
13782
13783     if test "$GXX" = yes; then
13784       # Set up default GNU C++ configuration
13785
13786
13787
13788 # Check whether --with-gnu-ld was given.
13789 if test "${with_gnu_ld+set}" = set; then :
13790   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13791 else
13792   with_gnu_ld=no
13793 fi
13794
13795 ac_prog=ld
13796 if test "$GCC" = yes; then
13797   # Check if gcc -print-prog-name=ld gives a path.
13798   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13799 $as_echo_n "checking for ld used by $CC... " >&6; }
13800   case $host in
13801   *-*-mingw*)
13802     # gcc leaves a trailing carriage return which upsets mingw
13803     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13804   *)
13805     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13806   esac
13807   case $ac_prog in
13808     # Accept absolute paths.
13809     [\\/]* | ?:[\\/]*)
13810       re_direlt='/[^/][^/]*/\.\./'
13811       # Canonicalize the pathname of ld
13812       ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13813       while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13814         ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13815       done
13816       test -z "$LD" && LD="$ac_prog"
13817       ;;
13818   "")
13819     # If it fails, then pretend we aren't using GCC.
13820     ac_prog=ld
13821     ;;
13822   *)
13823     # If it is relative, then search for the first ld in PATH.
13824     with_gnu_ld=unknown
13825     ;;
13826   esac
13827 elif test "$with_gnu_ld" = yes; then
13828   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13829 $as_echo_n "checking for GNU ld... " >&6; }
13830 else
13831   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13832 $as_echo_n "checking for non-GNU ld... " >&6; }
13833 fi
13834 if test "${lt_cv_path_LD+set}" = set; then :
13835   $as_echo_n "(cached) " >&6
13836 else
13837   if test -z "$LD"; then
13838   lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13839   for ac_dir in $PATH; do
13840     IFS="$lt_save_ifs"
13841     test -z "$ac_dir" && ac_dir=.
13842     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13843       lt_cv_path_LD="$ac_dir/$ac_prog"
13844       # Check to see if the program is GNU ld.  I'd rather use --version,
13845       # but apparently some variants of GNU ld only accept -v.
13846       # Break only if it was the GNU/non-GNU ld that we prefer.
13847       case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13848       *GNU* | *'with BFD'*)
13849         test "$with_gnu_ld" != no && break
13850         ;;
13851       *)
13852         test "$with_gnu_ld" != yes && break
13853         ;;
13854       esac
13855     fi
13856   done
13857   IFS="$lt_save_ifs"
13858 else
13859   lt_cv_path_LD="$LD" # Let the user override the test with a path.
13860 fi
13861 fi
13862
13863 LD="$lt_cv_path_LD"
13864 if test -n "$LD"; then
13865   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13866 $as_echo "$LD" >&6; }
13867 else
13868   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13870 fi
13871 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
13872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13873 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13874 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
13875   $as_echo_n "(cached) " >&6
13876 else
13877   # I'd rather use --version here, but apparently some GNU lds only accept -v.
13878 case `$LD -v 2>&1 </dev/null` in
13879 *GNU* | *'with BFD'*)
13880   lt_cv_prog_gnu_ld=yes
13881   ;;
13882 *)
13883   lt_cv_prog_gnu_ld=no
13884   ;;
13885 esac
13886 fi
13887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13888 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13889 with_gnu_ld=$lt_cv_prog_gnu_ld
13890
13891
13892
13893
13894
13895
13896
13897       # Check if GNU C++ uses GNU ld as the underlying linker, since the
13898       # archiving commands below assume that GNU ld is being used.
13899       if test "$with_gnu_ld" = yes; then
13900         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901         archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13902
13903         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13904         export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13905
13906         # If archive_cmds runs LD, not CC, wlarc should be empty
13907         # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13908         #     investigate it a little bit more. (MM)
13909         wlarc='${wl}'
13910
13911         # ancient GNU ld didn't support --whole-archive et. al.
13912         if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13913           $GREP 'no-whole-archive' > /dev/null; then
13914           whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13915         else
13916           whole_archive_flag_spec_CXX=
13917         fi
13918       else
13919         with_gnu_ld=no
13920         wlarc=
13921
13922         # A generic and very simple default shared library creation
13923         # command for GNU C++ for the case where it uses the native
13924         # linker, instead of GNU ld.  If possible, this setting should
13925         # overridden to take advantage of the native linker features on
13926         # the platform it is being used on.
13927         archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13928       fi
13929
13930       # Commands to make compiler produce verbose output that lists
13931       # what "hidden" libraries, object files and flags are used when
13932       # linking a shared library.
13933       output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13934
13935     else
13936       GXX=no
13937       with_gnu_ld=no
13938       wlarc=
13939     fi
13940
13941     # PORTME: fill in a description of your system's C++ link characteristics
13942     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13943 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13944     ld_shlibs_CXX=yes
13945     case $host_os in
13946       aix3*)
13947         # FIXME: insert proper C++ library support
13948         ld_shlibs_CXX=no
13949         ;;
13950       aix[4-9]*)
13951         if test "$host_cpu" = ia64; then
13952           # On IA64, the linker does run time linking by default, so we don't
13953           # have to do anything special.
13954           aix_use_runtimelinking=no
13955           exp_sym_flag='-Bexport'
13956           no_entry_flag=""
13957         else
13958           aix_use_runtimelinking=no
13959
13960           # Test if we are trying to use run time linking or normal
13961           # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13962           # need to do runtime linking.
13963           case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13964             for ld_flag in $LDFLAGS; do
13965               case $ld_flag in
13966               *-brtl*)
13967                 aix_use_runtimelinking=yes
13968                 break
13969                 ;;
13970               esac
13971             done
13972             ;;
13973           esac
13974
13975           exp_sym_flag='-bexport'
13976           no_entry_flag='-bnoentry'
13977         fi
13978
13979         # When large executables or shared objects are built, AIX ld can
13980         # have problems creating the table of contents.  If linking a library
13981         # or program results in "error TOC overflow" add -mminimal-toc to
13982         # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
13983         # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13984
13985         archive_cmds_CXX=''
13986         hardcode_direct_CXX=yes
13987         hardcode_direct_absolute_CXX=yes
13988         hardcode_libdir_separator_CXX=':'
13989         link_all_deplibs_CXX=yes
13990         file_list_spec_CXX='${wl}-f,'
13991
13992         if test "$GXX" = yes; then
13993           case $host_os in aix4.[012]|aix4.[012].*)
13994           # We only want to do this on AIX 4.2 and lower, the check
13995           # below for broken collect2 doesn't work under 4.3+
13996           collect2name=`${CC} -print-prog-name=collect2`
13997           if test -f "$collect2name" &&
13998              strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13999           then
14000             # We have reworked collect2
14001             :
14002           else
14003             # We have old collect2
14004             hardcode_direct_CXX=unsupported
14005             # It fails to find uninstalled libraries when the uninstalled
14006             # path is not listed in the libpath.  Setting hardcode_minus_L
14007             # to unsupported forces relinking
14008             hardcode_minus_L_CXX=yes
14009             hardcode_libdir_flag_spec_CXX='-L$libdir'
14010             hardcode_libdir_separator_CXX=
14011           fi
14012           esac
14013           shared_flag='-shared'
14014           if test "$aix_use_runtimelinking" = yes; then
14015             shared_flag="$shared_flag "'${wl}-G'
14016           fi
14017         else
14018           # not using gcc
14019           if test "$host_cpu" = ia64; then
14020           # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14021           # chokes on -Wl,-G. The following line is correct:
14022           shared_flag='-G'
14023           else
14024             if test "$aix_use_runtimelinking" = yes; then
14025               shared_flag='${wl}-G'
14026             else
14027               shared_flag='${wl}-bM:SRE'
14028             fi
14029           fi
14030         fi
14031
14032         export_dynamic_flag_spec_CXX='${wl}-bexpall'
14033         # It seems that -bexpall does not export symbols beginning with
14034         # underscore (_), so it is better to generate a list of symbols to
14035         # export.
14036         always_export_symbols_CXX=yes
14037         if test "$aix_use_runtimelinking" = yes; then
14038           # Warning - without using the other runtime loading flags (-brtl),
14039           # -berok will link without error, but may produce a broken library.
14040           allow_undefined_flag_CXX='-berok'
14041           # Determine the default libpath from the value encoded in an empty
14042           # executable.
14043           if test x$gcc_no_link = xyes; then
14044   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14045 fi
14046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14047 /* end confdefs.h.  */
14048
14049 int
14050 main ()
14051 {
14052
14053   ;
14054   return 0;
14055 }
14056 _ACEOF
14057 if ac_fn_cxx_try_link "$LINENO"; then :
14058
14059 lt_aix_libpath_sed='
14060     /Import File Strings/,/^$/ {
14061         /^0/ {
14062             s/^0  *\(.*\)$/\1/
14063             p
14064         }
14065     }'
14066 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14067 # Check for a 64-bit object if we didn't find anything.
14068 if test -z "$aix_libpath"; then
14069   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14070 fi
14071 fi
14072 rm -f core conftest.err conftest.$ac_objext \
14073     conftest$ac_exeext conftest.$ac_ext
14074 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14075
14076           hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14077
14078           archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14079         else
14080           if test "$host_cpu" = ia64; then
14081             hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
14082             allow_undefined_flag_CXX="-z nodefs"
14083             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14084           else
14085             # Determine the default libpath from the value encoded in an
14086             # empty executable.
14087             if test x$gcc_no_link = xyes; then
14088   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14089 fi
14090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14091 /* end confdefs.h.  */
14092
14093 int
14094 main ()
14095 {
14096
14097   ;
14098   return 0;
14099 }
14100 _ACEOF
14101 if ac_fn_cxx_try_link "$LINENO"; then :
14102
14103 lt_aix_libpath_sed='
14104     /Import File Strings/,/^$/ {
14105         /^0/ {
14106             s/^0  *\(.*\)$/\1/
14107             p
14108         }
14109     }'
14110 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14111 # Check for a 64-bit object if we didn't find anything.
14112 if test -z "$aix_libpath"; then
14113   aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14114 fi
14115 fi
14116 rm -f core conftest.err conftest.$ac_objext \
14117     conftest$ac_exeext conftest.$ac_ext
14118 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14119
14120             hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
14121             # Warning - without using the other run time loading flags,
14122             # -berok will link without error, but may produce a broken library.
14123             no_undefined_flag_CXX=' ${wl}-bernotok'
14124             allow_undefined_flag_CXX=' ${wl}-berok'
14125             if test "$with_gnu_ld" = yes; then
14126               # We only use this code for GNU lds that support --whole-archive.
14127               whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14128             else
14129               # Exported symbols can be pulled into shared objects from archives
14130               whole_archive_flag_spec_CXX='$convenience'
14131             fi
14132             archive_cmds_need_lc_CXX=yes
14133             # This is similar to how AIX traditionally builds its shared
14134             # libraries.
14135             archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14136           fi
14137         fi
14138         ;;
14139
14140       beos*)
14141         if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14142           allow_undefined_flag_CXX=unsupported
14143           # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14144           # support --undefined.  This deserves some investigation.  FIXME
14145           archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14146         else
14147           ld_shlibs_CXX=no
14148         fi
14149         ;;
14150
14151       chorus*)
14152         case $cc_basename in
14153           *)
14154           # FIXME: insert proper C++ library support
14155           ld_shlibs_CXX=no
14156           ;;
14157         esac
14158         ;;
14159
14160       cygwin* | mingw* | pw32* | cegcc*)
14161         # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
14162         # as there is no search path for DLLs.
14163         hardcode_libdir_flag_spec_CXX='-L$libdir'
14164         export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
14165         allow_undefined_flag_CXX=unsupported
14166         always_export_symbols_CXX=no
14167         enable_shared_with_static_runtimes_CXX=yes
14168
14169         if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
14170           archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14171           # If the export-symbols file already is a .def file (1st line
14172           # is EXPORTS), use it as is; otherwise, prepend...
14173           archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14174             cp $export_symbols $output_objdir/$soname.def;
14175           else
14176             echo EXPORTS > $output_objdir/$soname.def;
14177             cat $export_symbols >> $output_objdir/$soname.def;
14178           fi~
14179           $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14180         else
14181           ld_shlibs_CXX=no
14182         fi
14183         ;;
14184       darwin* | rhapsody*)
14185
14186
14187   archive_cmds_need_lc_CXX=no
14188   hardcode_direct_CXX=no
14189   hardcode_automatic_CXX=yes
14190   hardcode_shlibpath_var_CXX=unsupported
14191   if test "$lt_cv_ld_force_load" = "yes"; then
14192     whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
14193   else
14194     whole_archive_flag_spec_CXX=''
14195   fi
14196   link_all_deplibs_CXX=yes
14197   allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
14198   case $cc_basename in
14199      ifort*) _lt_dar_can_shared=yes ;;
14200      *) _lt_dar_can_shared=$GCC ;;
14201   esac
14202   if test "$_lt_dar_can_shared" = "yes"; then
14203     output_verbose_link_cmd=func_echo_all
14204     archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14205     module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14206     archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14207     module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14208        if test "$lt_cv_apple_cc_single_mod" != "yes"; then
14209       archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
14210       archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
14211     fi
14212
14213   else
14214   ld_shlibs_CXX=no
14215   fi
14216
14217         ;;
14218
14219       dgux*)
14220         case $cc_basename in
14221           ec++*)
14222             # FIXME: insert proper C++ library support
14223             ld_shlibs_CXX=no
14224             ;;
14225           ghcx*)
14226             # Green Hills C++ Compiler
14227             # FIXME: insert proper C++ library support
14228             ld_shlibs_CXX=no
14229             ;;
14230           *)
14231             # FIXME: insert proper C++ library support
14232             ld_shlibs_CXX=no
14233             ;;
14234         esac
14235         ;;
14236
14237       freebsd2.*)
14238         # C++ shared libraries reported to be fairly broken before
14239         # switch to ELF
14240         ld_shlibs_CXX=no
14241         ;;
14242
14243       freebsd-elf*)
14244         archive_cmds_need_lc_CXX=no
14245         ;;
14246
14247       freebsd* | dragonfly*)
14248         # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
14249         # conventions
14250         ld_shlibs_CXX=yes
14251         ;;
14252
14253       gnu*)
14254         ;;
14255
14256       haiku*)
14257         archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14258         link_all_deplibs_CXX=yes
14259         ;;
14260
14261       hpux9*)
14262         hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14263         hardcode_libdir_separator_CXX=:
14264         export_dynamic_flag_spec_CXX='${wl}-E'
14265         hardcode_direct_CXX=yes
14266         hardcode_minus_L_CXX=yes # Not in the search PATH,
14267                                              # but as the default
14268                                              # location of the library.
14269
14270         case $cc_basename in
14271           CC*)
14272             # FIXME: insert proper C++ library support
14273             ld_shlibs_CXX=no
14274             ;;
14275           aCC*)
14276             archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14277             # Commands to make compiler produce verbose output that lists
14278             # what "hidden" libraries, object files and flags are used when
14279             # linking a shared library.
14280             #
14281             # There doesn't appear to be a way to prevent this compiler from
14282             # explicitly linking system object files so we need to strip them
14283             # from the output so that they don't get included in the library
14284             # dependencies.
14285             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14286             ;;
14287           *)
14288             if test "$GXX" = yes; then
14289               archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14290             else
14291               # FIXME: insert proper C++ library support
14292               ld_shlibs_CXX=no
14293             fi
14294             ;;
14295         esac
14296         ;;
14297
14298       hpux10*|hpux11*)
14299         if test $with_gnu_ld = no; then
14300           hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
14301           hardcode_libdir_separator_CXX=:
14302
14303           case $host_cpu in
14304             hppa*64*|ia64*)
14305               ;;
14306             *)
14307               export_dynamic_flag_spec_CXX='${wl}-E'
14308               ;;
14309           esac
14310         fi
14311         case $host_cpu in
14312           hppa*64*|ia64*)
14313             hardcode_direct_CXX=no
14314             hardcode_shlibpath_var_CXX=no
14315             ;;
14316           *)
14317             hardcode_direct_CXX=yes
14318             hardcode_direct_absolute_CXX=yes
14319             hardcode_minus_L_CXX=yes # Not in the search PATH,
14320                                                  # but as the default
14321                                                  # location of the library.
14322             ;;
14323         esac
14324
14325         case $cc_basename in
14326           CC*)
14327             # FIXME: insert proper C++ library support
14328             ld_shlibs_CXX=no
14329             ;;
14330           aCC*)
14331             case $host_cpu in
14332               hppa*64*)
14333                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14334                 ;;
14335               ia64*)
14336                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14337                 ;;
14338               *)
14339                 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14340                 ;;
14341             esac
14342             # Commands to make compiler produce verbose output that lists
14343             # what "hidden" libraries, object files and flags are used when
14344             # linking a shared library.
14345             #
14346             # There doesn't appear to be a way to prevent this compiler from
14347             # explicitly linking system object files so we need to strip them
14348             # from the output so that they don't get included in the library
14349             # dependencies.
14350             output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14351             ;;
14352           *)
14353             if test "$GXX" = yes; then
14354               if test $with_gnu_ld = no; then
14355                 case $host_cpu in
14356                   hppa*64*)
14357                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14358                     ;;
14359                   ia64*)
14360                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14361                     ;;
14362                   *)
14363                     archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14364                     ;;
14365                 esac
14366               fi
14367             else
14368               # FIXME: insert proper C++ library support
14369               ld_shlibs_CXX=no
14370             fi
14371             ;;
14372         esac
14373         ;;
14374
14375       interix[3-9]*)
14376         hardcode_direct_CXX=no
14377         hardcode_shlibpath_var_CXX=no
14378         hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14379         export_dynamic_flag_spec_CXX='${wl}-E'
14380         # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14381         # Instead, shared libraries are loaded at an image base (0x10000000 by
14382         # default) and relocated if they conflict, which is a slow very memory
14383         # consuming and fragmenting process.  To avoid this, we pick a random,
14384         # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14385         # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
14386         archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14387         archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14388         ;;
14389       irix5* | irix6*)
14390         case $cc_basename in
14391           CC*)
14392             # SGI C++
14393             archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14394
14395             # Archives containing C++ object files must be created using
14396             # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
14397             # necessary to make sure instantiated templates are included
14398             # in the archive.
14399             old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14400             ;;
14401           *)
14402             if test "$GXX" = yes; then
14403               if test "$with_gnu_ld" = no; then
14404                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14405               else
14406                 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
14407               fi
14408             fi
14409             link_all_deplibs_CXX=yes
14410             ;;
14411         esac
14412         hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14413         hardcode_libdir_separator_CXX=:
14414         inherit_rpath_CXX=yes
14415         ;;
14416
14417       linux* | k*bsd*-gnu | kopensolaris*-gnu)
14418         case $cc_basename in
14419           KCC*)
14420             # Kuck and Associates, Inc. (KAI) C++ Compiler
14421
14422             # KCC will only create a shared library if the output file
14423             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14424             # to its proper name (with version) after linking.
14425             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14426             archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
14427             # Commands to make compiler produce verbose output that lists
14428             # what "hidden" libraries, object files and flags are used when
14429             # linking a shared library.
14430             #
14431             # There doesn't appear to be a way to prevent this compiler from
14432             # explicitly linking system object files so we need to strip them
14433             # from the output so that they don't get included in the library
14434             # dependencies.
14435             output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14436
14437             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14438             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14439
14440             # Archives containing C++ object files must be created using
14441             # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14442             old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14443             ;;
14444           icpc* | ecpc* )
14445             # Intel C++
14446             with_gnu_ld=yes
14447             # version 8.0 and above of icpc choke on multiply defined symbols
14448             # if we add $predep_objects and $postdep_objects, however 7.1 and
14449             # earlier do not add the objects themselves.
14450             case `$CC -V 2>&1` in
14451               *"Version 7."*)
14452                 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14453                 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14454                 ;;
14455               *)  # Version 8.0 or newer
14456                 tmp_idyn=
14457                 case $host_cpu in
14458                   ia64*) tmp_idyn=' -i_dynamic';;
14459                 esac
14460                 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14461                 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14462                 ;;
14463             esac
14464             archive_cmds_need_lc_CXX=no
14465             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14466             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14467             whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14468             ;;
14469           pgCC* | pgcpp*)
14470             # Portland Group C++ compiler
14471             case `$CC -V` in
14472             *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14473               prelink_cmds_CXX='tpldir=Template.dir~
14474                 rm -rf $tpldir~
14475                 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14476                 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
14477               old_archive_cmds_CXX='tpldir=Template.dir~
14478                 rm -rf $tpldir~
14479                 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14480                 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
14481                 $RANLIB $oldlib'
14482               archive_cmds_CXX='tpldir=Template.dir~
14483                 rm -rf $tpldir~
14484                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14485                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14486               archive_expsym_cmds_CXX='tpldir=Template.dir~
14487                 rm -rf $tpldir~
14488                 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14489                 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14490               ;;
14491             *) # Version 6 and above use weak symbols
14492               archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14493               archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
14494               ;;
14495             esac
14496
14497             hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14498             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14499             whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test  -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14500             ;;
14501           cxx*)
14502             # Compaq C++
14503             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14504             archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname  -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
14505
14506             runpath_var=LD_RUN_PATH
14507             hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14508             hardcode_libdir_separator_CXX=:
14509
14510             # Commands to make compiler produce verbose output that lists
14511             # what "hidden" libraries, object files and flags are used when
14512             # linking a shared library.
14513             #
14514             # There doesn't appear to be a way to prevent this compiler from
14515             # explicitly linking system object files so we need to strip them
14516             # from the output so that they don't get included in the library
14517             # dependencies.
14518             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
14519             ;;
14520           xl* | mpixl* | bgxl*)
14521             # IBM XL 8.0 on PPC, with GNU ld
14522             hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14523             export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14524             archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14525             if test "x$supports_anon_versioning" = xyes; then
14526               archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14527                 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14528                 echo "local: *; };" >> $output_objdir/$libname.ver~
14529                 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14530             fi
14531             ;;
14532           *)
14533             case `$CC -V 2>&1 | sed 5q` in
14534             *Sun\ C*)
14535               # Sun C++ 5.9
14536               no_undefined_flag_CXX=' -zdefs'
14537               archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14538               archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
14539               hardcode_libdir_flag_spec_CXX='-R$libdir'
14540               whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
14541               compiler_needs_object_CXX=yes
14542
14543               # Not sure whether something based on
14544               # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14545               # would be better.
14546               output_verbose_link_cmd='func_echo_all'
14547
14548               # Archives containing C++ object files must be created using
14549               # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14550               # necessary to make sure instantiated templates are included
14551               # in the archive.
14552               old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14553               ;;
14554             esac
14555             ;;
14556         esac
14557         ;;
14558
14559       lynxos*)
14560         # FIXME: insert proper C++ library support
14561         ld_shlibs_CXX=no
14562         ;;
14563
14564       m88k*)
14565         # FIXME: insert proper C++ library support
14566         ld_shlibs_CXX=no
14567         ;;
14568
14569       mvs*)
14570         case $cc_basename in
14571           cxx*)
14572             # FIXME: insert proper C++ library support
14573             ld_shlibs_CXX=no
14574             ;;
14575           *)
14576             # FIXME: insert proper C++ library support
14577             ld_shlibs_CXX=no
14578             ;;
14579         esac
14580         ;;
14581
14582       netbsd*)
14583         if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14584           archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14585           wlarc=
14586           hardcode_libdir_flag_spec_CXX='-R$libdir'
14587           hardcode_direct_CXX=yes
14588           hardcode_shlibpath_var_CXX=no
14589         fi
14590         # Workaround some broken pre-1.5 toolchains
14591         output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14592         ;;
14593
14594       *nto* | *qnx*)
14595         ld_shlibs_CXX=yes
14596         ;;
14597
14598       openbsd2*)
14599         # C++ shared libraries are fairly broken
14600         ld_shlibs_CXX=no
14601         ;;
14602
14603       openbsd*)
14604         if test -f /usr/libexec/ld.so; then
14605           hardcode_direct_CXX=yes
14606           hardcode_shlibpath_var_CXX=no
14607           hardcode_direct_absolute_CXX=yes
14608           archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14609           hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14610           if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14611             archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14612             export_dynamic_flag_spec_CXX='${wl}-E'
14613             whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14614           fi
14615           output_verbose_link_cmd=func_echo_all
14616         else
14617           ld_shlibs_CXX=no
14618         fi
14619         ;;
14620
14621       osf3* | osf4* | osf5*)
14622         case $cc_basename in
14623           KCC*)
14624             # Kuck and Associates, Inc. (KAI) C++ Compiler
14625
14626             # KCC will only create a shared library if the output file
14627             # ends with ".so" (or ".sl" for HP-UX), so rename the library
14628             # to its proper name (with version) after linking.
14629             archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
14630
14631             hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14632             hardcode_libdir_separator_CXX=:
14633
14634             # Archives containing C++ object files must be created using
14635             # the KAI C++ compiler.
14636             case $host in
14637               osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14638               *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14639             esac
14640             ;;
14641           RCC*)
14642             # Rational C++ 2.4.1
14643             # FIXME: insert proper C++ library support
14644             ld_shlibs_CXX=no
14645             ;;
14646           cxx*)
14647             case $host in
14648               osf3*)
14649                 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14650                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14651                 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14652                 ;;
14653               *)
14654                 allow_undefined_flag_CXX=' -expect_unresolved \*'
14655                 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
14656                 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14657                   echo "-hidden">> $lib.exp~
14658                   $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp  `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
14659                   $RM $lib.exp'
14660                 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14661                 ;;
14662             esac
14663
14664             hardcode_libdir_separator_CXX=:
14665
14666             # Commands to make compiler produce verbose output that lists
14667             # what "hidden" libraries, object files and flags are used when
14668             # linking a shared library.
14669             #
14670             # There doesn't appear to be a way to prevent this compiler from
14671             # explicitly linking system object files so we need to strip them
14672             # from the output so that they don't get included in the library
14673             # dependencies.
14674             output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
14675             ;;
14676           *)
14677             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14678               allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14679               case $host in
14680                 osf3*)
14681                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14682                   ;;
14683                 *)
14684                   archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
14685                   ;;
14686               esac
14687
14688               hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14689               hardcode_libdir_separator_CXX=:
14690
14691               # Commands to make compiler produce verbose output that lists
14692               # what "hidden" libraries, object files and flags are used when
14693               # linking a shared library.
14694               output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14695
14696             else
14697               # FIXME: insert proper C++ library support
14698               ld_shlibs_CXX=no
14699             fi
14700             ;;
14701         esac
14702         ;;
14703
14704       psos*)
14705         # FIXME: insert proper C++ library support
14706         ld_shlibs_CXX=no
14707         ;;
14708
14709       sunos4*)
14710         case $cc_basename in
14711           CC*)
14712             # Sun C++ 4.x
14713             # FIXME: insert proper C++ library support
14714             ld_shlibs_CXX=no
14715             ;;
14716           lcc*)
14717             # Lucid
14718             # FIXME: insert proper C++ library support
14719             ld_shlibs_CXX=no
14720             ;;
14721           *)
14722             # FIXME: insert proper C++ library support
14723             ld_shlibs_CXX=no
14724             ;;
14725         esac
14726         ;;
14727
14728       solaris*)
14729         case $cc_basename in
14730           CC*)
14731             # Sun C++ 4.2, 5.x and Centerline C++
14732             archive_cmds_need_lc_CXX=yes
14733             no_undefined_flag_CXX=' -zdefs'
14734             archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14735             archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14736               $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14737
14738             hardcode_libdir_flag_spec_CXX='-R$libdir'
14739             hardcode_shlibpath_var_CXX=no
14740             case $host_os in
14741               solaris2.[0-5] | solaris2.[0-5].*) ;;
14742               *)
14743                 # The compiler driver will combine and reorder linker options,
14744                 # but understands `-z linker_flag'.
14745                 # Supported since Solaris 2.6 (maybe 2.5.1?)
14746                 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14747                 ;;
14748             esac
14749             link_all_deplibs_CXX=yes
14750
14751             output_verbose_link_cmd='func_echo_all'
14752
14753             # Archives containing C++ object files must be created using
14754             # "CC -xar", where "CC" is the Sun C++ compiler.  This is
14755             # necessary to make sure instantiated templates are included
14756             # in the archive.
14757             old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14758             ;;
14759           gcx*)
14760             # Green Hills C++ Compiler
14761             archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14762
14763             # The C++ compiler must be used to create the archive.
14764             old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14765             ;;
14766           *)
14767             # GNU C++ compiler with Solaris linker
14768             if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14769               no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14770               if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14771                 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14772                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14773                   $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14774
14775                 # Commands to make compiler produce verbose output that lists
14776                 # what "hidden" libraries, object files and flags are used when
14777                 # linking a shared library.
14778                 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14779               else
14780                 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14781                 # platform.
14782                 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14783                 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14784                   $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14785
14786                 # Commands to make compiler produce verbose output that lists
14787                 # what "hidden" libraries, object files and flags are used when
14788                 # linking a shared library.
14789                 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14790               fi
14791
14792               hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14793               case $host_os in
14794                 solaris2.[0-5] | solaris2.[0-5].*) ;;
14795                 *)
14796                   whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14797                   ;;
14798               esac
14799             fi
14800             ;;
14801         esac
14802         ;;
14803
14804     sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14805       no_undefined_flag_CXX='${wl}-z,text'
14806       archive_cmds_need_lc_CXX=no
14807       hardcode_shlibpath_var_CXX=no
14808       runpath_var='LD_RUN_PATH'
14809
14810       case $cc_basename in
14811         CC*)
14812           archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14813           archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14814           ;;
14815         *)
14816           archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14817           archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14818           ;;
14819       esac
14820       ;;
14821
14822       sysv5* | sco3.2v5* | sco5v6*)
14823         # Note: We can NOT use -z defs as we might desire, because we do not
14824         # link with -lc, and that would cause any symbols used from libc to
14825         # always be unresolved, which means just about no library would
14826         # ever link correctly.  If we're not using GNU ld we use -z text
14827         # though, which does catch some bad symbols but isn't as heavy-handed
14828         # as -z defs.
14829         no_undefined_flag_CXX='${wl}-z,text'
14830         allow_undefined_flag_CXX='${wl}-z,nodefs'
14831         archive_cmds_need_lc_CXX=no
14832         hardcode_shlibpath_var_CXX=no
14833         hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14834         hardcode_libdir_separator_CXX=':'
14835         link_all_deplibs_CXX=yes
14836         export_dynamic_flag_spec_CXX='${wl}-Bexport'
14837         runpath_var='LD_RUN_PATH'
14838
14839         case $cc_basename in
14840           CC*)
14841             archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14842             archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14843             old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14844               '"$old_archive_cmds_CXX"
14845             reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14846               '"$reload_cmds_CXX"
14847             ;;
14848           *)
14849             archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14850             archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14851             ;;
14852         esac
14853       ;;
14854
14855       tandem*)
14856         case $cc_basename in
14857           NCC*)
14858             # NonStop-UX NCC 3.20
14859             # FIXME: insert proper C++ library support
14860             ld_shlibs_CXX=no
14861             ;;
14862           *)
14863             # FIXME: insert proper C++ library support
14864             ld_shlibs_CXX=no
14865             ;;
14866         esac
14867         ;;
14868
14869       vxworks*)
14870         # FIXME: insert proper C++ library support
14871         ld_shlibs_CXX=no
14872         ;;
14873
14874       *)
14875         # FIXME: insert proper C++ library support
14876         ld_shlibs_CXX=no
14877         ;;
14878     esac
14879
14880     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14881 $as_echo "$ld_shlibs_CXX" >&6; }
14882     test "$ld_shlibs_CXX" = no && can_build_shared=no
14883
14884     GCC_CXX="$GXX"
14885     LD_CXX="$LD"
14886
14887     ## CAVEAT EMPTOR:
14888     ## There is no encapsulation within the following macros, do not change
14889     ## the running order or otherwise move them around unless you know exactly
14890     ## what you are doing...
14891     # Dependencies to place before and after the object being linked:
14892 predep_objects_CXX=
14893 postdep_objects_CXX=
14894 predeps_CXX=
14895 postdeps_CXX=
14896 compiler_lib_search_path_CXX=
14897
14898 cat > conftest.$ac_ext <<_LT_EOF
14899 class Foo
14900 {
14901 public:
14902   Foo (void) { a = 0; }
14903 private:
14904   int a;
14905 };
14906 _LT_EOF
14907
14908 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14909   (eval $ac_compile) 2>&5
14910   ac_status=$?
14911   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14912   test $ac_status = 0; }; then
14913   # Parse the compiler output and extract the necessary
14914   # objects, libraries and library flags.
14915
14916   # Sentinel used to keep track of whether or not we are before
14917   # the conftest object file.
14918   pre_test_object_deps_done=no
14919
14920   for p in `eval "$output_verbose_link_cmd"`; do
14921     case $p in
14922
14923     -L* | -R* | -l*)
14924        # Some compilers place space between "-{L,R}" and the path.
14925        # Remove the space.
14926        if test $p = "-L" ||
14927           test $p = "-R"; then
14928          prev=$p
14929          continue
14930        else
14931          prev=
14932        fi
14933
14934        if test "$pre_test_object_deps_done" = no; then
14935          case $p in
14936          -L* | -R*)
14937            # Internal compiler library paths should come after those
14938            # provided the user.  The postdeps already come after the
14939            # user supplied libs so there is no need to process them.
14940            if test -z "$compiler_lib_search_path_CXX"; then
14941              compiler_lib_search_path_CXX="${prev}${p}"
14942            else
14943              compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14944            fi
14945            ;;
14946          # The "-l" case would never come before the object being
14947          # linked, so don't bother handling this case.
14948          esac
14949        else
14950          if test -z "$postdeps_CXX"; then
14951            postdeps_CXX="${prev}${p}"
14952          else
14953            postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14954          fi
14955        fi
14956        ;;
14957
14958     *.$objext)
14959        # This assumes that the test object file only shows up
14960        # once in the compiler output.
14961        if test "$p" = "conftest.$objext"; then
14962          pre_test_object_deps_done=yes
14963          continue
14964        fi
14965
14966        if test "$pre_test_object_deps_done" = no; then
14967          if test -z "$predep_objects_CXX"; then
14968            predep_objects_CXX="$p"
14969          else
14970            predep_objects_CXX="$predep_objects_CXX $p"
14971          fi
14972        else
14973          if test -z "$postdep_objects_CXX"; then
14974            postdep_objects_CXX="$p"
14975          else
14976            postdep_objects_CXX="$postdep_objects_CXX $p"
14977          fi
14978        fi
14979        ;;
14980
14981     *) ;; # Ignore the rest.
14982
14983     esac
14984   done
14985
14986   # Clean up.
14987   rm -f a.out a.exe
14988 else
14989   echo "libtool.m4: error: problem compiling CXX test program"
14990 fi
14991
14992 $RM -f confest.$objext
14993
14994 # PORTME: override above test on systems where it is broken
14995 case $host_os in
14996 interix[3-9]*)
14997   # Interix 3.5 installs completely hosed .la files for C++, so rather than
14998   # hack all around it, let's just trust "g++" to DTRT.
14999   predep_objects_CXX=
15000   postdep_objects_CXX=
15001   postdeps_CXX=
15002   ;;
15003
15004 linux*)
15005   case `$CC -V 2>&1 | sed 5q` in
15006   *Sun\ C*)
15007     # Sun C++ 5.9
15008
15009     # The more standards-conforming stlport4 library is
15010     # incompatible with the Cstd library. Avoid specifying
15011     # it if it's in CXXFLAGS. Ignore libCrun as
15012     # -library=stlport4 depends on it.
15013     case " $CXX $CXXFLAGS " in
15014     *" -library=stlport4 "*)
15015       solaris_use_stlport4=yes
15016       ;;
15017     esac
15018
15019     if test "$solaris_use_stlport4" != yes; then
15020       postdeps_CXX='-library=Cstd -library=Crun'
15021     fi
15022     ;;
15023   esac
15024   ;;
15025
15026 solaris*)
15027   case $cc_basename in
15028   CC*)
15029     # The more standards-conforming stlport4 library is
15030     # incompatible with the Cstd library. Avoid specifying
15031     # it if it's in CXXFLAGS. Ignore libCrun as
15032     # -library=stlport4 depends on it.
15033     case " $CXX $CXXFLAGS " in
15034     *" -library=stlport4 "*)
15035       solaris_use_stlport4=yes
15036       ;;
15037     esac
15038
15039     # Adding this requires a known-good setup of shared libraries for
15040     # Sun compiler versions before 5.6, else PIC objects from an old
15041     # archive will be linked into the output, leading to subtle bugs.
15042     if test "$solaris_use_stlport4" != yes; then
15043       postdeps_CXX='-library=Cstd -library=Crun'
15044     fi
15045     ;;
15046   esac
15047   ;;
15048 esac
15049
15050
15051 case " $postdeps_CXX " in
15052 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
15053 esac
15054  compiler_lib_search_dirs_CXX=
15055 if test -n "${compiler_lib_search_path_CXX}"; then
15056  compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
15057 fi
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089     lt_prog_compiler_wl_CXX=
15090 lt_prog_compiler_pic_CXX=
15091 lt_prog_compiler_static_CXX=
15092
15093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15094 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15095
15096   # C++ specific cases for pic, static, wl, etc.
15097   if test "$GXX" = yes; then
15098     lt_prog_compiler_wl_CXX='-Wl,'
15099     lt_prog_compiler_static_CXX='-static'
15100
15101     case $host_os in
15102     aix*)
15103       # All AIX code is PIC.
15104       if test "$host_cpu" = ia64; then
15105         # AIX 5 now supports IA64 processor
15106         lt_prog_compiler_static_CXX='-Bstatic'
15107       fi
15108       lt_prog_compiler_pic_CXX='-fPIC'
15109       ;;
15110
15111     amigaos*)
15112       case $host_cpu in
15113       powerpc)
15114             # see comment about AmigaOS4 .so support
15115             lt_prog_compiler_pic_CXX='-fPIC'
15116         ;;
15117       m68k)
15118             # FIXME: we need at least 68020 code to build shared libraries, but
15119             # adding the `-m68020' flag to GCC prevents building anything better,
15120             # like `-m68040'.
15121             lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
15122         ;;
15123       esac
15124       ;;
15125
15126     beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15127       # PIC is the default for these OSes.
15128       ;;
15129     mingw* | cygwin* | os2* | pw32* | cegcc*)
15130       # This hack is so that the source file can tell whether it is being
15131       # built for inclusion in a dll (and should export symbols for example).
15132       # Although the cygwin gcc ignores -fPIC, still need this for old-style
15133       # (--disable-auto-import) libraries
15134       lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
15135       ;;
15136     darwin* | rhapsody*)
15137       # PIC is the default on this platform
15138       # Common symbols not allowed in MH_DYLIB files
15139       lt_prog_compiler_pic_CXX='-fno-common'
15140       ;;
15141     *djgpp*)
15142       # DJGPP does not support shared libraries at all
15143       lt_prog_compiler_pic_CXX=
15144       ;;
15145     haiku*)
15146       # PIC is the default for Haiku.
15147       # The "-static" flag exists, but is broken.
15148       lt_prog_compiler_static_CXX=
15149       ;;
15150     interix[3-9]*)
15151       # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15152       # Instead, we relocate shared libraries at runtime.
15153       ;;
15154     sysv4*MP*)
15155       if test -d /usr/nec; then
15156         lt_prog_compiler_pic_CXX=-Kconform_pic
15157       fi
15158       ;;
15159     hpux*)
15160       # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15161       # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
15162       # sets the default TLS model and affects inlining.
15163       case $host_cpu in
15164       hppa*64*)
15165         ;;
15166       *)
15167         lt_prog_compiler_pic_CXX='-fPIC'
15168         ;;
15169       esac
15170       ;;
15171     *qnx* | *nto*)
15172       # QNX uses GNU C++, but need to define -shared option too, otherwise
15173       # it will coredump.
15174       lt_prog_compiler_pic_CXX='-fPIC -shared'
15175       ;;
15176     *)
15177       lt_prog_compiler_pic_CXX='-fPIC'
15178       ;;
15179     esac
15180   else
15181     case $host_os in
15182       aix[4-9]*)
15183         # All AIX code is PIC.
15184         if test "$host_cpu" = ia64; then
15185           # AIX 5 now supports IA64 processor
15186           lt_prog_compiler_static_CXX='-Bstatic'
15187         else
15188           lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
15189         fi
15190         ;;
15191       chorus*)
15192         case $cc_basename in
15193         cxch68*)
15194           # Green Hills C++ Compiler
15195           # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
15196           ;;
15197         esac
15198         ;;
15199       dgux*)
15200         case $cc_basename in
15201           ec++*)
15202             lt_prog_compiler_pic_CXX='-KPIC'
15203             ;;
15204           ghcx*)
15205             # Green Hills C++ Compiler
15206             lt_prog_compiler_pic_CXX='-pic'
15207             ;;
15208           *)
15209             ;;
15210         esac
15211         ;;
15212       freebsd* | dragonfly*)
15213         # FreeBSD uses GNU C++
15214         ;;
15215       hpux9* | hpux10* | hpux11*)
15216         case $cc_basename in
15217           CC*)
15218             lt_prog_compiler_wl_CXX='-Wl,'
15219             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15220             if test "$host_cpu" != ia64; then
15221               lt_prog_compiler_pic_CXX='+Z'
15222             fi
15223             ;;
15224           aCC*)
15225             lt_prog_compiler_wl_CXX='-Wl,'
15226             lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
15227             case $host_cpu in
15228             hppa*64*|ia64*)
15229               # +Z the default
15230               ;;
15231             *)
15232               lt_prog_compiler_pic_CXX='+Z'
15233               ;;
15234             esac
15235             ;;
15236           *)
15237             ;;
15238         esac
15239         ;;
15240       interix*)
15241         # This is c89, which is MS Visual C++ (no shared libs)
15242         # Anyone wants to do a port?
15243         ;;
15244       irix5* | irix6* | nonstopux*)
15245         case $cc_basename in
15246           CC*)
15247             lt_prog_compiler_wl_CXX='-Wl,'
15248             lt_prog_compiler_static_CXX='-non_shared'
15249             # CC pic flag -KPIC is the default.
15250             ;;
15251           *)
15252             ;;
15253         esac
15254         ;;
15255       linux* | k*bsd*-gnu | kopensolaris*-gnu)
15256         case $cc_basename in
15257           KCC*)
15258             # KAI C++ Compiler
15259             lt_prog_compiler_wl_CXX='--backend -Wl,'
15260             lt_prog_compiler_pic_CXX='-fPIC'
15261             ;;
15262           ecpc* )
15263             # old Intel C++ for x86_64 which still supported -KPIC.
15264             lt_prog_compiler_wl_CXX='-Wl,'
15265             lt_prog_compiler_pic_CXX='-KPIC'
15266             lt_prog_compiler_static_CXX='-static'
15267             ;;
15268           icpc* )
15269             # Intel C++, used to be incompatible with GCC.
15270             # ICC 10 doesn't accept -KPIC any more.
15271             lt_prog_compiler_wl_CXX='-Wl,'
15272             lt_prog_compiler_pic_CXX='-fPIC'
15273             lt_prog_compiler_static_CXX='-static'
15274             ;;
15275           pgCC* | pgcpp*)
15276             # Portland Group C++ compiler
15277             lt_prog_compiler_wl_CXX='-Wl,'
15278             lt_prog_compiler_pic_CXX='-fpic'
15279             lt_prog_compiler_static_CXX='-Bstatic'
15280             ;;
15281           cxx*)
15282             # Compaq C++
15283             # Make sure the PIC flag is empty.  It appears that all Alpha
15284             # Linux and Compaq Tru64 Unix objects are PIC.
15285             lt_prog_compiler_pic_CXX=
15286             lt_prog_compiler_static_CXX='-non_shared'
15287             ;;
15288           xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
15289             # IBM XL 8.0, 9.0 on PPC and BlueGene
15290             lt_prog_compiler_wl_CXX='-Wl,'
15291             lt_prog_compiler_pic_CXX='-qpic'
15292             lt_prog_compiler_static_CXX='-qstaticlink'
15293             ;;
15294           *)
15295             case `$CC -V 2>&1 | sed 5q` in
15296             *Sun\ C*)
15297               # Sun C++ 5.9
15298               lt_prog_compiler_pic_CXX='-KPIC'
15299               lt_prog_compiler_static_CXX='-Bstatic'
15300               lt_prog_compiler_wl_CXX='-Qoption ld '
15301               ;;
15302             esac
15303             ;;
15304         esac
15305         ;;
15306       lynxos*)
15307         ;;
15308       m88k*)
15309         ;;
15310       mvs*)
15311         case $cc_basename in
15312           cxx*)
15313             lt_prog_compiler_pic_CXX='-W c,exportall'
15314             ;;
15315           *)
15316             ;;
15317         esac
15318         ;;
15319       netbsd*)
15320         ;;
15321       *qnx* | *nto*)
15322         # QNX uses GNU C++, but need to define -shared option too, otherwise
15323         # it will coredump.
15324         lt_prog_compiler_pic_CXX='-fPIC -shared'
15325         ;;
15326       osf3* | osf4* | osf5*)
15327         case $cc_basename in
15328           KCC*)
15329             lt_prog_compiler_wl_CXX='--backend -Wl,'
15330             ;;
15331           RCC*)
15332             # Rational C++ 2.4.1
15333             lt_prog_compiler_pic_CXX='-pic'
15334             ;;
15335           cxx*)
15336             # Digital/Compaq C++
15337             lt_prog_compiler_wl_CXX='-Wl,'
15338             # Make sure the PIC flag is empty.  It appears that all Alpha
15339             # Linux and Compaq Tru64 Unix objects are PIC.
15340             lt_prog_compiler_pic_CXX=
15341             lt_prog_compiler_static_CXX='-non_shared'
15342             ;;
15343           *)
15344             ;;
15345         esac
15346         ;;
15347       psos*)
15348         ;;
15349       solaris*)
15350         case $cc_basename in
15351           CC*)
15352             # Sun C++ 4.2, 5.x and Centerline C++
15353             lt_prog_compiler_pic_CXX='-KPIC'
15354             lt_prog_compiler_static_CXX='-Bstatic'
15355             lt_prog_compiler_wl_CXX='-Qoption ld '
15356             ;;
15357           gcx*)
15358             # Green Hills C++ Compiler
15359             lt_prog_compiler_pic_CXX='-PIC'
15360             ;;
15361           *)
15362             ;;
15363         esac
15364         ;;
15365       sunos4*)
15366         case $cc_basename in
15367           CC*)
15368             # Sun C++ 4.x
15369             lt_prog_compiler_pic_CXX='-pic'
15370             lt_prog_compiler_static_CXX='-Bstatic'
15371             ;;
15372           lcc*)
15373             # Lucid
15374             lt_prog_compiler_pic_CXX='-pic'
15375             ;;
15376           *)
15377             ;;
15378         esac
15379         ;;
15380       sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15381         case $cc_basename in
15382           CC*)
15383             lt_prog_compiler_wl_CXX='-Wl,'
15384             lt_prog_compiler_pic_CXX='-KPIC'
15385             lt_prog_compiler_static_CXX='-Bstatic'
15386             ;;
15387         esac
15388         ;;
15389       tandem*)
15390         case $cc_basename in
15391           NCC*)
15392             # NonStop-UX NCC 3.20
15393             lt_prog_compiler_pic_CXX='-KPIC'
15394             ;;
15395           *)
15396             ;;
15397         esac
15398         ;;
15399       vxworks*)
15400         ;;
15401       *)
15402         lt_prog_compiler_can_build_shared_CXX=no
15403         ;;
15404     esac
15405   fi
15406
15407 case $host_os in
15408   # For platforms which do not support PIC, -DPIC is meaningless:
15409   *djgpp*)
15410     lt_prog_compiler_pic_CXX=
15411     ;;
15412   *)
15413     lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15414     ;;
15415 esac
15416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15417 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15418
15419
15420
15421 #
15422 # Check to make sure the PIC flag actually works.
15423 #
15424 if test -n "$lt_prog_compiler_pic_CXX"; then
15425   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15426 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15427 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
15428   $as_echo_n "(cached) " >&6
15429 else
15430   lt_cv_prog_compiler_pic_works_CXX=no
15431    ac_outfile=conftest.$ac_objext
15432    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15433    lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15434    # Insert the option either (1) after the last *FLAGS variable, or
15435    # (2) before a word containing "conftest.", or (3) at the end.
15436    # Note that $ac_compile itself does not contain backslashes and begins
15437    # with a dollar sign (not a hyphen), so the echo should work correctly.
15438    # The option is referenced via a variable to avoid confusing sed.
15439    lt_compile=`echo "$ac_compile" | $SED \
15440    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15441    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15442    -e 's:$: $lt_compiler_flag:'`
15443    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15444    (eval "$lt_compile" 2>conftest.err)
15445    ac_status=$?
15446    cat conftest.err >&5
15447    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448    if (exit $ac_status) && test -s "$ac_outfile"; then
15449      # The compiler can only warn and ignore the option if not recognized
15450      # So say no if there are warnings other than the usual output.
15451      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15452      $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15453      if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15454        lt_cv_prog_compiler_pic_works_CXX=yes
15455      fi
15456    fi
15457    $RM conftest*
15458
15459 fi
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15461 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15462
15463 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15464     case $lt_prog_compiler_pic_CXX in
15465      "" | " "*) ;;
15466      *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15467      esac
15468 else
15469     lt_prog_compiler_pic_CXX=
15470      lt_prog_compiler_can_build_shared_CXX=no
15471 fi
15472
15473 fi
15474
15475
15476
15477 #
15478 # Check to make sure the static flag actually works.
15479 #
15480 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15482 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15483 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
15484   $as_echo_n "(cached) " >&6
15485 else
15486   lt_cv_prog_compiler_static_works_CXX=no
15487    save_LDFLAGS="$LDFLAGS"
15488    LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15489    echo "$lt_simple_link_test_code" > conftest.$ac_ext
15490    if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15491      # The linker can only warn and ignore the option if not recognized
15492      # So say no if there are warnings
15493      if test -s conftest.err; then
15494        # Append any errors to the config.log.
15495        cat conftest.err 1>&5
15496        $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15497        $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15498        if diff conftest.exp conftest.er2 >/dev/null; then
15499          lt_cv_prog_compiler_static_works_CXX=yes
15500        fi
15501      else
15502        lt_cv_prog_compiler_static_works_CXX=yes
15503      fi
15504    fi
15505    $RM -r conftest*
15506    LDFLAGS="$save_LDFLAGS"
15507
15508 fi
15509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15510 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15511
15512 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15513     :
15514 else
15515     lt_prog_compiler_static_CXX=
15516 fi
15517
15518
15519
15520
15521     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15522 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15523 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15524   $as_echo_n "(cached) " >&6
15525 else
15526   lt_cv_prog_compiler_c_o_CXX=no
15527    $RM -r conftest 2>/dev/null
15528    mkdir conftest
15529    cd conftest
15530    mkdir out
15531    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15532
15533    lt_compiler_flag="-o out/conftest2.$ac_objext"
15534    # Insert the option either (1) after the last *FLAGS variable, or
15535    # (2) before a word containing "conftest.", or (3) at the end.
15536    # Note that $ac_compile itself does not contain backslashes and begins
15537    # with a dollar sign (not a hyphen), so the echo should work correctly.
15538    lt_compile=`echo "$ac_compile" | $SED \
15539    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15540    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15541    -e 's:$: $lt_compiler_flag:'`
15542    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15543    (eval "$lt_compile" 2>out/conftest.err)
15544    ac_status=$?
15545    cat out/conftest.err >&5
15546    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15547    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15548    then
15549      # The compiler can only warn and ignore the option if not recognized
15550      # So say no if there are warnings
15551      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15552      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15553      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15554        lt_cv_prog_compiler_c_o_CXX=yes
15555      fi
15556    fi
15557    chmod u+w . 2>&5
15558    $RM conftest*
15559    # SGI C++ compiler will create directory out/ii_files/ for
15560    # template instantiation
15561    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15562    $RM out/* && rmdir out
15563    cd ..
15564    $RM -r conftest
15565    $RM conftest*
15566
15567 fi
15568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15569 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15570
15571
15572
15573     { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15574 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15575 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
15576   $as_echo_n "(cached) " >&6
15577 else
15578   lt_cv_prog_compiler_c_o_CXX=no
15579    $RM -r conftest 2>/dev/null
15580    mkdir conftest
15581    cd conftest
15582    mkdir out
15583    echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15584
15585    lt_compiler_flag="-o out/conftest2.$ac_objext"
15586    # Insert the option either (1) after the last *FLAGS variable, or
15587    # (2) before a word containing "conftest.", or (3) at the end.
15588    # Note that $ac_compile itself does not contain backslashes and begins
15589    # with a dollar sign (not a hyphen), so the echo should work correctly.
15590    lt_compile=`echo "$ac_compile" | $SED \
15591    -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15592    -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15593    -e 's:$: $lt_compiler_flag:'`
15594    (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15595    (eval "$lt_compile" 2>out/conftest.err)
15596    ac_status=$?
15597    cat out/conftest.err >&5
15598    echo "$as_me:$LINENO: \$? = $ac_status" >&5
15599    if (exit $ac_status) && test -s out/conftest2.$ac_objext
15600    then
15601      # The compiler can only warn and ignore the option if not recognized
15602      # So say no if there are warnings
15603      $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15604      $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15605      if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15606        lt_cv_prog_compiler_c_o_CXX=yes
15607      fi
15608    fi
15609    chmod u+w . 2>&5
15610    $RM conftest*
15611    # SGI C++ compiler will create directory out/ii_files/ for
15612    # template instantiation
15613    test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15614    $RM out/* && rmdir out
15615    cd ..
15616    $RM -r conftest
15617    $RM conftest*
15618
15619 fi
15620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15621 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15622
15623
15624
15625
15626 hard_links="nottested"
15627 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15628   # do not overwrite the value of need_locks provided by the user
15629   { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15630 $as_echo_n "checking if we can lock with hard links... " >&6; }
15631   hard_links=yes
15632   $RM conftest*
15633   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15634   touch conftest.a
15635   ln conftest.a conftest.b 2>&5 || hard_links=no
15636   ln conftest.a conftest.b 2>/dev/null && hard_links=no
15637   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15638 $as_echo "$hard_links" >&6; }
15639   if test "$hard_links" = no; then
15640     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15641 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15642     need_locks=warn
15643   fi
15644 else
15645   need_locks=no
15646 fi
15647
15648
15649
15650     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15651 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15652
15653   export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15654   case $host_os in
15655   aix[4-9]*)
15656     # If we're using GNU nm, then we don't want the "-C" option.
15657     # -C means demangle to AIX nm, but means don't demangle with GNU nm
15658     # Also, AIX nm treats weak defined symbols like other global defined
15659     # symbols, whereas GNU nm marks them as "W".
15660     if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15661       export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15662     else
15663       export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
15664     fi
15665     ;;
15666   pw32*)
15667     export_symbols_cmds_CXX="$ltdll_cmds"
15668   ;;
15669   cygwin* | mingw* | cegcc*)
15670     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
15671   ;;
15672   *)
15673     export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15674   ;;
15675   esac
15676   exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15677
15678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15679 $as_echo "$ld_shlibs_CXX" >&6; }
15680 test "$ld_shlibs_CXX" = no && can_build_shared=no
15681
15682 with_gnu_ld_CXX=$with_gnu_ld
15683
15684
15685
15686
15687
15688
15689 #
15690 # Do we need to explicitly link libc?
15691 #
15692 case "x$archive_cmds_need_lc_CXX" in
15693 x|xyes)
15694   # Assume -lc should be added
15695   archive_cmds_need_lc_CXX=yes
15696
15697   if test "$enable_shared" = yes && test "$GCC" = yes; then
15698     case $archive_cmds_CXX in
15699     *'~'*)
15700       # FIXME: we may have to deal with multi-command sequences.
15701       ;;
15702     '$CC '*)
15703       # Test whether the compiler implicitly links with -lc since on some
15704       # systems, -lgcc has to come before -lc. If gcc already passes -lc
15705       # to ld, don't add -lc before -lgcc.
15706       { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15707 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15708 if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
15709   $as_echo_n "(cached) " >&6
15710 else
15711   $RM conftest*
15712         echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15713
15714         if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15715   (eval $ac_compile) 2>&5
15716   ac_status=$?
15717   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15718   test $ac_status = 0; } 2>conftest.err; then
15719           soname=conftest
15720           lib=conftest
15721           libobjs=conftest.$ac_objext
15722           deplibs=
15723           wl=$lt_prog_compiler_wl_CXX
15724           pic_flag=$lt_prog_compiler_pic_CXX
15725           compiler_flags=-v
15726           linker_flags=-v
15727           verstring=
15728           output_objdir=.
15729           libname=conftest
15730           lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15731           allow_undefined_flag_CXX=
15732           if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15733   (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15734   ac_status=$?
15735   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15736   test $ac_status = 0; }
15737           then
15738             lt_cv_archive_cmds_need_lc_CXX=no
15739           else
15740             lt_cv_archive_cmds_need_lc_CXX=yes
15741           fi
15742           allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15743         else
15744           cat conftest.err 1>&5
15745         fi
15746         $RM conftest*
15747
15748 fi
15749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15750 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15751       archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15752       ;;
15753     esac
15754   fi
15755   ;;
15756 esac
15757
15758
15759
15760
15761
15762
15763
15764
15765
15766
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821     { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15822 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15823
15824 library_names_spec=
15825 libname_spec='lib$name'
15826 soname_spec=
15827 shrext_cmds=".so"
15828 postinstall_cmds=
15829 postuninstall_cmds=
15830 finish_cmds=
15831 finish_eval=
15832 shlibpath_var=
15833 shlibpath_overrides_runpath=unknown
15834 version_type=none
15835 dynamic_linker="$host_os ld.so"
15836 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15837 need_lib_prefix=unknown
15838 hardcode_into_libs=no
15839
15840 # when you set need_version to no, make sure it does not cause -set_version
15841 # flags to be left without arguments
15842 need_version=unknown
15843
15844 case $host_os in
15845 aix3*)
15846   version_type=linux
15847   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15848   shlibpath_var=LIBPATH
15849
15850   # AIX 3 has no versioning support, so we append a major version to the name.
15851   soname_spec='${libname}${release}${shared_ext}$major'
15852   ;;
15853
15854 aix[4-9]*)
15855   version_type=linux
15856   need_lib_prefix=no
15857   need_version=no
15858   hardcode_into_libs=yes
15859   if test "$host_cpu" = ia64; then
15860     # AIX 5 supports IA64
15861     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15862     shlibpath_var=LD_LIBRARY_PATH
15863   else
15864     # With GCC up to 2.95.x, collect2 would create an import file
15865     # for dependence libraries.  The import file would start with
15866     # the line `#! .'.  This would cause the generated library to
15867     # depend on `.', always an invalid library.  This was fixed in
15868     # development snapshots of GCC prior to 3.0.
15869     case $host_os in
15870       aix4 | aix4.[01] | aix4.[01].*)
15871       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15872            echo ' yes '
15873            echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15874         :
15875       else
15876         can_build_shared=no
15877       fi
15878       ;;
15879     esac
15880     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15881     # soname into executable. Probably we can add versioning support to
15882     # collect2, so additional links can be useful in future.
15883     if test "$aix_use_runtimelinking" = yes; then
15884       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15885       # instead of lib<name>.a to let people know that these are not
15886       # typical AIX shared libraries.
15887       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15888     else
15889       # We preserve .a as extension for shared libraries through AIX4.2
15890       # and later when we are not doing run time linking.
15891       library_names_spec='${libname}${release}.a $libname.a'
15892       soname_spec='${libname}${release}${shared_ext}$major'
15893     fi
15894     shlibpath_var=LIBPATH
15895   fi
15896   ;;
15897
15898 amigaos*)
15899   case $host_cpu in
15900   powerpc)
15901     # Since July 2007 AmigaOS4 officially supports .so libraries.
15902     # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15903     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15904     ;;
15905   m68k)
15906     library_names_spec='$libname.ixlibrary $libname.a'
15907     # Create ${libname}_ixlibrary.a entries in /sys/libs.
15908     finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
15909     ;;
15910   esac
15911   ;;
15912
15913 beos*)
15914   library_names_spec='${libname}${shared_ext}'
15915   dynamic_linker="$host_os ld.so"
15916   shlibpath_var=LIBRARY_PATH
15917   ;;
15918
15919 bsdi[45]*)
15920   version_type=linux
15921   need_version=no
15922   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15923   soname_spec='${libname}${release}${shared_ext}$major'
15924   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15925   shlibpath_var=LD_LIBRARY_PATH
15926   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15927   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15928   # the default ld.so.conf also contains /usr/contrib/lib and
15929   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15930   # libtool to hard-code these into programs
15931   ;;
15932
15933 cygwin* | mingw* | pw32* | cegcc*)
15934   version_type=windows
15935   shrext_cmds=".dll"
15936   need_version=no
15937   need_lib_prefix=no
15938
15939   case $GCC,$host_os in
15940   yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15941     library_names_spec='$libname.dll.a'
15942     # DLL is installed to $(libdir)/../bin by postinstall_cmds
15943     postinstall_cmds='base_file=`basename \${file}`~
15944       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15945       dldir=$destdir/`dirname \$dlpath`~
15946       test -d \$dldir || mkdir -p \$dldir~
15947       $install_prog $dir/$dlname \$dldir/$dlname~
15948       chmod a+x \$dldir/$dlname~
15949       if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15950         eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15951       fi'
15952     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15953       dlpath=$dir/\$dldll~
15954        $RM \$dlpath'
15955     shlibpath_overrides_runpath=yes
15956
15957     case $host_os in
15958     cygwin*)
15959       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15960       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15961
15962       ;;
15963     mingw* | cegcc*)
15964       # MinGW DLLs use traditional 'lib' prefix
15965       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15966       ;;
15967     pw32*)
15968       # pw32 DLLs use 'pw' prefix rather than 'lib'
15969       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15970       ;;
15971     esac
15972     ;;
15973
15974   *)
15975     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15976     ;;
15977   esac
15978   dynamic_linker='Win32 ld.exe'
15979   # FIXME: first we should search . and the directory the executable is in
15980   shlibpath_var=PATH
15981   ;;
15982
15983 darwin* | rhapsody*)
15984   dynamic_linker="$host_os dyld"
15985   version_type=darwin
15986   need_lib_prefix=no
15987   need_version=no
15988   library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15989   soname_spec='${libname}${release}${major}$shared_ext'
15990   shlibpath_overrides_runpath=yes
15991   shlibpath_var=DYLD_LIBRARY_PATH
15992   shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15993
15994   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15995   ;;
15996
15997 dgux*)
15998   version_type=linux
15999   need_lib_prefix=no
16000   need_version=no
16001   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16002   soname_spec='${libname}${release}${shared_ext}$major'
16003   shlibpath_var=LD_LIBRARY_PATH
16004   ;;
16005
16006 freebsd* | dragonfly*)
16007   # DragonFly does not have aout.  When/if they implement a new
16008   # versioning mechanism, adjust this.
16009   if test -x /usr/bin/objformat; then
16010     objformat=`/usr/bin/objformat`
16011   else
16012     case $host_os in
16013     freebsd[23].*) objformat=aout ;;
16014     *) objformat=elf ;;
16015     esac
16016   fi
16017   version_type=freebsd-$objformat
16018   case $version_type in
16019     freebsd-elf*)
16020       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16021       need_version=no
16022       need_lib_prefix=no
16023       ;;
16024     freebsd-*)
16025       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16026       need_version=yes
16027       ;;
16028   esac
16029   shlibpath_var=LD_LIBRARY_PATH
16030   case $host_os in
16031   freebsd2.*)
16032     shlibpath_overrides_runpath=yes
16033     ;;
16034   freebsd3.[01]* | freebsdelf3.[01]*)
16035     shlibpath_overrides_runpath=yes
16036     hardcode_into_libs=yes
16037     ;;
16038   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
16039   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
16040     shlibpath_overrides_runpath=no
16041     hardcode_into_libs=yes
16042     ;;
16043   *) # from 4.6 on, and DragonFly
16044     shlibpath_overrides_runpath=yes
16045     hardcode_into_libs=yes
16046     ;;
16047   esac
16048   ;;
16049
16050 gnu*)
16051   version_type=linux
16052   need_lib_prefix=no
16053   need_version=no
16054   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16055   soname_spec='${libname}${release}${shared_ext}$major'
16056   shlibpath_var=LD_LIBRARY_PATH
16057   hardcode_into_libs=yes
16058   ;;
16059
16060 haiku*)
16061   version_type=linux
16062   need_lib_prefix=no
16063   need_version=no
16064   dynamic_linker="$host_os runtime_loader"
16065   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16066   soname_spec='${libname}${release}${shared_ext}$major'
16067   shlibpath_var=LIBRARY_PATH
16068   shlibpath_overrides_runpath=yes
16069   sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
16070   hardcode_into_libs=yes
16071   ;;
16072
16073 hpux9* | hpux10* | hpux11*)
16074   # Give a soname corresponding to the major version so that dld.sl refuses to
16075   # link against other versions.
16076   version_type=sunos
16077   need_lib_prefix=no
16078   need_version=no
16079   case $host_cpu in
16080   ia64*)
16081     shrext_cmds='.so'
16082     hardcode_into_libs=yes
16083     dynamic_linker="$host_os dld.so"
16084     shlibpath_var=LD_LIBRARY_PATH
16085     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16086     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16087     soname_spec='${libname}${release}${shared_ext}$major'
16088     if test "X$HPUX_IA64_MODE" = X32; then
16089       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16090     else
16091       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16092     fi
16093     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16094     ;;
16095   hppa*64*)
16096     shrext_cmds='.sl'
16097     hardcode_into_libs=yes
16098     dynamic_linker="$host_os dld.sl"
16099     shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16100     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16101     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16102     soname_spec='${libname}${release}${shared_ext}$major'
16103     sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16104     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16105     ;;
16106   *)
16107     shrext_cmds='.sl'
16108     dynamic_linker="$host_os dld.sl"
16109     shlibpath_var=SHLIB_PATH
16110     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16111     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16112     soname_spec='${libname}${release}${shared_ext}$major'
16113     ;;
16114   esac
16115   # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
16116   postinstall_cmds='chmod 555 $lib'
16117   # or fails outright, so override atomically:
16118   install_override_mode=555
16119   ;;
16120
16121 interix[3-9]*)
16122   version_type=linux
16123   need_lib_prefix=no
16124   need_version=no
16125   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16126   soname_spec='${libname}${release}${shared_ext}$major'
16127   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
16128   shlibpath_var=LD_LIBRARY_PATH
16129   shlibpath_overrides_runpath=no
16130   hardcode_into_libs=yes
16131   ;;
16132
16133 irix5* | irix6* | nonstopux*)
16134   case $host_os in
16135     nonstopux*) version_type=nonstopux ;;
16136     *)
16137         if test "$lt_cv_prog_gnu_ld" = yes; then
16138                 version_type=linux
16139         else
16140                 version_type=irix
16141         fi ;;
16142   esac
16143   need_lib_prefix=no
16144   need_version=no
16145   soname_spec='${libname}${release}${shared_ext}$major'
16146   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16147   case $host_os in
16148   irix5* | nonstopux*)
16149     libsuff= shlibsuff=
16150     ;;
16151   *)
16152     case $LD in # libtool.m4 will add one of these switches to LD
16153     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16154       libsuff= shlibsuff= libmagic=32-bit;;
16155     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16156       libsuff=32 shlibsuff=N32 libmagic=N32;;
16157     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16158       libsuff=64 shlibsuff=64 libmagic=64-bit;;
16159     *) libsuff= shlibsuff= libmagic=never-match;;
16160     esac
16161     ;;
16162   esac
16163   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16164   shlibpath_overrides_runpath=no
16165   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16166   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16167   hardcode_into_libs=yes
16168   ;;
16169
16170 # No shared lib support for Linux oldld, aout, or coff.
16171 linux*oldld* | linux*aout* | linux*coff*)
16172   dynamic_linker=no
16173   ;;
16174
16175 # This must be Linux ELF.
16176 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16177   version_type=linux
16178   need_lib_prefix=no
16179   need_version=no
16180   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16181   soname_spec='${libname}${release}${shared_ext}$major'
16182   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16183   shlibpath_var=LD_LIBRARY_PATH
16184   shlibpath_overrides_runpath=no
16185
16186   # Some binutils ld are patched to set DT_RUNPATH
16187   if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
16188   $as_echo_n "(cached) " >&6
16189 else
16190   lt_cv_shlibpath_overrides_runpath=no
16191     save_LDFLAGS=$LDFLAGS
16192     save_libdir=$libdir
16193     eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
16194          LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
16195     if test x$gcc_no_link = xyes; then
16196   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16197 fi
16198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16199 /* end confdefs.h.  */
16200
16201 int
16202 main ()
16203 {
16204
16205   ;
16206   return 0;
16207 }
16208 _ACEOF
16209 if ac_fn_cxx_try_link "$LINENO"; then :
16210   if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
16211   lt_cv_shlibpath_overrides_runpath=yes
16212 fi
16213 fi
16214 rm -f core conftest.err conftest.$ac_objext \
16215     conftest$ac_exeext conftest.$ac_ext
16216     LDFLAGS=$save_LDFLAGS
16217     libdir=$save_libdir
16218
16219 fi
16220
16221   shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
16222
16223   # This implies no fast_install, which is unacceptable.
16224   # Some rework will be needed to allow for fast_install
16225   # before this can be enabled.
16226   hardcode_into_libs=yes
16227
16228   # Append ld.so.conf contents to the search path
16229   if test -f /etc/ld.so.conf; then
16230     lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[       ]*hwcap[        ]/d;s/[:,      ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
16231     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16232   fi
16233
16234   # We used to test for /lib/ld.so.1 and disable shared libraries on
16235   # powerpc, because MkLinux only supported shared libraries with the
16236   # GNU dynamic linker.  Since this was broken with cross compilers,
16237   # most powerpc-linux boxes support dynamic linking these days and
16238   # people can always --disable-shared, the test was removed, and we
16239   # assume the GNU/Linux dynamic linker is in use.
16240   dynamic_linker='GNU/Linux ld.so'
16241   ;;
16242
16243 netbsd*)
16244   version_type=sunos
16245   need_lib_prefix=no
16246   need_version=no
16247   if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16248     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16249     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16250     dynamic_linker='NetBSD (a.out) ld.so'
16251   else
16252     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16253     soname_spec='${libname}${release}${shared_ext}$major'
16254     dynamic_linker='NetBSD ld.elf_so'
16255   fi
16256   shlibpath_var=LD_LIBRARY_PATH
16257   shlibpath_overrides_runpath=yes
16258   hardcode_into_libs=yes
16259   ;;
16260
16261 newsos6)
16262   version_type=linux
16263   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16264   shlibpath_var=LD_LIBRARY_PATH
16265   shlibpath_overrides_runpath=yes
16266   ;;
16267
16268 *nto* | *qnx*)
16269   version_type=qnx
16270   need_lib_prefix=no
16271   need_version=no
16272   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16273   soname_spec='${libname}${release}${shared_ext}$major'
16274   shlibpath_var=LD_LIBRARY_PATH
16275   shlibpath_overrides_runpath=no
16276   hardcode_into_libs=yes
16277   dynamic_linker='ldqnx.so'
16278   ;;
16279
16280 openbsd*)
16281   version_type=sunos
16282   sys_lib_dlsearch_path_spec="/usr/lib"
16283   need_lib_prefix=no
16284   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
16285   case $host_os in
16286     openbsd3.3 | openbsd3.3.*)  need_version=yes ;;
16287     *)                          need_version=no  ;;
16288   esac
16289   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16290   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16291   shlibpath_var=LD_LIBRARY_PATH
16292   if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16293     case $host_os in
16294       openbsd2.[89] | openbsd2.[89].*)
16295         shlibpath_overrides_runpath=no
16296         ;;
16297       *)
16298         shlibpath_overrides_runpath=yes
16299         ;;
16300       esac
16301   else
16302     shlibpath_overrides_runpath=yes
16303   fi
16304   ;;
16305
16306 os2*)
16307   libname_spec='$name'
16308   shrext_cmds=".dll"
16309   need_lib_prefix=no
16310   library_names_spec='$libname${shared_ext} $libname.a'
16311   dynamic_linker='OS/2 ld.exe'
16312   shlibpath_var=LIBPATH
16313   ;;
16314
16315 osf3* | osf4* | osf5*)
16316   version_type=osf
16317   need_lib_prefix=no
16318   need_version=no
16319   soname_spec='${libname}${release}${shared_ext}$major'
16320   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16321   shlibpath_var=LD_LIBRARY_PATH
16322   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16323   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16324   ;;
16325
16326 rdos*)
16327   dynamic_linker=no
16328   ;;
16329
16330 solaris*)
16331   version_type=linux
16332   need_lib_prefix=no
16333   need_version=no
16334   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16335   soname_spec='${libname}${release}${shared_ext}$major'
16336   shlibpath_var=LD_LIBRARY_PATH
16337   shlibpath_overrides_runpath=yes
16338   hardcode_into_libs=yes
16339   # ldd complains unless libraries are executable
16340   postinstall_cmds='chmod +x $lib'
16341   ;;
16342
16343 sunos4*)
16344   version_type=sunos
16345   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16346   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16347   shlibpath_var=LD_LIBRARY_PATH
16348   shlibpath_overrides_runpath=yes
16349   if test "$with_gnu_ld" = yes; then
16350     need_lib_prefix=no
16351   fi
16352   need_version=yes
16353   ;;
16354
16355 sysv4 | sysv4.3*)
16356   version_type=linux
16357   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16358   soname_spec='${libname}${release}${shared_ext}$major'
16359   shlibpath_var=LD_LIBRARY_PATH
16360   case $host_vendor in
16361     sni)
16362       shlibpath_overrides_runpath=no
16363       need_lib_prefix=no
16364       runpath_var=LD_RUN_PATH
16365       ;;
16366     siemens)
16367       need_lib_prefix=no
16368       ;;
16369     motorola)
16370       need_lib_prefix=no
16371       need_version=no
16372       shlibpath_overrides_runpath=no
16373       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16374       ;;
16375   esac
16376   ;;
16377
16378 sysv4*MP*)
16379   if test -d /usr/nec ;then
16380     version_type=linux
16381     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16382     soname_spec='$libname${shared_ext}.$major'
16383     shlibpath_var=LD_LIBRARY_PATH
16384   fi
16385   ;;
16386
16387 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16388   version_type=freebsd-elf
16389   need_lib_prefix=no
16390   need_version=no
16391   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16392   soname_spec='${libname}${release}${shared_ext}$major'
16393   shlibpath_var=LD_LIBRARY_PATH
16394   shlibpath_overrides_runpath=yes
16395   hardcode_into_libs=yes
16396   if test "$with_gnu_ld" = yes; then
16397     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16398   else
16399     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16400     case $host_os in
16401       sco3.2v5*)
16402         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16403         ;;
16404     esac
16405   fi
16406   sys_lib_dlsearch_path_spec='/usr/lib'
16407   ;;
16408
16409 tpf*)
16410   # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
16411   version_type=linux
16412   need_lib_prefix=no
16413   need_version=no
16414   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16415   shlibpath_var=LD_LIBRARY_PATH
16416   shlibpath_overrides_runpath=no
16417   hardcode_into_libs=yes
16418   ;;
16419
16420 uts4*)
16421   version_type=linux
16422   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16423   soname_spec='${libname}${release}${shared_ext}$major'
16424   shlibpath_var=LD_LIBRARY_PATH
16425   ;;
16426
16427 *)
16428   dynamic_linker=no
16429   ;;
16430 esac
16431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16432 $as_echo "$dynamic_linker" >&6; }
16433 test "$dynamic_linker" = no && can_build_shared=no
16434
16435 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16436 if test "$GCC" = yes; then
16437   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16438 fi
16439
16440 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16441   sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16442 fi
16443 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16444   sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16445 fi
16446
16447
16448
16449
16450
16451
16452
16453
16454
16455
16456
16457
16458
16459
16460
16461
16462
16463
16464
16465
16466
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16485 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16486 hardcode_action_CXX=
16487 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16488    test -n "$runpath_var_CXX" ||
16489    test "X$hardcode_automatic_CXX" = "Xyes" ; then
16490
16491   # We can hardcode non-existent directories.
16492   if test "$hardcode_direct_CXX" != no &&
16493      # If the only mechanism to avoid hardcoding is shlibpath_var, we
16494      # have to relink, otherwise we might link with an installed library
16495      # when we should be linking with a yet-to-be-installed one
16496      ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16497      test "$hardcode_minus_L_CXX" != no; then
16498     # Linking always hardcodes the temporary library directory.
16499     hardcode_action_CXX=relink
16500   else
16501     # We can link without hardcoding, and we can hardcode nonexisting dirs.
16502     hardcode_action_CXX=immediate
16503   fi
16504 else
16505   # We cannot hardcode anything, or else we can only hardcode existing
16506   # directories.
16507   hardcode_action_CXX=unsupported
16508 fi
16509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16510 $as_echo "$hardcode_action_CXX" >&6; }
16511
16512 if test "$hardcode_action_CXX" = relink ||
16513    test "$inherit_rpath_CXX" = yes; then
16514   # Fast installation is not supported
16515   enable_fast_install=no
16516 elif test "$shlibpath_overrides_runpath" = yes ||
16517      test "$enable_shared" = no; then
16518   # Fast installation is not necessary
16519   enable_fast_install=needless
16520 fi
16521
16522
16523
16524
16525
16526
16527
16528   fi # test -n "$compiler"
16529
16530   CC=$lt_save_CC
16531   LDCXX=$LD
16532   LD=$lt_save_LD
16533   GCC=$lt_save_GCC
16534   with_gnu_ld=$lt_save_with_gnu_ld
16535   lt_cv_path_LDCXX=$lt_cv_path_LD
16536   lt_cv_path_LD=$lt_save_path_LD
16537   lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16538   lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16539 fi # test "$_lt_caught_CXX_error" != yes
16540
16541 ac_ext=c
16542 ac_cpp='$CPP $CPPFLAGS'
16543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16546
16547
16548
16549 # Handle -Werror default case.
16550 if test "$ENABLE_WERROR" = default; then
16551   case "$host_os" in
16552     *linux*)
16553       if test "$GCC" = yes; then
16554         ENABLE_WERROR=yes
16555       fi
16556       ;;
16557   esac
16558 fi
16559
16560 if test "x${COMPILE_COLLECTIONS}" = xyes; then
16561   # Extract the first word of "perl", so it can be a program name with args.
16562 set dummy perl; ac_word=$2
16563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16564 $as_echo_n "checking for $ac_word... " >&6; }
16565 if test "${ac_cv_path_PERL+set}" = set; then :
16566   $as_echo_n "(cached) " >&6
16567 else
16568   case $PERL in
16569   [\\/]* | ?:[\\/]*)
16570   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
16571   ;;
16572   *)
16573   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16574 for as_dir in $PATH
16575 do
16576   IFS=$as_save_IFS
16577   test -z "$as_dir" && as_dir=.
16578     for ac_exec_ext in '' $ac_executable_extensions; do
16579   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
16580     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
16581     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16582     break 2
16583   fi
16584 done
16585   done
16586 IFS=$as_save_IFS
16587
16588   ;;
16589 esac
16590 fi
16591 PERL=$ac_cv_path_PERL
16592 if test -n "$PERL"; then
16593   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
16594 $as_echo "$PERL" >&6; }
16595 else
16596   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16597 $as_echo "no" >&6; }
16598 fi
16599
16600
16601
16602
16603   ac_config_files="$ac_config_files lib/mkcollections.pl"
16604
16605   ac_config_commands="$ac_config_commands mkcollections.pl"
16606
16607 fi
16608
16609 if test "x${COMPILE_JNI}" = xyes; then
16610
16611
16612
16613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((,,))" >&5
16614 $as_echo_n "checking __attribute__((,,))... " >&6; }
16615  if test "${gcc_cv_c_gcc_attribute_supported+set}" = set; then :
16616   $as_echo_n "(cached) " >&6
16617 else
16618
16619   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16620 /* end confdefs.h.  */
16621
16622 int
16623 main ()
16624 {
16625 extern int testfunction(int x) __attribute__((,,))
16626   ;
16627   return 0;
16628 }
16629 _ACEOF
16630 if ac_fn_c_try_compile "$LINENO"; then :
16631   gcc_cv_c_gcc_attribute_supported=yes
16632 else
16633   gcc_cv_c_gcc_attribute_supported=no
16634 fi
16635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16636
16637 fi
16638
16639  if test "x$gcc_cv_c_gcc_attribute_supported" = xyes; then
16640   true
16641   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16642 $as_echo "yes" >&6; }
16643
16644 $as_echo "#define HAVE_GNUC25_ATTRIB /**/" >>confdefs.h
16645
16646
16647  else
16648   true
16649   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16650 $as_echo "no" >&6; }
16651
16652  fi
16653
16654
16655
16656
16657
16658
16659
16660
16661
16662  { $as_echo "$as_me:${as_lineno-$LINENO}: checking __attribute__((unused))" >&5
16663 $as_echo_n "checking __attribute__((unused))... " >&6; }
16664  if test "${gcc_cv_c_gcc_attribute_unused+set}" = set; then :
16665   $as_echo_n "(cached) " >&6
16666 else
16667
16668   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16669 /* end confdefs.h.  */
16670
16671 int
16672 main ()
16673 {
16674 extern int testfunction(int x) __attribute__((unused))
16675   ;
16676   return 0;
16677 }
16678 _ACEOF
16679 if ac_fn_c_try_compile "$LINENO"; then :
16680   gcc_cv_c_gcc_attribute_unused=yes
16681 else
16682   gcc_cv_c_gcc_attribute_unused=no
16683 fi
16684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16685
16686 fi
16687
16688  if test "x$gcc_cv_c_gcc_attribute_unused" = xyes; then
16689   true
16690   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16691 $as_echo "yes" >&6; }
16692
16693 $as_echo "#define HAVE_GNUC25_UNUSED /**/" >>confdefs.h
16694
16695
16696  else
16697   true
16698   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16699 $as_echo "no" >&6; }
16700
16701  fi
16702
16703
16704
16705
16706
16707   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
16708 $as_echo_n "checking for ANSI C header files... " >&6; }
16709 if test "${ac_cv_header_stdc+set}" = set; then :
16710   $as_echo_n "(cached) " >&6
16711 else
16712   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16713 /* end confdefs.h.  */
16714 #include <stdlib.h>
16715 #include <stdarg.h>
16716 #include <string.h>
16717 #include <float.h>
16718
16719 int
16720 main ()
16721 {
16722
16723   ;
16724   return 0;
16725 }
16726 _ACEOF
16727 if ac_fn_c_try_compile "$LINENO"; then :
16728   ac_cv_header_stdc=yes
16729 else
16730   ac_cv_header_stdc=no
16731 fi
16732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16733
16734 if test $ac_cv_header_stdc = yes; then
16735   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
16736   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16737 /* end confdefs.h.  */
16738 #include <string.h>
16739
16740 _ACEOF
16741 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16742   $EGREP "memchr" >/dev/null 2>&1; then :
16743
16744 else
16745   ac_cv_header_stdc=no
16746 fi
16747 rm -f conftest*
16748
16749 fi
16750
16751 if test $ac_cv_header_stdc = yes; then
16752   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
16753   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16754 /* end confdefs.h.  */
16755 #include <stdlib.h>
16756
16757 _ACEOF
16758 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
16759   $EGREP "free" >/dev/null 2>&1; then :
16760
16761 else
16762   ac_cv_header_stdc=no
16763 fi
16764 rm -f conftest*
16765
16766 fi
16767
16768 if test $ac_cv_header_stdc = yes; then
16769   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
16770   if test "$cross_compiling" = yes; then :
16771   :
16772 else
16773   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16774 /* end confdefs.h.  */
16775 #include <ctype.h>
16776 #include <stdlib.h>
16777 #if ((' ' & 0x0FF) == 0x020)
16778 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
16779 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
16780 #else
16781 # define ISLOWER(c) \
16782                    (('a' <= (c) && (c) <= 'i') \
16783                      || ('j' <= (c) && (c) <= 'r') \
16784                      || ('s' <= (c) && (c) <= 'z'))
16785 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
16786 #endif
16787
16788 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
16789 int
16790 main ()
16791 {
16792   int i;
16793   for (i = 0; i < 256; i++)
16794     if (XOR (islower (i), ISLOWER (i))
16795         || toupper (i) != TOUPPER (i))
16796       return 2;
16797   return 0;
16798 }
16799 _ACEOF
16800 if ac_fn_c_try_run "$LINENO"; then :
16801
16802 else
16803   ac_cv_header_stdc=no
16804 fi
16805 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16806   conftest.$ac_objext conftest.beam conftest.$ac_ext
16807 fi
16808
16809 fi
16810 fi
16811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
16812 $as_echo "$ac_cv_header_stdc" >&6; }
16813 if test $ac_cv_header_stdc = yes; then
16814
16815 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
16816
16817 fi
16818
16819
16820       { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16821 $as_echo_n "checking size of void *... " >&6; }
16822 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16823   $as_echo_n "(cached) " >&6
16824 else
16825   for ac_size in 4 8 1 2 16 12  ; do # List sizes in rough order of prevalence.
16826   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16827 /* end confdefs.h.  */
16828 #include "confdefs.h"
16829 #include <sys/types.h>
16830
16831
16832 int
16833 main ()
16834 {
16835 switch (0) case 0: case (sizeof (void *) == $ac_size):;
16836   ;
16837   return 0;
16838 }
16839 _ACEOF
16840 if ac_fn_c_try_compile "$LINENO"; then :
16841   ac_cv_sizeof_void_p=$ac_size
16842 fi
16843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16844   if test x$ac_cv_sizeof_void_p != x ; then break; fi
16845 done
16846
16847 fi
16848
16849 if test x$ac_cv_sizeof_void_p = x ; then
16850   as_fn_error "cannot determine a size for void *" "$LINENO" 5
16851 fi
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16853 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16854
16855 cat >>confdefs.h <<_ACEOF
16856 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16857 _ACEOF
16858
16859
16860
16861     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
16862 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
16863 if test "${ac_cv_c_bigendian+set}" = set; then :
16864   $as_echo_n "(cached) " >&6
16865 else
16866   ac_cv_c_bigendian=unknown
16867 # See if sys/param.h defines the BYTE_ORDER macro.
16868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16869 /* end confdefs.h.  */
16870 #include <sys/types.h>
16871 #include <sys/param.h>
16872 int
16873 main ()
16874 {
16875
16876 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
16877  bogus endian macros
16878 #endif
16879   ;
16880   return 0;
16881 }
16882 _ACEOF
16883 if ac_fn_c_try_compile "$LINENO"; then :
16884   # It does; now see whether it defined to BIG_ENDIAN or not.
16885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16886 /* end confdefs.h.  */
16887 #include <sys/types.h>
16888 #include <sys/param.h>
16889 int
16890 main ()
16891 {
16892
16893 #if BYTE_ORDER != BIG_ENDIAN
16894  not big endian
16895 #endif
16896   ;
16897   return 0;
16898 }
16899 _ACEOF
16900 if ac_fn_c_try_compile "$LINENO"; then :
16901   ac_cv_c_bigendian=yes
16902 else
16903   ac_cv_c_bigendian=no
16904 fi
16905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16906 fi
16907 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16908 if test $ac_cv_c_bigendian = unknown; then
16909 if test "$cross_compiling" = yes; then :
16910    echo $ac_n "cross-compiling... " 2>&6
16911 else
16912   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16913 /* end confdefs.h.  */
16914 main () {
16915   /* Are we little or big endian?  From Harbison&Steele.  */
16916   union
16917   {
16918     long l;
16919     char c[sizeof (long)];
16920   } u;
16921   u.l = 1;
16922   exit (u.c[sizeof (long) - 1] == 1);
16923 }
16924 _ACEOF
16925 if ac_fn_c_try_run "$LINENO"; then :
16926   ac_cv_c_bigendian=no
16927 else
16928   ac_cv_c_bigendian=yes
16929 fi
16930 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
16931   conftest.$ac_objext conftest.beam conftest.$ac_ext
16932 fi
16933
16934 fi
16935 fi
16936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16937 $as_echo "$ac_cv_c_bigendian" >&6; }
16938 if test $ac_cv_c_bigendian = unknown; then
16939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking to probe for byte ordering" >&5
16940 $as_echo_n "checking to probe for byte ordering... " >&6; }
16941
16942 cat >conftest.c <<EOF
16943 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
16944 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
16945 void _ascii() { char* s = (char*) ascii_mm; s = (char*) ascii_ii; }
16946 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
16947 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
16948 void _ebcdic() { char* s = (char*) ebcdic_mm; s = (char*) ebcdic_ii; }
16949 int main() { _ascii (); _ebcdic (); return 0; }
16950 EOF
16951  if test -f conftest.c ; then
16952      if ${CC-cc} ${CFLAGS} -c conftest.c -o conftest.o && test -f conftest.o ; then
16953         if test `grep -l BIGenDianSyS conftest.o` ; then
16954            echo $ac_n ' big endian probe OK, ' 1>&6
16955            ac_cv_c_bigendian=yes
16956         fi
16957         if test `grep -l LiTTleEnDian conftest.o` ; then
16958            echo $ac_n ' little endian probe OK, ' 1>&6
16959            if test $ac_cv_c_bigendian = yes ; then
16960             ac_cv_c_bigendian=unknown;
16961            else
16962             ac_cv_c_bigendian=no
16963            fi
16964         fi
16965         echo $ac_n 'guessing bigendian ...  ' >&6
16966      fi
16967   fi
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
16969 $as_echo "$ac_cv_c_bigendian" >&6; }
16970 fi
16971 if test $ac_cv_c_bigendian = yes; then
16972
16973 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
16974
16975
16976 $as_echo "#define HOST_WORDS_BIG_ENDIAN 1" >>confdefs.h
16977
16978   BYTEORDER=4321
16979 else
16980   BYTEORDER=1234
16981 fi
16982
16983 cat >>confdefs.h <<_ACEOF
16984 #define BYTEORDER $BYTEORDER
16985 _ACEOF
16986
16987 if test $ac_cv_c_bigendian = unknown; then
16988   as_fn_error "unknown endianess - sorry, please pre-set ac_cv_c_bigendian" "$LINENO" 5
16989 fi
16990
16991
16992                 for ac_header in unistd.h sys/types.h sys/config.h sys/ioctl.h \
16993                     asm/ioctls.h \
16994                     inttypes.h stdint.h utime.h sys/utime.h sys/filio.h \
16995                     sys/time.h \
16996                     sys/select.h \
16997                     crt_externs.h \
16998                     fcntl.h \
16999                     sys/mman.h \
17000                     magic.h \
17001                     sys/event.h sys/epoll.h \
17002                     ifaddrs.h \
17003                     netinet/in_systm.h netinet/ip.h net/if.h \
17004                     sys/loadavg.h sys/sockio.h
17005 do :
17006   as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
17007 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
17008 eval as_val=\$$as_ac_Header
17009    if test "x$as_val" = x""yes; then :
17010   cat >>confdefs.h <<_ACEOF
17011 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
17012 _ACEOF
17013
17014 fi
17015
17016 done
17017
17018
17019   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17020 /* end confdefs.h.  */
17021 #include <stdint.h>
17022
17023 _ACEOF
17024 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17025   $EGREP "uint32_t" >/dev/null 2>&1; then :
17026
17027 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17028
17029 fi
17030 rm -f conftest*
17031
17032   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17033 /* end confdefs.h.  */
17034 #include <inttypes.h>
17035
17036 _ACEOF
17037 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17038   $EGREP "uint32_t" >/dev/null 2>&1; then :
17039
17040 $as_echo "#define HAVE_INT32_DEFINED 1" >>confdefs.h
17041
17042 fi
17043 rm -f conftest*
17044
17045   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17046 /* end confdefs.h.  */
17047 #include <sys/types.h>
17048
17049 _ACEOF
17050 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17051   $EGREP "u_int32_t" >/dev/null 2>&1; then :
17052
17053 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17054
17055 fi
17056 rm -f conftest*
17057
17058   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17059 /* end confdefs.h.  */
17060 #include <sys/config.h>
17061
17062 _ACEOF
17063 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17064   $EGREP "u_int32_t" >/dev/null 2>&1; then :
17065
17066 $as_echo "#define HAVE_BSD_INT32_DEFINED 1" >>confdefs.h
17067
17068 fi
17069 rm -f conftest*
17070
17071
17072   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
17073 $as_echo_n "checking for library containing clock_gettime... " >&6; }
17074 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17075   $as_echo_n "(cached) " >&6
17076 else
17077   ac_func_search_save_LIBS=$LIBS
17078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17079 /* end confdefs.h.  */
17080
17081 /* Override any GCC internal prototype to avoid an error.
17082    Use char because int might match the return type of a GCC
17083    builtin and then its argument prototype would still apply.  */
17084 #ifdef __cplusplus
17085 extern "C"
17086 #endif
17087 char clock_gettime ();
17088 int
17089 main ()
17090 {
17091 return clock_gettime ();
17092   ;
17093   return 0;
17094 }
17095 _ACEOF
17096 for ac_lib in '' rt; do
17097   if test -z "$ac_lib"; then
17098     ac_res="none required"
17099   else
17100     ac_res=-l$ac_lib
17101     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17102   fi
17103   if test x$gcc_no_link = xyes; then
17104   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17105 fi
17106 if ac_fn_c_try_link "$LINENO"; then :
17107   ac_cv_search_clock_gettime=$ac_res
17108 fi
17109 rm -f core conftest.err conftest.$ac_objext \
17110     conftest$ac_exeext
17111   if test "${ac_cv_search_clock_gettime+set}" = set; then :
17112   break
17113 fi
17114 done
17115 if test "${ac_cv_search_clock_gettime+set}" = set; then :
17116
17117 else
17118   ac_cv_search_clock_gettime=no
17119 fi
17120 rm conftest.$ac_ext
17121 LIBS=$ac_func_search_save_LIBS
17122 fi
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
17124 $as_echo "$ac_cv_search_clock_gettime" >&6; }
17125 ac_res=$ac_cv_search_clock_gettime
17126 if test "$ac_res" != no; then :
17127   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17128
17129 fi
17130
17131   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inet_pton" >&5
17132 $as_echo_n "checking for library containing inet_pton... " >&6; }
17133 if test "${ac_cv_search_inet_pton+set}" = set; then :
17134   $as_echo_n "(cached) " >&6
17135 else
17136   ac_func_search_save_LIBS=$LIBS
17137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17138 /* end confdefs.h.  */
17139
17140 /* Override any GCC internal prototype to avoid an error.
17141    Use char because int might match the return type of a GCC
17142    builtin and then its argument prototype would still apply.  */
17143 #ifdef __cplusplus
17144 extern "C"
17145 #endif
17146 char inet_pton ();
17147 int
17148 main ()
17149 {
17150 return inet_pton ();
17151   ;
17152   return 0;
17153 }
17154 _ACEOF
17155 for ac_lib in '' nsl; do
17156   if test -z "$ac_lib"; then
17157     ac_res="none required"
17158   else
17159     ac_res=-l$ac_lib
17160     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
17161   fi
17162   if test x$gcc_no_link = xyes; then
17163   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17164 fi
17165 if ac_fn_c_try_link "$LINENO"; then :
17166   ac_cv_search_inet_pton=$ac_res
17167 fi
17168 rm -f core conftest.err conftest.$ac_objext \
17169     conftest$ac_exeext
17170   if test "${ac_cv_search_inet_pton+set}" = set; then :
17171   break
17172 fi
17173 done
17174 if test "${ac_cv_search_inet_pton+set}" = set; then :
17175
17176 else
17177   ac_cv_search_inet_pton=no
17178 fi
17179 rm conftest.$ac_ext
17180 LIBS=$ac_func_search_save_LIBS
17181 fi
17182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inet_pton" >&5
17183 $as_echo "$ac_cv_search_inet_pton" >&6; }
17184 ac_res=$ac_cv_search_inet_pton
17185 if test "$ac_res" != no; then :
17186   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
17187
17188 fi
17189
17190   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostname in -lsocket" >&5
17191 $as_echo_n "checking for gethostname in -lsocket... " >&6; }
17192 if test "${ac_cv_lib_socket_gethostname+set}" = set; then :
17193   $as_echo_n "(cached) " >&6
17194 else
17195   ac_check_lib_save_LIBS=$LIBS
17196 LIBS="-lsocket  $LIBS"
17197 if test x$gcc_no_link = xyes; then
17198   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17199 fi
17200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17201 /* end confdefs.h.  */
17202
17203 /* Override any GCC internal prototype to avoid an error.
17204    Use char because int might match the return type of a GCC
17205    builtin and then its argument prototype would still apply.  */
17206 #ifdef __cplusplus
17207 extern "C"
17208 #endif
17209 char gethostname ();
17210 int
17211 main ()
17212 {
17213 return gethostname ();
17214   ;
17215   return 0;
17216 }
17217 _ACEOF
17218 if ac_fn_c_try_link "$LINENO"; then :
17219   ac_cv_lib_socket_gethostname=yes
17220 else
17221   ac_cv_lib_socket_gethostname=no
17222 fi
17223 rm -f core conftest.err conftest.$ac_objext \
17224     conftest$ac_exeext conftest.$ac_ext
17225 LIBS=$ac_check_lib_save_LIBS
17226 fi
17227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_gethostname" >&5
17228 $as_echo "$ac_cv_lib_socket_gethostname" >&6; }
17229 if test "x$ac_cv_lib_socket_gethostname" = x""yes; then :
17230   cat >>confdefs.h <<_ACEOF
17231 #define HAVE_LIBSOCKET 1
17232 _ACEOF
17233
17234   LIBS="-lsocket $LIBS"
17235
17236 fi
17237
17238
17239   for ac_func in ftruncate fsync select \
17240                   gethostname socket strerror fork pipe execve open close \
17241                   lseek fstat read readv write writev htonl memset htons connect \
17242                   getsockname getpeername bind listen accept \
17243                   recvfrom send sendto setsockopt getsockopt time mktime clock_gettime \
17244                   gethostbyname_r localtime_r \
17245                   strerror_r \
17246                   fcntl \
17247                   statvfs \
17248                   mmap munmap mincore msync madvise getpagesize sysconf \
17249                   lstat readlink \
17250                   inet_aton inet_addr inet_pton \
17251                   getifaddrs kqueue kevent epoll_create \
17252                   getloadavg
17253 do :
17254   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17255 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17256 eval as_val=\$$as_ac_var
17257    if test "x$as_val" = x""yes; then :
17258   cat >>confdefs.h <<_ACEOF
17259 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17260 _ACEOF
17261
17262 fi
17263 done
17264
17265
17266   LIBMAGIC=
17267   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5
17268 $as_echo_n "checking for magic_open in -lmagic... " >&6; }
17269 if test "${ac_cv_lib_magic_magic_open+set}" = set; then :
17270   $as_echo_n "(cached) " >&6
17271 else
17272   ac_check_lib_save_LIBS=$LIBS
17273 LIBS="-lmagic  $LIBS"
17274 if test x$gcc_no_link = xyes; then
17275   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17276 fi
17277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17278 /* end confdefs.h.  */
17279
17280 /* Override any GCC internal prototype to avoid an error.
17281    Use char because int might match the return type of a GCC
17282    builtin and then its argument prototype would still apply.  */
17283 #ifdef __cplusplus
17284 extern "C"
17285 #endif
17286 char magic_open ();
17287 int
17288 main ()
17289 {
17290 return magic_open ();
17291   ;
17292   return 0;
17293 }
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296   ac_cv_lib_magic_magic_open=yes
17297 else
17298   ac_cv_lib_magic_magic_open=no
17299 fi
17300 rm -f core conftest.err conftest.$ac_objext \
17301     conftest$ac_exeext conftest.$ac_ext
17302 LIBS=$ac_check_lib_save_LIBS
17303 fi
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5
17305 $as_echo "$ac_cv_lib_magic_magic_open" >&6; }
17306 if test "x$ac_cv_lib_magic_magic_open" = x""yes; then :
17307   LIBMAGIC=-lmagic
17308 fi
17309
17310
17311
17312   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct sockaddr_in6 is in netinet/in.h" >&5
17313 $as_echo_n "checking whether struct sockaddr_in6 is in netinet/in.h... " >&6; }
17314   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h.  */
17316 #include <netinet/in.h>
17317 int
17318 main ()
17319 {
17320 struct sockaddr_in6 addr6;
17321   ;
17322   return 0;
17323 }
17324 _ACEOF
17325 if ac_fn_c_try_compile "$LINENO"; then :
17326
17327 $as_echo "#define HAVE_INET6 1" >>confdefs.h
17328
17329                      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17330 $as_echo "yes" >&6; }
17331 else
17332   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17333 $as_echo "no" >&6; }
17334 fi
17335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17336
17337   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17338 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17339 if test "${ac_cv_header_time+set}" = set; then :
17340   $as_echo_n "(cached) " >&6
17341 else
17342   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17343 /* end confdefs.h.  */
17344 #include <sys/types.h>
17345 #include <sys/time.h>
17346 #include <time.h>
17347
17348 int
17349 main ()
17350 {
17351 if ((struct tm *) 0)
17352 return 0;
17353   ;
17354   return 0;
17355 }
17356 _ACEOF
17357 if ac_fn_c_try_compile "$LINENO"; then :
17358   ac_cv_header_time=yes
17359 else
17360   ac_cv_header_time=no
17361 fi
17362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17363 fi
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17365 $as_echo "$ac_cv_header_time" >&6; }
17366 if test $ac_cv_header_time = yes; then
17367
17368 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17369
17370 fi
17371
17372   { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
17373 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
17374 if test "${ac_cv_struct_tm+set}" = set; then :
17375   $as_echo_n "(cached) " >&6
17376 else
17377   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17378 /* end confdefs.h.  */
17379 #include <sys/types.h>
17380 #include <time.h>
17381
17382 int
17383 main ()
17384 {
17385 struct tm tm;
17386                                      int *p = &tm.tm_sec;
17387                                      return !p;
17388   ;
17389   return 0;
17390 }
17391 _ACEOF
17392 if ac_fn_c_try_compile "$LINENO"; then :
17393   ac_cv_struct_tm=time.h
17394 else
17395   ac_cv_struct_tm=sys/time.h
17396 fi
17397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17398 fi
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
17400 $as_echo "$ac_cv_struct_tm" >&6; }
17401 if test $ac_cv_struct_tm = sys/time.h; then
17402
17403 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
17404
17405 fi
17406
17407   ac_fn_c_check_member "$LINENO" "struct tm" "tm_zone" "ac_cv_member_struct_tm_tm_zone" "#include <sys/types.h>
17408 #include <$ac_cv_struct_tm>
17409
17410 "
17411 if test "x$ac_cv_member_struct_tm_tm_zone" = x""yes; then :
17412
17413 cat >>confdefs.h <<_ACEOF
17414 #define HAVE_STRUCT_TM_TM_ZONE 1
17415 _ACEOF
17416
17417
17418 fi
17419
17420 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
17421
17422 $as_echo "#define HAVE_TM_ZONE 1" >>confdefs.h
17423
17424 else
17425   ac_fn_c_check_decl "$LINENO" "tzname" "ac_cv_have_decl_tzname" "#include <time.h>
17426 "
17427 if test "x$ac_cv_have_decl_tzname" = x""yes; then :
17428   ac_have_decl=1
17429 else
17430   ac_have_decl=0
17431 fi
17432
17433 cat >>confdefs.h <<_ACEOF
17434 #define HAVE_DECL_TZNAME $ac_have_decl
17435 _ACEOF
17436
17437   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname" >&5
17438 $as_echo_n "checking for tzname... " >&6; }
17439 if test "${ac_cv_var_tzname+set}" = set; then :
17440   $as_echo_n "(cached) " >&6
17441 else
17442   if test x$gcc_no_link = xyes; then
17443   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17444 fi
17445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17446 /* end confdefs.h.  */
17447 #include <time.h>
17448 #if !HAVE_DECL_TZNAME
17449 extern char *tzname[];
17450 #endif
17451
17452 int
17453 main ()
17454 {
17455 return tzname[0][0];
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 if ac_fn_c_try_link "$LINENO"; then :
17461   ac_cv_var_tzname=yes
17462 else
17463   ac_cv_var_tzname=no
17464 fi
17465 rm -f core conftest.err conftest.$ac_objext \
17466     conftest$ac_exeext conftest.$ac_ext
17467 fi
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_var_tzname" >&5
17469 $as_echo "$ac_cv_var_tzname" >&6; }
17470   if test $ac_cv_var_tzname = yes; then
17471
17472 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
17473
17474   fi
17475 fi
17476
17477
17478   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
17479 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
17480   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17481 /* end confdefs.h.  */
17482 #include <time.h>
17483 int
17484 main ()
17485 {
17486 struct tm tim; tim.tm_gmtoff = 0;
17487   ;
17488   return 0;
17489 }
17490 _ACEOF
17491 if ac_fn_c_try_compile "$LINENO"; then :
17492
17493 $as_echo "#define STRUCT_TM_HAS_GMTOFF 1" >>confdefs.h
17494
17495    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17496 $as_echo "yes" >&6; }
17497 else
17498   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17499 $as_echo "no" >&6; }
17500    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global timezone variable" >&5
17501 $as_echo_n "checking for global timezone variable... " >&6; }
17502                cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17503 /* end confdefs.h.  */
17504 #include <time.h>
17505 int
17506 main ()
17507 {
17508 void i(){long z2 = 2*timezone;}
17509   ;
17510   return 0;
17511 }
17512 _ACEOF
17513 if ac_fn_c_try_compile "$LINENO"; then :
17514
17515 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
17516
17517       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17518 $as_echo "yes" >&6; }
17519 else
17520   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17521 $as_echo "no" >&6; }
17522        { $as_echo "$as_me:${as_lineno-$LINENO}: checking for global _timezone variable" >&5
17523 $as_echo_n "checking for global _timezone variable... " >&6; }
17524               cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h.  */
17526 #include <time.h>
17527 int
17528 main ()
17529 {
17530 long z2 = _timezone;
17531   ;
17532   return 0;
17533 }
17534 _ACEOF
17535 if ac_fn_c_try_compile "$LINENO"; then :
17536
17537 $as_echo "#define HAVE_UNDERSCORE_TIMEZONE 1" >>confdefs.h
17538
17539           { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
17540 $as_echo "yes" >&6; }
17541 else
17542   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
17543 $as_echo "no" >&6; }
17544 fi
17545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17546 fi
17547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17548 fi
17549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17550
17551   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
17552 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
17553 if test "${ac_cv_c_const+set}" = set; then :
17554   $as_echo_n "(cached) " >&6
17555 else
17556   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17557 /* end confdefs.h.  */
17558
17559 int
17560 main ()
17561 {
17562 /* FIXME: Include the comments suggested by Paul. */
17563 #ifndef __cplusplus
17564   /* Ultrix mips cc rejects this.  */
17565   typedef int charset[2];
17566   const charset cs;
17567   /* SunOS 4.1.1 cc rejects this.  */
17568   char const *const *pcpcc;
17569   char **ppc;
17570   /* NEC SVR4.0.2 mips cc rejects this.  */
17571   struct point {int x, y;};
17572   static struct point const zero = {0,0};
17573   /* AIX XL C 1.02.0.0 rejects this.
17574      It does not let you subtract one const X* pointer from another in
17575      an arm of an if-expression whose if-part is not a constant
17576      expression */
17577   const char *g = "string";
17578   pcpcc = &g + (g ? g-g : 0);
17579   /* HPUX 7.0 cc rejects these. */
17580   ++pcpcc;
17581   ppc = (char**) pcpcc;
17582   pcpcc = (char const *const *) ppc;
17583   { /* SCO 3.2v4 cc rejects this.  */
17584     char *t;
17585     char const *s = 0 ? (char *) 0 : (char const *) 0;
17586
17587     *t++ = 0;
17588     if (s) return 0;
17589   }
17590   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
17591     int x[] = {25, 17};
17592     const int *foo = &x[0];
17593     ++foo;
17594   }
17595   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
17596     typedef const int *iptr;
17597     iptr p = 0;
17598     ++p;
17599   }
17600   { /* AIX XL C 1.02.0.0 rejects this saying
17601        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
17602     struct s { int j; const int *ap[3]; };
17603     struct s *b; b->j = 5;
17604   }
17605   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
17606     const int foo = 10;
17607     if (!foo) return 0;
17608   }
17609   return !cs[0] && !zero.x;
17610 #endif
17611
17612   ;
17613   return 0;
17614 }
17615 _ACEOF
17616 if ac_fn_c_try_compile "$LINENO"; then :
17617   ac_cv_c_const=yes
17618 else
17619   ac_cv_c_const=no
17620 fi
17621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17622 fi
17623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
17624 $as_echo "$ac_cv_c_const" >&6; }
17625 if test $ac_cv_c_const = no; then
17626
17627 $as_echo "#define const /**/" >>confdefs.h
17628
17629 fi
17630
17631   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
17632 $as_echo_n "checking for inline... " >&6; }
17633 if test "${ac_cv_c_inline+set}" = set; then :
17634   $as_echo_n "(cached) " >&6
17635 else
17636   ac_cv_c_inline=no
17637 for ac_kw in inline __inline__ __inline; do
17638   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17639 /* end confdefs.h.  */
17640 #ifndef __cplusplus
17641 typedef int foo_t;
17642 static $ac_kw foo_t static_foo () {return 0; }
17643 $ac_kw foo_t foo () {return 0; }
17644 #endif
17645
17646 _ACEOF
17647 if ac_fn_c_try_compile "$LINENO"; then :
17648   ac_cv_c_inline=$ac_kw
17649 fi
17650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17651   test "$ac_cv_c_inline" != no && break
17652 done
17653
17654 fi
17655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17656 $as_echo "$ac_cv_c_inline" >&6; }
17657
17658 case $ac_cv_c_inline in
17659   inline | yes) ;;
17660   *)
17661     case $ac_cv_c_inline in
17662       no) ac_val=;;
17663       *) ac_val=$ac_cv_c_inline;;
17664     esac
17665     cat >>confdefs.h <<_ACEOF
17666 #ifndef __cplusplus
17667 #define inline $ac_val
17668 #endif
17669 _ACEOF
17670     ;;
17671 esac
17672
17673   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __attribute__" >&5
17674 $as_echo_n "checking for __attribute__... " >&6; }
17675 if test "${ac_cv_c_attribute+set}" = set; then :
17676   $as_echo_n "(cached) " >&6
17677 else
17678
17679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17680 /* end confdefs.h.  */
17681 void foo(void) __attribute__ ((__noreturn__));
17682
17683 _ACEOF
17684 if ac_fn_c_try_compile "$LINENO"; then :
17685   ac_cv_c_attribute=yes
17686 else
17687   ac_cv_c_attribute=no
17688
17689 fi
17690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17691
17692 fi
17693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_attribute" >&5
17694 $as_echo "$ac_cv_c_attribute" >&6; }
17695
17696 case $ac_cv_c_attribute in
17697   yes) ;;
17698   no)
17699     cat >>confdefs.h <<_ACEOF
17700 #define __attribute__(x)    /* nothing */
17701 _ACEOF
17702     ;;
17703 esac
17704
17705
17706
17707     ac_ext=c
17708 ac_cpp='$CPP $CPPFLAGS'
17709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17712
17713     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how many arguments gethostbyname_r() takes" >&5
17714 $as_echo_n "checking how many arguments gethostbyname_r() takes... " >&6; }
17715
17716     if test "${ac_cv_func_which_gethostbyname_r+set}" = set; then :
17717   $as_echo_n "(cached) " >&6
17718 else
17719
17720
17721 ################################################################
17722
17723 ac_cv_func_which_gethostbyname_r=unknown
17724
17725 #
17726 # ONE ARGUMENT (sanity check)
17727 #
17728
17729 # This should fail, as there is no variant of gethostbyname_r() that takes
17730 # a single argument. If it actually compiles, then we can assume that
17731 # netdb.h is not declaring the function, and the compiler is thereby
17732 # assuming an implicit prototype. In which case, we're out of luck.
17733 #
17734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17735 /* end confdefs.h.  */
17736
17737     #include <netdb.h>
17738 int
17739 main ()
17740 {
17741
17742             char *name = "www.gnu.org";
17743             (void)gethostbyname_r(name) /* ; */
17744
17745   ;
17746   return 0;
17747 }
17748 _ACEOF
17749 if ac_fn_c_try_compile "$LINENO"; then :
17750   ac_cv_func_which_gethostbyname_r=no
17751 fi
17752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17753
17754 #
17755 # SIX ARGUMENTS
17756 # (e.g. Linux)
17757 #
17758
17759 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17760
17761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17762 /* end confdefs.h.  */
17763
17764     #include <netdb.h>
17765 int
17766 main ()
17767 {
17768
17769             char *name = "www.gnu.org";
17770             struct hostent ret, *retp;
17771             char buf[1024];
17772             int buflen = 1024;
17773             int my_h_errno;
17774             (void)gethostbyname_r(name, &ret, buf, buflen, &retp, &my_h_errno) /* ; */
17775
17776   ;
17777   return 0;
17778 }
17779 _ACEOF
17780 if ac_fn_c_try_compile "$LINENO"; then :
17781   ac_cv_func_which_gethostbyname_r=six
17782 fi
17783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17784
17785 fi
17786
17787 #
17788 # FIVE ARGUMENTS
17789 # (e.g. Solaris)
17790 #
17791
17792 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17793
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h.  */
17796
17797     #include <netdb.h>
17798 int
17799 main ()
17800 {
17801
17802             char *name = "www.gnu.org";
17803             struct hostent ret;
17804             char buf[1024];
17805             int buflen = 1024;
17806             int my_h_errno;
17807             (void)gethostbyname_r(name, &ret, buf, buflen, &my_h_errno) /* ; */
17808
17809   ;
17810   return 0;
17811 }
17812 _ACEOF
17813 if ac_fn_c_try_compile "$LINENO"; then :
17814   ac_cv_func_which_gethostbyname_r=five
17815 fi
17816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17817
17818 fi
17819
17820 #
17821 # THREE ARGUMENTS
17822 # (e.g. AIX, HP-UX, Tru64)
17823 #
17824
17825 if test "$ac_cv_func_which_gethostbyname_r" = "unknown"; then
17826
17827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17828 /* end confdefs.h.  */
17829
17830     #include <netdb.h>
17831 int
17832 main ()
17833 {
17834
17835             char *name = "www.gnu.org";
17836             struct hostent ret;
17837             struct hostent_data data;
17838             (void)gethostbyname_r(name, &ret, &data) /* ; */
17839
17840   ;
17841   return 0;
17842 }
17843 _ACEOF
17844 if ac_fn_c_try_compile "$LINENO"; then :
17845   ac_cv_func_which_gethostbyname_r=three
17846 fi
17847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17848
17849 fi
17850
17851 ################################################################
17852
17853
17854 fi
17855
17856 case "$ac_cv_func_which_gethostbyname_r" in
17857     three)
17858     { $as_echo "$as_me:${as_lineno-$LINENO}: result: three" >&5
17859 $as_echo "three" >&6; }
17860
17861 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_3 1" >>confdefs.h
17862
17863     ;;
17864
17865     five)
17866     { $as_echo "$as_me:${as_lineno-$LINENO}: result: five" >&5
17867 $as_echo "five" >&6; }
17868
17869 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_5 1" >>confdefs.h
17870
17871     ;;
17872
17873     six)
17874     { $as_echo "$as_me:${as_lineno-$LINENO}: result: six" >&5
17875 $as_echo "six" >&6; }
17876
17877 $as_echo "#define HAVE_FUNC_GETHOSTBYNAME_R_6 1" >>confdefs.h
17878
17879     ;;
17880
17881     no)
17882     { $as_echo "$as_me:${as_lineno-$LINENO}: result: cannot find function declaration in netdb.h" >&5
17883 $as_echo "cannot find function declaration in netdb.h" >&6; }
17884     ;;
17885
17886     unknown)
17887     { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't tell" >&5
17888 $as_echo "can't tell" >&6; }
17889     ;;
17890
17891     *)
17892     as_fn_error "internal error" "$LINENO" 5
17893     ;;
17894 esac
17895
17896 ac_ext=c
17897 ac_cpp='$CPP $CPPFLAGS'
17898 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17899 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17900 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17901
17902
17903
17904
17905
17906       if test "X$prefix" = "XNONE"; then
17907     acl_final_prefix="$ac_default_prefix"
17908   else
17909     acl_final_prefix="$prefix"
17910   fi
17911   if test "X$exec_prefix" = "XNONE"; then
17912     acl_final_exec_prefix='${prefix}'
17913   else
17914     acl_final_exec_prefix="$exec_prefix"
17915   fi
17916   acl_save_prefix="$prefix"
17917   prefix="$acl_final_prefix"
17918   eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
17919   prefix="$acl_save_prefix"
17920
17921
17922 # Check whether --with-gnu-ld was given.
17923 if test "${with_gnu_ld+set}" = set; then :
17924   withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
17925 else
17926   with_gnu_ld=no
17927 fi
17928
17929 # Prepare PATH_SEPARATOR.
17930 # The user is always right.
17931 if test "${PATH_SEPARATOR+set}" != set; then
17932   echo "#! /bin/sh" >conf$$.sh
17933   echo  "exit 0"   >>conf$$.sh
17934   chmod +x conf$$.sh
17935   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
17936     PATH_SEPARATOR=';'
17937   else
17938     PATH_SEPARATOR=:
17939   fi
17940   rm -f conf$$.sh
17941 fi
17942 ac_prog=ld
17943 if test "$GCC" = yes; then
17944   # Check if gcc -print-prog-name=ld gives a path.
17945   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5
17946 $as_echo_n "checking for ld used by GCC... " >&6; }
17947   case $host in
17948   *-*-mingw*)
17949     # gcc leaves a trailing carriage return which upsets mingw
17950     ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
17951   *)
17952     ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
17953   esac
17954   case $ac_prog in
17955     # Accept absolute paths.
17956     [\\/]* | [A-Za-z]:[\\/]*)
17957       re_direlt='/[^/][^/]*/\.\./'
17958       # Canonicalize the path of ld
17959       ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
17960       while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
17961         ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
17962       done
17963       test -z "$LD" && LD="$ac_prog"
17964       ;;
17965   "")
17966     # If it fails, then pretend we aren't using GCC.
17967     ac_prog=ld
17968     ;;
17969   *)
17970     # If it is relative, then search for the first ld in PATH.
17971     with_gnu_ld=unknown
17972     ;;
17973   esac
17974 elif test "$with_gnu_ld" = yes; then
17975   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
17976 $as_echo_n "checking for GNU ld... " >&6; }
17977 else
17978   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
17979 $as_echo_n "checking for non-GNU ld... " >&6; }
17980 fi
17981 if test "${acl_cv_path_LD+set}" = set; then :
17982   $as_echo_n "(cached) " >&6
17983 else
17984   if test -z "$LD"; then
17985   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
17986   for ac_dir in $PATH; do
17987     test -z "$ac_dir" && ac_dir=.
17988     if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
17989       acl_cv_path_LD="$ac_dir/$ac_prog"
17990       # Check to see if the program is GNU ld.  I'd rather use --version,
17991       # but apparently some GNU ld's only accept -v.
17992       # Break only if it was the GNU/non-GNU ld that we prefer.
17993       case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
17994       *GNU* | *'with BFD'*)
17995         test "$with_gnu_ld" != no && break ;;
17996       *)
17997         test "$with_gnu_ld" != yes && break ;;
17998       esac
17999     fi
18000   done
18001   IFS="$ac_save_ifs"
18002 else
18003   acl_cv_path_LD="$LD" # Let the user override the test with a path.
18004 fi
18005 fi
18006
18007 LD="$acl_cv_path_LD"
18008 if test -n "$LD"; then
18009   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18010 $as_echo "$LD" >&6; }
18011 else
18012   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18013 $as_echo "no" >&6; }
18014 fi
18015 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18017 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18018 if test "${acl_cv_prog_gnu_ld+set}" = set; then :
18019   $as_echo_n "(cached) " >&6
18020 else
18021   # I'd rather use --version here, but apparently some GNU ld's only accept -v.
18022 case `$LD -v 2>&1 </dev/null` in
18023 *GNU* | *'with BFD'*)
18024   acl_cv_prog_gnu_ld=yes ;;
18025 *)
18026   acl_cv_prog_gnu_ld=no ;;
18027 esac
18028 fi
18029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5
18030 $as_echo "$acl_cv_prog_gnu_ld" >&6; }
18031 with_gnu_ld=$acl_cv_prog_gnu_ld
18032
18033
18034
18035
18036                                                 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5
18037 $as_echo_n "checking for shared library run path origin... " >&6; }
18038 if test "${acl_cv_rpath+set}" = set; then :
18039   $as_echo_n "(cached) " >&6
18040 else
18041
18042     CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
18043     ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
18044     . ./conftest.sh
18045     rm -f ./conftest.sh
18046     acl_cv_rpath=done
18047
18048 fi
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5
18050 $as_echo "$acl_cv_rpath" >&6; }
18051   wl="$acl_cv_wl"
18052   acl_libext="$acl_cv_libext"
18053   acl_shlibext="$acl_cv_shlibext"
18054   acl_libname_spec="$acl_cv_libname_spec"
18055   acl_library_names_spec="$acl_cv_library_names_spec"
18056   acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
18057   acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
18058   acl_hardcode_direct="$acl_cv_hardcode_direct"
18059   acl_hardcode_minus_L="$acl_cv_hardcode_minus_L"
18060     # Check whether --enable-rpath was given.
18061 if test "${enable_rpath+set}" = set; then :
18062   enableval=$enable_rpath; :
18063 else
18064   enable_rpath=yes
18065 fi
18066
18067
18068
18069
18070   acl_libdirstem=lib
18071   acl_libdirstem2=
18072   case "$host_os" in
18073     solaris*)
18074                                     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5
18075 $as_echo_n "checking for 64-bit host... " >&6; }
18076 if test "${gl_cv_solaris_64bit+set}" = set; then :
18077   $as_echo_n "(cached) " >&6
18078 else
18079   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18080 /* end confdefs.h.  */
18081
18082 #ifdef _LP64
18083 sixtyfour bits
18084 #endif
18085
18086 _ACEOF
18087 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18088   $EGREP "sixtyfour bits" >/dev/null 2>&1; then :
18089   gl_cv_solaris_64bit=yes
18090 else
18091   gl_cv_solaris_64bit=no
18092 fi
18093 rm -f conftest*
18094
18095
18096 fi
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5
18098 $as_echo "$gl_cv_solaris_64bit" >&6; }
18099       if test $gl_cv_solaris_64bit = yes; then
18100         acl_libdirstem=lib/64
18101         case "$host_cpu" in
18102           sparc*)        acl_libdirstem2=lib/sparcv9 ;;
18103           i*86 | x86_64) acl_libdirstem2=lib/amd64 ;;
18104         esac
18105       fi
18106       ;;
18107     *)
18108       searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'`
18109       if test -n "$searchpath"; then
18110         acl_save_IFS="${IFS=    }"; IFS=":"
18111         for searchdir in $searchpath; do
18112           if test -d "$searchdir"; then
18113             case "$searchdir" in
18114               */lib64/ | */lib64 ) acl_libdirstem=lib64 ;;
18115               */../ | */.. )
18116                 # Better ignore directories of this form. They are misleading.
18117                 ;;
18118               *) searchdir=`cd "$searchdir" && pwd`
18119                  case "$searchdir" in
18120                    */lib64 ) acl_libdirstem=lib64 ;;
18121                  esac ;;
18122             esac
18123           fi
18124         done
18125         IFS="$acl_save_IFS"
18126       fi
18127       ;;
18128   esac
18129   test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem"
18130
18131
18132
18133
18134
18135
18136
18137
18138
18139
18140
18141
18142     use_additional=yes
18143
18144   acl_save_prefix="$prefix"
18145   prefix="$acl_final_prefix"
18146   acl_save_exec_prefix="$exec_prefix"
18147   exec_prefix="$acl_final_exec_prefix"
18148
18149     eval additional_includedir=\"$includedir\"
18150     eval additional_libdir=\"$libdir\"
18151
18152   exec_prefix="$acl_save_exec_prefix"
18153   prefix="$acl_save_prefix"
18154
18155
18156 # Check whether --with-libiconv-prefix was given.
18157 if test "${with_libiconv_prefix+set}" = set; then :
18158   withval=$with_libiconv_prefix;
18159     if test "X$withval" = "Xno"; then
18160       use_additional=no
18161     else
18162       if test "X$withval" = "X"; then
18163
18164   acl_save_prefix="$prefix"
18165   prefix="$acl_final_prefix"
18166   acl_save_exec_prefix="$exec_prefix"
18167   exec_prefix="$acl_final_exec_prefix"
18168
18169           eval additional_includedir=\"$includedir\"
18170           eval additional_libdir=\"$libdir\"
18171
18172   exec_prefix="$acl_save_exec_prefix"
18173   prefix="$acl_save_prefix"
18174
18175       else
18176         additional_includedir="$withval/include"
18177         additional_libdir="$withval/$acl_libdirstem"
18178         if test "$acl_libdirstem2" != "$acl_libdirstem" \
18179            && ! test -d "$withval/$acl_libdirstem"; then
18180           additional_libdir="$withval/$acl_libdirstem2"
18181         fi
18182       fi
18183     fi
18184
18185 fi
18186
18187       LIBICONV=
18188   LTLIBICONV=
18189   INCICONV=
18190   LIBICONV_PREFIX=
18191       HAVE_LIBICONV=
18192   rpathdirs=
18193   ltrpathdirs=
18194   names_already_handled=
18195   names_next_round='iconv '
18196   while test -n "$names_next_round"; do
18197     names_this_round="$names_next_round"
18198     names_next_round=
18199     for name in $names_this_round; do
18200       already_handled=
18201       for n in $names_already_handled; do
18202         if test "$n" = "$name"; then
18203           already_handled=yes
18204           break
18205         fi
18206       done
18207       if test -z "$already_handled"; then
18208         names_already_handled="$names_already_handled $name"
18209                         uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
18210         eval value=\"\$HAVE_LIB$uppername\"
18211         if test -n "$value"; then
18212           if test "$value" = yes; then
18213             eval value=\"\$LIB$uppername\"
18214             test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value"
18215             eval value=\"\$LTLIB$uppername\"
18216             test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value"
18217           else
18218                                     :
18219           fi
18220         else
18221                               found_dir=
18222           found_la=
18223           found_so=
18224           found_a=
18225           eval libname=\"$acl_libname_spec\"    # typically: libname=lib$name
18226           if test -n "$acl_shlibext"; then
18227             shrext=".$acl_shlibext"             # typically: shrext=.so
18228           else
18229             shrext=
18230           fi
18231           if test $use_additional = yes; then
18232             dir="$additional_libdir"
18233                                     if test -n "$acl_shlibext"; then
18234               if test -f "$dir/$libname$shrext"; then
18235                 found_dir="$dir"
18236                 found_so="$dir/$libname$shrext"
18237               else
18238                 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18239                   ver=`(cd "$dir" && \
18240                         for f in "$libname$shrext".*; do echo "$f"; done \
18241                         | sed -e "s,^$libname$shrext\\\\.,," \
18242                         | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18243                         | sed 1q ) 2>/dev/null`
18244                   if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18245                     found_dir="$dir"
18246                     found_so="$dir/$libname$shrext.$ver"
18247                   fi
18248                 else
18249                   eval library_names=\"$acl_library_names_spec\"
18250                   for f in $library_names; do
18251                     if test -f "$dir/$f"; then
18252                       found_dir="$dir"
18253                       found_so="$dir/$f"
18254                       break
18255                     fi
18256                   done
18257                 fi
18258               fi
18259             fi
18260                         if test "X$found_dir" = "X"; then
18261               if test -f "$dir/$libname.$acl_libext"; then
18262                 found_dir="$dir"
18263                 found_a="$dir/$libname.$acl_libext"
18264               fi
18265             fi
18266             if test "X$found_dir" != "X"; then
18267               if test -f "$dir/$libname.la"; then
18268                 found_la="$dir/$libname.la"
18269               fi
18270             fi
18271           fi
18272           if test "X$found_dir" = "X"; then
18273             for x in $LDFLAGS $LTLIBICONV; do
18274
18275   acl_save_prefix="$prefix"
18276   prefix="$acl_final_prefix"
18277   acl_save_exec_prefix="$exec_prefix"
18278   exec_prefix="$acl_final_exec_prefix"
18279   eval x=\"$x\"
18280   exec_prefix="$acl_save_exec_prefix"
18281   prefix="$acl_save_prefix"
18282
18283               case "$x" in
18284                 -L*)
18285                   dir=`echo "X$x" | sed -e 's/^X-L//'`
18286                                     if test -n "$acl_shlibext"; then
18287                     if test -f "$dir/$libname$shrext"; then
18288                       found_dir="$dir"
18289                       found_so="$dir/$libname$shrext"
18290                     else
18291                       if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then
18292                         ver=`(cd "$dir" && \
18293                               for f in "$libname$shrext".*; do echo "$f"; done \
18294                               | sed -e "s,^$libname$shrext\\\\.,," \
18295                               | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \
18296                               | sed 1q ) 2>/dev/null`
18297                         if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then
18298                           found_dir="$dir"
18299                           found_so="$dir/$libname$shrext.$ver"
18300                         fi
18301                       else
18302                         eval library_names=\"$acl_library_names_spec\"
18303                         for f in $library_names; do
18304                           if test -f "$dir/$f"; then
18305                             found_dir="$dir"
18306                             found_so="$dir/$f"
18307                             break
18308                           fi
18309                         done
18310                       fi
18311                     fi
18312                   fi
18313                                     if test "X$found_dir" = "X"; then
18314                     if test -f "$dir/$libname.$acl_libext"; then
18315                       found_dir="$dir"
18316                       found_a="$dir/$libname.$acl_libext"
18317                     fi
18318                   fi
18319                   if test "X$found_dir" != "X"; then
18320                     if test -f "$dir/$libname.la"; then
18321                       found_la="$dir/$libname.la"
18322                     fi
18323                   fi
18324                   ;;
18325               esac
18326               if test "X$found_dir" != "X"; then
18327                 break
18328               fi
18329             done
18330           fi
18331           if test "X$found_dir" != "X"; then
18332                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name"
18333             if test "X$found_so" != "X"; then
18334                                                         if test "$enable_rpath" = no \
18335                  || test "X$found_dir" = "X/usr/$acl_libdirstem" \
18336                  || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then
18337                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18338               else
18339                                                                                 haveit=
18340                 for x in $ltrpathdirs; do
18341                   if test "X$x" = "X$found_dir"; then
18342                     haveit=yes
18343                     break
18344                   fi
18345                 done
18346                 if test -z "$haveit"; then
18347                   ltrpathdirs="$ltrpathdirs $found_dir"
18348                 fi
18349                                 if test "$acl_hardcode_direct" = yes; then
18350                                                       LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18351                 else
18352                   if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then
18353                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18354                                                             haveit=
18355                     for x in $rpathdirs; do
18356                       if test "X$x" = "X$found_dir"; then
18357                         haveit=yes
18358                         break
18359                       fi
18360                     done
18361                     if test -z "$haveit"; then
18362                       rpathdirs="$rpathdirs $found_dir"
18363                     fi
18364                   else
18365                                                                                 haveit=
18366                     for x in $LDFLAGS $LIBICONV; do
18367
18368   acl_save_prefix="$prefix"
18369   prefix="$acl_final_prefix"
18370   acl_save_exec_prefix="$exec_prefix"
18371   exec_prefix="$acl_final_exec_prefix"
18372   eval x=\"$x\"
18373   exec_prefix="$acl_save_exec_prefix"
18374   prefix="$acl_save_prefix"
18375
18376                       if test "X$x" = "X-L$found_dir"; then
18377                         haveit=yes
18378                         break
18379                       fi
18380                     done
18381                     if test -z "$haveit"; then
18382                       LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir"
18383                     fi
18384                     if test "$acl_hardcode_minus_L" != no; then
18385                                                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so"
18386                     else
18387                                                                                                                                                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18388                     fi
18389                   fi
18390                 fi
18391               fi
18392             else
18393               if test "X$found_a" != "X"; then
18394                                 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a"
18395               else
18396                                                 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name"
18397               fi
18398             fi
18399                         additional_includedir=
18400             case "$found_dir" in
18401               */$acl_libdirstem | */$acl_libdirstem/)
18402                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'`
18403                 if test "$name" = 'iconv'; then
18404                   LIBICONV_PREFIX="$basedir"
18405                 fi
18406                 additional_includedir="$basedir/include"
18407                 ;;
18408               */$acl_libdirstem2 | */$acl_libdirstem2/)
18409                 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'`
18410                 if test "$name" = 'iconv'; then
18411                   LIBICONV_PREFIX="$basedir"
18412                 fi
18413                 additional_includedir="$basedir/include"
18414                 ;;
18415             esac
18416             if test "X$additional_includedir" != "X"; then
18417                                                                                                                 if test "X$additional_includedir" != "X/usr/include"; then
18418                 haveit=
18419                 if test "X$additional_includedir" = "X/usr/local/include"; then
18420                   if test -n "$GCC"; then
18421                     case $host_os in
18422                       linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18423                     esac
18424                   fi
18425                 fi
18426                 if test -z "$haveit"; then
18427                   for x in $CPPFLAGS $INCICONV; do
18428
18429   acl_save_prefix="$prefix"
18430   prefix="$acl_final_prefix"
18431   acl_save_exec_prefix="$exec_prefix"
18432   exec_prefix="$acl_final_exec_prefix"
18433   eval x=\"$x\"
18434   exec_prefix="$acl_save_exec_prefix"
18435   prefix="$acl_save_prefix"
18436
18437                     if test "X$x" = "X-I$additional_includedir"; then
18438                       haveit=yes
18439                       break
18440                     fi
18441                   done
18442                   if test -z "$haveit"; then
18443                     if test -d "$additional_includedir"; then
18444                                             INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir"
18445                     fi
18446                   fi
18447                 fi
18448               fi
18449             fi
18450                         if test -n "$found_la"; then
18451                                                         save_libdir="$libdir"
18452               case "$found_la" in
18453                 */* | *\\*) . "$found_la" ;;
18454                 *) . "./$found_la" ;;
18455               esac
18456               libdir="$save_libdir"
18457                             for dep in $dependency_libs; do
18458                 case "$dep" in
18459                   -L*)
18460                     additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
18461                                                                                                                                                                 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \
18462                        && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then
18463                       haveit=
18464                       if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \
18465                          || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then
18466                         if test -n "$GCC"; then
18467                           case $host_os in
18468                             linux* | gnu* | k*bsd*-gnu) haveit=yes;;
18469                           esac
18470                         fi
18471                       fi
18472                       if test -z "$haveit"; then
18473                         haveit=
18474                         for x in $LDFLAGS $LIBICONV; do
18475
18476   acl_save_prefix="$prefix"
18477   prefix="$acl_final_prefix"
18478   acl_save_exec_prefix="$exec_prefix"
18479   exec_prefix="$acl_final_exec_prefix"
18480   eval x=\"$x\"
18481   exec_prefix="$acl_save_exec_prefix"
18482   prefix="$acl_save_prefix"
18483
18484                           if test "X$x" = "X-L$additional_libdir"; then
18485                             haveit=yes
18486                             break
18487                           fi
18488                         done
18489                         if test -z "$haveit"; then
18490                           if test -d "$additional_libdir"; then
18491                                                         LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir"
18492                           fi
18493                         fi
18494                         haveit=
18495                         for x in $LDFLAGS $LTLIBICONV; do
18496
18497   acl_save_prefix="$prefix"
18498   prefix="$acl_final_prefix"
18499   acl_save_exec_prefix="$exec_prefix"
18500   exec_prefix="$acl_final_exec_prefix"
18501   eval x=\"$x\"
18502   exec_prefix="$acl_save_exec_prefix"
18503   prefix="$acl_save_prefix"
18504
18505                           if test "X$x" = "X-L$additional_libdir"; then
18506                             haveit=yes
18507                             break
18508                           fi
18509                         done
18510                         if test -z "$haveit"; then
18511                           if test -d "$additional_libdir"; then
18512                                                         LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir"
18513                           fi
18514                         fi
18515                       fi
18516                     fi
18517                     ;;
18518                   -R*)
18519                     dir=`echo "X$dep" | sed -e 's/^X-R//'`
18520                     if test "$enable_rpath" != no; then
18521                                                                   haveit=
18522                       for x in $rpathdirs; do
18523                         if test "X$x" = "X$dir"; then
18524                           haveit=yes
18525                           break
18526                         fi
18527                       done
18528                       if test -z "$haveit"; then
18529                         rpathdirs="$rpathdirs $dir"
18530                       fi
18531                                                                   haveit=
18532                       for x in $ltrpathdirs; do
18533                         if test "X$x" = "X$dir"; then
18534                           haveit=yes
18535                           break
18536                         fi
18537                       done
18538                       if test -z "$haveit"; then
18539                         ltrpathdirs="$ltrpathdirs $dir"
18540                       fi
18541                     fi
18542                     ;;
18543                   -l*)
18544                                         names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
18545                     ;;
18546                   *.la)
18547                                                                                 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
18548                     ;;
18549                   *)
18550                                         LIBICONV="${LIBICONV}${LIBICONV:+ }$dep"
18551                     LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep"
18552                     ;;
18553                 esac
18554               done
18555             fi
18556           else
18557                                                             LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name"
18558             LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name"
18559           fi
18560         fi
18561       fi
18562     done
18563   done
18564   if test "X$rpathdirs" != "X"; then
18565     if test -n "$acl_hardcode_libdir_separator"; then
18566                         alldirs=
18567       for found_dir in $rpathdirs; do
18568         alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir"
18569       done
18570             acl_save_libdir="$libdir"
18571       libdir="$alldirs"
18572       eval flag=\"$acl_hardcode_libdir_flag_spec\"
18573       libdir="$acl_save_libdir"
18574       LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18575     else
18576             for found_dir in $rpathdirs; do
18577         acl_save_libdir="$libdir"
18578         libdir="$found_dir"
18579         eval flag=\"$acl_hardcode_libdir_flag_spec\"
18580         libdir="$acl_save_libdir"
18581         LIBICONV="${LIBICONV}${LIBICONV:+ }$flag"
18582       done
18583     fi
18584   fi
18585   if test "X$ltrpathdirs" != "X"; then
18586             for found_dir in $ltrpathdirs; do
18587       LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir"
18588     done
18589   fi
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602           am_save_CPPFLAGS="$CPPFLAGS"
18603
18604   for element in $INCICONV; do
18605     haveit=
18606     for x in $CPPFLAGS; do
18607
18608   acl_save_prefix="$prefix"
18609   prefix="$acl_final_prefix"
18610   acl_save_exec_prefix="$exec_prefix"
18611   exec_prefix="$acl_final_exec_prefix"
18612   eval x=\"$x\"
18613   exec_prefix="$acl_save_exec_prefix"
18614   prefix="$acl_save_prefix"
18615
18616       if test "X$x" = "X$element"; then
18617         haveit=yes
18618         break
18619       fi
18620     done
18621     if test -z "$haveit"; then
18622       CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element"
18623     fi
18624   done
18625
18626
18627   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5
18628 $as_echo_n "checking for iconv... " >&6; }
18629 if test "${am_cv_func_iconv+set}" = set; then :
18630   $as_echo_n "(cached) " >&6
18631 else
18632
18633     am_cv_func_iconv="no, consider installing GNU libiconv"
18634     am_cv_lib_iconv=no
18635     if test x$gcc_no_link = xyes; then
18636   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18637 fi
18638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18639 /* end confdefs.h.  */
18640 #include <stdlib.h>
18641 #include <iconv.h>
18642 int
18643 main ()
18644 {
18645 iconv_t cd = iconv_open("","");
18646        iconv(cd,NULL,NULL,NULL,NULL);
18647        iconv_close(cd);
18648   ;
18649   return 0;
18650 }
18651 _ACEOF
18652 if ac_fn_c_try_link "$LINENO"; then :
18653   am_cv_func_iconv=yes
18654 fi
18655 rm -f core conftest.err conftest.$ac_objext \
18656     conftest$ac_exeext conftest.$ac_ext
18657     if test "$am_cv_func_iconv" != yes; then
18658       am_save_LIBS="$LIBS"
18659       LIBS="$LIBS $LIBICONV"
18660       if test x$gcc_no_link = xyes; then
18661   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18662 fi
18663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18664 /* end confdefs.h.  */
18665 #include <stdlib.h>
18666 #include <iconv.h>
18667 int
18668 main ()
18669 {
18670 iconv_t cd = iconv_open("","");
18671          iconv(cd,NULL,NULL,NULL,NULL);
18672          iconv_close(cd);
18673   ;
18674   return 0;
18675 }
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678   am_cv_lib_iconv=yes
18679         am_cv_func_iconv=yes
18680 fi
18681 rm -f core conftest.err conftest.$ac_objext \
18682     conftest$ac_exeext conftest.$ac_ext
18683       LIBS="$am_save_LIBS"
18684     fi
18685
18686 fi
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5
18688 $as_echo "$am_cv_func_iconv" >&6; }
18689   if test "$am_cv_func_iconv" = yes; then
18690
18691 $as_echo "#define HAVE_ICONV 1" >>confdefs.h
18692
18693   fi
18694   if test "$am_cv_lib_iconv" = yes; then
18695     { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5
18696 $as_echo_n "checking how to link with libiconv... " >&6; }
18697     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5
18698 $as_echo "$LIBICONV" >&6; }
18699   else
18700             CPPFLAGS="$am_save_CPPFLAGS"
18701     LIBICONV=
18702     LTLIBICONV=
18703   fi
18704
18705
18706
18707   if test "$am_cv_func_iconv" = yes; then
18708     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5
18709 $as_echo_n "checking for iconv declaration... " >&6; }
18710     if test "${am_cv_proto_iconv+set}" = set; then :
18711   $as_echo_n "(cached) " >&6
18712 else
18713
18714       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18715 /* end confdefs.h.  */
18716
18717 #include <stdlib.h>
18718 #include <iconv.h>
18719 extern
18720 #ifdef __cplusplus
18721 "C"
18722 #endif
18723 #if defined(__STDC__) || defined(__cplusplus)
18724 size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);
18725 #else
18726 size_t iconv();
18727 #endif
18728
18729 int
18730 main ()
18731 {
18732
18733   ;
18734   return 0;
18735 }
18736 _ACEOF
18737 if ac_fn_c_try_compile "$LINENO"; then :
18738   am_cv_proto_iconv_arg1=""
18739 else
18740   am_cv_proto_iconv_arg1="const"
18741 fi
18742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18743       am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"
18744 fi
18745
18746     am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'`
18747     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${ac_t:-
18748          }$am_cv_proto_iconv" >&5
18749 $as_echo "${ac_t:-
18750          }$am_cv_proto_iconv" >&6; }
18751
18752 cat >>confdefs.h <<_ACEOF
18753 #define ICONV_CONST $am_cv_proto_iconv_arg1
18754 _ACEOF
18755
18756   fi
18757
18758
18759     if test "x${GCC}" = xyes; then
18760
18761             WARNING_CFLAGS='-W -Wall -Wmissing-declarations -Wwrite-strings -Wmissing-prototypes -Wno-long-long'
18762
18763
18764                 EXTRA_CFLAGS='-fexceptions -fasynchronous-unwind-tables'
18765
18766
18767             STRICT_WARNING_CFLAGS='-Wstrict-prototypes -pedantic'
18768
18769
18770             ERROR_CFLAGS=
18771     if test "x${ENABLE_WERROR}" = xyes; then
18772        ERROR_CFLAGS='-Werror'
18773     fi
18774
18775   fi
18776
18777     if test "x${COMPILE_XMLJ}" = xyes; then
18778
18779   succeeded=no
18780
18781   if test -z "$PKG_CONFIG"; then
18782     # Extract the first word of "pkg-config", so it can be a program name with args.
18783 set dummy pkg-config; ac_word=$2
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18785 $as_echo_n "checking for $ac_word... " >&6; }
18786 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18787   $as_echo_n "(cached) " >&6
18788 else
18789   case $PKG_CONFIG in
18790   [\\/]* | ?:[\\/]*)
18791   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18792   ;;
18793   *)
18794   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18795 for as_dir in $PATH
18796 do
18797   IFS=$as_save_IFS
18798   test -z "$as_dir" && as_dir=.
18799     for ac_exec_ext in '' $ac_executable_extensions; do
18800   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18801     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18802     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18803     break 2
18804   fi
18805 done
18806   done
18807 IFS=$as_save_IFS
18808
18809   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18810   ;;
18811 esac
18812 fi
18813 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18814 if test -n "$PKG_CONFIG"; then
18815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18816 $as_echo "$PKG_CONFIG" >&6; }
18817 else
18818   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18819 $as_echo "no" >&6; }
18820 fi
18821
18822
18823   fi
18824
18825   if test "$PKG_CONFIG" = "no" ; then
18826      echo "*** The pkg-config script could not be found. Make sure it is"
18827      echo "*** in your path, or set the PKG_CONFIG environment variable"
18828      echo "*** to the full path to pkg-config."
18829      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18830   else
18831      PKG_CONFIG_MIN_VERSION=0.9.0
18832      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18833         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxml-2.0 >= 2.6.8" >&5
18834 $as_echo_n "checking for libxml-2.0 >= 2.6.8... " >&6; }
18835
18836         if $PKG_CONFIG --exists "libxml-2.0 >= 2.6.8" ; then
18837             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18838 $as_echo "yes" >&6; }
18839             succeeded=yes
18840
18841             { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_CFLAGS" >&5
18842 $as_echo_n "checking XML_CFLAGS... " >&6; }
18843             XML_CFLAGS=`$PKG_CONFIG --cflags "libxml-2.0 >= 2.6.8"`
18844             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_CFLAGS" >&5
18845 $as_echo "$XML_CFLAGS" >&6; }
18846
18847             { $as_echo "$as_me:${as_lineno-$LINENO}: checking XML_LIBS" >&5
18848 $as_echo_n "checking XML_LIBS... " >&6; }
18849             XML_LIBS=`$PKG_CONFIG --libs "libxml-2.0 >= 2.6.8"`
18850             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XML_LIBS" >&5
18851 $as_echo "$XML_LIBS" >&6; }
18852         else
18853             XML_CFLAGS=""
18854             XML_LIBS=""
18855             ## If we have a custom action on failure, don't print errors, but
18856             ## do set a variable so people can do so.
18857             XML_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxml-2.0 >= 2.6.8"`
18858             echo $XML_PKG_ERRORS
18859         fi
18860
18861
18862
18863      else
18864         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18865         echo "*** See http://www.freedesktop.org/software/pkgconfig"
18866      fi
18867   fi
18868
18869   if test $succeeded = yes; then
18870      :
18871   else
18872      as_fn_error "Library requirements (libxml-2.0 >= 2.6.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18873   fi
18874
18875
18876   succeeded=no
18877
18878   if test -z "$PKG_CONFIG"; then
18879     # Extract the first word of "pkg-config", so it can be a program name with args.
18880 set dummy pkg-config; ac_word=$2
18881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18882 $as_echo_n "checking for $ac_word... " >&6; }
18883 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
18884   $as_echo_n "(cached) " >&6
18885 else
18886   case $PKG_CONFIG in
18887   [\\/]* | ?:[\\/]*)
18888   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
18889   ;;
18890   *)
18891   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18892 for as_dir in $PATH
18893 do
18894   IFS=$as_save_IFS
18895   test -z "$as_dir" && as_dir=.
18896     for ac_exec_ext in '' $ac_executable_extensions; do
18897   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
18898     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
18899     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18900     break 2
18901   fi
18902 done
18903   done
18904 IFS=$as_save_IFS
18905
18906   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
18907   ;;
18908 esac
18909 fi
18910 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
18911 if test -n "$PKG_CONFIG"; then
18912   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
18913 $as_echo "$PKG_CONFIG" >&6; }
18914 else
18915   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18916 $as_echo "no" >&6; }
18917 fi
18918
18919
18920   fi
18921
18922   if test "$PKG_CONFIG" = "no" ; then
18923      echo "*** The pkg-config script could not be found. Make sure it is"
18924      echo "*** in your path, or set the PKG_CONFIG environment variable"
18925      echo "*** to the full path to pkg-config."
18926      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
18927   else
18928      PKG_CONFIG_MIN_VERSION=0.9.0
18929      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
18930         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libxslt >= 1.1.11" >&5
18931 $as_echo_n "checking for libxslt >= 1.1.11... " >&6; }
18932
18933         if $PKG_CONFIG --exists "libxslt >= 1.1.11" ; then
18934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18935 $as_echo "yes" >&6; }
18936             succeeded=yes
18937
18938             { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_CFLAGS" >&5
18939 $as_echo_n "checking XSLT_CFLAGS... " >&6; }
18940             XSLT_CFLAGS=`$PKG_CONFIG --cflags "libxslt >= 1.1.11"`
18941             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_CFLAGS" >&5
18942 $as_echo "$XSLT_CFLAGS" >&6; }
18943
18944             { $as_echo "$as_me:${as_lineno-$LINENO}: checking XSLT_LIBS" >&5
18945 $as_echo_n "checking XSLT_LIBS... " >&6; }
18946             XSLT_LIBS=`$PKG_CONFIG --libs "libxslt >= 1.1.11"`
18947             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XSLT_LIBS" >&5
18948 $as_echo "$XSLT_LIBS" >&6; }
18949         else
18950             XSLT_CFLAGS=""
18951             XSLT_LIBS=""
18952             ## If we have a custom action on failure, don't print errors, but
18953             ## do set a variable so people can do so.
18954             XSLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libxslt >= 1.1.11"`
18955             echo $XSLT_PKG_ERRORS
18956         fi
18957
18958
18959
18960      else
18961         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
18962         echo "*** See http://www.freedesktop.org/software/pkgconfig"
18963      fi
18964   fi
18965
18966   if test $succeeded = yes; then
18967      :
18968   else
18969      as_fn_error "Library requirements (libxslt >= 1.1.11) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
18970   fi
18971
18972
18973
18974
18975
18976   fi
18977
18978     if test "x${COMPILE_GTK_PEER}" = xyes; then
18979     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
18980 $as_echo_n "checking for X... " >&6; }
18981
18982
18983 # Check whether --with-x was given.
18984 if test "${with_x+set}" = set; then :
18985   withval=$with_x;
18986 fi
18987
18988 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
18989 if test "x$with_x" = xno; then
18990   # The user explicitly disabled X.
18991   have_x=disabled
18992 else
18993   case $x_includes,$x_libraries in #(
18994     *\'*) as_fn_error "cannot use X directory names containing '" "$LINENO" 5;; #(
18995     *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then :
18996   $as_echo_n "(cached) " >&6
18997 else
18998   # One or both of the vars are not set, and there is no cached value.
18999 ac_x_includes=no ac_x_libraries=no
19000 rm -f -r conftest.dir
19001 if mkdir conftest.dir; then
19002   cd conftest.dir
19003   cat >Imakefile <<'_ACEOF'
19004 incroot:
19005         @echo incroot='${INCROOT}'
19006 usrlibdir:
19007         @echo usrlibdir='${USRLIBDIR}'
19008 libdir:
19009         @echo libdir='${LIBDIR}'
19010 _ACEOF
19011   if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
19012     # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
19013     for ac_var in incroot usrlibdir libdir; do
19014       eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
19015     done
19016     # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
19017     for ac_extension in a so sl dylib la dll; do
19018       if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
19019          test -f "$ac_im_libdir/libX11.$ac_extension"; then
19020         ac_im_usrlibdir=$ac_im_libdir; break
19021       fi
19022     done
19023     # Screen out bogus values from the imake configuration.  They are
19024     # bogus both because they are the default anyway, and because
19025     # using them would break gcc on systems where it needs fixed includes.
19026     case $ac_im_incroot in
19027         /usr/include) ac_x_includes= ;;
19028         *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
19029     esac
19030     case $ac_im_usrlibdir in
19031         /usr/lib | /usr/lib64 | /lib | /lib64) ;;
19032         *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
19033     esac
19034   fi
19035   cd ..
19036   rm -f -r conftest.dir
19037 fi
19038
19039 # Standard set of common directories for X headers.
19040 # Check X11 before X11Rn because it is often a symlink to the current release.
19041 ac_x_header_dirs='
19042 /usr/X11/include
19043 /usr/X11R7/include
19044 /usr/X11R6/include
19045 /usr/X11R5/include
19046 /usr/X11R4/include
19047
19048 /usr/include/X11
19049 /usr/include/X11R7
19050 /usr/include/X11R6
19051 /usr/include/X11R5
19052 /usr/include/X11R4
19053
19054 /usr/local/X11/include
19055 /usr/local/X11R7/include
19056 /usr/local/X11R6/include
19057 /usr/local/X11R5/include
19058 /usr/local/X11R4/include
19059
19060 /usr/local/include/X11
19061 /usr/local/include/X11R7
19062 /usr/local/include/X11R6
19063 /usr/local/include/X11R5
19064 /usr/local/include/X11R4
19065
19066 /usr/X386/include
19067 /usr/x386/include
19068 /usr/XFree86/include/X11
19069
19070 /usr/include
19071 /usr/local/include
19072 /usr/unsupported/include
19073 /usr/athena/include
19074 /usr/local/x11r5/include
19075 /usr/lpp/Xamples/include
19076
19077 /usr/openwin/include
19078 /usr/openwin/share/include'
19079
19080 if test "$ac_x_includes" = no; then
19081   # Guess where to find include files, by looking for Xlib.h.
19082   # First, try using that file with no special directory specified.
19083   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19084 /* end confdefs.h.  */
19085 #include <X11/Xlib.h>
19086 _ACEOF
19087 if ac_fn_c_try_cpp "$LINENO"; then :
19088   # We can compile using X headers with no special include directory.
19089 ac_x_includes=
19090 else
19091   for ac_dir in $ac_x_header_dirs; do
19092   if test -r "$ac_dir/X11/Xlib.h"; then
19093     ac_x_includes=$ac_dir
19094     break
19095   fi
19096 done
19097 fi
19098 rm -f conftest.err conftest.$ac_ext
19099 fi # $ac_x_includes = no
19100
19101 if test "$ac_x_libraries" = no; then
19102   # Check for the libraries.
19103   # See if we find them without any special options.
19104   # Don't add to $LIBS permanently.
19105   ac_save_LIBS=$LIBS
19106   LIBS="-lX11 $LIBS"
19107   if test x$gcc_no_link = xyes; then
19108   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19109 fi
19110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19111 /* end confdefs.h.  */
19112 #include <X11/Xlib.h>
19113 int
19114 main ()
19115 {
19116 XrmInitialize ()
19117   ;
19118   return 0;
19119 }
19120 _ACEOF
19121 if ac_fn_c_try_link "$LINENO"; then :
19122   LIBS=$ac_save_LIBS
19123 # We can link X programs with no special library path.
19124 ac_x_libraries=
19125 else
19126   LIBS=$ac_save_LIBS
19127 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
19128 do
19129   # Don't even attempt the hair of trying to link an X program!
19130   for ac_extension in a so sl dylib la dll; do
19131     if test -r "$ac_dir/libX11.$ac_extension"; then
19132       ac_x_libraries=$ac_dir
19133       break 2
19134     fi
19135   done
19136 done
19137 fi
19138 rm -f core conftest.err conftest.$ac_objext \
19139     conftest$ac_exeext conftest.$ac_ext
19140 fi # $ac_x_libraries = no
19141
19142 case $ac_x_includes,$ac_x_libraries in #(
19143   no,* | *,no | *\'*)
19144     # Didn't find X, or a directory has "'" in its name.
19145     ac_cv_have_x="have_x=no";; #(
19146   *)
19147     # Record where we found X for the cache.
19148     ac_cv_have_x="have_x=yes\
19149         ac_x_includes='$ac_x_includes'\
19150         ac_x_libraries='$ac_x_libraries'"
19151 esac
19152 fi
19153 ;; #(
19154     *) have_x=yes;;
19155   esac
19156   eval "$ac_cv_have_x"
19157 fi # $with_x != no
19158
19159 if test "$have_x" != yes; then
19160   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
19161 $as_echo "$have_x" >&6; }
19162   no_x=yes
19163 else
19164   # If each of the values was on the command line, it overrides each guess.
19165   test "x$x_includes" = xNONE && x_includes=$ac_x_includes
19166   test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
19167   # Update the cache value to reflect the command line values.
19168   ac_cv_have_x="have_x=yes\
19169         ac_x_includes='$x_includes'\
19170         ac_x_libraries='$x_libraries'"
19171   { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
19172 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
19173 fi
19174
19175 if test "$no_x" = yes; then
19176   # Not all programs may use this symbol, but it does not hurt to define it.
19177
19178 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
19179
19180   X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
19181 else
19182   if test -n "$x_includes"; then
19183     X_CFLAGS="$X_CFLAGS -I$x_includes"
19184   fi
19185
19186   # It would also be nice to do this for all -L options, not just this one.
19187   if test -n "$x_libraries"; then
19188     X_LIBS="$X_LIBS -L$x_libraries"
19189     # For Solaris; some versions of Sun CC require a space after -R and
19190     # others require no space.  Words are not sufficient . . . .
19191     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
19192 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
19193     ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
19194     ac_xsave_c_werror_flag=$ac_c_werror_flag
19195     ac_c_werror_flag=yes
19196     if test x$gcc_no_link = xyes; then
19197   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19198 fi
19199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19200 /* end confdefs.h.  */
19201
19202 int
19203 main ()
19204 {
19205
19206   ;
19207   return 0;
19208 }
19209 _ACEOF
19210 if ac_fn_c_try_link "$LINENO"; then :
19211   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19212 $as_echo "no" >&6; }
19213        X_LIBS="$X_LIBS -R$x_libraries"
19214 else
19215   LIBS="$ac_xsave_LIBS -R $x_libraries"
19216        if test x$gcc_no_link = xyes; then
19217   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19218 fi
19219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19220 /* end confdefs.h.  */
19221
19222 int
19223 main ()
19224 {
19225
19226   ;
19227   return 0;
19228 }
19229 _ACEOF
19230 if ac_fn_c_try_link "$LINENO"; then :
19231   { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19232 $as_echo "yes" >&6; }
19233           X_LIBS="$X_LIBS -R $x_libraries"
19234 else
19235   { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
19236 $as_echo "neither works" >&6; }
19237 fi
19238 rm -f core conftest.err conftest.$ac_objext \
19239     conftest$ac_exeext conftest.$ac_ext
19240 fi
19241 rm -f core conftest.err conftest.$ac_objext \
19242     conftest$ac_exeext conftest.$ac_ext
19243     ac_c_werror_flag=$ac_xsave_c_werror_flag
19244     LIBS=$ac_xsave_LIBS
19245   fi
19246
19247   # Check for system-dependent libraries X programs must link with.
19248   # Do this before checking for the system-independent R6 libraries
19249   # (-lICE), since we may need -lsocket or whatever for X linking.
19250
19251   if test "$ISC" = yes; then
19252     X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
19253   else
19254     # Martyn Johnson says this is needed for Ultrix, if the X
19255     # libraries were built with DECnet support.  And Karl Berry says
19256     # the Alpha needs dnet_stub (dnet does not exist).
19257     ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
19258     if test x$gcc_no_link = xyes; then
19259   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19260 fi
19261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19262 /* end confdefs.h.  */
19263
19264 /* Override any GCC internal prototype to avoid an error.
19265    Use char because int might match the return type of a GCC
19266    builtin and then its argument prototype would still apply.  */
19267 #ifdef __cplusplus
19268 extern "C"
19269 #endif
19270 char XOpenDisplay ();
19271 int
19272 main ()
19273 {
19274 return XOpenDisplay ();
19275   ;
19276   return 0;
19277 }
19278 _ACEOF
19279 if ac_fn_c_try_link "$LINENO"; then :
19280
19281 else
19282   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
19283 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
19284 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then :
19285   $as_echo_n "(cached) " >&6
19286 else
19287   ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-ldnet  $LIBS"
19289 if test x$gcc_no_link = xyes; then
19290   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19291 fi
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h.  */
19294
19295 /* Override any GCC internal prototype to avoid an error.
19296    Use char because int might match the return type of a GCC
19297    builtin and then its argument prototype would still apply.  */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char dnet_ntoa ();
19302 int
19303 main ()
19304 {
19305 return dnet_ntoa ();
19306   ;
19307   return 0;
19308 }
19309 _ACEOF
19310 if ac_fn_c_try_link "$LINENO"; then :
19311   ac_cv_lib_dnet_dnet_ntoa=yes
19312 else
19313   ac_cv_lib_dnet_dnet_ntoa=no
19314 fi
19315 rm -f core conftest.err conftest.$ac_objext \
19316     conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19318 fi
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
19320 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
19321 if test "x$ac_cv_lib_dnet_dnet_ntoa" = x""yes; then :
19322   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
19323 fi
19324
19325     if test $ac_cv_lib_dnet_dnet_ntoa = no; then
19326       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
19327 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
19328 if test "${ac_cv_lib_dnet_stub_dnet_ntoa+set}" = set; then :
19329   $as_echo_n "(cached) " >&6
19330 else
19331   ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-ldnet_stub  $LIBS"
19333 if test x$gcc_no_link = xyes; then
19334   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19335 fi
19336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19337 /* end confdefs.h.  */
19338
19339 /* Override any GCC internal prototype to avoid an error.
19340    Use char because int might match the return type of a GCC
19341    builtin and then its argument prototype would still apply.  */
19342 #ifdef __cplusplus
19343 extern "C"
19344 #endif
19345 char dnet_ntoa ();
19346 int
19347 main ()
19348 {
19349 return dnet_ntoa ();
19350   ;
19351   return 0;
19352 }
19353 _ACEOF
19354 if ac_fn_c_try_link "$LINENO"; then :
19355   ac_cv_lib_dnet_stub_dnet_ntoa=yes
19356 else
19357   ac_cv_lib_dnet_stub_dnet_ntoa=no
19358 fi
19359 rm -f core conftest.err conftest.$ac_objext \
19360     conftest$ac_exeext conftest.$ac_ext
19361 LIBS=$ac_check_lib_save_LIBS
19362 fi
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
19364 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
19365 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = x""yes; then :
19366   X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
19367 fi
19368
19369     fi
19370 fi
19371 rm -f core conftest.err conftest.$ac_objext \
19372     conftest$ac_exeext conftest.$ac_ext
19373     LIBS="$ac_xsave_LIBS"
19374
19375     # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
19376     # to get the SysV transport functions.
19377     # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
19378     # needs -lnsl.
19379     # The nsl library prevents programs from opening the X display
19380     # on Irix 5.2, according to T.E. Dickey.
19381     # The functions gethostbyname, getservbyname, and inet_addr are
19382     # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
19383     ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
19384 if test "x$ac_cv_func_gethostbyname" = x""yes; then :
19385
19386 fi
19387
19388     if test $ac_cv_func_gethostbyname = no; then
19389       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
19390 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
19391 if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then :
19392   $as_echo_n "(cached) " >&6
19393 else
19394   ac_check_lib_save_LIBS=$LIBS
19395 LIBS="-lnsl  $LIBS"
19396 if test x$gcc_no_link = xyes; then
19397   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19398 fi
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h.  */
19401
19402 /* Override any GCC internal prototype to avoid an error.
19403    Use char because int might match the return type of a GCC
19404    builtin and then its argument prototype would still apply.  */
19405 #ifdef __cplusplus
19406 extern "C"
19407 #endif
19408 char gethostbyname ();
19409 int
19410 main ()
19411 {
19412 return gethostbyname ();
19413   ;
19414   return 0;
19415 }
19416 _ACEOF
19417 if ac_fn_c_try_link "$LINENO"; then :
19418   ac_cv_lib_nsl_gethostbyname=yes
19419 else
19420   ac_cv_lib_nsl_gethostbyname=no
19421 fi
19422 rm -f core conftest.err conftest.$ac_objext \
19423     conftest$ac_exeext conftest.$ac_ext
19424 LIBS=$ac_check_lib_save_LIBS
19425 fi
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
19427 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
19428 if test "x$ac_cv_lib_nsl_gethostbyname" = x""yes; then :
19429   X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
19430 fi
19431
19432       if test $ac_cv_lib_nsl_gethostbyname = no; then
19433         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
19434 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
19435 if test "${ac_cv_lib_bsd_gethostbyname+set}" = set; then :
19436   $as_echo_n "(cached) " >&6
19437 else
19438   ac_check_lib_save_LIBS=$LIBS
19439 LIBS="-lbsd  $LIBS"
19440 if test x$gcc_no_link = xyes; then
19441   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19442 fi
19443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19444 /* end confdefs.h.  */
19445
19446 /* Override any GCC internal prototype to avoid an error.
19447    Use char because int might match the return type of a GCC
19448    builtin and then its argument prototype would still apply.  */
19449 #ifdef __cplusplus
19450 extern "C"
19451 #endif
19452 char gethostbyname ();
19453 int
19454 main ()
19455 {
19456 return gethostbyname ();
19457   ;
19458   return 0;
19459 }
19460 _ACEOF
19461 if ac_fn_c_try_link "$LINENO"; then :
19462   ac_cv_lib_bsd_gethostbyname=yes
19463 else
19464   ac_cv_lib_bsd_gethostbyname=no
19465 fi
19466 rm -f core conftest.err conftest.$ac_objext \
19467     conftest$ac_exeext conftest.$ac_ext
19468 LIBS=$ac_check_lib_save_LIBS
19469 fi
19470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
19471 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
19472 if test "x$ac_cv_lib_bsd_gethostbyname" = x""yes; then :
19473   X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
19474 fi
19475
19476       fi
19477     fi
19478
19479     # lieder@skyler.mavd.honeywell.com says without -lsocket,
19480     # socket/setsockopt and other routines are undefined under SCO ODT
19481     # 2.0.  But -lsocket is broken on IRIX 5.2 (and is not necessary
19482     # on later versions), says Simon Leinen: it contains gethostby*
19483     # variants that don't use the name server (or something).  -lsocket
19484     # must be given before -lnsl if both are needed.  We assume that
19485     # if connect needs -lnsl, so does gethostbyname.
19486     ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
19487 if test "x$ac_cv_func_connect" = x""yes; then :
19488
19489 fi
19490
19491     if test $ac_cv_func_connect = no; then
19492       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
19493 $as_echo_n "checking for connect in -lsocket... " >&6; }
19494 if test "${ac_cv_lib_socket_connect+set}" = set; then :
19495   $as_echo_n "(cached) " >&6
19496 else
19497   ac_check_lib_save_LIBS=$LIBS
19498 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
19499 if test x$gcc_no_link = xyes; then
19500   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19501 fi
19502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19503 /* end confdefs.h.  */
19504
19505 /* Override any GCC internal prototype to avoid an error.
19506    Use char because int might match the return type of a GCC
19507    builtin and then its argument prototype would still apply.  */
19508 #ifdef __cplusplus
19509 extern "C"
19510 #endif
19511 char connect ();
19512 int
19513 main ()
19514 {
19515 return connect ();
19516   ;
19517   return 0;
19518 }
19519 _ACEOF
19520 if ac_fn_c_try_link "$LINENO"; then :
19521   ac_cv_lib_socket_connect=yes
19522 else
19523   ac_cv_lib_socket_connect=no
19524 fi
19525 rm -f core conftest.err conftest.$ac_objext \
19526     conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
19530 $as_echo "$ac_cv_lib_socket_connect" >&6; }
19531 if test "x$ac_cv_lib_socket_connect" = x""yes; then :
19532   X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
19533 fi
19534
19535     fi
19536
19537     # Guillermo Gomez says -lposix is necessary on A/UX.
19538     ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
19539 if test "x$ac_cv_func_remove" = x""yes; then :
19540
19541 fi
19542
19543     if test $ac_cv_func_remove = no; then
19544       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
19545 $as_echo_n "checking for remove in -lposix... " >&6; }
19546 if test "${ac_cv_lib_posix_remove+set}" = set; then :
19547   $as_echo_n "(cached) " >&6
19548 else
19549   ac_check_lib_save_LIBS=$LIBS
19550 LIBS="-lposix  $LIBS"
19551 if test x$gcc_no_link = xyes; then
19552   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19553 fi
19554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19555 /* end confdefs.h.  */
19556
19557 /* Override any GCC internal prototype to avoid an error.
19558    Use char because int might match the return type of a GCC
19559    builtin and then its argument prototype would still apply.  */
19560 #ifdef __cplusplus
19561 extern "C"
19562 #endif
19563 char remove ();
19564 int
19565 main ()
19566 {
19567 return remove ();
19568   ;
19569   return 0;
19570 }
19571 _ACEOF
19572 if ac_fn_c_try_link "$LINENO"; then :
19573   ac_cv_lib_posix_remove=yes
19574 else
19575   ac_cv_lib_posix_remove=no
19576 fi
19577 rm -f core conftest.err conftest.$ac_objext \
19578     conftest$ac_exeext conftest.$ac_ext
19579 LIBS=$ac_check_lib_save_LIBS
19580 fi
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
19582 $as_echo "$ac_cv_lib_posix_remove" >&6; }
19583 if test "x$ac_cv_lib_posix_remove" = x""yes; then :
19584   X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
19585 fi
19586
19587     fi
19588
19589     # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
19590     ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
19591 if test "x$ac_cv_func_shmat" = x""yes; then :
19592
19593 fi
19594
19595     if test $ac_cv_func_shmat = no; then
19596       { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
19597 $as_echo_n "checking for shmat in -lipc... " >&6; }
19598 if test "${ac_cv_lib_ipc_shmat+set}" = set; then :
19599   $as_echo_n "(cached) " >&6
19600 else
19601   ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lipc  $LIBS"
19603 if test x$gcc_no_link = xyes; then
19604   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19605 fi
19606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19607 /* end confdefs.h.  */
19608
19609 /* Override any GCC internal prototype to avoid an error.
19610    Use char because int might match the return type of a GCC
19611    builtin and then its argument prototype would still apply.  */
19612 #ifdef __cplusplus
19613 extern "C"
19614 #endif
19615 char shmat ();
19616 int
19617 main ()
19618 {
19619 return shmat ();
19620   ;
19621   return 0;
19622 }
19623 _ACEOF
19624 if ac_fn_c_try_link "$LINENO"; then :
19625   ac_cv_lib_ipc_shmat=yes
19626 else
19627   ac_cv_lib_ipc_shmat=no
19628 fi
19629 rm -f core conftest.err conftest.$ac_objext \
19630     conftest$ac_exeext conftest.$ac_ext
19631 LIBS=$ac_check_lib_save_LIBS
19632 fi
19633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
19634 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
19635 if test "x$ac_cv_lib_ipc_shmat" = x""yes; then :
19636   X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
19637 fi
19638
19639     fi
19640   fi
19641
19642   # Check for libraries that X11R6 Xt/Xaw programs need.
19643   ac_save_LDFLAGS=$LDFLAGS
19644   test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
19645   # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
19646   # check for ICE first), but we must link in the order -lSM -lICE or
19647   # we get undefined symbols.  So assume we have SM if we have ICE.
19648   # These have to be linked with before -lX11, unlike the other
19649   # libraries we check for below, so use a different variable.
19650   # John Interrante, Karl Berry
19651   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
19652 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
19653 if test "${ac_cv_lib_ICE_IceConnectionNumber+set}" = set; then :
19654   $as_echo_n "(cached) " >&6
19655 else
19656   ac_check_lib_save_LIBS=$LIBS
19657 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
19658 if test x$gcc_no_link = xyes; then
19659   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19660 fi
19661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19662 /* end confdefs.h.  */
19663
19664 /* Override any GCC internal prototype to avoid an error.
19665    Use char because int might match the return type of a GCC
19666    builtin and then its argument prototype would still apply.  */
19667 #ifdef __cplusplus
19668 extern "C"
19669 #endif
19670 char IceConnectionNumber ();
19671 int
19672 main ()
19673 {
19674 return IceConnectionNumber ();
19675   ;
19676   return 0;
19677 }
19678 _ACEOF
19679 if ac_fn_c_try_link "$LINENO"; then :
19680   ac_cv_lib_ICE_IceConnectionNumber=yes
19681 else
19682   ac_cv_lib_ICE_IceConnectionNumber=no
19683 fi
19684 rm -f core conftest.err conftest.$ac_objext \
19685     conftest$ac_exeext conftest.$ac_ext
19686 LIBS=$ac_check_lib_save_LIBS
19687 fi
19688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
19689 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
19690 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = x""yes; then :
19691   X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
19692 fi
19693
19694   LDFLAGS=$ac_save_LDFLAGS
19695
19696 fi
19697
19698     if test "$no_x" = yes; then
19699         as_fn_error "GTK+ peers requested but no X library available" "$LINENO" 5
19700     fi
19701             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTestQueryExtension in -lXtst" >&5
19702 $as_echo_n "checking for XTestQueryExtension in -lXtst... " >&6; }
19703 if test "${ac_cv_lib_Xtst_XTestQueryExtension+set}" = set; then :
19704   $as_echo_n "(cached) " >&6
19705 else
19706   ac_check_lib_save_LIBS=$LIBS
19707 LIBS="-lXtst ${X_LIBS} $LIBS"
19708 if test x$gcc_no_link = xyes; then
19709   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19710 fi
19711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19712 /* end confdefs.h.  */
19713
19714 /* Override any GCC internal prototype to avoid an error.
19715    Use char because int might match the return type of a GCC
19716    builtin and then its argument prototype would still apply.  */
19717 #ifdef __cplusplus
19718 extern "C"
19719 #endif
19720 char XTestQueryExtension ();
19721 int
19722 main ()
19723 {
19724 return XTestQueryExtension ();
19725   ;
19726   return 0;
19727 }
19728 _ACEOF
19729 if ac_fn_c_try_link "$LINENO"; then :
19730   ac_cv_lib_Xtst_XTestQueryExtension=yes
19731 else
19732   ac_cv_lib_Xtst_XTestQueryExtension=no
19733 fi
19734 rm -f core conftest.err conftest.$ac_objext \
19735     conftest$ac_exeext conftest.$ac_ext
19736 LIBS=$ac_check_lib_save_LIBS
19737 fi
19738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xtst_XTestQueryExtension" >&5
19739 $as_echo "$ac_cv_lib_Xtst_XTestQueryExtension" >&6; }
19740 if test "x$ac_cv_lib_Xtst_XTestQueryExtension" = x""yes; then :
19741
19742 $as_echo "#define HAVE_XTEST 1" >>confdefs.h
19743 XTEST_LIBS="$XTEST_LIBS -X11 -lXtst"
19744 else
19745   true
19746 fi
19747
19748
19749
19750
19751   succeeded=no
19752
19753   if test -z "$PKG_CONFIG"; then
19754     # Extract the first word of "pkg-config", so it can be a program name with args.
19755 set dummy pkg-config; ac_word=$2
19756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19757 $as_echo_n "checking for $ac_word... " >&6; }
19758 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19759   $as_echo_n "(cached) " >&6
19760 else
19761   case $PKG_CONFIG in
19762   [\\/]* | ?:[\\/]*)
19763   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19764   ;;
19765   *)
19766   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19767 for as_dir in $PATH
19768 do
19769   IFS=$as_save_IFS
19770   test -z "$as_dir" && as_dir=.
19771     for ac_exec_ext in '' $ac_executable_extensions; do
19772   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19773     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19774     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19775     break 2
19776   fi
19777 done
19778   done
19779 IFS=$as_save_IFS
19780
19781   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19782   ;;
19783 esac
19784 fi
19785 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19786 if test -n "$PKG_CONFIG"; then
19787   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19788 $as_echo "$PKG_CONFIG" >&6; }
19789 else
19790   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19791 $as_echo "no" >&6; }
19792 fi
19793
19794
19795   fi
19796
19797   if test "$PKG_CONFIG" = "no" ; then
19798      echo "*** The pkg-config script could not be found. Make sure it is"
19799      echo "*** in your path, or set the PKG_CONFIG environment variable"
19800      echo "*** to the full path to pkg-config."
19801      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19802   else
19803      PKG_CONFIG_MIN_VERSION=0.9.0
19804      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19805         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
19806 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
19807
19808         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
19809             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19810 $as_echo "yes" >&6; }
19811             succeeded=yes
19812
19813             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
19814 $as_echo_n "checking GTK_CFLAGS... " >&6; }
19815             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19816             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
19817 $as_echo "$GTK_CFLAGS" >&6; }
19818
19819             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
19820 $as_echo_n "checking GTK_LIBS... " >&6; }
19821             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19822             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
19823 $as_echo "$GTK_LIBS" >&6; }
19824         else
19825             GTK_CFLAGS=""
19826             GTK_LIBS=""
19827             ## If we have a custom action on failure, don't print errors, but
19828             ## do set a variable so people can do so.
19829             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
19830             echo $GTK_PKG_ERRORS
19831         fi
19832
19833
19834
19835      else
19836         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19837         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19838      fi
19839   fi
19840
19841   if test $succeeded = yes; then
19842      :
19843   else
19844      as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19845   fi
19846
19847
19848   succeeded=no
19849
19850   if test -z "$PKG_CONFIG"; then
19851     # Extract the first word of "pkg-config", so it can be a program name with args.
19852 set dummy pkg-config; ac_word=$2
19853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19854 $as_echo_n "checking for $ac_word... " >&6; }
19855 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19856   $as_echo_n "(cached) " >&6
19857 else
19858   case $PKG_CONFIG in
19859   [\\/]* | ?:[\\/]*)
19860   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19861   ;;
19862   *)
19863   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19864 for as_dir in $PATH
19865 do
19866   IFS=$as_save_IFS
19867   test -z "$as_dir" && as_dir=.
19868     for ac_exec_ext in '' $ac_executable_extensions; do
19869   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19870     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19871     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19872     break 2
19873   fi
19874 done
19875   done
19876 IFS=$as_save_IFS
19877
19878   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19879   ;;
19880 esac
19881 fi
19882 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19883 if test -n "$PKG_CONFIG"; then
19884   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19885 $as_echo "$PKG_CONFIG" >&6; }
19886 else
19887   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19888 $as_echo "no" >&6; }
19889 fi
19890
19891
19892   fi
19893
19894   if test "$PKG_CONFIG" = "no" ; then
19895      echo "*** The pkg-config script could not be found. Make sure it is"
19896      echo "*** in your path, or set the PKG_CONFIG environment variable"
19897      echo "*** to the full path to pkg-config."
19898      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19899   else
19900      PKG_CONFIG_MIN_VERSION=0.9.0
19901      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19902         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for freetype2" >&5
19903 $as_echo_n "checking for freetype2... " >&6; }
19904
19905         if $PKG_CONFIG --exists "freetype2" ; then
19906             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
19907 $as_echo "yes" >&6; }
19908             succeeded=yes
19909
19910             { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_CFLAGS" >&5
19911 $as_echo_n "checking FREETYPE2_CFLAGS... " >&6; }
19912             FREETYPE2_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
19913             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_CFLAGS" >&5
19914 $as_echo "$FREETYPE2_CFLAGS" >&6; }
19915
19916             { $as_echo "$as_me:${as_lineno-$LINENO}: checking FREETYPE2_LIBS" >&5
19917 $as_echo_n "checking FREETYPE2_LIBS... " >&6; }
19918             FREETYPE2_LIBS=`$PKG_CONFIG --libs "freetype2"`
19919             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FREETYPE2_LIBS" >&5
19920 $as_echo "$FREETYPE2_LIBS" >&6; }
19921         else
19922             FREETYPE2_CFLAGS=""
19923             FREETYPE2_LIBS=""
19924             ## If we have a custom action on failure, don't print errors, but
19925             ## do set a variable so people can do so.
19926             FREETYPE2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
19927             echo $FREETYPE2_PKG_ERRORS
19928         fi
19929
19930
19931
19932      else
19933         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
19934         echo "*** See http://www.freedesktop.org/software/pkgconfig"
19935      fi
19936   fi
19937
19938   if test $succeeded = yes; then
19939      :
19940   else
19941      as_fn_error "Library requirements (freetype2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
19942   fi
19943
19944
19945   succeeded=no
19946
19947   if test -z "$PKG_CONFIG"; then
19948     # Extract the first word of "pkg-config", so it can be a program name with args.
19949 set dummy pkg-config; ac_word=$2
19950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
19951 $as_echo_n "checking for $ac_word... " >&6; }
19952 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
19953   $as_echo_n "(cached) " >&6
19954 else
19955   case $PKG_CONFIG in
19956   [\\/]* | ?:[\\/]*)
19957   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
19958   ;;
19959   *)
19960   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19961 for as_dir in $PATH
19962 do
19963   IFS=$as_save_IFS
19964   test -z "$as_dir" && as_dir=.
19965     for ac_exec_ext in '' $ac_executable_extensions; do
19966   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
19967     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
19968     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
19969     break 2
19970   fi
19971 done
19972   done
19973 IFS=$as_save_IFS
19974
19975   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
19976   ;;
19977 esac
19978 fi
19979 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
19980 if test -n "$PKG_CONFIG"; then
19981   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
19982 $as_echo "$PKG_CONFIG" >&6; }
19983 else
19984   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
19985 $as_echo "no" >&6; }
19986 fi
19987
19988
19989   fi
19990
19991   if test "$PKG_CONFIG" = "no" ; then
19992      echo "*** The pkg-config script could not be found. Make sure it is"
19993      echo "*** in your path, or set the PKG_CONFIG environment variable"
19994      echo "*** to the full path to pkg-config."
19995      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
19996   else
19997      PKG_CONFIG_MIN_VERSION=0.9.0
19998      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
19999         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pangoft2" >&5
20000 $as_echo_n "checking for pangoft2... " >&6; }
20001
20002         if $PKG_CONFIG --exists "pangoft2" ; then
20003             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20004 $as_echo "yes" >&6; }
20005             succeeded=yes
20006
20007             { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_CFLAGS" >&5
20008 $as_echo_n "checking PANGOFT2_CFLAGS... " >&6; }
20009             PANGOFT2_CFLAGS=`$PKG_CONFIG --cflags "pangoft2"`
20010             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_CFLAGS" >&5
20011 $as_echo "$PANGOFT2_CFLAGS" >&6; }
20012
20013             { $as_echo "$as_me:${as_lineno-$LINENO}: checking PANGOFT2_LIBS" >&5
20014 $as_echo_n "checking PANGOFT2_LIBS... " >&6; }
20015             PANGOFT2_LIBS=`$PKG_CONFIG --libs "pangoft2"`
20016             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PANGOFT2_LIBS" >&5
20017 $as_echo "$PANGOFT2_LIBS" >&6; }
20018         else
20019             PANGOFT2_CFLAGS=""
20020             PANGOFT2_LIBS=""
20021             ## If we have a custom action on failure, don't print errors, but
20022             ## do set a variable so people can do so.
20023             PANGOFT2_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "pangoft2"`
20024             echo $PANGOFT2_PKG_ERRORS
20025         fi
20026
20027
20028
20029      else
20030         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20031         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20032      fi
20033   fi
20034
20035   if test $succeeded = yes; then
20036      :
20037   else
20038      as_fn_error "Library requirements (pangoft2) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20039   fi
20040
20041
20042   succeeded=no
20043
20044   if test -z "$PKG_CONFIG"; then
20045     # Extract the first word of "pkg-config", so it can be a program name with args.
20046 set dummy pkg-config; ac_word=$2
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20048 $as_echo_n "checking for $ac_word... " >&6; }
20049 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20050   $as_echo_n "(cached) " >&6
20051 else
20052   case $PKG_CONFIG in
20053   [\\/]* | ?:[\\/]*)
20054   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20055   ;;
20056   *)
20057   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20058 for as_dir in $PATH
20059 do
20060   IFS=$as_save_IFS
20061   test -z "$as_dir" && as_dir=.
20062     for ac_exec_ext in '' $ac_executable_extensions; do
20063   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20064     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20065     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20066     break 2
20067   fi
20068 done
20069   done
20070 IFS=$as_save_IFS
20071
20072   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20073   ;;
20074 esac
20075 fi
20076 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20077 if test -n "$PKG_CONFIG"; then
20078   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20079 $as_echo "$PKG_CONFIG" >&6; }
20080 else
20081   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20082 $as_echo "no" >&6; }
20083 fi
20084
20085
20086   fi
20087
20088   if test "$PKG_CONFIG" = "no" ; then
20089      echo "*** The pkg-config script could not be found. Make sure it is"
20090      echo "*** in your path, or set the PKG_CONFIG environment variable"
20091      echo "*** to the full path to pkg-config."
20092      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20093   else
20094      PKG_CONFIG_MIN_VERSION=0.9.0
20095      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20096         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo >= 1.1.8" >&5
20097 $as_echo_n "checking for cairo >= 1.1.8... " >&6; }
20098
20099         if $PKG_CONFIG --exists "cairo >= 1.1.8" ; then
20100             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20101 $as_echo "yes" >&6; }
20102             succeeded=yes
20103
20104             { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_CFLAGS" >&5
20105 $as_echo_n "checking CAIRO_CFLAGS... " >&6; }
20106             CAIRO_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.1.8"`
20107             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_CFLAGS" >&5
20108 $as_echo "$CAIRO_CFLAGS" >&6; }
20109
20110             { $as_echo "$as_me:${as_lineno-$LINENO}: checking CAIRO_LIBS" >&5
20111 $as_echo_n "checking CAIRO_LIBS... " >&6; }
20112             CAIRO_LIBS=`$PKG_CONFIG --libs "cairo >= 1.1.8"`
20113             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CAIRO_LIBS" >&5
20114 $as_echo "$CAIRO_LIBS" >&6; }
20115         else
20116             CAIRO_CFLAGS=""
20117             CAIRO_LIBS=""
20118             ## If we have a custom action on failure, don't print errors, but
20119             ## do set a variable so people can do so.
20120             CAIRO_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "cairo >= 1.1.8"`
20121             echo $CAIRO_PKG_ERRORS
20122         fi
20123
20124
20125
20126      else
20127         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20128         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20129      fi
20130   fi
20131
20132   if test $succeeded = yes; then
20133      :
20134   else
20135      as_fn_error "Library requirements (cairo >= 1.1.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20136   fi
20137
20138             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRenderQueryExtension in -lXrender" >&5
20139 $as_echo_n "checking for XRenderQueryExtension in -lXrender... " >&6; }
20140 if test "${ac_cv_lib_Xrender_XRenderQueryExtension+set}" = set; then :
20141   $as_echo_n "(cached) " >&6
20142 else
20143   ac_check_lib_save_LIBS=$LIBS
20144 LIBS="-lXrender ${X_LIBS} $LIBS"
20145 if test x$gcc_no_link = xyes; then
20146   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20147 fi
20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20149 /* end confdefs.h.  */
20150
20151 /* Override any GCC internal prototype to avoid an error.
20152    Use char because int might match the return type of a GCC
20153    builtin and then its argument prototype would still apply.  */
20154 #ifdef __cplusplus
20155 extern "C"
20156 #endif
20157 char XRenderQueryExtension ();
20158 int
20159 main ()
20160 {
20161 return XRenderQueryExtension ();
20162   ;
20163   return 0;
20164 }
20165 _ACEOF
20166 if ac_fn_c_try_link "$LINENO"; then :
20167   ac_cv_lib_Xrender_XRenderQueryExtension=yes
20168 else
20169   ac_cv_lib_Xrender_XRenderQueryExtension=no
20170 fi
20171 rm -f core conftest.err conftest.$ac_objext \
20172     conftest$ac_exeext conftest.$ac_ext
20173 LIBS=$ac_check_lib_save_LIBS
20174 fi
20175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrender_XRenderQueryExtension" >&5
20176 $as_echo "$ac_cv_lib_Xrender_XRenderQueryExtension" >&6; }
20177 if test "x$ac_cv_lib_Xrender_XRenderQueryExtension" = x""yes; then :
20178
20179 $as_echo "#define HAVE_XRENDER 1" >>confdefs.h
20180 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrender"
20181 else
20182   true
20183 fi
20184
20185
20186             { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XRRQueryExtension in -lXrandr" >&5
20187 $as_echo_n "checking for XRRQueryExtension in -lXrandr... " >&6; }
20188 if test "${ac_cv_lib_Xrandr_XRRQueryExtension+set}" = set; then :
20189   $as_echo_n "(cached) " >&6
20190 else
20191   ac_check_lib_save_LIBS=$LIBS
20192 LIBS="-lXrandr ${X_LIBS} $LIBS"
20193 if test x$gcc_no_link = xyes; then
20194   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20195 fi
20196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20197 /* end confdefs.h.  */
20198
20199 /* Override any GCC internal prototype to avoid an error.
20200    Use char because int might match the return type of a GCC
20201    builtin and then its argument prototype would still apply.  */
20202 #ifdef __cplusplus
20203 extern "C"
20204 #endif
20205 char XRRQueryExtension ();
20206 int
20207 main ()
20208 {
20209 return XRRQueryExtension ();
20210   ;
20211   return 0;
20212 }
20213 _ACEOF
20214 if ac_fn_c_try_link "$LINENO"; then :
20215   ac_cv_lib_Xrandr_XRRQueryExtension=yes
20216 else
20217   ac_cv_lib_Xrandr_XRRQueryExtension=no
20218 fi
20219 rm -f core conftest.err conftest.$ac_objext \
20220     conftest$ac_exeext conftest.$ac_ext
20221 LIBS=$ac_check_lib_save_LIBS
20222 fi
20223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xrandr_XRRQueryExtension" >&5
20224 $as_echo "$ac_cv_lib_Xrandr_XRRQueryExtension" >&6; }
20225 if test "x$ac_cv_lib_Xrandr_XRRQueryExtension" = x""yes; then :
20226
20227 $as_echo "#define HAVE_XRANDR 1" >>confdefs.h
20228 X_EXTRA_LIBS="$X_EXTRA_LIBS -lXrandr"
20229 else
20230   true
20231 fi
20232
20233
20234
20235
20236
20237
20238
20239
20240
20241   fi
20242
20243     if  test "x${COMPILE_GCONF_PEER}" = xyes; then
20244
20245   succeeded=no
20246
20247   if test -z "$PKG_CONFIG"; then
20248     # Extract the first word of "pkg-config", so it can be a program name with args.
20249 set dummy pkg-config; ac_word=$2
20250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20251 $as_echo_n "checking for $ac_word... " >&6; }
20252 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20253   $as_echo_n "(cached) " >&6
20254 else
20255   case $PKG_CONFIG in
20256   [\\/]* | ?:[\\/]*)
20257   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20258   ;;
20259   *)
20260   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20261 for as_dir in $PATH
20262 do
20263   IFS=$as_save_IFS
20264   test -z "$as_dir" && as_dir=.
20265     for ac_exec_ext in '' $ac_executable_extensions; do
20266   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20267     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20268     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20269     break 2
20270   fi
20271 done
20272   done
20273 IFS=$as_save_IFS
20274
20275   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20276   ;;
20277 esac
20278 fi
20279 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20280 if test -n "$PKG_CONFIG"; then
20281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20282 $as_echo "$PKG_CONFIG" >&6; }
20283 else
20284   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20285 $as_echo "no" >&6; }
20286 fi
20287
20288
20289   fi
20290
20291   if test "$PKG_CONFIG" = "no" ; then
20292      echo "*** The pkg-config script could not be found. Make sure it is"
20293      echo "*** in your path, or set the PKG_CONFIG environment variable"
20294      echo "*** to the full path to pkg-config."
20295      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20296   else
20297      PKG_CONFIG_MIN_VERSION=0.9.0
20298      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20299         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gconf-2.0 >= 2.6.0" >&5
20300 $as_echo_n "checking for gconf-2.0 >= 2.6.0... " >&6; }
20301
20302         if $PKG_CONFIG --exists "gconf-2.0 >= 2.6.0" ; then
20303             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20304 $as_echo "yes" >&6; }
20305             succeeded=yes
20306
20307             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_CFLAGS" >&5
20308 $as_echo_n "checking GCONF_CFLAGS... " >&6; }
20309             GCONF_CFLAGS=`$PKG_CONFIG --cflags "gconf-2.0 >= 2.6.0"`
20310             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_CFLAGS" >&5
20311 $as_echo "$GCONF_CFLAGS" >&6; }
20312
20313             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GCONF_LIBS" >&5
20314 $as_echo_n "checking GCONF_LIBS... " >&6; }
20315             GCONF_LIBS=`$PKG_CONFIG --libs "gconf-2.0 >= 2.6.0"`
20316             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GCONF_LIBS" >&5
20317 $as_echo "$GCONF_LIBS" >&6; }
20318         else
20319             GCONF_CFLAGS=""
20320             GCONF_LIBS=""
20321             ## If we have a custom action on failure, don't print errors, but
20322             ## do set a variable so people can do so.
20323             GCONF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gconf-2.0 >= 2.6.0"`
20324             echo $GCONF_PKG_ERRORS
20325         fi
20326
20327
20328
20329      else
20330         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20331         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20332      fi
20333   fi
20334
20335   if test $succeeded = yes; then
20336      :
20337   else
20338      as_fn_error "Library requirements (gconf-2.0 >= 2.6.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20339   fi
20340
20341
20342
20343
20344   succeeded=no
20345
20346   if test -z "$PKG_CONFIG"; then
20347     # Extract the first word of "pkg-config", so it can be a program name with args.
20348 set dummy pkg-config; ac_word=$2
20349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20350 $as_echo_n "checking for $ac_word... " >&6; }
20351 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20352   $as_echo_n "(cached) " >&6
20353 else
20354   case $PKG_CONFIG in
20355   [\\/]* | ?:[\\/]*)
20356   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20357   ;;
20358   *)
20359   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20360 for as_dir in $PATH
20361 do
20362   IFS=$as_save_IFS
20363   test -z "$as_dir" && as_dir=.
20364     for ac_exec_ext in '' $ac_executable_extensions; do
20365   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20366     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20367     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20368     break 2
20369   fi
20370 done
20371   done
20372 IFS=$as_save_IFS
20373
20374   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20375   ;;
20376 esac
20377 fi
20378 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20379 if test -n "$PKG_CONFIG"; then
20380   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20381 $as_echo "$PKG_CONFIG" >&6; }
20382 else
20383   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20384 $as_echo "no" >&6; }
20385 fi
20386
20387
20388   fi
20389
20390   if test "$PKG_CONFIG" = "no" ; then
20391      echo "*** The pkg-config script could not be found. Make sure it is"
20392      echo "*** in your path, or set the PKG_CONFIG environment variable"
20393      echo "*** to the full path to pkg-config."
20394      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20395   else
20396      PKG_CONFIG_MIN_VERSION=0.9.0
20397      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20398         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20399 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20400
20401         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20402             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20403 $as_echo "yes" >&6; }
20404             succeeded=yes
20405
20406             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20407 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20408             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20409             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20410 $as_echo "$GDK_CFLAGS" >&6; }
20411
20412             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20413 $as_echo_n "checking GDK_LIBS... " >&6; }
20414             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20415             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20416 $as_echo "$GDK_LIBS" >&6; }
20417         else
20418             GDK_CFLAGS=""
20419             GDK_LIBS=""
20420             ## If we have a custom action on failure, don't print errors, but
20421             ## do set a variable so people can do so.
20422             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20423             echo $GDK_PKG_ERRORS
20424         fi
20425
20426
20427
20428      else
20429         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20430         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20431      fi
20432   fi
20433
20434   if test $succeeded = yes; then
20435      :
20436   else
20437      as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20438   fi
20439
20440
20441
20442                 USE_GCONF_PREFS_PEER=$enable_default_preferences_peer
20443     if test "$USE_GCONF_PREFS_PEER" = ""; then
20444       DEFAULT_PREFS_PEER=gnu.java.util.prefs.GConfBasedFactory
20445     fi
20446   fi
20447
20448     if  test "x${COMPILE_GSTREAMER_PEER}" = xyes; then
20449     GST_MAJORMINOR=0.10
20450     GST_REQUIRED=0.10.10
20451
20452
20453   succeeded=no
20454
20455   if test -z "$PKG_CONFIG"; then
20456     # Extract the first word of "pkg-config", so it can be a program name with args.
20457 set dummy pkg-config; ac_word=$2
20458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20459 $as_echo_n "checking for $ac_word... " >&6; }
20460 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20461   $as_echo_n "(cached) " >&6
20462 else
20463   case $PKG_CONFIG in
20464   [\\/]* | ?:[\\/]*)
20465   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20466   ;;
20467   *)
20468   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20469 for as_dir in $PATH
20470 do
20471   IFS=$as_save_IFS
20472   test -z "$as_dir" && as_dir=.
20473     for ac_exec_ext in '' $ac_executable_extensions; do
20474   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20475     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20476     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20477     break 2
20478   fi
20479 done
20480   done
20481 IFS=$as_save_IFS
20482
20483   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20484   ;;
20485 esac
20486 fi
20487 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20488 if test -n "$PKG_CONFIG"; then
20489   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20490 $as_echo "$PKG_CONFIG" >&6; }
20491 else
20492   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20493 $as_echo "no" >&6; }
20494 fi
20495
20496
20497   fi
20498
20499   if test "$PKG_CONFIG" = "no" ; then
20500      echo "*** The pkg-config script could not be found. Make sure it is"
20501      echo "*** in your path, or set the PKG_CONFIG environment variable"
20502      echo "*** to the full path to pkg-config."
20503      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20504   else
20505      PKG_CONFIG_MIN_VERSION=0.9.0
20506      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20507         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20508 $as_echo_n "checking for gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20509
20510         if $PKG_CONFIG --exists "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20511             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20512 $as_echo "yes" >&6; }
20513             succeeded=yes
20514
20515             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_CFLAGS" >&5
20516 $as_echo_n "checking GSTREAMER_CFLAGS... " >&6; }
20517             GSTREAMER_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20518             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_CFLAGS" >&5
20519 $as_echo "$GSTREAMER_CFLAGS" >&6; }
20520
20521             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_LIBS" >&5
20522 $as_echo_n "checking GSTREAMER_LIBS... " >&6; }
20523             GSTREAMER_LIBS=`$PKG_CONFIG --libs "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20524             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_LIBS" >&5
20525 $as_echo "$GSTREAMER_LIBS" >&6; }
20526         else
20527             GSTREAMER_CFLAGS=""
20528             GSTREAMER_LIBS=""
20529             ## If we have a custom action on failure, don't print errors, but
20530             ## do set a variable so people can do so.
20531             GSTREAMER_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED"`
20532             echo $GSTREAMER_PKG_ERRORS
20533         fi
20534
20535
20536
20537      else
20538         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20539         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20540      fi
20541   fi
20542
20543   if test $succeeded = yes; then
20544      :
20545   else
20546      as_fn_error "Library requirements (gstreamer-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20547   fi
20548
20549
20550
20551
20552
20553   succeeded=no
20554
20555   if test -z "$PKG_CONFIG"; then
20556     # Extract the first word of "pkg-config", so it can be a program name with args.
20557 set dummy pkg-config; ac_word=$2
20558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20559 $as_echo_n "checking for $ac_word... " >&6; }
20560 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20561   $as_echo_n "(cached) " >&6
20562 else
20563   case $PKG_CONFIG in
20564   [\\/]* | ?:[\\/]*)
20565   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20566   ;;
20567   *)
20568   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20569 for as_dir in $PATH
20570 do
20571   IFS=$as_save_IFS
20572   test -z "$as_dir" && as_dir=.
20573     for ac_exec_ext in '' $ac_executable_extensions; do
20574   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20575     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20576     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20577     break 2
20578   fi
20579 done
20580   done
20581 IFS=$as_save_IFS
20582
20583   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20584   ;;
20585 esac
20586 fi
20587 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20588 if test -n "$PKG_CONFIG"; then
20589   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20590 $as_echo "$PKG_CONFIG" >&6; }
20591 else
20592   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20593 $as_echo "no" >&6; }
20594 fi
20595
20596
20597   fi
20598
20599   if test "$PKG_CONFIG" = "no" ; then
20600      echo "*** The pkg-config script could not be found. Make sure it is"
20601      echo "*** in your path, or set the PKG_CONFIG environment variable"
20602      echo "*** to the full path to pkg-config."
20603      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20604   else
20605      PKG_CONFIG_MIN_VERSION=0.9.0
20606      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20607         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20608 $as_echo_n "checking for gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20609
20610         if $PKG_CONFIG --exists "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20611             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20612 $as_echo "yes" >&6; }
20613             succeeded=yes
20614
20615             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_CFLAGS" >&5
20616 $as_echo_n "checking GSTREAMER_BASE_CFLAGS... " >&6; }
20617             GSTREAMER_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20618             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_CFLAGS" >&5
20619 $as_echo "$GSTREAMER_BASE_CFLAGS" >&6; }
20620
20621             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_BASE_LIBS" >&5
20622 $as_echo_n "checking GSTREAMER_BASE_LIBS... " >&6; }
20623             GSTREAMER_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20624             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_BASE_LIBS" >&5
20625 $as_echo "$GSTREAMER_BASE_LIBS" >&6; }
20626         else
20627             GSTREAMER_BASE_CFLAGS=""
20628             GSTREAMER_BASE_LIBS=""
20629             ## If we have a custom action on failure, don't print errors, but
20630             ## do set a variable so people can do so.
20631             GSTREAMER_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20632             echo $GSTREAMER_BASE_PKG_ERRORS
20633         fi
20634
20635
20636
20637      else
20638         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20639         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20640      fi
20641   fi
20642
20643   if test $succeeded = yes; then
20644      :
20645   else
20646      as_fn_error "Library requirements (gstreamer-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20647   fi
20648
20649
20650
20651
20652
20653   succeeded=no
20654
20655   if test -z "$PKG_CONFIG"; then
20656     # Extract the first word of "pkg-config", so it can be a program name with args.
20657 set dummy pkg-config; ac_word=$2
20658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20659 $as_echo_n "checking for $ac_word... " >&6; }
20660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20661   $as_echo_n "(cached) " >&6
20662 else
20663   case $PKG_CONFIG in
20664   [\\/]* | ?:[\\/]*)
20665   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20666   ;;
20667   *)
20668   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20669 for as_dir in $PATH
20670 do
20671   IFS=$as_save_IFS
20672   test -z "$as_dir" && as_dir=.
20673     for ac_exec_ext in '' $ac_executable_extensions; do
20674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20675     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20676     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20677     break 2
20678   fi
20679 done
20680   done
20681 IFS=$as_save_IFS
20682
20683   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20684   ;;
20685 esac
20686 fi
20687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20688 if test -n "$PKG_CONFIG"; then
20689   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20690 $as_echo "$PKG_CONFIG" >&6; }
20691 else
20692   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20693 $as_echo "no" >&6; }
20694 fi
20695
20696
20697   fi
20698
20699   if test "$PKG_CONFIG" = "no" ; then
20700      echo "*** The pkg-config script could not be found. Make sure it is"
20701      echo "*** in your path, or set the PKG_CONFIG environment variable"
20702      echo "*** to the full path to pkg-config."
20703      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20704   else
20705      PKG_CONFIG_MIN_VERSION=0.9.0
20706      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20707         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" >&5
20708 $as_echo_n "checking for gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED... " >&6; }
20709
20710         if $PKG_CONFIG --exists "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED" ; then
20711             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20712 $as_echo "yes" >&6; }
20713             succeeded=yes
20714
20715             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20716 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_CFLAGS... " >&6; }
20717             GSTREAMER_PLUGINS_BASE_CFLAGS=`$PKG_CONFIG --cflags "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20718             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_CFLAGS" >&5
20719 $as_echo "$GSTREAMER_PLUGINS_BASE_CFLAGS" >&6; }
20720
20721             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GSTREAMER_PLUGINS_BASE_LIBS" >&5
20722 $as_echo_n "checking GSTREAMER_PLUGINS_BASE_LIBS... " >&6; }
20723             GSTREAMER_PLUGINS_BASE_LIBS=`$PKG_CONFIG --libs "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20724             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GSTREAMER_PLUGINS_BASE_LIBS" >&5
20725 $as_echo "$GSTREAMER_PLUGINS_BASE_LIBS" >&6; }
20726         else
20727             GSTREAMER_PLUGINS_BASE_CFLAGS=""
20728             GSTREAMER_PLUGINS_BASE_LIBS=""
20729             ## If we have a custom action on failure, don't print errors, but
20730             ## do set a variable so people can do so.
20731             GSTREAMER_PLUGINS_BASE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED"`
20732             echo $GSTREAMER_PLUGINS_BASE_PKG_ERRORS
20733         fi
20734
20735
20736
20737      else
20738         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20739         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20740      fi
20741   fi
20742
20743   if test $succeeded = yes; then
20744      :
20745   else
20746      as_fn_error "Library requirements (gstreamer-plugins-base-$GST_MAJORMINOR >= $GST_REQUIRED) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20747   fi
20748
20749
20750
20751
20752         GST_PLUGIN_LDFLAGS='-module -avoid-version -Wno-unused-parameter -no-undefined'
20753
20754
20755
20756   succeeded=no
20757
20758   if test -z "$PKG_CONFIG"; then
20759     # Extract the first word of "pkg-config", so it can be a program name with args.
20760 set dummy pkg-config; ac_word=$2
20761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20762 $as_echo_n "checking for $ac_word... " >&6; }
20763 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20764   $as_echo_n "(cached) " >&6
20765 else
20766   case $PKG_CONFIG in
20767   [\\/]* | ?:[\\/]*)
20768   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20769   ;;
20770   *)
20771   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20772 for as_dir in $PATH
20773 do
20774   IFS=$as_save_IFS
20775   test -z "$as_dir" && as_dir=.
20776     for ac_exec_ext in '' $ac_executable_extensions; do
20777   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20778     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20779     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20780     break 2
20781   fi
20782 done
20783   done
20784 IFS=$as_save_IFS
20785
20786   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20787   ;;
20788 esac
20789 fi
20790 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20791 if test -n "$PKG_CONFIG"; then
20792   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20793 $as_echo "$PKG_CONFIG" >&6; }
20794 else
20795   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20796 $as_echo "no" >&6; }
20797 fi
20798
20799
20800   fi
20801
20802   if test "$PKG_CONFIG" = "no" ; then
20803      echo "*** The pkg-config script could not be found. Make sure it is"
20804      echo "*** in your path, or set the PKG_CONFIG environment variable"
20805      echo "*** to the full path to pkg-config."
20806      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20807   else
20808      PKG_CONFIG_MIN_VERSION=0.9.0
20809      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20810         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gdk-2.0 >= 2.8" >&5
20811 $as_echo_n "checking for gdk-2.0 >= 2.8... " >&6; }
20812
20813         if $PKG_CONFIG --exists "gdk-2.0 >= 2.8" ; then
20814             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20815 $as_echo "yes" >&6; }
20816             succeeded=yes
20817
20818             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_CFLAGS" >&5
20819 $as_echo_n "checking GDK_CFLAGS... " >&6; }
20820             GDK_CFLAGS=`$PKG_CONFIG --cflags "gdk-2.0 >= 2.8"`
20821             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_CFLAGS" >&5
20822 $as_echo "$GDK_CFLAGS" >&6; }
20823
20824             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GDK_LIBS" >&5
20825 $as_echo_n "checking GDK_LIBS... " >&6; }
20826             GDK_LIBS=`$PKG_CONFIG --libs "gdk-2.0 >= 2.8"`
20827             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GDK_LIBS" >&5
20828 $as_echo "$GDK_LIBS" >&6; }
20829         else
20830             GDK_CFLAGS=""
20831             GDK_LIBS=""
20832             ## If we have a custom action on failure, don't print errors, but
20833             ## do set a variable so people can do so.
20834             GDK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gdk-2.0 >= 2.8"`
20835             echo $GDK_PKG_ERRORS
20836         fi
20837
20838
20839
20840      else
20841         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20842         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20843      fi
20844   fi
20845
20846   if test $succeeded = yes; then
20847      :
20848   else
20849      as_fn_error "Library requirements (gdk-2.0 >= 2.8) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
20850   fi
20851
20852
20853
20854
20855                 GSTREAMER_FILE_READER=gnu.javax.sound.sampled.gstreamer.io.GstAudioFileReader
20856         GSTREAMER_MIXER_PROVIDER=gnu.javax.sound.sampled.gstreamer.GStreamerMixerProvider
20857   fi
20858
20859
20860
20861     if test "x${COMPILE_QT_PEER}" = xyes; then
20862
20863   succeeded=no
20864
20865   if test -z "$PKG_CONFIG"; then
20866     # Extract the first word of "pkg-config", so it can be a program name with args.
20867 set dummy pkg-config; ac_word=$2
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20869 $as_echo_n "checking for $ac_word... " >&6; }
20870 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
20871   $as_echo_n "(cached) " >&6
20872 else
20873   case $PKG_CONFIG in
20874   [\\/]* | ?:[\\/]*)
20875   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
20876   ;;
20877   *)
20878   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20879 for as_dir in $PATH
20880 do
20881   IFS=$as_save_IFS
20882   test -z "$as_dir" && as_dir=.
20883     for ac_exec_ext in '' $ac_executable_extensions; do
20884   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
20885     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20886     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20887     break 2
20888   fi
20889 done
20890   done
20891 IFS=$as_save_IFS
20892
20893   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
20894   ;;
20895 esac
20896 fi
20897 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
20898 if test -n "$PKG_CONFIG"; then
20899   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
20900 $as_echo "$PKG_CONFIG" >&6; }
20901 else
20902   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20903 $as_echo "no" >&6; }
20904 fi
20905
20906
20907   fi
20908
20909   if test "$PKG_CONFIG" = "no" ; then
20910      echo "*** The pkg-config script could not be found. Make sure it is"
20911      echo "*** in your path, or set the PKG_CONFIG environment variable"
20912      echo "*** to the full path to pkg-config."
20913      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
20914   else
20915      PKG_CONFIG_MIN_VERSION=0.9.0
20916      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
20917         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for QtCore QtGui >= 4.1.0" >&5
20918 $as_echo_n "checking for QtCore QtGui >= 4.1.0... " >&6; }
20919
20920         if $PKG_CONFIG --exists "QtCore QtGui >= 4.1.0" ; then
20921             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20922 $as_echo "yes" >&6; }
20923             succeeded=yes
20924
20925             { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_CFLAGS" >&5
20926 $as_echo_n "checking QT_CFLAGS... " >&6; }
20927             QT_CFLAGS=`$PKG_CONFIG --cflags "QtCore QtGui >= 4.1.0"`
20928             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_CFLAGS" >&5
20929 $as_echo "$QT_CFLAGS" >&6; }
20930
20931             { $as_echo "$as_me:${as_lineno-$LINENO}: checking QT_LIBS" >&5
20932 $as_echo_n "checking QT_LIBS... " >&6; }
20933             QT_LIBS=`$PKG_CONFIG --libs "QtCore QtGui >= 4.1.0"`
20934             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_LIBS" >&5
20935 $as_echo "$QT_LIBS" >&6; }
20936         else
20937             QT_CFLAGS=""
20938             QT_LIBS=""
20939             ## If we have a custom action on failure, don't print errors, but
20940             ## do set a variable so people can do so.
20941             QT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "QtCore QtGui >= 4.1.0"`
20942
20943         fi
20944
20945
20946
20947      else
20948         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
20949         echo "*** See http://www.freedesktop.org/software/pkgconfig"
20950      fi
20951   fi
20952
20953   if test $succeeded = yes; then
20954      HAVE_QT4="yes"
20955   else
20956      HAVE_QT4="no"
20957   fi
20958
20959     if test "x$HAVE_QT4" = "xyes"; then
20960                   QT_INCLUDE_DIR=`$PKG_CONFIG --variable=includedir QtGui`
20961       EXTRA_QT_INCLUDE_DIR="$QT_INCLUDE_DIR/Qt"
20962       as_ac_File=`$as_echo "ac_cv_file_$QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $QT_INCLUDE_DIR/QWidget" >&5
20964 $as_echo_n "checking for $QT_INCLUDE_DIR/QWidget... " >&6; }
20965 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20966   $as_echo_n "(cached) " >&6
20967 else
20968   test "$cross_compiling" = yes &&
20969   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20970 if test -r "$QT_INCLUDE_DIR/QWidget"; then
20971   eval "$as_ac_File=yes"
20972 else
20973   eval "$as_ac_File=no"
20974 fi
20975 fi
20976 eval ac_res=\$$as_ac_File
20977                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
20978 $as_echo "$ac_res" >&6; }
20979 eval as_val=\$$as_ac_File
20980    if test "x$as_val" = x""yes; then :
20981   { $as_echo "$as_me:${as_lineno-$LINENO}: No extra QT_INCLUDE_DIR needed" >&5
20982 $as_echo "$as_me: No extra QT_INCLUDE_DIR needed" >&6;}
20983 else
20984   as_ac_File=`$as_echo "ac_cv_file_$EXTRA_QT_INCLUDE_DIR/QWidget" | $as_tr_sh`
20985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $EXTRA_QT_INCLUDE_DIR/QWidget" >&5
20986 $as_echo_n "checking for $EXTRA_QT_INCLUDE_DIR/QWidget... " >&6; }
20987 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
20988   $as_echo_n "(cached) " >&6
20989 else
20990   test "$cross_compiling" = yes &&
20991   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
20992 if test -r "$EXTRA_QT_INCLUDE_DIR/QWidget"; then
20993   eval "$as_ac_File=yes"
20994 else
20995   eval "$as_ac_File=no"
20996 fi
20997 fi
20998 eval ac_res=\$$as_ac_File
20999                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
21000 $as_echo "$ac_res" >&6; }
21001 eval as_val=\$$as_ac_File
21002    if test "x$as_val" = x""yes; then :
21003   QT_CFLAGS="$QT_CFLAGS -I$EXTRA_QT_INCLUDE_DIR"
21004 else
21005   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: QWidget not found" >&5
21006 $as_echo "$as_me: WARNING: QWidget not found" >&2;}
21007 fi
21008
21009 fi
21010
21011         # Extract the first word of "moc", so it can be a program name with args.
21012 set dummy moc; ac_word=$2
21013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21014 $as_echo_n "checking for $ac_word... " >&6; }
21015 if test "${ac_cv_prog_MOC+set}" = set; then :
21016   $as_echo_n "(cached) " >&6
21017 else
21018   if test -n "$MOC"; then
21019   ac_cv_prog_MOC="$MOC" # Let the user override the test.
21020 else
21021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21022 for as_dir in $PATH
21023 do
21024   IFS=$as_save_IFS
21025   test -z "$as_dir" && as_dir=.
21026     for ac_exec_ext in '' $ac_executable_extensions; do
21027   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21028     ac_cv_prog_MOC="moc"
21029     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21030     break 2
21031   fi
21032 done
21033   done
21034 IFS=$as_save_IFS
21035
21036 fi
21037 fi
21038 MOC=$ac_cv_prog_MOC
21039 if test -n "$MOC"; then
21040   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21041 $as_echo "$MOC" >&6; }
21042 else
21043   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21044 $as_echo "no" >&6; }
21045 fi
21046
21047
21048         # Extract the first word of "moc-qt4", so it can be a program name with args.
21049 set dummy moc-qt4; ac_word=$2
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21051 $as_echo_n "checking for $ac_word... " >&6; }
21052 if test "${ac_cv_prog_MOC4+set}" = set; then :
21053   $as_echo_n "(cached) " >&6
21054 else
21055   if test -n "$MOC4"; then
21056   ac_cv_prog_MOC4="$MOC4" # Let the user override the test.
21057 else
21058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21059 for as_dir in $PATH
21060 do
21061   IFS=$as_save_IFS
21062   test -z "$as_dir" && as_dir=.
21063     for ac_exec_ext in '' $ac_executable_extensions; do
21064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21065     ac_cv_prog_MOC4="moc-qt4"
21066     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21067     break 2
21068   fi
21069 done
21070   done
21071 IFS=$as_save_IFS
21072
21073 fi
21074 fi
21075 MOC4=$ac_cv_prog_MOC4
21076 if test -n "$MOC4"; then
21077   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC4" >&5
21078 $as_echo "$MOC4" >&6; }
21079 else
21080   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21081 $as_echo "no" >&6; }
21082 fi
21083
21084
21085         if test x"$MOC4" != x ; then
21086           { $as_echo "$as_me:${as_lineno-$LINENO}: Using $MOC4 as moc" >&5
21087 $as_echo "$as_me: Using $MOC4 as moc" >&6;}
21088           MOC=$MOC4;
21089         fi
21090     fi
21091     if test "x$HAVE_QT4" = "xno"; then
21092       { $as_echo "$as_me:${as_lineno-$LINENO}: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&5
21093 $as_echo "$as_me: Looking for QT_CFLAGS and QT_LIBS without pkg-config" >&6;}
21094       case "$host_os" in
21095         darwin*)
21096
21097 # Check whether --with-qt4dir was given.
21098 if test "${with_qt4dir+set}" = set; then :
21099   withval=$with_qt4dir; QT4DIR=$withval
21100
21101 fi
21102
21103           if test x"$QT4DIR" = x ; then
21104             as_fn_error "*** No path for Qt4 --with-qt4dir option given" "$LINENO" 5
21105           fi
21106           { $as_echo "$as_me:${as_lineno-$LINENO}: result: QT4DIR... $QT4DIR" >&5
21107 $as_echo "QT4DIR... $QT4DIR" >&6; }
21108           # Extract the first word of "moc", so it can be a program name with args.
21109 set dummy moc; ac_word=$2
21110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21111 $as_echo_n "checking for $ac_word... " >&6; }
21112 if test "${ac_cv_prog_MOC+set}" = set; then :
21113   $as_echo_n "(cached) " >&6
21114 else
21115   if test -n "$MOC"; then
21116   ac_cv_prog_MOC="$MOC" # Let the user override the test.
21117 else
21118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21119 for as_dir in $QT4DIR/bin
21120 do
21121   IFS=$as_save_IFS
21122   test -z "$as_dir" && as_dir=.
21123     for ac_exec_ext in '' $ac_executable_extensions; do
21124   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21125     ac_cv_prog_MOC="$QT4DIR/bin/moc"
21126     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21127     break 2
21128   fi
21129 done
21130   done
21131 IFS=$as_save_IFS
21132
21133 fi
21134 fi
21135 MOC=$ac_cv_prog_MOC
21136 if test -n "$MOC"; then
21137   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOC" >&5
21138 $as_echo "$MOC" >&6; }
21139 else
21140   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21141 $as_echo "no" >&6; }
21142 fi
21143
21144
21145           if test x"$MOC" = x; then
21146             as_fn_error "*** This is not the right Qt installation" "$LINENO" 5
21147           fi
21148           QT_CFLAGS="-F$QT4DIR/lib -I$QT4DIR/lib/QtCore.framework/Headers"
21149           QT_CFLAGS="$QT_CFLAGS -I$QT4DIR/lib/QtGui.framework/Headers"
21150           QT_LIBS="-Xlinker -F$QT4DIR/lib -Xlinker -framework -Xlinker QtCore"
21151           QT_LIBS="$QT_LIBS -Xlinker -framework -Xlinker QtGui"
21152           ;;
21153         *)
21154           as_fn_error "*** Please check PKG_CONFIG_PATH or the version
21155           of your installed Qt4 installation." "$LINENO" 5
21156           ;;
21157       esac
21158     fi
21159     { $as_echo "$as_me:${as_lineno-$LINENO}: Set QT_CFLAGS... $QT_CFLAGS" >&5
21160 $as_echo "$as_me: Set QT_CFLAGS... $QT_CFLAGS" >&6;}
21161
21162
21163   fi
21164         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_NOSIGNAL" >&5
21165 $as_echo_n "checking for MSG_NOSIGNAL... " >&6; }
21166   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h.  */
21168 #include <sys/socket.h>
21169 int
21170 main ()
21171 {
21172  int f = MSG_NOSIGNAL;
21173   ;
21174   return 0;
21175 }
21176 _ACEOF
21177 if ac_fn_c_try_compile "$LINENO"; then :
21178    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21179 $as_echo "yes" >&6; }
21180
21181 $as_echo "#define HAVE_MSG_NOSIGNAL 1" >>confdefs.h
21182
21183 else
21184    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21185 $as_echo "no" >&6; }
21186
21187 fi
21188 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21189     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SO_NOSIGPIPE " >&5
21190 $as_echo_n "checking for SO_NOSIGPIPE ... " >&6; }
21191  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21192 /* end confdefs.h.  */
21193 #include <sys/socket.h>
21194 int
21195 main ()
21196 {
21197  int f = SO_NOSIGPIPE;
21198   ;
21199   return 0;
21200 }
21201 _ACEOF
21202 if ac_fn_c_try_compile "$LINENO"; then :
21203    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21204 $as_echo "yes" >&6; }
21205
21206 $as_echo "#define HAVE_SO_NOSIGPIPE 1" >>confdefs.h
21207
21208 else
21209    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21210 $as_echo "no" >&6; }
21211
21212 fi
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MSG_WAITALL" >&5
21215 $as_echo_n "checking for MSG_WAITALL... " >&6; }
21216   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21217 /* end confdefs.h.  */
21218 #include <sys/socket.h>
21219 int
21220 main ()
21221 {
21222  int f = MSG_WAITALL;
21223   ;
21224   return 0;
21225 }
21226 _ACEOF
21227 if ac_fn_c_try_compile "$LINENO"; then :
21228    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21229 $as_echo "yes" >&6; }
21230
21231 $as_echo "#define HAVE_MSG_WAITALL 1" >>confdefs.h
21232
21233 else
21234    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21235 $as_echo "no" >&6; }
21236
21237 fi
21238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21239
21240     if test "x${COMPILE_PLUGIN}" = xyes; then
21241
21242   succeeded=no
21243
21244   if test -z "$PKG_CONFIG"; then
21245     # Extract the first word of "pkg-config", so it can be a program name with args.
21246 set dummy pkg-config; ac_word=$2
21247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21248 $as_echo_n "checking for $ac_word... " >&6; }
21249 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21250   $as_echo_n "(cached) " >&6
21251 else
21252   case $PKG_CONFIG in
21253   [\\/]* | ?:[\\/]*)
21254   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21255   ;;
21256   *)
21257   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21258 for as_dir in $PATH
21259 do
21260   IFS=$as_save_IFS
21261   test -z "$as_dir" && as_dir=.
21262     for ac_exec_ext in '' $ac_executable_extensions; do
21263   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21264     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21265     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21266     break 2
21267   fi
21268 done
21269   done
21270 IFS=$as_save_IFS
21271
21272   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21273   ;;
21274 esac
21275 fi
21276 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21277 if test -n "$PKG_CONFIG"; then
21278   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21279 $as_echo "$PKG_CONFIG" >&6; }
21280 else
21281   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21282 $as_echo "no" >&6; }
21283 fi
21284
21285
21286   fi
21287
21288   if test "$PKG_CONFIG" = "no" ; then
21289      echo "*** The pkg-config script could not be found. Make sure it is"
21290      echo "*** in your path, or set the PKG_CONFIG environment variable"
21291      echo "*** to the full path to pkg-config."
21292      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21293   else
21294      PKG_CONFIG_MIN_VERSION=0.9.0
21295      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21296         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin libxul-unstable" >&5
21297 $as_echo_n "checking for mozilla-plugin libxul-unstable... " >&6; }
21298
21299         if $PKG_CONFIG --exists "mozilla-plugin libxul-unstable" ; then
21300             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21301 $as_echo "yes" >&6; }
21302             succeeded=yes
21303
21304             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21305 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21306             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin libxul-unstable"`
21307             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21308 $as_echo "$MOZILLA_CFLAGS" >&6; }
21309
21310             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21311 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21312             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin libxul-unstable"`
21313             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21314 $as_echo "$MOZILLA_LIBS" >&6; }
21315         else
21316             MOZILLA_CFLAGS=""
21317             MOZILLA_LIBS=""
21318             ## If we have a custom action on failure, don't print errors, but
21319             ## do set a variable so people can do so.
21320             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin libxul-unstable"`
21321
21322         fi
21323
21324
21325
21326      else
21327         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21328         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21329      fi
21330   fi
21331
21332   if test $succeeded = yes; then
21333      MOZILLA_FOUND=yes
21334   else
21335      MOZILLA_FOUND=no
21336   fi
21337
21338     if test "x${MOZILLA_FOUND}" = xno; then
21339
21340   succeeded=no
21341
21342   if test -z "$PKG_CONFIG"; then
21343     # Extract the first word of "pkg-config", so it can be a program name with args.
21344 set dummy pkg-config; ac_word=$2
21345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21346 $as_echo_n "checking for $ac_word... " >&6; }
21347 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21348   $as_echo_n "(cached) " >&6
21349 else
21350   case $PKG_CONFIG in
21351   [\\/]* | ?:[\\/]*)
21352   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21353   ;;
21354   *)
21355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21356 for as_dir in $PATH
21357 do
21358   IFS=$as_save_IFS
21359   test -z "$as_dir" && as_dir=.
21360     for ac_exec_ext in '' $ac_executable_extensions; do
21361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21362     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21363     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21364     break 2
21365   fi
21366 done
21367   done
21368 IFS=$as_save_IFS
21369
21370   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21371   ;;
21372 esac
21373 fi
21374 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21375 if test -n "$PKG_CONFIG"; then
21376   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21377 $as_echo "$PKG_CONFIG" >&6; }
21378 else
21379   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21380 $as_echo "no" >&6; }
21381 fi
21382
21383
21384   fi
21385
21386   if test "$PKG_CONFIG" = "no" ; then
21387      echo "*** The pkg-config script could not be found. Make sure it is"
21388      echo "*** in your path, or set the PKG_CONFIG environment variable"
21389      echo "*** to the full path to pkg-config."
21390      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21391   else
21392      PKG_CONFIG_MIN_VERSION=0.9.0
21393      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21394         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-plugin" >&5
21395 $as_echo_n "checking for mozilla-plugin... " >&6; }
21396
21397         if $PKG_CONFIG --exists "mozilla-plugin" ; then
21398             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21399 $as_echo "yes" >&6; }
21400             succeeded=yes
21401
21402             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21403 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21404             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-plugin"`
21405             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21406 $as_echo "$MOZILLA_CFLAGS" >&6; }
21407
21408             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21409 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21410             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-plugin"`
21411             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21412 $as_echo "$MOZILLA_LIBS" >&6; }
21413         else
21414             MOZILLA_CFLAGS=""
21415             MOZILLA_LIBS=""
21416             ## If we have a custom action on failure, don't print errors, but
21417             ## do set a variable so people can do so.
21418             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-plugin"`
21419
21420         fi
21421
21422
21423
21424      else
21425         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21426         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21427      fi
21428   fi
21429
21430   if test $succeeded = yes; then
21431      MOZILLA_FOUND=yes
21432   else
21433      MOZILLA_FOUND=no
21434   fi
21435
21436     fi
21437     if test "x${MOZILLA_FOUND}" = xno; then
21438
21439   succeeded=no
21440
21441   if test -z "$PKG_CONFIG"; then
21442     # Extract the first word of "pkg-config", so it can be a program name with args.
21443 set dummy pkg-config; ac_word=$2
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21445 $as_echo_n "checking for $ac_word... " >&6; }
21446 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21447   $as_echo_n "(cached) " >&6
21448 else
21449   case $PKG_CONFIG in
21450   [\\/]* | ?:[\\/]*)
21451   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21452   ;;
21453   *)
21454   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21455 for as_dir in $PATH
21456 do
21457   IFS=$as_save_IFS
21458   test -z "$as_dir" && as_dir=.
21459     for ac_exec_ext in '' $ac_executable_extensions; do
21460   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21461     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21462     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21463     break 2
21464   fi
21465 done
21466   done
21467 IFS=$as_save_IFS
21468
21469   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21470   ;;
21471 esac
21472 fi
21473 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21474 if test -n "$PKG_CONFIG"; then
21475   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21476 $as_echo "$PKG_CONFIG" >&6; }
21477 else
21478   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21479 $as_echo "no" >&6; }
21480 fi
21481
21482
21483   fi
21484
21485   if test "$PKG_CONFIG" = "no" ; then
21486      echo "*** The pkg-config script could not be found. Make sure it is"
21487      echo "*** in your path, or set the PKG_CONFIG environment variable"
21488      echo "*** to the full path to pkg-config."
21489      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21490   else
21491      PKG_CONFIG_MIN_VERSION=0.9.0
21492      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21493         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for firefox-plugin firefox-xpcom" >&5
21494 $as_echo_n "checking for firefox-plugin firefox-xpcom... " >&6; }
21495
21496         if $PKG_CONFIG --exists "firefox-plugin firefox-xpcom" ; then
21497             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21498 $as_echo "yes" >&6; }
21499             succeeded=yes
21500
21501             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21502 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21503             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "firefox-plugin firefox-xpcom"`
21504             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21505 $as_echo "$MOZILLA_CFLAGS" >&6; }
21506
21507             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21508 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21509             MOZILLA_LIBS=`$PKG_CONFIG --libs "firefox-plugin firefox-xpcom"`
21510             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21511 $as_echo "$MOZILLA_LIBS" >&6; }
21512         else
21513             MOZILLA_CFLAGS=""
21514             MOZILLA_LIBS=""
21515             ## If we have a custom action on failure, don't print errors, but
21516             ## do set a variable so people can do so.
21517             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "firefox-plugin firefox-xpcom"`
21518
21519         fi
21520
21521
21522
21523      else
21524         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21525         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21526      fi
21527   fi
21528
21529   if test $succeeded = yes; then
21530      MOZILLA_FOUND=yes
21531   else
21532      MOZILLA_FOUND=no
21533   fi
21534
21535     fi
21536     if test "x${MOZILLA_FOUND}" = xno; then
21537
21538   succeeded=no
21539
21540   if test -z "$PKG_CONFIG"; then
21541     # Extract the first word of "pkg-config", so it can be a program name with args.
21542 set dummy pkg-config; ac_word=$2
21543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21544 $as_echo_n "checking for $ac_word... " >&6; }
21545 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21546   $as_echo_n "(cached) " >&6
21547 else
21548   case $PKG_CONFIG in
21549   [\\/]* | ?:[\\/]*)
21550   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21551   ;;
21552   *)
21553   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21554 for as_dir in $PATH
21555 do
21556   IFS=$as_save_IFS
21557   test -z "$as_dir" && as_dir=.
21558     for ac_exec_ext in '' $ac_executable_extensions; do
21559   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21560     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21561     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21562     break 2
21563   fi
21564 done
21565   done
21566 IFS=$as_save_IFS
21567
21568   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21569   ;;
21570 esac
21571 fi
21572 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21573 if test -n "$PKG_CONFIG"; then
21574   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21575 $as_echo "$PKG_CONFIG" >&6; }
21576 else
21577   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21578 $as_echo "no" >&6; }
21579 fi
21580
21581
21582   fi
21583
21584   if test "$PKG_CONFIG" = "no" ; then
21585      echo "*** The pkg-config script could not be found. Make sure it is"
21586      echo "*** in your path, or set the PKG_CONFIG environment variable"
21587      echo "*** to the full path to pkg-config."
21588      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21589   else
21590      PKG_CONFIG_MIN_VERSION=0.9.0
21591      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21592         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xulrunner-plugin xulrunner-xpcom" >&5
21593 $as_echo_n "checking for xulrunner-plugin xulrunner-xpcom... " >&6; }
21594
21595         if $PKG_CONFIG --exists "xulrunner-plugin xulrunner-xpcom" ; then
21596             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21597 $as_echo "yes" >&6; }
21598             succeeded=yes
21599
21600             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21601 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21602             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "xulrunner-plugin xulrunner-xpcom"`
21603             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21604 $as_echo "$MOZILLA_CFLAGS" >&6; }
21605
21606             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21607 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21608             MOZILLA_LIBS=`$PKG_CONFIG --libs "xulrunner-plugin xulrunner-xpcom"`
21609             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21610 $as_echo "$MOZILLA_LIBS" >&6; }
21611         else
21612             MOZILLA_CFLAGS=""
21613             MOZILLA_LIBS=""
21614             ## If we have a custom action on failure, don't print errors, but
21615             ## do set a variable so people can do so.
21616             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xulrunner-plugin xulrunner-xpcom"`
21617
21618         fi
21619
21620
21621
21622      else
21623         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21624         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21625      fi
21626   fi
21627
21628   if test $succeeded = yes; then
21629      MOZILLA_FOUND=yes
21630   else
21631      MOZILLA_FOUND=no
21632   fi
21633
21634     fi
21635     if test "x${MOZILLA_FOUND}" = xno; then
21636
21637   succeeded=no
21638
21639   if test -z "$PKG_CONFIG"; then
21640     # Extract the first word of "pkg-config", so it can be a program name with args.
21641 set dummy pkg-config; ac_word=$2
21642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21643 $as_echo_n "checking for $ac_word... " >&6; }
21644 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21645   $as_echo_n "(cached) " >&6
21646 else
21647   case $PKG_CONFIG in
21648   [\\/]* | ?:[\\/]*)
21649   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21650   ;;
21651   *)
21652   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21653 for as_dir in $PATH
21654 do
21655   IFS=$as_save_IFS
21656   test -z "$as_dir" && as_dir=.
21657     for ac_exec_ext in '' $ac_executable_extensions; do
21658   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21659     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21660     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21661     break 2
21662   fi
21663 done
21664   done
21665 IFS=$as_save_IFS
21666
21667   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21668   ;;
21669 esac
21670 fi
21671 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21672 if test -n "$PKG_CONFIG"; then
21673   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21674 $as_echo "$PKG_CONFIG" >&6; }
21675 else
21676   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21677 $as_echo "no" >&6; }
21678 fi
21679
21680
21681   fi
21682
21683   if test "$PKG_CONFIG" = "no" ; then
21684      echo "*** The pkg-config script could not be found. Make sure it is"
21685      echo "*** in your path, or set the PKG_CONFIG environment variable"
21686      echo "*** to the full path to pkg-config."
21687      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21688   else
21689      PKG_CONFIG_MIN_VERSION=0.9.0
21690      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21691         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mozilla-firefox-plugin mozilla-firefox-xpcom" >&5
21692 $as_echo_n "checking for mozilla-firefox-plugin mozilla-firefox-xpcom... " >&6; }
21693
21694         if $PKG_CONFIG --exists "mozilla-firefox-plugin mozilla-firefox-xpcom" ; then
21695             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21696 $as_echo "yes" >&6; }
21697             succeeded=yes
21698
21699             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21700 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21701             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21702             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21703 $as_echo "$MOZILLA_CFLAGS" >&6; }
21704
21705             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21706 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21707             MOZILLA_LIBS=`$PKG_CONFIG --libs "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21708             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21709 $as_echo "$MOZILLA_LIBS" >&6; }
21710         else
21711             MOZILLA_CFLAGS=""
21712             MOZILLA_LIBS=""
21713             ## If we have a custom action on failure, don't print errors, but
21714             ## do set a variable so people can do so.
21715             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "mozilla-firefox-plugin mozilla-firefox-xpcom"`
21716
21717         fi
21718
21719
21720
21721      else
21722         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21723         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21724      fi
21725   fi
21726
21727   if test $succeeded = yes; then
21728      MOZILLA_FOUND=yes
21729   else
21730      MOZILLA_FOUND=no
21731   fi
21732
21733     fi
21734     if test "x${MOZILLA_FOUND}" = xno; then
21735
21736   succeeded=no
21737
21738   if test -z "$PKG_CONFIG"; then
21739     # Extract the first word of "pkg-config", so it can be a program name with args.
21740 set dummy pkg-config; ac_word=$2
21741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21742 $as_echo_n "checking for $ac_word... " >&6; }
21743 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21744   $as_echo_n "(cached) " >&6
21745 else
21746   case $PKG_CONFIG in
21747   [\\/]* | ?:[\\/]*)
21748   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21749   ;;
21750   *)
21751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21752 for as_dir in $PATH
21753 do
21754   IFS=$as_save_IFS
21755   test -z "$as_dir" && as_dir=.
21756     for ac_exec_ext in '' $ac_executable_extensions; do
21757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21758     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21759     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21760     break 2
21761   fi
21762 done
21763   done
21764 IFS=$as_save_IFS
21765
21766   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21767   ;;
21768 esac
21769 fi
21770 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21771 if test -n "$PKG_CONFIG"; then
21772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21773 $as_echo "$PKG_CONFIG" >&6; }
21774 else
21775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21776 $as_echo "no" >&6; }
21777 fi
21778
21779
21780   fi
21781
21782   if test "$PKG_CONFIG" = "no" ; then
21783      echo "*** The pkg-config script could not be found. Make sure it is"
21784      echo "*** in your path, or set the PKG_CONFIG environment variable"
21785      echo "*** to the full path to pkg-config."
21786      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21787   else
21788      PKG_CONFIG_MIN_VERSION=0.9.0
21789      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21790         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for seamonkey-plugin seamonkey-xpcom" >&5
21791 $as_echo_n "checking for seamonkey-plugin seamonkey-xpcom... " >&6; }
21792
21793         if $PKG_CONFIG --exists "seamonkey-plugin seamonkey-xpcom" ; then
21794             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21795 $as_echo "yes" >&6; }
21796             succeeded=yes
21797
21798             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21799 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21800             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "seamonkey-plugin seamonkey-xpcom"`
21801             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21802 $as_echo "$MOZILLA_CFLAGS" >&6; }
21803
21804             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21805 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21806             MOZILLA_LIBS=`$PKG_CONFIG --libs "seamonkey-plugin seamonkey-xpcom"`
21807             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21808 $as_echo "$MOZILLA_LIBS" >&6; }
21809         else
21810             MOZILLA_CFLAGS=""
21811             MOZILLA_LIBS=""
21812             ## If we have a custom action on failure, don't print errors, but
21813             ## do set a variable so people can do so.
21814             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "seamonkey-plugin seamonkey-xpcom"`
21815
21816         fi
21817
21818
21819
21820      else
21821         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21822         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21823      fi
21824   fi
21825
21826   if test $succeeded = yes; then
21827      MOZILLA_FOUND=yes
21828   else
21829      MOZILLA_FOUND=no
21830   fi
21831
21832     fi
21833     if test "x${MOZILLA_FOUND}" = xno; then
21834
21835   succeeded=no
21836
21837   if test -z "$PKG_CONFIG"; then
21838     # Extract the first word of "pkg-config", so it can be a program name with args.
21839 set dummy pkg-config; ac_word=$2
21840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21841 $as_echo_n "checking for $ac_word... " >&6; }
21842 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21843   $as_echo_n "(cached) " >&6
21844 else
21845   case $PKG_CONFIG in
21846   [\\/]* | ?:[\\/]*)
21847   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21848   ;;
21849   *)
21850   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21851 for as_dir in $PATH
21852 do
21853   IFS=$as_save_IFS
21854   test -z "$as_dir" && as_dir=.
21855     for ac_exec_ext in '' $ac_executable_extensions; do
21856   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21857     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21858     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21859     break 2
21860   fi
21861 done
21862   done
21863 IFS=$as_save_IFS
21864
21865   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21866   ;;
21867 esac
21868 fi
21869 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21870 if test -n "$PKG_CONFIG"; then
21871   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21872 $as_echo "$PKG_CONFIG" >&6; }
21873 else
21874   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21875 $as_echo "no" >&6; }
21876 fi
21877
21878
21879   fi
21880
21881   if test "$PKG_CONFIG" = "no" ; then
21882      echo "*** The pkg-config script could not be found. Make sure it is"
21883      echo "*** in your path, or set the PKG_CONFIG environment variable"
21884      echo "*** to the full path to pkg-config."
21885      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21886   else
21887      PKG_CONFIG_MIN_VERSION=0.9.0
21888      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21889         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iceape-plugin iceape-xpcom" >&5
21890 $as_echo_n "checking for iceape-plugin iceape-xpcom... " >&6; }
21891
21892         if $PKG_CONFIG --exists "iceape-plugin iceape-xpcom" ; then
21893             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21894 $as_echo "yes" >&6; }
21895             succeeded=yes
21896
21897             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_CFLAGS" >&5
21898 $as_echo_n "checking MOZILLA_CFLAGS... " >&6; }
21899             MOZILLA_CFLAGS=`$PKG_CONFIG --cflags "iceape-plugin iceape-xpcom"`
21900             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_CFLAGS" >&5
21901 $as_echo "$MOZILLA_CFLAGS" >&6; }
21902
21903             { $as_echo "$as_me:${as_lineno-$LINENO}: checking MOZILLA_LIBS" >&5
21904 $as_echo_n "checking MOZILLA_LIBS... " >&6; }
21905             MOZILLA_LIBS=`$PKG_CONFIG --libs "iceape-plugin iceape-xpcom"`
21906             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MOZILLA_LIBS" >&5
21907 $as_echo "$MOZILLA_LIBS" >&6; }
21908         else
21909             MOZILLA_CFLAGS=""
21910             MOZILLA_LIBS=""
21911             ## If we have a custom action on failure, don't print errors, but
21912             ## do set a variable so people can do so.
21913             MOZILLA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "iceape-plugin iceape-xpcom"`
21914
21915         fi
21916
21917
21918
21919      else
21920         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
21921         echo "*** See http://www.freedesktop.org/software/pkgconfig"
21922      fi
21923   fi
21924
21925   if test $succeeded = yes; then
21926      MOZILLA_FOUND=yes
21927   else
21928      MOZILLA_FOUND=no
21929   fi
21930
21931     fi
21932     if test "x${MOZILLA_FOUND}" = xno; then
21933       as_fn_error "Couldn't find plugin support headers and libraries, try --disable-plugin" "$LINENO" 5
21934     fi
21935
21936
21937   succeeded=no
21938
21939   if test -z "$PKG_CONFIG"; then
21940     # Extract the first word of "pkg-config", so it can be a program name with args.
21941 set dummy pkg-config; ac_word=$2
21942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21943 $as_echo_n "checking for $ac_word... " >&6; }
21944 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
21945   $as_echo_n "(cached) " >&6
21946 else
21947   case $PKG_CONFIG in
21948   [\\/]* | ?:[\\/]*)
21949   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
21950   ;;
21951   *)
21952   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21953 for as_dir in $PATH
21954 do
21955   IFS=$as_save_IFS
21956   test -z "$as_dir" && as_dir=.
21957     for ac_exec_ext in '' $ac_executable_extensions; do
21958   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
21959     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
21960     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21961     break 2
21962   fi
21963 done
21964   done
21965 IFS=$as_save_IFS
21966
21967   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
21968   ;;
21969 esac
21970 fi
21971 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
21972 if test -n "$PKG_CONFIG"; then
21973   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
21974 $as_echo "$PKG_CONFIG" >&6; }
21975 else
21976   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21977 $as_echo "no" >&6; }
21978 fi
21979
21980
21981   fi
21982
21983   if test "$PKG_CONFIG" = "no" ; then
21984      echo "*** The pkg-config script could not be found. Make sure it is"
21985      echo "*** in your path, or set the PKG_CONFIG environment variable"
21986      echo "*** to the full path to pkg-config."
21987      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
21988   else
21989      PKG_CONFIG_MIN_VERSION=0.9.0
21990      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
21991         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for glib-2.0" >&5
21992 $as_echo_n "checking for glib-2.0... " >&6; }
21993
21994         if $PKG_CONFIG --exists "glib-2.0" ; then
21995             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
21996 $as_echo "yes" >&6; }
21997             succeeded=yes
21998
21999             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_CFLAGS" >&5
22000 $as_echo_n "checking GLIB_CFLAGS... " >&6; }
22001             GLIB_CFLAGS=`$PKG_CONFIG --cflags "glib-2.0"`
22002             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_CFLAGS" >&5
22003 $as_echo "$GLIB_CFLAGS" >&6; }
22004
22005             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GLIB_LIBS" >&5
22006 $as_echo_n "checking GLIB_LIBS... " >&6; }
22007             GLIB_LIBS=`$PKG_CONFIG --libs "glib-2.0"`
22008             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GLIB_LIBS" >&5
22009 $as_echo "$GLIB_LIBS" >&6; }
22010         else
22011             GLIB_CFLAGS=""
22012             GLIB_LIBS=""
22013             ## If we have a custom action on failure, don't print errors, but
22014             ## do set a variable so people can do so.
22015             GLIB_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "glib-2.0"`
22016             echo $GLIB_PKG_ERRORS
22017         fi
22018
22019
22020
22021      else
22022         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22023         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22024      fi
22025   fi
22026
22027   if test $succeeded = yes; then
22028      :
22029   else
22030      as_fn_error "Library requirements (glib-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22031   fi
22032
22033
22034   succeeded=no
22035
22036   if test -z "$PKG_CONFIG"; then
22037     # Extract the first word of "pkg-config", so it can be a program name with args.
22038 set dummy pkg-config; ac_word=$2
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22040 $as_echo_n "checking for $ac_word... " >&6; }
22041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then :
22042   $as_echo_n "(cached) " >&6
22043 else
22044   case $PKG_CONFIG in
22045   [\\/]* | ?:[\\/]*)
22046   ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
22047   ;;
22048   *)
22049   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22050 for as_dir in $PATH
22051 do
22052   IFS=$as_save_IFS
22053   test -z "$as_dir" && as_dir=.
22054     for ac_exec_ext in '' $ac_executable_extensions; do
22055   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22056     ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
22057     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22058     break 2
22059   fi
22060 done
22061   done
22062 IFS=$as_save_IFS
22063
22064   test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
22065   ;;
22066 esac
22067 fi
22068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
22069 if test -n "$PKG_CONFIG"; then
22070   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
22071 $as_echo "$PKG_CONFIG" >&6; }
22072 else
22073   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22074 $as_echo "no" >&6; }
22075 fi
22076
22077
22078   fi
22079
22080   if test "$PKG_CONFIG" = "no" ; then
22081      echo "*** The pkg-config script could not be found. Make sure it is"
22082      echo "*** in your path, or set the PKG_CONFIG environment variable"
22083      echo "*** to the full path to pkg-config."
22084      echo "*** Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config."
22085   else
22086      PKG_CONFIG_MIN_VERSION=0.9.0
22087      if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
22088         { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" >&5
22089 $as_echo_n "checking for gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0... " >&6; }
22090
22091         if $PKG_CONFIG --exists "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0" ; then
22092             { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22093 $as_echo "yes" >&6; }
22094             succeeded=yes
22095
22096             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_CFLAGS" >&5
22097 $as_echo_n "checking GTK_CFLAGS... " >&6; }
22098             GTK_CFLAGS=`$PKG_CONFIG --cflags "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22099             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_CFLAGS" >&5
22100 $as_echo "$GTK_CFLAGS" >&6; }
22101
22102             { $as_echo "$as_me:${as_lineno-$LINENO}: checking GTK_LIBS" >&5
22103 $as_echo_n "checking GTK_LIBS... " >&6; }
22104             GTK_LIBS=`$PKG_CONFIG --libs "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22105             { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GTK_LIBS" >&5
22106 $as_echo "$GTK_LIBS" >&6; }
22107         else
22108             GTK_CFLAGS=""
22109             GTK_LIBS=""
22110             ## If we have a custom action on failure, don't print errors, but
22111             ## do set a variable so people can do so.
22112             GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0"`
22113             echo $GTK_PKG_ERRORS
22114         fi
22115
22116
22117
22118      else
22119         echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
22120         echo "*** See http://www.freedesktop.org/software/pkgconfig"
22121      fi
22122   fi
22123
22124   if test $succeeded = yes; then
22125      :
22126   else
22127      as_fn_error "Library requirements (gtk+-2.0 >= 2.8 gthread-2.0 >= 2.2 gdk-pixbuf-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." "$LINENO" 5
22128   fi
22129
22130
22131
22132
22133
22134
22135
22136
22137
22138     PLUGIN_DIR=$HOME/.mozilla/plugins/
22139
22140   fi
22141
22142
22143 # Check whether --with-gmp was given.
22144 if test "${with_gmp+set}" = set; then :
22145   withval=$with_gmp;
22146 fi
22147
22148
22149 # Check whether --with-gmp_include was given.
22150 if test "${with_gmp_include+set}" = set; then :
22151   withval=$with_gmp_include;
22152 fi
22153
22154
22155 # Check whether --with-gmp_lib was given.
22156 if test "${with_gmp_lib+set}" = set; then :
22157   withval=$with_gmp_lib;
22158 fi
22159
22160
22161   if test "x$with_gmp" != x; then
22162     gmplibs=-lgmp
22163     gmpinc=
22164     gmplibs="-L$with_gmp/lib $gmplibs"
22165     gmpinc="-I$with_gmp/include $gmpinc"
22166     if test "x$with_gmp_include" != x; then
22167       gmpinc="-I$with_gmp_include $gmpinc"
22168     fi
22169     if test "x$with_gmp_lib" != x; then
22170       gmplibs="-L$with_gmp_lib $gmplibs"
22171     fi
22172   else
22173     gmplibs="-lgmp"
22174     gmpinc="-I/usr/include"
22175   fi
22176
22177   if test "x${COMPILE_GMP}" = xyes; then
22178     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GMP directories" >&5
22179 $as_echo_n "checking for GMP directories... " >&6; }
22180     if test "x$with_gmp" != x; then
22181        gmplibs="-L$with_gmp/lib -lgmp"
22182        gmpinc="-I$with_gmp/include"
22183        if test "x$with_gmp_include" != x; then
22184           gmpinc="-I$with_gmp_include $gmpinc"
22185        fi
22186        if test "x$with_gmp_lib" != x; then
22187           gmplibs="-L$with_gmp_lib $gmplibs"
22188        fi
22189     else
22190         with_gmp="/usr"
22191         gmplibs="-lgmp"
22192         gmpinc="-I/usr/include"
22193     fi
22194     { $as_echo "$as_me:${as_lineno-$LINENO}: result: prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&5
22195 $as_echo "prefix=$with_gmp, libs=$gmplibs, inc=$gmpinc" >&6; }
22196     { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_mul_si in -lgmp" >&5
22197 $as_echo_n "checking for __gmpz_mul_si in -lgmp... " >&6; }
22198 if test "${ac_cv_lib_gmp___gmpz_mul_si+set}" = set; then :
22199   $as_echo_n "(cached) " >&6
22200 else
22201   ac_check_lib_save_LIBS=$LIBS
22202 LIBS="-lgmp  $LIBS"
22203 if test x$gcc_no_link = xyes; then
22204   as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22205 fi
22206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22207 /* end confdefs.h.  */
22208
22209 /* Override any GCC internal prototype to avoid an error.
22210    Use char because int might match the return type of a GCC
22211    builtin and then its argument prototype would still apply.  */
22212 #ifdef __cplusplus
22213 extern "C"
22214 #endif
22215 char __gmpz_mul_si ();
22216 int
22217 main ()
22218 {
22219 return __gmpz_mul_si ();
22220   ;
22221   return 0;
22222 }
22223 _ACEOF
22224 if ac_fn_c_try_link "$LINENO"; then :
22225   ac_cv_lib_gmp___gmpz_mul_si=yes
22226 else
22227   ac_cv_lib_gmp___gmpz_mul_si=no
22228 fi
22229 rm -f core conftest.err conftest.$ac_objext \
22230     conftest$ac_exeext conftest.$ac_ext
22231 LIBS=$ac_check_lib_save_LIBS
22232 fi
22233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_mul_si" >&5
22234 $as_echo "$ac_cv_lib_gmp___gmpz_mul_si" >&6; }
22235 if test "x$ac_cv_lib_gmp___gmpz_mul_si" = x""yes; then :
22236   GMP_CFLAGS="$gmpinc"
22237        GMP_LIBS="$gmplibs"
22238 else
22239   GMP_CFLAGS=
22240        GMP_LIBS=
22241 fi
22242
22243
22244
22245
22246     for ac_header in gmp.h
22247 do :
22248   ac_fn_c_check_header_mongrel "$LINENO" "gmp.h" "ac_cv_header_gmp_h" "$ac_includes_default"
22249 if test "x$ac_cv_header_gmp_h" = x""yes; then :
22250   cat >>confdefs.h <<_ACEOF
22251 #define HAVE_GMP_H 1
22252 _ACEOF
22253
22254 fi
22255
22256 done
22257
22258   fi
22259
22260 else
22261   COMPILE_GMP=no
22262 fi
22263
22264 if test "x${REGENERATE_JNI_HEADERS}" = xyes; then
22265
22266
22267 # Check whether --with-javah was given.
22268 if test "${with_javah+set}" = set; then :
22269   withval=$with_javah;
22270     if test "x${withval}" != x && test "x${withval}" != xyes && test "x${withval}" != xno; then
22271
22272   if test "x${withval}" != x; then
22273     if test -f "${withval}"; then
22274       USER_JAVAH="${withval}"
22275     else
22276       # Extract the first word of ""${withval}"", so it can be a program name with args.
22277 set dummy "${withval}"; ac_word=$2
22278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22279 $as_echo_n "checking for $ac_word... " >&6; }
22280 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22281   $as_echo_n "(cached) " >&6
22282 else
22283   case $USER_JAVAH in
22284   [\\/]* | ?:[\\/]*)
22285   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22286   ;;
22287   *)
22288   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22289 for as_dir in $PATH
22290 do
22291   IFS=$as_save_IFS
22292   test -z "$as_dir" && as_dir=.
22293     for ac_exec_ext in '' $ac_executable_extensions; do
22294   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22295     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22296     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22297     break 2
22298   fi
22299 done
22300   done
22301 IFS=$as_save_IFS
22302
22303   ;;
22304 esac
22305 fi
22306 USER_JAVAH=$ac_cv_path_USER_JAVAH
22307 if test -n "$USER_JAVAH"; then
22308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22309 $as_echo "$USER_JAVAH" >&6; }
22310 else
22311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22312 $as_echo "no" >&6; }
22313 fi
22314
22315
22316     fi
22317   else
22318     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22319 do
22320   # Extract the first word of "$ac_prog", so it can be a program name with args.
22321 set dummy $ac_prog; ac_word=$2
22322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22323 $as_echo_n "checking for $ac_word... " >&6; }
22324 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22325   $as_echo_n "(cached) " >&6
22326 else
22327   case $USER_JAVAH in
22328   [\\/]* | ?:[\\/]*)
22329   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22330   ;;
22331   *)
22332   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22333 for as_dir in $PATH
22334 do
22335   IFS=$as_save_IFS
22336   test -z "$as_dir" && as_dir=.
22337     for ac_exec_ext in '' $ac_executable_extensions; do
22338   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22339     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22340     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22341     break 2
22342   fi
22343 done
22344   done
22345 IFS=$as_save_IFS
22346
22347   ;;
22348 esac
22349 fi
22350 USER_JAVAH=$ac_cv_path_USER_JAVAH
22351 if test -n "$USER_JAVAH"; then
22352   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22353 $as_echo "$USER_JAVAH" >&6; }
22354 else
22355   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22356 $as_echo "no" >&6; }
22357 fi
22358
22359
22360   test -n "$USER_JAVAH" && break
22361 done
22362
22363   fi
22364
22365   if test "x${USER_JAVAH}" = x; then
22366     as_fn_error "can not find javah" "$LINENO" 5
22367   fi
22368
22369     else
22370
22371   if test "x" != x; then
22372     if test -f ""; then
22373       USER_JAVAH=""
22374     else
22375       # Extract the first word of """", so it can be a program name with args.
22376 set dummy ""; ac_word=$2
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22378 $as_echo_n "checking for $ac_word... " >&6; }
22379 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22380   $as_echo_n "(cached) " >&6
22381 else
22382   case $USER_JAVAH in
22383   [\\/]* | ?:[\\/]*)
22384   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22385   ;;
22386   *)
22387   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22388 for as_dir in $PATH
22389 do
22390   IFS=$as_save_IFS
22391   test -z "$as_dir" && as_dir=.
22392     for ac_exec_ext in '' $ac_executable_extensions; do
22393   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22394     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22395     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22396     break 2
22397   fi
22398 done
22399   done
22400 IFS=$as_save_IFS
22401
22402   ;;
22403 esac
22404 fi
22405 USER_JAVAH=$ac_cv_path_USER_JAVAH
22406 if test -n "$USER_JAVAH"; then
22407   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22408 $as_echo "$USER_JAVAH" >&6; }
22409 else
22410   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22411 $as_echo "no" >&6; }
22412 fi
22413
22414
22415     fi
22416   else
22417     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22418 do
22419   # Extract the first word of "$ac_prog", so it can be a program name with args.
22420 set dummy $ac_prog; ac_word=$2
22421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22422 $as_echo_n "checking for $ac_word... " >&6; }
22423 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22424   $as_echo_n "(cached) " >&6
22425 else
22426   case $USER_JAVAH in
22427   [\\/]* | ?:[\\/]*)
22428   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22429   ;;
22430   *)
22431   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22432 for as_dir in $PATH
22433 do
22434   IFS=$as_save_IFS
22435   test -z "$as_dir" && as_dir=.
22436     for ac_exec_ext in '' $ac_executable_extensions; do
22437   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22438     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22439     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22440     break 2
22441   fi
22442 done
22443   done
22444 IFS=$as_save_IFS
22445
22446   ;;
22447 esac
22448 fi
22449 USER_JAVAH=$ac_cv_path_USER_JAVAH
22450 if test -n "$USER_JAVAH"; then
22451   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22452 $as_echo "$USER_JAVAH" >&6; }
22453 else
22454   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22455 $as_echo "no" >&6; }
22456 fi
22457
22458
22459   test -n "$USER_JAVAH" && break
22460 done
22461
22462   fi
22463
22464   if test "x${USER_JAVAH}" = x; then
22465     as_fn_error "can not find javah" "$LINENO" 5
22466   fi
22467
22468     fi
22469
22470 else
22471
22472
22473   if test "x" != x; then
22474     if test -f ""; then
22475       USER_JAVAH=""
22476     else
22477       # Extract the first word of """", so it can be a program name with args.
22478 set dummy ""; ac_word=$2
22479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22480 $as_echo_n "checking for $ac_word... " >&6; }
22481 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22482   $as_echo_n "(cached) " >&6
22483 else
22484   case $USER_JAVAH in
22485   [\\/]* | ?:[\\/]*)
22486   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22487   ;;
22488   *)
22489   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22490 for as_dir in $PATH
22491 do
22492   IFS=$as_save_IFS
22493   test -z "$as_dir" && as_dir=.
22494     for ac_exec_ext in '' $ac_executable_extensions; do
22495   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22496     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22497     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22498     break 2
22499   fi
22500 done
22501   done
22502 IFS=$as_save_IFS
22503
22504   ;;
22505 esac
22506 fi
22507 USER_JAVAH=$ac_cv_path_USER_JAVAH
22508 if test -n "$USER_JAVAH"; then
22509   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22510 $as_echo "$USER_JAVAH" >&6; }
22511 else
22512   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22513 $as_echo "no" >&6; }
22514 fi
22515
22516
22517     fi
22518   else
22519     for ac_prog in gjavah gjavah-4.3 gjavah-4.2 gjavah-4.1 gcjh-wrapper-4.1 gcjh-4.1 javah
22520 do
22521   # Extract the first word of "$ac_prog", so it can be a program name with args.
22522 set dummy $ac_prog; ac_word=$2
22523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22524 $as_echo_n "checking for $ac_word... " >&6; }
22525 if test "${ac_cv_path_USER_JAVAH+set}" = set; then :
22526   $as_echo_n "(cached) " >&6
22527 else
22528   case $USER_JAVAH in
22529   [\\/]* | ?:[\\/]*)
22530   ac_cv_path_USER_JAVAH="$USER_JAVAH" # Let the user override the test with a path.
22531   ;;
22532   *)
22533   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22534 for as_dir in $PATH
22535 do
22536   IFS=$as_save_IFS
22537   test -z "$as_dir" && as_dir=.
22538     for ac_exec_ext in '' $ac_executable_extensions; do
22539   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22540     ac_cv_path_USER_JAVAH="$as_dir/$ac_word$ac_exec_ext"
22541     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22542     break 2
22543   fi
22544 done
22545   done
22546 IFS=$as_save_IFS
22547
22548   ;;
22549 esac
22550 fi
22551 USER_JAVAH=$ac_cv_path_USER_JAVAH
22552 if test -n "$USER_JAVAH"; then
22553   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USER_JAVAH" >&5
22554 $as_echo "$USER_JAVAH" >&6; }
22555 else
22556   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22557 $as_echo "no" >&6; }
22558 fi
22559
22560
22561   test -n "$USER_JAVAH" && break
22562 done
22563
22564   fi
22565
22566   if test "x${USER_JAVAH}" = x; then
22567     as_fn_error "can not find javah" "$LINENO" 5
22568   fi
22569
22570
22571 fi
22572
22573
22574
22575 fi
22576
22577 CLASSPATH_INCLUDES="-I\$(top_srcdir)/include -I\$(top_srcdir)/native/jni/classpath -I\$(top_srcdir)/native/jni/native-lib"
22578
22579
22580 if test "x${COMPILE_JNI}" = xyes; then
22581   { $as_echo "$as_me:${as_lineno-$LINENO}: checking jni_md.h support" >&5
22582 $as_echo_n "checking jni_md.h support... " >&6; }
22583   if test -f ${srcdir}/include/jni_md-${target_cpu}-${target_os}.h; then
22584     { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22585 $as_echo "yes" >&6; }
22586   else
22587     target_cpu=x86
22588     target_os=linux-gnu
22589     { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no" >&5
22590 $as_echo "$as_me: WARNING: no" >&2;}
22591   fi
22592   ac_sources="include/jni_md-${target_cpu}-${target_os}.h"
22593   ac_dests="include/jni_md.h"
22594   while test -n "$ac_sources"; do
22595     set $ac_dests; ac_dest=$1; shift; ac_dests=$*
22596     set $ac_sources; ac_source=$1; shift; ac_sources=$*
22597     ac_config_links_1="$ac_config_links_1 $ac_dest:$ac_source"
22598   done
22599   ac_config_links="$ac_config_links $ac_config_links_1"
22600
22601 fi
22602
22603
22604
22605 # Check whether --with-vm-classes was given.
22606 if test "${with_vm_classes+set}" = set; then :
22607   withval=$with_vm_classes; vm_classes="$with_vm_classes"
22608 else
22609   vm_classes='${top_srcdir}/vm/reference'
22610 fi
22611
22612
22613
22614
22615
22616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
22617 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
22618     # Check whether --enable-maintainer-mode was given.
22619 if test "${enable_maintainer_mode+set}" = set; then :
22620   enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
22621 else
22622   USE_MAINTAINER_MODE=no
22623 fi
22624
22625   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
22626 $as_echo "$USE_MAINTAINER_MODE" >&6; }
22627    if test $USE_MAINTAINER_MODE = yes; then
22628   MAINTAINER_MODE_TRUE=
22629   MAINTAINER_MODE_FALSE='#'
22630 else
22631   MAINTAINER_MODE_TRUE='#'
22632   MAINTAINER_MODE_FALSE=
22633 fi
22634
22635   MAINT=$MAINTAINER_MODE_TRUE
22636
22637
22638
22639 # Check whether --enable-debug was given.
22640 if test "${enable_debug+set}" = set; then :
22641   enableval=$enable_debug; case "${enableval}" in
22642                 yes)
22643                 LIBDEBUG="true"
22644
22645 $as_echo "#define DEBUG 1" >>confdefs.h
22646
22647                 ;;
22648                 no)   LIBDEBUG="false" ;;
22649                 *)      as_fn_error "bad value ${enableval} for --enable-debug" "$LINENO" 5 ;;
22650               esac
22651 else
22652   LIBDEBUG="false"
22653 fi
22654
22655
22656
22657 # Check whether --enable-load-library was given.
22658 if test "${enable_load_library+set}" = set; then :
22659   enableval=$enable_load_library; case "${enableval}" in
22660                 yes) INIT_LOAD_LIBRARY="true" ;;
22661                 no) INIT_LOAD_LIBRARY="false" ;;
22662                 *) as_fn_error "bad value ${enableval} for --enable-load-library" "$LINENO" 5 ;;
22663               esac
22664 else
22665   INIT_LOAD_LIBRARY="true"
22666 fi
22667
22668
22669
22670
22671
22672 # Check whether --with-ecj-jar was given.
22673 if test "${with_ecj_jar+set}" = set; then :
22674   withval=$with_ecj_jar; ECJ_JAR=$withval
22675 else
22676   if test -f $multi_basedir/ecj.jar; then
22677                ECJ_JAR='$(jardir)/ecj.jar'
22678              fi
22679 fi
22680
22681
22682
22683 # Check whether --enable-java-lang-system-explicit-initialization was given.
22684 if test "${enable_java_lang_system_explicit_initialization+set}" = set; then :
22685   enableval=$enable_java_lang_system_explicit_initialization; case "${enableval}" in
22686                 yes|true) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="true" ;;
22687                 no|false) JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false" ;;
22688                 *) as_fn_error "bad value ${enableval} for --enable-java-lang-system-explicit-initialization" "$LINENO" 5 ;;
22689               esac
22690 else
22691   JAVA_LANG_SYSTEM_EXPLICIT_INITIALIZATION="false"
22692 fi
22693
22694
22695
22696
22697 REMOVE=""
22698
22699
22700 # Extract the first word of "mkdir", so it can be a program name with args.
22701 set dummy mkdir; ac_word=$2
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22703 $as_echo_n "checking for $ac_word... " >&6; }
22704 if test "${ac_cv_path_MKDIR+set}" = set; then :
22705   $as_echo_n "(cached) " >&6
22706 else
22707   case $MKDIR in
22708   [\\/]* | ?:[\\/]*)
22709   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
22710   ;;
22711   *)
22712   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22713 for as_dir in $PATH
22714 do
22715   IFS=$as_save_IFS
22716   test -z "$as_dir" && as_dir=.
22717     for ac_exec_ext in '' $ac_executable_extensions; do
22718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22719     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
22720     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22721     break 2
22722   fi
22723 done
22724   done
22725 IFS=$as_save_IFS
22726
22727   ;;
22728 esac
22729 fi
22730 MKDIR=$ac_cv_path_MKDIR
22731 if test -n "$MKDIR"; then
22732   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR" >&5
22733 $as_echo "$MKDIR" >&6; }
22734 else
22735   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22736 $as_echo "no" >&6; }
22737 fi
22738
22739
22740 # Extract the first word of "cp", so it can be a program name with args.
22741 set dummy cp; ac_word=$2
22742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22743 $as_echo_n "checking for $ac_word... " >&6; }
22744 if test "${ac_cv_path_CP+set}" = set; then :
22745   $as_echo_n "(cached) " >&6
22746 else
22747   case $CP in
22748   [\\/]* | ?:[\\/]*)
22749   ac_cv_path_CP="$CP" # Let the user override the test with a path.
22750   ;;
22751   *)
22752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22753 for as_dir in $PATH
22754 do
22755   IFS=$as_save_IFS
22756   test -z "$as_dir" && as_dir=.
22757     for ac_exec_ext in '' $ac_executable_extensions; do
22758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22759     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
22760     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22761     break 2
22762   fi
22763 done
22764   done
22765 IFS=$as_save_IFS
22766
22767   ;;
22768 esac
22769 fi
22770 CP=$ac_cv_path_CP
22771 if test -n "$CP"; then
22772   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CP" >&5
22773 $as_echo "$CP" >&6; }
22774 else
22775   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22776 $as_echo "no" >&6; }
22777 fi
22778
22779
22780 # Extract the first word of "date", so it can be a program name with args.
22781 set dummy date; ac_word=$2
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22783 $as_echo_n "checking for $ac_word... " >&6; }
22784 if test "${ac_cv_path_DATE+set}" = set; then :
22785   $as_echo_n "(cached) " >&6
22786 else
22787   case $DATE in
22788   [\\/]* | ?:[\\/]*)
22789   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
22790   ;;
22791   *)
22792   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22793 for as_dir in $PATH
22794 do
22795   IFS=$as_save_IFS
22796   test -z "$as_dir" && as_dir=.
22797     for ac_exec_ext in '' $ac_executable_extensions; do
22798   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22799     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
22800     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22801     break 2
22802   fi
22803 done
22804   done
22805 IFS=$as_save_IFS
22806
22807   ;;
22808 esac
22809 fi
22810 DATE=$ac_cv_path_DATE
22811 if test -n "$DATE"; then
22812   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DATE" >&5
22813 $as_echo "$DATE" >&6; }
22814 else
22815   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22816 $as_echo "no" >&6; }
22817 fi
22818
22819
22820
22821 # Extract the first word of "find", so it can be a program name with args.
22822 set dummy find; ac_word=$2
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22824 $as_echo_n "checking for $ac_word... " >&6; }
22825 if test "${ac_cv_path_FIND+set}" = set; then :
22826   $as_echo_n "(cached) " >&6
22827 else
22828   case $FIND in
22829   [\\/]* | ?:[\\/]*)
22830   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
22831   ;;
22832   *)
22833   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22834 for as_dir in $PATH
22835 do
22836   IFS=$as_save_IFS
22837   test -z "$as_dir" && as_dir=.
22838     for ac_exec_ext in '' $ac_executable_extensions; do
22839   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22840     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
22841     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22842     break 2
22843   fi
22844 done
22845   done
22846 IFS=$as_save_IFS
22847
22848   ;;
22849 esac
22850 fi
22851 FIND=$ac_cv_path_FIND
22852 if test -n "$FIND"; then
22853   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
22854 $as_echo "$FIND" >&6; }
22855 else
22856   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22857 $as_echo "no" >&6; }
22858 fi
22859
22860
22861
22862
22863   # Extract the first word of "zip", so it can be a program name with args.
22864 set dummy zip; ac_word=$2
22865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22866 $as_echo_n "checking for $ac_word... " >&6; }
22867 if test "${ac_cv_path_ZIP+set}" = set; then :
22868   $as_echo_n "(cached) " >&6
22869 else
22870   case $ZIP in
22871   [\\/]* | ?:[\\/]*)
22872   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
22873   ;;
22874   *)
22875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22876 for as_dir in $PATH
22877 do
22878   IFS=$as_save_IFS
22879   test -z "$as_dir" && as_dir=.
22880     for ac_exec_ext in '' $ac_executable_extensions; do
22881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22882     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
22883     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22884     break 2
22885   fi
22886 done
22887   done
22888 IFS=$as_save_IFS
22889
22890   ;;
22891 esac
22892 fi
22893 ZIP=$ac_cv_path_ZIP
22894 if test -n "$ZIP"; then
22895   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
22896 $as_echo "$ZIP" >&6; }
22897 else
22898   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22899 $as_echo "no" >&6; }
22900 fi
22901
22902
22903
22904   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a jar-like tool" >&5
22905 $as_echo_n "checking for a jar-like tool... " >&6; }
22906
22907 # Check whether --with-jar was given.
22908 if test "${with_jar+set}" = set; then :
22909   withval=$with_jar;
22910                 case "${withval}" in
22911                   yes)
22912                     JAR=yes
22913                     ;;
22914                   no)
22915                     JAR=no
22916                     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22917 $as_echo "${JAR}" >&6; }
22918                     ;;
22919                   *)
22920                     if test -f "${withval}"; then
22921                       JAR="${withval}"
22922                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${JAR}" >&5
22923 $as_echo "${JAR}" >&6; }
22924                     else
22925                       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22926 $as_echo "not found" >&6; }
22927                       as_fn_error "The jar tool ${withval} was not found." "$LINENO" 5
22928                     fi
22929                     ;;
22930                 esac
22931
22932 else
22933
22934                 JAR=yes
22935
22936 fi
22937
22938   if test x"${JAR}" = "xyes"; then
22939     { $as_echo "$as_me:${as_lineno-$LINENO}: result: trying fastjar, gjar and jar" >&5
22940 $as_echo "trying fastjar, gjar and jar" >&6; }
22941     for ac_prog in fastjar gjar jar
22942 do
22943   # Extract the first word of "$ac_prog", so it can be a program name with args.
22944 set dummy $ac_prog; ac_word=$2
22945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
22946 $as_echo_n "checking for $ac_word... " >&6; }
22947 if test "${ac_cv_path_JAR+set}" = set; then :
22948   $as_echo_n "(cached) " >&6
22949 else
22950   case $JAR in
22951   [\\/]* | ?:[\\/]*)
22952   ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
22953   ;;
22954   *)
22955   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22956 for as_dir in $PATH
22957 do
22958   IFS=$as_save_IFS
22959   test -z "$as_dir" && as_dir=.
22960     for ac_exec_ext in '' $ac_executable_extensions; do
22961   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
22962     ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
22963     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
22964     break 2
22965   fi
22966 done
22967   done
22968 IFS=$as_save_IFS
22969
22970   ;;
22971 esac
22972 fi
22973 JAR=$ac_cv_path_JAR
22974 if test -n "$JAR"; then
22975   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
22976 $as_echo "$JAR" >&6; }
22977 else
22978   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22979 $as_echo "no" >&6; }
22980 fi
22981
22982
22983   test -n "$JAR" && break
22984 done
22985
22986     if test x"${RHINO_JAR}" = "xyes"; then
22987       { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
22988 $as_echo "not found" >&6; }
22989     fi
22990   fi
22991   if test x"${JAR}" = "xno" && test x"${ZIP}" = ""; then
22992     as_fn_error "No zip or jar tool found." "$LINENO" 5
22993   fi
22994    if test x"${JAR}" != "xno" && test x"${JAR}" != "xyes"; then
22995   WITH_JAR_TRUE=
22996   WITH_JAR_FALSE='#'
22997 else
22998   WITH_JAR_TRUE='#'
22999   WITH_JAR_FALSE=
23000 fi
23001
23002
23003
23004
23005 # Check whether --with-glibj was given.
23006 if test "${with_glibj+set}" = set; then :
23007   withval=$with_glibj;
23008                 if test "x${withval}" = xyes || test "x${withval}" = xzip; then
23009                   install_class_files=no
23010                   build_class_files=yes
23011                   use_zip=yes
23012                 elif test "x${withval}" = xboth; then
23013                   install_class_files=yes
23014                   build_class_files=yes
23015                   use_zip=yes
23016                 elif test "x${withval}" = xflat; then
23017                   install_class_files=yes
23018                   build_class_files=yes
23019                   use_zip=no
23020                 elif test "x${withval}" = xno || test "x${withval}" = xnone; then
23021                   install_class_files=no
23022                   build_class_files=no
23023                   use_zip=no
23024                 elif test "x${withval}" = xbuild; then
23025                   install_class_files=no
23026                   build_class_files=yes
23027                   use_zip=no
23028                 else
23029                   as_fn_error "unknown value given to --with-glibj" "$LINENO" 5
23030                 fi
23031
23032 else
23033
23034                 install_class_files=no
23035                 use_zip=yes
23036
23037 fi
23038
23039    if test "x${use_zip}" = xyes; then
23040   INSTALL_GLIBJ_ZIP_TRUE=
23041   INSTALL_GLIBJ_ZIP_FALSE='#'
23042 else
23043   INSTALL_GLIBJ_ZIP_TRUE='#'
23044   INSTALL_GLIBJ_ZIP_FALSE=
23045 fi
23046
23047    if test "x${install_class_files}" = xyes; then
23048   INSTALL_CLASS_FILES_TRUE=
23049   INSTALL_CLASS_FILES_FALSE='#'
23050 else
23051   INSTALL_CLASS_FILES_TRUE='#'
23052   INSTALL_CLASS_FILES_FALSE=
23053 fi
23054
23055    if test "x${build_class_files}" = xyes; then
23056   BUILD_CLASS_FILES_TRUE=
23057   BUILD_CLASS_FILES_FALSE='#'
23058 else
23059   BUILD_CLASS_FILES_TRUE='#'
23060   BUILD_CLASS_FILES_FALSE=
23061 fi
23062
23063
23064   # Check whether --enable-examples was given.
23065 if test "${enable_examples+set}" = set; then :
23066   enableval=$enable_examples; case "${enableval}" in
23067                   yes) EXAMPLESDIR="examples" ;;
23068                   no) EXAMPLESDIR="" ;;
23069                   *) as_fn_error "bad value ${enableval} for --enable-examples" "$LINENO" 5 ;;
23070                 esac
23071 else
23072   EXAMPLESDIR="examples"
23073 fi
23074
23075   if test "x${build_class_files}" = xno; then
23076     EXAMPLESDIR=""
23077   fi
23078
23079
23080   # Check whether --enable-tools was given.
23081 if test "${enable_tools+set}" = set; then :
23082   enableval=$enable_tools; case "${enableval}" in
23083                   yes) TOOLSDIR="tools" ;;
23084                   no) TOOLSDIR="" ;;
23085                   *) as_fn_error "bad value ${enableval} for --enable-tools" "$LINENO" 5 ;;
23086                 esac
23087 else
23088   TOOLSDIR="tools"
23089 fi
23090
23091   if test "x${build_class_files}" = xno; then
23092     TOOLSDIR=""
23093   fi
23094
23095
23096
23097
23098
23099 # Check whether --with-gjdoc was given.
23100 if test "${with_gjdoc+set}" = set; then :
23101   withval=$with_gjdoc; if test "x${withval}" = xno; then
23102                  WITH_GJDOC=no;
23103                elif test "x${withval}" = xyes -o "x{withval}" = x; then
23104                  WITH_GJDOC=yes;
23105                  # Extract the first word of "gjdoc", so it can be a program name with args.
23106 set dummy gjdoc; ac_word=$2
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23108 $as_echo_n "checking for $ac_word... " >&6; }
23109 if test "${ac_cv_path_GJDOC+set}" = set; then :
23110   $as_echo_n "(cached) " >&6
23111 else
23112   case $GJDOC in
23113   [\\/]* | ?:[\\/]*)
23114   ac_cv_path_GJDOC="$GJDOC" # Let the user override the test with a path.
23115   ;;
23116   *)
23117   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23118 for as_dir in $PATH
23119 do
23120   IFS=$as_save_IFS
23121   test -z "$as_dir" && as_dir=.
23122     for ac_exec_ext in '' $ac_executable_extensions; do
23123   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23124     ac_cv_path_GJDOC="$as_dir/$ac_word$ac_exec_ext"
23125     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23126     break 2
23127   fi
23128 done
23129   done
23130 IFS=$as_save_IFS
23131
23132   test -z "$ac_cv_path_GJDOC" && ac_cv_path_GJDOC=""no""
23133   ;;
23134 esac
23135 fi
23136 GJDOC=$ac_cv_path_GJDOC
23137 if test -n "$GJDOC"; then
23138   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GJDOC" >&5
23139 $as_echo "$GJDOC" >&6; }
23140 else
23141   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23142 $as_echo "no" >&6; }
23143 fi
23144
23145
23146                  if test "x${GJDOC}" = xno; then
23147                    as_fn_error "\"gjdoc executable not found\"" "$LINENO" 5;
23148                  fi
23149                else
23150                  WITH_GJDOC=yes
23151                  GJDOC="${withval}"
23152                  as_ac_File=`$as_echo "ac_cv_file_${GJDOC}" | $as_tr_sh`
23153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${GJDOC}" >&5
23154 $as_echo_n "checking for ${GJDOC}... " >&6; }
23155 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23156   $as_echo_n "(cached) " >&6
23157 else
23158   test "$cross_compiling" = yes &&
23159   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23160 if test -r "${GJDOC}"; then
23161   eval "$as_ac_File=yes"
23162 else
23163   eval "$as_ac_File=no"
23164 fi
23165 fi
23166 eval ac_res=\$$as_ac_File
23167                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23168 $as_echo "$ac_res" >&6; }
23169 eval as_val=\$$as_ac_File
23170    if test "x$as_val" = x""yes; then :
23171
23172 else
23173   as_fn_error "\"Cannot use ${withval} as gjdoc executable since it doesn't exist\"" "$LINENO" 5
23174 fi
23175
23176                fi
23177 else
23178   WITH_GJDOC=no
23179 fi
23180
23181    if test "x${WITH_GJDOC}" = xyes; then
23182   CREATE_API_DOCS_TRUE=
23183   CREATE_API_DOCS_FALSE='#'
23184 else
23185   CREATE_API_DOCS_TRUE='#'
23186   CREATE_API_DOCS_FALSE=
23187 fi
23188
23189   if test "x${WITH_GJDOC}" = xyes; then
23190     { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of GJDoc" >&5
23191 $as_echo_n "checking version of GJDoc... " >&6; }
23192     gjdoc_version=$(${GJDOC} --version|cut -d ' ' -f2)
23193     { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${gjdoc_version}" >&5
23194 $as_echo "${gjdoc_version}" >&6; }
23195     case ${gjdoc_version} in
23196       0.7.9) ;;
23197       0.8*) ;;
23198       0.9*) ;;
23199       1*) ;;
23200       *) as_fn_error "Building documentation requires GJDoc >= 0.7.9, ${gjdoc_version} found." "$LINENO" 5 ;;
23201     esac
23202   fi
23203
23204
23205
23206
23207 # Check whether --with-jay was given.
23208 if test "${with_jay+set}" = set; then :
23209   withval=$with_jay;
23210     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23211 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23212     JAY_FOUND=no
23213     JAY_DIR_PATH=
23214     if test "x${withval}" = xno; then
23215       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23216 $as_echo "no" >&6; }
23217     elif test "x${withval}" = xyes; then
23218       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23219 $as_echo "yes" >&6; }
23220       JAY_DIR_PATH="/usr/share/jay"
23221     elif test -d "${withval}"; then
23222       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23223 $as_echo "yes" >&6; }
23224       JAY_DIR_PATH="${withval}"
23225     elif test -f "${withval}"; then
23226       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
23227 $as_echo "yes" >&6; }
23228       JAY_DIR_PATH=`dirname "${withval}"`
23229       JAY="${withval}"
23230     else
23231         as_fn_error "jay not found at ${withval}" "$LINENO" 5
23232     fi
23233
23234     if test "x${JAY_DIR_PATH}" != x; then
23235       # Extract the first word of "jay", so it can be a program name with args.
23236 set dummy jay; ac_word=$2
23237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23238 $as_echo_n "checking for $ac_word... " >&6; }
23239 if test "${ac_cv_path_JAY+set}" = set; then :
23240   $as_echo_n "(cached) " >&6
23241 else
23242   case $JAY in
23243   [\\/]* | ?:[\\/]*)
23244   ac_cv_path_JAY="$JAY" # Let the user override the test with a path.
23245   ;;
23246   *)
23247   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23248 as_dummy="${JAY_DIR_PATH}:${PATH}"
23249 for as_dir in $as_dummy
23250 do
23251   IFS=$as_save_IFS
23252   test -z "$as_dir" && as_dir=.
23253     for ac_exec_ext in '' $ac_executable_extensions; do
23254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23255     ac_cv_path_JAY="$as_dir/$ac_word$ac_exec_ext"
23256     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23257     break 2
23258   fi
23259 done
23260   done
23261 IFS=$as_save_IFS
23262
23263   test -z "$ac_cv_path_JAY" && ac_cv_path_JAY=""no""
23264   ;;
23265 esac
23266 fi
23267 JAY=$ac_cv_path_JAY
23268 if test -n "$JAY"; then
23269   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAY" >&5
23270 $as_echo "$JAY" >&6; }
23271 else
23272   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23273 $as_echo "no" >&6; }
23274 fi
23275
23276
23277       if test "x${JAY}" = xno; then
23278         as_fn_error "jay executable not found" "$LINENO" 5;
23279       fi
23280       JAY_SKELETON="${JAY_DIR_PATH}/skeleton"
23281       as_ac_File=`$as_echo "ac_cv_file_${JAY_SKELETON}" | $as_tr_sh`
23282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${JAY_SKELETON}" >&5
23283 $as_echo_n "checking for ${JAY_SKELETON}... " >&6; }
23284 if { as_var=$as_ac_File; eval "test \"\${$as_var+set}\" = set"; }; then :
23285   $as_echo_n "(cached) " >&6
23286 else
23287   test "$cross_compiling" = yes &&
23288   as_fn_error "cannot check for file existence when cross compiling" "$LINENO" 5
23289 if test -r "${JAY_SKELETON}"; then
23290   eval "$as_ac_File=yes"
23291 else
23292   eval "$as_ac_File=no"
23293 fi
23294 fi
23295 eval ac_res=\$$as_ac_File
23296                { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
23297 $as_echo "$ac_res" >&6; }
23298 eval as_val=\$$as_ac_File
23299    if test "x$as_val" = x""yes; then :
23300
23301 else
23302   as_fn_error "Expected skeleton file in ${JAY_DIR_PATH}" "$LINENO" 5
23303 fi
23304
23305       JAY_FOUND=yes
23306     fi
23307
23308 else
23309
23310     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to regenerate parsers with jay" >&5
23311 $as_echo_n "checking whether to regenerate parsers with jay... " >&6; }
23312     { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23313 $as_echo "no" >&6; }
23314     JAY_FOUND=no
23315
23316 fi
23317
23318    if test "x${JAY_FOUND}" = xyes; then
23319   REGEN_PARSERS_TRUE=
23320   REGEN_PARSERS_FALSE='#'
23321 else
23322   REGEN_PARSERS_TRUE='#'
23323   REGEN_PARSERS_FALSE=
23324 fi
23325
23326
23327
23328 # Check whether --enable-portable-native-sync was given.
23329 if test "${enable_portable_native_sync+set}" = set; then :
23330   enableval=$enable_portable_native_sync; case "${enableval}" in
23331                 yes)
23332
23333 $as_echo "#define PORTABLE_NATIVE_SYNC 1" >>confdefs.h
23334
23335                      ;;
23336                 no)  ;;
23337                 *)
23338                      as_fn_error "bad value ${enableval} for --enable-portable-native-sync" "$LINENO" 5
23339                      ;;
23340               esac
23341 fi
23342
23343
23344 # ------ AX CREATE STDINT H -------------------------------------
23345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint types" >&5
23346 $as_echo_n "checking for stdint types... " >&6; }
23347 ac_stdint_h=`echo include/config-int.h`
23348 # try to shortcircuit - if the default include path of the compiler
23349 # can find a "stdint.h" header then we assume that all compilers can.
23350 if test "${ac_cv_header_stdint_t+set}" = set; then :
23351   $as_echo_n "(cached) " >&6
23352 else
23353
23354 old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
23355 old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
23356 old_CFLAGS="$CFLAGS"     ; CFLAGS=""
23357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23358 /* end confdefs.h.  */
23359 #include <stdint.h>
23360 int
23361 main ()
23362 {
23363 int_least32_t v = 0;
23364   ;
23365   return 0;
23366 }
23367 _ACEOF
23368 if ac_fn_c_try_compile "$LINENO"; then :
23369   ac_cv_stdint_result="(assuming C99 compatible system)"
23370  ac_cv_header_stdint_t="stdint.h";
23371 else
23372   ac_cv_header_stdint_t=""
23373 fi
23374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23375 CXXFLAGS="$old_CXXFLAGS"
23376 CPPFLAGS="$old_CPPFLAGS"
23377 CFLAGS="$old_CFLAGS"
23378 fi
23379
23380
23381 v="... $ac_cv_header_stdint_h"
23382 if test "$ac_stdint_h" = "stdint.h" ; then
23383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./stdint.h?)" >&5
23384 $as_echo "(are you sure you want them in ./stdint.h?)" >&6; }
23385 elif test "$ac_stdint_h" = "inttypes.h" ; then
23386  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (are you sure you want them in ./inttypes.h?)" >&5
23387 $as_echo "(are you sure you want them in ./inttypes.h?)" >&6; }
23388 elif test "_$ac_cv_header_stdint_t" = "_" ; then
23389  { $as_echo "$as_me:${as_lineno-$LINENO}: result: (putting them into $ac_stdint_h)$v" >&5
23390 $as_echo "(putting them into $ac_stdint_h)$v" >&6; }
23391 else
23392  ac_cv_header_stdint="$ac_cv_header_stdint_t"
23393  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint (shortcircuit)" >&5
23394 $as_echo "$ac_cv_header_stdint (shortcircuit)" >&6; }
23395 fi
23396
23397 if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
23398
23399
23400 inttype_headers=`echo  | sed -e 's/,/ /g'`
23401
23402 ac_cv_stdint_result="(no helpful system typedefs seen)"
23403
23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23405 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23406 if test "${ac_cv_header_stdint_x+set}" = set; then :
23407   $as_echo_n "(cached) " >&6
23408 else
23409
23410  ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
23411   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23412 $as_echo "(..)" >&6; }
23413   for i in    stdint.h inttypes.h sys/inttypes.h $inttype_headers ; do
23414    unset ac_cv_type_uintptr_t
23415    unset ac_cv_type_uint64_t
23416    ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <$i>
23417 "
23418 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
23419   ac_cv_header_stdint_x=$i
23420 else
23421   continue
23422 fi
23423
23424    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23425 "
23426 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23427   and64="/uint64_t"
23428 else
23429   and64=""
23430 fi
23431
23432       stdint.h inttypes.h sys/inttypes.h $inttype_headers
23433  break
23434   done
23435   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uintptr_t" >&5
23436 $as_echo_n "checking for stdint uintptr_t... " >&6; }
23437
23438 fi
23439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_x" >&5
23440 $as_echo "$ac_cv_header_stdint_x" >&6; }
23441
23442
23443 if test "_$ac_cv_header_stdint_x" = "_" ; then
23444
23445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23446 $as_echo_n "checking for stdint uint32_t... " >&6; }
23447 if test "${ac_cv_header_stdint_o+set}" = set; then :
23448   $as_echo_n "(cached) " >&6
23449 else
23450
23451  ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
23452   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23453 $as_echo "(..)" >&6; }
23454   for i in    inttypes.h sys/inttypes.h stdint.h $inttype_headers ; do
23455    unset ac_cv_type_uint32_t
23456    unset ac_cv_type_uint64_t
23457    ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <$i>
23458 "
23459 if test "x$ac_cv_type_uint32_t" = x""yes; then :
23460   ac_cv_header_stdint_o=$i
23461 else
23462   continue
23463 fi
23464
23465    ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include<$i>
23466 "
23467 if test "x$ac_cv_type_uint64_t" = x""yes; then :
23468   and64="/uint64_t"
23469 else
23470   and64=""
23471 fi
23472
23473       inttypes.h sys/inttypes.h stdint.h $inttype_headers
23474  break
23475    break;
23476   done
23477   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint uint32_t" >&5
23478 $as_echo_n "checking for stdint uint32_t... " >&6; }
23479
23480 fi
23481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_o" >&5
23482 $as_echo "$ac_cv_header_stdint_o" >&6; }
23483
23484 fi
23485
23486 if test "_$ac_cv_header_stdint_x" = "_" ; then
23487 if test "_$ac_cv_header_stdint_o" = "_" ; then
23488
23489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23490 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23491 if test "${ac_cv_header_stdint_u+set}" = set; then :
23492   $as_echo_n "(cached) " >&6
23493 else
23494
23495  ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
23496   { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23497 $as_echo "(..)" >&6; }
23498   for i in    sys/types.h inttypes.h sys/inttypes.h $inttype_headers ; do
23499    unset ac_cv_type_u_int32_t
23500    unset ac_cv_type_u_int64_t
23501    ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <$i>
23502 "
23503 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
23504   ac_cv_header_stdint_u=$i
23505 else
23506   continue
23507 fi
23508
23509    ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include<$i>
23510 "
23511 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
23512   and64="/u_int64_t"
23513 else
23514   and64=""
23515 fi
23516
23517       sys/types.h inttypes.h sys/inttypes.h $inttype_headers
23518  break
23519    break;
23520   done
23521   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint u_int32_t" >&5
23522 $as_echo_n "checking for stdint u_int32_t... " >&6; }
23523
23524 fi
23525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdint_u" >&5
23526 $as_echo "$ac_cv_header_stdint_u" >&6; }
23527
23528 fi fi
23529
23530 if test "_$ac_cv_header_stdint_x" = "_" ; then
23531    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint datatype model" >&5
23532 $as_echo_n "checking for stdint datatype model... " >&6; }
23533    { $as_echo "$as_me:${as_lineno-$LINENO}: result: (..)" >&5
23534 $as_echo "(..)" >&6; }
23535
23536    # The cast to long int works around a bug in the HP C Compiler
23537 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23538 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23539 # This bug is HP SR number 8606223364.
23540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
23541 $as_echo_n "checking size of char... " >&6; }
23542 if test "${ac_cv_sizeof_char+set}" = set; then :
23543   $as_echo_n "(cached) " >&6
23544 else
23545   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char"        "$ac_includes_default"; then :
23546
23547 else
23548   if test "$ac_cv_type_char" = yes; then
23549      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23550 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23551 { as_fn_set_status 77
23552 as_fn_error "cannot compute sizeof (char)
23553 See \`config.log' for more details." "$LINENO" 5; }; }
23554    else
23555      ac_cv_sizeof_char=0
23556    fi
23557 fi
23558
23559 fi
23560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
23561 $as_echo "$ac_cv_sizeof_char" >&6; }
23562
23563
23564
23565 cat >>confdefs.h <<_ACEOF
23566 #define SIZEOF_CHAR $ac_cv_sizeof_char
23567 _ACEOF
23568
23569
23570    # The cast to long int works around a bug in the HP C Compiler
23571 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23572 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23573 # This bug is HP SR number 8606223364.
23574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
23575 $as_echo_n "checking size of short... " >&6; }
23576 if test "${ac_cv_sizeof_short+set}" = set; then :
23577   $as_echo_n "(cached) " >&6
23578 else
23579   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short"        "$ac_includes_default"; then :
23580
23581 else
23582   if test "$ac_cv_type_short" = yes; then
23583      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23585 { as_fn_set_status 77
23586 as_fn_error "cannot compute sizeof (short)
23587 See \`config.log' for more details." "$LINENO" 5; }; }
23588    else
23589      ac_cv_sizeof_short=0
23590    fi
23591 fi
23592
23593 fi
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
23595 $as_echo "$ac_cv_sizeof_short" >&6; }
23596
23597
23598
23599 cat >>confdefs.h <<_ACEOF
23600 #define SIZEOF_SHORT $ac_cv_sizeof_short
23601 _ACEOF
23602
23603
23604    # The cast to long int works around a bug in the HP C Compiler
23605 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23606 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23607 # This bug is HP SR number 8606223364.
23608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
23609 $as_echo_n "checking size of int... " >&6; }
23610 if test "${ac_cv_sizeof_int+set}" = set; then :
23611   $as_echo_n "(cached) " >&6
23612 else
23613   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int"        "$ac_includes_default"; then :
23614
23615 else
23616   if test "$ac_cv_type_int" = yes; then
23617      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23618 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23619 { as_fn_set_status 77
23620 as_fn_error "cannot compute sizeof (int)
23621 See \`config.log' for more details." "$LINENO" 5; }; }
23622    else
23623      ac_cv_sizeof_int=0
23624    fi
23625 fi
23626
23627 fi
23628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
23629 $as_echo "$ac_cv_sizeof_int" >&6; }
23630
23631
23632
23633 cat >>confdefs.h <<_ACEOF
23634 #define SIZEOF_INT $ac_cv_sizeof_int
23635 _ACEOF
23636
23637
23638    # The cast to long int works around a bug in the HP C Compiler
23639 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23640 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23641 # This bug is HP SR number 8606223364.
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
23643 $as_echo_n "checking size of long... " >&6; }
23644 if test "${ac_cv_sizeof_long+set}" = set; then :
23645   $as_echo_n "(cached) " >&6
23646 else
23647   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long"        "$ac_includes_default"; then :
23648
23649 else
23650   if test "$ac_cv_type_long" = yes; then
23651      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23653 { as_fn_set_status 77
23654 as_fn_error "cannot compute sizeof (long)
23655 See \`config.log' for more details." "$LINENO" 5; }; }
23656    else
23657      ac_cv_sizeof_long=0
23658    fi
23659 fi
23660
23661 fi
23662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
23663 $as_echo "$ac_cv_sizeof_long" >&6; }
23664
23665
23666
23667 cat >>confdefs.h <<_ACEOF
23668 #define SIZEOF_LONG $ac_cv_sizeof_long
23669 _ACEOF
23670
23671
23672    # The cast to long int works around a bug in the HP C Compiler
23673 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23674 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23675 # This bug is HP SR number 8606223364.
23676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void*" >&5
23677 $as_echo_n "checking size of void*... " >&6; }
23678 if test "${ac_cv_sizeof_voidp+set}" = set; then :
23679   $as_echo_n "(cached) " >&6
23680 else
23681   if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void*))" "ac_cv_sizeof_voidp"        "$ac_includes_default"; then :
23682
23683 else
23684   if test "$ac_cv_type_voidp" = yes; then
23685      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
23686 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
23687 { as_fn_set_status 77
23688 as_fn_error "cannot compute sizeof (void*)
23689 See \`config.log' for more details." "$LINENO" 5; }; }
23690    else
23691      ac_cv_sizeof_voidp=0
23692    fi
23693 fi
23694
23695 fi
23696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_voidp" >&5
23697 $as_echo "$ac_cv_sizeof_voidp" >&6; }
23698
23699
23700
23701 cat >>confdefs.h <<_ACEOF
23702 #define SIZEOF_VOIDP $ac_cv_sizeof_voidp
23703 _ACEOF
23704
23705
23706    ac_cv_char_data_model=""
23707    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
23708    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
23709    ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
23710    ac_cv_long_data_model=""
23711    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
23712    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
23713    ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
23714    { $as_echo "$as_me:${as_lineno-$LINENO}: checking data model" >&5
23715 $as_echo_n "checking data model... " >&6; }
23716    case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
23717     122/242)     ac_cv_data_model="IP16"  ; n="standard 16bit machine" ;;
23718     122/244)     ac_cv_data_model="LP32"  ; n="standard 32bit machine" ;;
23719     122/*)       ac_cv_data_model="i16"   ; n="unusual int16 model" ;;
23720     124/444)     ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
23721     124/488)     ac_cv_data_model="LP64"  ; n="standard 64bit unixish" ;;
23722     124/448)     ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
23723     124/*)       ac_cv_data_model="i32"   ; n="unusual int32 model" ;;
23724     128/888)     ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
23725     128/*)       ac_cv_data_model="i64"   ; n="unusual int64 model" ;;
23726     222/*2)      ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
23727     333/*3)      ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
23728     444/*4)      ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
23729     666/*6)      ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
23730     888/*8)      ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
23731     222/*|333/*|444/*|666/*|888/*) :
23732                  ac_cv_data_model="iDSP"  ; n="unusual dsptype" ;;
23733      *)          ac_cv_data_model="none"  ; n="very unusual model" ;;
23734    esac
23735    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_data_model ($ac_cv_long_data_model, $n)" >&5
23736 $as_echo "$ac_cv_data_model ($ac_cv_long_data_model, $n)" >&6; }
23737
23738 fi
23739
23740 if test "_$ac_cv_header_stdint_x" != "_" ; then
23741    ac_cv_header_stdint="$ac_cv_header_stdint_x"
23742 elif  test "_$ac_cv_header_stdint_o" != "_" ; then
23743    ac_cv_header_stdint="$ac_cv_header_stdint_o"
23744 elif  test "_$ac_cv_header_stdint_u" != "_" ; then
23745    ac_cv_header_stdint="$ac_cv_header_stdint_u"
23746 else
23747    ac_cv_header_stdint="stddef.h"
23748 fi
23749
23750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra inttypes in chosen header" >&5
23751 $as_echo_n "checking for extra inttypes in chosen header... " >&6; }
23752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ($ac_cv_header_stdint)" >&5
23753 $as_echo "($ac_cv_header_stdint)" >&6; }
23754 unset ac_cv_type_int_least32_t
23755 unset ac_cv_type_int_fast32_t
23756 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <$ac_cv_header_stdint>
23757 "
23758 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
23759
23760 fi
23761
23762 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include<$ac_cv_header_stdint>
23763 "
23764 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
23765
23766 fi
23767
23768 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "#include <$ac_cv_header_stdint>
23769 "
23770 if test "x$ac_cv_type_intmax_t" = x""yes; then :
23771
23772 fi
23773
23774
23775 fi # shortcircut to system "stdint.h"
23776 # ------------------ PREPARE VARIABLES ------------------------------
23777 if test "$GCC" = "yes" ; then
23778 ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
23779 else
23780 ac_cv_stdint_message="using $CC"
23781 fi
23782
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&5
23784 $as_echo "make use of $ac_cv_header_stdint in $ac_stdint_h $ac_cv_stdint_result" >&6; }
23785
23786 # ----------------- DONE inttypes.h checks START header -------------
23787 ac_config_commands="$ac_config_commands $ac_stdint_h"
23788
23789
23790
23791
23792 # Check whether --with-glibj_zip was given.
23793 if test "${with_glibj_zip+set}" = set; then :
23794   withval=$with_glibj_zip;
23795 fi
23796
23797
23798 case "$with_glibj_zip" in
23799 "")
23800         use_glibj_zip=false
23801         ;;
23802 "no" )
23803         use_glibj_zip=false
23804         ;;
23805 "yes")
23806         as_fn_error "Please suply an absolute path to a prebuilt glibj.zip" "$LINENO" 5
23807         ;;
23808 *)
23809         use_glibj_zip=true
23810         PATH_TO_GLIBJ_ZIP=$with_glibj_zip
23811         ;;
23812 esac;
23813
23814  if test x$use_glibj_zip = xtrue; then
23815   USE_PREBUILT_GLIBJ_ZIP_TRUE=
23816   USE_PREBUILT_GLIBJ_ZIP_FALSE='#'
23817 else
23818   USE_PREBUILT_GLIBJ_ZIP_TRUE='#'
23819   USE_PREBUILT_GLIBJ_ZIP_FALSE=
23820 fi
23821
23822
23823
23824 if test "x${TOOLSDIR}" != x; then
23825     if test "x${COMPILE_WRAPPERS}" = xno && test "x${enable_java_maintainer_mode}" = xyes; then
23826
23827
23828 if test "x$JAVAPREFIX" = x; then
23829         test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23830 do
23831   # Extract the first word of "$ac_prog", so it can be a program name with args.
23832 set dummy $ac_prog; ac_word=$2
23833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23834 $as_echo_n "checking for $ac_word... " >&6; }
23835 if test "${ac_cv_prog_JAVA+set}" = set; then :
23836   $as_echo_n "(cached) " >&6
23837 else
23838   if test -n "$JAVA"; then
23839   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23840 else
23841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23842 for as_dir in $PATH
23843 do
23844   IFS=$as_save_IFS
23845   test -z "$as_dir" && as_dir=.
23846     for ac_exec_ext in '' $ac_executable_extensions; do
23847   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23848     ac_cv_prog_JAVA="$ac_prog"
23849     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23850     break 2
23851   fi
23852 done
23853   done
23854 IFS=$as_save_IFS
23855
23856 fi
23857 fi
23858 JAVA=$ac_cv_prog_JAVA
23859 if test -n "$JAVA"; then
23860   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23861 $as_echo "$JAVA" >&6; }
23862 else
23863   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23864 $as_echo "no" >&6; }
23865 fi
23866
23867
23868   test -n "$JAVA" && break
23869 done
23870
23871 else
23872         test "x$JAVA" = x && for ac_prog in cacao$EXEEXT jamvm$EXEEXT kaffe$EXEEXT gij$EXEEXT java$EXEEXT
23873 do
23874   # Extract the first word of "$ac_prog", so it can be a program name with args.
23875 set dummy $ac_prog; ac_word=$2
23876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23877 $as_echo_n "checking for $ac_word... " >&6; }
23878 if test "${ac_cv_prog_JAVA+set}" = set; then :
23879   $as_echo_n "(cached) " >&6
23880 else
23881   if test -n "$JAVA"; then
23882   ac_cv_prog_JAVA="$JAVA" # Let the user override the test.
23883 else
23884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23885 for as_dir in $PATH
23886 do
23887   IFS=$as_save_IFS
23888   test -z "$as_dir" && as_dir=.
23889     for ac_exec_ext in '' $ac_executable_extensions; do
23890   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23891     ac_cv_prog_JAVA="$ac_prog"
23892     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23893     break 2
23894   fi
23895 done
23896   done
23897 IFS=$as_save_IFS
23898
23899 fi
23900 fi
23901 JAVA=$ac_cv_prog_JAVA
23902 if test -n "$JAVA"; then
23903   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVA" >&5
23904 $as_echo "$JAVA" >&6; }
23905 else
23906   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23907 $as_echo "no" >&6; }
23908 fi
23909
23910
23911   test -n "$JAVA" && break
23912 done
23913 test -n "$JAVA" || JAVA="$JAVAPREFIX"
23914
23915 fi
23916 test "x$JAVA" = x && as_fn_error "no acceptable Java virtual machine found in \$PATH" "$LINENO" 5
23917
23918
23919 ECJ_OPTS="-warn:-deprecation,serial,unusedImport,unusedPrivate,resource"
23920 JAVAC_OPTS="-Xlint:unchecked,cast,divzero,empty,finally,overrides"
23921 GCJ_OPTS="-g"
23922 if test "x$JAVAPREFIX" = x; then
23923         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23924 do
23925   # Extract the first word of "$ac_prog", so it can be a program name with args.
23926 set dummy $ac_prog; ac_word=$2
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23928 $as_echo_n "checking for $ac_word... " >&6; }
23929 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23930   $as_echo_n "(cached) " >&6
23931 else
23932   if test -n "$JAVAC"; then
23933   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23934 else
23935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23936 for as_dir in $PATH
23937 do
23938   IFS=$as_save_IFS
23939   test -z "$as_dir" && as_dir=.
23940     for ac_exec_ext in '' $ac_executable_extensions; do
23941   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23942     ac_cv_prog_JAVAC="$ac_prog"
23943     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23944     break 2
23945   fi
23946 done
23947   done
23948 IFS=$as_save_IFS
23949
23950 fi
23951 fi
23952 JAVAC=$ac_cv_prog_JAVAC
23953 if test -n "$JAVAC"; then
23954   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23955 $as_echo "$JAVAC" >&6; }
23956 else
23957   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23958 $as_echo "no" >&6; }
23959 fi
23960
23961
23962   test -n "$JAVAC" && break
23963 done
23964
23965 else
23966         test "x$JAVAC" = x && for ac_prog in "ecj$EXEEXT $ECJ_OPTS" "ecj-3.3$EXEEXT $ECJ_OPTS" "ecj-3.2$EXEEXT $ECJ_OPTS" "javac$EXEEXT $JAVAC_OPTS" "gcj$EXEEXT -C"
23967 do
23968   # Extract the first word of "$ac_prog", so it can be a program name with args.
23969 set dummy $ac_prog; ac_word=$2
23970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
23971 $as_echo_n "checking for $ac_word... " >&6; }
23972 if test "${ac_cv_prog_JAVAC+set}" = set; then :
23973   $as_echo_n "(cached) " >&6
23974 else
23975   if test -n "$JAVAC"; then
23976   ac_cv_prog_JAVAC="$JAVAC" # Let the user override the test.
23977 else
23978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23979 for as_dir in $PATH
23980 do
23981   IFS=$as_save_IFS
23982   test -z "$as_dir" && as_dir=.
23983     for ac_exec_ext in '' $ac_executable_extensions; do
23984   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
23985     ac_cv_prog_JAVAC="$ac_prog"
23986     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
23987     break 2
23988   fi
23989 done
23990   done
23991 IFS=$as_save_IFS
23992
23993 fi
23994 fi
23995 JAVAC=$ac_cv_prog_JAVAC
23996 if test -n "$JAVAC"; then
23997   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
23998 $as_echo "$JAVAC" >&6; }
23999 else
24000   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24001 $as_echo "no" >&6; }
24002 fi
24003
24004
24005   test -n "$JAVAC" && break
24006 done
24007 test -n "$JAVAC" || JAVAC="$JAVAPREFIX"
24008
24009 fi
24010 test "x$JAVAC" = x && as_fn_error "no acceptable Java compiler found in \$PATH" "$LINENO" 5
24011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC is a version of gcj" >&5
24012 $as_echo_n "checking if $JAVAC is a version of gcj... " >&6; }
24013 if test "${ac_cv_prog_javac_is_gcj+set}" = set; then :
24014   $as_echo_n "(cached) " >&6
24015 else
24016
24017 if $JAVAC --version 2>&1 | grep gcj >&5 ; then
24018   ac_cv_prog_javac_is_gcj=yes;
24019   JAVAC="$JAVAC $GCJ_OPTS";
24020 else
24021   ac_cv_prog_javac_is_gcj=no;
24022 fi
24023
24024 fi
24025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_is_gcj" >&5
24026 $as_echo "$ac_cv_prog_javac_is_gcj" >&6; }
24027 JAVAC_IS_GCJ=$ac_cv_prog_javac_is_gcj
24028
24029  if test x"${JAVAC_IS_GCJ}" = xyes; then
24030   GCJ_JAVAC_TRUE=
24031   GCJ_JAVAC_FALSE='#'
24032 else
24033   GCJ_JAVAC_TRUE='#'
24034   GCJ_JAVAC_FALSE=
24035 fi
24036
24037
24038
24039
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVAC works" >&5
24041 $as_echo_n "checking if $JAVAC works... " >&6; }
24042 if test "${ac_cv_prog_javac_works+set}" = set; then :
24043   $as_echo_n "(cached) " >&6
24044 else
24045
24046 JAVA_TEST=Object.java
24047 CLASS_TEST=Object.class
24048 cat << \EOF > $JAVA_TEST
24049 /* #line 24049 "configure" */
24050 package java.lang;
24051
24052 public class Object
24053 {
24054   static <T> void doStuff()
24055   {
24056   }
24057 }
24058 EOF
24059 if test x$JAVAC_IS_GCJ = xyes; then
24060   CMD="$JAVAC $JAVACFLAGS -fsource=1.5 -ftarget=1.5 $JAVA_TEST"
24061 else
24062   CMD="$JAVAC $JAVACFLAGS -source 1.5 -target 1.5 $JAVA_TEST"
24063 fi
24064 if { ac_try='$CMD'
24065   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24066   (eval $ac_try) 2>&5
24067   ac_status=$?
24068   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24069   test $ac_status = 0; }; } >/dev/null 2>&1; then
24070   ac_cv_prog_javac_works=yes
24071 else
24072   as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24073   echo "configure: failed program was:" >&5
24074   cat $JAVA_TEST >&5
24075 fi
24076 rm -f $JAVA_TEST $CLASS_TEST
24077
24078 fi
24079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_javac_works" >&5
24080 $as_echo "$ac_cv_prog_javac_works" >&6; }
24081
24082
24083
24084 # Extract the first word of "uudecode$EXEEXT", so it can be a program name with args.
24085 set dummy uudecode$EXEEXT; ac_word=$2
24086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24087 $as_echo_n "checking for $ac_word... " >&6; }
24088 if test "${ac_cv_prog_uudecode+set}" = set; then :
24089   $as_echo_n "(cached) " >&6
24090 else
24091   if test -n "$uudecode"; then
24092   ac_cv_prog_uudecode="$uudecode" # Let the user override the test.
24093 else
24094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24095 for as_dir in $PATH
24096 do
24097   IFS=$as_save_IFS
24098   test -z "$as_dir" && as_dir=.
24099     for ac_exec_ext in '' $ac_executable_extensions; do
24100   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24101     ac_cv_prog_uudecode="yes"
24102     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24103     break 2
24104   fi
24105 done
24106   done
24107 IFS=$as_save_IFS
24108
24109 fi
24110 fi
24111 uudecode=$ac_cv_prog_uudecode
24112 if test -n "$uudecode"; then
24113   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $uudecode" >&5
24114 $as_echo "$uudecode" >&6; }
24115 else
24116   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24117 $as_echo "no" >&6; }
24118 fi
24119
24120
24121 if test x$uudecode = xyes; then
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if uudecode can decode base 64 file" >&5
24123 $as_echo_n "checking if uudecode can decode base 64 file... " >&6; }
24124 if test "${ac_cv_prog_uudecode_base64+set}" = set; then :
24125   $as_echo_n "(cached) " >&6
24126 else
24127
24128 cat << \EOF > Test.uue
24129 begin-base64 644 Test.class
24130 yv66vgADAC0AFQcAAgEABFRlc3QHAAQBABBqYXZhL2xhbmcvT2JqZWN0AQAE
24131 bWFpbgEAFihbTGphdmEvbGFuZy9TdHJpbmc7KVYBAARDb2RlAQAPTGluZU51
24132 bWJlclRhYmxlDAAKAAsBAARleGl0AQAEKEkpVgoADQAJBwAOAQAQamF2YS9s
24133 YW5nL1N5c3RlbQEABjxpbml0PgEAAygpVgwADwAQCgADABEBAApTb3VyY2VG
24134 aWxlAQAJVGVzdC5qYXZhACEAAQADAAAAAAACAAkABQAGAAEABwAAACEAAQAB
24135 AAAABQO4AAyxAAAAAQAIAAAACgACAAAACgAEAAsAAQAPABAAAQAHAAAAIQAB
24136 AAEAAAAFKrcAErEAAAABAAgAAAAKAAIAAAAEAAQABAABABMAAAACABQ=
24137 ====
24138 EOF
24139 if uudecode$EXEEXT Test.uue; then
24140         ac_cv_prog_uudecode_base64=yes
24141 else
24142         echo "configure: 24142: uudecode had trouble decoding base 64 file 'Test.uue'" >&5
24143         echo "configure: failed file was:" >&5
24144         cat Test.uue >&5
24145         ac_cv_prog_uudecode_base64=no
24146 fi
24147 rm -f Test.uue
24148 fi
24149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_uudecode_base64" >&5
24150 $as_echo "$ac_cv_prog_uudecode_base64" >&6; }
24151 fi
24152 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24153         rm -f Test.class
24154         { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: I have to compile Test.class from scratch" >&5
24155 $as_echo "$as_me: WARNING: I have to compile Test.class from scratch" >&2;}
24156         if test x$ac_cv_prog_javac_works = xno; then
24157                 as_fn_error "Cannot compile java source. $JAVAC does not work properly" "$LINENO" 5
24158         fi
24159 fi
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $JAVA works" >&5
24161 $as_echo_n "checking if $JAVA works... " >&6; }
24162 if test "${ac_cv_prog_java_works+set}" = set; then :
24163   $as_echo_n "(cached) " >&6
24164 else
24165
24166 JAVA_TEST=Test.java
24167 CLASS_TEST=Test.class
24168 TEST=Test
24169 cat << \EOF > $JAVA_TEST
24170 /* [#]line 24170 "configure" */
24171 public class Test {
24172 public static void main (String args[]) {
24173         System.exit (0);
24174 } }
24175 EOF
24176 if test x$ac_cv_prog_uudecode_base64 != xyes; then
24177
24178         if { ac_try='$JAVAC $JAVACFLAGS $JAVA_TEST'
24179   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24180   (eval $ac_try) 2>&5
24181   ac_status=$?
24182   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24183   test $ac_status = 0; }; } && test -s $CLASS_TEST; then
24184                 :
24185         else
24186           echo "configure: failed program was:" >&5
24187           cat $JAVA_TEST >&5
24188           as_fn_error "The Java compiler $JAVAC failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24189         fi
24190 fi
24191 if { ac_try='CLASSPATH=.:$CLASSPATH $JAVA $JAVAFLAGS $TEST'
24192   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
24193   (eval $ac_try) 2>&5
24194   ac_status=$?
24195   $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24196   test $ac_status = 0; }; } >/dev/null 2>&1; then
24197   ac_cv_prog_java_works=yes
24198 else
24199   echo "configure: failed program was:" >&5
24200   cat $JAVA_TEST >&5
24201   as_fn_error "The Java VM $JAVA failed (see config.log, check the CLASSPATH?)" "$LINENO" 5
24202 fi
24203 rm -fr $JAVA_TEST $CLASS_TEST Test.uue
24204
24205 fi
24206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_java_works" >&5
24207 $as_echo "$ac_cv_prog_java_works" >&6; }
24208
24209
24210   fi
24211     if test "x${COMPILE_GJDOC}" = xyes; then
24212
24213   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the ANTLR parser generator JAR file" >&5
24214 $as_echo_n "checking for the ANTLR parser generator JAR file... " >&6; }
24215   if test -z "$ANTLR_JAR"; then
24216     for antlr_lib_home in `ls -d /usr/local/share/antlr* 2> /dev/null` \
24217         /usr/share/antlr/lib /usr/share/java /usr/lib;
24218         do
24219             if test -f "$antlr_lib_home/antlr.jar"; then
24220               ANTLR_JAR="$antlr_lib_home/antlr.jar"
24221               break
24222             fi
24223      done
24224   fi
24225   test -f $ANTLR_JAR || as_fn_error "specified ANTLR jar file $ANTLR_JAR not found." "$LINENO" 5 \
24226         && { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR_JAR" >&5
24227 $as_echo "$ANTLR_JAR" >&6; }
24228
24229
24230         if test "x${REGENERATE_GJDOC_PARSER}" = xyes && test "x${enable_java_maintainer_mode}" = xyes; then
24231
24232     if test -n "$ac_tool_prefix"; then
24233   for ac_prog in cantlr runantlr antlr
24234   do
24235     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
24236 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
24237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24238 $as_echo_n "checking for $ac_word... " >&6; }
24239 if test "${ac_cv_prog_ANTLR+set}" = set; then :
24240   $as_echo_n "(cached) " >&6
24241 else
24242   if test -n "$ANTLR"; then
24243   ac_cv_prog_ANTLR="$ANTLR" # Let the user override the test.
24244 else
24245 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24246 for as_dir in $PATH
24247 do
24248   IFS=$as_save_IFS
24249   test -z "$as_dir" && as_dir=.
24250     for ac_exec_ext in '' $ac_executable_extensions; do
24251   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24252     ac_cv_prog_ANTLR="$ac_tool_prefix$ac_prog"
24253     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24254     break 2
24255   fi
24256 done
24257   done
24258 IFS=$as_save_IFS
24259
24260 fi
24261 fi
24262 ANTLR=$ac_cv_prog_ANTLR
24263 if test -n "$ANTLR"; then
24264   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ANTLR" >&5
24265 $as_echo "$ANTLR" >&6; }
24266 else
24267   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24268 $as_echo "no" >&6; }
24269 fi
24270
24271
24272     test -n "$ANTLR" && break
24273   done
24274 fi
24275 if test -z "$ANTLR"; then
24276   ac_ct_ANTLR=$ANTLR
24277   for ac_prog in cantlr runantlr antlr
24278 do
24279   # Extract the first word of "$ac_prog", so it can be a program name with args.
24280 set dummy $ac_prog; ac_word=$2
24281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
24282 $as_echo_n "checking for $ac_word... " >&6; }
24283 if test "${ac_cv_prog_ac_ct_ANTLR+set}" = set; then :
24284   $as_echo_n "(cached) " >&6
24285 else
24286   if test -n "$ac_ct_ANTLR"; then
24287   ac_cv_prog_ac_ct_ANTLR="$ac_ct_ANTLR" # Let the user override the test.
24288 else
24289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24290 for as_dir in $PATH
24291 do
24292   IFS=$as_save_IFS
24293   test -z "$as_dir" && as_dir=.
24294     for ac_exec_ext in '' $ac_executable_extensions; do
24295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
24296     ac_cv_prog_ac_ct_ANTLR="$ac_prog"
24297     $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
24298     break 2
24299   fi
24300 done
24301   done
24302 IFS=$as_save_IFS
24303
24304 fi
24305 fi
24306 ac_ct_ANTLR=$ac_cv_prog_ac_ct_ANTLR
24307 if test -n "$ac_ct_ANTLR"; then
24308   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_ANTLR" >&5
24309 $as_echo "$ac_ct_ANTLR" >&6; }
24310 else
24311   { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24312 $as_echo "no" >&6; }
24313 fi
24314
24315
24316   test -n "$ac_ct_ANTLR" && break
24317 done
24318
24319   if test "x$ac_ct_ANTLR" = x; then
24320     ANTLR=""
24321   else
24322     case $cross_compiling:$ac_tool_warned in
24323 yes:)
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
24325 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
24326 ac_tool_warned=yes ;;
24327 esac
24328     ANTLR=$ac_ct_ANTLR
24329   fi
24330 fi
24331
24332   if test "x$ANTLR" = x; then
24333       if test -z "$JAVA"; then
24334         as_fn_error "Failed to find either an antlr binary or a suitable Java runtime for ANTLR." "$LINENO" 5
24335       else
24336         if test -z "$ANTLR_JAR"; then
24337           as_fn_error "Failed to find either an antlr binary or a suitable antlr jar file." "$LINENO" 5
24338         else
24339           ANTLR="$JAVA -classpath $ANTLR_JAR antlr.Tool"
24340         fi
24341       fi
24342   fi
24343
24344   { $as_echo "$as_me:${as_lineno-$LINENO}: checking for antlr 2.7.1 or better" >&5
24345 $as_echo_n "checking for antlr 2.7.1 or better... " >&6; }
24346   antlr_version_str=`$ANTLR 2>&1 | head -n 1 | sed '/.*Version */!d; s///;q'`
24347   if test "$antlr_version_str"; then
24348     antlr_version_regex='s/\([[:digit:]]\+\)\.\([[:digit:]]\+\)\.\([[:digit:]]\+\).*$/'
24349     antlr_version_major=`echo $antlr_version_str | sed "$antlr_version_regex\\1/"`
24350     antlr_version_minor=`echo $antlr_version_str | sed "$antlr_version_regex\\2/"`
24351     antlr_version_micro=`echo $antlr_version_str | sed "$antlr_version_regex\\3/"`
24352     (test $antlr_version_major -gt 2 || \
24353     (test $antlr_version_major -eq 2 && \
24354      test $antlr_version_minor -gt 7) || \
24355     (test $antlr_version_major -eq 2 && \
24356      test $antlr_version_minor -eq 7 && \
24357      test $antlr_version_micro -ge 1))
24358   fi
24359   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&5
24360 $as_echo "$antlr_version_major.$antlr_version_minor.$antlr_version_micro" >&6; }
24361
24362     fi
24363   fi
24364 fi
24365
24366
24367 # Check for javac if we need to build either the class library,
24368 # the examples or the tools
24369 if test "x${use_glibj_zip}" = xfalse || \
24370    test "x${EXAMPLESDIR}" != x || \
24371    test "x${TOOLSDIR}" != x && \
24372    test "x${build_class_files}" != xno && \
24373    test "${enable_java_maintainer_mode}" = yes; then
24374
24375   JAVA_TEST=Test.java
24376   CLASS_TEST=Test.class
24377   cat << \EOF > $JAVA_TEST
24378   /* #line 24378 "configure" */
24379   public class Test
24380   {
24381     public static void main(String args)
24382     {
24383       System.out.println("Hello World");
24384     }
24385   }
24386 EOF
24387   if test x$JAVAC_IS_GCJ != xyes; then
24388     { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether javac supports -J" >&5
24389 $as_echo_n "checking whether javac supports -J... " >&6; }
24390     $JAVAC $JAVACFLAGS -J-Xmx768M -sourcepath '' $JAVA_TEST
24391     javac_result=$?
24392     if test "x$javac_result" = "x0"; then
24393       { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
24394 $as_echo "yes" >&6; }
24395       JAVAC_MEM_OPT="-J-Xmx768M"
24396     else
24397       { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
24398 $as_echo "no" >&6; }
24399     fi
24400   fi
24401   rm -f $JAVA_TEST $CLASS_TEST
24402
24403
24404 else
24405     if false; then
24406   GCJ_JAVAC_TRUE=
24407   GCJ_JAVAC_FALSE='#'
24408 else
24409   GCJ_JAVAC_TRUE='#'
24410   GCJ_JAVAC_FALSE=
24411 fi
24412
24413 fi
24414
24415
24416 # Check whether --with-escher was given.
24417 if test "${with_escher+set}" = set; then :
24418   withval=$with_escher;
24419 fi
24420
24421 case "$with_escher" in
24422 "")
24423         use_escher=false
24424         ;;
24425 "no")
24426         use_escher=false
24427         ;;
24428 "yes")
24429         as_fn_error "Please supply an absolute path to Escher library" "$LINENO" 5
24430         ;;
24431 *)
24432         use_escher=true
24433         PATH_TO_ESCHER=$with_escher
24434         ;;
24435 esac
24436
24437  if test x$use_escher = xtrue; then
24438   USE_ESCHER_TRUE=
24439   USE_ESCHER_FALSE='#'
24440 else
24441   USE_ESCHER_TRUE='#'
24442   USE_ESCHER_FALSE=
24443 fi
24444
24445
24446
24447 # Check whether --enable-local-sockets was given.
24448 if test "${enable_local_sockets+set}" = set; then :
24449   enableval=$enable_local_sockets; case "${enableval}" in
24450                 yes)
24451                   ENABLE_LOCAL_SOCKETS=yes
24452                   ;;
24453                 *)
24454                   ENABLE_LOCAL_SOCKETS=no
24455                   ;;
24456                esac
24457 fi
24458
24459 if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"
24460 then
24461   ac_fn_c_check_header_mongrel "$LINENO" "sys/un.h" "ac_cv_header_sys_un_h" "$ac_includes_default"
24462 if test "x$ac_cv_header_sys_un_h" = x""yes; then :
24463
24464 fi
24465
24466
24467   for ac_func in read write bind listen accept shutdown
24468 do :
24469   as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
24470 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
24471 eval as_val=\$$as_ac_var
24472    if test "x$as_val" = x""yes; then :
24473   cat >>confdefs.h <<_ACEOF
24474 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
24475 _ACEOF
24476
24477 else
24478   as_fn_error "networking support not available" "$LINENO" 5
24479 fi
24480 done
24481
24482
24483 $as_echo "#define ENABLE_LOCAL_SOCKETS 1" >>confdefs.h
24484
24485 fi
24486  if test "x$ENABLE_LOCAL_SOCKETS" = "xyes"; then
24487   ENABLE_LOCAL_SOCKETS_TRUE=
24488   ENABLE_LOCAL_SOCKETS_FALSE='#'
24489 else
24490   ENABLE_LOCAL_SOCKETS_TRUE='#'
24491   ENABLE_LOCAL_SOCKETS_FALSE=
24492 fi
24493
24494
24495
24496
24497 WANT_NATIVE_BIG_INTEGER=false
24498 if test "x${COMPILE_GMP}" = xyes; then
24499   if test "x${ac_cv_lib_gmp___gmpz_mul_si}" = xyes; then
24500     if test "x${ac_cv_header_gmp_h}" = xyes; then
24501       WANT_NATIVE_BIG_INTEGER=true
24502
24503 $as_echo "#define WITH_GNU_MP 1" >>confdefs.h
24504
24505     else
24506       COMPILE_GMP=no
24507     fi
24508   else
24509     COMPILE_GMP=no
24510   fi
24511 fi
24512
24513  if test "x${COMPILE_GMP}" = xyes; then
24514   CREATE_GMPBI_LIBRARY_TRUE=
24515   CREATE_GMPBI_LIBRARY_FALSE='#'
24516 else
24517   CREATE_GMPBI_LIBRARY_TRUE='#'
24518   CREATE_GMPBI_LIBRARY_FALSE=
24519 fi
24520
24521
24522 ac_config_files="$ac_config_files Makefile doc/Makefile doc/api/Makefile external/Makefile external/sax/Makefile external/w3c_dom/Makefile external/relaxngDatatype/Makefile external/jsr166/Makefile gnu/classpath/Configuration.java gnu/java/security/Configuration.java include/Makefile native/Makefile native/fdlibm/Makefile native/jawt/Makefile native/jni/Makefile native/jni/classpath/Makefile native/jni/java-io/Makefile native/jni/java-lang/Makefile native/jni/java-math/Makefile native/jni/java-net/Makefile native/jni/java-nio/Makefile native/jni/java-util/Makefile native/jni/gtk-peer/Makefile native/jni/gconf-peer/Makefile native/jni/gstreamer-peer/Makefile native/jni/qt-peer/Makefile native/jni/xmlj/Makefile native/jni/midi-alsa/Makefile native/jni/midi-dssi/Makefile native/jni/native-lib/Makefile native/plugin/Makefile resource/Makefile resource/META-INF/services/java.util.prefs.PreferencesFactory resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader resource/META-INF/services/javax.sound.sampled.spi.MixerProvider scripts/Makefile scripts/classpath.spec lib/Makefile lib/gen-classlist.sh lib/copy-vmresources.sh scripts/check_jni_methods.sh tools/Makefile examples/Makefile examples/Makefile.jawt examples/Makefile.java2d"
24523
24524
24525 if test "x${COMPILE_WRAPPERS}" = xyes; then
24526   :
24527 else
24528   ac_config_files="$ac_config_files tools/gappletviewer tools/gjarsigner tools/gkeytool tools/gjar tools/gnative2ascii tools/gserialver tools/grmiregistry tools/gtnameserv tools/gorbd tools/grmid tools/grmic tools/gjavah"
24529
24530
24531 ac_config_commands="$ac_config_commands gappletviewer"
24532
24533 ac_config_commands="$ac_config_commands gjarsigner"
24534
24535 ac_config_commands="$ac_config_commands gkeytool"
24536
24537 ac_config_commands="$ac_config_commands gjar"
24538
24539 ac_config_commands="$ac_config_commands gnative2ascii"
24540
24541 ac_config_commands="$ac_config_commands gserialver"
24542
24543 ac_config_commands="$ac_config_commands grmiregistry"
24544
24545 ac_config_commands="$ac_config_commands gtnameserv"
24546
24547 ac_config_commands="$ac_config_commands gorbd"
24548
24549 ac_config_commands="$ac_config_commands grmid"
24550
24551 ac_config_commands="$ac_config_commands grmic"
24552
24553 ac_config_commands="$ac_config_commands gjavah"
24554
24555
24556 fi
24557
24558 if test "x${COMPILE_GJDOC}" = xyes
24559 then
24560 ac_config_files="$ac_config_files tools/gjdoc"
24561
24562 ac_config_commands="$ac_config_commands gjdoc"
24563
24564 fi
24565
24566 ac_config_commands="$ac_config_commands gen-classlist"
24567
24568 ac_config_commands="$ac_config_commands copy-vmresources"
24569
24570 cat >confcache <<\_ACEOF
24571 # This file is a shell script that caches the results of configure
24572 # tests run on this system so they can be shared between configure
24573 # scripts and configure runs, see configure's option --config-cache.
24574 # It is not useful on other systems.  If it contains results you don't
24575 # want to keep, you may remove or edit it.
24576 #
24577 # config.status only pays attention to the cache file if you give it
24578 # the --recheck option to rerun configure.
24579 #
24580 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24581 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24582 # following values.
24583
24584 _ACEOF
24585
24586 # The following way of writing the cache mishandles newlines in values,
24587 # but we know of no workaround that is simple, portable, and efficient.
24588 # So, we kill variables containing newlines.
24589 # Ultrix sh set writes to stderr and can't be redirected directly,
24590 # and sets the high bit in the cache file unless we assign to the vars.
24591 (
24592   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24593     eval ac_val=\$$ac_var
24594     case $ac_val in #(
24595     *${as_nl}*)
24596       case $ac_var in #(
24597       *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
24598 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
24599       esac
24600       case $ac_var in #(
24601       _ | IFS | as_nl) ;; #(
24602       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
24603       *) { eval $ac_var=; unset $ac_var;} ;;
24604       esac ;;
24605     esac
24606   done
24607
24608   (set) 2>&1 |
24609     case $as_nl`(ac_space=' '; set) 2>&1` in #(
24610     *${as_nl}ac_space=\ *)
24611       # `set' does not quote correctly, so add quotes: double-quote
24612       # substitution turns \\\\ into \\, and sed turns \\ into \.
24613       sed -n \
24614         "s/'/'\\\\''/g;
24615           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24616       ;; #(
24617     *)
24618       # `set' quotes correctly as required by POSIX, so do not add quotes.
24619       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24620       ;;
24621     esac |
24622     sort
24623 ) |
24624   sed '
24625      /^ac_cv_env_/b end
24626      t clear
24627      :clear
24628      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24629      t end
24630      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24631      :end' >>confcache
24632 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24633   if test -w "$cache_file"; then
24634     test "x$cache_file" != "x/dev/null" &&
24635       { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
24636 $as_echo "$as_me: updating cache $cache_file" >&6;}
24637     cat confcache >$cache_file
24638   else
24639     { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
24640 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24641   fi
24642 fi
24643 rm -f confcache
24644
24645 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24646 # Let make expand exec_prefix.
24647 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24648
24649 DEFS=-DHAVE_CONFIG_H
24650
24651 ac_libobjs=
24652 ac_ltlibobjs=
24653 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24654   # 1. Remove the extension, and $U if already installed.
24655   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24656   ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
24657   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
24658   #    will be set to the directory where LIBOBJS objects are built.
24659   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24660   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
24661 done
24662 LIBOBJS=$ac_libobjs
24663
24664 LTLIBOBJS=$ac_ltlibobjs
24665
24666
24667 if test -z "${JAVA_MAINTAINER_MODE_TRUE}" && test -z "${JAVA_MAINTAINER_MODE_FALSE}"; then
24668   as_fn_error "conditional \"JAVA_MAINTAINER_MODE\" was never defined.
24669 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24670 fi
24671 if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then
24672   as_fn_error "conditional \"GENINSRC\" was never defined.
24673 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24674 fi
24675 if test -z "${INSTALL_BINARIES_TRUE}" && test -z "${INSTALL_BINARIES_FALSE}"; then
24676   as_fn_error "conditional \"INSTALL_BINARIES\" was never defined.
24677 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24678 fi
24679  if test -n "$EXEEXT"; then
24680   am__EXEEXT_TRUE=
24681   am__EXEEXT_FALSE='#'
24682 else
24683   am__EXEEXT_TRUE='#'
24684   am__EXEEXT_FALSE=
24685 fi
24686
24687 if test -z "${CREATE_COLLECTIONS_TRUE}" && test -z "${CREATE_COLLECTIONS_FALSE}"; then
24688   as_fn_error "conditional \"CREATE_COLLECTIONS\" was never defined.
24689 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24690 fi
24691 if test -z "${CREATE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_JNI_LIBRARIES_FALSE}"; then
24692   as_fn_error "conditional \"CREATE_JNI_LIBRARIES\" was never defined.
24693 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24694 fi
24695 if test -z "${CREATE_CORE_JNI_LIBRARIES_TRUE}" && test -z "${CREATE_CORE_JNI_LIBRARIES_FALSE}"; then
24696   as_fn_error "conditional \"CREATE_CORE_JNI_LIBRARIES\" was never defined.
24697 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24698 fi
24699 if test -z "${CREATE_GCONF_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GCONF_PEER_LIBRARIES_FALSE}"; then
24700   as_fn_error "conditional \"CREATE_GCONF_PEER_LIBRARIES\" was never defined.
24701 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24702 fi
24703 if test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GSTREAMER_PEER_LIBRARIES_FALSE}"; then
24704   as_fn_error "conditional \"CREATE_GSTREAMER_PEER_LIBRARIES\" was never defined.
24705 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24706 fi
24707 if test -z "${CREATE_XMLJ_LIBRARY_TRUE}" && test -z "${CREATE_XMLJ_LIBRARY_FALSE}"; then
24708   as_fn_error "conditional \"CREATE_XMLJ_LIBRARY\" was never defined.
24709 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24710 fi
24711 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
24712   as_fn_error "conditional \"AMDEP\" was never defined.
24713 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24714 fi
24715 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24716   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24717 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24718 fi
24719 if test -z "${CREATE_ALSA_LIBRARIES_TRUE}" && test -z "${CREATE_ALSA_LIBRARIES_FALSE}"; then
24720   as_fn_error "conditional \"CREATE_ALSA_LIBRARIES\" was never defined.
24721 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24722 fi
24723 if test -z "${CREATE_DSSI_LIBRARIES_TRUE}" && test -z "${CREATE_DSSI_LIBRARIES_FALSE}"; then
24724   as_fn_error "conditional \"CREATE_DSSI_LIBRARIES\" was never defined.
24725 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24726 fi
24727 if test -z "${CREATE_GTK_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_GTK_PEER_LIBRARIES_FALSE}"; then
24728   as_fn_error "conditional \"CREATE_GTK_PEER_LIBRARIES\" was never defined.
24729 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24730 fi
24731 if test -z "${CREATE_QT_PEER_LIBRARIES_TRUE}" && test -z "${CREATE_QT_PEER_LIBRARIES_FALSE}"; then
24732   as_fn_error "conditional \"CREATE_QT_PEER_LIBRARIES\" was never defined.
24733 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24734 fi
24735 if test -z "${CREATE_PLUGIN_TRUE}" && test -z "${CREATE_PLUGIN_FALSE}"; then
24736   as_fn_error "conditional \"CREATE_PLUGIN\" was never defined.
24737 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24738 fi
24739 if test -z "${CREATE_GJDOC_TRUE}" && test -z "${CREATE_GJDOC_FALSE}"; then
24740   as_fn_error "conditional \"CREATE_GJDOC\" was never defined.
24741 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24742 fi
24743 if test -z "${CREATE_JNI_HEADERS_TRUE}" && test -z "${CREATE_JNI_HEADERS_FALSE}"; then
24744   as_fn_error "conditional \"CREATE_JNI_HEADERS\" was never defined.
24745 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24746 fi
24747 if test -z "${CREATE_GJDOC_PARSER_TRUE}" && test -z "${CREATE_GJDOC_PARSER_FALSE}"; then
24748   as_fn_error "conditional \"CREATE_GJDOC_PARSER\" was never defined.
24749 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24750 fi
24751 if test -z "${CREATE_WRAPPERS_TRUE}" && test -z "${CREATE_WRAPPERS_FALSE}"; then
24752   as_fn_error "conditional \"CREATE_WRAPPERS\" was never defined.
24753 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24754 fi
24755 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
24756   as_fn_error "conditional \"am__fastdepCC\" was never defined.
24757 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24758 fi
24759 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
24760   as_fn_error "conditional \"am__fastdepCXX\" was never defined.
24761 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24762 fi
24763 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
24764   as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
24765 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24766 fi
24767 if test -z "${WITH_JAR_TRUE}" && test -z "${WITH_JAR_FALSE}"; then
24768   as_fn_error "conditional \"WITH_JAR\" was never defined.
24769 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24770 fi
24771 if test -z "${INSTALL_GLIBJ_ZIP_TRUE}" && test -z "${INSTALL_GLIBJ_ZIP_FALSE}"; then
24772   as_fn_error "conditional \"INSTALL_GLIBJ_ZIP\" was never defined.
24773 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24774 fi
24775 if test -z "${INSTALL_CLASS_FILES_TRUE}" && test -z "${INSTALL_CLASS_FILES_FALSE}"; then
24776   as_fn_error "conditional \"INSTALL_CLASS_FILES\" was never defined.
24777 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24778 fi
24779 if test -z "${BUILD_CLASS_FILES_TRUE}" && test -z "${BUILD_CLASS_FILES_FALSE}"; then
24780   as_fn_error "conditional \"BUILD_CLASS_FILES\" was never defined.
24781 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24782 fi
24783 if test -z "${CREATE_API_DOCS_TRUE}" && test -z "${CREATE_API_DOCS_FALSE}"; then
24784   as_fn_error "conditional \"CREATE_API_DOCS\" was never defined.
24785 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24786 fi
24787 if test -z "${REGEN_PARSERS_TRUE}" && test -z "${REGEN_PARSERS_FALSE}"; then
24788   as_fn_error "conditional \"REGEN_PARSERS\" was never defined.
24789 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24790 fi
24791 if test -z "${USE_PREBUILT_GLIBJ_ZIP_TRUE}" && test -z "${USE_PREBUILT_GLIBJ_ZIP_FALSE}"; then
24792   as_fn_error "conditional \"USE_PREBUILT_GLIBJ_ZIP\" was never defined.
24793 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24794 fi
24795 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24796   as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24797 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24798 fi
24799 if test -z "${GCJ_JAVAC_TRUE}" && test -z "${GCJ_JAVAC_FALSE}"; then
24800   as_fn_error "conditional \"GCJ_JAVAC\" was never defined.
24801 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24802 fi
24803 if test -z "${USE_ESCHER_TRUE}" && test -z "${USE_ESCHER_FALSE}"; then
24804   as_fn_error "conditional \"USE_ESCHER\" was never defined.
24805 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24806 fi
24807 if test -z "${ENABLE_LOCAL_SOCKETS_TRUE}" && test -z "${ENABLE_LOCAL_SOCKETS_FALSE}"; then
24808   as_fn_error "conditional \"ENABLE_LOCAL_SOCKETS\" was never defined.
24809 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24810 fi
24811 if test -z "${CREATE_GMPBI_LIBRARY_TRUE}" && test -z "${CREATE_GMPBI_LIBRARY_FALSE}"; then
24812   as_fn_error "conditional \"CREATE_GMPBI_LIBRARY\" was never defined.
24813 Usually this means the macro was only invoked conditionally." "$LINENO" 5
24814 fi
24815
24816 : ${CONFIG_STATUS=./config.status}
24817 ac_write_fail=0
24818 ac_clean_files_save=$ac_clean_files
24819 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24820 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
24821 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
24822 as_write_fail=0
24823 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
24824 #! $SHELL
24825 # Generated by $as_me.
24826 # Run this file to recreate the current configuration.
24827 # Compiler output produced by configure, useful for debugging
24828 # configure, is in config.log if it exists.
24829
24830 debug=false
24831 ac_cs_recheck=false
24832 ac_cs_silent=false
24833
24834 SHELL=\${CONFIG_SHELL-$SHELL}
24835 export SHELL
24836 _ASEOF
24837 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
24838 ## -------------------- ##
24839 ## M4sh Initialization. ##
24840 ## -------------------- ##
24841
24842 # Be more Bourne compatible
24843 DUALCASE=1; export DUALCASE # for MKS sh
24844 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
24845   emulate sh
24846   NULLCMD=:
24847   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24848   # is contrary to our usage.  Disable this feature.
24849   alias -g '${1+"$@"}'='"$@"'
24850   setopt NO_GLOB_SUBST
24851 else
24852   case `(set -o) 2>/dev/null` in #(
24853   *posix*) :
24854     set -o posix ;; #(
24855   *) :
24856      ;;
24857 esac
24858 fi
24859
24860
24861 as_nl='
24862 '
24863 export as_nl
24864 # Printing a long string crashes Solaris 7 /usr/bin/printf.
24865 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
24866 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
24867 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
24868 # Prefer a ksh shell builtin over an external printf program on Solaris,
24869 # but without wasting forks for bash or zsh.
24870 if test -z "$BASH_VERSION$ZSH_VERSION" \
24871     && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
24872   as_echo='print -r --'
24873   as_echo_n='print -rn --'
24874 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
24875   as_echo='printf %s\n'
24876   as_echo_n='printf %s'
24877 else
24878   if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
24879     as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
24880     as_echo_n='/usr/ucb/echo -n'
24881   else
24882     as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
24883     as_echo_n_body='eval
24884       arg=$1;
24885       case $arg in #(
24886       *"$as_nl"*)
24887         expr "X$arg" : "X\\(.*\\)$as_nl";
24888         arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
24889       esac;
24890       expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
24891     '
24892     export as_echo_n_body
24893     as_echo_n='sh -c $as_echo_n_body as_echo'
24894   fi
24895   export as_echo_body
24896   as_echo='sh -c $as_echo_body as_echo'
24897 fi
24898
24899 # The user is always right.
24900 if test "${PATH_SEPARATOR+set}" != set; then
24901   PATH_SEPARATOR=:
24902   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
24903     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
24904       PATH_SEPARATOR=';'
24905   }
24906 fi
24907
24908
24909 # IFS
24910 # We need space, tab and new line, in precisely that order.  Quoting is
24911 # there to prevent editors from complaining about space-tab.
24912 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24913 # splitting by setting IFS to empty value.)
24914 IFS=" ""        $as_nl"
24915
24916 # Find who we are.  Look in the path if we contain no directory separator.
24917 case $0 in #((
24918   *[\\/]* ) as_myself=$0 ;;
24919   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24920 for as_dir in $PATH
24921 do
24922   IFS=$as_save_IFS
24923   test -z "$as_dir" && as_dir=.
24924     test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24925   done
24926 IFS=$as_save_IFS
24927
24928      ;;
24929 esac
24930 # We did not find ourselves, most probably we were run as `sh COMMAND'
24931 # in which case we are not to be found in the path.
24932 if test "x$as_myself" = x; then
24933   as_myself=$0
24934 fi
24935 if test ! -f "$as_myself"; then
24936   $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24937   exit 1
24938 fi
24939
24940 # Unset variables that we do not need and which cause bugs (e.g. in
24941 # pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
24942 # suppresses any "Segmentation fault" message there.  '((' could
24943 # trigger a bug in pdksh 5.2.14.
24944 for as_var in BASH_ENV ENV MAIL MAILPATH
24945 do eval test x\${$as_var+set} = xset \
24946   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
24947 done
24948 PS1='$ '
24949 PS2='> '
24950 PS4='+ '
24951
24952 # NLS nuisances.
24953 LC_ALL=C
24954 export LC_ALL
24955 LANGUAGE=C
24956 export LANGUAGE
24957
24958 # CDPATH.
24959 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
24960
24961
24962 # as_fn_error ERROR [LINENO LOG_FD]
24963 # ---------------------------------
24964 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
24965 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
24966 # script with status $?, using 1 if that was 0.
24967 as_fn_error ()
24968 {
24969   as_status=$?; test $as_status -eq 0 && as_status=1
24970   if test "$3"; then
24971     as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
24972     $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
24973   fi
24974   $as_echo "$as_me: error: $1" >&2
24975   as_fn_exit $as_status
24976 } # as_fn_error
24977
24978
24979 # as_fn_set_status STATUS
24980 # -----------------------
24981 # Set $? to STATUS, without forking.
24982 as_fn_set_status ()
24983 {
24984   return $1
24985 } # as_fn_set_status
24986
24987 # as_fn_exit STATUS
24988 # -----------------
24989 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
24990 as_fn_exit ()
24991 {
24992   set +e
24993   as_fn_set_status $1
24994   exit $1
24995 } # as_fn_exit
24996
24997 # as_fn_unset VAR
24998 # ---------------
24999 # Portably unset VAR.
25000 as_fn_unset ()
25001 {
25002   { eval $1=; unset $1;}
25003 }
25004 as_unset=as_fn_unset
25005 # as_fn_append VAR VALUE
25006 # ----------------------
25007 # Append the text in VALUE to the end of the definition contained in VAR. Take
25008 # advantage of any shell optimizations that allow amortized linear growth over
25009 # repeated appends, instead of the typical quadratic growth present in naive
25010 # implementations.
25011 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
25012   eval 'as_fn_append ()
25013   {
25014     eval $1+=\$2
25015   }'
25016 else
25017   as_fn_append ()
25018   {
25019     eval $1=\$$1\$2
25020   }
25021 fi # as_fn_append
25022
25023 # as_fn_arith ARG...
25024 # ------------------
25025 # Perform arithmetic evaluation on the ARGs, and store the result in the
25026 # global $as_val. Take advantage of shells that can avoid forks. The arguments
25027 # must be portable across $(()) and expr.
25028 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
25029   eval 'as_fn_arith ()
25030   {
25031     as_val=$(( $* ))
25032   }'
25033 else
25034   as_fn_arith ()
25035   {
25036     as_val=`expr "$@" || test $? -eq 1`
25037   }
25038 fi # as_fn_arith
25039
25040
25041 if expr a : '\(a\)' >/dev/null 2>&1 &&
25042    test "X`expr 00001 : '.*\(...\)'`" = X001; then
25043   as_expr=expr
25044 else
25045   as_expr=false
25046 fi
25047
25048 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
25049   as_basename=basename
25050 else
25051   as_basename=false
25052 fi
25053
25054 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
25055   as_dirname=dirname
25056 else
25057   as_dirname=false
25058 fi
25059
25060 as_me=`$as_basename -- "$0" ||
25061 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
25062          X"$0" : 'X\(//\)$' \| \
25063          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
25064 $as_echo X/"$0" |
25065     sed '/^.*\/\([^/][^/]*\)\/*$/{
25066             s//\1/
25067             q
25068           }
25069           /^X\/\(\/\/\)$/{
25070             s//\1/
25071             q
25072           }
25073           /^X\/\(\/\).*/{
25074             s//\1/
25075             q
25076           }
25077           s/.*/./; q'`
25078
25079 # Avoid depending upon Character Ranges.
25080 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
25081 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
25082 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
25083 as_cr_digits='0123456789'
25084 as_cr_alnum=$as_cr_Letters$as_cr_digits
25085
25086 ECHO_C= ECHO_N= ECHO_T=
25087 case `echo -n x` in #(((((
25088 -n*)
25089   case `echo 'xy\c'` in
25090   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
25091   xy)  ECHO_C='\c';;
25092   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
25093        ECHO_T=' ';;
25094   esac;;
25095 *)
25096   ECHO_N='-n';;
25097 esac
25098
25099 rm -f conf$$ conf$$.exe conf$$.file
25100 if test -d conf$$.dir; then
25101   rm -f conf$$.dir/conf$$.file
25102 else
25103   rm -f conf$$.dir
25104   mkdir conf$$.dir 2>/dev/null
25105 fi
25106 if (echo >conf$$.file) 2>/dev/null; then
25107   if ln -s conf$$.file conf$$ 2>/dev/null; then
25108     as_ln_s='ln -s'
25109     # ... but there are two gotchas:
25110     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
25111     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
25112     # In both cases, we have to default to `cp -p'.
25113     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
25114       as_ln_s='cp -p'
25115   elif ln conf$$.file conf$$ 2>/dev/null; then
25116     as_ln_s=ln
25117   else
25118     as_ln_s='cp -p'
25119   fi
25120 else
25121   as_ln_s='cp -p'
25122 fi
25123 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
25124 rmdir conf$$.dir 2>/dev/null
25125
25126
25127 # as_fn_mkdir_p
25128 # -------------
25129 # Create "$as_dir" as a directory, including parents if necessary.
25130 as_fn_mkdir_p ()
25131 {
25132
25133   case $as_dir in #(
25134   -*) as_dir=./$as_dir;;
25135   esac
25136   test -d "$as_dir" || eval $as_mkdir_p || {
25137     as_dirs=
25138     while :; do
25139       case $as_dir in #(
25140       *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
25141       *) as_qdir=$as_dir;;
25142       esac
25143       as_dirs="'$as_qdir' $as_dirs"
25144       as_dir=`$as_dirname -- "$as_dir" ||
25145 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25146          X"$as_dir" : 'X\(//\)[^/]' \| \
25147          X"$as_dir" : 'X\(//\)$' \| \
25148          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25149 $as_echo X"$as_dir" |
25150     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25151             s//\1/
25152             q
25153           }
25154           /^X\(\/\/\)[^/].*/{
25155             s//\1/
25156             q
25157           }
25158           /^X\(\/\/\)$/{
25159             s//\1/
25160             q
25161           }
25162           /^X\(\/\).*/{
25163             s//\1/
25164             q
25165           }
25166           s/.*/./; q'`
25167       test -d "$as_dir" && break
25168     done
25169     test -z "$as_dirs" || eval "mkdir $as_dirs"
25170   } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
25171
25172
25173 } # as_fn_mkdir_p
25174 if mkdir -p . 2>/dev/null; then
25175   as_mkdir_p='mkdir -p "$as_dir"'
25176 else
25177   test -d ./-p && rmdir ./-p
25178   as_mkdir_p=false
25179 fi
25180
25181 if test -x / >/dev/null 2>&1; then
25182   as_test_x='test -x'
25183 else
25184   if ls -dL / >/dev/null 2>&1; then
25185     as_ls_L_option=L
25186   else
25187     as_ls_L_option=
25188   fi
25189   as_test_x='
25190     eval sh -c '\''
25191       if test -d "$1"; then
25192         test -d "$1/.";
25193       else
25194         case $1 in #(
25195         -*)set "./$1";;
25196         esac;
25197         case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
25198         ???[sx]*):;;*)false;;esac;fi
25199     '\'' sh
25200   '
25201 fi
25202 as_executable_p=$as_test_x
25203
25204 # Sed expression to map a string onto a valid CPP name.
25205 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
25206
25207 # Sed expression to map a string onto a valid variable name.
25208 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
25209
25210
25211 exec 6>&1
25212 ## ----------------------------------- ##
25213 ## Main body of $CONFIG_STATUS script. ##
25214 ## ----------------------------------- ##
25215 _ASEOF
25216 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
25217
25218 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25219 # Save the log message, to keep $0 and so on meaningful, and to
25220 # report actual input values of CONFIG_FILES etc. instead of their
25221 # values after options handling.
25222 ac_log="
25223 This file was extended by GNU Classpath $as_me 0.99.1-pre, which was
25224 generated by GNU Autoconf 2.64.  Invocation command line was
25225
25226   CONFIG_FILES    = $CONFIG_FILES
25227   CONFIG_HEADERS  = $CONFIG_HEADERS
25228   CONFIG_LINKS    = $CONFIG_LINKS
25229   CONFIG_COMMANDS = $CONFIG_COMMANDS
25230   $ $0 $@
25231
25232 on `(hostname || uname -n) 2>/dev/null | sed 1q`
25233 "
25234
25235 _ACEOF
25236
25237 case $ac_config_files in *"
25238 "*) set x $ac_config_files; shift; ac_config_files=$*;;
25239 esac
25240
25241 case $ac_config_headers in *"
25242 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
25243 esac
25244
25245
25246 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25247 # Files that config.status was made for.
25248 config_files="$ac_config_files"
25249 config_headers="$ac_config_headers"
25250 config_links="$ac_config_links"
25251 config_commands="$ac_config_commands"
25252
25253 _ACEOF
25254
25255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25256 ac_cs_usage="\
25257 \`$as_me' instantiates files and other configuration actions
25258 from templates according to the current configuration.  Unless the files
25259 and actions are specified as TAGs, all are instantiated by default.
25260
25261 Usage: $0 [OPTION]... [TAG]...
25262
25263   -h, --help       print this help, then exit
25264   -V, --version    print version number and configuration settings, then exit
25265   -q, --quiet, --silent
25266                    do not print progress messages
25267   -d, --debug      don't remove temporary files
25268       --recheck    update $as_me by reconfiguring in the same conditions
25269       --file=FILE[:TEMPLATE]
25270                    instantiate the configuration file FILE
25271       --header=FILE[:TEMPLATE]
25272                    instantiate the configuration header FILE
25273
25274 Configuration files:
25275 $config_files
25276
25277 Configuration headers:
25278 $config_headers
25279
25280 Configuration links:
25281 $config_links
25282
25283 Configuration commands:
25284 $config_commands
25285
25286 Report bugs to <classpath@gnu.org>.
25287 GNU Classpath home page: <http://www.gnu.org/software/classpath/>.
25288 General help using GNU software: <http://www.gnu.org/gethelp/>."
25289
25290 _ACEOF
25291 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25292 ac_cs_version="\\
25293 GNU Classpath config.status 0.99.1-pre
25294 configured by $0, generated by GNU Autoconf 2.64,
25295   with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
25296
25297 Copyright (C) 2009 Free Software Foundation, Inc.
25298 This config.status script is free software; the Free Software Foundation
25299 gives unlimited permission to copy, distribute and modify it."
25300
25301 ac_pwd='$ac_pwd'
25302 srcdir='$srcdir'
25303 INSTALL='$INSTALL'
25304 MKDIR_P='$MKDIR_P'
25305 AWK='$AWK'
25306 test -n "\$AWK" || AWK=awk
25307 _ACEOF
25308
25309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25310 # The default lists apply if the user does not specify any file.
25311 ac_need_defaults=:
25312 while test $# != 0
25313 do
25314   case $1 in
25315   --*=*)
25316     ac_option=`expr "X$1" : 'X\([^=]*\)='`
25317     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
25318     ac_shift=:
25319     ;;
25320   *)
25321     ac_option=$1
25322     ac_optarg=$2
25323     ac_shift=shift
25324     ;;
25325   esac
25326
25327   case $ac_option in
25328   # Handling of the options.
25329   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
25330     ac_cs_recheck=: ;;
25331   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
25332     $as_echo "$ac_cs_version"; exit ;;
25333   --debug | --debu | --deb | --de | --d | -d )
25334     debug=: ;;
25335   --file | --fil | --fi | --f )
25336     $ac_shift
25337     case $ac_optarg in
25338     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25339     esac
25340     as_fn_append CONFIG_FILES " '$ac_optarg'"
25341     ac_need_defaults=false;;
25342   --header | --heade | --head | --hea )
25343     $ac_shift
25344     case $ac_optarg in
25345     *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
25346     esac
25347     as_fn_append CONFIG_HEADERS " '$ac_optarg'"
25348     ac_need_defaults=false;;
25349   --he | --h)
25350     # Conflict between --help and --header
25351     as_fn_error "ambiguous option: \`$1'
25352 Try \`$0 --help' for more information.";;
25353   --help | --hel | -h )
25354     $as_echo "$ac_cs_usage"; exit ;;
25355   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
25356   | -silent | --silent | --silen | --sile | --sil | --si | --s)
25357     ac_cs_silent=: ;;
25358
25359   # This is an error.
25360   -*) as_fn_error "unrecognized option: \`$1'
25361 Try \`$0 --help' for more information." ;;
25362
25363   *) as_fn_append ac_config_targets " $1"
25364      ac_need_defaults=false ;;
25365
25366   esac
25367   shift
25368 done
25369
25370 ac_configure_extra_args=
25371
25372 if $ac_cs_silent; then
25373   exec 6>/dev/null
25374   ac_configure_extra_args="$ac_configure_extra_args --silent"
25375 fi
25376
25377 _ACEOF
25378 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25379 if \$ac_cs_recheck; then
25380   set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
25381   shift
25382   \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
25383   CONFIG_SHELL='$SHELL'
25384   export CONFIG_SHELL
25385   exec "\$@"
25386 fi
25387
25388 _ACEOF
25389 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25390 exec 5>>config.log
25391 {
25392   echo
25393   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
25394 ## Running $as_me. ##
25395 _ASBOX
25396   $as_echo "$ac_log"
25397 } >&5
25398
25399 _ACEOF
25400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25401 #
25402 # INIT-COMMANDS
25403 #
25404
25405 srcdir="$srcdir"
25406 host="$host"
25407 target="$target"
25408 with_multisubdir="$with_multisubdir"
25409 with_multisrctop="$with_multisrctop"
25410 with_target_subdir="$with_target_subdir"
25411 ac_configure_args="${multilib_arg} ${ac_configure_args}"
25412 multi_basedir="$multi_basedir"
25413 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
25414 CC="$CC"
25415 CXX="$CXX"
25416 GFORTRAN="$GFORTRAN"
25417 GCJ="$GCJ"
25418 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
25419
25420
25421 # The HP-UX ksh and POSIX shell print the target directory to stdout
25422 # if CDPATH is set.
25423 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
25424
25425 sed_quote_subst='$sed_quote_subst'
25426 double_quote_subst='$double_quote_subst'
25427 delay_variable_subst='$delay_variable_subst'
25428 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
25429 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
25430 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
25431 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
25432 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
25433 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
25434 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
25435 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
25436 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
25437 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
25438 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
25439 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
25440 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
25441 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
25442 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
25443 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
25444 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
25445 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
25446 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
25447 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
25448 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
25449 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
25450 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
25451 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
25452 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
25453 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
25454 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
25455 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
25456 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
25457 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
25458 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
25459 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
25460 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
25461 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
25462 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
25463 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
25464 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
25465 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25466 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25467 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
25468 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
25469 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
25470 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
25471 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
25472 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
25473 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
25474 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
25475 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
25476 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
25477 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
25478 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
25479 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
25480 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
25481 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
25482 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
25483 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
25484 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
25485 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
25486 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
25487 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
25488 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
25489 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
25490 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
25491 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
25492 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25493 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
25494 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
25495 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
25496 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
25497 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
25498 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
25499 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
25500 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
25501 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25502 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
25503 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
25504 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
25505 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
25506 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
25507 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
25508 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
25509 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
25510 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
25511 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
25512 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
25513 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
25514 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
25515 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
25516 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
25517 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
25518 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
25519 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
25520 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
25521 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
25522 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
25523 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
25524 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
25525 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
25526 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
25527 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
25528 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
25529 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
25530 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
25531 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
25532 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
25533 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
25534 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
25535 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
25536 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
25537 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
25538 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
25539 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
25540 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
25541 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
25542 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
25543 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
25544 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
25545 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
25546 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
25547 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
25548 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
25549 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
25550 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
25551 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
25552 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
25553 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
25554 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
25555 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
25556 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25557 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25558 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
25559 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
25560 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
25561 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
25562 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
25563 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
25564 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
25565 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
25566 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
25567 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25568 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25569 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
25570 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25571 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25572 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25573 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25574 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25575 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25576 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
25577 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25578 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
25579 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
25580 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
25581 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
25582 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
25583 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
25584 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
25585 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
25586 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
25587 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
25588 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
25589 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
25590 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
25591 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25592 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25593 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
25594 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
25595 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
25596 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
25597 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
25598 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25599 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
25600 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
25601 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
25602 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
25603
25604 LTCC='$LTCC'
25605 LTCFLAGS='$LTCFLAGS'
25606 compiler='$compiler_DEFAULT'
25607
25608 # A function that is used when there is no print builtin or printf.
25609 func_fallback_echo ()
25610 {
25611   eval 'cat <<_LTECHO_EOF
25612 \$1
25613 _LTECHO_EOF'
25614 }
25615
25616 # Quote evaled strings.
25617 for var in SHELL \
25618 ECHO \
25619 SED \
25620 GREP \
25621 EGREP \
25622 FGREP \
25623 LD \
25624 NM \
25625 LN_S \
25626 lt_SP2NL \
25627 lt_NL2SP \
25628 reload_flag \
25629 OBJDUMP \
25630 deplibs_check_method \
25631 file_magic_cmd \
25632 AR \
25633 AR_FLAGS \
25634 STRIP \
25635 RANLIB \
25636 CC \
25637 CFLAGS \
25638 compiler \
25639 lt_cv_sys_global_symbol_pipe \
25640 lt_cv_sys_global_symbol_to_cdecl \
25641 lt_cv_sys_global_symbol_to_c_name_address \
25642 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
25643 lt_prog_compiler_no_builtin_flag \
25644 lt_prog_compiler_wl \
25645 lt_prog_compiler_pic \
25646 lt_prog_compiler_static \
25647 lt_cv_prog_compiler_c_o \
25648 need_locks \
25649 DSYMUTIL \
25650 NMEDIT \
25651 LIPO \
25652 OTOOL \
25653 OTOOL64 \
25654 shrext_cmds \
25655 export_dynamic_flag_spec \
25656 whole_archive_flag_spec \
25657 compiler_needs_object \
25658 with_gnu_ld \
25659 allow_undefined_flag \
25660 no_undefined_flag \
25661 hardcode_libdir_flag_spec \
25662 hardcode_libdir_flag_spec_ld \
25663 hardcode_libdir_separator \
25664 fix_srcfile_path \
25665 exclude_expsyms \
25666 include_expsyms \
25667 file_list_spec \
25668 variables_saved_for_relink \
25669 libname_spec \
25670 library_names_spec \
25671 soname_spec \
25672 install_override_mode \
25673 finish_eval \
25674 old_striplib \
25675 striplib \
25676 compiler_lib_search_dirs \
25677 predep_objects \
25678 postdep_objects \
25679 predeps \
25680 postdeps \
25681 compiler_lib_search_path \
25682 LD_CXX \
25683 reload_flag_CXX \
25684 compiler_CXX \
25685 lt_prog_compiler_no_builtin_flag_CXX \
25686 lt_prog_compiler_wl_CXX \
25687 lt_prog_compiler_pic_CXX \
25688 lt_prog_compiler_static_CXX \
25689 lt_cv_prog_compiler_c_o_CXX \
25690 export_dynamic_flag_spec_CXX \
25691 whole_archive_flag_spec_CXX \
25692 compiler_needs_object_CXX \
25693 with_gnu_ld_CXX \
25694 allow_undefined_flag_CXX \
25695 no_undefined_flag_CXX \
25696 hardcode_libdir_flag_spec_CXX \
25697 hardcode_libdir_flag_spec_ld_CXX \
25698 hardcode_libdir_separator_CXX \
25699 fix_srcfile_path_CXX \
25700 exclude_expsyms_CXX \
25701 include_expsyms_CXX \
25702 file_list_spec_CXX \
25703 compiler_lib_search_dirs_CXX \
25704 predep_objects_CXX \
25705 postdep_objects_CXX \
25706 predeps_CXX \
25707 postdeps_CXX \
25708 compiler_lib_search_path_CXX; do
25709     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25710     *[\\\\\\\`\\"\\\$]*)
25711       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
25712       ;;
25713     *)
25714       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25715       ;;
25716     esac
25717 done
25718
25719 # Double-quote double-evaled strings.
25720 for var in reload_cmds \
25721 old_postinstall_cmds \
25722 old_postuninstall_cmds \
25723 old_archive_cmds \
25724 extract_expsyms_cmds \
25725 old_archive_from_new_cmds \
25726 old_archive_from_expsyms_cmds \
25727 archive_cmds \
25728 archive_expsym_cmds \
25729 module_cmds \
25730 module_expsym_cmds \
25731 export_symbols_cmds \
25732 prelink_cmds \
25733 postinstall_cmds \
25734 postuninstall_cmds \
25735 finish_cmds \
25736 sys_lib_search_path_spec \
25737 sys_lib_dlsearch_path_spec \
25738 reload_cmds_CXX \
25739 old_archive_cmds_CXX \
25740 old_archive_from_new_cmds_CXX \
25741 old_archive_from_expsyms_cmds_CXX \
25742 archive_cmds_CXX \
25743 archive_expsym_cmds_CXX \
25744 module_cmds_CXX \
25745 module_expsym_cmds_CXX \
25746 export_symbols_cmds_CXX \
25747 prelink_cmds_CXX; do
25748     case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
25749     *[\\\\\\\`\\"\\\$]*)
25750       eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
25751       ;;
25752     *)
25753       eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
25754       ;;
25755     esac
25756 done
25757
25758 ac_aux_dir='$ac_aux_dir'
25759 xsi_shell='$xsi_shell'
25760 lt_shell_append='$lt_shell_append'
25761
25762 # See if we are running on zsh, and set the options which allow our
25763 # commands through without removal of \ escapes INIT.
25764 if test -n "\${ZSH_VERSION+set}" ; then
25765    setopt NO_GLOB_SUBST
25766 fi
25767
25768
25769     PACKAGE='$PACKAGE'
25770     VERSION='$VERSION'
25771     TIMESTAMP='$TIMESTAMP'
25772     RM='$RM'
25773     ofile='$ofile'
25774
25775
25776
25777
25778
25779 # variables for create stdint.h replacement
25780 PACKAGE="$PACKAGE"
25781 VERSION="$VERSION"
25782 ac_stdint_h="$ac_stdint_h"
25783 _ac_stdint_h=`$as_echo "_$PACKAGE-$ac_stdint_h" | $as_tr_cpp`
25784 ac_cv_stdint_message="$ac_cv_stdint_message"
25785 ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
25786 ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
25787 ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
25788 ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
25789 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
25790 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
25791 ac_cv_char_data_model="$ac_cv_char_data_model"
25792 ac_cv_long_data_model="$ac_cv_long_data_model"
25793 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
25794 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
25795 ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
25796
25797
25798 _ACEOF
25799
25800 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
25801
25802 # Handling of arguments.
25803 for ac_config_target in $ac_config_targets
25804 do
25805   case $ac_config_target in
25806     "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
25807     "include/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/config.h" ;;
25808     "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
25809     "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
25810     "lib/mkcollections.pl") CONFIG_FILES="$CONFIG_FILES lib/mkcollections.pl" ;;
25811     "mkcollections.pl") CONFIG_COMMANDS="$CONFIG_COMMANDS mkcollections.pl" ;;
25812     "$ac_config_links_1") CONFIG_LINKS="$CONFIG_LINKS $ac_config_links_1" ;;
25813     "$ac_stdint_h") CONFIG_COMMANDS="$CONFIG_COMMANDS $ac_stdint_h" ;;
25814     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
25815     "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
25816     "doc/api/Makefile") CONFIG_FILES="$CONFIG_FILES doc/api/Makefile" ;;
25817     "external/Makefile") CONFIG_FILES="$CONFIG_FILES external/Makefile" ;;
25818     "external/sax/Makefile") CONFIG_FILES="$CONFIG_FILES external/sax/Makefile" ;;
25819     "external/w3c_dom/Makefile") CONFIG_FILES="$CONFIG_FILES external/w3c_dom/Makefile" ;;
25820     "external/relaxngDatatype/Makefile") CONFIG_FILES="$CONFIG_FILES external/relaxngDatatype/Makefile" ;;
25821     "external/jsr166/Makefile") CONFIG_FILES="$CONFIG_FILES external/jsr166/Makefile" ;;
25822     "gnu/classpath/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/classpath/Configuration.java" ;;
25823     "gnu/java/security/Configuration.java") CONFIG_FILES="$CONFIG_FILES gnu/java/security/Configuration.java" ;;
25824     "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
25825     "native/Makefile") CONFIG_FILES="$CONFIG_FILES native/Makefile" ;;
25826     "native/fdlibm/Makefile") CONFIG_FILES="$CONFIG_FILES native/fdlibm/Makefile" ;;
25827     "native/jawt/Makefile") CONFIG_FILES="$CONFIG_FILES native/jawt/Makefile" ;;
25828     "native/jni/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/Makefile" ;;
25829     "native/jni/classpath/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/classpath/Makefile" ;;
25830     "native/jni/java-io/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-io/Makefile" ;;
25831     "native/jni/java-lang/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-lang/Makefile" ;;
25832     "native/jni/java-math/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-math/Makefile" ;;
25833     "native/jni/java-net/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-net/Makefile" ;;
25834     "native/jni/java-nio/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-nio/Makefile" ;;
25835     "native/jni/java-util/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/java-util/Makefile" ;;
25836     "native/jni/gtk-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gtk-peer/Makefile" ;;
25837     "native/jni/gconf-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gconf-peer/Makefile" ;;
25838     "native/jni/gstreamer-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/gstreamer-peer/Makefile" ;;
25839     "native/jni/qt-peer/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/qt-peer/Makefile" ;;
25840     "native/jni/xmlj/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/xmlj/Makefile" ;;
25841     "native/jni/midi-alsa/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-alsa/Makefile" ;;
25842     "native/jni/midi-dssi/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/midi-dssi/Makefile" ;;
25843     "native/jni/native-lib/Makefile") CONFIG_FILES="$CONFIG_FILES native/jni/native-lib/Makefile" ;;
25844     "native/plugin/Makefile") CONFIG_FILES="$CONFIG_FILES native/plugin/Makefile" ;;
25845     "resource/Makefile") CONFIG_FILES="$CONFIG_FILES resource/Makefile" ;;
25846     "resource/META-INF/services/java.util.prefs.PreferencesFactory") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/java.util.prefs.PreferencesFactory" ;;
25847     "resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.AudioFileReader" ;;
25848     "resource/META-INF/services/javax.sound.sampled.spi.MixerProvider") CONFIG_FILES="$CONFIG_FILES resource/META-INF/services/javax.sound.sampled.spi.MixerProvider" ;;
25849     "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;;
25850     "scripts/classpath.spec") CONFIG_FILES="$CONFIG_FILES scripts/classpath.spec" ;;
25851     "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
25852     "lib/gen-classlist.sh") CONFIG_FILES="$CONFIG_FILES lib/gen-classlist.sh" ;;
25853     "lib/copy-vmresources.sh") CONFIG_FILES="$CONFIG_FILES lib/copy-vmresources.sh" ;;
25854     "scripts/check_jni_methods.sh") CONFIG_FILES="$CONFIG_FILES scripts/check_jni_methods.sh" ;;
25855     "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;;
25856     "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;;
25857     "examples/Makefile.jawt") CONFIG_FILES="$CONFIG_FILES examples/Makefile.jawt" ;;
25858     "examples/Makefile.java2d") CONFIG_FILES="$CONFIG_FILES examples/Makefile.java2d" ;;
25859     "tools/gappletviewer") CONFIG_FILES="$CONFIG_FILES tools/gappletviewer" ;;
25860     "tools/gjarsigner") CONFIG_FILES="$CONFIG_FILES tools/gjarsigner" ;;
25861     "tools/gkeytool") CONFIG_FILES="$CONFIG_FILES tools/gkeytool" ;;
25862     "tools/gjar") CONFIG_FILES="$CONFIG_FILES tools/gjar" ;;
25863     "tools/gnative2ascii") CONFIG_FILES="$CONFIG_FILES tools/gnative2ascii" ;;
25864     "tools/gserialver") CONFIG_FILES="$CONFIG_FILES tools/gserialver" ;;
25865     "tools/grmiregistry") CONFIG_FILES="$CONFIG_FILES tools/grmiregistry" ;;
25866     "tools/gtnameserv") CONFIG_FILES="$CONFIG_FILES tools/gtnameserv" ;;
25867     "tools/gorbd") CONFIG_FILES="$CONFIG_FILES tools/gorbd" ;;
25868     "tools/grmid") CONFIG_FILES="$CONFIG_FILES tools/grmid" ;;
25869     "tools/grmic") CONFIG_FILES="$CONFIG_FILES tools/grmic" ;;
25870     "tools/gjavah") CONFIG_FILES="$CONFIG_FILES tools/gjavah" ;;
25871     "gappletviewer") CONFIG_COMMANDS="$CONFIG_COMMANDS gappletviewer" ;;
25872     "gjarsigner") CONFIG_COMMANDS="$CONFIG_COMMANDS gjarsigner" ;;
25873     "gkeytool") CONFIG_COMMANDS="$CONFIG_COMMANDS gkeytool" ;;
25874     "gjar") CONFIG_COMMANDS="$CONFIG_COMMANDS gjar" ;;
25875     "gnative2ascii") CONFIG_COMMANDS="$CONFIG_COMMANDS gnative2ascii" ;;
25876     "gserialver") CONFIG_COMMANDS="$CONFIG_COMMANDS gserialver" ;;
25877     "grmiregistry") CONFIG_COMMANDS="$CONFIG_COMMANDS grmiregistry" ;;
25878     "gtnameserv") CONFIG_COMMANDS="$CONFIG_COMMANDS gtnameserv" ;;
25879     "gorbd") CONFIG_COMMANDS="$CONFIG_COMMANDS gorbd" ;;
25880     "grmid") CONFIG_COMMANDS="$CONFIG_COMMANDS grmid" ;;
25881     "grmic") CONFIG_COMMANDS="$CONFIG_COMMANDS grmic" ;;
25882     "gjavah") CONFIG_COMMANDS="$CONFIG_COMMANDS gjavah" ;;
25883     "tools/gjdoc") CONFIG_FILES="$CONFIG_FILES tools/gjdoc" ;;
25884     "gjdoc") CONFIG_COMMANDS="$CONFIG_COMMANDS gjdoc" ;;
25885     "gen-classlist") CONFIG_COMMANDS="$CONFIG_COMMANDS gen-classlist" ;;
25886     "copy-vmresources") CONFIG_COMMANDS="$CONFIG_COMMANDS copy-vmresources" ;;
25887
25888   *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
25889   esac
25890 done
25891
25892
25893 # If the user did not use the arguments to specify the items to instantiate,
25894 # then the envvar interface is used.  Set only those that are not.
25895 # We use the long form for the default assignment because of an extremely
25896 # bizarre bug on SunOS 4.1.3.
25897 if $ac_need_defaults; then
25898   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
25899   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
25900   test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
25901   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
25902 fi
25903
25904 # Have a temporary directory for convenience.  Make it in the build tree
25905 # simply because there is no reason against having it here, and in addition,
25906 # creating and moving files from /tmp can sometimes cause problems.
25907 # Hook for its removal unless debugging.
25908 # Note that there is a small window in which the directory will not be cleaned:
25909 # after its creation but before its name has been assigned to `$tmp'.
25910 $debug ||
25911 {
25912   tmp=
25913   trap 'exit_status=$?
25914   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
25915 ' 0
25916   trap 'as_fn_exit 1' 1 2 13 15
25917 }
25918 # Create a (secure) tmp directory for tmp files.
25919
25920 {
25921   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
25922   test -n "$tmp" && test -d "$tmp"
25923 }  ||
25924 {
25925   tmp=./conf$$-$RANDOM
25926   (umask 077 && mkdir "$tmp")
25927 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
25928
25929 # Set up the scripts for CONFIG_FILES section.
25930 # No need to generate them if there are no CONFIG_FILES.
25931 # This happens for instance with `./config.status config.h'.
25932 if test -n "$CONFIG_FILES"; then
25933
25934
25935 ac_cr=`echo X | tr X '\015'`
25936 # On cygwin, bash can eat \r inside `` if the user requested igncr.
25937 # But we know of no other shell where ac_cr would be empty at this
25938 # point, so we can use a bashism as a fallback.
25939 if test "x$ac_cr" = x; then
25940   eval ac_cr=\$\'\\r\'
25941 fi
25942 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
25943 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
25944   ac_cs_awk_cr='\r'
25945 else
25946   ac_cs_awk_cr=$ac_cr
25947 fi
25948
25949 echo 'BEGIN {' >"$tmp/subs1.awk" &&
25950 _ACEOF
25951
25952
25953 {
25954   echo "cat >conf$$subs.awk <<_ACEOF" &&
25955   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
25956   echo "_ACEOF"
25957 } >conf$$subs.sh ||
25958   as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25959 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
25960 ac_delim='%!_!# '
25961 for ac_last_try in false false false false false :; do
25962   . ./conf$$subs.sh ||
25963     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25964
25965   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
25966   if test $ac_delim_n = $ac_delim_num; then
25967     break
25968   elif $ac_last_try; then
25969     as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
25970   else
25971     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25972   fi
25973 done
25974 rm -f conf$$subs.sh
25975
25976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
25977 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
25978 _ACEOF
25979 sed -n '
25980 h
25981 s/^/S["/; s/!.*/"]=/
25982 p
25983 g
25984 s/^[^!]*!//
25985 :repl
25986 t repl
25987 s/'"$ac_delim"'$//
25988 t delim
25989 :nl
25990 h
25991 s/\(.\{148\}\).*/\1/
25992 t more1
25993 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
25994 p
25995 n
25996 b repl
25997 :more1
25998 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
25999 p
26000 g
26001 s/.\{148\}//
26002 t nl
26003 :delim
26004 h
26005 s/\(.\{148\}\).*/\1/
26006 t more2
26007 s/["\\]/\\&/g; s/^/"/; s/$/"/
26008 p
26009 b
26010 :more2
26011 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
26012 p
26013 g
26014 s/.\{148\}//
26015 t delim
26016 ' <conf$$subs.awk | sed '
26017 /^[^""]/{
26018   N
26019   s/\n//
26020 }
26021 ' >>$CONFIG_STATUS || ac_write_fail=1
26022 rm -f conf$$subs.awk
26023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26024 _ACAWK
26025 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
26026   for (key in S) S_is_set[key] = 1
26027   FS = "\a"
26028
26029 }
26030 {
26031   line = $ 0
26032   nfields = split(line, field, "@")
26033   substed = 0
26034   len = length(field[1])
26035   for (i = 2; i < nfields; i++) {
26036     key = field[i]
26037     keylen = length(key)
26038     if (S_is_set[key]) {
26039       value = S[key]
26040       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
26041       len += length(value) + length(field[++i])
26042       substed = 1
26043     } else
26044       len += 1 + keylen
26045   }
26046
26047   print line
26048 }
26049
26050 _ACAWK
26051 _ACEOF
26052 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26053 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
26054   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
26055 else
26056   cat
26057 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
26058   || as_fn_error "could not setup config files machinery" "$LINENO" 5
26059 _ACEOF
26060
26061 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26062 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26063 # trailing colons and then remove the whole line if VPATH becomes empty
26064 # (actually we leave an empty line to preserve line numbers).
26065 if test "x$srcdir" = x.; then
26066   ac_vpsub='/^[  ]*VPATH[        ]*=/{
26067 s/:*\$(srcdir):*/:/
26068 s/:*\${srcdir}:*/:/
26069 s/:*@srcdir@:*/:/
26070 s/^\([^=]*=[     ]*\):*/\1/
26071 s/:*$//
26072 s/^[^=]*=[       ]*$//
26073 }'
26074 fi
26075
26076 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26077 fi # test -n "$CONFIG_FILES"
26078
26079 # Set up the scripts for CONFIG_HEADERS section.
26080 # No need to generate them if there are no CONFIG_HEADERS.
26081 # This happens for instance with `./config.status Makefile'.
26082 if test -n "$CONFIG_HEADERS"; then
26083 cat >"$tmp/defines.awk" <<\_ACAWK ||
26084 BEGIN {
26085 _ACEOF
26086
26087 # Transform confdefs.h into an awk script `defines.awk', embedded as
26088 # here-document in config.status, that substitutes the proper values into
26089 # config.h.in to produce config.h.
26090
26091 # Create a delimiter string that does not exist in confdefs.h, to ease
26092 # handling of long lines.
26093 ac_delim='%!_!# '
26094 for ac_last_try in false false :; do
26095   ac_t=`sed -n "/$ac_delim/p" confdefs.h`
26096   if test -z "$ac_t"; then
26097     break
26098   elif $ac_last_try; then
26099     as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
26100   else
26101     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26102   fi
26103 done
26104
26105 # For the awk script, D is an array of macro values keyed by name,
26106 # likewise P contains macro parameters if any.  Preserve backslash
26107 # newline sequences.
26108
26109 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
26110 sed -n '
26111 s/.\{148\}/&'"$ac_delim"'/g
26112 t rset
26113 :rset
26114 s/^[     ]*#[    ]*define[       ][      ]*/ /
26115 t def
26116 d
26117 :def
26118 s/\\$//
26119 t bsnl
26120 s/["\\]/\\&/g
26121 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26122 D["\1"]=" \3"/p
26123 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2"/p
26124 d
26125 :bsnl
26126 s/["\\]/\\&/g
26127 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[     ]*\(.*\)/P["\1"]="\2"\
26128 D["\1"]=" \3\\\\\\n"\\/p
26129 t cont
26130 s/^ \('"$ac_word_re"'\)[         ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
26131 t cont
26132 d
26133 :cont
26134 n
26135 s/.\{148\}/&'"$ac_delim"'/g
26136 t clear
26137 :clear
26138 s/\\$//
26139 t bsnlc
26140 s/["\\]/\\&/g; s/^/"/; s/$/"/p
26141 d
26142 :bsnlc
26143 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
26144 b cont
26145 ' <confdefs.h | sed '
26146 s/'"$ac_delim"'/"\\\
26147 "/g' >>$CONFIG_STATUS || ac_write_fail=1
26148
26149 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26150   for (key in D) D_is_set[key] = 1
26151   FS = "\a"
26152 }
26153 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
26154   line = \$ 0
26155   split(line, arg, " ")
26156   if (arg[1] == "#") {
26157     defundef = arg[2]
26158     mac1 = arg[3]
26159   } else {
26160     defundef = substr(arg[1], 2)
26161     mac1 = arg[2]
26162   }
26163   split(mac1, mac2, "(") #)
26164   macro = mac2[1]
26165   prefix = substr(line, 1, index(line, defundef) - 1)
26166   if (D_is_set[macro]) {
26167     # Preserve the white space surrounding the "#".
26168     print prefix "define", macro P[macro] D[macro]
26169     next
26170   } else {
26171     # Replace #undef with comments.  This is necessary, for example,
26172     # in the case of _POSIX_SOURCE, which is predefined and required
26173     # on some systems where configure will not decide to define it.
26174     if (defundef == "undef") {
26175       print "/*", prefix defundef, macro, "*/"
26176       next
26177     }
26178   }
26179 }
26180 { print }
26181 _ACAWK
26182 _ACEOF
26183 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26184   as_fn_error "could not setup config headers machinery" "$LINENO" 5
26185 fi # test -n "$CONFIG_HEADERS"
26186
26187
26188 eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS  :L $CONFIG_LINKS  :C $CONFIG_COMMANDS"
26189 shift
26190 for ac_tag
26191 do
26192   case $ac_tag in
26193   :[FHLC]) ac_mode=$ac_tag; continue;;
26194   esac
26195   case $ac_mode$ac_tag in
26196   :[FHL]*:*);;
26197   :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
26198   :[FH]-) ac_tag=-:-;;
26199   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26200   esac
26201   ac_save_IFS=$IFS
26202   IFS=:
26203   set x $ac_tag
26204   IFS=$ac_save_IFS
26205   shift
26206   ac_file=$1
26207   shift
26208
26209   case $ac_mode in
26210   :L) ac_source=$1;;
26211   :[FH])
26212     ac_file_inputs=
26213     for ac_f
26214     do
26215       case $ac_f in
26216       -) ac_f="$tmp/stdin";;
26217       *) # Look for the file first in the build tree, then in the source tree
26218          # (if the path is not absolute).  The absolute path cannot be DOS-style,
26219          # because $ac_f cannot contain `:'.
26220          test -f "$ac_f" ||
26221            case $ac_f in
26222            [\\/$]*) false;;
26223            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26224            esac ||
26225            as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
26226       esac
26227       case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
26228       as_fn_append ac_file_inputs " '$ac_f'"
26229     done
26230
26231     # Let's still pretend it is `configure' which instantiates (i.e., don't
26232     # use $as_me), people would be surprised to read:
26233     #    /* config.h.  Generated by config.status.  */
26234     configure_input='Generated from '`
26235           $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
26236         `' by configure.'
26237     if test x"$ac_file" != x-; then
26238       configure_input="$ac_file.  $configure_input"
26239       { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
26240 $as_echo "$as_me: creating $ac_file" >&6;}
26241     fi
26242     # Neutralize special characters interpreted by sed in replacement strings.
26243     case $configure_input in #(
26244     *\&* | *\|* | *\\* )
26245        ac_sed_conf_input=`$as_echo "$configure_input" |
26246        sed 's/[\\\\&|]/\\\\&/g'`;; #(
26247     *) ac_sed_conf_input=$configure_input;;
26248     esac
26249
26250     case $ac_tag in
26251     *:-:* | *:-) cat >"$tmp/stdin" \
26252       || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
26253     esac
26254     ;;
26255   esac
26256
26257   ac_dir=`$as_dirname -- "$ac_file" ||
26258 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26259          X"$ac_file" : 'X\(//\)[^/]' \| \
26260          X"$ac_file" : 'X\(//\)$' \| \
26261          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26262 $as_echo X"$ac_file" |
26263     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26264             s//\1/
26265             q
26266           }
26267           /^X\(\/\/\)[^/].*/{
26268             s//\1/
26269             q
26270           }
26271           /^X\(\/\/\)$/{
26272             s//\1/
26273             q
26274           }
26275           /^X\(\/\).*/{
26276             s//\1/
26277             q
26278           }
26279           s/.*/./; q'`
26280   as_dir="$ac_dir"; as_fn_mkdir_p
26281   ac_builddir=.
26282
26283 case "$ac_dir" in
26284 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26285 *)
26286   ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
26287   # A ".." for each directory in $ac_dir_suffix.
26288   ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
26289   case $ac_top_builddir_sub in
26290   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26291   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26292   esac ;;
26293 esac
26294 ac_abs_top_builddir=$ac_pwd
26295 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26296 # for backward compatibility:
26297 ac_top_builddir=$ac_top_build_prefix
26298
26299 case $srcdir in
26300   .)  # We are building in place.
26301     ac_srcdir=.
26302     ac_top_srcdir=$ac_top_builddir_sub
26303     ac_abs_top_srcdir=$ac_pwd ;;
26304   [\\/]* | ?:[\\/]* )  # Absolute name.
26305     ac_srcdir=$srcdir$ac_dir_suffix;
26306     ac_top_srcdir=$srcdir
26307     ac_abs_top_srcdir=$srcdir ;;
26308   *) # Relative name.
26309     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26310     ac_top_srcdir=$ac_top_build_prefix$srcdir
26311     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26312 esac
26313 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26314
26315
26316   case $ac_mode in
26317   :F)
26318   #
26319   # CONFIG_FILE
26320   #
26321
26322   case $INSTALL in
26323   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26324   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26325   esac
26326   ac_MKDIR_P=$MKDIR_P
26327   case $MKDIR_P in
26328   [\\/$]* | ?:[\\/]* ) ;;
26329   */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
26330   esac
26331 _ACEOF
26332
26333 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26334 # If the template does not know about datarootdir, expand it.
26335 # FIXME: This hack should be removed a few years after 2.60.
26336 ac_datarootdir_hack=; ac_datarootdir_seen=
26337 ac_sed_dataroot='
26338 /datarootdir/ {
26339   p
26340   q
26341 }
26342 /@datadir@/p
26343 /@docdir@/p
26344 /@infodir@/p
26345 /@localedir@/p
26346 /@mandir@/p'
26347 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
26348 *datarootdir*) ac_datarootdir_seen=yes;;
26349 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26350   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26351 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26352 _ACEOF
26353 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26354   ac_datarootdir_hack='
26355   s&@datadir@&$datadir&g
26356   s&@docdir@&$docdir&g
26357   s&@infodir@&$infodir&g
26358   s&@localedir@&$localedir&g
26359   s&@mandir@&$mandir&g
26360   s&\\\${datarootdir}&$datarootdir&g' ;;
26361 esac
26362 _ACEOF
26363
26364 # Neutralize VPATH when `$srcdir' = `.'.
26365 # Shell code in configure.ac might set extrasub.
26366 # FIXME: do we really want to maintain this feature?
26367 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26368 ac_sed_extra="$ac_vpsub
26369 $extrasub
26370 _ACEOF
26371 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26372 :t
26373 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26374 s|@configure_input@|$ac_sed_conf_input|;t t
26375 s&@top_builddir@&$ac_top_builddir_sub&;t t
26376 s&@top_build_prefix@&$ac_top_build_prefix&;t t
26377 s&@srcdir@&$ac_srcdir&;t t
26378 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26379 s&@top_srcdir@&$ac_top_srcdir&;t t
26380 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26381 s&@builddir@&$ac_builddir&;t t
26382 s&@abs_builddir@&$ac_abs_builddir&;t t
26383 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26384 s&@INSTALL@&$ac_INSTALL&;t t
26385 s&@MKDIR_P@&$ac_MKDIR_P&;t t
26386 $ac_datarootdir_hack
26387 "
26388 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
26389   || as_fn_error "could not create $ac_file" "$LINENO" 5
26390
26391 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26392   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
26393   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
26394   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26395 which seems to be undefined.  Please make sure it is defined." >&5
26396 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
26397 which seems to be undefined.  Please make sure it is defined." >&2;}
26398
26399   rm -f "$tmp/stdin"
26400   case $ac_file in
26401   -) cat "$tmp/out" && rm -f "$tmp/out";;
26402   *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
26403   esac \
26404   || as_fn_error "could not create $ac_file" "$LINENO" 5
26405  ;;
26406   :H)
26407   #
26408   # CONFIG_HEADER
26409   #
26410   if test x"$ac_file" != x-; then
26411     {
26412       $as_echo "/* $configure_input  */" \
26413       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
26414     } >"$tmp/config.h" \
26415       || as_fn_error "could not create $ac_file" "$LINENO" 5
26416     if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
26417       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
26418 $as_echo "$as_me: $ac_file is unchanged" >&6;}
26419     else
26420       rm -f "$ac_file"
26421       mv "$tmp/config.h" "$ac_file" \
26422         || as_fn_error "could not create $ac_file" "$LINENO" 5
26423     fi
26424   else
26425     $as_echo "/* $configure_input  */" \
26426       && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
26427       || as_fn_error "could not create -" "$LINENO" 5
26428   fi
26429 # Compute "$ac_file"'s index in $config_headers.
26430 _am_arg="$ac_file"
26431 _am_stamp_count=1
26432 for _am_header in $config_headers :; do
26433   case $_am_header in
26434     $_am_arg | $_am_arg:* )
26435       break ;;
26436     * )
26437       _am_stamp_count=`expr $_am_stamp_count + 1` ;;
26438   esac
26439 done
26440 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
26441 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26442          X"$_am_arg" : 'X\(//\)[^/]' \| \
26443          X"$_am_arg" : 'X\(//\)$' \| \
26444          X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
26445 $as_echo X"$_am_arg" |
26446     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26447             s//\1/
26448             q
26449           }
26450           /^X\(\/\/\)[^/].*/{
26451             s//\1/
26452             q
26453           }
26454           /^X\(\/\/\)$/{
26455             s//\1/
26456             q
26457           }
26458           /^X\(\/\).*/{
26459             s//\1/
26460             q
26461           }
26462           s/.*/./; q'`/stamp-h$_am_stamp_count
26463  ;;
26464   :L)
26465   #
26466   # CONFIG_LINK
26467   #
26468
26469   if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
26470     :
26471   else
26472     # Prefer the file from the source tree if names are identical.
26473     if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
26474       ac_source=$srcdir/$ac_source
26475     fi
26476
26477     { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
26478 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
26479
26480     if test ! -r "$ac_source"; then
26481       as_fn_error "$ac_source: file not found" "$LINENO" 5
26482     fi
26483     rm -f "$ac_file"
26484
26485     # Try a relative symlink, then a hard link, then a copy.
26486     case $srcdir in
26487     [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
26488         *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
26489     esac
26490     ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
26491       ln "$ac_source" "$ac_file" 2>/dev/null ||
26492       cp -p "$ac_source" "$ac_file" ||
26493       as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
26494   fi
26495  ;;
26496   :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
26497 $as_echo "$as_me: executing $ac_file commands" >&6;}
26498  ;;
26499   esac
26500
26501
26502   case $ac_file$ac_mode in
26503     "default-1":C)
26504 # Only add multilib support code if we just rebuilt the top-level
26505 # Makefile.
26506 case " $CONFIG_FILES " in
26507  *" Makefile "*)
26508    ac_file=Makefile . ${multi_basedir}/config-ml.in
26509    ;;
26510 esac ;;
26511     "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
26512   # Autoconf 2.62 quotes --file arguments for eval, but not when files
26513   # are listed without --file.  Let's play safe and only enable the eval
26514   # if we detect the quoting.
26515   case $CONFIG_FILES in
26516   *\'*) eval set x "$CONFIG_FILES" ;;
26517   *)   set x $CONFIG_FILES ;;
26518   esac
26519   shift
26520   for mf
26521   do
26522     # Strip MF so we end up with the name of the file.
26523     mf=`echo "$mf" | sed -e 's/:.*$//'`
26524     # Check whether this is an Automake generated Makefile or not.
26525     # We used to match only the files named `Makefile.in', but
26526     # some people rename them; so instead we look at the file content.
26527     # Grep'ing the first line is not enough: some people post-process
26528     # each Makefile.in and add a new line on top of each file to say so.
26529     # Grep'ing the whole file is not good either: AIX grep has a line
26530     # limit of 2048, but all sed's we know have understand at least 4000.
26531     if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
26532       dirpart=`$as_dirname -- "$mf" ||
26533 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26534          X"$mf" : 'X\(//\)[^/]' \| \
26535          X"$mf" : 'X\(//\)$' \| \
26536          X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
26537 $as_echo X"$mf" |
26538     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26539             s//\1/
26540             q
26541           }
26542           /^X\(\/\/\)[^/].*/{
26543             s//\1/
26544             q
26545           }
26546           /^X\(\/\/\)$/{
26547             s//\1/
26548             q
26549           }
26550           /^X\(\/\).*/{
26551             s//\1/
26552             q
26553           }
26554           s/.*/./; q'`
26555     else
26556       continue
26557     fi
26558     # Extract the definition of DEPDIR, am__include, and am__quote
26559     # from the Makefile without running `make'.
26560     DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
26561     test -z "$DEPDIR" && continue
26562     am__include=`sed -n 's/^am__include = //p' < "$mf"`
26563     test -z "am__include" && continue
26564     am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
26565     # When using ansi2knr, U may be empty or an underscore; expand it
26566     U=`sed -n 's/^U = //p' < "$mf"`
26567     # Find all dependency output files, they are included files with
26568     # $(DEPDIR) in their names.  We invoke sed twice because it is the
26569     # simplest approach to changing $(DEPDIR) to its actual value in the
26570     # expansion.
26571     for file in `sed -n "
26572       s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
26573          sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
26574       # Make sure the directory exists.
26575       test -f "$dirpart/$file" && continue
26576       fdir=`$as_dirname -- "$file" ||
26577 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26578          X"$file" : 'X\(//\)[^/]' \| \
26579          X"$file" : 'X\(//\)$' \| \
26580          X"$file" : 'X\(/\)' \| . 2>/dev/null ||
26581 $as_echo X"$file" |
26582     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26583             s//\1/
26584             q
26585           }
26586           /^X\(\/\/\)[^/].*/{
26587             s//\1/
26588             q
26589           }
26590           /^X\(\/\/\)$/{
26591             s//\1/
26592             q
26593           }
26594           /^X\(\/\).*/{
26595             s//\1/
26596             q
26597           }
26598           s/.*/./; q'`
26599       as_dir=$dirpart/$fdir; as_fn_mkdir_p
26600       # echo "creating $dirpart/$file"
26601       echo '# dummy' > "$dirpart/$file"
26602     done
26603   done
26604 }
26605  ;;
26606     "libtool":C)
26607
26608     # See if we are running on zsh, and set the options which allow our
26609     # commands through without removal of \ escapes.
26610     if test -n "${ZSH_VERSION+set}" ; then
26611       setopt NO_GLOB_SUBST
26612     fi
26613
26614     cfgfile="${ofile}T"
26615     trap "$RM \"$cfgfile\"; exit 1" 1 2 15
26616     $RM "$cfgfile"
26617
26618     cat <<_LT_EOF >> "$cfgfile"
26619 #! $SHELL
26620
26621 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
26622 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
26623 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
26624 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
26625 #
26626 #   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
26627 #                 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
26628 #   Written by Gordon Matzigkeit, 1996
26629 #
26630 #   This file is part of GNU Libtool.
26631 #
26632 # GNU Libtool is free software; you can redistribute it and/or
26633 # modify it under the terms of the GNU General Public License as
26634 # published by the Free Software Foundation; either version 2 of
26635 # the License, or (at your option) any later version.
26636 #
26637 # As a special exception to the GNU General Public License,
26638 # if you distribute this file as part of a program or library that
26639 # is built using GNU Libtool, you may include this file under the
26640 # same distribution terms that you use for the rest of that program.
26641 #
26642 # GNU Libtool is distributed in the hope that it will be useful,
26643 # but WITHOUT ANY WARRANTY; without even the implied warranty of
26644 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
26645 # GNU General Public License for more details.
26646 #
26647 # You should have received a copy of the GNU General Public License
26648 # along with GNU Libtool; see the file COPYING.  If not, a copy
26649 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
26650 # obtained by writing to the Free Software Foundation, Inc.,
26651 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
26652
26653
26654 # The names of the tagged configurations supported by this script.
26655 available_tags="CXX "
26656
26657 # ### BEGIN LIBTOOL CONFIG
26658
26659 # Whether or not to build static libraries.
26660 build_old_libs=$enable_static
26661
26662 # Which release of libtool.m4 was used?
26663 macro_version=$macro_version
26664 macro_revision=$macro_revision
26665
26666 # Whether or not to build shared libraries.
26667 build_libtool_libs=$enable_shared
26668
26669 # What type of objects to build.
26670 pic_mode=$pic_mode
26671
26672 # Whether or not to optimize for fast installation.
26673 fast_install=$enable_fast_install
26674
26675 # Shell to use when invoking shell scripts.
26676 SHELL=$lt_SHELL
26677
26678 # An echo program that protects backslashes.
26679 ECHO=$lt_ECHO
26680
26681 # The host system.
26682 host_alias=$host_alias
26683 host=$host
26684 host_os=$host_os
26685
26686 # The build system.
26687 build_alias=$build_alias
26688 build=$build
26689 build_os=$build_os
26690
26691 # A sed program that does not truncate output.
26692 SED=$lt_SED
26693
26694 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
26695 Xsed="\$SED -e 1s/^X//"
26696
26697 # A grep program that handles long lines.
26698 GREP=$lt_GREP
26699
26700 # An ERE matcher.
26701 EGREP=$lt_EGREP
26702
26703 # A literal string matcher.
26704 FGREP=$lt_FGREP
26705
26706 # A BSD- or MS-compatible name lister.
26707 NM=$lt_NM
26708
26709 # Whether we need soft or hard links.
26710 LN_S=$lt_LN_S
26711
26712 # What is the maximum length of a command?
26713 max_cmd_len=$max_cmd_len
26714
26715 # Object file suffix (normally "o").
26716 objext=$ac_objext
26717
26718 # Executable file suffix (normally "").
26719 exeext=$exeext
26720
26721 # whether the shell understands "unset".
26722 lt_unset=$lt_unset
26723
26724 # turn spaces into newlines.
26725 SP2NL=$lt_lt_SP2NL
26726
26727 # turn newlines into spaces.
26728 NL2SP=$lt_lt_NL2SP
26729
26730 # An object symbol dumper.
26731 OBJDUMP=$lt_OBJDUMP
26732
26733 # Method to check whether dependent libraries are shared objects.
26734 deplibs_check_method=$lt_deplibs_check_method
26735
26736 # Command to use when deplibs_check_method == "file_magic".
26737 file_magic_cmd=$lt_file_magic_cmd
26738
26739 # The archiver.
26740 AR=$lt_AR
26741 AR_FLAGS=$lt_AR_FLAGS
26742
26743 # A symbol stripping program.
26744 STRIP=$lt_STRIP
26745
26746 # Commands used to install an old-style archive.
26747 RANLIB=$lt_RANLIB
26748 old_postinstall_cmds=$lt_old_postinstall_cmds
26749 old_postuninstall_cmds=$lt_old_postuninstall_cmds
26750
26751 # Whether to use a lock for old archive extraction.
26752 lock_old_archive_extraction=$lock_old_archive_extraction
26753
26754 # A C compiler.
26755 LTCC=$lt_CC
26756
26757 # LTCC compiler flags.
26758 LTCFLAGS=$lt_CFLAGS
26759
26760 # Take the output of nm and produce a listing of raw symbols and C names.
26761 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
26762
26763 # Transform the output of nm in a proper C declaration.
26764 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
26765
26766 # Transform the output of nm in a C name address pair.
26767 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
26768
26769 # Transform the output of nm in a C name address pair when lib prefix is needed.
26770 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
26771
26772 # The name of the directory that contains temporary libtool files.
26773 objdir=$objdir
26774
26775 # Used to examine libraries when file_magic_cmd begins with "file".
26776 MAGIC_CMD=$MAGIC_CMD
26777
26778 # Must we lock files when doing compilation?
26779 need_locks=$lt_need_locks
26780
26781 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
26782 DSYMUTIL=$lt_DSYMUTIL
26783
26784 # Tool to change global to local symbols on Mac OS X.
26785 NMEDIT=$lt_NMEDIT
26786
26787 # Tool to manipulate fat objects and archives on Mac OS X.
26788 LIPO=$lt_LIPO
26789
26790 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
26791 OTOOL=$lt_OTOOL
26792
26793 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
26794 OTOOL64=$lt_OTOOL64
26795
26796 # Old archive suffix (normally "a").
26797 libext=$libext
26798
26799 # Shared library suffix (normally ".so").
26800 shrext_cmds=$lt_shrext_cmds
26801
26802 # The commands to extract the exported symbol list from a shared archive.
26803 extract_expsyms_cmds=$lt_extract_expsyms_cmds
26804
26805 # Variables whose values should be saved in libtool wrapper scripts and
26806 # restored at link time.
26807 variables_saved_for_relink=$lt_variables_saved_for_relink
26808
26809 # Do we need the "lib" prefix for modules?
26810 need_lib_prefix=$need_lib_prefix
26811
26812 # Do we need a version for libraries?
26813 need_version=$need_version
26814
26815 # Library versioning type.
26816 version_type=$version_type
26817
26818 # Shared library runtime path variable.
26819 runpath_var=$runpath_var
26820
26821 # Shared library path variable.
26822 shlibpath_var=$shlibpath_var
26823
26824 # Is shlibpath searched before the hard-coded library search path?
26825 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
26826
26827 # Format of library name prefix.
26828 libname_spec=$lt_libname_spec
26829
26830 # List of archive names.  First name is the real one, the rest are links.
26831 # The last name is the one that the linker finds with -lNAME
26832 library_names_spec=$lt_library_names_spec
26833
26834 # The coded name of the library, if different from the real name.
26835 soname_spec=$lt_soname_spec
26836
26837 # Permission mode override for installation of shared libraries.
26838 install_override_mode=$lt_install_override_mode
26839
26840 # Command to use after installation of a shared archive.
26841 postinstall_cmds=$lt_postinstall_cmds
26842
26843 # Command to use after uninstallation of a shared archive.
26844 postuninstall_cmds=$lt_postuninstall_cmds
26845
26846 # Commands used to finish a libtool library installation in a directory.
26847 finish_cmds=$lt_finish_cmds
26848
26849 # As "finish_cmds", except a single script fragment to be evaled but
26850 # not shown.
26851 finish_eval=$lt_finish_eval
26852
26853 # Whether we should hardcode library paths into libraries.
26854 hardcode_into_libs=$hardcode_into_libs
26855
26856 # Compile-time system search path for libraries.
26857 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
26858
26859 # Run-time system search path for libraries.
26860 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
26861
26862 # Whether dlopen is supported.
26863 dlopen_support=$enable_dlopen
26864
26865 # Whether dlopen of programs is supported.
26866 dlopen_self=$enable_dlopen_self
26867
26868 # Whether dlopen of statically linked programs is supported.
26869 dlopen_self_static=$enable_dlopen_self_static
26870
26871 # Commands to strip libraries.
26872 old_striplib=$lt_old_striplib
26873 striplib=$lt_striplib
26874
26875
26876 # The linker used to build libraries.
26877 LD=$lt_LD
26878
26879 # How to create reloadable object files.
26880 reload_flag=$lt_reload_flag
26881 reload_cmds=$lt_reload_cmds
26882
26883 # Commands used to build an old-style archive.
26884 old_archive_cmds=$lt_old_archive_cmds
26885
26886 # A language specific compiler.
26887 CC=$lt_compiler
26888
26889 # Is the compiler the GNU compiler?
26890 with_gcc=$GCC
26891
26892 # Compiler flag to turn off builtin functions.
26893 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
26894
26895 # How to pass a linker flag through the compiler.
26896 wl=$lt_lt_prog_compiler_wl
26897
26898 # Additional compiler flags for building library objects.
26899 pic_flag=$lt_lt_prog_compiler_pic
26900
26901 # Compiler flag to prevent dynamic linking.
26902 link_static_flag=$lt_lt_prog_compiler_static
26903
26904 # Does compiler simultaneously support -c and -o options?
26905 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
26906
26907 # Whether or not to add -lc for building shared libraries.
26908 build_libtool_need_lc=$archive_cmds_need_lc
26909
26910 # Whether or not to disallow shared libs when runtime libs are static.
26911 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
26912
26913 # Compiler flag to allow reflexive dlopens.
26914 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
26915
26916 # Compiler flag to generate shared objects directly from archives.
26917 whole_archive_flag_spec=$lt_whole_archive_flag_spec
26918
26919 # Whether the compiler copes with passing no objects directly.
26920 compiler_needs_object=$lt_compiler_needs_object
26921
26922 # Create an old-style archive from a shared archive.
26923 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
26924
26925 # Create a temporary old-style archive to link instead of a shared archive.
26926 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
26927
26928 # Commands used to build a shared archive.
26929 archive_cmds=$lt_archive_cmds
26930 archive_expsym_cmds=$lt_archive_expsym_cmds
26931
26932 # Commands used to build a loadable module if different from building
26933 # a shared archive.
26934 module_cmds=$lt_module_cmds
26935 module_expsym_cmds=$lt_module_expsym_cmds
26936
26937 # Whether we are building with GNU ld or not.
26938 with_gnu_ld=$lt_with_gnu_ld
26939
26940 # Flag that allows shared libraries with undefined symbols to be built.
26941 allow_undefined_flag=$lt_allow_undefined_flag
26942
26943 # Flag that enforces no undefined symbols.
26944 no_undefined_flag=$lt_no_undefined_flag
26945
26946 # Flag to hardcode \$libdir into a binary during linking.
26947 # This must work even if \$libdir does not exist
26948 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
26949
26950 # If ld is used when linking, flag to hardcode \$libdir into a binary
26951 # during linking.  This must work even if \$libdir does not exist.
26952 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
26953
26954 # Whether we need a single "-rpath" flag with a separated argument.
26955 hardcode_libdir_separator=$lt_hardcode_libdir_separator
26956
26957 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26958 # DIR into the resulting binary.
26959 hardcode_direct=$hardcode_direct
26960
26961 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
26962 # DIR into the resulting binary and the resulting library dependency is
26963 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
26964 # library is relocated.
26965 hardcode_direct_absolute=$hardcode_direct_absolute
26966
26967 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
26968 # into the resulting binary.
26969 hardcode_minus_L=$hardcode_minus_L
26970
26971 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
26972 # into the resulting binary.
26973 hardcode_shlibpath_var=$hardcode_shlibpath_var
26974
26975 # Set to "yes" if building a shared library automatically hardcodes DIR
26976 # into the library and all subsequent libraries and executables linked
26977 # against it.
26978 hardcode_automatic=$hardcode_automatic
26979
26980 # Set to yes if linker adds runtime paths of dependent libraries
26981 # to runtime path list.
26982 inherit_rpath=$inherit_rpath
26983
26984 # Whether libtool must link a program against all its dependency libraries.
26985 link_all_deplibs=$link_all_deplibs
26986
26987 # Fix the shell variable \$srcfile for the compiler.
26988 fix_srcfile_path=$lt_fix_srcfile_path
26989
26990 # Set to "yes" if exported symbols are required.
26991 always_export_symbols=$always_export_symbols
26992
26993 # The commands to list exported symbols.
26994 export_symbols_cmds=$lt_export_symbols_cmds
26995
26996 # Symbols that should not be listed in the preloaded symbols.
26997 exclude_expsyms=$lt_exclude_expsyms
26998
26999 # Symbols that must always be exported.
27000 include_expsyms=$lt_include_expsyms
27001
27002 # Commands necessary for linking programs (against libraries) with templates.
27003 prelink_cmds=$lt_prelink_cmds
27004
27005 # Specify filename containing input files.
27006 file_list_spec=$lt_file_list_spec
27007
27008 # How to hardcode a shared library path into an executable.
27009 hardcode_action=$hardcode_action
27010
27011 # The directories searched by this compiler when creating a shared library.
27012 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
27013
27014 # Dependencies to place before and after the objects being linked to
27015 # create a shared library.
27016 predep_objects=$lt_predep_objects
27017 postdep_objects=$lt_postdep_objects
27018 predeps=$lt_predeps
27019 postdeps=$lt_postdeps
27020
27021 # The library search path used internally by the compiler when linking
27022 # a shared library.
27023 compiler_lib_search_path=$lt_compiler_lib_search_path
27024
27025 # ### END LIBTOOL CONFIG
27026
27027 _LT_EOF
27028
27029   case $host_os in
27030   aix3*)
27031     cat <<\_LT_EOF >> "$cfgfile"
27032 # AIX sometimes has problems with the GCC collect2 program.  For some
27033 # reason, if we set the COLLECT_NAMES environment variable, the problems
27034 # vanish in a puff of smoke.
27035 if test "X${COLLECT_NAMES+set}" != Xset; then
27036   COLLECT_NAMES=
27037   export COLLECT_NAMES
27038 fi
27039 _LT_EOF
27040     ;;
27041   esac
27042
27043
27044 ltmain="$ac_aux_dir/ltmain.sh"
27045
27046
27047   # We use sed instead of cat because bash on DJGPP gets confused if
27048   # if finds mixed CR/LF and LF-only lines.  Since sed operates in
27049   # text mode, it properly converts lines to CR/LF.  This bash problem
27050   # is reportedly fixed, but why not run on old versions too?
27051   sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
27052     || (rm -f "$cfgfile"; exit 1)
27053
27054   case $xsi_shell in
27055   yes)
27056     cat << \_LT_EOF >> "$cfgfile"
27057
27058 # func_dirname file append nondir_replacement
27059 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27060 # otherwise set result to NONDIR_REPLACEMENT.
27061 func_dirname ()
27062 {
27063   case ${1} in
27064     */*) func_dirname_result="${1%/*}${2}" ;;
27065     *  ) func_dirname_result="${3}" ;;
27066   esac
27067 }
27068
27069 # func_basename file
27070 func_basename ()
27071 {
27072   func_basename_result="${1##*/}"
27073 }
27074
27075 # func_dirname_and_basename file append nondir_replacement
27076 # perform func_basename and func_dirname in a single function
27077 # call:
27078 #   dirname:  Compute the dirname of FILE.  If nonempty,
27079 #             add APPEND to the result, otherwise set result
27080 #             to NONDIR_REPLACEMENT.
27081 #             value returned in "$func_dirname_result"
27082 #   basename: Compute filename of FILE.
27083 #             value retuned in "$func_basename_result"
27084 # Implementation must be kept synchronized with func_dirname
27085 # and func_basename. For efficiency, we do not delegate to
27086 # those functions but instead duplicate the functionality here.
27087 func_dirname_and_basename ()
27088 {
27089   case ${1} in
27090     */*) func_dirname_result="${1%/*}${2}" ;;
27091     *  ) func_dirname_result="${3}" ;;
27092   esac
27093   func_basename_result="${1##*/}"
27094 }
27095
27096 # func_stripname prefix suffix name
27097 # strip PREFIX and SUFFIX off of NAME.
27098 # PREFIX and SUFFIX must not contain globbing or regex special
27099 # characters, hashes, percent signs, but SUFFIX may contain a leading
27100 # dot (in which case that matches only a dot).
27101 func_stripname ()
27102 {
27103   # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
27104   # positional parameters, so assign one to ordinary parameter first.
27105   func_stripname_result=${3}
27106   func_stripname_result=${func_stripname_result#"${1}"}
27107   func_stripname_result=${func_stripname_result%"${2}"}
27108 }
27109
27110 # func_opt_split
27111 func_opt_split ()
27112 {
27113   func_opt_split_opt=${1%%=*}
27114   func_opt_split_arg=${1#*=}
27115 }
27116
27117 # func_lo2o object
27118 func_lo2o ()
27119 {
27120   case ${1} in
27121     *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
27122     *)    func_lo2o_result=${1} ;;
27123   esac
27124 }
27125
27126 # func_xform libobj-or-source
27127 func_xform ()
27128 {
27129   func_xform_result=${1%.*}.lo
27130 }
27131
27132 # func_arith arithmetic-term...
27133 func_arith ()
27134 {
27135   func_arith_result=$(( $* ))
27136 }
27137
27138 # func_len string
27139 # STRING may not start with a hyphen.
27140 func_len ()
27141 {
27142   func_len_result=${#1}
27143 }
27144
27145 _LT_EOF
27146     ;;
27147   *) # Bourne compatible functions.
27148     cat << \_LT_EOF >> "$cfgfile"
27149
27150 # func_dirname file append nondir_replacement
27151 # Compute the dirname of FILE.  If nonempty, add APPEND to the result,
27152 # otherwise set result to NONDIR_REPLACEMENT.
27153 func_dirname ()
27154 {
27155   # Extract subdirectory from the argument.
27156   func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
27157   if test "X$func_dirname_result" = "X${1}"; then
27158     func_dirname_result="${3}"
27159   else
27160     func_dirname_result="$func_dirname_result${2}"
27161   fi
27162 }
27163
27164 # func_basename file
27165 func_basename ()
27166 {
27167   func_basename_result=`$ECHO "${1}" | $SED "$basename"`
27168 }
27169
27170
27171 # func_stripname prefix suffix name
27172 # strip PREFIX and SUFFIX off of NAME.
27173 # PREFIX and SUFFIX must not contain globbing or regex special
27174 # characters, hashes, percent signs, but SUFFIX may contain a leading
27175 # dot (in which case that matches only a dot).
27176 # func_strip_suffix prefix name
27177 func_stripname ()
27178 {
27179   case ${2} in
27180     .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
27181     *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
27182   esac
27183 }
27184
27185 # sed scripts:
27186 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
27187 my_sed_long_arg='1s/^-[^=]*=//'
27188
27189 # func_opt_split
27190 func_opt_split ()
27191 {
27192   func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
27193   func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
27194 }
27195
27196 # func_lo2o object
27197 func_lo2o ()
27198 {
27199   func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
27200 }
27201
27202 # func_xform libobj-or-source
27203 func_xform ()
27204 {
27205   func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
27206 }
27207
27208 # func_arith arithmetic-term...
27209 func_arith ()
27210 {
27211   func_arith_result=`expr "$@"`
27212 }
27213
27214 # func_len string
27215 # STRING may not start with a hyphen.
27216 func_len ()
27217 {
27218   func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
27219 }
27220
27221 _LT_EOF
27222 esac
27223
27224 case $lt_shell_append in
27225   yes)
27226     cat << \_LT_EOF >> "$cfgfile"
27227
27228 # func_append var value
27229 # Append VALUE to the end of shell variable VAR.
27230 func_append ()
27231 {
27232   eval "$1+=\$2"
27233 }
27234 _LT_EOF
27235     ;;
27236   *)
27237     cat << \_LT_EOF >> "$cfgfile"
27238
27239 # func_append var value
27240 # Append VALUE to the end of shell variable VAR.
27241 func_append ()
27242 {
27243   eval "$1=\$$1\$2"
27244 }
27245
27246 _LT_EOF
27247     ;;
27248   esac
27249
27250
27251   sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
27252     || (rm -f "$cfgfile"; exit 1)
27253
27254   mv -f "$cfgfile" "$ofile" ||
27255     (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
27256   chmod +x "$ofile"
27257
27258
27259     cat <<_LT_EOF >> "$ofile"
27260
27261 # ### BEGIN LIBTOOL TAG CONFIG: CXX
27262
27263 # The linker used to build libraries.
27264 LD=$lt_LD_CXX
27265
27266 # How to create reloadable object files.
27267 reload_flag=$lt_reload_flag_CXX
27268 reload_cmds=$lt_reload_cmds_CXX
27269
27270 # Commands used to build an old-style archive.
27271 old_archive_cmds=$lt_old_archive_cmds_CXX
27272
27273 # A language specific compiler.
27274 CC=$lt_compiler_CXX
27275
27276 # Is the compiler the GNU compiler?
27277 with_gcc=$GCC_CXX
27278
27279 # Compiler flag to turn off builtin functions.
27280 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
27281
27282 # How to pass a linker flag through the compiler.
27283 wl=$lt_lt_prog_compiler_wl_CXX
27284
27285 # Additional compiler flags for building library objects.
27286 pic_flag=$lt_lt_prog_compiler_pic_CXX
27287
27288 # Compiler flag to prevent dynamic linking.
27289 link_static_flag=$lt_lt_prog_compiler_static_CXX
27290
27291 # Does compiler simultaneously support -c and -o options?
27292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
27293
27294 # Whether or not to add -lc for building shared libraries.
27295 build_libtool_need_lc=$archive_cmds_need_lc_CXX
27296
27297 # Whether or not to disallow shared libs when runtime libs are static.
27298 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
27299
27300 # Compiler flag to allow reflexive dlopens.
27301 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
27302
27303 # Compiler flag to generate shared objects directly from archives.
27304 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
27305
27306 # Whether the compiler copes with passing no objects directly.
27307 compiler_needs_object=$lt_compiler_needs_object_CXX
27308
27309 # Create an old-style archive from a shared archive.
27310 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
27311
27312 # Create a temporary old-style archive to link instead of a shared archive.
27313 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
27314
27315 # Commands used to build a shared archive.
27316 archive_cmds=$lt_archive_cmds_CXX
27317 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
27318
27319 # Commands used to build a loadable module if different from building
27320 # a shared archive.
27321 module_cmds=$lt_module_cmds_CXX
27322 module_expsym_cmds=$lt_module_expsym_cmds_CXX
27323
27324 # Whether we are building with GNU ld or not.
27325 with_gnu_ld=$lt_with_gnu_ld_CXX
27326
27327 # Flag that allows shared libraries with undefined symbols to be built.
27328 allow_undefined_flag=$lt_allow_undefined_flag_CXX
27329
27330 # Flag that enforces no undefined symbols.
27331 no_undefined_flag=$lt_no_undefined_flag_CXX
27332
27333 # Flag to hardcode \$libdir into a binary during linking.
27334 # This must work even if \$libdir does not exist
27335 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
27336
27337 # If ld is used when linking, flag to hardcode \$libdir into a binary
27338 # during linking.  This must work even if \$libdir does not exist.
27339 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
27340
27341 # Whether we need a single "-rpath" flag with a separated argument.
27342 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
27343
27344 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27345 # DIR into the resulting binary.
27346 hardcode_direct=$hardcode_direct_CXX
27347
27348 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
27349 # DIR into the resulting binary and the resulting library dependency is
27350 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
27351 # library is relocated.
27352 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
27353
27354 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
27355 # into the resulting binary.
27356 hardcode_minus_L=$hardcode_minus_L_CXX
27357
27358 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
27359 # into the resulting binary.
27360 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
27361
27362 # Set to "yes" if building a shared library automatically hardcodes DIR
27363 # into the library and all subsequent libraries and executables linked
27364 # against it.
27365 hardcode_automatic=$hardcode_automatic_CXX
27366
27367 # Set to yes if linker adds runtime paths of dependent libraries
27368 # to runtime path list.
27369 inherit_rpath=$inherit_rpath_CXX
27370
27371 # Whether libtool must link a program against all its dependency libraries.
27372 link_all_deplibs=$link_all_deplibs_CXX
27373
27374 # Fix the shell variable \$srcfile for the compiler.
27375 fix_srcfile_path=$lt_fix_srcfile_path_CXX
27376
27377 # Set to "yes" if exported symbols are required.
27378 always_export_symbols=$always_export_symbols_CXX
27379
27380 # The commands to list exported symbols.
27381 export_symbols_cmds=$lt_export_symbols_cmds_CXX
27382
27383 # Symbols that should not be listed in the preloaded symbols.
27384 exclude_expsyms=$lt_exclude_expsyms_CXX
27385
27386 # Symbols that must always be exported.
27387 include_expsyms=$lt_include_expsyms_CXX
27388
27389 # Commands necessary for linking programs (against libraries) with templates.
27390 prelink_cmds=$lt_prelink_cmds_CXX
27391
27392 # Specify filename containing input files.
27393 file_list_spec=$lt_file_list_spec_CXX
27394
27395 # How to hardcode a shared library path into an executable.
27396 hardcode_action=$hardcode_action_CXX
27397
27398 # The directories searched by this compiler when creating a shared library.
27399 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
27400
27401 # Dependencies to place before and after the objects being linked to
27402 # create a shared library.
27403 predep_objects=$lt_predep_objects_CXX
27404 postdep_objects=$lt_postdep_objects_CXX
27405 predeps=$lt_predeps_CXX
27406 postdeps=$lt_postdeps_CXX
27407
27408 # The library search path used internally by the compiler when linking
27409 # a shared library.
27410 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
27411
27412 # ### END LIBTOOL TAG CONFIG: CXX
27413 _LT_EOF
27414
27415  ;;
27416     "mkcollections.pl":C) chmod 755 lib/mkcollections.pl ;;
27417     "$ac_stdint_h":C)
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_stdint_h : $_ac_stdint_h" >&5
27419 $as_echo "$as_me: creating $ac_stdint_h : $_ac_stdint_h" >&6;}
27420 ac_stdint=$tmp/_stdint.h
27421
27422 echo "#ifndef" $_ac_stdint_h >$ac_stdint
27423 echo "#define" $_ac_stdint_h "1" >>$ac_stdint
27424 echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
27425 echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
27426 echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
27427 if test "_$ac_cv_header_stdint_t" != "_" ; then
27428 echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
27429 echo "#include <stdint.h>" >>$ac_stdint
27430 echo "#endif" >>$ac_stdint
27431 echo "#endif" >>$ac_stdint
27432 else
27433
27434 cat >>$ac_stdint <<STDINT_EOF
27435
27436 /* ................... shortcircuit part ........................... */
27437
27438 #if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
27439 #include <stdint.h>
27440 #else
27441 #include <stddef.h>
27442
27443 /* .................... configured part ............................ */
27444
27445 STDINT_EOF
27446
27447 echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
27448 if test "_$ac_cv_header_stdint_x" != "_" ; then
27449   ac_header="$ac_cv_header_stdint_x"
27450   echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
27451 else
27452   echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
27453 fi
27454
27455 echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
27456 if  test "_$ac_cv_header_stdint_o" != "_" ; then
27457   ac_header="$ac_cv_header_stdint_o"
27458   echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
27459 else
27460   echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
27461 fi
27462
27463 echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
27464 if  test "_$ac_cv_header_stdint_u" != "_" ; then
27465   ac_header="$ac_cv_header_stdint_u"
27466   echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
27467 else
27468   echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
27469 fi
27470
27471 echo "" >>$ac_stdint
27472
27473 if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
27474   echo "#include <$ac_header>" >>$ac_stdint
27475   echo "" >>$ac_stdint
27476 fi fi
27477
27478 echo "/* which 64bit typedef has been found */" >>$ac_stdint
27479 if test "$ac_cv_type_uint64_t" = "yes" ; then
27480 echo "#define   _STDINT_HAVE_UINT64_T" "1"  >>$ac_stdint
27481 else
27482 echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
27483 fi
27484 if test "$ac_cv_type_u_int64_t" = "yes" ; then
27485 echo "#define   _STDINT_HAVE_U_INT64_T" "1"  >>$ac_stdint
27486 else
27487 echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
27488 fi
27489 echo "" >>$ac_stdint
27490
27491 echo "/* which type model has been detected */" >>$ac_stdint
27492 if test "_$ac_cv_char_data_model" != "_" ; then
27493 echo "#define   _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
27494 echo "#define   _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
27495 else
27496 echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
27497 echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
27498 fi
27499 echo "" >>$ac_stdint
27500
27501 echo "/* whether int_least types were detected */" >>$ac_stdint
27502 if test "$ac_cv_type_int_least32_t" = "yes"; then
27503 echo "#define   _STDINT_HAVE_INT_LEAST32_T" "1"  >>$ac_stdint
27504 else
27505 echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
27506 fi
27507 echo "/* whether int_fast types were detected */" >>$ac_stdint
27508 if test "$ac_cv_type_int_fast32_t" = "yes"; then
27509 echo "#define   _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
27510 else
27511 echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
27512 fi
27513 echo "/* whether intmax_t type was detected */" >>$ac_stdint
27514 if test "$ac_cv_type_intmax_t" = "yes"; then
27515 echo "#define   _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
27516 else
27517 echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
27518 fi
27519 echo "" >>$ac_stdint
27520
27521   cat >>$ac_stdint <<STDINT_EOF
27522 /* .................... detections part ............................ */
27523
27524 /* whether we need to define bitspecific types from compiler base types */
27525 #ifndef _STDINT_HEADER_INTPTR
27526 #ifndef _STDINT_HEADER_UINT32
27527 #ifndef _STDINT_HEADER_U_INT32
27528 #define _STDINT_NEED_INT_MODEL_T
27529 #else
27530 #define _STDINT_HAVE_U_INT_TYPES
27531 #endif
27532 #endif
27533 #endif
27534
27535 #ifdef _STDINT_HAVE_U_INT_TYPES
27536 #undef _STDINT_NEED_INT_MODEL_T
27537 #endif
27538
27539 #ifdef  _STDINT_CHAR_MODEL
27540 #if     _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
27541 #ifndef _STDINT_BYTE_MODEL
27542 #define _STDINT_BYTE_MODEL 12
27543 #endif
27544 #endif
27545 #endif
27546
27547 #ifndef _STDINT_HAVE_INT_LEAST32_T
27548 #define _STDINT_NEED_INT_LEAST_T
27549 #endif
27550
27551 #ifndef _STDINT_HAVE_INT_FAST32_T
27552 #define _STDINT_NEED_INT_FAST_T
27553 #endif
27554
27555 #ifndef _STDINT_HEADER_INTPTR
27556 #define _STDINT_NEED_INTPTR_T
27557 #ifndef _STDINT_HAVE_INTMAX_T
27558 #define _STDINT_NEED_INTMAX_T
27559 #endif
27560 #endif
27561
27562
27563 /* .................... definition part ............................ */
27564
27565 /* some system headers have good uint64_t */
27566 #ifndef _HAVE_UINT64_T
27567 #if     defined _STDINT_HAVE_UINT64_T  || defined HAVE_UINT64_T
27568 #define _HAVE_UINT64_T
27569 #elif   defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
27570 #define _HAVE_UINT64_T
27571 typedef u_int64_t uint64_t;
27572 #endif
27573 #endif
27574
27575 #ifndef _HAVE_UINT64_T
27576 /* .. here are some common heuristics using compiler runtime specifics */
27577 #if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
27578 #define _HAVE_UINT64_T
27579 #define _HAVE_LONGLONG_UINT64_T
27580 typedef long long int64_t;
27581 typedef unsigned long long uint64_t;
27582
27583 #elif !defined __STRICT_ANSI__
27584 #if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
27585 #define _HAVE_UINT64_T
27586 typedef __int64 int64_t;
27587 typedef unsigned __int64 uint64_t;
27588
27589 #elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
27590 /* note: all ELF-systems seem to have loff-support which needs 64-bit */
27591 #if !defined _NO_LONGLONG
27592 #define _HAVE_UINT64_T
27593 #define _HAVE_LONGLONG_UINT64_T
27594 typedef long long int64_t;
27595 typedef unsigned long long uint64_t;
27596 #endif
27597
27598 #elif defined __alpha || (defined __mips && defined _ABIN32)
27599 #if !defined _NO_LONGLONG
27600 typedef long int64_t;
27601 typedef unsigned long uint64_t;
27602 #endif
27603   /* compiler/cpu type to define int64_t */
27604 #endif
27605 #endif
27606 #endif
27607
27608 #if defined _STDINT_HAVE_U_INT_TYPES
27609 /* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
27610 typedef u_int8_t uint8_t;
27611 typedef u_int16_t uint16_t;
27612 typedef u_int32_t uint32_t;
27613
27614 /* glibc compatibility */
27615 #ifndef __int8_t_defined
27616 #define __int8_t_defined
27617 #endif
27618 #endif
27619
27620 #ifdef _STDINT_NEED_INT_MODEL_T
27621 /* we must guess all the basic types. Apart from byte-adressable system, */
27622 /* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
27623 /* (btw, those nibble-addressable systems are way off, or so we assume) */
27624
27625
27626 #if defined _STDINT_BYTE_MODEL
27627 #if _STDINT_LONG_MODEL+0 == 242
27628 /* 2:4:2 =  IP16 = a normal 16-bit system                */
27629 typedef unsigned char   uint8_t;
27630 typedef unsigned short  uint16_t;
27631 typedef unsigned long   uint32_t;
27632 #ifndef __int8_t_defined
27633 #define __int8_t_defined
27634 typedef          char    int8_t;
27635 typedef          short   int16_t;
27636 typedef          long    int32_t;
27637 #endif
27638 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
27639 /* 2:4:4 =  LP32 = a 32-bit system derived from a 16-bit */
27640 /* 4:4:4 = ILP32 = a normal 32-bit system                */
27641 typedef unsigned char   uint8_t;
27642 typedef unsigned short  uint16_t;
27643 typedef unsigned int    uint32_t;
27644 #ifndef __int8_t_defined
27645 #define __int8_t_defined
27646 typedef          char    int8_t;
27647 typedef          short   int16_t;
27648 typedef          int     int32_t;
27649 #endif
27650 #elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
27651 /* 4:8:4 =  IP32 = a 32-bit system prepared for 64-bit    */
27652 /* 4:8:8 =  LP64 = a normal 64-bit system                 */
27653 typedef unsigned char   uint8_t;
27654 typedef unsigned short  uint16_t;
27655 typedef unsigned int    uint32_t;
27656 #ifndef __int8_t_defined
27657 #define __int8_t_defined
27658 typedef          char    int8_t;
27659 typedef          short   int16_t;
27660 typedef          int     int32_t;
27661 #endif
27662 /* this system has a "long" of 64bit */
27663 #ifndef _HAVE_UINT64_T
27664 #define _HAVE_UINT64_T
27665 typedef unsigned long   uint64_t;
27666 typedef          long    int64_t;
27667 #endif
27668 #elif _STDINT_LONG_MODEL+0 == 448
27669 /*      LLP64   a 64-bit system derived from a 32-bit system */
27670 typedef unsigned char   uint8_t;
27671 typedef unsigned short  uint16_t;
27672 typedef unsigned int    uint32_t;
27673 #ifndef __int8_t_defined
27674 #define __int8_t_defined
27675 typedef          char    int8_t;
27676 typedef          short   int16_t;
27677 typedef          int     int32_t;
27678 #endif
27679 /* assuming the system has a "long long" */
27680 #ifndef _HAVE_UINT64_T
27681 #define _HAVE_UINT64_T
27682 #define _HAVE_LONGLONG_UINT64_T
27683 typedef unsigned long long uint64_t;
27684 typedef          long long  int64_t;
27685 #endif
27686 #else
27687 #define _STDINT_NO_INT32_T
27688 #endif
27689 #else
27690 #define _STDINT_NO_INT8_T
27691 #define _STDINT_NO_INT32_T
27692 #endif
27693 #endif
27694
27695 /*
27696  * quote from SunOS-5.8 sys/inttypes.h:
27697  * Use at your own risk.  As of February 1996, the committee is squarely
27698  * behind the fixed sized types; the "least" and "fast" types are still being
27699  * discussed.  The probability that the "fast" types may be removed before
27700  * the standard is finalized is high enough that they are not currently
27701  * implemented.
27702  */
27703
27704 #if defined _STDINT_NEED_INT_LEAST_T
27705 typedef  int8_t    int_least8_t;
27706 typedef  int16_t   int_least16_t;
27707 typedef  int32_t   int_least32_t;
27708 #ifdef _HAVE_UINT64_T
27709 typedef  int64_t   int_least64_t;
27710 #endif
27711
27712 typedef uint8_t   uint_least8_t;
27713 typedef uint16_t  uint_least16_t;
27714 typedef uint32_t  uint_least32_t;
27715 #ifdef _HAVE_UINT64_T
27716 typedef uint64_t  uint_least64_t;
27717 #endif
27718   /* least types */
27719 #endif
27720
27721 #if defined _STDINT_NEED_INT_FAST_T
27722 typedef  int8_t    int_fast8_t;
27723 typedef  int       int_fast16_t;
27724 typedef  int32_t   int_fast32_t;
27725 #ifdef _HAVE_UINT64_T
27726 typedef  int64_t   int_fast64_t;
27727 #endif
27728
27729 typedef uint8_t   uint_fast8_t;
27730 typedef unsigned  uint_fast16_t;
27731 typedef uint32_t  uint_fast32_t;
27732 #ifdef _HAVE_UINT64_T
27733 typedef uint64_t  uint_fast64_t;
27734 #endif
27735   /* fast types */
27736 #endif
27737
27738 #ifdef _STDINT_NEED_INTMAX_T
27739 #ifdef _HAVE_UINT64_T
27740 typedef  int64_t       intmax_t;
27741 typedef uint64_t      uintmax_t;
27742 #else
27743 typedef          long  intmax_t;
27744 typedef unsigned long uintmax_t;
27745 #endif
27746 #endif
27747
27748 #ifdef _STDINT_NEED_INTPTR_T
27749 #ifndef __intptr_t_defined
27750 #define __intptr_t_defined
27751 /* we encourage using "long" to store pointer values, never use "int" ! */
27752 #if   _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
27753 typedef  unsigned int   uintptr_t;
27754 typedef           int    intptr_t;
27755 #elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
27756 typedef  unsigned long  uintptr_t;
27757 typedef           long   intptr_t;
27758 #elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
27759 typedef        uint64_t uintptr_t;
27760 typedef         int64_t  intptr_t;
27761 #else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
27762 typedef  unsigned long  uintptr_t;
27763 typedef           long   intptr_t;
27764 #endif
27765 #endif
27766 #endif
27767
27768 /* The ISO C99 standard specifies that in C++ implementations these
27769    should only be defined if explicitly requested.  */
27770 #if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
27771 #ifndef UINT32_C
27772
27773 /* Signed.  */
27774 # define INT8_C(c)      c
27775 # define INT16_C(c)     c
27776 # define INT32_C(c)     c
27777 # ifdef _HAVE_LONGLONG_UINT64_T
27778 #  define INT64_C(c)    c ## L
27779 # else
27780 #  define INT64_C(c)    c ## LL
27781 # endif
27782
27783 /* Unsigned.  */
27784 # define UINT8_C(c)     c ## U
27785 # define UINT16_C(c)    c ## U
27786 # define UINT32_C(c)    c ## U
27787 # ifdef _HAVE_LONGLONG_UINT64_T
27788 #  define UINT64_C(c)   c ## UL
27789 # else
27790 #  define UINT64_C(c)   c ## ULL
27791 # endif
27792
27793 /* Maximal type.  */
27794 # ifdef _HAVE_LONGLONG_UINT64_T
27795 #  define INTMAX_C(c)   c ## L
27796 #  define UINTMAX_C(c)  c ## UL
27797 # else
27798 #  define INTMAX_C(c)   c ## LL
27799 #  define UINTMAX_C(c)  c ## ULL
27800 # endif
27801
27802   /* literalnumbers */
27803 #endif
27804 #endif
27805
27806 /* These limits are merily those of a two complement byte-oriented system */
27807
27808 /* Minimum of signed integral types.  */
27809 #ifndef INT8_MIN
27810 # define INT8_MIN               (-128)
27811 #endif
27812 #ifndef INT16_MIN
27813 # define INT16_MIN              (-32767-1)
27814 #endif
27815 #ifndef INT32_MIN
27816 # define INT32_MIN              (-2147483647-1)
27817 #endif
27818 #ifndef INT64_MIN
27819 # define INT64_MIN              (-__INT64_C(9223372036854775807)-1)
27820 #endif
27821
27822 /* Maximum of signed integral types.  */
27823 #ifndef INT8_MAX
27824 # define INT8_MAX               (127)
27825 #endif
27826 #ifndef INT16_MAX
27827 # define INT16_MAX              (32767)
27828 #endif
27829 #ifndef INT32_MAX
27830 # define INT32_MAX              (2147483647)
27831 #endif
27832 #ifndef INT64_MAX
27833 # define INT64_MAX              (__INT64_C(9223372036854775807))
27834 #endif
27835
27836 /* Maximum of unsigned integral types.  */
27837 #ifndef UINT8_MAX
27838 # define UINT8_MAX              (255)
27839 #endif
27840 #ifndef UINT16_MAX
27841 # define UINT16_MAX             (65535)
27842 #endif
27843 #ifndef UINT32_MAX
27844 # define UINT32_MAX             (4294967295U)
27845 #endif
27846 #ifndef UINT64_MAX
27847 # define UINT64_MAX             (__UINT64_C(18446744073709551615))
27848 #endif
27849
27850 /* Minimum of signed integral types having a minimum size.  */
27851 # define INT_LEAST8_MIN         INT8_MIN
27852 # define INT_LEAST16_MIN        INT16_MIN
27853 # define INT_LEAST32_MIN        INT32_MIN
27854 # define INT_LEAST64_MIN        INT64_MIN
27855 /* Maximum of signed integral types having a minimum size.  */
27856 # define INT_LEAST8_MAX         INT8_MAX
27857 # define INT_LEAST16_MAX        INT16_MAX
27858 # define INT_LEAST32_MAX        INT32_MAX
27859 # define INT_LEAST64_MAX        INT64_MAX
27860
27861 /* Maximum of unsigned integral types having a minimum size.  */
27862 # define UINT_LEAST8_MAX        UINT8_MAX
27863 # define UINT_LEAST16_MAX       UINT16_MAX
27864 # define UINT_LEAST32_MAX       UINT32_MAX
27865 # define UINT_LEAST64_MAX       UINT64_MAX
27866
27867   /* shortcircuit*/
27868 #endif
27869   /* once */
27870 #endif
27871 #endif
27872 STDINT_EOF
27873 fi
27874     if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
27875       { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_stdint_h is unchanged" >&5
27876 $as_echo "$as_me: $ac_stdint_h is unchanged" >&6;}
27877     else
27878       ac_dir=`$as_dirname -- "$ac_stdint_h" ||
27879 $as_expr X"$ac_stdint_h" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27880          X"$ac_stdint_h" : 'X\(//\)[^/]' \| \
27881          X"$ac_stdint_h" : 'X\(//\)$' \| \
27882          X"$ac_stdint_h" : 'X\(/\)' \| . 2>/dev/null ||
27883 $as_echo X"$ac_stdint_h" |
27884     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27885             s//\1/
27886             q
27887           }
27888           /^X\(\/\/\)[^/].*/{
27889             s//\1/
27890             q
27891           }
27892           /^X\(\/\/\)$/{
27893             s//\1/
27894             q
27895           }
27896           /^X\(\/\).*/{
27897             s//\1/
27898             q
27899           }
27900           s/.*/./; q'`
27901       as_dir="$ac_dir"; as_fn_mkdir_p
27902       rm -f $ac_stdint_h
27903       mv $ac_stdint $ac_stdint_h
27904     fi
27905  ;;
27906     "gappletviewer":C) chmod 755 tools/gappletviewer ;;
27907     "gjarsigner":C) chmod 755 tools/gjarsigner ;;
27908     "gkeytool":C) chmod 755 tools/gkeytool ;;
27909     "gjar":C) chmod 755 tools/gjar ;;
27910     "gnative2ascii":C) chmod 755 tools/gnative2ascii ;;
27911     "gserialver":C) chmod 755 tools/gserialver ;;
27912     "grmiregistry":C) chmod 755 tools/grmiregistry ;;
27913     "gtnameserv":C) chmod 755 tools/gtnameserv ;;
27914     "gorbd":C) chmod 755 tools/gorbd ;;
27915     "grmid":C) chmod 755 tools/grmid ;;
27916     "grmic":C) chmod 755 tools/grmic ;;
27917     "gjavah":C) chmod 755 tools/gjavah ;;
27918     "gjdoc":C) chmod 755 tools/gjdoc ;;
27919     "gen-classlist":C) chmod 755 lib/gen-classlist.sh ;;
27920     "copy-vmresources":C) chmod 755 lib/copy-vmresources.sh ;;
27921
27922   esac
27923 done # for ac_tag
27924
27925
27926 as_fn_exit 0
27927 _ACEOF
27928 ac_clean_files=$ac_clean_files_save
27929
27930 test $ac_write_fail = 0 ||
27931   as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
27932
27933
27934 # configure is writing to config.log, and then calls config.status.
27935 # config.status does its own redirection, appending to config.log.
27936 # Unfortunately, on DOS this fails, as config.log is still kept open
27937 # by configure, so config.status won't be able to write to it; its
27938 # output is simply discarded.  So we exec the FD to /dev/null,
27939 # effectively closing config.log, so it can be properly (re)opened and
27940 # appended to by config.status.  When coming back to configure, we
27941 # need to make the FD available again.
27942 if test "$no_create" != yes; then
27943   ac_cs_success=:
27944   ac_config_status_args=
27945   test "$silent" = yes &&
27946     ac_config_status_args="$ac_config_status_args --quiet"
27947   exec 5>/dev/null
27948   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27949   exec 5>>config.log
27950   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27951   # would make configure fail if this is the last instruction.
27952   $ac_cs_success || as_fn_exit $?
27953 fi
27954 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
27955   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
27956 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
27957 fi
27958
27959
27960 # Create standard.omit based on decisions we just made.
27961 cat ${srcdir}/lib/standard.omit.in > lib/standard.omit
27962 if test x$use_escher != xtrue; then
27963    echo gnu/java/awt/peer/x/.*java$ >> lib/standard.omit
27964 fi
27965
27966 if test "x${COMPILE_PLUGIN}" = "xyes" ; then
27967   { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You have enabled the browser plugin.  Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&5
27968 $as_echo "$as_me: WARNING: You have enabled the browser plugin.  Please note that this is no longer maintained as part of GNU Classpath; development has moved to the IcedTea project." >&2;}
27969 fi