• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for Protocol Buffers 3.14.0.
4#
5# Report bugs to <protobuf@googlegroups.com>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
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
18DUALCASE=1; export DUALCASE # for MKS sh
19if 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
26else
27  case `(set -o) 2>/dev/null` in #(
28  *posix*) :
29    set -o posix ;; #(
30  *) :
31     ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_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.
45if 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 --'
49elif (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'
52else
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'
72fi
73
74# The user is always right.
75if 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  }
81fi
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.)
89IFS=" ""	$as_nl"
90
91# Find who we are.  Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94  *[\\/]* ) as_myself=$0 ;;
95  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98  IFS=$as_save_IFS
99  test -z "$as_dir" && as_dir=.
100    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101  done
102IFS=$as_save_IFS
103
104     ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109  as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113  exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there.  '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138  # into an infinite loop, continuously re-executing ourselves.
139  if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140    _as_can_reexec=no; export _as_can_reexec;
141    # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149  *v*x* | *x*v* ) as_opts=-vx ;;
150  *v* ) as_opts=-v ;;
151  *x* ) as_opts=-x ;;
152  * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159  fi
160  # We don't want this to propagate to other subprocesses.
161          { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164  emulate sh
165  NULLCMD=:
166  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167  # is contrary to our usage.  Disable this feature.
168  alias -g '\${1+\"\$@\"}'='\"\$@\"'
169  setopt NO_GLOB_SUBST
170else
171  case \`(set -o) 2>/dev/null\` in #(
172  *posix*) :
173    set -o posix ;; #(
174  *) :
175     ;;
176esac
177fi
178"
179  as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193  exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1
202
203  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
204    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
205    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
206    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
207    PATH=/empty FPATH=/empty; export PATH FPATH
208    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
209      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
210  if (eval "$as_required") 2>/dev/null; then :
211  as_have_required=yes
212else
213  as_have_required=no
214fi
215  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
216
217else
218  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
219as_found=false
220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221do
222  IFS=$as_save_IFS
223  test -z "$as_dir" && as_dir=.
224  as_found=:
225  case $as_dir in #(
226	 /*)
227	   for as_base in sh bash ksh sh5; do
228	     # Try only shells that exist, to save several forks.
229	     as_shell=$as_dir/$as_base
230	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
231		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
232  CONFIG_SHELL=$as_shell as_have_required=yes
233		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
234  break 2
235fi
236fi
237	   done;;
238       esac
239  as_found=false
240done
241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
242	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
243  CONFIG_SHELL=$SHELL as_have_required=yes
244fi; }
245IFS=$as_save_IFS
246
247
248      if test "x$CONFIG_SHELL" != x; then :
249  export CONFIG_SHELL
250             # We cannot yet assume a decent shell, so we have to provide a
251# neutralization value for shells without unset; and this also
252# works around shells that cannot unset nonexistent variables.
253# Preserve -v and -x to the replacement shell.
254BASH_ENV=/dev/null
255ENV=/dev/null
256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
257case $- in # ((((
258  *v*x* | *x*v* ) as_opts=-vx ;;
259  *v* ) as_opts=-v ;;
260  *x* ) as_opts=-x ;;
261  * ) as_opts= ;;
262esac
263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
264# Admittedly, this is quite paranoid, since all the known shells bail
265# out after a failed `exec'.
266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
267exit 255
268fi
269
270    if test x$as_have_required = xno; then :
271  $as_echo "$0: This script requires a shell more modern than all"
272  $as_echo "$0: the shells that I found on your system."
273  if test x${ZSH_VERSION+set} = xset ; then
274    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
275    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
276  else
277    $as_echo "$0: Please tell bug-autoconf@gnu.org and
278$0: protobuf@googlegroups.com about your system, including
279$0: any error possibly output before this message. Then
280$0: install a modern shell, or manually run the script
281$0: under such a shell if you do have one."
282  fi
283  exit 1
284fi
285fi
286fi
287SHELL=${CONFIG_SHELL-/bin/sh}
288export SHELL
289# Unset more variables known to interfere with behavior of common tools.
290CLICOLOR_FORCE= GREP_OPTIONS=
291unset CLICOLOR_FORCE GREP_OPTIONS
292
293## --------------------- ##
294## M4sh Shell Functions. ##
295## --------------------- ##
296# as_fn_unset VAR
297# ---------------
298# Portably unset VAR.
299as_fn_unset ()
300{
301  { eval $1=; unset $1;}
302}
303as_unset=as_fn_unset
304
305# as_fn_set_status STATUS
306# -----------------------
307# Set $? to STATUS, without forking.
308as_fn_set_status ()
309{
310  return $1
311} # as_fn_set_status
312
313# as_fn_exit STATUS
314# -----------------
315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
316as_fn_exit ()
317{
318  set +e
319  as_fn_set_status $1
320  exit $1
321} # as_fn_exit
322
323# as_fn_mkdir_p
324# -------------
325# Create "$as_dir" as a directory, including parents if necessary.
326as_fn_mkdir_p ()
327{
328
329  case $as_dir in #(
330  -*) as_dir=./$as_dir;;
331  esac
332  test -d "$as_dir" || eval $as_mkdir_p || {
333    as_dirs=
334    while :; do
335      case $as_dir in #(
336      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
337      *) as_qdir=$as_dir;;
338      esac
339      as_dirs="'$as_qdir' $as_dirs"
340      as_dir=`$as_dirname -- "$as_dir" ||
341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
342	 X"$as_dir" : 'X\(//\)[^/]' \| \
343	 X"$as_dir" : 'X\(//\)$' \| \
344	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
345$as_echo X"$as_dir" |
346    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
347	    s//\1/
348	    q
349	  }
350	  /^X\(\/\/\)[^/].*/{
351	    s//\1/
352	    q
353	  }
354	  /^X\(\/\/\)$/{
355	    s//\1/
356	    q
357	  }
358	  /^X\(\/\).*/{
359	    s//\1/
360	    q
361	  }
362	  s/.*/./; q'`
363      test -d "$as_dir" && break
364    done
365    test -z "$as_dirs" || eval "mkdir $as_dirs"
366  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
367
368
369} # as_fn_mkdir_p
370
371# as_fn_executable_p FILE
372# -----------------------
373# Test if FILE is an executable regular file.
374as_fn_executable_p ()
375{
376  test -f "$1" && test -x "$1"
377} # as_fn_executable_p
378# as_fn_append VAR VALUE
379# ----------------------
380# Append the text in VALUE to the end of the definition contained in VAR. Take
381# advantage of any shell optimizations that allow amortized linear growth over
382# repeated appends, instead of the typical quadratic growth present in naive
383# implementations.
384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
385  eval 'as_fn_append ()
386  {
387    eval $1+=\$2
388  }'
389else
390  as_fn_append ()
391  {
392    eval $1=\$$1\$2
393  }
394fi # as_fn_append
395
396# as_fn_arith ARG...
397# ------------------
398# Perform arithmetic evaluation on the ARGs, and store the result in the
399# global $as_val. Take advantage of shells that can avoid forks. The arguments
400# must be portable across $(()) and expr.
401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
402  eval 'as_fn_arith ()
403  {
404    as_val=$(( $* ))
405  }'
406else
407  as_fn_arith ()
408  {
409    as_val=`expr "$@" || test $? -eq 1`
410  }
411fi # as_fn_arith
412
413
414# as_fn_error STATUS ERROR [LINENO LOG_FD]
415# ----------------------------------------
416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
418# script with STATUS, using 1 if that was 0.
419as_fn_error ()
420{
421  as_status=$1; test $as_status -eq 0 && as_status=1
422  if test "$4"; then
423    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
424    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
425  fi
426  $as_echo "$as_me: error: $2" >&2
427  as_fn_exit $as_status
428} # as_fn_error
429
430if expr a : '\(a\)' >/dev/null 2>&1 &&
431   test "X`expr 00001 : '.*\(...\)'`" = X001; then
432  as_expr=expr
433else
434  as_expr=false
435fi
436
437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
438  as_basename=basename
439else
440  as_basename=false
441fi
442
443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
444  as_dirname=dirname
445else
446  as_dirname=false
447fi
448
449as_me=`$as_basename -- "$0" ||
450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
451	 X"$0" : 'X\(//\)$' \| \
452	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
453$as_echo X/"$0" |
454    sed '/^.*\/\([^/][^/]*\)\/*$/{
455	    s//\1/
456	    q
457	  }
458	  /^X\/\(\/\/\)$/{
459	    s//\1/
460	    q
461	  }
462	  /^X\/\(\/\).*/{
463	    s//\1/
464	    q
465	  }
466	  s/.*/./; q'`
467
468# Avoid depending upon Character Ranges.
469as_cr_letters='abcdefghijklmnopqrstuvwxyz'
470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
471as_cr_Letters=$as_cr_letters$as_cr_LETTERS
472as_cr_digits='0123456789'
473as_cr_alnum=$as_cr_Letters$as_cr_digits
474
475
476  as_lineno_1=$LINENO as_lineno_1a=$LINENO
477  as_lineno_2=$LINENO as_lineno_2a=$LINENO
478  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
479  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
480  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
481  sed -n '
482    p
483    /[$]LINENO/=
484  ' <$as_myself |
485    sed '
486      s/[$]LINENO.*/&-/
487      t lineno
488      b
489      :lineno
490      N
491      :loop
492      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
493      t loop
494      s/-\n.*//
495    ' >$as_me.lineno &&
496  chmod +x "$as_me.lineno" ||
497    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
498
499  # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
500  # already done that, so ensure we don't try to do so again and fall
501  # in an infinite loop.  This has already happened in practice.
502  _as_can_reexec=no; export _as_can_reexec
503  # Don't try to exec as it changes $[0], causing all sort of problems
504  # (the dirname of $[0] is not the place where we might find the
505  # original and so on.  Autoconf is especially sensitive to this).
506  . "./$as_me.lineno"
507  # Exit status is that of the last command.
508  exit
509}
510
511ECHO_C= ECHO_N= ECHO_T=
512case `echo -n x` in #(((((
513-n*)
514  case `echo 'xy\c'` in
515  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
516  xy)  ECHO_C='\c';;
517  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
518       ECHO_T='	';;
519  esac;;
520*)
521  ECHO_N='-n';;
522esac
523
524rm -f conf$$ conf$$.exe conf$$.file
525if test -d conf$$.dir; then
526  rm -f conf$$.dir/conf$$.file
527else
528  rm -f conf$$.dir
529  mkdir conf$$.dir 2>/dev/null
530fi
531if (echo >conf$$.file) 2>/dev/null; then
532  if ln -s conf$$.file conf$$ 2>/dev/null; then
533    as_ln_s='ln -s'
534    # ... but there are two gotchas:
535    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
536    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
537    # In both cases, we have to default to `cp -pR'.
538    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
539      as_ln_s='cp -pR'
540  elif ln conf$$.file conf$$ 2>/dev/null; then
541    as_ln_s=ln
542  else
543    as_ln_s='cp -pR'
544  fi
545else
546  as_ln_s='cp -pR'
547fi
548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
549rmdir conf$$.dir 2>/dev/null
550
551if mkdir -p . 2>/dev/null; then
552  as_mkdir_p='mkdir -p "$as_dir"'
553else
554  test -d ./-p && rmdir ./-p
555  as_mkdir_p=false
556fi
557
558as_test_x='test -x'
559as_executable_p=as_fn_executable_p
560
561# Sed expression to map a string onto a valid CPP name.
562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
563
564# Sed expression to map a string onto a valid variable name.
565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
566
567SHELL=${CONFIG_SHELL-/bin/sh}
568
569
570test -n "$DJDIR" || exec 7<&0 </dev/null
571exec 6>&1
572
573# Name of the host.
574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
575# so uname gets run too.
576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
577
578#
579# Initializations.
580#
581ac_default_prefix=/usr/local
582ac_clean_files=
583ac_config_libobj_dir=.
584LIBOBJS=
585cross_compiling=no
586subdirs=
587MFLAGS=
588MAKEFLAGS=
589
590# Identity of this package.
591PACKAGE_NAME='Protocol Buffers'
592PACKAGE_TARNAME='protobuf'
593PACKAGE_VERSION='3.14.0'
594PACKAGE_STRING='Protocol Buffers 3.14.0'
595PACKAGE_BUGREPORT='protobuf@googlegroups.com'
596PACKAGE_URL=''
597
598ac_unique_file="src/google/protobuf/message.cc"
599# Factoring default headers for most tests.
600ac_includes_default="\
601#include <stdio.h>
602#ifdef HAVE_SYS_TYPES_H
603# include <sys/types.h>
604#endif
605#ifdef HAVE_SYS_STAT_H
606# include <sys/stat.h>
607#endif
608#ifdef STDC_HEADERS
609# include <stdlib.h>
610# include <stddef.h>
611#else
612# ifdef HAVE_STDLIB_H
613#  include <stdlib.h>
614# endif
615#endif
616#ifdef HAVE_STRING_H
617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
618#  include <memory.h>
619# endif
620# include <string.h>
621#endif
622#ifdef HAVE_STRINGS_H
623# include <strings.h>
624#endif
625#ifdef HAVE_INTTYPES_H
626# include <inttypes.h>
627#endif
628#ifdef HAVE_STDINT_H
629# include <stdint.h>
630#endif
631#ifdef HAVE_UNISTD_H
632# include <unistd.h>
633#endif"
634
635enable_option_checking=no
636ac_subst_vars='am__EXEEXT_FALSE
637am__EXEEXT_TRUE
638LTLIBOBJS
639subdirs
640OBJC_CONFORMANCE_TEST_FALSE
641OBJC_CONFORMANCE_TEST_TRUE
642HAVE_PTHREAD_FALSE
643HAVE_PTHREAD_TRUE
644PTHREAD_CFLAGS
645PTHREAD_LIBS
646PTHREAD_CC
647ax_pthread_config
648USE_EXTERNAL_PROTOC_FALSE
649USE_EXTERNAL_PROTOC_TRUE
650PROTOC
651LIBATOMIC_LIBS
652HAVE_CXX11
653HAVE_ZLIB_FALSE
654HAVE_ZLIB_TRUE
655POW_LIB
656LIBOBJS
657HAVE_LD_VERSION_SCRIPT_FALSE
658HAVE_LD_VERSION_SCRIPT_TRUE
659LT_SYS_LIBRARY_PATH
660OTOOL64
661OTOOL
662LIPO
663NMEDIT
664DSYMUTIL
665MANIFEST_TOOL
666RANLIB
667DLLTOOL
668OBJDUMP
669LN_S
670NM
671ac_ct_DUMPBIN
672DUMPBIN
673LD
674FGREP
675SED
676LIBTOOL
677ISAINFO
678PROTOBUF_OPT_FLAG
679am__fastdepOBJC_FALSE
680am__fastdepOBJC_TRUE
681OBJCDEPMODE
682ac_ct_OBJC
683OBJCFLAGS
684OBJC
685GCC_FALSE
686GCC_TRUE
687ac_ct_AR
688AR
689EGREP
690GREP
691CXXCPPFLAGS_FOR_BUILD
692CXXFLAGS_FOR_BUILD
693CXXCPP_FOR_BUILD
694ac_ct_CXX_FOR_BUILD
695CXX_FOR_BUILD
696CXXCPP
697LDFLAGS_FOR_BUILD
698CPPFLAGS_FOR_BUILD
699CFLAGS_FOR_BUILD
700BUILD_OBJEXT
701BUILD_EXEEXT
702CPP_FOR_BUILD
703ac_ct_CC_FOR_BUILD
704CC_FOR_BUILD
705CPP
706am__fastdepCXX_FALSE
707am__fastdepCXX_TRUE
708CXXDEPMODE
709ac_ct_CXX
710CXXFLAGS
711CXX
712am__fastdepCC_FALSE
713am__fastdepCC_TRUE
714CCDEPMODE
715am__nodep
716AMDEPBACKSLASH
717AMDEP_FALSE
718AMDEP_TRUE
719am__include
720DEPDIR
721OBJEXT
722EXEEXT
723ac_ct_CC
724CPPFLAGS
725LDFLAGS
726CFLAGS
727CC
728AM_BACKSLASH
729AM_DEFAULT_VERBOSITY
730AM_DEFAULT_V
731AM_V
732am__untar
733am__tar
734AMTAR
735am__leading_dot
736SET_MAKE
737AWK
738mkdir_p
739MKDIR_P
740INSTALL_STRIP_PROGRAM
741STRIP
742install_sh
743MAKEINFO
744AUTOHEADER
745AUTOMAKE
746AUTOCONF
747ACLOCAL
748VERSION
749PACKAGE
750CYGPATH_W
751am__isrc
752INSTALL_DATA
753INSTALL_SCRIPT
754INSTALL_PROGRAM
755target_os
756target_vendor
757target_cpu
758target
759host_os
760host_vendor
761host_cpu
762host
763build_os
764build_vendor
765build_cpu
766build
767DIST_LANG
768MAINT
769MAINTAINER_MODE_FALSE
770MAINTAINER_MODE_TRUE
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790runstatedir
791localstatedir
792sharedstatedir
793sysconfdir
794datadir
795datarootdir
796libexecdir
797sbindir
798bindir
799program_transform_name
800prefix
801exec_prefix
802PACKAGE_URL
803PACKAGE_BUGREPORT
804PACKAGE_STRING
805PACKAGE_VERSION
806PACKAGE_TARNAME
807PACKAGE_NAME
808PATH_SEPARATOR
809SHELL
810am__quote'
811ac_subst_files=''
812ac_user_opts='
813enable_option_checking
814enable_maintainer_mode
815enable_silent_rules
816with_zlib
817with_zlib_include
818with_zlib_lib
819with_protoc
820enable_dependency_tracking
821enable_64bit_solaris
822enable_shared
823enable_static
824with_pic
825enable_fast_install
826with_aix_soname
827with_gnu_ld
828with_sysroot
829enable_libtool_lock
830'
831      ac_precious_vars='build_alias
832host_alias
833target_alias
834DIST_LANG
835CC
836CFLAGS
837LDFLAGS
838LIBS
839CPPFLAGS
840CXX
841CXXFLAGS
842CCC
843CPP
844CXXCPP
845OBJC
846OBJCFLAGS
847LT_SYS_LIBRARY_PATH'
848ac_subdirs_all='third_party/googletest'
849
850# Initialize some variables set by options.
851ac_init_help=
852ac_init_version=false
853ac_unrecognized_opts=
854ac_unrecognized_sep=
855# The variables have the same names as the options, with
856# dashes changed to underlines.
857cache_file=/dev/null
858exec_prefix=NONE
859no_create=
860no_recursion=
861prefix=NONE
862program_prefix=NONE
863program_suffix=NONE
864program_transform_name=s,x,x,
865silent=
866site=
867srcdir=
868verbose=
869x_includes=NONE
870x_libraries=NONE
871
872# Installation directory options.
873# These are left unexpanded so users can "make install exec_prefix=/foo"
874# and all the variables that are supposed to be based on exec_prefix
875# by default will actually change.
876# Use braces instead of parens because sh, perl, etc. also accept them.
877# (The list follows the same order as the GNU Coding Standards.)
878bindir='${exec_prefix}/bin'
879sbindir='${exec_prefix}/sbin'
880libexecdir='${exec_prefix}/libexec'
881datarootdir='${prefix}/share'
882datadir='${datarootdir}'
883sysconfdir='${prefix}/etc'
884sharedstatedir='${prefix}/com'
885localstatedir='${prefix}/var'
886runstatedir='${localstatedir}/run'
887includedir='${prefix}/include'
888oldincludedir='/usr/include'
889docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
890infodir='${datarootdir}/info'
891htmldir='${docdir}'
892dvidir='${docdir}'
893pdfdir='${docdir}'
894psdir='${docdir}'
895libdir='${exec_prefix}/lib'
896localedir='${datarootdir}/locale'
897mandir='${datarootdir}/man'
898
899ac_prev=
900ac_dashdash=
901for ac_option
902do
903  # If the previous option needs an argument, assign it.
904  if test -n "$ac_prev"; then
905    eval $ac_prev=\$ac_option
906    ac_prev=
907    continue
908  fi
909
910  case $ac_option in
911  *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
912  *=)   ac_optarg= ;;
913  *)    ac_optarg=yes ;;
914  esac
915
916  # Accept the important Cygnus configure options, so we can diagnose typos.
917
918  case $ac_dashdash$ac_option in
919  --)
920    ac_dashdash=yes ;;
921
922  -bindir | --bindir | --bindi | --bind | --bin | --bi)
923    ac_prev=bindir ;;
924  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
925    bindir=$ac_optarg ;;
926
927  -build | --build | --buil | --bui | --bu)
928    ac_prev=build_alias ;;
929  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
930    build_alias=$ac_optarg ;;
931
932  -cache-file | --cache-file | --cache-fil | --cache-fi \
933  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
934    ac_prev=cache_file ;;
935  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
936  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
937    cache_file=$ac_optarg ;;
938
939  --config-cache | -C)
940    cache_file=config.cache ;;
941
942  -datadir | --datadir | --datadi | --datad)
943    ac_prev=datadir ;;
944  -datadir=* | --datadir=* | --datadi=* | --datad=*)
945    datadir=$ac_optarg ;;
946
947  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
948  | --dataroo | --dataro | --datar)
949    ac_prev=datarootdir ;;
950  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
951  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
952    datarootdir=$ac_optarg ;;
953
954  -disable-* | --disable-*)
955    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
956    # Reject names that are not valid shell variable names.
957    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958      as_fn_error $? "invalid feature name: $ac_useropt"
959    ac_useropt_orig=$ac_useropt
960    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961    case $ac_user_opts in
962      *"
963"enable_$ac_useropt"
964"*) ;;
965      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
966	 ac_unrecognized_sep=', ';;
967    esac
968    eval enable_$ac_useropt=no ;;
969
970  -docdir | --docdir | --docdi | --doc | --do)
971    ac_prev=docdir ;;
972  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
973    docdir=$ac_optarg ;;
974
975  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
976    ac_prev=dvidir ;;
977  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
978    dvidir=$ac_optarg ;;
979
980  -enable-* | --enable-*)
981    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
982    # Reject names that are not valid shell variable names.
983    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
984      as_fn_error $? "invalid feature name: $ac_useropt"
985    ac_useropt_orig=$ac_useropt
986    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
987    case $ac_user_opts in
988      *"
989"enable_$ac_useropt"
990"*) ;;
991      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
992	 ac_unrecognized_sep=', ';;
993    esac
994    eval enable_$ac_useropt=\$ac_optarg ;;
995
996  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
997  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
998  | --exec | --exe | --ex)
999    ac_prev=exec_prefix ;;
1000  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1001  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1002  | --exec=* | --exe=* | --ex=*)
1003    exec_prefix=$ac_optarg ;;
1004
1005  -gas | --gas | --ga | --g)
1006    # Obsolete; use --with-gas.
1007    with_gas=yes ;;
1008
1009  -help | --help | --hel | --he | -h)
1010    ac_init_help=long ;;
1011  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1012    ac_init_help=recursive ;;
1013  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1014    ac_init_help=short ;;
1015
1016  -host | --host | --hos | --ho)
1017    ac_prev=host_alias ;;
1018  -host=* | --host=* | --hos=* | --ho=*)
1019    host_alias=$ac_optarg ;;
1020
1021  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1022    ac_prev=htmldir ;;
1023  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1024  | --ht=*)
1025    htmldir=$ac_optarg ;;
1026
1027  -includedir | --includedir | --includedi | --included | --include \
1028  | --includ | --inclu | --incl | --inc)
1029    ac_prev=includedir ;;
1030  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1031  | --includ=* | --inclu=* | --incl=* | --inc=*)
1032    includedir=$ac_optarg ;;
1033
1034  -infodir | --infodir | --infodi | --infod | --info | --inf)
1035    ac_prev=infodir ;;
1036  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1037    infodir=$ac_optarg ;;
1038
1039  -libdir | --libdir | --libdi | --libd)
1040    ac_prev=libdir ;;
1041  -libdir=* | --libdir=* | --libdi=* | --libd=*)
1042    libdir=$ac_optarg ;;
1043
1044  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1045  | --libexe | --libex | --libe)
1046    ac_prev=libexecdir ;;
1047  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1048  | --libexe=* | --libex=* | --libe=*)
1049    libexecdir=$ac_optarg ;;
1050
1051  -localedir | --localedir | --localedi | --localed | --locale)
1052    ac_prev=localedir ;;
1053  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1054    localedir=$ac_optarg ;;
1055
1056  -localstatedir | --localstatedir | --localstatedi | --localstated \
1057  | --localstate | --localstat | --localsta | --localst | --locals)
1058    ac_prev=localstatedir ;;
1059  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1060  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1061    localstatedir=$ac_optarg ;;
1062
1063  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1064    ac_prev=mandir ;;
1065  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1066    mandir=$ac_optarg ;;
1067
1068  -nfp | --nfp | --nf)
1069    # Obsolete; use --without-fp.
1070    with_fp=no ;;
1071
1072  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1073  | --no-cr | --no-c | -n)
1074    no_create=yes ;;
1075
1076  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1077  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1078    no_recursion=yes ;;
1079
1080  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1081  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1082  | --oldin | --oldi | --old | --ol | --o)
1083    ac_prev=oldincludedir ;;
1084  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1085  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1086  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1087    oldincludedir=$ac_optarg ;;
1088
1089  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1090    ac_prev=prefix ;;
1091  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1092    prefix=$ac_optarg ;;
1093
1094  -program-prefix | --program-prefix | --program-prefi | --program-pref \
1095  | --program-pre | --program-pr | --program-p)
1096    ac_prev=program_prefix ;;
1097  -program-prefix=* | --program-prefix=* | --program-prefi=* \
1098  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1099    program_prefix=$ac_optarg ;;
1100
1101  -program-suffix | --program-suffix | --program-suffi | --program-suff \
1102  | --program-suf | --program-su | --program-s)
1103    ac_prev=program_suffix ;;
1104  -program-suffix=* | --program-suffix=* | --program-suffi=* \
1105  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1106    program_suffix=$ac_optarg ;;
1107
1108  -program-transform-name | --program-transform-name \
1109  | --program-transform-nam | --program-transform-na \
1110  | --program-transform-n | --program-transform- \
1111  | --program-transform | --program-transfor \
1112  | --program-transfo | --program-transf \
1113  | --program-trans | --program-tran \
1114  | --progr-tra | --program-tr | --program-t)
1115    ac_prev=program_transform_name ;;
1116  -program-transform-name=* | --program-transform-name=* \
1117  | --program-transform-nam=* | --program-transform-na=* \
1118  | --program-transform-n=* | --program-transform-=* \
1119  | --program-transform=* | --program-transfor=* \
1120  | --program-transfo=* | --program-transf=* \
1121  | --program-trans=* | --program-tran=* \
1122  | --progr-tra=* | --program-tr=* | --program-t=*)
1123    program_transform_name=$ac_optarg ;;
1124
1125  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1126    ac_prev=pdfdir ;;
1127  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1128    pdfdir=$ac_optarg ;;
1129
1130  -psdir | --psdir | --psdi | --psd | --ps)
1131    ac_prev=psdir ;;
1132  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1133    psdir=$ac_optarg ;;
1134
1135  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1136  | -silent | --silent | --silen | --sile | --sil)
1137    silent=yes ;;
1138
1139  -runstatedir | --runstatedir | --runstatedi | --runstated \
1140  | --runstate | --runstat | --runsta | --runst | --runs \
1141  | --run | --ru | --r)
1142    ac_prev=runstatedir ;;
1143  -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1144  | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1145  | --run=* | --ru=* | --r=*)
1146    runstatedir=$ac_optarg ;;
1147
1148  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1149    ac_prev=sbindir ;;
1150  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1151  | --sbi=* | --sb=*)
1152    sbindir=$ac_optarg ;;
1153
1154  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1155  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1156  | --sharedst | --shareds | --shared | --share | --shar \
1157  | --sha | --sh)
1158    ac_prev=sharedstatedir ;;
1159  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1160  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1161  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1162  | --sha=* | --sh=*)
1163    sharedstatedir=$ac_optarg ;;
1164
1165  -site | --site | --sit)
1166    ac_prev=site ;;
1167  -site=* | --site=* | --sit=*)
1168    site=$ac_optarg ;;
1169
1170  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1171    ac_prev=srcdir ;;
1172  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1173    srcdir=$ac_optarg ;;
1174
1175  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1176  | --syscon | --sysco | --sysc | --sys | --sy)
1177    ac_prev=sysconfdir ;;
1178  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1179  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1180    sysconfdir=$ac_optarg ;;
1181
1182  -target | --target | --targe | --targ | --tar | --ta | --t)
1183    ac_prev=target_alias ;;
1184  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1185    target_alias=$ac_optarg ;;
1186
1187  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1188    verbose=yes ;;
1189
1190  -version | --version | --versio | --versi | --vers | -V)
1191    ac_init_version=: ;;
1192
1193  -with-* | --with-*)
1194    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1195    # Reject names that are not valid shell variable names.
1196    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1197      as_fn_error $? "invalid package name: $ac_useropt"
1198    ac_useropt_orig=$ac_useropt
1199    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1200    case $ac_user_opts in
1201      *"
1202"with_$ac_useropt"
1203"*) ;;
1204      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1205	 ac_unrecognized_sep=', ';;
1206    esac
1207    eval with_$ac_useropt=\$ac_optarg ;;
1208
1209  -without-* | --without-*)
1210    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1211    # Reject names that are not valid shell variable names.
1212    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1213      as_fn_error $? "invalid package name: $ac_useropt"
1214    ac_useropt_orig=$ac_useropt
1215    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1216    case $ac_user_opts in
1217      *"
1218"with_$ac_useropt"
1219"*) ;;
1220      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1221	 ac_unrecognized_sep=', ';;
1222    esac
1223    eval with_$ac_useropt=no ;;
1224
1225  --x)
1226    # Obsolete; use --with-x.
1227    with_x=yes ;;
1228
1229  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1230  | --x-incl | --x-inc | --x-in | --x-i)
1231    ac_prev=x_includes ;;
1232  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1233  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1234    x_includes=$ac_optarg ;;
1235
1236  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1237  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1238    ac_prev=x_libraries ;;
1239  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1240  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1241    x_libraries=$ac_optarg ;;
1242
1243  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1244Try \`$0 --help' for more information"
1245    ;;
1246
1247  *=*)
1248    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1249    # Reject names that are not valid shell variable names.
1250    case $ac_envvar in #(
1251      '' | [0-9]* | *[!_$as_cr_alnum]* )
1252      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1253    esac
1254    eval $ac_envvar=\$ac_optarg
1255    export $ac_envvar ;;
1256
1257  *)
1258    # FIXME: should be removed in autoconf 3.0.
1259    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1260    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1261      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1262    : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1263    ;;
1264
1265  esac
1266done
1267
1268if test -n "$ac_prev"; then
1269  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1270  as_fn_error $? "missing argument to $ac_option"
1271fi
1272
1273if test -n "$ac_unrecognized_opts"; then
1274  case $enable_option_checking in
1275    no) ;;
1276    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1277    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1278  esac
1279fi
1280
1281# Check all directory arguments for consistency.
1282for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1283		datadir sysconfdir sharedstatedir localstatedir includedir \
1284		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1285		libdir localedir mandir runstatedir
1286do
1287  eval ac_val=\$$ac_var
1288  # Remove trailing slashes.
1289  case $ac_val in
1290    */ )
1291      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1292      eval $ac_var=\$ac_val;;
1293  esac
1294  # Be sure to have absolute directory names.
1295  case $ac_val in
1296    [\\/$]* | ?:[\\/]* )  continue;;
1297    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1298  esac
1299  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1300done
1301
1302# There might be people who depend on the old broken behavior: `$host'
1303# used to hold the argument of --host etc.
1304# FIXME: To remove some day.
1305build=$build_alias
1306host=$host_alias
1307target=$target_alias
1308
1309# FIXME: To remove some day.
1310if test "x$host_alias" != x; then
1311  if test "x$build_alias" = x; then
1312    cross_compiling=maybe
1313  elif test "x$build_alias" != "x$host_alias"; then
1314    cross_compiling=yes
1315  fi
1316fi
1317
1318ac_tool_prefix=
1319test -n "$host_alias" && ac_tool_prefix=$host_alias-
1320
1321test "$silent" = yes && exec 6>/dev/null
1322
1323
1324ac_pwd=`pwd` && test -n "$ac_pwd" &&
1325ac_ls_di=`ls -di .` &&
1326ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1327  as_fn_error $? "working directory cannot be determined"
1328test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1329  as_fn_error $? "pwd does not report name of working directory"
1330
1331
1332# Find the source files, if location was not specified.
1333if test -z "$srcdir"; then
1334  ac_srcdir_defaulted=yes
1335  # Try the directory containing this script, then the parent directory.
1336  ac_confdir=`$as_dirname -- "$as_myself" ||
1337$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1338	 X"$as_myself" : 'X\(//\)[^/]' \| \
1339	 X"$as_myself" : 'X\(//\)$' \| \
1340	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1341$as_echo X"$as_myself" |
1342    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1343	    s//\1/
1344	    q
1345	  }
1346	  /^X\(\/\/\)[^/].*/{
1347	    s//\1/
1348	    q
1349	  }
1350	  /^X\(\/\/\)$/{
1351	    s//\1/
1352	    q
1353	  }
1354	  /^X\(\/\).*/{
1355	    s//\1/
1356	    q
1357	  }
1358	  s/.*/./; q'`
1359  srcdir=$ac_confdir
1360  if test ! -r "$srcdir/$ac_unique_file"; then
1361    srcdir=..
1362  fi
1363else
1364  ac_srcdir_defaulted=no
1365fi
1366if test ! -r "$srcdir/$ac_unique_file"; then
1367  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1368  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1369fi
1370ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1371ac_abs_confdir=`(
1372	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1373	pwd)`
1374# When building in place, set srcdir=.
1375if test "$ac_abs_confdir" = "$ac_pwd"; then
1376  srcdir=.
1377fi
1378# Remove unnecessary trailing slashes from srcdir.
1379# Double slashes in file names in object file debugging info
1380# mess up M-x gdb in Emacs.
1381case $srcdir in
1382*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1383esac
1384for ac_var in $ac_precious_vars; do
1385  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1386  eval ac_env_${ac_var}_value=\$${ac_var}
1387  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1388  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1389done
1390
1391#
1392# Report the --help message.
1393#
1394if test "$ac_init_help" = "long"; then
1395  # Omit some internal or obsolete options to make the list less imposing.
1396  # This message is too long to be a string in the A/UX 3.1 sh.
1397  cat <<_ACEOF
1398\`configure' configures Protocol Buffers 3.14.0 to adapt to many kinds of systems.
1399
1400Usage: $0 [OPTION]... [VAR=VALUE]...
1401
1402To assign environment variables (e.g., CC, CFLAGS...), specify them as
1403VAR=VALUE.  See below for descriptions of some of the useful variables.
1404
1405Defaults for the options are specified in brackets.
1406
1407Configuration:
1408  -h, --help              display this help and exit
1409      --help=short        display options specific to this package
1410      --help=recursive    display the short help of all the included packages
1411  -V, --version           display version information and exit
1412  -q, --quiet, --silent   do not print \`checking ...' messages
1413      --cache-file=FILE   cache test results in FILE [disabled]
1414  -C, --config-cache      alias for \`--cache-file=config.cache'
1415  -n, --no-create         do not create output files
1416      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1417
1418Installation directories:
1419  --prefix=PREFIX         install architecture-independent files in PREFIX
1420                          [$ac_default_prefix]
1421  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1422                          [PREFIX]
1423
1424By default, \`make install' will install all the files in
1425\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1426an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1427for instance \`--prefix=\$HOME'.
1428
1429For better control, use the options below.
1430
1431Fine tuning of the installation directories:
1432  --bindir=DIR            user executables [EPREFIX/bin]
1433  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1434  --libexecdir=DIR        program executables [EPREFIX/libexec]
1435  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1436  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1437  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1438  --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1439  --libdir=DIR            object code libraries [EPREFIX/lib]
1440  --includedir=DIR        C header files [PREFIX/include]
1441  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1442  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1443  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1444  --infodir=DIR           info documentation [DATAROOTDIR/info]
1445  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1446  --mandir=DIR            man documentation [DATAROOTDIR/man]
1447  --docdir=DIR            documentation root [DATAROOTDIR/doc/protobuf]
1448  --htmldir=DIR           html documentation [DOCDIR]
1449  --dvidir=DIR            dvi documentation [DOCDIR]
1450  --pdfdir=DIR            pdf documentation [DOCDIR]
1451  --psdir=DIR             ps documentation [DOCDIR]
1452_ACEOF
1453
1454  cat <<\_ACEOF
1455
1456Program names:
1457  --program-prefix=PREFIX            prepend PREFIX to installed program names
1458  --program-suffix=SUFFIX            append SUFFIX to installed program names
1459  --program-transform-name=PROGRAM   run sed PROGRAM on installed program names
1460
1461System types:
1462  --build=BUILD     configure for building on BUILD [guessed]
1463  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1464  --target=TARGET   configure for building compilers for TARGET [HOST]
1465_ACEOF
1466fi
1467
1468if test -n "$ac_init_help"; then
1469  case $ac_init_help in
1470     short | recursive ) echo "Configuration of Protocol Buffers 3.14.0:";;
1471   esac
1472  cat <<\_ACEOF
1473
1474Optional Features:
1475  --disable-option-checking  ignore unrecognized --enable/--with options
1476  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1477  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1478  --disable-maintainer-mode
1479                          disable make rules and dependencies not useful (and
1480                          sometimes confusing) to the casual installer
1481  --enable-silent-rules   less verbose build output (undo: "make V=1")
1482  --disable-silent-rules  verbose build output (undo: "make V=0")
1483  --enable-dependency-tracking
1484                          do not reject slow dependency extractors
1485  --disable-dependency-tracking
1486                          speeds up one-time build
1487  --disable-64bit-solaris Build 64 bit binary on Solaris [default=on]
1488  --enable-shared[=PKGS]  build shared libraries [default=yes]
1489  --enable-static[=PKGS]  build static libraries [default=yes]
1490  --enable-fast-install[=PKGS]
1491                          optimize for fast installation [default=yes]
1492  --disable-libtool-lock  avoid locking (might break parallel builds)
1493
1494Optional Packages:
1495  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1496  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1497  --with-zlib             include classes for streaming compressed data in and
1498                          out [default=check]
1499  --with-zlib-include=PATH
1500                          zlib include directory
1501  --with-zlib-lib=PATH    zlib lib directory
1502  --with-protoc=COMMAND   use the given protoc command instead of building a
1503                          new one when building tests (useful for
1504                          cross-compiling)
1505  --with-pic[=PKGS]       try to use only PIC/non-PIC objects [default=use
1506                          both]
1507  --with-aix-soname=aix|svr4|both
1508                          shared library versioning (aka "SONAME") variant to
1509                          provide on AIX, [default=aix].
1510  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1511  --with-sysroot[=DIR]    Search for dependent libraries within DIR (or the
1512                          compiler's sysroot if not specified).
1513
1514Some influential environment variables:
1515  DIST_LANG   language to include in the distribution package (i.e., make
1516              dist)
1517  CC          C compiler command
1518  CFLAGS      C compiler flags
1519  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1520              nonstandard directory <lib dir>
1521  LIBS        libraries to pass to the linker, e.g. -l<library>
1522  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1523              you have headers in a nonstandard directory <include dir>
1524  CXX         C++ compiler command
1525  CXXFLAGS    C++ compiler flags
1526  CPP         C preprocessor
1527  CXXCPP      C++ preprocessor
1528  OBJC        Objective C compiler command
1529  OBJCFLAGS   Objective C compiler flags
1530  LT_SYS_LIBRARY_PATH
1531              User-defined run-time library search path.
1532
1533Use these variables to override the choices made by `configure' or to help
1534it to find libraries and programs with nonstandard names/locations.
1535
1536Report bugs to <protobuf@googlegroups.com>.
1537_ACEOF
1538ac_status=$?
1539fi
1540
1541if test "$ac_init_help" = "recursive"; then
1542  # If there are subdirs, report their specific --help.
1543  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1544    test -d "$ac_dir" ||
1545      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1546      continue
1547    ac_builddir=.
1548
1549case "$ac_dir" in
1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1551*)
1552  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1553  # A ".." for each directory in $ac_dir_suffix.
1554  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1555  case $ac_top_builddir_sub in
1556  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1557  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1558  esac ;;
1559esac
1560ac_abs_top_builddir=$ac_pwd
1561ac_abs_builddir=$ac_pwd$ac_dir_suffix
1562# for backward compatibility:
1563ac_top_builddir=$ac_top_build_prefix
1564
1565case $srcdir in
1566  .)  # We are building in place.
1567    ac_srcdir=.
1568    ac_top_srcdir=$ac_top_builddir_sub
1569    ac_abs_top_srcdir=$ac_pwd ;;
1570  [\\/]* | ?:[\\/]* )  # Absolute name.
1571    ac_srcdir=$srcdir$ac_dir_suffix;
1572    ac_top_srcdir=$srcdir
1573    ac_abs_top_srcdir=$srcdir ;;
1574  *) # Relative name.
1575    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1576    ac_top_srcdir=$ac_top_build_prefix$srcdir
1577    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1578esac
1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1580
1581    cd "$ac_dir" || { ac_status=$?; continue; }
1582    # Check for guested configure.
1583    if test -f "$ac_srcdir/configure.gnu"; then
1584      echo &&
1585      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1586    elif test -f "$ac_srcdir/configure"; then
1587      echo &&
1588      $SHELL "$ac_srcdir/configure" --help=recursive
1589    else
1590      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1591    fi || ac_status=$?
1592    cd "$ac_pwd" || { ac_status=$?; break; }
1593  done
1594fi
1595
1596test -n "$ac_init_help" && exit $ac_status
1597if $ac_init_version; then
1598  cat <<\_ACEOF
1599Protocol Buffers configure 3.14.0
1600generated by GNU Autoconf 2.69
1601
1602Copyright (C) 2012 Free Software Foundation, Inc.
1603This configure script is free software; the Free Software Foundation
1604gives unlimited permission to copy, distribute and modify it.
1605_ACEOF
1606  exit
1607fi
1608
1609## ------------------------ ##
1610## Autoconf initialization. ##
1611## ------------------------ ##
1612
1613# ac_fn_c_try_compile LINENO
1614# --------------------------
1615# Try to compile conftest.$ac_ext, and return whether this succeeded.
1616ac_fn_c_try_compile ()
1617{
1618  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1619  rm -f conftest.$ac_objext
1620  if { { ac_try="$ac_compile"
1621case "(($ac_try" in
1622  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1623  *) ac_try_echo=$ac_try;;
1624esac
1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1626$as_echo "$ac_try_echo"; } >&5
1627  (eval "$ac_compile") 2>conftest.err
1628  ac_status=$?
1629  if test -s conftest.err; then
1630    grep -v '^ *+' conftest.err >conftest.er1
1631    cat conftest.er1 >&5
1632    mv -f conftest.er1 conftest.err
1633  fi
1634  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1635  test $ac_status = 0; } && {
1636	 test -z "$ac_c_werror_flag" ||
1637	 test ! -s conftest.err
1638       } && test -s conftest.$ac_objext; then :
1639  ac_retval=0
1640else
1641  $as_echo "$as_me: failed program was:" >&5
1642sed 's/^/| /' conftest.$ac_ext >&5
1643
1644	ac_retval=1
1645fi
1646  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1647  as_fn_set_status $ac_retval
1648
1649} # ac_fn_c_try_compile
1650
1651# ac_fn_cxx_try_compile LINENO
1652# ----------------------------
1653# Try to compile conftest.$ac_ext, and return whether this succeeded.
1654ac_fn_cxx_try_compile ()
1655{
1656  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1657  rm -f conftest.$ac_objext
1658  if { { ac_try="$ac_compile"
1659case "(($ac_try" in
1660  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1661  *) ac_try_echo=$ac_try;;
1662esac
1663eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1664$as_echo "$ac_try_echo"; } >&5
1665  (eval "$ac_compile") 2>conftest.err
1666  ac_status=$?
1667  if test -s conftest.err; then
1668    grep -v '^ *+' conftest.err >conftest.er1
1669    cat conftest.er1 >&5
1670    mv -f conftest.er1 conftest.err
1671  fi
1672  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1673  test $ac_status = 0; } && {
1674	 test -z "$ac_cxx_werror_flag" ||
1675	 test ! -s conftest.err
1676       } && test -s conftest.$ac_objext; then :
1677  ac_retval=0
1678else
1679  $as_echo "$as_me: failed program was:" >&5
1680sed 's/^/| /' conftest.$ac_ext >&5
1681
1682	ac_retval=1
1683fi
1684  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1685  as_fn_set_status $ac_retval
1686
1687} # ac_fn_cxx_try_compile
1688
1689# ac_fn_c_try_cpp LINENO
1690# ----------------------
1691# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1692ac_fn_c_try_cpp ()
1693{
1694  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1695  if { { ac_try="$ac_cpp conftest.$ac_ext"
1696case "(($ac_try" in
1697  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1698  *) ac_try_echo=$ac_try;;
1699esac
1700eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1701$as_echo "$ac_try_echo"; } >&5
1702  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1703  ac_status=$?
1704  if test -s conftest.err; then
1705    grep -v '^ *+' conftest.err >conftest.er1
1706    cat conftest.er1 >&5
1707    mv -f conftest.er1 conftest.err
1708  fi
1709  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1710  test $ac_status = 0; } > conftest.i && {
1711	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1712	 test ! -s conftest.err
1713       }; then :
1714  ac_retval=0
1715else
1716  $as_echo "$as_me: failed program was:" >&5
1717sed 's/^/| /' conftest.$ac_ext >&5
1718
1719    ac_retval=1
1720fi
1721  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1722  as_fn_set_status $ac_retval
1723
1724} # ac_fn_c_try_cpp
1725
1726# ac_fn_cxx_try_cpp LINENO
1727# ------------------------
1728# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1729ac_fn_cxx_try_cpp ()
1730{
1731  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1732  if { { ac_try="$ac_cpp conftest.$ac_ext"
1733case "(($ac_try" in
1734  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1735  *) ac_try_echo=$ac_try;;
1736esac
1737eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1738$as_echo "$ac_try_echo"; } >&5
1739  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1740  ac_status=$?
1741  if test -s conftest.err; then
1742    grep -v '^ *+' conftest.err >conftest.er1
1743    cat conftest.er1 >&5
1744    mv -f conftest.er1 conftest.err
1745  fi
1746  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1747  test $ac_status = 0; } > conftest.i && {
1748	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1749	 test ! -s conftest.err
1750       }; then :
1751  ac_retval=0
1752else
1753  $as_echo "$as_me: failed program was:" >&5
1754sed 's/^/| /' conftest.$ac_ext >&5
1755
1756    ac_retval=1
1757fi
1758  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1759  as_fn_set_status $ac_retval
1760
1761} # ac_fn_cxx_try_cpp
1762
1763# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1764# ---------------------------------------------------------
1765# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1766# the include files in INCLUDES and setting the cache variable VAR
1767# accordingly.
1768ac_fn_cxx_check_header_mongrel ()
1769{
1770  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1771  if eval \${$3+:} false; then :
1772  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1773$as_echo_n "checking for $2... " >&6; }
1774if eval \${$3+:} false; then :
1775  $as_echo_n "(cached) " >&6
1776fi
1777eval ac_res=\$$3
1778	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1779$as_echo "$ac_res" >&6; }
1780else
1781  # Is the header compilable?
1782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1783$as_echo_n "checking $2 usability... " >&6; }
1784cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1785/* end confdefs.h.  */
1786$4
1787#include <$2>
1788_ACEOF
1789if ac_fn_cxx_try_compile "$LINENO"; then :
1790  ac_header_compiler=yes
1791else
1792  ac_header_compiler=no
1793fi
1794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1795{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1796$as_echo "$ac_header_compiler" >&6; }
1797
1798# Is the header present?
1799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1800$as_echo_n "checking $2 presence... " >&6; }
1801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1802/* end confdefs.h.  */
1803#include <$2>
1804_ACEOF
1805if ac_fn_cxx_try_cpp "$LINENO"; then :
1806  ac_header_preproc=yes
1807else
1808  ac_header_preproc=no
1809fi
1810rm -f conftest.err conftest.i conftest.$ac_ext
1811{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1812$as_echo "$ac_header_preproc" >&6; }
1813
1814# So?  What about this header?
1815case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1816  yes:no: )
1817    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1818$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1819    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1820$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1821    ;;
1822  no:yes:* )
1823    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1824$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1825    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1826$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1827    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1828$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1829    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1830$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1831    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1832$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1833( $as_echo "## ---------------------------------------- ##
1834## Report this to protobuf@googlegroups.com ##
1835## ---------------------------------------- ##"
1836     ) | sed "s/^/$as_me: WARNING:     /" >&2
1837    ;;
1838esac
1839  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1840$as_echo_n "checking for $2... " >&6; }
1841if eval \${$3+:} false; then :
1842  $as_echo_n "(cached) " >&6
1843else
1844  eval "$3=\$ac_header_compiler"
1845fi
1846eval ac_res=\$$3
1847	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1848$as_echo "$ac_res" >&6; }
1849fi
1850  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1851
1852} # ac_fn_cxx_check_header_mongrel
1853
1854# ac_fn_cxx_try_run LINENO
1855# ------------------------
1856# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1857# that executables *can* be run.
1858ac_fn_cxx_try_run ()
1859{
1860  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1861  if { { ac_try="$ac_link"
1862case "(($ac_try" in
1863  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864  *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868  (eval "$ac_link") 2>&5
1869  ac_status=$?
1870  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1872  { { case "(($ac_try" in
1873  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1874  *) ac_try_echo=$ac_try;;
1875esac
1876eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1877$as_echo "$ac_try_echo"; } >&5
1878  (eval "$ac_try") 2>&5
1879  ac_status=$?
1880  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1881  test $ac_status = 0; }; }; then :
1882  ac_retval=0
1883else
1884  $as_echo "$as_me: program exited with status $ac_status" >&5
1885       $as_echo "$as_me: failed program was:" >&5
1886sed 's/^/| /' conftest.$ac_ext >&5
1887
1888       ac_retval=$ac_status
1889fi
1890  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892  as_fn_set_status $ac_retval
1893
1894} # ac_fn_cxx_try_run
1895
1896# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1897# ---------------------------------------------------------
1898# Tests whether HEADER exists and can be compiled using the include files in
1899# INCLUDES, setting the cache variable VAR accordingly.
1900ac_fn_cxx_check_header_compile ()
1901{
1902  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1903  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1904$as_echo_n "checking for $2... " >&6; }
1905if eval \${$3+:} false; then :
1906  $as_echo_n "(cached) " >&6
1907else
1908  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1909/* end confdefs.h.  */
1910$4
1911#include <$2>
1912_ACEOF
1913if ac_fn_cxx_try_compile "$LINENO"; then :
1914  eval "$3=yes"
1915else
1916  eval "$3=no"
1917fi
1918rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1919fi
1920eval ac_res=\$$3
1921	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1922$as_echo "$ac_res" >&6; }
1923  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1924
1925} # ac_fn_cxx_check_header_compile
1926
1927# ac_fn_objc_try_compile LINENO
1928# -----------------------------
1929# Try to compile conftest.$ac_ext, and return whether this succeeded.
1930ac_fn_objc_try_compile ()
1931{
1932  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1933  rm -f conftest.$ac_objext
1934  if { { ac_try="$ac_compile"
1935case "(($ac_try" in
1936  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1937  *) ac_try_echo=$ac_try;;
1938esac
1939eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1940$as_echo "$ac_try_echo"; } >&5
1941  (eval "$ac_compile") 2>conftest.err
1942  ac_status=$?
1943  if test -s conftest.err; then
1944    grep -v '^ *+' conftest.err >conftest.er1
1945    cat conftest.er1 >&5
1946    mv -f conftest.er1 conftest.err
1947  fi
1948  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1949  test $ac_status = 0; } && {
1950	 test -z "$ac_objc_werror_flag" ||
1951	 test ! -s conftest.err
1952       } && test -s conftest.$ac_objext; then :
1953  ac_retval=0
1954else
1955  $as_echo "$as_me: failed program was:" >&5
1956sed 's/^/| /' conftest.$ac_ext >&5
1957
1958	ac_retval=1
1959fi
1960  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1961  as_fn_set_status $ac_retval
1962
1963} # ac_fn_objc_try_compile
1964
1965# ac_fn_cxx_check_decl LINENO SYMBOL VAR INCLUDES
1966# -----------------------------------------------
1967# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
1968# accordingly.
1969ac_fn_cxx_check_decl ()
1970{
1971  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1972  as_decl_name=`echo $2|sed 's/ *(.*//'`
1973  as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
1974  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
1975$as_echo_n "checking whether $as_decl_name is declared... " >&6; }
1976if eval \${$3+:} false; then :
1977  $as_echo_n "(cached) " >&6
1978else
1979  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1980/* end confdefs.h.  */
1981$4
1982int
1983main ()
1984{
1985#ifndef $as_decl_name
1986#ifdef __cplusplus
1987  (void) $as_decl_use;
1988#else
1989  (void) $as_decl_name;
1990#endif
1991#endif
1992
1993  ;
1994  return 0;
1995}
1996_ACEOF
1997if ac_fn_cxx_try_compile "$LINENO"; then :
1998  eval "$3=yes"
1999else
2000  eval "$3=no"
2001fi
2002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003fi
2004eval ac_res=\$$3
2005	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006$as_echo "$ac_res" >&6; }
2007  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2008
2009} # ac_fn_cxx_check_decl
2010
2011# ac_fn_c_try_link LINENO
2012# -----------------------
2013# Try to link conftest.$ac_ext, and return whether this succeeded.
2014ac_fn_c_try_link ()
2015{
2016  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2017  rm -f conftest.$ac_objext conftest$ac_exeext
2018  if { { ac_try="$ac_link"
2019case "(($ac_try" in
2020  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2021  *) ac_try_echo=$ac_try;;
2022esac
2023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2024$as_echo "$ac_try_echo"; } >&5
2025  (eval "$ac_link") 2>conftest.err
2026  ac_status=$?
2027  if test -s conftest.err; then
2028    grep -v '^ *+' conftest.err >conftest.er1
2029    cat conftest.er1 >&5
2030    mv -f conftest.er1 conftest.err
2031  fi
2032  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2033  test $ac_status = 0; } && {
2034	 test -z "$ac_c_werror_flag" ||
2035	 test ! -s conftest.err
2036       } && test -s conftest$ac_exeext && {
2037	 test "$cross_compiling" = yes ||
2038	 test -x conftest$ac_exeext
2039       }; then :
2040  ac_retval=0
2041else
2042  $as_echo "$as_me: failed program was:" >&5
2043sed 's/^/| /' conftest.$ac_ext >&5
2044
2045	ac_retval=1
2046fi
2047  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2048  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2049  # interfere with the next link command; also delete a directory that is
2050  # left behind by Apple's compiler.  We do this before executing the actions.
2051  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2052  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053  as_fn_set_status $ac_retval
2054
2055} # ac_fn_c_try_link
2056
2057# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2058# -------------------------------------------------------
2059# Tests whether HEADER exists and can be compiled using the include files in
2060# INCLUDES, setting the cache variable VAR accordingly.
2061ac_fn_c_check_header_compile ()
2062{
2063  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2064  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065$as_echo_n "checking for $2... " >&6; }
2066if eval \${$3+:} false; then :
2067  $as_echo_n "(cached) " >&6
2068else
2069  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070/* end confdefs.h.  */
2071$4
2072#include <$2>
2073_ACEOF
2074if ac_fn_c_try_compile "$LINENO"; then :
2075  eval "$3=yes"
2076else
2077  eval "$3=no"
2078fi
2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2080fi
2081eval ac_res=\$$3
2082	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2083$as_echo "$ac_res" >&6; }
2084  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2085
2086} # ac_fn_c_check_header_compile
2087
2088# ac_fn_c_check_func LINENO FUNC VAR
2089# ----------------------------------
2090# Tests whether FUNC exists, setting the cache variable VAR accordingly
2091ac_fn_c_check_func ()
2092{
2093  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2094  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2095$as_echo_n "checking for $2... " >&6; }
2096if eval \${$3+:} false; then :
2097  $as_echo_n "(cached) " >&6
2098else
2099  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2100/* end confdefs.h.  */
2101/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2102   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2103#define $2 innocuous_$2
2104
2105/* System header to define __stub macros and hopefully few prototypes,
2106    which can conflict with char $2 (); below.
2107    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2108    <limits.h> exists even on freestanding compilers.  */
2109
2110#ifdef __STDC__
2111# include <limits.h>
2112#else
2113# include <assert.h>
2114#endif
2115
2116#undef $2
2117
2118/* Override any GCC internal prototype to avoid an error.
2119   Use char because int might match the return type of a GCC
2120   builtin and then its argument prototype would still apply.  */
2121#ifdef __cplusplus
2122extern "C"
2123#endif
2124char $2 ();
2125/* The GNU C library defines this for functions which it implements
2126    to always fail with ENOSYS.  Some functions are actually named
2127    something starting with __ and the normal name is an alias.  */
2128#if defined __stub_$2 || defined __stub___$2
2129choke me
2130#endif
2131
2132int
2133main ()
2134{
2135return $2 ();
2136  ;
2137  return 0;
2138}
2139_ACEOF
2140if ac_fn_c_try_link "$LINENO"; then :
2141  eval "$3=yes"
2142else
2143  eval "$3=no"
2144fi
2145rm -f core conftest.err conftest.$ac_objext \
2146    conftest$ac_exeext conftest.$ac_ext
2147fi
2148eval ac_res=\$$3
2149	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2150$as_echo "$ac_res" >&6; }
2151  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2152
2153} # ac_fn_c_check_func
2154
2155# ac_fn_cxx_try_link LINENO
2156# -------------------------
2157# Try to link conftest.$ac_ext, and return whether this succeeded.
2158ac_fn_cxx_try_link ()
2159{
2160  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161  rm -f conftest.$ac_objext conftest$ac_exeext
2162  if { { ac_try="$ac_link"
2163case "(($ac_try" in
2164  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2165  *) ac_try_echo=$ac_try;;
2166esac
2167eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2168$as_echo "$ac_try_echo"; } >&5
2169  (eval "$ac_link") 2>conftest.err
2170  ac_status=$?
2171  if test -s conftest.err; then
2172    grep -v '^ *+' conftest.err >conftest.er1
2173    cat conftest.er1 >&5
2174    mv -f conftest.er1 conftest.err
2175  fi
2176  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2177  test $ac_status = 0; } && {
2178	 test -z "$ac_cxx_werror_flag" ||
2179	 test ! -s conftest.err
2180       } && test -s conftest$ac_exeext && {
2181	 test "$cross_compiling" = yes ||
2182	 test -x conftest$ac_exeext
2183       }; then :
2184  ac_retval=0
2185else
2186  $as_echo "$as_me: failed program was:" >&5
2187sed 's/^/| /' conftest.$ac_ext >&5
2188
2189	ac_retval=1
2190fi
2191  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2192  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2193  # interfere with the next link command; also delete a directory that is
2194  # left behind by Apple's compiler.  We do this before executing the actions.
2195  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2196  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2197  as_fn_set_status $ac_retval
2198
2199} # ac_fn_cxx_try_link
2200
2201# ac_fn_cxx_check_func LINENO FUNC VAR
2202# ------------------------------------
2203# Tests whether FUNC exists, setting the cache variable VAR accordingly
2204ac_fn_cxx_check_func ()
2205{
2206  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208$as_echo_n "checking for $2... " >&6; }
2209if eval \${$3+:} false; then :
2210  $as_echo_n "(cached) " >&6
2211else
2212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213/* end confdefs.h.  */
2214/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2215   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2216#define $2 innocuous_$2
2217
2218/* System header to define __stub macros and hopefully few prototypes,
2219    which can conflict with char $2 (); below.
2220    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2221    <limits.h> exists even on freestanding compilers.  */
2222
2223#ifdef __STDC__
2224# include <limits.h>
2225#else
2226# include <assert.h>
2227#endif
2228
2229#undef $2
2230
2231/* Override any GCC internal prototype to avoid an error.
2232   Use char because int might match the return type of a GCC
2233   builtin and then its argument prototype would still apply.  */
2234#ifdef __cplusplus
2235extern "C"
2236#endif
2237char $2 ();
2238/* The GNU C library defines this for functions which it implements
2239    to always fail with ENOSYS.  Some functions are actually named
2240    something starting with __ and the normal name is an alias.  */
2241#if defined __stub_$2 || defined __stub___$2
2242choke me
2243#endif
2244
2245int
2246main ()
2247{
2248return $2 ();
2249  ;
2250  return 0;
2251}
2252_ACEOF
2253if ac_fn_cxx_try_link "$LINENO"; then :
2254  eval "$3=yes"
2255else
2256  eval "$3=no"
2257fi
2258rm -f core conftest.err conftest.$ac_objext \
2259    conftest$ac_exeext conftest.$ac_ext
2260fi
2261eval ac_res=\$$3
2262	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263$as_echo "$ac_res" >&6; }
2264  eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2265
2266} # ac_fn_cxx_check_func
2267cat >config.log <<_ACEOF
2268This file contains any messages produced by compilers while
2269running configure, to aid debugging if configure makes a mistake.
2270
2271It was created by Protocol Buffers $as_me 3.14.0, which was
2272generated by GNU Autoconf 2.69.  Invocation command line was
2273
2274  $ $0 $@
2275
2276_ACEOF
2277exec 5>>config.log
2278{
2279cat <<_ASUNAME
2280## --------- ##
2281## Platform. ##
2282## --------- ##
2283
2284hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288uname -v = `(uname -v) 2>/dev/null || echo unknown`
2289
2290/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
2292
2293/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
2294/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
2295/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
2297/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
2298/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
2299/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
2300
2301_ASUNAME
2302
2303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304for as_dir in $PATH
2305do
2306  IFS=$as_save_IFS
2307  test -z "$as_dir" && as_dir=.
2308    $as_echo "PATH: $as_dir"
2309  done
2310IFS=$as_save_IFS
2311
2312} >&5
2313
2314cat >&5 <<_ACEOF
2315
2316
2317## ----------- ##
2318## Core tests. ##
2319## ----------- ##
2320
2321_ACEOF
2322
2323
2324# Keep a trace of the command line.
2325# Strip out --no-create and --no-recursion so they do not pile up.
2326# Strip out --silent because we don't want to record it for future runs.
2327# Also quote any args containing shell meta-characters.
2328# Make two passes to allow for proper duplicate-argument suppression.
2329ac_configure_args=
2330ac_configure_args0=
2331ac_configure_args1=
2332ac_must_keep_next=false
2333for ac_pass in 1 2
2334do
2335  for ac_arg
2336  do
2337    case $ac_arg in
2338    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340    | -silent | --silent | --silen | --sile | --sil)
2341      continue ;;
2342    *\'*)
2343      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344    esac
2345    case $ac_pass in
2346    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2347    2)
2348      as_fn_append ac_configure_args1 " '$ac_arg'"
2349      if test $ac_must_keep_next = true; then
2350	ac_must_keep_next=false # Got value, back to normal.
2351      else
2352	case $ac_arg in
2353	  *=* | --config-cache | -C | -disable-* | --disable-* \
2354	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356	  | -with-* | --with-* | -without-* | --without-* | --x)
2357	    case "$ac_configure_args0 " in
2358	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359	    esac
2360	    ;;
2361	  -* ) ac_must_keep_next=true ;;
2362	esac
2363      fi
2364      as_fn_append ac_configure_args " '$ac_arg'"
2365      ;;
2366    esac
2367  done
2368done
2369{ ac_configure_args0=; unset ac_configure_args0;}
2370{ ac_configure_args1=; unset ac_configure_args1;}
2371
2372# When interrupted or exit'd, cleanup temporary files, and complete
2373# config.log.  We remove comments because anyway the quotes in there
2374# would cause problems or look ugly.
2375# WARNING: Use '\'' to represent an apostrophe within the trap.
2376# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377trap 'exit_status=$?
2378  # Save into config.log some information that might help in debugging.
2379  {
2380    echo
2381
2382    $as_echo "## ---------------- ##
2383## Cache variables. ##
2384## ---------------- ##"
2385    echo
2386    # The following way of writing the cache mishandles newlines in values,
2387(
2388  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389    eval ac_val=\$$ac_var
2390    case $ac_val in #(
2391    *${as_nl}*)
2392      case $ac_var in #(
2393      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395      esac
2396      case $ac_var in #(
2397      _ | IFS | as_nl) ;; #(
2398      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399      *) { eval $ac_var=; unset $ac_var;} ;;
2400      esac ;;
2401    esac
2402  done
2403  (set) 2>&1 |
2404    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405    *${as_nl}ac_space=\ *)
2406      sed -n \
2407	"s/'\''/'\''\\\\'\'''\''/g;
2408	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409      ;; #(
2410    *)
2411      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2412      ;;
2413    esac |
2414    sort
2415)
2416    echo
2417
2418    $as_echo "## ----------------- ##
2419## Output variables. ##
2420## ----------------- ##"
2421    echo
2422    for ac_var in $ac_subst_vars
2423    do
2424      eval ac_val=\$$ac_var
2425      case $ac_val in
2426      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427      esac
2428      $as_echo "$ac_var='\''$ac_val'\''"
2429    done | sort
2430    echo
2431
2432    if test -n "$ac_subst_files"; then
2433      $as_echo "## ------------------- ##
2434## File substitutions. ##
2435## ------------------- ##"
2436      echo
2437      for ac_var in $ac_subst_files
2438      do
2439	eval ac_val=\$$ac_var
2440	case $ac_val in
2441	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442	esac
2443	$as_echo "$ac_var='\''$ac_val'\''"
2444      done | sort
2445      echo
2446    fi
2447
2448    if test -s confdefs.h; then
2449      $as_echo "## ----------- ##
2450## confdefs.h. ##
2451## ----------- ##"
2452      echo
2453      cat confdefs.h
2454      echo
2455    fi
2456    test "$ac_signal" != 0 &&
2457      $as_echo "$as_me: caught signal $ac_signal"
2458    $as_echo "$as_me: exit $exit_status"
2459  } >&5
2460  rm -f core *.core core.conftest.* &&
2461    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462    exit $exit_status
2463' 0
2464for ac_signal in 1 2 13 15; do
2465  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466done
2467ac_signal=0
2468
2469# confdefs.h avoids OS command line length limits that DEFS can exceed.
2470rm -f -r conftest* confdefs.h
2471
2472$as_echo "/* confdefs.h */" > confdefs.h
2473
2474# Predefined preprocessor variables.
2475
2476cat >>confdefs.h <<_ACEOF
2477#define PACKAGE_NAME "$PACKAGE_NAME"
2478_ACEOF
2479
2480cat >>confdefs.h <<_ACEOF
2481#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482_ACEOF
2483
2484cat >>confdefs.h <<_ACEOF
2485#define PACKAGE_VERSION "$PACKAGE_VERSION"
2486_ACEOF
2487
2488cat >>confdefs.h <<_ACEOF
2489#define PACKAGE_STRING "$PACKAGE_STRING"
2490_ACEOF
2491
2492cat >>confdefs.h <<_ACEOF
2493#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494_ACEOF
2495
2496cat >>confdefs.h <<_ACEOF
2497#define PACKAGE_URL "$PACKAGE_URL"
2498_ACEOF
2499
2500
2501# Let the site file select an alternate cache file if it wants to.
2502# Prefer an explicitly selected file to automatically selected ones.
2503ac_site_file1=NONE
2504ac_site_file2=NONE
2505if test -n "$CONFIG_SITE"; then
2506  # We do not want a PATH search for config.site.
2507  case $CONFIG_SITE in #((
2508    -*)  ac_site_file1=./$CONFIG_SITE;;
2509    */*) ac_site_file1=$CONFIG_SITE;;
2510    *)   ac_site_file1=./$CONFIG_SITE;;
2511  esac
2512elif test "x$prefix" != xNONE; then
2513  ac_site_file1=$prefix/share/config.site
2514  ac_site_file2=$prefix/etc/config.site
2515else
2516  ac_site_file1=$ac_default_prefix/share/config.site
2517  ac_site_file2=$ac_default_prefix/etc/config.site
2518fi
2519for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2520do
2521  test "x$ac_site_file" = xNONE && continue
2522  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2523    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525    sed 's/^/| /' "$ac_site_file" >&5
2526    . "$ac_site_file" \
2527      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529as_fn_error $? "failed to load site script $ac_site_file
2530See \`config.log' for more details" "$LINENO" 5; }
2531  fi
2532done
2533
2534if test -r "$cache_file"; then
2535  # Some versions of bash will fail to source /dev/null (special files
2536  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2537  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539$as_echo "$as_me: loading cache $cache_file" >&6;}
2540    case $cache_file in
2541      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542      *)                      . "./$cache_file";;
2543    esac
2544  fi
2545else
2546  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547$as_echo "$as_me: creating cache $cache_file" >&6;}
2548  >$cache_file
2549fi
2550
2551# Check that the precious variables saved in the cache have kept the same
2552# value.
2553ac_cache_corrupted=false
2554for ac_var in $ac_precious_vars; do
2555  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2556  eval ac_new_set=\$ac_env_${ac_var}_set
2557  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2558  eval ac_new_val=\$ac_env_${ac_var}_value
2559  case $ac_old_set,$ac_new_set in
2560    set,)
2561      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2562$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2563      ac_cache_corrupted=: ;;
2564    ,set)
2565      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2566$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2567      ac_cache_corrupted=: ;;
2568    ,);;
2569    *)
2570      if test "x$ac_old_val" != "x$ac_new_val"; then
2571	# differences in whitespace do not lead to failure.
2572	ac_old_val_w=`echo x $ac_old_val`
2573	ac_new_val_w=`echo x $ac_new_val`
2574	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2575	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2576$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2577	  ac_cache_corrupted=:
2578	else
2579	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2580$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2581	  eval $ac_var=\$ac_old_val
2582	fi
2583	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2584$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2585	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2586$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2587      fi;;
2588  esac
2589  # Pass precious variables to config.status.
2590  if test "$ac_new_set" = set; then
2591    case $ac_new_val in
2592    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2593    *) ac_arg=$ac_var=$ac_new_val ;;
2594    esac
2595    case " $ac_configure_args " in
2596      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2597      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598    esac
2599  fi
2600done
2601if $ac_cache_corrupted; then
2602  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2605$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2606  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2607fi
2608## -------------------- ##
2609## Main body of script. ##
2610## -------------------- ##
2611
2612ac_ext=c
2613ac_cpp='$CPP $CPPFLAGS'
2614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616ac_compiler_gnu=$ac_cv_c_compiler_gnu
2617
2618
2619
2620
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2622$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2623    # Check whether --enable-maintainer-mode was given.
2624if test "${enable_maintainer_mode+set}" = set; then :
2625  enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2626else
2627  USE_MAINTAINER_MODE=yes
2628fi
2629
2630  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2631$as_echo "$USE_MAINTAINER_MODE" >&6; }
2632   if test $USE_MAINTAINER_MODE = yes; then
2633  MAINTAINER_MODE_TRUE=
2634  MAINTAINER_MODE_FALSE='#'
2635else
2636  MAINTAINER_MODE_TRUE='#'
2637  MAINTAINER_MODE_FALSE=
2638fi
2639
2640  MAINT=$MAINTAINER_MODE_TRUE
2641
2642
2643
2644
2645# The config file is generated but not used by the source code, since we only
2646# need very few of them, e.g. HAVE_PTHREAD and HAVE_ZLIB. Those macros are
2647# passed down in CXXFLAGS manually in src/Makefile.am
2648ac_config_headers="$ac_config_headers config.h"
2649
2650
2651
2652
2653case "$DIST_LANG" in
2654  "") DIST_LANG=all ;;
2655  all | cpp | csharp | java | python | javanano | objectivec | ruby | js | php) ;;
2656  *) { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2657$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2658as_fn_error $? "unknown language: $DIST_LANG
2659See \`config.log' for more details" "$LINENO" 5; } ;;
2660esac
2661
2662
2663# autoconf's default CXXFLAGS are usually "-g -O2".  These aren't necessarily
2664# the best choice for libprotobuf.
2665if test "x${ac_cv_env_CFLAGS_set}" = "x"; then :
2666  CFLAGS=""
2667fi
2668if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
2669  CXXFLAGS=""
2670fi
2671
2672ac_aux_dir=
2673for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2674  if test -f "$ac_dir/install-sh"; then
2675    ac_aux_dir=$ac_dir
2676    ac_install_sh="$ac_aux_dir/install-sh -c"
2677    break
2678  elif test -f "$ac_dir/install.sh"; then
2679    ac_aux_dir=$ac_dir
2680    ac_install_sh="$ac_aux_dir/install.sh -c"
2681    break
2682  elif test -f "$ac_dir/shtool"; then
2683    ac_aux_dir=$ac_dir
2684    ac_install_sh="$ac_aux_dir/shtool install -c"
2685    break
2686  fi
2687done
2688if test -z "$ac_aux_dir"; then
2689  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2690fi
2691
2692# These three variables are undocumented and unsupported,
2693# and are intended to be withdrawn in a future Autoconf release.
2694# They can cause serious problems if a builder's source tree is in a directory
2695# whose full name contains unusual characters.
2696ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
2697ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
2698ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
2699
2700
2701# Make sure we can run config.sub.
2702$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2703  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2704
2705{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2706$as_echo_n "checking build system type... " >&6; }
2707if ${ac_cv_build+:} false; then :
2708  $as_echo_n "(cached) " >&6
2709else
2710  ac_build_alias=$build_alias
2711test "x$ac_build_alias" = x &&
2712  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2713test "x$ac_build_alias" = x &&
2714  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2715ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2716  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2717
2718fi
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2720$as_echo "$ac_cv_build" >&6; }
2721case $ac_cv_build in
2722*-*-*) ;;
2723*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2724esac
2725build=$ac_cv_build
2726ac_save_IFS=$IFS; IFS='-'
2727set x $ac_cv_build
2728shift
2729build_cpu=$1
2730build_vendor=$2
2731shift; shift
2732# Remember, the first character of IFS is used to create $*,
2733# except with old shells:
2734build_os=$*
2735IFS=$ac_save_IFS
2736case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2737
2738
2739{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2740$as_echo_n "checking host system type... " >&6; }
2741if ${ac_cv_host+:} false; then :
2742  $as_echo_n "(cached) " >&6
2743else
2744  if test "x$host_alias" = x; then
2745  ac_cv_host=$ac_cv_build
2746else
2747  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2748    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2749fi
2750
2751fi
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2753$as_echo "$ac_cv_host" >&6; }
2754case $ac_cv_host in
2755*-*-*) ;;
2756*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2757esac
2758host=$ac_cv_host
2759ac_save_IFS=$IFS; IFS='-'
2760set x $ac_cv_host
2761shift
2762host_cpu=$1
2763host_vendor=$2
2764shift; shift
2765# Remember, the first character of IFS is used to create $*,
2766# except with old shells:
2767host_os=$*
2768IFS=$ac_save_IFS
2769case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2770
2771
2772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2773$as_echo_n "checking target system type... " >&6; }
2774if ${ac_cv_target+:} false; then :
2775  $as_echo_n "(cached) " >&6
2776else
2777  if test "x$target_alias" = x; then
2778  ac_cv_target=$ac_cv_host
2779else
2780  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2781    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2782fi
2783
2784fi
2785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2786$as_echo "$ac_cv_target" >&6; }
2787case $ac_cv_target in
2788*-*-*) ;;
2789*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2790esac
2791target=$ac_cv_target
2792ac_save_IFS=$IFS; IFS='-'
2793set x $ac_cv_target
2794shift
2795target_cpu=$1
2796target_vendor=$2
2797shift; shift
2798# Remember, the first character of IFS is used to create $*,
2799# except with old shells:
2800target_os=$*
2801IFS=$ac_save_IFS
2802case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2803
2804
2805# The aliases save the names the user supplied, while $host etc.
2806# will get canonicalized.
2807test -n "$target_alias" &&
2808  test "$program_prefix$program_suffix$program_transform_name" = \
2809    NONENONEs,x,x, &&
2810  program_prefix=${target_alias}-
2811
2812am__api_version='1.16'
2813
2814# Find a good install program.  We prefer a C program (faster),
2815# so one script is as good as another.  But avoid the broken or
2816# incompatible versions:
2817# SysV /etc/install, /usr/sbin/install
2818# SunOS /usr/etc/install
2819# IRIX /sbin/install
2820# AIX /bin/install
2821# AmigaOS /C/install, which installs bootblocks on floppy discs
2822# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2823# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2824# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2825# OS/2's system install, which has a completely different semantic
2826# ./install, which can be erroneously created by make from ./install.sh.
2827# Reject install programs that cannot install multiple files.
2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2829$as_echo_n "checking for a BSD-compatible install... " >&6; }
2830if test -z "$INSTALL"; then
2831if ${ac_cv_path_install+:} false; then :
2832  $as_echo_n "(cached) " >&6
2833else
2834  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2835for as_dir in $PATH
2836do
2837  IFS=$as_save_IFS
2838  test -z "$as_dir" && as_dir=.
2839    # Account for people who put trailing slashes in PATH elements.
2840case $as_dir/ in #((
2841  ./ | .// | /[cC]/* | \
2842  /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2843  ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2844  /usr/ucb/* ) ;;
2845  *)
2846    # OSF1 and SCO ODT 3.0 have their own names for install.
2847    # Don't use installbsd from OSF since it installs stuff as root
2848    # by default.
2849    for ac_prog in ginstall scoinst install; do
2850      for ac_exec_ext in '' $ac_executable_extensions; do
2851	if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2852	  if test $ac_prog = install &&
2853	    grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2854	    # AIX install.  It has an incompatible calling convention.
2855	    :
2856	  elif test $ac_prog = install &&
2857	    grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2858	    # program-specific install script used by HP pwplus--don't use.
2859	    :
2860	  else
2861	    rm -rf conftest.one conftest.two conftest.dir
2862	    echo one > conftest.one
2863	    echo two > conftest.two
2864	    mkdir conftest.dir
2865	    if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2866	      test -s conftest.one && test -s conftest.two &&
2867	      test -s conftest.dir/conftest.one &&
2868	      test -s conftest.dir/conftest.two
2869	    then
2870	      ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2871	      break 3
2872	    fi
2873	  fi
2874	fi
2875      done
2876    done
2877    ;;
2878esac
2879
2880  done
2881IFS=$as_save_IFS
2882
2883rm -rf conftest.one conftest.two conftest.dir
2884
2885fi
2886  if test "${ac_cv_path_install+set}" = set; then
2887    INSTALL=$ac_cv_path_install
2888  else
2889    # As a last resort, use the slow shell script.  Don't cache a
2890    # value for INSTALL within a source directory, because that will
2891    # break other packages using the cache if that directory is
2892    # removed, or if the value is a relative name.
2893    INSTALL=$ac_install_sh
2894  fi
2895fi
2896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2897$as_echo "$INSTALL" >&6; }
2898
2899# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2900# It thinks the first close brace ends the variable substitution.
2901test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2902
2903test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2904
2905test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2906
2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2908$as_echo_n "checking whether build environment is sane... " >&6; }
2909# Reject unsafe characters in $srcdir or the absolute working directory
2910# name.  Accept space and tab only in the latter.
2911am_lf='
2912'
2913case `pwd` in
2914  *[\\\"\#\$\&\'\`$am_lf]*)
2915    as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2916esac
2917case $srcdir in
2918  *[\\\"\#\$\&\'\`$am_lf\ \	]*)
2919    as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2920esac
2921
2922# Do 'set' in a subshell so we don't clobber the current shell's
2923# arguments.  Must try -L first in case configure is actually a
2924# symlink; some systems play weird games with the mod time of symlinks
2925# (eg FreeBSD returns the mod time of the symlink's containing
2926# directory).
2927if (
2928   am_has_slept=no
2929   for am_try in 1 2; do
2930     echo "timestamp, slept: $am_has_slept" > conftest.file
2931     set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2932     if test "$*" = "X"; then
2933	# -L didn't work.
2934	set X `ls -t "$srcdir/configure" conftest.file`
2935     fi
2936     if test "$*" != "X $srcdir/configure conftest.file" \
2937	&& test "$*" != "X conftest.file $srcdir/configure"; then
2938
2939	# If neither matched, then we have a broken ls.  This can happen
2940	# if, for instance, CONFIG_SHELL is bash and it inherits a
2941	# broken ls alias from the environment.  This has actually
2942	# happened.  Such a system could not be considered "sane".
2943	as_fn_error $? "ls -t appears to fail.  Make sure there is not a broken
2944  alias in your environment" "$LINENO" 5
2945     fi
2946     if test "$2" = conftest.file || test $am_try -eq 2; then
2947       break
2948     fi
2949     # Just in case.
2950     sleep 1
2951     am_has_slept=yes
2952   done
2953   test "$2" = conftest.file
2954   )
2955then
2956   # Ok.
2957   :
2958else
2959   as_fn_error $? "newly created file is older than distributed files!
2960Check your system clock" "$LINENO" 5
2961fi
2962{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2963$as_echo "yes" >&6; }
2964# If we didn't sleep, we still need to ensure time stamps of config.status and
2965# generated files are strictly newer.
2966am_sleep_pid=
2967if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2968  ( sleep 1 ) &
2969  am_sleep_pid=$!
2970fi
2971
2972rm -f conftest.file
2973
2974test "$program_prefix" != NONE &&
2975  program_transform_name="s&^&$program_prefix&;$program_transform_name"
2976# Use a double $ so make ignores it.
2977test "$program_suffix" != NONE &&
2978  program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2979# Double any \ or $.
2980# By default was `s,x,x', remove it if useless.
2981ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2982program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2983
2984# Expand $ac_aux_dir to an absolute path.
2985am_aux_dir=`cd "$ac_aux_dir" && pwd`
2986
2987if test x"${MISSING+set}" != xset; then
2988  case $am_aux_dir in
2989  *\ * | *\	*)
2990    MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2991  *)
2992    MISSING="\${SHELL} $am_aux_dir/missing" ;;
2993  esac
2994fi
2995# Use eval to expand $SHELL
2996if eval "$MISSING --is-lightweight"; then
2997  am_missing_run="$MISSING "
2998else
2999  am_missing_run=
3000  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
3001$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
3002fi
3003
3004if test x"${install_sh+set}" != xset; then
3005  case $am_aux_dir in
3006  *\ * | *\	*)
3007    install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3008  *)
3009    install_sh="\${SHELL} $am_aux_dir/install-sh"
3010  esac
3011fi
3012
3013# Installed binaries are usually stripped using 'strip' when the user
3014# run "make install-strip".  However 'strip' might not be the right
3015# tool to use in cross-compilation environments, therefore Automake
3016# will honor the 'STRIP' environment variable to overrule this program.
3017if test "$cross_compiling" != no; then
3018  if test -n "$ac_tool_prefix"; then
3019  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3020set dummy ${ac_tool_prefix}strip; ac_word=$2
3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3022$as_echo_n "checking for $ac_word... " >&6; }
3023if ${ac_cv_prog_STRIP+:} false; then :
3024  $as_echo_n "(cached) " >&6
3025else
3026  if test -n "$STRIP"; then
3027  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3028else
3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3030for as_dir in $PATH
3031do
3032  IFS=$as_save_IFS
3033  test -z "$as_dir" && as_dir=.
3034    for ac_exec_ext in '' $ac_executable_extensions; do
3035  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3036    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3037    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3038    break 2
3039  fi
3040done
3041  done
3042IFS=$as_save_IFS
3043
3044fi
3045fi
3046STRIP=$ac_cv_prog_STRIP
3047if test -n "$STRIP"; then
3048  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3049$as_echo "$STRIP" >&6; }
3050else
3051  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3052$as_echo "no" >&6; }
3053fi
3054
3055
3056fi
3057if test -z "$ac_cv_prog_STRIP"; then
3058  ac_ct_STRIP=$STRIP
3059  # Extract the first word of "strip", so it can be a program name with args.
3060set dummy strip; ac_word=$2
3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3062$as_echo_n "checking for $ac_word... " >&6; }
3063if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
3064  $as_echo_n "(cached) " >&6
3065else
3066  if test -n "$ac_ct_STRIP"; then
3067  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3068else
3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3070for as_dir in $PATH
3071do
3072  IFS=$as_save_IFS
3073  test -z "$as_dir" && as_dir=.
3074    for ac_exec_ext in '' $ac_executable_extensions; do
3075  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3076    ac_cv_prog_ac_ct_STRIP="strip"
3077    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3078    break 2
3079  fi
3080done
3081  done
3082IFS=$as_save_IFS
3083
3084fi
3085fi
3086ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3087if test -n "$ac_ct_STRIP"; then
3088  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3089$as_echo "$ac_ct_STRIP" >&6; }
3090else
3091  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3092$as_echo "no" >&6; }
3093fi
3094
3095  if test "x$ac_ct_STRIP" = x; then
3096    STRIP=":"
3097  else
3098    case $cross_compiling:$ac_tool_warned in
3099yes:)
3100{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3101$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3102ac_tool_warned=yes ;;
3103esac
3104    STRIP=$ac_ct_STRIP
3105  fi
3106else
3107  STRIP="$ac_cv_prog_STRIP"
3108fi
3109
3110fi
3111INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3112
3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3114$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3115if test -z "$MKDIR_P"; then
3116  if ${ac_cv_path_mkdir+:} false; then :
3117  $as_echo_n "(cached) " >&6
3118else
3119  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3120for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3121do
3122  IFS=$as_save_IFS
3123  test -z "$as_dir" && as_dir=.
3124    for ac_prog in mkdir gmkdir; do
3125	 for ac_exec_ext in '' $ac_executable_extensions; do
3126	   as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
3127	   case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3128	     'mkdir (GNU coreutils) '* | \
3129	     'mkdir (coreutils) '* | \
3130	     'mkdir (fileutils) '4.1*)
3131	       ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3132	       break 3;;
3133	   esac
3134	 done
3135       done
3136  done
3137IFS=$as_save_IFS
3138
3139fi
3140
3141  test -d ./--version && rmdir ./--version
3142  if test "${ac_cv_path_mkdir+set}" = set; then
3143    MKDIR_P="$ac_cv_path_mkdir -p"
3144  else
3145    # As a last resort, use the slow shell script.  Don't cache a
3146    # value for MKDIR_P within a source directory, because that will
3147    # break other packages using the cache if that directory is
3148    # removed, or if the value is a relative name.
3149    MKDIR_P="$ac_install_sh -d"
3150  fi
3151fi
3152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3153$as_echo "$MKDIR_P" >&6; }
3154
3155for ac_prog in gawk mawk nawk awk
3156do
3157  # Extract the first word of "$ac_prog", so it can be a program name with args.
3158set dummy $ac_prog; ac_word=$2
3159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3160$as_echo_n "checking for $ac_word... " >&6; }
3161if ${ac_cv_prog_AWK+:} false; then :
3162  $as_echo_n "(cached) " >&6
3163else
3164  if test -n "$AWK"; then
3165  ac_cv_prog_AWK="$AWK" # Let the user override the test.
3166else
3167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3168for as_dir in $PATH
3169do
3170  IFS=$as_save_IFS
3171  test -z "$as_dir" && as_dir=.
3172    for ac_exec_ext in '' $ac_executable_extensions; do
3173  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3174    ac_cv_prog_AWK="$ac_prog"
3175    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3176    break 2
3177  fi
3178done
3179  done
3180IFS=$as_save_IFS
3181
3182fi
3183fi
3184AWK=$ac_cv_prog_AWK
3185if test -n "$AWK"; then
3186  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3187$as_echo "$AWK" >&6; }
3188else
3189  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190$as_echo "no" >&6; }
3191fi
3192
3193
3194  test -n "$AWK" && break
3195done
3196
3197{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3198$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3199set x ${MAKE-make}
3200ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3201if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
3202  $as_echo_n "(cached) " >&6
3203else
3204  cat >conftest.make <<\_ACEOF
3205SHELL = /bin/sh
3206all:
3207	@echo '@@@%%%=$(MAKE)=@@@%%%'
3208_ACEOF
3209# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
3210case `${MAKE-make} -f conftest.make 2>/dev/null` in
3211  *@@@%%%=?*=@@@%%%*)
3212    eval ac_cv_prog_make_${ac_make}_set=yes;;
3213  *)
3214    eval ac_cv_prog_make_${ac_make}_set=no;;
3215esac
3216rm -f conftest.make
3217fi
3218if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3219  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3220$as_echo "yes" >&6; }
3221  SET_MAKE=
3222else
3223  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224$as_echo "no" >&6; }
3225  SET_MAKE="MAKE=${MAKE-make}"
3226fi
3227
3228rm -rf .tst 2>/dev/null
3229mkdir .tst 2>/dev/null
3230if test -d .tst; then
3231  am__leading_dot=.
3232else
3233  am__leading_dot=_
3234fi
3235rmdir .tst 2>/dev/null
3236
3237# Check whether --enable-silent-rules was given.
3238if test "${enable_silent_rules+set}" = set; then :
3239  enableval=$enable_silent_rules;
3240fi
3241
3242case $enable_silent_rules in # (((
3243  yes) AM_DEFAULT_VERBOSITY=0;;
3244   no) AM_DEFAULT_VERBOSITY=1;;
3245    *) AM_DEFAULT_VERBOSITY=1;;
3246esac
3247am_make=${MAKE-make}
3248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3249$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3250if ${am_cv_make_support_nested_variables+:} false; then :
3251  $as_echo_n "(cached) " >&6
3252else
3253  if $as_echo 'TRUE=$(BAR$(V))
3254BAR0=false
3255BAR1=true
3256V=1
3257am__doit:
3258	@$(TRUE)
3259.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3260  am_cv_make_support_nested_variables=yes
3261else
3262  am_cv_make_support_nested_variables=no
3263fi
3264fi
3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3266$as_echo "$am_cv_make_support_nested_variables" >&6; }
3267if test $am_cv_make_support_nested_variables = yes; then
3268    AM_V='$(V)'
3269  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3270else
3271  AM_V=$AM_DEFAULT_VERBOSITY
3272  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3273fi
3274AM_BACKSLASH='\'
3275
3276if test "`cd $srcdir && pwd`" != "`pwd`"; then
3277  # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3278  # is not polluted with repeated "-I."
3279  am__isrc=' -I$(srcdir)'
3280  # test to see if srcdir already configured
3281  if test -f $srcdir/config.status; then
3282    as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3283  fi
3284fi
3285
3286# test whether we have cygpath
3287if test -z "$CYGPATH_W"; then
3288  if (cygpath --version) >/dev/null 2>/dev/null; then
3289    CYGPATH_W='cygpath -w'
3290  else
3291    CYGPATH_W=echo
3292  fi
3293fi
3294
3295
3296# Define the identity of the package.
3297 PACKAGE='protobuf'
3298 VERSION='3.14.0'
3299
3300
3301cat >>confdefs.h <<_ACEOF
3302#define PACKAGE "$PACKAGE"
3303_ACEOF
3304
3305
3306cat >>confdefs.h <<_ACEOF
3307#define VERSION "$VERSION"
3308_ACEOF
3309
3310# Some tools Automake needs.
3311
3312ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3313
3314
3315AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3316
3317
3318AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3319
3320
3321AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3322
3323
3324MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3325
3326# For better backward compatibility.  To be removed once Automake 1.9.x
3327# dies out for good.  For more background, see:
3328# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
3329# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
3330mkdir_p='$(MKDIR_P)'
3331
3332# We need awk for the "check" target (and possibly the TAP driver).  The
3333# system "awk" is bad on some platforms.
3334# Always define AMTAR for backward compatibility.  Yes, it's still used
3335# in the wild :-(  We should find a proper way to deprecate it ...
3336AMTAR='$${TAR-tar}'
3337
3338
3339# We'll loop over all known methods to create a tar archive until one works.
3340_am_tools='gnutar plaintar pax cpio none'
3341
3342# The POSIX 1988 'ustar' format is defined with fixed-size fields.
3343      # There is notably a 21 bits limit for the UID and the GID.  In fact,
3344      # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
3345      # and bug#13588).
3346      am_max_uid=2097151 # 2^21 - 1
3347      am_max_gid=$am_max_uid
3348      # The $UID and $GID variables are not portable, so we need to resort
3349      # to the POSIX-mandated id(1) utility.  Errors in the 'id' calls
3350      # below are definitely unexpected, so allow the users to see them
3351      # (that is, avoid stderr redirection).
3352      am_uid=`id -u || echo unknown`
3353      am_gid=`id -g || echo unknown`
3354      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5
3355$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; }
3356      if test $am_uid -le $am_max_uid; then
3357         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3358$as_echo "yes" >&6; }
3359      else
3360         { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3361$as_echo "no" >&6; }
3362         _am_tools=none
3363      fi
3364      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5
3365$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; }
3366      if test $am_gid -le $am_max_gid; then
3367         { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3368$as_echo "yes" >&6; }
3369      else
3370        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3371$as_echo "no" >&6; }
3372        _am_tools=none
3373      fi
3374
3375  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5
3376$as_echo_n "checking how to create a ustar tar archive... " >&6; }
3377
3378  # Go ahead even if we have the value already cached.  We do so because we
3379  # need to set the values for the 'am__tar' and 'am__untar' variables.
3380  _am_tools=${am_cv_prog_tar_ustar-$_am_tools}
3381
3382  for _am_tool in $_am_tools; do
3383    case $_am_tool in
3384    gnutar)
3385      for _am_tar in tar gnutar gtar; do
3386        { echo "$as_me:$LINENO: $_am_tar --version" >&5
3387   ($_am_tar --version) >&5 2>&5
3388   ac_status=$?
3389   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3390   (exit $ac_status); } && break
3391      done
3392      am__tar="$_am_tar --format=ustar -chf - "'"$$tardir"'
3393      am__tar_="$_am_tar --format=ustar -chf - "'"$tardir"'
3394      am__untar="$_am_tar -xf -"
3395      ;;
3396    plaintar)
3397      # Must skip GNU tar: if it does not support --format= it doesn't create
3398      # ustar tarball either.
3399      (tar --version) >/dev/null 2>&1 && continue
3400      am__tar='tar chf - "$$tardir"'
3401      am__tar_='tar chf - "$tardir"'
3402      am__untar='tar xf -'
3403      ;;
3404    pax)
3405      am__tar='pax -L -x ustar -w "$$tardir"'
3406      am__tar_='pax -L -x ustar -w "$tardir"'
3407      am__untar='pax -r'
3408      ;;
3409    cpio)
3410      am__tar='find "$$tardir" -print | cpio -o -H ustar -L'
3411      am__tar_='find "$tardir" -print | cpio -o -H ustar -L'
3412      am__untar='cpio -i -H ustar -d'
3413      ;;
3414    none)
3415      am__tar=false
3416      am__tar_=false
3417      am__untar=false
3418      ;;
3419    esac
3420
3421    # If the value was cached, stop now.  We just wanted to have am__tar
3422    # and am__untar set.
3423    test -n "${am_cv_prog_tar_ustar}" && break
3424
3425    # tar/untar a dummy directory, and stop if the command works.
3426    rm -rf conftest.dir
3427    mkdir conftest.dir
3428    echo GrepMe > conftest.dir/file
3429    { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
3430   (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
3431   ac_status=$?
3432   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3433   (exit $ac_status); }
3434    rm -rf conftest.dir
3435    if test -s conftest.tar; then
3436      { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
3437   ($am__untar <conftest.tar) >&5 2>&5
3438   ac_status=$?
3439   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3440   (exit $ac_status); }
3441      { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
3442   (cat conftest.dir/file) >&5 2>&5
3443   ac_status=$?
3444   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445   (exit $ac_status); }
3446      grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
3447    fi
3448  done
3449  rm -rf conftest.dir
3450
3451  if ${am_cv_prog_tar_ustar+:} false; then :
3452  $as_echo_n "(cached) " >&6
3453else
3454  am_cv_prog_tar_ustar=$_am_tool
3455fi
3456
3457  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5
3458$as_echo "$am_cv_prog_tar_ustar" >&6; }
3459
3460
3461
3462
3463
3464
3465# POSIX will say in a future version that running "rm -f" with no argument
3466# is OK; and we want to be able to make that assumption in our Makefile
3467# recipes.  So use an aggressive probe to check that the usage we want is
3468# actually supported "in the wild" to an acceptable degree.
3469# See automake bug#10828.
3470# To make any issue more visible, cause the running configure to be aborted
3471# by default if the 'rm' program in use doesn't match our expectations; the
3472# user can still override this though.
3473if rm -f && rm -fr && rm -rf; then : OK; else
3474  cat >&2 <<'END'
3475Oops!
3476
3477Your 'rm' program seems unable to run without file operands specified
3478on the command line, even when the '-f' option is present.  This is contrary
3479to the behaviour of most rm programs out there, and not conforming with
3480the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3481
3482Please tell bug-automake@gnu.org about your system, including the value
3483of your $PATH and any error possibly output before this message.  This
3484can help us improve future automake versions.
3485
3486END
3487  if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3488    echo 'Configuration will proceed anyway, since you have set the' >&2
3489    echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3490    echo >&2
3491  else
3492    cat >&2 <<'END'
3493Aborting the configuration process, to ensure you take notice of the issue.
3494
3495You can download and install GNU coreutils to get an 'rm' implementation
3496that behaves properly: <https://www.gnu.org/software/coreutils/>.
3497
3498If you want to complete the configuration process using your problematic
3499'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3500to "yes", and re-run configure.
3501
3502END
3503    as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3504  fi
3505fi
3506
3507
3508# Silent rules enabled: the output is minimal but informative.
3509# In particular, the warnings from the compiler stick out very clearly.
3510# To see all logs, use the --disable-silent-rules on configure or via make V=1
3511# Check whether --enable-silent-rules was given.
3512if test "${enable_silent_rules+set}" = set; then :
3513  enableval=$enable_silent_rules;
3514fi
3515
3516case $enable_silent_rules in # (((
3517  yes) AM_DEFAULT_VERBOSITY=0;;
3518   no) AM_DEFAULT_VERBOSITY=1;;
3519    *) AM_DEFAULT_VERBOSITY=0;;
3520esac
3521am_make=${MAKE-make}
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
3523$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
3524if ${am_cv_make_support_nested_variables+:} false; then :
3525  $as_echo_n "(cached) " >&6
3526else
3527  if $as_echo 'TRUE=$(BAR$(V))
3528BAR0=false
3529BAR1=true
3530V=1
3531am__doit:
3532	@$(TRUE)
3533.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
3534  am_cv_make_support_nested_variables=yes
3535else
3536  am_cv_make_support_nested_variables=no
3537fi
3538fi
3539{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
3540$as_echo "$am_cv_make_support_nested_variables" >&6; }
3541if test $am_cv_make_support_nested_variables = yes; then
3542    AM_V='$(V)'
3543  AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
3544else
3545  AM_V=$AM_DEFAULT_VERBOSITY
3546  AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
3547fi
3548AM_BACKSLASH='\'
3549
3550
3551
3552# Check whether --with-zlib was given.
3553if test "${with_zlib+set}" = set; then :
3554  withval=$with_zlib;
3555else
3556  with_zlib=check
3557fi
3558
3559
3560
3561# Check whether --with-zlib-include was given.
3562if test "${with_zlib_include+set}" = set; then :
3563  withval=$with_zlib_include; CPPFLAGS="-I$withval $CPPFLAGS"
3564fi
3565
3566
3567
3568# Check whether --with-zlib-lib was given.
3569if test "${with_zlib_lib+set}" = set; then :
3570  withval=$with_zlib_lib; LDFLAGS="-L$withval $LDFLAGS"
3571fi
3572
3573
3574
3575# Check whether --with-protoc was given.
3576if test "${with_protoc+set}" = set; then :
3577  withval=$with_protoc;
3578else
3579  with_protoc=no
3580fi
3581
3582
3583# Checks for programs.
3584ac_ext=c
3585ac_cpp='$CPP $CPPFLAGS'
3586ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3587ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3588ac_compiler_gnu=$ac_cv_c_compiler_gnu
3589if test -n "$ac_tool_prefix"; then
3590  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3591set dummy ${ac_tool_prefix}gcc; ac_word=$2
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3593$as_echo_n "checking for $ac_word... " >&6; }
3594if ${ac_cv_prog_CC+:} false; then :
3595  $as_echo_n "(cached) " >&6
3596else
3597  if test -n "$CC"; then
3598  ac_cv_prog_CC="$CC" # Let the user override the test.
3599else
3600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3601for as_dir in $PATH
3602do
3603  IFS=$as_save_IFS
3604  test -z "$as_dir" && as_dir=.
3605    for ac_exec_ext in '' $ac_executable_extensions; do
3606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3607    ac_cv_prog_CC="${ac_tool_prefix}gcc"
3608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3609    break 2
3610  fi
3611done
3612  done
3613IFS=$as_save_IFS
3614
3615fi
3616fi
3617CC=$ac_cv_prog_CC
3618if test -n "$CC"; then
3619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3620$as_echo "$CC" >&6; }
3621else
3622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3623$as_echo "no" >&6; }
3624fi
3625
3626
3627fi
3628if test -z "$ac_cv_prog_CC"; then
3629  ac_ct_CC=$CC
3630  # Extract the first word of "gcc", so it can be a program name with args.
3631set dummy gcc; ac_word=$2
3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3633$as_echo_n "checking for $ac_word... " >&6; }
3634if ${ac_cv_prog_ac_ct_CC+:} false; then :
3635  $as_echo_n "(cached) " >&6
3636else
3637  if test -n "$ac_ct_CC"; then
3638  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3639else
3640as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641for as_dir in $PATH
3642do
3643  IFS=$as_save_IFS
3644  test -z "$as_dir" && as_dir=.
3645    for ac_exec_ext in '' $ac_executable_extensions; do
3646  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3647    ac_cv_prog_ac_ct_CC="gcc"
3648    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3649    break 2
3650  fi
3651done
3652  done
3653IFS=$as_save_IFS
3654
3655fi
3656fi
3657ac_ct_CC=$ac_cv_prog_ac_ct_CC
3658if test -n "$ac_ct_CC"; then
3659  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3660$as_echo "$ac_ct_CC" >&6; }
3661else
3662  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3663$as_echo "no" >&6; }
3664fi
3665
3666  if test "x$ac_ct_CC" = x; then
3667    CC=""
3668  else
3669    case $cross_compiling:$ac_tool_warned in
3670yes:)
3671{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3672$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3673ac_tool_warned=yes ;;
3674esac
3675    CC=$ac_ct_CC
3676  fi
3677else
3678  CC="$ac_cv_prog_CC"
3679fi
3680
3681if test -z "$CC"; then
3682          if test -n "$ac_tool_prefix"; then
3683    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3684set dummy ${ac_tool_prefix}cc; ac_word=$2
3685{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3686$as_echo_n "checking for $ac_word... " >&6; }
3687if ${ac_cv_prog_CC+:} false; then :
3688  $as_echo_n "(cached) " >&6
3689else
3690  if test -n "$CC"; then
3691  ac_cv_prog_CC="$CC" # Let the user override the test.
3692else
3693as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694for as_dir in $PATH
3695do
3696  IFS=$as_save_IFS
3697  test -z "$as_dir" && as_dir=.
3698    for ac_exec_ext in '' $ac_executable_extensions; do
3699  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3700    ac_cv_prog_CC="${ac_tool_prefix}cc"
3701    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3702    break 2
3703  fi
3704done
3705  done
3706IFS=$as_save_IFS
3707
3708fi
3709fi
3710CC=$ac_cv_prog_CC
3711if test -n "$CC"; then
3712  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3713$as_echo "$CC" >&6; }
3714else
3715  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3716$as_echo "no" >&6; }
3717fi
3718
3719
3720  fi
3721fi
3722if test -z "$CC"; then
3723  # Extract the first word of "cc", so it can be a program name with args.
3724set dummy cc; ac_word=$2
3725{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3726$as_echo_n "checking for $ac_word... " >&6; }
3727if ${ac_cv_prog_CC+:} false; then :
3728  $as_echo_n "(cached) " >&6
3729else
3730  if test -n "$CC"; then
3731  ac_cv_prog_CC="$CC" # Let the user override the test.
3732else
3733  ac_prog_rejected=no
3734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735for as_dir in $PATH
3736do
3737  IFS=$as_save_IFS
3738  test -z "$as_dir" && as_dir=.
3739    for ac_exec_ext in '' $ac_executable_extensions; do
3740  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3741    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3742       ac_prog_rejected=yes
3743       continue
3744     fi
3745    ac_cv_prog_CC="cc"
3746    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3747    break 2
3748  fi
3749done
3750  done
3751IFS=$as_save_IFS
3752
3753if test $ac_prog_rejected = yes; then
3754  # We found a bogon in the path, so make sure we never use it.
3755  set dummy $ac_cv_prog_CC
3756  shift
3757  if test $# != 0; then
3758    # We chose a different compiler from the bogus one.
3759    # However, it has the same basename, so the bogon will be chosen
3760    # first if we set CC to just the basename; use the full file name.
3761    shift
3762    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3763  fi
3764fi
3765fi
3766fi
3767CC=$ac_cv_prog_CC
3768if test -n "$CC"; then
3769  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3770$as_echo "$CC" >&6; }
3771else
3772  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3773$as_echo "no" >&6; }
3774fi
3775
3776
3777fi
3778if test -z "$CC"; then
3779  if test -n "$ac_tool_prefix"; then
3780  for ac_prog in cl.exe
3781  do
3782    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3783set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3785$as_echo_n "checking for $ac_word... " >&6; }
3786if ${ac_cv_prog_CC+:} false; then :
3787  $as_echo_n "(cached) " >&6
3788else
3789  if test -n "$CC"; then
3790  ac_cv_prog_CC="$CC" # Let the user override the test.
3791else
3792as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3793for as_dir in $PATH
3794do
3795  IFS=$as_save_IFS
3796  test -z "$as_dir" && as_dir=.
3797    for ac_exec_ext in '' $ac_executable_extensions; do
3798  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3799    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3800    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3801    break 2
3802  fi
3803done
3804  done
3805IFS=$as_save_IFS
3806
3807fi
3808fi
3809CC=$ac_cv_prog_CC
3810if test -n "$CC"; then
3811  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3812$as_echo "$CC" >&6; }
3813else
3814  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3815$as_echo "no" >&6; }
3816fi
3817
3818
3819    test -n "$CC" && break
3820  done
3821fi
3822if test -z "$CC"; then
3823  ac_ct_CC=$CC
3824  for ac_prog in cl.exe
3825do
3826  # Extract the first word of "$ac_prog", so it can be a program name with args.
3827set dummy $ac_prog; ac_word=$2
3828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3829$as_echo_n "checking for $ac_word... " >&6; }
3830if ${ac_cv_prog_ac_ct_CC+:} false; then :
3831  $as_echo_n "(cached) " >&6
3832else
3833  if test -n "$ac_ct_CC"; then
3834  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3835else
3836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3837for as_dir in $PATH
3838do
3839  IFS=$as_save_IFS
3840  test -z "$as_dir" && as_dir=.
3841    for ac_exec_ext in '' $ac_executable_extensions; do
3842  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3843    ac_cv_prog_ac_ct_CC="$ac_prog"
3844    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3845    break 2
3846  fi
3847done
3848  done
3849IFS=$as_save_IFS
3850
3851fi
3852fi
3853ac_ct_CC=$ac_cv_prog_ac_ct_CC
3854if test -n "$ac_ct_CC"; then
3855  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3856$as_echo "$ac_ct_CC" >&6; }
3857else
3858  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3859$as_echo "no" >&6; }
3860fi
3861
3862
3863  test -n "$ac_ct_CC" && break
3864done
3865
3866  if test "x$ac_ct_CC" = x; then
3867    CC=""
3868  else
3869    case $cross_compiling:$ac_tool_warned in
3870yes:)
3871{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3872$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3873ac_tool_warned=yes ;;
3874esac
3875    CC=$ac_ct_CC
3876  fi
3877fi
3878
3879fi
3880
3881
3882test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3883$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3884as_fn_error $? "no acceptable C compiler found in \$PATH
3885See \`config.log' for more details" "$LINENO" 5; }
3886
3887# Provide some information about the compiler.
3888$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3889set X $ac_compile
3890ac_compiler=$2
3891for ac_option in --version -v -V -qversion; do
3892  { { ac_try="$ac_compiler $ac_option >&5"
3893case "(($ac_try" in
3894  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3895  *) ac_try_echo=$ac_try;;
3896esac
3897eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3898$as_echo "$ac_try_echo"; } >&5
3899  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3900  ac_status=$?
3901  if test -s conftest.err; then
3902    sed '10a\
3903... rest of stderr output deleted ...
3904         10q' conftest.err >conftest.er1
3905    cat conftest.er1 >&5
3906  fi
3907  rm -f conftest.er1 conftest.err
3908  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3909  test $ac_status = 0; }
3910done
3911
3912cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3913/* end confdefs.h.  */
3914
3915int
3916main ()
3917{
3918
3919  ;
3920  return 0;
3921}
3922_ACEOF
3923ac_clean_files_save=$ac_clean_files
3924ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3925# Try to create an executable without -o first, disregard a.out.
3926# It will help us diagnose broken compilers, and finding out an intuition
3927# of exeext.
3928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3929$as_echo_n "checking whether the C compiler works... " >&6; }
3930ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3931
3932# The possible output files:
3933ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3934
3935ac_rmfiles=
3936for ac_file in $ac_files
3937do
3938  case $ac_file in
3939    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3940    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3941  esac
3942done
3943rm -f $ac_rmfiles
3944
3945if { { ac_try="$ac_link_default"
3946case "(($ac_try" in
3947  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3948  *) ac_try_echo=$ac_try;;
3949esac
3950eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3951$as_echo "$ac_try_echo"; } >&5
3952  (eval "$ac_link_default") 2>&5
3953  ac_status=$?
3954  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3955  test $ac_status = 0; }; then :
3956  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3957# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3958# in a Makefile.  We should not override ac_cv_exeext if it was cached,
3959# so that the user can short-circuit this test for compilers unknown to
3960# Autoconf.
3961for ac_file in $ac_files ''
3962do
3963  test -f "$ac_file" || continue
3964  case $ac_file in
3965    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3966	;;
3967    [ab].out )
3968	# We found the default executable, but exeext='' is most
3969	# certainly right.
3970	break;;
3971    *.* )
3972	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3973	then :; else
3974	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3975	fi
3976	# We set ac_cv_exeext here because the later test for it is not
3977	# safe: cross compilers may not add the suffix if given an `-o'
3978	# argument, so we may need to know it at that point already.
3979	# Even if this section looks crufty: it has the advantage of
3980	# actually working.
3981	break;;
3982    * )
3983	break;;
3984  esac
3985done
3986test "$ac_cv_exeext" = no && ac_cv_exeext=
3987
3988else
3989  ac_file=''
3990fi
3991if test -z "$ac_file"; then :
3992  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3993$as_echo "no" >&6; }
3994$as_echo "$as_me: failed program was:" >&5
3995sed 's/^/| /' conftest.$ac_ext >&5
3996
3997{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3998$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3999as_fn_error 77 "C compiler cannot create executables
4000See \`config.log' for more details" "$LINENO" 5; }
4001else
4002  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4003$as_echo "yes" >&6; }
4004fi
4005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4006$as_echo_n "checking for C compiler default output file name... " >&6; }
4007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4008$as_echo "$ac_file" >&6; }
4009ac_exeext=$ac_cv_exeext
4010
4011rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4012ac_clean_files=$ac_clean_files_save
4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4014$as_echo_n "checking for suffix of executables... " >&6; }
4015if { { ac_try="$ac_link"
4016case "(($ac_try" in
4017  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4018  *) ac_try_echo=$ac_try;;
4019esac
4020eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4021$as_echo "$ac_try_echo"; } >&5
4022  (eval "$ac_link") 2>&5
4023  ac_status=$?
4024  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4025  test $ac_status = 0; }; then :
4026  # If both `conftest.exe' and `conftest' are `present' (well, observable)
4027# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
4028# work properly (i.e., refer to `conftest.exe'), while it won't with
4029# `rm'.
4030for ac_file in conftest.exe conftest conftest.*; do
4031  test -f "$ac_file" || continue
4032  case $ac_file in
4033    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4034    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4035	  break;;
4036    * ) break;;
4037  esac
4038done
4039else
4040  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4041$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4042as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4043See \`config.log' for more details" "$LINENO" 5; }
4044fi
4045rm -f conftest conftest$ac_cv_exeext
4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4047$as_echo "$ac_cv_exeext" >&6; }
4048
4049rm -f conftest.$ac_ext
4050EXEEXT=$ac_cv_exeext
4051ac_exeext=$EXEEXT
4052cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4053/* end confdefs.h.  */
4054#include <stdio.h>
4055int
4056main ()
4057{
4058FILE *f = fopen ("conftest.out", "w");
4059 return ferror (f) || fclose (f) != 0;
4060
4061  ;
4062  return 0;
4063}
4064_ACEOF
4065ac_clean_files="$ac_clean_files conftest.out"
4066# Check that the compiler produces executables we can run.  If not, either
4067# the compiler is broken, or we cross compile.
4068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4069$as_echo_n "checking whether we are cross compiling... " >&6; }
4070if test "$cross_compiling" != yes; then
4071  { { ac_try="$ac_link"
4072case "(($ac_try" in
4073  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4074  *) ac_try_echo=$ac_try;;
4075esac
4076eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4077$as_echo "$ac_try_echo"; } >&5
4078  (eval "$ac_link") 2>&5
4079  ac_status=$?
4080  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4081  test $ac_status = 0; }
4082  if { ac_try='./conftest$ac_cv_exeext'
4083  { { case "(($ac_try" in
4084  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4085  *) ac_try_echo=$ac_try;;
4086esac
4087eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4088$as_echo "$ac_try_echo"; } >&5
4089  (eval "$ac_try") 2>&5
4090  ac_status=$?
4091  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4092  test $ac_status = 0; }; }; then
4093    cross_compiling=no
4094  else
4095    if test "$cross_compiling" = maybe; then
4096	cross_compiling=yes
4097    else
4098	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4099$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4100as_fn_error $? "cannot run C compiled programs.
4101If you meant to cross compile, use \`--host'.
4102See \`config.log' for more details" "$LINENO" 5; }
4103    fi
4104  fi
4105fi
4106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4107$as_echo "$cross_compiling" >&6; }
4108
4109rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4110ac_clean_files=$ac_clean_files_save
4111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4112$as_echo_n "checking for suffix of object files... " >&6; }
4113if ${ac_cv_objext+:} false; then :
4114  $as_echo_n "(cached) " >&6
4115else
4116  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4117/* end confdefs.h.  */
4118
4119int
4120main ()
4121{
4122
4123  ;
4124  return 0;
4125}
4126_ACEOF
4127rm -f conftest.o conftest.obj
4128if { { ac_try="$ac_compile"
4129case "(($ac_try" in
4130  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131  *) ac_try_echo=$ac_try;;
4132esac
4133eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4134$as_echo "$ac_try_echo"; } >&5
4135  (eval "$ac_compile") 2>&5
4136  ac_status=$?
4137  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4138  test $ac_status = 0; }; then :
4139  for ac_file in conftest.o conftest.obj conftest.*; do
4140  test -f "$ac_file" || continue;
4141  case $ac_file in
4142    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4143    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4144       break;;
4145  esac
4146done
4147else
4148  $as_echo "$as_me: failed program was:" >&5
4149sed 's/^/| /' conftest.$ac_ext >&5
4150
4151{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4152$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4153as_fn_error $? "cannot compute suffix of object files: cannot compile
4154See \`config.log' for more details" "$LINENO" 5; }
4155fi
4156rm -f conftest.$ac_cv_objext conftest.$ac_ext
4157fi
4158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4159$as_echo "$ac_cv_objext" >&6; }
4160OBJEXT=$ac_cv_objext
4161ac_objext=$OBJEXT
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4163$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4164if ${ac_cv_c_compiler_gnu+:} false; then :
4165  $as_echo_n "(cached) " >&6
4166else
4167  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4168/* end confdefs.h.  */
4169
4170int
4171main ()
4172{
4173#ifndef __GNUC__
4174       choke me
4175#endif
4176
4177  ;
4178  return 0;
4179}
4180_ACEOF
4181if ac_fn_c_try_compile "$LINENO"; then :
4182  ac_compiler_gnu=yes
4183else
4184  ac_compiler_gnu=no
4185fi
4186rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4187ac_cv_c_compiler_gnu=$ac_compiler_gnu
4188
4189fi
4190{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4191$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4192if test $ac_compiler_gnu = yes; then
4193  GCC=yes
4194else
4195  GCC=
4196fi
4197ac_test_CFLAGS=${CFLAGS+set}
4198ac_save_CFLAGS=$CFLAGS
4199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4200$as_echo_n "checking whether $CC accepts -g... " >&6; }
4201if ${ac_cv_prog_cc_g+:} false; then :
4202  $as_echo_n "(cached) " >&6
4203else
4204  ac_save_c_werror_flag=$ac_c_werror_flag
4205   ac_c_werror_flag=yes
4206   ac_cv_prog_cc_g=no
4207   CFLAGS="-g"
4208   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4209/* end confdefs.h.  */
4210
4211int
4212main ()
4213{
4214
4215  ;
4216  return 0;
4217}
4218_ACEOF
4219if ac_fn_c_try_compile "$LINENO"; then :
4220  ac_cv_prog_cc_g=yes
4221else
4222  CFLAGS=""
4223      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4224/* end confdefs.h.  */
4225
4226int
4227main ()
4228{
4229
4230  ;
4231  return 0;
4232}
4233_ACEOF
4234if ac_fn_c_try_compile "$LINENO"; then :
4235
4236else
4237  ac_c_werror_flag=$ac_save_c_werror_flag
4238	 CFLAGS="-g"
4239	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4240/* end confdefs.h.  */
4241
4242int
4243main ()
4244{
4245
4246  ;
4247  return 0;
4248}
4249_ACEOF
4250if ac_fn_c_try_compile "$LINENO"; then :
4251  ac_cv_prog_cc_g=yes
4252fi
4253rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4254fi
4255rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4256fi
4257rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258   ac_c_werror_flag=$ac_save_c_werror_flag
4259fi
4260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4261$as_echo "$ac_cv_prog_cc_g" >&6; }
4262if test "$ac_test_CFLAGS" = set; then
4263  CFLAGS=$ac_save_CFLAGS
4264elif test $ac_cv_prog_cc_g = yes; then
4265  if test "$GCC" = yes; then
4266    CFLAGS="-g -O2"
4267  else
4268    CFLAGS="-g"
4269  fi
4270else
4271  if test "$GCC" = yes; then
4272    CFLAGS="-O2"
4273  else
4274    CFLAGS=
4275  fi
4276fi
4277{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4278$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4279if ${ac_cv_prog_cc_c89+:} false; then :
4280  $as_echo_n "(cached) " >&6
4281else
4282  ac_cv_prog_cc_c89=no
4283ac_save_CC=$CC
4284cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4285/* end confdefs.h.  */
4286#include <stdarg.h>
4287#include <stdio.h>
4288struct stat;
4289/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
4290struct buf { int x; };
4291FILE * (*rcsopen) (struct buf *, struct stat *, int);
4292static char *e (p, i)
4293     char **p;
4294     int i;
4295{
4296  return p[i];
4297}
4298static char *f (char * (*g) (char **, int), char **p, ...)
4299{
4300  char *s;
4301  va_list v;
4302  va_start (v,p);
4303  s = g (p, va_arg (v,int));
4304  va_end (v);
4305  return s;
4306}
4307
4308/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
4309   function prototypes and stuff, but not '\xHH' hex character constants.
4310   These don't provoke an error unfortunately, instead are silently treated
4311   as 'x'.  The following induces an error, until -std is added to get
4312   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
4313   array size at least.  It's necessary to write '\x00'==0 to get something
4314   that's true only with -std.  */
4315int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4316
4317/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4318   inside strings and character constants.  */
4319#define FOO(x) 'x'
4320int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4321
4322int test (int i, double x);
4323struct s1 {int (*f) (int a);};
4324struct s2 {int (*f) (double a);};
4325int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4326int argc;
4327char **argv;
4328int
4329main ()
4330{
4331return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
4332  ;
4333  return 0;
4334}
4335_ACEOF
4336for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4337	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4338do
4339  CC="$ac_save_CC $ac_arg"
4340  if ac_fn_c_try_compile "$LINENO"; then :
4341  ac_cv_prog_cc_c89=$ac_arg
4342fi
4343rm -f core conftest.err conftest.$ac_objext
4344  test "x$ac_cv_prog_cc_c89" != "xno" && break
4345done
4346rm -f conftest.$ac_ext
4347CC=$ac_save_CC
4348
4349fi
4350# AC_CACHE_VAL
4351case "x$ac_cv_prog_cc_c89" in
4352  x)
4353    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4354$as_echo "none needed" >&6; } ;;
4355  xno)
4356    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4357$as_echo "unsupported" >&6; } ;;
4358  *)
4359    CC="$CC $ac_cv_prog_cc_c89"
4360    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4361$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4362esac
4363if test "x$ac_cv_prog_cc_c89" != xno; then :
4364
4365fi
4366
4367ac_ext=c
4368ac_cpp='$CPP $CPPFLAGS'
4369ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4370ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4371ac_compiler_gnu=$ac_cv_c_compiler_gnu
4372
4373ac_ext=c
4374ac_cpp='$CPP $CPPFLAGS'
4375ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4379$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4380if ${am_cv_prog_cc_c_o+:} false; then :
4381  $as_echo_n "(cached) " >&6
4382else
4383  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4384/* end confdefs.h.  */
4385
4386int
4387main ()
4388{
4389
4390  ;
4391  return 0;
4392}
4393_ACEOF
4394  # Make sure it works both with $CC and with simple cc.
4395  # Following AC_PROG_CC_C_O, we do the test twice because some
4396  # compilers refuse to overwrite an existing .o file with -o,
4397  # though they will create one.
4398  am_cv_prog_cc_c_o=yes
4399  for am_i in 1 2; do
4400    if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4401   ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4402   ac_status=$?
4403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4404   (exit $ac_status); } \
4405         && test -f conftest2.$ac_objext; then
4406      : OK
4407    else
4408      am_cv_prog_cc_c_o=no
4409      break
4410    fi
4411  done
4412  rm -f core conftest*
4413  unset am_i
4414fi
4415{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4416$as_echo "$am_cv_prog_cc_c_o" >&6; }
4417if test "$am_cv_prog_cc_c_o" != yes; then
4418   # Losing compiler, so override with the script.
4419   # FIXME: It is wrong to rewrite CC.
4420   # But if we don't then we get into trouble of one sort or another.
4421   # A longer-term fix would be to have automake use am__CC in this case,
4422   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4423   CC="$am_aux_dir/compile $CC"
4424fi
4425ac_ext=c
4426ac_cpp='$CPP $CPPFLAGS'
4427ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4428ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4429ac_compiler_gnu=$ac_cv_c_compiler_gnu
4430
4431DEPDIR="${am__leading_dot}deps"
4432
4433ac_config_commands="$ac_config_commands depfiles"
4434
4435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5
4436$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; }
4437cat > confinc.mk << 'END'
4438am__doit:
4439	@echo this is the am__doit target >confinc.out
4440.PHONY: am__doit
4441END
4442am__include="#"
4443am__quote=
4444# BSD make does it like this.
4445echo '.include "confinc.mk" # ignored' > confmf.BSD
4446# Other make implementations (GNU, Solaris 10, AIX) do it like this.
4447echo 'include confinc.mk # ignored' > confmf.GNU
4448_am_result=no
4449for s in GNU BSD; do
4450  { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5
4451   (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5
4452   ac_status=$?
4453   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4454   (exit $ac_status); }
4455  case $?:`cat confinc.out 2>/dev/null` in #(
4456  '0:this is the am__doit target') :
4457    case $s in #(
4458  BSD) :
4459    am__include='.include' am__quote='"' ;; #(
4460  *) :
4461    am__include='include' am__quote='' ;;
4462esac ;; #(
4463  *) :
4464     ;;
4465esac
4466  if test "$am__include" != "#"; then
4467    _am_result="yes ($s style)"
4468    break
4469  fi
4470done
4471rm -f confinc.* confmf.*
4472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5
4473$as_echo "${_am_result}" >&6; }
4474
4475# Check whether --enable-dependency-tracking was given.
4476if test "${enable_dependency_tracking+set}" = set; then :
4477  enableval=$enable_dependency_tracking;
4478fi
4479
4480if test "x$enable_dependency_tracking" != xno; then
4481  am_depcomp="$ac_aux_dir/depcomp"
4482  AMDEPBACKSLASH='\'
4483  am__nodep='_no'
4484fi
4485 if test "x$enable_dependency_tracking" != xno; then
4486  AMDEP_TRUE=
4487  AMDEP_FALSE='#'
4488else
4489  AMDEP_TRUE='#'
4490  AMDEP_FALSE=
4491fi
4492
4493
4494
4495depcc="$CC"   am_compiler_list=
4496
4497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4498$as_echo_n "checking dependency style of $depcc... " >&6; }
4499if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4500  $as_echo_n "(cached) " >&6
4501else
4502  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4503  # We make a subdir and do the tests there.  Otherwise we can end up
4504  # making bogus files that we don't know about and never remove.  For
4505  # instance it was reported that on HP-UX the gcc test will end up
4506  # making a dummy file named 'D' -- because '-MD' means "put the output
4507  # in D".
4508  rm -rf conftest.dir
4509  mkdir conftest.dir
4510  # Copy depcomp to subdir because otherwise we won't find it if we're
4511  # using a relative directory.
4512  cp "$am_depcomp" conftest.dir
4513  cd conftest.dir
4514  # We will build objects and dependencies in a subdirectory because
4515  # it helps to detect inapplicable dependency modes.  For instance
4516  # both Tru64's cc and ICC support -MD to output dependencies as a
4517  # side effect of compilation, but ICC will put the dependencies in
4518  # the current directory while Tru64 will put them in the object
4519  # directory.
4520  mkdir sub
4521
4522  am_cv_CC_dependencies_compiler_type=none
4523  if test "$am_compiler_list" = ""; then
4524     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4525  fi
4526  am__universal=false
4527  case " $depcc " in #(
4528     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4529     esac
4530
4531  for depmode in $am_compiler_list; do
4532    # Setup a source with many dependencies, because some compilers
4533    # like to wrap large dependency lists on column 80 (with \), and
4534    # we should not choose a depcomp mode which is confused by this.
4535    #
4536    # We need to recreate these files for each test, as the compiler may
4537    # overwrite some of them when testing with obscure command lines.
4538    # This happens at least with the AIX C compiler.
4539    : > sub/conftest.c
4540    for i in 1 2 3 4 5 6; do
4541      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4542      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4543      # Solaris 10 /bin/sh.
4544      echo '/* dummy */' > sub/conftst$i.h
4545    done
4546    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4547
4548    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4549    # mode.  It turns out that the SunPro C++ compiler does not properly
4550    # handle '-M -o', and we need to detect this.  Also, some Intel
4551    # versions had trouble with output in subdirs.
4552    am__obj=sub/conftest.${OBJEXT-o}
4553    am__minus_obj="-o $am__obj"
4554    case $depmode in
4555    gcc)
4556      # This depmode causes a compiler race in universal mode.
4557      test "$am__universal" = false || continue
4558      ;;
4559    nosideeffect)
4560      # After this tag, mechanisms are not by side-effect, so they'll
4561      # only be used when explicitly requested.
4562      if test "x$enable_dependency_tracking" = xyes; then
4563	continue
4564      else
4565	break
4566      fi
4567      ;;
4568    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4569      # This compiler won't grok '-c -o', but also, the minuso test has
4570      # not run yet.  These depmodes are late enough in the game, and
4571      # so weak that their functioning should not be impacted.
4572      am__obj=conftest.${OBJEXT-o}
4573      am__minus_obj=
4574      ;;
4575    none) break ;;
4576    esac
4577    if depmode=$depmode \
4578       source=sub/conftest.c object=$am__obj \
4579       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4580       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4581         >/dev/null 2>conftest.err &&
4582       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4583       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4584       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4585       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4586      # icc doesn't choke on unknown options, it will just issue warnings
4587      # or remarks (even with -Werror).  So we grep stderr for any message
4588      # that says an option was ignored or not supported.
4589      # When given -MP, icc 7.0 and 7.1 complain thusly:
4590      #   icc: Command line warning: ignoring option '-M'; no argument required
4591      # The diagnosis changed in icc 8.0:
4592      #   icc: Command line remark: option '-MP' not supported
4593      if (grep 'ignoring option' conftest.err ||
4594          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4595        am_cv_CC_dependencies_compiler_type=$depmode
4596        break
4597      fi
4598    fi
4599  done
4600
4601  cd ..
4602  rm -rf conftest.dir
4603else
4604  am_cv_CC_dependencies_compiler_type=none
4605fi
4606
4607fi
4608{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4609$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4610CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4611
4612 if
4613  test "x$enable_dependency_tracking" != xno \
4614  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4615  am__fastdepCC_TRUE=
4616  am__fastdepCC_FALSE='#'
4617else
4618  am__fastdepCC_TRUE='#'
4619  am__fastdepCC_FALSE=
4620fi
4621
4622
4623ac_ext=cpp
4624ac_cpp='$CXXCPP $CPPFLAGS'
4625ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4626ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4627ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4628if test -z "$CXX"; then
4629  if test -n "$CCC"; then
4630    CXX=$CCC
4631  else
4632    if test -n "$ac_tool_prefix"; then
4633  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4634  do
4635    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4636set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4638$as_echo_n "checking for $ac_word... " >&6; }
4639if ${ac_cv_prog_CXX+:} false; then :
4640  $as_echo_n "(cached) " >&6
4641else
4642  if test -n "$CXX"; then
4643  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4644else
4645as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4646for as_dir in $PATH
4647do
4648  IFS=$as_save_IFS
4649  test -z "$as_dir" && as_dir=.
4650    for ac_exec_ext in '' $ac_executable_extensions; do
4651  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4652    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4653    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4654    break 2
4655  fi
4656done
4657  done
4658IFS=$as_save_IFS
4659
4660fi
4661fi
4662CXX=$ac_cv_prog_CXX
4663if test -n "$CXX"; then
4664  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4665$as_echo "$CXX" >&6; }
4666else
4667  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4668$as_echo "no" >&6; }
4669fi
4670
4671
4672    test -n "$CXX" && break
4673  done
4674fi
4675if test -z "$CXX"; then
4676  ac_ct_CXX=$CXX
4677  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4678do
4679  # Extract the first word of "$ac_prog", so it can be a program name with args.
4680set dummy $ac_prog; ac_word=$2
4681{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4682$as_echo_n "checking for $ac_word... " >&6; }
4683if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4684  $as_echo_n "(cached) " >&6
4685else
4686  if test -n "$ac_ct_CXX"; then
4687  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4688else
4689as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690for as_dir in $PATH
4691do
4692  IFS=$as_save_IFS
4693  test -z "$as_dir" && as_dir=.
4694    for ac_exec_ext in '' $ac_executable_extensions; do
4695  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4696    ac_cv_prog_ac_ct_CXX="$ac_prog"
4697    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4698    break 2
4699  fi
4700done
4701  done
4702IFS=$as_save_IFS
4703
4704fi
4705fi
4706ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4707if test -n "$ac_ct_CXX"; then
4708  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4709$as_echo "$ac_ct_CXX" >&6; }
4710else
4711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4712$as_echo "no" >&6; }
4713fi
4714
4715
4716  test -n "$ac_ct_CXX" && break
4717done
4718
4719  if test "x$ac_ct_CXX" = x; then
4720    CXX="g++"
4721  else
4722    case $cross_compiling:$ac_tool_warned in
4723yes:)
4724{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4725$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4726ac_tool_warned=yes ;;
4727esac
4728    CXX=$ac_ct_CXX
4729  fi
4730fi
4731
4732  fi
4733fi
4734# Provide some information about the compiler.
4735$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4736set X $ac_compile
4737ac_compiler=$2
4738for ac_option in --version -v -V -qversion; do
4739  { { ac_try="$ac_compiler $ac_option >&5"
4740case "(($ac_try" in
4741  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4742  *) ac_try_echo=$ac_try;;
4743esac
4744eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4745$as_echo "$ac_try_echo"; } >&5
4746  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4747  ac_status=$?
4748  if test -s conftest.err; then
4749    sed '10a\
4750... rest of stderr output deleted ...
4751         10q' conftest.err >conftest.er1
4752    cat conftest.er1 >&5
4753  fi
4754  rm -f conftest.er1 conftest.err
4755  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4756  test $ac_status = 0; }
4757done
4758
4759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4760$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4761if ${ac_cv_cxx_compiler_gnu+:} false; then :
4762  $as_echo_n "(cached) " >&6
4763else
4764  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4765/* end confdefs.h.  */
4766
4767int
4768main ()
4769{
4770#ifndef __GNUC__
4771       choke me
4772#endif
4773
4774  ;
4775  return 0;
4776}
4777_ACEOF
4778if ac_fn_cxx_try_compile "$LINENO"; then :
4779  ac_compiler_gnu=yes
4780else
4781  ac_compiler_gnu=no
4782fi
4783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4784ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4785
4786fi
4787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4788$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4789if test $ac_compiler_gnu = yes; then
4790  GXX=yes
4791else
4792  GXX=
4793fi
4794ac_test_CXXFLAGS=${CXXFLAGS+set}
4795ac_save_CXXFLAGS=$CXXFLAGS
4796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4797$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4798if ${ac_cv_prog_cxx_g+:} false; then :
4799  $as_echo_n "(cached) " >&6
4800else
4801  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4802   ac_cxx_werror_flag=yes
4803   ac_cv_prog_cxx_g=no
4804   CXXFLAGS="-g"
4805   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4806/* end confdefs.h.  */
4807
4808int
4809main ()
4810{
4811
4812  ;
4813  return 0;
4814}
4815_ACEOF
4816if ac_fn_cxx_try_compile "$LINENO"; then :
4817  ac_cv_prog_cxx_g=yes
4818else
4819  CXXFLAGS=""
4820      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821/* end confdefs.h.  */
4822
4823int
4824main ()
4825{
4826
4827  ;
4828  return 0;
4829}
4830_ACEOF
4831if ac_fn_cxx_try_compile "$LINENO"; then :
4832
4833else
4834  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4835	 CXXFLAGS="-g"
4836	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837/* end confdefs.h.  */
4838
4839int
4840main ()
4841{
4842
4843  ;
4844  return 0;
4845}
4846_ACEOF
4847if ac_fn_cxx_try_compile "$LINENO"; then :
4848  ac_cv_prog_cxx_g=yes
4849fi
4850rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4851fi
4852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4853fi
4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4855   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4856fi
4857{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4858$as_echo "$ac_cv_prog_cxx_g" >&6; }
4859if test "$ac_test_CXXFLAGS" = set; then
4860  CXXFLAGS=$ac_save_CXXFLAGS
4861elif test $ac_cv_prog_cxx_g = yes; then
4862  if test "$GXX" = yes; then
4863    CXXFLAGS="-g -O2"
4864  else
4865    CXXFLAGS="-g"
4866  fi
4867else
4868  if test "$GXX" = yes; then
4869    CXXFLAGS="-O2"
4870  else
4871    CXXFLAGS=
4872  fi
4873fi
4874ac_ext=c
4875ac_cpp='$CPP $CPPFLAGS'
4876ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4877ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4878ac_compiler_gnu=$ac_cv_c_compiler_gnu
4879
4880depcc="$CXX"  am_compiler_list=
4881
4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4883$as_echo_n "checking dependency style of $depcc... " >&6; }
4884if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
4885  $as_echo_n "(cached) " >&6
4886else
4887  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4888  # We make a subdir and do the tests there.  Otherwise we can end up
4889  # making bogus files that we don't know about and never remove.  For
4890  # instance it was reported that on HP-UX the gcc test will end up
4891  # making a dummy file named 'D' -- because '-MD' means "put the output
4892  # in D".
4893  rm -rf conftest.dir
4894  mkdir conftest.dir
4895  # Copy depcomp to subdir because otherwise we won't find it if we're
4896  # using a relative directory.
4897  cp "$am_depcomp" conftest.dir
4898  cd conftest.dir
4899  # We will build objects and dependencies in a subdirectory because
4900  # it helps to detect inapplicable dependency modes.  For instance
4901  # both Tru64's cc and ICC support -MD to output dependencies as a
4902  # side effect of compilation, but ICC will put the dependencies in
4903  # the current directory while Tru64 will put them in the object
4904  # directory.
4905  mkdir sub
4906
4907  am_cv_CXX_dependencies_compiler_type=none
4908  if test "$am_compiler_list" = ""; then
4909     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4910  fi
4911  am__universal=false
4912  case " $depcc " in #(
4913     *\ -arch\ *\ -arch\ *) am__universal=true ;;
4914     esac
4915
4916  for depmode in $am_compiler_list; do
4917    # Setup a source with many dependencies, because some compilers
4918    # like to wrap large dependency lists on column 80 (with \), and
4919    # we should not choose a depcomp mode which is confused by this.
4920    #
4921    # We need to recreate these files for each test, as the compiler may
4922    # overwrite some of them when testing with obscure command lines.
4923    # This happens at least with the AIX C compiler.
4924    : > sub/conftest.c
4925    for i in 1 2 3 4 5 6; do
4926      echo '#include "conftst'$i'.h"' >> sub/conftest.c
4927      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4928      # Solaris 10 /bin/sh.
4929      echo '/* dummy */' > sub/conftst$i.h
4930    done
4931    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4932
4933    # We check with '-c' and '-o' for the sake of the "dashmstdout"
4934    # mode.  It turns out that the SunPro C++ compiler does not properly
4935    # handle '-M -o', and we need to detect this.  Also, some Intel
4936    # versions had trouble with output in subdirs.
4937    am__obj=sub/conftest.${OBJEXT-o}
4938    am__minus_obj="-o $am__obj"
4939    case $depmode in
4940    gcc)
4941      # This depmode causes a compiler race in universal mode.
4942      test "$am__universal" = false || continue
4943      ;;
4944    nosideeffect)
4945      # After this tag, mechanisms are not by side-effect, so they'll
4946      # only be used when explicitly requested.
4947      if test "x$enable_dependency_tracking" = xyes; then
4948	continue
4949      else
4950	break
4951      fi
4952      ;;
4953    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4954      # This compiler won't grok '-c -o', but also, the minuso test has
4955      # not run yet.  These depmodes are late enough in the game, and
4956      # so weak that their functioning should not be impacted.
4957      am__obj=conftest.${OBJEXT-o}
4958      am__minus_obj=
4959      ;;
4960    none) break ;;
4961    esac
4962    if depmode=$depmode \
4963       source=sub/conftest.c object=$am__obj \
4964       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4965       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4966         >/dev/null 2>conftest.err &&
4967       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4968       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4969       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4970       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4971      # icc doesn't choke on unknown options, it will just issue warnings
4972      # or remarks (even with -Werror).  So we grep stderr for any message
4973      # that says an option was ignored or not supported.
4974      # When given -MP, icc 7.0 and 7.1 complain thusly:
4975      #   icc: Command line warning: ignoring option '-M'; no argument required
4976      # The diagnosis changed in icc 8.0:
4977      #   icc: Command line remark: option '-MP' not supported
4978      if (grep 'ignoring option' conftest.err ||
4979          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4980        am_cv_CXX_dependencies_compiler_type=$depmode
4981        break
4982      fi
4983    fi
4984  done
4985
4986  cd ..
4987  rm -rf conftest.dir
4988else
4989  am_cv_CXX_dependencies_compiler_type=none
4990fi
4991
4992fi
4993{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
4994$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
4995CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
4996
4997 if
4998  test "x$enable_dependency_tracking" != xno \
4999  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
5000  am__fastdepCXX_TRUE=
5001  am__fastdepCXX_FALSE='#'
5002else
5003  am__fastdepCXX_TRUE='#'
5004  am__fastdepCXX_FALSE=
5005fi
5006
5007
5008ac_ext=c
5009ac_cpp='$CPP $CPPFLAGS'
5010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5012ac_compiler_gnu=$ac_cv_c_compiler_gnu
5013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5014$as_echo_n "checking how to run the C preprocessor... " >&6; }
5015# On Suns, sometimes $CPP names a directory.
5016if test -n "$CPP" && test -d "$CPP"; then
5017  CPP=
5018fi
5019if test -z "$CPP"; then
5020  if ${ac_cv_prog_CPP+:} false; then :
5021  $as_echo_n "(cached) " >&6
5022else
5023      # Double quotes because CPP needs to be expanded
5024    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5025    do
5026      ac_preproc_ok=false
5027for ac_c_preproc_warn_flag in '' yes
5028do
5029  # Use a header file that comes with gcc, so configuring glibc
5030  # with a fresh cross-compiler works.
5031  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5032  # <limits.h> exists even on freestanding compilers.
5033  # On the NeXT, cc -E runs the code through the compiler's parser,
5034  # not just through cpp. "Syntax error" is here to catch this case.
5035  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5036/* end confdefs.h.  */
5037#ifdef __STDC__
5038# include <limits.h>
5039#else
5040# include <assert.h>
5041#endif
5042		     Syntax error
5043_ACEOF
5044if ac_fn_c_try_cpp "$LINENO"; then :
5045
5046else
5047  # Broken: fails on valid input.
5048continue
5049fi
5050rm -f conftest.err conftest.i conftest.$ac_ext
5051
5052  # OK, works on sane cases.  Now check whether nonexistent headers
5053  # can be detected and how.
5054  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055/* end confdefs.h.  */
5056#include <ac_nonexistent.h>
5057_ACEOF
5058if ac_fn_c_try_cpp "$LINENO"; then :
5059  # Broken: success on invalid input.
5060continue
5061else
5062  # Passes both tests.
5063ac_preproc_ok=:
5064break
5065fi
5066rm -f conftest.err conftest.i conftest.$ac_ext
5067
5068done
5069# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5070rm -f conftest.i conftest.err conftest.$ac_ext
5071if $ac_preproc_ok; then :
5072  break
5073fi
5074
5075    done
5076    ac_cv_prog_CPP=$CPP
5077
5078fi
5079  CPP=$ac_cv_prog_CPP
5080else
5081  ac_cv_prog_CPP=$CPP
5082fi
5083{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5084$as_echo "$CPP" >&6; }
5085ac_preproc_ok=false
5086for ac_c_preproc_warn_flag in '' yes
5087do
5088  # Use a header file that comes with gcc, so configuring glibc
5089  # with a fresh cross-compiler works.
5090  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5091  # <limits.h> exists even on freestanding compilers.
5092  # On the NeXT, cc -E runs the code through the compiler's parser,
5093  # not just through cpp. "Syntax error" is here to catch this case.
5094  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5095/* end confdefs.h.  */
5096#ifdef __STDC__
5097# include <limits.h>
5098#else
5099# include <assert.h>
5100#endif
5101		     Syntax error
5102_ACEOF
5103if ac_fn_c_try_cpp "$LINENO"; then :
5104
5105else
5106  # Broken: fails on valid input.
5107continue
5108fi
5109rm -f conftest.err conftest.i conftest.$ac_ext
5110
5111  # OK, works on sane cases.  Now check whether nonexistent headers
5112  # can be detected and how.
5113  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114/* end confdefs.h.  */
5115#include <ac_nonexistent.h>
5116_ACEOF
5117if ac_fn_c_try_cpp "$LINENO"; then :
5118  # Broken: success on invalid input.
5119continue
5120else
5121  # Passes both tests.
5122ac_preproc_ok=:
5123break
5124fi
5125rm -f conftest.err conftest.i conftest.$ac_ext
5126
5127done
5128# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5129rm -f conftest.i conftest.err conftest.$ac_ext
5130if $ac_preproc_ok; then :
5131
5132else
5133  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5134$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5135as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5136See \`config.log' for more details" "$LINENO" 5; }
5137fi
5138
5139ac_ext=c
5140ac_cpp='$CPP $CPPFLAGS'
5141ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5142ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5143ac_compiler_gnu=$ac_cv_c_compiler_gnu
5144
5145
5146
5147
5148save_cross_compiling=$cross_compiling
5149save_ac_tool_prefix=$ac_tool_prefix
5150cross_compiling=no
5151ac_tool_prefix=
5152
5153ac_ext=c
5154ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5155ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5156ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5157ac_compiler_gnu=$ac_cv_c_compiler_gnu
5158if test -n "$ac_tool_prefix"; then
5159  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5160set dummy ${ac_tool_prefix}gcc; ac_word=$2
5161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5162$as_echo_n "checking for $ac_word... " >&6; }
5163if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5164  $as_echo_n "(cached) " >&6
5165else
5166  if test -n "$CC_FOR_BUILD"; then
5167  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5168else
5169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5170for as_dir in $PATH
5171do
5172  IFS=$as_save_IFS
5173  test -z "$as_dir" && as_dir=.
5174    for ac_exec_ext in '' $ac_executable_extensions; do
5175  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5176    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}gcc"
5177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5178    break 2
5179  fi
5180done
5181  done
5182IFS=$as_save_IFS
5183
5184fi
5185fi
5186CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5187if test -n "$CC_FOR_BUILD"; then
5188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5189$as_echo "$CC_FOR_BUILD" >&6; }
5190else
5191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5192$as_echo "no" >&6; }
5193fi
5194
5195
5196fi
5197if test -z "$ac_cv_prog_CC_FOR_BUILD"; then
5198  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5199  # Extract the first word of "gcc", so it can be a program name with args.
5200set dummy gcc; ac_word=$2
5201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5202$as_echo_n "checking for $ac_word... " >&6; }
5203if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5204  $as_echo_n "(cached) " >&6
5205else
5206  if test -n "$ac_ct_CC_FOR_BUILD"; then
5207  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5208else
5209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5210for as_dir in $PATH
5211do
5212  IFS=$as_save_IFS
5213  test -z "$as_dir" && as_dir=.
5214    for ac_exec_ext in '' $ac_executable_extensions; do
5215  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5216    ac_cv_prog_ac_ct_CC_FOR_BUILD="gcc"
5217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5218    break 2
5219  fi
5220done
5221  done
5222IFS=$as_save_IFS
5223
5224fi
5225fi
5226ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5227if test -n "$ac_ct_CC_FOR_BUILD"; then
5228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5229$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5230else
5231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5232$as_echo "no" >&6; }
5233fi
5234
5235  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5236    CC_FOR_BUILD=""
5237  else
5238    case $cross_compiling:$ac_tool_warned in
5239yes:)
5240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5241$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5242ac_tool_warned=yes ;;
5243esac
5244    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5245  fi
5246else
5247  CC_FOR_BUILD="$ac_cv_prog_CC_FOR_BUILD"
5248fi
5249
5250if test -z "$CC_FOR_BUILD"; then
5251          if test -n "$ac_tool_prefix"; then
5252    # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5253set dummy ${ac_tool_prefix}cc; ac_word=$2
5254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5255$as_echo_n "checking for $ac_word... " >&6; }
5256if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5257  $as_echo_n "(cached) " >&6
5258else
5259  if test -n "$CC_FOR_BUILD"; then
5260  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5261else
5262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263for as_dir in $PATH
5264do
5265  IFS=$as_save_IFS
5266  test -z "$as_dir" && as_dir=.
5267    for ac_exec_ext in '' $ac_executable_extensions; do
5268  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5269    ac_cv_prog_CC_FOR_BUILD="${ac_tool_prefix}cc"
5270    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5271    break 2
5272  fi
5273done
5274  done
5275IFS=$as_save_IFS
5276
5277fi
5278fi
5279CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5280if test -n "$CC_FOR_BUILD"; then
5281  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5282$as_echo "$CC_FOR_BUILD" >&6; }
5283else
5284  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5285$as_echo "no" >&6; }
5286fi
5287
5288
5289  fi
5290fi
5291if test -z "$CC_FOR_BUILD"; then
5292  # Extract the first word of "cc", so it can be a program name with args.
5293set dummy cc; ac_word=$2
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5295$as_echo_n "checking for $ac_word... " >&6; }
5296if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5297  $as_echo_n "(cached) " >&6
5298else
5299  if test -n "$CC_FOR_BUILD"; then
5300  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5301else
5302  ac_prog_rejected=no
5303as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304for as_dir in $PATH
5305do
5306  IFS=$as_save_IFS
5307  test -z "$as_dir" && as_dir=.
5308    for ac_exec_ext in '' $ac_executable_extensions; do
5309  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5310    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5311       ac_prog_rejected=yes
5312       continue
5313     fi
5314    ac_cv_prog_CC_FOR_BUILD="cc"
5315    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5316    break 2
5317  fi
5318done
5319  done
5320IFS=$as_save_IFS
5321
5322if test $ac_prog_rejected = yes; then
5323  # We found a bogon in the path, so make sure we never use it.
5324  set dummy $ac_cv_prog_CC_FOR_BUILD
5325  shift
5326  if test $# != 0; then
5327    # We chose a different compiler from the bogus one.
5328    # However, it has the same basename, so the bogon will be chosen
5329    # first if we set CC_FOR_BUILD to just the basename; use the full file name.
5330    shift
5331    ac_cv_prog_CC_FOR_BUILD="$as_dir/$ac_word${1+' '}$@"
5332  fi
5333fi
5334fi
5335fi
5336CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5337if test -n "$CC_FOR_BUILD"; then
5338  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5339$as_echo "$CC_FOR_BUILD" >&6; }
5340else
5341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5342$as_echo "no" >&6; }
5343fi
5344
5345
5346fi
5347if test -z "$CC_FOR_BUILD"; then
5348  if test -n "$ac_tool_prefix"; then
5349  for ac_prog in cl.exe
5350  do
5351    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5352set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5353{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5354$as_echo_n "checking for $ac_word... " >&6; }
5355if ${ac_cv_prog_CC_FOR_BUILD+:} false; then :
5356  $as_echo_n "(cached) " >&6
5357else
5358  if test -n "$CC_FOR_BUILD"; then
5359  ac_cv_prog_CC_FOR_BUILD="$CC_FOR_BUILD" # Let the user override the test.
5360else
5361as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5362for as_dir in $PATH
5363do
5364  IFS=$as_save_IFS
5365  test -z "$as_dir" && as_dir=.
5366    for ac_exec_ext in '' $ac_executable_extensions; do
5367  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5368    ac_cv_prog_CC_FOR_BUILD="$ac_tool_prefix$ac_prog"
5369    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5370    break 2
5371  fi
5372done
5373  done
5374IFS=$as_save_IFS
5375
5376fi
5377fi
5378CC_FOR_BUILD=$ac_cv_prog_CC_FOR_BUILD
5379if test -n "$CC_FOR_BUILD"; then
5380  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC_FOR_BUILD" >&5
5381$as_echo "$CC_FOR_BUILD" >&6; }
5382else
5383  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5384$as_echo "no" >&6; }
5385fi
5386
5387
5388    test -n "$CC_FOR_BUILD" && break
5389  done
5390fi
5391if test -z "$CC_FOR_BUILD"; then
5392  ac_ct_CC_FOR_BUILD=$CC_FOR_BUILD
5393  for ac_prog in cl.exe
5394do
5395  # Extract the first word of "$ac_prog", so it can be a program name with args.
5396set dummy $ac_prog; ac_word=$2
5397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5398$as_echo_n "checking for $ac_word... " >&6; }
5399if ${ac_cv_prog_ac_ct_CC_FOR_BUILD+:} false; then :
5400  $as_echo_n "(cached) " >&6
5401else
5402  if test -n "$ac_ct_CC_FOR_BUILD"; then
5403  ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_ct_CC_FOR_BUILD" # Let the user override the test.
5404else
5405as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5406for as_dir in $PATH
5407do
5408  IFS=$as_save_IFS
5409  test -z "$as_dir" && as_dir=.
5410    for ac_exec_ext in '' $ac_executable_extensions; do
5411  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5412    ac_cv_prog_ac_ct_CC_FOR_BUILD="$ac_prog"
5413    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5414    break 2
5415  fi
5416done
5417  done
5418IFS=$as_save_IFS
5419
5420fi
5421fi
5422ac_ct_CC_FOR_BUILD=$ac_cv_prog_ac_ct_CC_FOR_BUILD
5423if test -n "$ac_ct_CC_FOR_BUILD"; then
5424  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC_FOR_BUILD" >&5
5425$as_echo "$ac_ct_CC_FOR_BUILD" >&6; }
5426else
5427  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5428$as_echo "no" >&6; }
5429fi
5430
5431
5432  test -n "$ac_ct_CC_FOR_BUILD" && break
5433done
5434
5435  if test "x$ac_ct_CC_FOR_BUILD" = x; then
5436    CC_FOR_BUILD=""
5437  else
5438    case $cross_compiling:$ac_tool_warned in
5439yes:)
5440{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
5441$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
5442ac_tool_warned=yes ;;
5443esac
5444    CC_FOR_BUILD=$ac_ct_CC_FOR_BUILD
5445  fi
5446fi
5447
5448fi
5449
5450
5451test -z "$CC_FOR_BUILD" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5452$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5453as_fn_error $? "no acceptable C compiler found in \$PATH
5454See \`config.log' for more details" "$LINENO" 5; }
5455
5456# Provide some information about the compiler.
5457$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5458set X $ac_build_compile
5459ac_compiler=$2
5460for ac_option in --version -v -V -qversion; do
5461  { { ac_try="$ac_compiler $ac_option >&5"
5462case "(($ac_try" in
5463  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5464  *) ac_try_echo=$ac_try;;
5465esac
5466eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5467$as_echo "$ac_try_echo"; } >&5
5468  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5469  ac_status=$?
5470  if test -s conftest.err; then
5471    sed '10a\
5472... rest of stderr output deleted ...
5473         10q' conftest.err >conftest.er1
5474    cat conftest.er1 >&5
5475  fi
5476  rm -f conftest.er1 conftest.err
5477  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5478  test $ac_status = 0; }
5479done
5480
5481{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5482$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5483if ${ac_cv_c_compiler_gnu+:} false; then :
5484  $as_echo_n "(cached) " >&6
5485else
5486  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5487/* end confdefs.h.  */
5488
5489int
5490main ()
5491{
5492#ifndef __GNUC__
5493       choke me
5494#endif
5495
5496  ;
5497  return 0;
5498}
5499_ACEOF
5500if ac_fn_c_try_compile "$LINENO"; then :
5501  ac_compiler_gnu=yes
5502else
5503  ac_compiler_gnu=no
5504fi
5505rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5506ac_cv_c_compiler_gnu=$ac_compiler_gnu
5507
5508fi
5509{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5510$as_echo "$ac_cv_c_compiler_gnu" >&6; }
5511if test $ac_compiler_gnu = yes; then
5512  GCC=yes
5513else
5514  GCC=
5515fi
5516ac_test_CFLAGS=${CFLAGS_FOR_BUILD+set}
5517ac_save_CFLAGS=$CFLAGS_FOR_BUILD
5518{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD accepts -g" >&5
5519$as_echo_n "checking whether $CC_FOR_BUILD accepts -g... " >&6; }
5520if ${ac_cv_build_prog_cc_g+:} false; then :
5521  $as_echo_n "(cached) " >&6
5522else
5523  ac_save_c_werror_flag=$ac_c_werror_flag
5524   ac_c_werror_flag=yes
5525   ac_cv_build_prog_cc_g=no
5526   CFLAGS_FOR_BUILD="-g"
5527   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5528/* end confdefs.h.  */
5529
5530int
5531main ()
5532{
5533
5534  ;
5535  return 0;
5536}
5537_ACEOF
5538if ac_fn_c_try_compile "$LINENO"; then :
5539  ac_cv_build_prog_cc_g=yes
5540else
5541  CFLAGS_FOR_BUILD=""
5542      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543/* end confdefs.h.  */
5544
5545int
5546main ()
5547{
5548
5549  ;
5550  return 0;
5551}
5552_ACEOF
5553if ac_fn_c_try_compile "$LINENO"; then :
5554
5555else
5556  ac_c_werror_flag=$ac_save_c_werror_flag
5557	 CFLAGS_FOR_BUILD="-g"
5558	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5559/* end confdefs.h.  */
5560
5561int
5562main ()
5563{
5564
5565  ;
5566  return 0;
5567}
5568_ACEOF
5569if ac_fn_c_try_compile "$LINENO"; then :
5570  ac_cv_build_prog_cc_g=yes
5571fi
5572rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5573fi
5574rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5575fi
5576rm -f core conftest.err conftest.$ac_build_objext conftest.$ac_ext
5577   ac_c_werror_flag=$ac_save_c_werror_flag
5578fi
5579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cc_g" >&5
5580$as_echo "$ac_cv_build_prog_cc_g" >&6; }
5581if test "$ac_test_CFLAGS" = set; then
5582  CFLAGS_FOR_BUILD=$ac_save_CFLAGS
5583elif test $ac_cv_build_prog_cc_g = yes; then
5584  if test "$GCC" = yes; then
5585    CFLAGS_FOR_BUILD="-g -O2"
5586  else
5587    CFLAGS_FOR_BUILD="-g"
5588  fi
5589else
5590  if test "$GCC" = yes; then
5591    CFLAGS_FOR_BUILD="-O2"
5592  else
5593    CFLAGS_FOR_BUILD=
5594  fi
5595fi
5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC_FOR_BUILD option to accept ISO C89" >&5
5597$as_echo_n "checking for $CC_FOR_BUILD option to accept ISO C89... " >&6; }
5598if ${ac_cv_prog_cc_c89+:} false; then :
5599  $as_echo_n "(cached) " >&6
5600else
5601  ac_cv_prog_cc_c89=no
5602ac_save_CC=$CC_FOR_BUILD
5603cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5604/* end confdefs.h.  */
5605#include <stdarg.h>
5606#include <stdio.h>
5607struct stat;
5608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
5609struct buf { int x; };
5610FILE * (*rcsopen) (struct buf *, struct stat *, int);
5611static char *e (p, i)
5612     char **p;
5613     int i;
5614{
5615  return p[i];
5616}
5617static char *f (char * (*g) (char **, int), char **p, ...)
5618{
5619  char *s;
5620  va_list v;
5621  va_start (v,p);
5622  s = g (p, va_arg (v,int));
5623  va_end (v);
5624  return s;
5625}
5626
5627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
5628   function prototypes and stuff, but not '\xHH' hex character constants.
5629   These don't provoke an error unfortunately, instead are silently treated
5630   as 'x'.  The following induces an error, until -std is added to get
5631   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
5632   array size at least.  It's necessary to write '\x00'==0 to get something
5633   that's true only with -std.  */
5634int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5635
5636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5637   inside strings and character constants.  */
5638#define FOO(x) 'x'
5639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5640
5641int test (int i, double x);
5642struct s1 {int (*f) (int a);};
5643struct s2 {int (*f) (double a);};
5644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5645int argc;
5646char **argv;
5647int
5648main ()
5649{
5650return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
5651  ;
5652  return 0;
5653}
5654_ACEOF
5655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5656	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5657do
5658  CC_FOR_BUILD="$ac_save_CC $ac_arg"
5659  if ac_fn_c_try_compile "$LINENO"; then :
5660  ac_cv_prog_cc_c89=$ac_arg
5661fi
5662rm -f core conftest.err conftest.$ac_build_objext
5663  test "x$ac_cv_prog_cc_c89" != "xno" && break
5664done
5665rm -f conftest.$ac_ext
5666CC_FOR_BUILD=$ac_save_CC
5667
5668fi
5669# AC_CACHE_VAL
5670case "x$ac_cv_prog_cc_c89" in
5671  x)
5672    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5673$as_echo "none needed" >&6; } ;;
5674  xno)
5675    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5676$as_echo "unsupported" >&6; } ;;
5677  *)
5678    CC_FOR_BUILD="$CC_FOR_BUILD $ac_cv_prog_cc_c89"
5679    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5681esac
5682if test "x$ac_cv_prog_cc_c89" != xno; then :
5683
5684fi
5685
5686ac_ext=c
5687ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5688ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5689ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5690ac_compiler_gnu=$ac_cv_c_compiler_gnu
5691
5692ac_ext=c
5693ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5694ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5695ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5696ac_compiler_gnu=$ac_cv_c_compiler_gnu
5697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC_FOR_BUILD understands -c and -o together" >&5
5698$as_echo_n "checking whether $CC_FOR_BUILD understands -c and -o together... " >&6; }
5699if ${am_cv_prog_cc_c_o+:} false; then :
5700  $as_echo_n "(cached) " >&6
5701else
5702  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5703/* end confdefs.h.  */
5704
5705int
5706main ()
5707{
5708
5709  ;
5710  return 0;
5711}
5712_ACEOF
5713  # Make sure it works both with $CC and with simple cc.
5714  # Following AC_PROG_CC_C_O, we do the test twice because some
5715  # compilers refuse to overwrite an existing .o file with -o,
5716  # though they will create one.
5717  am_cv_prog_cc_c_o=yes
5718  for am_i in 1 2; do
5719    if { echo "$as_me:$LINENO: $CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext" >&5
5720   ($CC_FOR_BUILD -c conftest.$ac_ext -o conftest2.$ac_build_objext) >&5 2>&5
5721   ac_status=$?
5722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723   (exit $ac_status); } \
5724         && test -f conftest2.$ac_build_objext; then
5725      : OK
5726    else
5727      am_cv_prog_cc_c_o=no
5728      break
5729    fi
5730  done
5731  rm -f core conftest*
5732  unset am_i
5733fi
5734{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5735$as_echo "$am_cv_prog_cc_c_o" >&6; }
5736if test "$am_cv_prog_cc_c_o" != yes; then
5737   # Losing compiler, so override with the script.
5738   # FIXME: It is wrong to rewrite CC.
5739   # But if we don't then we get into trouble of one sort or another.
5740   # A longer-term fix would be to have automake use am__CC in this case,
5741   # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5742   CC_FOR_BUILD="$am_aux_dir/compile $CC_FOR_BUILD"
5743fi
5744ac_ext=c
5745ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5746ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5747ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5748ac_compiler_gnu=$ac_cv_c_compiler_gnu
5749
5750
5751depcc="$CC_FOR_BUILD"   am_compiler_list=
5752
5753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5754$as_echo_n "checking dependency style of $depcc... " >&6; }
5755if ${am_cv_CC_dependencies_compiler_type+:} false; then :
5756  $as_echo_n "(cached) " >&6
5757else
5758  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5759  # We make a subdir and do the tests there.  Otherwise we can end up
5760  # making bogus files that we don't know about and never remove.  For
5761  # instance it was reported that on HP-UX the gcc test will end up
5762  # making a dummy file named 'D' -- because '-MD' means "put the output
5763  # in D".
5764  rm -rf conftest.dir
5765  mkdir conftest.dir
5766  # Copy depcomp to subdir because otherwise we won't find it if we're
5767  # using a relative directory.
5768  cp "$am_depcomp" conftest.dir
5769  cd conftest.dir
5770  # We will build objects and dependencies in a subdirectory because
5771  # it helps to detect inapplicable dependency modes.  For instance
5772  # both Tru64's cc and ICC support -MD to output dependencies as a
5773  # side effect of compilation, but ICC will put the dependencies in
5774  # the current directory while Tru64 will put them in the object
5775  # directory.
5776  mkdir sub
5777
5778  am_cv_CC_dependencies_compiler_type=none
5779  if test "$am_compiler_list" = ""; then
5780     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5781  fi
5782  am__universal=false
5783  case " $depcc " in #(
5784     *\ -arch\ *\ -arch\ *) am__universal=true ;;
5785     esac
5786
5787  for depmode in $am_compiler_list; do
5788    # Setup a source with many dependencies, because some compilers
5789    # like to wrap large dependency lists on column 80 (with \), and
5790    # we should not choose a depcomp mode which is confused by this.
5791    #
5792    # We need to recreate these files for each test, as the compiler may
5793    # overwrite some of them when testing with obscure command lines.
5794    # This happens at least with the AIX C compiler.
5795    : > sub/conftest.c
5796    for i in 1 2 3 4 5 6; do
5797      echo '#include "conftst'$i'.h"' >> sub/conftest.c
5798      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
5799      # Solaris 10 /bin/sh.
5800      echo '/* dummy */' > sub/conftst$i.h
5801    done
5802    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5803
5804    # We check with '-c' and '-o' for the sake of the "dashmstdout"
5805    # mode.  It turns out that the SunPro C++ compiler does not properly
5806    # handle '-M -o', and we need to detect this.  Also, some Intel
5807    # versions had trouble with output in subdirs.
5808    am__obj=sub/conftest.${OBJEXT-o}
5809    am__minus_obj="-o $am__obj"
5810    case $depmode in
5811    gcc)
5812      # This depmode causes a compiler race in universal mode.
5813      test "$am__universal" = false || continue
5814      ;;
5815    nosideeffect)
5816      # After this tag, mechanisms are not by side-effect, so they'll
5817      # only be used when explicitly requested.
5818      if test "x$enable_dependency_tracking" = xyes; then
5819	continue
5820      else
5821	break
5822      fi
5823      ;;
5824    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5825      # This compiler won't grok '-c -o', but also, the minuso test has
5826      # not run yet.  These depmodes are late enough in the game, and
5827      # so weak that their functioning should not be impacted.
5828      am__obj=conftest.${OBJEXT-o}
5829      am__minus_obj=
5830      ;;
5831    none) break ;;
5832    esac
5833    if depmode=$depmode \
5834       source=sub/conftest.c object=$am__obj \
5835       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5836       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5837         >/dev/null 2>conftest.err &&
5838       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5839       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5840       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5841       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5842      # icc doesn't choke on unknown options, it will just issue warnings
5843      # or remarks (even with -Werror).  So we grep stderr for any message
5844      # that says an option was ignored or not supported.
5845      # When given -MP, icc 7.0 and 7.1 complain thusly:
5846      #   icc: Command line warning: ignoring option '-M'; no argument required
5847      # The diagnosis changed in icc 8.0:
5848      #   icc: Command line remark: option '-MP' not supported
5849      if (grep 'ignoring option' conftest.err ||
5850          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5851        am_cv_CC_dependencies_compiler_type=$depmode
5852        break
5853      fi
5854    fi
5855  done
5856
5857  cd ..
5858  rm -rf conftest.dir
5859else
5860  am_cv_CC_dependencies_compiler_type=none
5861fi
5862
5863fi
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5865$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5866CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5867
5868 if
5869  test "x$enable_dependency_tracking" != xno \
5870  && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5871  am__fastdepCC_TRUE=
5872  am__fastdepCC_FALSE='#'
5873else
5874  am__fastdepCC_TRUE='#'
5875  am__fastdepCC_FALSE=
5876fi
5877
5878
5879ac_ext=c
5880ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
5881ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
5882ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
5883ac_compiler_gnu=$ac_cv_c_compiler_gnu
5884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5885$as_echo_n "checking how to run the C preprocessor... " >&6; }
5886# On Suns, sometimes $CPP names a directory.
5887if test -n "$CPP_FOR_BUILD" && test -d "$CPP_FOR_BUILD"; then
5888  CPP_FOR_BUILD=
5889fi
5890if test -z "$CPP_FOR_BUILD"; then
5891  if ${ac_cv_build_prog_CPP+:} false; then :
5892  $as_echo_n "(cached) " >&6
5893else
5894      # Double quotes because CPP needs to be expanded
5895    for CPP_FOR_BUILD in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"
5896    do
5897      ac_preproc_ok=false
5898for ac_c_preproc_warn_flag in '' yes
5899do
5900  # Use a header file that comes with gcc, so configuring glibc
5901  # with a fresh cross-compiler works.
5902  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5903  # <limits.h> exists even on freestanding compilers.
5904  # On the NeXT, cc -E runs the code through the compiler's parser,
5905  # not just through cpp. "Syntax error" is here to catch this case.
5906  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5907/* end confdefs.h.  */
5908#ifdef __STDC__
5909# include <limits.h>
5910#else
5911# include <assert.h>
5912#endif
5913		     Syntax error
5914_ACEOF
5915if ac_fn_c_try_cpp "$LINENO"; then :
5916
5917else
5918  # Broken: fails on valid input.
5919continue
5920fi
5921rm -f conftest.err conftest.i conftest.$ac_ext
5922
5923  # OK, works on sane cases.  Now check whether nonexistent headers
5924  # can be detected and how.
5925  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5926/* end confdefs.h.  */
5927#include <ac_nonexistent.h>
5928_ACEOF
5929if ac_fn_c_try_cpp "$LINENO"; then :
5930  # Broken: success on invalid input.
5931continue
5932else
5933  # Passes both tests.
5934ac_preproc_ok=:
5935break
5936fi
5937rm -f conftest.err conftest.i conftest.$ac_ext
5938
5939done
5940# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5941rm -f conftest.i conftest.err conftest.$ac_ext
5942if $ac_preproc_ok; then :
5943  break
5944fi
5945
5946    done
5947    ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5948
5949fi
5950  CPP_FOR_BUILD=$ac_cv_build_prog_CPP
5951else
5952  ac_cv_build_prog_CPP=$CPP_FOR_BUILD
5953fi
5954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
5955$as_echo "$CPP_FOR_BUILD" >&6; }
5956ac_preproc_ok=false
5957for ac_c_preproc_warn_flag in '' yes
5958do
5959  # Use a header file that comes with gcc, so configuring glibc
5960  # with a fresh cross-compiler works.
5961  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5962  # <limits.h> exists even on freestanding compilers.
5963  # On the NeXT, cc -E runs the code through the compiler's parser,
5964  # not just through cpp. "Syntax error" is here to catch this case.
5965  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5966/* end confdefs.h.  */
5967#ifdef __STDC__
5968# include <limits.h>
5969#else
5970# include <assert.h>
5971#endif
5972		     Syntax error
5973_ACEOF
5974if ac_fn_c_try_cpp "$LINENO"; then :
5975
5976else
5977  # Broken: fails on valid input.
5978continue
5979fi
5980rm -f conftest.err conftest.i conftest.$ac_ext
5981
5982  # OK, works on sane cases.  Now check whether nonexistent headers
5983  # can be detected and how.
5984  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5985/* end confdefs.h.  */
5986#include <ac_nonexistent.h>
5987_ACEOF
5988if ac_fn_c_try_cpp "$LINENO"; then :
5989  # Broken: success on invalid input.
5990continue
5991else
5992  # Passes both tests.
5993ac_preproc_ok=:
5994break
5995fi
5996rm -f conftest.err conftest.i conftest.$ac_ext
5997
5998done
5999# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6000rm -f conftest.i conftest.err conftest.$ac_ext
6001if $ac_preproc_ok; then :
6002
6003else
6004  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6005$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6006as_fn_error $? "C preprocessor \"$CPP_FOR_BUILD\" fails sanity check
6007See \`config.log' for more details" "$LINENO" 5; }
6008fi
6009
6010ac_ext=c
6011ac_build_cpp='$CPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6012ac_build_compile='$CC_FOR_BUILD -c $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6013ac_build_link='$CC_FOR_BUILD -o conftest$ac_build_exeext $CFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS_FOR_BUILD conftest.$ac_ext $LIBS >&5'
6014ac_compiler_gnu=$ac_cv_c_compiler_gnu
6015
6016
6017
6018ac_tool_prefix=$save_ac_tool_prefix
6019cross_compiling=$save_cross_compiling
6020
6021
6022BUILD_EXEEXT=$ac_build_exeext
6023BUILD_OBJEXT=$ac_build_objext
6024
6025ac_ext=cpp
6026ac_cpp='$CXXCPP $CPPFLAGS'
6027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6031$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6032if test -z "$CXXCPP"; then
6033  if ${ac_cv_prog_CXXCPP+:} false; then :
6034  $as_echo_n "(cached) " >&6
6035else
6036      # Double quotes because CXXCPP needs to be expanded
6037    for CXXCPP in "$CXX -E" "/lib/cpp"
6038    do
6039      ac_preproc_ok=false
6040for ac_cxx_preproc_warn_flag in '' yes
6041do
6042  # Use a header file that comes with gcc, so configuring glibc
6043  # with a fresh cross-compiler works.
6044  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6045  # <limits.h> exists even on freestanding compilers.
6046  # On the NeXT, cc -E runs the code through the compiler's parser,
6047  # not just through cpp. "Syntax error" is here to catch this case.
6048  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6049/* end confdefs.h.  */
6050#ifdef __STDC__
6051# include <limits.h>
6052#else
6053# include <assert.h>
6054#endif
6055		     Syntax error
6056_ACEOF
6057if ac_fn_cxx_try_cpp "$LINENO"; then :
6058
6059else
6060  # Broken: fails on valid input.
6061continue
6062fi
6063rm -f conftest.err conftest.i conftest.$ac_ext
6064
6065  # OK, works on sane cases.  Now check whether nonexistent headers
6066  # can be detected and how.
6067  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6068/* end confdefs.h.  */
6069#include <ac_nonexistent.h>
6070_ACEOF
6071if ac_fn_cxx_try_cpp "$LINENO"; then :
6072  # Broken: success on invalid input.
6073continue
6074else
6075  # Passes both tests.
6076ac_preproc_ok=:
6077break
6078fi
6079rm -f conftest.err conftest.i conftest.$ac_ext
6080
6081done
6082# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6083rm -f conftest.i conftest.err conftest.$ac_ext
6084if $ac_preproc_ok; then :
6085  break
6086fi
6087
6088    done
6089    ac_cv_prog_CXXCPP=$CXXCPP
6090
6091fi
6092  CXXCPP=$ac_cv_prog_CXXCPP
6093else
6094  ac_cv_prog_CXXCPP=$CXXCPP
6095fi
6096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
6097$as_echo "$CXXCPP" >&6; }
6098ac_preproc_ok=false
6099for ac_cxx_preproc_warn_flag in '' yes
6100do
6101  # Use a header file that comes with gcc, so configuring glibc
6102  # with a fresh cross-compiler works.
6103  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6104  # <limits.h> exists even on freestanding compilers.
6105  # On the NeXT, cc -E runs the code through the compiler's parser,
6106  # not just through cpp. "Syntax error" is here to catch this case.
6107  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6108/* end confdefs.h.  */
6109#ifdef __STDC__
6110# include <limits.h>
6111#else
6112# include <assert.h>
6113#endif
6114		     Syntax error
6115_ACEOF
6116if ac_fn_cxx_try_cpp "$LINENO"; then :
6117
6118else
6119  # Broken: fails on valid input.
6120continue
6121fi
6122rm -f conftest.err conftest.i conftest.$ac_ext
6123
6124  # OK, works on sane cases.  Now check whether nonexistent headers
6125  # can be detected and how.
6126  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6127/* end confdefs.h.  */
6128#include <ac_nonexistent.h>
6129_ACEOF
6130if ac_fn_cxx_try_cpp "$LINENO"; then :
6131  # Broken: success on invalid input.
6132continue
6133else
6134  # Passes both tests.
6135ac_preproc_ok=:
6136break
6137fi
6138rm -f conftest.err conftest.i conftest.$ac_ext
6139
6140done
6141# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6142rm -f conftest.i conftest.err conftest.$ac_ext
6143if $ac_preproc_ok; then :
6144
6145else
6146  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6147$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6148as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
6149See \`config.log' for more details" "$LINENO" 5; }
6150fi
6151
6152ac_ext=c
6153ac_cpp='$CPP $CPPFLAGS'
6154ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6155ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6156ac_compiler_gnu=$ac_cv_c_compiler_gnu
6157
6158
6159
6160save_cross_compiling=$cross_compiling
6161save_ac_tool_prefix=$ac_tool_prefix
6162cross_compiling=no
6163ac_tool_prefix=
6164
6165ac_ext=cpp
6166ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6167ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6168ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6169ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6170if test -z "$CXX_FOR_BUILD"; then
6171  if test -n "$CCC"; then
6172    CXX_FOR_BUILD=$CCC
6173  else
6174    if test -n "$ac_tool_prefix"; then
6175  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6176  do
6177    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6178set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6180$as_echo_n "checking for $ac_word... " >&6; }
6181if ${ac_cv_prog_CXX_FOR_BUILD+:} false; then :
6182  $as_echo_n "(cached) " >&6
6183else
6184  if test -n "$CXX_FOR_BUILD"; then
6185  ac_cv_prog_CXX_FOR_BUILD="$CXX_FOR_BUILD" # Let the user override the test.
6186else
6187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6188for as_dir in $PATH
6189do
6190  IFS=$as_save_IFS
6191  test -z "$as_dir" && as_dir=.
6192    for ac_exec_ext in '' $ac_executable_extensions; do
6193  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6194    ac_cv_prog_CXX_FOR_BUILD="$ac_tool_prefix$ac_prog"
6195    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6196    break 2
6197  fi
6198done
6199  done
6200IFS=$as_save_IFS
6201
6202fi
6203fi
6204CXX_FOR_BUILD=$ac_cv_prog_CXX_FOR_BUILD
6205if test -n "$CXX_FOR_BUILD"; then
6206  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX_FOR_BUILD" >&5
6207$as_echo "$CXX_FOR_BUILD" >&6; }
6208else
6209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6210$as_echo "no" >&6; }
6211fi
6212
6213
6214    test -n "$CXX_FOR_BUILD" && break
6215  done
6216fi
6217if test -z "$CXX_FOR_BUILD"; then
6218  ac_ct_CXX_FOR_BUILD=$CXX_FOR_BUILD
6219  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
6220do
6221  # Extract the first word of "$ac_prog", so it can be a program name with args.
6222set dummy $ac_prog; ac_word=$2
6223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6224$as_echo_n "checking for $ac_word... " >&6; }
6225if ${ac_cv_prog_ac_ct_CXX_FOR_BUILD+:} false; then :
6226  $as_echo_n "(cached) " >&6
6227else
6228  if test -n "$ac_ct_CXX_FOR_BUILD"; then
6229  ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_ct_CXX_FOR_BUILD" # Let the user override the test.
6230else
6231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6232for as_dir in $PATH
6233do
6234  IFS=$as_save_IFS
6235  test -z "$as_dir" && as_dir=.
6236    for ac_exec_ext in '' $ac_executable_extensions; do
6237  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6238    ac_cv_prog_ac_ct_CXX_FOR_BUILD="$ac_prog"
6239    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6240    break 2
6241  fi
6242done
6243  done
6244IFS=$as_save_IFS
6245
6246fi
6247fi
6248ac_ct_CXX_FOR_BUILD=$ac_cv_prog_ac_ct_CXX_FOR_BUILD
6249if test -n "$ac_ct_CXX_FOR_BUILD"; then
6250  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX_FOR_BUILD" >&5
6251$as_echo "$ac_ct_CXX_FOR_BUILD" >&6; }
6252else
6253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6254$as_echo "no" >&6; }
6255fi
6256
6257
6258  test -n "$ac_ct_CXX_FOR_BUILD" && break
6259done
6260
6261  if test "x$ac_ct_CXX_FOR_BUILD" = x; then
6262    CXX_FOR_BUILD="g++"
6263  else
6264    case $cross_compiling:$ac_tool_warned in
6265yes:)
6266{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with build triplet" >&5
6267$as_echo "$as_me: WARNING: using cross tools not prefixed with build triplet" >&2;}
6268ac_tool_warned=yes ;;
6269esac
6270    CXX_FOR_BUILD=$ac_ct_CXX_FOR_BUILD
6271  fi
6272fi
6273
6274  fi
6275fi
6276# Provide some information about the compiler.
6277$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6278set X $ac_build_compile
6279ac_compiler=$2
6280for ac_option in --version -v -V -qversion; do
6281  { { ac_try="$ac_compiler $ac_option >&5"
6282case "(($ac_try" in
6283  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284  *) ac_try_echo=$ac_try;;
6285esac
6286eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6287$as_echo "$ac_try_echo"; } >&5
6288  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6289  ac_status=$?
6290  if test -s conftest.err; then
6291    sed '10a\
6292... rest of stderr output deleted ...
6293         10q' conftest.err >conftest.er1
6294    cat conftest.er1 >&5
6295  fi
6296  rm -f conftest.er1 conftest.err
6297  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6298  test $ac_status = 0; }
6299done
6300
6301{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6302$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6303if ${ac_cv_cxx_compiler_gnu+:} false; then :
6304  $as_echo_n "(cached) " >&6
6305else
6306  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6307/* end confdefs.h.  */
6308
6309int
6310main ()
6311{
6312#ifndef __GNUC__
6313       choke me
6314#endif
6315
6316  ;
6317  return 0;
6318}
6319_ACEOF
6320if ac_fn_cxx_try_compile "$LINENO"; then :
6321  ac_compiler_gnu=yes
6322else
6323  ac_compiler_gnu=no
6324fi
6325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6326ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6327
6328fi
6329{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6330$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6331if test $ac_compiler_gnu = yes; then
6332  GXX=yes
6333else
6334  GXX=
6335fi
6336ac_test_CXXFLAGS=${CXXFLAGS_FOR_BUILD+set}
6337ac_save_CXXFLAGS=$CXXFLAGS_FOR_BUILD
6338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX_FOR_BUILD accepts -g" >&5
6339$as_echo_n "checking whether $CXX_FOR_BUILD accepts -g... " >&6; }
6340if ${ac_cv_build_prog_cxx_g+:} false; then :
6341  $as_echo_n "(cached) " >&6
6342else
6343  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6344   ac_cxx_werror_flag=yes
6345   ac_cv_build_prog_cxx_g=no
6346   CXXFLAGS_FOR_BUILD="-g"
6347   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6348/* end confdefs.h.  */
6349
6350int
6351main ()
6352{
6353
6354  ;
6355  return 0;
6356}
6357_ACEOF
6358if ac_fn_cxx_try_compile "$LINENO"; then :
6359  ac_cv_build_prog_cxx_g=yes
6360else
6361  CXXFLAGS_FOR_BUILD=""
6362      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6363/* end confdefs.h.  */
6364
6365int
6366main ()
6367{
6368
6369  ;
6370  return 0;
6371}
6372_ACEOF
6373if ac_fn_cxx_try_compile "$LINENO"; then :
6374
6375else
6376  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6377	 CXXFLAGS_FOR_BUILD="-g"
6378	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6379/* end confdefs.h.  */
6380
6381int
6382main ()
6383{
6384
6385  ;
6386  return 0;
6387}
6388_ACEOF
6389if ac_fn_cxx_try_compile "$LINENO"; then :
6390  ac_cv_build_prog_cxx_g=yes
6391fi
6392rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6393fi
6394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395fi
6396rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6397   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6398fi
6399{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build_prog_cxx_g" >&5
6400$as_echo "$ac_cv_build_prog_cxx_g" >&6; }
6401if test "$ac_test_CXXFLAGS" = set; then
6402  CXXFLAGS_FOR_BUILD=$ac_save_CXXFLAGS
6403elif test $ac_cv_build_prog_cxx_g = yes; then
6404  if test "$GXX" = yes; then
6405    CXXFLAGS_FOR_BUILD="-g -O2"
6406  else
6407    CXXFLAGS_FOR_BUILD="-g"
6408  fi
6409else
6410  if test "$GXX" = yes; then
6411    CXXFLAGS_FOR_BUILD="-O2"
6412  else
6413    CXXFLAGS_FOR_BUILD=
6414  fi
6415fi
6416ac_ext=c
6417ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6418ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6419ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6420ac_compiler_gnu=$ac_cv_c_compiler_gnu
6421
6422depcc="$CXX_FOR_BUILD"  am_compiler_list=
6423
6424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6425$as_echo_n "checking dependency style of $depcc... " >&6; }
6426if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6427  $as_echo_n "(cached) " >&6
6428else
6429  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6430  # We make a subdir and do the tests there.  Otherwise we can end up
6431  # making bogus files that we don't know about and never remove.  For
6432  # instance it was reported that on HP-UX the gcc test will end up
6433  # making a dummy file named 'D' -- because '-MD' means "put the output
6434  # in D".
6435  rm -rf conftest.dir
6436  mkdir conftest.dir
6437  # Copy depcomp to subdir because otherwise we won't find it if we're
6438  # using a relative directory.
6439  cp "$am_depcomp" conftest.dir
6440  cd conftest.dir
6441  # We will build objects and dependencies in a subdirectory because
6442  # it helps to detect inapplicable dependency modes.  For instance
6443  # both Tru64's cc and ICC support -MD to output dependencies as a
6444  # side effect of compilation, but ICC will put the dependencies in
6445  # the current directory while Tru64 will put them in the object
6446  # directory.
6447  mkdir sub
6448
6449  am_cv_CXX_dependencies_compiler_type=none
6450  if test "$am_compiler_list" = ""; then
6451     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6452  fi
6453  am__universal=false
6454  case " $depcc " in #(
6455     *\ -arch\ *\ -arch\ *) am__universal=true ;;
6456     esac
6457
6458  for depmode in $am_compiler_list; do
6459    # Setup a source with many dependencies, because some compilers
6460    # like to wrap large dependency lists on column 80 (with \), and
6461    # we should not choose a depcomp mode which is confused by this.
6462    #
6463    # We need to recreate these files for each test, as the compiler may
6464    # overwrite some of them when testing with obscure command lines.
6465    # This happens at least with the AIX C compiler.
6466    : > sub/conftest.c
6467    for i in 1 2 3 4 5 6; do
6468      echo '#include "conftst'$i'.h"' >> sub/conftest.c
6469      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6470      # Solaris 10 /bin/sh.
6471      echo '/* dummy */' > sub/conftst$i.h
6472    done
6473    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6474
6475    # We check with '-c' and '-o' for the sake of the "dashmstdout"
6476    # mode.  It turns out that the SunPro C++ compiler does not properly
6477    # handle '-M -o', and we need to detect this.  Also, some Intel
6478    # versions had trouble with output in subdirs.
6479    am__obj=sub/conftest.${OBJEXT-o}
6480    am__minus_obj="-o $am__obj"
6481    case $depmode in
6482    gcc)
6483      # This depmode causes a compiler race in universal mode.
6484      test "$am__universal" = false || continue
6485      ;;
6486    nosideeffect)
6487      # After this tag, mechanisms are not by side-effect, so they'll
6488      # only be used when explicitly requested.
6489      if test "x$enable_dependency_tracking" = xyes; then
6490	continue
6491      else
6492	break
6493      fi
6494      ;;
6495    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6496      # This compiler won't grok '-c -o', but also, the minuso test has
6497      # not run yet.  These depmodes are late enough in the game, and
6498      # so weak that their functioning should not be impacted.
6499      am__obj=conftest.${OBJEXT-o}
6500      am__minus_obj=
6501      ;;
6502    none) break ;;
6503    esac
6504    if depmode=$depmode \
6505       source=sub/conftest.c object=$am__obj \
6506       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6507       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6508         >/dev/null 2>conftest.err &&
6509       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6510       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6511       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6512       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6513      # icc doesn't choke on unknown options, it will just issue warnings
6514      # or remarks (even with -Werror).  So we grep stderr for any message
6515      # that says an option was ignored or not supported.
6516      # When given -MP, icc 7.0 and 7.1 complain thusly:
6517      #   icc: Command line warning: ignoring option '-M'; no argument required
6518      # The diagnosis changed in icc 8.0:
6519      #   icc: Command line remark: option '-MP' not supported
6520      if (grep 'ignoring option' conftest.err ||
6521          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6522        am_cv_CXX_dependencies_compiler_type=$depmode
6523        break
6524      fi
6525    fi
6526  done
6527
6528  cd ..
6529  rm -rf conftest.dir
6530else
6531  am_cv_CXX_dependencies_compiler_type=none
6532fi
6533
6534fi
6535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6536$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6537CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6538
6539 if
6540  test "x$enable_dependency_tracking" != xno \
6541  && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6542  am__fastdepCXX_TRUE=
6543  am__fastdepCXX_FALSE='#'
6544else
6545  am__fastdepCXX_TRUE='#'
6546  am__fastdepCXX_FALSE=
6547fi
6548
6549
6550ac_ext=cpp
6551ac_cpp='$CXXCPP_FOR_BUILD $CPPFLAGS_FOR_BUILD'
6552ac_build_compile='$CXX_FOR_BUILD -c $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6553ac_build_link='$CXX_FOR_BUILD -o conftest$ac_exeext $CXXFLAGS_FOR_BUILD $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6554ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
6556$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
6557if test -z "$CXXCPP_FOR_BUILD"; then
6558  if ${ac_cv_build_prog_CXXCPP+:} false; then :
6559  $as_echo_n "(cached) " >&6
6560else
6561      # Double quotes because CXXCPP needs to be expanded
6562    for CXXCPP_FOR_BUILD in "$CXX_FOR_BUILD -E" "/lib/cpp"
6563    do
6564      ac_preproc_ok=false
6565for ac_cxx_preproc_warn_flag in '' yes
6566do
6567  # Use a header file that comes with gcc, so configuring glibc
6568  # with a fresh cross-compiler works.
6569  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6570  # <limits.h> exists even on freestanding compilers.
6571  # On the NeXT, cc -E runs the code through the compiler's parser,
6572  # not just through cpp. "Syntax error" is here to catch this case.
6573  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6574/* end confdefs.h.  */
6575#ifdef __STDC__
6576# include <limits.h>
6577#else
6578# include <assert.h>
6579#endif
6580		     Syntax error
6581_ACEOF
6582if ac_fn_cxx_try_cpp "$LINENO"; then :
6583
6584else
6585  # Broken: fails on valid input.
6586continue
6587fi
6588rm -f conftest.err conftest.i conftest.$ac_ext
6589
6590  # OK, works on sane cases.  Now check whether nonexistent headers
6591  # can be detected and how.
6592  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6593/* end confdefs.h.  */
6594#include <ac_nonexistent.h>
6595_ACEOF
6596if ac_fn_cxx_try_cpp "$LINENO"; then :
6597  # Broken: success on invalid input.
6598continue
6599else
6600  # Passes both tests.
6601ac_preproc_ok=:
6602break
6603fi
6604rm -f conftest.err conftest.i conftest.$ac_ext
6605
6606done
6607# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6608rm -f conftest.i conftest.err conftest.$ac_ext
6609if $ac_preproc_ok; then :
6610  break
6611fi
6612
6613    done
6614    ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6615
6616fi
6617  CXXCPP_FOR_BUILD=$ac_cv_build_prog_CXXCPP
6618else
6619  ac_cv_build_prog_CXXCPP=$CXXCPP_FOR_BUILD
6620fi
6621{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP_FOR_BUILD" >&5
6622$as_echo "$CXXCPP_FOR_BUILD" >&6; }
6623ac_preproc_ok=false
6624for ac_cxx_preproc_warn_flag in '' yes
6625do
6626  # Use a header file that comes with gcc, so configuring glibc
6627  # with a fresh cross-compiler works.
6628  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6629  # <limits.h> exists even on freestanding compilers.
6630  # On the NeXT, cc -E runs the code through the compiler's parser,
6631  # not just through cpp. "Syntax error" is here to catch this case.
6632  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h.  */
6634#ifdef __STDC__
6635# include <limits.h>
6636#else
6637# include <assert.h>
6638#endif
6639		     Syntax error
6640_ACEOF
6641if ac_fn_cxx_try_cpp "$LINENO"; then :
6642
6643else
6644  # Broken: fails on valid input.
6645continue
6646fi
6647rm -f conftest.err conftest.i conftest.$ac_ext
6648
6649  # OK, works on sane cases.  Now check whether nonexistent headers
6650  # can be detected and how.
6651  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6652/* end confdefs.h.  */
6653#include <ac_nonexistent.h>
6654_ACEOF
6655if ac_fn_cxx_try_cpp "$LINENO"; then :
6656  # Broken: success on invalid input.
6657continue
6658else
6659  # Passes both tests.
6660ac_preproc_ok=:
6661break
6662fi
6663rm -f conftest.err conftest.i conftest.$ac_ext
6664
6665done
6666# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
6667rm -f conftest.i conftest.err conftest.$ac_ext
6668if $ac_preproc_ok; then :
6669
6670else
6671  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
6672$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
6673as_fn_error $? "C++ preprocessor \"$CXXCPP_FOR_BUILD\" fails sanity check
6674See \`config.log' for more details" "$LINENO" 5; }
6675fi
6676
6677ac_ext=c
6678ac_cpp='$CPP $CPPFLAGS_FOR_BUILD'
6679ac_build_compile='$CC -c $CFLAGS $CPPFLAGS_FOR_BUILD conftest.$ac_ext >&5'
6680ac_build_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS_FOR_BUILD $LDFLAGS conftest.$ac_ext $LIBS >&5'
6681ac_compiler_gnu=$ac_cv_c_compiler_gnu
6682
6683
6684ac_tool_prefix=$save_ac_tool_prefix
6685cross_compiling=$save_cross_compiling
6686
6687
6688
6689ac_ext=cpp
6690ac_cpp='$CXXCPP $CPPFLAGS'
6691ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6692ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6693ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6694
6695
6696
6697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
6698$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
6699if ${ac_cv_path_GREP+:} false; then :
6700  $as_echo_n "(cached) " >&6
6701else
6702  if test -z "$GREP"; then
6703  ac_path_GREP_found=false
6704  # Loop through the user's path and test for each of PROGNAME-LIST
6705  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6706for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6707do
6708  IFS=$as_save_IFS
6709  test -z "$as_dir" && as_dir=.
6710    for ac_prog in grep ggrep; do
6711    for ac_exec_ext in '' $ac_executable_extensions; do
6712      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
6713      as_fn_executable_p "$ac_path_GREP" || continue
6714# Check for GNU ac_path_GREP and select it if it is found.
6715  # Check for GNU $ac_path_GREP
6716case `"$ac_path_GREP" --version 2>&1` in
6717*GNU*)
6718  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
6719*)
6720  ac_count=0
6721  $as_echo_n 0123456789 >"conftest.in"
6722  while :
6723  do
6724    cat "conftest.in" "conftest.in" >"conftest.tmp"
6725    mv "conftest.tmp" "conftest.in"
6726    cp "conftest.in" "conftest.nl"
6727    $as_echo 'GREP' >> "conftest.nl"
6728    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6729    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6730    as_fn_arith $ac_count + 1 && ac_count=$as_val
6731    if test $ac_count -gt ${ac_path_GREP_max-0}; then
6732      # Best one so far, save it but keep looking for a better one
6733      ac_cv_path_GREP="$ac_path_GREP"
6734      ac_path_GREP_max=$ac_count
6735    fi
6736    # 10*(2^10) chars as input seems more than enough
6737    test $ac_count -gt 10 && break
6738  done
6739  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6740esac
6741
6742      $ac_path_GREP_found && break 3
6743    done
6744  done
6745  done
6746IFS=$as_save_IFS
6747  if test -z "$ac_cv_path_GREP"; then
6748    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6749  fi
6750else
6751  ac_cv_path_GREP=$GREP
6752fi
6753
6754fi
6755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
6756$as_echo "$ac_cv_path_GREP" >&6; }
6757 GREP="$ac_cv_path_GREP"
6758
6759
6760{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
6761$as_echo_n "checking for egrep... " >&6; }
6762if ${ac_cv_path_EGREP+:} false; then :
6763  $as_echo_n "(cached) " >&6
6764else
6765  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
6766   then ac_cv_path_EGREP="$GREP -E"
6767   else
6768     if test -z "$EGREP"; then
6769  ac_path_EGREP_found=false
6770  # Loop through the user's path and test for each of PROGNAME-LIST
6771  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6772for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6773do
6774  IFS=$as_save_IFS
6775  test -z "$as_dir" && as_dir=.
6776    for ac_prog in egrep; do
6777    for ac_exec_ext in '' $ac_executable_extensions; do
6778      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
6779      as_fn_executable_p "$ac_path_EGREP" || continue
6780# Check for GNU ac_path_EGREP and select it if it is found.
6781  # Check for GNU $ac_path_EGREP
6782case `"$ac_path_EGREP" --version 2>&1` in
6783*GNU*)
6784  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
6785*)
6786  ac_count=0
6787  $as_echo_n 0123456789 >"conftest.in"
6788  while :
6789  do
6790    cat "conftest.in" "conftest.in" >"conftest.tmp"
6791    mv "conftest.tmp" "conftest.in"
6792    cp "conftest.in" "conftest.nl"
6793    $as_echo 'EGREP' >> "conftest.nl"
6794    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
6795    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6796    as_fn_arith $ac_count + 1 && ac_count=$as_val
6797    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
6798      # Best one so far, save it but keep looking for a better one
6799      ac_cv_path_EGREP="$ac_path_EGREP"
6800      ac_path_EGREP_max=$ac_count
6801    fi
6802    # 10*(2^10) chars as input seems more than enough
6803    test $ac_count -gt 10 && break
6804  done
6805  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6806esac
6807
6808      $ac_path_EGREP_found && break 3
6809    done
6810  done
6811  done
6812IFS=$as_save_IFS
6813  if test -z "$ac_cv_path_EGREP"; then
6814    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6815  fi
6816else
6817  ac_cv_path_EGREP=$EGREP
6818fi
6819
6820   fi
6821fi
6822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
6823$as_echo "$ac_cv_path_EGREP" >&6; }
6824 EGREP="$ac_cv_path_EGREP"
6825
6826
6827{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6828$as_echo_n "checking for ANSI C header files... " >&6; }
6829if ${ac_cv_header_stdc+:} false; then :
6830  $as_echo_n "(cached) " >&6
6831else
6832  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6833/* end confdefs.h.  */
6834#include <stdlib.h>
6835#include <stdarg.h>
6836#include <string.h>
6837#include <float.h>
6838
6839int
6840main ()
6841{
6842
6843  ;
6844  return 0;
6845}
6846_ACEOF
6847if ac_fn_cxx_try_compile "$LINENO"; then :
6848  ac_cv_header_stdc=yes
6849else
6850  ac_cv_header_stdc=no
6851fi
6852rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6853
6854if test $ac_cv_header_stdc = yes; then
6855  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6856  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6857/* end confdefs.h.  */
6858#include <string.h>
6859
6860_ACEOF
6861if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6862  $EGREP "memchr" >/dev/null 2>&1; then :
6863
6864else
6865  ac_cv_header_stdc=no
6866fi
6867rm -f conftest*
6868
6869fi
6870
6871if test $ac_cv_header_stdc = yes; then
6872  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6873  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6874/* end confdefs.h.  */
6875#include <stdlib.h>
6876
6877_ACEOF
6878if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6879  $EGREP "free" >/dev/null 2>&1; then :
6880
6881else
6882  ac_cv_header_stdc=no
6883fi
6884rm -f conftest*
6885
6886fi
6887
6888if test $ac_cv_header_stdc = yes; then
6889  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6890  if test "$cross_compiling" = yes; then :
6891  :
6892else
6893  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6894/* end confdefs.h.  */
6895#include <ctype.h>
6896#include <stdlib.h>
6897#if ((' ' & 0x0FF) == 0x020)
6898# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6899# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6900#else
6901# define ISLOWER(c) \
6902		   (('a' <= (c) && (c) <= 'i') \
6903		     || ('j' <= (c) && (c) <= 'r') \
6904		     || ('s' <= (c) && (c) <= 'z'))
6905# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6906#endif
6907
6908#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6909int
6910main ()
6911{
6912  int i;
6913  for (i = 0; i < 256; i++)
6914    if (XOR (islower (i), ISLOWER (i))
6915	|| toupper (i) != TOUPPER (i))
6916      return 2;
6917  return 0;
6918}
6919_ACEOF
6920if ac_fn_cxx_try_run "$LINENO"; then :
6921
6922else
6923  ac_cv_header_stdc=no
6924fi
6925rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6926  conftest.$ac_objext conftest.beam conftest.$ac_ext
6927fi
6928
6929fi
6930fi
6931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6932$as_echo "$ac_cv_header_stdc" >&6; }
6933if test $ac_cv_header_stdc = yes; then
6934
6935$as_echo "#define STDC_HEADERS 1" >>confdefs.h
6936
6937fi
6938
6939# On IRIX 5.3, sys/types and inttypes.h are conflicting.
6940for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6941		  inttypes.h stdint.h unistd.h
6942do :
6943  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6944ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
6945"
6946if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6947  cat >>confdefs.h <<_ACEOF
6948#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6949_ACEOF
6950
6951fi
6952
6953done
6954
6955
6956
6957  ac_fn_cxx_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
6958if test "x$ac_cv_header_minix_config_h" = xyes; then :
6959  MINIX=yes
6960else
6961  MINIX=
6962fi
6963
6964
6965  if test "$MINIX" = yes; then
6966
6967$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
6968
6969
6970$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
6971
6972
6973$as_echo "#define _MINIX 1" >>confdefs.h
6974
6975  fi
6976
6977
6978  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
6979$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
6980if ${ac_cv_safe_to_define___extensions__+:} false; then :
6981  $as_echo_n "(cached) " >&6
6982else
6983  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6984/* end confdefs.h.  */
6985
6986#         define __EXTENSIONS__ 1
6987          $ac_includes_default
6988int
6989main ()
6990{
6991
6992  ;
6993  return 0;
6994}
6995_ACEOF
6996if ac_fn_cxx_try_compile "$LINENO"; then :
6997  ac_cv_safe_to_define___extensions__=yes
6998else
6999  ac_cv_safe_to_define___extensions__=no
7000fi
7001rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7002fi
7003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
7004$as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
7005  test $ac_cv_safe_to_define___extensions__ = yes &&
7006    $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
7007
7008  $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
7009
7010  $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
7011
7012  $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
7013
7014  $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
7015
7016
7017
7018
7019
7020
7021
7022
7023if test -n "$ac_tool_prefix"; then
7024  for ac_prog in ar lib "link -lib"
7025  do
7026    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7027set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029$as_echo_n "checking for $ac_word... " >&6; }
7030if ${ac_cv_prog_AR+:} false; then :
7031  $as_echo_n "(cached) " >&6
7032else
7033  if test -n "$AR"; then
7034  ac_cv_prog_AR="$AR" # Let the user override the test.
7035else
7036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037for as_dir in $PATH
7038do
7039  IFS=$as_save_IFS
7040  test -z "$as_dir" && as_dir=.
7041    for ac_exec_ext in '' $ac_executable_extensions; do
7042  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
7044    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045    break 2
7046  fi
7047done
7048  done
7049IFS=$as_save_IFS
7050
7051fi
7052fi
7053AR=$ac_cv_prog_AR
7054if test -n "$AR"; then
7055  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7056$as_echo "$AR" >&6; }
7057else
7058  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059$as_echo "no" >&6; }
7060fi
7061
7062
7063    test -n "$AR" && break
7064  done
7065fi
7066if test -z "$AR"; then
7067  ac_ct_AR=$AR
7068  for ac_prog in ar lib "link -lib"
7069do
7070  # Extract the first word of "$ac_prog", so it can be a program name with args.
7071set dummy $ac_prog; ac_word=$2
7072{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7073$as_echo_n "checking for $ac_word... " >&6; }
7074if ${ac_cv_prog_ac_ct_AR+:} false; then :
7075  $as_echo_n "(cached) " >&6
7076else
7077  if test -n "$ac_ct_AR"; then
7078  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7079else
7080as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7081for as_dir in $PATH
7082do
7083  IFS=$as_save_IFS
7084  test -z "$as_dir" && as_dir=.
7085    for ac_exec_ext in '' $ac_executable_extensions; do
7086  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7087    ac_cv_prog_ac_ct_AR="$ac_prog"
7088    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7089    break 2
7090  fi
7091done
7092  done
7093IFS=$as_save_IFS
7094
7095fi
7096fi
7097ac_ct_AR=$ac_cv_prog_ac_ct_AR
7098if test -n "$ac_ct_AR"; then
7099  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7100$as_echo "$ac_ct_AR" >&6; }
7101else
7102  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7103$as_echo "no" >&6; }
7104fi
7105
7106
7107  test -n "$ac_ct_AR" && break
7108done
7109
7110  if test "x$ac_ct_AR" = x; then
7111    AR="false"
7112  else
7113    case $cross_compiling:$ac_tool_warned in
7114yes:)
7115{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7116$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7117ac_tool_warned=yes ;;
7118esac
7119    AR=$ac_ct_AR
7120  fi
7121fi
7122
7123: ${AR=ar}
7124
7125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
7126$as_echo_n "checking the archiver ($AR) interface... " >&6; }
7127if ${am_cv_ar_interface+:} false; then :
7128  $as_echo_n "(cached) " >&6
7129else
7130  ac_ext=c
7131ac_cpp='$CPP $CPPFLAGS'
7132ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7133ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7134ac_compiler_gnu=$ac_cv_c_compiler_gnu
7135
7136   am_cv_ar_interface=ar
7137   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7138/* end confdefs.h.  */
7139int some_variable = 0;
7140_ACEOF
7141if ac_fn_c_try_compile "$LINENO"; then :
7142  am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
7143      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7144  (eval $am_ar_try) 2>&5
7145  ac_status=$?
7146  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7147  test $ac_status = 0; }
7148      if test "$ac_status" -eq 0; then
7149        am_cv_ar_interface=ar
7150      else
7151        am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
7152        { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
7153  (eval $am_ar_try) 2>&5
7154  ac_status=$?
7155  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7156  test $ac_status = 0; }
7157        if test "$ac_status" -eq 0; then
7158          am_cv_ar_interface=lib
7159        else
7160          am_cv_ar_interface=unknown
7161        fi
7162      fi
7163      rm -f conftest.lib libconftest.a
7164
7165fi
7166rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7167   ac_ext=cpp
7168ac_cpp='$CXXCPP $CPPFLAGS'
7169ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7170ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7171ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7172
7173fi
7174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
7175$as_echo "$am_cv_ar_interface" >&6; }
7176
7177case $am_cv_ar_interface in
7178ar)
7179  ;;
7180lib)
7181  # Microsoft lib, so override with the ar-lib wrapper script.
7182  # FIXME: It is wrong to rewrite AR.
7183  # But if we don't then we get into trouble of one sort or another.
7184  # A longer-term fix would be to have automake use am__AR in this case,
7185  # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
7186  # similar.
7187  AR="$am_aux_dir/ar-lib $AR"
7188  ;;
7189unknown)
7190  as_fn_error $? "could not determine $AR interface" "$LINENO" 5
7191  ;;
7192esac
7193
7194 if test "$GCC" = yes; then
7195  GCC_TRUE=
7196  GCC_FALSE='#'
7197else
7198  GCC_TRUE='#'
7199  GCC_FALSE=
7200fi
7201   # let the Makefile know if we're gcc
7202ac_ext=m
7203ac_cpp='$OBJCPP $CPPFLAGS'
7204ac_compile='$OBJC -c $OBJCFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7205ac_link='$OBJC -o conftest$ac_exeext $OBJCFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7206ac_compiler_gnu=$ac_cv_objc_compiler_gnu
7207if test -n "$ac_tool_prefix"; then
7208  for ac_prog in gcc objcc objc cc CC
7209  do
7210    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7211set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7213$as_echo_n "checking for $ac_word... " >&6; }
7214if ${ac_cv_prog_OBJC+:} false; then :
7215  $as_echo_n "(cached) " >&6
7216else
7217  if test -n "$OBJC"; then
7218  ac_cv_prog_OBJC="$OBJC" # Let the user override the test.
7219else
7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7221for as_dir in $PATH
7222do
7223  IFS=$as_save_IFS
7224  test -z "$as_dir" && as_dir=.
7225    for ac_exec_ext in '' $ac_executable_extensions; do
7226  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7227    ac_cv_prog_OBJC="$ac_tool_prefix$ac_prog"
7228    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7229    break 2
7230  fi
7231done
7232  done
7233IFS=$as_save_IFS
7234
7235fi
7236fi
7237OBJC=$ac_cv_prog_OBJC
7238if test -n "$OBJC"; then
7239  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJC" >&5
7240$as_echo "$OBJC" >&6; }
7241else
7242  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7243$as_echo "no" >&6; }
7244fi
7245
7246
7247    test -n "$OBJC" && break
7248  done
7249fi
7250if test -z "$OBJC"; then
7251  ac_ct_OBJC=$OBJC
7252  for ac_prog in gcc objcc objc cc CC
7253do
7254  # Extract the first word of "$ac_prog", so it can be a program name with args.
7255set dummy $ac_prog; ac_word=$2
7256{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7257$as_echo_n "checking for $ac_word... " >&6; }
7258if ${ac_cv_prog_ac_ct_OBJC+:} false; then :
7259  $as_echo_n "(cached) " >&6
7260else
7261  if test -n "$ac_ct_OBJC"; then
7262  ac_cv_prog_ac_ct_OBJC="$ac_ct_OBJC" # Let the user override the test.
7263else
7264as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7265for as_dir in $PATH
7266do
7267  IFS=$as_save_IFS
7268  test -z "$as_dir" && as_dir=.
7269    for ac_exec_ext in '' $ac_executable_extensions; do
7270  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7271    ac_cv_prog_ac_ct_OBJC="$ac_prog"
7272    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7273    break 2
7274  fi
7275done
7276  done
7277IFS=$as_save_IFS
7278
7279fi
7280fi
7281ac_ct_OBJC=$ac_cv_prog_ac_ct_OBJC
7282if test -n "$ac_ct_OBJC"; then
7283  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJC" >&5
7284$as_echo "$ac_ct_OBJC" >&6; }
7285else
7286  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7287$as_echo "no" >&6; }
7288fi
7289
7290
7291  test -n "$ac_ct_OBJC" && break
7292done
7293
7294  if test "x$ac_ct_OBJC" = x; then
7295    OBJC="gcc"
7296  else
7297    case $cross_compiling:$ac_tool_warned in
7298yes:)
7299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7301ac_tool_warned=yes ;;
7302esac
7303    OBJC=$ac_ct_OBJC
7304  fi
7305fi
7306
7307# Provide some information about the compiler.
7308$as_echo "$as_me:${as_lineno-$LINENO}: checking for Objective C compiler version" >&5
7309set X $ac_compile
7310ac_compiler=$2
7311for ac_option in --version -v -V -qversion; do
7312  { { ac_try="$ac_compiler $ac_option >&5"
7313case "(($ac_try" in
7314  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7315  *) ac_try_echo=$ac_try;;
7316esac
7317eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7318$as_echo "$ac_try_echo"; } >&5
7319  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7320  ac_status=$?
7321  if test -s conftest.err; then
7322    sed '10a\
7323... rest of stderr output deleted ...
7324         10q' conftest.err >conftest.er1
7325    cat conftest.er1 >&5
7326  fi
7327  rm -f conftest.er1 conftest.err
7328  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7329  test $ac_status = 0; }
7330done
7331
7332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Objective C compiler" >&5
7333$as_echo_n "checking whether we are using the GNU Objective C compiler... " >&6; }
7334if ${ac_cv_objc_compiler_gnu+:} false; then :
7335  $as_echo_n "(cached) " >&6
7336else
7337  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7338/* end confdefs.h.  */
7339
7340int
7341main ()
7342{
7343#ifndef __GNUC__
7344       choke me
7345#endif
7346
7347  ;
7348  return 0;
7349}
7350_ACEOF
7351if ac_fn_objc_try_compile "$LINENO"; then :
7352  ac_compiler_gnu=yes
7353else
7354  ac_compiler_gnu=no
7355fi
7356rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7357ac_cv_objc_compiler_gnu=$ac_compiler_gnu
7358
7359fi
7360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objc_compiler_gnu" >&5
7361$as_echo "$ac_cv_objc_compiler_gnu" >&6; }
7362if test $ac_compiler_gnu = yes; then
7363  GOBJC=yes
7364else
7365  GOBJC=
7366fi
7367ac_test_OBJCFLAGS=${OBJCFLAGS+set}
7368ac_save_OBJCFLAGS=$OBJCFLAGS
7369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $OBJC accepts -g" >&5
7370$as_echo_n "checking whether $OBJC accepts -g... " >&6; }
7371if ${ac_cv_prog_objc_g+:} false; then :
7372  $as_echo_n "(cached) " >&6
7373else
7374  ac_save_objc_werror_flag=$ac_objc_werror_flag
7375   ac_objc_werror_flag=yes
7376   ac_cv_prog_objc_g=no
7377   OBJCFLAGS="-g"
7378   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7379/* end confdefs.h.  */
7380
7381int
7382main ()
7383{
7384
7385  ;
7386  return 0;
7387}
7388_ACEOF
7389if ac_fn_objc_try_compile "$LINENO"; then :
7390  ac_cv_prog_objc_g=yes
7391else
7392  OBJCFLAGS=""
7393      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7394/* end confdefs.h.  */
7395
7396int
7397main ()
7398{
7399
7400  ;
7401  return 0;
7402}
7403_ACEOF
7404if ac_fn_objc_try_compile "$LINENO"; then :
7405
7406else
7407  ac_objc_werror_flag=$ac_save_objc_werror_flag
7408	 OBJCFLAGS="-g"
7409	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7410/* end confdefs.h.  */
7411
7412int
7413main ()
7414{
7415
7416  ;
7417  return 0;
7418}
7419_ACEOF
7420if ac_fn_objc_try_compile "$LINENO"; then :
7421  ac_cv_prog_objc_g=yes
7422fi
7423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7424fi
7425rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7426fi
7427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428   ac_objc_werror_flag=$ac_save_objc_werror_flag
7429fi
7430{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_objc_g" >&5
7431$as_echo "$ac_cv_prog_objc_g" >&6; }
7432if test "$ac_test_OBJCFLAGS" = set; then
7433  OBJCFLAGS=$ac_save_OBJCFLAGS
7434elif test $ac_cv_prog_objc_g = yes; then
7435  if test "$GOBJC" = yes; then
7436    OBJCFLAGS="-g -O2"
7437  else
7438    OBJCFLAGS="-g"
7439  fi
7440else
7441  if test "$GOBJC" = yes; then
7442    OBJCFLAGS="-O2"
7443  else
7444    OBJCFLAGS=
7445  fi
7446fi
7447ac_ext=cpp
7448ac_cpp='$CXXCPP $CPPFLAGS'
7449ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7450ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7451ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7452
7453depcc="$OBJC" am_compiler_list='gcc3 gcc'
7454
7455{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7456$as_echo_n "checking dependency style of $depcc... " >&6; }
7457if ${am_cv_OBJC_dependencies_compiler_type+:} false; then :
7458  $as_echo_n "(cached) " >&6
7459else
7460  if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7461  # We make a subdir and do the tests there.  Otherwise we can end up
7462  # making bogus files that we don't know about and never remove.  For
7463  # instance it was reported that on HP-UX the gcc test will end up
7464  # making a dummy file named 'D' -- because '-MD' means "put the output
7465  # in D".
7466  rm -rf conftest.dir
7467  mkdir conftest.dir
7468  # Copy depcomp to subdir because otherwise we won't find it if we're
7469  # using a relative directory.
7470  cp "$am_depcomp" conftest.dir
7471  cd conftest.dir
7472  # We will build objects and dependencies in a subdirectory because
7473  # it helps to detect inapplicable dependency modes.  For instance
7474  # both Tru64's cc and ICC support -MD to output dependencies as a
7475  # side effect of compilation, but ICC will put the dependencies in
7476  # the current directory while Tru64 will put them in the object
7477  # directory.
7478  mkdir sub
7479
7480  am_cv_OBJC_dependencies_compiler_type=none
7481  if test "$am_compiler_list" = ""; then
7482     am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7483  fi
7484  am__universal=false
7485
7486
7487  for depmode in $am_compiler_list; do
7488    # Setup a source with many dependencies, because some compilers
7489    # like to wrap large dependency lists on column 80 (with \), and
7490    # we should not choose a depcomp mode which is confused by this.
7491    #
7492    # We need to recreate these files for each test, as the compiler may
7493    # overwrite some of them when testing with obscure command lines.
7494    # This happens at least with the AIX C compiler.
7495    : > sub/conftest.c
7496    for i in 1 2 3 4 5 6; do
7497      echo '#include "conftst'$i'.h"' >> sub/conftest.c
7498      # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7499      # Solaris 10 /bin/sh.
7500      echo '/* dummy */' > sub/conftst$i.h
7501    done
7502    echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7503
7504    # We check with '-c' and '-o' for the sake of the "dashmstdout"
7505    # mode.  It turns out that the SunPro C++ compiler does not properly
7506    # handle '-M -o', and we need to detect this.  Also, some Intel
7507    # versions had trouble with output in subdirs.
7508    am__obj=sub/conftest.${OBJEXT-o}
7509    am__minus_obj="-o $am__obj"
7510    case $depmode in
7511    gcc)
7512      # This depmode causes a compiler race in universal mode.
7513      test "$am__universal" = false || continue
7514      ;;
7515    nosideeffect)
7516      # After this tag, mechanisms are not by side-effect, so they'll
7517      # only be used when explicitly requested.
7518      if test "x$enable_dependency_tracking" = xyes; then
7519	continue
7520      else
7521	break
7522      fi
7523      ;;
7524    msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7525      # This compiler won't grok '-c -o', but also, the minuso test has
7526      # not run yet.  These depmodes are late enough in the game, and
7527      # so weak that their functioning should not be impacted.
7528      am__obj=conftest.${OBJEXT-o}
7529      am__minus_obj=
7530      ;;
7531    none) break ;;
7532    esac
7533    if depmode=$depmode \
7534       source=sub/conftest.c object=$am__obj \
7535       depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7536       $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7537         >/dev/null 2>conftest.err &&
7538       grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7539       grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7540       grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7541       ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7542      # icc doesn't choke on unknown options, it will just issue warnings
7543      # or remarks (even with -Werror).  So we grep stderr for any message
7544      # that says an option was ignored or not supported.
7545      # When given -MP, icc 7.0 and 7.1 complain thusly:
7546      #   icc: Command line warning: ignoring option '-M'; no argument required
7547      # The diagnosis changed in icc 8.0:
7548      #   icc: Command line remark: option '-MP' not supported
7549      if (grep 'ignoring option' conftest.err ||
7550          grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7551        am_cv_OBJC_dependencies_compiler_type=$depmode
7552        break
7553      fi
7554    fi
7555  done
7556
7557  cd ..
7558  rm -rf conftest.dir
7559else
7560  am_cv_OBJC_dependencies_compiler_type=none
7561fi
7562
7563fi
7564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_OBJC_dependencies_compiler_type" >&5
7565$as_echo "$am_cv_OBJC_dependencies_compiler_type" >&6; }
7566OBJCDEPMODE=depmode=$am_cv_OBJC_dependencies_compiler_type
7567
7568 if
7569  test "x$enable_dependency_tracking" != xno \
7570  && test "$am_cv_OBJC_dependencies_compiler_type" = gcc3; then
7571  am__fastdepOBJC_TRUE=
7572  am__fastdepOBJC_FALSE='#'
7573else
7574  am__fastdepOBJC_TRUE='#'
7575  am__fastdepOBJC_FALSE=
7576fi
7577
7578
7579
7580# test_util.cc takes forever to compile with GCC and optimization turned on.
7581{ $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler flags..." >&5
7582$as_echo_n "checking C++ compiler flags...... " >&6; }
7583if test "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
7584
7585  if test "$GCC" = "yes"; then :
7586
7587    PROTOBUF_OPT_FLAG="-O2"
7588    CXXFLAGS="${CXXFLAGS} -g"
7589
7590fi
7591
7592  # Protocol Buffers contains several checks that are intended to be used only
7593  # for debugging and which might hurt performance.  Most users are probably
7594  # end users who don't want these checks, so add -DNDEBUG by default.
7595  CXXFLAGS="$CXXFLAGS -std=c++11 -DNDEBUG"
7596
7597  { $as_echo "$as_me:${as_lineno-$LINENO}: result: use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&5
7598$as_echo "use default: $PROTOBUF_OPT_FLAG $CXXFLAGS" >&6; }
7599
7600else
7601
7602  { $as_echo "$as_me:${as_lineno-$LINENO}: result: use user-supplied: $CXXFLAGS" >&5
7603$as_echo "use user-supplied: $CXXFLAGS" >&6; }
7604
7605fi
7606
7607
7608
7609
7610
7611  ac_ext=cpp
7612ac_cpp='$CXXCPP $CPPFLAGS'
7613ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7614ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7615ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7616
7617  ac_fn_cxx_check_decl "$LINENO" "__SUNPRO_CC" "ac_cv_have_decl___SUNPRO_CC" "$ac_includes_default"
7618if test "x$ac_cv_have_decl___SUNPRO_CC" = xyes; then :
7619  SUNCC="yes"
7620else
7621  SUNCC="no"
7622fi
7623
7624  ac_ext=cpp
7625ac_cpp='$CXXCPP $CPPFLAGS'
7626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7629
7630
7631
7632  # Check whether --enable-64bit-solaris was given.
7633if test "${enable_64bit_solaris+set}" = set; then :
7634  enableval=$enable_64bit_solaris; ac_enable_64bit="$enableval"
7635else
7636  ac_enable_64bit="yes"
7637fi
7638
7639
7640  if test "$SUNCC" = "yes" -a "x${ac_cv_env_CXXFLAGS_set}" = "x"; then :
7641
7642            CXXFLAGS="-g0 -xO3 -xlibmil -xdepend -xbuiltin -mt -template=no%extdef ${CXXFLAGS}"
7643
7644fi
7645
7646  case $host_os in
7647    *solaris*)
7648      for ac_prog in isainfo
7649do
7650  # Extract the first word of "$ac_prog", so it can be a program name with args.
7651set dummy $ac_prog; ac_word=$2
7652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7653$as_echo_n "checking for $ac_word... " >&6; }
7654if ${ac_cv_prog_ISAINFO+:} false; then :
7655  $as_echo_n "(cached) " >&6
7656else
7657  if test -n "$ISAINFO"; then
7658  ac_cv_prog_ISAINFO="$ISAINFO" # Let the user override the test.
7659else
7660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7661for as_dir in $PATH
7662do
7663  IFS=$as_save_IFS
7664  test -z "$as_dir" && as_dir=.
7665    for ac_exec_ext in '' $ac_executable_extensions; do
7666  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7667    ac_cv_prog_ISAINFO="$ac_prog"
7668    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7669    break 2
7670  fi
7671done
7672  done
7673IFS=$as_save_IFS
7674
7675fi
7676fi
7677ISAINFO=$ac_cv_prog_ISAINFO
7678if test -n "$ISAINFO"; then
7679  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ISAINFO" >&5
7680$as_echo "$ISAINFO" >&6; }
7681else
7682  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7683$as_echo "no" >&6; }
7684fi
7685
7686
7687  test -n "$ISAINFO" && break
7688done
7689test -n "$ISAINFO" || ISAINFO="no"
7690
7691      if test "x$ISAINFO" != "xno"; then :
7692  isainfo_b=`${ISAINFO} -b`
7693else
7694  isainfo_b="x"
7695fi
7696
7697      if test "$isainfo_b" != "x"; then :
7698
7699
7700        isainfo_k=`${ISAINFO} -k`
7701
7702        if test "x$ac_enable_64bit" = "xyes"; then :
7703
7704
7705          if test "x$libdir" = "x\${exec_prefix}/lib"; then :
7706
7707                                 libdir="${libdir}/${isainfo_k}"
7708
7709fi
7710
7711                                        CXXFLAGS="${CXXFLAGS} -m64"
7712          ac_cv_env_CXXFLAGS_set=set
7713          ac_cv_env_CXXFLAGS_value='-m64'
7714
7715          CFLAGS="${CFLAGS} -m64"
7716          ac_cv_env_CFLAGS_set=set
7717          ac_cv_env_CFLAGS_value='-m64'
7718
7719          if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
7720
7721            CXXFLAGS="-xmemalign=8s ${CXXFLAGS}"
7722
7723fi
7724
7725fi
7726
7727fi
7728    ;;
7729  esac
7730
7731  if test "$target_cpu" = "sparc" -a "x$SUNCC" = "xyes" ; then :
7732
7733    CXXFLAGS="-xregs=no%appl ${CXXFLAGS}"
7734
7735fi
7736
7737
7738# Have to do libtool after SUNCC, other wise it "helpfully" adds Crun Cstd
7739# to the link
7740case `pwd` in
7741  *\ * | *\	*)
7742    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7743$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7744esac
7745
7746
7747
7748macro_version='2.4.6'
7749macro_revision='2.4.6'
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763ltmain=$ac_aux_dir/ltmain.sh
7764
7765# Backslashify metacharacters that are still active within
7766# double-quoted strings.
7767sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
7768
7769# Same as above, but do not quote variable references.
7770double_quote_subst='s/\(["`\\]\)/\\\1/g'
7771
7772# Sed substitution to delay expansion of an escaped shell variable in a
7773# double_quote_subst'ed string.
7774delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7775
7776# Sed substitution to delay expansion of an escaped single quote.
7777delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
7778
7779# Sed substitution to avoid accidental globbing in evaled expressions
7780no_glob_subst='s/\*/\\\*/g'
7781
7782ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7783ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
7784ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
7785
7786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
7787$as_echo_n "checking how to print strings... " >&6; }
7788# Test print first, because it will be a builtin if present.
7789if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
7790   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
7791  ECHO='print -r --'
7792elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
7793  ECHO='printf %s\n'
7794else
7795  # Use this function as a fallback that always works.
7796  func_fallback_echo ()
7797  {
7798    eval 'cat <<_LTECHO_EOF
7799$1
7800_LTECHO_EOF'
7801  }
7802  ECHO='func_fallback_echo'
7803fi
7804
7805# func_echo_all arg...
7806# Invoke $ECHO with all args, space-separated.
7807func_echo_all ()
7808{
7809    $ECHO ""
7810}
7811
7812case $ECHO in
7813  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
7814$as_echo "printf" >&6; } ;;
7815  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
7816$as_echo "print -r" >&6; } ;;
7817  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
7818$as_echo "cat" >&6; } ;;
7819esac
7820
7821
7822
7823
7824
7825
7826
7827
7828
7829
7830
7831
7832
7833
7834{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7835$as_echo_n "checking for a sed that does not truncate output... " >&6; }
7836if ${ac_cv_path_SED+:} false; then :
7837  $as_echo_n "(cached) " >&6
7838else
7839            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7840     for ac_i in 1 2 3 4 5 6 7; do
7841       ac_script="$ac_script$as_nl$ac_script"
7842     done
7843     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7844     { ac_script=; unset ac_script;}
7845     if test -z "$SED"; then
7846  ac_path_SED_found=false
7847  # Loop through the user's path and test for each of PROGNAME-LIST
7848  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7849for as_dir in $PATH
7850do
7851  IFS=$as_save_IFS
7852  test -z "$as_dir" && as_dir=.
7853    for ac_prog in sed gsed; do
7854    for ac_exec_ext in '' $ac_executable_extensions; do
7855      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7856      as_fn_executable_p "$ac_path_SED" || continue
7857# Check for GNU ac_path_SED and select it if it is found.
7858  # Check for GNU $ac_path_SED
7859case `"$ac_path_SED" --version 2>&1` in
7860*GNU*)
7861  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7862*)
7863  ac_count=0
7864  $as_echo_n 0123456789 >"conftest.in"
7865  while :
7866  do
7867    cat "conftest.in" "conftest.in" >"conftest.tmp"
7868    mv "conftest.tmp" "conftest.in"
7869    cp "conftest.in" "conftest.nl"
7870    $as_echo '' >> "conftest.nl"
7871    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7872    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7873    as_fn_arith $ac_count + 1 && ac_count=$as_val
7874    if test $ac_count -gt ${ac_path_SED_max-0}; then
7875      # Best one so far, save it but keep looking for a better one
7876      ac_cv_path_SED="$ac_path_SED"
7877      ac_path_SED_max=$ac_count
7878    fi
7879    # 10*(2^10) chars as input seems more than enough
7880    test $ac_count -gt 10 && break
7881  done
7882  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7883esac
7884
7885      $ac_path_SED_found && break 3
7886    done
7887  done
7888  done
7889IFS=$as_save_IFS
7890  if test -z "$ac_cv_path_SED"; then
7891    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
7892  fi
7893else
7894  ac_cv_path_SED=$SED
7895fi
7896
7897fi
7898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
7899$as_echo "$ac_cv_path_SED" >&6; }
7900 SED="$ac_cv_path_SED"
7901  rm -f conftest.sed
7902
7903test -z "$SED" && SED=sed
7904Xsed="$SED -e 1s/^X//"
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915
7916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
7917$as_echo_n "checking for fgrep... " >&6; }
7918if ${ac_cv_path_FGREP+:} false; then :
7919  $as_echo_n "(cached) " >&6
7920else
7921  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
7922   then ac_cv_path_FGREP="$GREP -F"
7923   else
7924     if test -z "$FGREP"; then
7925  ac_path_FGREP_found=false
7926  # Loop through the user's path and test for each of PROGNAME-LIST
7927  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7928for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
7929do
7930  IFS=$as_save_IFS
7931  test -z "$as_dir" && as_dir=.
7932    for ac_prog in fgrep; do
7933    for ac_exec_ext in '' $ac_executable_extensions; do
7934      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
7935      as_fn_executable_p "$ac_path_FGREP" || continue
7936# Check for GNU ac_path_FGREP and select it if it is found.
7937  # Check for GNU $ac_path_FGREP
7938case `"$ac_path_FGREP" --version 2>&1` in
7939*GNU*)
7940  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
7941*)
7942  ac_count=0
7943  $as_echo_n 0123456789 >"conftest.in"
7944  while :
7945  do
7946    cat "conftest.in" "conftest.in" >"conftest.tmp"
7947    mv "conftest.tmp" "conftest.in"
7948    cp "conftest.in" "conftest.nl"
7949    $as_echo 'FGREP' >> "conftest.nl"
7950    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
7951    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7952    as_fn_arith $ac_count + 1 && ac_count=$as_val
7953    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
7954      # Best one so far, save it but keep looking for a better one
7955      ac_cv_path_FGREP="$ac_path_FGREP"
7956      ac_path_FGREP_max=$ac_count
7957    fi
7958    # 10*(2^10) chars as input seems more than enough
7959    test $ac_count -gt 10 && break
7960  done
7961  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
7962esac
7963
7964      $ac_path_FGREP_found && break 3
7965    done
7966  done
7967  done
7968IFS=$as_save_IFS
7969  if test -z "$ac_cv_path_FGREP"; then
7970    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
7971  fi
7972else
7973  ac_cv_path_FGREP=$FGREP
7974fi
7975
7976   fi
7977fi
7978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
7979$as_echo "$ac_cv_path_FGREP" >&6; }
7980 FGREP="$ac_cv_path_FGREP"
7981
7982
7983test -z "$GREP" && GREP=grep
7984
7985
7986
7987
7988
7989
7990
7991
7992
7993
7994
7995
7996
7997
7998
7999
8000
8001
8002
8003# Check whether --with-gnu-ld was given.
8004if test "${with_gnu_ld+set}" = set; then :
8005  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
8006else
8007  with_gnu_ld=no
8008fi
8009
8010ac_prog=ld
8011if test yes = "$GCC"; then
8012  # Check if gcc -print-prog-name=ld gives a path.
8013  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8014$as_echo_n "checking for ld used by $CC... " >&6; }
8015  case $host in
8016  *-*-mingw*)
8017    # gcc leaves a trailing carriage return, which upsets mingw
8018    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8019  *)
8020    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8021  esac
8022  case $ac_prog in
8023    # Accept absolute paths.
8024    [\\/]* | ?:[\\/]*)
8025      re_direlt='/[^/][^/]*/\.\./'
8026      # Canonicalize the pathname of ld
8027      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8028      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8029	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8030      done
8031      test -z "$LD" && LD=$ac_prog
8032      ;;
8033  "")
8034    # If it fails, then pretend we aren't using GCC.
8035    ac_prog=ld
8036    ;;
8037  *)
8038    # If it is relative, then search for the first ld in PATH.
8039    with_gnu_ld=unknown
8040    ;;
8041  esac
8042elif test yes = "$with_gnu_ld"; then
8043  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8044$as_echo_n "checking for GNU ld... " >&6; }
8045else
8046  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8047$as_echo_n "checking for non-GNU ld... " >&6; }
8048fi
8049if ${lt_cv_path_LD+:} false; then :
8050  $as_echo_n "(cached) " >&6
8051else
8052  if test -z "$LD"; then
8053  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8054  for ac_dir in $PATH; do
8055    IFS=$lt_save_ifs
8056    test -z "$ac_dir" && ac_dir=.
8057    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8058      lt_cv_path_LD=$ac_dir/$ac_prog
8059      # Check to see if the program is GNU ld.  I'd rather use --version,
8060      # but apparently some variants of GNU ld only accept -v.
8061      # Break only if it was the GNU/non-GNU ld that we prefer.
8062      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8063      *GNU* | *'with BFD'*)
8064	test no != "$with_gnu_ld" && break
8065	;;
8066      *)
8067	test yes != "$with_gnu_ld" && break
8068	;;
8069      esac
8070    fi
8071  done
8072  IFS=$lt_save_ifs
8073else
8074  lt_cv_path_LD=$LD # Let the user override the test with a path.
8075fi
8076fi
8077
8078LD=$lt_cv_path_LD
8079if test -n "$LD"; then
8080  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8081$as_echo "$LD" >&6; }
8082else
8083  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8084$as_echo "no" >&6; }
8085fi
8086test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8087{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8088$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8089if ${lt_cv_prog_gnu_ld+:} false; then :
8090  $as_echo_n "(cached) " >&6
8091else
8092  # I'd rather use --version here, but apparently some GNU lds only accept -v.
8093case `$LD -v 2>&1 </dev/null` in
8094*GNU* | *'with BFD'*)
8095  lt_cv_prog_gnu_ld=yes
8096  ;;
8097*)
8098  lt_cv_prog_gnu_ld=no
8099  ;;
8100esac
8101fi
8102{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8103$as_echo "$lt_cv_prog_gnu_ld" >&6; }
8104with_gnu_ld=$lt_cv_prog_gnu_ld
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8115$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8116if ${lt_cv_path_NM+:} false; then :
8117  $as_echo_n "(cached) " >&6
8118else
8119  if test -n "$NM"; then
8120  # Let the user override the test.
8121  lt_cv_path_NM=$NM
8122else
8123  lt_nm_to_check=${ac_tool_prefix}nm
8124  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8125    lt_nm_to_check="$lt_nm_to_check nm"
8126  fi
8127  for lt_tmp_nm in $lt_nm_to_check; do
8128    lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
8129    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8130      IFS=$lt_save_ifs
8131      test -z "$ac_dir" && ac_dir=.
8132      tmp_nm=$ac_dir/$lt_tmp_nm
8133      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then
8134	# Check to see if the nm accepts a BSD-compat flag.
8135	# Adding the 'sed 1q' prevents false positives on HP-UX, which says:
8136	#   nm: unknown option "B" ignored
8137	# Tru64's nm complains that /dev/null is an invalid object file
8138	# MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty
8139	case $build_os in
8140	mingw*) lt_bad_file=conftest.nm/nofile ;;
8141	*) lt_bad_file=/dev/null ;;
8142	esac
8143	case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in
8144	*$lt_bad_file* | *'Invalid file or object type'*)
8145	  lt_cv_path_NM="$tmp_nm -B"
8146	  break 2
8147	  ;;
8148	*)
8149	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8150	  */dev/null*)
8151	    lt_cv_path_NM="$tmp_nm -p"
8152	    break 2
8153	    ;;
8154	  *)
8155	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8156	    continue # so that we can try to find one that supports BSD flags
8157	    ;;
8158	  esac
8159	  ;;
8160	esac
8161      fi
8162    done
8163    IFS=$lt_save_ifs
8164  done
8165  : ${lt_cv_path_NM=no}
8166fi
8167fi
8168{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8169$as_echo "$lt_cv_path_NM" >&6; }
8170if test no != "$lt_cv_path_NM"; then
8171  NM=$lt_cv_path_NM
8172else
8173  # Didn't find any BSD compatible name lister, look for dumpbin.
8174  if test -n "$DUMPBIN"; then :
8175    # Let the user override the test.
8176  else
8177    if test -n "$ac_tool_prefix"; then
8178  for ac_prog in dumpbin "link -dump"
8179  do
8180    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8181set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8183$as_echo_n "checking for $ac_word... " >&6; }
8184if ${ac_cv_prog_DUMPBIN+:} false; then :
8185  $as_echo_n "(cached) " >&6
8186else
8187  if test -n "$DUMPBIN"; then
8188  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8189else
8190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8191for as_dir in $PATH
8192do
8193  IFS=$as_save_IFS
8194  test -z "$as_dir" && as_dir=.
8195    for ac_exec_ext in '' $ac_executable_extensions; do
8196  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8197    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8198    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199    break 2
8200  fi
8201done
8202  done
8203IFS=$as_save_IFS
8204
8205fi
8206fi
8207DUMPBIN=$ac_cv_prog_DUMPBIN
8208if test -n "$DUMPBIN"; then
8209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8210$as_echo "$DUMPBIN" >&6; }
8211else
8212  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8213$as_echo "no" >&6; }
8214fi
8215
8216
8217    test -n "$DUMPBIN" && break
8218  done
8219fi
8220if test -z "$DUMPBIN"; then
8221  ac_ct_DUMPBIN=$DUMPBIN
8222  for ac_prog in dumpbin "link -dump"
8223do
8224  # Extract the first word of "$ac_prog", so it can be a program name with args.
8225set dummy $ac_prog; ac_word=$2
8226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8227$as_echo_n "checking for $ac_word... " >&6; }
8228if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8229  $as_echo_n "(cached) " >&6
8230else
8231  if test -n "$ac_ct_DUMPBIN"; then
8232  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8233else
8234as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8235for as_dir in $PATH
8236do
8237  IFS=$as_save_IFS
8238  test -z "$as_dir" && as_dir=.
8239    for ac_exec_ext in '' $ac_executable_extensions; do
8240  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8241    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8242    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8243    break 2
8244  fi
8245done
8246  done
8247IFS=$as_save_IFS
8248
8249fi
8250fi
8251ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8252if test -n "$ac_ct_DUMPBIN"; then
8253  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8254$as_echo "$ac_ct_DUMPBIN" >&6; }
8255else
8256  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8257$as_echo "no" >&6; }
8258fi
8259
8260
8261  test -n "$ac_ct_DUMPBIN" && break
8262done
8263
8264  if test "x$ac_ct_DUMPBIN" = x; then
8265    DUMPBIN=":"
8266  else
8267    case $cross_compiling:$ac_tool_warned in
8268yes:)
8269{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8270$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8271ac_tool_warned=yes ;;
8272esac
8273    DUMPBIN=$ac_ct_DUMPBIN
8274  fi
8275fi
8276
8277    case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in
8278    *COFF*)
8279      DUMPBIN="$DUMPBIN -symbols -headers"
8280      ;;
8281    *)
8282      DUMPBIN=:
8283      ;;
8284    esac
8285  fi
8286
8287  if test : != "$DUMPBIN"; then
8288    NM=$DUMPBIN
8289  fi
8290fi
8291test -z "$NM" && NM=nm
8292
8293
8294
8295
8296
8297
8298{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8299$as_echo_n "checking the name lister ($NM) interface... " >&6; }
8300if ${lt_cv_nm_interface+:} false; then :
8301  $as_echo_n "(cached) " >&6
8302else
8303  lt_cv_nm_interface="BSD nm"
8304  echo "int some_variable = 0;" > conftest.$ac_ext
8305  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8306  (eval "$ac_compile" 2>conftest.err)
8307  cat conftest.err >&5
8308  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8309  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8310  cat conftest.err >&5
8311  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8312  cat conftest.out >&5
8313  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8314    lt_cv_nm_interface="MS dumpbin"
8315  fi
8316  rm -f conftest*
8317fi
8318{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8319$as_echo "$lt_cv_nm_interface" >&6; }
8320
8321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8322$as_echo_n "checking whether ln -s works... " >&6; }
8323LN_S=$as_ln_s
8324if test "$LN_S" = "ln -s"; then
8325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8326$as_echo "yes" >&6; }
8327else
8328  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8329$as_echo "no, using $LN_S" >&6; }
8330fi
8331
8332# find the maximum length of command line arguments
8333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8334$as_echo_n "checking the maximum length of command line arguments... " >&6; }
8335if ${lt_cv_sys_max_cmd_len+:} false; then :
8336  $as_echo_n "(cached) " >&6
8337else
8338    i=0
8339  teststring=ABCD
8340
8341  case $build_os in
8342  msdosdjgpp*)
8343    # On DJGPP, this test can blow up pretty badly due to problems in libc
8344    # (any single argument exceeding 2000 bytes causes a buffer overrun
8345    # during glob expansion).  Even if it were fixed, the result of this
8346    # check would be larger than it should be.
8347    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
8348    ;;
8349
8350  gnu*)
8351    # Under GNU Hurd, this test is not required because there is
8352    # no limit to the length of command line arguments.
8353    # Libtool will interpret -1 as no limit whatsoever
8354    lt_cv_sys_max_cmd_len=-1;
8355    ;;
8356
8357  cygwin* | mingw* | cegcc*)
8358    # On Win9x/ME, this test blows up -- it succeeds, but takes
8359    # about 5 minutes as the teststring grows exponentially.
8360    # Worse, since 9x/ME are not pre-emptively multitasking,
8361    # you end up with a "frozen" computer, even though with patience
8362    # the test eventually succeeds (with a max line length of 256k).
8363    # Instead, let's just punt: use the minimum linelength reported by
8364    # all of the supported platforms: 8192 (on NT/2K/XP).
8365    lt_cv_sys_max_cmd_len=8192;
8366    ;;
8367
8368  mint*)
8369    # On MiNT this can take a long time and run out of memory.
8370    lt_cv_sys_max_cmd_len=8192;
8371    ;;
8372
8373  amigaos*)
8374    # On AmigaOS with pdksh, this test takes hours, literally.
8375    # So we just punt and use a minimum line length of 8192.
8376    lt_cv_sys_max_cmd_len=8192;
8377    ;;
8378
8379  bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*)
8380    # This has been around since 386BSD, at least.  Likely further.
8381    if test -x /sbin/sysctl; then
8382      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8383    elif test -x /usr/sbin/sysctl; then
8384      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8385    else
8386      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
8387    fi
8388    # And add a safety zone
8389    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8390    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8391    ;;
8392
8393  interix*)
8394    # We know the value 262144 and hardcode it with a safety zone (like BSD)
8395    lt_cv_sys_max_cmd_len=196608
8396    ;;
8397
8398  os2*)
8399    # The test takes a long time on OS/2.
8400    lt_cv_sys_max_cmd_len=8192
8401    ;;
8402
8403  osf*)
8404    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8405    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8406    # nice to cause kernel panics so lets avoid the loop below.
8407    # First set a reasonable default.
8408    lt_cv_sys_max_cmd_len=16384
8409    #
8410    if test -x /sbin/sysconfig; then
8411      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8412        *1*) lt_cv_sys_max_cmd_len=-1 ;;
8413      esac
8414    fi
8415    ;;
8416  sco3.2v5*)
8417    lt_cv_sys_max_cmd_len=102400
8418    ;;
8419  sysv5* | sco5v6* | sysv4.2uw2*)
8420    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8421    if test -n "$kargmax"; then
8422      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
8423    else
8424      lt_cv_sys_max_cmd_len=32768
8425    fi
8426    ;;
8427  *)
8428    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8429    if test -n "$lt_cv_sys_max_cmd_len" && \
8430       test undefined != "$lt_cv_sys_max_cmd_len"; then
8431      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8432      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8433    else
8434      # Make teststring a little bigger before we do anything with it.
8435      # a 1K string should be a reasonable start.
8436      for i in 1 2 3 4 5 6 7 8; do
8437        teststring=$teststring$teststring
8438      done
8439      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8440      # If test is not a shell built-in, we'll probably end up computing a
8441      # maximum length that is only half of the actual maximum length, but
8442      # we can't tell.
8443      while { test X`env echo "$teststring$teststring" 2>/dev/null` \
8444	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8445	      test 17 != "$i" # 1/2 MB should be enough
8446      do
8447        i=`expr $i + 1`
8448        teststring=$teststring$teststring
8449      done
8450      # Only check the string length outside the loop.
8451      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8452      teststring=
8453      # Add a significant safety factor because C++ compilers can tack on
8454      # massive amounts of additional arguments before passing them to the
8455      # linker.  It appears as though 1/2 is a usable value.
8456      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8457    fi
8458    ;;
8459  esac
8460
8461fi
8462
8463if test -n "$lt_cv_sys_max_cmd_len"; then
8464  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8465$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8466else
8467  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8468$as_echo "none" >&6; }
8469fi
8470max_cmd_len=$lt_cv_sys_max_cmd_len
8471
8472
8473
8474
8475
8476
8477: ${CP="cp -f"}
8478: ${MV="mv -f"}
8479: ${RM="rm -f"}
8480
8481if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8482  lt_unset=unset
8483else
8484  lt_unset=false
8485fi
8486
8487
8488
8489
8490
8491# test EBCDIC or ASCII
8492case `echo X|tr X '\101'` in
8493 A) # ASCII based system
8494    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8495  lt_SP2NL='tr \040 \012'
8496  lt_NL2SP='tr \015\012 \040\040'
8497  ;;
8498 *) # EBCDIC based system
8499  lt_SP2NL='tr \100 \n'
8500  lt_NL2SP='tr \r\n \100\100'
8501  ;;
8502esac
8503
8504
8505
8506
8507
8508
8509
8510
8511
8512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
8513$as_echo_n "checking how to convert $build file names to $host format... " >&6; }
8514if ${lt_cv_to_host_file_cmd+:} false; then :
8515  $as_echo_n "(cached) " >&6
8516else
8517  case $host in
8518  *-*-mingw* )
8519    case $build in
8520      *-*-mingw* ) # actually msys
8521        lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
8522        ;;
8523      *-*-cygwin* )
8524        lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
8525        ;;
8526      * ) # otherwise, assume *nix
8527        lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
8528        ;;
8529    esac
8530    ;;
8531  *-*-cygwin* )
8532    case $build in
8533      *-*-mingw* ) # actually msys
8534        lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
8535        ;;
8536      *-*-cygwin* )
8537        lt_cv_to_host_file_cmd=func_convert_file_noop
8538        ;;
8539      * ) # otherwise, assume *nix
8540        lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
8541        ;;
8542    esac
8543    ;;
8544  * ) # unhandled hosts (and "normal" native builds)
8545    lt_cv_to_host_file_cmd=func_convert_file_noop
8546    ;;
8547esac
8548
8549fi
8550
8551to_host_file_cmd=$lt_cv_to_host_file_cmd
8552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
8553$as_echo "$lt_cv_to_host_file_cmd" >&6; }
8554
8555
8556
8557
8558
8559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
8560$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
8561if ${lt_cv_to_tool_file_cmd+:} false; then :
8562  $as_echo_n "(cached) " >&6
8563else
8564  #assume ordinary cross tools, or native build.
8565lt_cv_to_tool_file_cmd=func_convert_file_noop
8566case $host in
8567  *-*-mingw* )
8568    case $build in
8569      *-*-mingw* ) # actually msys
8570        lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
8571        ;;
8572    esac
8573    ;;
8574esac
8575
8576fi
8577
8578to_tool_file_cmd=$lt_cv_to_tool_file_cmd
8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
8580$as_echo "$lt_cv_to_tool_file_cmd" >&6; }
8581
8582
8583
8584
8585
8586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8587$as_echo_n "checking for $LD option to reload object files... " >&6; }
8588if ${lt_cv_ld_reload_flag+:} false; then :
8589  $as_echo_n "(cached) " >&6
8590else
8591  lt_cv_ld_reload_flag='-r'
8592fi
8593{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8594$as_echo "$lt_cv_ld_reload_flag" >&6; }
8595reload_flag=$lt_cv_ld_reload_flag
8596case $reload_flag in
8597"" | " "*) ;;
8598*) reload_flag=" $reload_flag" ;;
8599esac
8600reload_cmds='$LD$reload_flag -o $output$reload_objs'
8601case $host_os in
8602  cygwin* | mingw* | pw32* | cegcc*)
8603    if test yes != "$GCC"; then
8604      reload_cmds=false
8605    fi
8606    ;;
8607  darwin*)
8608    if test yes = "$GCC"; then
8609      reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs'
8610    else
8611      reload_cmds='$LD$reload_flag -o $output$reload_objs'
8612    fi
8613    ;;
8614esac
8615
8616
8617
8618
8619
8620
8621
8622
8623
8624if test -n "$ac_tool_prefix"; then
8625  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8626set dummy ${ac_tool_prefix}objdump; ac_word=$2
8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8628$as_echo_n "checking for $ac_word... " >&6; }
8629if ${ac_cv_prog_OBJDUMP+:} false; then :
8630  $as_echo_n "(cached) " >&6
8631else
8632  if test -n "$OBJDUMP"; then
8633  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8634else
8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8636for as_dir in $PATH
8637do
8638  IFS=$as_save_IFS
8639  test -z "$as_dir" && as_dir=.
8640    for ac_exec_ext in '' $ac_executable_extensions; do
8641  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8642    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8644    break 2
8645  fi
8646done
8647  done
8648IFS=$as_save_IFS
8649
8650fi
8651fi
8652OBJDUMP=$ac_cv_prog_OBJDUMP
8653if test -n "$OBJDUMP"; then
8654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8655$as_echo "$OBJDUMP" >&6; }
8656else
8657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8658$as_echo "no" >&6; }
8659fi
8660
8661
8662fi
8663if test -z "$ac_cv_prog_OBJDUMP"; then
8664  ac_ct_OBJDUMP=$OBJDUMP
8665  # Extract the first word of "objdump", so it can be a program name with args.
8666set dummy objdump; ac_word=$2
8667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8668$as_echo_n "checking for $ac_word... " >&6; }
8669if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
8670  $as_echo_n "(cached) " >&6
8671else
8672  if test -n "$ac_ct_OBJDUMP"; then
8673  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8674else
8675as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8676for as_dir in $PATH
8677do
8678  IFS=$as_save_IFS
8679  test -z "$as_dir" && as_dir=.
8680    for ac_exec_ext in '' $ac_executable_extensions; do
8681  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8682    ac_cv_prog_ac_ct_OBJDUMP="objdump"
8683    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8684    break 2
8685  fi
8686done
8687  done
8688IFS=$as_save_IFS
8689
8690fi
8691fi
8692ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8693if test -n "$ac_ct_OBJDUMP"; then
8694  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8695$as_echo "$ac_ct_OBJDUMP" >&6; }
8696else
8697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8698$as_echo "no" >&6; }
8699fi
8700
8701  if test "x$ac_ct_OBJDUMP" = x; then
8702    OBJDUMP="false"
8703  else
8704    case $cross_compiling:$ac_tool_warned in
8705yes:)
8706{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8707$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8708ac_tool_warned=yes ;;
8709esac
8710    OBJDUMP=$ac_ct_OBJDUMP
8711  fi
8712else
8713  OBJDUMP="$ac_cv_prog_OBJDUMP"
8714fi
8715
8716test -z "$OBJDUMP" && OBJDUMP=objdump
8717
8718
8719
8720
8721
8722
8723
8724
8725
8726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8727$as_echo_n "checking how to recognize dependent libraries... " >&6; }
8728if ${lt_cv_deplibs_check_method+:} false; then :
8729  $as_echo_n "(cached) " >&6
8730else
8731  lt_cv_file_magic_cmd='$MAGIC_CMD'
8732lt_cv_file_magic_test_file=
8733lt_cv_deplibs_check_method='unknown'
8734# Need to set the preceding variable on all platforms that support
8735# interlibrary dependencies.
8736# 'none' -- dependencies not supported.
8737# 'unknown' -- same as none, but documents that we really don't know.
8738# 'pass_all' -- all dependencies passed with no checks.
8739# 'test_compile' -- check by making test program.
8740# 'file_magic [[regex]]' -- check by looking for files in library path
8741# that responds to the $file_magic_cmd with a given extended regex.
8742# If you have 'file' or equivalent on your system and you're not sure
8743# whether 'pass_all' will *always* work, you probably want this one.
8744
8745case $host_os in
8746aix[4-9]*)
8747  lt_cv_deplibs_check_method=pass_all
8748  ;;
8749
8750beos*)
8751  lt_cv_deplibs_check_method=pass_all
8752  ;;
8753
8754bsdi[45]*)
8755  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8756  lt_cv_file_magic_cmd='/usr/bin/file -L'
8757  lt_cv_file_magic_test_file=/shlib/libc.so
8758  ;;
8759
8760cygwin*)
8761  # func_win32_libid is a shell function defined in ltmain.sh
8762  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8763  lt_cv_file_magic_cmd='func_win32_libid'
8764  ;;
8765
8766mingw* | pw32*)
8767  # Base MSYS/MinGW do not provide the 'file' command needed by
8768  # func_win32_libid shell function, so use a weaker test based on 'objdump',
8769  # unless we find 'file', for example because we are cross-compiling.
8770  if ( file / ) >/dev/null 2>&1; then
8771    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8772    lt_cv_file_magic_cmd='func_win32_libid'
8773  else
8774    # Keep this pattern in sync with the one in func_win32_libid.
8775    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
8776    lt_cv_file_magic_cmd='$OBJDUMP -f'
8777  fi
8778  ;;
8779
8780cegcc*)
8781  # use the weaker test based on 'objdump'. See mingw*.
8782  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8783  lt_cv_file_magic_cmd='$OBJDUMP -f'
8784  ;;
8785
8786darwin* | rhapsody*)
8787  lt_cv_deplibs_check_method=pass_all
8788  ;;
8789
8790freebsd* | dragonfly*)
8791  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8792    case $host_cpu in
8793    i*86 )
8794      # Not sure whether the presence of OpenBSD here was a mistake.
8795      # Let's accept both of them until this is cleared up.
8796      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8797      lt_cv_file_magic_cmd=/usr/bin/file
8798      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8799      ;;
8800    esac
8801  else
8802    lt_cv_deplibs_check_method=pass_all
8803  fi
8804  ;;
8805
8806haiku*)
8807  lt_cv_deplibs_check_method=pass_all
8808  ;;
8809
8810hpux10.20* | hpux11*)
8811  lt_cv_file_magic_cmd=/usr/bin/file
8812  case $host_cpu in
8813  ia64*)
8814    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8815    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8816    ;;
8817  hppa*64*)
8818    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]'
8819    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8820    ;;
8821  *)
8822    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
8823    lt_cv_file_magic_test_file=/usr/lib/libc.sl
8824    ;;
8825  esac
8826  ;;
8827
8828interix[3-9]*)
8829  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8830  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8831  ;;
8832
8833irix5* | irix6* | nonstopux*)
8834  case $LD in
8835  *-32|*"-32 ") libmagic=32-bit;;
8836  *-n32|*"-n32 ") libmagic=N32;;
8837  *-64|*"-64 ") libmagic=64-bit;;
8838  *) libmagic=never-match;;
8839  esac
8840  lt_cv_deplibs_check_method=pass_all
8841  ;;
8842
8843# This must be glibc/ELF.
8844linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8845  lt_cv_deplibs_check_method=pass_all
8846  ;;
8847
8848netbsd* | netbsdelf*-gnu)
8849  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8850    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8851  else
8852    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8853  fi
8854  ;;
8855
8856newos6*)
8857  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8858  lt_cv_file_magic_cmd=/usr/bin/file
8859  lt_cv_file_magic_test_file=/usr/lib/libnls.so
8860  ;;
8861
8862*nto* | *qnx*)
8863  lt_cv_deplibs_check_method=pass_all
8864  ;;
8865
8866openbsd* | bitrig*)
8867  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
8868    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8869  else
8870    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8871  fi
8872  ;;
8873
8874osf3* | osf4* | osf5*)
8875  lt_cv_deplibs_check_method=pass_all
8876  ;;
8877
8878rdos*)
8879  lt_cv_deplibs_check_method=pass_all
8880  ;;
8881
8882solaris*)
8883  lt_cv_deplibs_check_method=pass_all
8884  ;;
8885
8886sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8887  lt_cv_deplibs_check_method=pass_all
8888  ;;
8889
8890sysv4 | sysv4.3*)
8891  case $host_vendor in
8892  motorola)
8893    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]'
8894    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8895    ;;
8896  ncr)
8897    lt_cv_deplibs_check_method=pass_all
8898    ;;
8899  sequent)
8900    lt_cv_file_magic_cmd='/bin/file'
8901    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8902    ;;
8903  sni)
8904    lt_cv_file_magic_cmd='/bin/file'
8905    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8906    lt_cv_file_magic_test_file=/lib/libc.so
8907    ;;
8908  siemens)
8909    lt_cv_deplibs_check_method=pass_all
8910    ;;
8911  pc)
8912    lt_cv_deplibs_check_method=pass_all
8913    ;;
8914  esac
8915  ;;
8916
8917tpf*)
8918  lt_cv_deplibs_check_method=pass_all
8919  ;;
8920os2*)
8921  lt_cv_deplibs_check_method=pass_all
8922  ;;
8923esac
8924
8925fi
8926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8927$as_echo "$lt_cv_deplibs_check_method" >&6; }
8928
8929file_magic_glob=
8930want_nocaseglob=no
8931if test "$build" = "$host"; then
8932  case $host_os in
8933  mingw* | pw32*)
8934    if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
8935      want_nocaseglob=yes
8936    else
8937      file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
8938    fi
8939    ;;
8940  esac
8941fi
8942
8943file_magic_cmd=$lt_cv_file_magic_cmd
8944deplibs_check_method=$lt_cv_deplibs_check_method
8945test -z "$deplibs_check_method" && deplibs_check_method=unknown
8946
8947
8948
8949
8950
8951
8952
8953
8954
8955
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968if test -n "$ac_tool_prefix"; then
8969  # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
8970set dummy ${ac_tool_prefix}dlltool; ac_word=$2
8971{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8972$as_echo_n "checking for $ac_word... " >&6; }
8973if ${ac_cv_prog_DLLTOOL+:} false; then :
8974  $as_echo_n "(cached) " >&6
8975else
8976  if test -n "$DLLTOOL"; then
8977  ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
8978else
8979as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8980for as_dir in $PATH
8981do
8982  IFS=$as_save_IFS
8983  test -z "$as_dir" && as_dir=.
8984    for ac_exec_ext in '' $ac_executable_extensions; do
8985  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8986    ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
8987    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8988    break 2
8989  fi
8990done
8991  done
8992IFS=$as_save_IFS
8993
8994fi
8995fi
8996DLLTOOL=$ac_cv_prog_DLLTOOL
8997if test -n "$DLLTOOL"; then
8998  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8999$as_echo "$DLLTOOL" >&6; }
9000else
9001  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9002$as_echo "no" >&6; }
9003fi
9004
9005
9006fi
9007if test -z "$ac_cv_prog_DLLTOOL"; then
9008  ac_ct_DLLTOOL=$DLLTOOL
9009  # Extract the first word of "dlltool", so it can be a program name with args.
9010set dummy dlltool; ac_word=$2
9011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9012$as_echo_n "checking for $ac_word... " >&6; }
9013if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
9014  $as_echo_n "(cached) " >&6
9015else
9016  if test -n "$ac_ct_DLLTOOL"; then
9017  ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
9018else
9019as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9020for as_dir in $PATH
9021do
9022  IFS=$as_save_IFS
9023  test -z "$as_dir" && as_dir=.
9024    for ac_exec_ext in '' $ac_executable_extensions; do
9025  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9026    ac_cv_prog_ac_ct_DLLTOOL="dlltool"
9027    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9028    break 2
9029  fi
9030done
9031  done
9032IFS=$as_save_IFS
9033
9034fi
9035fi
9036ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
9037if test -n "$ac_ct_DLLTOOL"; then
9038  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
9039$as_echo "$ac_ct_DLLTOOL" >&6; }
9040else
9041  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9042$as_echo "no" >&6; }
9043fi
9044
9045  if test "x$ac_ct_DLLTOOL" = x; then
9046    DLLTOOL="false"
9047  else
9048    case $cross_compiling:$ac_tool_warned in
9049yes:)
9050{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9051$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9052ac_tool_warned=yes ;;
9053esac
9054    DLLTOOL=$ac_ct_DLLTOOL
9055  fi
9056else
9057  DLLTOOL="$ac_cv_prog_DLLTOOL"
9058fi
9059
9060test -z "$DLLTOOL" && DLLTOOL=dlltool
9061
9062
9063
9064
9065
9066
9067
9068
9069
9070
9071{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
9072$as_echo_n "checking how to associate runtime and link libraries... " >&6; }
9073if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
9074  $as_echo_n "(cached) " >&6
9075else
9076  lt_cv_sharedlib_from_linklib_cmd='unknown'
9077
9078case $host_os in
9079cygwin* | mingw* | pw32* | cegcc*)
9080  # two different shell functions defined in ltmain.sh;
9081  # decide which one to use based on capabilities of $DLLTOOL
9082  case `$DLLTOOL --help 2>&1` in
9083  *--identify-strict*)
9084    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
9085    ;;
9086  *)
9087    lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
9088    ;;
9089  esac
9090  ;;
9091*)
9092  # fallback: assume linklib IS sharedlib
9093  lt_cv_sharedlib_from_linklib_cmd=$ECHO
9094  ;;
9095esac
9096
9097fi
9098{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
9099$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
9100sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
9101test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
9102
9103
9104
9105
9106
9107
9108
9109if test -n "$ac_tool_prefix"; then
9110  for ac_prog in ar
9111  do
9112    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9113set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9114{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9115$as_echo_n "checking for $ac_word... " >&6; }
9116if ${ac_cv_prog_AR+:} false; then :
9117  $as_echo_n "(cached) " >&6
9118else
9119  if test -n "$AR"; then
9120  ac_cv_prog_AR="$AR" # Let the user override the test.
9121else
9122as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9123for as_dir in $PATH
9124do
9125  IFS=$as_save_IFS
9126  test -z "$as_dir" && as_dir=.
9127    for ac_exec_ext in '' $ac_executable_extensions; do
9128  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9129    ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
9130    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9131    break 2
9132  fi
9133done
9134  done
9135IFS=$as_save_IFS
9136
9137fi
9138fi
9139AR=$ac_cv_prog_AR
9140if test -n "$AR"; then
9141  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9142$as_echo "$AR" >&6; }
9143else
9144  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9145$as_echo "no" >&6; }
9146fi
9147
9148
9149    test -n "$AR" && break
9150  done
9151fi
9152if test -z "$AR"; then
9153  ac_ct_AR=$AR
9154  for ac_prog in ar
9155do
9156  # Extract the first word of "$ac_prog", so it can be a program name with args.
9157set dummy $ac_prog; ac_word=$2
9158{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9159$as_echo_n "checking for $ac_word... " >&6; }
9160if ${ac_cv_prog_ac_ct_AR+:} false; then :
9161  $as_echo_n "(cached) " >&6
9162else
9163  if test -n "$ac_ct_AR"; then
9164  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9165else
9166as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9167for as_dir in $PATH
9168do
9169  IFS=$as_save_IFS
9170  test -z "$as_dir" && as_dir=.
9171    for ac_exec_ext in '' $ac_executable_extensions; do
9172  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9173    ac_cv_prog_ac_ct_AR="$ac_prog"
9174    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9175    break 2
9176  fi
9177done
9178  done
9179IFS=$as_save_IFS
9180
9181fi
9182fi
9183ac_ct_AR=$ac_cv_prog_ac_ct_AR
9184if test -n "$ac_ct_AR"; then
9185  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9186$as_echo "$ac_ct_AR" >&6; }
9187else
9188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9189$as_echo "no" >&6; }
9190fi
9191
9192
9193  test -n "$ac_ct_AR" && break
9194done
9195
9196  if test "x$ac_ct_AR" = x; then
9197    AR="false"
9198  else
9199    case $cross_compiling:$ac_tool_warned in
9200yes:)
9201{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9202$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9203ac_tool_warned=yes ;;
9204esac
9205    AR=$ac_ct_AR
9206  fi
9207fi
9208
9209: ${AR=ar}
9210: ${AR_FLAGS=cr}
9211
9212
9213
9214
9215
9216
9217
9218
9219
9220
9221
9222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
9223$as_echo_n "checking for archiver @FILE support... " >&6; }
9224if ${lt_cv_ar_at_file+:} false; then :
9225  $as_echo_n "(cached) " >&6
9226else
9227  lt_cv_ar_at_file=no
9228   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9229/* end confdefs.h.  */
9230
9231int
9232main ()
9233{
9234
9235  ;
9236  return 0;
9237}
9238_ACEOF
9239if ac_fn_cxx_try_compile "$LINENO"; then :
9240  echo conftest.$ac_objext > conftest.lst
9241      lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
9242      { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9243  (eval $lt_ar_try) 2>&5
9244  ac_status=$?
9245  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9246  test $ac_status = 0; }
9247      if test 0 -eq "$ac_status"; then
9248	# Ensure the archiver fails upon bogus file names.
9249	rm -f conftest.$ac_objext libconftest.a
9250	{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
9251  (eval $lt_ar_try) 2>&5
9252  ac_status=$?
9253  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9254  test $ac_status = 0; }
9255	if test 0 -ne "$ac_status"; then
9256          lt_cv_ar_at_file=@
9257        fi
9258      fi
9259      rm -f conftest.* libconftest.a
9260
9261fi
9262rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9263
9264fi
9265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
9266$as_echo "$lt_cv_ar_at_file" >&6; }
9267
9268if test no = "$lt_cv_ar_at_file"; then
9269  archiver_list_spec=
9270else
9271  archiver_list_spec=$lt_cv_ar_at_file
9272fi
9273
9274
9275
9276
9277
9278
9279
9280if test -n "$ac_tool_prefix"; then
9281  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9282set dummy ${ac_tool_prefix}strip; ac_word=$2
9283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9284$as_echo_n "checking for $ac_word... " >&6; }
9285if ${ac_cv_prog_STRIP+:} false; then :
9286  $as_echo_n "(cached) " >&6
9287else
9288  if test -n "$STRIP"; then
9289  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9290else
9291as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9292for as_dir in $PATH
9293do
9294  IFS=$as_save_IFS
9295  test -z "$as_dir" && as_dir=.
9296    for ac_exec_ext in '' $ac_executable_extensions; do
9297  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9298    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9299    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9300    break 2
9301  fi
9302done
9303  done
9304IFS=$as_save_IFS
9305
9306fi
9307fi
9308STRIP=$ac_cv_prog_STRIP
9309if test -n "$STRIP"; then
9310  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9311$as_echo "$STRIP" >&6; }
9312else
9313  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9314$as_echo "no" >&6; }
9315fi
9316
9317
9318fi
9319if test -z "$ac_cv_prog_STRIP"; then
9320  ac_ct_STRIP=$STRIP
9321  # Extract the first word of "strip", so it can be a program name with args.
9322set dummy strip; ac_word=$2
9323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9324$as_echo_n "checking for $ac_word... " >&6; }
9325if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9326  $as_echo_n "(cached) " >&6
9327else
9328  if test -n "$ac_ct_STRIP"; then
9329  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9330else
9331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9332for as_dir in $PATH
9333do
9334  IFS=$as_save_IFS
9335  test -z "$as_dir" && as_dir=.
9336    for ac_exec_ext in '' $ac_executable_extensions; do
9337  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9338    ac_cv_prog_ac_ct_STRIP="strip"
9339    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9340    break 2
9341  fi
9342done
9343  done
9344IFS=$as_save_IFS
9345
9346fi
9347fi
9348ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9349if test -n "$ac_ct_STRIP"; then
9350  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9351$as_echo "$ac_ct_STRIP" >&6; }
9352else
9353  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9354$as_echo "no" >&6; }
9355fi
9356
9357  if test "x$ac_ct_STRIP" = x; then
9358    STRIP=":"
9359  else
9360    case $cross_compiling:$ac_tool_warned in
9361yes:)
9362{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9363$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9364ac_tool_warned=yes ;;
9365esac
9366    STRIP=$ac_ct_STRIP
9367  fi
9368else
9369  STRIP="$ac_cv_prog_STRIP"
9370fi
9371
9372test -z "$STRIP" && STRIP=:
9373
9374
9375
9376
9377
9378
9379if test -n "$ac_tool_prefix"; then
9380  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9381set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9383$as_echo_n "checking for $ac_word... " >&6; }
9384if ${ac_cv_prog_RANLIB+:} false; then :
9385  $as_echo_n "(cached) " >&6
9386else
9387  if test -n "$RANLIB"; then
9388  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9389else
9390as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9391for as_dir in $PATH
9392do
9393  IFS=$as_save_IFS
9394  test -z "$as_dir" && as_dir=.
9395    for ac_exec_ext in '' $ac_executable_extensions; do
9396  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9397    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9398    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9399    break 2
9400  fi
9401done
9402  done
9403IFS=$as_save_IFS
9404
9405fi
9406fi
9407RANLIB=$ac_cv_prog_RANLIB
9408if test -n "$RANLIB"; then
9409  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9410$as_echo "$RANLIB" >&6; }
9411else
9412  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9413$as_echo "no" >&6; }
9414fi
9415
9416
9417fi
9418if test -z "$ac_cv_prog_RANLIB"; then
9419  ac_ct_RANLIB=$RANLIB
9420  # Extract the first word of "ranlib", so it can be a program name with args.
9421set dummy ranlib; ac_word=$2
9422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9423$as_echo_n "checking for $ac_word... " >&6; }
9424if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9425  $as_echo_n "(cached) " >&6
9426else
9427  if test -n "$ac_ct_RANLIB"; then
9428  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9429else
9430as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9431for as_dir in $PATH
9432do
9433  IFS=$as_save_IFS
9434  test -z "$as_dir" && as_dir=.
9435    for ac_exec_ext in '' $ac_executable_extensions; do
9436  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9437    ac_cv_prog_ac_ct_RANLIB="ranlib"
9438    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9439    break 2
9440  fi
9441done
9442  done
9443IFS=$as_save_IFS
9444
9445fi
9446fi
9447ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9448if test -n "$ac_ct_RANLIB"; then
9449  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9450$as_echo "$ac_ct_RANLIB" >&6; }
9451else
9452  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9453$as_echo "no" >&6; }
9454fi
9455
9456  if test "x$ac_ct_RANLIB" = x; then
9457    RANLIB=":"
9458  else
9459    case $cross_compiling:$ac_tool_warned in
9460yes:)
9461{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9462$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9463ac_tool_warned=yes ;;
9464esac
9465    RANLIB=$ac_ct_RANLIB
9466  fi
9467else
9468  RANLIB="$ac_cv_prog_RANLIB"
9469fi
9470
9471test -z "$RANLIB" && RANLIB=:
9472
9473
9474
9475
9476
9477
9478# Determine commands to create old-style static archives.
9479old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9480old_postinstall_cmds='chmod 644 $oldlib'
9481old_postuninstall_cmds=
9482
9483if test -n "$RANLIB"; then
9484  case $host_os in
9485  bitrig* | openbsd*)
9486    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
9487    ;;
9488  *)
9489    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
9490    ;;
9491  esac
9492  old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
9493fi
9494
9495case $host_os in
9496  darwin*)
9497    lock_old_archive_extraction=yes ;;
9498  *)
9499    lock_old_archive_extraction=no ;;
9500esac
9501
9502
9503
9504
9505
9506
9507
9508
9509
9510
9511
9512
9513
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537
9538
9539
9540# If no C compiler was specified, use CC.
9541LTCC=${LTCC-"$CC"}
9542
9543# If no C compiler flags were specified, use CFLAGS.
9544LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9545
9546# Allow CC to be a program name with arguments.
9547compiler=$CC
9548
9549
9550# Check for command to grab the raw symbol name followed by C symbol from nm.
9551{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9552$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9553if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9554  $as_echo_n "(cached) " >&6
9555else
9556
9557# These are sane defaults that work on at least a few old systems.
9558# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
9559
9560# Character class describing NM global symbol codes.
9561symcode='[BCDEGRST]'
9562
9563# Regexp to match symbols that can be accessed directly from C.
9564sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9565
9566# Define system-specific variables.
9567case $host_os in
9568aix*)
9569  symcode='[BCDT]'
9570  ;;
9571cygwin* | mingw* | pw32* | cegcc*)
9572  symcode='[ABCDGISTW]'
9573  ;;
9574hpux*)
9575  if test ia64 = "$host_cpu"; then
9576    symcode='[ABCDEGRST]'
9577  fi
9578  ;;
9579irix* | nonstopux*)
9580  symcode='[BCDEGRST]'
9581  ;;
9582osf*)
9583  symcode='[BCDEGQRST]'
9584  ;;
9585solaris*)
9586  symcode='[BDRT]'
9587  ;;
9588sco3.2v5*)
9589  symcode='[DT]'
9590  ;;
9591sysv4.2uw2*)
9592  symcode='[DT]'
9593  ;;
9594sysv5* | sco5v6* | unixware* | OpenUNIX*)
9595  symcode='[ABDT]'
9596  ;;
9597sysv4)
9598  symcode='[DFNSTU]'
9599  ;;
9600esac
9601
9602# If we're using GNU nm, then use its standard symbol codes.
9603case `$NM -V 2>&1` in
9604*GNU* | *'with BFD'*)
9605  symcode='[ABCDGIRSTW]' ;;
9606esac
9607
9608if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9609  # Gets list of data symbols to import.
9610  lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'"
9611  # Adjust the below global symbol transforms to fixup imported variables.
9612  lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'"
9613  lt_c_name_hook=" -e 's/^I .* \(.*\)$/  {\"\1\", (void *) 0},/p'"
9614  lt_c_name_lib_hook="\
9615  -e 's/^I .* \(lib.*\)$/  {\"\1\", (void *) 0},/p'\
9616  -e 's/^I .* \(.*\)$/  {\"lib\1\", (void *) 0},/p'"
9617else
9618  # Disable hooks by default.
9619  lt_cv_sys_global_symbol_to_import=
9620  lt_cdecl_hook=
9621  lt_c_name_hook=
9622  lt_c_name_lib_hook=
9623fi
9624
9625# Transform an extracted symbol line into a proper C declaration.
9626# Some systems (esp. on ia64) link data and code symbols differently,
9627# so use this general approach.
9628lt_cv_sys_global_symbol_to_cdecl="sed -n"\
9629$lt_cdecl_hook\
9630" -e 's/^T .* \(.*\)$/extern int \1();/p'"\
9631" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'"
9632
9633# Transform an extracted symbol line into symbol name and symbol address
9634lt_cv_sys_global_symbol_to_c_name_address="sed -n"\
9635$lt_c_name_hook\
9636" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9637" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/p'"
9638
9639# Transform an extracted symbol line into symbol name with lib prefix and
9640# symbol address.
9641lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\
9642$lt_c_name_lib_hook\
9643" -e 's/^: \(.*\) .*$/  {\"\1\", (void *) 0},/p'"\
9644" -e 's/^$symcode$symcode* .* \(lib.*\)$/  {\"\1\", (void *) \&\1},/p'"\
9645" -e 's/^$symcode$symcode* .* \(.*\)$/  {\"lib\1\", (void *) \&\1},/p'"
9646
9647# Handle CRLF in mingw tool chain
9648opt_cr=
9649case $build_os in
9650mingw*)
9651  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9652  ;;
9653esac
9654
9655# Try without a prefix underscore, then with it.
9656for ac_symprfx in "" "_"; do
9657
9658  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9659  symxfrm="\\1 $ac_symprfx\\2 \\2"
9660
9661  # Write the raw and C identifiers.
9662  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9663    # Fake it for dumpbin and say T for any non-static function,
9664    # D for any global variable and I for any imported variable.
9665    # Also find C++ and __fastcall symbols from MSVC++,
9666    # which start with @ or ?.
9667    lt_cv_sys_global_symbol_pipe="$AWK '"\
9668"     {last_section=section; section=\$ 3};"\
9669"     /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
9670"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9671"     /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\
9672"     /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\
9673"     /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\
9674"     \$ 0!~/External *\|/{next};"\
9675"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9676"     {if(hide[section]) next};"\
9677"     {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\
9678"     {split(\$ 0,a,/\||\r/); split(a[2],s)};"\
9679"     s[1]~/^[@?]/{print f,s[1],s[1]; next};"\
9680"     s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\
9681"     ' prfx=^$ac_symprfx"
9682  else
9683    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9684  fi
9685  lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
9686
9687  # Check to see that the pipe works correctly.
9688  pipe_works=no
9689
9690  rm -f conftest*
9691  cat > conftest.$ac_ext <<_LT_EOF
9692#ifdef __cplusplus
9693extern "C" {
9694#endif
9695char nm_test_var;
9696void nm_test_func(void);
9697void nm_test_func(void){}
9698#ifdef __cplusplus
9699}
9700#endif
9701int main(){nm_test_var='a';nm_test_func();return(0);}
9702_LT_EOF
9703
9704  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9705  (eval $ac_compile) 2>&5
9706  ac_status=$?
9707  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9708  test $ac_status = 0; }; then
9709    # Now try to grab the symbols.
9710    nlist=conftest.nm
9711    $ECHO "$as_me:$LINENO: $NM conftest.$ac_objext | $lt_cv_sys_global_symbol_pipe > $nlist" >&5
9712    if eval "$NM" conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist 2>&5 && test -s "$nlist"; then
9713      # Try sorting and uniquifying the output.
9714      if sort "$nlist" | uniq > "$nlist"T; then
9715	mv -f "$nlist"T "$nlist"
9716      else
9717	rm -f "$nlist"T
9718      fi
9719
9720      # Make sure that we snagged all the symbols we need.
9721      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9722	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9723	  cat <<_LT_EOF > conftest.$ac_ext
9724/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests.  */
9725#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE
9726/* DATA imports from DLLs on WIN32 can't be const, because runtime
9727   relocations are performed -- see ld's documentation on pseudo-relocs.  */
9728# define LT_DLSYM_CONST
9729#elif defined __osf__
9730/* This system does not cope well with relocations in const data.  */
9731# define LT_DLSYM_CONST
9732#else
9733# define LT_DLSYM_CONST const
9734#endif
9735
9736#ifdef __cplusplus
9737extern "C" {
9738#endif
9739
9740_LT_EOF
9741	  # Now generate the symbol file.
9742	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9743
9744	  cat <<_LT_EOF >> conftest.$ac_ext
9745
9746/* The mapping between symbol names and symbols.  */
9747LT_DLSYM_CONST struct {
9748  const char *name;
9749  void       *address;
9750}
9751lt__PROGRAM__LTX_preloaded_symbols[] =
9752{
9753  { "@PROGRAM@", (void *) 0 },
9754_LT_EOF
9755	  $SED "s/^$symcode$symcode* .* \(.*\)$/  {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9756	  cat <<\_LT_EOF >> conftest.$ac_ext
9757  {0, (void *) 0}
9758};
9759
9760/* This works around a problem in FreeBSD linker */
9761#ifdef FREEBSD_WORKAROUND
9762static const void *lt_preloaded_setup() {
9763  return lt__PROGRAM__LTX_preloaded_symbols;
9764}
9765#endif
9766
9767#ifdef __cplusplus
9768}
9769#endif
9770_LT_EOF
9771	  # Now try linking the two files.
9772	  mv conftest.$ac_objext conftstm.$ac_objext
9773	  lt_globsym_save_LIBS=$LIBS
9774	  lt_globsym_save_CFLAGS=$CFLAGS
9775	  LIBS=conftstm.$ac_objext
9776	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9777	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9778  (eval $ac_link) 2>&5
9779  ac_status=$?
9780  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9781  test $ac_status = 0; } && test -s conftest$ac_exeext; then
9782	    pipe_works=yes
9783	  fi
9784	  LIBS=$lt_globsym_save_LIBS
9785	  CFLAGS=$lt_globsym_save_CFLAGS
9786	else
9787	  echo "cannot find nm_test_func in $nlist" >&5
9788	fi
9789      else
9790	echo "cannot find nm_test_var in $nlist" >&5
9791      fi
9792    else
9793      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9794    fi
9795  else
9796    echo "$progname: failed program was:" >&5
9797    cat conftest.$ac_ext >&5
9798  fi
9799  rm -rf conftest* conftst*
9800
9801  # Do not use the global_symbol_pipe unless it works.
9802  if test yes = "$pipe_works"; then
9803    break
9804  else
9805    lt_cv_sys_global_symbol_pipe=
9806  fi
9807done
9808
9809fi
9810
9811if test -z "$lt_cv_sys_global_symbol_pipe"; then
9812  lt_cv_sys_global_symbol_to_cdecl=
9813fi
9814if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9815  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9816$as_echo "failed" >&6; }
9817else
9818  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9819$as_echo "ok" >&6; }
9820fi
9821
9822# Response file support.
9823if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9824  nm_file_list_spec='@'
9825elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
9826  nm_file_list_spec='@'
9827fi
9828
9829
9830
9831
9832
9833
9834
9835
9836
9837
9838
9839
9840
9841
9842
9843
9844
9845
9846
9847
9848
9849
9850
9851
9852
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
9866$as_echo_n "checking for sysroot... " >&6; }
9867
9868# Check whether --with-sysroot was given.
9869if test "${with_sysroot+set}" = set; then :
9870  withval=$with_sysroot;
9871else
9872  with_sysroot=no
9873fi
9874
9875
9876lt_sysroot=
9877case $with_sysroot in #(
9878 yes)
9879   if test yes = "$GCC"; then
9880     lt_sysroot=`$CC --print-sysroot 2>/dev/null`
9881   fi
9882   ;; #(
9883 /*)
9884   lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
9885   ;; #(
9886 no|'')
9887   ;; #(
9888 *)
9889   { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5
9890$as_echo "$with_sysroot" >&6; }
9891   as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
9892   ;;
9893esac
9894
9895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
9896$as_echo "${lt_sysroot:-no}" >&6; }
9897
9898
9899
9900
9901
9902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5
9903$as_echo_n "checking for a working dd... " >&6; }
9904if ${ac_cv_path_lt_DD+:} false; then :
9905  $as_echo_n "(cached) " >&6
9906else
9907  printf 0123456789abcdef0123456789abcdef >conftest.i
9908cat conftest.i conftest.i >conftest2.i
9909: ${lt_DD:=$DD}
9910if test -z "$lt_DD"; then
9911  ac_path_lt_DD_found=false
9912  # Loop through the user's path and test for each of PROGNAME-LIST
9913  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9914for as_dir in $PATH
9915do
9916  IFS=$as_save_IFS
9917  test -z "$as_dir" && as_dir=.
9918    for ac_prog in dd; do
9919    for ac_exec_ext in '' $ac_executable_extensions; do
9920      ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext"
9921      as_fn_executable_p "$ac_path_lt_DD" || continue
9922if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9923  cmp -s conftest.i conftest.out \
9924  && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=:
9925fi
9926      $ac_path_lt_DD_found && break 3
9927    done
9928  done
9929  done
9930IFS=$as_save_IFS
9931  if test -z "$ac_cv_path_lt_DD"; then
9932    :
9933  fi
9934else
9935  ac_cv_path_lt_DD=$lt_DD
9936fi
9937
9938rm -f conftest.i conftest2.i conftest.out
9939fi
9940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5
9941$as_echo "$ac_cv_path_lt_DD" >&6; }
9942
9943
9944{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5
9945$as_echo_n "checking how to truncate binary pipes... " >&6; }
9946if ${lt_cv_truncate_bin+:} false; then :
9947  $as_echo_n "(cached) " >&6
9948else
9949  printf 0123456789abcdef0123456789abcdef >conftest.i
9950cat conftest.i conftest.i >conftest2.i
9951lt_cv_truncate_bin=
9952if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then
9953  cmp -s conftest.i conftest.out \
9954  && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1"
9955fi
9956rm -f conftest.i conftest2.i conftest.out
9957test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q"
9958fi
9959{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5
9960$as_echo "$lt_cv_truncate_bin" >&6; }
9961
9962
9963
9964
9965
9966
9967
9968# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
9969func_cc_basename ()
9970{
9971    for cc_temp in $*""; do
9972      case $cc_temp in
9973        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9974        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9975        \-*) ;;
9976        *) break;;
9977      esac
9978    done
9979    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9980}
9981
9982# Check whether --enable-libtool-lock was given.
9983if test "${enable_libtool_lock+set}" = set; then :
9984  enableval=$enable_libtool_lock;
9985fi
9986
9987test no = "$enable_libtool_lock" || enable_libtool_lock=yes
9988
9989# Some flags need to be propagated to the compiler or linker for good
9990# libtool support.
9991case $host in
9992ia64-*-hpux*)
9993  # Find out what ABI is being produced by ac_compile, and set mode
9994  # options accordingly.
9995  echo 'int i;' > conftest.$ac_ext
9996  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9997  (eval $ac_compile) 2>&5
9998  ac_status=$?
9999  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10000  test $ac_status = 0; }; then
10001    case `/usr/bin/file conftest.$ac_objext` in
10002      *ELF-32*)
10003	HPUX_IA64_MODE=32
10004	;;
10005      *ELF-64*)
10006	HPUX_IA64_MODE=64
10007	;;
10008    esac
10009  fi
10010  rm -rf conftest*
10011  ;;
10012*-*-irix6*)
10013  # Find out what ABI is being produced by ac_compile, and set linker
10014  # options accordingly.
10015  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10016  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10017  (eval $ac_compile) 2>&5
10018  ac_status=$?
10019  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020  test $ac_status = 0; }; then
10021    if test yes = "$lt_cv_prog_gnu_ld"; then
10022      case `/usr/bin/file conftest.$ac_objext` in
10023	*32-bit*)
10024	  LD="${LD-ld} -melf32bsmip"
10025	  ;;
10026	*N32*)
10027	  LD="${LD-ld} -melf32bmipn32"
10028	  ;;
10029	*64-bit*)
10030	  LD="${LD-ld} -melf64bmip"
10031	;;
10032      esac
10033    else
10034      case `/usr/bin/file conftest.$ac_objext` in
10035	*32-bit*)
10036	  LD="${LD-ld} -32"
10037	  ;;
10038	*N32*)
10039	  LD="${LD-ld} -n32"
10040	  ;;
10041	*64-bit*)
10042	  LD="${LD-ld} -64"
10043	  ;;
10044      esac
10045    fi
10046  fi
10047  rm -rf conftest*
10048  ;;
10049
10050mips64*-*linux*)
10051  # Find out what ABI is being produced by ac_compile, and set linker
10052  # options accordingly.
10053  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10054  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10055  (eval $ac_compile) 2>&5
10056  ac_status=$?
10057  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058  test $ac_status = 0; }; then
10059    emul=elf
10060    case `/usr/bin/file conftest.$ac_objext` in
10061      *32-bit*)
10062	emul="${emul}32"
10063	;;
10064      *64-bit*)
10065	emul="${emul}64"
10066	;;
10067    esac
10068    case `/usr/bin/file conftest.$ac_objext` in
10069      *MSB*)
10070	emul="${emul}btsmip"
10071	;;
10072      *LSB*)
10073	emul="${emul}ltsmip"
10074	;;
10075    esac
10076    case `/usr/bin/file conftest.$ac_objext` in
10077      *N32*)
10078	emul="${emul}n32"
10079	;;
10080    esac
10081    LD="${LD-ld} -m $emul"
10082  fi
10083  rm -rf conftest*
10084  ;;
10085
10086x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10087s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10088  # Find out what ABI is being produced by ac_compile, and set linker
10089  # options accordingly.  Note that the listed cases only cover the
10090  # situations where additional linker options are needed (such as when
10091  # doing 32-bit compilation for a host where ld defaults to 64-bit, or
10092  # vice versa); the common cases where no linker options are needed do
10093  # not appear in the list.
10094  echo 'int i;' > conftest.$ac_ext
10095  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10096  (eval $ac_compile) 2>&5
10097  ac_status=$?
10098  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10099  test $ac_status = 0; }; then
10100    case `/usr/bin/file conftest.o` in
10101      *32-bit*)
10102	case $host in
10103	  x86_64-*kfreebsd*-gnu)
10104	    LD="${LD-ld} -m elf_i386_fbsd"
10105	    ;;
10106	  x86_64-*linux*)
10107	    case `/usr/bin/file conftest.o` in
10108	      *x86-64*)
10109		LD="${LD-ld} -m elf32_x86_64"
10110		;;
10111	      *)
10112		LD="${LD-ld} -m elf_i386"
10113		;;
10114	    esac
10115	    ;;
10116	  powerpc64le-*linux*)
10117	    LD="${LD-ld} -m elf32lppclinux"
10118	    ;;
10119	  powerpc64-*linux*)
10120	    LD="${LD-ld} -m elf32ppclinux"
10121	    ;;
10122	  s390x-*linux*)
10123	    LD="${LD-ld} -m elf_s390"
10124	    ;;
10125	  sparc64-*linux*)
10126	    LD="${LD-ld} -m elf32_sparc"
10127	    ;;
10128	esac
10129	;;
10130      *64-bit*)
10131	case $host in
10132	  x86_64-*kfreebsd*-gnu)
10133	    LD="${LD-ld} -m elf_x86_64_fbsd"
10134	    ;;
10135	  x86_64-*linux*)
10136	    LD="${LD-ld} -m elf_x86_64"
10137	    ;;
10138	  powerpcle-*linux*)
10139	    LD="${LD-ld} -m elf64lppc"
10140	    ;;
10141	  powerpc-*linux*)
10142	    LD="${LD-ld} -m elf64ppc"
10143	    ;;
10144	  s390*-*linux*|s390*-*tpf*)
10145	    LD="${LD-ld} -m elf64_s390"
10146	    ;;
10147	  sparc*-*linux*)
10148	    LD="${LD-ld} -m elf64_sparc"
10149	    ;;
10150	esac
10151	;;
10152    esac
10153  fi
10154  rm -rf conftest*
10155  ;;
10156
10157*-*-sco3.2v5*)
10158  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10159  SAVE_CFLAGS=$CFLAGS
10160  CFLAGS="$CFLAGS -belf"
10161  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10162$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10163if ${lt_cv_cc_needs_belf+:} false; then :
10164  $as_echo_n "(cached) " >&6
10165else
10166  ac_ext=c
10167ac_cpp='$CPP $CPPFLAGS'
10168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10170ac_compiler_gnu=$ac_cv_c_compiler_gnu
10171
10172     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10173/* end confdefs.h.  */
10174
10175int
10176main ()
10177{
10178
10179  ;
10180  return 0;
10181}
10182_ACEOF
10183if ac_fn_c_try_link "$LINENO"; then :
10184  lt_cv_cc_needs_belf=yes
10185else
10186  lt_cv_cc_needs_belf=no
10187fi
10188rm -f core conftest.err conftest.$ac_objext \
10189    conftest$ac_exeext conftest.$ac_ext
10190     ac_ext=c
10191ac_cpp='$CPP $CPPFLAGS'
10192ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10193ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10194ac_compiler_gnu=$ac_cv_c_compiler_gnu
10195
10196fi
10197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10198$as_echo "$lt_cv_cc_needs_belf" >&6; }
10199  if test yes != "$lt_cv_cc_needs_belf"; then
10200    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10201    CFLAGS=$SAVE_CFLAGS
10202  fi
10203  ;;
10204*-*solaris*)
10205  # Find out what ABI is being produced by ac_compile, and set linker
10206  # options accordingly.
10207  echo 'int i;' > conftest.$ac_ext
10208  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10209  (eval $ac_compile) 2>&5
10210  ac_status=$?
10211  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212  test $ac_status = 0; }; then
10213    case `/usr/bin/file conftest.o` in
10214    *64-bit*)
10215      case $lt_cv_prog_gnu_ld in
10216      yes*)
10217        case $host in
10218        i?86-*-solaris*|x86_64-*-solaris*)
10219          LD="${LD-ld} -m elf_x86_64"
10220          ;;
10221        sparc*-*-solaris*)
10222          LD="${LD-ld} -m elf64_sparc"
10223          ;;
10224        esac
10225        # GNU ld 2.21 introduced _sol2 emulations.  Use them if available.
10226        if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
10227          LD=${LD-ld}_sol2
10228        fi
10229        ;;
10230      *)
10231	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10232	  LD="${LD-ld} -64"
10233	fi
10234	;;
10235      esac
10236      ;;
10237    esac
10238  fi
10239  rm -rf conftest*
10240  ;;
10241esac
10242
10243need_locks=$enable_libtool_lock
10244
10245if test -n "$ac_tool_prefix"; then
10246  # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
10247set dummy ${ac_tool_prefix}mt; ac_word=$2
10248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10249$as_echo_n "checking for $ac_word... " >&6; }
10250if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
10251  $as_echo_n "(cached) " >&6
10252else
10253  if test -n "$MANIFEST_TOOL"; then
10254  ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
10255else
10256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10257for as_dir in $PATH
10258do
10259  IFS=$as_save_IFS
10260  test -z "$as_dir" && as_dir=.
10261    for ac_exec_ext in '' $ac_executable_extensions; do
10262  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10263    ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
10264    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10265    break 2
10266  fi
10267done
10268  done
10269IFS=$as_save_IFS
10270
10271fi
10272fi
10273MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
10274if test -n "$MANIFEST_TOOL"; then
10275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
10276$as_echo "$MANIFEST_TOOL" >&6; }
10277else
10278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279$as_echo "no" >&6; }
10280fi
10281
10282
10283fi
10284if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
10285  ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
10286  # Extract the first word of "mt", so it can be a program name with args.
10287set dummy mt; ac_word=$2
10288{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10289$as_echo_n "checking for $ac_word... " >&6; }
10290if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
10291  $as_echo_n "(cached) " >&6
10292else
10293  if test -n "$ac_ct_MANIFEST_TOOL"; then
10294  ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
10295else
10296as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10297for as_dir in $PATH
10298do
10299  IFS=$as_save_IFS
10300  test -z "$as_dir" && as_dir=.
10301    for ac_exec_ext in '' $ac_executable_extensions; do
10302  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10303    ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
10304    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10305    break 2
10306  fi
10307done
10308  done
10309IFS=$as_save_IFS
10310
10311fi
10312fi
10313ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
10314if test -n "$ac_ct_MANIFEST_TOOL"; then
10315  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
10316$as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
10317else
10318  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10319$as_echo "no" >&6; }
10320fi
10321
10322  if test "x$ac_ct_MANIFEST_TOOL" = x; then
10323    MANIFEST_TOOL=":"
10324  else
10325    case $cross_compiling:$ac_tool_warned in
10326yes:)
10327{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10328$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10329ac_tool_warned=yes ;;
10330esac
10331    MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
10332  fi
10333else
10334  MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
10335fi
10336
10337test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
10338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
10339$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
10340if ${lt_cv_path_mainfest_tool+:} false; then :
10341  $as_echo_n "(cached) " >&6
10342else
10343  lt_cv_path_mainfest_tool=no
10344  echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
10345  $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
10346  cat conftest.err >&5
10347  if $GREP 'Manifest Tool' conftest.out > /dev/null; then
10348    lt_cv_path_mainfest_tool=yes
10349  fi
10350  rm -f conftest*
10351fi
10352{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
10353$as_echo "$lt_cv_path_mainfest_tool" >&6; }
10354if test yes != "$lt_cv_path_mainfest_tool"; then
10355  MANIFEST_TOOL=:
10356fi
10357
10358
10359
10360
10361
10362
10363  case $host_os in
10364    rhapsody* | darwin*)
10365    if test -n "$ac_tool_prefix"; then
10366  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10367set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10369$as_echo_n "checking for $ac_word... " >&6; }
10370if ${ac_cv_prog_DSYMUTIL+:} false; then :
10371  $as_echo_n "(cached) " >&6
10372else
10373  if test -n "$DSYMUTIL"; then
10374  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10375else
10376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10377for as_dir in $PATH
10378do
10379  IFS=$as_save_IFS
10380  test -z "$as_dir" && as_dir=.
10381    for ac_exec_ext in '' $ac_executable_extensions; do
10382  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10383    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10384    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10385    break 2
10386  fi
10387done
10388  done
10389IFS=$as_save_IFS
10390
10391fi
10392fi
10393DSYMUTIL=$ac_cv_prog_DSYMUTIL
10394if test -n "$DSYMUTIL"; then
10395  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10396$as_echo "$DSYMUTIL" >&6; }
10397else
10398  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10399$as_echo "no" >&6; }
10400fi
10401
10402
10403fi
10404if test -z "$ac_cv_prog_DSYMUTIL"; then
10405  ac_ct_DSYMUTIL=$DSYMUTIL
10406  # Extract the first word of "dsymutil", so it can be a program name with args.
10407set dummy dsymutil; ac_word=$2
10408{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10409$as_echo_n "checking for $ac_word... " >&6; }
10410if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10411  $as_echo_n "(cached) " >&6
10412else
10413  if test -n "$ac_ct_DSYMUTIL"; then
10414  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10415else
10416as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10417for as_dir in $PATH
10418do
10419  IFS=$as_save_IFS
10420  test -z "$as_dir" && as_dir=.
10421    for ac_exec_ext in '' $ac_executable_extensions; do
10422  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10423    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10424    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10425    break 2
10426  fi
10427done
10428  done
10429IFS=$as_save_IFS
10430
10431fi
10432fi
10433ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10434if test -n "$ac_ct_DSYMUTIL"; then
10435  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10436$as_echo "$ac_ct_DSYMUTIL" >&6; }
10437else
10438  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10439$as_echo "no" >&6; }
10440fi
10441
10442  if test "x$ac_ct_DSYMUTIL" = x; then
10443    DSYMUTIL=":"
10444  else
10445    case $cross_compiling:$ac_tool_warned in
10446yes:)
10447{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10448$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10449ac_tool_warned=yes ;;
10450esac
10451    DSYMUTIL=$ac_ct_DSYMUTIL
10452  fi
10453else
10454  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10455fi
10456
10457    if test -n "$ac_tool_prefix"; then
10458  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10459set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10461$as_echo_n "checking for $ac_word... " >&6; }
10462if ${ac_cv_prog_NMEDIT+:} false; then :
10463  $as_echo_n "(cached) " >&6
10464else
10465  if test -n "$NMEDIT"; then
10466  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10467else
10468as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10469for as_dir in $PATH
10470do
10471  IFS=$as_save_IFS
10472  test -z "$as_dir" && as_dir=.
10473    for ac_exec_ext in '' $ac_executable_extensions; do
10474  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10475    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10476    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10477    break 2
10478  fi
10479done
10480  done
10481IFS=$as_save_IFS
10482
10483fi
10484fi
10485NMEDIT=$ac_cv_prog_NMEDIT
10486if test -n "$NMEDIT"; then
10487  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10488$as_echo "$NMEDIT" >&6; }
10489else
10490  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10491$as_echo "no" >&6; }
10492fi
10493
10494
10495fi
10496if test -z "$ac_cv_prog_NMEDIT"; then
10497  ac_ct_NMEDIT=$NMEDIT
10498  # Extract the first word of "nmedit", so it can be a program name with args.
10499set dummy nmedit; ac_word=$2
10500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10501$as_echo_n "checking for $ac_word... " >&6; }
10502if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10503  $as_echo_n "(cached) " >&6
10504else
10505  if test -n "$ac_ct_NMEDIT"; then
10506  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10507else
10508as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10509for as_dir in $PATH
10510do
10511  IFS=$as_save_IFS
10512  test -z "$as_dir" && as_dir=.
10513    for ac_exec_ext in '' $ac_executable_extensions; do
10514  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10515    ac_cv_prog_ac_ct_NMEDIT="nmedit"
10516    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10517    break 2
10518  fi
10519done
10520  done
10521IFS=$as_save_IFS
10522
10523fi
10524fi
10525ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10526if test -n "$ac_ct_NMEDIT"; then
10527  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10528$as_echo "$ac_ct_NMEDIT" >&6; }
10529else
10530  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10531$as_echo "no" >&6; }
10532fi
10533
10534  if test "x$ac_ct_NMEDIT" = x; then
10535    NMEDIT=":"
10536  else
10537    case $cross_compiling:$ac_tool_warned in
10538yes:)
10539{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10540$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10541ac_tool_warned=yes ;;
10542esac
10543    NMEDIT=$ac_ct_NMEDIT
10544  fi
10545else
10546  NMEDIT="$ac_cv_prog_NMEDIT"
10547fi
10548
10549    if test -n "$ac_tool_prefix"; then
10550  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10551set dummy ${ac_tool_prefix}lipo; ac_word=$2
10552{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10553$as_echo_n "checking for $ac_word... " >&6; }
10554if ${ac_cv_prog_LIPO+:} false; then :
10555  $as_echo_n "(cached) " >&6
10556else
10557  if test -n "$LIPO"; then
10558  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10559else
10560as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10561for as_dir in $PATH
10562do
10563  IFS=$as_save_IFS
10564  test -z "$as_dir" && as_dir=.
10565    for ac_exec_ext in '' $ac_executable_extensions; do
10566  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10567    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10568    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10569    break 2
10570  fi
10571done
10572  done
10573IFS=$as_save_IFS
10574
10575fi
10576fi
10577LIPO=$ac_cv_prog_LIPO
10578if test -n "$LIPO"; then
10579  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10580$as_echo "$LIPO" >&6; }
10581else
10582  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10583$as_echo "no" >&6; }
10584fi
10585
10586
10587fi
10588if test -z "$ac_cv_prog_LIPO"; then
10589  ac_ct_LIPO=$LIPO
10590  # Extract the first word of "lipo", so it can be a program name with args.
10591set dummy lipo; ac_word=$2
10592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10593$as_echo_n "checking for $ac_word... " >&6; }
10594if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10595  $as_echo_n "(cached) " >&6
10596else
10597  if test -n "$ac_ct_LIPO"; then
10598  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10599else
10600as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10601for as_dir in $PATH
10602do
10603  IFS=$as_save_IFS
10604  test -z "$as_dir" && as_dir=.
10605    for ac_exec_ext in '' $ac_executable_extensions; do
10606  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10607    ac_cv_prog_ac_ct_LIPO="lipo"
10608    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10609    break 2
10610  fi
10611done
10612  done
10613IFS=$as_save_IFS
10614
10615fi
10616fi
10617ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10618if test -n "$ac_ct_LIPO"; then
10619  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10620$as_echo "$ac_ct_LIPO" >&6; }
10621else
10622  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10623$as_echo "no" >&6; }
10624fi
10625
10626  if test "x$ac_ct_LIPO" = x; then
10627    LIPO=":"
10628  else
10629    case $cross_compiling:$ac_tool_warned in
10630yes:)
10631{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10632$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10633ac_tool_warned=yes ;;
10634esac
10635    LIPO=$ac_ct_LIPO
10636  fi
10637else
10638  LIPO="$ac_cv_prog_LIPO"
10639fi
10640
10641    if test -n "$ac_tool_prefix"; then
10642  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10643set dummy ${ac_tool_prefix}otool; ac_word=$2
10644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10645$as_echo_n "checking for $ac_word... " >&6; }
10646if ${ac_cv_prog_OTOOL+:} false; then :
10647  $as_echo_n "(cached) " >&6
10648else
10649  if test -n "$OTOOL"; then
10650  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10651else
10652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10653for as_dir in $PATH
10654do
10655  IFS=$as_save_IFS
10656  test -z "$as_dir" && as_dir=.
10657    for ac_exec_ext in '' $ac_executable_extensions; do
10658  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10659    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10660    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10661    break 2
10662  fi
10663done
10664  done
10665IFS=$as_save_IFS
10666
10667fi
10668fi
10669OTOOL=$ac_cv_prog_OTOOL
10670if test -n "$OTOOL"; then
10671  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10672$as_echo "$OTOOL" >&6; }
10673else
10674  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10675$as_echo "no" >&6; }
10676fi
10677
10678
10679fi
10680if test -z "$ac_cv_prog_OTOOL"; then
10681  ac_ct_OTOOL=$OTOOL
10682  # Extract the first word of "otool", so it can be a program name with args.
10683set dummy otool; ac_word=$2
10684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10685$as_echo_n "checking for $ac_word... " >&6; }
10686if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10687  $as_echo_n "(cached) " >&6
10688else
10689  if test -n "$ac_ct_OTOOL"; then
10690  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10691else
10692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10693for as_dir in $PATH
10694do
10695  IFS=$as_save_IFS
10696  test -z "$as_dir" && as_dir=.
10697    for ac_exec_ext in '' $ac_executable_extensions; do
10698  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10699    ac_cv_prog_ac_ct_OTOOL="otool"
10700    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10701    break 2
10702  fi
10703done
10704  done
10705IFS=$as_save_IFS
10706
10707fi
10708fi
10709ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10710if test -n "$ac_ct_OTOOL"; then
10711  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10712$as_echo "$ac_ct_OTOOL" >&6; }
10713else
10714  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10715$as_echo "no" >&6; }
10716fi
10717
10718  if test "x$ac_ct_OTOOL" = x; then
10719    OTOOL=":"
10720  else
10721    case $cross_compiling:$ac_tool_warned in
10722yes:)
10723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10725ac_tool_warned=yes ;;
10726esac
10727    OTOOL=$ac_ct_OTOOL
10728  fi
10729else
10730  OTOOL="$ac_cv_prog_OTOOL"
10731fi
10732
10733    if test -n "$ac_tool_prefix"; then
10734  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10735set dummy ${ac_tool_prefix}otool64; ac_word=$2
10736{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10737$as_echo_n "checking for $ac_word... " >&6; }
10738if ${ac_cv_prog_OTOOL64+:} false; then :
10739  $as_echo_n "(cached) " >&6
10740else
10741  if test -n "$OTOOL64"; then
10742  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10743else
10744as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10745for as_dir in $PATH
10746do
10747  IFS=$as_save_IFS
10748  test -z "$as_dir" && as_dir=.
10749    for ac_exec_ext in '' $ac_executable_extensions; do
10750  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10751    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10752    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10753    break 2
10754  fi
10755done
10756  done
10757IFS=$as_save_IFS
10758
10759fi
10760fi
10761OTOOL64=$ac_cv_prog_OTOOL64
10762if test -n "$OTOOL64"; then
10763  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10764$as_echo "$OTOOL64" >&6; }
10765else
10766  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10767$as_echo "no" >&6; }
10768fi
10769
10770
10771fi
10772if test -z "$ac_cv_prog_OTOOL64"; then
10773  ac_ct_OTOOL64=$OTOOL64
10774  # Extract the first word of "otool64", so it can be a program name with args.
10775set dummy otool64; ac_word=$2
10776{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10777$as_echo_n "checking for $ac_word... " >&6; }
10778if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10779  $as_echo_n "(cached) " >&6
10780else
10781  if test -n "$ac_ct_OTOOL64"; then
10782  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10783else
10784as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10785for as_dir in $PATH
10786do
10787  IFS=$as_save_IFS
10788  test -z "$as_dir" && as_dir=.
10789    for ac_exec_ext in '' $ac_executable_extensions; do
10790  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10791    ac_cv_prog_ac_ct_OTOOL64="otool64"
10792    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10793    break 2
10794  fi
10795done
10796  done
10797IFS=$as_save_IFS
10798
10799fi
10800fi
10801ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10802if test -n "$ac_ct_OTOOL64"; then
10803  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10804$as_echo "$ac_ct_OTOOL64" >&6; }
10805else
10806  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10807$as_echo "no" >&6; }
10808fi
10809
10810  if test "x$ac_ct_OTOOL64" = x; then
10811    OTOOL64=":"
10812  else
10813    case $cross_compiling:$ac_tool_warned in
10814yes:)
10815{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10816$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10817ac_tool_warned=yes ;;
10818esac
10819    OTOOL64=$ac_ct_OTOOL64
10820  fi
10821else
10822  OTOOL64="$ac_cv_prog_OTOOL64"
10823fi
10824
10825
10826
10827
10828
10829
10830
10831
10832
10833
10834
10835
10836
10837
10838
10839
10840
10841
10842
10843
10844
10845
10846
10847
10848
10849
10850
10851    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10852$as_echo_n "checking for -single_module linker flag... " >&6; }
10853if ${lt_cv_apple_cc_single_mod+:} false; then :
10854  $as_echo_n "(cached) " >&6
10855else
10856  lt_cv_apple_cc_single_mod=no
10857      if test -z "$LT_MULTI_MODULE"; then
10858	# By default we will add the -single_module flag. You can override
10859	# by either setting the environment variable LT_MULTI_MODULE
10860	# non-empty at configure time, or by adding -multi_module to the
10861	# link flags.
10862	rm -rf libconftest.dylib*
10863	echo "int foo(void){return 1;}" > conftest.c
10864	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10865-dynamiclib -Wl,-single_module conftest.c" >&5
10866	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10867	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10868        _lt_result=$?
10869	# If there is a non-empty error log, and "single_module"
10870	# appears in it, assume the flag caused a linker warning
10871        if test -s conftest.err && $GREP single_module conftest.err; then
10872	  cat conftest.err >&5
10873	# Otherwise, if the output was created with a 0 exit code from
10874	# the compiler, it worked.
10875	elif test -f libconftest.dylib && test 0 = "$_lt_result"; then
10876	  lt_cv_apple_cc_single_mod=yes
10877	else
10878	  cat conftest.err >&5
10879	fi
10880	rm -rf libconftest.dylib*
10881	rm -f conftest.*
10882      fi
10883fi
10884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10885$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10886
10887    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10888$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10889if ${lt_cv_ld_exported_symbols_list+:} false; then :
10890  $as_echo_n "(cached) " >&6
10891else
10892  lt_cv_ld_exported_symbols_list=no
10893      save_LDFLAGS=$LDFLAGS
10894      echo "_main" > conftest.sym
10895      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10896      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10897/* end confdefs.h.  */
10898
10899int
10900main ()
10901{
10902
10903  ;
10904  return 0;
10905}
10906_ACEOF
10907if ac_fn_c_try_link "$LINENO"; then :
10908  lt_cv_ld_exported_symbols_list=yes
10909else
10910  lt_cv_ld_exported_symbols_list=no
10911fi
10912rm -f core conftest.err conftest.$ac_objext \
10913    conftest$ac_exeext conftest.$ac_ext
10914	LDFLAGS=$save_LDFLAGS
10915
10916fi
10917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10918$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10919
10920    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10921$as_echo_n "checking for -force_load linker flag... " >&6; }
10922if ${lt_cv_ld_force_load+:} false; then :
10923  $as_echo_n "(cached) " >&6
10924else
10925  lt_cv_ld_force_load=no
10926      cat > conftest.c << _LT_EOF
10927int forced_loaded() { return 2;}
10928_LT_EOF
10929      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10930      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10931      echo "$AR cr libconftest.a conftest.o" >&5
10932      $AR cr libconftest.a conftest.o 2>&5
10933      echo "$RANLIB libconftest.a" >&5
10934      $RANLIB libconftest.a 2>&5
10935      cat > conftest.c << _LT_EOF
10936int main() { return 0;}
10937_LT_EOF
10938      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10939      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10940      _lt_result=$?
10941      if test -s conftest.err && $GREP force_load conftest.err; then
10942	cat conftest.err >&5
10943      elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then
10944	lt_cv_ld_force_load=yes
10945      else
10946	cat conftest.err >&5
10947      fi
10948        rm -f conftest.err libconftest.a conftest conftest.c
10949        rm -rf conftest.dSYM
10950
10951fi
10952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10953$as_echo "$lt_cv_ld_force_load" >&6; }
10954    case $host_os in
10955    rhapsody* | darwin1.[012])
10956      _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;;
10957    darwin1.*)
10958      _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10959    darwin*) # darwin 5.x on
10960      # if running on 10.5 or later, the deployment target defaults
10961      # to the OS version, if on x86, and 10.4, the deployment
10962      # target defaults to 10.4. Don't you love it?
10963      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10964	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10965	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10966	10.[012][,.]*)
10967	  _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;;
10968	10.*)
10969	  _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;;
10970      esac
10971    ;;
10972  esac
10973    if test yes = "$lt_cv_apple_cc_single_mod"; then
10974      _lt_dar_single_mod='$single_module'
10975    fi
10976    if test yes = "$lt_cv_ld_exported_symbols_list"; then
10977      _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym'
10978    else
10979      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib'
10980    fi
10981    if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then
10982      _lt_dsymutil='~$DSYMUTIL $lib || :'
10983    else
10984      _lt_dsymutil=
10985    fi
10986    ;;
10987  esac
10988
10989# func_munge_path_list VARIABLE PATH
10990# -----------------------------------
10991# VARIABLE is name of variable containing _space_ separated list of
10992# directories to be munged by the contents of PATH, which is string
10993# having a format:
10994# "DIR[:DIR]:"
10995#       string "DIR[ DIR]" will be prepended to VARIABLE
10996# ":DIR[:DIR]"
10997#       string "DIR[ DIR]" will be appended to VARIABLE
10998# "DIRP[:DIRP]::[DIRA:]DIRA"
10999#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
11000#       "DIRA[ DIRA]" will be appended to VARIABLE
11001# "DIR[:DIR]"
11002#       VARIABLE will be replaced by "DIR[ DIR]"
11003func_munge_path_list ()
11004{
11005    case x$2 in
11006    x)
11007        ;;
11008    *:)
11009        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
11010        ;;
11011    x:*)
11012        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
11013        ;;
11014    *::*)
11015        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
11016        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
11017        ;;
11018    *)
11019        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
11020        ;;
11021    esac
11022}
11023
11024for ac_header in dlfcn.h
11025do :
11026  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
11027"
11028if test "x$ac_cv_header_dlfcn_h" = xyes; then :
11029  cat >>confdefs.h <<_ACEOF
11030#define HAVE_DLFCN_H 1
11031_ACEOF
11032
11033fi
11034
11035done
11036
11037
11038
11039func_stripname_cnf ()
11040{
11041  case $2 in
11042  .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;;
11043  *)  func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;;
11044  esac
11045} # func_stripname_cnf
11046
11047
11048
11049
11050
11051# Set options
11052
11053
11054
11055        enable_dlopen=no
11056
11057
11058  enable_win32_dll=no
11059
11060
11061            # Check whether --enable-shared was given.
11062if test "${enable_shared+set}" = set; then :
11063  enableval=$enable_shared; p=${PACKAGE-default}
11064    case $enableval in
11065    yes) enable_shared=yes ;;
11066    no) enable_shared=no ;;
11067    *)
11068      enable_shared=no
11069      # Look at the argument we got.  We use all the common list separators.
11070      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11071      for pkg in $enableval; do
11072	IFS=$lt_save_ifs
11073	if test "X$pkg" = "X$p"; then
11074	  enable_shared=yes
11075	fi
11076      done
11077      IFS=$lt_save_ifs
11078      ;;
11079    esac
11080else
11081  enable_shared=yes
11082fi
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092  # Check whether --enable-static was given.
11093if test "${enable_static+set}" = set; then :
11094  enableval=$enable_static; p=${PACKAGE-default}
11095    case $enableval in
11096    yes) enable_static=yes ;;
11097    no) enable_static=no ;;
11098    *)
11099     enable_static=no
11100      # Look at the argument we got.  We use all the common list separators.
11101      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11102      for pkg in $enableval; do
11103	IFS=$lt_save_ifs
11104	if test "X$pkg" = "X$p"; then
11105	  enable_static=yes
11106	fi
11107      done
11108      IFS=$lt_save_ifs
11109      ;;
11110    esac
11111else
11112  enable_static=yes
11113fi
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124# Check whether --with-pic was given.
11125if test "${with_pic+set}" = set; then :
11126  withval=$with_pic; lt_p=${PACKAGE-default}
11127    case $withval in
11128    yes|no) pic_mode=$withval ;;
11129    *)
11130      pic_mode=default
11131      # Look at the argument we got.  We use all the common list separators.
11132      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11133      for lt_pkg in $withval; do
11134	IFS=$lt_save_ifs
11135	if test "X$lt_pkg" = "X$lt_p"; then
11136	  pic_mode=yes
11137	fi
11138      done
11139      IFS=$lt_save_ifs
11140      ;;
11141    esac
11142else
11143  pic_mode=default
11144fi
11145
11146
11147
11148
11149
11150
11151
11152
11153  # Check whether --enable-fast-install was given.
11154if test "${enable_fast_install+set}" = set; then :
11155  enableval=$enable_fast_install; p=${PACKAGE-default}
11156    case $enableval in
11157    yes) enable_fast_install=yes ;;
11158    no) enable_fast_install=no ;;
11159    *)
11160      enable_fast_install=no
11161      # Look at the argument we got.  We use all the common list separators.
11162      lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR,
11163      for pkg in $enableval; do
11164	IFS=$lt_save_ifs
11165	if test "X$pkg" = "X$p"; then
11166	  enable_fast_install=yes
11167	fi
11168      done
11169      IFS=$lt_save_ifs
11170      ;;
11171    esac
11172else
11173  enable_fast_install=yes
11174fi
11175
11176
11177
11178
11179
11180
11181
11182
11183  shared_archive_member_spec=
11184case $host,$enable_shared in
11185power*-*-aix[5-9]*,yes)
11186  { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5
11187$as_echo_n "checking which variant of shared library versioning to provide... " >&6; }
11188
11189# Check whether --with-aix-soname was given.
11190if test "${with_aix_soname+set}" = set; then :
11191  withval=$with_aix_soname; case $withval in
11192    aix|svr4|both)
11193      ;;
11194    *)
11195      as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5
11196      ;;
11197    esac
11198    lt_cv_with_aix_soname=$with_aix_soname
11199else
11200  if ${lt_cv_with_aix_soname+:} false; then :
11201  $as_echo_n "(cached) " >&6
11202else
11203  lt_cv_with_aix_soname=aix
11204fi
11205
11206    with_aix_soname=$lt_cv_with_aix_soname
11207fi
11208
11209  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5
11210$as_echo "$with_aix_soname" >&6; }
11211  if test aix != "$with_aix_soname"; then
11212    # For the AIX way of multilib, we name the shared archive member
11213    # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o',
11214    # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File.
11215    # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag,
11216    # the AIX toolchain works better with OBJECT_MODE set (default 32).
11217    if test 64 = "${OBJECT_MODE-32}"; then
11218      shared_archive_member_spec=shr_64
11219    else
11220      shared_archive_member_spec=shr
11221    fi
11222  fi
11223  ;;
11224*)
11225  with_aix_soname=aix
11226  ;;
11227esac
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238# This can be used to rebuild libtool when needed
11239LIBTOOL_DEPS=$ltmain
11240
11241# Always use our own libtool.
11242LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11243
11244
11245
11246
11247
11248
11249
11250
11251
11252
11253
11254
11255
11256
11257
11258
11259
11260
11261
11262
11263
11264
11265
11266
11267
11268
11269
11270
11271
11272
11273test -z "$LN_S" && LN_S="ln -s"
11274
11275
11276
11277
11278
11279
11280
11281
11282
11283
11284
11285
11286
11287
11288if test -n "${ZSH_VERSION+set}"; then
11289   setopt NO_GLOB_SUBST
11290fi
11291
11292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11293$as_echo_n "checking for objdir... " >&6; }
11294if ${lt_cv_objdir+:} false; then :
11295  $as_echo_n "(cached) " >&6
11296else
11297  rm -f .libs 2>/dev/null
11298mkdir .libs 2>/dev/null
11299if test -d .libs; then
11300  lt_cv_objdir=.libs
11301else
11302  # MS-DOS does not allow filenames that begin with a dot.
11303  lt_cv_objdir=_libs
11304fi
11305rmdir .libs 2>/dev/null
11306fi
11307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11308$as_echo "$lt_cv_objdir" >&6; }
11309objdir=$lt_cv_objdir
11310
11311
11312
11313
11314
11315cat >>confdefs.h <<_ACEOF
11316#define LT_OBJDIR "$lt_cv_objdir/"
11317_ACEOF
11318
11319
11320
11321
11322case $host_os in
11323aix3*)
11324  # AIX sometimes has problems with the GCC collect2 program.  For some
11325  # reason, if we set the COLLECT_NAMES environment variable, the problems
11326  # vanish in a puff of smoke.
11327  if test set != "${COLLECT_NAMES+set}"; then
11328    COLLECT_NAMES=
11329    export COLLECT_NAMES
11330  fi
11331  ;;
11332esac
11333
11334# Global variables:
11335ofile=libtool
11336can_build_shared=yes
11337
11338# All known linkers require a '.a' archive for static linking (except MSVC,
11339# which needs '.lib').
11340libext=a
11341
11342with_gnu_ld=$lt_cv_prog_gnu_ld
11343
11344old_CC=$CC
11345old_CFLAGS=$CFLAGS
11346
11347# Set sane defaults for various variables
11348test -z "$CC" && CC=cc
11349test -z "$LTCC" && LTCC=$CC
11350test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11351test -z "$LD" && LD=ld
11352test -z "$ac_objext" && ac_objext=o
11353
11354func_cc_basename $compiler
11355cc_basename=$func_cc_basename_result
11356
11357
11358# Only perform the check for file, if the check method requires it
11359test -z "$MAGIC_CMD" && MAGIC_CMD=file
11360case $deplibs_check_method in
11361file_magic*)
11362  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11363    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11364$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11365if ${lt_cv_path_MAGIC_CMD+:} false; then :
11366  $as_echo_n "(cached) " >&6
11367else
11368  case $MAGIC_CMD in
11369[\\/*] |  ?:[\\/]*)
11370  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11371  ;;
11372*)
11373  lt_save_MAGIC_CMD=$MAGIC_CMD
11374  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11375  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11376  for ac_dir in $ac_dummy; do
11377    IFS=$lt_save_ifs
11378    test -z "$ac_dir" && ac_dir=.
11379    if test -f "$ac_dir/${ac_tool_prefix}file"; then
11380      lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file"
11381      if test -n "$file_magic_test_file"; then
11382	case $deplibs_check_method in
11383	"file_magic "*)
11384	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11385	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11386	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11387	    $EGREP "$file_magic_regex" > /dev/null; then
11388	    :
11389	  else
11390	    cat <<_LT_EOF 1>&2
11391
11392*** Warning: the command libtool uses to detect shared libraries,
11393*** $file_magic_cmd, produces output that libtool cannot recognize.
11394*** The result is that libtool may fail to recognize shared libraries
11395*** as such.  This will affect the creation of libtool libraries that
11396*** depend on shared libraries, but programs linked with such libtool
11397*** libraries will work regardless of this problem.  Nevertheless, you
11398*** may want to report the problem to your system manager and/or to
11399*** bug-libtool@gnu.org
11400
11401_LT_EOF
11402	  fi ;;
11403	esac
11404      fi
11405      break
11406    fi
11407  done
11408  IFS=$lt_save_ifs
11409  MAGIC_CMD=$lt_save_MAGIC_CMD
11410  ;;
11411esac
11412fi
11413
11414MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11415if test -n "$MAGIC_CMD"; then
11416  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11417$as_echo "$MAGIC_CMD" >&6; }
11418else
11419  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11420$as_echo "no" >&6; }
11421fi
11422
11423
11424
11425
11426
11427if test -z "$lt_cv_path_MAGIC_CMD"; then
11428  if test -n "$ac_tool_prefix"; then
11429    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11430$as_echo_n "checking for file... " >&6; }
11431if ${lt_cv_path_MAGIC_CMD+:} false; then :
11432  $as_echo_n "(cached) " >&6
11433else
11434  case $MAGIC_CMD in
11435[\\/*] |  ?:[\\/]*)
11436  lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path.
11437  ;;
11438*)
11439  lt_save_MAGIC_CMD=$MAGIC_CMD
11440  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
11441  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11442  for ac_dir in $ac_dummy; do
11443    IFS=$lt_save_ifs
11444    test -z "$ac_dir" && ac_dir=.
11445    if test -f "$ac_dir/file"; then
11446      lt_cv_path_MAGIC_CMD=$ac_dir/"file"
11447      if test -n "$file_magic_test_file"; then
11448	case $deplibs_check_method in
11449	"file_magic "*)
11450	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11451	  MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11452	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11453	    $EGREP "$file_magic_regex" > /dev/null; then
11454	    :
11455	  else
11456	    cat <<_LT_EOF 1>&2
11457
11458*** Warning: the command libtool uses to detect shared libraries,
11459*** $file_magic_cmd, produces output that libtool cannot recognize.
11460*** The result is that libtool may fail to recognize shared libraries
11461*** as such.  This will affect the creation of libtool libraries that
11462*** depend on shared libraries, but programs linked with such libtool
11463*** libraries will work regardless of this problem.  Nevertheless, you
11464*** may want to report the problem to your system manager and/or to
11465*** bug-libtool@gnu.org
11466
11467_LT_EOF
11468	  fi ;;
11469	esac
11470      fi
11471      break
11472    fi
11473  done
11474  IFS=$lt_save_ifs
11475  MAGIC_CMD=$lt_save_MAGIC_CMD
11476  ;;
11477esac
11478fi
11479
11480MAGIC_CMD=$lt_cv_path_MAGIC_CMD
11481if test -n "$MAGIC_CMD"; then
11482  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11483$as_echo "$MAGIC_CMD" >&6; }
11484else
11485  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11486$as_echo "no" >&6; }
11487fi
11488
11489
11490  else
11491    MAGIC_CMD=:
11492  fi
11493fi
11494
11495  fi
11496  ;;
11497esac
11498
11499# Use C for the default configuration in the libtool script
11500
11501lt_save_CC=$CC
11502ac_ext=c
11503ac_cpp='$CPP $CPPFLAGS'
11504ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11505ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11506ac_compiler_gnu=$ac_cv_c_compiler_gnu
11507
11508
11509# Source file extension for C test sources.
11510ac_ext=c
11511
11512# Object file extension for compiled C test sources.
11513objext=o
11514objext=$objext
11515
11516# Code to be used in simple compile tests
11517lt_simple_compile_test_code="int some_variable = 0;"
11518
11519# Code to be used in simple link tests
11520lt_simple_link_test_code='int main(){return(0);}'
11521
11522
11523
11524
11525
11526
11527
11528# If no C compiler was specified, use CC.
11529LTCC=${LTCC-"$CC"}
11530
11531# If no C compiler flags were specified, use CFLAGS.
11532LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11533
11534# Allow CC to be a program name with arguments.
11535compiler=$CC
11536
11537# Save the default compiler, since it gets overwritten when the other
11538# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11539compiler_DEFAULT=$CC
11540
11541# save warnings/boilerplate of simple test code
11542ac_outfile=conftest.$ac_objext
11543echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11544eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11545_lt_compiler_boilerplate=`cat conftest.err`
11546$RM conftest*
11547
11548ac_outfile=conftest.$ac_objext
11549echo "$lt_simple_link_test_code" >conftest.$ac_ext
11550eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11551_lt_linker_boilerplate=`cat conftest.err`
11552$RM -r conftest*
11553
11554
11555## CAVEAT EMPTOR:
11556## There is no encapsulation within the following macros, do not change
11557## the running order or otherwise move them around unless you know exactly
11558## what you are doing...
11559if test -n "$compiler"; then
11560
11561lt_prog_compiler_no_builtin_flag=
11562
11563if test yes = "$GCC"; then
11564  case $cc_basename in
11565  nvcc*)
11566    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11567  *)
11568    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11569  esac
11570
11571  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11572$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11573if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11574  $as_echo_n "(cached) " >&6
11575else
11576  lt_cv_prog_compiler_rtti_exceptions=no
11577   ac_outfile=conftest.$ac_objext
11578   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11579   lt_compiler_flag="-fno-rtti -fno-exceptions"  ## exclude from sc_useless_quotes_in_assignment
11580   # Insert the option either (1) after the last *FLAGS variable, or
11581   # (2) before a word containing "conftest.", or (3) at the end.
11582   # Note that $ac_compile itself does not contain backslashes and begins
11583   # with a dollar sign (not a hyphen), so the echo should work correctly.
11584   # The option is referenced via a variable to avoid confusing sed.
11585   lt_compile=`echo "$ac_compile" | $SED \
11586   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11587   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11588   -e 's:$: $lt_compiler_flag:'`
11589   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11590   (eval "$lt_compile" 2>conftest.err)
11591   ac_status=$?
11592   cat conftest.err >&5
11593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11594   if (exit $ac_status) && test -s "$ac_outfile"; then
11595     # The compiler can only warn and ignore the option if not recognized
11596     # So say no if there are warnings other than the usual output.
11597     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11598     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11599     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11600       lt_cv_prog_compiler_rtti_exceptions=yes
11601     fi
11602   fi
11603   $RM conftest*
11604
11605fi
11606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11607$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11608
11609if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then
11610    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11611else
11612    :
11613fi
11614
11615fi
11616
11617
11618
11619
11620
11621
11622  lt_prog_compiler_wl=
11623lt_prog_compiler_pic=
11624lt_prog_compiler_static=
11625
11626
11627  if test yes = "$GCC"; then
11628    lt_prog_compiler_wl='-Wl,'
11629    lt_prog_compiler_static='-static'
11630
11631    case $host_os in
11632      aix*)
11633      # All AIX code is PIC.
11634      if test ia64 = "$host_cpu"; then
11635	# AIX 5 now supports IA64 processor
11636	lt_prog_compiler_static='-Bstatic'
11637      fi
11638      lt_prog_compiler_pic='-fPIC'
11639      ;;
11640
11641    amigaos*)
11642      case $host_cpu in
11643      powerpc)
11644            # see comment about AmigaOS4 .so support
11645            lt_prog_compiler_pic='-fPIC'
11646        ;;
11647      m68k)
11648            # FIXME: we need at least 68020 code to build shared libraries, but
11649            # adding the '-m68020' flag to GCC prevents building anything better,
11650            # like '-m68040'.
11651            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11652        ;;
11653      esac
11654      ;;
11655
11656    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11657      # PIC is the default for these OSes.
11658      ;;
11659
11660    mingw* | cygwin* | pw32* | os2* | cegcc*)
11661      # This hack is so that the source file can tell whether it is being
11662      # built for inclusion in a dll (and should export symbols for example).
11663      # Although the cygwin gcc ignores -fPIC, still need this for old-style
11664      # (--disable-auto-import) libraries
11665      lt_prog_compiler_pic='-DDLL_EXPORT'
11666      case $host_os in
11667      os2*)
11668	lt_prog_compiler_static='$wl-static'
11669	;;
11670      esac
11671      ;;
11672
11673    darwin* | rhapsody*)
11674      # PIC is the default on this platform
11675      # Common symbols not allowed in MH_DYLIB files
11676      lt_prog_compiler_pic='-fno-common'
11677      ;;
11678
11679    haiku*)
11680      # PIC is the default for Haiku.
11681      # The "-static" flag exists, but is broken.
11682      lt_prog_compiler_static=
11683      ;;
11684
11685    hpux*)
11686      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11687      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
11688      # sets the default TLS model and affects inlining.
11689      case $host_cpu in
11690      hppa*64*)
11691	# +Z the default
11692	;;
11693      *)
11694	lt_prog_compiler_pic='-fPIC'
11695	;;
11696      esac
11697      ;;
11698
11699    interix[3-9]*)
11700      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11701      # Instead, we relocate shared libraries at runtime.
11702      ;;
11703
11704    msdosdjgpp*)
11705      # Just because we use GCC doesn't mean we suddenly get shared libraries
11706      # on systems that don't support them.
11707      lt_prog_compiler_can_build_shared=no
11708      enable_shared=no
11709      ;;
11710
11711    *nto* | *qnx*)
11712      # QNX uses GNU C++, but need to define -shared option too, otherwise
11713      # it will coredump.
11714      lt_prog_compiler_pic='-fPIC -shared'
11715      ;;
11716
11717    sysv4*MP*)
11718      if test -d /usr/nec; then
11719	lt_prog_compiler_pic=-Kconform_pic
11720      fi
11721      ;;
11722
11723    *)
11724      lt_prog_compiler_pic='-fPIC'
11725      ;;
11726    esac
11727
11728    case $cc_basename in
11729    nvcc*) # Cuda Compiler Driver 2.2
11730      lt_prog_compiler_wl='-Xlinker '
11731      if test -n "$lt_prog_compiler_pic"; then
11732        lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
11733      fi
11734      ;;
11735    esac
11736  else
11737    # PORTME Check for flag to pass linker flags through the system compiler.
11738    case $host_os in
11739    aix*)
11740      lt_prog_compiler_wl='-Wl,'
11741      if test ia64 = "$host_cpu"; then
11742	# AIX 5 now supports IA64 processor
11743	lt_prog_compiler_static='-Bstatic'
11744      else
11745	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11746      fi
11747      ;;
11748
11749    darwin* | rhapsody*)
11750      # PIC is the default on this platform
11751      # Common symbols not allowed in MH_DYLIB files
11752      lt_prog_compiler_pic='-fno-common'
11753      case $cc_basename in
11754      nagfor*)
11755        # NAG Fortran compiler
11756        lt_prog_compiler_wl='-Wl,-Wl,,'
11757        lt_prog_compiler_pic='-PIC'
11758        lt_prog_compiler_static='-Bstatic'
11759        ;;
11760      esac
11761      ;;
11762
11763    mingw* | cygwin* | pw32* | os2* | cegcc*)
11764      # This hack is so that the source file can tell whether it is being
11765      # built for inclusion in a dll (and should export symbols for example).
11766      lt_prog_compiler_pic='-DDLL_EXPORT'
11767      case $host_os in
11768      os2*)
11769	lt_prog_compiler_static='$wl-static'
11770	;;
11771      esac
11772      ;;
11773
11774    hpux9* | hpux10* | hpux11*)
11775      lt_prog_compiler_wl='-Wl,'
11776      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11777      # not for PA HP-UX.
11778      case $host_cpu in
11779      hppa*64*|ia64*)
11780	# +Z the default
11781	;;
11782      *)
11783	lt_prog_compiler_pic='+Z'
11784	;;
11785      esac
11786      # Is there a better lt_prog_compiler_static that works with the bundled CC?
11787      lt_prog_compiler_static='$wl-a ${wl}archive'
11788      ;;
11789
11790    irix5* | irix6* | nonstopux*)
11791      lt_prog_compiler_wl='-Wl,'
11792      # PIC (with -KPIC) is the default.
11793      lt_prog_compiler_static='-non_shared'
11794      ;;
11795
11796    linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
11797      case $cc_basename in
11798      # old Intel for x86_64, which still supported -KPIC.
11799      ecc*)
11800	lt_prog_compiler_wl='-Wl,'
11801	lt_prog_compiler_pic='-KPIC'
11802	lt_prog_compiler_static='-static'
11803        ;;
11804      # flang / f18. f95 an alias for gfortran or flang on Debian
11805      flang* | f18* | f95*)
11806	lt_prog_compiler_wl='-Wl,'
11807	lt_prog_compiler_pic='-fPIC'
11808	lt_prog_compiler_static='-static'
11809        ;;
11810      # icc used to be incompatible with GCC.
11811      # ICC 10 doesn't accept -KPIC any more.
11812      icc* | ifort*)
11813	lt_prog_compiler_wl='-Wl,'
11814	lt_prog_compiler_pic='-fPIC'
11815	lt_prog_compiler_static='-static'
11816        ;;
11817      # Lahey Fortran 8.1.
11818      lf95*)
11819	lt_prog_compiler_wl='-Wl,'
11820	lt_prog_compiler_pic='--shared'
11821	lt_prog_compiler_static='--static'
11822	;;
11823      nagfor*)
11824	# NAG Fortran compiler
11825	lt_prog_compiler_wl='-Wl,-Wl,,'
11826	lt_prog_compiler_pic='-PIC'
11827	lt_prog_compiler_static='-Bstatic'
11828	;;
11829      tcc*)
11830	# Fabrice Bellard et al's Tiny C Compiler
11831	lt_prog_compiler_wl='-Wl,'
11832	lt_prog_compiler_pic='-fPIC'
11833	lt_prog_compiler_static='-static'
11834	;;
11835      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11836        # Portland Group compilers (*not* the Pentium gcc compiler,
11837	# which looks to be a dead project)
11838	lt_prog_compiler_wl='-Wl,'
11839	lt_prog_compiler_pic='-fpic'
11840	lt_prog_compiler_static='-Bstatic'
11841        ;;
11842      ccc*)
11843        lt_prog_compiler_wl='-Wl,'
11844        # All Alpha code is PIC.
11845        lt_prog_compiler_static='-non_shared'
11846        ;;
11847      xl* | bgxl* | bgf* | mpixl*)
11848	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11849	lt_prog_compiler_wl='-Wl,'
11850	lt_prog_compiler_pic='-qpic'
11851	lt_prog_compiler_static='-qstaticlink'
11852	;;
11853      *)
11854	case `$CC -V 2>&1 | sed 5q` in
11855	*Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
11856	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
11857	  lt_prog_compiler_pic='-KPIC'
11858	  lt_prog_compiler_static='-Bstatic'
11859	  lt_prog_compiler_wl=''
11860	  ;;
11861	*Sun\ F* | *Sun*Fortran*)
11862	  lt_prog_compiler_pic='-KPIC'
11863	  lt_prog_compiler_static='-Bstatic'
11864	  lt_prog_compiler_wl='-Qoption ld '
11865	  ;;
11866	*Sun\ C*)
11867	  # Sun C 5.9
11868	  lt_prog_compiler_pic='-KPIC'
11869	  lt_prog_compiler_static='-Bstatic'
11870	  lt_prog_compiler_wl='-Wl,'
11871	  ;;
11872        *Intel*\ [CF]*Compiler*)
11873	  lt_prog_compiler_wl='-Wl,'
11874	  lt_prog_compiler_pic='-fPIC'
11875	  lt_prog_compiler_static='-static'
11876	  ;;
11877	*Portland\ Group*)
11878	  lt_prog_compiler_wl='-Wl,'
11879	  lt_prog_compiler_pic='-fpic'
11880	  lt_prog_compiler_static='-Bstatic'
11881	  ;;
11882	esac
11883	;;
11884      esac
11885      ;;
11886
11887    newsos6)
11888      lt_prog_compiler_pic='-KPIC'
11889      lt_prog_compiler_static='-Bstatic'
11890      ;;
11891
11892    *nto* | *qnx*)
11893      # QNX uses GNU C++, but need to define -shared option too, otherwise
11894      # it will coredump.
11895      lt_prog_compiler_pic='-fPIC -shared'
11896      ;;
11897
11898    osf3* | osf4* | osf5*)
11899      lt_prog_compiler_wl='-Wl,'
11900      # All OSF/1 code is PIC.
11901      lt_prog_compiler_static='-non_shared'
11902      ;;
11903
11904    rdos*)
11905      lt_prog_compiler_static='-non_shared'
11906      ;;
11907
11908    solaris*)
11909      lt_prog_compiler_pic='-KPIC'
11910      lt_prog_compiler_static='-Bstatic'
11911      case $cc_basename in
11912      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
11913	lt_prog_compiler_wl='-Qoption ld ';;
11914      *)
11915	lt_prog_compiler_wl='-Wl,';;
11916      esac
11917      ;;
11918
11919    sunos4*)
11920      lt_prog_compiler_wl='-Qoption ld '
11921      lt_prog_compiler_pic='-PIC'
11922      lt_prog_compiler_static='-Bstatic'
11923      ;;
11924
11925    sysv4 | sysv4.2uw2* | sysv4.3*)
11926      lt_prog_compiler_wl='-Wl,'
11927      lt_prog_compiler_pic='-KPIC'
11928      lt_prog_compiler_static='-Bstatic'
11929      ;;
11930
11931    sysv4*MP*)
11932      if test -d /usr/nec; then
11933	lt_prog_compiler_pic='-Kconform_pic'
11934	lt_prog_compiler_static='-Bstatic'
11935      fi
11936      ;;
11937
11938    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11939      lt_prog_compiler_wl='-Wl,'
11940      lt_prog_compiler_pic='-KPIC'
11941      lt_prog_compiler_static='-Bstatic'
11942      ;;
11943
11944    unicos*)
11945      lt_prog_compiler_wl='-Wl,'
11946      lt_prog_compiler_can_build_shared=no
11947      ;;
11948
11949    uts4*)
11950      lt_prog_compiler_pic='-pic'
11951      lt_prog_compiler_static='-Bstatic'
11952      ;;
11953
11954    *)
11955      lt_prog_compiler_can_build_shared=no
11956      ;;
11957    esac
11958  fi
11959
11960case $host_os in
11961  # For platforms that do not support PIC, -DPIC is meaningless:
11962  *djgpp*)
11963    lt_prog_compiler_pic=
11964    ;;
11965  *)
11966    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11967    ;;
11968esac
11969
11970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11971$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11972if ${lt_cv_prog_compiler_pic+:} false; then :
11973  $as_echo_n "(cached) " >&6
11974else
11975  lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
11976fi
11977{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
11978$as_echo "$lt_cv_prog_compiler_pic" >&6; }
11979lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
11980
11981#
11982# Check to make sure the PIC flag actually works.
11983#
11984if test -n "$lt_prog_compiler_pic"; then
11985  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11986$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11987if ${lt_cv_prog_compiler_pic_works+:} false; then :
11988  $as_echo_n "(cached) " >&6
11989else
11990  lt_cv_prog_compiler_pic_works=no
11991   ac_outfile=conftest.$ac_objext
11992   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11993   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"  ## exclude from sc_useless_quotes_in_assignment
11994   # Insert the option either (1) after the last *FLAGS variable, or
11995   # (2) before a word containing "conftest.", or (3) at the end.
11996   # Note that $ac_compile itself does not contain backslashes and begins
11997   # with a dollar sign (not a hyphen), so the echo should work correctly.
11998   # The option is referenced via a variable to avoid confusing sed.
11999   lt_compile=`echo "$ac_compile" | $SED \
12000   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12001   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12002   -e 's:$: $lt_compiler_flag:'`
12003   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12004   (eval "$lt_compile" 2>conftest.err)
12005   ac_status=$?
12006   cat conftest.err >&5
12007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12008   if (exit $ac_status) && test -s "$ac_outfile"; then
12009     # The compiler can only warn and ignore the option if not recognized
12010     # So say no if there are warnings other than the usual output.
12011     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
12012     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12013     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12014       lt_cv_prog_compiler_pic_works=yes
12015     fi
12016   fi
12017   $RM conftest*
12018
12019fi
12020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
12021$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
12022
12023if test yes = "$lt_cv_prog_compiler_pic_works"; then
12024    case $lt_prog_compiler_pic in
12025     "" | " "*) ;;
12026     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
12027     esac
12028else
12029    lt_prog_compiler_pic=
12030     lt_prog_compiler_can_build_shared=no
12031fi
12032
12033fi
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045#
12046# Check to make sure the static flag actually works.
12047#
12048wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12050$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12051if ${lt_cv_prog_compiler_static_works+:} false; then :
12052  $as_echo_n "(cached) " >&6
12053else
12054  lt_cv_prog_compiler_static_works=no
12055   save_LDFLAGS=$LDFLAGS
12056   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12057   echo "$lt_simple_link_test_code" > conftest.$ac_ext
12058   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12059     # The linker can only warn and ignore the option if not recognized
12060     # So say no if there are warnings
12061     if test -s conftest.err; then
12062       # Append any errors to the config.log.
12063       cat conftest.err 1>&5
12064       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12065       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12066       if diff conftest.exp conftest.er2 >/dev/null; then
12067         lt_cv_prog_compiler_static_works=yes
12068       fi
12069     else
12070       lt_cv_prog_compiler_static_works=yes
12071     fi
12072   fi
12073   $RM -r conftest*
12074   LDFLAGS=$save_LDFLAGS
12075
12076fi
12077{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12078$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12079
12080if test yes = "$lt_cv_prog_compiler_static_works"; then
12081    :
12082else
12083    lt_prog_compiler_static=
12084fi
12085
12086
12087
12088
12089
12090
12091
12092  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12093$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12094if ${lt_cv_prog_compiler_c_o+:} false; then :
12095  $as_echo_n "(cached) " >&6
12096else
12097  lt_cv_prog_compiler_c_o=no
12098   $RM -r conftest 2>/dev/null
12099   mkdir conftest
12100   cd conftest
12101   mkdir out
12102   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12103
12104   lt_compiler_flag="-o out/conftest2.$ac_objext"
12105   # Insert the option either (1) after the last *FLAGS variable, or
12106   # (2) before a word containing "conftest.", or (3) at the end.
12107   # Note that $ac_compile itself does not contain backslashes and begins
12108   # with a dollar sign (not a hyphen), so the echo should work correctly.
12109   lt_compile=`echo "$ac_compile" | $SED \
12110   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12111   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12112   -e 's:$: $lt_compiler_flag:'`
12113   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12114   (eval "$lt_compile" 2>out/conftest.err)
12115   ac_status=$?
12116   cat out/conftest.err >&5
12117   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12118   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12119   then
12120     # The compiler can only warn and ignore the option if not recognized
12121     # So say no if there are warnings
12122     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12123     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12124     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12125       lt_cv_prog_compiler_c_o=yes
12126     fi
12127   fi
12128   chmod u+w . 2>&5
12129   $RM conftest*
12130   # SGI C++ compiler will create directory out/ii_files/ for
12131   # template instantiation
12132   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12133   $RM out/* && rmdir out
12134   cd ..
12135   $RM -r conftest
12136   $RM conftest*
12137
12138fi
12139{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12140$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12141
12142
12143
12144
12145
12146
12147  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12148$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12149if ${lt_cv_prog_compiler_c_o+:} false; then :
12150  $as_echo_n "(cached) " >&6
12151else
12152  lt_cv_prog_compiler_c_o=no
12153   $RM -r conftest 2>/dev/null
12154   mkdir conftest
12155   cd conftest
12156   mkdir out
12157   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12158
12159   lt_compiler_flag="-o out/conftest2.$ac_objext"
12160   # Insert the option either (1) after the last *FLAGS variable, or
12161   # (2) before a word containing "conftest.", or (3) at the end.
12162   # Note that $ac_compile itself does not contain backslashes and begins
12163   # with a dollar sign (not a hyphen), so the echo should work correctly.
12164   lt_compile=`echo "$ac_compile" | $SED \
12165   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12166   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12167   -e 's:$: $lt_compiler_flag:'`
12168   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
12169   (eval "$lt_compile" 2>out/conftest.err)
12170   ac_status=$?
12171   cat out/conftest.err >&5
12172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12173   if (exit $ac_status) && test -s out/conftest2.$ac_objext
12174   then
12175     # The compiler can only warn and ignore the option if not recognized
12176     # So say no if there are warnings
12177     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
12178     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12179     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12180       lt_cv_prog_compiler_c_o=yes
12181     fi
12182   fi
12183   chmod u+w . 2>&5
12184   $RM conftest*
12185   # SGI C++ compiler will create directory out/ii_files/ for
12186   # template instantiation
12187   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12188   $RM out/* && rmdir out
12189   cd ..
12190   $RM -r conftest
12191   $RM conftest*
12192
12193fi
12194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12195$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12196
12197
12198
12199
12200hard_links=nottested
12201if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then
12202  # do not overwrite the value of need_locks provided by the user
12203  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12204$as_echo_n "checking if we can lock with hard links... " >&6; }
12205  hard_links=yes
12206  $RM conftest*
12207  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12208  touch conftest.a
12209  ln conftest.a conftest.b 2>&5 || hard_links=no
12210  ln conftest.a conftest.b 2>/dev/null && hard_links=no
12211  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12212$as_echo "$hard_links" >&6; }
12213  if test no = "$hard_links"; then
12214    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
12215$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
12216    need_locks=warn
12217  fi
12218else
12219  need_locks=no
12220fi
12221
12222
12223
12224
12225
12226
12227  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12228$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12229
12230  runpath_var=
12231  allow_undefined_flag=
12232  always_export_symbols=no
12233  archive_cmds=
12234  archive_expsym_cmds=
12235  compiler_needs_object=no
12236  enable_shared_with_static_runtimes=no
12237  export_dynamic_flag_spec=
12238  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12239  hardcode_automatic=no
12240  hardcode_direct=no
12241  hardcode_direct_absolute=no
12242  hardcode_libdir_flag_spec=
12243  hardcode_libdir_separator=
12244  hardcode_minus_L=no
12245  hardcode_shlibpath_var=unsupported
12246  inherit_rpath=no
12247  link_all_deplibs=unknown
12248  module_cmds=
12249  module_expsym_cmds=
12250  old_archive_from_new_cmds=
12251  old_archive_from_expsyms_cmds=
12252  thread_safe_flag_spec=
12253  whole_archive_flag_spec=
12254  # include_expsyms should be a list of space-separated symbols to be *always*
12255  # included in the symbol list
12256  include_expsyms=
12257  # exclude_expsyms can be an extended regexp of symbols to exclude
12258  # it will be wrapped by ' (' and ')$', so one must not match beginning or
12259  # end of line.  Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc',
12260  # as well as any symbol that contains 'd'.
12261  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12262  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12263  # platforms (ab)use it in PIC code, but their linkers get confused if
12264  # the symbol is explicitly referenced.  Since portable code cannot
12265  # rely on this symbol name, it's probably fine to never include it in
12266  # preloaded symbol tables.
12267  # Exclude shared library initialization/finalization symbols.
12268  extract_expsyms_cmds=
12269
12270  case $host_os in
12271  cygwin* | mingw* | pw32* | cegcc*)
12272    # FIXME: the MSVC++ port hasn't been tested in a loooong time
12273    # When not using gcc, we currently assume that we are using
12274    # Microsoft Visual C++.
12275    if test yes != "$GCC"; then
12276      with_gnu_ld=no
12277    fi
12278    ;;
12279  interix*)
12280    # we just hope/assume this is gcc and not c89 (= MSVC++)
12281    with_gnu_ld=yes
12282    ;;
12283  openbsd* | bitrig*)
12284    with_gnu_ld=no
12285    ;;
12286  linux* | k*bsd*-gnu | gnu*)
12287    link_all_deplibs=no
12288    ;;
12289  esac
12290
12291  ld_shlibs=yes
12292
12293  # On some targets, GNU ld is compatible enough with the native linker
12294  # that we're better off using the native interface for both.
12295  lt_use_gnu_ld_interface=no
12296  if test yes = "$with_gnu_ld"; then
12297    case $host_os in
12298      aix*)
12299	# The AIX port of GNU ld has always aspired to compatibility
12300	# with the native linker.  However, as the warning in the GNU ld
12301	# block says, versions before 2.19.5* couldn't really create working
12302	# shared libraries, regardless of the interface used.
12303	case `$LD -v 2>&1` in
12304	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12305	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12306	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12307	  *)
12308	    lt_use_gnu_ld_interface=yes
12309	    ;;
12310	esac
12311	;;
12312      *)
12313	lt_use_gnu_ld_interface=yes
12314	;;
12315    esac
12316  fi
12317
12318  if test yes = "$lt_use_gnu_ld_interface"; then
12319    # If archive_cmds runs LD, not CC, wlarc should be empty
12320    wlarc='$wl'
12321
12322    # Set some defaults for GNU ld with shared library support. These
12323    # are reset later if shared libraries are not supported. Putting them
12324    # here allows them to be overridden if necessary.
12325    runpath_var=LD_RUN_PATH
12326    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12327    export_dynamic_flag_spec='$wl--export-dynamic'
12328    # ancient GNU ld didn't support --whole-archive et. al.
12329    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12330      whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
12331    else
12332      whole_archive_flag_spec=
12333    fi
12334    supports_anon_versioning=no
12335    case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in
12336      *GNU\ gold*) supports_anon_versioning=yes ;;
12337      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12338      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12339      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12340      *\ 2.11.*) ;; # other 2.11 versions
12341      *) supports_anon_versioning=yes ;;
12342    esac
12343
12344    # See if GNU ld supports shared libraries.
12345    case $host_os in
12346    aix[3-9]*)
12347      # On AIX/PPC, the GNU linker is very broken
12348      if test ia64 != "$host_cpu"; then
12349	ld_shlibs=no
12350	cat <<_LT_EOF 1>&2
12351
12352*** Warning: the GNU linker, at least up to release 2.19, is reported
12353*** to be unable to reliably create shared libraries on AIX.
12354*** Therefore, libtool is disabling shared libraries support.  If you
12355*** really care for shared libraries, you may want to install binutils
12356*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12357*** You will then need to restart the configuration process.
12358
12359_LT_EOF
12360      fi
12361      ;;
12362
12363    amigaos*)
12364      case $host_cpu in
12365      powerpc)
12366            # see comment about AmigaOS4 .so support
12367            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12368            archive_expsym_cmds=''
12369        ;;
12370      m68k)
12371            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)'
12372            hardcode_libdir_flag_spec='-L$libdir'
12373            hardcode_minus_L=yes
12374        ;;
12375      esac
12376      ;;
12377
12378    beos*)
12379      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12380	allow_undefined_flag=unsupported
12381	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12382	# support --undefined.  This deserves some investigation.  FIXME
12383	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12384      else
12385	ld_shlibs=no
12386      fi
12387      ;;
12388
12389    cygwin* | mingw* | pw32* | cegcc*)
12390      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12391      # as there is no search path for DLLs.
12392      hardcode_libdir_flag_spec='-L$libdir'
12393      export_dynamic_flag_spec='$wl--export-all-symbols'
12394      allow_undefined_flag=unsupported
12395      always_export_symbols=no
12396      enable_shared_with_static_runtimes=yes
12397      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
12398      exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
12399
12400      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12401        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12402	# If the export-symbols file already is a .def file, use it as
12403	# is; otherwise, prepend EXPORTS...
12404	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12405          cp $export_symbols $output_objdir/$soname.def;
12406        else
12407          echo EXPORTS > $output_objdir/$soname.def;
12408          cat $export_symbols >> $output_objdir/$soname.def;
12409        fi~
12410        $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12411      else
12412	ld_shlibs=no
12413      fi
12414      ;;
12415
12416    haiku*)
12417      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12418      link_all_deplibs=yes
12419      ;;
12420
12421    os2*)
12422      hardcode_libdir_flag_spec='-L$libdir'
12423      hardcode_minus_L=yes
12424      allow_undefined_flag=unsupported
12425      shrext_cmds=.dll
12426      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12427	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12428	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12429	$ECHO EXPORTS >> $output_objdir/$libname.def~
12430	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
12431	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12432	emximp -o $lib $output_objdir/$libname.def'
12433      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
12434	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
12435	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
12436	$ECHO EXPORTS >> $output_objdir/$libname.def~
12437	prefix_cmds="$SED"~
12438	if test EXPORTS = "`$SED 1q $export_symbols`"; then
12439	  prefix_cmds="$prefix_cmds -e 1d";
12440	fi~
12441	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
12442	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
12443	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
12444	emximp -o $lib $output_objdir/$libname.def'
12445      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
12446      enable_shared_with_static_runtimes=yes
12447      ;;
12448
12449    interix[3-9]*)
12450      hardcode_direct=no
12451      hardcode_shlibpath_var=no
12452      hardcode_libdir_flag_spec='$wl-rpath,$libdir'
12453      export_dynamic_flag_spec='$wl-E'
12454      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12455      # Instead, shared libraries are loaded at an image base (0x10000000 by
12456      # default) and relocated if they conflict, which is a slow very memory
12457      # consuming and fragmenting process.  To avoid this, we pick a random,
12458      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12459      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12460      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12461      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'
12462      ;;
12463
12464    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
12465      tmp_diet=no
12466      if test linux-dietlibc = "$host_os"; then
12467	case $cc_basename in
12468	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
12469	esac
12470      fi
12471      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12472	 && test no = "$tmp_diet"
12473      then
12474	tmp_addflag=' $pic_flag'
12475	tmp_sharedflag='-shared'
12476	case $cc_basename,$host_cpu in
12477        pgcc*)				# Portland Group C compiler
12478	  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'
12479	  tmp_addflag=' $pic_flag'
12480	  ;;
12481	pgf77* | pgf90* | pgf95* | pgfortran*)
12482					# Portland Group f77 and f90 compilers
12483	  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'
12484	  tmp_addflag=' $pic_flag -Mnomain' ;;
12485	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
12486	  tmp_addflag=' -i_dynamic' ;;
12487	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
12488	  tmp_addflag=' -i_dynamic -nofor_main' ;;
12489	ifc* | ifort*)			# Intel Fortran compiler
12490	  tmp_addflag=' -nofor_main' ;;
12491	lf95*)				# Lahey Fortran 8.1
12492	  whole_archive_flag_spec=
12493	  tmp_sharedflag='--shared' ;;
12494        nagfor*)                        # NAGFOR 5.3
12495          tmp_sharedflag='-Wl,-shared' ;;
12496	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12497	  tmp_sharedflag='-qmkshrobj'
12498	  tmp_addflag= ;;
12499	nvcc*)	# Cuda Compiler Driver 2.2
12500	  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'
12501	  compiler_needs_object=yes
12502	  ;;
12503	esac
12504	case `$CC -V 2>&1 | sed 5q` in
12505	*Sun\ C*)			# Sun C 5.9
12506	  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'
12507	  compiler_needs_object=yes
12508	  tmp_sharedflag='-G' ;;
12509	*Sun\ F*)			# Sun Fortran 8.3
12510	  tmp_sharedflag='-G' ;;
12511	esac
12512	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12513
12514        if test yes = "$supports_anon_versioning"; then
12515          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12516            cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12517            echo "local: *; };" >> $output_objdir/$libname.ver~
12518            $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
12519        fi
12520
12521	case $cc_basename in
12522	tcc*)
12523	  export_dynamic_flag_spec='-rdynamic'
12524	  ;;
12525	xlf* | bgf* | bgxlf* | mpixlf*)
12526	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12527	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12528	  hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12529	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
12530	  if test yes = "$supports_anon_versioning"; then
12531	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12532              cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12533              echo "local: *; };" >> $output_objdir/$libname.ver~
12534              $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12535	  fi
12536	  ;;
12537	esac
12538      else
12539        ld_shlibs=no
12540      fi
12541      ;;
12542
12543    netbsd* | netbsdelf*-gnu)
12544      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12545	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12546	wlarc=
12547      else
12548	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12549	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12550      fi
12551      ;;
12552
12553    solaris*)
12554      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12555	ld_shlibs=no
12556	cat <<_LT_EOF 1>&2
12557
12558*** Warning: The releases 2.8.* of the GNU linker cannot reliably
12559*** create shared libraries on Solaris systems.  Therefore, libtool
12560*** is disabling shared libraries support.  We urge you to upgrade GNU
12561*** binutils to release 2.9.1 or newer.  Another option is to modify
12562*** your PATH or compiler configuration so that the native linker is
12563*** used, and then restart.
12564
12565_LT_EOF
12566      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12567	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12568	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12569      else
12570	ld_shlibs=no
12571      fi
12572      ;;
12573
12574    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12575      case `$LD -v 2>&1` in
12576        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12577	ld_shlibs=no
12578	cat <<_LT_EOF 1>&2
12579
12580*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot
12581*** reliably create shared libraries on SCO systems.  Therefore, libtool
12582*** is disabling shared libraries support.  We urge you to upgrade GNU
12583*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
12584*** your PATH or compiler configuration so that the native linker is
12585*** used, and then restart.
12586
12587_LT_EOF
12588	;;
12589	*)
12590	  # For security reasons, it is highly recommended that you always
12591	  # use absolute paths for naming shared libraries, and exclude the
12592	  # DT_RUNPATH tag from executables and libraries.  But doing so
12593	  # requires that you compile everything twice, which is a pain.
12594	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12595	    hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
12596	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12597	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12598	  else
12599	    ld_shlibs=no
12600	  fi
12601	;;
12602      esac
12603      ;;
12604
12605    sunos4*)
12606      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12607      wlarc=
12608      hardcode_direct=yes
12609      hardcode_shlibpath_var=no
12610      ;;
12611
12612    *)
12613      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12614	archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12615	archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
12616      else
12617	ld_shlibs=no
12618      fi
12619      ;;
12620    esac
12621
12622    if test no = "$ld_shlibs"; then
12623      runpath_var=
12624      hardcode_libdir_flag_spec=
12625      export_dynamic_flag_spec=
12626      whole_archive_flag_spec=
12627    fi
12628  else
12629    # PORTME fill in a description of your system's linker (not GNU ld)
12630    case $host_os in
12631    aix3*)
12632      allow_undefined_flag=unsupported
12633      always_export_symbols=yes
12634      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'
12635      # Note: this linker hardcodes the directories in LIBPATH if there
12636      # are no directories specified by -L.
12637      hardcode_minus_L=yes
12638      if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then
12639	# Neither direct hardcoding nor static linking is supported with a
12640	# broken collect2.
12641	hardcode_direct=unsupported
12642      fi
12643      ;;
12644
12645    aix[4-9]*)
12646      if test ia64 = "$host_cpu"; then
12647	# On IA64, the linker does run time linking by default, so we don't
12648	# have to do anything special.
12649	aix_use_runtimelinking=no
12650	exp_sym_flag='-Bexport'
12651	no_entry_flag=
12652      else
12653	# If we're using GNU nm, then we don't want the "-C" option.
12654	# -C means demangle to GNU nm, but means don't demangle to AIX nm.
12655	# Without the "-l" option, or with the "-B" option, AIX nm treats
12656	# weak defined symbols like other global defined symbols, whereas
12657	# GNU nm marks them as "W".
12658	# While the 'weak' keyword is ignored in the Export File, we need
12659	# it in the Import File for the 'aix-soname' feature, so we have
12660	# to replace the "-B" option with "-P" for AIX nm.
12661	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12662	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
12663	else
12664	  export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
12665	fi
12666	aix_use_runtimelinking=no
12667
12668	# Test if we are trying to use run time linking or normal
12669	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
12670	# have runtime linking enabled, and use it for executables.
12671	# For shared libraries, we enable/disable runtime linking
12672	# depending on the kind of the shared library created -
12673	# when "with_aix_soname,aix_use_runtimelinking" is:
12674	# "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
12675	# "aix,yes"  lib.so          shared, rtl:yes, for executables
12676	#            lib.a           static archive
12677	# "both,no"  lib.so.V(shr.o) shared, rtl:yes
12678	#            lib.a(lib.so.V) shared, rtl:no,  for executables
12679	# "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
12680	#            lib.a(lib.so.V) shared, rtl:no
12681	# "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
12682	#            lib.a           static archive
12683	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12684	  for ld_flag in $LDFLAGS; do
12685	  if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then
12686	    aix_use_runtimelinking=yes
12687	    break
12688	  fi
12689	  done
12690	  if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
12691	    # With aix-soname=svr4, we create the lib.so.V shared archives only,
12692	    # so we don't have lib.a shared libs to link our executables.
12693	    # We have to force runtime linking in this case.
12694	    aix_use_runtimelinking=yes
12695	    LDFLAGS="$LDFLAGS -Wl,-brtl"
12696	  fi
12697	  ;;
12698	esac
12699
12700	exp_sym_flag='-bexport'
12701	no_entry_flag='-bnoentry'
12702      fi
12703
12704      # When large executables or shared objects are built, AIX ld can
12705      # have problems creating the table of contents.  If linking a library
12706      # or program results in "error TOC overflow" add -mminimal-toc to
12707      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12708      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12709
12710      archive_cmds=''
12711      hardcode_direct=yes
12712      hardcode_direct_absolute=yes
12713      hardcode_libdir_separator=':'
12714      link_all_deplibs=yes
12715      file_list_spec='$wl-f,'
12716      case $with_aix_soname,$aix_use_runtimelinking in
12717      aix,*) ;; # traditional, no import file
12718      svr4,* | *,yes) # use import file
12719	# The Import File defines what to hardcode.
12720	hardcode_direct=no
12721	hardcode_direct_absolute=no
12722	;;
12723      esac
12724
12725      if test yes = "$GCC"; then
12726	case $host_os in aix4.[012]|aix4.[012].*)
12727	# We only want to do this on AIX 4.2 and lower, the check
12728	# below for broken collect2 doesn't work under 4.3+
12729	  collect2name=`$CC -print-prog-name=collect2`
12730	  if test -f "$collect2name" &&
12731	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12732	  then
12733	  # We have reworked collect2
12734	  :
12735	  else
12736	  # We have old collect2
12737	  hardcode_direct=unsupported
12738	  # It fails to find uninstalled libraries when the uninstalled
12739	  # path is not listed in the libpath.  Setting hardcode_minus_L
12740	  # to unsupported forces relinking
12741	  hardcode_minus_L=yes
12742	  hardcode_libdir_flag_spec='-L$libdir'
12743	  hardcode_libdir_separator=
12744	  fi
12745	  ;;
12746	esac
12747	shared_flag='-shared'
12748	if test yes = "$aix_use_runtimelinking"; then
12749	  shared_flag="$shared_flag "'$wl-G'
12750	fi
12751	# Need to ensure runtime linking is disabled for the traditional
12752	# shared library, or the linker may eventually find shared libraries
12753	# /with/ Import File - we do not want to mix them.
12754	shared_flag_aix='-shared'
12755	shared_flag_svr4='-shared $wl-G'
12756      else
12757	# not using gcc
12758	if test ia64 = "$host_cpu"; then
12759	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12760	# chokes on -Wl,-G. The following line is correct:
12761	  shared_flag='-G'
12762	else
12763	  if test yes = "$aix_use_runtimelinking"; then
12764	    shared_flag='$wl-G'
12765	  else
12766	    shared_flag='$wl-bM:SRE'
12767	  fi
12768	  shared_flag_aix='$wl-bM:SRE'
12769	  shared_flag_svr4='$wl-G'
12770	fi
12771      fi
12772
12773      export_dynamic_flag_spec='$wl-bexpall'
12774      # It seems that -bexpall does not export symbols beginning with
12775      # underscore (_), so it is better to generate a list of symbols to export.
12776      always_export_symbols=yes
12777      if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
12778	# Warning - without using the other runtime loading flags (-brtl),
12779	# -berok will link without error, but may produce a broken library.
12780	allow_undefined_flag='-berok'
12781        # Determine the default libpath from the value encoded in an
12782        # empty executable.
12783        if test set = "${lt_cv_aix_libpath+set}"; then
12784  aix_libpath=$lt_cv_aix_libpath
12785else
12786  if ${lt_cv_aix_libpath_+:} false; then :
12787  $as_echo_n "(cached) " >&6
12788else
12789  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790/* end confdefs.h.  */
12791
12792int
12793main ()
12794{
12795
12796  ;
12797  return 0;
12798}
12799_ACEOF
12800if ac_fn_c_try_link "$LINENO"; then :
12801
12802  lt_aix_libpath_sed='
12803      /Import File Strings/,/^$/ {
12804	  /^0/ {
12805	      s/^0  *\([^ ]*\) *$/\1/
12806	      p
12807	  }
12808      }'
12809  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12810  # Check for a 64-bit object if we didn't find anything.
12811  if test -z "$lt_cv_aix_libpath_"; then
12812    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12813  fi
12814fi
12815rm -f core conftest.err conftest.$ac_objext \
12816    conftest$ac_exeext conftest.$ac_ext
12817  if test -z "$lt_cv_aix_libpath_"; then
12818    lt_cv_aix_libpath_=/usr/lib:/lib
12819  fi
12820
12821fi
12822
12823  aix_libpath=$lt_cv_aix_libpath_
12824fi
12825
12826        hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12827        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
12828      else
12829	if test ia64 = "$host_cpu"; then
12830	  hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib'
12831	  allow_undefined_flag="-z nodefs"
12832	  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"
12833	else
12834	 # Determine the default libpath from the value encoded in an
12835	 # empty executable.
12836	 if test set = "${lt_cv_aix_libpath+set}"; then
12837  aix_libpath=$lt_cv_aix_libpath
12838else
12839  if ${lt_cv_aix_libpath_+:} false; then :
12840  $as_echo_n "(cached) " >&6
12841else
12842  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12843/* end confdefs.h.  */
12844
12845int
12846main ()
12847{
12848
12849  ;
12850  return 0;
12851}
12852_ACEOF
12853if ac_fn_c_try_link "$LINENO"; then :
12854
12855  lt_aix_libpath_sed='
12856      /Import File Strings/,/^$/ {
12857	  /^0/ {
12858	      s/^0  *\([^ ]*\) *$/\1/
12859	      p
12860	  }
12861      }'
12862  lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12863  # Check for a 64-bit object if we didn't find anything.
12864  if test -z "$lt_cv_aix_libpath_"; then
12865    lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12866  fi
12867fi
12868rm -f core conftest.err conftest.$ac_objext \
12869    conftest$ac_exeext conftest.$ac_ext
12870  if test -z "$lt_cv_aix_libpath_"; then
12871    lt_cv_aix_libpath_=/usr/lib:/lib
12872  fi
12873
12874fi
12875
12876  aix_libpath=$lt_cv_aix_libpath_
12877fi
12878
12879	 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath"
12880	  # Warning - without using the other run time loading flags,
12881	  # -berok will link without error, but may produce a broken library.
12882	  no_undefined_flag=' $wl-bernotok'
12883	  allow_undefined_flag=' $wl-berok'
12884	  if test yes = "$with_gnu_ld"; then
12885	    # We only use this code for GNU lds that support --whole-archive.
12886	    whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive'
12887	  else
12888	    # Exported symbols can be pulled into shared objects from archives
12889	    whole_archive_flag_spec='$convenience'
12890	  fi
12891	  archive_cmds_need_lc=yes
12892	  archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
12893	  # -brtl affects multiple linker settings, -berok does not and is overridden later
12894	  compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
12895	  if test svr4 != "$with_aix_soname"; then
12896	    # This is similar to how AIX traditionally builds its shared libraries.
12897	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
12898	  fi
12899	  if test aix != "$with_aix_soname"; then
12900	    archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
12901	  else
12902	    # used by -dlpreopen to get the symbols
12903	    archive_expsym_cmds="$archive_expsym_cmds"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
12904	  fi
12905	  archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d'
12906	fi
12907      fi
12908      ;;
12909
12910    amigaos*)
12911      case $host_cpu in
12912      powerpc)
12913            # see comment about AmigaOS4 .so support
12914            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
12915            archive_expsym_cmds=''
12916        ;;
12917      m68k)
12918            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)'
12919            hardcode_libdir_flag_spec='-L$libdir'
12920            hardcode_minus_L=yes
12921        ;;
12922      esac
12923      ;;
12924
12925    bsdi[45]*)
12926      export_dynamic_flag_spec=-rdynamic
12927      ;;
12928
12929    cygwin* | mingw* | pw32* | cegcc*)
12930      # When not using gcc, we currently assume that we are using
12931      # Microsoft Visual C++.
12932      # hardcode_libdir_flag_spec is actually meaningless, as there is
12933      # no search path for DLLs.
12934      case $cc_basename in
12935      cl*)
12936	# Native MSVC
12937	hardcode_libdir_flag_spec=' '
12938	allow_undefined_flag=unsupported
12939	always_export_symbols=yes
12940	file_list_spec='@'
12941	# Tell ltmain to make .lib files, not .a files.
12942	libext=lib
12943	# Tell ltmain to make .dll files, not .so files.
12944	shrext_cmds=.dll
12945	# FIXME: Setting linknames here is a bad hack.
12946	archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
12947	archive_expsym_cmds='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
12948            cp "$export_symbols" "$output_objdir/$soname.def";
12949            echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
12950          else
12951            $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
12952          fi~
12953          $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
12954          linknames='
12955	# The linker will not automatically build a static lib if we build a DLL.
12956	# _LT_TAGVAR(old_archive_from_new_cmds, )='true'
12957	enable_shared_with_static_runtimes=yes
12958	exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
12959	export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12960	# Don't use ranlib
12961	old_postinstall_cmds='chmod 644 $oldlib'
12962	postlink_cmds='lt_outputfile="@OUTPUT@"~
12963          lt_tool_outputfile="@TOOL_OUTPUT@"~
12964          case $lt_outputfile in
12965            *.exe|*.EXE) ;;
12966            *)
12967              lt_outputfile=$lt_outputfile.exe
12968              lt_tool_outputfile=$lt_tool_outputfile.exe
12969              ;;
12970          esac~
12971          if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
12972            $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
12973            $RM "$lt_outputfile.manifest";
12974          fi'
12975	;;
12976      *)
12977	# Assume MSVC wrapper
12978	hardcode_libdir_flag_spec=' '
12979	allow_undefined_flag=unsupported
12980	# Tell ltmain to make .lib files, not .a files.
12981	libext=lib
12982	# Tell ltmain to make .dll files, not .so files.
12983	shrext_cmds=.dll
12984	# FIXME: Setting linknames here is a bad hack.
12985	archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12986	# The linker will automatically build a .lib file if we build a DLL.
12987	old_archive_from_new_cmds='true'
12988	# FIXME: Should let the user specify the lib program.
12989	old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12990	enable_shared_with_static_runtimes=yes
12991	;;
12992      esac
12993      ;;
12994
12995    darwin* | rhapsody*)
12996
12997
12998  archive_cmds_need_lc=no
12999  hardcode_direct=no
13000  hardcode_automatic=yes
13001  hardcode_shlibpath_var=unsupported
13002  if test yes = "$lt_cv_ld_force_load"; then
13003    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\"`'
13004
13005  else
13006    whole_archive_flag_spec=''
13007  fi
13008  link_all_deplibs=yes
13009  allow_undefined_flag=$_lt_dar_allow_undefined
13010  case $cc_basename in
13011     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
13012     *) _lt_dar_can_shared=$GCC ;;
13013  esac
13014  if test yes = "$_lt_dar_can_shared"; then
13015    output_verbose_link_cmd=func_echo_all
13016    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil"
13017    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
13018    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"
13019    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"
13020
13021  else
13022  ld_shlibs=no
13023  fi
13024
13025      ;;
13026
13027    dgux*)
13028      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029      hardcode_libdir_flag_spec='-L$libdir'
13030      hardcode_shlibpath_var=no
13031      ;;
13032
13033    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13034    # support.  Future versions do this automatically, but an explicit c++rt0.o
13035    # does not break anything, and helps significantly (at the cost of a little
13036    # extra space).
13037    freebsd2.2*)
13038      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13039      hardcode_libdir_flag_spec='-R$libdir'
13040      hardcode_direct=yes
13041      hardcode_shlibpath_var=no
13042      ;;
13043
13044    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13045    freebsd2.*)
13046      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13047      hardcode_direct=yes
13048      hardcode_minus_L=yes
13049      hardcode_shlibpath_var=no
13050      ;;
13051
13052    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13053    freebsd* | dragonfly*)
13054      archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13055      hardcode_libdir_flag_spec='-R$libdir'
13056      hardcode_direct=yes
13057      hardcode_shlibpath_var=no
13058      ;;
13059
13060    hpux9*)
13061      if test yes = "$GCC"; then
13062	archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13063      else
13064	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
13065      fi
13066      hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13067      hardcode_libdir_separator=:
13068      hardcode_direct=yes
13069
13070      # hardcode_minus_L: Not really in the search PATH,
13071      # but as the default location of the library.
13072      hardcode_minus_L=yes
13073      export_dynamic_flag_spec='$wl-E'
13074      ;;
13075
13076    hpux10*)
13077      if test yes,no = "$GCC,$with_gnu_ld"; then
13078	archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13079      else
13080	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13081      fi
13082      if test no = "$with_gnu_ld"; then
13083	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13084	hardcode_libdir_separator=:
13085	hardcode_direct=yes
13086	hardcode_direct_absolute=yes
13087	export_dynamic_flag_spec='$wl-E'
13088	# hardcode_minus_L: Not really in the search PATH,
13089	# but as the default location of the library.
13090	hardcode_minus_L=yes
13091      fi
13092      ;;
13093
13094    hpux11*)
13095      if test yes,no = "$GCC,$with_gnu_ld"; then
13096	case $host_cpu in
13097	hppa*64*)
13098	  archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13099	  ;;
13100	ia64*)
13101	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13102	  ;;
13103	*)
13104	  archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13105	  ;;
13106	esac
13107      else
13108	case $host_cpu in
13109	hppa*64*)
13110	  archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13111	  ;;
13112	ia64*)
13113	  archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13114	  ;;
13115	*)
13116
13117	  # Older versions of the 11.00 compiler do not understand -b yet
13118	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
13119	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
13120$as_echo_n "checking if $CC understands -b... " >&6; }
13121if ${lt_cv_prog_compiler__b+:} false; then :
13122  $as_echo_n "(cached) " >&6
13123else
13124  lt_cv_prog_compiler__b=no
13125   save_LDFLAGS=$LDFLAGS
13126   LDFLAGS="$LDFLAGS -b"
13127   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13128   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13129     # The linker can only warn and ignore the option if not recognized
13130     # So say no if there are warnings
13131     if test -s conftest.err; then
13132       # Append any errors to the config.log.
13133       cat conftest.err 1>&5
13134       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13135       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13136       if diff conftest.exp conftest.er2 >/dev/null; then
13137         lt_cv_prog_compiler__b=yes
13138       fi
13139     else
13140       lt_cv_prog_compiler__b=yes
13141     fi
13142   fi
13143   $RM -r conftest*
13144   LDFLAGS=$save_LDFLAGS
13145
13146fi
13147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
13148$as_echo "$lt_cv_prog_compiler__b" >&6; }
13149
13150if test yes = "$lt_cv_prog_compiler__b"; then
13151    archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13152else
13153    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13154fi
13155
13156	  ;;
13157	esac
13158      fi
13159      if test no = "$with_gnu_ld"; then
13160	hardcode_libdir_flag_spec='$wl+b $wl$libdir'
13161	hardcode_libdir_separator=:
13162
13163	case $host_cpu in
13164	hppa*64*|ia64*)
13165	  hardcode_direct=no
13166	  hardcode_shlibpath_var=no
13167	  ;;
13168	*)
13169	  hardcode_direct=yes
13170	  hardcode_direct_absolute=yes
13171	  export_dynamic_flag_spec='$wl-E'
13172
13173	  # hardcode_minus_L: Not really in the search PATH,
13174	  # but as the default location of the library.
13175	  hardcode_minus_L=yes
13176	  ;;
13177	esac
13178      fi
13179      ;;
13180
13181    irix5* | irix6* | nonstopux*)
13182      if test yes = "$GCC"; then
13183	archive_cmds='$CC -shared $pic_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'
13184	# Try to use the -exported_symbol ld option, if it does not
13185	# work, assume that -exports_file does not work either and
13186	# implicitly export all symbols.
13187	# This should be the same for all languages, so no per-tag cache variable.
13188	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
13189$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
13190if ${lt_cv_irix_exported_symbol+:} false; then :
13191  $as_echo_n "(cached) " >&6
13192else
13193  save_LDFLAGS=$LDFLAGS
13194	   LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null"
13195	   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13196/* end confdefs.h.  */
13197int foo (void) { return 0; }
13198_ACEOF
13199if ac_fn_c_try_link "$LINENO"; then :
13200  lt_cv_irix_exported_symbol=yes
13201else
13202  lt_cv_irix_exported_symbol=no
13203fi
13204rm -f core conftest.err conftest.$ac_objext \
13205    conftest$ac_exeext conftest.$ac_ext
13206           LDFLAGS=$save_LDFLAGS
13207fi
13208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
13209$as_echo "$lt_cv_irix_exported_symbol" >&6; }
13210	if test yes = "$lt_cv_irix_exported_symbol"; then
13211          archive_expsym_cmds='$CC -shared $pic_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 $wl-exports_file $wl$export_symbols -o $lib'
13212	fi
13213	link_all_deplibs=no
13214      else
13215	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'
13216	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'
13217      fi
13218      archive_cmds_need_lc='no'
13219      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13220      hardcode_libdir_separator=:
13221      inherit_rpath=yes
13222      link_all_deplibs=yes
13223      ;;
13224
13225    linux*)
13226      case $cc_basename in
13227      tcc*)
13228	# Fabrice Bellard et al's Tiny C Compiler
13229	ld_shlibs=yes
13230	archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13231	;;
13232      esac
13233      ;;
13234
13235    netbsd* | netbsdelf*-gnu)
13236      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13237	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
13238      else
13239	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
13240      fi
13241      hardcode_libdir_flag_spec='-R$libdir'
13242      hardcode_direct=yes
13243      hardcode_shlibpath_var=no
13244      ;;
13245
13246    newsos6)
13247      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13248      hardcode_direct=yes
13249      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13250      hardcode_libdir_separator=:
13251      hardcode_shlibpath_var=no
13252      ;;
13253
13254    *nto* | *qnx*)
13255      ;;
13256
13257    openbsd* | bitrig*)
13258      if test -f /usr/libexec/ld.so; then
13259	hardcode_direct=yes
13260	hardcode_shlibpath_var=no
13261	hardcode_direct_absolute=yes
13262	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
13263	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13264	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols'
13265	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13266	  export_dynamic_flag_spec='$wl-E'
13267	else
13268	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13269	  hardcode_libdir_flag_spec='$wl-rpath,$libdir'
13270	fi
13271      else
13272	ld_shlibs=no
13273      fi
13274      ;;
13275
13276    os2*)
13277      hardcode_libdir_flag_spec='-L$libdir'
13278      hardcode_minus_L=yes
13279      allow_undefined_flag=unsupported
13280      shrext_cmds=.dll
13281      archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13282	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13283	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13284	$ECHO EXPORTS >> $output_objdir/$libname.def~
13285	emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
13286	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13287	emximp -o $lib $output_objdir/$libname.def'
13288      archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
13289	$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
13290	$ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
13291	$ECHO EXPORTS >> $output_objdir/$libname.def~
13292	prefix_cmds="$SED"~
13293	if test EXPORTS = "`$SED 1q $export_symbols`"; then
13294	  prefix_cmds="$prefix_cmds -e 1d";
13295	fi~
13296	prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
13297	cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
13298	$CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
13299	emximp -o $lib $output_objdir/$libname.def'
13300      old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
13301      enable_shared_with_static_runtimes=yes
13302      ;;
13303
13304    osf3*)
13305      if test yes = "$GCC"; then
13306	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13307	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'
13308      else
13309	allow_undefined_flag=' -expect_unresolved \*'
13310	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'
13311      fi
13312      archive_cmds_need_lc='no'
13313      hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13314      hardcode_libdir_separator=:
13315      ;;
13316
13317    osf4* | osf5*)	# as osf3* with the addition of -msym flag
13318      if test yes = "$GCC"; then
13319	allow_undefined_flag=' $wl-expect_unresolved $wl\*'
13320	archive_cmds='$CC -shared$allow_undefined_flag $pic_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'
13321	hardcode_libdir_flag_spec='$wl-rpath $wl$libdir'
13322      else
13323	allow_undefined_flag=' -expect_unresolved \*'
13324	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'
13325	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~
13326          $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'
13327
13328	# Both c and cxx compiler support -rpath directly
13329	hardcode_libdir_flag_spec='-rpath $libdir'
13330      fi
13331      archive_cmds_need_lc='no'
13332      hardcode_libdir_separator=:
13333      ;;
13334
13335    solaris*)
13336      no_undefined_flag=' -z defs'
13337      if test yes = "$GCC"; then
13338	wlarc='$wl'
13339	archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags'
13340	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13341          $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13342      else
13343	case `$CC -V 2>&1` in
13344	*"Compilers 5.0"*)
13345	  wlarc=''
13346	  archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags'
13347	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13348            $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13349	  ;;
13350	*)
13351	  wlarc='$wl'
13352	  archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13353	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13354            $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13355	  ;;
13356	esac
13357      fi
13358      hardcode_libdir_flag_spec='-R$libdir'
13359      hardcode_shlibpath_var=no
13360      case $host_os in
13361      solaris2.[0-5] | solaris2.[0-5].*) ;;
13362      *)
13363	# The compiler driver will combine and reorder linker options,
13364	# but understands '-z linker_flag'.  GCC discards it without '$wl',
13365	# but is careful enough not to reorder.
13366	# Supported since Solaris 2.6 (maybe 2.5.1?)
13367	if test yes = "$GCC"; then
13368	  whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
13369	else
13370	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13371	fi
13372	;;
13373      esac
13374      link_all_deplibs=yes
13375      ;;
13376
13377    sunos4*)
13378      if test sequent = "$host_vendor"; then
13379	# Use $CC to link under sequent, because it throws in some extra .o
13380	# files that make .init and .fini sections work.
13381	archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13382      else
13383	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13384      fi
13385      hardcode_libdir_flag_spec='-L$libdir'
13386      hardcode_direct=yes
13387      hardcode_minus_L=yes
13388      hardcode_shlibpath_var=no
13389      ;;
13390
13391    sysv4)
13392      case $host_vendor in
13393	sni)
13394	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13395	  hardcode_direct=yes # is this really true???
13396	;;
13397	siemens)
13398	  ## LD is ld it makes a PLAMLIB
13399	  ## CC just makes a GrossModule.
13400	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13401	  reload_cmds='$CC -r -o $output$reload_objs'
13402	  hardcode_direct=no
13403        ;;
13404	motorola)
13405	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13406	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13407	;;
13408      esac
13409      runpath_var='LD_RUN_PATH'
13410      hardcode_shlibpath_var=no
13411      ;;
13412
13413    sysv4.3*)
13414      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13415      hardcode_shlibpath_var=no
13416      export_dynamic_flag_spec='-Bexport'
13417      ;;
13418
13419    sysv4*MP*)
13420      if test -d /usr/nec; then
13421	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13422	hardcode_shlibpath_var=no
13423	runpath_var=LD_RUN_PATH
13424	hardcode_runpath_var=yes
13425	ld_shlibs=yes
13426      fi
13427      ;;
13428
13429    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13430      no_undefined_flag='$wl-z,text'
13431      archive_cmds_need_lc=no
13432      hardcode_shlibpath_var=no
13433      runpath_var='LD_RUN_PATH'
13434
13435      if test yes = "$GCC"; then
13436	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13437	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13438      else
13439	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13440	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13441      fi
13442      ;;
13443
13444    sysv5* | sco3.2v5* | sco5v6*)
13445      # Note: We CANNOT use -z defs as we might desire, because we do not
13446      # link with -lc, and that would cause any symbols used from libc to
13447      # always be unresolved, which means just about no library would
13448      # ever link correctly.  If we're not using GNU ld we use -z text
13449      # though, which does catch some bad symbols but isn't as heavy-handed
13450      # as -z defs.
13451      no_undefined_flag='$wl-z,text'
13452      allow_undefined_flag='$wl-z,nodefs'
13453      archive_cmds_need_lc=no
13454      hardcode_shlibpath_var=no
13455      hardcode_libdir_flag_spec='$wl-R,$libdir'
13456      hardcode_libdir_separator=':'
13457      link_all_deplibs=yes
13458      export_dynamic_flag_spec='$wl-Bexport'
13459      runpath_var='LD_RUN_PATH'
13460
13461      if test yes = "$GCC"; then
13462	archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13463	archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13464      else
13465	archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13466	archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13467      fi
13468      ;;
13469
13470    uts4*)
13471      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13472      hardcode_libdir_flag_spec='-L$libdir'
13473      hardcode_shlibpath_var=no
13474      ;;
13475
13476    *)
13477      ld_shlibs=no
13478      ;;
13479    esac
13480
13481    if test sni = "$host_vendor"; then
13482      case $host in
13483      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13484	export_dynamic_flag_spec='$wl-Blargedynsym'
13485	;;
13486      esac
13487    fi
13488  fi
13489
13490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13491$as_echo "$ld_shlibs" >&6; }
13492test no = "$ld_shlibs" && can_build_shared=no
13493
13494with_gnu_ld=$with_gnu_ld
13495
13496
13497
13498
13499
13500
13501
13502
13503
13504
13505
13506
13507
13508
13509
13510#
13511# Do we need to explicitly link libc?
13512#
13513case "x$archive_cmds_need_lc" in
13514x|xyes)
13515  # Assume -lc should be added
13516  archive_cmds_need_lc=yes
13517
13518  if test yes,yes = "$GCC,$enable_shared"; then
13519    case $archive_cmds in
13520    *'~'*)
13521      # FIXME: we may have to deal with multi-command sequences.
13522      ;;
13523    '$CC '*)
13524      # Test whether the compiler implicitly links with -lc since on some
13525      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13526      # to ld, don't add -lc before -lgcc.
13527      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13528$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13529if ${lt_cv_archive_cmds_need_lc+:} false; then :
13530  $as_echo_n "(cached) " >&6
13531else
13532  $RM conftest*
13533	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13534
13535	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13536  (eval $ac_compile) 2>&5
13537  ac_status=$?
13538  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13539  test $ac_status = 0; } 2>conftest.err; then
13540	  soname=conftest
13541	  lib=conftest
13542	  libobjs=conftest.$ac_objext
13543	  deplibs=
13544	  wl=$lt_prog_compiler_wl
13545	  pic_flag=$lt_prog_compiler_pic
13546	  compiler_flags=-v
13547	  linker_flags=-v
13548	  verstring=
13549	  output_objdir=.
13550	  libname=conftest
13551	  lt_save_allow_undefined_flag=$allow_undefined_flag
13552	  allow_undefined_flag=
13553	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13554  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13555  ac_status=$?
13556  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13557  test $ac_status = 0; }
13558	  then
13559	    lt_cv_archive_cmds_need_lc=no
13560	  else
13561	    lt_cv_archive_cmds_need_lc=yes
13562	  fi
13563	  allow_undefined_flag=$lt_save_allow_undefined_flag
13564	else
13565	  cat conftest.err 1>&5
13566	fi
13567	$RM conftest*
13568
13569fi
13570{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13571$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13572      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13573      ;;
13574    esac
13575  fi
13576  ;;
13577esac
13578
13579
13580
13581
13582
13583
13584
13585
13586
13587
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597
13598
13599
13600
13601
13602
13603
13604
13605
13606
13607
13608
13609
13610
13611
13612
13613
13614
13615
13616
13617
13618
13619
13620
13621
13622
13623
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633
13634
13635
13636
13637
13638
13639
13640
13641
13642
13643
13644
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660
13661
13662
13663
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673
13674
13675
13676
13677
13678
13679
13680
13681
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705
13706
13707
13708
13709
13710
13711
13712
13713
13714
13715
13716
13717
13718
13719
13720
13721
13722
13723
13724
13725
13726
13727
13728
13729
13730  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13731$as_echo_n "checking dynamic linker characteristics... " >&6; }
13732
13733if test yes = "$GCC"; then
13734  case $host_os in
13735    darwin*) lt_awk_arg='/^libraries:/,/LR/' ;;
13736    *) lt_awk_arg='/^libraries:/' ;;
13737  esac
13738  case $host_os in
13739    mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;;
13740    *) lt_sed_strip_eq='s|=/|/|g' ;;
13741  esac
13742  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13743  case $lt_search_path_spec in
13744  *\;*)
13745    # if the path contains ";" then we assume it to be the separator
13746    # otherwise default to the standard path separator (i.e. ":") - it is
13747    # assumed that no part of a normal pathname contains ";" but that should
13748    # okay in the real world where ";" in dirpaths is itself problematic.
13749    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13750    ;;
13751  *)
13752    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13753    ;;
13754  esac
13755  # Ok, now we have the path, separated by spaces, we can step through it
13756  # and add multilib dir if necessary...
13757  lt_tmp_lt_search_path_spec=
13758  lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13759  # ...but if some path component already ends with the multilib dir we assume
13760  # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer).
13761  case "$lt_multi_os_dir; $lt_search_path_spec " in
13762  "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*)
13763    lt_multi_os_dir=
13764    ;;
13765  esac
13766  for lt_sys_path in $lt_search_path_spec; do
13767    if test -d "$lt_sys_path$lt_multi_os_dir"; then
13768      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir"
13769    elif test -n "$lt_multi_os_dir"; then
13770      test -d "$lt_sys_path" && \
13771	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13772    fi
13773  done
13774  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13775BEGIN {RS = " "; FS = "/|\n";} {
13776  lt_foo = "";
13777  lt_count = 0;
13778  for (lt_i = NF; lt_i > 0; lt_i--) {
13779    if ($lt_i != "" && $lt_i != ".") {
13780      if ($lt_i == "..") {
13781        lt_count++;
13782      } else {
13783        if (lt_count == 0) {
13784          lt_foo = "/" $lt_i lt_foo;
13785        } else {
13786          lt_count--;
13787        }
13788      }
13789    }
13790  }
13791  if (lt_foo != "") { lt_freq[lt_foo]++; }
13792  if (lt_freq[lt_foo] == 1) { print lt_foo; }
13793}'`
13794  # AWK program above erroneously prepends '/' to C:/dos/paths
13795  # for these hosts.
13796  case $host_os in
13797    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13798      $SED 's|/\([A-Za-z]:\)|\1|g'` ;;
13799  esac
13800  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13801else
13802  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13803fi
13804library_names_spec=
13805libname_spec='lib$name'
13806soname_spec=
13807shrext_cmds=.so
13808postinstall_cmds=
13809postuninstall_cmds=
13810finish_cmds=
13811finish_eval=
13812shlibpath_var=
13813shlibpath_overrides_runpath=unknown
13814version_type=none
13815dynamic_linker="$host_os ld.so"
13816sys_lib_dlsearch_path_spec="/lib /usr/lib"
13817need_lib_prefix=unknown
13818hardcode_into_libs=no
13819
13820# when you set need_version to no, make sure it does not cause -set_version
13821# flags to be left without arguments
13822need_version=unknown
13823
13824
13825
13826case $host_os in
13827aix3*)
13828  version_type=linux # correct to gnu/linux during the next big refactor
13829  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
13830  shlibpath_var=LIBPATH
13831
13832  # AIX 3 has no versioning support, so we append a major version to the name.
13833  soname_spec='$libname$release$shared_ext$major'
13834  ;;
13835
13836aix[4-9]*)
13837  version_type=linux # correct to gnu/linux during the next big refactor
13838  need_lib_prefix=no
13839  need_version=no
13840  hardcode_into_libs=yes
13841  if test ia64 = "$host_cpu"; then
13842    # AIX 5 supports IA64
13843    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
13844    shlibpath_var=LD_LIBRARY_PATH
13845  else
13846    # With GCC up to 2.95.x, collect2 would create an import file
13847    # for dependence libraries.  The import file would start with
13848    # the line '#! .'.  This would cause the generated library to
13849    # depend on '.', always an invalid library.  This was fixed in
13850    # development snapshots of GCC prior to 3.0.
13851    case $host_os in
13852      aix4 | aix4.[01] | aix4.[01].*)
13853      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13854	   echo ' yes '
13855	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
13856	:
13857      else
13858	can_build_shared=no
13859      fi
13860      ;;
13861    esac
13862    # Using Import Files as archive members, it is possible to support
13863    # filename-based versioning of shared library archives on AIX. While
13864    # this would work for both with and without runtime linking, it will
13865    # prevent static linking of such archives. So we do filename-based
13866    # shared library versioning with .so extension only, which is used
13867    # when both runtime linking and shared linking is enabled.
13868    # Unfortunately, runtime linking may impact performance, so we do
13869    # not want this to be the default eventually. Also, we use the
13870    # versioned .so libs for executables only if there is the -brtl
13871    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
13872    # To allow for filename-based versioning support, we need to create
13873    # libNAME.so.V as an archive file, containing:
13874    # *) an Import File, referring to the versioned filename of the
13875    #    archive as well as the shared archive member, telling the
13876    #    bitwidth (32 or 64) of that shared object, and providing the
13877    #    list of exported symbols of that shared object, eventually
13878    #    decorated with the 'weak' keyword
13879    # *) the shared object with the F_LOADONLY flag set, to really avoid
13880    #    it being seen by the linker.
13881    # At run time we better use the real file rather than another symlink,
13882    # but for link time we create the symlink libNAME.so -> libNAME.so.V
13883
13884    case $with_aix_soname,$aix_use_runtimelinking in
13885    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
13886    # soname into executable. Probably we can add versioning support to
13887    # collect2, so additional links can be useful in future.
13888    aix,yes) # traditional libtool
13889      dynamic_linker='AIX unversionable lib.so'
13890      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13891      # instead of lib<name>.a to let people know that these are not
13892      # typical AIX shared libraries.
13893      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13894      ;;
13895    aix,no) # traditional AIX only
13896      dynamic_linker='AIX lib.a(lib.so.V)'
13897      # We preserve .a as extension for shared libraries through AIX4.2
13898      # and later when we are not doing run time linking.
13899      library_names_spec='$libname$release.a $libname.a'
13900      soname_spec='$libname$release$shared_ext$major'
13901      ;;
13902    svr4,*) # full svr4 only
13903      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
13904      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13905      # We do not specify a path in Import Files, so LIBPATH fires.
13906      shlibpath_overrides_runpath=yes
13907      ;;
13908    *,yes) # both, prefer svr4
13909      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
13910      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
13911      # unpreferred sharedlib libNAME.a needs extra handling
13912      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
13913      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
13914      # We do not specify a path in Import Files, so LIBPATH fires.
13915      shlibpath_overrides_runpath=yes
13916      ;;
13917    *,no) # both, prefer aix
13918      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
13919      library_names_spec='$libname$release.a $libname.a'
13920      soname_spec='$libname$release$shared_ext$major'
13921      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
13922      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
13923      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
13924      ;;
13925    esac
13926    shlibpath_var=LIBPATH
13927  fi
13928  ;;
13929
13930amigaos*)
13931  case $host_cpu in
13932  powerpc)
13933    # Since July 2007 AmigaOS4 officially supports .so libraries.
13934    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13935    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13936    ;;
13937  m68k)
13938    library_names_spec='$libname.ixlibrary $libname.a'
13939    # Create ${libname}_ixlibrary.a entries in /sys/libs.
13940    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
13941    ;;
13942  esac
13943  ;;
13944
13945beos*)
13946  library_names_spec='$libname$shared_ext'
13947  dynamic_linker="$host_os ld.so"
13948  shlibpath_var=LIBRARY_PATH
13949  ;;
13950
13951bsdi[45]*)
13952  version_type=linux # correct to gnu/linux during the next big refactor
13953  need_version=no
13954  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
13955  soname_spec='$libname$release$shared_ext$major'
13956  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13957  shlibpath_var=LD_LIBRARY_PATH
13958  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13959  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13960  # the default ld.so.conf also contains /usr/contrib/lib and
13961  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13962  # libtool to hard-code these into programs
13963  ;;
13964
13965cygwin* | mingw* | pw32* | cegcc*)
13966  version_type=windows
13967  shrext_cmds=.dll
13968  need_version=no
13969  need_lib_prefix=no
13970
13971  case $GCC,$cc_basename in
13972  yes,*)
13973    # gcc
13974    library_names_spec='$libname.dll.a'
13975    # DLL is installed to $(libdir)/../bin by postinstall_cmds
13976    postinstall_cmds='base_file=`basename \$file`~
13977      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
13978      dldir=$destdir/`dirname \$dlpath`~
13979      test -d \$dldir || mkdir -p \$dldir~
13980      $install_prog $dir/$dlname \$dldir/$dlname~
13981      chmod a+x \$dldir/$dlname~
13982      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13983        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13984      fi'
13985    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13986      dlpath=$dir/\$dldll~
13987       $RM \$dlpath'
13988    shlibpath_overrides_runpath=yes
13989
13990    case $host_os in
13991    cygwin*)
13992      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13993      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
13994
13995      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13996      ;;
13997    mingw* | cegcc*)
13998      # MinGW DLLs use traditional 'lib' prefix
13999      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14000      ;;
14001    pw32*)
14002      # pw32 DLLs use 'pw' prefix rather than 'lib'
14003      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14004      ;;
14005    esac
14006    dynamic_linker='Win32 ld.exe'
14007    ;;
14008
14009  *,cl*)
14010    # Native MSVC
14011    libname_spec='$name'
14012    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
14013    library_names_spec='$libname.dll.lib'
14014
14015    case $build_os in
14016    mingw*)
14017      sys_lib_search_path_spec=
14018      lt_save_ifs=$IFS
14019      IFS=';'
14020      for lt_path in $LIB
14021      do
14022        IFS=$lt_save_ifs
14023        # Let DOS variable expansion print the short 8.3 style file name.
14024        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
14025        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
14026      done
14027      IFS=$lt_save_ifs
14028      # Convert to MSYS style.
14029      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
14030      ;;
14031    cygwin*)
14032      # Convert to unix form, then to dos form, then back to unix form
14033      # but this time dos style (no spaces!) so that the unix form looks
14034      # like /cygdrive/c/PROGRA~1:/cygdr...
14035      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
14036      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
14037      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14038      ;;
14039    *)
14040      sys_lib_search_path_spec=$LIB
14041      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
14042        # It is most probably a Windows format PATH.
14043        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
14044      else
14045        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
14046      fi
14047      # FIXME: find the short name or the path components, as spaces are
14048      # common. (e.g. "Program Files" -> "PROGRA~1")
14049      ;;
14050    esac
14051
14052    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14053    postinstall_cmds='base_file=`basename \$file`~
14054      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
14055      dldir=$destdir/`dirname \$dlpath`~
14056      test -d \$dldir || mkdir -p \$dldir~
14057      $install_prog $dir/$dlname \$dldir/$dlname'
14058    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14059      dlpath=$dir/\$dldll~
14060       $RM \$dlpath'
14061    shlibpath_overrides_runpath=yes
14062    dynamic_linker='Win32 link.exe'
14063    ;;
14064
14065  *)
14066    # Assume MSVC wrapper
14067    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
14068    dynamic_linker='Win32 ld.exe'
14069    ;;
14070  esac
14071  # FIXME: first we should search . and the directory the executable is in
14072  shlibpath_var=PATH
14073  ;;
14074
14075darwin* | rhapsody*)
14076  dynamic_linker="$host_os dyld"
14077  version_type=darwin
14078  need_lib_prefix=no
14079  need_version=no
14080  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
14081  soname_spec='$libname$release$major$shared_ext'
14082  shlibpath_overrides_runpath=yes
14083  shlibpath_var=DYLD_LIBRARY_PATH
14084  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14085
14086  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
14087  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14088  ;;
14089
14090dgux*)
14091  version_type=linux # correct to gnu/linux during the next big refactor
14092  need_lib_prefix=no
14093  need_version=no
14094  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14095  soname_spec='$libname$release$shared_ext$major'
14096  shlibpath_var=LD_LIBRARY_PATH
14097  ;;
14098
14099freebsd* | dragonfly*)
14100  # DragonFly does not have aout.  When/if they implement a new
14101  # versioning mechanism, adjust this.
14102  if test -x /usr/bin/objformat; then
14103    objformat=`/usr/bin/objformat`
14104  else
14105    case $host_os in
14106    freebsd[23].*) objformat=aout ;;
14107    *) objformat=elf ;;
14108    esac
14109  fi
14110  version_type=freebsd-$objformat
14111  case $version_type in
14112    freebsd-elf*)
14113      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14114      soname_spec='$libname$release$shared_ext$major'
14115      need_version=no
14116      need_lib_prefix=no
14117      ;;
14118    freebsd-*)
14119      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14120      need_version=yes
14121      ;;
14122  esac
14123  shlibpath_var=LD_LIBRARY_PATH
14124  case $host_os in
14125  freebsd2.*)
14126    shlibpath_overrides_runpath=yes
14127    ;;
14128  freebsd3.[01]* | freebsdelf3.[01]*)
14129    shlibpath_overrides_runpath=yes
14130    hardcode_into_libs=yes
14131    ;;
14132  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14133  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14134    shlibpath_overrides_runpath=no
14135    hardcode_into_libs=yes
14136    ;;
14137  *) # from 4.6 on, and DragonFly
14138    shlibpath_overrides_runpath=yes
14139    hardcode_into_libs=yes
14140    ;;
14141  esac
14142  ;;
14143
14144haiku*)
14145  version_type=linux # correct to gnu/linux during the next big refactor
14146  need_lib_prefix=no
14147  need_version=no
14148  dynamic_linker="$host_os runtime_loader"
14149  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14150  soname_spec='$libname$release$shared_ext$major'
14151  shlibpath_var=LIBRARY_PATH
14152  shlibpath_overrides_runpath=no
14153  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14154  hardcode_into_libs=yes
14155  ;;
14156
14157hpux9* | hpux10* | hpux11*)
14158  # Give a soname corresponding to the major version so that dld.sl refuses to
14159  # link against other versions.
14160  version_type=sunos
14161  need_lib_prefix=no
14162  need_version=no
14163  case $host_cpu in
14164  ia64*)
14165    shrext_cmds='.so'
14166    hardcode_into_libs=yes
14167    dynamic_linker="$host_os dld.so"
14168    shlibpath_var=LD_LIBRARY_PATH
14169    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14170    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14171    soname_spec='$libname$release$shared_ext$major'
14172    if test 32 = "$HPUX_IA64_MODE"; then
14173      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14174      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
14175    else
14176      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14177      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
14178    fi
14179    ;;
14180  hppa*64*)
14181    shrext_cmds='.sl'
14182    hardcode_into_libs=yes
14183    dynamic_linker="$host_os dld.sl"
14184    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14185    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14186    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14187    soname_spec='$libname$release$shared_ext$major'
14188    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14189    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14190    ;;
14191  *)
14192    shrext_cmds='.sl'
14193    dynamic_linker="$host_os dld.sl"
14194    shlibpath_var=SHLIB_PATH
14195    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14196    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14197    soname_spec='$libname$release$shared_ext$major'
14198    ;;
14199  esac
14200  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14201  postinstall_cmds='chmod 555 $lib'
14202  # or fails outright, so override atomically:
14203  install_override_mode=555
14204  ;;
14205
14206interix[3-9]*)
14207  version_type=linux # correct to gnu/linux during the next big refactor
14208  need_lib_prefix=no
14209  need_version=no
14210  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14211  soname_spec='$libname$release$shared_ext$major'
14212  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14213  shlibpath_var=LD_LIBRARY_PATH
14214  shlibpath_overrides_runpath=no
14215  hardcode_into_libs=yes
14216  ;;
14217
14218irix5* | irix6* | nonstopux*)
14219  case $host_os in
14220    nonstopux*) version_type=nonstopux ;;
14221    *)
14222	if test yes = "$lt_cv_prog_gnu_ld"; then
14223		version_type=linux # correct to gnu/linux during the next big refactor
14224	else
14225		version_type=irix
14226	fi ;;
14227  esac
14228  need_lib_prefix=no
14229  need_version=no
14230  soname_spec='$libname$release$shared_ext$major'
14231  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
14232  case $host_os in
14233  irix5* | nonstopux*)
14234    libsuff= shlibsuff=
14235    ;;
14236  *)
14237    case $LD in # libtool.m4 will add one of these switches to LD
14238    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14239      libsuff= shlibsuff= libmagic=32-bit;;
14240    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14241      libsuff=32 shlibsuff=N32 libmagic=N32;;
14242    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14243      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14244    *) libsuff= shlibsuff= libmagic=never-match;;
14245    esac
14246    ;;
14247  esac
14248  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14249  shlibpath_overrides_runpath=no
14250  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
14251  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
14252  hardcode_into_libs=yes
14253  ;;
14254
14255# No shared lib support for Linux oldld, aout, or coff.
14256linux*oldld* | linux*aout* | linux*coff*)
14257  dynamic_linker=no
14258  ;;
14259
14260linux*android*)
14261  version_type=none # Android doesn't support versioned libraries.
14262  need_lib_prefix=no
14263  need_version=no
14264  library_names_spec='$libname$release$shared_ext'
14265  soname_spec='$libname$release$shared_ext'
14266  finish_cmds=
14267  shlibpath_var=LD_LIBRARY_PATH
14268  shlibpath_overrides_runpath=yes
14269
14270  # This implies no fast_install, which is unacceptable.
14271  # Some rework will be needed to allow for fast_install
14272  # before this can be enabled.
14273  hardcode_into_libs=yes
14274
14275  dynamic_linker='Android linker'
14276  # Don't embed -rpath directories since the linker doesn't support them.
14277  hardcode_libdir_flag_spec='-L$libdir'
14278  ;;
14279
14280# This must be glibc/ELF.
14281linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
14282  version_type=linux # correct to gnu/linux during the next big refactor
14283  need_lib_prefix=no
14284  need_version=no
14285  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14286  soname_spec='$libname$release$shared_ext$major'
14287  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14288  shlibpath_var=LD_LIBRARY_PATH
14289  shlibpath_overrides_runpath=no
14290
14291  # Some binutils ld are patched to set DT_RUNPATH
14292  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
14293  $as_echo_n "(cached) " >&6
14294else
14295  lt_cv_shlibpath_overrides_runpath=no
14296    save_LDFLAGS=$LDFLAGS
14297    save_libdir=$libdir
14298    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
14299	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
14300    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14301/* end confdefs.h.  */
14302
14303int
14304main ()
14305{
14306
14307  ;
14308  return 0;
14309}
14310_ACEOF
14311if ac_fn_c_try_link "$LINENO"; then :
14312  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14313  lt_cv_shlibpath_overrides_runpath=yes
14314fi
14315fi
14316rm -f core conftest.err conftest.$ac_objext \
14317    conftest$ac_exeext conftest.$ac_ext
14318    LDFLAGS=$save_LDFLAGS
14319    libdir=$save_libdir
14320
14321fi
14322
14323  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14324
14325  # This implies no fast_install, which is unacceptable.
14326  # Some rework will be needed to allow for fast_install
14327  # before this can be enabled.
14328  hardcode_into_libs=yes
14329
14330  # Ideally, we could use ldconfig to report *all* directores which are
14331  # searched for libraries, however this is still not possible.  Aside from not
14332  # being certain /sbin/ldconfig is available, command
14333  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
14334  # even though it is searched at run-time.  Try to do the best guess by
14335  # appending ld.so.conf contents (and includes) to the search path.
14336  if test -f /etc/ld.so.conf; then
14337    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' ' '`
14338    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
14339  fi
14340
14341  # We used to test for /lib/ld.so.1 and disable shared libraries on
14342  # powerpc, because MkLinux only supported shared libraries with the
14343  # GNU dynamic linker.  Since this was broken with cross compilers,
14344  # most powerpc-linux boxes support dynamic linking these days and
14345  # people can always --disable-shared, the test was removed, and we
14346  # assume the GNU/Linux dynamic linker is in use.
14347  dynamic_linker='GNU/Linux ld.so'
14348  ;;
14349
14350netbsdelf*-gnu)
14351  version_type=linux
14352  need_lib_prefix=no
14353  need_version=no
14354  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14355  soname_spec='${libname}${release}${shared_ext}$major'
14356  shlibpath_var=LD_LIBRARY_PATH
14357  shlibpath_overrides_runpath=no
14358  hardcode_into_libs=yes
14359  dynamic_linker='NetBSD ld.elf_so'
14360  ;;
14361
14362netbsd*)
14363  version_type=sunos
14364  need_lib_prefix=no
14365  need_version=no
14366  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14367    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14368    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14369    dynamic_linker='NetBSD (a.out) ld.so'
14370  else
14371    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14372    soname_spec='$libname$release$shared_ext$major'
14373    dynamic_linker='NetBSD ld.elf_so'
14374  fi
14375  shlibpath_var=LD_LIBRARY_PATH
14376  shlibpath_overrides_runpath=yes
14377  hardcode_into_libs=yes
14378  ;;
14379
14380newsos6)
14381  version_type=linux # correct to gnu/linux during the next big refactor
14382  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14383  shlibpath_var=LD_LIBRARY_PATH
14384  shlibpath_overrides_runpath=yes
14385  ;;
14386
14387*nto* | *qnx*)
14388  version_type=qnx
14389  need_lib_prefix=no
14390  need_version=no
14391  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14392  soname_spec='$libname$release$shared_ext$major'
14393  shlibpath_var=LD_LIBRARY_PATH
14394  shlibpath_overrides_runpath=no
14395  hardcode_into_libs=yes
14396  dynamic_linker='ldqnx.so'
14397  ;;
14398
14399openbsd* | bitrig*)
14400  version_type=sunos
14401  sys_lib_dlsearch_path_spec=/usr/lib
14402  need_lib_prefix=no
14403  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
14404    need_version=no
14405  else
14406    need_version=yes
14407  fi
14408  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14409  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14410  shlibpath_var=LD_LIBRARY_PATH
14411  shlibpath_overrides_runpath=yes
14412  ;;
14413
14414os2*)
14415  libname_spec='$name'
14416  version_type=windows
14417  shrext_cmds=.dll
14418  need_version=no
14419  need_lib_prefix=no
14420  # OS/2 can only load a DLL with a base name of 8 characters or less.
14421  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
14422    v=$($ECHO $release$versuffix | tr -d .-);
14423    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
14424    $ECHO $n$v`$shared_ext'
14425  library_names_spec='${libname}_dll.$libext'
14426  dynamic_linker='OS/2 ld.exe'
14427  shlibpath_var=BEGINLIBPATH
14428  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
14429  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14430  postinstall_cmds='base_file=`basename \$file`~
14431    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
14432    dldir=$destdir/`dirname \$dlpath`~
14433    test -d \$dldir || mkdir -p \$dldir~
14434    $install_prog $dir/$dlname \$dldir/$dlname~
14435    chmod a+x \$dldir/$dlname~
14436    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14437      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14438    fi'
14439  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
14440    dlpath=$dir/\$dldll~
14441    $RM \$dlpath'
14442  ;;
14443
14444osf3* | osf4* | osf5*)
14445  version_type=osf
14446  need_lib_prefix=no
14447  need_version=no
14448  soname_spec='$libname$release$shared_ext$major'
14449  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14450  shlibpath_var=LD_LIBRARY_PATH
14451  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14452  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14453  ;;
14454
14455rdos*)
14456  dynamic_linker=no
14457  ;;
14458
14459solaris*)
14460  version_type=linux # correct to gnu/linux during the next big refactor
14461  need_lib_prefix=no
14462  need_version=no
14463  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14464  soname_spec='$libname$release$shared_ext$major'
14465  shlibpath_var=LD_LIBRARY_PATH
14466  shlibpath_overrides_runpath=yes
14467  hardcode_into_libs=yes
14468  # ldd complains unless libraries are executable
14469  postinstall_cmds='chmod +x $lib'
14470  ;;
14471
14472sunos4*)
14473  version_type=sunos
14474  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
14475  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14476  shlibpath_var=LD_LIBRARY_PATH
14477  shlibpath_overrides_runpath=yes
14478  if test yes = "$with_gnu_ld"; then
14479    need_lib_prefix=no
14480  fi
14481  need_version=yes
14482  ;;
14483
14484sysv4 | sysv4.3*)
14485  version_type=linux # correct to gnu/linux during the next big refactor
14486  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14487  soname_spec='$libname$release$shared_ext$major'
14488  shlibpath_var=LD_LIBRARY_PATH
14489  case $host_vendor in
14490    sni)
14491      shlibpath_overrides_runpath=no
14492      need_lib_prefix=no
14493      runpath_var=LD_RUN_PATH
14494      ;;
14495    siemens)
14496      need_lib_prefix=no
14497      ;;
14498    motorola)
14499      need_lib_prefix=no
14500      need_version=no
14501      shlibpath_overrides_runpath=no
14502      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14503      ;;
14504  esac
14505  ;;
14506
14507sysv4*MP*)
14508  if test -d /usr/nec; then
14509    version_type=linux # correct to gnu/linux during the next big refactor
14510    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
14511    soname_spec='$libname$shared_ext.$major'
14512    shlibpath_var=LD_LIBRARY_PATH
14513  fi
14514  ;;
14515
14516sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14517  version_type=sco
14518  need_lib_prefix=no
14519  need_version=no
14520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
14521  soname_spec='$libname$release$shared_ext$major'
14522  shlibpath_var=LD_LIBRARY_PATH
14523  shlibpath_overrides_runpath=yes
14524  hardcode_into_libs=yes
14525  if test yes = "$with_gnu_ld"; then
14526    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14527  else
14528    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14529    case $host_os in
14530      sco3.2v5*)
14531        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14532	;;
14533    esac
14534  fi
14535  sys_lib_dlsearch_path_spec='/usr/lib'
14536  ;;
14537
14538tpf*)
14539  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14540  version_type=linux # correct to gnu/linux during the next big refactor
14541  need_lib_prefix=no
14542  need_version=no
14543  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14544  shlibpath_var=LD_LIBRARY_PATH
14545  shlibpath_overrides_runpath=no
14546  hardcode_into_libs=yes
14547  ;;
14548
14549uts4*)
14550  version_type=linux # correct to gnu/linux during the next big refactor
14551  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
14552  soname_spec='$libname$release$shared_ext$major'
14553  shlibpath_var=LD_LIBRARY_PATH
14554  ;;
14555
14556*)
14557  dynamic_linker=no
14558  ;;
14559esac
14560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14561$as_echo "$dynamic_linker" >&6; }
14562test no = "$dynamic_linker" && can_build_shared=no
14563
14564variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14565if test yes = "$GCC"; then
14566  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14567fi
14568
14569if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
14570  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
14571fi
14572
14573if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
14574  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
14575fi
14576
14577# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
14578configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
14579
14580# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
14581func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
14582
14583# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
14584configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638
14639
14640
14641
14642
14643
14644
14645
14646
14647
14648
14649
14650
14651
14652
14653
14654
14655
14656
14657
14658
14659
14660
14661
14662
14663
14664
14665
14666
14667
14668
14669
14670
14671
14672
14673
14674
14675
14676
14677
14678
14679
14680
14681
14682  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14683$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14684hardcode_action=
14685if test -n "$hardcode_libdir_flag_spec" ||
14686   test -n "$runpath_var" ||
14687   test yes = "$hardcode_automatic"; then
14688
14689  # We can hardcode non-existent directories.
14690  if test no != "$hardcode_direct" &&
14691     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14692     # have to relink, otherwise we might link with an installed library
14693     # when we should be linking with a yet-to-be-installed one
14694     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" &&
14695     test no != "$hardcode_minus_L"; then
14696    # Linking always hardcodes the temporary library directory.
14697    hardcode_action=relink
14698  else
14699    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14700    hardcode_action=immediate
14701  fi
14702else
14703  # We cannot hardcode anything, or else we can only hardcode existing
14704  # directories.
14705  hardcode_action=unsupported
14706fi
14707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14708$as_echo "$hardcode_action" >&6; }
14709
14710if test relink = "$hardcode_action" ||
14711   test yes = "$inherit_rpath"; then
14712  # Fast installation is not supported
14713  enable_fast_install=no
14714elif test yes = "$shlibpath_overrides_runpath" ||
14715     test no = "$enable_shared"; then
14716  # Fast installation is not necessary
14717  enable_fast_install=needless
14718fi
14719
14720
14721
14722
14723
14724
14725  if test yes != "$enable_dlopen"; then
14726  enable_dlopen=unknown
14727  enable_dlopen_self=unknown
14728  enable_dlopen_self_static=unknown
14729else
14730  lt_cv_dlopen=no
14731  lt_cv_dlopen_libs=
14732
14733  case $host_os in
14734  beos*)
14735    lt_cv_dlopen=load_add_on
14736    lt_cv_dlopen_libs=
14737    lt_cv_dlopen_self=yes
14738    ;;
14739
14740  mingw* | pw32* | cegcc*)
14741    lt_cv_dlopen=LoadLibrary
14742    lt_cv_dlopen_libs=
14743    ;;
14744
14745  cygwin*)
14746    lt_cv_dlopen=dlopen
14747    lt_cv_dlopen_libs=
14748    ;;
14749
14750  darwin*)
14751    # if libdl is installed we need to link against it
14752    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14753$as_echo_n "checking for dlopen in -ldl... " >&6; }
14754if ${ac_cv_lib_dl_dlopen+:} false; then :
14755  $as_echo_n "(cached) " >&6
14756else
14757  ac_check_lib_save_LIBS=$LIBS
14758LIBS="-ldl  $LIBS"
14759cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14760/* end confdefs.h.  */
14761
14762/* Override any GCC internal prototype to avoid an error.
14763   Use char because int might match the return type of a GCC
14764   builtin and then its argument prototype would still apply.  */
14765#ifdef __cplusplus
14766extern "C"
14767#endif
14768char dlopen ();
14769int
14770main ()
14771{
14772return dlopen ();
14773  ;
14774  return 0;
14775}
14776_ACEOF
14777if ac_fn_c_try_link "$LINENO"; then :
14778  ac_cv_lib_dl_dlopen=yes
14779else
14780  ac_cv_lib_dl_dlopen=no
14781fi
14782rm -f core conftest.err conftest.$ac_objext \
14783    conftest$ac_exeext conftest.$ac_ext
14784LIBS=$ac_check_lib_save_LIBS
14785fi
14786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14787$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14788if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14789  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14790else
14791
14792    lt_cv_dlopen=dyld
14793    lt_cv_dlopen_libs=
14794    lt_cv_dlopen_self=yes
14795
14796fi
14797
14798    ;;
14799
14800  tpf*)
14801    # Don't try to run any link tests for TPF.  We know it's impossible
14802    # because TPF is a cross-compiler, and we know how we open DSOs.
14803    lt_cv_dlopen=dlopen
14804    lt_cv_dlopen_libs=
14805    lt_cv_dlopen_self=no
14806    ;;
14807
14808  *)
14809    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14810if test "x$ac_cv_func_shl_load" = xyes; then :
14811  lt_cv_dlopen=shl_load
14812else
14813  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14814$as_echo_n "checking for shl_load in -ldld... " >&6; }
14815if ${ac_cv_lib_dld_shl_load+:} false; then :
14816  $as_echo_n "(cached) " >&6
14817else
14818  ac_check_lib_save_LIBS=$LIBS
14819LIBS="-ldld  $LIBS"
14820cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14821/* end confdefs.h.  */
14822
14823/* Override any GCC internal prototype to avoid an error.
14824   Use char because int might match the return type of a GCC
14825   builtin and then its argument prototype would still apply.  */
14826#ifdef __cplusplus
14827extern "C"
14828#endif
14829char shl_load ();
14830int
14831main ()
14832{
14833return shl_load ();
14834  ;
14835  return 0;
14836}
14837_ACEOF
14838if ac_fn_c_try_link "$LINENO"; then :
14839  ac_cv_lib_dld_shl_load=yes
14840else
14841  ac_cv_lib_dld_shl_load=no
14842fi
14843rm -f core conftest.err conftest.$ac_objext \
14844    conftest$ac_exeext conftest.$ac_ext
14845LIBS=$ac_check_lib_save_LIBS
14846fi
14847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14848$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14849if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14850  lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld
14851else
14852  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14853if test "x$ac_cv_func_dlopen" = xyes; then :
14854  lt_cv_dlopen=dlopen
14855else
14856  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14857$as_echo_n "checking for dlopen in -ldl... " >&6; }
14858if ${ac_cv_lib_dl_dlopen+:} false; then :
14859  $as_echo_n "(cached) " >&6
14860else
14861  ac_check_lib_save_LIBS=$LIBS
14862LIBS="-ldl  $LIBS"
14863cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864/* end confdefs.h.  */
14865
14866/* Override any GCC internal prototype to avoid an error.
14867   Use char because int might match the return type of a GCC
14868   builtin and then its argument prototype would still apply.  */
14869#ifdef __cplusplus
14870extern "C"
14871#endif
14872char dlopen ();
14873int
14874main ()
14875{
14876return dlopen ();
14877  ;
14878  return 0;
14879}
14880_ACEOF
14881if ac_fn_c_try_link "$LINENO"; then :
14882  ac_cv_lib_dl_dlopen=yes
14883else
14884  ac_cv_lib_dl_dlopen=no
14885fi
14886rm -f core conftest.err conftest.$ac_objext \
14887    conftest$ac_exeext conftest.$ac_ext
14888LIBS=$ac_check_lib_save_LIBS
14889fi
14890{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14891$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14892if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14893  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl
14894else
14895  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14896$as_echo_n "checking for dlopen in -lsvld... " >&6; }
14897if ${ac_cv_lib_svld_dlopen+:} false; then :
14898  $as_echo_n "(cached) " >&6
14899else
14900  ac_check_lib_save_LIBS=$LIBS
14901LIBS="-lsvld  $LIBS"
14902cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14903/* end confdefs.h.  */
14904
14905/* Override any GCC internal prototype to avoid an error.
14906   Use char because int might match the return type of a GCC
14907   builtin and then its argument prototype would still apply.  */
14908#ifdef __cplusplus
14909extern "C"
14910#endif
14911char dlopen ();
14912int
14913main ()
14914{
14915return dlopen ();
14916  ;
14917  return 0;
14918}
14919_ACEOF
14920if ac_fn_c_try_link "$LINENO"; then :
14921  ac_cv_lib_svld_dlopen=yes
14922else
14923  ac_cv_lib_svld_dlopen=no
14924fi
14925rm -f core conftest.err conftest.$ac_objext \
14926    conftest$ac_exeext conftest.$ac_ext
14927LIBS=$ac_check_lib_save_LIBS
14928fi
14929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14930$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14931if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14932  lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld
14933else
14934  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14935$as_echo_n "checking for dld_link in -ldld... " >&6; }
14936if ${ac_cv_lib_dld_dld_link+:} false; then :
14937  $as_echo_n "(cached) " >&6
14938else
14939  ac_check_lib_save_LIBS=$LIBS
14940LIBS="-ldld  $LIBS"
14941cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14942/* end confdefs.h.  */
14943
14944/* Override any GCC internal prototype to avoid an error.
14945   Use char because int might match the return type of a GCC
14946   builtin and then its argument prototype would still apply.  */
14947#ifdef __cplusplus
14948extern "C"
14949#endif
14950char dld_link ();
14951int
14952main ()
14953{
14954return dld_link ();
14955  ;
14956  return 0;
14957}
14958_ACEOF
14959if ac_fn_c_try_link "$LINENO"; then :
14960  ac_cv_lib_dld_dld_link=yes
14961else
14962  ac_cv_lib_dld_dld_link=no
14963fi
14964rm -f core conftest.err conftest.$ac_objext \
14965    conftest$ac_exeext conftest.$ac_ext
14966LIBS=$ac_check_lib_save_LIBS
14967fi
14968{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14969$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14970if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14971  lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld
14972fi
14973
14974
14975fi
14976
14977
14978fi
14979
14980
14981fi
14982
14983
14984fi
14985
14986
14987fi
14988
14989    ;;
14990  esac
14991
14992  if test no = "$lt_cv_dlopen"; then
14993    enable_dlopen=no
14994  else
14995    enable_dlopen=yes
14996  fi
14997
14998  case $lt_cv_dlopen in
14999  dlopen)
15000    save_CPPFLAGS=$CPPFLAGS
15001    test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
15002
15003    save_LDFLAGS=$LDFLAGS
15004    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
15005
15006    save_LIBS=$LIBS
15007    LIBS="$lt_cv_dlopen_libs $LIBS"
15008
15009    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
15010$as_echo_n "checking whether a program can dlopen itself... " >&6; }
15011if ${lt_cv_dlopen_self+:} false; then :
15012  $as_echo_n "(cached) " >&6
15013else
15014  	  if test yes = "$cross_compiling"; then :
15015  lt_cv_dlopen_self=cross
15016else
15017  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15018  lt_status=$lt_dlunknown
15019  cat > conftest.$ac_ext <<_LT_EOF
15020#line $LINENO "configure"
15021#include "confdefs.h"
15022
15023#if HAVE_DLFCN_H
15024#include <dlfcn.h>
15025#endif
15026
15027#include <stdio.h>
15028
15029#ifdef RTLD_GLOBAL
15030#  define LT_DLGLOBAL		RTLD_GLOBAL
15031#else
15032#  ifdef DL_GLOBAL
15033#    define LT_DLGLOBAL		DL_GLOBAL
15034#  else
15035#    define LT_DLGLOBAL		0
15036#  endif
15037#endif
15038
15039/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15040   find out it does not work in some platform. */
15041#ifndef LT_DLLAZY_OR_NOW
15042#  ifdef RTLD_LAZY
15043#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15044#  else
15045#    ifdef DL_LAZY
15046#      define LT_DLLAZY_OR_NOW		DL_LAZY
15047#    else
15048#      ifdef RTLD_NOW
15049#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15050#      else
15051#        ifdef DL_NOW
15052#          define LT_DLLAZY_OR_NOW	DL_NOW
15053#        else
15054#          define LT_DLLAZY_OR_NOW	0
15055#        endif
15056#      endif
15057#    endif
15058#  endif
15059#endif
15060
15061/* When -fvisibility=hidden is used, assume the code has been annotated
15062   correspondingly for the symbols needed.  */
15063#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15064int fnord () __attribute__((visibility("default")));
15065#endif
15066
15067int fnord () { return 42; }
15068int main ()
15069{
15070  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15071  int status = $lt_dlunknown;
15072
15073  if (self)
15074    {
15075      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15076      else
15077        {
15078	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15079          else puts (dlerror ());
15080	}
15081      /* dlclose (self); */
15082    }
15083  else
15084    puts (dlerror ());
15085
15086  return status;
15087}
15088_LT_EOF
15089  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15090  (eval $ac_link) 2>&5
15091  ac_status=$?
15092  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15093  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15094    (./conftest; exit; ) >&5 2>/dev/null
15095    lt_status=$?
15096    case x$lt_status in
15097      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
15098      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
15099      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
15100    esac
15101  else :
15102    # compilation failed
15103    lt_cv_dlopen_self=no
15104  fi
15105fi
15106rm -fr conftest*
15107
15108
15109fi
15110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
15111$as_echo "$lt_cv_dlopen_self" >&6; }
15112
15113    if test yes = "$lt_cv_dlopen_self"; then
15114      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
15115      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
15116$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
15117if ${lt_cv_dlopen_self_static+:} false; then :
15118  $as_echo_n "(cached) " >&6
15119else
15120  	  if test yes = "$cross_compiling"; then :
15121  lt_cv_dlopen_self_static=cross
15122else
15123  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
15124  lt_status=$lt_dlunknown
15125  cat > conftest.$ac_ext <<_LT_EOF
15126#line $LINENO "configure"
15127#include "confdefs.h"
15128
15129#if HAVE_DLFCN_H
15130#include <dlfcn.h>
15131#endif
15132
15133#include <stdio.h>
15134
15135#ifdef RTLD_GLOBAL
15136#  define LT_DLGLOBAL		RTLD_GLOBAL
15137#else
15138#  ifdef DL_GLOBAL
15139#    define LT_DLGLOBAL		DL_GLOBAL
15140#  else
15141#    define LT_DLGLOBAL		0
15142#  endif
15143#endif
15144
15145/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15146   find out it does not work in some platform. */
15147#ifndef LT_DLLAZY_OR_NOW
15148#  ifdef RTLD_LAZY
15149#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
15150#  else
15151#    ifdef DL_LAZY
15152#      define LT_DLLAZY_OR_NOW		DL_LAZY
15153#    else
15154#      ifdef RTLD_NOW
15155#        define LT_DLLAZY_OR_NOW	RTLD_NOW
15156#      else
15157#        ifdef DL_NOW
15158#          define LT_DLLAZY_OR_NOW	DL_NOW
15159#        else
15160#          define LT_DLLAZY_OR_NOW	0
15161#        endif
15162#      endif
15163#    endif
15164#  endif
15165#endif
15166
15167/* When -fvisibility=hidden is used, assume the code has been annotated
15168   correspondingly for the symbols needed.  */
15169#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
15170int fnord () __attribute__((visibility("default")));
15171#endif
15172
15173int fnord () { return 42; }
15174int main ()
15175{
15176  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15177  int status = $lt_dlunknown;
15178
15179  if (self)
15180    {
15181      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
15182      else
15183        {
15184	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
15185          else puts (dlerror ());
15186	}
15187      /* dlclose (self); */
15188    }
15189  else
15190    puts (dlerror ());
15191
15192  return status;
15193}
15194_LT_EOF
15195  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
15196  (eval $ac_link) 2>&5
15197  ac_status=$?
15198  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15199  test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then
15200    (./conftest; exit; ) >&5 2>/dev/null
15201    lt_status=$?
15202    case x$lt_status in
15203      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
15204      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
15205      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
15206    esac
15207  else :
15208    # compilation failed
15209    lt_cv_dlopen_self_static=no
15210  fi
15211fi
15212rm -fr conftest*
15213
15214
15215fi
15216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
15217$as_echo "$lt_cv_dlopen_self_static" >&6; }
15218    fi
15219
15220    CPPFLAGS=$save_CPPFLAGS
15221    LDFLAGS=$save_LDFLAGS
15222    LIBS=$save_LIBS
15223    ;;
15224  esac
15225
15226  case $lt_cv_dlopen_self in
15227  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
15228  *) enable_dlopen_self=unknown ;;
15229  esac
15230
15231  case $lt_cv_dlopen_self_static in
15232  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
15233  *) enable_dlopen_self_static=unknown ;;
15234  esac
15235fi
15236
15237
15238
15239
15240
15241
15242
15243
15244
15245
15246
15247
15248
15249
15250
15251
15252
15253striplib=
15254old_striplib=
15255{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
15256$as_echo_n "checking whether stripping libraries is possible... " >&6; }
15257if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
15258  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
15259  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
15260  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15261$as_echo "yes" >&6; }
15262else
15263# FIXME - insert some real tests, host_os isn't really good enough
15264  case $host_os in
15265  darwin*)
15266    if test -n "$STRIP"; then
15267      striplib="$STRIP -x"
15268      old_striplib="$STRIP -S"
15269      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15270$as_echo "yes" >&6; }
15271    else
15272      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15273$as_echo "no" >&6; }
15274    fi
15275    ;;
15276  *)
15277    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15278$as_echo "no" >&6; }
15279    ;;
15280  esac
15281fi
15282
15283
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294  # Report what library types will actually be built
15295  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
15296$as_echo_n "checking if libtool supports shared libraries... " >&6; }
15297  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
15298$as_echo "$can_build_shared" >&6; }
15299
15300  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
15301$as_echo_n "checking whether to build shared libraries... " >&6; }
15302  test no = "$can_build_shared" && enable_shared=no
15303
15304  # On AIX, shared libraries and static libraries use the same namespace, and
15305  # are all built from PIC.
15306  case $host_os in
15307  aix3*)
15308    test yes = "$enable_shared" && enable_static=no
15309    if test -n "$RANLIB"; then
15310      archive_cmds="$archive_cmds~\$RANLIB \$lib"
15311      postinstall_cmds='$RANLIB $lib'
15312    fi
15313    ;;
15314
15315  aix[4-9]*)
15316    if test ia64 != "$host_cpu"; then
15317      case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in
15318      yes,aix,yes) ;;			# shared object as lib.so file only
15319      yes,svr4,*) ;;			# shared object as lib.so archive member only
15320      yes,*) enable_static=no ;;	# shared object in lib.a archive as well
15321      esac
15322    fi
15323    ;;
15324  esac
15325  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
15326$as_echo "$enable_shared" >&6; }
15327
15328  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
15329$as_echo_n "checking whether to build static libraries... " >&6; }
15330  # Make sure either enable_shared or enable_static is yes.
15331  test yes = "$enable_shared" || enable_static=yes
15332  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
15333$as_echo "$enable_static" >&6; }
15334
15335
15336
15337
15338fi
15339ac_ext=cpp
15340ac_cpp='$CXXCPP $CPPFLAGS'
15341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15344
15345CC=$lt_save_CC
15346
15347      if test -n "$CXX" && ( test no != "$CXX" &&
15348    ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) ||
15349    (test g++ != "$CXX"))); then
15350  ac_ext=cpp
15351ac_cpp='$CXXCPP $CPPFLAGS'
15352ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15353ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15354ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
15356$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
15357if test -z "$CXXCPP"; then
15358  if ${ac_cv_prog_CXXCPP+:} false; then :
15359  $as_echo_n "(cached) " >&6
15360else
15361      # Double quotes because CXXCPP needs to be expanded
15362    for CXXCPP in "$CXX -E" "/lib/cpp"
15363    do
15364      ac_preproc_ok=false
15365for ac_cxx_preproc_warn_flag in '' yes
15366do
15367  # Use a header file that comes with gcc, so configuring glibc
15368  # with a fresh cross-compiler works.
15369  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15370  # <limits.h> exists even on freestanding compilers.
15371  # On the NeXT, cc -E runs the code through the compiler's parser,
15372  # not just through cpp. "Syntax error" is here to catch this case.
15373  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15374/* end confdefs.h.  */
15375#ifdef __STDC__
15376# include <limits.h>
15377#else
15378# include <assert.h>
15379#endif
15380		     Syntax error
15381_ACEOF
15382if ac_fn_cxx_try_cpp "$LINENO"; then :
15383
15384else
15385  # Broken: fails on valid input.
15386continue
15387fi
15388rm -f conftest.err conftest.i conftest.$ac_ext
15389
15390  # OK, works on sane cases.  Now check whether nonexistent headers
15391  # can be detected and how.
15392  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393/* end confdefs.h.  */
15394#include <ac_nonexistent.h>
15395_ACEOF
15396if ac_fn_cxx_try_cpp "$LINENO"; then :
15397  # Broken: success on invalid input.
15398continue
15399else
15400  # Passes both tests.
15401ac_preproc_ok=:
15402break
15403fi
15404rm -f conftest.err conftest.i conftest.$ac_ext
15405
15406done
15407# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15408rm -f conftest.i conftest.err conftest.$ac_ext
15409if $ac_preproc_ok; then :
15410  break
15411fi
15412
15413    done
15414    ac_cv_prog_CXXCPP=$CXXCPP
15415
15416fi
15417  CXXCPP=$ac_cv_prog_CXXCPP
15418else
15419  ac_cv_prog_CXXCPP=$CXXCPP
15420fi
15421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
15422$as_echo "$CXXCPP" >&6; }
15423ac_preproc_ok=false
15424for ac_cxx_preproc_warn_flag in '' yes
15425do
15426  # Use a header file that comes with gcc, so configuring glibc
15427  # with a fresh cross-compiler works.
15428  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15429  # <limits.h> exists even on freestanding compilers.
15430  # On the NeXT, cc -E runs the code through the compiler's parser,
15431  # not just through cpp. "Syntax error" is here to catch this case.
15432  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15433/* end confdefs.h.  */
15434#ifdef __STDC__
15435# include <limits.h>
15436#else
15437# include <assert.h>
15438#endif
15439		     Syntax error
15440_ACEOF
15441if ac_fn_cxx_try_cpp "$LINENO"; then :
15442
15443else
15444  # Broken: fails on valid input.
15445continue
15446fi
15447rm -f conftest.err conftest.i conftest.$ac_ext
15448
15449  # OK, works on sane cases.  Now check whether nonexistent headers
15450  # can be detected and how.
15451  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15452/* end confdefs.h.  */
15453#include <ac_nonexistent.h>
15454_ACEOF
15455if ac_fn_cxx_try_cpp "$LINENO"; then :
15456  # Broken: success on invalid input.
15457continue
15458else
15459  # Passes both tests.
15460ac_preproc_ok=:
15461break
15462fi
15463rm -f conftest.err conftest.i conftest.$ac_ext
15464
15465done
15466# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
15467rm -f conftest.i conftest.err conftest.$ac_ext
15468if $ac_preproc_ok; then :
15469
15470else
15471  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
15472$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
15473as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
15474See \`config.log' for more details" "$LINENO" 5; }
15475fi
15476
15477ac_ext=cpp
15478ac_cpp='$CXXCPP $CPPFLAGS'
15479ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15480ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15481ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15482
15483else
15484  _lt_caught_CXX_error=yes
15485fi
15486
15487ac_ext=cpp
15488ac_cpp='$CXXCPP $CPPFLAGS'
15489ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15490ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15491ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15492
15493archive_cmds_need_lc_CXX=no
15494allow_undefined_flag_CXX=
15495always_export_symbols_CXX=no
15496archive_expsym_cmds_CXX=
15497compiler_needs_object_CXX=no
15498export_dynamic_flag_spec_CXX=
15499hardcode_direct_CXX=no
15500hardcode_direct_absolute_CXX=no
15501hardcode_libdir_flag_spec_CXX=
15502hardcode_libdir_separator_CXX=
15503hardcode_minus_L_CXX=no
15504hardcode_shlibpath_var_CXX=unsupported
15505hardcode_automatic_CXX=no
15506inherit_rpath_CXX=no
15507module_cmds_CXX=
15508module_expsym_cmds_CXX=
15509link_all_deplibs_CXX=unknown
15510old_archive_cmds_CXX=$old_archive_cmds
15511reload_flag_CXX=$reload_flag
15512reload_cmds_CXX=$reload_cmds
15513no_undefined_flag_CXX=
15514whole_archive_flag_spec_CXX=
15515enable_shared_with_static_runtimes_CXX=no
15516
15517# Source file extension for C++ test sources.
15518ac_ext=cpp
15519
15520# Object file extension for compiled C++ test sources.
15521objext=o
15522objext_CXX=$objext
15523
15524# No sense in running all these tests if we already determined that
15525# the CXX compiler isn't working.  Some variables (like enable_shared)
15526# are currently assumed to apply to all compilers on this platform,
15527# and will be corrupted by setting them based on a non-working compiler.
15528if test yes != "$_lt_caught_CXX_error"; then
15529  # Code to be used in simple compile tests
15530  lt_simple_compile_test_code="int some_variable = 0;"
15531
15532  # Code to be used in simple link tests
15533  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15534
15535  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15536
15537
15538
15539
15540
15541
15542# If no C compiler was specified, use CC.
15543LTCC=${LTCC-"$CC"}
15544
15545# If no C compiler flags were specified, use CFLAGS.
15546LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15547
15548# Allow CC to be a program name with arguments.
15549compiler=$CC
15550
15551
15552  # save warnings/boilerplate of simple test code
15553  ac_outfile=conftest.$ac_objext
15554echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15555eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15556_lt_compiler_boilerplate=`cat conftest.err`
15557$RM conftest*
15558
15559  ac_outfile=conftest.$ac_objext
15560echo "$lt_simple_link_test_code" >conftest.$ac_ext
15561eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15562_lt_linker_boilerplate=`cat conftest.err`
15563$RM -r conftest*
15564
15565
15566  # Allow CC to be a program name with arguments.
15567  lt_save_CC=$CC
15568  lt_save_CFLAGS=$CFLAGS
15569  lt_save_LD=$LD
15570  lt_save_GCC=$GCC
15571  GCC=$GXX
15572  lt_save_with_gnu_ld=$with_gnu_ld
15573  lt_save_path_LD=$lt_cv_path_LD
15574  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15575    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15576  else
15577    $as_unset lt_cv_prog_gnu_ld
15578  fi
15579  if test -n "${lt_cv_path_LDCXX+set}"; then
15580    lt_cv_path_LD=$lt_cv_path_LDCXX
15581  else
15582    $as_unset lt_cv_path_LD
15583  fi
15584  test -z "${LDCXX+set}" || LD=$LDCXX
15585  CC=${CXX-"c++"}
15586  CFLAGS=$CXXFLAGS
15587  compiler=$CC
15588  compiler_CXX=$CC
15589  func_cc_basename $compiler
15590cc_basename=$func_cc_basename_result
15591
15592
15593  if test -n "$compiler"; then
15594    # We don't want -fno-exception when compiling C++ code, so set the
15595    # no_builtin_flag separately
15596    if test yes = "$GXX"; then
15597      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15598    else
15599      lt_prog_compiler_no_builtin_flag_CXX=
15600    fi
15601
15602    if test yes = "$GXX"; then
15603      # Set up default GNU C++ configuration
15604
15605
15606
15607# Check whether --with-gnu-ld was given.
15608if test "${with_gnu_ld+set}" = set; then :
15609  withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes
15610else
15611  with_gnu_ld=no
15612fi
15613
15614ac_prog=ld
15615if test yes = "$GCC"; then
15616  # Check if gcc -print-prog-name=ld gives a path.
15617  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15618$as_echo_n "checking for ld used by $CC... " >&6; }
15619  case $host in
15620  *-*-mingw*)
15621    # gcc leaves a trailing carriage return, which upsets mingw
15622    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15623  *)
15624    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15625  esac
15626  case $ac_prog in
15627    # Accept absolute paths.
15628    [\\/]* | ?:[\\/]*)
15629      re_direlt='/[^/][^/]*/\.\./'
15630      # Canonicalize the pathname of ld
15631      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15632      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15633	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15634      done
15635      test -z "$LD" && LD=$ac_prog
15636      ;;
15637  "")
15638    # If it fails, then pretend we aren't using GCC.
15639    ac_prog=ld
15640    ;;
15641  *)
15642    # If it is relative, then search for the first ld in PATH.
15643    with_gnu_ld=unknown
15644    ;;
15645  esac
15646elif test yes = "$with_gnu_ld"; then
15647  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15648$as_echo_n "checking for GNU ld... " >&6; }
15649else
15650  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15651$as_echo_n "checking for non-GNU ld... " >&6; }
15652fi
15653if ${lt_cv_path_LD+:} false; then :
15654  $as_echo_n "(cached) " >&6
15655else
15656  if test -z "$LD"; then
15657  lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR
15658  for ac_dir in $PATH; do
15659    IFS=$lt_save_ifs
15660    test -z "$ac_dir" && ac_dir=.
15661    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15662      lt_cv_path_LD=$ac_dir/$ac_prog
15663      # Check to see if the program is GNU ld.  I'd rather use --version,
15664      # but apparently some variants of GNU ld only accept -v.
15665      # Break only if it was the GNU/non-GNU ld that we prefer.
15666      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15667      *GNU* | *'with BFD'*)
15668	test no != "$with_gnu_ld" && break
15669	;;
15670      *)
15671	test yes != "$with_gnu_ld" && break
15672	;;
15673      esac
15674    fi
15675  done
15676  IFS=$lt_save_ifs
15677else
15678  lt_cv_path_LD=$LD # Let the user override the test with a path.
15679fi
15680fi
15681
15682LD=$lt_cv_path_LD
15683if test -n "$LD"; then
15684  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15685$as_echo "$LD" >&6; }
15686else
15687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15688$as_echo "no" >&6; }
15689fi
15690test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15691{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15692$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15693if ${lt_cv_prog_gnu_ld+:} false; then :
15694  $as_echo_n "(cached) " >&6
15695else
15696  # I'd rather use --version here, but apparently some GNU lds only accept -v.
15697case `$LD -v 2>&1 </dev/null` in
15698*GNU* | *'with BFD'*)
15699  lt_cv_prog_gnu_ld=yes
15700  ;;
15701*)
15702  lt_cv_prog_gnu_ld=no
15703  ;;
15704esac
15705fi
15706{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15707$as_echo "$lt_cv_prog_gnu_ld" >&6; }
15708with_gnu_ld=$lt_cv_prog_gnu_ld
15709
15710
15711
15712
15713
15714
15715
15716      # Check if GNU C++ uses GNU ld as the underlying linker, since the
15717      # archiving commands below assume that GNU ld is being used.
15718      if test yes = "$with_gnu_ld"; then
15719        archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
15720        archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
15721
15722        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
15723        export_dynamic_flag_spec_CXX='$wl--export-dynamic'
15724
15725        # If archive_cmds runs LD, not CC, wlarc should be empty
15726        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15727        #     investigate it a little bit more. (MM)
15728        wlarc='$wl'
15729
15730        # ancient GNU ld didn't support --whole-archive et. al.
15731        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15732	  $GREP 'no-whole-archive' > /dev/null; then
15733          whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
15734        else
15735          whole_archive_flag_spec_CXX=
15736        fi
15737      else
15738        with_gnu_ld=no
15739        wlarc=
15740
15741        # A generic and very simple default shared library creation
15742        # command for GNU C++ for the case where it uses the native
15743        # linker, instead of GNU ld.  If possible, this setting should
15744        # overridden to take advantage of the native linker features on
15745        # the platform it is being used on.
15746        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15747      fi
15748
15749      # Commands to make compiler produce verbose output that lists
15750      # what "hidden" libraries, object files and flags are used when
15751      # linking a shared library.
15752      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
15753
15754    else
15755      GXX=no
15756      with_gnu_ld=no
15757      wlarc=
15758    fi
15759
15760    # PORTME: fill in a description of your system's C++ link characteristics
15761    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15762$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15763    ld_shlibs_CXX=yes
15764    case $host_os in
15765      aix3*)
15766        # FIXME: insert proper C++ library support
15767        ld_shlibs_CXX=no
15768        ;;
15769      aix[4-9]*)
15770        if test ia64 = "$host_cpu"; then
15771          # On IA64, the linker does run time linking by default, so we don't
15772          # have to do anything special.
15773          aix_use_runtimelinking=no
15774          exp_sym_flag='-Bexport'
15775          no_entry_flag=
15776        else
15777          aix_use_runtimelinking=no
15778
15779          # Test if we are trying to use run time linking or normal
15780          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15781          # have runtime linking enabled, and use it for executables.
15782          # For shared libraries, we enable/disable runtime linking
15783          # depending on the kind of the shared library created -
15784          # when "with_aix_soname,aix_use_runtimelinking" is:
15785          # "aix,no"   lib.a(lib.so.V) shared, rtl:no,  for executables
15786          # "aix,yes"  lib.so          shared, rtl:yes, for executables
15787          #            lib.a           static archive
15788          # "both,no"  lib.so.V(shr.o) shared, rtl:yes
15789          #            lib.a(lib.so.V) shared, rtl:no,  for executables
15790          # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables
15791          #            lib.a(lib.so.V) shared, rtl:no
15792          # "svr4,*"   lib.so.V(shr.o) shared, rtl:yes, for executables
15793          #            lib.a           static archive
15794          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15795	    for ld_flag in $LDFLAGS; do
15796	      case $ld_flag in
15797	      *-brtl*)
15798	        aix_use_runtimelinking=yes
15799	        break
15800	        ;;
15801	      esac
15802	    done
15803	    if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then
15804	      # With aix-soname=svr4, we create the lib.so.V shared archives only,
15805	      # so we don't have lib.a shared libs to link our executables.
15806	      # We have to force runtime linking in this case.
15807	      aix_use_runtimelinking=yes
15808	      LDFLAGS="$LDFLAGS -Wl,-brtl"
15809	    fi
15810	    ;;
15811          esac
15812
15813          exp_sym_flag='-bexport'
15814          no_entry_flag='-bnoentry'
15815        fi
15816
15817        # When large executables or shared objects are built, AIX ld can
15818        # have problems creating the table of contents.  If linking a library
15819        # or program results in "error TOC overflow" add -mminimal-toc to
15820        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
15821        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15822
15823        archive_cmds_CXX=''
15824        hardcode_direct_CXX=yes
15825        hardcode_direct_absolute_CXX=yes
15826        hardcode_libdir_separator_CXX=':'
15827        link_all_deplibs_CXX=yes
15828        file_list_spec_CXX='$wl-f,'
15829        case $with_aix_soname,$aix_use_runtimelinking in
15830        aix,*) ;;	# no import file
15831        svr4,* | *,yes) # use import file
15832          # The Import File defines what to hardcode.
15833          hardcode_direct_CXX=no
15834          hardcode_direct_absolute_CXX=no
15835          ;;
15836        esac
15837
15838        if test yes = "$GXX"; then
15839          case $host_os in aix4.[012]|aix4.[012].*)
15840          # We only want to do this on AIX 4.2 and lower, the check
15841          # below for broken collect2 doesn't work under 4.3+
15842	  collect2name=`$CC -print-prog-name=collect2`
15843	  if test -f "$collect2name" &&
15844	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15845	  then
15846	    # We have reworked collect2
15847	    :
15848	  else
15849	    # We have old collect2
15850	    hardcode_direct_CXX=unsupported
15851	    # It fails to find uninstalled libraries when the uninstalled
15852	    # path is not listed in the libpath.  Setting hardcode_minus_L
15853	    # to unsupported forces relinking
15854	    hardcode_minus_L_CXX=yes
15855	    hardcode_libdir_flag_spec_CXX='-L$libdir'
15856	    hardcode_libdir_separator_CXX=
15857	  fi
15858          esac
15859          shared_flag='-shared'
15860	  if test yes = "$aix_use_runtimelinking"; then
15861	    shared_flag=$shared_flag' $wl-G'
15862	  fi
15863	  # Need to ensure runtime linking is disabled for the traditional
15864	  # shared library, or the linker may eventually find shared libraries
15865	  # /with/ Import File - we do not want to mix them.
15866	  shared_flag_aix='-shared'
15867	  shared_flag_svr4='-shared $wl-G'
15868        else
15869          # not using gcc
15870          if test ia64 = "$host_cpu"; then
15871	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15872	  # chokes on -Wl,-G. The following line is correct:
15873	  shared_flag='-G'
15874          else
15875	    if test yes = "$aix_use_runtimelinking"; then
15876	      shared_flag='$wl-G'
15877	    else
15878	      shared_flag='$wl-bM:SRE'
15879	    fi
15880	    shared_flag_aix='$wl-bM:SRE'
15881	    shared_flag_svr4='$wl-G'
15882          fi
15883        fi
15884
15885        export_dynamic_flag_spec_CXX='$wl-bexpall'
15886        # It seems that -bexpall does not export symbols beginning with
15887        # underscore (_), so it is better to generate a list of symbols to
15888	# export.
15889        always_export_symbols_CXX=yes
15890	if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then
15891          # Warning - without using the other runtime loading flags (-brtl),
15892          # -berok will link without error, but may produce a broken library.
15893          # The "-G" linker flag allows undefined symbols.
15894          no_undefined_flag_CXX='-bernotok'
15895          # Determine the default libpath from the value encoded in an empty
15896          # executable.
15897          if test set = "${lt_cv_aix_libpath+set}"; then
15898  aix_libpath=$lt_cv_aix_libpath
15899else
15900  if ${lt_cv_aix_libpath__CXX+:} false; then :
15901  $as_echo_n "(cached) " >&6
15902else
15903  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15904/* end confdefs.h.  */
15905
15906int
15907main ()
15908{
15909
15910  ;
15911  return 0;
15912}
15913_ACEOF
15914if ac_fn_cxx_try_link "$LINENO"; then :
15915
15916  lt_aix_libpath_sed='
15917      /Import File Strings/,/^$/ {
15918	  /^0/ {
15919	      s/^0  *\([^ ]*\) *$/\1/
15920	      p
15921	  }
15922      }'
15923  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15924  # Check for a 64-bit object if we didn't find anything.
15925  if test -z "$lt_cv_aix_libpath__CXX"; then
15926    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15927  fi
15928fi
15929rm -f core conftest.err conftest.$ac_objext \
15930    conftest$ac_exeext conftest.$ac_ext
15931  if test -z "$lt_cv_aix_libpath__CXX"; then
15932    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15933  fi
15934
15935fi
15936
15937  aix_libpath=$lt_cv_aix_libpath__CXX
15938fi
15939
15940          hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15941
15942          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag
15943        else
15944          if test ia64 = "$host_cpu"; then
15945	    hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib'
15946	    allow_undefined_flag_CXX="-z nodefs"
15947	    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"
15948          else
15949	    # Determine the default libpath from the value encoded in an
15950	    # empty executable.
15951	    if test set = "${lt_cv_aix_libpath+set}"; then
15952  aix_libpath=$lt_cv_aix_libpath
15953else
15954  if ${lt_cv_aix_libpath__CXX+:} false; then :
15955  $as_echo_n "(cached) " >&6
15956else
15957  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15958/* end confdefs.h.  */
15959
15960int
15961main ()
15962{
15963
15964  ;
15965  return 0;
15966}
15967_ACEOF
15968if ac_fn_cxx_try_link "$LINENO"; then :
15969
15970  lt_aix_libpath_sed='
15971      /Import File Strings/,/^$/ {
15972	  /^0/ {
15973	      s/^0  *\([^ ]*\) *$/\1/
15974	      p
15975	  }
15976      }'
15977  lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15978  # Check for a 64-bit object if we didn't find anything.
15979  if test -z "$lt_cv_aix_libpath__CXX"; then
15980    lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15981  fi
15982fi
15983rm -f core conftest.err conftest.$ac_objext \
15984    conftest$ac_exeext conftest.$ac_ext
15985  if test -z "$lt_cv_aix_libpath__CXX"; then
15986    lt_cv_aix_libpath__CXX=/usr/lib:/lib
15987  fi
15988
15989fi
15990
15991  aix_libpath=$lt_cv_aix_libpath__CXX
15992fi
15993
15994	    hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath"
15995	    # Warning - without using the other run time loading flags,
15996	    # -berok will link without error, but may produce a broken library.
15997	    no_undefined_flag_CXX=' $wl-bernotok'
15998	    allow_undefined_flag_CXX=' $wl-berok'
15999	    if test yes = "$with_gnu_ld"; then
16000	      # We only use this code for GNU lds that support --whole-archive.
16001	      whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16002	    else
16003	      # Exported symbols can be pulled into shared objects from archives
16004	      whole_archive_flag_spec_CXX='$convenience'
16005	    fi
16006	    archive_cmds_need_lc_CXX=yes
16007	    archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d'
16008	    # -brtl affects multiple linker settings, -berok does not and is overridden later
16009	    compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`'
16010	    if test svr4 != "$with_aix_soname"; then
16011	      # This is similar to how AIX traditionally builds its shared
16012	      # libraries. Need -bnortl late, we may have -brtl in LDFLAGS.
16013	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname'
16014	    fi
16015	    if test aix != "$with_aix_soname"; then
16016	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp'
16017	    else
16018	      # used by -dlpreopen to get the symbols
16019	      archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV  $output_objdir/$realname.d/$soname $output_objdir'
16020	    fi
16021	    archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d'
16022          fi
16023        fi
16024        ;;
16025
16026      beos*)
16027	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16028	  allow_undefined_flag_CXX=unsupported
16029	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16030	  # support --undefined.  This deserves some investigation.  FIXME
16031	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16032	else
16033	  ld_shlibs_CXX=no
16034	fi
16035	;;
16036
16037      chorus*)
16038        case $cc_basename in
16039          *)
16040	  # FIXME: insert proper C++ library support
16041	  ld_shlibs_CXX=no
16042	  ;;
16043        esac
16044        ;;
16045
16046      cygwin* | mingw* | pw32* | cegcc*)
16047	case $GXX,$cc_basename in
16048	,cl* | no,cl*)
16049	  # Native MSVC
16050	  # hardcode_libdir_flag_spec is actually meaningless, as there is
16051	  # no search path for DLLs.
16052	  hardcode_libdir_flag_spec_CXX=' '
16053	  allow_undefined_flag_CXX=unsupported
16054	  always_export_symbols_CXX=yes
16055	  file_list_spec_CXX='@'
16056	  # Tell ltmain to make .lib files, not .a files.
16057	  libext=lib
16058	  # Tell ltmain to make .dll files, not .so files.
16059	  shrext_cmds=.dll
16060	  # FIXME: Setting linknames here is a bad hack.
16061	  archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames='
16062	  archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16063              cp "$export_symbols" "$output_objdir/$soname.def";
16064              echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp";
16065            else
16066              $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp;
16067            fi~
16068            $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
16069            linknames='
16070	  # The linker will not automatically build a static lib if we build a DLL.
16071	  # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
16072	  enable_shared_with_static_runtimes_CXX=yes
16073	  # Don't use ranlib
16074	  old_postinstall_cmds_CXX='chmod 644 $oldlib'
16075	  postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
16076            lt_tool_outputfile="@TOOL_OUTPUT@"~
16077            case $lt_outputfile in
16078              *.exe|*.EXE) ;;
16079              *)
16080                lt_outputfile=$lt_outputfile.exe
16081                lt_tool_outputfile=$lt_tool_outputfile.exe
16082                ;;
16083            esac~
16084            func_to_tool_file "$lt_outputfile"~
16085            if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then
16086              $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
16087              $RM "$lt_outputfile.manifest";
16088            fi'
16089	  ;;
16090	*)
16091	  # g++
16092	  # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16093	  # as there is no search path for DLLs.
16094	  hardcode_libdir_flag_spec_CXX='-L$libdir'
16095	  export_dynamic_flag_spec_CXX='$wl--export-all-symbols'
16096	  allow_undefined_flag_CXX=unsupported
16097	  always_export_symbols_CXX=no
16098	  enable_shared_with_static_runtimes_CXX=yes
16099
16100	  if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
16101	    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'
16102	    # If the export-symbols file already is a .def file, use it as
16103	    # is; otherwise, prepend EXPORTS...
16104	    archive_expsym_cmds_CXX='if   test DEF = "`$SED -n     -e '\''s/^[	 ]*//'\''     -e '\''/^\(;.*\)*$/d'\''     -e '\''s/^\(EXPORTS\|LIBRARY\)\([	 ].*\)*$/DEF/p'\''     -e q     $export_symbols`" ; then
16105              cp $export_symbols $output_objdir/$soname.def;
16106            else
16107              echo EXPORTS > $output_objdir/$soname.def;
16108              cat $export_symbols >> $output_objdir/$soname.def;
16109            fi~
16110            $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'
16111	  else
16112	    ld_shlibs_CXX=no
16113	  fi
16114	  ;;
16115	esac
16116	;;
16117      darwin* | rhapsody*)
16118
16119
16120  archive_cmds_need_lc_CXX=no
16121  hardcode_direct_CXX=no
16122  hardcode_automatic_CXX=yes
16123  hardcode_shlibpath_var_CXX=unsupported
16124  if test yes = "$lt_cv_ld_force_load"; then
16125    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\"`'
16126
16127  else
16128    whole_archive_flag_spec_CXX=''
16129  fi
16130  link_all_deplibs_CXX=yes
16131  allow_undefined_flag_CXX=$_lt_dar_allow_undefined
16132  case $cc_basename in
16133     ifort*|nagfor*) _lt_dar_can_shared=yes ;;
16134     *) _lt_dar_can_shared=$GCC ;;
16135  esac
16136  if test yes = "$_lt_dar_can_shared"; then
16137    output_verbose_link_cmd=func_echo_all
16138    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"
16139    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil"
16140    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"
16141    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"
16142       if test yes != "$lt_cv_apple_cc_single_mod"; then
16143      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"
16144      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"
16145    fi
16146
16147  else
16148  ld_shlibs_CXX=no
16149  fi
16150
16151	;;
16152
16153      os2*)
16154	hardcode_libdir_flag_spec_CXX='-L$libdir'
16155	hardcode_minus_L_CXX=yes
16156	allow_undefined_flag_CXX=unsupported
16157	shrext_cmds=.dll
16158	archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16159	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16160	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16161	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16162	  emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~
16163	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16164	  emximp -o $lib $output_objdir/$libname.def'
16165	archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~
16166	  $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~
16167	  $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~
16168	  $ECHO EXPORTS >> $output_objdir/$libname.def~
16169	  prefix_cmds="$SED"~
16170	  if test EXPORTS = "`$SED 1q $export_symbols`"; then
16171	    prefix_cmds="$prefix_cmds -e 1d";
16172	  fi~
16173	  prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~
16174	  cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~
16175	  $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~
16176	  emximp -o $lib $output_objdir/$libname.def'
16177	old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def'
16178	enable_shared_with_static_runtimes_CXX=yes
16179	;;
16180
16181      dgux*)
16182        case $cc_basename in
16183          ec++*)
16184	    # FIXME: insert proper C++ library support
16185	    ld_shlibs_CXX=no
16186	    ;;
16187          ghcx*)
16188	    # Green Hills C++ Compiler
16189	    # FIXME: insert proper C++ library support
16190	    ld_shlibs_CXX=no
16191	    ;;
16192          *)
16193	    # FIXME: insert proper C++ library support
16194	    ld_shlibs_CXX=no
16195	    ;;
16196        esac
16197        ;;
16198
16199      freebsd2.*)
16200        # C++ shared libraries reported to be fairly broken before
16201	# switch to ELF
16202        ld_shlibs_CXX=no
16203        ;;
16204
16205      freebsd-elf*)
16206        archive_cmds_need_lc_CXX=no
16207        ;;
16208
16209      freebsd* | dragonfly*)
16210        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16211        # conventions
16212        ld_shlibs_CXX=yes
16213        ;;
16214
16215      haiku*)
16216        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16217        link_all_deplibs_CXX=yes
16218        ;;
16219
16220      hpux9*)
16221        hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16222        hardcode_libdir_separator_CXX=:
16223        export_dynamic_flag_spec_CXX='$wl-E'
16224        hardcode_direct_CXX=yes
16225        hardcode_minus_L_CXX=yes # Not in the search PATH,
16226				             # but as the default
16227				             # location of the library.
16228
16229        case $cc_basename in
16230          CC*)
16231            # FIXME: insert proper C++ library support
16232            ld_shlibs_CXX=no
16233            ;;
16234          aCC*)
16235            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 "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16236            # Commands to make compiler produce verbose output that lists
16237            # what "hidden" libraries, object files and flags are used when
16238            # linking a shared library.
16239            #
16240            # There doesn't appear to be a way to prevent this compiler from
16241            # explicitly linking system object files so we need to strip them
16242            # from the output so that they don't get included in the library
16243            # dependencies.
16244            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"'
16245            ;;
16246          *)
16247            if test yes = "$GXX"; then
16248              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib'
16249            else
16250              # FIXME: insert proper C++ library support
16251              ld_shlibs_CXX=no
16252            fi
16253            ;;
16254        esac
16255        ;;
16256
16257      hpux10*|hpux11*)
16258        if test no = "$with_gnu_ld"; then
16259	  hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir'
16260	  hardcode_libdir_separator_CXX=:
16261
16262          case $host_cpu in
16263            hppa*64*|ia64*)
16264              ;;
16265            *)
16266	      export_dynamic_flag_spec_CXX='$wl-E'
16267              ;;
16268          esac
16269        fi
16270        case $host_cpu in
16271          hppa*64*|ia64*)
16272            hardcode_direct_CXX=no
16273            hardcode_shlibpath_var_CXX=no
16274            ;;
16275          *)
16276            hardcode_direct_CXX=yes
16277            hardcode_direct_absolute_CXX=yes
16278            hardcode_minus_L_CXX=yes # Not in the search PATH,
16279					         # but as the default
16280					         # location of the library.
16281            ;;
16282        esac
16283
16284        case $cc_basename in
16285          CC*)
16286	    # FIXME: insert proper C++ library support
16287	    ld_shlibs_CXX=no
16288	    ;;
16289          aCC*)
16290	    case $host_cpu in
16291	      hppa*64*)
16292	        archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16293	        ;;
16294	      ia64*)
16295	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16296	        ;;
16297	      *)
16298	        archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16299	        ;;
16300	    esac
16301	    # Commands to make compiler produce verbose output that lists
16302	    # what "hidden" libraries, object files and flags are used when
16303	    # linking a shared library.
16304	    #
16305	    # There doesn't appear to be a way to prevent this compiler from
16306	    # explicitly linking system object files so we need to strip them
16307	    # from the output so that they don't get included in the library
16308	    # dependencies.
16309	    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"'
16310	    ;;
16311          *)
16312	    if test yes = "$GXX"; then
16313	      if test no = "$with_gnu_ld"; then
16314	        case $host_cpu in
16315	          hppa*64*)
16316	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16317	            ;;
16318	          ia64*)
16319	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16320	            ;;
16321	          *)
16322	            archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16323	            ;;
16324	        esac
16325	      fi
16326	    else
16327	      # FIXME: insert proper C++ library support
16328	      ld_shlibs_CXX=no
16329	    fi
16330	    ;;
16331        esac
16332        ;;
16333
16334      interix[3-9]*)
16335	hardcode_direct_CXX=no
16336	hardcode_shlibpath_var_CXX=no
16337	hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16338	export_dynamic_flag_spec_CXX='$wl-E'
16339	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16340	# Instead, shared libraries are loaded at an image base (0x10000000 by
16341	# default) and relocated if they conflict, which is a slow very memory
16342	# consuming and fragmenting process.  To avoid this, we pick a random,
16343	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16344	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
16345	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'
16346	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'
16347	;;
16348      irix5* | irix6*)
16349        case $cc_basename in
16350          CC*)
16351	    # SGI C++
16352	    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'
16353
16354	    # Archives containing C++ object files must be created using
16355	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
16356	    # necessary to make sure instantiated templates are included
16357	    # in the archive.
16358	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
16359	    ;;
16360          *)
16361	    if test yes = "$GXX"; then
16362	      if test no = "$with_gnu_ld"; then
16363	        archive_cmds_CXX='$CC -shared $pic_flag -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'
16364	      else
16365	        archive_cmds_CXX='$CC -shared $pic_flag -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'
16366	      fi
16367	    fi
16368	    link_all_deplibs_CXX=yes
16369	    ;;
16370        esac
16371        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16372        hardcode_libdir_separator_CXX=:
16373        inherit_rpath_CXX=yes
16374        ;;
16375
16376      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
16377        case $cc_basename in
16378          KCC*)
16379	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16380
16381	    # KCC will only create a shared library if the output file
16382	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16383	    # to its proper name (with version) after linking.
16384	    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'
16385	    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'
16386	    # Commands to make compiler produce verbose output that lists
16387	    # what "hidden" libraries, object files and flags are used when
16388	    # linking a shared library.
16389	    #
16390	    # There doesn't appear to be a way to prevent this compiler from
16391	    # explicitly linking system object files so we need to strip them
16392	    # from the output so that they don't get included in the library
16393	    # dependencies.
16394	    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"'
16395
16396	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16397	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16398
16399	    # Archives containing C++ object files must be created using
16400	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16401	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
16402	    ;;
16403	  icpc* | ecpc* )
16404	    # Intel C++
16405	    with_gnu_ld=yes
16406	    # version 8.0 and above of icpc choke on multiply defined symbols
16407	    # if we add $predep_objects and $postdep_objects, however 7.1 and
16408	    # earlier do not add the objects themselves.
16409	    case `$CC -V 2>&1` in
16410	      *"Version 7."*)
16411	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16412		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'
16413		;;
16414	      *)  # Version 8.0 or newer
16415	        tmp_idyn=
16416	        case $host_cpu in
16417		  ia64*) tmp_idyn=' -i_dynamic';;
16418		esac
16419	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16420		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'
16421		;;
16422	    esac
16423	    archive_cmds_need_lc_CXX=no
16424	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16425	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16426	    whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive'
16427	    ;;
16428          pgCC* | pgcpp*)
16429            # Portland Group C++ compiler
16430	    case `$CC -V` in
16431	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
16432	      prelink_cmds_CXX='tpldir=Template.dir~
16433               rm -rf $tpldir~
16434               $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
16435               compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
16436	      old_archive_cmds_CXX='tpldir=Template.dir~
16437                rm -rf $tpldir~
16438                $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
16439                $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
16440                $RANLIB $oldlib'
16441	      archive_cmds_CXX='tpldir=Template.dir~
16442                rm -rf $tpldir~
16443                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16444                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16445	      archive_expsym_cmds_CXX='tpldir=Template.dir~
16446                rm -rf $tpldir~
16447                $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
16448                $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib'
16449	      ;;
16450	    *) # Version 6 and above use weak symbols
16451	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16452	      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'
16453	      ;;
16454	    esac
16455
16456	    hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir'
16457	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16458	    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'
16459            ;;
16460	  cxx*)
16461	    # Compaq C++
16462	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib'
16463	    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'
16464
16465	    runpath_var=LD_RUN_PATH
16466	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16467	    hardcode_libdir_separator_CXX=:
16468
16469	    # Commands to make compiler produce verbose output that lists
16470	    # what "hidden" libraries, object files and flags are used when
16471	    # linking a shared library.
16472	    #
16473	    # There doesn't appear to be a way to prevent this compiler from
16474	    # explicitly linking system object files so we need to strip them
16475	    # from the output so that they don't get included in the library
16476	    # dependencies.
16477	    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'
16478	    ;;
16479	  xl* | mpixl* | bgxl*)
16480	    # IBM XL 8.0 on PPC, with GNU ld
16481	    hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16482	    export_dynamic_flag_spec_CXX='$wl--export-dynamic'
16483	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib'
16484	    if test yes = "$supports_anon_versioning"; then
16485	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
16486                cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16487                echo "local: *; };" >> $output_objdir/$libname.ver~
16488                $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib'
16489	    fi
16490	    ;;
16491	  *)
16492	    case `$CC -V 2>&1 | sed 5q` in
16493	    *Sun\ C*)
16494	      # Sun C++ 5.9
16495	      no_undefined_flag_CXX=' -zdefs'
16496	      archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16497	      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'
16498	      hardcode_libdir_flag_spec_CXX='-R$libdir'
16499	      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'
16500	      compiler_needs_object_CXX=yes
16501
16502	      # Not sure whether something based on
16503	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16504	      # would be better.
16505	      output_verbose_link_cmd='func_echo_all'
16506
16507	      # Archives containing C++ object files must be created using
16508	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16509	      # necessary to make sure instantiated templates are included
16510	      # in the archive.
16511	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16512	      ;;
16513	    esac
16514	    ;;
16515	esac
16516	;;
16517
16518      lynxos*)
16519        # FIXME: insert proper C++ library support
16520	ld_shlibs_CXX=no
16521	;;
16522
16523      m88k*)
16524        # FIXME: insert proper C++ library support
16525        ld_shlibs_CXX=no
16526	;;
16527
16528      mvs*)
16529        case $cc_basename in
16530          cxx*)
16531	    # FIXME: insert proper C++ library support
16532	    ld_shlibs_CXX=no
16533	    ;;
16534	  *)
16535	    # FIXME: insert proper C++ library support
16536	    ld_shlibs_CXX=no
16537	    ;;
16538	esac
16539	;;
16540
16541      netbsd*)
16542        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16543	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16544	  wlarc=
16545	  hardcode_libdir_flag_spec_CXX='-R$libdir'
16546	  hardcode_direct_CXX=yes
16547	  hardcode_shlibpath_var_CXX=no
16548	fi
16549	# Workaround some broken pre-1.5 toolchains
16550	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16551	;;
16552
16553      *nto* | *qnx*)
16554        ld_shlibs_CXX=yes
16555	;;
16556
16557      openbsd* | bitrig*)
16558	if test -f /usr/libexec/ld.so; then
16559	  hardcode_direct_CXX=yes
16560	  hardcode_shlibpath_var_CXX=no
16561	  hardcode_direct_absolute_CXX=yes
16562	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16563	  hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16564	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then
16565	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib'
16566	    export_dynamic_flag_spec_CXX='$wl-E'
16567	    whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive'
16568	  fi
16569	  output_verbose_link_cmd=func_echo_all
16570	else
16571	  ld_shlibs_CXX=no
16572	fi
16573	;;
16574
16575      osf3* | osf4* | osf5*)
16576        case $cc_basename in
16577          KCC*)
16578	    # Kuck and Associates, Inc. (KAI) C++ Compiler
16579
16580	    # KCC will only create a shared library if the output file
16581	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
16582	    # to its proper name (with version) after linking.
16583	    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'
16584
16585	    hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir'
16586	    hardcode_libdir_separator_CXX=:
16587
16588	    # Archives containing C++ object files must be created using
16589	    # the KAI C++ compiler.
16590	    case $host in
16591	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16592	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16593	    esac
16594	    ;;
16595          RCC*)
16596	    # Rational C++ 2.4.1
16597	    # FIXME: insert proper C++ library support
16598	    ld_shlibs_CXX=no
16599	    ;;
16600          cxx*)
16601	    case $host in
16602	      osf3*)
16603	        allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16604	        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'
16605	        hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16606		;;
16607	      *)
16608	        allow_undefined_flag_CXX=' -expect_unresolved \*'
16609	        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'
16610	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16611                  echo "-hidden">> $lib.exp~
16612                  $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~
16613                  $RM $lib.exp'
16614	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16615		;;
16616	    esac
16617
16618	    hardcode_libdir_separator_CXX=:
16619
16620	    # Commands to make compiler produce verbose output that lists
16621	    # what "hidden" libraries, object files and flags are used when
16622	    # linking a shared library.
16623	    #
16624	    # There doesn't appear to be a way to prevent this compiler from
16625	    # explicitly linking system object files so we need to strip them
16626	    # from the output so that they don't get included in the library
16627	    # dependencies.
16628	    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"'
16629	    ;;
16630	  *)
16631	    if test yes,no = "$GXX,$with_gnu_ld"; then
16632	      allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*'
16633	      case $host in
16634	        osf3*)
16635	          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'
16636		  ;;
16637	        *)
16638	          archive_cmds_CXX='$CC -shared $pic_flag -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'
16639		  ;;
16640	      esac
16641
16642	      hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir'
16643	      hardcode_libdir_separator_CXX=:
16644
16645	      # Commands to make compiler produce verbose output that lists
16646	      # what "hidden" libraries, object files and flags are used when
16647	      # linking a shared library.
16648	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16649
16650	    else
16651	      # FIXME: insert proper C++ library support
16652	      ld_shlibs_CXX=no
16653	    fi
16654	    ;;
16655        esac
16656        ;;
16657
16658      psos*)
16659        # FIXME: insert proper C++ library support
16660        ld_shlibs_CXX=no
16661        ;;
16662
16663      sunos4*)
16664        case $cc_basename in
16665          CC*)
16666	    # Sun C++ 4.x
16667	    # FIXME: insert proper C++ library support
16668	    ld_shlibs_CXX=no
16669	    ;;
16670          lcc*)
16671	    # Lucid
16672	    # FIXME: insert proper C++ library support
16673	    ld_shlibs_CXX=no
16674	    ;;
16675          *)
16676	    # FIXME: insert proper C++ library support
16677	    ld_shlibs_CXX=no
16678	    ;;
16679        esac
16680        ;;
16681
16682      solaris*)
16683        case $cc_basename in
16684          CC* | sunCC*)
16685	    # Sun C++ 4.2, 5.x and Centerline C++
16686            archive_cmds_need_lc_CXX=yes
16687	    no_undefined_flag_CXX=' -zdefs'
16688	    archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16689	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16690              $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'
16691
16692	    hardcode_libdir_flag_spec_CXX='-R$libdir'
16693	    hardcode_shlibpath_var_CXX=no
16694	    case $host_os in
16695	      solaris2.[0-5] | solaris2.[0-5].*) ;;
16696	      *)
16697		# The compiler driver will combine and reorder linker options,
16698		# but understands '-z linker_flag'.
16699	        # Supported since Solaris 2.6 (maybe 2.5.1?)
16700		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16701	        ;;
16702	    esac
16703	    link_all_deplibs_CXX=yes
16704
16705	    output_verbose_link_cmd='func_echo_all'
16706
16707	    # Archives containing C++ object files must be created using
16708	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
16709	    # necessary to make sure instantiated templates are included
16710	    # in the archive.
16711	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16712	    ;;
16713          gcx*)
16714	    # Green Hills C++ Compiler
16715	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16716
16717	    # The C++ compiler must be used to create the archive.
16718	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16719	    ;;
16720          *)
16721	    # GNU C++ compiler with Solaris linker
16722	    if test yes,no = "$GXX,$with_gnu_ld"; then
16723	      no_undefined_flag_CXX=' $wl-z ${wl}defs'
16724	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16725	        archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16726	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16727                  $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16728
16729	        # Commands to make compiler produce verbose output that lists
16730	        # what "hidden" libraries, object files and flags are used when
16731	        # linking a shared library.
16732	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16733	      else
16734	        # g++ 2.7 appears to require '-G' NOT '-shared' on this
16735	        # platform.
16736	        archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib'
16737	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16738                  $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16739
16740	        # Commands to make compiler produce verbose output that lists
16741	        # what "hidden" libraries, object files and flags are used when
16742	        # linking a shared library.
16743	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP " \-L"'
16744	      fi
16745
16746	      hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir'
16747	      case $host_os in
16748		solaris2.[0-5] | solaris2.[0-5].*) ;;
16749		*)
16750		  whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract'
16751		  ;;
16752	      esac
16753	    fi
16754	    ;;
16755        esac
16756        ;;
16757
16758    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16759      no_undefined_flag_CXX='$wl-z,text'
16760      archive_cmds_need_lc_CXX=no
16761      hardcode_shlibpath_var_CXX=no
16762      runpath_var='LD_RUN_PATH'
16763
16764      case $cc_basename in
16765        CC*)
16766	  archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16767	  archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16768	  ;;
16769	*)
16770	  archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16771	  archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16772	  ;;
16773      esac
16774      ;;
16775
16776      sysv5* | sco3.2v5* | sco5v6*)
16777	# Note: We CANNOT use -z defs as we might desire, because we do not
16778	# link with -lc, and that would cause any symbols used from libc to
16779	# always be unresolved, which means just about no library would
16780	# ever link correctly.  If we're not using GNU ld we use -z text
16781	# though, which does catch some bad symbols but isn't as heavy-handed
16782	# as -z defs.
16783	no_undefined_flag_CXX='$wl-z,text'
16784	allow_undefined_flag_CXX='$wl-z,nodefs'
16785	archive_cmds_need_lc_CXX=no
16786	hardcode_shlibpath_var_CXX=no
16787	hardcode_libdir_flag_spec_CXX='$wl-R,$libdir'
16788	hardcode_libdir_separator_CXX=':'
16789	link_all_deplibs_CXX=yes
16790	export_dynamic_flag_spec_CXX='$wl-Bexport'
16791	runpath_var='LD_RUN_PATH'
16792
16793	case $cc_basename in
16794          CC*)
16795	    archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16796	    archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16797	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16798              '"$old_archive_cmds_CXX"
16799	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16800              '"$reload_cmds_CXX"
16801	    ;;
16802	  *)
16803	    archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16804	    archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16805	    ;;
16806	esac
16807      ;;
16808
16809      tandem*)
16810        case $cc_basename in
16811          NCC*)
16812	    # NonStop-UX NCC 3.20
16813	    # FIXME: insert proper C++ library support
16814	    ld_shlibs_CXX=no
16815	    ;;
16816          *)
16817	    # FIXME: insert proper C++ library support
16818	    ld_shlibs_CXX=no
16819	    ;;
16820        esac
16821        ;;
16822
16823      vxworks*)
16824        # FIXME: insert proper C++ library support
16825        ld_shlibs_CXX=no
16826        ;;
16827
16828      *)
16829        # FIXME: insert proper C++ library support
16830        ld_shlibs_CXX=no
16831        ;;
16832    esac
16833
16834    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16835$as_echo "$ld_shlibs_CXX" >&6; }
16836    test no = "$ld_shlibs_CXX" && can_build_shared=no
16837
16838    GCC_CXX=$GXX
16839    LD_CXX=$LD
16840
16841    ## CAVEAT EMPTOR:
16842    ## There is no encapsulation within the following macros, do not change
16843    ## the running order or otherwise move them around unless you know exactly
16844    ## what you are doing...
16845    # Dependencies to place before and after the object being linked:
16846predep_objects_CXX=
16847postdep_objects_CXX=
16848predeps_CXX=
16849postdeps_CXX=
16850compiler_lib_search_path_CXX=
16851
16852cat > conftest.$ac_ext <<_LT_EOF
16853class Foo
16854{
16855public:
16856  Foo (void) { a = 0; }
16857private:
16858  int a;
16859};
16860_LT_EOF
16861
16862
16863_lt_libdeps_save_CFLAGS=$CFLAGS
16864case "$CC $CFLAGS " in #(
16865*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
16866*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
16867*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
16868esac
16869
16870if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16871  (eval $ac_compile) 2>&5
16872  ac_status=$?
16873  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16874  test $ac_status = 0; }; then
16875  # Parse the compiler output and extract the necessary
16876  # objects, libraries and library flags.
16877
16878  # Sentinel used to keep track of whether or not we are before
16879  # the conftest object file.
16880  pre_test_object_deps_done=no
16881
16882  for p in `eval "$output_verbose_link_cmd"`; do
16883    case $prev$p in
16884
16885    -L* | -R* | -l*)
16886       # Some compilers place space between "-{L,R}" and the path.
16887       # Remove the space.
16888       if test x-L = "$p" ||
16889          test x-R = "$p"; then
16890	 prev=$p
16891	 continue
16892       fi
16893
16894       # Expand the sysroot to ease extracting the directories later.
16895       if test -z "$prev"; then
16896         case $p in
16897         -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
16898         -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
16899         -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
16900         esac
16901       fi
16902       case $p in
16903       =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
16904       esac
16905       if test no = "$pre_test_object_deps_done"; then
16906	 case $prev in
16907	 -L | -R)
16908	   # Internal compiler library paths should come after those
16909	   # provided the user.  The postdeps already come after the
16910	   # user supplied libs so there is no need to process them.
16911	   if test -z "$compiler_lib_search_path_CXX"; then
16912	     compiler_lib_search_path_CXX=$prev$p
16913	   else
16914	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p"
16915	   fi
16916	   ;;
16917	 # The "-l" case would never come before the object being
16918	 # linked, so don't bother handling this case.
16919	 esac
16920       else
16921	 if test -z "$postdeps_CXX"; then
16922	   postdeps_CXX=$prev$p
16923	 else
16924	   postdeps_CXX="${postdeps_CXX} $prev$p"
16925	 fi
16926       fi
16927       prev=
16928       ;;
16929
16930    *.lto.$objext) ;; # Ignore GCC LTO objects
16931    *.$objext)
16932       # This assumes that the test object file only shows up
16933       # once in the compiler output.
16934       if test "$p" = "conftest.$objext"; then
16935	 pre_test_object_deps_done=yes
16936	 continue
16937       fi
16938
16939       if test no = "$pre_test_object_deps_done"; then
16940	 if test -z "$predep_objects_CXX"; then
16941	   predep_objects_CXX=$p
16942	 else
16943	   predep_objects_CXX="$predep_objects_CXX $p"
16944	 fi
16945       else
16946	 if test -z "$postdep_objects_CXX"; then
16947	   postdep_objects_CXX=$p
16948	 else
16949	   postdep_objects_CXX="$postdep_objects_CXX $p"
16950	 fi
16951       fi
16952       ;;
16953
16954    *) ;; # Ignore the rest.
16955
16956    esac
16957  done
16958
16959  # Clean up.
16960  rm -f a.out a.exe
16961else
16962  echo "libtool.m4: error: problem compiling CXX test program"
16963fi
16964
16965$RM -f confest.$objext
16966CFLAGS=$_lt_libdeps_save_CFLAGS
16967
16968# PORTME: override above test on systems where it is broken
16969case $host_os in
16970interix[3-9]*)
16971  # Interix 3.5 installs completely hosed .la files for C++, so rather than
16972  # hack all around it, let's just trust "g++" to DTRT.
16973  predep_objects_CXX=
16974  postdep_objects_CXX=
16975  postdeps_CXX=
16976  ;;
16977esac
16978
16979
16980case " $postdeps_CXX " in
16981*" -lc "*) archive_cmds_need_lc_CXX=no ;;
16982esac
16983 compiler_lib_search_dirs_CXX=
16984if test -n "${compiler_lib_search_path_CXX}"; then
16985 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'`
16986fi
16987
16988
16989
16990
16991
16992
16993
16994
16995
16996
16997
16998
16999
17000
17001
17002
17003
17004
17005
17006
17007
17008
17009
17010
17011
17012
17013
17014
17015
17016
17017
17018    lt_prog_compiler_wl_CXX=
17019lt_prog_compiler_pic_CXX=
17020lt_prog_compiler_static_CXX=
17021
17022
17023  # C++ specific cases for pic, static, wl, etc.
17024  if test yes = "$GXX"; then
17025    lt_prog_compiler_wl_CXX='-Wl,'
17026    lt_prog_compiler_static_CXX='-static'
17027
17028    case $host_os in
17029    aix*)
17030      # All AIX code is PIC.
17031      if test ia64 = "$host_cpu"; then
17032	# AIX 5 now supports IA64 processor
17033	lt_prog_compiler_static_CXX='-Bstatic'
17034      fi
17035      lt_prog_compiler_pic_CXX='-fPIC'
17036      ;;
17037
17038    amigaos*)
17039      case $host_cpu in
17040      powerpc)
17041            # see comment about AmigaOS4 .so support
17042            lt_prog_compiler_pic_CXX='-fPIC'
17043        ;;
17044      m68k)
17045            # FIXME: we need at least 68020 code to build shared libraries, but
17046            # adding the '-m68020' flag to GCC prevents building anything better,
17047            # like '-m68040'.
17048            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
17049        ;;
17050      esac
17051      ;;
17052
17053    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17054      # PIC is the default for these OSes.
17055      ;;
17056    mingw* | cygwin* | os2* | pw32* | cegcc*)
17057      # This hack is so that the source file can tell whether it is being
17058      # built for inclusion in a dll (and should export symbols for example).
17059      # Although the cygwin gcc ignores -fPIC, still need this for old-style
17060      # (--disable-auto-import) libraries
17061      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17062      case $host_os in
17063      os2*)
17064	lt_prog_compiler_static_CXX='$wl-static'
17065	;;
17066      esac
17067      ;;
17068    darwin* | rhapsody*)
17069      # PIC is the default on this platform
17070      # Common symbols not allowed in MH_DYLIB files
17071      lt_prog_compiler_pic_CXX='-fno-common'
17072      ;;
17073    *djgpp*)
17074      # DJGPP does not support shared libraries at all
17075      lt_prog_compiler_pic_CXX=
17076      ;;
17077    haiku*)
17078      # PIC is the default for Haiku.
17079      # The "-static" flag exists, but is broken.
17080      lt_prog_compiler_static_CXX=
17081      ;;
17082    interix[3-9]*)
17083      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17084      # Instead, we relocate shared libraries at runtime.
17085      ;;
17086    sysv4*MP*)
17087      if test -d /usr/nec; then
17088	lt_prog_compiler_pic_CXX=-Kconform_pic
17089      fi
17090      ;;
17091    hpux*)
17092      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17093      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
17094      # sets the default TLS model and affects inlining.
17095      case $host_cpu in
17096      hppa*64*)
17097	;;
17098      *)
17099	lt_prog_compiler_pic_CXX='-fPIC'
17100	;;
17101      esac
17102      ;;
17103    *qnx* | *nto*)
17104      # QNX uses GNU C++, but need to define -shared option too, otherwise
17105      # it will coredump.
17106      lt_prog_compiler_pic_CXX='-fPIC -shared'
17107      ;;
17108    *)
17109      lt_prog_compiler_pic_CXX='-fPIC'
17110      ;;
17111    esac
17112  else
17113    case $host_os in
17114      aix[4-9]*)
17115	# All AIX code is PIC.
17116	if test ia64 = "$host_cpu"; then
17117	  # AIX 5 now supports IA64 processor
17118	  lt_prog_compiler_static_CXX='-Bstatic'
17119	else
17120	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
17121	fi
17122	;;
17123      chorus*)
17124	case $cc_basename in
17125	cxch68*)
17126	  # Green Hills C++ Compiler
17127	  # _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"
17128	  ;;
17129	esac
17130	;;
17131      mingw* | cygwin* | os2* | pw32* | cegcc*)
17132	# This hack is so that the source file can tell whether it is being
17133	# built for inclusion in a dll (and should export symbols for example).
17134	lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
17135	;;
17136      dgux*)
17137	case $cc_basename in
17138	  ec++*)
17139	    lt_prog_compiler_pic_CXX='-KPIC'
17140	    ;;
17141	  ghcx*)
17142	    # Green Hills C++ Compiler
17143	    lt_prog_compiler_pic_CXX='-pic'
17144	    ;;
17145	  *)
17146	    ;;
17147	esac
17148	;;
17149      freebsd* | dragonfly*)
17150	# FreeBSD uses GNU C++
17151	;;
17152      hpux9* | hpux10* | hpux11*)
17153	case $cc_basename in
17154	  CC*)
17155	    lt_prog_compiler_wl_CXX='-Wl,'
17156	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17157	    if test ia64 != "$host_cpu"; then
17158	      lt_prog_compiler_pic_CXX='+Z'
17159	    fi
17160	    ;;
17161	  aCC*)
17162	    lt_prog_compiler_wl_CXX='-Wl,'
17163	    lt_prog_compiler_static_CXX='$wl-a ${wl}archive'
17164	    case $host_cpu in
17165	    hppa*64*|ia64*)
17166	      # +Z the default
17167	      ;;
17168	    *)
17169	      lt_prog_compiler_pic_CXX='+Z'
17170	      ;;
17171	    esac
17172	    ;;
17173	  *)
17174	    ;;
17175	esac
17176	;;
17177      interix*)
17178	# This is c89, which is MS Visual C++ (no shared libs)
17179	# Anyone wants to do a port?
17180	;;
17181      irix5* | irix6* | nonstopux*)
17182	case $cc_basename in
17183	  CC*)
17184	    lt_prog_compiler_wl_CXX='-Wl,'
17185	    lt_prog_compiler_static_CXX='-non_shared'
17186	    # CC pic flag -KPIC is the default.
17187	    ;;
17188	  *)
17189	    ;;
17190	esac
17191	;;
17192      linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
17193	case $cc_basename in
17194	  KCC*)
17195	    # KAI C++ Compiler
17196	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17197	    lt_prog_compiler_pic_CXX='-fPIC'
17198	    ;;
17199	  ecpc* )
17200	    # old Intel C++ for x86_64, which still supported -KPIC.
17201	    lt_prog_compiler_wl_CXX='-Wl,'
17202	    lt_prog_compiler_pic_CXX='-KPIC'
17203	    lt_prog_compiler_static_CXX='-static'
17204	    ;;
17205	  icpc* )
17206	    # Intel C++, used to be incompatible with GCC.
17207	    # ICC 10 doesn't accept -KPIC any more.
17208	    lt_prog_compiler_wl_CXX='-Wl,'
17209	    lt_prog_compiler_pic_CXX='-fPIC'
17210	    lt_prog_compiler_static_CXX='-static'
17211	    ;;
17212	  pgCC* | pgcpp*)
17213	    # Portland Group C++ compiler
17214	    lt_prog_compiler_wl_CXX='-Wl,'
17215	    lt_prog_compiler_pic_CXX='-fpic'
17216	    lt_prog_compiler_static_CXX='-Bstatic'
17217	    ;;
17218	  cxx*)
17219	    # Compaq C++
17220	    # Make sure the PIC flag is empty.  It appears that all Alpha
17221	    # Linux and Compaq Tru64 Unix objects are PIC.
17222	    lt_prog_compiler_pic_CXX=
17223	    lt_prog_compiler_static_CXX='-non_shared'
17224	    ;;
17225	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
17226	    # IBM XL 8.0, 9.0 on PPC and BlueGene
17227	    lt_prog_compiler_wl_CXX='-Wl,'
17228	    lt_prog_compiler_pic_CXX='-qpic'
17229	    lt_prog_compiler_static_CXX='-qstaticlink'
17230	    ;;
17231	  *)
17232	    case `$CC -V 2>&1 | sed 5q` in
17233	    *Sun\ C*)
17234	      # Sun C++ 5.9
17235	      lt_prog_compiler_pic_CXX='-KPIC'
17236	      lt_prog_compiler_static_CXX='-Bstatic'
17237	      lt_prog_compiler_wl_CXX='-Qoption ld '
17238	      ;;
17239	    esac
17240	    ;;
17241	esac
17242	;;
17243      lynxos*)
17244	;;
17245      m88k*)
17246	;;
17247      mvs*)
17248	case $cc_basename in
17249	  cxx*)
17250	    lt_prog_compiler_pic_CXX='-W c,exportall'
17251	    ;;
17252	  *)
17253	    ;;
17254	esac
17255	;;
17256      netbsd* | netbsdelf*-gnu)
17257	;;
17258      *qnx* | *nto*)
17259        # QNX uses GNU C++, but need to define -shared option too, otherwise
17260        # it will coredump.
17261        lt_prog_compiler_pic_CXX='-fPIC -shared'
17262        ;;
17263      osf3* | osf4* | osf5*)
17264	case $cc_basename in
17265	  KCC*)
17266	    lt_prog_compiler_wl_CXX='--backend -Wl,'
17267	    ;;
17268	  RCC*)
17269	    # Rational C++ 2.4.1
17270	    lt_prog_compiler_pic_CXX='-pic'
17271	    ;;
17272	  cxx*)
17273	    # Digital/Compaq C++
17274	    lt_prog_compiler_wl_CXX='-Wl,'
17275	    # Make sure the PIC flag is empty.  It appears that all Alpha
17276	    # Linux and Compaq Tru64 Unix objects are PIC.
17277	    lt_prog_compiler_pic_CXX=
17278	    lt_prog_compiler_static_CXX='-non_shared'
17279	    ;;
17280	  *)
17281	    ;;
17282	esac
17283	;;
17284      psos*)
17285	;;
17286      solaris*)
17287	case $cc_basename in
17288	  CC* | sunCC*)
17289	    # Sun C++ 4.2, 5.x and Centerline C++
17290	    lt_prog_compiler_pic_CXX='-KPIC'
17291	    lt_prog_compiler_static_CXX='-Bstatic'
17292	    lt_prog_compiler_wl_CXX='-Qoption ld '
17293	    ;;
17294	  gcx*)
17295	    # Green Hills C++ Compiler
17296	    lt_prog_compiler_pic_CXX='-PIC'
17297	    ;;
17298	  *)
17299	    ;;
17300	esac
17301	;;
17302      sunos4*)
17303	case $cc_basename in
17304	  CC*)
17305	    # Sun C++ 4.x
17306	    lt_prog_compiler_pic_CXX='-pic'
17307	    lt_prog_compiler_static_CXX='-Bstatic'
17308	    ;;
17309	  lcc*)
17310	    # Lucid
17311	    lt_prog_compiler_pic_CXX='-pic'
17312	    ;;
17313	  *)
17314	    ;;
17315	esac
17316	;;
17317      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
17318	case $cc_basename in
17319	  CC*)
17320	    lt_prog_compiler_wl_CXX='-Wl,'
17321	    lt_prog_compiler_pic_CXX='-KPIC'
17322	    lt_prog_compiler_static_CXX='-Bstatic'
17323	    ;;
17324	esac
17325	;;
17326      tandem*)
17327	case $cc_basename in
17328	  NCC*)
17329	    # NonStop-UX NCC 3.20
17330	    lt_prog_compiler_pic_CXX='-KPIC'
17331	    ;;
17332	  *)
17333	    ;;
17334	esac
17335	;;
17336      vxworks*)
17337	;;
17338      *)
17339	lt_prog_compiler_can_build_shared_CXX=no
17340	;;
17341    esac
17342  fi
17343
17344case $host_os in
17345  # For platforms that do not support PIC, -DPIC is meaningless:
17346  *djgpp*)
17347    lt_prog_compiler_pic_CXX=
17348    ;;
17349  *)
17350    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
17351    ;;
17352esac
17353
17354{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17355$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17356if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
17357  $as_echo_n "(cached) " >&6
17358else
17359  lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
17360fi
17361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
17362$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
17363lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
17364
17365#
17366# Check to make sure the PIC flag actually works.
17367#
17368if test -n "$lt_prog_compiler_pic_CXX"; then
17369  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17370$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
17371if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
17372  $as_echo_n "(cached) " >&6
17373else
17374  lt_cv_prog_compiler_pic_works_CXX=no
17375   ac_outfile=conftest.$ac_objext
17376   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17377   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"  ## exclude from sc_useless_quotes_in_assignment
17378   # Insert the option either (1) after the last *FLAGS variable, or
17379   # (2) before a word containing "conftest.", or (3) at the end.
17380   # Note that $ac_compile itself does not contain backslashes and begins
17381   # with a dollar sign (not a hyphen), so the echo should work correctly.
17382   # The option is referenced via a variable to avoid confusing sed.
17383   lt_compile=`echo "$ac_compile" | $SED \
17384   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17385   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17386   -e 's:$: $lt_compiler_flag:'`
17387   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17388   (eval "$lt_compile" 2>conftest.err)
17389   ac_status=$?
17390   cat conftest.err >&5
17391   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17392   if (exit $ac_status) && test -s "$ac_outfile"; then
17393     # The compiler can only warn and ignore the option if not recognized
17394     # So say no if there are warnings other than the usual output.
17395     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
17396     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17397     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
17398       lt_cv_prog_compiler_pic_works_CXX=yes
17399     fi
17400   fi
17401   $RM conftest*
17402
17403fi
17404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
17405$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
17406
17407if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then
17408    case $lt_prog_compiler_pic_CXX in
17409     "" | " "*) ;;
17410     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
17411     esac
17412else
17413    lt_prog_compiler_pic_CXX=
17414     lt_prog_compiler_can_build_shared_CXX=no
17415fi
17416
17417fi
17418
17419
17420
17421
17422
17423#
17424# Check to make sure the static flag actually works.
17425#
17426wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
17427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17428$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
17429if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
17430  $as_echo_n "(cached) " >&6
17431else
17432  lt_cv_prog_compiler_static_works_CXX=no
17433   save_LDFLAGS=$LDFLAGS
17434   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
17435   echo "$lt_simple_link_test_code" > conftest.$ac_ext
17436   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
17437     # The linker can only warn and ignore the option if not recognized
17438     # So say no if there are warnings
17439     if test -s conftest.err; then
17440       # Append any errors to the config.log.
17441       cat conftest.err 1>&5
17442       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
17443       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
17444       if diff conftest.exp conftest.er2 >/dev/null; then
17445         lt_cv_prog_compiler_static_works_CXX=yes
17446       fi
17447     else
17448       lt_cv_prog_compiler_static_works_CXX=yes
17449     fi
17450   fi
17451   $RM -r conftest*
17452   LDFLAGS=$save_LDFLAGS
17453
17454fi
17455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
17456$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
17457
17458if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then
17459    :
17460else
17461    lt_prog_compiler_static_CXX=
17462fi
17463
17464
17465
17466
17467    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17468$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17469if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17470  $as_echo_n "(cached) " >&6
17471else
17472  lt_cv_prog_compiler_c_o_CXX=no
17473   $RM -r conftest 2>/dev/null
17474   mkdir conftest
17475   cd conftest
17476   mkdir out
17477   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17478
17479   lt_compiler_flag="-o out/conftest2.$ac_objext"
17480   # Insert the option either (1) after the last *FLAGS variable, or
17481   # (2) before a word containing "conftest.", or (3) at the end.
17482   # Note that $ac_compile itself does not contain backslashes and begins
17483   # with a dollar sign (not a hyphen), so the echo should work correctly.
17484   lt_compile=`echo "$ac_compile" | $SED \
17485   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17486   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17487   -e 's:$: $lt_compiler_flag:'`
17488   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17489   (eval "$lt_compile" 2>out/conftest.err)
17490   ac_status=$?
17491   cat out/conftest.err >&5
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17494   then
17495     # The compiler can only warn and ignore the option if not recognized
17496     # So say no if there are warnings
17497     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17498     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17499     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17500       lt_cv_prog_compiler_c_o_CXX=yes
17501     fi
17502   fi
17503   chmod u+w . 2>&5
17504   $RM conftest*
17505   # SGI C++ compiler will create directory out/ii_files/ for
17506   # template instantiation
17507   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17508   $RM out/* && rmdir out
17509   cd ..
17510   $RM -r conftest
17511   $RM conftest*
17512
17513fi
17514{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17515$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17516
17517
17518
17519    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
17520$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
17521if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
17522  $as_echo_n "(cached) " >&6
17523else
17524  lt_cv_prog_compiler_c_o_CXX=no
17525   $RM -r conftest 2>/dev/null
17526   mkdir conftest
17527   cd conftest
17528   mkdir out
17529   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17530
17531   lt_compiler_flag="-o out/conftest2.$ac_objext"
17532   # Insert the option either (1) after the last *FLAGS variable, or
17533   # (2) before a word containing "conftest.", or (3) at the end.
17534   # Note that $ac_compile itself does not contain backslashes and begins
17535   # with a dollar sign (not a hyphen), so the echo should work correctly.
17536   lt_compile=`echo "$ac_compile" | $SED \
17537   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17538   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17539   -e 's:$: $lt_compiler_flag:'`
17540   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
17541   (eval "$lt_compile" 2>out/conftest.err)
17542   ac_status=$?
17543   cat out/conftest.err >&5
17544   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17545   if (exit $ac_status) && test -s out/conftest2.$ac_objext
17546   then
17547     # The compiler can only warn and ignore the option if not recognized
17548     # So say no if there are warnings
17549     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17550     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17551     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17552       lt_cv_prog_compiler_c_o_CXX=yes
17553     fi
17554   fi
17555   chmod u+w . 2>&5
17556   $RM conftest*
17557   # SGI C++ compiler will create directory out/ii_files/ for
17558   # template instantiation
17559   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17560   $RM out/* && rmdir out
17561   cd ..
17562   $RM -r conftest
17563   $RM conftest*
17564
17565fi
17566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17567$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17568
17569
17570
17571
17572hard_links=nottested
17573if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then
17574  # do not overwrite the value of need_locks provided by the user
17575  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17576$as_echo_n "checking if we can lock with hard links... " >&6; }
17577  hard_links=yes
17578  $RM conftest*
17579  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17580  touch conftest.a
17581  ln conftest.a conftest.b 2>&5 || hard_links=no
17582  ln conftest.a conftest.b 2>/dev/null && hard_links=no
17583  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17584$as_echo "$hard_links" >&6; }
17585  if test no = "$hard_links"; then
17586    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5
17587$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;}
17588    need_locks=warn
17589  fi
17590else
17591  need_locks=no
17592fi
17593
17594
17595
17596    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17597$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17598
17599  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17600  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17601  case $host_os in
17602  aix[4-9]*)
17603    # If we're using GNU nm, then we don't want the "-C" option.
17604    # -C means demangle to GNU nm, but means don't demangle to AIX nm.
17605    # Without the "-l" option, or with the "-B" option, AIX nm treats
17606    # weak defined symbols like other global defined symbols, whereas
17607    # GNU nm marks them as "W".
17608    # While the 'weak' keyword is ignored in the Export File, we need
17609    # it in the Import File for the 'aix-soname' feature, so we have
17610    # to replace the "-B" option with "-P" for AIX nm.
17611    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17612      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols'
17613    else
17614      export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols'
17615    fi
17616    ;;
17617  pw32*)
17618    export_symbols_cmds_CXX=$ltdll_cmds
17619    ;;
17620  cygwin* | mingw* | cegcc*)
17621    case $cc_basename in
17622    cl*)
17623      exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
17624      ;;
17625    *)
17626      export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17627      exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
17628      ;;
17629    esac
17630    ;;
17631  linux* | k*bsd*-gnu | gnu*)
17632    link_all_deplibs_CXX=no
17633    ;;
17634  *)
17635    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17636    ;;
17637  esac
17638
17639{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17640$as_echo "$ld_shlibs_CXX" >&6; }
17641test no = "$ld_shlibs_CXX" && can_build_shared=no
17642
17643with_gnu_ld_CXX=$with_gnu_ld
17644
17645
17646
17647
17648
17649
17650#
17651# Do we need to explicitly link libc?
17652#
17653case "x$archive_cmds_need_lc_CXX" in
17654x|xyes)
17655  # Assume -lc should be added
17656  archive_cmds_need_lc_CXX=yes
17657
17658  if test yes,yes = "$GCC,$enable_shared"; then
17659    case $archive_cmds_CXX in
17660    *'~'*)
17661      # FIXME: we may have to deal with multi-command sequences.
17662      ;;
17663    '$CC '*)
17664      # Test whether the compiler implicitly links with -lc since on some
17665      # systems, -lgcc has to come before -lc. If gcc already passes -lc
17666      # to ld, don't add -lc before -lgcc.
17667      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17668$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17669if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17670  $as_echo_n "(cached) " >&6
17671else
17672  $RM conftest*
17673	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17674
17675	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17676  (eval $ac_compile) 2>&5
17677  ac_status=$?
17678  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17679  test $ac_status = 0; } 2>conftest.err; then
17680	  soname=conftest
17681	  lib=conftest
17682	  libobjs=conftest.$ac_objext
17683	  deplibs=
17684	  wl=$lt_prog_compiler_wl_CXX
17685	  pic_flag=$lt_prog_compiler_pic_CXX
17686	  compiler_flags=-v
17687	  linker_flags=-v
17688	  verstring=
17689	  output_objdir=.
17690	  libname=conftest
17691	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17692	  allow_undefined_flag_CXX=
17693	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17694  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17695  ac_status=$?
17696  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17697  test $ac_status = 0; }
17698	  then
17699	    lt_cv_archive_cmds_need_lc_CXX=no
17700	  else
17701	    lt_cv_archive_cmds_need_lc_CXX=yes
17702	  fi
17703	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17704	else
17705	  cat conftest.err 1>&5
17706	fi
17707	$RM conftest*
17708
17709fi
17710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17711$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17712      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17713      ;;
17714    esac
17715  fi
17716  ;;
17717esac
17718
17719
17720
17721
17722
17723
17724
17725
17726
17727
17728
17729
17730
17731
17732
17733
17734
17735
17736
17737
17738
17739
17740
17741
17742
17743
17744
17745
17746
17747
17748
17749
17750
17751
17752
17753
17754
17755
17756
17757
17758
17759
17760
17761
17762
17763
17764
17765
17766
17767
17768
17769
17770
17771
17772
17773
17774
17775
17776
17777
17778
17779
17780    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17781$as_echo_n "checking dynamic linker characteristics... " >&6; }
17782
17783library_names_spec=
17784libname_spec='lib$name'
17785soname_spec=
17786shrext_cmds=.so
17787postinstall_cmds=
17788postuninstall_cmds=
17789finish_cmds=
17790finish_eval=
17791shlibpath_var=
17792shlibpath_overrides_runpath=unknown
17793version_type=none
17794dynamic_linker="$host_os ld.so"
17795sys_lib_dlsearch_path_spec="/lib /usr/lib"
17796need_lib_prefix=unknown
17797hardcode_into_libs=no
17798
17799# when you set need_version to no, make sure it does not cause -set_version
17800# flags to be left without arguments
17801need_version=unknown
17802
17803
17804
17805case $host_os in
17806aix3*)
17807  version_type=linux # correct to gnu/linux during the next big refactor
17808  library_names_spec='$libname$release$shared_ext$versuffix $libname.a'
17809  shlibpath_var=LIBPATH
17810
17811  # AIX 3 has no versioning support, so we append a major version to the name.
17812  soname_spec='$libname$release$shared_ext$major'
17813  ;;
17814
17815aix[4-9]*)
17816  version_type=linux # correct to gnu/linux during the next big refactor
17817  need_lib_prefix=no
17818  need_version=no
17819  hardcode_into_libs=yes
17820  if test ia64 = "$host_cpu"; then
17821    # AIX 5 supports IA64
17822    library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext'
17823    shlibpath_var=LD_LIBRARY_PATH
17824  else
17825    # With GCC up to 2.95.x, collect2 would create an import file
17826    # for dependence libraries.  The import file would start with
17827    # the line '#! .'.  This would cause the generated library to
17828    # depend on '.', always an invalid library.  This was fixed in
17829    # development snapshots of GCC prior to 3.0.
17830    case $host_os in
17831      aix4 | aix4.[01] | aix4.[01].*)
17832      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17833	   echo ' yes '
17834	   echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then
17835	:
17836      else
17837	can_build_shared=no
17838      fi
17839      ;;
17840    esac
17841    # Using Import Files as archive members, it is possible to support
17842    # filename-based versioning of shared library archives on AIX. While
17843    # this would work for both with and without runtime linking, it will
17844    # prevent static linking of such archives. So we do filename-based
17845    # shared library versioning with .so extension only, which is used
17846    # when both runtime linking and shared linking is enabled.
17847    # Unfortunately, runtime linking may impact performance, so we do
17848    # not want this to be the default eventually. Also, we use the
17849    # versioned .so libs for executables only if there is the -brtl
17850    # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only.
17851    # To allow for filename-based versioning support, we need to create
17852    # libNAME.so.V as an archive file, containing:
17853    # *) an Import File, referring to the versioned filename of the
17854    #    archive as well as the shared archive member, telling the
17855    #    bitwidth (32 or 64) of that shared object, and providing the
17856    #    list of exported symbols of that shared object, eventually
17857    #    decorated with the 'weak' keyword
17858    # *) the shared object with the F_LOADONLY flag set, to really avoid
17859    #    it being seen by the linker.
17860    # At run time we better use the real file rather than another symlink,
17861    # but for link time we create the symlink libNAME.so -> libNAME.so.V
17862
17863    case $with_aix_soname,$aix_use_runtimelinking in
17864    # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct
17865    # soname into executable. Probably we can add versioning support to
17866    # collect2, so additional links can be useful in future.
17867    aix,yes) # traditional libtool
17868      dynamic_linker='AIX unversionable lib.so'
17869      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17870      # instead of lib<name>.a to let people know that these are not
17871      # typical AIX shared libraries.
17872      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17873      ;;
17874    aix,no) # traditional AIX only
17875      dynamic_linker='AIX lib.a(lib.so.V)'
17876      # We preserve .a as extension for shared libraries through AIX4.2
17877      # and later when we are not doing run time linking.
17878      library_names_spec='$libname$release.a $libname.a'
17879      soname_spec='$libname$release$shared_ext$major'
17880      ;;
17881    svr4,*) # full svr4 only
17882      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)"
17883      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17884      # We do not specify a path in Import Files, so LIBPATH fires.
17885      shlibpath_overrides_runpath=yes
17886      ;;
17887    *,yes) # both, prefer svr4
17888      dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)"
17889      library_names_spec='$libname$release$shared_ext$major $libname$shared_ext'
17890      # unpreferred sharedlib libNAME.a needs extra handling
17891      postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"'
17892      postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"'
17893      # We do not specify a path in Import Files, so LIBPATH fires.
17894      shlibpath_overrides_runpath=yes
17895      ;;
17896    *,no) # both, prefer aix
17897      dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)"
17898      library_names_spec='$libname$release.a $libname.a'
17899      soname_spec='$libname$release$shared_ext$major'
17900      # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling
17901      postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)'
17902      postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"'
17903      ;;
17904    esac
17905    shlibpath_var=LIBPATH
17906  fi
17907  ;;
17908
17909amigaos*)
17910  case $host_cpu in
17911  powerpc)
17912    # Since July 2007 AmigaOS4 officially supports .so libraries.
17913    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17914    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17915    ;;
17916  m68k)
17917    library_names_spec='$libname.ixlibrary $libname.a'
17918    # Create ${libname}_ixlibrary.a entries in /sys/libs.
17919    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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'
17920    ;;
17921  esac
17922  ;;
17923
17924beos*)
17925  library_names_spec='$libname$shared_ext'
17926  dynamic_linker="$host_os ld.so"
17927  shlibpath_var=LIBRARY_PATH
17928  ;;
17929
17930bsdi[45]*)
17931  version_type=linux # correct to gnu/linux during the next big refactor
17932  need_version=no
17933  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
17934  soname_spec='$libname$release$shared_ext$major'
17935  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17936  shlibpath_var=LD_LIBRARY_PATH
17937  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17938  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17939  # the default ld.so.conf also contains /usr/contrib/lib and
17940  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17941  # libtool to hard-code these into programs
17942  ;;
17943
17944cygwin* | mingw* | pw32* | cegcc*)
17945  version_type=windows
17946  shrext_cmds=.dll
17947  need_version=no
17948  need_lib_prefix=no
17949
17950  case $GCC,$cc_basename in
17951  yes,*)
17952    # gcc
17953    library_names_spec='$libname.dll.a'
17954    # DLL is installed to $(libdir)/../bin by postinstall_cmds
17955    postinstall_cmds='base_file=`basename \$file`~
17956      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
17957      dldir=$destdir/`dirname \$dlpath`~
17958      test -d \$dldir || mkdir -p \$dldir~
17959      $install_prog $dir/$dlname \$dldir/$dlname~
17960      chmod a+x \$dldir/$dlname~
17961      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17962        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17963      fi'
17964    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17965      dlpath=$dir/\$dldll~
17966       $RM \$dlpath'
17967    shlibpath_overrides_runpath=yes
17968
17969    case $host_os in
17970    cygwin*)
17971      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17972      soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17973
17974      ;;
17975    mingw* | cegcc*)
17976      # MinGW DLLs use traditional 'lib' prefix
17977      soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17978      ;;
17979    pw32*)
17980      # pw32 DLLs use 'pw' prefix rather than 'lib'
17981      library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17982      ;;
17983    esac
17984    dynamic_linker='Win32 ld.exe'
17985    ;;
17986
17987  *,cl*)
17988    # Native MSVC
17989    libname_spec='$name'
17990    soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext'
17991    library_names_spec='$libname.dll.lib'
17992
17993    case $build_os in
17994    mingw*)
17995      sys_lib_search_path_spec=
17996      lt_save_ifs=$IFS
17997      IFS=';'
17998      for lt_path in $LIB
17999      do
18000        IFS=$lt_save_ifs
18001        # Let DOS variable expansion print the short 8.3 style file name.
18002        lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
18003        sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
18004      done
18005      IFS=$lt_save_ifs
18006      # Convert to MSYS style.
18007      sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
18008      ;;
18009    cygwin*)
18010      # Convert to unix form, then to dos form, then back to unix form
18011      # but this time dos style (no spaces!) so that the unix form looks
18012      # like /cygdrive/c/PROGRA~1:/cygdr...
18013      sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
18014      sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
18015      sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18016      ;;
18017    *)
18018      sys_lib_search_path_spec=$LIB
18019      if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
18020        # It is most probably a Windows format PATH.
18021        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18022      else
18023        sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18024      fi
18025      # FIXME: find the short name or the path components, as spaces are
18026      # common. (e.g. "Program Files" -> "PROGRA~1")
18027      ;;
18028    esac
18029
18030    # DLL is installed to $(libdir)/../bin by postinstall_cmds
18031    postinstall_cmds='base_file=`basename \$file`~
18032      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~
18033      dldir=$destdir/`dirname \$dlpath`~
18034      test -d \$dldir || mkdir -p \$dldir~
18035      $install_prog $dir/$dlname \$dldir/$dlname'
18036    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18037      dlpath=$dir/\$dldll~
18038       $RM \$dlpath'
18039    shlibpath_overrides_runpath=yes
18040    dynamic_linker='Win32 link.exe'
18041    ;;
18042
18043  *)
18044    # Assume MSVC wrapper
18045    library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib'
18046    dynamic_linker='Win32 ld.exe'
18047    ;;
18048  esac
18049  # FIXME: first we should search . and the directory the executable is in
18050  shlibpath_var=PATH
18051  ;;
18052
18053darwin* | rhapsody*)
18054  dynamic_linker="$host_os dyld"
18055  version_type=darwin
18056  need_lib_prefix=no
18057  need_version=no
18058  library_names_spec='$libname$release$major$shared_ext $libname$shared_ext'
18059  soname_spec='$libname$release$major$shared_ext'
18060  shlibpath_overrides_runpath=yes
18061  shlibpath_var=DYLD_LIBRARY_PATH
18062  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
18063
18064  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18065  ;;
18066
18067dgux*)
18068  version_type=linux # correct to gnu/linux during the next big refactor
18069  need_lib_prefix=no
18070  need_version=no
18071  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18072  soname_spec='$libname$release$shared_ext$major'
18073  shlibpath_var=LD_LIBRARY_PATH
18074  ;;
18075
18076freebsd* | dragonfly*)
18077  # DragonFly does not have aout.  When/if they implement a new
18078  # versioning mechanism, adjust this.
18079  if test -x /usr/bin/objformat; then
18080    objformat=`/usr/bin/objformat`
18081  else
18082    case $host_os in
18083    freebsd[23].*) objformat=aout ;;
18084    *) objformat=elf ;;
18085    esac
18086  fi
18087  version_type=freebsd-$objformat
18088  case $version_type in
18089    freebsd-elf*)
18090      library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18091      soname_spec='$libname$release$shared_ext$major'
18092      need_version=no
18093      need_lib_prefix=no
18094      ;;
18095    freebsd-*)
18096      library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18097      need_version=yes
18098      ;;
18099  esac
18100  shlibpath_var=LD_LIBRARY_PATH
18101  case $host_os in
18102  freebsd2.*)
18103    shlibpath_overrides_runpath=yes
18104    ;;
18105  freebsd3.[01]* | freebsdelf3.[01]*)
18106    shlibpath_overrides_runpath=yes
18107    hardcode_into_libs=yes
18108    ;;
18109  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
18110  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
18111    shlibpath_overrides_runpath=no
18112    hardcode_into_libs=yes
18113    ;;
18114  *) # from 4.6 on, and DragonFly
18115    shlibpath_overrides_runpath=yes
18116    hardcode_into_libs=yes
18117    ;;
18118  esac
18119  ;;
18120
18121haiku*)
18122  version_type=linux # correct to gnu/linux during the next big refactor
18123  need_lib_prefix=no
18124  need_version=no
18125  dynamic_linker="$host_os runtime_loader"
18126  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18127  soname_spec='$libname$release$shared_ext$major'
18128  shlibpath_var=LIBRARY_PATH
18129  shlibpath_overrides_runpath=no
18130  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
18131  hardcode_into_libs=yes
18132  ;;
18133
18134hpux9* | hpux10* | hpux11*)
18135  # Give a soname corresponding to the major version so that dld.sl refuses to
18136  # link against other versions.
18137  version_type=sunos
18138  need_lib_prefix=no
18139  need_version=no
18140  case $host_cpu in
18141  ia64*)
18142    shrext_cmds='.so'
18143    hardcode_into_libs=yes
18144    dynamic_linker="$host_os dld.so"
18145    shlibpath_var=LD_LIBRARY_PATH
18146    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18147    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18148    soname_spec='$libname$release$shared_ext$major'
18149    if test 32 = "$HPUX_IA64_MODE"; then
18150      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
18151      sys_lib_dlsearch_path_spec=/usr/lib/hpux32
18152    else
18153      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
18154      sys_lib_dlsearch_path_spec=/usr/lib/hpux64
18155    fi
18156    ;;
18157  hppa*64*)
18158    shrext_cmds='.sl'
18159    hardcode_into_libs=yes
18160    dynamic_linker="$host_os dld.sl"
18161    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
18162    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
18163    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18164    soname_spec='$libname$release$shared_ext$major'
18165    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18166    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18167    ;;
18168  *)
18169    shrext_cmds='.sl'
18170    dynamic_linker="$host_os dld.sl"
18171    shlibpath_var=SHLIB_PATH
18172    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
18173    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18174    soname_spec='$libname$release$shared_ext$major'
18175    ;;
18176  esac
18177  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
18178  postinstall_cmds='chmod 555 $lib'
18179  # or fails outright, so override atomically:
18180  install_override_mode=555
18181  ;;
18182
18183interix[3-9]*)
18184  version_type=linux # correct to gnu/linux during the next big refactor
18185  need_lib_prefix=no
18186  need_version=no
18187  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18188  soname_spec='$libname$release$shared_ext$major'
18189  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
18190  shlibpath_var=LD_LIBRARY_PATH
18191  shlibpath_overrides_runpath=no
18192  hardcode_into_libs=yes
18193  ;;
18194
18195irix5* | irix6* | nonstopux*)
18196  case $host_os in
18197    nonstopux*) version_type=nonstopux ;;
18198    *)
18199	if test yes = "$lt_cv_prog_gnu_ld"; then
18200		version_type=linux # correct to gnu/linux during the next big refactor
18201	else
18202		version_type=irix
18203	fi ;;
18204  esac
18205  need_lib_prefix=no
18206  need_version=no
18207  soname_spec='$libname$release$shared_ext$major'
18208  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext'
18209  case $host_os in
18210  irix5* | nonstopux*)
18211    libsuff= shlibsuff=
18212    ;;
18213  *)
18214    case $LD in # libtool.m4 will add one of these switches to LD
18215    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18216      libsuff= shlibsuff= libmagic=32-bit;;
18217    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18218      libsuff=32 shlibsuff=N32 libmagic=N32;;
18219    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18220      libsuff=64 shlibsuff=64 libmagic=64-bit;;
18221    *) libsuff= shlibsuff= libmagic=never-match;;
18222    esac
18223    ;;
18224  esac
18225  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18226  shlibpath_overrides_runpath=no
18227  sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff"
18228  sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff"
18229  hardcode_into_libs=yes
18230  ;;
18231
18232# No shared lib support for Linux oldld, aout, or coff.
18233linux*oldld* | linux*aout* | linux*coff*)
18234  dynamic_linker=no
18235  ;;
18236
18237linux*android*)
18238  version_type=none # Android doesn't support versioned libraries.
18239  need_lib_prefix=no
18240  need_version=no
18241  library_names_spec='$libname$release$shared_ext'
18242  soname_spec='$libname$release$shared_ext'
18243  finish_cmds=
18244  shlibpath_var=LD_LIBRARY_PATH
18245  shlibpath_overrides_runpath=yes
18246
18247  # This implies no fast_install, which is unacceptable.
18248  # Some rework will be needed to allow for fast_install
18249  # before this can be enabled.
18250  hardcode_into_libs=yes
18251
18252  dynamic_linker='Android linker'
18253  # Don't embed -rpath directories since the linker doesn't support them.
18254  hardcode_libdir_flag_spec_CXX='-L$libdir'
18255  ;;
18256
18257# This must be glibc/ELF.
18258linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
18259  version_type=linux # correct to gnu/linux during the next big refactor
18260  need_lib_prefix=no
18261  need_version=no
18262  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18263  soname_spec='$libname$release$shared_ext$major'
18264  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18265  shlibpath_var=LD_LIBRARY_PATH
18266  shlibpath_overrides_runpath=no
18267
18268  # Some binutils ld are patched to set DT_RUNPATH
18269  if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
18270  $as_echo_n "(cached) " >&6
18271else
18272  lt_cv_shlibpath_overrides_runpath=no
18273    save_LDFLAGS=$LDFLAGS
18274    save_libdir=$libdir
18275    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
18276	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
18277    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18278/* end confdefs.h.  */
18279
18280int
18281main ()
18282{
18283
18284  ;
18285  return 0;
18286}
18287_ACEOF
18288if ac_fn_cxx_try_link "$LINENO"; then :
18289  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
18290  lt_cv_shlibpath_overrides_runpath=yes
18291fi
18292fi
18293rm -f core conftest.err conftest.$ac_objext \
18294    conftest$ac_exeext conftest.$ac_ext
18295    LDFLAGS=$save_LDFLAGS
18296    libdir=$save_libdir
18297
18298fi
18299
18300  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
18301
18302  # This implies no fast_install, which is unacceptable.
18303  # Some rework will be needed to allow for fast_install
18304  # before this can be enabled.
18305  hardcode_into_libs=yes
18306
18307  # Ideally, we could use ldconfig to report *all* directores which are
18308  # searched for libraries, however this is still not possible.  Aside from not
18309  # being certain /sbin/ldconfig is available, command
18310  # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64,
18311  # even though it is searched at run-time.  Try to do the best guess by
18312  # appending ld.so.conf contents (and includes) to the search path.
18313  if test -f /etc/ld.so.conf; then
18314    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' ' '`
18315    sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
18316  fi
18317
18318  # We used to test for /lib/ld.so.1 and disable shared libraries on
18319  # powerpc, because MkLinux only supported shared libraries with the
18320  # GNU dynamic linker.  Since this was broken with cross compilers,
18321  # most powerpc-linux boxes support dynamic linking these days and
18322  # people can always --disable-shared, the test was removed, and we
18323  # assume the GNU/Linux dynamic linker is in use.
18324  dynamic_linker='GNU/Linux ld.so'
18325  ;;
18326
18327netbsdelf*-gnu)
18328  version_type=linux
18329  need_lib_prefix=no
18330  need_version=no
18331  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18332  soname_spec='${libname}${release}${shared_ext}$major'
18333  shlibpath_var=LD_LIBRARY_PATH
18334  shlibpath_overrides_runpath=no
18335  hardcode_into_libs=yes
18336  dynamic_linker='NetBSD ld.elf_so'
18337  ;;
18338
18339netbsd*)
18340  version_type=sunos
18341  need_lib_prefix=no
18342  need_version=no
18343  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18344    library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18345    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18346    dynamic_linker='NetBSD (a.out) ld.so'
18347  else
18348    library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18349    soname_spec='$libname$release$shared_ext$major'
18350    dynamic_linker='NetBSD ld.elf_so'
18351  fi
18352  shlibpath_var=LD_LIBRARY_PATH
18353  shlibpath_overrides_runpath=yes
18354  hardcode_into_libs=yes
18355  ;;
18356
18357newsos6)
18358  version_type=linux # correct to gnu/linux during the next big refactor
18359  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18360  shlibpath_var=LD_LIBRARY_PATH
18361  shlibpath_overrides_runpath=yes
18362  ;;
18363
18364*nto* | *qnx*)
18365  version_type=qnx
18366  need_lib_prefix=no
18367  need_version=no
18368  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18369  soname_spec='$libname$release$shared_ext$major'
18370  shlibpath_var=LD_LIBRARY_PATH
18371  shlibpath_overrides_runpath=no
18372  hardcode_into_libs=yes
18373  dynamic_linker='ldqnx.so'
18374  ;;
18375
18376openbsd* | bitrig*)
18377  version_type=sunos
18378  sys_lib_dlsearch_path_spec=/usr/lib
18379  need_lib_prefix=no
18380  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then
18381    need_version=no
18382  else
18383    need_version=yes
18384  fi
18385  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18386  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18387  shlibpath_var=LD_LIBRARY_PATH
18388  shlibpath_overrides_runpath=yes
18389  ;;
18390
18391os2*)
18392  libname_spec='$name'
18393  version_type=windows
18394  shrext_cmds=.dll
18395  need_version=no
18396  need_lib_prefix=no
18397  # OS/2 can only load a DLL with a base name of 8 characters or less.
18398  soname_spec='`test -n "$os2dllname" && libname="$os2dllname";
18399    v=$($ECHO $release$versuffix | tr -d .-);
18400    n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _);
18401    $ECHO $n$v`$shared_ext'
18402  library_names_spec='${libname}_dll.$libext'
18403  dynamic_linker='OS/2 ld.exe'
18404  shlibpath_var=BEGINLIBPATH
18405  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18406  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18407  postinstall_cmds='base_file=`basename \$file`~
18408    dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~
18409    dldir=$destdir/`dirname \$dlpath`~
18410    test -d \$dldir || mkdir -p \$dldir~
18411    $install_prog $dir/$dlname \$dldir/$dlname~
18412    chmod a+x \$dldir/$dlname~
18413    if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
18414      eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
18415    fi'
18416  postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~
18417    dlpath=$dir/\$dldll~
18418    $RM \$dlpath'
18419  ;;
18420
18421osf3* | osf4* | osf5*)
18422  version_type=osf
18423  need_lib_prefix=no
18424  need_version=no
18425  soname_spec='$libname$release$shared_ext$major'
18426  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18427  shlibpath_var=LD_LIBRARY_PATH
18428  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18429  sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
18430  ;;
18431
18432rdos*)
18433  dynamic_linker=no
18434  ;;
18435
18436solaris*)
18437  version_type=linux # correct to gnu/linux during the next big refactor
18438  need_lib_prefix=no
18439  need_version=no
18440  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18441  soname_spec='$libname$release$shared_ext$major'
18442  shlibpath_var=LD_LIBRARY_PATH
18443  shlibpath_overrides_runpath=yes
18444  hardcode_into_libs=yes
18445  # ldd complains unless libraries are executable
18446  postinstall_cmds='chmod +x $lib'
18447  ;;
18448
18449sunos4*)
18450  version_type=sunos
18451  library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix'
18452  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18453  shlibpath_var=LD_LIBRARY_PATH
18454  shlibpath_overrides_runpath=yes
18455  if test yes = "$with_gnu_ld"; then
18456    need_lib_prefix=no
18457  fi
18458  need_version=yes
18459  ;;
18460
18461sysv4 | sysv4.3*)
18462  version_type=linux # correct to gnu/linux during the next big refactor
18463  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18464  soname_spec='$libname$release$shared_ext$major'
18465  shlibpath_var=LD_LIBRARY_PATH
18466  case $host_vendor in
18467    sni)
18468      shlibpath_overrides_runpath=no
18469      need_lib_prefix=no
18470      runpath_var=LD_RUN_PATH
18471      ;;
18472    siemens)
18473      need_lib_prefix=no
18474      ;;
18475    motorola)
18476      need_lib_prefix=no
18477      need_version=no
18478      shlibpath_overrides_runpath=no
18479      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18480      ;;
18481  esac
18482  ;;
18483
18484sysv4*MP*)
18485  if test -d /usr/nec; then
18486    version_type=linux # correct to gnu/linux during the next big refactor
18487    library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext'
18488    soname_spec='$libname$shared_ext.$major'
18489    shlibpath_var=LD_LIBRARY_PATH
18490  fi
18491  ;;
18492
18493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18494  version_type=sco
18495  need_lib_prefix=no
18496  need_version=no
18497  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext'
18498  soname_spec='$libname$release$shared_ext$major'
18499  shlibpath_var=LD_LIBRARY_PATH
18500  shlibpath_overrides_runpath=yes
18501  hardcode_into_libs=yes
18502  if test yes = "$with_gnu_ld"; then
18503    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18504  else
18505    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18506    case $host_os in
18507      sco3.2v5*)
18508        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18509	;;
18510    esac
18511  fi
18512  sys_lib_dlsearch_path_spec='/usr/lib'
18513  ;;
18514
18515tpf*)
18516  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
18517  version_type=linux # correct to gnu/linux during the next big refactor
18518  need_lib_prefix=no
18519  need_version=no
18520  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18521  shlibpath_var=LD_LIBRARY_PATH
18522  shlibpath_overrides_runpath=no
18523  hardcode_into_libs=yes
18524  ;;
18525
18526uts4*)
18527  version_type=linux # correct to gnu/linux during the next big refactor
18528  library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext'
18529  soname_spec='$libname$release$shared_ext$major'
18530  shlibpath_var=LD_LIBRARY_PATH
18531  ;;
18532
18533*)
18534  dynamic_linker=no
18535  ;;
18536esac
18537{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
18538$as_echo "$dynamic_linker" >&6; }
18539test no = "$dynamic_linker" && can_build_shared=no
18540
18541variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18542if test yes = "$GCC"; then
18543  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18544fi
18545
18546if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then
18547  sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec
18548fi
18549
18550if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then
18551  sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec
18552fi
18553
18554# remember unaugmented sys_lib_dlsearch_path content for libtool script decls...
18555configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec
18556
18557# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code
18558func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH"
18559
18560# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool
18561configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH
18562
18563
18564
18565
18566
18567
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579
18580
18581
18582
18583
18584
18585
18586
18587
18588
18589
18590
18591
18592
18593
18594
18595
18596
18597
18598
18599
18600
18601
18602    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
18603$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
18604hardcode_action_CXX=
18605if test -n "$hardcode_libdir_flag_spec_CXX" ||
18606   test -n "$runpath_var_CXX" ||
18607   test yes = "$hardcode_automatic_CXX"; then
18608
18609  # We can hardcode non-existent directories.
18610  if test no != "$hardcode_direct_CXX" &&
18611     # If the only mechanism to avoid hardcoding is shlibpath_var, we
18612     # have to relink, otherwise we might link with an installed library
18613     # when we should be linking with a yet-to-be-installed one
18614     ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" &&
18615     test no != "$hardcode_minus_L_CXX"; then
18616    # Linking always hardcodes the temporary library directory.
18617    hardcode_action_CXX=relink
18618  else
18619    # We can link without hardcoding, and we can hardcode nonexisting dirs.
18620    hardcode_action_CXX=immediate
18621  fi
18622else
18623  # We cannot hardcode anything, or else we can only hardcode existing
18624  # directories.
18625  hardcode_action_CXX=unsupported
18626fi
18627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
18628$as_echo "$hardcode_action_CXX" >&6; }
18629
18630if test relink = "$hardcode_action_CXX" ||
18631   test yes = "$inherit_rpath_CXX"; then
18632  # Fast installation is not supported
18633  enable_fast_install=no
18634elif test yes = "$shlibpath_overrides_runpath" ||
18635     test no = "$enable_shared"; then
18636  # Fast installation is not necessary
18637  enable_fast_install=needless
18638fi
18639
18640
18641
18642
18643
18644
18645
18646  fi # test -n "$compiler"
18647
18648  CC=$lt_save_CC
18649  CFLAGS=$lt_save_CFLAGS
18650  LDCXX=$LD
18651  LD=$lt_save_LD
18652  GCC=$lt_save_GCC
18653  with_gnu_ld=$lt_save_with_gnu_ld
18654  lt_cv_path_LDCXX=$lt_cv_path_LD
18655  lt_cv_path_LD=$lt_save_path_LD
18656  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18657  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18658fi # test yes != "$_lt_caught_CXX_error"
18659
18660ac_ext=cpp
18661ac_cpp='$CXXCPP $CPPFLAGS'
18662ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18663ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18664ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18665
18666
18667
18668
18669
18670
18671
18672
18673
18674
18675
18676
18677
18678
18679
18680        ac_config_commands="$ac_config_commands libtool"
18681
18682
18683
18684
18685# Only expand once:
18686
18687
18688
18689# Check whether the linker supports version scripts
18690{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the linker supports version scripts" >&5
18691$as_echo_n "checking whether the linker supports version scripts... " >&6; }
18692save_LDFLAGS=$LDFLAGS
18693LDFLAGS="$LDFLAGS -Wl,--version-script=conftest.map"
18694cat > conftest.map <<EOF
18695{
18696  global:
18697    main;
18698  local:
18699    *;
18700};
18701EOF
18702cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18703/* end confdefs.h.  */
18704int main() { return 0; }
18705_ACEOF
18706if ac_fn_cxx_try_link "$LINENO"; then :
18707  have_ld_version_script=yes; { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18708$as_echo "yes" >&6; }
18709else
18710  have_ld_version_script=no; { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18711$as_echo "no" >&6; }
18712fi
18713rm -f core conftest.err conftest.$ac_objext \
18714    conftest$ac_exeext conftest.$ac_ext
18715LDFLAGS=$save_LDFLAGS
18716 if test "$have_ld_version_script" == "yes"; then
18717  HAVE_LD_VERSION_SCRIPT_TRUE=
18718  HAVE_LD_VERSION_SCRIPT_FALSE='#'
18719else
18720  HAVE_LD_VERSION_SCRIPT_TRUE='#'
18721  HAVE_LD_VERSION_SCRIPT_FALSE=
18722fi
18723
18724
18725# Checks for header files.
18726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
18727$as_echo_n "checking for ANSI C header files... " >&6; }
18728if ${ac_cv_header_stdc+:} false; then :
18729  $as_echo_n "(cached) " >&6
18730else
18731  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18732/* end confdefs.h.  */
18733#include <stdlib.h>
18734#include <stdarg.h>
18735#include <string.h>
18736#include <float.h>
18737
18738int
18739main ()
18740{
18741
18742  ;
18743  return 0;
18744}
18745_ACEOF
18746if ac_fn_cxx_try_compile "$LINENO"; then :
18747  ac_cv_header_stdc=yes
18748else
18749  ac_cv_header_stdc=no
18750fi
18751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18752
18753if test $ac_cv_header_stdc = yes; then
18754  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
18755  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18756/* end confdefs.h.  */
18757#include <string.h>
18758
18759_ACEOF
18760if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18761  $EGREP "memchr" >/dev/null 2>&1; then :
18762
18763else
18764  ac_cv_header_stdc=no
18765fi
18766rm -f conftest*
18767
18768fi
18769
18770if test $ac_cv_header_stdc = yes; then
18771  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
18772  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18773/* end confdefs.h.  */
18774#include <stdlib.h>
18775
18776_ACEOF
18777if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18778  $EGREP "free" >/dev/null 2>&1; then :
18779
18780else
18781  ac_cv_header_stdc=no
18782fi
18783rm -f conftest*
18784
18785fi
18786
18787if test $ac_cv_header_stdc = yes; then
18788  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
18789  if test "$cross_compiling" = yes; then :
18790  :
18791else
18792  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18793/* end confdefs.h.  */
18794#include <ctype.h>
18795#include <stdlib.h>
18796#if ((' ' & 0x0FF) == 0x020)
18797# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
18798# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
18799#else
18800# define ISLOWER(c) \
18801		   (('a' <= (c) && (c) <= 'i') \
18802		     || ('j' <= (c) && (c) <= 'r') \
18803		     || ('s' <= (c) && (c) <= 'z'))
18804# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
18805#endif
18806
18807#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
18808int
18809main ()
18810{
18811  int i;
18812  for (i = 0; i < 256; i++)
18813    if (XOR (islower (i), ISLOWER (i))
18814	|| toupper (i) != TOUPPER (i))
18815      return 2;
18816  return 0;
18817}
18818_ACEOF
18819if ac_fn_cxx_try_run "$LINENO"; then :
18820
18821else
18822  ac_cv_header_stdc=no
18823fi
18824rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18825  conftest.$ac_objext conftest.beam conftest.$ac_ext
18826fi
18827
18828fi
18829fi
18830{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
18831$as_echo "$ac_cv_header_stdc" >&6; }
18832if test $ac_cv_header_stdc = yes; then
18833
18834$as_echo "#define STDC_HEADERS 1" >>confdefs.h
18835
18836fi
18837
18838for ac_header in fcntl.h inttypes.h limits.h stdlib.h unistd.h
18839do :
18840  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
18841ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
18842if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
18843  cat >>confdefs.h <<_ACEOF
18844#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
18845_ACEOF
18846
18847fi
18848
18849done
18850
18851
18852# Checks for library functions.
18853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
18854$as_echo_n "checking for working memcmp... " >&6; }
18855if ${ac_cv_func_memcmp_working+:} false; then :
18856  $as_echo_n "(cached) " >&6
18857else
18858  if test "$cross_compiling" = yes; then :
18859  ac_cv_func_memcmp_working=no
18860else
18861  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18862/* end confdefs.h.  */
18863$ac_includes_default
18864int
18865main ()
18866{
18867
18868  /* Some versions of memcmp are not 8-bit clean.  */
18869  char c0 = '\100', c1 = '\200', c2 = '\201';
18870  if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
18871    return 1;
18872
18873  /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
18874     or more and with at least one buffer not starting on a 4-byte boundary.
18875     William Lewis provided this test program.   */
18876  {
18877    char foo[21];
18878    char bar[21];
18879    int i;
18880    for (i = 0; i < 4; i++)
18881      {
18882	char *a = foo + i;
18883	char *b = bar + i;
18884	strcpy (a, "--------01111111");
18885	strcpy (b, "--------10000000");
18886	if (memcmp (a, b, 16) >= 0)
18887	  return 1;
18888      }
18889    return 0;
18890  }
18891
18892  ;
18893  return 0;
18894}
18895_ACEOF
18896if ac_fn_cxx_try_run "$LINENO"; then :
18897  ac_cv_func_memcmp_working=yes
18898else
18899  ac_cv_func_memcmp_working=no
18900fi
18901rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18902  conftest.$ac_objext conftest.beam conftest.$ac_ext
18903fi
18904
18905fi
18906{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
18907$as_echo "$ac_cv_func_memcmp_working" >&6; }
18908test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
18909  *" memcmp.$ac_objext "* ) ;;
18910  *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
18911 ;;
18912esac
18913
18914
18915{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working strtod" >&5
18916$as_echo_n "checking for working strtod... " >&6; }
18917if ${ac_cv_func_strtod+:} false; then :
18918  $as_echo_n "(cached) " >&6
18919else
18920  if test "$cross_compiling" = yes; then :
18921  ac_cv_func_strtod=no
18922else
18923  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18924/* end confdefs.h.  */
18925
18926$ac_includes_default
18927#ifndef strtod
18928double strtod ();
18929#endif
18930int
18931main()
18932{
18933  {
18934    /* Some versions of Linux strtod mis-parse strings with leading '+'.  */
18935    char *string = " +69";
18936    char *term;
18937    double value;
18938    value = strtod (string, &term);
18939    if (value != 69 || term != (string + 4))
18940      return 1;
18941  }
18942
18943  {
18944    /* Under Solaris 2.4, strtod returns the wrong value for the
18945       terminating character under some conditions.  */
18946    char *string = "NaN";
18947    char *term;
18948    strtod (string, &term);
18949    if (term != string && *(term - 1) == 0)
18950      return 1;
18951  }
18952  return 0;
18953}
18954
18955_ACEOF
18956if ac_fn_cxx_try_run "$LINENO"; then :
18957  ac_cv_func_strtod=yes
18958else
18959  ac_cv_func_strtod=no
18960fi
18961rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18962  conftest.$ac_objext conftest.beam conftest.$ac_ext
18963fi
18964
18965fi
18966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strtod" >&5
18967$as_echo "$ac_cv_func_strtod" >&6; }
18968if test $ac_cv_func_strtod = no; then
18969  case " $LIBOBJS " in
18970  *" strtod.$ac_objext "* ) ;;
18971  *) LIBOBJS="$LIBOBJS strtod.$ac_objext"
18972 ;;
18973esac
18974
18975ac_fn_cxx_check_func "$LINENO" "pow" "ac_cv_func_pow"
18976if test "x$ac_cv_func_pow" = xyes; then :
18977
18978fi
18979
18980if test $ac_cv_func_pow = no; then
18981  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
18982$as_echo_n "checking for pow in -lm... " >&6; }
18983if ${ac_cv_lib_m_pow+:} false; then :
18984  $as_echo_n "(cached) " >&6
18985else
18986  ac_check_lib_save_LIBS=$LIBS
18987LIBS="-lm  $LIBS"
18988cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18989/* end confdefs.h.  */
18990
18991/* Override any GCC internal prototype to avoid an error.
18992   Use char because int might match the return type of a GCC
18993   builtin and then its argument prototype would still apply.  */
18994#ifdef __cplusplus
18995extern "C"
18996#endif
18997char pow ();
18998int
18999main ()
19000{
19001return pow ();
19002  ;
19003  return 0;
19004}
19005_ACEOF
19006if ac_fn_cxx_try_link "$LINENO"; then :
19007  ac_cv_lib_m_pow=yes
19008else
19009  ac_cv_lib_m_pow=no
19010fi
19011rm -f core conftest.err conftest.$ac_objext \
19012    conftest$ac_exeext conftest.$ac_ext
19013LIBS=$ac_check_lib_save_LIBS
19014fi
19015{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
19016$as_echo "$ac_cv_lib_m_pow" >&6; }
19017if test "x$ac_cv_lib_m_pow" = xyes; then :
19018  POW_LIB=-lm
19019else
19020  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find library containing definition of pow" >&5
19021$as_echo "$as_me: WARNING: cannot find library containing definition of pow" >&2;}
19022fi
19023
19024fi
19025
19026fi
19027
19028for ac_func in ftruncate memset mkdir strchr strerror strtol
19029do :
19030  as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
19031ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
19032if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
19033  cat >>confdefs.h <<_ACEOF
19034#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
19035_ACEOF
19036
19037fi
19038done
19039
19040
19041# Check for zlib.
19042HAVE_ZLIB=0
19043if test "$with_zlib" != no; then :
19044
19045  { $as_echo "$as_me:${as_lineno-$LINENO}: checking zlib version" >&5
19046$as_echo_n "checking zlib version... " >&6; }
19047
19048  # First check the zlib header version.
19049  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19050/* end confdefs.h.  */
19051
19052        #include <zlib.h>
19053        #if !defined(ZLIB_VERNUM) || (ZLIB_VERNUM < 0x1204)
19054        # error zlib version too old
19055        #endif
19056
19057int
19058main ()
19059{
19060
19061  ;
19062  return 0;
19063}
19064_ACEOF
19065if ac_fn_cxx_try_compile "$LINENO"; then :
19066
19067    { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok (1.2.0.4 or later)" >&5
19068$as_echo "ok (1.2.0.4 or later)" >&6; }
19069
19070    # Also need to add -lz to the linker flags and make sure this succeeds.
19071    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing zlibVersion" >&5
19072$as_echo_n "checking for library containing zlibVersion... " >&6; }
19073if ${ac_cv_search_zlibVersion+:} false; then :
19074  $as_echo_n "(cached) " >&6
19075else
19076  ac_func_search_save_LIBS=$LIBS
19077cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19078/* end confdefs.h.  */
19079
19080/* Override any GCC internal prototype to avoid an error.
19081   Use char because int might match the return type of a GCC
19082   builtin and then its argument prototype would still apply.  */
19083#ifdef __cplusplus
19084extern "C"
19085#endif
19086char zlibVersion ();
19087int
19088main ()
19089{
19090return zlibVersion ();
19091  ;
19092  return 0;
19093}
19094_ACEOF
19095for ac_lib in '' z; do
19096  if test -z "$ac_lib"; then
19097    ac_res="none required"
19098  else
19099    ac_res=-l$ac_lib
19100    LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
19101  fi
19102  if ac_fn_cxx_try_link "$LINENO"; then :
19103  ac_cv_search_zlibVersion=$ac_res
19104fi
19105rm -f core conftest.err conftest.$ac_objext \
19106    conftest$ac_exeext
19107  if ${ac_cv_search_zlibVersion+:} false; then :
19108  break
19109fi
19110done
19111if ${ac_cv_search_zlibVersion+:} false; then :
19112
19113else
19114  ac_cv_search_zlibVersion=no
19115fi
19116rm conftest.$ac_ext
19117LIBS=$ac_func_search_save_LIBS
19118fi
19119{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_zlibVersion" >&5
19120$as_echo "$ac_cv_search_zlibVersion" >&6; }
19121ac_res=$ac_cv_search_zlibVersion
19122if test "$ac_res" != no; then :
19123  test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
19124
19125
19126$as_echo "#define HAVE_ZLIB 1" >>confdefs.h
19127
19128      HAVE_ZLIB=1
19129
19130else
19131
19132      if test "$with_zlib" != check; then :
19133
19134        { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19135$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19136as_fn_error $? "--with-zlib was given, but no working zlib library was found
19137See \`config.log' for more details" "$LINENO" 5; }
19138
19139fi
19140
19141fi
19142
19143
19144else
19145
19146    if test "$with_zlib" = check; then :
19147
19148      { $as_echo "$as_me:${as_lineno-$LINENO}: result: headers missing or too old (requires 1.2.0.4)" >&5
19149$as_echo "headers missing or too old (requires 1.2.0.4)" >&6; }
19150
19151else
19152
19153      { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
19154$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
19155as_fn_error $? "--with-zlib was given, but zlib headers were not present or were too old (requires 1.2.0.4)
19156See \`config.log' for more details" "$LINENO" 5; }
19157
19158fi
19159
19160fi
19161rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19162
19163fi
19164 if test $HAVE_ZLIB = 1; then
19165  HAVE_ZLIB_TRUE=
19166  HAVE_ZLIB_FALSE='#'
19167else
19168  HAVE_ZLIB_TRUE='#'
19169  HAVE_ZLIB_FALSE=
19170fi
19171
19172
19173# Add -std=c++11 if necesssary. It is important for us to do this before the
19174# libatomic check below, since that also depends on C++11.
19175  ax_cxx_compile_alternatives="11 0x"    ax_cxx_compile_cxx11_required=true
19176  ac_ext=cpp
19177ac_cpp='$CXXCPP $CPPFLAGS'
19178ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19179ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19180ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19181  ac_success=no
19182  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features by default" >&5
19183$as_echo_n "checking whether $CXX supports C++11 features by default... " >&6; }
19184if ${ax_cv_cxx_compile_cxx11+:} false; then :
19185  $as_echo_n "(cached) " >&6
19186else
19187  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19188/* end confdefs.h.  */
19189
19190
19191// If the compiler admits that it is not ready for C++11, why torture it?
19192// Hopefully, this will speed up the test.
19193
19194#ifndef __cplusplus
19195
19196#error "This is not a C++ compiler"
19197
19198#elif __cplusplus < 201103L
19199
19200#error "This is not a C++11 compiler"
19201
19202#else
19203
19204#include <utility>
19205
19206namespace cxx11
19207{
19208
19209  namespace test_static_assert
19210  {
19211
19212    template <typename T>
19213    struct check
19214    {
19215      static_assert(sizeof(int) <= sizeof(T), "not big enough");
19216    };
19217
19218  }
19219
19220  namespace test_final_override
19221  {
19222
19223    struct Base
19224    {
19225      virtual void f() {}
19226    };
19227
19228    struct Derived : public Base
19229    {
19230      virtual void f() override {}
19231    };
19232
19233  }
19234
19235  namespace test_double_right_angle_brackets
19236  {
19237
19238    template < typename T >
19239    struct check {};
19240
19241    typedef check<void> single_type;
19242    typedef check<check<void>> double_type;
19243    typedef check<check<check<void>>> triple_type;
19244    typedef check<check<check<check<void>>>> quadruple_type;
19245
19246  }
19247
19248  namespace test_decltype
19249  {
19250
19251    int
19252    f()
19253    {
19254      int a = 1;
19255      decltype(a) b = 2;
19256      return a + b;
19257    }
19258
19259  }
19260
19261  namespace test_type_deduction
19262  {
19263
19264    template < typename T1, typename T2 >
19265    struct is_same
19266    {
19267      static const bool value = false;
19268    };
19269
19270    template < typename T >
19271    struct is_same<T, T>
19272    {
19273      static const bool value = true;
19274    };
19275
19276    template < typename T1, typename T2 >
19277    auto
19278    add(T1 a1, T2 a2) -> decltype(a1 + a2)
19279    {
19280      return a1 + a2;
19281    }
19282
19283    int
19284    test(const int c, volatile int v)
19285    {
19286      static_assert(is_same<int, decltype(0)>::value == true, "");
19287      static_assert(is_same<int, decltype(c)>::value == false, "");
19288      static_assert(is_same<int, decltype(v)>::value == false, "");
19289      auto ac = c;
19290      auto av = v;
19291      auto sumi = ac + av + 'x';
19292      auto sumf = ac + av + 1.0;
19293      static_assert(is_same<int, decltype(ac)>::value == true, "");
19294      static_assert(is_same<int, decltype(av)>::value == true, "");
19295      static_assert(is_same<int, decltype(sumi)>::value == true, "");
19296      static_assert(is_same<int, decltype(sumf)>::value == false, "");
19297      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19298      return (sumf > 0.0) ? sumi : add(c, v);
19299    }
19300
19301  }
19302
19303  namespace test_noexcept
19304  {
19305
19306    int f() { return 0; }
19307    int g() noexcept { return 0; }
19308
19309    static_assert(noexcept(f()) == false, "");
19310    static_assert(noexcept(g()) == true, "");
19311
19312  }
19313
19314  namespace test_constexpr
19315  {
19316
19317    template < typename CharT >
19318    unsigned long constexpr
19319    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19320    {
19321      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19322    }
19323
19324    template < typename CharT >
19325    unsigned long constexpr
19326    strlen_c(const CharT *const s) noexcept
19327    {
19328      return strlen_c_r(s, 0UL);
19329    }
19330
19331    static_assert(strlen_c("") == 0UL, "");
19332    static_assert(strlen_c("1") == 1UL, "");
19333    static_assert(strlen_c("example") == 7UL, "");
19334    static_assert(strlen_c("another\0example") == 7UL, "");
19335
19336  }
19337
19338  namespace test_rvalue_references
19339  {
19340
19341    template < int N >
19342    struct answer
19343    {
19344      static constexpr int value = N;
19345    };
19346
19347    answer<1> f(int&)       { return answer<1>(); }
19348    answer<2> f(const int&) { return answer<2>(); }
19349    answer<3> f(int&&)      { return answer<3>(); }
19350
19351    void
19352    test()
19353    {
19354      int i = 0;
19355      const int c = 0;
19356      static_assert(decltype(f(i))::value == 1, "");
19357      static_assert(decltype(f(c))::value == 2, "");
19358      static_assert(decltype(f(0))::value == 3, "");
19359    }
19360
19361  }
19362
19363  namespace test_uniform_initialization
19364  {
19365
19366    struct test
19367    {
19368      static const int zero {};
19369      static const int one {1};
19370    };
19371
19372    static_assert(test::zero == 0, "");
19373    static_assert(test::one == 1, "");
19374
19375  }
19376
19377  namespace test_lambdas
19378  {
19379
19380    void
19381    test1()
19382    {
19383      auto lambda1 = [](){};
19384      auto lambda2 = lambda1;
19385      lambda1();
19386      lambda2();
19387    }
19388
19389    int
19390    test2()
19391    {
19392      auto a = [](int i, int j){ return i + j; }(1, 2);
19393      auto b = []() -> int { return '0'; }();
19394      auto c = [=](){ return a + b; }();
19395      auto d = [&](){ return c; }();
19396      auto e = [a, &b](int x) mutable {
19397        const auto identity = [](int y){ return y; };
19398        for (auto i = 0; i < a; ++i)
19399          a += b--;
19400        return x + identity(a + b);
19401      }(0);
19402      return a + b + c + d + e;
19403    }
19404
19405    int
19406    test3()
19407    {
19408      const auto nullary = [](){ return 0; };
19409      const auto unary = [](int x){ return x; };
19410      using nullary_t = decltype(nullary);
19411      using unary_t = decltype(unary);
19412      const auto higher1st = [](nullary_t f){ return f(); };
19413      const auto higher2nd = [unary](nullary_t f1){
19414        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19415      };
19416      return higher1st(nullary) + higher2nd(nullary)(unary);
19417    }
19418
19419  }
19420
19421  namespace test_variadic_templates
19422  {
19423
19424    template <int...>
19425    struct sum;
19426
19427    template <int N0, int... N1toN>
19428    struct sum<N0, N1toN...>
19429    {
19430      static constexpr auto value = N0 + sum<N1toN...>::value;
19431    };
19432
19433    template <>
19434    struct sum<>
19435    {
19436      static constexpr auto value = 0;
19437    };
19438
19439    static_assert(sum<>::value == 0, "");
19440    static_assert(sum<1>::value == 1, "");
19441    static_assert(sum<23>::value == 23, "");
19442    static_assert(sum<1, 2>::value == 3, "");
19443    static_assert(sum<5, 5, 11>::value == 21, "");
19444    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19445
19446  }
19447
19448  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19449  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19450  // because of this.
19451  namespace test_template_alias_sfinae
19452  {
19453
19454    struct foo {};
19455
19456    template<typename T>
19457    using member = typename T::member_type;
19458
19459    template<typename T>
19460    void func(...) {}
19461
19462    template<typename T>
19463    void func(member<T>*) {}
19464
19465    void test();
19466
19467    void test() { func<foo>(0); }
19468
19469  }
19470
19471  namespace test_std_move_and_forward
19472  {
19473    struct message {};
19474    char foo(message&) { return '\0'; }
19475    int foo(message&&) { return 0; }
19476
19477    template<typename Arg, typename RT>
19478    void check(Arg&& arg, RT rt) {
19479      static_assert(sizeof(rt) == sizeof(foo(std::forward<Arg>(arg))), "");
19480    }
19481    void test() {
19482      message a;
19483      check(a, char());
19484      check(std::move(a), int());
19485    }
19486  }
19487
19488}  // namespace cxx11
19489
19490#endif  // __cplusplus >= 201103L
19491
19492
19493
19494_ACEOF
19495if ac_fn_cxx_try_compile "$LINENO"; then :
19496  ax_cv_cxx_compile_cxx11=yes
19497else
19498  ax_cv_cxx_compile_cxx11=no
19499fi
19500rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19501fi
19502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compile_cxx11" >&5
19503$as_echo "$ax_cv_cxx_compile_cxx11" >&6; }
19504  if test x$ax_cv_cxx_compile_cxx11 = xyes; then
19505    ac_success=yes
19506  fi
19507
19508
19509
19510    if test x$ac_success = xno; then
19511                for alternative in ${ax_cxx_compile_alternatives}; do
19512      for switch in -std=c++${alternative} +std=c++${alternative} "-h std=c++${alternative}"; do
19513        cachevar=`$as_echo "ax_cv_cxx_compile_cxx11_$switch" | $as_tr_sh`
19514        { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports C++11 features with $switch" >&5
19515$as_echo_n "checking whether $CXX supports C++11 features with $switch... " >&6; }
19516if eval \${$cachevar+:} false; then :
19517  $as_echo_n "(cached) " >&6
19518else
19519  ac_save_CXX="$CXX"
19520           CXX="$CXX $switch"
19521           cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19522/* end confdefs.h.  */
19523
19524
19525// If the compiler admits that it is not ready for C++11, why torture it?
19526// Hopefully, this will speed up the test.
19527
19528#ifndef __cplusplus
19529
19530#error "This is not a C++ compiler"
19531
19532#elif __cplusplus < 201103L
19533
19534#error "This is not a C++11 compiler"
19535
19536#else
19537
19538#include <utility>
19539
19540namespace cxx11
19541{
19542
19543  namespace test_static_assert
19544  {
19545
19546    template <typename T>
19547    struct check
19548    {
19549      static_assert(sizeof(int) <= sizeof(T), "not big enough");
19550    };
19551
19552  }
19553
19554  namespace test_final_override
19555  {
19556
19557    struct Base
19558    {
19559      virtual void f() {}
19560    };
19561
19562    struct Derived : public Base
19563    {
19564      virtual void f() override {}
19565    };
19566
19567  }
19568
19569  namespace test_double_right_angle_brackets
19570  {
19571
19572    template < typename T >
19573    struct check {};
19574
19575    typedef check<void> single_type;
19576    typedef check<check<void>> double_type;
19577    typedef check<check<check<void>>> triple_type;
19578    typedef check<check<check<check<void>>>> quadruple_type;
19579
19580  }
19581
19582  namespace test_decltype
19583  {
19584
19585    int
19586    f()
19587    {
19588      int a = 1;
19589      decltype(a) b = 2;
19590      return a + b;
19591    }
19592
19593  }
19594
19595  namespace test_type_deduction
19596  {
19597
19598    template < typename T1, typename T2 >
19599    struct is_same
19600    {
19601      static const bool value = false;
19602    };
19603
19604    template < typename T >
19605    struct is_same<T, T>
19606    {
19607      static const bool value = true;
19608    };
19609
19610    template < typename T1, typename T2 >
19611    auto
19612    add(T1 a1, T2 a2) -> decltype(a1 + a2)
19613    {
19614      return a1 + a2;
19615    }
19616
19617    int
19618    test(const int c, volatile int v)
19619    {
19620      static_assert(is_same<int, decltype(0)>::value == true, "");
19621      static_assert(is_same<int, decltype(c)>::value == false, "");
19622      static_assert(is_same<int, decltype(v)>::value == false, "");
19623      auto ac = c;
19624      auto av = v;
19625      auto sumi = ac + av + 'x';
19626      auto sumf = ac + av + 1.0;
19627      static_assert(is_same<int, decltype(ac)>::value == true, "");
19628      static_assert(is_same<int, decltype(av)>::value == true, "");
19629      static_assert(is_same<int, decltype(sumi)>::value == true, "");
19630      static_assert(is_same<int, decltype(sumf)>::value == false, "");
19631      static_assert(is_same<int, decltype(add(c, v))>::value == true, "");
19632      return (sumf > 0.0) ? sumi : add(c, v);
19633    }
19634
19635  }
19636
19637  namespace test_noexcept
19638  {
19639
19640    int f() { return 0; }
19641    int g() noexcept { return 0; }
19642
19643    static_assert(noexcept(f()) == false, "");
19644    static_assert(noexcept(g()) == true, "");
19645
19646  }
19647
19648  namespace test_constexpr
19649  {
19650
19651    template < typename CharT >
19652    unsigned long constexpr
19653    strlen_c_r(const CharT *const s, const unsigned long acc) noexcept
19654    {
19655      return *s ? strlen_c_r(s + 1, acc + 1) : acc;
19656    }
19657
19658    template < typename CharT >
19659    unsigned long constexpr
19660    strlen_c(const CharT *const s) noexcept
19661    {
19662      return strlen_c_r(s, 0UL);
19663    }
19664
19665    static_assert(strlen_c("") == 0UL, "");
19666    static_assert(strlen_c("1") == 1UL, "");
19667    static_assert(strlen_c("example") == 7UL, "");
19668    static_assert(strlen_c("another\0example") == 7UL, "");
19669
19670  }
19671
19672  namespace test_rvalue_references
19673  {
19674
19675    template < int N >
19676    struct answer
19677    {
19678      static constexpr int value = N;
19679    };
19680
19681    answer<1> f(int&)       { return answer<1>(); }
19682    answer<2> f(const int&) { return answer<2>(); }
19683    answer<3> f(int&&)      { return answer<3>(); }
19684
19685    void
19686    test()
19687    {
19688      int i = 0;
19689      const int c = 0;
19690      static_assert(decltype(f(i))::value == 1, "");
19691      static_assert(decltype(f(c))::value == 2, "");
19692      static_assert(decltype(f(0))::value == 3, "");
19693    }
19694
19695  }
19696
19697  namespace test_uniform_initialization
19698  {
19699
19700    struct test
19701    {
19702      static const int zero {};
19703      static const int one {1};
19704    };
19705
19706    static_assert(test::zero == 0, "");
19707    static_assert(test::one == 1, "");
19708
19709  }
19710
19711  namespace test_lambdas
19712  {
19713
19714    void
19715    test1()
19716    {
19717      auto lambda1 = [](){};
19718      auto lambda2 = lambda1;
19719      lambda1();
19720      lambda2();
19721    }
19722
19723    int
19724    test2()
19725    {
19726      auto a = [](int i, int j){ return i + j; }(1, 2);
19727      auto b = []() -> int { return '0'; }();
19728      auto c = [=](){ return a + b; }();
19729      auto d = [&](){ return c; }();
19730      auto e = [a, &b](int x) mutable {
19731        const auto identity = [](int y){ return y; };
19732        for (auto i = 0; i < a; ++i)
19733          a += b--;
19734        return x + identity(a + b);
19735      }(0);
19736      return a + b + c + d + e;
19737    }
19738
19739    int
19740    test3()
19741    {
19742      const auto nullary = [](){ return 0; };
19743      const auto unary = [](int x){ return x; };
19744      using nullary_t = decltype(nullary);
19745      using unary_t = decltype(unary);
19746      const auto higher1st = [](nullary_t f){ return f(); };
19747      const auto higher2nd = [unary](nullary_t f1){
19748        return [unary, f1](unary_t f2){ return f2(unary(f1())); };
19749      };
19750      return higher1st(nullary) + higher2nd(nullary)(unary);
19751    }
19752
19753  }
19754
19755  namespace test_variadic_templates
19756  {
19757
19758    template <int...>
19759    struct sum;
19760
19761    template <int N0, int... N1toN>
19762    struct sum<N0, N1toN...>
19763    {
19764      static constexpr auto value = N0 + sum<N1toN...>::value;
19765    };
19766
19767    template <>
19768    struct sum<>
19769    {
19770      static constexpr auto value = 0;
19771    };
19772
19773    static_assert(sum<>::value == 0, "");
19774    static_assert(sum<1>::value == 1, "");
19775    static_assert(sum<23>::value == 23, "");
19776    static_assert(sum<1, 2>::value == 3, "");
19777    static_assert(sum<5, 5, 11>::value == 21, "");
19778    static_assert(sum<2, 3, 5, 7, 11, 13>::value == 41, "");
19779
19780  }
19781
19782  // http://stackoverflow.com/questions/13728184/template-aliases-and-sfinae
19783  // Clang 3.1 fails with headers of libstd++ 4.8.3 when using std::function
19784  // because of this.
19785  namespace test_template_alias_sfinae
19786  {
19787
19788    struct foo {};
19789
19790    template<typename T>
19791    using member = typename T::member_type;
19792
19793    template<typename T>
19794    void func(...) {}
19795
19796    template<typename T>
19797    void func(member<T>*) {}
19798
19799    void test();
19800
19801    void test() { func<foo>(0); }
19802
19803  }
19804
19805  namespace test_std_move_and_forward
19806  {
19807    struct message {};
19808    char foo(message&) { return '\0'; }
19809    int foo(message&&) { return 0; }
19810
19811    template<typename Arg, typename RT>
19812    void check(Arg&& arg, RT rt) {
19813      static_assert(sizeof(rt) == sizeof(foo(std::forward<Arg>(arg))), "");
19814    }
19815    void test() {
19816      message a;
19817      check(a, char());
19818      check(std::move(a), int());
19819    }
19820  }
19821
19822}  // namespace cxx11
19823
19824#endif  // __cplusplus >= 201103L
19825
19826
19827
19828_ACEOF
19829if ac_fn_cxx_try_compile "$LINENO"; then :
19830  eval $cachevar=yes
19831else
19832  eval $cachevar=no
19833fi
19834rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835           CXX="$ac_save_CXX"
19836fi
19837eval ac_res=\$$cachevar
19838	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
19839$as_echo "$ac_res" >&6; }
19840        if eval test x\$$cachevar = xyes; then
19841          CXX="$CXX $switch"
19842          if test -n "$CXXCPP" ; then
19843            CXXCPP="$CXXCPP $switch"
19844          fi
19845          ac_success=yes
19846          break
19847        fi
19848      done
19849      if test x$ac_success = xyes; then
19850        break
19851      fi
19852    done
19853  fi
19854  ac_ext=cpp
19855ac_cpp='$CXXCPP $CPPFLAGS'
19856ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19857ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19858ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19859
19860  if test x$ax_cxx_compile_cxx11_required = xtrue; then
19861    if test x$ac_success = xno; then
19862      as_fn_error $? "*** A compiler with support for C++11 language features is required." "$LINENO" 5
19863    fi
19864  fi
19865  if test x$ac_success = xno; then
19866    HAVE_CXX11=0
19867    { $as_echo "$as_me:${as_lineno-$LINENO}: No compiler with C++11 support was found" >&5
19868$as_echo "$as_me: No compiler with C++11 support was found" >&6;}
19869  else
19870    HAVE_CXX11=1
19871
19872$as_echo "#define HAVE_CXX11 1" >>confdefs.h
19873
19874  fi
19875
19876
19877
19878
19879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -latomic is needed" >&5
19880$as_echo_n "checking whether -latomic is needed... " >&6; }
19881cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19882/* end confdefs.h.  */
19883
19884  #include <atomic>
19885  #include <cstdint>
19886  std::atomic<std::int64_t> v;
19887  int main() {
19888    return v;
19889  }
19890
19891_ACEOF
19892if ac_fn_cxx_try_link "$LINENO"; then :
19893  STD_ATOMIC_NEED_LIBATOMIC=no
19894else
19895  STD_ATOMIC_NEED_LIBATOMIC=yes
19896fi
19897rm -f core conftest.err conftest.$ac_objext \
19898    conftest$ac_exeext conftest.$ac_ext
19899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $STD_ATOMIC_NEED_LIBATOMIC" >&5
19900$as_echo "$STD_ATOMIC_NEED_LIBATOMIC" >&6; }
19901if test "x$STD_ATOMIC_NEED_LIBATOMIC" = xyes; then
19902  LIBATOMIC_LIBS="-latomic"
19903fi
19904
19905
19906if test "$with_protoc" != "no"; then :
19907
19908  PROTOC=$with_protoc
19909  if test "$with_protoc" = "yes"; then :
19910
19911    # No argument given.  Use system protoc.
19912    PROTOC=protoc
19913
19914fi
19915  if echo "$PROTOC" | grep -q '^[^/].*/'; then :
19916
19917    # Does not start with a slash, but contains a slash.  So, it's a relative
19918    # path (as opposed to an absolute path or an executable in $PATH).
19919    # Since it will actually be executed from the src directory, prefix with
19920    # the current directory.  We also insert $ac_top_build_prefix in case this
19921    # is a nested package and --with-protoc was actually given on the outer
19922    # package's configure script.
19923    PROTOC=`pwd`/${ac_top_build_prefix}$PROTOC
19924
19925fi
19926
19927
19928fi
19929 if test "$with_protoc" != "no"; then
19930  USE_EXTERNAL_PROTOC_TRUE=
19931  USE_EXTERNAL_PROTOC_FALSE='#'
19932else
19933  USE_EXTERNAL_PROTOC_TRUE='#'
19934  USE_EXTERNAL_PROTOC_FALSE=
19935fi
19936
19937
19938
19939
19940
19941
19942
19943ac_ext=c
19944ac_cpp='$CPP $CPPFLAGS'
19945ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19946ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19947ac_compiler_gnu=$ac_cv_c_compiler_gnu
19948
19949ax_pthread_ok=no
19950
19951# We used to check for pthread.h first, but this fails if pthread.h
19952# requires special compiler flags (e.g. on Tru64 or Sequent).
19953# It gets checked for in the link test anyway.
19954
19955# First of all, check if the user has set any of the PTHREAD_LIBS,
19956# etcetera environment variables, and if threads linking works using
19957# them:
19958if test "x$PTHREAD_CFLAGS$PTHREAD_LIBS" != "x"; then
19959	ax_pthread_save_CC="$CC"
19960	ax_pthread_save_CFLAGS="$CFLAGS"
19961	ax_pthread_save_LIBS="$LIBS"
19962	if test "x$PTHREAD_CC" != "x"; then :
19963  CC="$PTHREAD_CC"
19964fi
19965	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
19966	LIBS="$PTHREAD_LIBS $LIBS"
19967	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS" >&5
19968$as_echo_n "checking for pthread_join using $CC $PTHREAD_CFLAGS $PTHREAD_LIBS... " >&6; }
19969	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19970/* end confdefs.h.  */
19971
19972/* Override any GCC internal prototype to avoid an error.
19973   Use char because int might match the return type of a GCC
19974   builtin and then its argument prototype would still apply.  */
19975#ifdef __cplusplus
19976extern "C"
19977#endif
19978char pthread_join ();
19979int
19980main ()
19981{
19982return pthread_join ();
19983  ;
19984  return 0;
19985}
19986_ACEOF
19987if ac_fn_c_try_link "$LINENO"; then :
19988  ax_pthread_ok=yes
19989fi
19990rm -f core conftest.err conftest.$ac_objext \
19991    conftest$ac_exeext conftest.$ac_ext
19992	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
19993$as_echo "$ax_pthread_ok" >&6; }
19994	if test "x$ax_pthread_ok" = "xno"; then
19995		PTHREAD_LIBS=""
19996		PTHREAD_CFLAGS=""
19997	fi
19998	CC="$ax_pthread_save_CC"
19999	CFLAGS="$ax_pthread_save_CFLAGS"
20000	LIBS="$ax_pthread_save_LIBS"
20001fi
20002
20003# We must check for the threads library under a number of different
20004# names; the ordering is very important because some systems
20005# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
20006# libraries is broken (non-POSIX).
20007
20008# Create a list of thread flags to try.  Items starting with a "-" are
20009# C compiler flags, and other items are library names, except for "none"
20010# which indicates that we try without any flags at all, and "pthread-config"
20011# which is a program returning the flags for the Pth emulation library.
20012
20013ax_pthread_flags="pthreads none -Kthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
20014
20015# The ordering *is* (sometimes) important.  Some notes on the
20016# individual items follow:
20017
20018# pthreads: AIX (must check this before -lpthread)
20019# none: in case threads are in libc; should be tried before -Kthread and
20020#       other compiler flags to prevent continual compiler warnings
20021# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
20022# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads), Tru64
20023#           (Note: HP C rejects this with "bad form for `-t' option")
20024# -pthreads: Solaris/gcc (Note: HP C also rejects)
20025# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
20026#      doesn't hurt to check since this sometimes defines pthreads and
20027#      -D_REENTRANT too), HP C (must be checked before -lpthread, which
20028#      is present but should not be used directly; and before -mthreads,
20029#      because the compiler interprets this as "-mt" + "-hreads")
20030# -mthreads: Mingw32/gcc, Lynx/gcc
20031# pthread: Linux, etcetera
20032# --thread-safe: KAI C++
20033# pthread-config: use pthread-config program (for GNU Pth library)
20034
20035case $host_os in
20036
20037	freebsd*)
20038
20039	# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
20040	# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
20041
20042	ax_pthread_flags="-kthread lthread $ax_pthread_flags"
20043	;;
20044
20045	hpux*)
20046
20047	# From the cc(1) man page: "[-mt] Sets various -D flags to enable
20048	# multi-threading and also sets -lpthread."
20049
20050	ax_pthread_flags="-mt -pthread pthread $ax_pthread_flags"
20051	;;
20052
20053	openedition*)
20054
20055	# IBM z/OS requires a feature-test macro to be defined in order to
20056	# enable POSIX threads at all, so give the user a hint if this is
20057	# not set. (We don't define these ourselves, as they can affect
20058	# other portions of the system API in unpredictable ways.)
20059
20060	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061/* end confdefs.h.  */
20062
20063#	     if !defined(_OPEN_THREADS) && !defined(_UNIX03_THREADS)
20064	     AX_PTHREAD_ZOS_MISSING
20065#	     endif
20066
20067_ACEOF
20068if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20069  $EGREP "AX_PTHREAD_ZOS_MISSING" >/dev/null 2>&1; then :
20070  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&5
20071$as_echo "$as_me: WARNING: IBM z/OS requires -D_OPEN_THREADS or -D_UNIX03_THREADS to enable pthreads support." >&2;}
20072fi
20073rm -f conftest*
20074
20075	;;
20076
20077	solaris*)
20078
20079	# On Solaris (at least, for some versions), libc contains stubbed
20080	# (non-functional) versions of the pthreads routines, so link-based
20081	# tests will erroneously succeed. (N.B.: The stubs are missing
20082	# pthread_cleanup_push, or rather a function called by this macro,
20083	# so we could check for that, but who knows whether they'll stub
20084	# that too in a future libc.)  So we'll check first for the
20085	# standard Solaris way of linking pthreads (-mt -lpthread).
20086
20087	ax_pthread_flags="-mt,pthread pthread $ax_pthread_flags"
20088	;;
20089esac
20090
20091# GCC generally uses -pthread, or -pthreads on some platforms (e.g. SPARC)
20092
20093if test "x$GCC" = "xyes"; then :
20094  ax_pthread_flags="-pthread -pthreads $ax_pthread_flags"
20095fi
20096
20097# The presence of a feature test macro requesting re-entrant function
20098# definitions is, on some systems, a strong hint that pthreads support is
20099# correctly enabled
20100
20101case $host_os in
20102	darwin* | hpux* | linux* | osf* | solaris*)
20103	ax_pthread_check_macro="_REENTRANT"
20104	;;
20105
20106	aix* | freebsd*)
20107	ax_pthread_check_macro="_THREAD_SAFE"
20108	;;
20109
20110	*)
20111	ax_pthread_check_macro="--"
20112	;;
20113esac
20114if test "x$ax_pthread_check_macro" = "x--"; then :
20115  ax_pthread_check_cond=0
20116else
20117  ax_pthread_check_cond="!defined($ax_pthread_check_macro)"
20118fi
20119
20120# Are we compiling with Clang?
20121
20122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC is Clang" >&5
20123$as_echo_n "checking whether $CC is Clang... " >&6; }
20124if ${ax_cv_PTHREAD_CLANG+:} false; then :
20125  $as_echo_n "(cached) " >&6
20126else
20127  ax_cv_PTHREAD_CLANG=no
20128     # Note that Autoconf sets GCC=yes for Clang as well as GCC
20129     if test "x$GCC" = "xyes"; then
20130	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20131/* end confdefs.h.  */
20132/* Note: Clang 2.7 lacks __clang_[a-z]+__ */
20133#	     if defined(__clang__) && defined(__llvm__)
20134	     AX_PTHREAD_CC_IS_CLANG
20135#	     endif
20136
20137_ACEOF
20138if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20139  $EGREP "AX_PTHREAD_CC_IS_CLANG" >/dev/null 2>&1; then :
20140  ax_cv_PTHREAD_CLANG=yes
20141fi
20142rm -f conftest*
20143
20144     fi
20145
20146fi
20147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG" >&5
20148$as_echo "$ax_cv_PTHREAD_CLANG" >&6; }
20149ax_pthread_clang="$ax_cv_PTHREAD_CLANG"
20150
20151ax_pthread_clang_warning=no
20152
20153# Clang needs special handling, because older versions handle the -pthread
20154# option in a rather... idiosyncratic way
20155
20156if test "x$ax_pthread_clang" = "xyes"; then
20157
20158	# Clang takes -pthread; it has never supported any other flag
20159
20160	# (Note 1: This will need to be revisited if a system that Clang
20161	# supports has POSIX threads in a separate library.  This tends not
20162	# to be the way of modern systems, but it's conceivable.)
20163
20164	# (Note 2: On some systems, notably Darwin, -pthread is not needed
20165	# to get POSIX threads support; the API is always present and
20166	# active.  We could reasonably leave PTHREAD_CFLAGS empty.  But
20167	# -pthread does define _REENTRANT, and while the Darwin headers
20168	# ignore this macro, third-party headers might not.)
20169
20170	PTHREAD_CFLAGS="-pthread"
20171	PTHREAD_LIBS=
20172
20173	ax_pthread_ok=yes
20174
20175	# However, older versions of Clang make a point of warning the user
20176	# that, in an invocation where only linking and no compilation is
20177	# taking place, the -pthread option has no effect ("argument unused
20178	# during compilation").  They expect -pthread to be passed in only
20179	# when source code is being compiled.
20180	#
20181	# Problem is, this is at odds with the way Automake and most other
20182	# C build frameworks function, which is that the same flags used in
20183	# compilation (CFLAGS) are also used in linking.  Many systems
20184	# supported by AX_PTHREAD require exactly this for POSIX threads
20185	# support, and in fact it is often not straightforward to specify a
20186	# flag that is used only in the compilation phase and not in
20187	# linking.  Such a scenario is extremely rare in practice.
20188	#
20189	# Even though use of the -pthread flag in linking would only print
20190	# a warning, this can be a nuisance for well-run software projects
20191	# that build with -Werror.  So if the active version of Clang has
20192	# this misfeature, we search for an option to squash it.
20193
20194	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread" >&5
20195$as_echo_n "checking whether Clang needs flag to prevent \"argument unused\" warning when linking with -pthread... " >&6; }
20196if ${ax_cv_PTHREAD_CLANG_NO_WARN_FLAG+:} false; then :
20197  $as_echo_n "(cached) " >&6
20198else
20199  ax_cv_PTHREAD_CLANG_NO_WARN_FLAG=unknown
20200	     # Create an alternate version of $ac_link that compiles and
20201	     # links in two steps (.c -> .o, .o -> exe) instead of one
20202	     # (.c -> exe), because the warning occurs only in the second
20203	     # step
20204	     ax_pthread_save_ac_link="$ac_link"
20205	     ax_pthread_sed='s/conftest\.\$ac_ext/conftest.$ac_objext/g'
20206	     ax_pthread_link_step=`$as_echo "$ac_link" | sed "$ax_pthread_sed"`
20207	     ax_pthread_2step_ac_link="($ac_compile) && (echo ==== >&5) && ($ax_pthread_link_step)"
20208	     ax_pthread_save_CFLAGS="$CFLAGS"
20209	     for ax_pthread_try in '' -Qunused-arguments -Wno-unused-command-line-argument unknown; do
20210		if test "x$ax_pthread_try" = "xunknown"; then :
20211  break
20212fi
20213		CFLAGS="-Werror -Wunknown-warning-option $ax_pthread_try -pthread $ax_pthread_save_CFLAGS"
20214		ac_link="$ax_pthread_save_ac_link"
20215		cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216/* end confdefs.h.  */
20217int main(void){return 0;}
20218_ACEOF
20219if ac_fn_c_try_link "$LINENO"; then :
20220  ac_link="$ax_pthread_2step_ac_link"
20221		     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20222/* end confdefs.h.  */
20223int main(void){return 0;}
20224_ACEOF
20225if ac_fn_c_try_link "$LINENO"; then :
20226  break
20227fi
20228rm -f core conftest.err conftest.$ac_objext \
20229    conftest$ac_exeext conftest.$ac_ext
20230
20231fi
20232rm -f core conftest.err conftest.$ac_objext \
20233    conftest$ac_exeext conftest.$ac_ext
20234	     done
20235	     ac_link="$ax_pthread_save_ac_link"
20236	     CFLAGS="$ax_pthread_save_CFLAGS"
20237	     if test "x$ax_pthread_try" = "x"; then :
20238  ax_pthread_try=no
20239fi
20240	     ax_cv_PTHREAD_CLANG_NO_WARN_FLAG="$ax_pthread_try"
20241
20242fi
20243{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&5
20244$as_echo "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" >&6; }
20245
20246	case "$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG" in
20247		no | unknown) ;;
20248		*) PTHREAD_CFLAGS="$ax_cv_PTHREAD_CLANG_NO_WARN_FLAG $PTHREAD_CFLAGS" ;;
20249	esac
20250
20251fi # $ax_pthread_clang = yes
20252
20253if test "x$ax_pthread_ok" = "xno"; then
20254for ax_pthread_try_flag in $ax_pthread_flags; do
20255
20256	case $ax_pthread_try_flag in
20257		none)
20258		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5
20259$as_echo_n "checking whether pthreads work without any flags... " >&6; }
20260		;;
20261
20262		-mt,pthread)
20263		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with -mt -lpthread" >&5
20264$as_echo_n "checking whether pthreads work with -mt -lpthread... " >&6; }
20265		PTHREAD_CFLAGS="-mt"
20266		PTHREAD_LIBS="-lpthread"
20267		;;
20268
20269		-*)
20270		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $ax_pthread_try_flag" >&5
20271$as_echo_n "checking whether pthreads work with $ax_pthread_try_flag... " >&6; }
20272		PTHREAD_CFLAGS="$ax_pthread_try_flag"
20273		;;
20274
20275		pthread-config)
20276		# Extract the first word of "pthread-config", so it can be a program name with args.
20277set dummy pthread-config; ac_word=$2
20278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20279$as_echo_n "checking for $ac_word... " >&6; }
20280if ${ac_cv_prog_ax_pthread_config+:} false; then :
20281  $as_echo_n "(cached) " >&6
20282else
20283  if test -n "$ax_pthread_config"; then
20284  ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test.
20285else
20286as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20287for as_dir in $PATH
20288do
20289  IFS=$as_save_IFS
20290  test -z "$as_dir" && as_dir=.
20291    for ac_exec_ext in '' $ac_executable_extensions; do
20292  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20293    ac_cv_prog_ax_pthread_config="yes"
20294    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20295    break 2
20296  fi
20297done
20298  done
20299IFS=$as_save_IFS
20300
20301  test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no"
20302fi
20303fi
20304ax_pthread_config=$ac_cv_prog_ax_pthread_config
20305if test -n "$ax_pthread_config"; then
20306  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5
20307$as_echo "$ax_pthread_config" >&6; }
20308else
20309  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20310$as_echo "no" >&6; }
20311fi
20312
20313
20314		if test "x$ax_pthread_config" = "xno"; then :
20315  continue
20316fi
20317		PTHREAD_CFLAGS="`pthread-config --cflags`"
20318		PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
20319		;;
20320
20321		*)
20322		{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$ax_pthread_try_flag" >&5
20323$as_echo_n "checking for the pthreads library -l$ax_pthread_try_flag... " >&6; }
20324		PTHREAD_LIBS="-l$ax_pthread_try_flag"
20325		;;
20326	esac
20327
20328	ax_pthread_save_CFLAGS="$CFLAGS"
20329	ax_pthread_save_LIBS="$LIBS"
20330	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20331	LIBS="$PTHREAD_LIBS $LIBS"
20332
20333	# Check for various functions.  We must include pthread.h,
20334	# since some functions may be macros.  (On the Sequent, we
20335	# need a special flag -Kthread to make this header compile.)
20336	# We check for pthread_join because it is in -lpthread on IRIX
20337	# while pthread_create is in libc.  We check for pthread_attr_init
20338	# due to DEC craziness with -lpthreads.  We check for
20339	# pthread_cleanup_push because it is one of the few pthread
20340	# functions on Solaris that doesn't have a non-functional libc stub.
20341	# We try pthread_create on general principles.
20342
20343	cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344/* end confdefs.h.  */
20345#include <pthread.h>
20346#			if $ax_pthread_check_cond
20347#			 error "$ax_pthread_check_macro must be defined"
20348#			endif
20349			static void routine(void *a) { a = 0; }
20350			static void *start_routine(void *a) { return a; }
20351int
20352main ()
20353{
20354pthread_t th; pthread_attr_t attr;
20355			pthread_create(&th, 0, start_routine, 0);
20356			pthread_join(th, 0);
20357			pthread_attr_init(&attr);
20358			pthread_cleanup_push(routine, 0);
20359			pthread_cleanup_pop(0) /* ; */
20360  ;
20361  return 0;
20362}
20363_ACEOF
20364if ac_fn_c_try_link "$LINENO"; then :
20365  ax_pthread_ok=yes
20366fi
20367rm -f core conftest.err conftest.$ac_objext \
20368    conftest$ac_exeext conftest.$ac_ext
20369
20370	CFLAGS="$ax_pthread_save_CFLAGS"
20371	LIBS="$ax_pthread_save_LIBS"
20372
20373	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5
20374$as_echo "$ax_pthread_ok" >&6; }
20375	if test "x$ax_pthread_ok" = "xyes"; then :
20376  break
20377fi
20378
20379	PTHREAD_LIBS=""
20380	PTHREAD_CFLAGS=""
20381done
20382fi
20383
20384# Various other checks:
20385if test "x$ax_pthread_ok" = "xyes"; then
20386	ax_pthread_save_CFLAGS="$CFLAGS"
20387	ax_pthread_save_LIBS="$LIBS"
20388	CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
20389	LIBS="$PTHREAD_LIBS $LIBS"
20390
20391	# Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
20392	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5
20393$as_echo_n "checking for joinable pthread attribute... " >&6; }
20394if ${ax_cv_PTHREAD_JOINABLE_ATTR+:} false; then :
20395  $as_echo_n "(cached) " >&6
20396else
20397  ax_cv_PTHREAD_JOINABLE_ATTR=unknown
20398	     for ax_pthread_attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
20399		 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20400/* end confdefs.h.  */
20401#include <pthread.h>
20402int
20403main ()
20404{
20405int attr = $ax_pthread_attr; return attr /* ; */
20406  ;
20407  return 0;
20408}
20409_ACEOF
20410if ac_fn_c_try_link "$LINENO"; then :
20411  ax_cv_PTHREAD_JOINABLE_ATTR=$ax_pthread_attr; break
20412fi
20413rm -f core conftest.err conftest.$ac_objext \
20414    conftest$ac_exeext conftest.$ac_ext
20415	     done
20416
20417fi
20418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_JOINABLE_ATTR" >&5
20419$as_echo "$ax_cv_PTHREAD_JOINABLE_ATTR" >&6; }
20420	if test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xunknown" && \
20421	       test "x$ax_cv_PTHREAD_JOINABLE_ATTR" != "xPTHREAD_CREATE_JOINABLE" && \
20422	       test "x$ax_pthread_joinable_attr_defined" != "xyes"; then :
20423
20424cat >>confdefs.h <<_ACEOF
20425#define PTHREAD_CREATE_JOINABLE $ax_cv_PTHREAD_JOINABLE_ATTR
20426_ACEOF
20427
20428	       ax_pthread_joinable_attr_defined=yes
20429
20430fi
20431
20432	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether more special flags are required for pthreads" >&5
20433$as_echo_n "checking whether more special flags are required for pthreads... " >&6; }
20434if ${ax_cv_PTHREAD_SPECIAL_FLAGS+:} false; then :
20435  $as_echo_n "(cached) " >&6
20436else
20437  ax_cv_PTHREAD_SPECIAL_FLAGS=no
20438	     case $host_os in
20439	     solaris*)
20440	     ax_cv_PTHREAD_SPECIAL_FLAGS="-D_POSIX_PTHREAD_SEMANTICS"
20441	     ;;
20442	     esac
20443
20444fi
20445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_SPECIAL_FLAGS" >&5
20446$as_echo "$ax_cv_PTHREAD_SPECIAL_FLAGS" >&6; }
20447	if test "x$ax_cv_PTHREAD_SPECIAL_FLAGS" != "xno" && \
20448	       test "x$ax_pthread_special_flags_added" != "xyes"; then :
20449  PTHREAD_CFLAGS="$ax_cv_PTHREAD_SPECIAL_FLAGS $PTHREAD_CFLAGS"
20450	       ax_pthread_special_flags_added=yes
20451fi
20452
20453	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5
20454$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; }
20455if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then :
20456  $as_echo_n "(cached) " >&6
20457else
20458  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20459/* end confdefs.h.  */
20460#include <pthread.h>
20461int
20462main ()
20463{
20464int i = PTHREAD_PRIO_INHERIT;
20465  ;
20466  return 0;
20467}
20468_ACEOF
20469if ac_fn_c_try_link "$LINENO"; then :
20470  ax_cv_PTHREAD_PRIO_INHERIT=yes
20471else
20472  ax_cv_PTHREAD_PRIO_INHERIT=no
20473fi
20474rm -f core conftest.err conftest.$ac_objext \
20475    conftest$ac_exeext conftest.$ac_ext
20476
20477fi
20478{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5
20479$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; }
20480	if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes" && \
20481	       test "x$ax_pthread_prio_inherit_defined" != "xyes"; then :
20482
20483$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h
20484
20485	       ax_pthread_prio_inherit_defined=yes
20486
20487fi
20488
20489	CFLAGS="$ax_pthread_save_CFLAGS"
20490	LIBS="$ax_pthread_save_LIBS"
20491
20492	# More AIX lossage: compile with *_r variant
20493	if test "x$GCC" != "xyes"; then
20494	    case $host_os in
20495		aix*)
20496		case "x/$CC" in #(
20497  x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) :
20498    #handle absolute path differently from PATH based program lookup
20499		     case "x$CC" in #(
20500  x/*) :
20501    if as_fn_executable_p ${CC}_r; then :
20502  PTHREAD_CC="${CC}_r"
20503fi ;; #(
20504  *) :
20505    for ac_prog in ${CC}_r
20506do
20507  # Extract the first word of "$ac_prog", so it can be a program name with args.
20508set dummy $ac_prog; ac_word=$2
20509{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20510$as_echo_n "checking for $ac_word... " >&6; }
20511if ${ac_cv_prog_PTHREAD_CC+:} false; then :
20512  $as_echo_n "(cached) " >&6
20513else
20514  if test -n "$PTHREAD_CC"; then
20515  ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test.
20516else
20517as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20518for as_dir in $PATH
20519do
20520  IFS=$as_save_IFS
20521  test -z "$as_dir" && as_dir=.
20522    for ac_exec_ext in '' $ac_executable_extensions; do
20523  if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20524    ac_cv_prog_PTHREAD_CC="$ac_prog"
20525    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20526    break 2
20527  fi
20528done
20529  done
20530IFS=$as_save_IFS
20531
20532fi
20533fi
20534PTHREAD_CC=$ac_cv_prog_PTHREAD_CC
20535if test -n "$PTHREAD_CC"; then
20536  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5
20537$as_echo "$PTHREAD_CC" >&6; }
20538else
20539  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20540$as_echo "no" >&6; }
20541fi
20542
20543
20544  test -n "$PTHREAD_CC" && break
20545done
20546test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20547 ;;
20548esac ;; #(
20549  *) :
20550     ;;
20551esac
20552		;;
20553	    esac
20554	fi
20555fi
20556
20557test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
20558
20559
20560
20561
20562
20563# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
20564if test "x$ax_pthread_ok" = "xyes"; then
20565
20566$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h
20567
20568	:
20569else
20570	ax_pthread_ok=no
20571
20572fi
20573ac_ext=cpp
20574ac_cpp='$CXXCPP $CPPFLAGS'
20575ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20576ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20577ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20578
20579
20580 if test "x$ax_pthread_ok" = "xyes"; then
20581  HAVE_PTHREAD_TRUE=
20582  HAVE_PTHREAD_FALSE='#'
20583else
20584  HAVE_PTHREAD_TRUE='#'
20585  HAVE_PTHREAD_FALSE=
20586fi
20587
20588# We still keep this for improving pbconfig.h for unsupported platforms.
20589
20590   { $as_echo "$as_me:${as_lineno-$LINENO}: checking the location of hash_map" >&5
20591$as_echo_n "checking the location of hash_map... " >&6; }
20592
20593   ac_ext=cpp
20594ac_cpp='$CXXCPP $CPPFLAGS'
20595ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20596ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20597ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20598
20599   ac_cv_cxx_hash_map=""
20600   # First try unordered_map, but not on gcc's before 4.2 -- I've
20601   # seen unexplainable unordered_map bugs with -O2 on older gcc's.
20602   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20603/* end confdefs.h.  */
20604#if defined(__GNUC__) && (__GNUC__ < 4 || (__GNUC__ == 4 && __GNUC_MINOR__ < 2))
20605                   # error GCC too old for unordered_map
20606                   #endif
20607
20608int
20609main ()
20610{
20611/* no program body necessary */
20612  ;
20613  return 0;
20614}
20615_ACEOF
20616if ac_fn_cxx_try_compile "$LINENO"; then :
20617  stl_hash_old_gcc=no
20618else
20619  stl_hash_old_gcc=yes
20620fi
20621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20622   for location in unordered_map tr1/unordered_map; do
20623     for namespace in std std::tr1; do
20624       if test -z "$ac_cv_cxx_hash_map" -a "$stl_hash_old_gcc" != yes; then
20625         # Some older gcc's have a buggy tr1, so test a bit of code.
20626         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20627/* end confdefs.h.  */
20628#include <$location>
20629int
20630main ()
20631{
20632const ${namespace}::unordered_map<int, int> t;
20633                         return t.find(5) == t.end();
20634  ;
20635  return 0;
20636}
20637_ACEOF
20638if ac_fn_cxx_try_compile "$LINENO"; then :
20639  ac_cv_cxx_hash_map="<$location>";
20640                         ac_cv_cxx_hash_namespace="$namespace";
20641                         ac_cv_cxx_hash_map_class="unordered_map";
20642fi
20643rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20644       fi
20645     done
20646   done
20647   # Now try hash_map
20648   for location in ext/hash_map hash_map; do
20649     for namespace in __gnu_cxx "" std stdext; do
20650       if test -z "$ac_cv_cxx_hash_map"; then
20651         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20652/* end confdefs.h.  */
20653#include <$location>
20654int
20655main ()
20656{
20657${namespace}::hash_map<int, int> t
20658  ;
20659  return 0;
20660}
20661_ACEOF
20662if ac_fn_cxx_try_compile "$LINENO"; then :
20663  ac_cv_cxx_hash_map="<$location>";
20664                         ac_cv_cxx_hash_namespace="$namespace";
20665                         ac_cv_cxx_hash_map_class="hash_map";
20666fi
20667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20668       fi
20669     done
20670   done
20671   ac_cv_cxx_hash_set=`echo "$ac_cv_cxx_hash_map" | sed s/map/set/`;
20672   ac_cv_cxx_hash_set_class=`echo "$ac_cv_cxx_hash_map_class" | sed s/map/set/`;
20673   if test -n "$ac_cv_cxx_hash_map"; then
20674
20675$as_echo "#define HAVE_HASH_MAP 1" >>confdefs.h
20676
20677
20678$as_echo "#define HAVE_HASH_SET 1" >>confdefs.h
20679
20680
20681cat >>confdefs.h <<_ACEOF
20682#define HASH_MAP_H $ac_cv_cxx_hash_map
20683_ACEOF
20684
20685
20686cat >>confdefs.h <<_ACEOF
20687#define HASH_SET_H $ac_cv_cxx_hash_set
20688_ACEOF
20689
20690
20691cat >>confdefs.h <<_ACEOF
20692#define HASH_NAMESPACE $ac_cv_cxx_hash_namespace
20693_ACEOF
20694
20695
20696cat >>confdefs.h <<_ACEOF
20697#define HASH_MAP_CLASS $ac_cv_cxx_hash_map_class
20698_ACEOF
20699
20700
20701cat >>confdefs.h <<_ACEOF
20702#define HASH_SET_CLASS $ac_cv_cxx_hash_set_class
20703_ACEOF
20704
20705      { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_hash_map" >&5
20706$as_echo "$ac_cv_cxx_hash_map" >&6; }
20707   else
20708      { $as_echo "$as_me:${as_lineno-$LINENO}: result: " >&5
20709$as_echo "" >&6; }
20710      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: could not find an STL hash_map" >&5
20711$as_echo "$as_me: WARNING: could not find an STL hash_map" >&2;}
20712   fi
20713
20714
20715# Enable ObjC support for conformance directory on OS X.
20716OBJC_CONFORMANCE_TEST=0
20717case "$target_os" in
20718  darwin*)
20719    OBJC_CONFORMANCE_TEST=1
20720    ;;
20721esac
20722 if test $OBJC_CONFORMANCE_TEST = 1; then
20723  OBJC_CONFORMANCE_TEST_TRUE=
20724  OBJC_CONFORMANCE_TEST_FALSE='#'
20725else
20726  OBJC_CONFORMANCE_TEST_TRUE='#'
20727  OBJC_CONFORMANCE_TEST_FALSE=
20728fi
20729
20730
20731# HACK:  Make gmock's configure script pick up our copy of CFLAGS and CXXFLAGS,
20732#   since the flags added by ACX_CHECK_SUNCC must be used when compiling gmock
20733#   too.
20734export CFLAGS
20735export CXXFLAGS
20736
20737
20738subdirs="$subdirs third_party/googletest"
20739
20740
20741ac_config_files="$ac_config_files Makefile src/Makefile benchmarks/Makefile conformance/Makefile protobuf.pc protobuf-lite.pc"
20742
20743cat >confcache <<\_ACEOF
20744# This file is a shell script that caches the results of configure
20745# tests run on this system so they can be shared between configure
20746# scripts and configure runs, see configure's option --config-cache.
20747# It is not useful on other systems.  If it contains results you don't
20748# want to keep, you may remove or edit it.
20749#
20750# config.status only pays attention to the cache file if you give it
20751# the --recheck option to rerun configure.
20752#
20753# `ac_cv_env_foo' variables (set or unset) will be overridden when
20754# loading this file, other *unset* `ac_cv_foo' will be assigned the
20755# following values.
20756
20757_ACEOF
20758
20759# The following way of writing the cache mishandles newlines in values,
20760# but we know of no workaround that is simple, portable, and efficient.
20761# So, we kill variables containing newlines.
20762# Ultrix sh set writes to stderr and can't be redirected directly,
20763# and sets the high bit in the cache file unless we assign to the vars.
20764(
20765  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20766    eval ac_val=\$$ac_var
20767    case $ac_val in #(
20768    *${as_nl}*)
20769      case $ac_var in #(
20770      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20771$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20772      esac
20773      case $ac_var in #(
20774      _ | IFS | as_nl) ;; #(
20775      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20776      *) { eval $ac_var=; unset $ac_var;} ;;
20777      esac ;;
20778    esac
20779  done
20780
20781  (set) 2>&1 |
20782    case $as_nl`(ac_space=' '; set) 2>&1` in #(
20783    *${as_nl}ac_space=\ *)
20784      # `set' does not quote correctly, so add quotes: double-quote
20785      # substitution turns \\\\ into \\, and sed turns \\ into \.
20786      sed -n \
20787	"s/'/'\\\\''/g;
20788	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20789      ;; #(
20790    *)
20791      # `set' quotes correctly as required by POSIX, so do not add quotes.
20792      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20793      ;;
20794    esac |
20795    sort
20796) |
20797  sed '
20798     /^ac_cv_env_/b end
20799     t clear
20800     :clear
20801     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20802     t end
20803     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20804     :end' >>confcache
20805if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20806  if test -w "$cache_file"; then
20807    if test "x$cache_file" != "x/dev/null"; then
20808      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20809$as_echo "$as_me: updating cache $cache_file" >&6;}
20810      if test ! -f "$cache_file" || test -h "$cache_file"; then
20811	cat confcache >"$cache_file"
20812      else
20813        case $cache_file in #(
20814        */* | ?:*)
20815	  mv -f confcache "$cache_file"$$ &&
20816	  mv -f "$cache_file"$$ "$cache_file" ;; #(
20817        *)
20818	  mv -f confcache "$cache_file" ;;
20819	esac
20820      fi
20821    fi
20822  else
20823    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20824$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20825  fi
20826fi
20827rm -f confcache
20828
20829test "x$prefix" = xNONE && prefix=$ac_default_prefix
20830# Let make expand exec_prefix.
20831test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20832
20833DEFS=-DHAVE_CONFIG_H
20834
20835ac_libobjs=
20836ac_ltlibobjs=
20837U=
20838for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20839  # 1. Remove the extension, and $U if already installed.
20840  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20841  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20842  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20843  #    will be set to the directory where LIBOBJS objects are built.
20844  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20845  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20846done
20847LIBOBJS=$ac_libobjs
20848
20849LTLIBOBJS=$ac_ltlibobjs
20850
20851
20852if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20853  as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20854Usually this means the macro was only invoked conditionally." "$LINENO" 5
20855fi
20856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20857$as_echo_n "checking that generated files are newer than configure... " >&6; }
20858   if test -n "$am_sleep_pid"; then
20859     # Hide warnings about reused PIDs.
20860     wait $am_sleep_pid 2>/dev/null
20861   fi
20862   { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20863$as_echo "done" >&6; }
20864 if test -n "$EXEEXT"; then
20865  am__EXEEXT_TRUE=
20866  am__EXEEXT_FALSE='#'
20867else
20868  am__EXEEXT_TRUE='#'
20869  am__EXEEXT_FALSE=
20870fi
20871
20872if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20873  as_fn_error $? "conditional \"AMDEP\" was never defined.
20874Usually this means the macro was only invoked conditionally." "$LINENO" 5
20875fi
20876if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20877  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20878Usually this means the macro was only invoked conditionally." "$LINENO" 5
20879fi
20880if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20881  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20882Usually this means the macro was only invoked conditionally." "$LINENO" 5
20883fi
20884if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20885  as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20886Usually this means the macro was only invoked conditionally." "$LINENO" 5
20887fi
20888if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20889  as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20890Usually this means the macro was only invoked conditionally." "$LINENO" 5
20891fi
20892if test -z "${GCC_TRUE}" && test -z "${GCC_FALSE}"; then
20893  as_fn_error $? "conditional \"GCC\" was never defined.
20894Usually this means the macro was only invoked conditionally." "$LINENO" 5
20895fi
20896if test -z "${am__fastdepOBJC_TRUE}" && test -z "${am__fastdepOBJC_FALSE}"; then
20897  as_fn_error $? "conditional \"am__fastdepOBJC\" was never defined.
20898Usually this means the macro was only invoked conditionally." "$LINENO" 5
20899fi
20900if test -z "${HAVE_LD_VERSION_SCRIPT_TRUE}" && test -z "${HAVE_LD_VERSION_SCRIPT_FALSE}"; then
20901  as_fn_error $? "conditional \"HAVE_LD_VERSION_SCRIPT\" was never defined.
20902Usually this means the macro was only invoked conditionally." "$LINENO" 5
20903fi
20904if test -z "${HAVE_ZLIB_TRUE}" && test -z "${HAVE_ZLIB_FALSE}"; then
20905  as_fn_error $? "conditional \"HAVE_ZLIB\" was never defined.
20906Usually this means the macro was only invoked conditionally." "$LINENO" 5
20907fi
20908if test -z "${USE_EXTERNAL_PROTOC_TRUE}" && test -z "${USE_EXTERNAL_PROTOC_FALSE}"; then
20909  as_fn_error $? "conditional \"USE_EXTERNAL_PROTOC\" was never defined.
20910Usually this means the macro was only invoked conditionally." "$LINENO" 5
20911fi
20912if test -z "${HAVE_PTHREAD_TRUE}" && test -z "${HAVE_PTHREAD_FALSE}"; then
20913  as_fn_error $? "conditional \"HAVE_PTHREAD\" was never defined.
20914Usually this means the macro was only invoked conditionally." "$LINENO" 5
20915fi
20916if test -z "${OBJC_CONFORMANCE_TEST_TRUE}" && test -z "${OBJC_CONFORMANCE_TEST_FALSE}"; then
20917  as_fn_error $? "conditional \"OBJC_CONFORMANCE_TEST\" was never defined.
20918Usually this means the macro was only invoked conditionally." "$LINENO" 5
20919fi
20920
20921: "${CONFIG_STATUS=./config.status}"
20922ac_write_fail=0
20923ac_clean_files_save=$ac_clean_files
20924ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20925{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20926$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20927as_write_fail=0
20928cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20929#! $SHELL
20930# Generated by $as_me.
20931# Run this file to recreate the current configuration.
20932# Compiler output produced by configure, useful for debugging
20933# configure, is in config.log if it exists.
20934
20935debug=false
20936ac_cs_recheck=false
20937ac_cs_silent=false
20938
20939SHELL=\${CONFIG_SHELL-$SHELL}
20940export SHELL
20941_ASEOF
20942cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20943## -------------------- ##
20944## M4sh Initialization. ##
20945## -------------------- ##
20946
20947# Be more Bourne compatible
20948DUALCASE=1; export DUALCASE # for MKS sh
20949if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20950  emulate sh
20951  NULLCMD=:
20952  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20953  # is contrary to our usage.  Disable this feature.
20954  alias -g '${1+"$@"}'='"$@"'
20955  setopt NO_GLOB_SUBST
20956else
20957  case `(set -o) 2>/dev/null` in #(
20958  *posix*) :
20959    set -o posix ;; #(
20960  *) :
20961     ;;
20962esac
20963fi
20964
20965
20966as_nl='
20967'
20968export as_nl
20969# Printing a long string crashes Solaris 7 /usr/bin/printf.
20970as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20971as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20972as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20973# Prefer a ksh shell builtin over an external printf program on Solaris,
20974# but without wasting forks for bash or zsh.
20975if test -z "$BASH_VERSION$ZSH_VERSION" \
20976    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20977  as_echo='print -r --'
20978  as_echo_n='print -rn --'
20979elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20980  as_echo='printf %s\n'
20981  as_echo_n='printf %s'
20982else
20983  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20984    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20985    as_echo_n='/usr/ucb/echo -n'
20986  else
20987    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20988    as_echo_n_body='eval
20989      arg=$1;
20990      case $arg in #(
20991      *"$as_nl"*)
20992	expr "X$arg" : "X\\(.*\\)$as_nl";
20993	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20994      esac;
20995      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20996    '
20997    export as_echo_n_body
20998    as_echo_n='sh -c $as_echo_n_body as_echo'
20999  fi
21000  export as_echo_body
21001  as_echo='sh -c $as_echo_body as_echo'
21002fi
21003
21004# The user is always right.
21005if test "${PATH_SEPARATOR+set}" != set; then
21006  PATH_SEPARATOR=:
21007  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21008    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21009      PATH_SEPARATOR=';'
21010  }
21011fi
21012
21013
21014# IFS
21015# We need space, tab and new line, in precisely that order.  Quoting is
21016# there to prevent editors from complaining about space-tab.
21017# (If _AS_PATH_WALK were called with IFS unset, it would disable word
21018# splitting by setting IFS to empty value.)
21019IFS=" ""	$as_nl"
21020
21021# Find who we are.  Look in the path if we contain no directory separator.
21022as_myself=
21023case $0 in #((
21024  *[\\/]* ) as_myself=$0 ;;
21025  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21026for as_dir in $PATH
21027do
21028  IFS=$as_save_IFS
21029  test -z "$as_dir" && as_dir=.
21030    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21031  done
21032IFS=$as_save_IFS
21033
21034     ;;
21035esac
21036# We did not find ourselves, most probably we were run as `sh COMMAND'
21037# in which case we are not to be found in the path.
21038if test "x$as_myself" = x; then
21039  as_myself=$0
21040fi
21041if test ! -f "$as_myself"; then
21042  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21043  exit 1
21044fi
21045
21046# Unset variables that we do not need and which cause bugs (e.g. in
21047# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
21048# suppresses any "Segmentation fault" message there.  '((' could
21049# trigger a bug in pdksh 5.2.14.
21050for as_var in BASH_ENV ENV MAIL MAILPATH
21051do eval test x\${$as_var+set} = xset \
21052  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21053done
21054PS1='$ '
21055PS2='> '
21056PS4='+ '
21057
21058# NLS nuisances.
21059LC_ALL=C
21060export LC_ALL
21061LANGUAGE=C
21062export LANGUAGE
21063
21064# CDPATH.
21065(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21066
21067
21068# as_fn_error STATUS ERROR [LINENO LOG_FD]
21069# ----------------------------------------
21070# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21071# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21072# script with STATUS, using 1 if that was 0.
21073as_fn_error ()
21074{
21075  as_status=$1; test $as_status -eq 0 && as_status=1
21076  if test "$4"; then
21077    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21078    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
21079  fi
21080  $as_echo "$as_me: error: $2" >&2
21081  as_fn_exit $as_status
21082} # as_fn_error
21083
21084
21085# as_fn_set_status STATUS
21086# -----------------------
21087# Set $? to STATUS, without forking.
21088as_fn_set_status ()
21089{
21090  return $1
21091} # as_fn_set_status
21092
21093# as_fn_exit STATUS
21094# -----------------
21095# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21096as_fn_exit ()
21097{
21098  set +e
21099  as_fn_set_status $1
21100  exit $1
21101} # as_fn_exit
21102
21103# as_fn_unset VAR
21104# ---------------
21105# Portably unset VAR.
21106as_fn_unset ()
21107{
21108  { eval $1=; unset $1;}
21109}
21110as_unset=as_fn_unset
21111# as_fn_append VAR VALUE
21112# ----------------------
21113# Append the text in VALUE to the end of the definition contained in VAR. Take
21114# advantage of any shell optimizations that allow amortized linear growth over
21115# repeated appends, instead of the typical quadratic growth present in naive
21116# implementations.
21117if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21118  eval 'as_fn_append ()
21119  {
21120    eval $1+=\$2
21121  }'
21122else
21123  as_fn_append ()
21124  {
21125    eval $1=\$$1\$2
21126  }
21127fi # as_fn_append
21128
21129# as_fn_arith ARG...
21130# ------------------
21131# Perform arithmetic evaluation on the ARGs, and store the result in the
21132# global $as_val. Take advantage of shells that can avoid forks. The arguments
21133# must be portable across $(()) and expr.
21134if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21135  eval 'as_fn_arith ()
21136  {
21137    as_val=$(( $* ))
21138  }'
21139else
21140  as_fn_arith ()
21141  {
21142    as_val=`expr "$@" || test $? -eq 1`
21143  }
21144fi # as_fn_arith
21145
21146
21147if expr a : '\(a\)' >/dev/null 2>&1 &&
21148   test "X`expr 00001 : '.*\(...\)'`" = X001; then
21149  as_expr=expr
21150else
21151  as_expr=false
21152fi
21153
21154if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21155  as_basename=basename
21156else
21157  as_basename=false
21158fi
21159
21160if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21161  as_dirname=dirname
21162else
21163  as_dirname=false
21164fi
21165
21166as_me=`$as_basename -- "$0" ||
21167$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21168	 X"$0" : 'X\(//\)$' \| \
21169	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21170$as_echo X/"$0" |
21171    sed '/^.*\/\([^/][^/]*\)\/*$/{
21172	    s//\1/
21173	    q
21174	  }
21175	  /^X\/\(\/\/\)$/{
21176	    s//\1/
21177	    q
21178	  }
21179	  /^X\/\(\/\).*/{
21180	    s//\1/
21181	    q
21182	  }
21183	  s/.*/./; q'`
21184
21185# Avoid depending upon Character Ranges.
21186as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21187as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21188as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21189as_cr_digits='0123456789'
21190as_cr_alnum=$as_cr_Letters$as_cr_digits
21191
21192ECHO_C= ECHO_N= ECHO_T=
21193case `echo -n x` in #(((((
21194-n*)
21195  case `echo 'xy\c'` in
21196  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
21197  xy)  ECHO_C='\c';;
21198  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
21199       ECHO_T='	';;
21200  esac;;
21201*)
21202  ECHO_N='-n';;
21203esac
21204
21205rm -f conf$$ conf$$.exe conf$$.file
21206if test -d conf$$.dir; then
21207  rm -f conf$$.dir/conf$$.file
21208else
21209  rm -f conf$$.dir
21210  mkdir conf$$.dir 2>/dev/null
21211fi
21212if (echo >conf$$.file) 2>/dev/null; then
21213  if ln -s conf$$.file conf$$ 2>/dev/null; then
21214    as_ln_s='ln -s'
21215    # ... but there are two gotchas:
21216    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21217    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21218    # In both cases, we have to default to `cp -pR'.
21219    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21220      as_ln_s='cp -pR'
21221  elif ln conf$$.file conf$$ 2>/dev/null; then
21222    as_ln_s=ln
21223  else
21224    as_ln_s='cp -pR'
21225  fi
21226else
21227  as_ln_s='cp -pR'
21228fi
21229rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21230rmdir conf$$.dir 2>/dev/null
21231
21232
21233# as_fn_mkdir_p
21234# -------------
21235# Create "$as_dir" as a directory, including parents if necessary.
21236as_fn_mkdir_p ()
21237{
21238
21239  case $as_dir in #(
21240  -*) as_dir=./$as_dir;;
21241  esac
21242  test -d "$as_dir" || eval $as_mkdir_p || {
21243    as_dirs=
21244    while :; do
21245      case $as_dir in #(
21246      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21247      *) as_qdir=$as_dir;;
21248      esac
21249      as_dirs="'$as_qdir' $as_dirs"
21250      as_dir=`$as_dirname -- "$as_dir" ||
21251$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21252	 X"$as_dir" : 'X\(//\)[^/]' \| \
21253	 X"$as_dir" : 'X\(//\)$' \| \
21254	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21255$as_echo X"$as_dir" |
21256    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21257	    s//\1/
21258	    q
21259	  }
21260	  /^X\(\/\/\)[^/].*/{
21261	    s//\1/
21262	    q
21263	  }
21264	  /^X\(\/\/\)$/{
21265	    s//\1/
21266	    q
21267	  }
21268	  /^X\(\/\).*/{
21269	    s//\1/
21270	    q
21271	  }
21272	  s/.*/./; q'`
21273      test -d "$as_dir" && break
21274    done
21275    test -z "$as_dirs" || eval "mkdir $as_dirs"
21276  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
21277
21278
21279} # as_fn_mkdir_p
21280if mkdir -p . 2>/dev/null; then
21281  as_mkdir_p='mkdir -p "$as_dir"'
21282else
21283  test -d ./-p && rmdir ./-p
21284  as_mkdir_p=false
21285fi
21286
21287
21288# as_fn_executable_p FILE
21289# -----------------------
21290# Test if FILE is an executable regular file.
21291as_fn_executable_p ()
21292{
21293  test -f "$1" && test -x "$1"
21294} # as_fn_executable_p
21295as_test_x='test -x'
21296as_executable_p=as_fn_executable_p
21297
21298# Sed expression to map a string onto a valid CPP name.
21299as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21300
21301# Sed expression to map a string onto a valid variable name.
21302as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21303
21304
21305exec 6>&1
21306## ----------------------------------- ##
21307## Main body of $CONFIG_STATUS script. ##
21308## ----------------------------------- ##
21309_ASEOF
21310test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21311
21312cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21313# Save the log message, to keep $0 and so on meaningful, and to
21314# report actual input values of CONFIG_FILES etc. instead of their
21315# values after options handling.
21316ac_log="
21317This file was extended by Protocol Buffers $as_me 3.14.0, which was
21318generated by GNU Autoconf 2.69.  Invocation command line was
21319
21320  CONFIG_FILES    = $CONFIG_FILES
21321  CONFIG_HEADERS  = $CONFIG_HEADERS
21322  CONFIG_LINKS    = $CONFIG_LINKS
21323  CONFIG_COMMANDS = $CONFIG_COMMANDS
21324  $ $0 $@
21325
21326on `(hostname || uname -n) 2>/dev/null | sed 1q`
21327"
21328
21329_ACEOF
21330
21331case $ac_config_files in *"
21332"*) set x $ac_config_files; shift; ac_config_files=$*;;
21333esac
21334
21335case $ac_config_headers in *"
21336"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21337esac
21338
21339
21340cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21341# Files that config.status was made for.
21342config_files="$ac_config_files"
21343config_headers="$ac_config_headers"
21344config_commands="$ac_config_commands"
21345
21346_ACEOF
21347
21348cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21349ac_cs_usage="\
21350\`$as_me' instantiates files and other configuration actions
21351from templates according to the current configuration.  Unless the files
21352and actions are specified as TAGs, all are instantiated by default.
21353
21354Usage: $0 [OPTION]... [TAG]...
21355
21356  -h, --help       print this help, then exit
21357  -V, --version    print version number and configuration settings, then exit
21358      --config     print configuration, then exit
21359  -q, --quiet, --silent
21360                   do not print progress messages
21361  -d, --debug      don't remove temporary files
21362      --recheck    update $as_me by reconfiguring in the same conditions
21363      --file=FILE[:TEMPLATE]
21364                   instantiate the configuration file FILE
21365      --header=FILE[:TEMPLATE]
21366                   instantiate the configuration header FILE
21367
21368Configuration files:
21369$config_files
21370
21371Configuration headers:
21372$config_headers
21373
21374Configuration commands:
21375$config_commands
21376
21377Report bugs to <protobuf@googlegroups.com>."
21378
21379_ACEOF
21380cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21381ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21382ac_cs_version="\\
21383Protocol Buffers config.status 3.14.0
21384configured by $0, generated by GNU Autoconf 2.69,
21385  with options \\"\$ac_cs_config\\"
21386
21387Copyright (C) 2012 Free Software Foundation, Inc.
21388This config.status script is free software; the Free Software Foundation
21389gives unlimited permission to copy, distribute and modify it."
21390
21391ac_pwd='$ac_pwd'
21392srcdir='$srcdir'
21393INSTALL='$INSTALL'
21394MKDIR_P='$MKDIR_P'
21395AWK='$AWK'
21396test -n "\$AWK" || AWK=awk
21397_ACEOF
21398
21399cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21400# The default lists apply if the user does not specify any file.
21401ac_need_defaults=:
21402while test $# != 0
21403do
21404  case $1 in
21405  --*=?*)
21406    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21407    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21408    ac_shift=:
21409    ;;
21410  --*=)
21411    ac_option=`expr "X$1" : 'X\([^=]*\)='`
21412    ac_optarg=
21413    ac_shift=:
21414    ;;
21415  *)
21416    ac_option=$1
21417    ac_optarg=$2
21418    ac_shift=shift
21419    ;;
21420  esac
21421
21422  case $ac_option in
21423  # Handling of the options.
21424  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21425    ac_cs_recheck=: ;;
21426  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21427    $as_echo "$ac_cs_version"; exit ;;
21428  --config | --confi | --conf | --con | --co | --c )
21429    $as_echo "$ac_cs_config"; exit ;;
21430  --debug | --debu | --deb | --de | --d | -d )
21431    debug=: ;;
21432  --file | --fil | --fi | --f )
21433    $ac_shift
21434    case $ac_optarg in
21435    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21436    '') as_fn_error $? "missing file argument" ;;
21437    esac
21438    as_fn_append CONFIG_FILES " '$ac_optarg'"
21439    ac_need_defaults=false;;
21440  --header | --heade | --head | --hea )
21441    $ac_shift
21442    case $ac_optarg in
21443    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21444    esac
21445    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21446    ac_need_defaults=false;;
21447  --he | --h)
21448    # Conflict between --help and --header
21449    as_fn_error $? "ambiguous option: \`$1'
21450Try \`$0 --help' for more information.";;
21451  --help | --hel | -h )
21452    $as_echo "$ac_cs_usage"; exit ;;
21453  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21454  | -silent | --silent | --silen | --sile | --sil | --si | --s)
21455    ac_cs_silent=: ;;
21456
21457  # This is an error.
21458  -*) as_fn_error $? "unrecognized option: \`$1'
21459Try \`$0 --help' for more information." ;;
21460
21461  *) as_fn_append ac_config_targets " $1"
21462     ac_need_defaults=false ;;
21463
21464  esac
21465  shift
21466done
21467
21468ac_configure_extra_args=
21469
21470if $ac_cs_silent; then
21471  exec 6>/dev/null
21472  ac_configure_extra_args="$ac_configure_extra_args --silent"
21473fi
21474
21475_ACEOF
21476cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21477if \$ac_cs_recheck; then
21478  set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21479  shift
21480  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21481  CONFIG_SHELL='$SHELL'
21482  export CONFIG_SHELL
21483  exec "\$@"
21484fi
21485
21486_ACEOF
21487cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21488exec 5>>config.log
21489{
21490  echo
21491  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21492## Running $as_me. ##
21493_ASBOX
21494  $as_echo "$ac_log"
21495} >&5
21496
21497_ACEOF
21498cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21499#
21500# INIT-COMMANDS
21501#
21502AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"
21503
21504
21505# The HP-UX ksh and POSIX shell print the target directory to stdout
21506# if CDPATH is set.
21507(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21508
21509sed_quote_subst='$sed_quote_subst'
21510double_quote_subst='$double_quote_subst'
21511delay_variable_subst='$delay_variable_subst'
21512macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21513macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21514enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21515enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21516pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21517enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21518shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`'
21519SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21520ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21521PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
21522host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21523host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21524host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21525build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21526build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21527build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21528SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21529Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21530GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21531EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21532FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21533LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21534NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21535LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21536max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21537ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21538exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21539lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21540lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21541lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21542lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
21543lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
21544reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21545reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21546OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21547deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21548file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21549file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
21550want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
21551DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
21552sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
21553AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21554AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21555archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
21556STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21557RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21558old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21559old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21560old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21561lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21562CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21563CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21564compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21565GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21566lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21567lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21568lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`'
21569lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21570lt_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"`'
21571lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`'
21572nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
21573lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
21574lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`'
21575objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21576MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21577lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21578lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21579lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21580lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21581lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21582need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21583MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
21584DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21585NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21586LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21587OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21588OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21589libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21590shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21591extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21592archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21593enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21594export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21595whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21596compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21597old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21598old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21599archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21600archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21601module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21602module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21603with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21604allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21605no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21606hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21607hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21608hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21609hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21610hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21611hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21612hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21613inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21614link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21615always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21616export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21617exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21618include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21619prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21620postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
21621file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21622variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21623need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21624need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21625version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21626runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21627shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21628shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21629libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21630library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21631soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21632install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21633postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21634postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21635finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21636finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21637hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21638sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21639configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`'
21640configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`'
21641hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21642enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21643enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21644enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21645old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21646striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21647compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21648predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21649postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21650predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21651postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21652compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21653LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21654reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21655reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21656old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21657compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21658GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21659lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21660lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21661lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21662lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21663lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21664archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21665enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21666export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21667whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21668compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21669old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21670old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21671archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21672archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21673module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21674module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21675with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21676allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21677no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21678hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21679hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21680hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21681hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21682hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21683hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21684hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21685inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21686link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21687always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21688export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21689exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21690include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21691prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21692postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21693file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21694hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21695compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21696predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21697postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21698predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21699postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21700compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21701
21702LTCC='$LTCC'
21703LTCFLAGS='$LTCFLAGS'
21704compiler='$compiler_DEFAULT'
21705
21706# A function that is used when there is no print builtin or printf.
21707func_fallback_echo ()
21708{
21709  eval 'cat <<_LTECHO_EOF
21710\$1
21711_LTECHO_EOF'
21712}
21713
21714# Quote evaled strings.
21715for var in SHELL \
21716ECHO \
21717PATH_SEPARATOR \
21718SED \
21719GREP \
21720EGREP \
21721FGREP \
21722LD \
21723NM \
21724LN_S \
21725lt_SP2NL \
21726lt_NL2SP \
21727reload_flag \
21728OBJDUMP \
21729deplibs_check_method \
21730file_magic_cmd \
21731file_magic_glob \
21732want_nocaseglob \
21733DLLTOOL \
21734sharedlib_from_linklib_cmd \
21735AR \
21736AR_FLAGS \
21737archiver_list_spec \
21738STRIP \
21739RANLIB \
21740CC \
21741CFLAGS \
21742compiler \
21743lt_cv_sys_global_symbol_pipe \
21744lt_cv_sys_global_symbol_to_cdecl \
21745lt_cv_sys_global_symbol_to_import \
21746lt_cv_sys_global_symbol_to_c_name_address \
21747lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21748lt_cv_nm_interface \
21749nm_file_list_spec \
21750lt_cv_truncate_bin \
21751lt_prog_compiler_no_builtin_flag \
21752lt_prog_compiler_pic \
21753lt_prog_compiler_wl \
21754lt_prog_compiler_static \
21755lt_cv_prog_compiler_c_o \
21756need_locks \
21757MANIFEST_TOOL \
21758DSYMUTIL \
21759NMEDIT \
21760LIPO \
21761OTOOL \
21762OTOOL64 \
21763shrext_cmds \
21764export_dynamic_flag_spec \
21765whole_archive_flag_spec \
21766compiler_needs_object \
21767with_gnu_ld \
21768allow_undefined_flag \
21769no_undefined_flag \
21770hardcode_libdir_flag_spec \
21771hardcode_libdir_separator \
21772exclude_expsyms \
21773include_expsyms \
21774file_list_spec \
21775variables_saved_for_relink \
21776libname_spec \
21777library_names_spec \
21778soname_spec \
21779install_override_mode \
21780finish_eval \
21781old_striplib \
21782striplib \
21783compiler_lib_search_dirs \
21784predep_objects \
21785postdep_objects \
21786predeps \
21787postdeps \
21788compiler_lib_search_path \
21789LD_CXX \
21790reload_flag_CXX \
21791compiler_CXX \
21792lt_prog_compiler_no_builtin_flag_CXX \
21793lt_prog_compiler_pic_CXX \
21794lt_prog_compiler_wl_CXX \
21795lt_prog_compiler_static_CXX \
21796lt_cv_prog_compiler_c_o_CXX \
21797export_dynamic_flag_spec_CXX \
21798whole_archive_flag_spec_CXX \
21799compiler_needs_object_CXX \
21800with_gnu_ld_CXX \
21801allow_undefined_flag_CXX \
21802no_undefined_flag_CXX \
21803hardcode_libdir_flag_spec_CXX \
21804hardcode_libdir_separator_CXX \
21805exclude_expsyms_CXX \
21806include_expsyms_CXX \
21807file_list_spec_CXX \
21808compiler_lib_search_dirs_CXX \
21809predep_objects_CXX \
21810postdep_objects_CXX \
21811predeps_CXX \
21812postdeps_CXX \
21813compiler_lib_search_path_CXX; do
21814    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21815    *[\\\\\\\`\\"\\\$]*)
21816      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21817      ;;
21818    *)
21819      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21820      ;;
21821    esac
21822done
21823
21824# Double-quote double-evaled strings.
21825for var in reload_cmds \
21826old_postinstall_cmds \
21827old_postuninstall_cmds \
21828old_archive_cmds \
21829extract_expsyms_cmds \
21830old_archive_from_new_cmds \
21831old_archive_from_expsyms_cmds \
21832archive_cmds \
21833archive_expsym_cmds \
21834module_cmds \
21835module_expsym_cmds \
21836export_symbols_cmds \
21837prelink_cmds \
21838postlink_cmds \
21839postinstall_cmds \
21840postuninstall_cmds \
21841finish_cmds \
21842sys_lib_search_path_spec \
21843configure_time_dlsearch_path \
21844configure_time_lt_sys_library_path \
21845reload_cmds_CXX \
21846old_archive_cmds_CXX \
21847old_archive_from_new_cmds_CXX \
21848old_archive_from_expsyms_cmds_CXX \
21849archive_cmds_CXX \
21850archive_expsym_cmds_CXX \
21851module_cmds_CXX \
21852module_expsym_cmds_CXX \
21853export_symbols_cmds_CXX \
21854prelink_cmds_CXX \
21855postlink_cmds_CXX; do
21856    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21857    *[\\\\\\\`\\"\\\$]*)
21858      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes
21859      ;;
21860    *)
21861      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21862      ;;
21863    esac
21864done
21865
21866ac_aux_dir='$ac_aux_dir'
21867
21868# See if we are running on zsh, and set the options that allow our
21869# commands through without removal of \ escapes INIT.
21870if test -n "\${ZSH_VERSION+set}"; then
21871   setopt NO_GLOB_SUBST
21872fi
21873
21874
21875    PACKAGE='$PACKAGE'
21876    VERSION='$VERSION'
21877    RM='$RM'
21878    ofile='$ofile'
21879
21880
21881
21882
21883
21884
21885_ACEOF
21886
21887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21888
21889# Handling of arguments.
21890for ac_config_target in $ac_config_targets
21891do
21892  case $ac_config_target in
21893    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21894    "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21895    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21896    "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21897    "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
21898    "benchmarks/Makefile") CONFIG_FILES="$CONFIG_FILES benchmarks/Makefile" ;;
21899    "conformance/Makefile") CONFIG_FILES="$CONFIG_FILES conformance/Makefile" ;;
21900    "protobuf.pc") CONFIG_FILES="$CONFIG_FILES protobuf.pc" ;;
21901    "protobuf-lite.pc") CONFIG_FILES="$CONFIG_FILES protobuf-lite.pc" ;;
21902
21903  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21904  esac
21905done
21906
21907
21908# If the user did not use the arguments to specify the items to instantiate,
21909# then the envvar interface is used.  Set only those that are not.
21910# We use the long form for the default assignment because of an extremely
21911# bizarre bug on SunOS 4.1.3.
21912if $ac_need_defaults; then
21913  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21914  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21915  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21916fi
21917
21918# Have a temporary directory for convenience.  Make it in the build tree
21919# simply because there is no reason against having it here, and in addition,
21920# creating and moving files from /tmp can sometimes cause problems.
21921# Hook for its removal unless debugging.
21922# Note that there is a small window in which the directory will not be cleaned:
21923# after its creation but before its name has been assigned to `$tmp'.
21924$debug ||
21925{
21926  tmp= ac_tmp=
21927  trap 'exit_status=$?
21928  : "${ac_tmp:=$tmp}"
21929  { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21930' 0
21931  trap 'as_fn_exit 1' 1 2 13 15
21932}
21933# Create a (secure) tmp directory for tmp files.
21934
21935{
21936  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21937  test -d "$tmp"
21938}  ||
21939{
21940  tmp=./conf$$-$RANDOM
21941  (umask 077 && mkdir "$tmp")
21942} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21943ac_tmp=$tmp
21944
21945# Set up the scripts for CONFIG_FILES section.
21946# No need to generate them if there are no CONFIG_FILES.
21947# This happens for instance with `./config.status config.h'.
21948if test -n "$CONFIG_FILES"; then
21949
21950
21951ac_cr=`echo X | tr X '\015'`
21952# On cygwin, bash can eat \r inside `` if the user requested igncr.
21953# But we know of no other shell where ac_cr would be empty at this
21954# point, so we can use a bashism as a fallback.
21955if test "x$ac_cr" = x; then
21956  eval ac_cr=\$\'\\r\'
21957fi
21958ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21959if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21960  ac_cs_awk_cr='\\r'
21961else
21962  ac_cs_awk_cr=$ac_cr
21963fi
21964
21965echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21966_ACEOF
21967
21968
21969{
21970  echo "cat >conf$$subs.awk <<_ACEOF" &&
21971  echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21972  echo "_ACEOF"
21973} >conf$$subs.sh ||
21974  as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21975ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21976ac_delim='%!_!# '
21977for ac_last_try in false false false false false :; do
21978  . ./conf$$subs.sh ||
21979    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21980
21981  ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21982  if test $ac_delim_n = $ac_delim_num; then
21983    break
21984  elif $ac_last_try; then
21985    as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21986  else
21987    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21988  fi
21989done
21990rm -f conf$$subs.sh
21991
21992cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21993cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21994_ACEOF
21995sed -n '
21996h
21997s/^/S["/; s/!.*/"]=/
21998p
21999g
22000s/^[^!]*!//
22001:repl
22002t repl
22003s/'"$ac_delim"'$//
22004t delim
22005:nl
22006h
22007s/\(.\{148\}\)..*/\1/
22008t more1
22009s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22010p
22011n
22012b repl
22013:more1
22014s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22015p
22016g
22017s/.\{148\}//
22018t nl
22019:delim
22020h
22021s/\(.\{148\}\)..*/\1/
22022t more2
22023s/["\\]/\\&/g; s/^/"/; s/$/"/
22024p
22025b
22026:more2
22027s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22028p
22029g
22030s/.\{148\}//
22031t delim
22032' <conf$$subs.awk | sed '
22033/^[^""]/{
22034  N
22035  s/\n//
22036}
22037' >>$CONFIG_STATUS || ac_write_fail=1
22038rm -f conf$$subs.awk
22039cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22040_ACAWK
22041cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
22042  for (key in S) S_is_set[key] = 1
22043  FS = ""
22044
22045}
22046{
22047  line = $ 0
22048  nfields = split(line, field, "@")
22049  substed = 0
22050  len = length(field[1])
22051  for (i = 2; i < nfields; i++) {
22052    key = field[i]
22053    keylen = length(key)
22054    if (S_is_set[key]) {
22055      value = S[key]
22056      line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22057      len += length(value) + length(field[++i])
22058      substed = 1
22059    } else
22060      len += 1 + keylen
22061  }
22062
22063  print line
22064}
22065
22066_ACAWK
22067_ACEOF
22068cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22069if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22070  sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22071else
22072  cat
22073fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
22074  || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
22075_ACEOF
22076
22077# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
22078# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
22079# trailing colons and then remove the whole line if VPATH becomes empty
22080# (actually we leave an empty line to preserve line numbers).
22081if test "x$srcdir" = x.; then
22082  ac_vpsub='/^[	 ]*VPATH[	 ]*=[	 ]*/{
22083h
22084s///
22085s/^/:/
22086s/[	 ]*$/:/
22087s/:\$(srcdir):/:/g
22088s/:\${srcdir}:/:/g
22089s/:@srcdir@:/:/g
22090s/^:*//
22091s/:*$//
22092x
22093s/\(=[	 ]*\).*/\1/
22094G
22095s/\n//
22096s/^[^=]*=[	 ]*$//
22097}'
22098fi
22099
22100cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22101fi # test -n "$CONFIG_FILES"
22102
22103# Set up the scripts for CONFIG_HEADERS section.
22104# No need to generate them if there are no CONFIG_HEADERS.
22105# This happens for instance with `./config.status Makefile'.
22106if test -n "$CONFIG_HEADERS"; then
22107cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
22108BEGIN {
22109_ACEOF
22110
22111# Transform confdefs.h into an awk script `defines.awk', embedded as
22112# here-document in config.status, that substitutes the proper values into
22113# config.h.in to produce config.h.
22114
22115# Create a delimiter string that does not exist in confdefs.h, to ease
22116# handling of long lines.
22117ac_delim='%!_!# '
22118for ac_last_try in false false :; do
22119  ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
22120  if test -z "$ac_tt"; then
22121    break
22122  elif $ac_last_try; then
22123    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
22124  else
22125    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22126  fi
22127done
22128
22129# For the awk script, D is an array of macro values keyed by name,
22130# likewise P contains macro parameters if any.  Preserve backslash
22131# newline sequences.
22132
22133ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22134sed -n '
22135s/.\{148\}/&'"$ac_delim"'/g
22136t rset
22137:rset
22138s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
22139t def
22140d
22141:def
22142s/\\$//
22143t bsnl
22144s/["\\]/\\&/g
22145s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22146D["\1"]=" \3"/p
22147s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
22148d
22149:bsnl
22150s/["\\]/\\&/g
22151s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
22152D["\1"]=" \3\\\\\\n"\\/p
22153t cont
22154s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
22155t cont
22156d
22157:cont
22158n
22159s/.\{148\}/&'"$ac_delim"'/g
22160t clear
22161:clear
22162s/\\$//
22163t bsnlc
22164s/["\\]/\\&/g; s/^/"/; s/$/"/p
22165d
22166:bsnlc
22167s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
22168b cont
22169' <confdefs.h | sed '
22170s/'"$ac_delim"'/"\\\
22171"/g' >>$CONFIG_STATUS || ac_write_fail=1
22172
22173cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22174  for (key in D) D_is_set[key] = 1
22175  FS = ""
22176}
22177/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
22178  line = \$ 0
22179  split(line, arg, " ")
22180  if (arg[1] == "#") {
22181    defundef = arg[2]
22182    mac1 = arg[3]
22183  } else {
22184    defundef = substr(arg[1], 2)
22185    mac1 = arg[2]
22186  }
22187  split(mac1, mac2, "(") #)
22188  macro = mac2[1]
22189  prefix = substr(line, 1, index(line, defundef) - 1)
22190  if (D_is_set[macro]) {
22191    # Preserve the white space surrounding the "#".
22192    print prefix "define", macro P[macro] D[macro]
22193    next
22194  } else {
22195    # Replace #undef with comments.  This is necessary, for example,
22196    # in the case of _POSIX_SOURCE, which is predefined and required
22197    # on some systems where configure will not decide to define it.
22198    if (defundef == "undef") {
22199      print "/*", prefix defundef, macro, "*/"
22200      next
22201    }
22202  }
22203}
22204{ print }
22205_ACAWK
22206_ACEOF
22207cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22208  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
22209fi # test -n "$CONFIG_HEADERS"
22210
22211
22212eval set X "  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
22213shift
22214for ac_tag
22215do
22216  case $ac_tag in
22217  :[FHLC]) ac_mode=$ac_tag; continue;;
22218  esac
22219  case $ac_mode$ac_tag in
22220  :[FHL]*:*);;
22221  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
22222  :[FH]-) ac_tag=-:-;;
22223  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22224  esac
22225  ac_save_IFS=$IFS
22226  IFS=:
22227  set x $ac_tag
22228  IFS=$ac_save_IFS
22229  shift
22230  ac_file=$1
22231  shift
22232
22233  case $ac_mode in
22234  :L) ac_source=$1;;
22235  :[FH])
22236    ac_file_inputs=
22237    for ac_f
22238    do
22239      case $ac_f in
22240      -) ac_f="$ac_tmp/stdin";;
22241      *) # Look for the file first in the build tree, then in the source tree
22242	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
22243	 # because $ac_f cannot contain `:'.
22244	 test -f "$ac_f" ||
22245	   case $ac_f in
22246	   [\\/$]*) false;;
22247	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22248	   esac ||
22249	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22250      esac
22251      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22252      as_fn_append ac_file_inputs " '$ac_f'"
22253    done
22254
22255    # Let's still pretend it is `configure' which instantiates (i.e., don't
22256    # use $as_me), people would be surprised to read:
22257    #    /* config.h.  Generated by config.status.  */
22258    configure_input='Generated from '`
22259	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22260	`' by configure.'
22261    if test x"$ac_file" != x-; then
22262      configure_input="$ac_file.  $configure_input"
22263      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22264$as_echo "$as_me: creating $ac_file" >&6;}
22265    fi
22266    # Neutralize special characters interpreted by sed in replacement strings.
22267    case $configure_input in #(
22268    *\&* | *\|* | *\\* )
22269       ac_sed_conf_input=`$as_echo "$configure_input" |
22270       sed 's/[\\\\&|]/\\\\&/g'`;; #(
22271    *) ac_sed_conf_input=$configure_input;;
22272    esac
22273
22274    case $ac_tag in
22275    *:-:* | *:-) cat >"$ac_tmp/stdin" \
22276      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
22277    esac
22278    ;;
22279  esac
22280
22281  ac_dir=`$as_dirname -- "$ac_file" ||
22282$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22283	 X"$ac_file" : 'X\(//\)[^/]' \| \
22284	 X"$ac_file" : 'X\(//\)$' \| \
22285	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22286$as_echo X"$ac_file" |
22287    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22288	    s//\1/
22289	    q
22290	  }
22291	  /^X\(\/\/\)[^/].*/{
22292	    s//\1/
22293	    q
22294	  }
22295	  /^X\(\/\/\)$/{
22296	    s//\1/
22297	    q
22298	  }
22299	  /^X\(\/\).*/{
22300	    s//\1/
22301	    q
22302	  }
22303	  s/.*/./; q'`
22304  as_dir="$ac_dir"; as_fn_mkdir_p
22305  ac_builddir=.
22306
22307case "$ac_dir" in
22308.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22309*)
22310  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22311  # A ".." for each directory in $ac_dir_suffix.
22312  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22313  case $ac_top_builddir_sub in
22314  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22315  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22316  esac ;;
22317esac
22318ac_abs_top_builddir=$ac_pwd
22319ac_abs_builddir=$ac_pwd$ac_dir_suffix
22320# for backward compatibility:
22321ac_top_builddir=$ac_top_build_prefix
22322
22323case $srcdir in
22324  .)  # We are building in place.
22325    ac_srcdir=.
22326    ac_top_srcdir=$ac_top_builddir_sub
22327    ac_abs_top_srcdir=$ac_pwd ;;
22328  [\\/]* | ?:[\\/]* )  # Absolute name.
22329    ac_srcdir=$srcdir$ac_dir_suffix;
22330    ac_top_srcdir=$srcdir
22331    ac_abs_top_srcdir=$srcdir ;;
22332  *) # Relative name.
22333    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22334    ac_top_srcdir=$ac_top_build_prefix$srcdir
22335    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22336esac
22337ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22338
22339
22340  case $ac_mode in
22341  :F)
22342  #
22343  # CONFIG_FILE
22344  #
22345
22346  case $INSTALL in
22347  [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22348  *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22349  esac
22350  ac_MKDIR_P=$MKDIR_P
22351  case $MKDIR_P in
22352  [\\/$]* | ?:[\\/]* ) ;;
22353  */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22354  esac
22355_ACEOF
22356
22357cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22358# If the template does not know about datarootdir, expand it.
22359# FIXME: This hack should be removed a few years after 2.60.
22360ac_datarootdir_hack=; ac_datarootdir_seen=
22361ac_sed_dataroot='
22362/datarootdir/ {
22363  p
22364  q
22365}
22366/@datadir@/p
22367/@docdir@/p
22368/@infodir@/p
22369/@localedir@/p
22370/@mandir@/p'
22371case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22372*datarootdir*) ac_datarootdir_seen=yes;;
22373*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22374  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22375$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22376_ACEOF
22377cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22378  ac_datarootdir_hack='
22379  s&@datadir@&$datadir&g
22380  s&@docdir@&$docdir&g
22381  s&@infodir@&$infodir&g
22382  s&@localedir@&$localedir&g
22383  s&@mandir@&$mandir&g
22384  s&\\\${datarootdir}&$datarootdir&g' ;;
22385esac
22386_ACEOF
22387
22388# Neutralize VPATH when `$srcdir' = `.'.
22389# Shell code in configure.ac might set extrasub.
22390# FIXME: do we really want to maintain this feature?
22391cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22392ac_sed_extra="$ac_vpsub
22393$extrasub
22394_ACEOF
22395cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22396:t
22397/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22398s|@configure_input@|$ac_sed_conf_input|;t t
22399s&@top_builddir@&$ac_top_builddir_sub&;t t
22400s&@top_build_prefix@&$ac_top_build_prefix&;t t
22401s&@srcdir@&$ac_srcdir&;t t
22402s&@abs_srcdir@&$ac_abs_srcdir&;t t
22403s&@top_srcdir@&$ac_top_srcdir&;t t
22404s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22405s&@builddir@&$ac_builddir&;t t
22406s&@abs_builddir@&$ac_abs_builddir&;t t
22407s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22408s&@INSTALL@&$ac_INSTALL&;t t
22409s&@MKDIR_P@&$ac_MKDIR_P&;t t
22410$ac_datarootdir_hack
22411"
22412eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22413  >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22414
22415test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22416  { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22417  { ac_out=`sed -n '/^[	 ]*datarootdir[	 ]*:*=/p' \
22418      "$ac_tmp/out"`; test -z "$ac_out"; } &&
22419  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22420which seems to be undefined.  Please make sure it is defined" >&5
22421$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22422which seems to be undefined.  Please make sure it is defined" >&2;}
22423
22424  rm -f "$ac_tmp/stdin"
22425  case $ac_file in
22426  -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22427  *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22428  esac \
22429  || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22430 ;;
22431  :H)
22432  #
22433  # CONFIG_HEADER
22434  #
22435  if test x"$ac_file" != x-; then
22436    {
22437      $as_echo "/* $configure_input  */" \
22438      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22439    } >"$ac_tmp/config.h" \
22440      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22441    if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22442      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22443$as_echo "$as_me: $ac_file is unchanged" >&6;}
22444    else
22445      rm -f "$ac_file"
22446      mv "$ac_tmp/config.h" "$ac_file" \
22447	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
22448    fi
22449  else
22450    $as_echo "/* $configure_input  */" \
22451      && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22452      || as_fn_error $? "could not create -" "$LINENO" 5
22453  fi
22454# Compute "$ac_file"'s index in $config_headers.
22455_am_arg="$ac_file"
22456_am_stamp_count=1
22457for _am_header in $config_headers :; do
22458  case $_am_header in
22459    $_am_arg | $_am_arg:* )
22460      break ;;
22461    * )
22462      _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22463  esac
22464done
22465echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22466$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22467	 X"$_am_arg" : 'X\(//\)[^/]' \| \
22468	 X"$_am_arg" : 'X\(//\)$' \| \
22469	 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22470$as_echo X"$_am_arg" |
22471    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22472	    s//\1/
22473	    q
22474	  }
22475	  /^X\(\/\/\)[^/].*/{
22476	    s//\1/
22477	    q
22478	  }
22479	  /^X\(\/\/\)$/{
22480	    s//\1/
22481	    q
22482	  }
22483	  /^X\(\/\).*/{
22484	    s//\1/
22485	    q
22486	  }
22487	  s/.*/./; q'`/stamp-h$_am_stamp_count
22488 ;;
22489
22490  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22491$as_echo "$as_me: executing $ac_file commands" >&6;}
22492 ;;
22493  esac
22494
22495
22496  case $ac_file$ac_mode in
22497    "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22498  # Older Autoconf quotes --file arguments for eval, but not when files
22499  # are listed without --file.  Let's play safe and only enable the eval
22500  # if we detect the quoting.
22501  # TODO: see whether this extra hack can be removed once we start
22502  # requiring Autoconf 2.70 or later.
22503  case $CONFIG_FILES in #(
22504  *\'*) :
22505    eval set x "$CONFIG_FILES" ;; #(
22506  *) :
22507    set x $CONFIG_FILES ;; #(
22508  *) :
22509     ;;
22510esac
22511  shift
22512  # Used to flag and report bootstrapping failures.
22513  am_rc=0
22514  for am_mf
22515  do
22516    # Strip MF so we end up with the name of the file.
22517    am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'`
22518    # Check whether this is an Automake generated Makefile which includes
22519    # dependency-tracking related rules and includes.
22520    # Grep'ing the whole file directly is not great: AIX grep has a line
22521    # limit of 2048, but all sed's we know have understand at least 4000.
22522    sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
22523      || continue
22524    am_dirpart=`$as_dirname -- "$am_mf" ||
22525$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22526	 X"$am_mf" : 'X\(//\)[^/]' \| \
22527	 X"$am_mf" : 'X\(//\)$' \| \
22528	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22529$as_echo X"$am_mf" |
22530    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22531	    s//\1/
22532	    q
22533	  }
22534	  /^X\(\/\/\)[^/].*/{
22535	    s//\1/
22536	    q
22537	  }
22538	  /^X\(\/\/\)$/{
22539	    s//\1/
22540	    q
22541	  }
22542	  /^X\(\/\).*/{
22543	    s//\1/
22544	    q
22545	  }
22546	  s/.*/./; q'`
22547    am_filepart=`$as_basename -- "$am_mf" ||
22548$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \
22549	 X"$am_mf" : 'X\(//\)$' \| \
22550	 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null ||
22551$as_echo X/"$am_mf" |
22552    sed '/^.*\/\([^/][^/]*\)\/*$/{
22553	    s//\1/
22554	    q
22555	  }
22556	  /^X\/\(\/\/\)$/{
22557	    s//\1/
22558	    q
22559	  }
22560	  /^X\/\(\/\).*/{
22561	    s//\1/
22562	    q
22563	  }
22564	  s/.*/./; q'`
22565    { echo "$as_me:$LINENO: cd "$am_dirpart" \
22566      && sed -e '/# am--include-marker/d' "$am_filepart" \
22567        | $MAKE -f - am--depfiles" >&5
22568   (cd "$am_dirpart" \
22569      && sed -e '/# am--include-marker/d' "$am_filepart" \
22570        | $MAKE -f - am--depfiles) >&5 2>&5
22571   ac_status=$?
22572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
22573   (exit $ac_status); } || am_rc=$?
22574  done
22575  if test $am_rc -ne 0; then
22576    { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
22577$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
22578as_fn_error $? "Something went wrong bootstrapping makefile fragments
22579    for automatic dependency tracking.  If GNU make was not used, consider
22580    re-running the configure script with MAKE=\"gmake\" (or whatever is
22581    necessary).  You can also try re-running configure with the
22582    '--disable-dependency-tracking' option to at least be able to build
22583    the package (albeit without support for automatic dependency tracking).
22584See \`config.log' for more details" "$LINENO" 5; }
22585  fi
22586  { am_dirpart=; unset am_dirpart;}
22587  { am_filepart=; unset am_filepart;}
22588  { am_mf=; unset am_mf;}
22589  { am_rc=; unset am_rc;}
22590  rm -f conftest-deps.mk
22591}
22592 ;;
22593    "libtool":C)
22594
22595    # See if we are running on zsh, and set the options that allow our
22596    # commands through without removal of \ escapes.
22597    if test -n "${ZSH_VERSION+set}"; then
22598      setopt NO_GLOB_SUBST
22599    fi
22600
22601    cfgfile=${ofile}T
22602    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22603    $RM "$cfgfile"
22604
22605    cat <<_LT_EOF >> "$cfgfile"
22606#! $SHELL
22607# Generated automatically by $as_me ($PACKAGE) $VERSION
22608# NOTE: Changes made to this file will be lost: look at ltmain.sh.
22609
22610# Provide generalized library-building support services.
22611# Written by Gordon Matzigkeit, 1996
22612
22613# Copyright (C) 2014 Free Software Foundation, Inc.
22614# This is free software; see the source for copying conditions.  There is NO
22615# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
22616
22617# GNU Libtool is free software; you can redistribute it and/or modify
22618# it under the terms of the GNU General Public License as published by
22619# the Free Software Foundation; either version 2 of of the License, or
22620# (at your option) any later version.
22621#
22622# As a special exception to the GNU General Public License, if you
22623# distribute this file as part of a program or library that is built
22624# using GNU Libtool, you may include this file under the  same
22625# distribution terms that you use for the rest of that program.
22626#
22627# GNU Libtool is distributed in the hope that it will be useful, but
22628# WITHOUT ANY WARRANTY; without even the implied warranty of
22629# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22630# GNU General Public License for more details.
22631#
22632# You should have received a copy of the GNU General Public License
22633# along with this program.  If not, see <http://www.gnu.org/licenses/>.
22634
22635
22636# The names of the tagged configurations supported by this script.
22637available_tags='CXX '
22638
22639# Configured defaults for sys_lib_dlsearch_path munging.
22640: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"}
22641
22642# ### BEGIN LIBTOOL CONFIG
22643
22644# Which release of libtool.m4 was used?
22645macro_version=$macro_version
22646macro_revision=$macro_revision
22647
22648# Whether or not to build shared libraries.
22649build_libtool_libs=$enable_shared
22650
22651# Whether or not to build static libraries.
22652build_old_libs=$enable_static
22653
22654# What type of objects to build.
22655pic_mode=$pic_mode
22656
22657# Whether or not to optimize for fast installation.
22658fast_install=$enable_fast_install
22659
22660# Shared archive member basename,for filename based shared library versioning on AIX.
22661shared_archive_member_spec=$shared_archive_member_spec
22662
22663# Shell to use when invoking shell scripts.
22664SHELL=$lt_SHELL
22665
22666# An echo program that protects backslashes.
22667ECHO=$lt_ECHO
22668
22669# The PATH separator for the build system.
22670PATH_SEPARATOR=$lt_PATH_SEPARATOR
22671
22672# The host system.
22673host_alias=$host_alias
22674host=$host
22675host_os=$host_os
22676
22677# The build system.
22678build_alias=$build_alias
22679build=$build
22680build_os=$build_os
22681
22682# A sed program that does not truncate output.
22683SED=$lt_SED
22684
22685# Sed that helps us avoid accidentally triggering echo(1) options like -n.
22686Xsed="\$SED -e 1s/^X//"
22687
22688# A grep program that handles long lines.
22689GREP=$lt_GREP
22690
22691# An ERE matcher.
22692EGREP=$lt_EGREP
22693
22694# A literal string matcher.
22695FGREP=$lt_FGREP
22696
22697# A BSD- or MS-compatible name lister.
22698NM=$lt_NM
22699
22700# Whether we need soft or hard links.
22701LN_S=$lt_LN_S
22702
22703# What is the maximum length of a command?
22704max_cmd_len=$max_cmd_len
22705
22706# Object file suffix (normally "o").
22707objext=$ac_objext
22708
22709# Executable file suffix (normally "").
22710exeext=$exeext
22711
22712# whether the shell understands "unset".
22713lt_unset=$lt_unset
22714
22715# turn spaces into newlines.
22716SP2NL=$lt_lt_SP2NL
22717
22718# turn newlines into spaces.
22719NL2SP=$lt_lt_NL2SP
22720
22721# convert \$build file names to \$host format.
22722to_host_file_cmd=$lt_cv_to_host_file_cmd
22723
22724# convert \$build files to toolchain format.
22725to_tool_file_cmd=$lt_cv_to_tool_file_cmd
22726
22727# An object symbol dumper.
22728OBJDUMP=$lt_OBJDUMP
22729
22730# Method to check whether dependent libraries are shared objects.
22731deplibs_check_method=$lt_deplibs_check_method
22732
22733# Command to use when deplibs_check_method = "file_magic".
22734file_magic_cmd=$lt_file_magic_cmd
22735
22736# How to find potential files when deplibs_check_method = "file_magic".
22737file_magic_glob=$lt_file_magic_glob
22738
22739# Find potential files using nocaseglob when deplibs_check_method = "file_magic".
22740want_nocaseglob=$lt_want_nocaseglob
22741
22742# DLL creation program.
22743DLLTOOL=$lt_DLLTOOL
22744
22745# Command to associate shared and link libraries.
22746sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
22747
22748# The archiver.
22749AR=$lt_AR
22750
22751# Flags to create an archive.
22752AR_FLAGS=$lt_AR_FLAGS
22753
22754# How to feed a file listing to the archiver.
22755archiver_list_spec=$lt_archiver_list_spec
22756
22757# A symbol stripping program.
22758STRIP=$lt_STRIP
22759
22760# Commands used to install an old-style archive.
22761RANLIB=$lt_RANLIB
22762old_postinstall_cmds=$lt_old_postinstall_cmds
22763old_postuninstall_cmds=$lt_old_postuninstall_cmds
22764
22765# Whether to use a lock for old archive extraction.
22766lock_old_archive_extraction=$lock_old_archive_extraction
22767
22768# A C compiler.
22769LTCC=$lt_CC
22770
22771# LTCC compiler flags.
22772LTCFLAGS=$lt_CFLAGS
22773
22774# Take the output of nm and produce a listing of raw symbols and C names.
22775global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22776
22777# Transform the output of nm in a proper C declaration.
22778global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22779
22780# Transform the output of nm into a list of symbols to manually relocate.
22781global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import
22782
22783# Transform the output of nm in a C name address pair.
22784global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22785
22786# Transform the output of nm in a C name address pair when lib prefix is needed.
22787global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22788
22789# The name lister interface.
22790nm_interface=$lt_lt_cv_nm_interface
22791
22792# Specify filename containing input files for \$NM.
22793nm_file_list_spec=$lt_nm_file_list_spec
22794
22795# The root where to search for dependent libraries,and where our libraries should be installed.
22796lt_sysroot=$lt_sysroot
22797
22798# Command to truncate a binary pipe.
22799lt_truncate_bin=$lt_lt_cv_truncate_bin
22800
22801# The name of the directory that contains temporary libtool files.
22802objdir=$objdir
22803
22804# Used to examine libraries when file_magic_cmd begins with "file".
22805MAGIC_CMD=$MAGIC_CMD
22806
22807# Must we lock files when doing compilation?
22808need_locks=$lt_need_locks
22809
22810# Manifest tool.
22811MANIFEST_TOOL=$lt_MANIFEST_TOOL
22812
22813# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22814DSYMUTIL=$lt_DSYMUTIL
22815
22816# Tool to change global to local symbols on Mac OS X.
22817NMEDIT=$lt_NMEDIT
22818
22819# Tool to manipulate fat objects and archives on Mac OS X.
22820LIPO=$lt_LIPO
22821
22822# ldd/readelf like tool for Mach-O binaries on Mac OS X.
22823OTOOL=$lt_OTOOL
22824
22825# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22826OTOOL64=$lt_OTOOL64
22827
22828# Old archive suffix (normally "a").
22829libext=$libext
22830
22831# Shared library suffix (normally ".so").
22832shrext_cmds=$lt_shrext_cmds
22833
22834# The commands to extract the exported symbol list from a shared archive.
22835extract_expsyms_cmds=$lt_extract_expsyms_cmds
22836
22837# Variables whose values should be saved in libtool wrapper scripts and
22838# restored at link time.
22839variables_saved_for_relink=$lt_variables_saved_for_relink
22840
22841# Do we need the "lib" prefix for modules?
22842need_lib_prefix=$need_lib_prefix
22843
22844# Do we need a version for libraries?
22845need_version=$need_version
22846
22847# Library versioning type.
22848version_type=$version_type
22849
22850# Shared library runtime path variable.
22851runpath_var=$runpath_var
22852
22853# Shared library path variable.
22854shlibpath_var=$shlibpath_var
22855
22856# Is shlibpath searched before the hard-coded library search path?
22857shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22858
22859# Format of library name prefix.
22860libname_spec=$lt_libname_spec
22861
22862# List of archive names.  First name is the real one, the rest are links.
22863# The last name is the one that the linker finds with -lNAME
22864library_names_spec=$lt_library_names_spec
22865
22866# The coded name of the library, if different from the real name.
22867soname_spec=$lt_soname_spec
22868
22869# Permission mode override for installation of shared libraries.
22870install_override_mode=$lt_install_override_mode
22871
22872# Command to use after installation of a shared archive.
22873postinstall_cmds=$lt_postinstall_cmds
22874
22875# Command to use after uninstallation of a shared archive.
22876postuninstall_cmds=$lt_postuninstall_cmds
22877
22878# Commands used to finish a libtool library installation in a directory.
22879finish_cmds=$lt_finish_cmds
22880
22881# As "finish_cmds", except a single script fragment to be evaled but
22882# not shown.
22883finish_eval=$lt_finish_eval
22884
22885# Whether we should hardcode library paths into libraries.
22886hardcode_into_libs=$hardcode_into_libs
22887
22888# Compile-time system search path for libraries.
22889sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22890
22891# Detected run-time system search path for libraries.
22892sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path
22893
22894# Explicit LT_SYS_LIBRARY_PATH set during ./configure time.
22895configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path
22896
22897# Whether dlopen is supported.
22898dlopen_support=$enable_dlopen
22899
22900# Whether dlopen of programs is supported.
22901dlopen_self=$enable_dlopen_self
22902
22903# Whether dlopen of statically linked programs is supported.
22904dlopen_self_static=$enable_dlopen_self_static
22905
22906# Commands to strip libraries.
22907old_striplib=$lt_old_striplib
22908striplib=$lt_striplib
22909
22910
22911# The linker used to build libraries.
22912LD=$lt_LD
22913
22914# How to create reloadable object files.
22915reload_flag=$lt_reload_flag
22916reload_cmds=$lt_reload_cmds
22917
22918# Commands used to build an old-style archive.
22919old_archive_cmds=$lt_old_archive_cmds
22920
22921# A language specific compiler.
22922CC=$lt_compiler
22923
22924# Is the compiler the GNU compiler?
22925with_gcc=$GCC
22926
22927# Compiler flag to turn off builtin functions.
22928no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22929
22930# Additional compiler flags for building library objects.
22931pic_flag=$lt_lt_prog_compiler_pic
22932
22933# How to pass a linker flag through the compiler.
22934wl=$lt_lt_prog_compiler_wl
22935
22936# Compiler flag to prevent dynamic linking.
22937link_static_flag=$lt_lt_prog_compiler_static
22938
22939# Does compiler simultaneously support -c and -o options?
22940compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22941
22942# Whether or not to add -lc for building shared libraries.
22943build_libtool_need_lc=$archive_cmds_need_lc
22944
22945# Whether or not to disallow shared libs when runtime libs are static.
22946allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22947
22948# Compiler flag to allow reflexive dlopens.
22949export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22950
22951# Compiler flag to generate shared objects directly from archives.
22952whole_archive_flag_spec=$lt_whole_archive_flag_spec
22953
22954# Whether the compiler copes with passing no objects directly.
22955compiler_needs_object=$lt_compiler_needs_object
22956
22957# Create an old-style archive from a shared archive.
22958old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22959
22960# Create a temporary old-style archive to link instead of a shared archive.
22961old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22962
22963# Commands used to build a shared archive.
22964archive_cmds=$lt_archive_cmds
22965archive_expsym_cmds=$lt_archive_expsym_cmds
22966
22967# Commands used to build a loadable module if different from building
22968# a shared archive.
22969module_cmds=$lt_module_cmds
22970module_expsym_cmds=$lt_module_expsym_cmds
22971
22972# Whether we are building with GNU ld or not.
22973with_gnu_ld=$lt_with_gnu_ld
22974
22975# Flag that allows shared libraries with undefined symbols to be built.
22976allow_undefined_flag=$lt_allow_undefined_flag
22977
22978# Flag that enforces no undefined symbols.
22979no_undefined_flag=$lt_no_undefined_flag
22980
22981# Flag to hardcode \$libdir into a binary during linking.
22982# This must work even if \$libdir does not exist
22983hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22984
22985# Whether we need a single "-rpath" flag with a separated argument.
22986hardcode_libdir_separator=$lt_hardcode_libdir_separator
22987
22988# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22989# DIR into the resulting binary.
22990hardcode_direct=$hardcode_direct
22991
22992# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
22993# DIR into the resulting binary and the resulting library dependency is
22994# "absolute",i.e impossible to change by setting \$shlibpath_var if the
22995# library is relocated.
22996hardcode_direct_absolute=$hardcode_direct_absolute
22997
22998# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22999# into the resulting binary.
23000hardcode_minus_L=$hardcode_minus_L
23001
23002# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23003# into the resulting binary.
23004hardcode_shlibpath_var=$hardcode_shlibpath_var
23005
23006# Set to "yes" if building a shared library automatically hardcodes DIR
23007# into the library and all subsequent libraries and executables linked
23008# against it.
23009hardcode_automatic=$hardcode_automatic
23010
23011# Set to yes if linker adds runtime paths of dependent libraries
23012# to runtime path list.
23013inherit_rpath=$inherit_rpath
23014
23015# Whether libtool must link a program against all its dependency libraries.
23016link_all_deplibs=$link_all_deplibs
23017
23018# Set to "yes" if exported symbols are required.
23019always_export_symbols=$always_export_symbols
23020
23021# The commands to list exported symbols.
23022export_symbols_cmds=$lt_export_symbols_cmds
23023
23024# Symbols that should not be listed in the preloaded symbols.
23025exclude_expsyms=$lt_exclude_expsyms
23026
23027# Symbols that must always be exported.
23028include_expsyms=$lt_include_expsyms
23029
23030# Commands necessary for linking programs (against libraries) with templates.
23031prelink_cmds=$lt_prelink_cmds
23032
23033# Commands necessary for finishing linking programs.
23034postlink_cmds=$lt_postlink_cmds
23035
23036# Specify filename containing input files.
23037file_list_spec=$lt_file_list_spec
23038
23039# How to hardcode a shared library path into an executable.
23040hardcode_action=$hardcode_action
23041
23042# The directories searched by this compiler when creating a shared library.
23043compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
23044
23045# Dependencies to place before and after the objects being linked to
23046# create a shared library.
23047predep_objects=$lt_predep_objects
23048postdep_objects=$lt_postdep_objects
23049predeps=$lt_predeps
23050postdeps=$lt_postdeps
23051
23052# The library search path used internally by the compiler when linking
23053# a shared library.
23054compiler_lib_search_path=$lt_compiler_lib_search_path
23055
23056# ### END LIBTOOL CONFIG
23057
23058_LT_EOF
23059
23060    cat <<'_LT_EOF' >> "$cfgfile"
23061
23062# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE
23063
23064# func_munge_path_list VARIABLE PATH
23065# -----------------------------------
23066# VARIABLE is name of variable containing _space_ separated list of
23067# directories to be munged by the contents of PATH, which is string
23068# having a format:
23069# "DIR[:DIR]:"
23070#       string "DIR[ DIR]" will be prepended to VARIABLE
23071# ":DIR[:DIR]"
23072#       string "DIR[ DIR]" will be appended to VARIABLE
23073# "DIRP[:DIRP]::[DIRA:]DIRA"
23074#       string "DIRP[ DIRP]" will be prepended to VARIABLE and string
23075#       "DIRA[ DIRA]" will be appended to VARIABLE
23076# "DIR[:DIR]"
23077#       VARIABLE will be replaced by "DIR[ DIR]"
23078func_munge_path_list ()
23079{
23080    case x$2 in
23081    x)
23082        ;;
23083    *:)
23084        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\"
23085        ;;
23086    x:*)
23087        eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\"
23088        ;;
23089    *::*)
23090        eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\"
23091        eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\"
23092        ;;
23093    *)
23094        eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\"
23095        ;;
23096    esac
23097}
23098
23099
23100# Calculate cc_basename.  Skip known compiler wrappers and cross-prefix.
23101func_cc_basename ()
23102{
23103    for cc_temp in $*""; do
23104      case $cc_temp in
23105        compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
23106        distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
23107        \-*) ;;
23108        *) break;;
23109      esac
23110    done
23111    func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
23112}
23113
23114
23115# ### END FUNCTIONS SHARED WITH CONFIGURE
23116
23117_LT_EOF
23118
23119  case $host_os in
23120  aix3*)
23121    cat <<\_LT_EOF >> "$cfgfile"
23122# AIX sometimes has problems with the GCC collect2 program.  For some
23123# reason, if we set the COLLECT_NAMES environment variable, the problems
23124# vanish in a puff of smoke.
23125if test set != "${COLLECT_NAMES+set}"; then
23126  COLLECT_NAMES=
23127  export COLLECT_NAMES
23128fi
23129_LT_EOF
23130    ;;
23131  esac
23132
23133
23134ltmain=$ac_aux_dir/ltmain.sh
23135
23136
23137  # We use sed instead of cat because bash on DJGPP gets confused if
23138  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
23139  # text mode, it properly converts lines to CR/LF.  This bash problem
23140  # is reportedly fixed, but why not run on old versions too?
23141  sed '$q' "$ltmain" >> "$cfgfile" \
23142     || (rm -f "$cfgfile"; exit 1)
23143
23144   mv -f "$cfgfile" "$ofile" ||
23145    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23146  chmod +x "$ofile"
23147
23148
23149    cat <<_LT_EOF >> "$ofile"
23150
23151# ### BEGIN LIBTOOL TAG CONFIG: CXX
23152
23153# The linker used to build libraries.
23154LD=$lt_LD_CXX
23155
23156# How to create reloadable object files.
23157reload_flag=$lt_reload_flag_CXX
23158reload_cmds=$lt_reload_cmds_CXX
23159
23160# Commands used to build an old-style archive.
23161old_archive_cmds=$lt_old_archive_cmds_CXX
23162
23163# A language specific compiler.
23164CC=$lt_compiler_CXX
23165
23166# Is the compiler the GNU compiler?
23167with_gcc=$GCC_CXX
23168
23169# Compiler flag to turn off builtin functions.
23170no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23171
23172# Additional compiler flags for building library objects.
23173pic_flag=$lt_lt_prog_compiler_pic_CXX
23174
23175# How to pass a linker flag through the compiler.
23176wl=$lt_lt_prog_compiler_wl_CXX
23177
23178# Compiler flag to prevent dynamic linking.
23179link_static_flag=$lt_lt_prog_compiler_static_CXX
23180
23181# Does compiler simultaneously support -c and -o options?
23182compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23183
23184# Whether or not to add -lc for building shared libraries.
23185build_libtool_need_lc=$archive_cmds_need_lc_CXX
23186
23187# Whether or not to disallow shared libs when runtime libs are static.
23188allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23189
23190# Compiler flag to allow reflexive dlopens.
23191export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23192
23193# Compiler flag to generate shared objects directly from archives.
23194whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23195
23196# Whether the compiler copes with passing no objects directly.
23197compiler_needs_object=$lt_compiler_needs_object_CXX
23198
23199# Create an old-style archive from a shared archive.
23200old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23201
23202# Create a temporary old-style archive to link instead of a shared archive.
23203old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23204
23205# Commands used to build a shared archive.
23206archive_cmds=$lt_archive_cmds_CXX
23207archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23208
23209# Commands used to build a loadable module if different from building
23210# a shared archive.
23211module_cmds=$lt_module_cmds_CXX
23212module_expsym_cmds=$lt_module_expsym_cmds_CXX
23213
23214# Whether we are building with GNU ld or not.
23215with_gnu_ld=$lt_with_gnu_ld_CXX
23216
23217# Flag that allows shared libraries with undefined symbols to be built.
23218allow_undefined_flag=$lt_allow_undefined_flag_CXX
23219
23220# Flag that enforces no undefined symbols.
23221no_undefined_flag=$lt_no_undefined_flag_CXX
23222
23223# Flag to hardcode \$libdir into a binary during linking.
23224# This must work even if \$libdir does not exist
23225hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23226
23227# Whether we need a single "-rpath" flag with a separated argument.
23228hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23229
23230# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23231# DIR into the resulting binary.
23232hardcode_direct=$hardcode_direct_CXX
23233
23234# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes
23235# DIR into the resulting binary and the resulting library dependency is
23236# "absolute",i.e impossible to change by setting \$shlibpath_var if the
23237# library is relocated.
23238hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23239
23240# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23241# into the resulting binary.
23242hardcode_minus_L=$hardcode_minus_L_CXX
23243
23244# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23245# into the resulting binary.
23246hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23247
23248# Set to "yes" if building a shared library automatically hardcodes DIR
23249# into the library and all subsequent libraries and executables linked
23250# against it.
23251hardcode_automatic=$hardcode_automatic_CXX
23252
23253# Set to yes if linker adds runtime paths of dependent libraries
23254# to runtime path list.
23255inherit_rpath=$inherit_rpath_CXX
23256
23257# Whether libtool must link a program against all its dependency libraries.
23258link_all_deplibs=$link_all_deplibs_CXX
23259
23260# Set to "yes" if exported symbols are required.
23261always_export_symbols=$always_export_symbols_CXX
23262
23263# The commands to list exported symbols.
23264export_symbols_cmds=$lt_export_symbols_cmds_CXX
23265
23266# Symbols that should not be listed in the preloaded symbols.
23267exclude_expsyms=$lt_exclude_expsyms_CXX
23268
23269# Symbols that must always be exported.
23270include_expsyms=$lt_include_expsyms_CXX
23271
23272# Commands necessary for linking programs (against libraries) with templates.
23273prelink_cmds=$lt_prelink_cmds_CXX
23274
23275# Commands necessary for finishing linking programs.
23276postlink_cmds=$lt_postlink_cmds_CXX
23277
23278# Specify filename containing input files.
23279file_list_spec=$lt_file_list_spec_CXX
23280
23281# How to hardcode a shared library path into an executable.
23282hardcode_action=$hardcode_action_CXX
23283
23284# The directories searched by this compiler when creating a shared library.
23285compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23286
23287# Dependencies to place before and after the objects being linked to
23288# create a shared library.
23289predep_objects=$lt_predep_objects_CXX
23290postdep_objects=$lt_postdep_objects_CXX
23291predeps=$lt_predeps_CXX
23292postdeps=$lt_postdeps_CXX
23293
23294# The library search path used internally by the compiler when linking
23295# a shared library.
23296compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23297
23298# ### END LIBTOOL TAG CONFIG: CXX
23299_LT_EOF
23300
23301 ;;
23302
23303  esac
23304done # for ac_tag
23305
23306
23307as_fn_exit 0
23308_ACEOF
23309ac_clean_files=$ac_clean_files_save
23310
23311test $ac_write_fail = 0 ||
23312  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23313
23314
23315# configure is writing to config.log, and then calls config.status.
23316# config.status does its own redirection, appending to config.log.
23317# Unfortunately, on DOS this fails, as config.log is still kept open
23318# by configure, so config.status won't be able to write to it; its
23319# output is simply discarded.  So we exec the FD to /dev/null,
23320# effectively closing config.log, so it can be properly (re)opened and
23321# appended to by config.status.  When coming back to configure, we
23322# need to make the FD available again.
23323if test "$no_create" != yes; then
23324  ac_cs_success=:
23325  ac_config_status_args=
23326  test "$silent" = yes &&
23327    ac_config_status_args="$ac_config_status_args --quiet"
23328  exec 5>/dev/null
23329  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23330  exec 5>>config.log
23331  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23332  # would make configure fail if this is the last instruction.
23333  $ac_cs_success || as_fn_exit 1
23334fi
23335
23336#
23337# CONFIG_SUBDIRS section.
23338#
23339if test "$no_recursion" != yes; then
23340
23341  # Remove --cache-file, --srcdir, and --disable-option-checking arguments
23342  # so they do not pile up.
23343  ac_sub_configure_args=
23344  ac_prev=
23345  eval "set x $ac_configure_args"
23346  shift
23347  for ac_arg
23348  do
23349    if test -n "$ac_prev"; then
23350      ac_prev=
23351      continue
23352    fi
23353    case $ac_arg in
23354    -cache-file | --cache-file | --cache-fil | --cache-fi \
23355    | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
23356      ac_prev=cache_file ;;
23357    -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
23358    | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
23359    | --c=*)
23360      ;;
23361    --config-cache | -C)
23362      ;;
23363    -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
23364      ac_prev=srcdir ;;
23365    -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
23366      ;;
23367    -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
23368      ac_prev=prefix ;;
23369    -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
23370      ;;
23371    --disable-option-checking)
23372      ;;
23373    *)
23374      case $ac_arg in
23375      *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23376      esac
23377      as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
23378    esac
23379  done
23380
23381  # Always prepend --prefix to ensure using the same prefix
23382  # in subdir configurations.
23383  ac_arg="--prefix=$prefix"
23384  case $ac_arg in
23385  *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
23386  esac
23387  ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
23388
23389  # Pass --silent
23390  if test "$silent" = yes; then
23391    ac_sub_configure_args="--silent $ac_sub_configure_args"
23392  fi
23393
23394  # Always prepend --disable-option-checking to silence warnings, since
23395  # different subdirs can have different --enable and --with options.
23396  ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
23397
23398  ac_popdir=`pwd`
23399  for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
23400
23401    # Do not complain, so a configure script can configure whichever
23402    # parts of a large source tree are present.
23403    test -d "$srcdir/$ac_dir" || continue
23404
23405    ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
23406    $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
23407    $as_echo "$ac_msg" >&6
23408    as_dir="$ac_dir"; as_fn_mkdir_p
23409    ac_builddir=.
23410
23411case "$ac_dir" in
23412.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23413*)
23414  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23415  # A ".." for each directory in $ac_dir_suffix.
23416  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23417  case $ac_top_builddir_sub in
23418  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23419  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23420  esac ;;
23421esac
23422ac_abs_top_builddir=$ac_pwd
23423ac_abs_builddir=$ac_pwd$ac_dir_suffix
23424# for backward compatibility:
23425ac_top_builddir=$ac_top_build_prefix
23426
23427case $srcdir in
23428  .)  # We are building in place.
23429    ac_srcdir=.
23430    ac_top_srcdir=$ac_top_builddir_sub
23431    ac_abs_top_srcdir=$ac_pwd ;;
23432  [\\/]* | ?:[\\/]* )  # Absolute name.
23433    ac_srcdir=$srcdir$ac_dir_suffix;
23434    ac_top_srcdir=$srcdir
23435    ac_abs_top_srcdir=$srcdir ;;
23436  *) # Relative name.
23437    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23438    ac_top_srcdir=$ac_top_build_prefix$srcdir
23439    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23440esac
23441ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23442
23443
23444    cd "$ac_dir"
23445
23446    # Check for guested configure; otherwise get Cygnus style configure.
23447    if test -f "$ac_srcdir/configure.gnu"; then
23448      ac_sub_configure=$ac_srcdir/configure.gnu
23449    elif test -f "$ac_srcdir/configure"; then
23450      ac_sub_configure=$ac_srcdir/configure
23451    elif test -f "$ac_srcdir/configure.in"; then
23452      # This should be Cygnus configure.
23453      ac_sub_configure=$ac_aux_dir/configure
23454    else
23455      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
23456$as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
23457      ac_sub_configure=
23458    fi
23459
23460    # The recursion is here.
23461    if test -n "$ac_sub_configure"; then
23462      # Make the cache file name correct relative to the subdirectory.
23463      case $cache_file in
23464      [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
23465      *) # Relative name.
23466	ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
23467      esac
23468
23469      { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
23470$as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
23471      # The eval makes quoting arguments work.
23472      eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
23473	   --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
23474	as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
23475    fi
23476
23477    cd "$ac_popdir"
23478  done
23479fi
23480if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23481  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23482$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
23483fi
23484
23485