1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.66.
4#
5#
6# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
8# 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.
92case $0 in #((
93  *[\\/]* ) as_myself=$0 ;;
94  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
95for as_dir in $PATH
96do
97  IFS=$as_save_IFS
98  test -z "$as_dir" && as_dir=.
99    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
100  done
101IFS=$as_save_IFS
102
103     ;;
104esac
105# We did not find ourselves, most probably we were run as `sh COMMAND'
106# in which case we are not to be found in the path.
107if test "x$as_myself" = x; then
108  as_myself=$0
109fi
110if test ! -f "$as_myself"; then
111  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
112  exit 1
113fi
114
115# Unset variables that we do not need and which cause bugs (e.g. in
116# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
117# suppresses any "Segmentation fault" message there.  '((' could
118# trigger a bug in pdksh 5.2.14.
119for as_var in BASH_ENV ENV MAIL MAILPATH
120do eval test x\${$as_var+set} = xset \
121  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
122done
123PS1='$ '
124PS2='> '
125PS4='+ '
126
127# NLS nuisances.
128LC_ALL=C
129export LC_ALL
130LANGUAGE=C
131export LANGUAGE
132
133# CDPATH.
134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135
136if test "x$CONFIG_SHELL" = x; then
137  as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
138  emulate sh
139  NULLCMD=:
140  # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
141  # is contrary to our usage.  Disable this feature.
142  alias -g '\${1+\"\$@\"}'='\"\$@\"'
143  setopt NO_GLOB_SUBST
144else
145  case \`(set -o) 2>/dev/null\` in #(
146  *posix*) :
147    set -o posix ;; #(
148  *) :
149     ;;
150esac
151fi
152"
153  as_required="as_fn_return () { (exit \$1); }
154as_fn_success () { as_fn_return 0; }
155as_fn_failure () { as_fn_return 1; }
156as_fn_ret_success () { return 0; }
157as_fn_ret_failure () { return 1; }
158
159exitcode=0
160as_fn_success || { exitcode=1; echo as_fn_success failed.; }
161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
165
166else
167  exitcode=1; echo positional parameters were not saved.
168fi
169test x\$exitcode = x0 || exit 1"
170  as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
171  as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
172  eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
173  test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
174test \$(( 1 + 1 )) = 2 || exit 1
175
176  test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
177    ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
178    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
179    ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
180    PATH=/empty FPATH=/empty; export PATH FPATH
181    test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
182      || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
183  if (eval "$as_required") 2>/dev/null; then :
184  as_have_required=yes
185else
186  as_have_required=no
187fi
188  if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
189
190else
191  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
192as_found=false
193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
194do
195  IFS=$as_save_IFS
196  test -z "$as_dir" && as_dir=.
197  as_found=:
198  case $as_dir in #(
199	 /*)
200	   for as_base in sh bash ksh sh5; do
201	     # Try only shells that exist, to save several forks.
202	     as_shell=$as_dir/$as_base
203	     if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
204		    { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
205  CONFIG_SHELL=$as_shell as_have_required=yes
206		   if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207  break 2
208fi
209fi
210	   done;;
211       esac
212  as_found=false
213done
214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
215	      { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
216  CONFIG_SHELL=$SHELL as_have_required=yes
217fi; }
218IFS=$as_save_IFS
219
220
221      if test "x$CONFIG_SHELL" != x; then :
222  # We cannot yet assume a decent shell, so we have to provide a
223	# neutralization value for shells without unset; and this also
224	# works around shells that cannot unset nonexistent variables.
225	BASH_ENV=/dev/null
226	ENV=/dev/null
227	(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
228	export CONFIG_SHELL
229	exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230fi
231
232    if test x$as_have_required = xno; then :
233  $as_echo "$0: This script requires a shell more modern than all"
234  $as_echo "$0: the shells that I found on your system."
235  if test x${ZSH_VERSION+set} = xset ; then
236    $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237    $as_echo "$0: be upgraded to zsh 4.3.4 or later."
238  else
239    $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240$0: including any error possibly output before this
241$0: message. Then install a modern shell, or manually run
242$0: the script under such a shell if you do have one."
243  fi
244  exit 1
245fi
246fi
247fi
248SHELL=${CONFIG_SHELL-/bin/sh}
249export SHELL
250# Unset more variables known to interfere with behavior of common tools.
251CLICOLOR_FORCE= GREP_OPTIONS=
252unset CLICOLOR_FORCE GREP_OPTIONS
253
254## --------------------- ##
255## M4sh Shell Functions. ##
256## --------------------- ##
257# as_fn_unset VAR
258# ---------------
259# Portably unset VAR.
260as_fn_unset ()
261{
262  { eval $1=; unset $1;}
263}
264as_unset=as_fn_unset
265
266# as_fn_set_status STATUS
267# -----------------------
268# Set $? to STATUS, without forking.
269as_fn_set_status ()
270{
271  return $1
272} # as_fn_set_status
273
274# as_fn_exit STATUS
275# -----------------
276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
277as_fn_exit ()
278{
279  set +e
280  as_fn_set_status $1
281  exit $1
282} # as_fn_exit
283
284# as_fn_mkdir_p
285# -------------
286# Create "$as_dir" as a directory, including parents if necessary.
287as_fn_mkdir_p ()
288{
289
290  case $as_dir in #(
291  -*) as_dir=./$as_dir;;
292  esac
293  test -d "$as_dir" || eval $as_mkdir_p || {
294    as_dirs=
295    while :; do
296      case $as_dir in #(
297      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
298      *) as_qdir=$as_dir;;
299      esac
300      as_dirs="'$as_qdir' $as_dirs"
301      as_dir=`$as_dirname -- "$as_dir" ||
302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303	 X"$as_dir" : 'X\(//\)[^/]' \| \
304	 X"$as_dir" : 'X\(//\)$' \| \
305	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306$as_echo X"$as_dir" |
307    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
308	    s//\1/
309	    q
310	  }
311	  /^X\(\/\/\)[^/].*/{
312	    s//\1/
313	    q
314	  }
315	  /^X\(\/\/\)$/{
316	    s//\1/
317	    q
318	  }
319	  /^X\(\/\).*/{
320	    s//\1/
321	    q
322	  }
323	  s/.*/./; q'`
324      test -d "$as_dir" && break
325    done
326    test -z "$as_dirs" || eval "mkdir $as_dirs"
327  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
328
329
330} # as_fn_mkdir_p
331# as_fn_append VAR VALUE
332# ----------------------
333# Append the text in VALUE to the end of the definition contained in VAR. Take
334# advantage of any shell optimizations that allow amortized linear growth over
335# repeated appends, instead of the typical quadratic growth present in naive
336# implementations.
337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338  eval 'as_fn_append ()
339  {
340    eval $1+=\$2
341  }'
342else
343  as_fn_append ()
344  {
345    eval $1=\$$1\$2
346  }
347fi # as_fn_append
348
349# as_fn_arith ARG...
350# ------------------
351# Perform arithmetic evaluation on the ARGs, and store the result in the
352# global $as_val. Take advantage of shells that can avoid forks. The arguments
353# must be portable across $(()) and expr.
354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
355  eval 'as_fn_arith ()
356  {
357    as_val=$(( $* ))
358  }'
359else
360  as_fn_arith ()
361  {
362    as_val=`expr "$@" || test $? -eq 1`
363  }
364fi # as_fn_arith
365
366
367# as_fn_error STATUS ERROR [LINENO LOG_FD]
368# ----------------------------------------
369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371# script with STATUS, using 1 if that was 0.
372as_fn_error ()
373{
374  as_status=$1; test $as_status -eq 0 && as_status=1
375  if test "$4"; then
376    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
378  fi
379  $as_echo "$as_me: error: $2" >&2
380  as_fn_exit $as_status
381} # as_fn_error
382
383if expr a : '\(a\)' >/dev/null 2>&1 &&
384   test "X`expr 00001 : '.*\(...\)'`" = X001; then
385  as_expr=expr
386else
387  as_expr=false
388fi
389
390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391  as_basename=basename
392else
393  as_basename=false
394fi
395
396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
397  as_dirname=dirname
398else
399  as_dirname=false
400fi
401
402as_me=`$as_basename -- "$0" ||
403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404	 X"$0" : 'X\(//\)$' \| \
405	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
406$as_echo X/"$0" |
407    sed '/^.*\/\([^/][^/]*\)\/*$/{
408	    s//\1/
409	    q
410	  }
411	  /^X\/\(\/\/\)$/{
412	    s//\1/
413	    q
414	  }
415	  /^X\/\(\/\).*/{
416	    s//\1/
417	    q
418	  }
419	  s/.*/./; q'`
420
421# Avoid depending upon Character Ranges.
422as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425as_cr_digits='0123456789'
426as_cr_alnum=$as_cr_Letters$as_cr_digits
427
428
429  as_lineno_1=$LINENO as_lineno_1a=$LINENO
430  as_lineno_2=$LINENO as_lineno_2a=$LINENO
431  eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432  test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433  # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
434  sed -n '
435    p
436    /[$]LINENO/=
437  ' <$as_myself |
438    sed '
439      s/[$]LINENO.*/&-/
440      t lineno
441      b
442      :lineno
443      N
444      :loop
445      s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446      t loop
447      s/-\n.*//
448    ' >$as_me.lineno &&
449  chmod +x "$as_me.lineno" ||
450    { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
451
452  # Don't try to exec as it changes $[0], causing all sort of problems
453  # (the dirname of $[0] is not the place where we might find the
454  # original and so on.  Autoconf is especially sensitive to this).
455  . "./$as_me.lineno"
456  # Exit status is that of the last command.
457  exit
458}
459
460ECHO_C= ECHO_N= ECHO_T=
461case `echo -n x` in #(((((
462-n*)
463  case `echo 'xy\c'` in
464  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
465  xy)  ECHO_C='\c';;
466  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
467       ECHO_T='	';;
468  esac;;
469*)
470  ECHO_N='-n';;
471esac
472
473rm -f conf$$ conf$$.exe conf$$.file
474if test -d conf$$.dir; then
475  rm -f conf$$.dir/conf$$.file
476else
477  rm -f conf$$.dir
478  mkdir conf$$.dir 2>/dev/null
479fi
480if (echo >conf$$.file) 2>/dev/null; then
481  if ln -s conf$$.file conf$$ 2>/dev/null; then
482    as_ln_s='ln -s'
483    # ... but there are two gotchas:
484    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486    # In both cases, we have to default to `cp -p'.
487    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
488      as_ln_s='cp -p'
489  elif ln conf$$.file conf$$ 2>/dev/null; then
490    as_ln_s=ln
491  else
492    as_ln_s='cp -p'
493  fi
494else
495  as_ln_s='cp -p'
496fi
497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498rmdir conf$$.dir 2>/dev/null
499
500if mkdir -p . 2>/dev/null; then
501  as_mkdir_p='mkdir -p "$as_dir"'
502else
503  test -d ./-p && rmdir ./-p
504  as_mkdir_p=false
505fi
506
507if test -x / >/dev/null 2>&1; then
508  as_test_x='test -x'
509else
510  if ls -dL / >/dev/null 2>&1; then
511    as_ls_L_option=L
512  else
513    as_ls_L_option=
514  fi
515  as_test_x='
516    eval sh -c '\''
517      if test -d "$1"; then
518	test -d "$1/.";
519      else
520	case $1 in #(
521	-*)set "./$1";;
522	esac;
523	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524	???[sx]*):;;*)false;;esac;fi
525    '\'' sh
526  '
527fi
528as_executable_p=$as_test_x
529
530# Sed expression to map a string onto a valid CPP name.
531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
532
533# Sed expression to map a string onto a valid variable name.
534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
535
536SHELL=${CONFIG_SHELL-/bin/sh}
537
538
539test -n "$DJDIR" || exec 7<&0 </dev/null
540exec 6>&1
541
542# Name of the host.
543# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
544# so uname gets run too.
545ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
546
547#
548# Initializations.
549#
550ac_default_prefix=/usr/local
551ac_clean_files=
552ac_config_libobj_dir=.
553LIBOBJS=
554cross_compiling=no
555subdirs=
556MFLAGS=
557MAKEFLAGS=
558
559# Identity of this package.
560PACKAGE_NAME=
561PACKAGE_TARNAME=
562PACKAGE_VERSION=
563PACKAGE_STRING=
564PACKAGE_BUGREPORT=
565PACKAGE_URL=
566
567ac_unique_file="config.m4"
568# Factoring default headers for most tests.
569ac_includes_default="\
570#include <stdio.h>
571#ifdef HAVE_SYS_TYPES_H
572# include <sys/types.h>
573#endif
574#ifdef HAVE_SYS_STAT_H
575# include <sys/stat.h>
576#endif
577#ifdef STDC_HEADERS
578# include <stdlib.h>
579# include <stddef.h>
580#else
581# ifdef HAVE_STDLIB_H
582#  include <stdlib.h>
583# endif
584#endif
585#ifdef HAVE_STRING_H
586# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
587#  include <memory.h>
588# endif
589# include <string.h>
590#endif
591#ifdef HAVE_STRINGS_H
592# include <strings.h>
593#endif
594#ifdef HAVE_INTTYPES_H
595# include <inttypes.h>
596#endif
597#ifdef HAVE_STDINT_H
598# include <stdint.h>
599#endif
600#ifdef HAVE_UNISTD_H
601# include <unistd.h>
602#endif"
603
604ac_subst_vars='LTLIBOBJS
605LIBOBJS
606OTOOL64
607OTOOL
608LIPO
609NMEDIT
610DSYMUTIL
611RANLIB
612STRIP
613AR
614OBJDUMP
615LN_S
616NM
617ac_ct_DUMPBIN
618DUMPBIN
619LD
620FGREP
621LIBTOOL
622CXXCPP
623ac_ct_CXX
624CXXFLAGS
625CXX
626AWK
627RE2C
628SHLIB_DL_SUFFIX_NAME
629SHLIB_SUFFIX_NAME
630target_os
631target_vendor
632target_cpu
633target
634host_os
635host_vendor
636host_cpu
637host
638build_os
639build_vendor
640build_cpu
641build
642CPP
643OBJEXT
644EXEEXT
645ac_ct_CC
646CPPFLAGS
647LDFLAGS
648CFLAGS
649CC
650CONFIGURE_OPTIONS
651CONFIGURE_COMMAND
652SED
653EGREP
654GREP
655target_alias
656host_alias
657build_alias
658LIBS
659ECHO_T
660ECHO_N
661ECHO_C
662DEFS
663mandir
664localedir
665libdir
666psdir
667pdfdir
668dvidir
669htmldir
670infodir
671docdir
672oldincludedir
673includedir
674localstatedir
675sharedstatedir
676sysconfdir
677datadir
678datarootdir
679libexecdir
680sbindir
681bindir
682program_transform_name
683prefix
684exec_prefix
685PACKAGE_URL
686PACKAGE_BUGREPORT
687PACKAGE_STRING
688PACKAGE_VERSION
689PACKAGE_TARNAME
690PACKAGE_NAME
691PATH_SEPARATOR
692SHELL'
693ac_subst_files=''
694ac_user_opts='
695enable_option_checking
696with_libdir
697with_php_config
698with_pHash
699enable_shared
700enable_static
701with_pic
702enable_fast_install
703with_gnu_ld
704enable_libtool_lock
705'
706      ac_precious_vars='build_alias
707host_alias
708target_alias
709CC
710CFLAGS
711LDFLAGS
712LIBS
713CPPFLAGS
714CPP
715CXX
716CXXFLAGS
717CCC
718CXXCPP'
719
720
721# Initialize some variables set by options.
722ac_init_help=
723ac_init_version=false
724ac_unrecognized_opts=
725ac_unrecognized_sep=
726# The variables have the same names as the options, with
727# dashes changed to underlines.
728cache_file=/dev/null
729exec_prefix=NONE
730no_create=
731no_recursion=
732prefix=NONE
733program_prefix=NONE
734program_suffix=NONE
735program_transform_name=s,x,x,
736silent=
737site=
738srcdir=
739verbose=
740x_includes=NONE
741x_libraries=NONE
742
743# Installation directory options.
744# These are left unexpanded so users can "make install exec_prefix=/foo"
745# and all the variables that are supposed to be based on exec_prefix
746# by default will actually change.
747# Use braces instead of parens because sh, perl, etc. also accept them.
748# (The list follows the same order as the GNU Coding Standards.)
749bindir='${exec_prefix}/bin'
750sbindir='${exec_prefix}/sbin'
751libexecdir='${exec_prefix}/libexec'
752datarootdir='${prefix}/share'
753datadir='${datarootdir}'
754sysconfdir='${prefix}/etc'
755sharedstatedir='${prefix}/com'
756localstatedir='${prefix}/var'
757includedir='${prefix}/include'
758oldincludedir='/usr/include'
759docdir='${datarootdir}/doc/${PACKAGE}'
760infodir='${datarootdir}/info'
761htmldir='${docdir}'
762dvidir='${docdir}'
763pdfdir='${docdir}'
764psdir='${docdir}'
765libdir='${exec_prefix}/lib'
766localedir='${datarootdir}/locale'
767mandir='${datarootdir}/man'
768
769ac_prev=
770ac_dashdash=
771for ac_option
772do
773  # If the previous option needs an argument, assign it.
774  if test -n "$ac_prev"; then
775    eval $ac_prev=\$ac_option
776    ac_prev=
777    continue
778  fi
779
780  case $ac_option in
781  *=*)	ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
782  *)	ac_optarg=yes ;;
783  esac
784
785  # Accept the important Cygnus configure options, so we can diagnose typos.
786
787  case $ac_dashdash$ac_option in
788  --)
789    ac_dashdash=yes ;;
790
791  -bindir | --bindir | --bindi | --bind | --bin | --bi)
792    ac_prev=bindir ;;
793  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
794    bindir=$ac_optarg ;;
795
796  -build | --build | --buil | --bui | --bu)
797    ac_prev=build_alias ;;
798  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
799    build_alias=$ac_optarg ;;
800
801  -cache-file | --cache-file | --cache-fil | --cache-fi \
802  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
803    ac_prev=cache_file ;;
804  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
805  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
806    cache_file=$ac_optarg ;;
807
808  --config-cache | -C)
809    cache_file=config.cache ;;
810
811  -datadir | --datadir | --datadi | --datad)
812    ac_prev=datadir ;;
813  -datadir=* | --datadir=* | --datadi=* | --datad=*)
814    datadir=$ac_optarg ;;
815
816  -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
817  | --dataroo | --dataro | --datar)
818    ac_prev=datarootdir ;;
819  -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
820  | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
821    datarootdir=$ac_optarg ;;
822
823  -disable-* | --disable-*)
824    ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
825    # Reject names that are not valid shell variable names.
826    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
827      as_fn_error $? "invalid feature name: $ac_useropt"
828    ac_useropt_orig=$ac_useropt
829    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
830    case $ac_user_opts in
831      *"
832"enable_$ac_useropt"
833"*) ;;
834      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
835	 ac_unrecognized_sep=', ';;
836    esac
837    eval enable_$ac_useropt=no ;;
838
839  -docdir | --docdir | --docdi | --doc | --do)
840    ac_prev=docdir ;;
841  -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
842    docdir=$ac_optarg ;;
843
844  -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
845    ac_prev=dvidir ;;
846  -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
847    dvidir=$ac_optarg ;;
848
849  -enable-* | --enable-*)
850    ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
851    # Reject names that are not valid shell variable names.
852    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
853      as_fn_error $? "invalid feature name: $ac_useropt"
854    ac_useropt_orig=$ac_useropt
855    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
856    case $ac_user_opts in
857      *"
858"enable_$ac_useropt"
859"*) ;;
860      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
861	 ac_unrecognized_sep=', ';;
862    esac
863    eval enable_$ac_useropt=\$ac_optarg ;;
864
865  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
866  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
867  | --exec | --exe | --ex)
868    ac_prev=exec_prefix ;;
869  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
870  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
871  | --exec=* | --exe=* | --ex=*)
872    exec_prefix=$ac_optarg ;;
873
874  -gas | --gas | --ga | --g)
875    # Obsolete; use --with-gas.
876    with_gas=yes ;;
877
878  -help | --help | --hel | --he | -h)
879    ac_init_help=long ;;
880  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
881    ac_init_help=recursive ;;
882  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
883    ac_init_help=short ;;
884
885  -host | --host | --hos | --ho)
886    ac_prev=host_alias ;;
887  -host=* | --host=* | --hos=* | --ho=*)
888    host_alias=$ac_optarg ;;
889
890  -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
891    ac_prev=htmldir ;;
892  -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
893  | --ht=*)
894    htmldir=$ac_optarg ;;
895
896  -includedir | --includedir | --includedi | --included | --include \
897  | --includ | --inclu | --incl | --inc)
898    ac_prev=includedir ;;
899  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
900  | --includ=* | --inclu=* | --incl=* | --inc=*)
901    includedir=$ac_optarg ;;
902
903  -infodir | --infodir | --infodi | --infod | --info | --inf)
904    ac_prev=infodir ;;
905  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
906    infodir=$ac_optarg ;;
907
908  -libdir | --libdir | --libdi | --libd)
909    ac_prev=libdir ;;
910  -libdir=* | --libdir=* | --libdi=* | --libd=*)
911    libdir=$ac_optarg ;;
912
913  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
914  | --libexe | --libex | --libe)
915    ac_prev=libexecdir ;;
916  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
917  | --libexe=* | --libex=* | --libe=*)
918    libexecdir=$ac_optarg ;;
919
920  -localedir | --localedir | --localedi | --localed | --locale)
921    ac_prev=localedir ;;
922  -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
923    localedir=$ac_optarg ;;
924
925  -localstatedir | --localstatedir | --localstatedi | --localstated \
926  | --localstate | --localstat | --localsta | --localst | --locals)
927    ac_prev=localstatedir ;;
928  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
929  | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
930    localstatedir=$ac_optarg ;;
931
932  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
933    ac_prev=mandir ;;
934  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
935    mandir=$ac_optarg ;;
936
937  -nfp | --nfp | --nf)
938    # Obsolete; use --without-fp.
939    with_fp=no ;;
940
941  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
942  | --no-cr | --no-c | -n)
943    no_create=yes ;;
944
945  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
946  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
947    no_recursion=yes ;;
948
949  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
950  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
951  | --oldin | --oldi | --old | --ol | --o)
952    ac_prev=oldincludedir ;;
953  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
954  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
955  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
956    oldincludedir=$ac_optarg ;;
957
958  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
959    ac_prev=prefix ;;
960  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
961    prefix=$ac_optarg ;;
962
963  -program-prefix | --program-prefix | --program-prefi | --program-pref \
964  | --program-pre | --program-pr | --program-p)
965    ac_prev=program_prefix ;;
966  -program-prefix=* | --program-prefix=* | --program-prefi=* \
967  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
968    program_prefix=$ac_optarg ;;
969
970  -program-suffix | --program-suffix | --program-suffi | --program-suff \
971  | --program-suf | --program-su | --program-s)
972    ac_prev=program_suffix ;;
973  -program-suffix=* | --program-suffix=* | --program-suffi=* \
974  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
975    program_suffix=$ac_optarg ;;
976
977  -program-transform-name | --program-transform-name \
978  | --program-transform-nam | --program-transform-na \
979  | --program-transform-n | --program-transform- \
980  | --program-transform | --program-transfor \
981  | --program-transfo | --program-transf \
982  | --program-trans | --program-tran \
983  | --progr-tra | --program-tr | --program-t)
984    ac_prev=program_transform_name ;;
985  -program-transform-name=* | --program-transform-name=* \
986  | --program-transform-nam=* | --program-transform-na=* \
987  | --program-transform-n=* | --program-transform-=* \
988  | --program-transform=* | --program-transfor=* \
989  | --program-transfo=* | --program-transf=* \
990  | --program-trans=* | --program-tran=* \
991  | --progr-tra=* | --program-tr=* | --program-t=*)
992    program_transform_name=$ac_optarg ;;
993
994  -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
995    ac_prev=pdfdir ;;
996  -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
997    pdfdir=$ac_optarg ;;
998
999  -psdir | --psdir | --psdi | --psd | --ps)
1000    ac_prev=psdir ;;
1001  -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1002    psdir=$ac_optarg ;;
1003
1004  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1005  | -silent | --silent | --silen | --sile | --sil)
1006    silent=yes ;;
1007
1008  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1009    ac_prev=sbindir ;;
1010  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1011  | --sbi=* | --sb=*)
1012    sbindir=$ac_optarg ;;
1013
1014  -sharedstatedir | --sharedstatedir | --sharedstatedi \
1015  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1016  | --sharedst | --shareds | --shared | --share | --shar \
1017  | --sha | --sh)
1018    ac_prev=sharedstatedir ;;
1019  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1020  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1021  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1022  | --sha=* | --sh=*)
1023    sharedstatedir=$ac_optarg ;;
1024
1025  -site | --site | --sit)
1026    ac_prev=site ;;
1027  -site=* | --site=* | --sit=*)
1028    site=$ac_optarg ;;
1029
1030  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1031    ac_prev=srcdir ;;
1032  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1033    srcdir=$ac_optarg ;;
1034
1035  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1036  | --syscon | --sysco | --sysc | --sys | --sy)
1037    ac_prev=sysconfdir ;;
1038  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1039  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1040    sysconfdir=$ac_optarg ;;
1041
1042  -target | --target | --targe | --targ | --tar | --ta | --t)
1043    ac_prev=target_alias ;;
1044  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1045    target_alias=$ac_optarg ;;
1046
1047  -v | -verbose | --verbose | --verbos | --verbo | --verb)
1048    verbose=yes ;;
1049
1050  -version | --version | --versio | --versi | --vers | -V)
1051    ac_init_version=: ;;
1052
1053  -with-* | --with-*)
1054    ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1055    # Reject names that are not valid shell variable names.
1056    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1057      as_fn_error $? "invalid package name: $ac_useropt"
1058    ac_useropt_orig=$ac_useropt
1059    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1060    case $ac_user_opts in
1061      *"
1062"with_$ac_useropt"
1063"*) ;;
1064      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1065	 ac_unrecognized_sep=', ';;
1066    esac
1067    eval with_$ac_useropt=\$ac_optarg ;;
1068
1069  -without-* | --without-*)
1070    ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1071    # Reject names that are not valid shell variable names.
1072    expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1073      as_fn_error $? "invalid package name: $ac_useropt"
1074    ac_useropt_orig=$ac_useropt
1075    ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1076    case $ac_user_opts in
1077      *"
1078"with_$ac_useropt"
1079"*) ;;
1080      *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1081	 ac_unrecognized_sep=', ';;
1082    esac
1083    eval with_$ac_useropt=no ;;
1084
1085  --x)
1086    # Obsolete; use --with-x.
1087    with_x=yes ;;
1088
1089  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1090  | --x-incl | --x-inc | --x-in | --x-i)
1091    ac_prev=x_includes ;;
1092  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1093  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1094    x_includes=$ac_optarg ;;
1095
1096  -x-libraries | --x-libraries | --x-librarie | --x-librari \
1097  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1098    ac_prev=x_libraries ;;
1099  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1100  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1101    x_libraries=$ac_optarg ;;
1102
1103  -*) as_fn_error $? "unrecognized option: \`$ac_option'
1104Try \`$0 --help' for more information"
1105    ;;
1106
1107  *=*)
1108    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1109    # Reject names that are not valid shell variable names.
1110    case $ac_envvar in #(
1111      '' | [0-9]* | *[!_$as_cr_alnum]* )
1112      as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1113    esac
1114    eval $ac_envvar=\$ac_optarg
1115    export $ac_envvar ;;
1116
1117  *)
1118    # FIXME: should be removed in autoconf 3.0.
1119    $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1120    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1121      $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1122    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1123    ;;
1124
1125  esac
1126done
1127
1128if test -n "$ac_prev"; then
1129  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1130  as_fn_error $? "missing argument to $ac_option"
1131fi
1132
1133if test -n "$ac_unrecognized_opts"; then
1134  case $enable_option_checking in
1135    no) ;;
1136    fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1137    *)     $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1138  esac
1139fi
1140
1141# Check all directory arguments for consistency.
1142for ac_var in	exec_prefix prefix bindir sbindir libexecdir datarootdir \
1143		datadir sysconfdir sharedstatedir localstatedir includedir \
1144		oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1145		libdir localedir mandir
1146do
1147  eval ac_val=\$$ac_var
1148  # Remove trailing slashes.
1149  case $ac_val in
1150    */ )
1151      ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1152      eval $ac_var=\$ac_val;;
1153  esac
1154  # Be sure to have absolute directory names.
1155  case $ac_val in
1156    [\\/$]* | ?:[\\/]* )  continue;;
1157    NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1158  esac
1159  as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1160done
1161
1162# There might be people who depend on the old broken behavior: `$host'
1163# used to hold the argument of --host etc.
1164# FIXME: To remove some day.
1165build=$build_alias
1166host=$host_alias
1167target=$target_alias
1168
1169# FIXME: To remove some day.
1170if test "x$host_alias" != x; then
1171  if test "x$build_alias" = x; then
1172    cross_compiling=maybe
1173    $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1174    If a cross compiler is detected then cross compile mode will be used" >&2
1175  elif test "x$build_alias" != "x$host_alias"; then
1176    cross_compiling=yes
1177  fi
1178fi
1179
1180ac_tool_prefix=
1181test -n "$host_alias" && ac_tool_prefix=$host_alias-
1182
1183test "$silent" = yes && exec 6>/dev/null
1184
1185
1186ac_pwd=`pwd` && test -n "$ac_pwd" &&
1187ac_ls_di=`ls -di .` &&
1188ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1189  as_fn_error $? "working directory cannot be determined"
1190test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1191  as_fn_error $? "pwd does not report name of working directory"
1192
1193
1194# Find the source files, if location was not specified.
1195if test -z "$srcdir"; then
1196  ac_srcdir_defaulted=yes
1197  # Try the directory containing this script, then the parent directory.
1198  ac_confdir=`$as_dirname -- "$as_myself" ||
1199$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1200	 X"$as_myself" : 'X\(//\)[^/]' \| \
1201	 X"$as_myself" : 'X\(//\)$' \| \
1202	 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1203$as_echo X"$as_myself" |
1204    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1205	    s//\1/
1206	    q
1207	  }
1208	  /^X\(\/\/\)[^/].*/{
1209	    s//\1/
1210	    q
1211	  }
1212	  /^X\(\/\/\)$/{
1213	    s//\1/
1214	    q
1215	  }
1216	  /^X\(\/\).*/{
1217	    s//\1/
1218	    q
1219	  }
1220	  s/.*/./; q'`
1221  srcdir=$ac_confdir
1222  if test ! -r "$srcdir/$ac_unique_file"; then
1223    srcdir=..
1224  fi
1225else
1226  ac_srcdir_defaulted=no
1227fi
1228if test ! -r "$srcdir/$ac_unique_file"; then
1229  test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1230  as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1231fi
1232ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1233ac_abs_confdir=`(
1234	cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1235	pwd)`
1236# When building in place, set srcdir=.
1237if test "$ac_abs_confdir" = "$ac_pwd"; then
1238  srcdir=.
1239fi
1240# Remove unnecessary trailing slashes from srcdir.
1241# Double slashes in file names in object file debugging info
1242# mess up M-x gdb in Emacs.
1243case $srcdir in
1244*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1245esac
1246for ac_var in $ac_precious_vars; do
1247  eval ac_env_${ac_var}_set=\${${ac_var}+set}
1248  eval ac_env_${ac_var}_value=\$${ac_var}
1249  eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1250  eval ac_cv_env_${ac_var}_value=\$${ac_var}
1251done
1252
1253#
1254# Report the --help message.
1255#
1256if test "$ac_init_help" = "long"; then
1257  # Omit some internal or obsolete options to make the list less imposing.
1258  # This message is too long to be a string in the A/UX 3.1 sh.
1259  cat <<_ACEOF
1260\`configure' configures this package to adapt to many kinds of systems.
1261
1262Usage: $0 [OPTION]... [VAR=VALUE]...
1263
1264To assign environment variables (e.g., CC, CFLAGS...), specify them as
1265VAR=VALUE.  See below for descriptions of some of the useful variables.
1266
1267Defaults for the options are specified in brackets.
1268
1269Configuration:
1270  -h, --help              display this help and exit
1271      --help=short        display options specific to this package
1272      --help=recursive    display the short help of all the included packages
1273  -V, --version           display version information and exit
1274  -q, --quiet, --silent   do not print \`checking ...' messages
1275      --cache-file=FILE   cache test results in FILE [disabled]
1276  -C, --config-cache      alias for \`--cache-file=config.cache'
1277  -n, --no-create         do not create output files
1278      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1279
1280Installation directories:
1281  --prefix=PREFIX         install architecture-independent files in PREFIX
1282                          [$ac_default_prefix]
1283  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1284                          [PREFIX]
1285
1286By default, \`make install' will install all the files in
1287\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1288an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1289for instance \`--prefix=\$HOME'.
1290
1291For better control, use the options below.
1292
1293Fine tuning of the installation directories:
1294  --bindir=DIR            user executables [EPREFIX/bin]
1295  --sbindir=DIR           system admin executables [EPREFIX/sbin]
1296  --libexecdir=DIR        program executables [EPREFIX/libexec]
1297  --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1298  --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1299  --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1300  --libdir=DIR            object code libraries [EPREFIX/lib]
1301  --includedir=DIR        C header files [PREFIX/include]
1302  --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1303  --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1304  --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1305  --infodir=DIR           info documentation [DATAROOTDIR/info]
1306  --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1307  --mandir=DIR            man documentation [DATAROOTDIR/man]
1308  --docdir=DIR            documentation root [DATAROOTDIR/doc/PACKAGE]
1309  --htmldir=DIR           html documentation [DOCDIR]
1310  --dvidir=DIR            dvi documentation [DOCDIR]
1311  --pdfdir=DIR            pdf documentation [DOCDIR]
1312  --psdir=DIR             ps documentation [DOCDIR]
1313_ACEOF
1314
1315  cat <<\_ACEOF
1316
1317System types:
1318  --build=BUILD     configure for building on BUILD [guessed]
1319  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1320  --target=TARGET   configure for building compilers for TARGET [HOST]
1321_ACEOF
1322fi
1323
1324if test -n "$ac_init_help"; then
1325
1326  cat <<\_ACEOF
1327
1328Optional Features:
1329  --disable-option-checking  ignore unrecognized --enable/--with options
1330  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1331  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1332  --enable-shared[=PKGS]  build shared libraries [default=yes]
1333  --enable-static[=PKGS]  build static libraries [default=yes]
1334  --enable-fast-install[=PKGS]
1335                          optimize for fast installation [default=yes]
1336  --disable-libtool-lock  avoid locking (might break parallel builds)
1337
1338Optional Packages:
1339  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1340  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1341  --with-libdir=NAME      Look for libraries in .../NAME rather than .../lib
1342  --with-php-config=PATH  Path to php-config php-config
1343  --with-pHash=DIR   With pHash support
1344  --with-pic              try to use only PIC/non-PIC objects [default=use
1345                          both]
1346  --with-gnu-ld           assume the C compiler uses GNU ld [default=no]
1347
1348Some influential environment variables:
1349  CC          C compiler command
1350  CFLAGS      C compiler flags
1351  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1352              nonstandard directory <lib dir>
1353  LIBS        libraries to pass to the linker, e.g. -l<library>
1354  CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1355              you have headers in a nonstandard directory <include dir>
1356  CPP         C preprocessor
1357  CXX         C++ compiler command
1358  CXXFLAGS    C++ compiler flags
1359  CXXCPP      C++ preprocessor
1360
1361Use these variables to override the choices made by `configure' or to help
1362it to find libraries and programs with nonstandard names/locations.
1363
1364Report bugs to the package provider.
1365_ACEOF
1366ac_status=$?
1367fi
1368
1369if test "$ac_init_help" = "recursive"; then
1370  # If there are subdirs, report their specific --help.
1371  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372    test -d "$ac_dir" ||
1373      { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1374      continue
1375    ac_builddir=.
1376
1377case "$ac_dir" in
1378.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1379*)
1380  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1381  # A ".." for each directory in $ac_dir_suffix.
1382  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1383  case $ac_top_builddir_sub in
1384  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1385  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1386  esac ;;
1387esac
1388ac_abs_top_builddir=$ac_pwd
1389ac_abs_builddir=$ac_pwd$ac_dir_suffix
1390# for backward compatibility:
1391ac_top_builddir=$ac_top_build_prefix
1392
1393case $srcdir in
1394  .)  # We are building in place.
1395    ac_srcdir=.
1396    ac_top_srcdir=$ac_top_builddir_sub
1397    ac_abs_top_srcdir=$ac_pwd ;;
1398  [\\/]* | ?:[\\/]* )  # Absolute name.
1399    ac_srcdir=$srcdir$ac_dir_suffix;
1400    ac_top_srcdir=$srcdir
1401    ac_abs_top_srcdir=$srcdir ;;
1402  *) # Relative name.
1403    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1404    ac_top_srcdir=$ac_top_build_prefix$srcdir
1405    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1406esac
1407ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1408
1409    cd "$ac_dir" || { ac_status=$?; continue; }
1410    # Check for guested configure.
1411    if test -f "$ac_srcdir/configure.gnu"; then
1412      echo &&
1413      $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1414    elif test -f "$ac_srcdir/configure"; then
1415      echo &&
1416      $SHELL "$ac_srcdir/configure" --help=recursive
1417    else
1418      $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1419    fi || ac_status=$?
1420    cd "$ac_pwd" || { ac_status=$?; break; }
1421  done
1422fi
1423
1424test -n "$ac_init_help" && exit $ac_status
1425if $ac_init_version; then
1426  cat <<\_ACEOF
1427configure
1428generated by GNU Autoconf 2.66
1429
1430Copyright (C) 2010 Free Software Foundation, Inc.
1431This configure script is free software; the Free Software Foundation
1432gives unlimited permission to copy, distribute and modify it.
1433_ACEOF
1434  exit
1435fi
1436
1437## ------------------------ ##
1438## Autoconf initialization. ##
1439## ------------------------ ##
1440
1441# ac_fn_c_try_compile LINENO
1442# --------------------------
1443# Try to compile conftest.$ac_ext, and return whether this succeeded.
1444ac_fn_c_try_compile ()
1445{
1446  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1447  rm -f conftest.$ac_objext
1448  if { { ac_try="$ac_compile"
1449case "(($ac_try" in
1450  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1451  *) ac_try_echo=$ac_try;;
1452esac
1453eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1454$as_echo "$ac_try_echo"; } >&5
1455  (eval "$ac_compile") 2>conftest.err
1456  ac_status=$?
1457  if test -s conftest.err; then
1458    grep -v '^ *+' conftest.err >conftest.er1
1459    cat conftest.er1 >&5
1460    mv -f conftest.er1 conftest.err
1461  fi
1462  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1463  test $ac_status = 0; } && {
1464	 test -z "$ac_c_werror_flag" ||
1465	 test ! -s conftest.err
1466       } && test -s conftest.$ac_objext; then :
1467  ac_retval=0
1468else
1469  $as_echo "$as_me: failed program was:" >&5
1470sed 's/^/| /' conftest.$ac_ext >&5
1471
1472	ac_retval=1
1473fi
1474  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1475  as_fn_set_status $ac_retval
1476
1477} # ac_fn_c_try_compile
1478
1479# ac_fn_c_try_cpp LINENO
1480# ----------------------
1481# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1482ac_fn_c_try_cpp ()
1483{
1484  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1485  if { { ac_try="$ac_cpp conftest.$ac_ext"
1486case "(($ac_try" in
1487  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1488  *) ac_try_echo=$ac_try;;
1489esac
1490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1491$as_echo "$ac_try_echo"; } >&5
1492  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1493  ac_status=$?
1494  if test -s conftest.err; then
1495    grep -v '^ *+' conftest.err >conftest.er1
1496    cat conftest.er1 >&5
1497    mv -f conftest.er1 conftest.err
1498  fi
1499  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1500  test $ac_status = 0; } >/dev/null && {
1501	 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1502	 test ! -s conftest.err
1503       }; then :
1504  ac_retval=0
1505else
1506  $as_echo "$as_me: failed program was:" >&5
1507sed 's/^/| /' conftest.$ac_ext >&5
1508
1509    ac_retval=1
1510fi
1511  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1512  as_fn_set_status $ac_retval
1513
1514} # ac_fn_c_try_cpp
1515
1516# ac_fn_c_try_link LINENO
1517# -----------------------
1518# Try to link conftest.$ac_ext, and return whether this succeeded.
1519ac_fn_c_try_link ()
1520{
1521  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522  rm -f conftest.$ac_objext conftest$ac_exeext
1523  if { { ac_try="$ac_link"
1524case "(($ac_try" in
1525  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1526  *) ac_try_echo=$ac_try;;
1527esac
1528eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529$as_echo "$ac_try_echo"; } >&5
1530  (eval "$ac_link") 2>conftest.err
1531  ac_status=$?
1532  if test -s conftest.err; then
1533    grep -v '^ *+' conftest.err >conftest.er1
1534    cat conftest.er1 >&5
1535    mv -f conftest.er1 conftest.err
1536  fi
1537  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538  test $ac_status = 0; } && {
1539	 test -z "$ac_c_werror_flag" ||
1540	 test ! -s conftest.err
1541       } && test -s conftest$ac_exeext && {
1542	 test "$cross_compiling" = yes ||
1543	 $as_test_x conftest$ac_exeext
1544       }; then :
1545  ac_retval=0
1546else
1547  $as_echo "$as_me: failed program was:" >&5
1548sed 's/^/| /' conftest.$ac_ext >&5
1549
1550	ac_retval=1
1551fi
1552  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1553  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1554  # interfere with the next link command; also delete a directory that is
1555  # left behind by Apple's compiler.  We do this before executing the actions.
1556  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1557  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1558  as_fn_set_status $ac_retval
1559
1560} # ac_fn_c_try_link
1561
1562# ac_fn_cxx_try_compile LINENO
1563# ----------------------------
1564# Try to compile conftest.$ac_ext, and return whether this succeeded.
1565ac_fn_cxx_try_compile ()
1566{
1567  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1568  rm -f conftest.$ac_objext
1569  if { { ac_try="$ac_compile"
1570case "(($ac_try" in
1571  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1572  *) ac_try_echo=$ac_try;;
1573esac
1574eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1575$as_echo "$ac_try_echo"; } >&5
1576  (eval "$ac_compile") 2>conftest.err
1577  ac_status=$?
1578  if test -s conftest.err; then
1579    grep -v '^ *+' conftest.err >conftest.er1
1580    cat conftest.er1 >&5
1581    mv -f conftest.er1 conftest.err
1582  fi
1583  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1584  test $ac_status = 0; } && {
1585	 test -z "$ac_cxx_werror_flag" ||
1586	 test ! -s conftest.err
1587       } && test -s conftest.$ac_objext; then :
1588  ac_retval=0
1589else
1590  $as_echo "$as_me: failed program was:" >&5
1591sed 's/^/| /' conftest.$ac_ext >&5
1592
1593	ac_retval=1
1594fi
1595  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1596  as_fn_set_status $ac_retval
1597
1598} # ac_fn_cxx_try_compile
1599
1600# ac_fn_cxx_try_cpp LINENO
1601# ------------------------
1602# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1603ac_fn_cxx_try_cpp ()
1604{
1605  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1606  if { { ac_try="$ac_cpp conftest.$ac_ext"
1607case "(($ac_try" in
1608  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1609  *) ac_try_echo=$ac_try;;
1610esac
1611eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1612$as_echo "$ac_try_echo"; } >&5
1613  (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1614  ac_status=$?
1615  if test -s conftest.err; then
1616    grep -v '^ *+' conftest.err >conftest.er1
1617    cat conftest.er1 >&5
1618    mv -f conftest.er1 conftest.err
1619  fi
1620  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1621  test $ac_status = 0; } >/dev/null && {
1622	 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1623	 test ! -s conftest.err
1624       }; then :
1625  ac_retval=0
1626else
1627  $as_echo "$as_me: failed program was:" >&5
1628sed 's/^/| /' conftest.$ac_ext >&5
1629
1630    ac_retval=1
1631fi
1632  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1633  as_fn_set_status $ac_retval
1634
1635} # ac_fn_cxx_try_cpp
1636
1637# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1638# ---------------------------------------------------------
1639# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1640# the include files in INCLUDES and setting the cache variable VAR
1641# accordingly.
1642ac_fn_cxx_check_header_mongrel ()
1643{
1644  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1645  if eval "test \"\${$3+set}\"" = set; then :
1646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1647$as_echo_n "checking for $2... " >&6; }
1648if eval "test \"\${$3+set}\"" = set; then :
1649  $as_echo_n "(cached) " >&6
1650fi
1651eval ac_res=\$$3
1652	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1653$as_echo "$ac_res" >&6; }
1654else
1655  # Is the header compilable?
1656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1657$as_echo_n "checking $2 usability... " >&6; }
1658cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1659/* end confdefs.h.  */
1660$4
1661#include <$2>
1662_ACEOF
1663if ac_fn_cxx_try_compile "$LINENO"; then :
1664  ac_header_compiler=yes
1665else
1666  ac_header_compiler=no
1667fi
1668rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1669{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1670$as_echo "$ac_header_compiler" >&6; }
1671
1672# Is the header present?
1673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1674$as_echo_n "checking $2 presence... " >&6; }
1675cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1676/* end confdefs.h.  */
1677#include <$2>
1678_ACEOF
1679if ac_fn_cxx_try_cpp "$LINENO"; then :
1680  ac_header_preproc=yes
1681else
1682  ac_header_preproc=no
1683fi
1684rm -f conftest.err conftest.$ac_ext
1685{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1686$as_echo "$ac_header_preproc" >&6; }
1687
1688# So?  What about this header?
1689case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1690  yes:no: )
1691    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1692$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1693    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1694$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1695    ;;
1696  no:yes:* )
1697    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1698$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1699    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     check for missing prerequisite headers?" >&5
1700$as_echo "$as_me: WARNING: $2:     check for missing prerequisite headers?" >&2;}
1701    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1702$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1703    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&5
1704$as_echo "$as_me: WARNING: $2:     section \"Present But Cannot Be Compiled\"" >&2;}
1705    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1706$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1707    ;;
1708esac
1709  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1710$as_echo_n "checking for $2... " >&6; }
1711if eval "test \"\${$3+set}\"" = set; then :
1712  $as_echo_n "(cached) " >&6
1713else
1714  eval "$3=\$ac_header_compiler"
1715fi
1716eval ac_res=\$$3
1717	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1718$as_echo "$ac_res" >&6; }
1719fi
1720  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1721
1722} # ac_fn_cxx_check_header_mongrel
1723
1724# ac_fn_cxx_try_run LINENO
1725# ------------------------
1726# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1727# that executables *can* be run.
1728ac_fn_cxx_try_run ()
1729{
1730  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1731  if { { ac_try="$ac_link"
1732case "(($ac_try" in
1733  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1734  *) ac_try_echo=$ac_try;;
1735esac
1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1737$as_echo "$ac_try_echo"; } >&5
1738  (eval "$ac_link") 2>&5
1739  ac_status=$?
1740  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1741  test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1742  { { case "(($ac_try" in
1743  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744  *) ac_try_echo=$ac_try;;
1745esac
1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747$as_echo "$ac_try_echo"; } >&5
1748  (eval "$ac_try") 2>&5
1749  ac_status=$?
1750  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751  test $ac_status = 0; }; }; then :
1752  ac_retval=0
1753else
1754  $as_echo "$as_me: program exited with status $ac_status" >&5
1755       $as_echo "$as_me: failed program was:" >&5
1756sed 's/^/| /' conftest.$ac_ext >&5
1757
1758       ac_retval=$ac_status
1759fi
1760  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1761  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1762  as_fn_set_status $ac_retval
1763
1764} # ac_fn_cxx_try_run
1765
1766# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1767# ---------------------------------------------------------
1768# Tests whether HEADER exists and can be compiled using the include files in
1769# INCLUDES, setting the cache variable VAR accordingly.
1770ac_fn_cxx_check_header_compile ()
1771{
1772  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1774$as_echo_n "checking for $2... " >&6; }
1775if eval "test \"\${$3+set}\"" = set; then :
1776  $as_echo_n "(cached) " >&6
1777else
1778  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1779/* end confdefs.h.  */
1780$4
1781#include <$2>
1782_ACEOF
1783if ac_fn_cxx_try_compile "$LINENO"; then :
1784  eval "$3=yes"
1785else
1786  eval "$3=no"
1787fi
1788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1789fi
1790eval ac_res=\$$3
1791	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1792$as_echo "$ac_res" >&6; }
1793  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1794
1795} # ac_fn_cxx_check_header_compile
1796
1797# ac_fn_cxx_try_link LINENO
1798# -------------------------
1799# Try to link conftest.$ac_ext, and return whether this succeeded.
1800ac_fn_cxx_try_link ()
1801{
1802  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1803  rm -f conftest.$ac_objext conftest$ac_exeext
1804  if { { ac_try="$ac_link"
1805case "(($ac_try" in
1806  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1807  *) ac_try_echo=$ac_try;;
1808esac
1809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1810$as_echo "$ac_try_echo"; } >&5
1811  (eval "$ac_link") 2>conftest.err
1812  ac_status=$?
1813  if test -s conftest.err; then
1814    grep -v '^ *+' conftest.err >conftest.er1
1815    cat conftest.er1 >&5
1816    mv -f conftest.er1 conftest.err
1817  fi
1818  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1819  test $ac_status = 0; } && {
1820	 test -z "$ac_cxx_werror_flag" ||
1821	 test ! -s conftest.err
1822       } && test -s conftest$ac_exeext && {
1823	 test "$cross_compiling" = yes ||
1824	 $as_test_x conftest$ac_exeext
1825       }; then :
1826  ac_retval=0
1827else
1828  $as_echo "$as_me: failed program was:" >&5
1829sed 's/^/| /' conftest.$ac_ext >&5
1830
1831	ac_retval=1
1832fi
1833  # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1834  # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1835  # interfere with the next link command; also delete a directory that is
1836  # left behind by Apple's compiler.  We do this before executing the actions.
1837  rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1838  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839  as_fn_set_status $ac_retval
1840
1841} # ac_fn_cxx_try_link
1842
1843# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1844# -------------------------------------------------------
1845# Tests whether HEADER exists and can be compiled using the include files in
1846# INCLUDES, setting the cache variable VAR accordingly.
1847ac_fn_c_check_header_compile ()
1848{
1849  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1850  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1851$as_echo_n "checking for $2... " >&6; }
1852if eval "test \"\${$3+set}\"" = set; then :
1853  $as_echo_n "(cached) " >&6
1854else
1855  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1856/* end confdefs.h.  */
1857$4
1858#include <$2>
1859_ACEOF
1860if ac_fn_c_try_compile "$LINENO"; then :
1861  eval "$3=yes"
1862else
1863  eval "$3=no"
1864fi
1865rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1866fi
1867eval ac_res=\$$3
1868	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1869$as_echo "$ac_res" >&6; }
1870  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871
1872} # ac_fn_c_check_header_compile
1873
1874# ac_fn_c_check_func LINENO FUNC VAR
1875# ----------------------------------
1876# Tests whether FUNC exists, setting the cache variable VAR accordingly
1877ac_fn_c_check_func ()
1878{
1879  as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1881$as_echo_n "checking for $2... " >&6; }
1882if eval "test \"\${$3+set}\"" = set; then :
1883  $as_echo_n "(cached) " >&6
1884else
1885  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1886/* end confdefs.h.  */
1887/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1888   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1889#define $2 innocuous_$2
1890
1891/* System header to define __stub macros and hopefully few prototypes,
1892    which can conflict with char $2 (); below.
1893    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1894    <limits.h> exists even on freestanding compilers.  */
1895
1896#ifdef __STDC__
1897# include <limits.h>
1898#else
1899# include <assert.h>
1900#endif
1901
1902#undef $2
1903
1904/* Override any GCC internal prototype to avoid an error.
1905   Use char because int might match the return type of a GCC
1906   builtin and then its argument prototype would still apply.  */
1907#ifdef __cplusplus
1908extern "C"
1909#endif
1910char $2 ();
1911/* The GNU C library defines this for functions which it implements
1912    to always fail with ENOSYS.  Some functions are actually named
1913    something starting with __ and the normal name is an alias.  */
1914#if defined __stub_$2 || defined __stub___$2
1915choke me
1916#endif
1917
1918int
1919main ()
1920{
1921return $2 ();
1922  ;
1923  return 0;
1924}
1925_ACEOF
1926if ac_fn_c_try_link "$LINENO"; then :
1927  eval "$3=yes"
1928else
1929  eval "$3=no"
1930fi
1931rm -f core conftest.err conftest.$ac_objext \
1932    conftest$ac_exeext conftest.$ac_ext
1933fi
1934eval ac_res=\$$3
1935	       { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1936$as_echo "$ac_res" >&6; }
1937  eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1938
1939} # ac_fn_c_check_func
1940cat >config.log <<_ACEOF
1941This file contains any messages produced by compilers while
1942running configure, to aid debugging if configure makes a mistake.
1943
1944It was created by $as_me, which was
1945generated by GNU Autoconf 2.66.  Invocation command line was
1946
1947  $ $0 $@
1948
1949_ACEOF
1950exec 5>>config.log
1951{
1952cat <<_ASUNAME
1953## --------- ##
1954## Platform. ##
1955## --------- ##
1956
1957hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1958uname -m = `(uname -m) 2>/dev/null || echo unknown`
1959uname -r = `(uname -r) 2>/dev/null || echo unknown`
1960uname -s = `(uname -s) 2>/dev/null || echo unknown`
1961uname -v = `(uname -v) 2>/dev/null || echo unknown`
1962
1963/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1964/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1965
1966/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1967/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1968/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1969/usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1970/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1971/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1972/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1973
1974_ASUNAME
1975
1976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1977for as_dir in $PATH
1978do
1979  IFS=$as_save_IFS
1980  test -z "$as_dir" && as_dir=.
1981    $as_echo "PATH: $as_dir"
1982  done
1983IFS=$as_save_IFS
1984
1985} >&5
1986
1987cat >&5 <<_ACEOF
1988
1989
1990## ----------- ##
1991## Core tests. ##
1992## ----------- ##
1993
1994_ACEOF
1995
1996
1997# Keep a trace of the command line.
1998# Strip out --no-create and --no-recursion so they do not pile up.
1999# Strip out --silent because we don't want to record it for future runs.
2000# Also quote any args containing shell meta-characters.
2001# Make two passes to allow for proper duplicate-argument suppression.
2002ac_configure_args=
2003ac_configure_args0=
2004ac_configure_args1=
2005ac_must_keep_next=false
2006for ac_pass in 1 2
2007do
2008  for ac_arg
2009  do
2010    case $ac_arg in
2011    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2012    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2013    | -silent | --silent | --silen | --sile | --sil)
2014      continue ;;
2015    *\'*)
2016      ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2017    esac
2018    case $ac_pass in
2019    1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2020    2)
2021      as_fn_append ac_configure_args1 " '$ac_arg'"
2022      if test $ac_must_keep_next = true; then
2023	ac_must_keep_next=false # Got value, back to normal.
2024      else
2025	case $ac_arg in
2026	  *=* | --config-cache | -C | -disable-* | --disable-* \
2027	  | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2028	  | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2029	  | -with-* | --with-* | -without-* | --without-* | --x)
2030	    case "$ac_configure_args0 " in
2031	      "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2032	    esac
2033	    ;;
2034	  -* ) ac_must_keep_next=true ;;
2035	esac
2036      fi
2037      as_fn_append ac_configure_args " '$ac_arg'"
2038      ;;
2039    esac
2040  done
2041done
2042{ ac_configure_args0=; unset ac_configure_args0;}
2043{ ac_configure_args1=; unset ac_configure_args1;}
2044
2045# When interrupted or exit'd, cleanup temporary files, and complete
2046# config.log.  We remove comments because anyway the quotes in there
2047# would cause problems or look ugly.
2048# WARNING: Use '\'' to represent an apostrophe within the trap.
2049# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2050trap 'exit_status=$?
2051  # Save into config.log some information that might help in debugging.
2052  {
2053    echo
2054
2055    $as_echo "## ---------------- ##
2056## Cache variables. ##
2057## ---------------- ##"
2058    echo
2059    # The following way of writing the cache mishandles newlines in values,
2060(
2061  for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2062    eval ac_val=\$$ac_var
2063    case $ac_val in #(
2064    *${as_nl}*)
2065      case $ac_var in #(
2066      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2067$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2068      esac
2069      case $ac_var in #(
2070      _ | IFS | as_nl) ;; #(
2071      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2072      *) { eval $ac_var=; unset $ac_var;} ;;
2073      esac ;;
2074    esac
2075  done
2076  (set) 2>&1 |
2077    case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2078    *${as_nl}ac_space=\ *)
2079      sed -n \
2080	"s/'\''/'\''\\\\'\'''\''/g;
2081	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2082      ;; #(
2083    *)
2084      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2085      ;;
2086    esac |
2087    sort
2088)
2089    echo
2090
2091    $as_echo "## ----------------- ##
2092## Output variables. ##
2093## ----------------- ##"
2094    echo
2095    for ac_var in $ac_subst_vars
2096    do
2097      eval ac_val=\$$ac_var
2098      case $ac_val in
2099      *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2100      esac
2101      $as_echo "$ac_var='\''$ac_val'\''"
2102    done | sort
2103    echo
2104
2105    if test -n "$ac_subst_files"; then
2106      $as_echo "## ------------------- ##
2107## File substitutions. ##
2108## ------------------- ##"
2109      echo
2110      for ac_var in $ac_subst_files
2111      do
2112	eval ac_val=\$$ac_var
2113	case $ac_val in
2114	*\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2115	esac
2116	$as_echo "$ac_var='\''$ac_val'\''"
2117      done | sort
2118      echo
2119    fi
2120
2121    if test -s confdefs.h; then
2122      $as_echo "## ----------- ##
2123## confdefs.h. ##
2124## ----------- ##"
2125      echo
2126      cat confdefs.h
2127      echo
2128    fi
2129    test "$ac_signal" != 0 &&
2130      $as_echo "$as_me: caught signal $ac_signal"
2131    $as_echo "$as_me: exit $exit_status"
2132  } >&5
2133  rm -f core *.core core.conftest.* &&
2134    rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2135    exit $exit_status
2136' 0
2137for ac_signal in 1 2 13 15; do
2138  trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2139done
2140ac_signal=0
2141
2142# confdefs.h avoids OS command line length limits that DEFS can exceed.
2143rm -f -r conftest* confdefs.h
2144
2145$as_echo "/* confdefs.h */" > confdefs.h
2146
2147# Predefined preprocessor variables.
2148
2149cat >>confdefs.h <<_ACEOF
2150#define PACKAGE_NAME "$PACKAGE_NAME"
2151_ACEOF
2152
2153cat >>confdefs.h <<_ACEOF
2154#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2155_ACEOF
2156
2157cat >>confdefs.h <<_ACEOF
2158#define PACKAGE_VERSION "$PACKAGE_VERSION"
2159_ACEOF
2160
2161cat >>confdefs.h <<_ACEOF
2162#define PACKAGE_STRING "$PACKAGE_STRING"
2163_ACEOF
2164
2165cat >>confdefs.h <<_ACEOF
2166#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2167_ACEOF
2168
2169cat >>confdefs.h <<_ACEOF
2170#define PACKAGE_URL "$PACKAGE_URL"
2171_ACEOF
2172
2173
2174# Let the site file select an alternate cache file if it wants to.
2175# Prefer an explicitly selected file to automatically selected ones.
2176ac_site_file1=NONE
2177ac_site_file2=NONE
2178if test -n "$CONFIG_SITE"; then
2179  # We do not want a PATH search for config.site.
2180  case $CONFIG_SITE in #((
2181    -*)  ac_site_file1=./$CONFIG_SITE;;
2182    */*) ac_site_file1=$CONFIG_SITE;;
2183    *)   ac_site_file1=./$CONFIG_SITE;;
2184  esac
2185elif test "x$prefix" != xNONE; then
2186  ac_site_file1=$prefix/share/config.site
2187  ac_site_file2=$prefix/etc/config.site
2188else
2189  ac_site_file1=$ac_default_prefix/share/config.site
2190  ac_site_file2=$ac_default_prefix/etc/config.site
2191fi
2192for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2193do
2194  test "x$ac_site_file" = xNONE && continue
2195  if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2196    { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2197$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2198    sed 's/^/| /' "$ac_site_file" >&5
2199    . "$ac_site_file" \
2200      || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2201$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2202as_fn_error $? "failed to load site script $ac_site_file
2203See \`config.log' for more details" "$LINENO" 5; }
2204  fi
2205done
2206
2207if test -r "$cache_file"; then
2208  # Some versions of bash will fail to source /dev/null (special files
2209  # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2210  if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2211    { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2212$as_echo "$as_me: loading cache $cache_file" >&6;}
2213    case $cache_file in
2214      [\\/]* | ?:[\\/]* ) . "$cache_file";;
2215      *)                      . "./$cache_file";;
2216    esac
2217  fi
2218else
2219  { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2220$as_echo "$as_me: creating cache $cache_file" >&6;}
2221  >$cache_file
2222fi
2223
2224# Check that the precious variables saved in the cache have kept the same
2225# value.
2226ac_cache_corrupted=false
2227for ac_var in $ac_precious_vars; do
2228  eval ac_old_set=\$ac_cv_env_${ac_var}_set
2229  eval ac_new_set=\$ac_env_${ac_var}_set
2230  eval ac_old_val=\$ac_cv_env_${ac_var}_value
2231  eval ac_new_val=\$ac_env_${ac_var}_value
2232  case $ac_old_set,$ac_new_set in
2233    set,)
2234      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2235$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2236      ac_cache_corrupted=: ;;
2237    ,set)
2238      { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2239$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2240      ac_cache_corrupted=: ;;
2241    ,);;
2242    *)
2243      if test "x$ac_old_val" != "x$ac_new_val"; then
2244	# differences in whitespace do not lead to failure.
2245	ac_old_val_w=`echo x $ac_old_val`
2246	ac_new_val_w=`echo x $ac_new_val`
2247	if test "$ac_old_val_w" != "$ac_new_val_w"; then
2248	  { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2249$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2250	  ac_cache_corrupted=:
2251	else
2252	  { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2253$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2254	  eval $ac_var=\$ac_old_val
2255	fi
2256	{ $as_echo "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2257$as_echo "$as_me:   former value:  \`$ac_old_val'" >&2;}
2258	{ $as_echo "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2259$as_echo "$as_me:   current value: \`$ac_new_val'" >&2;}
2260      fi;;
2261  esac
2262  # Pass precious variables to config.status.
2263  if test "$ac_new_set" = set; then
2264    case $ac_new_val in
2265    *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2266    *) ac_arg=$ac_var=$ac_new_val ;;
2267    esac
2268    case " $ac_configure_args " in
2269      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2270      *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2271    esac
2272  fi
2273done
2274if $ac_cache_corrupted; then
2275  { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2276$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2277  { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2278$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2279  as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2280fi
2281## -------------------- ##
2282## Main body of script. ##
2283## -------------------- ##
2284
2285ac_ext=c
2286ac_cpp='$CPP $CPPFLAGS'
2287ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2288ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2289ac_compiler_gnu=$ac_cv_c_compiler_gnu
2290
2291
2292
2293{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
2294$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
2295if test "${ac_cv_path_GREP+set}" = set; then :
2296  $as_echo_n "(cached) " >&6
2297else
2298  if test -z "$GREP"; then
2299  ac_path_GREP_found=false
2300  # Loop through the user's path and test for each of PROGNAME-LIST
2301  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2302for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2303do
2304  IFS=$as_save_IFS
2305  test -z "$as_dir" && as_dir=.
2306    for ac_prog in grep ggrep; do
2307    for ac_exec_ext in '' $ac_executable_extensions; do
2308      ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
2309      { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
2310# Check for GNU ac_path_GREP and select it if it is found.
2311  # Check for GNU $ac_path_GREP
2312case `"$ac_path_GREP" --version 2>&1` in
2313*GNU*)
2314  ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
2315*)
2316  ac_count=0
2317  $as_echo_n 0123456789 >"conftest.in"
2318  while :
2319  do
2320    cat "conftest.in" "conftest.in" >"conftest.tmp"
2321    mv "conftest.tmp" "conftest.in"
2322    cp "conftest.in" "conftest.nl"
2323    $as_echo 'GREP' >> "conftest.nl"
2324    "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2325    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2326    as_fn_arith $ac_count + 1 && ac_count=$as_val
2327    if test $ac_count -gt ${ac_path_GREP_max-0}; then
2328      # Best one so far, save it but keep looking for a better one
2329      ac_cv_path_GREP="$ac_path_GREP"
2330      ac_path_GREP_max=$ac_count
2331    fi
2332    # 10*(2^10) chars as input seems more than enough
2333    test $ac_count -gt 10 && break
2334  done
2335  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2336esac
2337
2338      $ac_path_GREP_found && break 3
2339    done
2340  done
2341  done
2342IFS=$as_save_IFS
2343  if test -z "$ac_cv_path_GREP"; then
2344    as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2345  fi
2346else
2347  ac_cv_path_GREP=$GREP
2348fi
2349
2350fi
2351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
2352$as_echo "$ac_cv_path_GREP" >&6; }
2353 GREP="$ac_cv_path_GREP"
2354
2355
2356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
2357$as_echo_n "checking for egrep... " >&6; }
2358if test "${ac_cv_path_EGREP+set}" = set; then :
2359  $as_echo_n "(cached) " >&6
2360else
2361  if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
2362   then ac_cv_path_EGREP="$GREP -E"
2363   else
2364     if test -z "$EGREP"; then
2365  ac_path_EGREP_found=false
2366  # Loop through the user's path and test for each of PROGNAME-LIST
2367  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2368for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
2369do
2370  IFS=$as_save_IFS
2371  test -z "$as_dir" && as_dir=.
2372    for ac_prog in egrep; do
2373    for ac_exec_ext in '' $ac_executable_extensions; do
2374      ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
2375      { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
2376# Check for GNU ac_path_EGREP and select it if it is found.
2377  # Check for GNU $ac_path_EGREP
2378case `"$ac_path_EGREP" --version 2>&1` in
2379*GNU*)
2380  ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
2381*)
2382  ac_count=0
2383  $as_echo_n 0123456789 >"conftest.in"
2384  while :
2385  do
2386    cat "conftest.in" "conftest.in" >"conftest.tmp"
2387    mv "conftest.tmp" "conftest.in"
2388    cp "conftest.in" "conftest.nl"
2389    $as_echo 'EGREP' >> "conftest.nl"
2390    "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
2391    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2392    as_fn_arith $ac_count + 1 && ac_count=$as_val
2393    if test $ac_count -gt ${ac_path_EGREP_max-0}; then
2394      # Best one so far, save it but keep looking for a better one
2395      ac_cv_path_EGREP="$ac_path_EGREP"
2396      ac_path_EGREP_max=$ac_count
2397    fi
2398    # 10*(2^10) chars as input seems more than enough
2399    test $ac_count -gt 10 && break
2400  done
2401  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2402esac
2403
2404      $ac_path_EGREP_found && break 3
2405    done
2406  done
2407  done
2408IFS=$as_save_IFS
2409  if test -z "$ac_cv_path_EGREP"; then
2410    as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
2411  fi
2412else
2413  ac_cv_path_EGREP=$EGREP
2414fi
2415
2416   fi
2417fi
2418{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
2419$as_echo "$ac_cv_path_EGREP" >&6; }
2420 EGREP="$ac_cv_path_EGREP"
2421
2422
2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
2424$as_echo_n "checking for a sed that does not truncate output... " >&6; }
2425if test "${ac_cv_path_SED+set}" = set; then :
2426  $as_echo_n "(cached) " >&6
2427else
2428            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
2429     for ac_i in 1 2 3 4 5 6 7; do
2430       ac_script="$ac_script$as_nl$ac_script"
2431     done
2432     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
2433     { ac_script=; unset ac_script;}
2434     if test -z "$SED"; then
2435  ac_path_SED_found=false
2436  # Loop through the user's path and test for each of PROGNAME-LIST
2437  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2438for as_dir in $PATH
2439do
2440  IFS=$as_save_IFS
2441  test -z "$as_dir" && as_dir=.
2442    for ac_prog in sed gsed; do
2443    for ac_exec_ext in '' $ac_executable_extensions; do
2444      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
2445      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
2446# Check for GNU ac_path_SED and select it if it is found.
2447  # Check for GNU $ac_path_SED
2448case `"$ac_path_SED" --version 2>&1` in
2449*GNU*)
2450  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
2451*)
2452  ac_count=0
2453  $as_echo_n 0123456789 >"conftest.in"
2454  while :
2455  do
2456    cat "conftest.in" "conftest.in" >"conftest.tmp"
2457    mv "conftest.tmp" "conftest.in"
2458    cp "conftest.in" "conftest.nl"
2459    $as_echo '' >> "conftest.nl"
2460    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
2461    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
2462    as_fn_arith $ac_count + 1 && ac_count=$as_val
2463    if test $ac_count -gt ${ac_path_SED_max-0}; then
2464      # Best one so far, save it but keep looking for a better one
2465      ac_cv_path_SED="$ac_path_SED"
2466      ac_path_SED_max=$ac_count
2467    fi
2468    # 10*(2^10) chars as input seems more than enough
2469    test $ac_count -gt 10 && break
2470  done
2471  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
2472esac
2473
2474      $ac_path_SED_found && break 3
2475    done
2476  done
2477  done
2478IFS=$as_save_IFS
2479  if test -z "$ac_cv_path_SED"; then
2480    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
2481  fi
2482else
2483  ac_cv_path_SED=$SED
2484fi
2485
2486fi
2487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
2488$as_echo "$ac_cv_path_SED" >&6; }
2489 SED="$ac_cv_path_SED"
2490  rm -f conftest.sed
2491
2492
2493
2494
2495
2496
2497  PHP_VAR_SUBST="$PHP_VAR_SUBST EGREP"
2498
2499
2500
2501
2502
2503  PHP_VAR_SUBST="$PHP_VAR_SUBST SED"
2504
2505
2506
2507  test -f config.nice && mv config.nice config.nice.old
2508  rm -f config.nice.old
2509  cat >config.nice<<EOF
2510#! /bin/sh
2511#
2512# Created by configure
2513
2514EOF
2515
2516  for var in CFLAGS CXXFLAGS CPPFLAGS LDFLAGS EXTRA_LDFLAGS_PROGRAM LIBS CC CXX; do
2517    eval val=\$$var
2518    if test -n "$val"; then
2519      echo "$var='$val' \\" >> config.nice
2520    fi
2521  done
2522
2523  echo "'$0' \\" >> config.nice
2524  if test `expr -- $0 : "'.*"` = 0; then
2525    CONFIGURE_COMMAND="$CONFIGURE_COMMAND '$0'"
2526  else
2527    CONFIGURE_COMMAND="$CONFIGURE_COMMAND $0"
2528  fi
2529  for arg in $ac_configure_args; do
2530     if test `expr -- $arg : "'.*"` = 0; then
2531        if test `expr -- $arg : "--.*"` = 0; then
2532          break;
2533        fi
2534        echo "'$arg' \\" >> config.nice
2535        CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS '$arg'"
2536     else
2537        if test `expr -- $arg : "'--.*"` = 0; then
2538          break;
2539        fi
2540        echo "$arg \\" >> config.nice
2541        CONFIGURE_OPTIONS="$CONFIGURE_OPTIONS $arg"
2542     fi
2543  done
2544  echo '"$@"' >> config.nice
2545  chmod +x config.nice
2546  CONFIGURE_COMMAND="$CONFIGURE_COMMAND $CONFIGURE_OPTIONS"
2547
2548
2549  PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_COMMAND"
2550
2551
2552
2553
2554
2555  PHP_VAR_SUBST="$PHP_VAR_SUBST CONFIGURE_OPTIONS"
2556
2557
2558
2559
2560
2561
2562test -z "$CFLAGS" && auto_cflags=1
2563
2564abs_srcdir=`(cd $srcdir && pwd)`
2565abs_builddir=`pwd`
2566
2567ac_ext=c
2568ac_cpp='$CPP $CPPFLAGS'
2569ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2570ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2571ac_compiler_gnu=$ac_cv_c_compiler_gnu
2572if test -n "$ac_tool_prefix"; then
2573  for ac_prog in cc gcc
2574  do
2575    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2576set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2577{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2578$as_echo_n "checking for $ac_word... " >&6; }
2579if test "${ac_cv_prog_CC+set}" = set; then :
2580  $as_echo_n "(cached) " >&6
2581else
2582  if test -n "$CC"; then
2583  ac_cv_prog_CC="$CC" # Let the user override the test.
2584else
2585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2586for as_dir in $PATH
2587do
2588  IFS=$as_save_IFS
2589  test -z "$as_dir" && as_dir=.
2590    for ac_exec_ext in '' $ac_executable_extensions; do
2591  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2592    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2593    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2594    break 2
2595  fi
2596done
2597  done
2598IFS=$as_save_IFS
2599
2600fi
2601fi
2602CC=$ac_cv_prog_CC
2603if test -n "$CC"; then
2604  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2605$as_echo "$CC" >&6; }
2606else
2607  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2608$as_echo "no" >&6; }
2609fi
2610
2611
2612    test -n "$CC" && break
2613  done
2614fi
2615if test -z "$CC"; then
2616  ac_ct_CC=$CC
2617  for ac_prog in cc gcc
2618do
2619  # Extract the first word of "$ac_prog", so it can be a program name with args.
2620set dummy $ac_prog; ac_word=$2
2621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2622$as_echo_n "checking for $ac_word... " >&6; }
2623if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
2624  $as_echo_n "(cached) " >&6
2625else
2626  if test -n "$ac_ct_CC"; then
2627  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2628else
2629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2630for as_dir in $PATH
2631do
2632  IFS=$as_save_IFS
2633  test -z "$as_dir" && as_dir=.
2634    for ac_exec_ext in '' $ac_executable_extensions; do
2635  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2636    ac_cv_prog_ac_ct_CC="$ac_prog"
2637    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2638    break 2
2639  fi
2640done
2641  done
2642IFS=$as_save_IFS
2643
2644fi
2645fi
2646ac_ct_CC=$ac_cv_prog_ac_ct_CC
2647if test -n "$ac_ct_CC"; then
2648  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2649$as_echo "$ac_ct_CC" >&6; }
2650else
2651  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2652$as_echo "no" >&6; }
2653fi
2654
2655
2656  test -n "$ac_ct_CC" && break
2657done
2658
2659  if test "x$ac_ct_CC" = x; then
2660    CC=""
2661  else
2662    case $cross_compiling:$ac_tool_warned in
2663yes:)
2664{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2665$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2666ac_tool_warned=yes ;;
2667esac
2668    CC=$ac_ct_CC
2669  fi
2670fi
2671
2672
2673test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2674$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2675as_fn_error $? "no acceptable C compiler found in \$PATH
2676See \`config.log' for more details" "$LINENO" 5; }
2677
2678# Provide some information about the compiler.
2679$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2680set X $ac_compile
2681ac_compiler=$2
2682for ac_option in --version -v -V -qversion; do
2683  { { ac_try="$ac_compiler $ac_option >&5"
2684case "(($ac_try" in
2685  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2686  *) ac_try_echo=$ac_try;;
2687esac
2688eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2689$as_echo "$ac_try_echo"; } >&5
2690  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2691  ac_status=$?
2692  if test -s conftest.err; then
2693    sed '10a\
2694... rest of stderr output deleted ...
2695         10q' conftest.err >conftest.er1
2696    cat conftest.er1 >&5
2697  fi
2698  rm -f conftest.er1 conftest.err
2699  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2700  test $ac_status = 0; }
2701done
2702
2703cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2704/* end confdefs.h.  */
2705
2706int
2707main ()
2708{
2709
2710  ;
2711  return 0;
2712}
2713_ACEOF
2714ac_clean_files_save=$ac_clean_files
2715ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2716# Try to create an executable without -o first, disregard a.out.
2717# It will help us diagnose broken compilers, and finding out an intuition
2718# of exeext.
2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2720$as_echo_n "checking whether the C compiler works... " >&6; }
2721ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2722
2723# The possible output files:
2724ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2725
2726ac_rmfiles=
2727for ac_file in $ac_files
2728do
2729  case $ac_file in
2730    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2731    * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2732  esac
2733done
2734rm -f $ac_rmfiles
2735
2736if { { ac_try="$ac_link_default"
2737case "(($ac_try" in
2738  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2739  *) ac_try_echo=$ac_try;;
2740esac
2741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2742$as_echo "$ac_try_echo"; } >&5
2743  (eval "$ac_link_default") 2>&5
2744  ac_status=$?
2745  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2746  test $ac_status = 0; }; then :
2747  # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2748# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2749# in a Makefile.  We should not override ac_cv_exeext if it was cached,
2750# so that the user can short-circuit this test for compilers unknown to
2751# Autoconf.
2752for ac_file in $ac_files ''
2753do
2754  test -f "$ac_file" || continue
2755  case $ac_file in
2756    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2757	;;
2758    [ab].out )
2759	# We found the default executable, but exeext='' is most
2760	# certainly right.
2761	break;;
2762    *.* )
2763	if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2764	then :; else
2765	   ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2766	fi
2767	# We set ac_cv_exeext here because the later test for it is not
2768	# safe: cross compilers may not add the suffix if given an `-o'
2769	# argument, so we may need to know it at that point already.
2770	# Even if this section looks crufty: it has the advantage of
2771	# actually working.
2772	break;;
2773    * )
2774	break;;
2775  esac
2776done
2777test "$ac_cv_exeext" = no && ac_cv_exeext=
2778
2779else
2780  ac_file=''
2781fi
2782if test -z "$ac_file"; then :
2783  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2784$as_echo "no" >&6; }
2785$as_echo "$as_me: failed program was:" >&5
2786sed 's/^/| /' conftest.$ac_ext >&5
2787
2788{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2789$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2790as_fn_error 77 "C compiler cannot create executables
2791See \`config.log' for more details" "$LINENO" 5; }
2792else
2793  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2794$as_echo "yes" >&6; }
2795fi
2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2797$as_echo_n "checking for C compiler default output file name... " >&6; }
2798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2799$as_echo "$ac_file" >&6; }
2800ac_exeext=$ac_cv_exeext
2801
2802rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2803ac_clean_files=$ac_clean_files_save
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2805$as_echo_n "checking for suffix of executables... " >&6; }
2806if { { ac_try="$ac_link"
2807case "(($ac_try" in
2808  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2809  *) ac_try_echo=$ac_try;;
2810esac
2811eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2812$as_echo "$ac_try_echo"; } >&5
2813  (eval "$ac_link") 2>&5
2814  ac_status=$?
2815  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2816  test $ac_status = 0; }; then :
2817  # If both `conftest.exe' and `conftest' are `present' (well, observable)
2818# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2819# work properly (i.e., refer to `conftest.exe'), while it won't with
2820# `rm'.
2821for ac_file in conftest.exe conftest conftest.*; do
2822  test -f "$ac_file" || continue
2823  case $ac_file in
2824    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2825    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2826	  break;;
2827    * ) break;;
2828  esac
2829done
2830else
2831  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2832$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2833as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2834See \`config.log' for more details" "$LINENO" 5; }
2835fi
2836rm -f conftest conftest$ac_cv_exeext
2837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2838$as_echo "$ac_cv_exeext" >&6; }
2839
2840rm -f conftest.$ac_ext
2841EXEEXT=$ac_cv_exeext
2842ac_exeext=$EXEEXT
2843cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2844/* end confdefs.h.  */
2845#include <stdio.h>
2846int
2847main ()
2848{
2849FILE *f = fopen ("conftest.out", "w");
2850 return ferror (f) || fclose (f) != 0;
2851
2852  ;
2853  return 0;
2854}
2855_ACEOF
2856ac_clean_files="$ac_clean_files conftest.out"
2857# Check that the compiler produces executables we can run.  If not, either
2858# the compiler is broken, or we cross compile.
2859{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2860$as_echo_n "checking whether we are cross compiling... " >&6; }
2861if test "$cross_compiling" != yes; then
2862  { { ac_try="$ac_link"
2863case "(($ac_try" in
2864  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2865  *) ac_try_echo=$ac_try;;
2866esac
2867eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2868$as_echo "$ac_try_echo"; } >&5
2869  (eval "$ac_link") 2>&5
2870  ac_status=$?
2871  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2872  test $ac_status = 0; }
2873  if { ac_try='./conftest$ac_cv_exeext'
2874  { { case "(($ac_try" in
2875  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2876  *) ac_try_echo=$ac_try;;
2877esac
2878eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2879$as_echo "$ac_try_echo"; } >&5
2880  (eval "$ac_try") 2>&5
2881  ac_status=$?
2882  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2883  test $ac_status = 0; }; }; then
2884    cross_compiling=no
2885  else
2886    if test "$cross_compiling" = maybe; then
2887	cross_compiling=yes
2888    else
2889	{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2890$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2891as_fn_error $? "cannot run C compiled programs.
2892If you meant to cross compile, use \`--host'.
2893See \`config.log' for more details" "$LINENO" 5; }
2894    fi
2895  fi
2896fi
2897{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2898$as_echo "$cross_compiling" >&6; }
2899
2900rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2901ac_clean_files=$ac_clean_files_save
2902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2903$as_echo_n "checking for suffix of object files... " >&6; }
2904if test "${ac_cv_objext+set}" = set; then :
2905  $as_echo_n "(cached) " >&6
2906else
2907  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2908/* end confdefs.h.  */
2909
2910int
2911main ()
2912{
2913
2914  ;
2915  return 0;
2916}
2917_ACEOF
2918rm -f conftest.o conftest.obj
2919if { { ac_try="$ac_compile"
2920case "(($ac_try" in
2921  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2922  *) ac_try_echo=$ac_try;;
2923esac
2924eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2925$as_echo "$ac_try_echo"; } >&5
2926  (eval "$ac_compile") 2>&5
2927  ac_status=$?
2928  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2929  test $ac_status = 0; }; then :
2930  for ac_file in conftest.o conftest.obj conftest.*; do
2931  test -f "$ac_file" || continue;
2932  case $ac_file in
2933    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2934    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2935       break;;
2936  esac
2937done
2938else
2939  $as_echo "$as_me: failed program was:" >&5
2940sed 's/^/| /' conftest.$ac_ext >&5
2941
2942{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2943$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2944as_fn_error $? "cannot compute suffix of object files: cannot compile
2945See \`config.log' for more details" "$LINENO" 5; }
2946fi
2947rm -f conftest.$ac_cv_objext conftest.$ac_ext
2948fi
2949{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2950$as_echo "$ac_cv_objext" >&6; }
2951OBJEXT=$ac_cv_objext
2952ac_objext=$OBJEXT
2953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2954$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2955if test "${ac_cv_c_compiler_gnu+set}" = set; then :
2956  $as_echo_n "(cached) " >&6
2957else
2958  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2959/* end confdefs.h.  */
2960
2961int
2962main ()
2963{
2964#ifndef __GNUC__
2965       choke me
2966#endif
2967
2968  ;
2969  return 0;
2970}
2971_ACEOF
2972if ac_fn_c_try_compile "$LINENO"; then :
2973  ac_compiler_gnu=yes
2974else
2975  ac_compiler_gnu=no
2976fi
2977rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2978ac_cv_c_compiler_gnu=$ac_compiler_gnu
2979
2980fi
2981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2982$as_echo "$ac_cv_c_compiler_gnu" >&6; }
2983if test $ac_compiler_gnu = yes; then
2984  GCC=yes
2985else
2986  GCC=
2987fi
2988ac_test_CFLAGS=${CFLAGS+set}
2989ac_save_CFLAGS=$CFLAGS
2990{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2991$as_echo_n "checking whether $CC accepts -g... " >&6; }
2992if test "${ac_cv_prog_cc_g+set}" = set; then :
2993  $as_echo_n "(cached) " >&6
2994else
2995  ac_save_c_werror_flag=$ac_c_werror_flag
2996   ac_c_werror_flag=yes
2997   ac_cv_prog_cc_g=no
2998   CFLAGS="-g"
2999   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3000/* end confdefs.h.  */
3001
3002int
3003main ()
3004{
3005
3006  ;
3007  return 0;
3008}
3009_ACEOF
3010if ac_fn_c_try_compile "$LINENO"; then :
3011  ac_cv_prog_cc_g=yes
3012else
3013  CFLAGS=""
3014      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3015/* end confdefs.h.  */
3016
3017int
3018main ()
3019{
3020
3021  ;
3022  return 0;
3023}
3024_ACEOF
3025if ac_fn_c_try_compile "$LINENO"; then :
3026
3027else
3028  ac_c_werror_flag=$ac_save_c_werror_flag
3029	 CFLAGS="-g"
3030	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3031/* end confdefs.h.  */
3032
3033int
3034main ()
3035{
3036
3037  ;
3038  return 0;
3039}
3040_ACEOF
3041if ac_fn_c_try_compile "$LINENO"; then :
3042  ac_cv_prog_cc_g=yes
3043fi
3044rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3045fi
3046rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3047fi
3048rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3049   ac_c_werror_flag=$ac_save_c_werror_flag
3050fi
3051{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3052$as_echo "$ac_cv_prog_cc_g" >&6; }
3053if test "$ac_test_CFLAGS" = set; then
3054  CFLAGS=$ac_save_CFLAGS
3055elif test $ac_cv_prog_cc_g = yes; then
3056  if test "$GCC" = yes; then
3057    CFLAGS="-g -O2"
3058  else
3059    CFLAGS="-g"
3060  fi
3061else
3062  if test "$GCC" = yes; then
3063    CFLAGS="-O2"
3064  else
3065    CFLAGS=
3066  fi
3067fi
3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3069$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3070if test "${ac_cv_prog_cc_c89+set}" = set; then :
3071  $as_echo_n "(cached) " >&6
3072else
3073  ac_cv_prog_cc_c89=no
3074ac_save_CC=$CC
3075cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3076/* end confdefs.h.  */
3077#include <stdarg.h>
3078#include <stdio.h>
3079#include <sys/types.h>
3080#include <sys/stat.h>
3081/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3082struct buf { int x; };
3083FILE * (*rcsopen) (struct buf *, struct stat *, int);
3084static char *e (p, i)
3085     char **p;
3086     int i;
3087{
3088  return p[i];
3089}
3090static char *f (char * (*g) (char **, int), char **p, ...)
3091{
3092  char *s;
3093  va_list v;
3094  va_start (v,p);
3095  s = g (p, va_arg (v,int));
3096  va_end (v);
3097  return s;
3098}
3099
3100/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3101   function prototypes and stuff, but not '\xHH' hex character constants.
3102   These don't provoke an error unfortunately, instead are silently treated
3103   as 'x'.  The following induces an error, until -std is added to get
3104   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3105   array size at least.  It's necessary to write '\x00'==0 to get something
3106   that's true only with -std.  */
3107int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3108
3109/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3110   inside strings and character constants.  */
3111#define FOO(x) 'x'
3112int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3113
3114int test (int i, double x);
3115struct s1 {int (*f) (int a);};
3116struct s2 {int (*f) (double a);};
3117int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3118int argc;
3119char **argv;
3120int
3121main ()
3122{
3123return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3124  ;
3125  return 0;
3126}
3127_ACEOF
3128for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3129	-Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3130do
3131  CC="$ac_save_CC $ac_arg"
3132  if ac_fn_c_try_compile "$LINENO"; then :
3133  ac_cv_prog_cc_c89=$ac_arg
3134fi
3135rm -f core conftest.err conftest.$ac_objext
3136  test "x$ac_cv_prog_cc_c89" != "xno" && break
3137done
3138rm -f conftest.$ac_ext
3139CC=$ac_save_CC
3140
3141fi
3142# AC_CACHE_VAL
3143case "x$ac_cv_prog_cc_c89" in
3144  x)
3145    { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3146$as_echo "none needed" >&6; } ;;
3147  xno)
3148    { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3149$as_echo "unsupported" >&6; } ;;
3150  *)
3151    CC="$CC $ac_cv_prog_cc_c89"
3152    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3153$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3154esac
3155if test "x$ac_cv_prog_cc_c89" != xno; then :
3156
3157fi
3158
3159ac_ext=c
3160ac_cpp='$CPP $CPPFLAGS'
3161ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3162ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3163ac_compiler_gnu=$ac_cv_c_compiler_gnu
3164
3165
3166ac_ext=c
3167ac_cpp='$CPP $CPPFLAGS'
3168ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3169ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3170ac_compiler_gnu=$ac_cv_c_compiler_gnu
3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3172$as_echo_n "checking how to run the C preprocessor... " >&6; }
3173# On Suns, sometimes $CPP names a directory.
3174if test -n "$CPP" && test -d "$CPP"; then
3175  CPP=
3176fi
3177if test -z "$CPP"; then
3178  if test "${ac_cv_prog_CPP+set}" = set; then :
3179  $as_echo_n "(cached) " >&6
3180else
3181      # Double quotes because CPP needs to be expanded
3182    for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3183    do
3184      ac_preproc_ok=false
3185for ac_c_preproc_warn_flag in '' yes
3186do
3187  # Use a header file that comes with gcc, so configuring glibc
3188  # with a fresh cross-compiler works.
3189  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3190  # <limits.h> exists even on freestanding compilers.
3191  # On the NeXT, cc -E runs the code through the compiler's parser,
3192  # not just through cpp. "Syntax error" is here to catch this case.
3193  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3194/* end confdefs.h.  */
3195#ifdef __STDC__
3196# include <limits.h>
3197#else
3198# include <assert.h>
3199#endif
3200		     Syntax error
3201_ACEOF
3202if ac_fn_c_try_cpp "$LINENO"; then :
3203
3204else
3205  # Broken: fails on valid input.
3206continue
3207fi
3208rm -f conftest.err conftest.$ac_ext
3209
3210  # OK, works on sane cases.  Now check whether nonexistent headers
3211  # can be detected and how.
3212  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3213/* end confdefs.h.  */
3214#include <ac_nonexistent.h>
3215_ACEOF
3216if ac_fn_c_try_cpp "$LINENO"; then :
3217  # Broken: success on invalid input.
3218continue
3219else
3220  # Passes both tests.
3221ac_preproc_ok=:
3222break
3223fi
3224rm -f conftest.err conftest.$ac_ext
3225
3226done
3227# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3228rm -f conftest.err conftest.$ac_ext
3229if $ac_preproc_ok; then :
3230  break
3231fi
3232
3233    done
3234    ac_cv_prog_CPP=$CPP
3235
3236fi
3237  CPP=$ac_cv_prog_CPP
3238else
3239  ac_cv_prog_CPP=$CPP
3240fi
3241{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3242$as_echo "$CPP" >&6; }
3243ac_preproc_ok=false
3244for ac_c_preproc_warn_flag in '' yes
3245do
3246  # Use a header file that comes with gcc, so configuring glibc
3247  # with a fresh cross-compiler works.
3248  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3249  # <limits.h> exists even on freestanding compilers.
3250  # On the NeXT, cc -E runs the code through the compiler's parser,
3251  # not just through cpp. "Syntax error" is here to catch this case.
3252  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3253/* end confdefs.h.  */
3254#ifdef __STDC__
3255# include <limits.h>
3256#else
3257# include <assert.h>
3258#endif
3259		     Syntax error
3260_ACEOF
3261if ac_fn_c_try_cpp "$LINENO"; then :
3262
3263else
3264  # Broken: fails on valid input.
3265continue
3266fi
3267rm -f conftest.err conftest.$ac_ext
3268
3269  # OK, works on sane cases.  Now check whether nonexistent headers
3270  # can be detected and how.
3271  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3272/* end confdefs.h.  */
3273#include <ac_nonexistent.h>
3274_ACEOF
3275if ac_fn_c_try_cpp "$LINENO"; then :
3276  # Broken: success on invalid input.
3277continue
3278else
3279  # Passes both tests.
3280ac_preproc_ok=:
3281break
3282fi
3283rm -f conftest.err conftest.$ac_ext
3284
3285done
3286# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3287rm -f conftest.err conftest.$ac_ext
3288if $ac_preproc_ok; then :
3289
3290else
3291  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3292$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3293as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3294See \`config.log' for more details" "$LINENO" 5; }
3295fi
3296
3297ac_ext=c
3298ac_cpp='$CPP $CPPFLAGS'
3299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3301ac_compiler_gnu=$ac_cv_c_compiler_gnu
3302
3303
3304
3305  ICC="no"
3306  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for icc" >&5
3307$as_echo_n "checking for icc... " >&6; }
3308  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3309/* end confdefs.h.  */
3310__INTEL_COMPILER
3311_ACEOF
3312if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3313  $EGREP "^__INTEL_COMPILER" >/dev/null 2>&1; then :
3314  ICC="no"
3315    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3316$as_echo "no" >&6; }
3317else
3318  ICC="yes"
3319    GCC="no"
3320    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3321$as_echo "yes" >&6; }
3322
3323fi
3324rm -f conftest*
3325
3326
3327
3328  SUNCC="no"
3329  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suncc" >&5
3330$as_echo_n "checking for suncc... " >&6; }
3331  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3332/* end confdefs.h.  */
3333__SUNPRO_C
3334_ACEOF
3335if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3336  $EGREP "^__SUNPRO_C" >/dev/null 2>&1; then :
3337  SUNCC="no"
3338    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3339$as_echo "no" >&6; }
3340else
3341  SUNCC="yes"
3342    GCC="no"
3343    test -n "$auto_cflags" && CFLAGS="-O -xs -xstrconst -zlazyload"
3344    GCC=""
3345    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3346$as_echo "yes" >&6; }
3347
3348fi
3349rm -f conftest*
3350
3351
3352if test "x$CC" != xcc; then
3353  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
3354$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
3355else
3356  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
3357$as_echo_n "checking whether cc understands -c and -o together... " >&6; }
3358fi
3359set dummy $CC; ac_cc=`$as_echo "$2" |
3360		      sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
3361if eval "test \"\${ac_cv_prog_cc_${ac_cc}_c_o+set}\"" = set; then :
3362  $as_echo_n "(cached) " >&6
3363else
3364  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3365/* end confdefs.h.  */
3366
3367int
3368main ()
3369{
3370
3371  ;
3372  return 0;
3373}
3374_ACEOF
3375# Make sure it works both with $CC and with simple cc.
3376# We do the test twice because some compilers refuse to overwrite an
3377# existing .o file with -o, though they will create one.
3378ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3379rm -f conftest2.*
3380if { { case "(($ac_try" in
3381  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3382  *) ac_try_echo=$ac_try;;
3383esac
3384eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3385$as_echo "$ac_try_echo"; } >&5
3386  (eval "$ac_try") 2>&5
3387  ac_status=$?
3388  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3389  test $ac_status = 0; } &&
3390   test -f conftest2.$ac_objext && { { case "(($ac_try" in
3391  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392  *) ac_try_echo=$ac_try;;
3393esac
3394eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395$as_echo "$ac_try_echo"; } >&5
3396  (eval "$ac_try") 2>&5
3397  ac_status=$?
3398  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3399  test $ac_status = 0; };
3400then
3401  eval ac_cv_prog_cc_${ac_cc}_c_o=yes
3402  if test "x$CC" != xcc; then
3403    # Test first that cc exists at all.
3404    if { ac_try='cc -c conftest.$ac_ext >&5'
3405  { { case "(($ac_try" in
3406  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3407  *) ac_try_echo=$ac_try;;
3408esac
3409eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3410$as_echo "$ac_try_echo"; } >&5
3411  (eval "$ac_try") 2>&5
3412  ac_status=$?
3413  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3414  test $ac_status = 0; }; }; then
3415      ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
3416      rm -f conftest2.*
3417      if { { case "(($ac_try" in
3418  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3419  *) ac_try_echo=$ac_try;;
3420esac
3421eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3422$as_echo "$ac_try_echo"; } >&5
3423  (eval "$ac_try") 2>&5
3424  ac_status=$?
3425  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3426  test $ac_status = 0; } &&
3427	 test -f conftest2.$ac_objext && { { case "(($ac_try" in
3428  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3429  *) ac_try_echo=$ac_try;;
3430esac
3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3432$as_echo "$ac_try_echo"; } >&5
3433  (eval "$ac_try") 2>&5
3434  ac_status=$?
3435  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3436  test $ac_status = 0; };
3437      then
3438	# cc works too.
3439	:
3440      else
3441	# cc exists but doesn't like -o.
3442	eval ac_cv_prog_cc_${ac_cc}_c_o=no
3443      fi
3444    fi
3445  fi
3446else
3447  eval ac_cv_prog_cc_${ac_cc}_c_o=no
3448fi
3449rm -f core conftest*
3450
3451fi
3452if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
3453  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3454$as_echo "yes" >&6; }
3455else
3456  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3457$as_echo "no" >&6; }
3458
3459$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
3460
3461fi
3462
3463
3464
3465php_with_libdir=lib
3466
3467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for system library directory" >&5
3468$as_echo_n "checking for system library directory... " >&6; }
3469
3470# Check whether --with-libdir was given.
3471if test "${with_libdir+set}" = set; then :
3472  withval=$with_libdir; PHP_LIBDIR=$withval
3473else
3474
3475  PHP_LIBDIR=lib
3476
3477
3478fi
3479
3480
3481ext_output=$PHP_LIBDIR
3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
3483$as_echo "$ext_output" >&6; }
3484
3485
3486
3487
3488
3489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -R" >&5
3490$as_echo_n "checking if compiler supports -R... " >&6; }
3491if test "${php_cv_cc_dashr+set}" = set; then :
3492  $as_echo_n "(cached) " >&6
3493else
3494
3495  SAVE_LIBS=$LIBS
3496  LIBS="-R /usr/$PHP_LIBDIR $LIBS"
3497  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3498/* end confdefs.h.  */
3499
3500int
3501main ()
3502{
3503
3504  ;
3505  return 0;
3506}
3507_ACEOF
3508if ac_fn_c_try_link "$LINENO"; then :
3509  php_cv_cc_dashr=yes
3510else
3511  php_cv_cc_dashr=no
3512fi
3513rm -f core conftest.err conftest.$ac_objext \
3514    conftest$ac_exeext conftest.$ac_ext
3515  LIBS=$SAVE_LIBS
3516fi
3517
3518{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_dashr" >&5
3519$as_echo "$php_cv_cc_dashr" >&6; }
3520if test $php_cv_cc_dashr = "yes"; then
3521  ld_runpath_switch=-R
3522else
3523  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports -Wl,-rpath," >&5
3524$as_echo_n "checking if compiler supports -Wl,-rpath,... " >&6; }
3525  if test "${php_cv_cc_rpath+set}" = set; then :
3526  $as_echo_n "(cached) " >&6
3527else
3528
3529    SAVE_LIBS=$LIBS
3530    LIBS="-Wl,-rpath,/usr/$PHP_LIBDIR $LIBS"
3531    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3532/* end confdefs.h.  */
3533
3534int
3535main ()
3536{
3537
3538  ;
3539  return 0;
3540}
3541_ACEOF
3542if ac_fn_c_try_link "$LINENO"; then :
3543  php_cv_cc_rpath=yes
3544else
3545  php_cv_cc_rpath=no
3546fi
3547rm -f core conftest.err conftest.$ac_objext \
3548    conftest$ac_exeext conftest.$ac_ext
3549    LIBS=$SAVE_LIBS
3550fi
3551
3552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_cc_rpath" >&5
3553$as_echo "$php_cv_cc_rpath" >&6; }
3554  if test $php_cv_cc_rpath = "yes"; then
3555    ld_runpath_switch=-Wl,-rpath,
3556  else
3557        ld_runpath_switch=-L
3558  fi
3559fi
3560if test "$PHP_RPATH" = "no"; then
3561  ld_runpath_switch=
3562fi
3563
3564ac_aux_dir=
3565for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3566  if test -f "$ac_dir/install-sh"; then
3567    ac_aux_dir=$ac_dir
3568    ac_install_sh="$ac_aux_dir/install-sh -c"
3569    break
3570  elif test -f "$ac_dir/install.sh"; then
3571    ac_aux_dir=$ac_dir
3572    ac_install_sh="$ac_aux_dir/install.sh -c"
3573    break
3574  elif test -f "$ac_dir/shtool"; then
3575    ac_aux_dir=$ac_dir
3576    ac_install_sh="$ac_aux_dir/shtool install -c"
3577    break
3578  fi
3579done
3580if test -z "$ac_aux_dir"; then
3581  as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3582fi
3583
3584# These three variables are undocumented and unsupported,
3585# and are intended to be withdrawn in a future Autoconf release.
3586# They can cause serious problems if a builder's source tree is in a directory
3587# whose full name contains unusual characters.
3588ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
3589ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
3590ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
3591
3592
3593# Make sure we can run config.sub.
3594$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3595  as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3596
3597{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3598$as_echo_n "checking build system type... " >&6; }
3599if test "${ac_cv_build+set}" = set; then :
3600  $as_echo_n "(cached) " >&6
3601else
3602  ac_build_alias=$build_alias
3603test "x$ac_build_alias" = x &&
3604  ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3605test "x$ac_build_alias" = x &&
3606  as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3607ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3608  as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3609
3610fi
3611{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3612$as_echo "$ac_cv_build" >&6; }
3613case $ac_cv_build in
3614*-*-*) ;;
3615*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3616esac
3617build=$ac_cv_build
3618ac_save_IFS=$IFS; IFS='-'
3619set x $ac_cv_build
3620shift
3621build_cpu=$1
3622build_vendor=$2
3623shift; shift
3624# Remember, the first character of IFS is used to create $*,
3625# except with old shells:
3626build_os=$*
3627IFS=$ac_save_IFS
3628case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3629
3630
3631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3632$as_echo_n "checking host system type... " >&6; }
3633if test "${ac_cv_host+set}" = set; then :
3634  $as_echo_n "(cached) " >&6
3635else
3636  if test "x$host_alias" = x; then
3637  ac_cv_host=$ac_cv_build
3638else
3639  ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3640    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3641fi
3642
3643fi
3644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3645$as_echo "$ac_cv_host" >&6; }
3646case $ac_cv_host in
3647*-*-*) ;;
3648*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3649esac
3650host=$ac_cv_host
3651ac_save_IFS=$IFS; IFS='-'
3652set x $ac_cv_host
3653shift
3654host_cpu=$1
3655host_vendor=$2
3656shift; shift
3657# Remember, the first character of IFS is used to create $*,
3658# except with old shells:
3659host_os=$*
3660IFS=$ac_save_IFS
3661case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3662
3663
3664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3665$as_echo_n "checking target system type... " >&6; }
3666if test "${ac_cv_target+set}" = set; then :
3667  $as_echo_n "(cached) " >&6
3668else
3669  if test "x$target_alias" = x; then
3670  ac_cv_target=$ac_cv_host
3671else
3672  ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3673    as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3674fi
3675
3676fi
3677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3678$as_echo "$ac_cv_target" >&6; }
3679case $ac_cv_target in
3680*-*-*) ;;
3681*) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3682esac
3683target=$ac_cv_target
3684ac_save_IFS=$IFS; IFS='-'
3685set x $ac_cv_target
3686shift
3687target_cpu=$1
3688target_vendor=$2
3689shift; shift
3690# Remember, the first character of IFS is used to create $*,
3691# except with old shells:
3692target_os=$*
3693IFS=$ac_save_IFS
3694case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3695
3696
3697# The aliases save the names the user supplied, while $host etc.
3698# will get canonicalized.
3699test -n "$target_alias" &&
3700  test "$program_prefix$program_suffix$program_transform_name" = \
3701    NONENONEs,x,x, &&
3702  program_prefix=${target_alias}-
3703
3704        if test -z "$host_alias" && test -n "$host"; then
3705    host_alias=$host
3706  fi
3707  if test -z "$host_alias"; then
3708    as_fn_error $? "host_alias is not set!" "$LINENO" 5
3709  fi
3710
3711
3712
3713
3714  PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_SUFFIX_NAME"
3715
3716
3717
3718
3719
3720  PHP_VAR_SUBST="$PHP_VAR_SUBST SHLIB_DL_SUFFIX_NAME"
3721
3722
3723
3724 SHLIB_SUFFIX_NAME=so
3725 SHLIB_DL_SUFFIX_NAME=$SHLIB_SUFFIX_NAME
3726 case $host_alias in
3727 *hpux*)
3728   SHLIB_SUFFIX_NAME=sl
3729   SHLIB_DL_SUFFIX_NAME=sl
3730   ;;
3731 *darwin*)
3732   SHLIB_SUFFIX_NAME=dylib
3733   SHLIB_DL_SUFFIX_NAME=so
3734   ;;
3735 esac
3736
3737
3738
3739php_with_php_config=php-config
3740
3741
3742
3743# Check whether --with-php-config was given.
3744if test "${with_php_config+set}" = set; then :
3745  withval=$with_php_config; PHP_PHP_CONFIG=$withval
3746else
3747
3748  PHP_PHP_CONFIG=php-config
3749
3750
3751fi
3752
3753
3754ext_output=$PHP_PHP_CONFIG
3755
3756
3757
3758
3759
3760PHP_CONFIG=$PHP_PHP_CONFIG
3761prefix=`$PHP_CONFIG --prefix 2>/dev/null`
3762phpincludedir=`$PHP_CONFIG --include-dir 2>/dev/null`
3763INCLUDES=`$PHP_CONFIG --includes 2>/dev/null`
3764EXTENSION_DIR=`$PHP_CONFIG --extension-dir 2>/dev/null`
3765PHP_EXECUTABLE=`$PHP_CONFIG --php-binary 2>/dev/null`
3766
3767if test -z "$prefix"; then
3768  as_fn_error $? "Cannot find php-config. Please use --with-php-config=PATH" "$LINENO" 5
3769fi
3770
3771php_shtool=$srcdir/build/shtool
3772
3773test -d include || $php_shtool mkdir include
3774> Makefile.objects
3775> Makefile.fragments
3776pattern=define
3777$EGREP $pattern'.*include/php' $srcdir/configure|$SED 's/.*>//'|xargs touch 2>/dev/null
3778
3779
3780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP prefix" >&5
3781$as_echo_n "checking for PHP prefix... " >&6; }
3782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $prefix" >&5
3783$as_echo "$prefix" >&6; }
3784{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP includes" >&5
3785$as_echo_n "checking for PHP includes... " >&6; }
3786{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INCLUDES" >&5
3787$as_echo "$INCLUDES" >&6; }
3788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP extension directory" >&5
3789$as_echo_n "checking for PHP extension directory... " >&6; }
3790{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $EXTENSION_DIR" >&5
3791$as_echo "$EXTENSION_DIR" >&6; }
3792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PHP installed headers prefix" >&5
3793$as_echo_n "checking for PHP installed headers prefix... " >&6; }
3794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $phpincludedir" >&5
3795$as_echo "$phpincludedir" >&6; }
3796
3797{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if debug is enabled" >&5
3798$as_echo_n "checking if debug is enabled... " >&6; }
3799old_CPPFLAGS=$CPPFLAGS
3800CPPFLAGS="-I$phpincludedir"
3801cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3802/* end confdefs.h.  */
3803
3804#include <main/php_config.h>
3805#if ZEND_DEBUG
3806php_debug_is_enabled
3807#endif
3808
3809_ACEOF
3810if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3811  $EGREP "php_debug_is_enabled" >/dev/null 2>&1; then :
3812
3813  PHP_DEBUG=yes
3814
3815else
3816
3817  PHP_DEBUG=no
3818
3819fi
3820rm -f conftest*
3821
3822CPPFLAGS=$old_CPPFLAGS
3823{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
3824$as_echo "$PHP_DEBUG" >&6; }
3825
3826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if zts is enabled" >&5
3827$as_echo_n "checking if zts is enabled... " >&6; }
3828old_CPPFLAGS=$CPPFLAGS
3829CPPFLAGS="-I$phpincludedir"
3830cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3831/* end confdefs.h.  */
3832
3833#include <main/php_config.h>
3834#if ZTS
3835php_zts_is_enabled
3836#endif
3837
3838_ACEOF
3839if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3840  $EGREP "php_zts_is_enabled" >/dev/null 2>&1; then :
3841
3842  PHP_THREAD_SAFETY=yes
3843
3844else
3845
3846  PHP_THREAD_SAFETY=no
3847
3848fi
3849rm -f conftest*
3850
3851CPPFLAGS=$old_CPPFLAGS
3852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $PHP_DEBUG" >&5
3853$as_echo "$PHP_DEBUG" >&6; }
3854
3855ZEND_EXT_TYPE="zend_extension"
3856
3857  PHP_VAR_SUBST="$PHP_VAR_SUBST ZEND_EXT_TYPE"
3858
3859
3860if test "$PHP_DEBUG" = "yes"; then
3861  PHP_DEBUG=1
3862  ZEND_DEBUG=yes
3863
3864  CFLAGS=`echo "$CFLAGS" | $SED -e 's/-O[0-9s]*//g'`
3865  CXXFLAGS=`echo "$CXXFLAGS" | $SED -e 's/-O[0-9s]*//g'`
3866
3867    if test "$GCC" = "yes" || test "$ICC" = "yes"; then
3868    CFLAGS="$CFLAGS -O0"
3869    CXXFLAGS="$CXXFLAGS -g -O0"
3870  fi
3871  if test "$SUNCC" = "yes"; then
3872    if test -n "$auto_cflags"; then
3873      CFLAGS="-g"
3874      CXXFLAGS="-g"
3875    else
3876      CFLAGS="$CFLAGS -g"
3877      CXXFLAGS="$CFLAGS -g"
3878    fi
3879  fi
3880else
3881  PHP_DEBUG=0
3882  ZEND_DEBUG=no
3883fi
3884
3885
3886
3887  OVERALL_TARGET=php
3888  php_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3889  php_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS)'
3890  php_c_post=
3891  php_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3892  php_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS)'
3893  php_cxx_post=
3894  php_lo=lo
3895
3896  case $with_pic in
3897    yes) pic_setting='-prefer-pic';;
3898    no)  pic_setting='-prefer-non-pic';;
3899  esac
3900
3901  shared_c_pre='$(LIBTOOL) --mode=compile $(CC)'
3902  shared_c_meta='$(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) '$pic_setting
3903  shared_c_post=
3904  shared_cxx_pre='$(LIBTOOL) --mode=compile $(CXX)'
3905  shared_cxx_meta='$(COMMON_FLAGS) $(CXXFLAGS_CLEAN) $(EXTRA_CXXFLAGS) '$pic_setting
3906  shared_cxx_post=
3907  shared_lo=lo
3908
3909  php_build_target=program
3910
3911  OVERALL_TARGET=libphp$PHP_MAJOR_VERSION.la
3912  php_build_target=shared
3913
3914  php_c_pre=$shared_c_pre
3915  php_c_meta=$shared_c_meta
3916  php_c_post=$shared_c_post
3917  php_cxx_pre=$shared_cxx_pre
3918  php_cxx_meta=$shared_cxx_meta
3919  php_cxx_post=$shared_cxx_post
3920  php_lo=$shared_lo
3921
3922
3923
3924  # Extract the first word of "re2c", so it can be a program name with args.
3925set dummy re2c; ac_word=$2
3926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927$as_echo_n "checking for $ac_word... " >&6; }
3928if test "${ac_cv_prog_RE2C+set}" = set; then :
3929  $as_echo_n "(cached) " >&6
3930else
3931  if test -n "$RE2C"; then
3932  ac_cv_prog_RE2C="$RE2C" # Let the user override the test.
3933else
3934as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3935for as_dir in $PATH
3936do
3937  IFS=$as_save_IFS
3938  test -z "$as_dir" && as_dir=.
3939    for ac_exec_ext in '' $ac_executable_extensions; do
3940  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3941    ac_cv_prog_RE2C="re2c"
3942    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3943    break 2
3944  fi
3945done
3946  done
3947IFS=$as_save_IFS
3948
3949fi
3950fi
3951RE2C=$ac_cv_prog_RE2C
3952if test -n "$RE2C"; then
3953  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RE2C" >&5
3954$as_echo "$RE2C" >&6; }
3955else
3956  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3957$as_echo "no" >&6; }
3958fi
3959
3960
3961  if test -n "$RE2C"; then
3962    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for re2c version" >&5
3963$as_echo_n "checking for re2c version... " >&6; }
3964if test "${php_cv_re2c_version+set}" = set; then :
3965  $as_echo_n "(cached) " >&6
3966else
3967
3968      re2c_vernum=`$RE2C --vernum 2>/dev/null`
3969      if test -z "$re2c_vernum" || test "$re2c_vernum" -lt "1304"; then
3970        php_cv_re2c_version=invalid
3971      else
3972        php_cv_re2c_version="`$RE2C --version | cut -d ' ' -f 2  2>/dev/null` (ok)"
3973      fi
3974
3975fi
3976{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $php_cv_re2c_version" >&5
3977$as_echo "$php_cv_re2c_version" >&6; }
3978  fi
3979  case $php_cv_re2c_version in
3980    ""|invalid)
3981      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&5
3982$as_echo "$as_me: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers." >&2;}
3983      RE2C="exit 0;"
3984      ;;
3985  esac
3986
3987  PHP_VAR_SUBST="$PHP_VAR_SUBST RE2C"
3988
3989
3990
3991  for ac_prog in gawk nawk awk mawk
3992do
3993  # Extract the first word of "$ac_prog", so it can be a program name with args.
3994set dummy $ac_prog; ac_word=$2
3995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3996$as_echo_n "checking for $ac_word... " >&6; }
3997if test "${ac_cv_prog_AWK+set}" = set; then :
3998  $as_echo_n "(cached) " >&6
3999else
4000  if test -n "$AWK"; then
4001  ac_cv_prog_AWK="$AWK" # Let the user override the test.
4002else
4003as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4004as_dummy="/usr/xpg4/bin/:$PATH"
4005for as_dir in $as_dummy
4006do
4007  IFS=$as_save_IFS
4008  test -z "$as_dir" && as_dir=.
4009    for ac_exec_ext in '' $ac_executable_extensions; do
4010  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4011    ac_cv_prog_AWK="$ac_prog"
4012    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4013    break 2
4014  fi
4015done
4016  done
4017IFS=$as_save_IFS
4018
4019fi
4020fi
4021AWK=$ac_cv_prog_AWK
4022if test -n "$AWK"; then
4023  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4024$as_echo "$AWK" >&6; }
4025else
4026  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4027$as_echo "no" >&6; }
4028fi
4029
4030
4031  test -n "$AWK" && break
4032done
4033test -n "$AWK" || AWK="bork"
4034
4035  case "$AWK" in
4036    *mawk)
4037      { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&5
4038$as_echo "$as_me: WARNING: mawk is known to have problems on some systems. You should install GNU awk" >&2;}
4039      ;;
4040    *gawk)
4041      ;;
4042    bork)
4043      as_fn_error $? "Could not find awk; Install GNU awk" "$LINENO" 5
4044      ;;
4045    *)
4046      { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $AWK is broken" >&5
4047$as_echo_n "checking if $AWK is broken... " >&6; }
4048      if ! $AWK 'function foo() {}' >/dev/null 2>&1 ; then
4049        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050$as_echo "yes" >&6; }
4051        as_fn_error $? "You should install GNU awk" "$LINENO" 5
4052      else
4053        { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4054$as_echo "no" >&6; }
4055      fi
4056      ;;
4057  esac
4058
4059  PHP_VAR_SUBST="$PHP_VAR_SUBST AWK"
4060
4061
4062
4063
4064
4065php_with_phash=no
4066
4067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pHash is available" >&5
4068$as_echo_n "checking whether pHash is available... " >&6; }
4069
4070# Check whether --with-pHash was given.
4071if test "${with_pHash+set}" = set; then :
4072  withval=$with_pHash; PHP_PHASH=$withval
4073else
4074
4075  PHP_PHASH=no
4076  test "$PHP_ENABLE_ALL" && PHP_PHASH=$PHP_ENABLE_ALL
4077
4078fi
4079
4080
4081
4082ext_output="yes, shared"
4083ext_shared=yes
4084case $PHP_PHASH in
4085shared,*)
4086  PHP_PHASH=`echo "$PHP_PHASH"|$SED 's/^shared,//'`
4087  ;;
4088shared)
4089  PHP_PHASH=yes
4090  ;;
4091no)
4092  ext_output=no
4093  ext_shared=no
4094  ;;
4095*)
4096  ext_output=yes
4097  ext_shared=no
4098  ;;
4099esac
4100
4101
4102  ext_output="yes, shared"
4103  ext_shared=yes
4104  test "$PHP_PHASH" = "no" && PHP_PHASH=yes
4105
4106
4107{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ext_output" >&5
4108$as_echo "$ext_output" >&6; }
4109
4110
4111
4112
4113
4114if test "$PHP_PHASH" != "no"; then
4115
4116  if test -z "$php_cxx_done"; then
4117    ac_ext=cpp
4118ac_cpp='$CXXCPP $CPPFLAGS'
4119ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4120ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4121ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4122if test -z "$CXX"; then
4123  if test -n "$CCC"; then
4124    CXX=$CCC
4125  else
4126    if test -n "$ac_tool_prefix"; then
4127  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4128  do
4129    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4130set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4131{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4132$as_echo_n "checking for $ac_word... " >&6; }
4133if test "${ac_cv_prog_CXX+set}" = set; then :
4134  $as_echo_n "(cached) " >&6
4135else
4136  if test -n "$CXX"; then
4137  ac_cv_prog_CXX="$CXX" # Let the user override the test.
4138else
4139as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4140for as_dir in $PATH
4141do
4142  IFS=$as_save_IFS
4143  test -z "$as_dir" && as_dir=.
4144    for ac_exec_ext in '' $ac_executable_extensions; do
4145  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4146    ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4147    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4148    break 2
4149  fi
4150done
4151  done
4152IFS=$as_save_IFS
4153
4154fi
4155fi
4156CXX=$ac_cv_prog_CXX
4157if test -n "$CXX"; then
4158  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4159$as_echo "$CXX" >&6; }
4160else
4161  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4162$as_echo "no" >&6; }
4163fi
4164
4165
4166    test -n "$CXX" && break
4167  done
4168fi
4169if test -z "$CXX"; then
4170  ac_ct_CXX=$CXX
4171  for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4172do
4173  # Extract the first word of "$ac_prog", so it can be a program name with args.
4174set dummy $ac_prog; ac_word=$2
4175{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4176$as_echo_n "checking for $ac_word... " >&6; }
4177if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
4178  $as_echo_n "(cached) " >&6
4179else
4180  if test -n "$ac_ct_CXX"; then
4181  ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4182else
4183as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4184for as_dir in $PATH
4185do
4186  IFS=$as_save_IFS
4187  test -z "$as_dir" && as_dir=.
4188    for ac_exec_ext in '' $ac_executable_extensions; do
4189  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4190    ac_cv_prog_ac_ct_CXX="$ac_prog"
4191    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4192    break 2
4193  fi
4194done
4195  done
4196IFS=$as_save_IFS
4197
4198fi
4199fi
4200ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4201if test -n "$ac_ct_CXX"; then
4202  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4203$as_echo "$ac_ct_CXX" >&6; }
4204else
4205  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4206$as_echo "no" >&6; }
4207fi
4208
4209
4210  test -n "$ac_ct_CXX" && break
4211done
4212
4213  if test "x$ac_ct_CXX" = x; then
4214    CXX="g++"
4215  else
4216    case $cross_compiling:$ac_tool_warned in
4217yes:)
4218{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4219$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4220ac_tool_warned=yes ;;
4221esac
4222    CXX=$ac_ct_CXX
4223  fi
4224fi
4225
4226  fi
4227fi
4228# Provide some information about the compiler.
4229$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4230set X $ac_compile
4231ac_compiler=$2
4232for ac_option in --version -v -V -qversion; do
4233  { { ac_try="$ac_compiler $ac_option >&5"
4234case "(($ac_try" in
4235  *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236  *) ac_try_echo=$ac_try;;
4237esac
4238eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4239$as_echo "$ac_try_echo"; } >&5
4240  (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4241  ac_status=$?
4242  if test -s conftest.err; then
4243    sed '10a\
4244... rest of stderr output deleted ...
4245         10q' conftest.err >conftest.er1
4246    cat conftest.er1 >&5
4247  fi
4248  rm -f conftest.er1 conftest.err
4249  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4250  test $ac_status = 0; }
4251done
4252
4253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4254$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4255if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
4256  $as_echo_n "(cached) " >&6
4257else
4258  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4259/* end confdefs.h.  */
4260
4261int
4262main ()
4263{
4264#ifndef __GNUC__
4265       choke me
4266#endif
4267
4268  ;
4269  return 0;
4270}
4271_ACEOF
4272if ac_fn_cxx_try_compile "$LINENO"; then :
4273  ac_compiler_gnu=yes
4274else
4275  ac_compiler_gnu=no
4276fi
4277rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4278ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4279
4280fi
4281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4282$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4283if test $ac_compiler_gnu = yes; then
4284  GXX=yes
4285else
4286  GXX=
4287fi
4288ac_test_CXXFLAGS=${CXXFLAGS+set}
4289ac_save_CXXFLAGS=$CXXFLAGS
4290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4291$as_echo_n "checking whether $CXX accepts -g... " >&6; }
4292if test "${ac_cv_prog_cxx_g+set}" = set; then :
4293  $as_echo_n "(cached) " >&6
4294else
4295  ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4296   ac_cxx_werror_flag=yes
4297   ac_cv_prog_cxx_g=no
4298   CXXFLAGS="-g"
4299   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4300/* end confdefs.h.  */
4301
4302int
4303main ()
4304{
4305
4306  ;
4307  return 0;
4308}
4309_ACEOF
4310if ac_fn_cxx_try_compile "$LINENO"; then :
4311  ac_cv_prog_cxx_g=yes
4312else
4313  CXXFLAGS=""
4314      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315/* end confdefs.h.  */
4316
4317int
4318main ()
4319{
4320
4321  ;
4322  return 0;
4323}
4324_ACEOF
4325if ac_fn_cxx_try_compile "$LINENO"; then :
4326
4327else
4328  ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4329	 CXXFLAGS="-g"
4330	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331/* end confdefs.h.  */
4332
4333int
4334main ()
4335{
4336
4337  ;
4338  return 0;
4339}
4340_ACEOF
4341if ac_fn_cxx_try_compile "$LINENO"; then :
4342  ac_cv_prog_cxx_g=yes
4343fi
4344rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4345fi
4346rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4347fi
4348rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4349   ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4350fi
4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4352$as_echo "$ac_cv_prog_cxx_g" >&6; }
4353if test "$ac_test_CXXFLAGS" = set; then
4354  CXXFLAGS=$ac_save_CXXFLAGS
4355elif test $ac_cv_prog_cxx_g = yes; then
4356  if test "$GXX" = yes; then
4357    CXXFLAGS="-g -O2"
4358  else
4359    CXXFLAGS="-g"
4360  fi
4361else
4362  if test "$GXX" = yes; then
4363    CXXFLAGS="-O2"
4364  else
4365    CXXFLAGS=
4366  fi
4367fi
4368ac_ext=c
4369ac_cpp='$CPP $CPPFLAGS'
4370ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4371ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4372ac_compiler_gnu=$ac_cv_c_compiler_gnu
4373
4374    ac_ext=cpp
4375ac_cpp='$CXXCPP $CPPFLAGS'
4376ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4377ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4378ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4380$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4381if test -z "$CXXCPP"; then
4382  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4383  $as_echo_n "(cached) " >&6
4384else
4385      # Double quotes because CXXCPP needs to be expanded
4386    for CXXCPP in "$CXX -E" "/lib/cpp"
4387    do
4388      ac_preproc_ok=false
4389for ac_cxx_preproc_warn_flag in '' yes
4390do
4391  # Use a header file that comes with gcc, so configuring glibc
4392  # with a fresh cross-compiler works.
4393  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394  # <limits.h> exists even on freestanding compilers.
4395  # On the NeXT, cc -E runs the code through the compiler's parser,
4396  # not just through cpp. "Syntax error" is here to catch this case.
4397  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4398/* end confdefs.h.  */
4399#ifdef __STDC__
4400# include <limits.h>
4401#else
4402# include <assert.h>
4403#endif
4404		     Syntax error
4405_ACEOF
4406if ac_fn_cxx_try_cpp "$LINENO"; then :
4407
4408else
4409  # Broken: fails on valid input.
4410continue
4411fi
4412rm -f conftest.err conftest.$ac_ext
4413
4414  # OK, works on sane cases.  Now check whether nonexistent headers
4415  # can be detected and how.
4416  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4417/* end confdefs.h.  */
4418#include <ac_nonexistent.h>
4419_ACEOF
4420if ac_fn_cxx_try_cpp "$LINENO"; then :
4421  # Broken: success on invalid input.
4422continue
4423else
4424  # Passes both tests.
4425ac_preproc_ok=:
4426break
4427fi
4428rm -f conftest.err conftest.$ac_ext
4429
4430done
4431# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4432rm -f conftest.err conftest.$ac_ext
4433if $ac_preproc_ok; then :
4434  break
4435fi
4436
4437    done
4438    ac_cv_prog_CXXCPP=$CXXCPP
4439
4440fi
4441  CXXCPP=$ac_cv_prog_CXXCPP
4442else
4443  ac_cv_prog_CXXCPP=$CXXCPP
4444fi
4445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4446$as_echo "$CXXCPP" >&6; }
4447ac_preproc_ok=false
4448for ac_cxx_preproc_warn_flag in '' yes
4449do
4450  # Use a header file that comes with gcc, so configuring glibc
4451  # with a fresh cross-compiler works.
4452  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4453  # <limits.h> exists even on freestanding compilers.
4454  # On the NeXT, cc -E runs the code through the compiler's parser,
4455  # not just through cpp. "Syntax error" is here to catch this case.
4456  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4457/* end confdefs.h.  */
4458#ifdef __STDC__
4459# include <limits.h>
4460#else
4461# include <assert.h>
4462#endif
4463		     Syntax error
4464_ACEOF
4465if ac_fn_cxx_try_cpp "$LINENO"; then :
4466
4467else
4468  # Broken: fails on valid input.
4469continue
4470fi
4471rm -f conftest.err conftest.$ac_ext
4472
4473  # OK, works on sane cases.  Now check whether nonexistent headers
4474  # can be detected and how.
4475  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476/* end confdefs.h.  */
4477#include <ac_nonexistent.h>
4478_ACEOF
4479if ac_fn_cxx_try_cpp "$LINENO"; then :
4480  # Broken: success on invalid input.
4481continue
4482else
4483  # Passes both tests.
4484ac_preproc_ok=:
4485break
4486fi
4487rm -f conftest.err conftest.$ac_ext
4488
4489done
4490# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4491rm -f conftest.err conftest.$ac_ext
4492if $ac_preproc_ok; then :
4493
4494else
4495  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4496$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4497as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4498See \`config.log' for more details" "$LINENO" 5; }
4499fi
4500
4501ac_ext=c
4502ac_cpp='$CPP $CPPFLAGS'
4503ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4504ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4505ac_compiler_gnu=$ac_cv_c_compiler_gnu
4506
4507    php_cxx_done=yes
4508  fi
4509
4510  ac_ext=cpp
4511ac_cpp='$CXXCPP $CPPFLAGS'
4512ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4513ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4514ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4515
4516
4517
4518  case stdc++ in
4519  c|c_r|pthread*) ;;
4520  *)
4521    if test "$ext_shared" = "yes"; then
4522        PHASH_SHARED_LIBADD="-lstdc++ $PHASH_SHARED_LIBADD"
4523    else
4524
4525
4526  case stdc++ in
4527  c|c_r|pthread*) ;;
4528  *)
4529      LIBS="-lstdc++ $LIBS"
4530   ;;
4531  esac
4532
4533
4534    fi
4535   ;;
4536  esac
4537
4538
4539
4540
4541  if test -r "$PHP_PHASH/include/pHash.h"; then
4542	PHP_PHASH_DIR="$PHP_PHASH"
4543  else
4544	{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pHash in default path" >&5
4545$as_echo_n "checking for pHash in default path... " >&6; }
4546	for i in /usr /usr/local; do
4547	  if test -r "$i/include/pHash.h"; then
4548		PHP_PHASH_DIR=$i
4549		{ $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $i" >&5
4550$as_echo "found in $i" >&6; }
4551		break
4552	  fi
4553	done
4554	if test "x" = "x$PHP_PHASH_DIR"; then
4555	  as_fn_error $? "not found" "$LINENO" 5
4556	fi
4557  fi
4558
4559
4560  if test "$PHP_PHASH_DIR/include" != "/usr/include"; then
4561
4562  if test -z "$PHP_PHASH_DIR/include" || echo "$PHP_PHASH_DIR/include" | grep '^/' >/dev/null ; then
4563    ai_p=$PHP_PHASH_DIR/include
4564  else
4565
4566    ep_dir="`echo $PHP_PHASH_DIR/include|$SED 's%/*[^/][^/]*/*$%%'`"
4567
4568    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
4569    ai_p="$ep_realdir/`basename \"$PHP_PHASH_DIR/include\"`"
4570  fi
4571
4572
4573
4574  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
4575
4576  cmd="echo $ac_n \"\$INCLUDEPATH$unique$ac_c\""
4577  if test -n "$unique" && test "`eval $cmd`" = "" ; then
4578    eval "INCLUDEPATH$unique=set"
4579
4580      if test ""; then
4581        INCLUDES="-I$ai_p $INCLUDES"
4582      else
4583        INCLUDES="$INCLUDES -I$ai_p"
4584      fi
4585
4586  fi
4587
4588  fi
4589
4590
4591  export OLD_CPPFLAGS="$CPPFLAGS"
4592  export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_PHASH"
4593
4594
4595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4596$as_echo_n "checking for ANSI C header files... " >&6; }
4597if test "${ac_cv_header_stdc+set}" = set; then :
4598  $as_echo_n "(cached) " >&6
4599else
4600  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4601/* end confdefs.h.  */
4602#include <stdlib.h>
4603#include <stdarg.h>
4604#include <string.h>
4605#include <float.h>
4606
4607int
4608main ()
4609{
4610
4611  ;
4612  return 0;
4613}
4614_ACEOF
4615if ac_fn_cxx_try_compile "$LINENO"; then :
4616  ac_cv_header_stdc=yes
4617else
4618  ac_cv_header_stdc=no
4619fi
4620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4621
4622if test $ac_cv_header_stdc = yes; then
4623  # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4624  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4625/* end confdefs.h.  */
4626#include <string.h>
4627
4628_ACEOF
4629if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4630  $EGREP "memchr" >/dev/null 2>&1; then :
4631
4632else
4633  ac_cv_header_stdc=no
4634fi
4635rm -f conftest*
4636
4637fi
4638
4639if test $ac_cv_header_stdc = yes; then
4640  # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4641  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642/* end confdefs.h.  */
4643#include <stdlib.h>
4644
4645_ACEOF
4646if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4647  $EGREP "free" >/dev/null 2>&1; then :
4648
4649else
4650  ac_cv_header_stdc=no
4651fi
4652rm -f conftest*
4653
4654fi
4655
4656if test $ac_cv_header_stdc = yes; then
4657  # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4658  if test "$cross_compiling" = yes; then :
4659  :
4660else
4661  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4662/* end confdefs.h.  */
4663#include <ctype.h>
4664#include <stdlib.h>
4665#if ((' ' & 0x0FF) == 0x020)
4666# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4667# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4668#else
4669# define ISLOWER(c) \
4670		   (('a' <= (c) && (c) <= 'i') \
4671		     || ('j' <= (c) && (c) <= 'r') \
4672		     || ('s' <= (c) && (c) <= 'z'))
4673# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4674#endif
4675
4676#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4677int
4678main ()
4679{
4680  int i;
4681  for (i = 0; i < 256; i++)
4682    if (XOR (islower (i), ISLOWER (i))
4683	|| toupper (i) != TOUPPER (i))
4684      return 2;
4685  return 0;
4686}
4687_ACEOF
4688if ac_fn_cxx_try_run "$LINENO"; then :
4689
4690else
4691  ac_cv_header_stdc=no
4692fi
4693rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4694  conftest.$ac_objext conftest.beam conftest.$ac_ext
4695fi
4696
4697fi
4698fi
4699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4700$as_echo "$ac_cv_header_stdc" >&6; }
4701if test $ac_cv_header_stdc = yes; then
4702
4703$as_echo "#define STDC_HEADERS 1" >>confdefs.h
4704
4705fi
4706
4707# On IRIX 5.3, sys/types and inttypes.h are conflicting.
4708for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4709		  inttypes.h stdint.h unistd.h
4710do :
4711  as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4712ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4713"
4714if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4715  cat >>confdefs.h <<_ACEOF
4716#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4717_ACEOF
4718
4719fi
4720
4721done
4722
4723
4724ac_fn_cxx_check_header_mongrel "$LINENO" "pHash.h" "ac_cv_header_pHash_h" "$ac_includes_default"
4725if test "x$ac_cv_header_pHash_h" = x""yes; then :
4726
4727else
4728  as_fn_error $? "'pHash.h' header not found" "$LINENO" 5
4729fi
4730
4731
4732  ac_fn_cxx_check_header_mongrel "$LINENO" "audiophash.h" "ac_cv_header_audiophash_h" "$ac_includes_default"
4733if test "x$ac_cv_header_audiophash_h" = x""yes; then :
4734
4735else
4736  as_fn_error $? "'audiophash.h' header not found" "$LINENO" 5
4737fi
4738
4739
4740
4741  PHP_VAR_SUBST="$PHP_VAR_SUBST PHASH_SHARED_LIBADD"
4742
4743
4744
4745
4746  save_old_LDFLAGS=$LDFLAGS
4747  ac_stuff="
4748	-L$PHP_PHASH_DIR/lib
4749  "
4750
4751  save_ext_shared=$ext_shared
4752  ext_shared=yes
4753
4754  for ac_i in $ac_stuff; do
4755    case $ac_i in
4756    -pthread)
4757      if test "$ext_shared" = "yes"; then
4758        LDFLAGS="$LDFLAGS -pthread"
4759      else
4760
4761
4762  unique=`echo $ac_i|$SED 's/[^a-zA-Z0-9]/_/g'`
4763
4764  cmd="echo $ac_n \"\$EXTRA_LDFLAGS$unique$ac_c\""
4765  if test -n "$unique" && test "`eval $cmd`" = "" ; then
4766    eval "EXTRA_LDFLAGS$unique=set"
4767    EXTRA_LDFLAGS="$EXTRA_LDFLAGS $ac_i"
4768  fi
4769
4770      fi
4771    ;;
4772    -l*)
4773      ac_ii=`echo $ac_i|cut -c 3-`
4774
4775
4776  case $ac_ii in
4777  c|c_r|pthread*) ;;
4778  *)
4779    if test "$ext_shared" = "yes"; then
4780        LDFLAGS="$LDFLAGS -l$ac_ii"
4781    else
4782
4783
4784  case $ac_ii in
4785  c|c_r|pthread*) ;;
4786  *)
4787      LIBS="$LIBS -l$ac_ii"
4788   ;;
4789  esac
4790
4791
4792    fi
4793   ;;
4794  esac
4795
4796
4797    ;;
4798    -L*)
4799      ac_ii=`echo $ac_i|cut -c 3-`
4800
4801  if test "$ac_ii" != "/usr/$PHP_LIBDIR" && test "$ac_ii" != "/usr/lib"; then
4802
4803  if test -z "$ac_ii" || echo "$ac_ii" | grep '^/' >/dev/null ; then
4804    ai_p=$ac_ii
4805  else
4806
4807    ep_dir="`echo $ac_ii|$SED 's%/*[^/][^/]*/*$%%'`"
4808
4809    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
4810    ai_p="$ep_realdir/`basename \"$ac_ii\"`"
4811  fi
4812
4813
4814      if test "$ext_shared" = "yes"; then
4815        LDFLAGS="-L$ai_p $LDFLAGS"
4816        test "x$PHP_RPATH" != "xno" && \
4817        test -n "$ld_runpath_switch" && LDFLAGS="$ld_runpath_switch$ai_p $LDFLAGS"
4818      else
4819
4820
4821
4822  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
4823
4824  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
4825  if test -n "$unique" && test "`eval $cmd`" = "" ; then
4826    eval "LIBPATH$unique=set"
4827
4828    test "x$PHP_RPATH" != "xno" &&
4829    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
4830    LDFLAGS="$LDFLAGS -L$ai_p"
4831    PHP_RPATHS="$PHP_RPATHS $ai_p"
4832
4833  fi
4834
4835
4836      fi
4837
4838  fi
4839
4840    ;;
4841    esac
4842  done
4843
4844  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ph_texthash in -lpHash" >&5
4845$as_echo_n "checking for ph_texthash in -lpHash... " >&6; }
4846if test "${ac_cv_lib_pHash_ph_texthash+set}" = set; then :
4847  $as_echo_n "(cached) " >&6
4848else
4849  ac_check_lib_save_LIBS=$LIBS
4850LIBS="-lpHash  $LIBS"
4851cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852/* end confdefs.h.  */
4853
4854/* Override any GCC internal prototype to avoid an error.
4855   Use char because int might match the return type of a GCC
4856   builtin and then its argument prototype would still apply.  */
4857#ifdef __cplusplus
4858extern "C"
4859#endif
4860char ph_texthash ();
4861int
4862main ()
4863{
4864return ph_texthash ();
4865  ;
4866  return 0;
4867}
4868_ACEOF
4869if ac_fn_cxx_try_link "$LINENO"; then :
4870  ac_cv_lib_pHash_ph_texthash=yes
4871else
4872  ac_cv_lib_pHash_ph_texthash=no
4873fi
4874rm -f core conftest.err conftest.$ac_objext \
4875    conftest$ac_exeext conftest.$ac_ext
4876LIBS=$ac_check_lib_save_LIBS
4877fi
4878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pHash_ph_texthash" >&5
4879$as_echo "$ac_cv_lib_pHash_ph_texthash" >&6; }
4880if test "x$ac_cv_lib_pHash_ph_texthash" = x""yes; then :
4881
4882    LDFLAGS=$save_old_LDFLAGS
4883    ext_shared=$save_ext_shared
4884
4885
4886
4887  if test "$ext_shared" = "yes"; then
4888    PHASH_SHARED_LIBADD="-lpHash $PHASH_SHARED_LIBADD"
4889    if test -n "$PHP_PHASH_DIR/lib"; then
4890
4891  if test "$PHP_PHASH_DIR/lib" != "/usr/$PHP_LIBDIR" && test "$PHP_PHASH_DIR/lib" != "/usr/lib"; then
4892
4893  if test -z "$PHP_PHASH_DIR/lib" || echo "$PHP_PHASH_DIR/lib" | grep '^/' >/dev/null ; then
4894    ai_p=$PHP_PHASH_DIR/lib
4895  else
4896
4897    ep_dir="`echo $PHP_PHASH_DIR/lib|$SED 's%/*[^/][^/]*/*$%%'`"
4898
4899    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
4900    ai_p="$ep_realdir/`basename \"$PHP_PHASH_DIR/lib\"`"
4901  fi
4902
4903
4904      if test "$ext_shared" = "yes"; then
4905        PHASH_SHARED_LIBADD="-L$ai_p $PHASH_SHARED_LIBADD"
4906        test "x$PHP_RPATH" != "xno" && \
4907        test -n "$ld_runpath_switch" && PHASH_SHARED_LIBADD="$ld_runpath_switch$ai_p $PHASH_SHARED_LIBADD"
4908      else
4909
4910
4911
4912  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
4913
4914  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
4915  if test -n "$unique" && test "`eval $cmd`" = "" ; then
4916    eval "LIBPATH$unique=set"
4917
4918    test "x$PHP_RPATH" != "xno" &&
4919    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
4920    LDFLAGS="$LDFLAGS -L$ai_p"
4921    PHP_RPATHS="$PHP_RPATHS $ai_p"
4922
4923  fi
4924
4925
4926      fi
4927
4928  fi
4929
4930    fi
4931  else
4932
4933
4934  if test -n "$PHP_PHASH_DIR/lib"; then
4935
4936  if test "$PHP_PHASH_DIR/lib" != "/usr/$PHP_LIBDIR" && test "$PHP_PHASH_DIR/lib" != "/usr/lib"; then
4937
4938  if test -z "$PHP_PHASH_DIR/lib" || echo "$PHP_PHASH_DIR/lib" | grep '^/' >/dev/null ; then
4939    ai_p=$PHP_PHASH_DIR/lib
4940  else
4941
4942    ep_dir="`echo $PHP_PHASH_DIR/lib|$SED 's%/*[^/][^/]*/*$%%'`"
4943
4944    ep_realdir="`(cd \"$ep_dir\" && pwd)`"
4945    ai_p="$ep_realdir/`basename \"$PHP_PHASH_DIR/lib\"`"
4946  fi
4947
4948
4949
4950
4951
4952  unique=`echo $ai_p|$SED 's/[^a-zA-Z0-9]/_/g'`
4953
4954  cmd="echo $ac_n \"\$LIBPATH$unique$ac_c\""
4955  if test -n "$unique" && test "`eval $cmd`" = "" ; then
4956    eval "LIBPATH$unique=set"
4957
4958    test "x$PHP_RPATH" != "xno" &&
4959    test -n "$ld_runpath_switch" && LDFLAGS="$LDFLAGS $ld_runpath_switch$ai_p"
4960    LDFLAGS="$LDFLAGS -L$ai_p"
4961    PHP_RPATHS="$PHP_RPATHS $ai_p"
4962
4963  fi
4964
4965
4966
4967  fi
4968
4969  fi
4970
4971
4972  case pHash in
4973  c|c_r|pthread*) ;;
4974  *)
4975      LIBS="-lpHash $LIBS"
4976   ;;
4977  esac
4978
4979
4980
4981
4982  fi
4983
4984
4985
4986
4987else
4988
4989    LDFLAGS=$save_old_LDFLAGS
4990    ext_shared=$save_ext_shared
4991    unset ac_cv_lib_pHash_ph_texthash
4992
4993	as_fn_error $? "wrong pHash lib version or lib not found" "$LINENO" 5
4994
4995
4996fi
4997
4998  export CPPFLAGS="$OLD_CPPFLAGS"
4999
5000  export OLD_CPPFLAGS="$CPPFLAGS"
5001  export CPPFLAGS="$CPPFLAGS $INCLUDES -DHAVE_PHASH"
5002
5003  { $as_echo "$as_me:${as_lineno-$LINENO}: checking PHP version" >&5
5004$as_echo_n "checking PHP version... " >&6; }
5005  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5006/* end confdefs.h.  */
5007#include <php_version.h>
5008int
5009main ()
5010{
5011
5012#if PHP_VERSION_ID < 40000
5013#error  this extension requires at least PHP version 4.0.0
5014#endif
5015
5016  ;
5017  return 0;
5018}
5019_ACEOF
5020if ac_fn_cxx_try_compile "$LINENO"; then :
5021  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
5022$as_echo "ok" >&6; }
5023else
5024  as_fn_error $? "need at least PHP 4.0.0" "$LINENO" 5
5025fi
5026rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5027
5028  export CPPFLAGS="$OLD_CPPFLAGS"
5029
5030
5031
5032  PHP_VAR_SUBST="$PHP_VAR_SUBST PHASH_SHARED_LIBADD"
5033
5034
5035$as_echo "#define HAVE_PHASH 1" >>confdefs.h
5036
5037
5038
5039  ext_builddir=.
5040  ext_srcdir=$abs_srcdir
5041
5042  ac_extra=
5043
5044  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" != "cli"; then
5045    PHP_PHASH_SHARED=no
5046
5047
5048  case "" in
5049  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5050  /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5051  *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5052  esac
5053
5054
5055
5056  b_c_pre=$php_c_pre
5057  b_cxx_pre=$php_cxx_pre
5058  b_c_meta=$php_c_meta
5059  b_cxx_meta=$php_cxx_meta
5060  b_c_post=$php_c_post
5061  b_cxx_post=$php_cxx_post
5062  b_lo=$php_lo
5063
5064
5065  old_IFS=$IFS
5066  for ac_src in pHash.cpp ; do
5067
5068      IFS=.
5069      set $ac_src
5070      ac_obj=$1
5071      IFS=$old_IFS
5072
5073      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
5074
5075      case $ac_src in
5076        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5077        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5078        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5079        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5080      esac
5081
5082    cat >>Makefile.objects<<EOF
5083$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5084	$ac_comp
5085EOF
5086  done
5087
5088
5089    EXT_STATIC="$EXT_STATIC pHash"
5090    if test "$ext_shared" != "nocli"; then
5091      EXT_CLI_STATIC="$EXT_CLI_STATIC pHash"
5092    fi
5093  else
5094    if test "$ext_shared" = "shared" || test "$ext_shared" = "yes"; then
5095      PHP_PHASH_SHARED=yes
5096
5097  case "" in
5098  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5099  /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5100  *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5101  esac
5102
5103
5104
5105  b_c_pre=$shared_c_pre
5106  b_cxx_pre=$shared_cxx_pre
5107  b_c_meta=$shared_c_meta
5108  b_cxx_meta=$shared_cxx_meta
5109  b_c_post=$shared_c_post
5110  b_cxx_post=$shared_cxx_post
5111  b_lo=$shared_lo
5112
5113
5114  old_IFS=$IFS
5115  for ac_src in pHash.cpp ; do
5116
5117      IFS=.
5118      set $ac_src
5119      ac_obj=$1
5120      IFS=$old_IFS
5121
5122      shared_objects_pHash="$shared_objects_pHash $ac_bdir$ac_obj.lo"
5123
5124      case $ac_src in
5125        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5126        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5127        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5128        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5129      esac
5130
5131    cat >>Makefile.objects<<EOF
5132$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5133	$ac_comp
5134EOF
5135  done
5136
5137      case $host_alias in
5138        *netware*)
5139
5140  install_modules="install-modules"
5141
5142  case $host_alias in
5143    *aix*)
5144      suffix=so
5145      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/phppHash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) $(PHPPHASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/phppHash.so '$ext_builddir'/phppHash.so'
5146      ;;
5147    *netware*)
5148      suffix=nlm
5149      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) -L$(top_builddir)/netware -lphp5lib $(PHASH_SHARED_LIBADD)'
5150      ;;
5151    *)
5152      suffix=la
5153      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) $(PHPPHASH_SHARED_LIBADD)'
5154      ;;
5155  esac
5156
5157  if test "x" = "xyes"; then
5158    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/phppHash.$suffix"
5159  else
5160    PHP_MODULES="$PHP_MODULES \$(phplibdir)/phppHash.$suffix"
5161  fi
5162
5163  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pHash"
5164
5165  cat >>Makefile.objects<<EOF
5166\$(phplibdir)/phppHash.$suffix: $ext_builddir/phppHash.$suffix
5167	\$(LIBTOOL) --mode=install cp $ext_builddir/phppHash.$suffix \$(phplibdir)
5168
5169$ext_builddir/phppHash.$suffix: \$(shared_objects_pHash) \$(PHPPHASH_SHARED_DEPENDENCIES)
5170	$link_cmd
5171
5172EOF
5173
5174          ;;
5175        *)
5176
5177  install_modules="install-modules"
5178
5179  case $host_alias in
5180    *aix*)
5181      suffix=so
5182      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -Wl,-G -o '$ext_builddir'/pHash.la -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) $(PHASH_SHARED_LIBADD) && mv -f '$ext_builddir'/.libs/pHash.so '$ext_builddir'/pHash.so'
5183      ;;
5184    *netware*)
5185      suffix=nlm
5186      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -shared -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) -L$(top_builddir)/netware -lphp5lib $(SH_SHARED_LIBADD)'
5187      ;;
5188    *)
5189      suffix=la
5190      link_cmd='$(LIBTOOL) --mode=link $(CC) $(COMMON_FLAGS) $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(LDFLAGS) -o $@ -export-dynamic -avoid-version -prefer-pic -module -rpath $(phplibdir) $(EXTRA_LDFLAGS) $(shared_objects_pHash) $(PHASH_SHARED_LIBADD)'
5191      ;;
5192  esac
5193
5194  if test "x" = "xyes"; then
5195    PHP_ZEND_EX="$PHP_ZEND_EX \$(phplibdir)/pHash.$suffix"
5196  else
5197    PHP_MODULES="$PHP_MODULES \$(phplibdir)/pHash.$suffix"
5198  fi
5199
5200  PHP_VAR_SUBST="$PHP_VAR_SUBST shared_objects_pHash"
5201
5202  cat >>Makefile.objects<<EOF
5203\$(phplibdir)/pHash.$suffix: $ext_builddir/pHash.$suffix
5204	\$(LIBTOOL) --mode=install cp $ext_builddir/pHash.$suffix \$(phplibdir)
5205
5206$ext_builddir/pHash.$suffix: \$(shared_objects_pHash) \$(PHASH_SHARED_DEPENDENCIES)
5207	$link_cmd
5208
5209EOF
5210
5211          ;;
5212      esac
5213
5214cat >>confdefs.h <<_ACEOF
5215#define COMPILE_DL_PHASH 1
5216_ACEOF
5217
5218    fi
5219  fi
5220
5221  if test "$ext_shared" != "shared" && test "$ext_shared" != "yes" && test "" = "cli"; then
5222    PHP_PHASH_SHARED=no
5223    case "$PHP_SAPI" in
5224      cgi|embed)
5225
5226
5227  case "" in
5228  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5229  /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5230  *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5231  esac
5232
5233
5234
5235  b_c_pre=$php_c_pre
5236  b_cxx_pre=$php_cxx_pre
5237  b_c_meta=$php_c_meta
5238  b_cxx_meta=$php_cxx_meta
5239  b_c_post=$php_c_post
5240  b_cxx_post=$php_cxx_post
5241  b_lo=$php_lo
5242
5243
5244  old_IFS=$IFS
5245  for ac_src in pHash.cpp ; do
5246
5247      IFS=.
5248      set $ac_src
5249      ac_obj=$1
5250      IFS=$old_IFS
5251
5252      PHP_GLOBAL_OBJS="$PHP_GLOBAL_OBJS $ac_bdir$ac_obj.lo"
5253
5254      case $ac_src in
5255        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5256        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5257        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5258        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5259      esac
5260
5261    cat >>Makefile.objects<<EOF
5262$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5263	$ac_comp
5264EOF
5265  done
5266
5267
5268        EXT_STATIC="$EXT_STATIC pHash"
5269        ;;
5270      *)
5271
5272
5273  case "" in
5274  "") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I. -I$abs_srcdir" ;;
5275  /*) ac_srcdir=`echo """"|cut -c 2-`"/"; ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
5276  *) ac_srcdir="$abs_srcdir/""/"; ac_bdir="""/"; ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
5277  esac
5278
5279
5280
5281  b_c_pre=$php_c_pre
5282  b_cxx_pre=$php_cxx_pre
5283  b_c_meta=$php_c_meta
5284  b_cxx_meta=$php_cxx_meta
5285  b_c_post=$php_c_post
5286  b_cxx_post=$php_cxx_post
5287  b_lo=$php_lo
5288
5289
5290  old_IFS=$IFS
5291  for ac_src in pHash.cpp ; do
5292
5293      IFS=.
5294      set $ac_src
5295      ac_obj=$1
5296      IFS=$old_IFS
5297
5298      PHP_CLI_OBJS="$PHP_CLI_OBJS $ac_bdir$ac_obj.lo"
5299
5300      case $ac_src in
5301        *.c) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5302        *.s) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5303        *.S) ac_comp="$b_c_pre $ac_extra $ac_inc $b_c_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_c_post" ;;
5304        *.cpp|*.cc|*.cxx) ac_comp="$b_cxx_pre $ac_extra $ac_inc $b_cxx_meta -c $ac_srcdir$ac_src -o $ac_bdir$ac_obj.$b_lo $b_cxx_post" ;;
5305      esac
5306
5307    cat >>Makefile.objects<<EOF
5308$ac_bdir$ac_obj.lo: $ac_srcdir$ac_src
5309	$ac_comp
5310EOF
5311  done
5312
5313
5314        ;;
5315    esac
5316    EXT_CLI_STATIC="$EXT_CLI_STATIC pHash"
5317  fi
5318
5319
5320    BUILD_DIR="$BUILD_DIR $ext_builddir"
5321
5322
5323
5324  if test "$ext_builddir" = "."; then
5325    PHP_PECL_EXTENSION=pHash
5326
5327  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_PECL_EXTENSION"
5328
5329  fi
5330
5331
5332fi
5333
5334
5335
5336enable_static=no
5337enable_shared=yes
5338
5339
5340case `pwd` in
5341  *\ * | *\	*)
5342    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
5343$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
5344esac
5345
5346
5347
5348macro_version='2.2.10'
5349macro_revision='1.3175'
5350
5351
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363ltmain="$ac_aux_dir/ltmain.sh"
5364
5365# Backslashify metacharacters that are still active within
5366# double-quoted strings.
5367sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
5368
5369# Same as above, but do not quote variable references.
5370double_quote_subst='s/\(["`\\]\)/\\\1/g'
5371
5372# Sed substitution to delay expansion of an escaped shell variable in a
5373# double_quote_subst'ed string.
5374delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
5375
5376# Sed substitution to delay expansion of an escaped single quote.
5377delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
5378
5379# Sed substitution to avoid accidental globbing in evaled expressions
5380no_glob_subst='s/\*/\\\*/g'
5381
5382ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5383ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
5384ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
5385
5386{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
5387$as_echo_n "checking how to print strings... " >&6; }
5388# Test print first, because it will be a builtin if present.
5389if test "X`print -r -- -n 2>/dev/null`" = X-n && \
5390   test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
5391  ECHO='print -r --'
5392elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
5393  ECHO='printf %s\n'
5394else
5395  # Use this function as a fallback that always works.
5396  func_fallback_echo ()
5397  {
5398    eval 'cat <<_LTECHO_EOF
5399$1
5400_LTECHO_EOF'
5401  }
5402  ECHO='func_fallback_echo'
5403fi
5404
5405# func_echo_all arg...
5406# Invoke $ECHO with all args, space-separated.
5407func_echo_all ()
5408{
5409    $ECHO ""
5410}
5411
5412case "$ECHO" in
5413  printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
5414$as_echo "printf" >&6; } ;;
5415  print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
5416$as_echo "print -r" >&6; } ;;
5417  *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
5418$as_echo "cat" >&6; } ;;
5419esac
5420
5421
5422
5423
5424
5425
5426
5427
5428
5429
5430
5431
5432
5433
5434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
5435$as_echo_n "checking for a sed that does not truncate output... " >&6; }
5436if test "${ac_cv_path_SED+set}" = set; then :
5437  $as_echo_n "(cached) " >&6
5438else
5439            ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
5440     for ac_i in 1 2 3 4 5 6 7; do
5441       ac_script="$ac_script$as_nl$ac_script"
5442     done
5443     echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
5444     { ac_script=; unset ac_script;}
5445     if test -z "$SED"; then
5446  ac_path_SED_found=false
5447  # Loop through the user's path and test for each of PROGNAME-LIST
5448  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5449for as_dir in $PATH
5450do
5451  IFS=$as_save_IFS
5452  test -z "$as_dir" && as_dir=.
5453    for ac_prog in sed gsed; do
5454    for ac_exec_ext in '' $ac_executable_extensions; do
5455      ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
5456      { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
5457# Check for GNU ac_path_SED and select it if it is found.
5458  # Check for GNU $ac_path_SED
5459case `"$ac_path_SED" --version 2>&1` in
5460*GNU*)
5461  ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
5462*)
5463  ac_count=0
5464  $as_echo_n 0123456789 >"conftest.in"
5465  while :
5466  do
5467    cat "conftest.in" "conftest.in" >"conftest.tmp"
5468    mv "conftest.tmp" "conftest.in"
5469    cp "conftest.in" "conftest.nl"
5470    $as_echo '' >> "conftest.nl"
5471    "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
5472    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5473    as_fn_arith $ac_count + 1 && ac_count=$as_val
5474    if test $ac_count -gt ${ac_path_SED_max-0}; then
5475      # Best one so far, save it but keep looking for a better one
5476      ac_cv_path_SED="$ac_path_SED"
5477      ac_path_SED_max=$ac_count
5478    fi
5479    # 10*(2^10) chars as input seems more than enough
5480    test $ac_count -gt 10 && break
5481  done
5482  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5483esac
5484
5485      $ac_path_SED_found && break 3
5486    done
5487  done
5488  done
5489IFS=$as_save_IFS
5490  if test -z "$ac_cv_path_SED"; then
5491    as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
5492  fi
5493else
5494  ac_cv_path_SED=$SED
5495fi
5496
5497fi
5498{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
5499$as_echo "$ac_cv_path_SED" >&6; }
5500 SED="$ac_cv_path_SED"
5501  rm -f conftest.sed
5502
5503test -z "$SED" && SED=sed
5504Xsed="$SED -e 1s/^X//"
5505
5506
5507
5508
5509
5510
5511
5512
5513
5514
5515
5516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
5517$as_echo_n "checking for fgrep... " >&6; }
5518if test "${ac_cv_path_FGREP+set}" = set; then :
5519  $as_echo_n "(cached) " >&6
5520else
5521  if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
5522   then ac_cv_path_FGREP="$GREP -F"
5523   else
5524     if test -z "$FGREP"; then
5525  ac_path_FGREP_found=false
5526  # Loop through the user's path and test for each of PROGNAME-LIST
5527  as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5528for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5529do
5530  IFS=$as_save_IFS
5531  test -z "$as_dir" && as_dir=.
5532    for ac_prog in fgrep; do
5533    for ac_exec_ext in '' $ac_executable_extensions; do
5534      ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
5535      { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
5536# Check for GNU ac_path_FGREP and select it if it is found.
5537  # Check for GNU $ac_path_FGREP
5538case `"$ac_path_FGREP" --version 2>&1` in
5539*GNU*)
5540  ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
5541*)
5542  ac_count=0
5543  $as_echo_n 0123456789 >"conftest.in"
5544  while :
5545  do
5546    cat "conftest.in" "conftest.in" >"conftest.tmp"
5547    mv "conftest.tmp" "conftest.in"
5548    cp "conftest.in" "conftest.nl"
5549    $as_echo 'FGREP' >> "conftest.nl"
5550    "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
5551    diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5552    as_fn_arith $ac_count + 1 && ac_count=$as_val
5553    if test $ac_count -gt ${ac_path_FGREP_max-0}; then
5554      # Best one so far, save it but keep looking for a better one
5555      ac_cv_path_FGREP="$ac_path_FGREP"
5556      ac_path_FGREP_max=$ac_count
5557    fi
5558    # 10*(2^10) chars as input seems more than enough
5559    test $ac_count -gt 10 && break
5560  done
5561  rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5562esac
5563
5564      $ac_path_FGREP_found && break 3
5565    done
5566  done
5567  done
5568IFS=$as_save_IFS
5569  if test -z "$ac_cv_path_FGREP"; then
5570    as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5571  fi
5572else
5573  ac_cv_path_FGREP=$FGREP
5574fi
5575
5576   fi
5577fi
5578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
5579$as_echo "$ac_cv_path_FGREP" >&6; }
5580 FGREP="$ac_cv_path_FGREP"
5581
5582
5583test -z "$GREP" && GREP=grep
5584
5585
5586
5587
5588
5589
5590
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601
5602
5603# Check whether --with-gnu-ld was given.
5604if test "${with_gnu_ld+set}" = set; then :
5605  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
5606else
5607  with_gnu_ld=no
5608fi
5609
5610ac_prog=ld
5611if test "$GCC" = yes; then
5612  # Check if gcc -print-prog-name=ld gives a path.
5613  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
5614$as_echo_n "checking for ld used by $CC... " >&6; }
5615  case $host in
5616  *-*-mingw*)
5617    # gcc leaves a trailing carriage return which upsets mingw
5618    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5619  *)
5620    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5621  esac
5622  case $ac_prog in
5623    # Accept absolute paths.
5624    [\\/]* | ?:[\\/]*)
5625      re_direlt='/[^/][^/]*/\.\./'
5626      # Canonicalize the pathname of ld
5627      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
5628      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
5629	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
5630      done
5631      test -z "$LD" && LD="$ac_prog"
5632      ;;
5633  "")
5634    # If it fails, then pretend we aren't using GCC.
5635    ac_prog=ld
5636    ;;
5637  *)
5638    # If it is relative, then search for the first ld in PATH.
5639    with_gnu_ld=unknown
5640    ;;
5641  esac
5642elif test "$with_gnu_ld" = yes; then
5643  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
5644$as_echo_n "checking for GNU ld... " >&6; }
5645else
5646  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
5647$as_echo_n "checking for non-GNU ld... " >&6; }
5648fi
5649if test "${lt_cv_path_LD+set}" = set; then :
5650  $as_echo_n "(cached) " >&6
5651else
5652  if test -z "$LD"; then
5653  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5654  for ac_dir in $PATH; do
5655    IFS="$lt_save_ifs"
5656    test -z "$ac_dir" && ac_dir=.
5657    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5658      lt_cv_path_LD="$ac_dir/$ac_prog"
5659      # Check to see if the program is GNU ld.  I'd rather use --version,
5660      # but apparently some variants of GNU ld only accept -v.
5661      # Break only if it was the GNU/non-GNU ld that we prefer.
5662      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5663      *GNU* | *'with BFD'*)
5664	test "$with_gnu_ld" != no && break
5665	;;
5666      *)
5667	test "$with_gnu_ld" != yes && break
5668	;;
5669      esac
5670    fi
5671  done
5672  IFS="$lt_save_ifs"
5673else
5674  lt_cv_path_LD="$LD" # Let the user override the test with a path.
5675fi
5676fi
5677
5678LD="$lt_cv_path_LD"
5679if test -n "$LD"; then
5680  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
5681$as_echo "$LD" >&6; }
5682else
5683  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5684$as_echo "no" >&6; }
5685fi
5686test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
5688$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
5689if test "${lt_cv_prog_gnu_ld+set}" = set; then :
5690  $as_echo_n "(cached) " >&6
5691else
5692  # I'd rather use --version here, but apparently some GNU lds only accept -v.
5693case `$LD -v 2>&1 </dev/null` in
5694*GNU* | *'with BFD'*)
5695  lt_cv_prog_gnu_ld=yes
5696  ;;
5697*)
5698  lt_cv_prog_gnu_ld=no
5699  ;;
5700esac
5701fi
5702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
5703$as_echo "$lt_cv_prog_gnu_ld" >&6; }
5704with_gnu_ld=$lt_cv_prog_gnu_ld
5705
5706
5707
5708
5709
5710
5711
5712
5713
5714{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
5715$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
5716if test "${lt_cv_path_NM+set}" = set; then :
5717  $as_echo_n "(cached) " >&6
5718else
5719  if test -n "$NM"; then
5720  # Let the user override the test.
5721  lt_cv_path_NM="$NM"
5722else
5723  lt_nm_to_check="${ac_tool_prefix}nm"
5724  if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
5725    lt_nm_to_check="$lt_nm_to_check nm"
5726  fi
5727  for lt_tmp_nm in $lt_nm_to_check; do
5728    lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5729    for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
5730      IFS="$lt_save_ifs"
5731      test -z "$ac_dir" && ac_dir=.
5732      tmp_nm="$ac_dir/$lt_tmp_nm"
5733      if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5734	# Check to see if the nm accepts a BSD-compat flag.
5735	# Adding the `sed 1q' prevents false positives on HP-UX, which says:
5736	#   nm: unknown option "B" ignored
5737	# Tru64's nm complains that /dev/null is an invalid object file
5738	case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5739	*/dev/null* | *'Invalid file or object type'*)
5740	  lt_cv_path_NM="$tmp_nm -B"
5741	  break
5742	  ;;
5743	*)
5744	  case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5745	  */dev/null*)
5746	    lt_cv_path_NM="$tmp_nm -p"
5747	    break
5748	    ;;
5749	  *)
5750	    lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5751	    continue # so that we can try to find one that supports BSD flags
5752	    ;;
5753	  esac
5754	  ;;
5755	esac
5756      fi
5757    done
5758    IFS="$lt_save_ifs"
5759  done
5760  : ${lt_cv_path_NM=no}
5761fi
5762fi
5763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
5764$as_echo "$lt_cv_path_NM" >&6; }
5765if test "$lt_cv_path_NM" != "no"; then
5766  NM="$lt_cv_path_NM"
5767else
5768  # Didn't find any BSD compatible name lister, look for dumpbin.
5769  if test -n "$DUMPBIN"; then :
5770    # Let the user override the test.
5771  else
5772    if test -n "$ac_tool_prefix"; then
5773  for ac_prog in dumpbin "link -dump"
5774  do
5775    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5776set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5778$as_echo_n "checking for $ac_word... " >&6; }
5779if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
5780  $as_echo_n "(cached) " >&6
5781else
5782  if test -n "$DUMPBIN"; then
5783  ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
5784else
5785as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5786for as_dir in $PATH
5787do
5788  IFS=$as_save_IFS
5789  test -z "$as_dir" && as_dir=.
5790    for ac_exec_ext in '' $ac_executable_extensions; do
5791  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5792    ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
5793    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5794    break 2
5795  fi
5796done
5797  done
5798IFS=$as_save_IFS
5799
5800fi
5801fi
5802DUMPBIN=$ac_cv_prog_DUMPBIN
5803if test -n "$DUMPBIN"; then
5804  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
5805$as_echo "$DUMPBIN" >&6; }
5806else
5807  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5808$as_echo "no" >&6; }
5809fi
5810
5811
5812    test -n "$DUMPBIN" && break
5813  done
5814fi
5815if test -z "$DUMPBIN"; then
5816  ac_ct_DUMPBIN=$DUMPBIN
5817  for ac_prog in dumpbin "link -dump"
5818do
5819  # Extract the first word of "$ac_prog", so it can be a program name with args.
5820set dummy $ac_prog; ac_word=$2
5821{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5822$as_echo_n "checking for $ac_word... " >&6; }
5823if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
5824  $as_echo_n "(cached) " >&6
5825else
5826  if test -n "$ac_ct_DUMPBIN"; then
5827  ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5828else
5829as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5830for as_dir in $PATH
5831do
5832  IFS=$as_save_IFS
5833  test -z "$as_dir" && as_dir=.
5834    for ac_exec_ext in '' $ac_executable_extensions; do
5835  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5836    ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5837    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5838    break 2
5839  fi
5840done
5841  done
5842IFS=$as_save_IFS
5843
5844fi
5845fi
5846ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5847if test -n "$ac_ct_DUMPBIN"; then
5848  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5849$as_echo "$ac_ct_DUMPBIN" >&6; }
5850else
5851  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5852$as_echo "no" >&6; }
5853fi
5854
5855
5856  test -n "$ac_ct_DUMPBIN" && break
5857done
5858
5859  if test "x$ac_ct_DUMPBIN" = x; then
5860    DUMPBIN=":"
5861  else
5862    case $cross_compiling:$ac_tool_warned in
5863yes:)
5864{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5865$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5866ac_tool_warned=yes ;;
5867esac
5868    DUMPBIN=$ac_ct_DUMPBIN
5869  fi
5870fi
5871
5872    case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5873    *COFF*)
5874      DUMPBIN="$DUMPBIN -symbols"
5875      ;;
5876    *)
5877      DUMPBIN=:
5878      ;;
5879    esac
5880  fi
5881
5882  if test "$DUMPBIN" != ":"; then
5883    NM="$DUMPBIN"
5884  fi
5885fi
5886test -z "$NM" && NM=nm
5887
5888
5889
5890
5891
5892
5893{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5894$as_echo_n "checking the name lister ($NM) interface... " >&6; }
5895if test "${lt_cv_nm_interface+set}" = set; then :
5896  $as_echo_n "(cached) " >&6
5897else
5898  lt_cv_nm_interface="BSD nm"
5899  echo "int some_variable = 0;" > conftest.$ac_ext
5900  (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5901  (eval "$ac_compile" 2>conftest.err)
5902  cat conftest.err >&5
5903  (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5904  (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5905  cat conftest.err >&5
5906  (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5907  cat conftest.out >&5
5908  if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5909    lt_cv_nm_interface="MS dumpbin"
5910  fi
5911  rm -f conftest*
5912fi
5913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5914$as_echo "$lt_cv_nm_interface" >&6; }
5915
5916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5917$as_echo_n "checking whether ln -s works... " >&6; }
5918LN_S=$as_ln_s
5919if test "$LN_S" = "ln -s"; then
5920  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5921$as_echo "yes" >&6; }
5922else
5923  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5924$as_echo "no, using $LN_S" >&6; }
5925fi
5926
5927# find the maximum length of command line arguments
5928{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5929$as_echo_n "checking the maximum length of command line arguments... " >&6; }
5930if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
5931  $as_echo_n "(cached) " >&6
5932else
5933    i=0
5934  teststring="ABCD"
5935
5936  case $build_os in
5937  msdosdjgpp*)
5938    # On DJGPP, this test can blow up pretty badly due to problems in libc
5939    # (any single argument exceeding 2000 bytes causes a buffer overrun
5940    # during glob expansion).  Even if it were fixed, the result of this
5941    # check would be larger than it should be.
5942    lt_cv_sys_max_cmd_len=12288;    # 12K is about right
5943    ;;
5944
5945  gnu*)
5946    # Under GNU Hurd, this test is not required because there is
5947    # no limit to the length of command line arguments.
5948    # Libtool will interpret -1 as no limit whatsoever
5949    lt_cv_sys_max_cmd_len=-1;
5950    ;;
5951
5952  cygwin* | mingw* | cegcc*)
5953    # On Win9x/ME, this test blows up -- it succeeds, but takes
5954    # about 5 minutes as the teststring grows exponentially.
5955    # Worse, since 9x/ME are not pre-emptively multitasking,
5956    # you end up with a "frozen" computer, even though with patience
5957    # the test eventually succeeds (with a max line length of 256k).
5958    # Instead, let's just punt: use the minimum linelength reported by
5959    # all of the supported platforms: 8192 (on NT/2K/XP).
5960    lt_cv_sys_max_cmd_len=8192;
5961    ;;
5962
5963  mint*)
5964    # On MiNT this can take a long time and run out of memory.
5965    lt_cv_sys_max_cmd_len=8192;
5966    ;;
5967
5968  amigaos*)
5969    # On AmigaOS with pdksh, this test takes hours, literally.
5970    # So we just punt and use a minimum line length of 8192.
5971    lt_cv_sys_max_cmd_len=8192;
5972    ;;
5973
5974  netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5975    # This has been around since 386BSD, at least.  Likely further.
5976    if test -x /sbin/sysctl; then
5977      lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5978    elif test -x /usr/sbin/sysctl; then
5979      lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5980    else
5981      lt_cv_sys_max_cmd_len=65536	# usable default for all BSDs
5982    fi
5983    # And add a safety zone
5984    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5985    lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5986    ;;
5987
5988  interix*)
5989    # We know the value 262144 and hardcode it with a safety zone (like BSD)
5990    lt_cv_sys_max_cmd_len=196608
5991    ;;
5992
5993  osf*)
5994    # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5995    # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5996    # nice to cause kernel panics so lets avoid the loop below.
5997    # First set a reasonable default.
5998    lt_cv_sys_max_cmd_len=16384
5999    #
6000    if test -x /sbin/sysconfig; then
6001      case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6002        *1*) lt_cv_sys_max_cmd_len=-1 ;;
6003      esac
6004    fi
6005    ;;
6006  sco3.2v5*)
6007    lt_cv_sys_max_cmd_len=102400
6008    ;;
6009  sysv5* | sco5v6* | sysv4.2uw2*)
6010    kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6011    if test -n "$kargmax"; then
6012      lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[	 ]//'`
6013    else
6014      lt_cv_sys_max_cmd_len=32768
6015    fi
6016    ;;
6017  *)
6018    lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6019    if test -n "$lt_cv_sys_max_cmd_len"; then
6020      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6021      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6022    else
6023      # Make teststring a little bigger before we do anything with it.
6024      # a 1K string should be a reasonable start.
6025      for i in 1 2 3 4 5 6 7 8 ; do
6026        teststring=$teststring$teststring
6027      done
6028      SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6029      # If test is not a shell built-in, we'll probably end up computing a
6030      # maximum length that is only half of the actual maximum length, but
6031      # we can't tell.
6032      while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6033	         = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6034	      test $i != 17 # 1/2 MB should be enough
6035      do
6036        i=`expr $i + 1`
6037        teststring=$teststring$teststring
6038      done
6039      # Only check the string length outside the loop.
6040      lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6041      teststring=
6042      # Add a significant safety factor because C++ compilers can tack on
6043      # massive amounts of additional arguments before passing them to the
6044      # linker.  It appears as though 1/2 is a usable value.
6045      lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6046    fi
6047    ;;
6048  esac
6049
6050fi
6051
6052if test -n $lt_cv_sys_max_cmd_len ; then
6053  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6054$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6055else
6056  { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6057$as_echo "none" >&6; }
6058fi
6059max_cmd_len=$lt_cv_sys_max_cmd_len
6060
6061
6062
6063
6064
6065
6066: ${CP="cp -f"}
6067: ${MV="mv -f"}
6068: ${RM="rm -f"}
6069
6070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6071$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6072# Try some XSI features
6073xsi_shell=no
6074( _lt_dummy="a/b/c"
6075  test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6076      = c,a/b,, \
6077    && eval 'test $(( 1 + 1 )) -eq 2 \
6078    && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6079  && xsi_shell=yes
6080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6081$as_echo "$xsi_shell" >&6; }
6082
6083
6084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6085$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6086lt_shell_append=no
6087( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6088    >/dev/null 2>&1 \
6089  && lt_shell_append=yes
6090{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6091$as_echo "$lt_shell_append" >&6; }
6092
6093
6094if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6095  lt_unset=unset
6096else
6097  lt_unset=false
6098fi
6099
6100
6101
6102
6103
6104# test EBCDIC or ASCII
6105case `echo X|tr X '\101'` in
6106 A) # ASCII based system
6107    # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6108  lt_SP2NL='tr \040 \012'
6109  lt_NL2SP='tr \015\012 \040\040'
6110  ;;
6111 *) # EBCDIC based system
6112  lt_SP2NL='tr \100 \n'
6113  lt_NL2SP='tr \r\n \100\100'
6114  ;;
6115esac
6116
6117
6118
6119
6120
6121
6122
6123
6124
6125{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6126$as_echo_n "checking for $LD option to reload object files... " >&6; }
6127if test "${lt_cv_ld_reload_flag+set}" = set; then :
6128  $as_echo_n "(cached) " >&6
6129else
6130  lt_cv_ld_reload_flag='-r'
6131fi
6132{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6133$as_echo "$lt_cv_ld_reload_flag" >&6; }
6134reload_flag=$lt_cv_ld_reload_flag
6135case $reload_flag in
6136"" | " "*) ;;
6137*) reload_flag=" $reload_flag" ;;
6138esac
6139reload_cmds='$LD$reload_flag -o $output$reload_objs'
6140case $host_os in
6141  darwin*)
6142    if test "$GCC" = yes; then
6143      reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6144    else
6145      reload_cmds='$LD$reload_flag -o $output$reload_objs'
6146    fi
6147    ;;
6148esac
6149
6150
6151
6152
6153
6154
6155
6156
6157
6158if test -n "$ac_tool_prefix"; then
6159  # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6160set dummy ${ac_tool_prefix}objdump; ac_word=$2
6161{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6162$as_echo_n "checking for $ac_word... " >&6; }
6163if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6164  $as_echo_n "(cached) " >&6
6165else
6166  if test -n "$OBJDUMP"; then
6167  ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6168else
6169as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6170for as_dir in $PATH
6171do
6172  IFS=$as_save_IFS
6173  test -z "$as_dir" && as_dir=.
6174    for ac_exec_ext in '' $ac_executable_extensions; do
6175  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6176    ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6177    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6178    break 2
6179  fi
6180done
6181  done
6182IFS=$as_save_IFS
6183
6184fi
6185fi
6186OBJDUMP=$ac_cv_prog_OBJDUMP
6187if test -n "$OBJDUMP"; then
6188  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6189$as_echo "$OBJDUMP" >&6; }
6190else
6191  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6192$as_echo "no" >&6; }
6193fi
6194
6195
6196fi
6197if test -z "$ac_cv_prog_OBJDUMP"; then
6198  ac_ct_OBJDUMP=$OBJDUMP
6199  # Extract the first word of "objdump", so it can be a program name with args.
6200set dummy objdump; ac_word=$2
6201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6202$as_echo_n "checking for $ac_word... " >&6; }
6203if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6204  $as_echo_n "(cached) " >&6
6205else
6206  if test -n "$ac_ct_OBJDUMP"; then
6207  ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6208else
6209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6210for as_dir in $PATH
6211do
6212  IFS=$as_save_IFS
6213  test -z "$as_dir" && as_dir=.
6214    for ac_exec_ext in '' $ac_executable_extensions; do
6215  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6216    ac_cv_prog_ac_ct_OBJDUMP="objdump"
6217    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6218    break 2
6219  fi
6220done
6221  done
6222IFS=$as_save_IFS
6223
6224fi
6225fi
6226ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6227if test -n "$ac_ct_OBJDUMP"; then
6228  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6229$as_echo "$ac_ct_OBJDUMP" >&6; }
6230else
6231  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6232$as_echo "no" >&6; }
6233fi
6234
6235  if test "x$ac_ct_OBJDUMP" = x; then
6236    OBJDUMP="false"
6237  else
6238    case $cross_compiling:$ac_tool_warned in
6239yes:)
6240{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6241$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6242ac_tool_warned=yes ;;
6243esac
6244    OBJDUMP=$ac_ct_OBJDUMP
6245  fi
6246else
6247  OBJDUMP="$ac_cv_prog_OBJDUMP"
6248fi
6249
6250test -z "$OBJDUMP" && OBJDUMP=objdump
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6261$as_echo_n "checking how to recognize dependent libraries... " >&6; }
6262if test "${lt_cv_deplibs_check_method+set}" = set; then :
6263  $as_echo_n "(cached) " >&6
6264else
6265  lt_cv_file_magic_cmd='$MAGIC_CMD'
6266lt_cv_file_magic_test_file=
6267lt_cv_deplibs_check_method='unknown'
6268# Need to set the preceding variable on all platforms that support
6269# interlibrary dependencies.
6270# 'none' -- dependencies not supported.
6271# `unknown' -- same as none, but documents that we really don't know.
6272# 'pass_all' -- all dependencies passed with no checks.
6273# 'test_compile' -- check by making test program.
6274# 'file_magic [[regex]]' -- check by looking for files in library path
6275# which responds to the $file_magic_cmd with a given extended regex.
6276# If you have `file' or equivalent on your system and you're not sure
6277# whether `pass_all' will *always* work, you probably want this one.
6278
6279case $host_os in
6280aix[4-9]*)
6281  lt_cv_deplibs_check_method=pass_all
6282  ;;
6283
6284beos*)
6285  lt_cv_deplibs_check_method=pass_all
6286  ;;
6287
6288bsdi[45]*)
6289  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6290  lt_cv_file_magic_cmd='/usr/bin/file -L'
6291  lt_cv_file_magic_test_file=/shlib/libc.so
6292  ;;
6293
6294cygwin*)
6295  # func_win32_libid is a shell function defined in ltmain.sh
6296  lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6297  lt_cv_file_magic_cmd='func_win32_libid'
6298  ;;
6299
6300mingw* | pw32*)
6301  # Base MSYS/MinGW do not provide the 'file' command needed by
6302  # func_win32_libid shell function, so use a weaker test based on 'objdump',
6303  # unless we find 'file', for example because we are cross-compiling.
6304  # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6305  if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6306    lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6307    lt_cv_file_magic_cmd='func_win32_libid'
6308  else
6309    # Keep this pattern in sync with the one in func_win32_libid.
6310    lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
6311    lt_cv_file_magic_cmd='$OBJDUMP -f'
6312  fi
6313  ;;
6314
6315cegcc*)
6316  # use the weaker test based on 'objdump'. See mingw*.
6317  lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
6318  lt_cv_file_magic_cmd='$OBJDUMP -f'
6319  ;;
6320
6321darwin* | rhapsody*)
6322  lt_cv_deplibs_check_method=pass_all
6323  ;;
6324
6325freebsd* | dragonfly*)
6326  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6327    case $host_cpu in
6328    i*86 )
6329      # Not sure whether the presence of OpenBSD here was a mistake.
6330      # Let's accept both of them until this is cleared up.
6331      lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
6332      lt_cv_file_magic_cmd=/usr/bin/file
6333      lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6334      ;;
6335    esac
6336  else
6337    lt_cv_deplibs_check_method=pass_all
6338  fi
6339  ;;
6340
6341gnu*)
6342  lt_cv_deplibs_check_method=pass_all
6343  ;;
6344
6345haiku*)
6346  lt_cv_deplibs_check_method=pass_all
6347  ;;
6348
6349hpux10.20* | hpux11*)
6350  lt_cv_file_magic_cmd=/usr/bin/file
6351  case $host_cpu in
6352  ia64*)
6353    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6354    lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6355    ;;
6356  hppa*64*)
6357    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]'
6358    lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6359    ;;
6360  *)
6361    lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
6362    lt_cv_file_magic_test_file=/usr/lib/libc.sl
6363    ;;
6364  esac
6365  ;;
6366
6367interix[3-9]*)
6368  # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
6369  lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
6370  ;;
6371
6372irix5* | irix6* | nonstopux*)
6373  case $LD in
6374  *-32|*"-32 ") libmagic=32-bit;;
6375  *-n32|*"-n32 ") libmagic=N32;;
6376  *-64|*"-64 ") libmagic=64-bit;;
6377  *) libmagic=never-match;;
6378  esac
6379  lt_cv_deplibs_check_method=pass_all
6380  ;;
6381
6382# This must be Linux ELF.
6383linux* | k*bsd*-gnu | kopensolaris*-gnu)
6384  lt_cv_deplibs_check_method=pass_all
6385  ;;
6386
6387netbsd*)
6388  if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
6389    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6390  else
6391    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6392  fi
6393  ;;
6394
6395newos6*)
6396  lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6397  lt_cv_file_magic_cmd=/usr/bin/file
6398  lt_cv_file_magic_test_file=/usr/lib/libnls.so
6399  ;;
6400
6401*nto* | *qnx*)
6402  lt_cv_deplibs_check_method=pass_all
6403  ;;
6404
6405openbsd*)
6406  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6407    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
6408  else
6409    lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6410  fi
6411  ;;
6412
6413osf3* | osf4* | osf5*)
6414  lt_cv_deplibs_check_method=pass_all
6415  ;;
6416
6417rdos*)
6418  lt_cv_deplibs_check_method=pass_all
6419  ;;
6420
6421solaris*)
6422  lt_cv_deplibs_check_method=pass_all
6423  ;;
6424
6425sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
6426  lt_cv_deplibs_check_method=pass_all
6427  ;;
6428
6429sysv4 | sysv4.3*)
6430  case $host_vendor in
6431  motorola)
6432    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]'
6433    lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6434    ;;
6435  ncr)
6436    lt_cv_deplibs_check_method=pass_all
6437    ;;
6438  sequent)
6439    lt_cv_file_magic_cmd='/bin/file'
6440    lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6441    ;;
6442  sni)
6443    lt_cv_file_magic_cmd='/bin/file'
6444    lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6445    lt_cv_file_magic_test_file=/lib/libc.so
6446    ;;
6447  siemens)
6448    lt_cv_deplibs_check_method=pass_all
6449    ;;
6450  pc)
6451    lt_cv_deplibs_check_method=pass_all
6452    ;;
6453  esac
6454  ;;
6455
6456tpf*)
6457  lt_cv_deplibs_check_method=pass_all
6458  ;;
6459esac
6460
6461fi
6462{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
6463$as_echo "$lt_cv_deplibs_check_method" >&6; }
6464file_magic_cmd=$lt_cv_file_magic_cmd
6465deplibs_check_method=$lt_cv_deplibs_check_method
6466test -z "$deplibs_check_method" && deplibs_check_method=unknown
6467
6468
6469
6470
6471
6472
6473
6474
6475
6476
6477
6478
6479if test -n "$ac_tool_prefix"; then
6480  # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6481set dummy ${ac_tool_prefix}ar; ac_word=$2
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6483$as_echo_n "checking for $ac_word... " >&6; }
6484if test "${ac_cv_prog_AR+set}" = set; then :
6485  $as_echo_n "(cached) " >&6
6486else
6487  if test -n "$AR"; then
6488  ac_cv_prog_AR="$AR" # Let the user override the test.
6489else
6490as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6491for as_dir in $PATH
6492do
6493  IFS=$as_save_IFS
6494  test -z "$as_dir" && as_dir=.
6495    for ac_exec_ext in '' $ac_executable_extensions; do
6496  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6497    ac_cv_prog_AR="${ac_tool_prefix}ar"
6498    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6499    break 2
6500  fi
6501done
6502  done
6503IFS=$as_save_IFS
6504
6505fi
6506fi
6507AR=$ac_cv_prog_AR
6508if test -n "$AR"; then
6509  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6510$as_echo "$AR" >&6; }
6511else
6512  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6513$as_echo "no" >&6; }
6514fi
6515
6516
6517fi
6518if test -z "$ac_cv_prog_AR"; then
6519  ac_ct_AR=$AR
6520  # Extract the first word of "ar", so it can be a program name with args.
6521set dummy ar; ac_word=$2
6522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6523$as_echo_n "checking for $ac_word... " >&6; }
6524if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6525  $as_echo_n "(cached) " >&6
6526else
6527  if test -n "$ac_ct_AR"; then
6528  ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6529else
6530as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6531for as_dir in $PATH
6532do
6533  IFS=$as_save_IFS
6534  test -z "$as_dir" && as_dir=.
6535    for ac_exec_ext in '' $ac_executable_extensions; do
6536  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6537    ac_cv_prog_ac_ct_AR="ar"
6538    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6539    break 2
6540  fi
6541done
6542  done
6543IFS=$as_save_IFS
6544
6545fi
6546fi
6547ac_ct_AR=$ac_cv_prog_ac_ct_AR
6548if test -n "$ac_ct_AR"; then
6549  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6550$as_echo "$ac_ct_AR" >&6; }
6551else
6552  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6553$as_echo "no" >&6; }
6554fi
6555
6556  if test "x$ac_ct_AR" = x; then
6557    AR="false"
6558  else
6559    case $cross_compiling:$ac_tool_warned in
6560yes:)
6561{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6562$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6563ac_tool_warned=yes ;;
6564esac
6565    AR=$ac_ct_AR
6566  fi
6567else
6568  AR="$ac_cv_prog_AR"
6569fi
6570
6571test -z "$AR" && AR=ar
6572test -z "$AR_FLAGS" && AR_FLAGS=cru
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584if test -n "$ac_tool_prefix"; then
6585  # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6586set dummy ${ac_tool_prefix}strip; ac_word=$2
6587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6588$as_echo_n "checking for $ac_word... " >&6; }
6589if test "${ac_cv_prog_STRIP+set}" = set; then :
6590  $as_echo_n "(cached) " >&6
6591else
6592  if test -n "$STRIP"; then
6593  ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6594else
6595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6596for as_dir in $PATH
6597do
6598  IFS=$as_save_IFS
6599  test -z "$as_dir" && as_dir=.
6600    for ac_exec_ext in '' $ac_executable_extensions; do
6601  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6602    ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6603    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6604    break 2
6605  fi
6606done
6607  done
6608IFS=$as_save_IFS
6609
6610fi
6611fi
6612STRIP=$ac_cv_prog_STRIP
6613if test -n "$STRIP"; then
6614  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6615$as_echo "$STRIP" >&6; }
6616else
6617  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6618$as_echo "no" >&6; }
6619fi
6620
6621
6622fi
6623if test -z "$ac_cv_prog_STRIP"; then
6624  ac_ct_STRIP=$STRIP
6625  # Extract the first word of "strip", so it can be a program name with args.
6626set dummy strip; ac_word=$2
6627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6628$as_echo_n "checking for $ac_word... " >&6; }
6629if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
6630  $as_echo_n "(cached) " >&6
6631else
6632  if test -n "$ac_ct_STRIP"; then
6633  ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6634else
6635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6636for as_dir in $PATH
6637do
6638  IFS=$as_save_IFS
6639  test -z "$as_dir" && as_dir=.
6640    for ac_exec_ext in '' $ac_executable_extensions; do
6641  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6642    ac_cv_prog_ac_ct_STRIP="strip"
6643    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6644    break 2
6645  fi
6646done
6647  done
6648IFS=$as_save_IFS
6649
6650fi
6651fi
6652ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6653if test -n "$ac_ct_STRIP"; then
6654  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6655$as_echo "$ac_ct_STRIP" >&6; }
6656else
6657  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6658$as_echo "no" >&6; }
6659fi
6660
6661  if test "x$ac_ct_STRIP" = x; then
6662    STRIP=":"
6663  else
6664    case $cross_compiling:$ac_tool_warned in
6665yes:)
6666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6668ac_tool_warned=yes ;;
6669esac
6670    STRIP=$ac_ct_STRIP
6671  fi
6672else
6673  STRIP="$ac_cv_prog_STRIP"
6674fi
6675
6676test -z "$STRIP" && STRIP=:
6677
6678
6679
6680
6681
6682
6683if test -n "$ac_tool_prefix"; then
6684  # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6685set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6687$as_echo_n "checking for $ac_word... " >&6; }
6688if test "${ac_cv_prog_RANLIB+set}" = set; then :
6689  $as_echo_n "(cached) " >&6
6690else
6691  if test -n "$RANLIB"; then
6692  ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6693else
6694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6695for as_dir in $PATH
6696do
6697  IFS=$as_save_IFS
6698  test -z "$as_dir" && as_dir=.
6699    for ac_exec_ext in '' $ac_executable_extensions; do
6700  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6701    ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6702    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6703    break 2
6704  fi
6705done
6706  done
6707IFS=$as_save_IFS
6708
6709fi
6710fi
6711RANLIB=$ac_cv_prog_RANLIB
6712if test -n "$RANLIB"; then
6713  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6714$as_echo "$RANLIB" >&6; }
6715else
6716  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6717$as_echo "no" >&6; }
6718fi
6719
6720
6721fi
6722if test -z "$ac_cv_prog_RANLIB"; then
6723  ac_ct_RANLIB=$RANLIB
6724  # Extract the first word of "ranlib", so it can be a program name with args.
6725set dummy ranlib; ac_word=$2
6726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6727$as_echo_n "checking for $ac_word... " >&6; }
6728if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6729  $as_echo_n "(cached) " >&6
6730else
6731  if test -n "$ac_ct_RANLIB"; then
6732  ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6733else
6734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6735for as_dir in $PATH
6736do
6737  IFS=$as_save_IFS
6738  test -z "$as_dir" && as_dir=.
6739    for ac_exec_ext in '' $ac_executable_extensions; do
6740  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6741    ac_cv_prog_ac_ct_RANLIB="ranlib"
6742    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6743    break 2
6744  fi
6745done
6746  done
6747IFS=$as_save_IFS
6748
6749fi
6750fi
6751ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6752if test -n "$ac_ct_RANLIB"; then
6753  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6754$as_echo "$ac_ct_RANLIB" >&6; }
6755else
6756  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6757$as_echo "no" >&6; }
6758fi
6759
6760  if test "x$ac_ct_RANLIB" = x; then
6761    RANLIB=":"
6762  else
6763    case $cross_compiling:$ac_tool_warned in
6764yes:)
6765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6767ac_tool_warned=yes ;;
6768esac
6769    RANLIB=$ac_ct_RANLIB
6770  fi
6771else
6772  RANLIB="$ac_cv_prog_RANLIB"
6773fi
6774
6775test -z "$RANLIB" && RANLIB=:
6776
6777
6778
6779
6780
6781
6782# Determine commands to create old-style static archives.
6783old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6784old_postinstall_cmds='chmod 644 $oldlib'
6785old_postuninstall_cmds=
6786
6787if test -n "$RANLIB"; then
6788  case $host_os in
6789  openbsd*)
6790    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6791    ;;
6792  *)
6793    old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6794    ;;
6795  esac
6796  old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6797fi
6798
6799case $host_os in
6800  darwin*)
6801    lock_old_archive_extraction=yes ;;
6802  *)
6803    lock_old_archive_extraction=no ;;
6804esac
6805
6806
6807
6808
6809
6810
6811
6812
6813
6814
6815
6816
6817
6818
6819
6820
6821
6822
6823
6824
6825
6826for ac_prog in gawk mawk nawk awk
6827do
6828  # Extract the first word of "$ac_prog", so it can be a program name with args.
6829set dummy $ac_prog; ac_word=$2
6830{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6831$as_echo_n "checking for $ac_word... " >&6; }
6832if test "${ac_cv_prog_AWK+set}" = set; then :
6833  $as_echo_n "(cached) " >&6
6834else
6835  if test -n "$AWK"; then
6836  ac_cv_prog_AWK="$AWK" # Let the user override the test.
6837else
6838as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6839for as_dir in $PATH
6840do
6841  IFS=$as_save_IFS
6842  test -z "$as_dir" && as_dir=.
6843    for ac_exec_ext in '' $ac_executable_extensions; do
6844  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6845    ac_cv_prog_AWK="$ac_prog"
6846    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6847    break 2
6848  fi
6849done
6850  done
6851IFS=$as_save_IFS
6852
6853fi
6854fi
6855AWK=$ac_cv_prog_AWK
6856if test -n "$AWK"; then
6857  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6858$as_echo "$AWK" >&6; }
6859else
6860  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6861$as_echo "no" >&6; }
6862fi
6863
6864
6865  test -n "$AWK" && break
6866done
6867
6868
6869
6870
6871
6872
6873
6874
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885
6886# If no C compiler was specified, use CC.
6887LTCC=${LTCC-"$CC"}
6888
6889# If no C compiler flags were specified, use CFLAGS.
6890LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6891
6892# Allow CC to be a program name with arguments.
6893compiler=$CC
6894
6895
6896# Check for command to grab the raw symbol name followed by C symbol from nm.
6897{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6898$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6899if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
6900  $as_echo_n "(cached) " >&6
6901else
6902
6903# These are sane defaults that work on at least a few old systems.
6904# [They come from Ultrix.  What could be older than Ultrix?!! ;)]
6905
6906# Character class describing NM global symbol codes.
6907symcode='[BCDEGRST]'
6908
6909# Regexp to match symbols that can be accessed directly from C.
6910sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6911
6912# Define system-specific variables.
6913case $host_os in
6914aix*)
6915  symcode='[BCDT]'
6916  ;;
6917cygwin* | mingw* | pw32* | cegcc*)
6918  symcode='[ABCDGISTW]'
6919  ;;
6920hpux*)
6921  if test "$host_cpu" = ia64; then
6922    symcode='[ABCDEGRST]'
6923  fi
6924  ;;
6925irix* | nonstopux*)
6926  symcode='[BCDEGRST]'
6927  ;;
6928osf*)
6929  symcode='[BCDEGQRST]'
6930  ;;
6931solaris*)
6932  symcode='[BDRT]'
6933  ;;
6934sco3.2v5*)
6935  symcode='[DT]'
6936  ;;
6937sysv4.2uw2*)
6938  symcode='[DT]'
6939  ;;
6940sysv5* | sco5v6* | unixware* | OpenUNIX*)
6941  symcode='[ABDT]'
6942  ;;
6943sysv4)
6944  symcode='[DFNSTU]'
6945  ;;
6946esac
6947
6948# If we're using GNU nm, then use its standard symbol codes.
6949case `$NM -V 2>&1` in
6950*GNU* | *'with BFD'*)
6951  symcode='[ABCDGIRSTW]' ;;
6952esac
6953
6954# Transform an extracted symbol line into a proper C declaration.
6955# Some systems (esp. on ia64) link data and code symbols differently,
6956# so use this general approach.
6957lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6958
6959# Transform an extracted symbol line into symbol name and symbol address
6960lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"\2\", (void *) \&\2},/p'"
6961lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/  {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/  {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/  {\"lib\2\", (void *) \&\2},/p'"
6962
6963# Handle CRLF in mingw tool chain
6964opt_cr=
6965case $build_os in
6966mingw*)
6967  opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6968  ;;
6969esac
6970
6971# Try without a prefix underscore, then with it.
6972for ac_symprfx in "" "_"; do
6973
6974  # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6975  symxfrm="\\1 $ac_symprfx\\2 \\2"
6976
6977  # Write the raw and C identifiers.
6978  if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6979    # Fake it for dumpbin and say T for any non-static function
6980    # and D for any global variable.
6981    # Also find C++ and __fastcall symbols from MSVC++,
6982    # which start with @ or ?.
6983    lt_cv_sys_global_symbol_pipe="$AWK '"\
6984"     {last_section=section; section=\$ 3};"\
6985"     /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6986"     \$ 0!~/External *\|/{next};"\
6987"     / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6988"     {if(hide[section]) next};"\
6989"     {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6990"     {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6991"     s[1]~/^[@?]/{print s[1], s[1]; next};"\
6992"     s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6993"     ' prfx=^$ac_symprfx"
6994  else
6995    lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[	 ]\($symcode$symcode*\)[	 ][	 ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6996  fi
6997
6998  # Check to see that the pipe works correctly.
6999  pipe_works=no
7000
7001  rm -f conftest*
7002  cat > conftest.$ac_ext <<_LT_EOF
7003#ifdef __cplusplus
7004extern "C" {
7005#endif
7006char nm_test_var;
7007void nm_test_func(void);
7008void nm_test_func(void){}
7009#ifdef __cplusplus
7010}
7011#endif
7012int main(){nm_test_var='a';nm_test_func();return(0);}
7013_LT_EOF
7014
7015  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7016  (eval $ac_compile) 2>&5
7017  ac_status=$?
7018  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7019  test $ac_status = 0; }; then
7020    # Now try to grab the symbols.
7021    nlist=conftest.nm
7022    if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7023  (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7024  ac_status=$?
7025  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7026  test $ac_status = 0; } && test -s "$nlist"; then
7027      # Try sorting and uniquifying the output.
7028      if sort "$nlist" | uniq > "$nlist"T; then
7029	mv -f "$nlist"T "$nlist"
7030      else
7031	rm -f "$nlist"T
7032      fi
7033
7034      # Make sure that we snagged all the symbols we need.
7035      if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7036	if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7037	  cat <<_LT_EOF > conftest.$ac_ext
7038#ifdef __cplusplus
7039extern "C" {
7040#endif
7041
7042_LT_EOF
7043	  # Now generate the symbol file.
7044	  eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7045
7046	  cat <<_LT_EOF >> conftest.$ac_ext
7047
7048/* The mapping between symbol names and symbols.  */
7049const struct {
7050  const char *name;
7051  void       *address;
7052}
7053lt__PROGRAM__LTX_preloaded_symbols[] =
7054{
7055  { "@PROGRAM@", (void *) 0 },
7056_LT_EOF
7057	  $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7058	  cat <<\_LT_EOF >> conftest.$ac_ext
7059  {0, (void *) 0}
7060};
7061
7062/* This works around a problem in FreeBSD linker */
7063#ifdef FREEBSD_WORKAROUND
7064static const void *lt_preloaded_setup() {
7065  return lt__PROGRAM__LTX_preloaded_symbols;
7066}
7067#endif
7068
7069#ifdef __cplusplus
7070}
7071#endif
7072_LT_EOF
7073	  # Now try linking the two files.
7074	  mv conftest.$ac_objext conftstm.$ac_objext
7075	  lt_save_LIBS="$LIBS"
7076	  lt_save_CFLAGS="$CFLAGS"
7077	  LIBS="conftstm.$ac_objext"
7078	  CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7079	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7080  (eval $ac_link) 2>&5
7081  ac_status=$?
7082  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7083  test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7084	    pipe_works=yes
7085	  fi
7086	  LIBS="$lt_save_LIBS"
7087	  CFLAGS="$lt_save_CFLAGS"
7088	else
7089	  echo "cannot find nm_test_func in $nlist" >&5
7090	fi
7091      else
7092	echo "cannot find nm_test_var in $nlist" >&5
7093      fi
7094    else
7095      echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7096    fi
7097  else
7098    echo "$progname: failed program was:" >&5
7099    cat conftest.$ac_ext >&5
7100  fi
7101  rm -rf conftest* conftst*
7102
7103  # Do not use the global_symbol_pipe unless it works.
7104  if test "$pipe_works" = yes; then
7105    break
7106  else
7107    lt_cv_sys_global_symbol_pipe=
7108  fi
7109done
7110
7111fi
7112
7113if test -z "$lt_cv_sys_global_symbol_pipe"; then
7114  lt_cv_sys_global_symbol_to_cdecl=
7115fi
7116if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7117  { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7118$as_echo "failed" >&6; }
7119else
7120  { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7121$as_echo "ok" >&6; }
7122fi
7123
7124
7125
7126
7127
7128
7129
7130
7131
7132
7133
7134
7135
7136
7137
7138
7139
7140
7141
7142
7143
7144
7145# Check whether --enable-libtool-lock was given.
7146if test "${enable_libtool_lock+set}" = set; then :
7147  enableval=$enable_libtool_lock;
7148fi
7149
7150test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7151
7152# Some flags need to be propagated to the compiler or linker for good
7153# libtool support.
7154case $host in
7155ia64-*-hpux*)
7156  # Find out which ABI we are using.
7157  echo 'int i;' > conftest.$ac_ext
7158  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7159  (eval $ac_compile) 2>&5
7160  ac_status=$?
7161  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7162  test $ac_status = 0; }; then
7163    case `/usr/bin/file conftest.$ac_objext` in
7164      *ELF-32*)
7165	HPUX_IA64_MODE="32"
7166	;;
7167      *ELF-64*)
7168	HPUX_IA64_MODE="64"
7169	;;
7170    esac
7171  fi
7172  rm -rf conftest*
7173  ;;
7174*-*-irix6*)
7175  # Find out which ABI we are using.
7176  echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7177  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7178  (eval $ac_compile) 2>&5
7179  ac_status=$?
7180  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7181  test $ac_status = 0; }; then
7182    if test "$lt_cv_prog_gnu_ld" = yes; then
7183      case `/usr/bin/file conftest.$ac_objext` in
7184	*32-bit*)
7185	  LD="${LD-ld} -melf32bsmip"
7186	  ;;
7187	*N32*)
7188	  LD="${LD-ld} -melf32bmipn32"
7189	  ;;
7190	*64-bit*)
7191	  LD="${LD-ld} -melf64bmip"
7192	;;
7193      esac
7194    else
7195      case `/usr/bin/file conftest.$ac_objext` in
7196	*32-bit*)
7197	  LD="${LD-ld} -32"
7198	  ;;
7199	*N32*)
7200	  LD="${LD-ld} -n32"
7201	  ;;
7202	*64-bit*)
7203	  LD="${LD-ld} -64"
7204	  ;;
7205      esac
7206    fi
7207  fi
7208  rm -rf conftest*
7209  ;;
7210
7211x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7212s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7213  # Find out which ABI we are using.
7214  echo 'int i;' > conftest.$ac_ext
7215  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7216  (eval $ac_compile) 2>&5
7217  ac_status=$?
7218  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7219  test $ac_status = 0; }; then
7220    case `/usr/bin/file conftest.o` in
7221      *32-bit*)
7222	case $host in
7223	  x86_64-*kfreebsd*-gnu)
7224	    LD="${LD-ld} -m elf_i386_fbsd"
7225	    ;;
7226	  x86_64-*linux*)
7227	    LD="${LD-ld} -m elf_i386"
7228	    ;;
7229	  ppc64-*linux*|powerpc64-*linux*)
7230	    LD="${LD-ld} -m elf32ppclinux"
7231	    ;;
7232	  s390x-*linux*)
7233	    LD="${LD-ld} -m elf_s390"
7234	    ;;
7235	  sparc64-*linux*)
7236	    LD="${LD-ld} -m elf32_sparc"
7237	    ;;
7238	esac
7239	;;
7240      *64-bit*)
7241	case $host in
7242	  x86_64-*kfreebsd*-gnu)
7243	    LD="${LD-ld} -m elf_x86_64_fbsd"
7244	    ;;
7245	  x86_64-*linux*)
7246	    LD="${LD-ld} -m elf_x86_64"
7247	    ;;
7248	  ppc*-*linux*|powerpc*-*linux*)
7249	    LD="${LD-ld} -m elf64ppc"
7250	    ;;
7251	  s390*-*linux*|s390*-*tpf*)
7252	    LD="${LD-ld} -m elf64_s390"
7253	    ;;
7254	  sparc*-*linux*)
7255	    LD="${LD-ld} -m elf64_sparc"
7256	    ;;
7257	esac
7258	;;
7259    esac
7260  fi
7261  rm -rf conftest*
7262  ;;
7263
7264*-*-sco3.2v5*)
7265  # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7266  SAVE_CFLAGS="$CFLAGS"
7267  CFLAGS="$CFLAGS -belf"
7268  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7269$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7270if test "${lt_cv_cc_needs_belf+set}" = set; then :
7271  $as_echo_n "(cached) " >&6
7272else
7273  ac_ext=c
7274ac_cpp='$CPP $CPPFLAGS'
7275ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7276ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7277ac_compiler_gnu=$ac_cv_c_compiler_gnu
7278
7279     cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7280/* end confdefs.h.  */
7281
7282int
7283main ()
7284{
7285
7286  ;
7287  return 0;
7288}
7289_ACEOF
7290if ac_fn_c_try_link "$LINENO"; then :
7291  lt_cv_cc_needs_belf=yes
7292else
7293  lt_cv_cc_needs_belf=no
7294fi
7295rm -f core conftest.err conftest.$ac_objext \
7296    conftest$ac_exeext conftest.$ac_ext
7297     ac_ext=c
7298ac_cpp='$CPP $CPPFLAGS'
7299ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7300ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7301ac_compiler_gnu=$ac_cv_c_compiler_gnu
7302
7303fi
7304{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7305$as_echo "$lt_cv_cc_needs_belf" >&6; }
7306  if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7307    # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7308    CFLAGS="$SAVE_CFLAGS"
7309  fi
7310  ;;
7311sparc*-*solaris*)
7312  # Find out which ABI we are using.
7313  echo 'int i;' > conftest.$ac_ext
7314  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7315  (eval $ac_compile) 2>&5
7316  ac_status=$?
7317  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7318  test $ac_status = 0; }; then
7319    case `/usr/bin/file conftest.o` in
7320    *64-bit*)
7321      case $lt_cv_prog_gnu_ld in
7322      yes*) LD="${LD-ld} -m elf64_sparc" ;;
7323      *)
7324	if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7325	  LD="${LD-ld} -64"
7326	fi
7327	;;
7328      esac
7329      ;;
7330    esac
7331  fi
7332  rm -rf conftest*
7333  ;;
7334esac
7335
7336need_locks="$enable_libtool_lock"
7337
7338
7339  case $host_os in
7340    rhapsody* | darwin*)
7341    if test -n "$ac_tool_prefix"; then
7342  # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7343set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7345$as_echo_n "checking for $ac_word... " >&6; }
7346if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7347  $as_echo_n "(cached) " >&6
7348else
7349  if test -n "$DSYMUTIL"; then
7350  ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7351else
7352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7353for as_dir in $PATH
7354do
7355  IFS=$as_save_IFS
7356  test -z "$as_dir" && as_dir=.
7357    for ac_exec_ext in '' $ac_executable_extensions; do
7358  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7359    ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7360    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7361    break 2
7362  fi
7363done
7364  done
7365IFS=$as_save_IFS
7366
7367fi
7368fi
7369DSYMUTIL=$ac_cv_prog_DSYMUTIL
7370if test -n "$DSYMUTIL"; then
7371  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7372$as_echo "$DSYMUTIL" >&6; }
7373else
7374  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7375$as_echo "no" >&6; }
7376fi
7377
7378
7379fi
7380if test -z "$ac_cv_prog_DSYMUTIL"; then
7381  ac_ct_DSYMUTIL=$DSYMUTIL
7382  # Extract the first word of "dsymutil", so it can be a program name with args.
7383set dummy dsymutil; ac_word=$2
7384{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7385$as_echo_n "checking for $ac_word... " >&6; }
7386if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
7387  $as_echo_n "(cached) " >&6
7388else
7389  if test -n "$ac_ct_DSYMUTIL"; then
7390  ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7391else
7392as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7393for as_dir in $PATH
7394do
7395  IFS=$as_save_IFS
7396  test -z "$as_dir" && as_dir=.
7397    for ac_exec_ext in '' $ac_executable_extensions; do
7398  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7399    ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7400    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7401    break 2
7402  fi
7403done
7404  done
7405IFS=$as_save_IFS
7406
7407fi
7408fi
7409ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7410if test -n "$ac_ct_DSYMUTIL"; then
7411  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7412$as_echo "$ac_ct_DSYMUTIL" >&6; }
7413else
7414  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7415$as_echo "no" >&6; }
7416fi
7417
7418  if test "x$ac_ct_DSYMUTIL" = x; then
7419    DSYMUTIL=":"
7420  else
7421    case $cross_compiling:$ac_tool_warned in
7422yes:)
7423{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7424$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7425ac_tool_warned=yes ;;
7426esac
7427    DSYMUTIL=$ac_ct_DSYMUTIL
7428  fi
7429else
7430  DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7431fi
7432
7433    if test -n "$ac_tool_prefix"; then
7434  # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7435set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7436{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7437$as_echo_n "checking for $ac_word... " >&6; }
7438if test "${ac_cv_prog_NMEDIT+set}" = set; then :
7439  $as_echo_n "(cached) " >&6
7440else
7441  if test -n "$NMEDIT"; then
7442  ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7443else
7444as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7445for as_dir in $PATH
7446do
7447  IFS=$as_save_IFS
7448  test -z "$as_dir" && as_dir=.
7449    for ac_exec_ext in '' $ac_executable_extensions; do
7450  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7451    ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7452    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7453    break 2
7454  fi
7455done
7456  done
7457IFS=$as_save_IFS
7458
7459fi
7460fi
7461NMEDIT=$ac_cv_prog_NMEDIT
7462if test -n "$NMEDIT"; then
7463  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7464$as_echo "$NMEDIT" >&6; }
7465else
7466  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7467$as_echo "no" >&6; }
7468fi
7469
7470
7471fi
7472if test -z "$ac_cv_prog_NMEDIT"; then
7473  ac_ct_NMEDIT=$NMEDIT
7474  # Extract the first word of "nmedit", so it can be a program name with args.
7475set dummy nmedit; ac_word=$2
7476{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7477$as_echo_n "checking for $ac_word... " >&6; }
7478if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
7479  $as_echo_n "(cached) " >&6
7480else
7481  if test -n "$ac_ct_NMEDIT"; then
7482  ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7483else
7484as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7485for as_dir in $PATH
7486do
7487  IFS=$as_save_IFS
7488  test -z "$as_dir" && as_dir=.
7489    for ac_exec_ext in '' $ac_executable_extensions; do
7490  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7491    ac_cv_prog_ac_ct_NMEDIT="nmedit"
7492    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7493    break 2
7494  fi
7495done
7496  done
7497IFS=$as_save_IFS
7498
7499fi
7500fi
7501ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7502if test -n "$ac_ct_NMEDIT"; then
7503  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7504$as_echo "$ac_ct_NMEDIT" >&6; }
7505else
7506  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7507$as_echo "no" >&6; }
7508fi
7509
7510  if test "x$ac_ct_NMEDIT" = x; then
7511    NMEDIT=":"
7512  else
7513    case $cross_compiling:$ac_tool_warned in
7514yes:)
7515{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7516$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7517ac_tool_warned=yes ;;
7518esac
7519    NMEDIT=$ac_ct_NMEDIT
7520  fi
7521else
7522  NMEDIT="$ac_cv_prog_NMEDIT"
7523fi
7524
7525    if test -n "$ac_tool_prefix"; then
7526  # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7527set dummy ${ac_tool_prefix}lipo; ac_word=$2
7528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7529$as_echo_n "checking for $ac_word... " >&6; }
7530if test "${ac_cv_prog_LIPO+set}" = set; then :
7531  $as_echo_n "(cached) " >&6
7532else
7533  if test -n "$LIPO"; then
7534  ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7535else
7536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7537for as_dir in $PATH
7538do
7539  IFS=$as_save_IFS
7540  test -z "$as_dir" && as_dir=.
7541    for ac_exec_ext in '' $ac_executable_extensions; do
7542  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7543    ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7544    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7545    break 2
7546  fi
7547done
7548  done
7549IFS=$as_save_IFS
7550
7551fi
7552fi
7553LIPO=$ac_cv_prog_LIPO
7554if test -n "$LIPO"; then
7555  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7556$as_echo "$LIPO" >&6; }
7557else
7558  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7559$as_echo "no" >&6; }
7560fi
7561
7562
7563fi
7564if test -z "$ac_cv_prog_LIPO"; then
7565  ac_ct_LIPO=$LIPO
7566  # Extract the first word of "lipo", so it can be a program name with args.
7567set dummy lipo; ac_word=$2
7568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7569$as_echo_n "checking for $ac_word... " >&6; }
7570if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
7571  $as_echo_n "(cached) " >&6
7572else
7573  if test -n "$ac_ct_LIPO"; then
7574  ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7575else
7576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7577for as_dir in $PATH
7578do
7579  IFS=$as_save_IFS
7580  test -z "$as_dir" && as_dir=.
7581    for ac_exec_ext in '' $ac_executable_extensions; do
7582  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7583    ac_cv_prog_ac_ct_LIPO="lipo"
7584    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7585    break 2
7586  fi
7587done
7588  done
7589IFS=$as_save_IFS
7590
7591fi
7592fi
7593ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7594if test -n "$ac_ct_LIPO"; then
7595  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7596$as_echo "$ac_ct_LIPO" >&6; }
7597else
7598  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7599$as_echo "no" >&6; }
7600fi
7601
7602  if test "x$ac_ct_LIPO" = x; then
7603    LIPO=":"
7604  else
7605    case $cross_compiling:$ac_tool_warned in
7606yes:)
7607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7609ac_tool_warned=yes ;;
7610esac
7611    LIPO=$ac_ct_LIPO
7612  fi
7613else
7614  LIPO="$ac_cv_prog_LIPO"
7615fi
7616
7617    if test -n "$ac_tool_prefix"; then
7618  # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7619set dummy ${ac_tool_prefix}otool; ac_word=$2
7620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621$as_echo_n "checking for $ac_word... " >&6; }
7622if test "${ac_cv_prog_OTOOL+set}" = set; then :
7623  $as_echo_n "(cached) " >&6
7624else
7625  if test -n "$OTOOL"; then
7626  ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7627else
7628as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629for as_dir in $PATH
7630do
7631  IFS=$as_save_IFS
7632  test -z "$as_dir" && as_dir=.
7633    for ac_exec_ext in '' $ac_executable_extensions; do
7634  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635    ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7636    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637    break 2
7638  fi
7639done
7640  done
7641IFS=$as_save_IFS
7642
7643fi
7644fi
7645OTOOL=$ac_cv_prog_OTOOL
7646if test -n "$OTOOL"; then
7647  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7648$as_echo "$OTOOL" >&6; }
7649else
7650  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651$as_echo "no" >&6; }
7652fi
7653
7654
7655fi
7656if test -z "$ac_cv_prog_OTOOL"; then
7657  ac_ct_OTOOL=$OTOOL
7658  # Extract the first word of "otool", so it can be a program name with args.
7659set dummy otool; ac_word=$2
7660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7661$as_echo_n "checking for $ac_word... " >&6; }
7662if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
7663  $as_echo_n "(cached) " >&6
7664else
7665  if test -n "$ac_ct_OTOOL"; then
7666  ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7667else
7668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7669for as_dir in $PATH
7670do
7671  IFS=$as_save_IFS
7672  test -z "$as_dir" && as_dir=.
7673    for ac_exec_ext in '' $ac_executable_extensions; do
7674  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7675    ac_cv_prog_ac_ct_OTOOL="otool"
7676    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7677    break 2
7678  fi
7679done
7680  done
7681IFS=$as_save_IFS
7682
7683fi
7684fi
7685ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7686if test -n "$ac_ct_OTOOL"; then
7687  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7688$as_echo "$ac_ct_OTOOL" >&6; }
7689else
7690  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7691$as_echo "no" >&6; }
7692fi
7693
7694  if test "x$ac_ct_OTOOL" = x; then
7695    OTOOL=":"
7696  else
7697    case $cross_compiling:$ac_tool_warned in
7698yes:)
7699{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7700$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7701ac_tool_warned=yes ;;
7702esac
7703    OTOOL=$ac_ct_OTOOL
7704  fi
7705else
7706  OTOOL="$ac_cv_prog_OTOOL"
7707fi
7708
7709    if test -n "$ac_tool_prefix"; then
7710  # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7711set dummy ${ac_tool_prefix}otool64; ac_word=$2
7712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7713$as_echo_n "checking for $ac_word... " >&6; }
7714if test "${ac_cv_prog_OTOOL64+set}" = set; then :
7715  $as_echo_n "(cached) " >&6
7716else
7717  if test -n "$OTOOL64"; then
7718  ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7719else
7720as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7721for as_dir in $PATH
7722do
7723  IFS=$as_save_IFS
7724  test -z "$as_dir" && as_dir=.
7725    for ac_exec_ext in '' $ac_executable_extensions; do
7726  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7727    ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7728    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7729    break 2
7730  fi
7731done
7732  done
7733IFS=$as_save_IFS
7734
7735fi
7736fi
7737OTOOL64=$ac_cv_prog_OTOOL64
7738if test -n "$OTOOL64"; then
7739  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7740$as_echo "$OTOOL64" >&6; }
7741else
7742  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7743$as_echo "no" >&6; }
7744fi
7745
7746
7747fi
7748if test -z "$ac_cv_prog_OTOOL64"; then
7749  ac_ct_OTOOL64=$OTOOL64
7750  # Extract the first word of "otool64", so it can be a program name with args.
7751set dummy otool64; ac_word=$2
7752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7753$as_echo_n "checking for $ac_word... " >&6; }
7754if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
7755  $as_echo_n "(cached) " >&6
7756else
7757  if test -n "$ac_ct_OTOOL64"; then
7758  ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7759else
7760as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7761for as_dir in $PATH
7762do
7763  IFS=$as_save_IFS
7764  test -z "$as_dir" && as_dir=.
7765    for ac_exec_ext in '' $ac_executable_extensions; do
7766  if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7767    ac_cv_prog_ac_ct_OTOOL64="otool64"
7768    $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7769    break 2
7770  fi
7771done
7772  done
7773IFS=$as_save_IFS
7774
7775fi
7776fi
7777ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7778if test -n "$ac_ct_OTOOL64"; then
7779  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7780$as_echo "$ac_ct_OTOOL64" >&6; }
7781else
7782  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7783$as_echo "no" >&6; }
7784fi
7785
7786  if test "x$ac_ct_OTOOL64" = x; then
7787    OTOOL64=":"
7788  else
7789    case $cross_compiling:$ac_tool_warned in
7790yes:)
7791{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7792$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7793ac_tool_warned=yes ;;
7794esac
7795    OTOOL64=$ac_ct_OTOOL64
7796  fi
7797else
7798  OTOOL64="$ac_cv_prog_OTOOL64"
7799fi
7800
7801
7802
7803
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813
7814
7815
7816
7817
7818
7819
7820
7821
7822
7823
7824
7825
7826
7827    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7828$as_echo_n "checking for -single_module linker flag... " >&6; }
7829if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
7830  $as_echo_n "(cached) " >&6
7831else
7832  lt_cv_apple_cc_single_mod=no
7833      if test -z "${LT_MULTI_MODULE}"; then
7834	# By default we will add the -single_module flag. You can override
7835	# by either setting the environment variable LT_MULTI_MODULE
7836	# non-empty at configure time, or by adding -multi_module to the
7837	# link flags.
7838	rm -rf libconftest.dylib*
7839	echo "int foo(void){return 1;}" > conftest.c
7840	echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7841-dynamiclib -Wl,-single_module conftest.c" >&5
7842	$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7843	  -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7844        _lt_result=$?
7845	if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
7846	  lt_cv_apple_cc_single_mod=yes
7847	else
7848	  cat conftest.err >&5
7849	fi
7850	rm -rf libconftest.dylib*
7851	rm -f conftest.*
7852      fi
7853fi
7854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7855$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7856    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7857$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7858if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
7859  $as_echo_n "(cached) " >&6
7860else
7861  lt_cv_ld_exported_symbols_list=no
7862      save_LDFLAGS=$LDFLAGS
7863      echo "_main" > conftest.sym
7864      LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7865      cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7866/* end confdefs.h.  */
7867
7868int
7869main ()
7870{
7871
7872  ;
7873  return 0;
7874}
7875_ACEOF
7876if ac_fn_c_try_link "$LINENO"; then :
7877  lt_cv_ld_exported_symbols_list=yes
7878else
7879  lt_cv_ld_exported_symbols_list=no
7880fi
7881rm -f core conftest.err conftest.$ac_objext \
7882    conftest$ac_exeext conftest.$ac_ext
7883	LDFLAGS="$save_LDFLAGS"
7884
7885fi
7886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7887$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7888    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7889$as_echo_n "checking for -force_load linker flag... " >&6; }
7890if test "${lt_cv_ld_force_load+set}" = set; then :
7891  $as_echo_n "(cached) " >&6
7892else
7893  lt_cv_ld_force_load=no
7894      cat > conftest.c << _LT_EOF
7895int forced_loaded() { return 2;}
7896_LT_EOF
7897      echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7898      $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7899      echo "$AR cru libconftest.a conftest.o" >&5
7900      $AR cru libconftest.a conftest.o 2>&5
7901      echo "$RANLIB libconftest.a" >&5
7902      $RANLIB libconftest.a 2>&5
7903      cat > conftest.c << _LT_EOF
7904int main() { return 0;}
7905_LT_EOF
7906      echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7907      $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7908      _lt_result=$?
7909      if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
7910	lt_cv_ld_force_load=yes
7911      else
7912	cat conftest.err >&5
7913      fi
7914        rm -f conftest.err libconftest.a conftest conftest.c
7915        rm -rf conftest.dSYM
7916
7917fi
7918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7919$as_echo "$lt_cv_ld_force_load" >&6; }
7920    case $host_os in
7921    rhapsody* | darwin1.[012])
7922      _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7923    darwin1.*)
7924      _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7925    darwin*) # darwin 5.x on
7926      # if running on 10.5 or later, the deployment target defaults
7927      # to the OS version, if on x86, and 10.4, the deployment
7928      # target defaults to 10.4. Don't you love it?
7929      case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7930	10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7931	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7932	10.[012]*)
7933	  _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7934	10.*)
7935	  _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7936      esac
7937    ;;
7938  esac
7939    if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7940      _lt_dar_single_mod='$single_module'
7941    fi
7942    if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7943      _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7944    else
7945      _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7946    fi
7947    if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7948      _lt_dsymutil='~$DSYMUTIL $lib || :'
7949    else
7950      _lt_dsymutil=
7951    fi
7952    ;;
7953  esac
7954
7955for ac_header in dlfcn.h
7956do :
7957  ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7958"
7959if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
7960  cat >>confdefs.h <<_ACEOF
7961#define HAVE_DLFCN_H 1
7962_ACEOF
7963
7964fi
7965
7966done
7967
7968
7969
7970
7971
7972# Set options
7973
7974
7975
7976        enable_dlopen=no
7977
7978
7979  enable_win32_dll=no
7980
7981
7982            # Check whether --enable-shared was given.
7983if test "${enable_shared+set}" = set; then :
7984  enableval=$enable_shared; p=${PACKAGE-default}
7985    case $enableval in
7986    yes) enable_shared=yes ;;
7987    no) enable_shared=no ;;
7988    *)
7989      enable_shared=no
7990      # Look at the argument we got.  We use all the common list separators.
7991      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7992      for pkg in $enableval; do
7993	IFS="$lt_save_ifs"
7994	if test "X$pkg" = "X$p"; then
7995	  enable_shared=yes
7996	fi
7997      done
7998      IFS="$lt_save_ifs"
7999      ;;
8000    esac
8001else
8002  enable_shared=yes
8003fi
8004
8005
8006
8007
8008
8009
8010
8011
8012
8013  # Check whether --enable-static was given.
8014if test "${enable_static+set}" = set; then :
8015  enableval=$enable_static; p=${PACKAGE-default}
8016    case $enableval in
8017    yes) enable_static=yes ;;
8018    no) enable_static=no ;;
8019    *)
8020     enable_static=no
8021      # Look at the argument we got.  We use all the common list separators.
8022      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8023      for pkg in $enableval; do
8024	IFS="$lt_save_ifs"
8025	if test "X$pkg" = "X$p"; then
8026	  enable_static=yes
8027	fi
8028      done
8029      IFS="$lt_save_ifs"
8030      ;;
8031    esac
8032else
8033  enable_static=yes
8034fi
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045# Check whether --with-pic was given.
8046if test "${with_pic+set}" = set; then :
8047  withval=$with_pic; pic_mode="$withval"
8048else
8049  pic_mode=default
8050fi
8051
8052
8053test -z "$pic_mode" && pic_mode=default
8054
8055
8056
8057
8058
8059
8060
8061  # Check whether --enable-fast-install was given.
8062if test "${enable_fast_install+set}" = set; then :
8063  enableval=$enable_fast_install; p=${PACKAGE-default}
8064    case $enableval in
8065    yes) enable_fast_install=yes ;;
8066    no) enable_fast_install=no ;;
8067    *)
8068      enable_fast_install=no
8069      # Look at the argument we got.  We use all the common list separators.
8070      lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8071      for pkg in $enableval; do
8072	IFS="$lt_save_ifs"
8073	if test "X$pkg" = "X$p"; then
8074	  enable_fast_install=yes
8075	fi
8076      done
8077      IFS="$lt_save_ifs"
8078      ;;
8079    esac
8080else
8081  enable_fast_install=yes
8082fi
8083
8084
8085
8086
8087
8088
8089
8090
8091
8092
8093
8094# This can be used to rebuild libtool when needed
8095LIBTOOL_DEPS="$ltmain"
8096
8097# Always use our own libtool.
8098LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8099
8100
8101
8102
8103
8104
8105
8106
8107
8108
8109
8110
8111
8112
8113
8114
8115
8116
8117
8118
8119
8120
8121
8122
8123
8124
8125test -z "$LN_S" && LN_S="ln -s"
8126
8127
8128
8129
8130
8131
8132
8133
8134
8135
8136
8137
8138
8139
8140if test -n "${ZSH_VERSION+set}" ; then
8141   setopt NO_GLOB_SUBST
8142fi
8143
8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8145$as_echo_n "checking for objdir... " >&6; }
8146if test "${lt_cv_objdir+set}" = set; then :
8147  $as_echo_n "(cached) " >&6
8148else
8149  rm -f .libs 2>/dev/null
8150mkdir .libs 2>/dev/null
8151if test -d .libs; then
8152  lt_cv_objdir=.libs
8153else
8154  # MS-DOS does not allow filenames that begin with a dot.
8155  lt_cv_objdir=_libs
8156fi
8157rmdir .libs 2>/dev/null
8158fi
8159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8160$as_echo "$lt_cv_objdir" >&6; }
8161objdir=$lt_cv_objdir
8162
8163
8164
8165
8166
8167cat >>confdefs.h <<_ACEOF
8168#define LT_OBJDIR "$lt_cv_objdir/"
8169_ACEOF
8170
8171
8172
8173
8174case $host_os in
8175aix3*)
8176  # AIX sometimes has problems with the GCC collect2 program.  For some
8177  # reason, if we set the COLLECT_NAMES environment variable, the problems
8178  # vanish in a puff of smoke.
8179  if test "X${COLLECT_NAMES+set}" != Xset; then
8180    COLLECT_NAMES=
8181    export COLLECT_NAMES
8182  fi
8183  ;;
8184esac
8185
8186# Global variables:
8187ofile=libtool
8188can_build_shared=yes
8189
8190# All known linkers require a `.a' archive for static linking (except MSVC,
8191# which needs '.lib').
8192libext=a
8193
8194with_gnu_ld="$lt_cv_prog_gnu_ld"
8195
8196old_CC="$CC"
8197old_CFLAGS="$CFLAGS"
8198
8199# Set sane defaults for various variables
8200test -z "$CC" && CC=cc
8201test -z "$LTCC" && LTCC=$CC
8202test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8203test -z "$LD" && LD=ld
8204test -z "$ac_objext" && ac_objext=o
8205
8206for cc_temp in $compiler""; do
8207  case $cc_temp in
8208    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8209    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8210    \-*) ;;
8211    *) break;;
8212  esac
8213done
8214cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8215
8216
8217# Only perform the check for file, if the check method requires it
8218test -z "$MAGIC_CMD" && MAGIC_CMD=file
8219case $deplibs_check_method in
8220file_magic*)
8221  if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8222    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8223$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8224if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8225  $as_echo_n "(cached) " >&6
8226else
8227  case $MAGIC_CMD in
8228[\\/*] |  ?:[\\/]*)
8229  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8230  ;;
8231*)
8232  lt_save_MAGIC_CMD="$MAGIC_CMD"
8233  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8234  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8235  for ac_dir in $ac_dummy; do
8236    IFS="$lt_save_ifs"
8237    test -z "$ac_dir" && ac_dir=.
8238    if test -f $ac_dir/${ac_tool_prefix}file; then
8239      lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8240      if test -n "$file_magic_test_file"; then
8241	case $deplibs_check_method in
8242	"file_magic "*)
8243	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8244	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8245	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8246	    $EGREP "$file_magic_regex" > /dev/null; then
8247	    :
8248	  else
8249	    cat <<_LT_EOF 1>&2
8250
8251*** Warning: the command libtool uses to detect shared libraries,
8252*** $file_magic_cmd, produces output that libtool cannot recognize.
8253*** The result is that libtool may fail to recognize shared libraries
8254*** as such.  This will affect the creation of libtool libraries that
8255*** depend on shared libraries, but programs linked with such libtool
8256*** libraries will work regardless of this problem.  Nevertheless, you
8257*** may want to report the problem to your system manager and/or to
8258*** bug-libtool@gnu.org
8259
8260_LT_EOF
8261	  fi ;;
8262	esac
8263      fi
8264      break
8265    fi
8266  done
8267  IFS="$lt_save_ifs"
8268  MAGIC_CMD="$lt_save_MAGIC_CMD"
8269  ;;
8270esac
8271fi
8272
8273MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8274if test -n "$MAGIC_CMD"; then
8275  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8276$as_echo "$MAGIC_CMD" >&6; }
8277else
8278  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8279$as_echo "no" >&6; }
8280fi
8281
8282
8283
8284
8285
8286if test -z "$lt_cv_path_MAGIC_CMD"; then
8287  if test -n "$ac_tool_prefix"; then
8288    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8289$as_echo_n "checking for file... " >&6; }
8290if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8291  $as_echo_n "(cached) " >&6
8292else
8293  case $MAGIC_CMD in
8294[\\/*] |  ?:[\\/]*)
8295  lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8296  ;;
8297*)
8298  lt_save_MAGIC_CMD="$MAGIC_CMD"
8299  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8300  ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8301  for ac_dir in $ac_dummy; do
8302    IFS="$lt_save_ifs"
8303    test -z "$ac_dir" && ac_dir=.
8304    if test -f $ac_dir/file; then
8305      lt_cv_path_MAGIC_CMD="$ac_dir/file"
8306      if test -n "$file_magic_test_file"; then
8307	case $deplibs_check_method in
8308	"file_magic "*)
8309	  file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8310	  MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8311	  if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8312	    $EGREP "$file_magic_regex" > /dev/null; then
8313	    :
8314	  else
8315	    cat <<_LT_EOF 1>&2
8316
8317*** Warning: the command libtool uses to detect shared libraries,
8318*** $file_magic_cmd, produces output that libtool cannot recognize.
8319*** The result is that libtool may fail to recognize shared libraries
8320*** as such.  This will affect the creation of libtool libraries that
8321*** depend on shared libraries, but programs linked with such libtool
8322*** libraries will work regardless of this problem.  Nevertheless, you
8323*** may want to report the problem to your system manager and/or to
8324*** bug-libtool@gnu.org
8325
8326_LT_EOF
8327	  fi ;;
8328	esac
8329      fi
8330      break
8331    fi
8332  done
8333  IFS="$lt_save_ifs"
8334  MAGIC_CMD="$lt_save_MAGIC_CMD"
8335  ;;
8336esac
8337fi
8338
8339MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8340if test -n "$MAGIC_CMD"; then
8341  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8342$as_echo "$MAGIC_CMD" >&6; }
8343else
8344  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8345$as_echo "no" >&6; }
8346fi
8347
8348
8349  else
8350    MAGIC_CMD=:
8351  fi
8352fi
8353
8354  fi
8355  ;;
8356esac
8357
8358# Use C for the default configuration in the libtool script
8359
8360lt_save_CC="$CC"
8361ac_ext=c
8362ac_cpp='$CPP $CPPFLAGS'
8363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8365ac_compiler_gnu=$ac_cv_c_compiler_gnu
8366
8367
8368# Source file extension for C test sources.
8369ac_ext=c
8370
8371# Object file extension for compiled C test sources.
8372objext=o
8373objext=$objext
8374
8375# Code to be used in simple compile tests
8376lt_simple_compile_test_code="int some_variable = 0;"
8377
8378# Code to be used in simple link tests
8379lt_simple_link_test_code='int main(){return(0);}'
8380
8381
8382
8383
8384
8385
8386
8387# If no C compiler was specified, use CC.
8388LTCC=${LTCC-"$CC"}
8389
8390# If no C compiler flags were specified, use CFLAGS.
8391LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8392
8393# Allow CC to be a program name with arguments.
8394compiler=$CC
8395
8396# Save the default compiler, since it gets overwritten when the other
8397# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8398compiler_DEFAULT=$CC
8399
8400# save warnings/boilerplate of simple test code
8401ac_outfile=conftest.$ac_objext
8402echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8403eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8404_lt_compiler_boilerplate=`cat conftest.err`
8405$RM conftest*
8406
8407ac_outfile=conftest.$ac_objext
8408echo "$lt_simple_link_test_code" >conftest.$ac_ext
8409eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8410_lt_linker_boilerplate=`cat conftest.err`
8411$RM -r conftest*
8412
8413
8414## CAVEAT EMPTOR:
8415## There is no encapsulation within the following macros, do not change
8416## the running order or otherwise move them around unless you know exactly
8417## what you are doing...
8418if test -n "$compiler"; then
8419
8420lt_prog_compiler_no_builtin_flag=
8421
8422if test "$GCC" = yes; then
8423  case $cc_basename in
8424  nvcc*)
8425    lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8426  *)
8427    lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8428  esac
8429
8430  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8431$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8432if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
8433  $as_echo_n "(cached) " >&6
8434else
8435  lt_cv_prog_compiler_rtti_exceptions=no
8436   ac_outfile=conftest.$ac_objext
8437   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8438   lt_compiler_flag="-fno-rtti -fno-exceptions"
8439   # Insert the option either (1) after the last *FLAGS variable, or
8440   # (2) before a word containing "conftest.", or (3) at the end.
8441   # Note that $ac_compile itself does not contain backslashes and begins
8442   # with a dollar sign (not a hyphen), so the echo should work correctly.
8443   # The option is referenced via a variable to avoid confusing sed.
8444   lt_compile=`echo "$ac_compile" | $SED \
8445   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8446   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8447   -e 's:$: $lt_compiler_flag:'`
8448   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8449   (eval "$lt_compile" 2>conftest.err)
8450   ac_status=$?
8451   cat conftest.err >&5
8452   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8453   if (exit $ac_status) && test -s "$ac_outfile"; then
8454     # The compiler can only warn and ignore the option if not recognized
8455     # So say no if there are warnings other than the usual output.
8456     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8457     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8458     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8459       lt_cv_prog_compiler_rtti_exceptions=yes
8460     fi
8461   fi
8462   $RM conftest*
8463
8464fi
8465{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8466$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8467
8468if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8469    lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8470else
8471    :
8472fi
8473
8474fi
8475
8476
8477
8478
8479
8480
8481  lt_prog_compiler_wl=
8482lt_prog_compiler_pic=
8483lt_prog_compiler_static=
8484
8485{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8486$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8487
8488  if test "$GCC" = yes; then
8489    lt_prog_compiler_wl='-Wl,'
8490    lt_prog_compiler_static='-static'
8491
8492    case $host_os in
8493      aix*)
8494      # All AIX code is PIC.
8495      if test "$host_cpu" = ia64; then
8496	# AIX 5 now supports IA64 processor
8497	lt_prog_compiler_static='-Bstatic'
8498      fi
8499      ;;
8500
8501    amigaos*)
8502      case $host_cpu in
8503      powerpc)
8504            # see comment about AmigaOS4 .so support
8505            lt_prog_compiler_pic='-fPIC'
8506        ;;
8507      m68k)
8508            # FIXME: we need at least 68020 code to build shared libraries, but
8509            # adding the `-m68020' flag to GCC prevents building anything better,
8510            # like `-m68040'.
8511            lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8512        ;;
8513      esac
8514      ;;
8515
8516    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8517      # PIC is the default for these OSes.
8518      ;;
8519
8520    mingw* | cygwin* | pw32* | os2* | cegcc*)
8521      # This hack is so that the source file can tell whether it is being
8522      # built for inclusion in a dll (and should export symbols for example).
8523      # Although the cygwin gcc ignores -fPIC, still need this for old-style
8524      # (--disable-auto-import) libraries
8525      lt_prog_compiler_pic='-DDLL_EXPORT'
8526      ;;
8527
8528    darwin* | rhapsody*)
8529      # PIC is the default on this platform
8530      # Common symbols not allowed in MH_DYLIB files
8531      lt_prog_compiler_pic='-fno-common'
8532      ;;
8533
8534    haiku*)
8535      # PIC is the default for Haiku.
8536      # The "-static" flag exists, but is broken.
8537      lt_prog_compiler_static=
8538      ;;
8539
8540    hpux*)
8541      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8542      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
8543      # sets the default TLS model and affects inlining.
8544      case $host_cpu in
8545      hppa*64*)
8546	# +Z the default
8547	;;
8548      *)
8549	lt_prog_compiler_pic='-fPIC'
8550	;;
8551      esac
8552      ;;
8553
8554    interix[3-9]*)
8555      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8556      # Instead, we relocate shared libraries at runtime.
8557      ;;
8558
8559    msdosdjgpp*)
8560      # Just because we use GCC doesn't mean we suddenly get shared libraries
8561      # on systems that don't support them.
8562      lt_prog_compiler_can_build_shared=no
8563      enable_shared=no
8564      ;;
8565
8566    *nto* | *qnx*)
8567      # QNX uses GNU C++, but need to define -shared option too, otherwise
8568      # it will coredump.
8569      lt_prog_compiler_pic='-fPIC -shared'
8570      ;;
8571
8572    sysv4*MP*)
8573      if test -d /usr/nec; then
8574	lt_prog_compiler_pic=-Kconform_pic
8575      fi
8576      ;;
8577
8578    *)
8579      lt_prog_compiler_pic='-fPIC'
8580      ;;
8581    esac
8582
8583    case $cc_basename in
8584    nvcc*) # Cuda Compiler Driver 2.2
8585      lt_prog_compiler_wl='-Xlinker '
8586      lt_prog_compiler_pic='-Xcompiler -fPIC'
8587      ;;
8588    esac
8589  else
8590    # PORTME Check for flag to pass linker flags through the system compiler.
8591    case $host_os in
8592    aix*)
8593      lt_prog_compiler_wl='-Wl,'
8594      if test "$host_cpu" = ia64; then
8595	# AIX 5 now supports IA64 processor
8596	lt_prog_compiler_static='-Bstatic'
8597      else
8598	lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8599      fi
8600      ;;
8601
8602    mingw* | cygwin* | pw32* | os2* | cegcc*)
8603      # This hack is so that the source file can tell whether it is being
8604      # built for inclusion in a dll (and should export symbols for example).
8605      lt_prog_compiler_pic='-DDLL_EXPORT'
8606      ;;
8607
8608    hpux9* | hpux10* | hpux11*)
8609      lt_prog_compiler_wl='-Wl,'
8610      # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8611      # not for PA HP-UX.
8612      case $host_cpu in
8613      hppa*64*|ia64*)
8614	# +Z the default
8615	;;
8616      *)
8617	lt_prog_compiler_pic='+Z'
8618	;;
8619      esac
8620      # Is there a better lt_prog_compiler_static that works with the bundled CC?
8621      lt_prog_compiler_static='${wl}-a ${wl}archive'
8622      ;;
8623
8624    irix5* | irix6* | nonstopux*)
8625      lt_prog_compiler_wl='-Wl,'
8626      # PIC (with -KPIC) is the default.
8627      lt_prog_compiler_static='-non_shared'
8628      ;;
8629
8630    linux* | k*bsd*-gnu | kopensolaris*-gnu)
8631      case $cc_basename in
8632      # old Intel for x86_64 which still supported -KPIC.
8633      ecc*)
8634	lt_prog_compiler_wl='-Wl,'
8635	lt_prog_compiler_pic='-KPIC'
8636	lt_prog_compiler_static='-static'
8637        ;;
8638      # icc used to be incompatible with GCC.
8639      # ICC 10 doesn't accept -KPIC any more.
8640      icc* | ifort*)
8641	lt_prog_compiler_wl='-Wl,'
8642	lt_prog_compiler_pic='-fPIC'
8643	lt_prog_compiler_static='-static'
8644        ;;
8645      # Lahey Fortran 8.1.
8646      lf95*)
8647	lt_prog_compiler_wl='-Wl,'
8648	lt_prog_compiler_pic='--shared'
8649	lt_prog_compiler_static='--static'
8650	;;
8651      pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8652        # Portland Group compilers (*not* the Pentium gcc compiler,
8653	# which looks to be a dead project)
8654	lt_prog_compiler_wl='-Wl,'
8655	lt_prog_compiler_pic='-fpic'
8656	lt_prog_compiler_static='-Bstatic'
8657        ;;
8658      ccc*)
8659        lt_prog_compiler_wl='-Wl,'
8660        # All Alpha code is PIC.
8661        lt_prog_compiler_static='-non_shared'
8662        ;;
8663      xl* | bgxl* | bgf* | mpixl*)
8664	# IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8665	lt_prog_compiler_wl='-Wl,'
8666	lt_prog_compiler_pic='-qpic'
8667	lt_prog_compiler_static='-qstaticlink'
8668	;;
8669      *)
8670	case `$CC -V 2>&1 | sed 5q` in
8671	*Sun\ F* | *Sun*Fortran*)
8672	  # Sun Fortran 8.3 passes all unrecognized flags to the linker
8673	  lt_prog_compiler_pic='-KPIC'
8674	  lt_prog_compiler_static='-Bstatic'
8675	  lt_prog_compiler_wl=''
8676	  ;;
8677	*Sun\ C*)
8678	  # Sun C 5.9
8679	  lt_prog_compiler_pic='-KPIC'
8680	  lt_prog_compiler_static='-Bstatic'
8681	  lt_prog_compiler_wl='-Wl,'
8682	  ;;
8683	esac
8684	;;
8685      esac
8686      ;;
8687
8688    newsos6)
8689      lt_prog_compiler_pic='-KPIC'
8690      lt_prog_compiler_static='-Bstatic'
8691      ;;
8692
8693    *nto* | *qnx*)
8694      # QNX uses GNU C++, but need to define -shared option too, otherwise
8695      # it will coredump.
8696      lt_prog_compiler_pic='-fPIC -shared'
8697      ;;
8698
8699    osf3* | osf4* | osf5*)
8700      lt_prog_compiler_wl='-Wl,'
8701      # All OSF/1 code is PIC.
8702      lt_prog_compiler_static='-non_shared'
8703      ;;
8704
8705    rdos*)
8706      lt_prog_compiler_static='-non_shared'
8707      ;;
8708
8709    solaris*)
8710      lt_prog_compiler_pic='-KPIC'
8711      lt_prog_compiler_static='-Bstatic'
8712      case $cc_basename in
8713      f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8714	lt_prog_compiler_wl='-Qoption ld ';;
8715      *)
8716	lt_prog_compiler_wl='-Wl,';;
8717      esac
8718      ;;
8719
8720    sunos4*)
8721      lt_prog_compiler_wl='-Qoption ld '
8722      lt_prog_compiler_pic='-PIC'
8723      lt_prog_compiler_static='-Bstatic'
8724      ;;
8725
8726    sysv4 | sysv4.2uw2* | sysv4.3*)
8727      lt_prog_compiler_wl='-Wl,'
8728      lt_prog_compiler_pic='-KPIC'
8729      lt_prog_compiler_static='-Bstatic'
8730      ;;
8731
8732    sysv4*MP*)
8733      if test -d /usr/nec ;then
8734	lt_prog_compiler_pic='-Kconform_pic'
8735	lt_prog_compiler_static='-Bstatic'
8736      fi
8737      ;;
8738
8739    sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8740      lt_prog_compiler_wl='-Wl,'
8741      lt_prog_compiler_pic='-KPIC'
8742      lt_prog_compiler_static='-Bstatic'
8743      ;;
8744
8745    unicos*)
8746      lt_prog_compiler_wl='-Wl,'
8747      lt_prog_compiler_can_build_shared=no
8748      ;;
8749
8750    uts4*)
8751      lt_prog_compiler_pic='-pic'
8752      lt_prog_compiler_static='-Bstatic'
8753      ;;
8754
8755    *)
8756      lt_prog_compiler_can_build_shared=no
8757      ;;
8758    esac
8759  fi
8760
8761case $host_os in
8762  # For platforms which do not support PIC, -DPIC is meaningless:
8763  *djgpp*)
8764    lt_prog_compiler_pic=
8765    ;;
8766  *)
8767    lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8768    ;;
8769esac
8770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
8771$as_echo "$lt_prog_compiler_pic" >&6; }
8772
8773
8774
8775
8776
8777
8778#
8779# Check to make sure the PIC flag actually works.
8780#
8781if test -n "$lt_prog_compiler_pic"; then
8782  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8783$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8784if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
8785  $as_echo_n "(cached) " >&6
8786else
8787  lt_cv_prog_compiler_pic_works=no
8788   ac_outfile=conftest.$ac_objext
8789   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8790   lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8791   # Insert the option either (1) after the last *FLAGS variable, or
8792   # (2) before a word containing "conftest.", or (3) at the end.
8793   # Note that $ac_compile itself does not contain backslashes and begins
8794   # with a dollar sign (not a hyphen), so the echo should work correctly.
8795   # The option is referenced via a variable to avoid confusing sed.
8796   lt_compile=`echo "$ac_compile" | $SED \
8797   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8798   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8799   -e 's:$: $lt_compiler_flag:'`
8800   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8801   (eval "$lt_compile" 2>conftest.err)
8802   ac_status=$?
8803   cat conftest.err >&5
8804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8805   if (exit $ac_status) && test -s "$ac_outfile"; then
8806     # The compiler can only warn and ignore the option if not recognized
8807     # So say no if there are warnings other than the usual output.
8808     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8809     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8810     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8811       lt_cv_prog_compiler_pic_works=yes
8812     fi
8813   fi
8814   $RM conftest*
8815
8816fi
8817{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8818$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8819
8820if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8821    case $lt_prog_compiler_pic in
8822     "" | " "*) ;;
8823     *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8824     esac
8825else
8826    lt_prog_compiler_pic=
8827     lt_prog_compiler_can_build_shared=no
8828fi
8829
8830fi
8831
8832
8833
8834
8835
8836
8837#
8838# Check to make sure the static flag actually works.
8839#
8840wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8841{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8842$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8843if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
8844  $as_echo_n "(cached) " >&6
8845else
8846  lt_cv_prog_compiler_static_works=no
8847   save_LDFLAGS="$LDFLAGS"
8848   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8849   echo "$lt_simple_link_test_code" > conftest.$ac_ext
8850   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8851     # The linker can only warn and ignore the option if not recognized
8852     # So say no if there are warnings
8853     if test -s conftest.err; then
8854       # Append any errors to the config.log.
8855       cat conftest.err 1>&5
8856       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8857       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8858       if diff conftest.exp conftest.er2 >/dev/null; then
8859         lt_cv_prog_compiler_static_works=yes
8860       fi
8861     else
8862       lt_cv_prog_compiler_static_works=yes
8863     fi
8864   fi
8865   $RM -r conftest*
8866   LDFLAGS="$save_LDFLAGS"
8867
8868fi
8869{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8870$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8871
8872if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8873    :
8874else
8875    lt_prog_compiler_static=
8876fi
8877
8878
8879
8880
8881
8882
8883
8884  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8885$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8886if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8887  $as_echo_n "(cached) " >&6
8888else
8889  lt_cv_prog_compiler_c_o=no
8890   $RM -r conftest 2>/dev/null
8891   mkdir conftest
8892   cd conftest
8893   mkdir out
8894   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8895
8896   lt_compiler_flag="-o out/conftest2.$ac_objext"
8897   # Insert the option either (1) after the last *FLAGS variable, or
8898   # (2) before a word containing "conftest.", or (3) at the end.
8899   # Note that $ac_compile itself does not contain backslashes and begins
8900   # with a dollar sign (not a hyphen), so the echo should work correctly.
8901   lt_compile=`echo "$ac_compile" | $SED \
8902   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8903   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8904   -e 's:$: $lt_compiler_flag:'`
8905   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8906   (eval "$lt_compile" 2>out/conftest.err)
8907   ac_status=$?
8908   cat out/conftest.err >&5
8909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8910   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8911   then
8912     # The compiler can only warn and ignore the option if not recognized
8913     # So say no if there are warnings
8914     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8915     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8916     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8917       lt_cv_prog_compiler_c_o=yes
8918     fi
8919   fi
8920   chmod u+w . 2>&5
8921   $RM conftest*
8922   # SGI C++ compiler will create directory out/ii_files/ for
8923   # template instantiation
8924   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8925   $RM out/* && rmdir out
8926   cd ..
8927   $RM -r conftest
8928   $RM conftest*
8929
8930fi
8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8932$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8933
8934
8935
8936
8937
8938
8939  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8940$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8941if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
8942  $as_echo_n "(cached) " >&6
8943else
8944  lt_cv_prog_compiler_c_o=no
8945   $RM -r conftest 2>/dev/null
8946   mkdir conftest
8947   cd conftest
8948   mkdir out
8949   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8950
8951   lt_compiler_flag="-o out/conftest2.$ac_objext"
8952   # Insert the option either (1) after the last *FLAGS variable, or
8953   # (2) before a word containing "conftest.", or (3) at the end.
8954   # Note that $ac_compile itself does not contain backslashes and begins
8955   # with a dollar sign (not a hyphen), so the echo should work correctly.
8956   lt_compile=`echo "$ac_compile" | $SED \
8957   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8958   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8959   -e 's:$: $lt_compiler_flag:'`
8960   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8961   (eval "$lt_compile" 2>out/conftest.err)
8962   ac_status=$?
8963   cat out/conftest.err >&5
8964   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8965   if (exit $ac_status) && test -s out/conftest2.$ac_objext
8966   then
8967     # The compiler can only warn and ignore the option if not recognized
8968     # So say no if there are warnings
8969     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8970     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8971     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8972       lt_cv_prog_compiler_c_o=yes
8973     fi
8974   fi
8975   chmod u+w . 2>&5
8976   $RM conftest*
8977   # SGI C++ compiler will create directory out/ii_files/ for
8978   # template instantiation
8979   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8980   $RM out/* && rmdir out
8981   cd ..
8982   $RM -r conftest
8983   $RM conftest*
8984
8985fi
8986{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8987$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8988
8989
8990
8991
8992hard_links="nottested"
8993if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8994  # do not overwrite the value of need_locks provided by the user
8995  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
8996$as_echo_n "checking if we can lock with hard links... " >&6; }
8997  hard_links=yes
8998  $RM conftest*
8999  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9000  touch conftest.a
9001  ln conftest.a conftest.b 2>&5 || hard_links=no
9002  ln conftest.a conftest.b 2>/dev/null && hard_links=no
9003  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9004$as_echo "$hard_links" >&6; }
9005  if test "$hard_links" = no; then
9006    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9007$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9008    need_locks=warn
9009  fi
9010else
9011  need_locks=no
9012fi
9013
9014
9015
9016
9017
9018
9019  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9020$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9021
9022  runpath_var=
9023  allow_undefined_flag=
9024  always_export_symbols=no
9025  archive_cmds=
9026  archive_expsym_cmds=
9027  compiler_needs_object=no
9028  enable_shared_with_static_runtimes=no
9029  export_dynamic_flag_spec=
9030  export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9031  hardcode_automatic=no
9032  hardcode_direct=no
9033  hardcode_direct_absolute=no
9034  hardcode_libdir_flag_spec=
9035  hardcode_libdir_flag_spec_ld=
9036  hardcode_libdir_separator=
9037  hardcode_minus_L=no
9038  hardcode_shlibpath_var=unsupported
9039  inherit_rpath=no
9040  link_all_deplibs=unknown
9041  module_cmds=
9042  module_expsym_cmds=
9043  old_archive_from_new_cmds=
9044  old_archive_from_expsyms_cmds=
9045  thread_safe_flag_spec=
9046  whole_archive_flag_spec=
9047  # include_expsyms should be a list of space-separated symbols to be *always*
9048  # included in the symbol list
9049  include_expsyms=
9050  # exclude_expsyms can be an extended regexp of symbols to exclude
9051  # it will be wrapped by ` (' and `)$', so one must not match beginning or
9052  # end of line.  Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9053  # as well as any symbol that contains `d'.
9054  exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9055  # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9056  # platforms (ab)use it in PIC code, but their linkers get confused if
9057  # the symbol is explicitly referenced.  Since portable code cannot
9058  # rely on this symbol name, it's probably fine to never include it in
9059  # preloaded symbol tables.
9060  # Exclude shared library initialization/finalization symbols.
9061  extract_expsyms_cmds=
9062
9063  case $host_os in
9064  cygwin* | mingw* | pw32* | cegcc*)
9065    # FIXME: the MSVC++ port hasn't been tested in a loooong time
9066    # When not using gcc, we currently assume that we are using
9067    # Microsoft Visual C++.
9068    if test "$GCC" != yes; then
9069      with_gnu_ld=no
9070    fi
9071    ;;
9072  interix*)
9073    # we just hope/assume this is gcc and not c89 (= MSVC++)
9074    with_gnu_ld=yes
9075    ;;
9076  openbsd*)
9077    with_gnu_ld=no
9078    ;;
9079  esac
9080
9081  ld_shlibs=yes
9082
9083  # On some targets, GNU ld is compatible enough with the native linker
9084  # that we're better off using the native interface for both.
9085  lt_use_gnu_ld_interface=no
9086  if test "$with_gnu_ld" = yes; then
9087    case $host_os in
9088      aix*)
9089	# The AIX port of GNU ld has always aspired to compatibility
9090	# with the native linker.  However, as the warning in the GNU ld
9091	# block says, versions before 2.19.5* couldn't really create working
9092	# shared libraries, regardless of the interface used.
9093	case `$LD -v 2>&1` in
9094	  *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9095	  *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9096	  *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9097	  *)
9098	    lt_use_gnu_ld_interface=yes
9099	    ;;
9100	esac
9101	;;
9102      *)
9103	lt_use_gnu_ld_interface=yes
9104	;;
9105    esac
9106  fi
9107
9108  if test "$lt_use_gnu_ld_interface" = yes; then
9109    # If archive_cmds runs LD, not CC, wlarc should be empty
9110    wlarc='${wl}'
9111
9112    # Set some defaults for GNU ld with shared library support. These
9113    # are reset later if shared libraries are not supported. Putting them
9114    # here allows them to be overridden if necessary.
9115    runpath_var=LD_RUN_PATH
9116    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9117    export_dynamic_flag_spec='${wl}--export-dynamic'
9118    # ancient GNU ld didn't support --whole-archive et. al.
9119    if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9120      whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9121    else
9122      whole_archive_flag_spec=
9123    fi
9124    supports_anon_versioning=no
9125    case `$LD -v 2>&1` in
9126      *GNU\ gold*) supports_anon_versioning=yes ;;
9127      *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9128      *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9129      *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9130      *\ 2.11.*) ;; # other 2.11 versions
9131      *) supports_anon_versioning=yes ;;
9132    esac
9133
9134    # See if GNU ld supports shared libraries.
9135    case $host_os in
9136    aix[3-9]*)
9137      # On AIX/PPC, the GNU linker is very broken
9138      if test "$host_cpu" != ia64; then
9139	ld_shlibs=no
9140	cat <<_LT_EOF 1>&2
9141
9142*** Warning: the GNU linker, at least up to release 2.19, is reported
9143*** to be unable to reliably create shared libraries on AIX.
9144*** Therefore, libtool is disabling shared libraries support.  If you
9145*** really care for shared libraries, you may want to install binutils
9146*** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9147*** You will then need to restart the configuration process.
9148
9149_LT_EOF
9150      fi
9151      ;;
9152
9153    amigaos*)
9154      case $host_cpu in
9155      powerpc)
9156            # see comment about AmigaOS4 .so support
9157            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9158            archive_expsym_cmds=''
9159        ;;
9160      m68k)
9161            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)'
9162            hardcode_libdir_flag_spec='-L$libdir'
9163            hardcode_minus_L=yes
9164        ;;
9165      esac
9166      ;;
9167
9168    beos*)
9169      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9170	allow_undefined_flag=unsupported
9171	# Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9172	# support --undefined.  This deserves some investigation.  FIXME
9173	archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9174      else
9175	ld_shlibs=no
9176      fi
9177      ;;
9178
9179    cygwin* | mingw* | pw32* | cegcc*)
9180      # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9181      # as there is no search path for DLLs.
9182      hardcode_libdir_flag_spec='-L$libdir'
9183      export_dynamic_flag_spec='${wl}--export-all-symbols'
9184      allow_undefined_flag=unsupported
9185      always_export_symbols=no
9186      enable_shared_with_static_runtimes=yes
9187      export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9188
9189      if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9190        archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9191	# If the export-symbols file already is a .def file (1st line
9192	# is EXPORTS), use it as is; otherwise, prepend...
9193	archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9194	  cp $export_symbols $output_objdir/$soname.def;
9195	else
9196	  echo EXPORTS > $output_objdir/$soname.def;
9197	  cat $export_symbols >> $output_objdir/$soname.def;
9198	fi~
9199	$CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9200      else
9201	ld_shlibs=no
9202      fi
9203      ;;
9204
9205    haiku*)
9206      archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9207      link_all_deplibs=yes
9208      ;;
9209
9210    interix[3-9]*)
9211      hardcode_direct=no
9212      hardcode_shlibpath_var=no
9213      hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9214      export_dynamic_flag_spec='${wl}-E'
9215      # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9216      # Instead, shared libraries are loaded at an image base (0x10000000 by
9217      # default) and relocated if they conflict, which is a slow very memory
9218      # consuming and fragmenting process.  To avoid this, we pick a random,
9219      # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9220      # time.  Moving up from 0x10000000 also allows more sbrk(2) space.
9221      archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9222      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'
9223      ;;
9224
9225    gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9226      tmp_diet=no
9227      if test "$host_os" = linux-dietlibc; then
9228	case $cc_basename in
9229	  diet\ *) tmp_diet=yes;;	# linux-dietlibc with static linking (!diet-dyn)
9230	esac
9231      fi
9232      if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9233	 && test "$tmp_diet" = no
9234      then
9235	tmp_addflag=
9236	tmp_sharedflag='-shared'
9237	case $cc_basename,$host_cpu in
9238        pgcc*)				# Portland Group C compiler
9239	  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'
9240	  tmp_addflag=' $pic_flag'
9241	  ;;
9242	pgf77* | pgf90* | pgf95* | pgfortran*)
9243					# Portland Group f77 and f90 compilers
9244	  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'
9245	  tmp_addflag=' $pic_flag -Mnomain' ;;
9246	ecc*,ia64* | icc*,ia64*)	# Intel C compiler on ia64
9247	  tmp_addflag=' -i_dynamic' ;;
9248	efc*,ia64* | ifort*,ia64*)	# Intel Fortran compiler on ia64
9249	  tmp_addflag=' -i_dynamic -nofor_main' ;;
9250	ifc* | ifort*)			# Intel Fortran compiler
9251	  tmp_addflag=' -nofor_main' ;;
9252	lf95*)				# Lahey Fortran 8.1
9253	  whole_archive_flag_spec=
9254	  tmp_sharedflag='--shared' ;;
9255	xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9256	  tmp_sharedflag='-qmkshrobj'
9257	  tmp_addflag= ;;
9258	nvcc*)	# Cuda Compiler Driver 2.2
9259	  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'
9260	  compiler_needs_object=yes
9261	  ;;
9262	esac
9263	case `$CC -V 2>&1 | sed 5q` in
9264	*Sun\ C*)			# Sun C 5.9
9265	  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'
9266	  compiler_needs_object=yes
9267	  tmp_sharedflag='-G' ;;
9268	*Sun\ F*)			# Sun Fortran 8.3
9269	  tmp_sharedflag='-G' ;;
9270	esac
9271	archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9272
9273        if test "x$supports_anon_versioning" = xyes; then
9274          archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9275	    cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9276	    echo "local: *; };" >> $output_objdir/$libname.ver~
9277	    $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9278        fi
9279
9280	case $cc_basename in
9281	xlf* | bgf* | bgxlf* | mpixlf*)
9282	  # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9283	  whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9284	  hardcode_libdir_flag_spec=
9285	  hardcode_libdir_flag_spec_ld='-rpath $libdir'
9286	  archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9287	  if test "x$supports_anon_versioning" = xyes; then
9288	    archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9289	      cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9290	      echo "local: *; };" >> $output_objdir/$libname.ver~
9291	      $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9292	  fi
9293	  ;;
9294	esac
9295      else
9296        ld_shlibs=no
9297      fi
9298      ;;
9299
9300    netbsd*)
9301      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9302	archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9303	wlarc=
9304      else
9305	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9306	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9307      fi
9308      ;;
9309
9310    solaris*)
9311      if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9312	ld_shlibs=no
9313	cat <<_LT_EOF 1>&2
9314
9315*** Warning: The releases 2.8.* of the GNU linker cannot reliably
9316*** create shared libraries on Solaris systems.  Therefore, libtool
9317*** is disabling shared libraries support.  We urge you to upgrade GNU
9318*** binutils to release 2.9.1 or newer.  Another option is to modify
9319*** your PATH or compiler configuration so that the native linker is
9320*** used, and then restart.
9321
9322_LT_EOF
9323      elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9324	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9325	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9326      else
9327	ld_shlibs=no
9328      fi
9329      ;;
9330
9331    sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9332      case `$LD -v 2>&1` in
9333        *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9334	ld_shlibs=no
9335	cat <<_LT_EOF 1>&2
9336
9337*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9338*** reliably create shared libraries on SCO systems.  Therefore, libtool
9339*** is disabling shared libraries support.  We urge you to upgrade GNU
9340*** binutils to release 2.16.91.0.3 or newer.  Another option is to modify
9341*** your PATH or compiler configuration so that the native linker is
9342*** used, and then restart.
9343
9344_LT_EOF
9345	;;
9346	*)
9347	  # For security reasons, it is highly recommended that you always
9348	  # use absolute paths for naming shared libraries, and exclude the
9349	  # DT_RUNPATH tag from executables and libraries.  But doing so
9350	  # requires that you compile everything twice, which is a pain.
9351	  if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9352	    hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9353	    archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9354	    archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9355	  else
9356	    ld_shlibs=no
9357	  fi
9358	;;
9359      esac
9360      ;;
9361
9362    sunos4*)
9363      archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9364      wlarc=
9365      hardcode_direct=yes
9366      hardcode_shlibpath_var=no
9367      ;;
9368
9369    *)
9370      if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9371	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372	archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373      else
9374	ld_shlibs=no
9375      fi
9376      ;;
9377    esac
9378
9379    if test "$ld_shlibs" = no; then
9380      runpath_var=
9381      hardcode_libdir_flag_spec=
9382      export_dynamic_flag_spec=
9383      whole_archive_flag_spec=
9384    fi
9385  else
9386    # PORTME fill in a description of your system's linker (not GNU ld)
9387    case $host_os in
9388    aix3*)
9389      allow_undefined_flag=unsupported
9390      always_export_symbols=yes
9391      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'
9392      # Note: this linker hardcodes the directories in LIBPATH if there
9393      # are no directories specified by -L.
9394      hardcode_minus_L=yes
9395      if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9396	# Neither direct hardcoding nor static linking is supported with a
9397	# broken collect2.
9398	hardcode_direct=unsupported
9399      fi
9400      ;;
9401
9402    aix[4-9]*)
9403      if test "$host_cpu" = ia64; then
9404	# On IA64, the linker does run time linking by default, so we don't
9405	# have to do anything special.
9406	aix_use_runtimelinking=no
9407	exp_sym_flag='-Bexport'
9408	no_entry_flag=""
9409      else
9410	# If we're using GNU nm, then we don't want the "-C" option.
9411	# -C means demangle to AIX nm, but means don't demangle with GNU nm
9412	# Also, AIX nm treats weak defined symbols like other global
9413	# defined symbols, whereas GNU nm marks them as "W".
9414	if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9415	  export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9416	else
9417	  export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9418	fi
9419	aix_use_runtimelinking=no
9420
9421	# Test if we are trying to use run time linking or normal
9422	# AIX style linking. If -brtl is somewhere in LDFLAGS, we
9423	# need to do runtime linking.
9424	case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9425	  for ld_flag in $LDFLAGS; do
9426	  if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9427	    aix_use_runtimelinking=yes
9428	    break
9429	  fi
9430	  done
9431	  ;;
9432	esac
9433
9434	exp_sym_flag='-bexport'
9435	no_entry_flag='-bnoentry'
9436      fi
9437
9438      # When large executables or shared objects are built, AIX ld can
9439      # have problems creating the table of contents.  If linking a library
9440      # or program results in "error TOC overflow" add -mminimal-toc to
9441      # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
9442      # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9443
9444      archive_cmds=''
9445      hardcode_direct=yes
9446      hardcode_direct_absolute=yes
9447      hardcode_libdir_separator=':'
9448      link_all_deplibs=yes
9449      file_list_spec='${wl}-f,'
9450
9451      if test "$GCC" = yes; then
9452	case $host_os in aix4.[012]|aix4.[012].*)
9453	# We only want to do this on AIX 4.2 and lower, the check
9454	# below for broken collect2 doesn't work under 4.3+
9455	  collect2name=`${CC} -print-prog-name=collect2`
9456	  if test -f "$collect2name" &&
9457	   strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9458	  then
9459	  # We have reworked collect2
9460	  :
9461	  else
9462	  # We have old collect2
9463	  hardcode_direct=unsupported
9464	  # It fails to find uninstalled libraries when the uninstalled
9465	  # path is not listed in the libpath.  Setting hardcode_minus_L
9466	  # to unsupported forces relinking
9467	  hardcode_minus_L=yes
9468	  hardcode_libdir_flag_spec='-L$libdir'
9469	  hardcode_libdir_separator=
9470	  fi
9471	  ;;
9472	esac
9473	shared_flag='-shared'
9474	if test "$aix_use_runtimelinking" = yes; then
9475	  shared_flag="$shared_flag "'${wl}-G'
9476	fi
9477      else
9478	# not using gcc
9479	if test "$host_cpu" = ia64; then
9480	# VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9481	# chokes on -Wl,-G. The following line is correct:
9482	  shared_flag='-G'
9483	else
9484	  if test "$aix_use_runtimelinking" = yes; then
9485	    shared_flag='${wl}-G'
9486	  else
9487	    shared_flag='${wl}-bM:SRE'
9488	  fi
9489	fi
9490      fi
9491
9492      export_dynamic_flag_spec='${wl}-bexpall'
9493      # It seems that -bexpall does not export symbols beginning with
9494      # underscore (_), so it is better to generate a list of symbols to export.
9495      always_export_symbols=yes
9496      if test "$aix_use_runtimelinking" = yes; then
9497	# Warning - without using the other runtime loading flags (-brtl),
9498	# -berok will link without error, but may produce a broken library.
9499	allow_undefined_flag='-berok'
9500        # Determine the default libpath from the value encoded in an
9501        # empty executable.
9502        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9503/* end confdefs.h.  */
9504
9505int
9506main ()
9507{
9508
9509  ;
9510  return 0;
9511}
9512_ACEOF
9513if ac_fn_c_try_link "$LINENO"; then :
9514
9515lt_aix_libpath_sed='
9516    /Import File Strings/,/^$/ {
9517	/^0/ {
9518	    s/^0  *\(.*\)$/\1/
9519	    p
9520	}
9521    }'
9522aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9523# Check for a 64-bit object if we didn't find anything.
9524if test -z "$aix_libpath"; then
9525  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9526fi
9527fi
9528rm -f core conftest.err conftest.$ac_objext \
9529    conftest$ac_exeext conftest.$ac_ext
9530if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9531
9532        hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9533        archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9534      else
9535	if test "$host_cpu" = ia64; then
9536	  hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9537	  allow_undefined_flag="-z nodefs"
9538	  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"
9539	else
9540	 # Determine the default libpath from the value encoded in an
9541	 # empty executable.
9542	 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9543/* end confdefs.h.  */
9544
9545int
9546main ()
9547{
9548
9549  ;
9550  return 0;
9551}
9552_ACEOF
9553if ac_fn_c_try_link "$LINENO"; then :
9554
9555lt_aix_libpath_sed='
9556    /Import File Strings/,/^$/ {
9557	/^0/ {
9558	    s/^0  *\(.*\)$/\1/
9559	    p
9560	}
9561    }'
9562aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9563# Check for a 64-bit object if we didn't find anything.
9564if test -z "$aix_libpath"; then
9565  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9566fi
9567fi
9568rm -f core conftest.err conftest.$ac_objext \
9569    conftest$ac_exeext conftest.$ac_ext
9570if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9571
9572	 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9573	  # Warning - without using the other run time loading flags,
9574	  # -berok will link without error, but may produce a broken library.
9575	  no_undefined_flag=' ${wl}-bernotok'
9576	  allow_undefined_flag=' ${wl}-berok'
9577	  if test "$with_gnu_ld" = yes; then
9578	    # We only use this code for GNU lds that support --whole-archive.
9579	    whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9580	  else
9581	    # Exported symbols can be pulled into shared objects from archives
9582	    whole_archive_flag_spec='$convenience'
9583	  fi
9584	  archive_cmds_need_lc=yes
9585	  # This is similar to how AIX traditionally builds its shared libraries.
9586	  archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9587	fi
9588      fi
9589      ;;
9590
9591    amigaos*)
9592      case $host_cpu in
9593      powerpc)
9594            # see comment about AmigaOS4 .so support
9595            archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9596            archive_expsym_cmds=''
9597        ;;
9598      m68k)
9599            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)'
9600            hardcode_libdir_flag_spec='-L$libdir'
9601            hardcode_minus_L=yes
9602        ;;
9603      esac
9604      ;;
9605
9606    bsdi[45]*)
9607      export_dynamic_flag_spec=-rdynamic
9608      ;;
9609
9610    cygwin* | mingw* | pw32* | cegcc*)
9611      # When not using gcc, we currently assume that we are using
9612      # Microsoft Visual C++.
9613      # hardcode_libdir_flag_spec is actually meaningless, as there is
9614      # no search path for DLLs.
9615      hardcode_libdir_flag_spec=' '
9616      allow_undefined_flag=unsupported
9617      # Tell ltmain to make .lib files, not .a files.
9618      libext=lib
9619      # Tell ltmain to make .dll files, not .so files.
9620      shrext_cmds=".dll"
9621      # FIXME: Setting linknames here is a bad hack.
9622      archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9623      # The linker will automatically build a .lib file if we build a DLL.
9624      old_archive_from_new_cmds='true'
9625      # FIXME: Should let the user specify the lib program.
9626      old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9627      fix_srcfile_path='`cygpath -w "$srcfile"`'
9628      enable_shared_with_static_runtimes=yes
9629      ;;
9630
9631    darwin* | rhapsody*)
9632
9633
9634  archive_cmds_need_lc=no
9635  hardcode_direct=no
9636  hardcode_automatic=yes
9637  hardcode_shlibpath_var=unsupported
9638  if test "$lt_cv_ld_force_load" = "yes"; then
9639    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\"`'
9640  else
9641    whole_archive_flag_spec=''
9642  fi
9643  link_all_deplibs=yes
9644  allow_undefined_flag="$_lt_dar_allow_undefined"
9645  case $cc_basename in
9646     ifort*) _lt_dar_can_shared=yes ;;
9647     *) _lt_dar_can_shared=$GCC ;;
9648  esac
9649  if test "$_lt_dar_can_shared" = "yes"; then
9650    output_verbose_link_cmd=func_echo_all
9651    archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9652    module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9653    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}"
9654    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}"
9655
9656  else
9657  ld_shlibs=no
9658  fi
9659
9660      ;;
9661
9662    dgux*)
9663      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9664      hardcode_libdir_flag_spec='-L$libdir'
9665      hardcode_shlibpath_var=no
9666      ;;
9667
9668    freebsd1*)
9669      ld_shlibs=no
9670      ;;
9671
9672    # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9673    # support.  Future versions do this automatically, but an explicit c++rt0.o
9674    # does not break anything, and helps significantly (at the cost of a little
9675    # extra space).
9676    freebsd2.2*)
9677      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9678      hardcode_libdir_flag_spec='-R$libdir'
9679      hardcode_direct=yes
9680      hardcode_shlibpath_var=no
9681      ;;
9682
9683    # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9684    freebsd2*)
9685      archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9686      hardcode_direct=yes
9687      hardcode_minus_L=yes
9688      hardcode_shlibpath_var=no
9689      ;;
9690
9691    # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9692    freebsd* | dragonfly*)
9693      archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9694      hardcode_libdir_flag_spec='-R$libdir'
9695      hardcode_direct=yes
9696      hardcode_shlibpath_var=no
9697      ;;
9698
9699    hpux9*)
9700      if test "$GCC" = yes; then
9701	archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9702      else
9703	archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9704      fi
9705      hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9706      hardcode_libdir_separator=:
9707      hardcode_direct=yes
9708
9709      # hardcode_minus_L: Not really in the search PATH,
9710      # but as the default location of the library.
9711      hardcode_minus_L=yes
9712      export_dynamic_flag_spec='${wl}-E'
9713      ;;
9714
9715    hpux10*)
9716      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9717	archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9718      else
9719	archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9720      fi
9721      if test "$with_gnu_ld" = no; then
9722	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9723	hardcode_libdir_flag_spec_ld='+b $libdir'
9724	hardcode_libdir_separator=:
9725	hardcode_direct=yes
9726	hardcode_direct_absolute=yes
9727	export_dynamic_flag_spec='${wl}-E'
9728	# hardcode_minus_L: Not really in the search PATH,
9729	# but as the default location of the library.
9730	hardcode_minus_L=yes
9731      fi
9732      ;;
9733
9734    hpux11*)
9735      if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9736	case $host_cpu in
9737	hppa*64*)
9738	  archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9739	  ;;
9740	ia64*)
9741	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9742	  ;;
9743	*)
9744	  archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9745	  ;;
9746	esac
9747      else
9748	case $host_cpu in
9749	hppa*64*)
9750	  archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9751	  ;;
9752	ia64*)
9753	  archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9754	  ;;
9755	*)
9756
9757	  # Older versions of the 11.00 compiler do not understand -b yet
9758	  # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9759	  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9760$as_echo_n "checking if $CC understands -b... " >&6; }
9761if test "${lt_cv_prog_compiler__b+set}" = set; then :
9762  $as_echo_n "(cached) " >&6
9763else
9764  lt_cv_prog_compiler__b=no
9765   save_LDFLAGS="$LDFLAGS"
9766   LDFLAGS="$LDFLAGS -b"
9767   echo "$lt_simple_link_test_code" > conftest.$ac_ext
9768   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9769     # The linker can only warn and ignore the option if not recognized
9770     # So say no if there are warnings
9771     if test -s conftest.err; then
9772       # Append any errors to the config.log.
9773       cat conftest.err 1>&5
9774       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9775       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9776       if diff conftest.exp conftest.er2 >/dev/null; then
9777         lt_cv_prog_compiler__b=yes
9778       fi
9779     else
9780       lt_cv_prog_compiler__b=yes
9781     fi
9782   fi
9783   $RM -r conftest*
9784   LDFLAGS="$save_LDFLAGS"
9785
9786fi
9787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9788$as_echo "$lt_cv_prog_compiler__b" >&6; }
9789
9790if test x"$lt_cv_prog_compiler__b" = xyes; then
9791    archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9792else
9793    archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9794fi
9795
9796	  ;;
9797	esac
9798      fi
9799      if test "$with_gnu_ld" = no; then
9800	hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9801	hardcode_libdir_separator=:
9802
9803	case $host_cpu in
9804	hppa*64*|ia64*)
9805	  hardcode_direct=no
9806	  hardcode_shlibpath_var=no
9807	  ;;
9808	*)
9809	  hardcode_direct=yes
9810	  hardcode_direct_absolute=yes
9811	  export_dynamic_flag_spec='${wl}-E'
9812
9813	  # hardcode_minus_L: Not really in the search PATH,
9814	  # but as the default location of the library.
9815	  hardcode_minus_L=yes
9816	  ;;
9817	esac
9818      fi
9819      ;;
9820
9821    irix5* | irix6* | nonstopux*)
9822      if test "$GCC" = yes; then
9823	archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9824	# Try to use the -exported_symbol ld option, if it does not
9825	# work, assume that -exports_file does not work either and
9826	# implicitly export all symbols.
9827        save_LDFLAGS="$LDFLAGS"
9828        LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9829        cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9830/* end confdefs.h.  */
9831int foo(void) {}
9832_ACEOF
9833if ac_fn_c_try_link "$LINENO"; then :
9834  archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9835
9836fi
9837rm -f core conftest.err conftest.$ac_objext \
9838    conftest$ac_exeext conftest.$ac_ext
9839        LDFLAGS="$save_LDFLAGS"
9840      else
9841	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'
9842	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'
9843      fi
9844      archive_cmds_need_lc='no'
9845      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9846      hardcode_libdir_separator=:
9847      inherit_rpath=yes
9848      link_all_deplibs=yes
9849      ;;
9850
9851    netbsd*)
9852      if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9853	archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'  # a.out
9854      else
9855	archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags'      # ELF
9856      fi
9857      hardcode_libdir_flag_spec='-R$libdir'
9858      hardcode_direct=yes
9859      hardcode_shlibpath_var=no
9860      ;;
9861
9862    newsos6)
9863      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9864      hardcode_direct=yes
9865      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9866      hardcode_libdir_separator=:
9867      hardcode_shlibpath_var=no
9868      ;;
9869
9870    *nto* | *qnx*)
9871      ;;
9872
9873    openbsd*)
9874      if test -f /usr/libexec/ld.so; then
9875	hardcode_direct=yes
9876	hardcode_shlibpath_var=no
9877	hardcode_direct_absolute=yes
9878	if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9879	  archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9880	  archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9881	  hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9882	  export_dynamic_flag_spec='${wl}-E'
9883	else
9884	  case $host_os in
9885	   openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9886	     archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9887	     hardcode_libdir_flag_spec='-R$libdir'
9888	     ;;
9889	   *)
9890	     archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9891	     hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9892	     ;;
9893	  esac
9894	fi
9895      else
9896	ld_shlibs=no
9897      fi
9898      ;;
9899
9900    os2*)
9901      hardcode_libdir_flag_spec='-L$libdir'
9902      hardcode_minus_L=yes
9903      allow_undefined_flag=unsupported
9904      archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
9905      old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9906      ;;
9907
9908    osf3*)
9909      if test "$GCC" = yes; then
9910	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9911	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'
9912      else
9913	allow_undefined_flag=' -expect_unresolved \*'
9914	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'
9915      fi
9916      archive_cmds_need_lc='no'
9917      hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9918      hardcode_libdir_separator=:
9919      ;;
9920
9921    osf4* | osf5*)	# as osf3* with the addition of -msym flag
9922      if test "$GCC" = yes; then
9923	allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9924	archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9925	hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9926      else
9927	allow_undefined_flag=' -expect_unresolved \*'
9928	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'
9929	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~
9930	$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'
9931
9932	# Both c and cxx compiler support -rpath directly
9933	hardcode_libdir_flag_spec='-rpath $libdir'
9934      fi
9935      archive_cmds_need_lc='no'
9936      hardcode_libdir_separator=:
9937      ;;
9938
9939    solaris*)
9940      no_undefined_flag=' -z defs'
9941      if test "$GCC" = yes; then
9942	wlarc='${wl}'
9943	archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9944	archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9945	  $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9946      else
9947	case `$CC -V 2>&1` in
9948	*"Compilers 5.0"*)
9949	  wlarc=''
9950	  archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9951	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9952	  $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
9953	  ;;
9954	*)
9955	  wlarc='${wl}'
9956	  archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
9957	  archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
9958	  $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
9959	  ;;
9960	esac
9961      fi
9962      hardcode_libdir_flag_spec='-R$libdir'
9963      hardcode_shlibpath_var=no
9964      case $host_os in
9965      solaris2.[0-5] | solaris2.[0-5].*) ;;
9966      *)
9967	# The compiler driver will combine and reorder linker options,
9968	# but understands `-z linker_flag'.  GCC discards it without `$wl',
9969	# but is careful enough not to reorder.
9970	# Supported since Solaris 2.6 (maybe 2.5.1?)
9971	if test "$GCC" = yes; then
9972	  whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
9973	else
9974	  whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
9975	fi
9976	;;
9977      esac
9978      link_all_deplibs=yes
9979      ;;
9980
9981    sunos4*)
9982      if test "x$host_vendor" = xsequent; then
9983	# Use $CC to link under sequent, because it throws in some extra .o
9984	# files that make .init and .fini sections work.
9985	archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9986      else
9987	archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9988      fi
9989      hardcode_libdir_flag_spec='-L$libdir'
9990      hardcode_direct=yes
9991      hardcode_minus_L=yes
9992      hardcode_shlibpath_var=no
9993      ;;
9994
9995    sysv4)
9996      case $host_vendor in
9997	sni)
9998	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9999	  hardcode_direct=yes # is this really true???
10000	;;
10001	siemens)
10002	  ## LD is ld it makes a PLAMLIB
10003	  ## CC just makes a GrossModule.
10004	  archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10005	  reload_cmds='$CC -r -o $output$reload_objs'
10006	  hardcode_direct=no
10007        ;;
10008	motorola)
10009	  archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10010	  hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10011	;;
10012      esac
10013      runpath_var='LD_RUN_PATH'
10014      hardcode_shlibpath_var=no
10015      ;;
10016
10017    sysv4.3*)
10018      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10019      hardcode_shlibpath_var=no
10020      export_dynamic_flag_spec='-Bexport'
10021      ;;
10022
10023    sysv4*MP*)
10024      if test -d /usr/nec; then
10025	archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10026	hardcode_shlibpath_var=no
10027	runpath_var=LD_RUN_PATH
10028	hardcode_runpath_var=yes
10029	ld_shlibs=yes
10030      fi
10031      ;;
10032
10033    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10034      no_undefined_flag='${wl}-z,text'
10035      archive_cmds_need_lc=no
10036      hardcode_shlibpath_var=no
10037      runpath_var='LD_RUN_PATH'
10038
10039      if test "$GCC" = yes; then
10040	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10041	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10042      else
10043	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10044	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10045      fi
10046      ;;
10047
10048    sysv5* | sco3.2v5* | sco5v6*)
10049      # Note: We can NOT use -z defs as we might desire, because we do not
10050      # link with -lc, and that would cause any symbols used from libc to
10051      # always be unresolved, which means just about no library would
10052      # ever link correctly.  If we're not using GNU ld we use -z text
10053      # though, which does catch some bad symbols but isn't as heavy-handed
10054      # as -z defs.
10055      no_undefined_flag='${wl}-z,text'
10056      allow_undefined_flag='${wl}-z,nodefs'
10057      archive_cmds_need_lc=no
10058      hardcode_shlibpath_var=no
10059      hardcode_libdir_flag_spec='${wl}-R,$libdir'
10060      hardcode_libdir_separator=':'
10061      link_all_deplibs=yes
10062      export_dynamic_flag_spec='${wl}-Bexport'
10063      runpath_var='LD_RUN_PATH'
10064
10065      if test "$GCC" = yes; then
10066	archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10067	archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10068      else
10069	archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10070	archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10071      fi
10072      ;;
10073
10074    uts4*)
10075      archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10076      hardcode_libdir_flag_spec='-L$libdir'
10077      hardcode_shlibpath_var=no
10078      ;;
10079
10080    *)
10081      ld_shlibs=no
10082      ;;
10083    esac
10084
10085    if test x$host_vendor = xsni; then
10086      case $host in
10087      sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10088	export_dynamic_flag_spec='${wl}-Blargedynsym'
10089	;;
10090      esac
10091    fi
10092  fi
10093
10094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10095$as_echo "$ld_shlibs" >&6; }
10096test "$ld_shlibs" = no && can_build_shared=no
10097
10098with_gnu_ld=$with_gnu_ld
10099
10100
10101
10102
10103
10104
10105
10106
10107
10108
10109
10110
10111
10112
10113
10114#
10115# Do we need to explicitly link libc?
10116#
10117case "x$archive_cmds_need_lc" in
10118x|xyes)
10119  # Assume -lc should be added
10120  archive_cmds_need_lc=yes
10121
10122  if test "$enable_shared" = yes && test "$GCC" = yes; then
10123    case $archive_cmds in
10124    *'~'*)
10125      # FIXME: we may have to deal with multi-command sequences.
10126      ;;
10127    '$CC '*)
10128      # Test whether the compiler implicitly links with -lc since on some
10129      # systems, -lgcc has to come before -lc. If gcc already passes -lc
10130      # to ld, don't add -lc before -lgcc.
10131      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10132$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10133if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10134  $as_echo_n "(cached) " >&6
10135else
10136  $RM conftest*
10137	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10138
10139	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10140  (eval $ac_compile) 2>&5
10141  ac_status=$?
10142  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10143  test $ac_status = 0; } 2>conftest.err; then
10144	  soname=conftest
10145	  lib=conftest
10146	  libobjs=conftest.$ac_objext
10147	  deplibs=
10148	  wl=$lt_prog_compiler_wl
10149	  pic_flag=$lt_prog_compiler_pic
10150	  compiler_flags=-v
10151	  linker_flags=-v
10152	  verstring=
10153	  output_objdir=.
10154	  libname=conftest
10155	  lt_save_allow_undefined_flag=$allow_undefined_flag
10156	  allow_undefined_flag=
10157	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10158  (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10159  ac_status=$?
10160  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10161  test $ac_status = 0; }
10162	  then
10163	    lt_cv_archive_cmds_need_lc=no
10164	  else
10165	    lt_cv_archive_cmds_need_lc=yes
10166	  fi
10167	  allow_undefined_flag=$lt_save_allow_undefined_flag
10168	else
10169	  cat conftest.err 1>&5
10170	fi
10171	$RM conftest*
10172
10173fi
10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10175$as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10176      archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10177      ;;
10178    esac
10179  fi
10180  ;;
10181esac
10182
10183
10184
10185
10186
10187
10188
10189
10190
10191
10192
10193
10194
10195
10196
10197
10198
10199
10200
10201
10202
10203
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218
10219
10220
10221
10222
10223
10224
10225
10226
10227
10228
10229
10230
10231
10232
10233
10234
10235
10236
10237
10238
10239
10240
10241
10242
10243
10244
10245
10246
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259
10260
10261
10262
10263
10264
10265
10266
10267
10268
10269
10270
10271
10272
10273
10274
10275
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309
10310
10311
10312
10313
10314
10315
10316
10317
10318
10319
10320
10321
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338
10339  { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10340$as_echo_n "checking dynamic linker characteristics... " >&6; }
10341
10342if test "$GCC" = yes; then
10343  case $host_os in
10344    darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10345    *) lt_awk_arg="/^libraries:/" ;;
10346  esac
10347  case $host_os in
10348    mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10349    *) lt_sed_strip_eq="s,=/,/,g" ;;
10350  esac
10351  lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10352  case $lt_search_path_spec in
10353  *\;*)
10354    # if the path contains ";" then we assume it to be the separator
10355    # otherwise default to the standard path separator (i.e. ":") - it is
10356    # assumed that no part of a normal pathname contains ";" but that should
10357    # okay in the real world where ";" in dirpaths is itself problematic.
10358    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10359    ;;
10360  *)
10361    lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10362    ;;
10363  esac
10364  # Ok, now we have the path, separated by spaces, we can step through it
10365  # and add multilib dir if necessary.
10366  lt_tmp_lt_search_path_spec=
10367  lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10368  for lt_sys_path in $lt_search_path_spec; do
10369    if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10370      lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10371    else
10372      test -d "$lt_sys_path" && \
10373	lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10374    fi
10375  done
10376  lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10377BEGIN {RS=" "; FS="/|\n";} {
10378  lt_foo="";
10379  lt_count=0;
10380  for (lt_i = NF; lt_i > 0; lt_i--) {
10381    if ($lt_i != "" && $lt_i != ".") {
10382      if ($lt_i == "..") {
10383        lt_count++;
10384      } else {
10385        if (lt_count == 0) {
10386          lt_foo="/" $lt_i lt_foo;
10387        } else {
10388          lt_count--;
10389        }
10390      }
10391    }
10392  }
10393  if (lt_foo != "") { lt_freq[lt_foo]++; }
10394  if (lt_freq[lt_foo] == 1) { print lt_foo; }
10395}'`
10396  # AWK program above erroneously prepends '/' to C:/dos/paths
10397  # for these hosts.
10398  case $host_os in
10399    mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10400      $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10401  esac
10402  sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10403else
10404  sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10405fi
10406library_names_spec=
10407libname_spec='lib$name'
10408soname_spec=
10409shrext_cmds=".so"
10410postinstall_cmds=
10411postuninstall_cmds=
10412finish_cmds=
10413finish_eval=
10414shlibpath_var=
10415shlibpath_overrides_runpath=unknown
10416version_type=none
10417dynamic_linker="$host_os ld.so"
10418sys_lib_dlsearch_path_spec="/lib /usr/lib"
10419need_lib_prefix=unknown
10420hardcode_into_libs=no
10421
10422# when you set need_version to no, make sure it does not cause -set_version
10423# flags to be left without arguments
10424need_version=unknown
10425
10426case $host_os in
10427aix3*)
10428  version_type=linux
10429  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10430  shlibpath_var=LIBPATH
10431
10432  # AIX 3 has no versioning support, so we append a major version to the name.
10433  soname_spec='${libname}${release}${shared_ext}$major'
10434  ;;
10435
10436aix[4-9]*)
10437  version_type=linux
10438  need_lib_prefix=no
10439  need_version=no
10440  hardcode_into_libs=yes
10441  if test "$host_cpu" = ia64; then
10442    # AIX 5 supports IA64
10443    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10444    shlibpath_var=LD_LIBRARY_PATH
10445  else
10446    # With GCC up to 2.95.x, collect2 would create an import file
10447    # for dependence libraries.  The import file would start with
10448    # the line `#! .'.  This would cause the generated library to
10449    # depend on `.', always an invalid library.  This was fixed in
10450    # development snapshots of GCC prior to 3.0.
10451    case $host_os in
10452      aix4 | aix4.[01] | aix4.[01].*)
10453      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10454	   echo ' yes '
10455	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10456	:
10457      else
10458	can_build_shared=no
10459      fi
10460      ;;
10461    esac
10462    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10463    # soname into executable. Probably we can add versioning support to
10464    # collect2, so additional links can be useful in future.
10465    if test "$aix_use_runtimelinking" = yes; then
10466      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10467      # instead of lib<name>.a to let people know that these are not
10468      # typical AIX shared libraries.
10469      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10470    else
10471      # We preserve .a as extension for shared libraries through AIX4.2
10472      # and later when we are not doing run time linking.
10473      library_names_spec='${libname}${release}.a $libname.a'
10474      soname_spec='${libname}${release}${shared_ext}$major'
10475    fi
10476    shlibpath_var=LIBPATH
10477  fi
10478  ;;
10479
10480amigaos*)
10481  case $host_cpu in
10482  powerpc)
10483    # Since July 2007 AmigaOS4 officially supports .so libraries.
10484    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10485    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10486    ;;
10487  m68k)
10488    library_names_spec='$libname.ixlibrary $libname.a'
10489    # Create ${libname}_ixlibrary.a entries in /sys/libs.
10490    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10491    ;;
10492  esac
10493  ;;
10494
10495beos*)
10496  library_names_spec='${libname}${shared_ext}'
10497  dynamic_linker="$host_os ld.so"
10498  shlibpath_var=LIBRARY_PATH
10499  ;;
10500
10501bsdi[45]*)
10502  version_type=linux
10503  need_version=no
10504  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10505  soname_spec='${libname}${release}${shared_ext}$major'
10506  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10507  shlibpath_var=LD_LIBRARY_PATH
10508  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10509  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10510  # the default ld.so.conf also contains /usr/contrib/lib and
10511  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10512  # libtool to hard-code these into programs
10513  ;;
10514
10515cygwin* | mingw* | pw32* | cegcc*)
10516  version_type=windows
10517  shrext_cmds=".dll"
10518  need_version=no
10519  need_lib_prefix=no
10520
10521  case $GCC,$host_os in
10522  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
10523    library_names_spec='$libname.dll.a'
10524    # DLL is installed to $(libdir)/../bin by postinstall_cmds
10525    postinstall_cmds='base_file=`basename \${file}`~
10526      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10527      dldir=$destdir/`dirname \$dlpath`~
10528      test -d \$dldir || mkdir -p \$dldir~
10529      $install_prog $dir/$dlname \$dldir/$dlname~
10530      chmod a+x \$dldir/$dlname~
10531      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10532        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10533      fi'
10534    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10535      dlpath=$dir/\$dldll~
10536       $RM \$dlpath'
10537    shlibpath_overrides_runpath=yes
10538
10539    case $host_os in
10540    cygwin*)
10541      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10542      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10543
10544      sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10545      ;;
10546    mingw* | cegcc*)
10547      # MinGW DLLs use traditional 'lib' prefix
10548      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10549      ;;
10550    pw32*)
10551      # pw32 DLLs use 'pw' prefix rather than 'lib'
10552      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10553      ;;
10554    esac
10555    ;;
10556
10557  *)
10558    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10559    ;;
10560  esac
10561  dynamic_linker='Win32 ld.exe'
10562  # FIXME: first we should search . and the directory the executable is in
10563  shlibpath_var=PATH
10564  ;;
10565
10566darwin* | rhapsody*)
10567  dynamic_linker="$host_os dyld"
10568  version_type=darwin
10569  need_lib_prefix=no
10570  need_version=no
10571  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10572  soname_spec='${libname}${release}${major}$shared_ext'
10573  shlibpath_overrides_runpath=yes
10574  shlibpath_var=DYLD_LIBRARY_PATH
10575  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10576
10577  sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10578  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10579  ;;
10580
10581dgux*)
10582  version_type=linux
10583  need_lib_prefix=no
10584  need_version=no
10585  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10586  soname_spec='${libname}${release}${shared_ext}$major'
10587  shlibpath_var=LD_LIBRARY_PATH
10588  ;;
10589
10590freebsd1*)
10591  dynamic_linker=no
10592  ;;
10593
10594freebsd* | dragonfly*)
10595  # DragonFly does not have aout.  When/if they implement a new
10596  # versioning mechanism, adjust this.
10597  if test -x /usr/bin/objformat; then
10598    objformat=`/usr/bin/objformat`
10599  else
10600    case $host_os in
10601    freebsd[123]*) objformat=aout ;;
10602    *) objformat=elf ;;
10603    esac
10604  fi
10605  version_type=freebsd-$objformat
10606  case $version_type in
10607    freebsd-elf*)
10608      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10609      need_version=no
10610      need_lib_prefix=no
10611      ;;
10612    freebsd-*)
10613      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10614      need_version=yes
10615      ;;
10616  esac
10617  shlibpath_var=LD_LIBRARY_PATH
10618  case $host_os in
10619  freebsd2*)
10620    shlibpath_overrides_runpath=yes
10621    ;;
10622  freebsd3.[01]* | freebsdelf3.[01]*)
10623    shlibpath_overrides_runpath=yes
10624    hardcode_into_libs=yes
10625    ;;
10626  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10627  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10628    shlibpath_overrides_runpath=no
10629    hardcode_into_libs=yes
10630    ;;
10631  *) # from 4.6 on, and DragonFly
10632    shlibpath_overrides_runpath=yes
10633    hardcode_into_libs=yes
10634    ;;
10635  esac
10636  ;;
10637
10638gnu*)
10639  version_type=linux
10640  need_lib_prefix=no
10641  need_version=no
10642  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10643  soname_spec='${libname}${release}${shared_ext}$major'
10644  shlibpath_var=LD_LIBRARY_PATH
10645  hardcode_into_libs=yes
10646  ;;
10647
10648haiku*)
10649  version_type=linux
10650  need_lib_prefix=no
10651  need_version=no
10652  dynamic_linker="$host_os runtime_loader"
10653  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10654  soname_spec='${libname}${release}${shared_ext}$major'
10655  shlibpath_var=LIBRARY_PATH
10656  shlibpath_overrides_runpath=yes
10657  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10658  hardcode_into_libs=yes
10659  ;;
10660
10661hpux9* | hpux10* | hpux11*)
10662  # Give a soname corresponding to the major version so that dld.sl refuses to
10663  # link against other versions.
10664  version_type=sunos
10665  need_lib_prefix=no
10666  need_version=no
10667  case $host_cpu in
10668  ia64*)
10669    shrext_cmds='.so'
10670    hardcode_into_libs=yes
10671    dynamic_linker="$host_os dld.so"
10672    shlibpath_var=LD_LIBRARY_PATH
10673    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10674    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10675    soname_spec='${libname}${release}${shared_ext}$major'
10676    if test "X$HPUX_IA64_MODE" = X32; then
10677      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10678    else
10679      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10680    fi
10681    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10682    ;;
10683  hppa*64*)
10684    shrext_cmds='.sl'
10685    hardcode_into_libs=yes
10686    dynamic_linker="$host_os dld.sl"
10687    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10688    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10689    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10690    soname_spec='${libname}${release}${shared_ext}$major'
10691    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10692    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10693    ;;
10694  *)
10695    shrext_cmds='.sl'
10696    dynamic_linker="$host_os dld.sl"
10697    shlibpath_var=SHLIB_PATH
10698    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10699    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10700    soname_spec='${libname}${release}${shared_ext}$major'
10701    ;;
10702  esac
10703  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10704  postinstall_cmds='chmod 555 $lib'
10705  # or fails outright, so override atomically:
10706  install_override_mode=555
10707  ;;
10708
10709interix[3-9]*)
10710  version_type=linux
10711  need_lib_prefix=no
10712  need_version=no
10713  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10714  soname_spec='${libname}${release}${shared_ext}$major'
10715  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10716  shlibpath_var=LD_LIBRARY_PATH
10717  shlibpath_overrides_runpath=no
10718  hardcode_into_libs=yes
10719  ;;
10720
10721irix5* | irix6* | nonstopux*)
10722  case $host_os in
10723    nonstopux*) version_type=nonstopux ;;
10724    *)
10725	if test "$lt_cv_prog_gnu_ld" = yes; then
10726		version_type=linux
10727	else
10728		version_type=irix
10729	fi ;;
10730  esac
10731  need_lib_prefix=no
10732  need_version=no
10733  soname_spec='${libname}${release}${shared_ext}$major'
10734  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10735  case $host_os in
10736  irix5* | nonstopux*)
10737    libsuff= shlibsuff=
10738    ;;
10739  *)
10740    case $LD in # libtool.m4 will add one of these switches to LD
10741    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10742      libsuff= shlibsuff= libmagic=32-bit;;
10743    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10744      libsuff=32 shlibsuff=N32 libmagic=N32;;
10745    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10746      libsuff=64 shlibsuff=64 libmagic=64-bit;;
10747    *) libsuff= shlibsuff= libmagic=never-match;;
10748    esac
10749    ;;
10750  esac
10751  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10752  shlibpath_overrides_runpath=no
10753  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10754  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10755  hardcode_into_libs=yes
10756  ;;
10757
10758# No shared lib support for Linux oldld, aout, or coff.
10759linux*oldld* | linux*aout* | linux*coff*)
10760  dynamic_linker=no
10761  ;;
10762
10763# This must be Linux ELF.
10764linux* | k*bsd*-gnu | kopensolaris*-gnu)
10765  version_type=linux
10766  need_lib_prefix=no
10767  need_version=no
10768  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10769  soname_spec='${libname}${release}${shared_ext}$major'
10770  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10771  shlibpath_var=LD_LIBRARY_PATH
10772  shlibpath_overrides_runpath=no
10773
10774  # Some binutils ld are patched to set DT_RUNPATH
10775  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
10776  $as_echo_n "(cached) " >&6
10777else
10778  lt_cv_shlibpath_overrides_runpath=no
10779    save_LDFLAGS=$LDFLAGS
10780    save_libdir=$libdir
10781    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10782	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10783    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10784/* end confdefs.h.  */
10785
10786int
10787main ()
10788{
10789
10790  ;
10791  return 0;
10792}
10793_ACEOF
10794if ac_fn_c_try_link "$LINENO"; then :
10795  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10796  lt_cv_shlibpath_overrides_runpath=yes
10797fi
10798fi
10799rm -f core conftest.err conftest.$ac_objext \
10800    conftest$ac_exeext conftest.$ac_ext
10801    LDFLAGS=$save_LDFLAGS
10802    libdir=$save_libdir
10803
10804fi
10805
10806  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10807
10808  # This implies no fast_install, which is unacceptable.
10809  # Some rework will be needed to allow for fast_install
10810  # before this can be enabled.
10811  hardcode_into_libs=yes
10812
10813  # Add ABI-specific directories to the system library path.
10814  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
10815
10816  # Append ld.so.conf contents to the search path
10817  if test -f /etc/ld.so.conf; then
10818    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' ' '`
10819    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
10820
10821  fi
10822
10823  # We used to test for /lib/ld.so.1 and disable shared libraries on
10824  # powerpc, because MkLinux only supported shared libraries with the
10825  # GNU dynamic linker.  Since this was broken with cross compilers,
10826  # most powerpc-linux boxes support dynamic linking these days and
10827  # people can always --disable-shared, the test was removed, and we
10828  # assume the GNU/Linux dynamic linker is in use.
10829  dynamic_linker='GNU/Linux ld.so'
10830  ;;
10831
10832netbsd*)
10833  version_type=sunos
10834  need_lib_prefix=no
10835  need_version=no
10836  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10837    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10838    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10839    dynamic_linker='NetBSD (a.out) ld.so'
10840  else
10841    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10842    soname_spec='${libname}${release}${shared_ext}$major'
10843    dynamic_linker='NetBSD ld.elf_so'
10844  fi
10845  shlibpath_var=LD_LIBRARY_PATH
10846  shlibpath_overrides_runpath=yes
10847  hardcode_into_libs=yes
10848  ;;
10849
10850newsos6)
10851  version_type=linux
10852  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10853  shlibpath_var=LD_LIBRARY_PATH
10854  shlibpath_overrides_runpath=yes
10855  ;;
10856
10857*nto* | *qnx*)
10858  version_type=qnx
10859  need_lib_prefix=no
10860  need_version=no
10861  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10862  soname_spec='${libname}${release}${shared_ext}$major'
10863  shlibpath_var=LD_LIBRARY_PATH
10864  shlibpath_overrides_runpath=no
10865  hardcode_into_libs=yes
10866  dynamic_linker='ldqnx.so'
10867  ;;
10868
10869openbsd*)
10870  version_type=sunos
10871  sys_lib_dlsearch_path_spec="/usr/lib"
10872  need_lib_prefix=no
10873  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10874  case $host_os in
10875    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
10876    *)				need_version=no  ;;
10877  esac
10878  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10879  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10880  shlibpath_var=LD_LIBRARY_PATH
10881  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10882    case $host_os in
10883      openbsd2.[89] | openbsd2.[89].*)
10884	shlibpath_overrides_runpath=no
10885	;;
10886      *)
10887	shlibpath_overrides_runpath=yes
10888	;;
10889      esac
10890  else
10891    shlibpath_overrides_runpath=yes
10892  fi
10893  ;;
10894
10895os2*)
10896  libname_spec='$name'
10897  shrext_cmds=".dll"
10898  need_lib_prefix=no
10899  library_names_spec='$libname${shared_ext} $libname.a'
10900  dynamic_linker='OS/2 ld.exe'
10901  shlibpath_var=LIBPATH
10902  ;;
10903
10904osf3* | osf4* | osf5*)
10905  version_type=osf
10906  need_lib_prefix=no
10907  need_version=no
10908  soname_spec='${libname}${release}${shared_ext}$major'
10909  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10910  shlibpath_var=LD_LIBRARY_PATH
10911  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10912  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10913  ;;
10914
10915rdos*)
10916  dynamic_linker=no
10917  ;;
10918
10919solaris*)
10920  version_type=linux
10921  need_lib_prefix=no
10922  need_version=no
10923  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10924  soname_spec='${libname}${release}${shared_ext}$major'
10925  shlibpath_var=LD_LIBRARY_PATH
10926  shlibpath_overrides_runpath=yes
10927  hardcode_into_libs=yes
10928  # ldd complains unless libraries are executable
10929  postinstall_cmds='chmod +x $lib'
10930  ;;
10931
10932sunos4*)
10933  version_type=sunos
10934  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10935  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10936  shlibpath_var=LD_LIBRARY_PATH
10937  shlibpath_overrides_runpath=yes
10938  if test "$with_gnu_ld" = yes; then
10939    need_lib_prefix=no
10940  fi
10941  need_version=yes
10942  ;;
10943
10944sysv4 | sysv4.3*)
10945  version_type=linux
10946  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10947  soname_spec='${libname}${release}${shared_ext}$major'
10948  shlibpath_var=LD_LIBRARY_PATH
10949  case $host_vendor in
10950    sni)
10951      shlibpath_overrides_runpath=no
10952      need_lib_prefix=no
10953      runpath_var=LD_RUN_PATH
10954      ;;
10955    siemens)
10956      need_lib_prefix=no
10957      ;;
10958    motorola)
10959      need_lib_prefix=no
10960      need_version=no
10961      shlibpath_overrides_runpath=no
10962      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10963      ;;
10964  esac
10965  ;;
10966
10967sysv4*MP*)
10968  if test -d /usr/nec ;then
10969    version_type=linux
10970    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10971    soname_spec='$libname${shared_ext}.$major'
10972    shlibpath_var=LD_LIBRARY_PATH
10973  fi
10974  ;;
10975
10976sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10977  version_type=freebsd-elf
10978  need_lib_prefix=no
10979  need_version=no
10980  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10981  soname_spec='${libname}${release}${shared_ext}$major'
10982  shlibpath_var=LD_LIBRARY_PATH
10983  shlibpath_overrides_runpath=yes
10984  hardcode_into_libs=yes
10985  if test "$with_gnu_ld" = yes; then
10986    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10987  else
10988    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10989    case $host_os in
10990      sco3.2v5*)
10991        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10992	;;
10993    esac
10994  fi
10995  sys_lib_dlsearch_path_spec='/usr/lib'
10996  ;;
10997
10998tpf*)
10999  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
11000  version_type=linux
11001  need_lib_prefix=no
11002  need_version=no
11003  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11004  shlibpath_var=LD_LIBRARY_PATH
11005  shlibpath_overrides_runpath=no
11006  hardcode_into_libs=yes
11007  ;;
11008
11009uts4*)
11010  version_type=linux
11011  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11012  soname_spec='${libname}${release}${shared_ext}$major'
11013  shlibpath_var=LD_LIBRARY_PATH
11014  ;;
11015
11016*)
11017  dynamic_linker=no
11018  ;;
11019esac
11020{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11021$as_echo "$dynamic_linker" >&6; }
11022test "$dynamic_linker" = no && can_build_shared=no
11023
11024variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11025if test "$GCC" = yes; then
11026  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11027fi
11028
11029if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11030  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11031fi
11032if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11033  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11034fi
11035
11036
11037
11038
11039
11040
11041
11042
11043
11044
11045
11046
11047
11048
11049
11050
11051
11052
11053
11054
11055
11056
11057
11058
11059
11060
11061
11062
11063
11064
11065
11066
11067
11068
11069
11070
11071
11072
11073
11074
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084
11085
11086
11087
11088
11089
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105
11106
11107
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118
11119
11120
11121
11122
11123
11124
11125
11126
11127  { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11128$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11129hardcode_action=
11130if test -n "$hardcode_libdir_flag_spec" ||
11131   test -n "$runpath_var" ||
11132   test "X$hardcode_automatic" = "Xyes" ; then
11133
11134  # We can hardcode non-existent directories.
11135  if test "$hardcode_direct" != no &&
11136     # If the only mechanism to avoid hardcoding is shlibpath_var, we
11137     # have to relink, otherwise we might link with an installed library
11138     # when we should be linking with a yet-to-be-installed one
11139     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11140     test "$hardcode_minus_L" != no; then
11141    # Linking always hardcodes the temporary library directory.
11142    hardcode_action=relink
11143  else
11144    # We can link without hardcoding, and we can hardcode nonexisting dirs.
11145    hardcode_action=immediate
11146  fi
11147else
11148  # We cannot hardcode anything, or else we can only hardcode existing
11149  # directories.
11150  hardcode_action=unsupported
11151fi
11152{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11153$as_echo "$hardcode_action" >&6; }
11154
11155if test "$hardcode_action" = relink ||
11156   test "$inherit_rpath" = yes; then
11157  # Fast installation is not supported
11158  enable_fast_install=no
11159elif test "$shlibpath_overrides_runpath" = yes ||
11160     test "$enable_shared" = no; then
11161  # Fast installation is not necessary
11162  enable_fast_install=needless
11163fi
11164
11165
11166
11167
11168
11169
11170  if test "x$enable_dlopen" != xyes; then
11171  enable_dlopen=unknown
11172  enable_dlopen_self=unknown
11173  enable_dlopen_self_static=unknown
11174else
11175  lt_cv_dlopen=no
11176  lt_cv_dlopen_libs=
11177
11178  case $host_os in
11179  beos*)
11180    lt_cv_dlopen="load_add_on"
11181    lt_cv_dlopen_libs=
11182    lt_cv_dlopen_self=yes
11183    ;;
11184
11185  mingw* | pw32* | cegcc*)
11186    lt_cv_dlopen="LoadLibrary"
11187    lt_cv_dlopen_libs=
11188    ;;
11189
11190  cygwin*)
11191    lt_cv_dlopen="dlopen"
11192    lt_cv_dlopen_libs=
11193    ;;
11194
11195  darwin*)
11196  # if libdl is installed we need to link against it
11197    { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11198$as_echo_n "checking for dlopen in -ldl... " >&6; }
11199if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11200  $as_echo_n "(cached) " >&6
11201else
11202  ac_check_lib_save_LIBS=$LIBS
11203LIBS="-ldl  $LIBS"
11204cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11205/* end confdefs.h.  */
11206
11207/* Override any GCC internal prototype to avoid an error.
11208   Use char because int might match the return type of a GCC
11209   builtin and then its argument prototype would still apply.  */
11210#ifdef __cplusplus
11211extern "C"
11212#endif
11213char dlopen ();
11214int
11215main ()
11216{
11217return dlopen ();
11218  ;
11219  return 0;
11220}
11221_ACEOF
11222if ac_fn_c_try_link "$LINENO"; then :
11223  ac_cv_lib_dl_dlopen=yes
11224else
11225  ac_cv_lib_dl_dlopen=no
11226fi
11227rm -f core conftest.err conftest.$ac_objext \
11228    conftest$ac_exeext conftest.$ac_ext
11229LIBS=$ac_check_lib_save_LIBS
11230fi
11231{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11232$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11233if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11234  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11235else
11236
11237    lt_cv_dlopen="dyld"
11238    lt_cv_dlopen_libs=
11239    lt_cv_dlopen_self=yes
11240
11241fi
11242
11243    ;;
11244
11245  *)
11246    ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11247if test "x$ac_cv_func_shl_load" = x""yes; then :
11248  lt_cv_dlopen="shl_load"
11249else
11250  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11251$as_echo_n "checking for shl_load in -ldld... " >&6; }
11252if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11253  $as_echo_n "(cached) " >&6
11254else
11255  ac_check_lib_save_LIBS=$LIBS
11256LIBS="-ldld  $LIBS"
11257cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11258/* end confdefs.h.  */
11259
11260/* Override any GCC internal prototype to avoid an error.
11261   Use char because int might match the return type of a GCC
11262   builtin and then its argument prototype would still apply.  */
11263#ifdef __cplusplus
11264extern "C"
11265#endif
11266char shl_load ();
11267int
11268main ()
11269{
11270return shl_load ();
11271  ;
11272  return 0;
11273}
11274_ACEOF
11275if ac_fn_c_try_link "$LINENO"; then :
11276  ac_cv_lib_dld_shl_load=yes
11277else
11278  ac_cv_lib_dld_shl_load=no
11279fi
11280rm -f core conftest.err conftest.$ac_objext \
11281    conftest$ac_exeext conftest.$ac_ext
11282LIBS=$ac_check_lib_save_LIBS
11283fi
11284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11285$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11286if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11287  lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11288else
11289  ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11290if test "x$ac_cv_func_dlopen" = x""yes; then :
11291  lt_cv_dlopen="dlopen"
11292else
11293  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11294$as_echo_n "checking for dlopen in -ldl... " >&6; }
11295if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11296  $as_echo_n "(cached) " >&6
11297else
11298  ac_check_lib_save_LIBS=$LIBS
11299LIBS="-ldl  $LIBS"
11300cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11301/* end confdefs.h.  */
11302
11303/* Override any GCC internal prototype to avoid an error.
11304   Use char because int might match the return type of a GCC
11305   builtin and then its argument prototype would still apply.  */
11306#ifdef __cplusplus
11307extern "C"
11308#endif
11309char dlopen ();
11310int
11311main ()
11312{
11313return dlopen ();
11314  ;
11315  return 0;
11316}
11317_ACEOF
11318if ac_fn_c_try_link "$LINENO"; then :
11319  ac_cv_lib_dl_dlopen=yes
11320else
11321  ac_cv_lib_dl_dlopen=no
11322fi
11323rm -f core conftest.err conftest.$ac_objext \
11324    conftest$ac_exeext conftest.$ac_ext
11325LIBS=$ac_check_lib_save_LIBS
11326fi
11327{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11328$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11329if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11330  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11331else
11332  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11333$as_echo_n "checking for dlopen in -lsvld... " >&6; }
11334if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
11335  $as_echo_n "(cached) " >&6
11336else
11337  ac_check_lib_save_LIBS=$LIBS
11338LIBS="-lsvld  $LIBS"
11339cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11340/* end confdefs.h.  */
11341
11342/* Override any GCC internal prototype to avoid an error.
11343   Use char because int might match the return type of a GCC
11344   builtin and then its argument prototype would still apply.  */
11345#ifdef __cplusplus
11346extern "C"
11347#endif
11348char dlopen ();
11349int
11350main ()
11351{
11352return dlopen ();
11353  ;
11354  return 0;
11355}
11356_ACEOF
11357if ac_fn_c_try_link "$LINENO"; then :
11358  ac_cv_lib_svld_dlopen=yes
11359else
11360  ac_cv_lib_svld_dlopen=no
11361fi
11362rm -f core conftest.err conftest.$ac_objext \
11363    conftest$ac_exeext conftest.$ac_ext
11364LIBS=$ac_check_lib_save_LIBS
11365fi
11366{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11367$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11368if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
11369  lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11370else
11371  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11372$as_echo_n "checking for dld_link in -ldld... " >&6; }
11373if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
11374  $as_echo_n "(cached) " >&6
11375else
11376  ac_check_lib_save_LIBS=$LIBS
11377LIBS="-ldld  $LIBS"
11378cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379/* end confdefs.h.  */
11380
11381/* Override any GCC internal prototype to avoid an error.
11382   Use char because int might match the return type of a GCC
11383   builtin and then its argument prototype would still apply.  */
11384#ifdef __cplusplus
11385extern "C"
11386#endif
11387char dld_link ();
11388int
11389main ()
11390{
11391return dld_link ();
11392  ;
11393  return 0;
11394}
11395_ACEOF
11396if ac_fn_c_try_link "$LINENO"; then :
11397  ac_cv_lib_dld_dld_link=yes
11398else
11399  ac_cv_lib_dld_dld_link=no
11400fi
11401rm -f core conftest.err conftest.$ac_objext \
11402    conftest$ac_exeext conftest.$ac_ext
11403LIBS=$ac_check_lib_save_LIBS
11404fi
11405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11406$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11407if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
11408  lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11409fi
11410
11411
11412fi
11413
11414
11415fi
11416
11417
11418fi
11419
11420
11421fi
11422
11423
11424fi
11425
11426    ;;
11427  esac
11428
11429  if test "x$lt_cv_dlopen" != xno; then
11430    enable_dlopen=yes
11431  else
11432    enable_dlopen=no
11433  fi
11434
11435  case $lt_cv_dlopen in
11436  dlopen)
11437    save_CPPFLAGS="$CPPFLAGS"
11438    test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11439
11440    save_LDFLAGS="$LDFLAGS"
11441    wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11442
11443    save_LIBS="$LIBS"
11444    LIBS="$lt_cv_dlopen_libs $LIBS"
11445
11446    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11447$as_echo_n "checking whether a program can dlopen itself... " >&6; }
11448if test "${lt_cv_dlopen_self+set}" = set; then :
11449  $as_echo_n "(cached) " >&6
11450else
11451  	  if test "$cross_compiling" = yes; then :
11452  lt_cv_dlopen_self=cross
11453else
11454  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11455  lt_status=$lt_dlunknown
11456  cat > conftest.$ac_ext <<_LT_EOF
11457#line $LINENO "configure"
11458#include "confdefs.h"
11459
11460#if HAVE_DLFCN_H
11461#include <dlfcn.h>
11462#endif
11463
11464#include <stdio.h>
11465
11466#ifdef RTLD_GLOBAL
11467#  define LT_DLGLOBAL		RTLD_GLOBAL
11468#else
11469#  ifdef DL_GLOBAL
11470#    define LT_DLGLOBAL		DL_GLOBAL
11471#  else
11472#    define LT_DLGLOBAL		0
11473#  endif
11474#endif
11475
11476/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11477   find out it does not work in some platform. */
11478#ifndef LT_DLLAZY_OR_NOW
11479#  ifdef RTLD_LAZY
11480#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11481#  else
11482#    ifdef DL_LAZY
11483#      define LT_DLLAZY_OR_NOW		DL_LAZY
11484#    else
11485#      ifdef RTLD_NOW
11486#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11487#      else
11488#        ifdef DL_NOW
11489#          define LT_DLLAZY_OR_NOW	DL_NOW
11490#        else
11491#          define LT_DLLAZY_OR_NOW	0
11492#        endif
11493#      endif
11494#    endif
11495#  endif
11496#endif
11497
11498/* When -fvisbility=hidden is used, assume the code has been annotated
11499   correspondingly for the symbols needed.  */
11500#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11501void fnord () __attribute__((visibility("default")));
11502#endif
11503
11504void fnord () { int i=42; }
11505int main ()
11506{
11507  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11508  int status = $lt_dlunknown;
11509
11510  if (self)
11511    {
11512      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11513      else
11514        {
11515	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11516          else puts (dlerror ());
11517	}
11518      /* dlclose (self); */
11519    }
11520  else
11521    puts (dlerror ());
11522
11523  return status;
11524}
11525_LT_EOF
11526  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11527  (eval $ac_link) 2>&5
11528  ac_status=$?
11529  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11530  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11531    (./conftest; exit; ) >&5 2>/dev/null
11532    lt_status=$?
11533    case x$lt_status in
11534      x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11535      x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11536      x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11537    esac
11538  else :
11539    # compilation failed
11540    lt_cv_dlopen_self=no
11541  fi
11542fi
11543rm -fr conftest*
11544
11545
11546fi
11547{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11548$as_echo "$lt_cv_dlopen_self" >&6; }
11549
11550    if test "x$lt_cv_dlopen_self" = xyes; then
11551      wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11552      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11553$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11554if test "${lt_cv_dlopen_self_static+set}" = set; then :
11555  $as_echo_n "(cached) " >&6
11556else
11557  	  if test "$cross_compiling" = yes; then :
11558  lt_cv_dlopen_self_static=cross
11559else
11560  lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11561  lt_status=$lt_dlunknown
11562  cat > conftest.$ac_ext <<_LT_EOF
11563#line $LINENO "configure"
11564#include "confdefs.h"
11565
11566#if HAVE_DLFCN_H
11567#include <dlfcn.h>
11568#endif
11569
11570#include <stdio.h>
11571
11572#ifdef RTLD_GLOBAL
11573#  define LT_DLGLOBAL		RTLD_GLOBAL
11574#else
11575#  ifdef DL_GLOBAL
11576#    define LT_DLGLOBAL		DL_GLOBAL
11577#  else
11578#    define LT_DLGLOBAL		0
11579#  endif
11580#endif
11581
11582/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11583   find out it does not work in some platform. */
11584#ifndef LT_DLLAZY_OR_NOW
11585#  ifdef RTLD_LAZY
11586#    define LT_DLLAZY_OR_NOW		RTLD_LAZY
11587#  else
11588#    ifdef DL_LAZY
11589#      define LT_DLLAZY_OR_NOW		DL_LAZY
11590#    else
11591#      ifdef RTLD_NOW
11592#        define LT_DLLAZY_OR_NOW	RTLD_NOW
11593#      else
11594#        ifdef DL_NOW
11595#          define LT_DLLAZY_OR_NOW	DL_NOW
11596#        else
11597#          define LT_DLLAZY_OR_NOW	0
11598#        endif
11599#      endif
11600#    endif
11601#  endif
11602#endif
11603
11604/* When -fvisbility=hidden is used, assume the code has been annotated
11605   correspondingly for the symbols needed.  */
11606#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11607void fnord () __attribute__((visibility("default")));
11608#endif
11609
11610void fnord () { int i=42; }
11611int main ()
11612{
11613  void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11614  int status = $lt_dlunknown;
11615
11616  if (self)
11617    {
11618      if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11619      else
11620        {
11621	  if (dlsym( self,"_fnord"))  status = $lt_dlneed_uscore;
11622          else puts (dlerror ());
11623	}
11624      /* dlclose (self); */
11625    }
11626  else
11627    puts (dlerror ());
11628
11629  return status;
11630}
11631_LT_EOF
11632  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11633  (eval $ac_link) 2>&5
11634  ac_status=$?
11635  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11636  test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11637    (./conftest; exit; ) >&5 2>/dev/null
11638    lt_status=$?
11639    case x$lt_status in
11640      x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11641      x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11642      x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11643    esac
11644  else :
11645    # compilation failed
11646    lt_cv_dlopen_self_static=no
11647  fi
11648fi
11649rm -fr conftest*
11650
11651
11652fi
11653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11654$as_echo "$lt_cv_dlopen_self_static" >&6; }
11655    fi
11656
11657    CPPFLAGS="$save_CPPFLAGS"
11658    LDFLAGS="$save_LDFLAGS"
11659    LIBS="$save_LIBS"
11660    ;;
11661  esac
11662
11663  case $lt_cv_dlopen_self in
11664  yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11665  *) enable_dlopen_self=unknown ;;
11666  esac
11667
11668  case $lt_cv_dlopen_self_static in
11669  yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11670  *) enable_dlopen_self_static=unknown ;;
11671  esac
11672fi
11673
11674
11675
11676
11677
11678
11679
11680
11681
11682
11683
11684
11685
11686
11687
11688
11689
11690striplib=
11691old_striplib=
11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11693$as_echo_n "checking whether stripping libraries is possible... " >&6; }
11694if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11695  test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11696  test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11697  { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11698$as_echo "yes" >&6; }
11699else
11700# FIXME - insert some real tests, host_os isn't really good enough
11701  case $host_os in
11702  darwin*)
11703    if test -n "$STRIP" ; then
11704      striplib="$STRIP -x"
11705      old_striplib="$STRIP -S"
11706      { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11707$as_echo "yes" >&6; }
11708    else
11709      { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11710$as_echo "no" >&6; }
11711    fi
11712    ;;
11713  *)
11714    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11715$as_echo "no" >&6; }
11716    ;;
11717  esac
11718fi
11719
11720
11721
11722
11723
11724
11725
11726
11727
11728
11729
11730
11731  # Report which library types will actually be built
11732  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11733$as_echo_n "checking if libtool supports shared libraries... " >&6; }
11734  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11735$as_echo "$can_build_shared" >&6; }
11736
11737  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11738$as_echo_n "checking whether to build shared libraries... " >&6; }
11739  test "$can_build_shared" = "no" && enable_shared=no
11740
11741  # On AIX, shared libraries and static libraries use the same namespace, and
11742  # are all built from PIC.
11743  case $host_os in
11744  aix3*)
11745    test "$enable_shared" = yes && enable_static=no
11746    if test -n "$RANLIB"; then
11747      archive_cmds="$archive_cmds~\$RANLIB \$lib"
11748      postinstall_cmds='$RANLIB $lib'
11749    fi
11750    ;;
11751
11752  aix[4-9]*)
11753    if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11754      test "$enable_shared" = yes && enable_static=no
11755    fi
11756    ;;
11757  esac
11758  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11759$as_echo "$enable_shared" >&6; }
11760
11761  { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11762$as_echo_n "checking whether to build static libraries... " >&6; }
11763  # Make sure either enable_shared or enable_static is yes.
11764  test "$enable_shared" = yes || enable_static=yes
11765  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11766$as_echo "$enable_static" >&6; }
11767
11768
11769
11770
11771fi
11772ac_ext=cpp
11773ac_cpp='$CXXCPP $CPPFLAGS'
11774ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11775ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11776ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11777
11778CC="$lt_save_CC"
11779
11780      if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11781    ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11782    (test "X$CXX" != "Xg++"))) ; then
11783  ac_ext=cpp
11784ac_cpp='$CXXCPP $CPPFLAGS'
11785ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11786ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11787ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
11789$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
11790if test -z "$CXXCPP"; then
11791  if test "${ac_cv_prog_CXXCPP+set}" = set; then :
11792  $as_echo_n "(cached) " >&6
11793else
11794      # Double quotes because CXXCPP needs to be expanded
11795    for CXXCPP in "$CXX -E" "/lib/cpp"
11796    do
11797      ac_preproc_ok=false
11798for ac_cxx_preproc_warn_flag in '' yes
11799do
11800  # Use a header file that comes with gcc, so configuring glibc
11801  # with a fresh cross-compiler works.
11802  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11803  # <limits.h> exists even on freestanding compilers.
11804  # On the NeXT, cc -E runs the code through the compiler's parser,
11805  # not just through cpp. "Syntax error" is here to catch this case.
11806  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11807/* end confdefs.h.  */
11808#ifdef __STDC__
11809# include <limits.h>
11810#else
11811# include <assert.h>
11812#endif
11813		     Syntax error
11814_ACEOF
11815if ac_fn_cxx_try_cpp "$LINENO"; then :
11816
11817else
11818  # Broken: fails on valid input.
11819continue
11820fi
11821rm -f conftest.err conftest.$ac_ext
11822
11823  # OK, works on sane cases.  Now check whether nonexistent headers
11824  # can be detected and how.
11825  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11826/* end confdefs.h.  */
11827#include <ac_nonexistent.h>
11828_ACEOF
11829if ac_fn_cxx_try_cpp "$LINENO"; then :
11830  # Broken: success on invalid input.
11831continue
11832else
11833  # Passes both tests.
11834ac_preproc_ok=:
11835break
11836fi
11837rm -f conftest.err conftest.$ac_ext
11838
11839done
11840# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11841rm -f conftest.err conftest.$ac_ext
11842if $ac_preproc_ok; then :
11843  break
11844fi
11845
11846    done
11847    ac_cv_prog_CXXCPP=$CXXCPP
11848
11849fi
11850  CXXCPP=$ac_cv_prog_CXXCPP
11851else
11852  ac_cv_prog_CXXCPP=$CXXCPP
11853fi
11854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
11855$as_echo "$CXXCPP" >&6; }
11856ac_preproc_ok=false
11857for ac_cxx_preproc_warn_flag in '' yes
11858do
11859  # Use a header file that comes with gcc, so configuring glibc
11860  # with a fresh cross-compiler works.
11861  # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11862  # <limits.h> exists even on freestanding compilers.
11863  # On the NeXT, cc -E runs the code through the compiler's parser,
11864  # not just through cpp. "Syntax error" is here to catch this case.
11865  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866/* end confdefs.h.  */
11867#ifdef __STDC__
11868# include <limits.h>
11869#else
11870# include <assert.h>
11871#endif
11872		     Syntax error
11873_ACEOF
11874if ac_fn_cxx_try_cpp "$LINENO"; then :
11875
11876else
11877  # Broken: fails on valid input.
11878continue
11879fi
11880rm -f conftest.err conftest.$ac_ext
11881
11882  # OK, works on sane cases.  Now check whether nonexistent headers
11883  # can be detected and how.
11884  cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11885/* end confdefs.h.  */
11886#include <ac_nonexistent.h>
11887_ACEOF
11888if ac_fn_cxx_try_cpp "$LINENO"; then :
11889  # Broken: success on invalid input.
11890continue
11891else
11892  # Passes both tests.
11893ac_preproc_ok=:
11894break
11895fi
11896rm -f conftest.err conftest.$ac_ext
11897
11898done
11899# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11900rm -f conftest.err conftest.$ac_ext
11901if $ac_preproc_ok; then :
11902
11903else
11904  { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
11905$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
11906as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
11907See \`config.log' for more details" "$LINENO" 5; }
11908fi
11909
11910ac_ext=cpp
11911ac_cpp='$CXXCPP $CPPFLAGS'
11912ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11913ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11914ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11915
11916else
11917  _lt_caught_CXX_error=yes
11918fi
11919
11920ac_ext=cpp
11921ac_cpp='$CXXCPP $CPPFLAGS'
11922ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11923ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11924ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11925
11926archive_cmds_need_lc_CXX=no
11927allow_undefined_flag_CXX=
11928always_export_symbols_CXX=no
11929archive_expsym_cmds_CXX=
11930compiler_needs_object_CXX=no
11931export_dynamic_flag_spec_CXX=
11932hardcode_direct_CXX=no
11933hardcode_direct_absolute_CXX=no
11934hardcode_libdir_flag_spec_CXX=
11935hardcode_libdir_flag_spec_ld_CXX=
11936hardcode_libdir_separator_CXX=
11937hardcode_minus_L_CXX=no
11938hardcode_shlibpath_var_CXX=unsupported
11939hardcode_automatic_CXX=no
11940inherit_rpath_CXX=no
11941module_cmds_CXX=
11942module_expsym_cmds_CXX=
11943link_all_deplibs_CXX=unknown
11944old_archive_cmds_CXX=$old_archive_cmds
11945reload_flag_CXX=$reload_flag
11946reload_cmds_CXX=$reload_cmds
11947no_undefined_flag_CXX=
11948whole_archive_flag_spec_CXX=
11949enable_shared_with_static_runtimes_CXX=no
11950
11951# Source file extension for C++ test sources.
11952ac_ext=cpp
11953
11954# Object file extension for compiled C++ test sources.
11955objext=o
11956objext_CXX=$objext
11957
11958# No sense in running all these tests if we already determined that
11959# the CXX compiler isn't working.  Some variables (like enable_shared)
11960# are currently assumed to apply to all compilers on this platform,
11961# and will be corrupted by setting them based on a non-working compiler.
11962if test "$_lt_caught_CXX_error" != yes; then
11963  # Code to be used in simple compile tests
11964  lt_simple_compile_test_code="int some_variable = 0;"
11965
11966  # Code to be used in simple link tests
11967  lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
11968
11969  # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11970
11971
11972
11973
11974
11975
11976# If no C compiler was specified, use CC.
11977LTCC=${LTCC-"$CC"}
11978
11979# If no C compiler flags were specified, use CFLAGS.
11980LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11981
11982# Allow CC to be a program name with arguments.
11983compiler=$CC
11984
11985
11986  # save warnings/boilerplate of simple test code
11987  ac_outfile=conftest.$ac_objext
11988echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11989eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11990_lt_compiler_boilerplate=`cat conftest.err`
11991$RM conftest*
11992
11993  ac_outfile=conftest.$ac_objext
11994echo "$lt_simple_link_test_code" >conftest.$ac_ext
11995eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11996_lt_linker_boilerplate=`cat conftest.err`
11997$RM -r conftest*
11998
11999
12000  # Allow CC to be a program name with arguments.
12001  lt_save_CC=$CC
12002  lt_save_LD=$LD
12003  lt_save_GCC=$GCC
12004  GCC=$GXX
12005  lt_save_with_gnu_ld=$with_gnu_ld
12006  lt_save_path_LD=$lt_cv_path_LD
12007  if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
12008    lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
12009  else
12010    $as_unset lt_cv_prog_gnu_ld
12011  fi
12012  if test -n "${lt_cv_path_LDCXX+set}"; then
12013    lt_cv_path_LD=$lt_cv_path_LDCXX
12014  else
12015    $as_unset lt_cv_path_LD
12016  fi
12017  test -z "${LDCXX+set}" || LD=$LDCXX
12018  CC=${CXX-"c++"}
12019  compiler=$CC
12020  compiler_CXX=$CC
12021  for cc_temp in $compiler""; do
12022  case $cc_temp in
12023    compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12024    distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12025    \-*) ;;
12026    *) break;;
12027  esac
12028done
12029cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12030
12031
12032  if test -n "$compiler"; then
12033    # We don't want -fno-exception when compiling C++ code, so set the
12034    # no_builtin_flag separately
12035    if test "$GXX" = yes; then
12036      lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
12037    else
12038      lt_prog_compiler_no_builtin_flag_CXX=
12039    fi
12040
12041    if test "$GXX" = yes; then
12042      # Set up default GNU C++ configuration
12043
12044
12045
12046# Check whether --with-gnu-ld was given.
12047if test "${with_gnu_ld+set}" = set; then :
12048  withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12049else
12050  with_gnu_ld=no
12051fi
12052
12053ac_prog=ld
12054if test "$GCC" = yes; then
12055  # Check if gcc -print-prog-name=ld gives a path.
12056  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12057$as_echo_n "checking for ld used by $CC... " >&6; }
12058  case $host in
12059  *-*-mingw*)
12060    # gcc leaves a trailing carriage return which upsets mingw
12061    ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12062  *)
12063    ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12064  esac
12065  case $ac_prog in
12066    # Accept absolute paths.
12067    [\\/]* | ?:[\\/]*)
12068      re_direlt='/[^/][^/]*/\.\./'
12069      # Canonicalize the pathname of ld
12070      ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12071      while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12072	ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12073      done
12074      test -z "$LD" && LD="$ac_prog"
12075      ;;
12076  "")
12077    # If it fails, then pretend we aren't using GCC.
12078    ac_prog=ld
12079    ;;
12080  *)
12081    # If it is relative, then search for the first ld in PATH.
12082    with_gnu_ld=unknown
12083    ;;
12084  esac
12085elif test "$with_gnu_ld" = yes; then
12086  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12087$as_echo_n "checking for GNU ld... " >&6; }
12088else
12089  { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12090$as_echo_n "checking for non-GNU ld... " >&6; }
12091fi
12092if test "${lt_cv_path_LD+set}" = set; then :
12093  $as_echo_n "(cached) " >&6
12094else
12095  if test -z "$LD"; then
12096  lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12097  for ac_dir in $PATH; do
12098    IFS="$lt_save_ifs"
12099    test -z "$ac_dir" && ac_dir=.
12100    if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12101      lt_cv_path_LD="$ac_dir/$ac_prog"
12102      # Check to see if the program is GNU ld.  I'd rather use --version,
12103      # but apparently some variants of GNU ld only accept -v.
12104      # Break only if it was the GNU/non-GNU ld that we prefer.
12105      case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12106      *GNU* | *'with BFD'*)
12107	test "$with_gnu_ld" != no && break
12108	;;
12109      *)
12110	test "$with_gnu_ld" != yes && break
12111	;;
12112      esac
12113    fi
12114  done
12115  IFS="$lt_save_ifs"
12116else
12117  lt_cv_path_LD="$LD" # Let the user override the test with a path.
12118fi
12119fi
12120
12121LD="$lt_cv_path_LD"
12122if test -n "$LD"; then
12123  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12124$as_echo "$LD" >&6; }
12125else
12126  { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12127$as_echo "no" >&6; }
12128fi
12129test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
12130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12131$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12132if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12133  $as_echo_n "(cached) " >&6
12134else
12135  # I'd rather use --version here, but apparently some GNU lds only accept -v.
12136case `$LD -v 2>&1 </dev/null` in
12137*GNU* | *'with BFD'*)
12138  lt_cv_prog_gnu_ld=yes
12139  ;;
12140*)
12141  lt_cv_prog_gnu_ld=no
12142  ;;
12143esac
12144fi
12145{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12146$as_echo "$lt_cv_prog_gnu_ld" >&6; }
12147with_gnu_ld=$lt_cv_prog_gnu_ld
12148
12149
12150
12151
12152
12153
12154
12155      # Check if GNU C++ uses GNU ld as the underlying linker, since the
12156      # archiving commands below assume that GNU ld is being used.
12157      if test "$with_gnu_ld" = yes; then
12158        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12159        archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12160
12161        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12162        export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12163
12164        # If archive_cmds runs LD, not CC, wlarc should be empty
12165        # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
12166        #     investigate it a little bit more. (MM)
12167        wlarc='${wl}'
12168
12169        # ancient GNU ld didn't support --whole-archive et. al.
12170        if eval "`$CC -print-prog-name=ld` --help 2>&1" |
12171	  $GREP 'no-whole-archive' > /dev/null; then
12172          whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12173        else
12174          whole_archive_flag_spec_CXX=
12175        fi
12176      else
12177        with_gnu_ld=no
12178        wlarc=
12179
12180        # A generic and very simple default shared library creation
12181        # command for GNU C++ for the case where it uses the native
12182        # linker, instead of GNU ld.  If possible, this setting should
12183        # overridden to take advantage of the native linker features on
12184        # the platform it is being used on.
12185        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12186      fi
12187
12188      # Commands to make compiler produce verbose output that lists
12189      # what "hidden" libraries, object files and flags are used when
12190      # linking a shared library.
12191      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12192
12193    else
12194      GXX=no
12195      with_gnu_ld=no
12196      wlarc=
12197    fi
12198
12199    # PORTME: fill in a description of your system's C++ link characteristics
12200    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12201$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12202    ld_shlibs_CXX=yes
12203    case $host_os in
12204      aix3*)
12205        # FIXME: insert proper C++ library support
12206        ld_shlibs_CXX=no
12207        ;;
12208      aix[4-9]*)
12209        if test "$host_cpu" = ia64; then
12210          # On IA64, the linker does run time linking by default, so we don't
12211          # have to do anything special.
12212          aix_use_runtimelinking=no
12213          exp_sym_flag='-Bexport'
12214          no_entry_flag=""
12215        else
12216          aix_use_runtimelinking=no
12217
12218          # Test if we are trying to use run time linking or normal
12219          # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12220          # need to do runtime linking.
12221          case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12222	    for ld_flag in $LDFLAGS; do
12223	      case $ld_flag in
12224	      *-brtl*)
12225	        aix_use_runtimelinking=yes
12226	        break
12227	        ;;
12228	      esac
12229	    done
12230	    ;;
12231          esac
12232
12233          exp_sym_flag='-bexport'
12234          no_entry_flag='-bnoentry'
12235        fi
12236
12237        # When large executables or shared objects are built, AIX ld can
12238        # have problems creating the table of contents.  If linking a library
12239        # or program results in "error TOC overflow" add -mminimal-toc to
12240        # CXXFLAGS/CFLAGS for g++/gcc.  In the cases where that is not
12241        # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12242
12243        archive_cmds_CXX=''
12244        hardcode_direct_CXX=yes
12245        hardcode_direct_absolute_CXX=yes
12246        hardcode_libdir_separator_CXX=':'
12247        link_all_deplibs_CXX=yes
12248        file_list_spec_CXX='${wl}-f,'
12249
12250        if test "$GXX" = yes; then
12251          case $host_os in aix4.[012]|aix4.[012].*)
12252          # We only want to do this on AIX 4.2 and lower, the check
12253          # below for broken collect2 doesn't work under 4.3+
12254	  collect2name=`${CC} -print-prog-name=collect2`
12255	  if test -f "$collect2name" &&
12256	     strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12257	  then
12258	    # We have reworked collect2
12259	    :
12260	  else
12261	    # We have old collect2
12262	    hardcode_direct_CXX=unsupported
12263	    # It fails to find uninstalled libraries when the uninstalled
12264	    # path is not listed in the libpath.  Setting hardcode_minus_L
12265	    # to unsupported forces relinking
12266	    hardcode_minus_L_CXX=yes
12267	    hardcode_libdir_flag_spec_CXX='-L$libdir'
12268	    hardcode_libdir_separator_CXX=
12269	  fi
12270          esac
12271          shared_flag='-shared'
12272	  if test "$aix_use_runtimelinking" = yes; then
12273	    shared_flag="$shared_flag "'${wl}-G'
12274	  fi
12275        else
12276          # not using gcc
12277          if test "$host_cpu" = ia64; then
12278	  # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12279	  # chokes on -Wl,-G. The following line is correct:
12280	  shared_flag='-G'
12281          else
12282	    if test "$aix_use_runtimelinking" = yes; then
12283	      shared_flag='${wl}-G'
12284	    else
12285	      shared_flag='${wl}-bM:SRE'
12286	    fi
12287          fi
12288        fi
12289
12290        export_dynamic_flag_spec_CXX='${wl}-bexpall'
12291        # It seems that -bexpall does not export symbols beginning with
12292        # underscore (_), so it is better to generate a list of symbols to
12293	# export.
12294        always_export_symbols_CXX=yes
12295        if test "$aix_use_runtimelinking" = yes; then
12296          # Warning - without using the other runtime loading flags (-brtl),
12297          # -berok will link without error, but may produce a broken library.
12298          allow_undefined_flag_CXX='-berok'
12299          # Determine the default libpath from the value encoded in an empty
12300          # executable.
12301          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12302/* end confdefs.h.  */
12303
12304int
12305main ()
12306{
12307
12308  ;
12309  return 0;
12310}
12311_ACEOF
12312if ac_fn_cxx_try_link "$LINENO"; then :
12313
12314lt_aix_libpath_sed='
12315    /Import File Strings/,/^$/ {
12316	/^0/ {
12317	    s/^0  *\(.*\)$/\1/
12318	    p
12319	}
12320    }'
12321aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12322# Check for a 64-bit object if we didn't find anything.
12323if test -z "$aix_libpath"; then
12324  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12325fi
12326fi
12327rm -f core conftest.err conftest.$ac_objext \
12328    conftest$ac_exeext conftest.$ac_ext
12329if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12330
12331          hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12332
12333          archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12334        else
12335          if test "$host_cpu" = ia64; then
12336	    hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
12337	    allow_undefined_flag_CXX="-z nodefs"
12338	    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"
12339          else
12340	    # Determine the default libpath from the value encoded in an
12341	    # empty executable.
12342	    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12343/* end confdefs.h.  */
12344
12345int
12346main ()
12347{
12348
12349  ;
12350  return 0;
12351}
12352_ACEOF
12353if ac_fn_cxx_try_link "$LINENO"; then :
12354
12355lt_aix_libpath_sed='
12356    /Import File Strings/,/^$/ {
12357	/^0/ {
12358	    s/^0  *\(.*\)$/\1/
12359	    p
12360	}
12361    }'
12362aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12363# Check for a 64-bit object if we didn't find anything.
12364if test -z "$aix_libpath"; then
12365  aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12366fi
12367fi
12368rm -f core conftest.err conftest.$ac_objext \
12369    conftest$ac_exeext conftest.$ac_ext
12370if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12371
12372	    hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12373	    # Warning - without using the other run time loading flags,
12374	    # -berok will link without error, but may produce a broken library.
12375	    no_undefined_flag_CXX=' ${wl}-bernotok'
12376	    allow_undefined_flag_CXX=' ${wl}-berok'
12377	    if test "$with_gnu_ld" = yes; then
12378	      # We only use this code for GNU lds that support --whole-archive.
12379	      whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12380	    else
12381	      # Exported symbols can be pulled into shared objects from archives
12382	      whole_archive_flag_spec_CXX='$convenience'
12383	    fi
12384	    archive_cmds_need_lc_CXX=yes
12385	    # This is similar to how AIX traditionally builds its shared
12386	    # libraries.
12387	    archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12388          fi
12389        fi
12390        ;;
12391
12392      beos*)
12393	if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12394	  allow_undefined_flag_CXX=unsupported
12395	  # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12396	  # support --undefined.  This deserves some investigation.  FIXME
12397	  archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12398	else
12399	  ld_shlibs_CXX=no
12400	fi
12401	;;
12402
12403      chorus*)
12404        case $cc_basename in
12405          *)
12406	  # FIXME: insert proper C++ library support
12407	  ld_shlibs_CXX=no
12408	  ;;
12409        esac
12410        ;;
12411
12412      cygwin* | mingw* | pw32* | cegcc*)
12413        # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12414        # as there is no search path for DLLs.
12415        hardcode_libdir_flag_spec_CXX='-L$libdir'
12416        export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
12417        allow_undefined_flag_CXX=unsupported
12418        always_export_symbols_CXX=no
12419        enable_shared_with_static_runtimes_CXX=yes
12420
12421        if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12422          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'
12423          # If the export-symbols file already is a .def file (1st line
12424          # is EXPORTS), use it as is; otherwise, prepend...
12425          archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12426	    cp $export_symbols $output_objdir/$soname.def;
12427          else
12428	    echo EXPORTS > $output_objdir/$soname.def;
12429	    cat $export_symbols >> $output_objdir/$soname.def;
12430          fi~
12431          $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'
12432        else
12433          ld_shlibs_CXX=no
12434        fi
12435        ;;
12436      darwin* | rhapsody*)
12437
12438
12439  archive_cmds_need_lc_CXX=no
12440  hardcode_direct_CXX=no
12441  hardcode_automatic_CXX=yes
12442  hardcode_shlibpath_var_CXX=unsupported
12443  if test "$lt_cv_ld_force_load" = "yes"; then
12444    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\"`'
12445  else
12446    whole_archive_flag_spec_CXX=''
12447  fi
12448  link_all_deplibs_CXX=yes
12449  allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
12450  case $cc_basename in
12451     ifort*) _lt_dar_can_shared=yes ;;
12452     *) _lt_dar_can_shared=$GCC ;;
12453  esac
12454  if test "$_lt_dar_can_shared" = "yes"; then
12455    output_verbose_link_cmd=func_echo_all
12456    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}"
12457    module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12458    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}"
12459    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}"
12460       if test "$lt_cv_apple_cc_single_mod" != "yes"; then
12461      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}"
12462      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}"
12463    fi
12464
12465  else
12466  ld_shlibs_CXX=no
12467  fi
12468
12469	;;
12470
12471      dgux*)
12472        case $cc_basename in
12473          ec++*)
12474	    # FIXME: insert proper C++ library support
12475	    ld_shlibs_CXX=no
12476	    ;;
12477          ghcx*)
12478	    # Green Hills C++ Compiler
12479	    # FIXME: insert proper C++ library support
12480	    ld_shlibs_CXX=no
12481	    ;;
12482          *)
12483	    # FIXME: insert proper C++ library support
12484	    ld_shlibs_CXX=no
12485	    ;;
12486        esac
12487        ;;
12488
12489      freebsd[12]*)
12490        # C++ shared libraries reported to be fairly broken before
12491	# switch to ELF
12492        ld_shlibs_CXX=no
12493        ;;
12494
12495      freebsd-elf*)
12496        archive_cmds_need_lc_CXX=no
12497        ;;
12498
12499      freebsd* | dragonfly*)
12500        # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12501        # conventions
12502        ld_shlibs_CXX=yes
12503        ;;
12504
12505      gnu*)
12506        ;;
12507
12508      haiku*)
12509        archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12510        link_all_deplibs_CXX=yes
12511        ;;
12512
12513      hpux9*)
12514        hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12515        hardcode_libdir_separator_CXX=:
12516        export_dynamic_flag_spec_CXX='${wl}-E'
12517        hardcode_direct_CXX=yes
12518        hardcode_minus_L_CXX=yes # Not in the search PATH,
12519				             # but as the default
12520				             # location of the library.
12521
12522        case $cc_basename in
12523          CC*)
12524            # FIXME: insert proper C++ library support
12525            ld_shlibs_CXX=no
12526            ;;
12527          aCC*)
12528            archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12529            # Commands to make compiler produce verbose output that lists
12530            # what "hidden" libraries, object files and flags are used when
12531            # linking a shared library.
12532            #
12533            # There doesn't appear to be a way to prevent this compiler from
12534            # explicitly linking system object files so we need to strip them
12535            # from the output so that they don't get included in the library
12536            # dependencies.
12537            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"'
12538            ;;
12539          *)
12540            if test "$GXX" = yes; then
12541              archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
12542            else
12543              # FIXME: insert proper C++ library support
12544              ld_shlibs_CXX=no
12545            fi
12546            ;;
12547        esac
12548        ;;
12549
12550      hpux10*|hpux11*)
12551        if test $with_gnu_ld = no; then
12552	  hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12553	  hardcode_libdir_separator_CXX=:
12554
12555          case $host_cpu in
12556            hppa*64*|ia64*)
12557              ;;
12558            *)
12559	      export_dynamic_flag_spec_CXX='${wl}-E'
12560              ;;
12561          esac
12562        fi
12563        case $host_cpu in
12564          hppa*64*|ia64*)
12565            hardcode_direct_CXX=no
12566            hardcode_shlibpath_var_CXX=no
12567            ;;
12568          *)
12569            hardcode_direct_CXX=yes
12570            hardcode_direct_absolute_CXX=yes
12571            hardcode_minus_L_CXX=yes # Not in the search PATH,
12572					         # but as the default
12573					         # location of the library.
12574            ;;
12575        esac
12576
12577        case $cc_basename in
12578          CC*)
12579	    # FIXME: insert proper C++ library support
12580	    ld_shlibs_CXX=no
12581	    ;;
12582          aCC*)
12583	    case $host_cpu in
12584	      hppa*64*)
12585	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12586	        ;;
12587	      ia64*)
12588	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12589	        ;;
12590	      *)
12591	        archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12592	        ;;
12593	    esac
12594	    # Commands to make compiler produce verbose output that lists
12595	    # what "hidden" libraries, object files and flags are used when
12596	    # linking a shared library.
12597	    #
12598	    # There doesn't appear to be a way to prevent this compiler from
12599	    # explicitly linking system object files so we need to strip them
12600	    # from the output so that they don't get included in the library
12601	    # dependencies.
12602	    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"'
12603	    ;;
12604          *)
12605	    if test "$GXX" = yes; then
12606	      if test $with_gnu_ld = no; then
12607	        case $host_cpu in
12608	          hppa*64*)
12609	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12610	            ;;
12611	          ia64*)
12612	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12613	            ;;
12614	          *)
12615	            archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12616	            ;;
12617	        esac
12618	      fi
12619	    else
12620	      # FIXME: insert proper C++ library support
12621	      ld_shlibs_CXX=no
12622	    fi
12623	    ;;
12624        esac
12625        ;;
12626
12627      interix[3-9]*)
12628	hardcode_direct_CXX=no
12629	hardcode_shlibpath_var_CXX=no
12630	hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12631	export_dynamic_flag_spec_CXX='${wl}-E'
12632	# Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12633	# Instead, shared libraries are loaded at an image base (0x10000000 by
12634	# default) and relocated if they conflict, which is a slow very memory
12635	# consuming and fragmenting process.  To avoid this, we pick a random,
12636	# 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12637	# time.  Moving up from 0x10000000 also allows more sbrk(2) space.
12638	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'
12639	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'
12640	;;
12641      irix5* | irix6*)
12642        case $cc_basename in
12643          CC*)
12644	    # SGI C++
12645	    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'
12646
12647	    # Archives containing C++ object files must be created using
12648	    # "CC -ar", where "CC" is the IRIX C++ compiler.  This is
12649	    # necessary to make sure instantiated templates are included
12650	    # in the archive.
12651	    old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12652	    ;;
12653          *)
12654	    if test "$GXX" = yes; then
12655	      if test "$with_gnu_ld" = no; then
12656	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12657	      else
12658	        archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
12659	      fi
12660	    fi
12661	    link_all_deplibs_CXX=yes
12662	    ;;
12663        esac
12664        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12665        hardcode_libdir_separator_CXX=:
12666        inherit_rpath_CXX=yes
12667        ;;
12668
12669      linux* | k*bsd*-gnu | kopensolaris*-gnu)
12670        case $cc_basename in
12671          KCC*)
12672	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12673
12674	    # KCC will only create a shared library if the output file
12675	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12676	    # to its proper name (with version) after linking.
12677	    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'
12678	    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'
12679	    # Commands to make compiler produce verbose output that lists
12680	    # what "hidden" libraries, object files and flags are used when
12681	    # linking a shared library.
12682	    #
12683	    # There doesn't appear to be a way to prevent this compiler from
12684	    # explicitly linking system object files so we need to strip them
12685	    # from the output so that they don't get included in the library
12686	    # dependencies.
12687	    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"'
12688
12689	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12690	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12691
12692	    # Archives containing C++ object files must be created using
12693	    # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12694	    old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12695	    ;;
12696	  icpc* | ecpc* )
12697	    # Intel C++
12698	    with_gnu_ld=yes
12699	    # version 8.0 and above of icpc choke on multiply defined symbols
12700	    # if we add $predep_objects and $postdep_objects, however 7.1 and
12701	    # earlier do not add the objects themselves.
12702	    case `$CC -V 2>&1` in
12703	      *"Version 7."*)
12704	        archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12705		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'
12706		;;
12707	      *)  # Version 8.0 or newer
12708	        tmp_idyn=
12709	        case $host_cpu in
12710		  ia64*) tmp_idyn=' -i_dynamic';;
12711		esac
12712	        archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12713		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'
12714		;;
12715	    esac
12716	    archive_cmds_need_lc_CXX=no
12717	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12718	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12719	    whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12720	    ;;
12721          pgCC* | pgcpp*)
12722            # Portland Group C++ compiler
12723	    case `$CC -V` in
12724	    *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
12725	      prelink_cmds_CXX='tpldir=Template.dir~
12726		rm -rf $tpldir~
12727		$CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
12728		compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
12729	      old_archive_cmds_CXX='tpldir=Template.dir~
12730		rm -rf $tpldir~
12731		$CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
12732		$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
12733		$RANLIB $oldlib'
12734	      archive_cmds_CXX='tpldir=Template.dir~
12735		rm -rf $tpldir~
12736		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12737		$CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12738	      archive_expsym_cmds_CXX='tpldir=Template.dir~
12739		rm -rf $tpldir~
12740		$CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
12741		$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'
12742	      ;;
12743	    *) # Version 6 and above use weak symbols
12744	      archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
12745	      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'
12746	      ;;
12747	    esac
12748
12749	    hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
12750	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12751	    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'
12752            ;;
12753	  cxx*)
12754	    # Compaq C++
12755	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12756	    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'
12757
12758	    runpath_var=LD_RUN_PATH
12759	    hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12760	    hardcode_libdir_separator_CXX=:
12761
12762	    # Commands to make compiler produce verbose output that lists
12763	    # what "hidden" libraries, object files and flags are used when
12764	    # linking a shared library.
12765	    #
12766	    # There doesn't appear to be a way to prevent this compiler from
12767	    # explicitly linking system object files so we need to strip them
12768	    # from the output so that they don't get included in the library
12769	    # dependencies.
12770	    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'
12771	    ;;
12772	  xl* | mpixl* | bgxl*)
12773	    # IBM XL 8.0 on PPC, with GNU ld
12774	    hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12775	    export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12776	    archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12777	    if test "x$supports_anon_versioning" = xyes; then
12778	      archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
12779		cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12780		echo "local: *; };" >> $output_objdir/$libname.ver~
12781		$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12782	    fi
12783	    ;;
12784	  *)
12785	    case `$CC -V 2>&1 | sed 5q` in
12786	    *Sun\ C*)
12787	      # Sun C++ 5.9
12788	      no_undefined_flag_CXX=' -zdefs'
12789	      archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12790	      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'
12791	      hardcode_libdir_flag_spec_CXX='-R$libdir'
12792	      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'
12793	      compiler_needs_object_CXX=yes
12794
12795	      # Not sure whether something based on
12796	      # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
12797	      # would be better.
12798	      output_verbose_link_cmd='func_echo_all'
12799
12800	      # Archives containing C++ object files must be created using
12801	      # "CC -xar", where "CC" is the Sun C++ compiler.  This is
12802	      # necessary to make sure instantiated templates are included
12803	      # in the archive.
12804	      old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12805	      ;;
12806	    esac
12807	    ;;
12808	esac
12809	;;
12810
12811      lynxos*)
12812        # FIXME: insert proper C++ library support
12813	ld_shlibs_CXX=no
12814	;;
12815
12816      m88k*)
12817        # FIXME: insert proper C++ library support
12818        ld_shlibs_CXX=no
12819	;;
12820
12821      mvs*)
12822        case $cc_basename in
12823          cxx*)
12824	    # FIXME: insert proper C++ library support
12825	    ld_shlibs_CXX=no
12826	    ;;
12827	  *)
12828	    # FIXME: insert proper C++ library support
12829	    ld_shlibs_CXX=no
12830	    ;;
12831	esac
12832	;;
12833
12834      netbsd*)
12835        if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12836	  archive_cmds_CXX='$LD -Bshareable  -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12837	  wlarc=
12838	  hardcode_libdir_flag_spec_CXX='-R$libdir'
12839	  hardcode_direct_CXX=yes
12840	  hardcode_shlibpath_var_CXX=no
12841	fi
12842	# Workaround some broken pre-1.5 toolchains
12843	output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12844	;;
12845
12846      *nto* | *qnx*)
12847        ld_shlibs_CXX=yes
12848	;;
12849
12850      openbsd2*)
12851        # C++ shared libraries are fairly broken
12852	ld_shlibs_CXX=no
12853	;;
12854
12855      openbsd*)
12856	if test -f /usr/libexec/ld.so; then
12857	  hardcode_direct_CXX=yes
12858	  hardcode_shlibpath_var_CXX=no
12859	  hardcode_direct_absolute_CXX=yes
12860	  archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
12861	  hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12862	  if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12863	    archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
12864	    export_dynamic_flag_spec_CXX='${wl}-E'
12865	    whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12866	  fi
12867	  output_verbose_link_cmd=func_echo_all
12868	else
12869	  ld_shlibs_CXX=no
12870	fi
12871	;;
12872
12873      osf3* | osf4* | osf5*)
12874        case $cc_basename in
12875          KCC*)
12876	    # Kuck and Associates, Inc. (KAI) C++ Compiler
12877
12878	    # KCC will only create a shared library if the output file
12879	    # ends with ".so" (or ".sl" for HP-UX), so rename the library
12880	    # to its proper name (with version) after linking.
12881	    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'
12882
12883	    hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12884	    hardcode_libdir_separator_CXX=:
12885
12886	    # Archives containing C++ object files must be created using
12887	    # the KAI C++ compiler.
12888	    case $host in
12889	      osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
12890	      *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
12891	    esac
12892	    ;;
12893          RCC*)
12894	    # Rational C++ 2.4.1
12895	    # FIXME: insert proper C++ library support
12896	    ld_shlibs_CXX=no
12897	    ;;
12898          cxx*)
12899	    case $host in
12900	      osf3*)
12901	        allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12902	        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'
12903	        hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12904		;;
12905	      *)
12906	        allow_undefined_flag_CXX=' -expect_unresolved \*'
12907	        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'
12908	        archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12909	          echo "-hidden">> $lib.exp~
12910	          $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~
12911	          $RM $lib.exp'
12912	        hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12913		;;
12914	    esac
12915
12916	    hardcode_libdir_separator_CXX=:
12917
12918	    # Commands to make compiler produce verbose output that lists
12919	    # what "hidden" libraries, object files and flags are used when
12920	    # linking a shared library.
12921	    #
12922	    # There doesn't appear to be a way to prevent this compiler from
12923	    # explicitly linking system object files so we need to strip them
12924	    # from the output so that they don't get included in the library
12925	    # dependencies.
12926	    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"'
12927	    ;;
12928	  *)
12929	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12930	      allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12931	      case $host in
12932	        osf3*)
12933	          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'
12934		  ;;
12935	        *)
12936	          archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12937		  ;;
12938	      esac
12939
12940	      hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12941	      hardcode_libdir_separator_CXX=:
12942
12943	      # Commands to make compiler produce verbose output that lists
12944	      # what "hidden" libraries, object files and flags are used when
12945	      # linking a shared library.
12946	      output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
12947
12948	    else
12949	      # FIXME: insert proper C++ library support
12950	      ld_shlibs_CXX=no
12951	    fi
12952	    ;;
12953        esac
12954        ;;
12955
12956      psos*)
12957        # FIXME: insert proper C++ library support
12958        ld_shlibs_CXX=no
12959        ;;
12960
12961      sunos4*)
12962        case $cc_basename in
12963          CC*)
12964	    # Sun C++ 4.x
12965	    # FIXME: insert proper C++ library support
12966	    ld_shlibs_CXX=no
12967	    ;;
12968          lcc*)
12969	    # Lucid
12970	    # FIXME: insert proper C++ library support
12971	    ld_shlibs_CXX=no
12972	    ;;
12973          *)
12974	    # FIXME: insert proper C++ library support
12975	    ld_shlibs_CXX=no
12976	    ;;
12977        esac
12978        ;;
12979
12980      solaris*)
12981        case $cc_basename in
12982          CC* | sunCC*)
12983	    # Sun C++ 4.2, 5.x and Centerline C++
12984            archive_cmds_need_lc_CXX=yes
12985	    no_undefined_flag_CXX=' -zdefs'
12986	    archive_cmds_CXX='$CC -G${allow_undefined_flag}  -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12987	    archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12988	      $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'
12989
12990	    hardcode_libdir_flag_spec_CXX='-R$libdir'
12991	    hardcode_shlibpath_var_CXX=no
12992	    case $host_os in
12993	      solaris2.[0-5] | solaris2.[0-5].*) ;;
12994	      *)
12995		# The compiler driver will combine and reorder linker options,
12996		# but understands `-z linker_flag'.
12997	        # Supported since Solaris 2.6 (maybe 2.5.1?)
12998		whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
12999	        ;;
13000	    esac
13001	    link_all_deplibs_CXX=yes
13002
13003	    output_verbose_link_cmd='func_echo_all'
13004
13005	    # Archives containing C++ object files must be created using
13006	    # "CC -xar", where "CC" is the Sun C++ compiler.  This is
13007	    # necessary to make sure instantiated templates are included
13008	    # in the archive.
13009	    old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
13010	    ;;
13011          gcx*)
13012	    # Green Hills C++ Compiler
13013	    archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13014
13015	    # The C++ compiler must be used to create the archive.
13016	    old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
13017	    ;;
13018          *)
13019	    # GNU C++ compiler with Solaris linker
13020	    if test "$GXX" = yes && test "$with_gnu_ld" = no; then
13021	      no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
13022	      if $CC --version | $GREP -v '^2\.7' > /dev/null; then
13023	        archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13024	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13025		  $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13026
13027	        # Commands to make compiler produce verbose output that lists
13028	        # what "hidden" libraries, object files and flags are used when
13029	        # linking a shared library.
13030	        output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13031	      else
13032	        # g++ 2.7 appears to require `-G' NOT `-shared' on this
13033	        # platform.
13034	        archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
13035	        archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13036		  $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
13037
13038	        # Commands to make compiler produce verbose output that lists
13039	        # what "hidden" libraries, object files and flags are used when
13040	        # linking a shared library.
13041	        output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13042	      fi
13043
13044	      hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
13045	      case $host_os in
13046		solaris2.[0-5] | solaris2.[0-5].*) ;;
13047		*)
13048		  whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13049		  ;;
13050	      esac
13051	    fi
13052	    ;;
13053        esac
13054        ;;
13055
13056    sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13057      no_undefined_flag_CXX='${wl}-z,text'
13058      archive_cmds_need_lc_CXX=no
13059      hardcode_shlibpath_var_CXX=no
13060      runpath_var='LD_RUN_PATH'
13061
13062      case $cc_basename in
13063        CC*)
13064	  archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13065	  archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13066	  ;;
13067	*)
13068	  archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13069	  archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13070	  ;;
13071      esac
13072      ;;
13073
13074      sysv5* | sco3.2v5* | sco5v6*)
13075	# Note: We can NOT use -z defs as we might desire, because we do not
13076	# link with -lc, and that would cause any symbols used from libc to
13077	# always be unresolved, which means just about no library would
13078	# ever link correctly.  If we're not using GNU ld we use -z text
13079	# though, which does catch some bad symbols but isn't as heavy-handed
13080	# as -z defs.
13081	no_undefined_flag_CXX='${wl}-z,text'
13082	allow_undefined_flag_CXX='${wl}-z,nodefs'
13083	archive_cmds_need_lc_CXX=no
13084	hardcode_shlibpath_var_CXX=no
13085	hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
13086	hardcode_libdir_separator_CXX=':'
13087	link_all_deplibs_CXX=yes
13088	export_dynamic_flag_spec_CXX='${wl}-Bexport'
13089	runpath_var='LD_RUN_PATH'
13090
13091	case $cc_basename in
13092          CC*)
13093	    archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094	    archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13095	    old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
13096	      '"$old_archive_cmds_CXX"
13097	    reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
13098	      '"$reload_cmds_CXX"
13099	    ;;
13100	  *)
13101	    archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13102	    archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13103	    ;;
13104	esac
13105      ;;
13106
13107      tandem*)
13108        case $cc_basename in
13109          NCC*)
13110	    # NonStop-UX NCC 3.20
13111	    # FIXME: insert proper C++ library support
13112	    ld_shlibs_CXX=no
13113	    ;;
13114          *)
13115	    # FIXME: insert proper C++ library support
13116	    ld_shlibs_CXX=no
13117	    ;;
13118        esac
13119        ;;
13120
13121      vxworks*)
13122        # FIXME: insert proper C++ library support
13123        ld_shlibs_CXX=no
13124        ;;
13125
13126      *)
13127        # FIXME: insert proper C++ library support
13128        ld_shlibs_CXX=no
13129        ;;
13130    esac
13131
13132    { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13133$as_echo "$ld_shlibs_CXX" >&6; }
13134    test "$ld_shlibs_CXX" = no && can_build_shared=no
13135
13136    GCC_CXX="$GXX"
13137    LD_CXX="$LD"
13138
13139    ## CAVEAT EMPTOR:
13140    ## There is no encapsulation within the following macros, do not change
13141    ## the running order or otherwise move them around unless you know exactly
13142    ## what you are doing...
13143    # Dependencies to place before and after the object being linked:
13144predep_objects_CXX=
13145postdep_objects_CXX=
13146predeps_CXX=
13147postdeps_CXX=
13148compiler_lib_search_path_CXX=
13149
13150cat > conftest.$ac_ext <<_LT_EOF
13151class Foo
13152{
13153public:
13154  Foo (void) { a = 0; }
13155private:
13156  int a;
13157};
13158_LT_EOF
13159
13160if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13161  (eval $ac_compile) 2>&5
13162  ac_status=$?
13163  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13164  test $ac_status = 0; }; then
13165  # Parse the compiler output and extract the necessary
13166  # objects, libraries and library flags.
13167
13168  # Sentinel used to keep track of whether or not we are before
13169  # the conftest object file.
13170  pre_test_object_deps_done=no
13171
13172  for p in `eval "$output_verbose_link_cmd"`; do
13173    case $p in
13174
13175    -L* | -R* | -l*)
13176       # Some compilers place space between "-{L,R}" and the path.
13177       # Remove the space.
13178       if test $p = "-L" ||
13179          test $p = "-R"; then
13180	 prev=$p
13181	 continue
13182       else
13183	 prev=
13184       fi
13185
13186       if test "$pre_test_object_deps_done" = no; then
13187	 case $p in
13188	 -L* | -R*)
13189	   # Internal compiler library paths should come after those
13190	   # provided the user.  The postdeps already come after the
13191	   # user supplied libs so there is no need to process them.
13192	   if test -z "$compiler_lib_search_path_CXX"; then
13193	     compiler_lib_search_path_CXX="${prev}${p}"
13194	   else
13195	     compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
13196	   fi
13197	   ;;
13198	 # The "-l" case would never come before the object being
13199	 # linked, so don't bother handling this case.
13200	 esac
13201       else
13202	 if test -z "$postdeps_CXX"; then
13203	   postdeps_CXX="${prev}${p}"
13204	 else
13205	   postdeps_CXX="${postdeps_CXX} ${prev}${p}"
13206	 fi
13207       fi
13208       ;;
13209
13210    *.$objext)
13211       # This assumes that the test object file only shows up
13212       # once in the compiler output.
13213       if test "$p" = "conftest.$objext"; then
13214	 pre_test_object_deps_done=yes
13215	 continue
13216       fi
13217
13218       if test "$pre_test_object_deps_done" = no; then
13219	 if test -z "$predep_objects_CXX"; then
13220	   predep_objects_CXX="$p"
13221	 else
13222	   predep_objects_CXX="$predep_objects_CXX $p"
13223	 fi
13224       else
13225	 if test -z "$postdep_objects_CXX"; then
13226	   postdep_objects_CXX="$p"
13227	 else
13228	   postdep_objects_CXX="$postdep_objects_CXX $p"
13229	 fi
13230       fi
13231       ;;
13232
13233    *) ;; # Ignore the rest.
13234
13235    esac
13236  done
13237
13238  # Clean up.
13239  rm -f a.out a.exe
13240else
13241  echo "libtool.m4: error: problem compiling CXX test program"
13242fi
13243
13244$RM -f confest.$objext
13245
13246# PORTME: override above test on systems where it is broken
13247case $host_os in
13248interix[3-9]*)
13249  # Interix 3.5 installs completely hosed .la files for C++, so rather than
13250  # hack all around it, let's just trust "g++" to DTRT.
13251  predep_objects_CXX=
13252  postdep_objects_CXX=
13253  postdeps_CXX=
13254  ;;
13255
13256linux*)
13257  case `$CC -V 2>&1 | sed 5q` in
13258  *Sun\ C*)
13259    # Sun C++ 5.9
13260
13261    # The more standards-conforming stlport4 library is
13262    # incompatible with the Cstd library. Avoid specifying
13263    # it if it's in CXXFLAGS. Ignore libCrun as
13264    # -library=stlport4 depends on it.
13265    case " $CXX $CXXFLAGS " in
13266    *" -library=stlport4 "*)
13267      solaris_use_stlport4=yes
13268      ;;
13269    esac
13270
13271    if test "$solaris_use_stlport4" != yes; then
13272      postdeps_CXX='-library=Cstd -library=Crun'
13273    fi
13274    ;;
13275  esac
13276  ;;
13277
13278solaris*)
13279  case $cc_basename in
13280  CC* | sunCC*)
13281    # The more standards-conforming stlport4 library is
13282    # incompatible with the Cstd library. Avoid specifying
13283    # it if it's in CXXFLAGS. Ignore libCrun as
13284    # -library=stlport4 depends on it.
13285    case " $CXX $CXXFLAGS " in
13286    *" -library=stlport4 "*)
13287      solaris_use_stlport4=yes
13288      ;;
13289    esac
13290
13291    # Adding this requires a known-good setup of shared libraries for
13292    # Sun compiler versions before 5.6, else PIC objects from an old
13293    # archive will be linked into the output, leading to subtle bugs.
13294    if test "$solaris_use_stlport4" != yes; then
13295      postdeps_CXX='-library=Cstd -library=Crun'
13296    fi
13297    ;;
13298  esac
13299  ;;
13300esac
13301
13302
13303case " $postdeps_CXX " in
13304*" -lc "*) archive_cmds_need_lc_CXX=no ;;
13305esac
13306 compiler_lib_search_dirs_CXX=
13307if test -n "${compiler_lib_search_path_CXX}"; then
13308 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13309fi
13310
13311
13312
13313
13314
13315
13316
13317
13318
13319
13320
13321
13322
13323
13324
13325
13326
13327
13328
13329
13330
13331
13332
13333
13334
13335
13336
13337
13338
13339
13340
13341    lt_prog_compiler_wl_CXX=
13342lt_prog_compiler_pic_CXX=
13343lt_prog_compiler_static_CXX=
13344
13345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13346$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13347
13348  # C++ specific cases for pic, static, wl, etc.
13349  if test "$GXX" = yes; then
13350    lt_prog_compiler_wl_CXX='-Wl,'
13351    lt_prog_compiler_static_CXX='-static'
13352
13353    case $host_os in
13354    aix*)
13355      # All AIX code is PIC.
13356      if test "$host_cpu" = ia64; then
13357	# AIX 5 now supports IA64 processor
13358	lt_prog_compiler_static_CXX='-Bstatic'
13359      fi
13360      ;;
13361
13362    amigaos*)
13363      case $host_cpu in
13364      powerpc)
13365            # see comment about AmigaOS4 .so support
13366            lt_prog_compiler_pic_CXX='-fPIC'
13367        ;;
13368      m68k)
13369            # FIXME: we need at least 68020 code to build shared libraries, but
13370            # adding the `-m68020' flag to GCC prevents building anything better,
13371            # like `-m68040'.
13372            lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
13373        ;;
13374      esac
13375      ;;
13376
13377    beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13378      # PIC is the default for these OSes.
13379      ;;
13380    mingw* | cygwin* | os2* | pw32* | cegcc*)
13381      # This hack is so that the source file can tell whether it is being
13382      # built for inclusion in a dll (and should export symbols for example).
13383      # Although the cygwin gcc ignores -fPIC, still need this for old-style
13384      # (--disable-auto-import) libraries
13385      lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
13386      ;;
13387    darwin* | rhapsody*)
13388      # PIC is the default on this platform
13389      # Common symbols not allowed in MH_DYLIB files
13390      lt_prog_compiler_pic_CXX='-fno-common'
13391      ;;
13392    *djgpp*)
13393      # DJGPP does not support shared libraries at all
13394      lt_prog_compiler_pic_CXX=
13395      ;;
13396    haiku*)
13397      # PIC is the default for Haiku.
13398      # The "-static" flag exists, but is broken.
13399      lt_prog_compiler_static_CXX=
13400      ;;
13401    interix[3-9]*)
13402      # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13403      # Instead, we relocate shared libraries at runtime.
13404      ;;
13405    sysv4*MP*)
13406      if test -d /usr/nec; then
13407	lt_prog_compiler_pic_CXX=-Kconform_pic
13408      fi
13409      ;;
13410    hpux*)
13411      # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13412      # PA HP-UX.  On IA64 HP-UX, PIC is the default but the pic flag
13413      # sets the default TLS model and affects inlining.
13414      case $host_cpu in
13415      hppa*64*)
13416	;;
13417      *)
13418	lt_prog_compiler_pic_CXX='-fPIC'
13419	;;
13420      esac
13421      ;;
13422    *qnx* | *nto*)
13423      # QNX uses GNU C++, but need to define -shared option too, otherwise
13424      # it will coredump.
13425      lt_prog_compiler_pic_CXX='-fPIC -shared'
13426      ;;
13427    *)
13428      lt_prog_compiler_pic_CXX='-fPIC'
13429      ;;
13430    esac
13431  else
13432    case $host_os in
13433      aix[4-9]*)
13434	# All AIX code is PIC.
13435	if test "$host_cpu" = ia64; then
13436	  # AIX 5 now supports IA64 processor
13437	  lt_prog_compiler_static_CXX='-Bstatic'
13438	else
13439	  lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
13440	fi
13441	;;
13442      chorus*)
13443	case $cc_basename in
13444	cxch68*)
13445	  # Green Hills C++ Compiler
13446	  # _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"
13447	  ;;
13448	esac
13449	;;
13450      dgux*)
13451	case $cc_basename in
13452	  ec++*)
13453	    lt_prog_compiler_pic_CXX='-KPIC'
13454	    ;;
13455	  ghcx*)
13456	    # Green Hills C++ Compiler
13457	    lt_prog_compiler_pic_CXX='-pic'
13458	    ;;
13459	  *)
13460	    ;;
13461	esac
13462	;;
13463      freebsd* | dragonfly*)
13464	# FreeBSD uses GNU C++
13465	;;
13466      hpux9* | hpux10* | hpux11*)
13467	case $cc_basename in
13468	  CC*)
13469	    lt_prog_compiler_wl_CXX='-Wl,'
13470	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13471	    if test "$host_cpu" != ia64; then
13472	      lt_prog_compiler_pic_CXX='+Z'
13473	    fi
13474	    ;;
13475	  aCC*)
13476	    lt_prog_compiler_wl_CXX='-Wl,'
13477	    lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
13478	    case $host_cpu in
13479	    hppa*64*|ia64*)
13480	      # +Z the default
13481	      ;;
13482	    *)
13483	      lt_prog_compiler_pic_CXX='+Z'
13484	      ;;
13485	    esac
13486	    ;;
13487	  *)
13488	    ;;
13489	esac
13490	;;
13491      interix*)
13492	# This is c89, which is MS Visual C++ (no shared libs)
13493	# Anyone wants to do a port?
13494	;;
13495      irix5* | irix6* | nonstopux*)
13496	case $cc_basename in
13497	  CC*)
13498	    lt_prog_compiler_wl_CXX='-Wl,'
13499	    lt_prog_compiler_static_CXX='-non_shared'
13500	    # CC pic flag -KPIC is the default.
13501	    ;;
13502	  *)
13503	    ;;
13504	esac
13505	;;
13506      linux* | k*bsd*-gnu | kopensolaris*-gnu)
13507	case $cc_basename in
13508	  KCC*)
13509	    # KAI C++ Compiler
13510	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13511	    lt_prog_compiler_pic_CXX='-fPIC'
13512	    ;;
13513	  ecpc* )
13514	    # old Intel C++ for x86_64 which still supported -KPIC.
13515	    lt_prog_compiler_wl_CXX='-Wl,'
13516	    lt_prog_compiler_pic_CXX='-KPIC'
13517	    lt_prog_compiler_static_CXX='-static'
13518	    ;;
13519	  icpc* )
13520	    # Intel C++, used to be incompatible with GCC.
13521	    # ICC 10 doesn't accept -KPIC any more.
13522	    lt_prog_compiler_wl_CXX='-Wl,'
13523	    lt_prog_compiler_pic_CXX='-fPIC'
13524	    lt_prog_compiler_static_CXX='-static'
13525	    ;;
13526	  pgCC* | pgcpp*)
13527	    # Portland Group C++ compiler
13528	    lt_prog_compiler_wl_CXX='-Wl,'
13529	    lt_prog_compiler_pic_CXX='-fpic'
13530	    lt_prog_compiler_static_CXX='-Bstatic'
13531	    ;;
13532	  cxx*)
13533	    # Compaq C++
13534	    # Make sure the PIC flag is empty.  It appears that all Alpha
13535	    # Linux and Compaq Tru64 Unix objects are PIC.
13536	    lt_prog_compiler_pic_CXX=
13537	    lt_prog_compiler_static_CXX='-non_shared'
13538	    ;;
13539	  xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
13540	    # IBM XL 8.0, 9.0 on PPC and BlueGene
13541	    lt_prog_compiler_wl_CXX='-Wl,'
13542	    lt_prog_compiler_pic_CXX='-qpic'
13543	    lt_prog_compiler_static_CXX='-qstaticlink'
13544	    ;;
13545	  *)
13546	    case `$CC -V 2>&1 | sed 5q` in
13547	    *Sun\ C*)
13548	      # Sun C++ 5.9
13549	      lt_prog_compiler_pic_CXX='-KPIC'
13550	      lt_prog_compiler_static_CXX='-Bstatic'
13551	      lt_prog_compiler_wl_CXX='-Qoption ld '
13552	      ;;
13553	    esac
13554	    ;;
13555	esac
13556	;;
13557      lynxos*)
13558	;;
13559      m88k*)
13560	;;
13561      mvs*)
13562	case $cc_basename in
13563	  cxx*)
13564	    lt_prog_compiler_pic_CXX='-W c,exportall'
13565	    ;;
13566	  *)
13567	    ;;
13568	esac
13569	;;
13570      netbsd*)
13571	;;
13572      *qnx* | *nto*)
13573        # QNX uses GNU C++, but need to define -shared option too, otherwise
13574        # it will coredump.
13575        lt_prog_compiler_pic_CXX='-fPIC -shared'
13576        ;;
13577      osf3* | osf4* | osf5*)
13578	case $cc_basename in
13579	  KCC*)
13580	    lt_prog_compiler_wl_CXX='--backend -Wl,'
13581	    ;;
13582	  RCC*)
13583	    # Rational C++ 2.4.1
13584	    lt_prog_compiler_pic_CXX='-pic'
13585	    ;;
13586	  cxx*)
13587	    # Digital/Compaq C++
13588	    lt_prog_compiler_wl_CXX='-Wl,'
13589	    # Make sure the PIC flag is empty.  It appears that all Alpha
13590	    # Linux and Compaq Tru64 Unix objects are PIC.
13591	    lt_prog_compiler_pic_CXX=
13592	    lt_prog_compiler_static_CXX='-non_shared'
13593	    ;;
13594	  *)
13595	    ;;
13596	esac
13597	;;
13598      psos*)
13599	;;
13600      solaris*)
13601	case $cc_basename in
13602	  CC* | sunCC*)
13603	    # Sun C++ 4.2, 5.x and Centerline C++
13604	    lt_prog_compiler_pic_CXX='-KPIC'
13605	    lt_prog_compiler_static_CXX='-Bstatic'
13606	    lt_prog_compiler_wl_CXX='-Qoption ld '
13607	    ;;
13608	  gcx*)
13609	    # Green Hills C++ Compiler
13610	    lt_prog_compiler_pic_CXX='-PIC'
13611	    ;;
13612	  *)
13613	    ;;
13614	esac
13615	;;
13616      sunos4*)
13617	case $cc_basename in
13618	  CC*)
13619	    # Sun C++ 4.x
13620	    lt_prog_compiler_pic_CXX='-pic'
13621	    lt_prog_compiler_static_CXX='-Bstatic'
13622	    ;;
13623	  lcc*)
13624	    # Lucid
13625	    lt_prog_compiler_pic_CXX='-pic'
13626	    ;;
13627	  *)
13628	    ;;
13629	esac
13630	;;
13631      sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13632	case $cc_basename in
13633	  CC*)
13634	    lt_prog_compiler_wl_CXX='-Wl,'
13635	    lt_prog_compiler_pic_CXX='-KPIC'
13636	    lt_prog_compiler_static_CXX='-Bstatic'
13637	    ;;
13638	esac
13639	;;
13640      tandem*)
13641	case $cc_basename in
13642	  NCC*)
13643	    # NonStop-UX NCC 3.20
13644	    lt_prog_compiler_pic_CXX='-KPIC'
13645	    ;;
13646	  *)
13647	    ;;
13648	esac
13649	;;
13650      vxworks*)
13651	;;
13652      *)
13653	lt_prog_compiler_can_build_shared_CXX=no
13654	;;
13655    esac
13656  fi
13657
13658case $host_os in
13659  # For platforms which do not support PIC, -DPIC is meaningless:
13660  *djgpp*)
13661    lt_prog_compiler_pic_CXX=
13662    ;;
13663  *)
13664    lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13665    ;;
13666esac
13667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
13668$as_echo "$lt_prog_compiler_pic_CXX" >&6; }
13669
13670
13671
13672#
13673# Check to make sure the PIC flag actually works.
13674#
13675if test -n "$lt_prog_compiler_pic_CXX"; then
13676  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13677$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
13678if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
13679  $as_echo_n "(cached) " >&6
13680else
13681  lt_cv_prog_compiler_pic_works_CXX=no
13682   ac_outfile=conftest.$ac_objext
13683   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13684   lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13685   # Insert the option either (1) after the last *FLAGS variable, or
13686   # (2) before a word containing "conftest.", or (3) at the end.
13687   # Note that $ac_compile itself does not contain backslashes and begins
13688   # with a dollar sign (not a hyphen), so the echo should work correctly.
13689   # The option is referenced via a variable to avoid confusing sed.
13690   lt_compile=`echo "$ac_compile" | $SED \
13691   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13692   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13693   -e 's:$: $lt_compiler_flag:'`
13694   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13695   (eval "$lt_compile" 2>conftest.err)
13696   ac_status=$?
13697   cat conftest.err >&5
13698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13699   if (exit $ac_status) && test -s "$ac_outfile"; then
13700     # The compiler can only warn and ignore the option if not recognized
13701     # So say no if there are warnings other than the usual output.
13702     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13703     $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13704     if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13705       lt_cv_prog_compiler_pic_works_CXX=yes
13706     fi
13707   fi
13708   $RM conftest*
13709
13710fi
13711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
13712$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
13713
13714if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
13715    case $lt_prog_compiler_pic_CXX in
13716     "" | " "*) ;;
13717     *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13718     esac
13719else
13720    lt_prog_compiler_pic_CXX=
13721     lt_prog_compiler_can_build_shared_CXX=no
13722fi
13723
13724fi
13725
13726
13727
13728#
13729# Check to make sure the static flag actually works.
13730#
13731wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
13732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13733$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13734if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
13735  $as_echo_n "(cached) " >&6
13736else
13737  lt_cv_prog_compiler_static_works_CXX=no
13738   save_LDFLAGS="$LDFLAGS"
13739   LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13740   echo "$lt_simple_link_test_code" > conftest.$ac_ext
13741   if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13742     # The linker can only warn and ignore the option if not recognized
13743     # So say no if there are warnings
13744     if test -s conftest.err; then
13745       # Append any errors to the config.log.
13746       cat conftest.err 1>&5
13747       $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13748       $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13749       if diff conftest.exp conftest.er2 >/dev/null; then
13750         lt_cv_prog_compiler_static_works_CXX=yes
13751       fi
13752     else
13753       lt_cv_prog_compiler_static_works_CXX=yes
13754     fi
13755   fi
13756   $RM -r conftest*
13757   LDFLAGS="$save_LDFLAGS"
13758
13759fi
13760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
13761$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
13762
13763if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
13764    :
13765else
13766    lt_prog_compiler_static_CXX=
13767fi
13768
13769
13770
13771
13772    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13773$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13774if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13775  $as_echo_n "(cached) " >&6
13776else
13777  lt_cv_prog_compiler_c_o_CXX=no
13778   $RM -r conftest 2>/dev/null
13779   mkdir conftest
13780   cd conftest
13781   mkdir out
13782   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13783
13784   lt_compiler_flag="-o out/conftest2.$ac_objext"
13785   # Insert the option either (1) after the last *FLAGS variable, or
13786   # (2) before a word containing "conftest.", or (3) at the end.
13787   # Note that $ac_compile itself does not contain backslashes and begins
13788   # with a dollar sign (not a hyphen), so the echo should work correctly.
13789   lt_compile=`echo "$ac_compile" | $SED \
13790   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13791   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13792   -e 's:$: $lt_compiler_flag:'`
13793   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13794   (eval "$lt_compile" 2>out/conftest.err)
13795   ac_status=$?
13796   cat out/conftest.err >&5
13797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13798   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13799   then
13800     # The compiler can only warn and ignore the option if not recognized
13801     # So say no if there are warnings
13802     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13803     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13804     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13805       lt_cv_prog_compiler_c_o_CXX=yes
13806     fi
13807   fi
13808   chmod u+w . 2>&5
13809   $RM conftest*
13810   # SGI C++ compiler will create directory out/ii_files/ for
13811   # template instantiation
13812   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13813   $RM out/* && rmdir out
13814   cd ..
13815   $RM -r conftest
13816   $RM conftest*
13817
13818fi
13819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13820$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13821
13822
13823
13824    { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13825$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13826if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
13827  $as_echo_n "(cached) " >&6
13828else
13829  lt_cv_prog_compiler_c_o_CXX=no
13830   $RM -r conftest 2>/dev/null
13831   mkdir conftest
13832   cd conftest
13833   mkdir out
13834   echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13835
13836   lt_compiler_flag="-o out/conftest2.$ac_objext"
13837   # Insert the option either (1) after the last *FLAGS variable, or
13838   # (2) before a word containing "conftest.", or (3) at the end.
13839   # Note that $ac_compile itself does not contain backslashes and begins
13840   # with a dollar sign (not a hyphen), so the echo should work correctly.
13841   lt_compile=`echo "$ac_compile" | $SED \
13842   -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13843   -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13844   -e 's:$: $lt_compiler_flag:'`
13845   (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13846   (eval "$lt_compile" 2>out/conftest.err)
13847   ac_status=$?
13848   cat out/conftest.err >&5
13849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13850   if (exit $ac_status) && test -s out/conftest2.$ac_objext
13851   then
13852     # The compiler can only warn and ignore the option if not recognized
13853     # So say no if there are warnings
13854     $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13855     $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13856     if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13857       lt_cv_prog_compiler_c_o_CXX=yes
13858     fi
13859   fi
13860   chmod u+w . 2>&5
13861   $RM conftest*
13862   # SGI C++ compiler will create directory out/ii_files/ for
13863   # template instantiation
13864   test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13865   $RM out/* && rmdir out
13866   cd ..
13867   $RM -r conftest
13868   $RM conftest*
13869
13870fi
13871{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13872$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
13873
13874
13875
13876
13877hard_links="nottested"
13878if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13879  # do not overwrite the value of need_locks provided by the user
13880  { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13881$as_echo_n "checking if we can lock with hard links... " >&6; }
13882  hard_links=yes
13883  $RM conftest*
13884  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13885  touch conftest.a
13886  ln conftest.a conftest.b 2>&5 || hard_links=no
13887  ln conftest.a conftest.b 2>/dev/null && hard_links=no
13888  { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13889$as_echo "$hard_links" >&6; }
13890  if test "$hard_links" = no; then
13891    { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13892$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13893    need_locks=warn
13894  fi
13895else
13896  need_locks=no
13897fi
13898
13899
13900
13901    { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13902$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13903
13904  export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13905  case $host_os in
13906  aix[4-9]*)
13907    # If we're using GNU nm, then we don't want the "-C" option.
13908    # -C means demangle to AIX nm, but means don't demangle with GNU nm
13909    # Also, AIX nm treats weak defined symbols like other global defined
13910    # symbols, whereas GNU nm marks them as "W".
13911    if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13912      export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13913    else
13914      export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13915    fi
13916    ;;
13917  pw32*)
13918    export_symbols_cmds_CXX="$ltdll_cmds"
13919  ;;
13920  cygwin* | mingw* | cegcc*)
13921    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
13922  ;;
13923  *)
13924    export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13925  ;;
13926  esac
13927  exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13928
13929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
13930$as_echo "$ld_shlibs_CXX" >&6; }
13931test "$ld_shlibs_CXX" = no && can_build_shared=no
13932
13933with_gnu_ld_CXX=$with_gnu_ld
13934
13935
13936
13937
13938
13939
13940#
13941# Do we need to explicitly link libc?
13942#
13943case "x$archive_cmds_need_lc_CXX" in
13944x|xyes)
13945  # Assume -lc should be added
13946  archive_cmds_need_lc_CXX=yes
13947
13948  if test "$enable_shared" = yes && test "$GCC" = yes; then
13949    case $archive_cmds_CXX in
13950    *'~'*)
13951      # FIXME: we may have to deal with multi-command sequences.
13952      ;;
13953    '$CC '*)
13954      # Test whether the compiler implicitly links with -lc since on some
13955      # systems, -lgcc has to come before -lc. If gcc already passes -lc
13956      # to ld, don't add -lc before -lgcc.
13957      { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13958$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13959if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then :
13960  $as_echo_n "(cached) " >&6
13961else
13962  $RM conftest*
13963	echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13964
13965	if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13966  (eval $ac_compile) 2>&5
13967  ac_status=$?
13968  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13969  test $ac_status = 0; } 2>conftest.err; then
13970	  soname=conftest
13971	  lib=conftest
13972	  libobjs=conftest.$ac_objext
13973	  deplibs=
13974	  wl=$lt_prog_compiler_wl_CXX
13975	  pic_flag=$lt_prog_compiler_pic_CXX
13976	  compiler_flags=-v
13977	  linker_flags=-v
13978	  verstring=
13979	  output_objdir=.
13980	  libname=conftest
13981	  lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13982	  allow_undefined_flag_CXX=
13983	  if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13984  (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13985  ac_status=$?
13986  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13987  test $ac_status = 0; }
13988	  then
13989	    lt_cv_archive_cmds_need_lc_CXX=no
13990	  else
13991	    lt_cv_archive_cmds_need_lc_CXX=yes
13992	  fi
13993	  allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13994	else
13995	  cat conftest.err 1>&5
13996	fi
13997	$RM conftest*
13998
13999fi
14000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
14001$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
14002      archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
14003      ;;
14004    esac
14005  fi
14006  ;;
14007esac
14008
14009
14010
14011
14012
14013
14014
14015
14016
14017
14018
14019
14020
14021
14022
14023
14024
14025
14026
14027
14028
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041
14042
14043
14044
14045
14046
14047
14048
14049
14050
14051
14052
14053
14054
14055
14056
14057
14058
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068
14069
14070
14071
14072    { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14073$as_echo_n "checking dynamic linker characteristics... " >&6; }
14074
14075library_names_spec=
14076libname_spec='lib$name'
14077soname_spec=
14078shrext_cmds=".so"
14079postinstall_cmds=
14080postuninstall_cmds=
14081finish_cmds=
14082finish_eval=
14083shlibpath_var=
14084shlibpath_overrides_runpath=unknown
14085version_type=none
14086dynamic_linker="$host_os ld.so"
14087sys_lib_dlsearch_path_spec="/lib /usr/lib"
14088need_lib_prefix=unknown
14089hardcode_into_libs=no
14090
14091# when you set need_version to no, make sure it does not cause -set_version
14092# flags to be left without arguments
14093need_version=unknown
14094
14095case $host_os in
14096aix3*)
14097  version_type=linux
14098  library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14099  shlibpath_var=LIBPATH
14100
14101  # AIX 3 has no versioning support, so we append a major version to the name.
14102  soname_spec='${libname}${release}${shared_ext}$major'
14103  ;;
14104
14105aix[4-9]*)
14106  version_type=linux
14107  need_lib_prefix=no
14108  need_version=no
14109  hardcode_into_libs=yes
14110  if test "$host_cpu" = ia64; then
14111    # AIX 5 supports IA64
14112    library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14113    shlibpath_var=LD_LIBRARY_PATH
14114  else
14115    # With GCC up to 2.95.x, collect2 would create an import file
14116    # for dependence libraries.  The import file would start with
14117    # the line `#! .'.  This would cause the generated library to
14118    # depend on `.', always an invalid library.  This was fixed in
14119    # development snapshots of GCC prior to 3.0.
14120    case $host_os in
14121      aix4 | aix4.[01] | aix4.[01].*)
14122      if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14123	   echo ' yes '
14124	   echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14125	:
14126      else
14127	can_build_shared=no
14128      fi
14129      ;;
14130    esac
14131    # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14132    # soname into executable. Probably we can add versioning support to
14133    # collect2, so additional links can be useful in future.
14134    if test "$aix_use_runtimelinking" = yes; then
14135      # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14136      # instead of lib<name>.a to let people know that these are not
14137      # typical AIX shared libraries.
14138      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14139    else
14140      # We preserve .a as extension for shared libraries through AIX4.2
14141      # and later when we are not doing run time linking.
14142      library_names_spec='${libname}${release}.a $libname.a'
14143      soname_spec='${libname}${release}${shared_ext}$major'
14144    fi
14145    shlibpath_var=LIBPATH
14146  fi
14147  ;;
14148
14149amigaos*)
14150  case $host_cpu in
14151  powerpc)
14152    # Since July 2007 AmigaOS4 officially supports .so libraries.
14153    # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14154    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14155    ;;
14156  m68k)
14157    library_names_spec='$libname.ixlibrary $libname.a'
14158    # Create ${libname}_ixlibrary.a entries in /sys/libs.
14159    finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
14160    ;;
14161  esac
14162  ;;
14163
14164beos*)
14165  library_names_spec='${libname}${shared_ext}'
14166  dynamic_linker="$host_os ld.so"
14167  shlibpath_var=LIBRARY_PATH
14168  ;;
14169
14170bsdi[45]*)
14171  version_type=linux
14172  need_version=no
14173  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14174  soname_spec='${libname}${release}${shared_ext}$major'
14175  finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14176  shlibpath_var=LD_LIBRARY_PATH
14177  sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14178  sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14179  # the default ld.so.conf also contains /usr/contrib/lib and
14180  # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14181  # libtool to hard-code these into programs
14182  ;;
14183
14184cygwin* | mingw* | pw32* | cegcc*)
14185  version_type=windows
14186  shrext_cmds=".dll"
14187  need_version=no
14188  need_lib_prefix=no
14189
14190  case $GCC,$host_os in
14191  yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14192    library_names_spec='$libname.dll.a'
14193    # DLL is installed to $(libdir)/../bin by postinstall_cmds
14194    postinstall_cmds='base_file=`basename \${file}`~
14195      dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14196      dldir=$destdir/`dirname \$dlpath`~
14197      test -d \$dldir || mkdir -p \$dldir~
14198      $install_prog $dir/$dlname \$dldir/$dlname~
14199      chmod a+x \$dldir/$dlname~
14200      if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14201        eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14202      fi'
14203    postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14204      dlpath=$dir/\$dldll~
14205       $RM \$dlpath'
14206    shlibpath_overrides_runpath=yes
14207
14208    case $host_os in
14209    cygwin*)
14210      # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14211      soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14212
14213      ;;
14214    mingw* | cegcc*)
14215      # MinGW DLLs use traditional 'lib' prefix
14216      soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14217      ;;
14218    pw32*)
14219      # pw32 DLLs use 'pw' prefix rather than 'lib'
14220      library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14221      ;;
14222    esac
14223    ;;
14224
14225  *)
14226    library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14227    ;;
14228  esac
14229  dynamic_linker='Win32 ld.exe'
14230  # FIXME: first we should search . and the directory the executable is in
14231  shlibpath_var=PATH
14232  ;;
14233
14234darwin* | rhapsody*)
14235  dynamic_linker="$host_os dyld"
14236  version_type=darwin
14237  need_lib_prefix=no
14238  need_version=no
14239  library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14240  soname_spec='${libname}${release}${major}$shared_ext'
14241  shlibpath_overrides_runpath=yes
14242  shlibpath_var=DYLD_LIBRARY_PATH
14243  shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14244
14245  sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14246  ;;
14247
14248dgux*)
14249  version_type=linux
14250  need_lib_prefix=no
14251  need_version=no
14252  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14253  soname_spec='${libname}${release}${shared_ext}$major'
14254  shlibpath_var=LD_LIBRARY_PATH
14255  ;;
14256
14257freebsd1*)
14258  dynamic_linker=no
14259  ;;
14260
14261freebsd* | dragonfly*)
14262  # DragonFly does not have aout.  When/if they implement a new
14263  # versioning mechanism, adjust this.
14264  if test -x /usr/bin/objformat; then
14265    objformat=`/usr/bin/objformat`
14266  else
14267    case $host_os in
14268    freebsd[123]*) objformat=aout ;;
14269    *) objformat=elf ;;
14270    esac
14271  fi
14272  version_type=freebsd-$objformat
14273  case $version_type in
14274    freebsd-elf*)
14275      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14276      need_version=no
14277      need_lib_prefix=no
14278      ;;
14279    freebsd-*)
14280      library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14281      need_version=yes
14282      ;;
14283  esac
14284  shlibpath_var=LD_LIBRARY_PATH
14285  case $host_os in
14286  freebsd2*)
14287    shlibpath_overrides_runpath=yes
14288    ;;
14289  freebsd3.[01]* | freebsdelf3.[01]*)
14290    shlibpath_overrides_runpath=yes
14291    hardcode_into_libs=yes
14292    ;;
14293  freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14294  freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14295    shlibpath_overrides_runpath=no
14296    hardcode_into_libs=yes
14297    ;;
14298  *) # from 4.6 on, and DragonFly
14299    shlibpath_overrides_runpath=yes
14300    hardcode_into_libs=yes
14301    ;;
14302  esac
14303  ;;
14304
14305gnu*)
14306  version_type=linux
14307  need_lib_prefix=no
14308  need_version=no
14309  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14310  soname_spec='${libname}${release}${shared_ext}$major'
14311  shlibpath_var=LD_LIBRARY_PATH
14312  hardcode_into_libs=yes
14313  ;;
14314
14315haiku*)
14316  version_type=linux
14317  need_lib_prefix=no
14318  need_version=no
14319  dynamic_linker="$host_os runtime_loader"
14320  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14321  soname_spec='${libname}${release}${shared_ext}$major'
14322  shlibpath_var=LIBRARY_PATH
14323  shlibpath_overrides_runpath=yes
14324  sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
14325  hardcode_into_libs=yes
14326  ;;
14327
14328hpux9* | hpux10* | hpux11*)
14329  # Give a soname corresponding to the major version so that dld.sl refuses to
14330  # link against other versions.
14331  version_type=sunos
14332  need_lib_prefix=no
14333  need_version=no
14334  case $host_cpu in
14335  ia64*)
14336    shrext_cmds='.so'
14337    hardcode_into_libs=yes
14338    dynamic_linker="$host_os dld.so"
14339    shlibpath_var=LD_LIBRARY_PATH
14340    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14341    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14342    soname_spec='${libname}${release}${shared_ext}$major'
14343    if test "X$HPUX_IA64_MODE" = X32; then
14344      sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14345    else
14346      sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14347    fi
14348    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14349    ;;
14350  hppa*64*)
14351    shrext_cmds='.sl'
14352    hardcode_into_libs=yes
14353    dynamic_linker="$host_os dld.sl"
14354    shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14355    shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14356    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14357    soname_spec='${libname}${release}${shared_ext}$major'
14358    sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14359    sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14360    ;;
14361  *)
14362    shrext_cmds='.sl'
14363    dynamic_linker="$host_os dld.sl"
14364    shlibpath_var=SHLIB_PATH
14365    shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14366    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14367    soname_spec='${libname}${release}${shared_ext}$major'
14368    ;;
14369  esac
14370  # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14371  postinstall_cmds='chmod 555 $lib'
14372  # or fails outright, so override atomically:
14373  install_override_mode=555
14374  ;;
14375
14376interix[3-9]*)
14377  version_type=linux
14378  need_lib_prefix=no
14379  need_version=no
14380  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14381  soname_spec='${libname}${release}${shared_ext}$major'
14382  dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
14383  shlibpath_var=LD_LIBRARY_PATH
14384  shlibpath_overrides_runpath=no
14385  hardcode_into_libs=yes
14386  ;;
14387
14388irix5* | irix6* | nonstopux*)
14389  case $host_os in
14390    nonstopux*) version_type=nonstopux ;;
14391    *)
14392	if test "$lt_cv_prog_gnu_ld" = yes; then
14393		version_type=linux
14394	else
14395		version_type=irix
14396	fi ;;
14397  esac
14398  need_lib_prefix=no
14399  need_version=no
14400  soname_spec='${libname}${release}${shared_ext}$major'
14401  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14402  case $host_os in
14403  irix5* | nonstopux*)
14404    libsuff= shlibsuff=
14405    ;;
14406  *)
14407    case $LD in # libtool.m4 will add one of these switches to LD
14408    *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
14409      libsuff= shlibsuff= libmagic=32-bit;;
14410    *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
14411      libsuff=32 shlibsuff=N32 libmagic=N32;;
14412    *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
14413      libsuff=64 shlibsuff=64 libmagic=64-bit;;
14414    *) libsuff= shlibsuff= libmagic=never-match;;
14415    esac
14416    ;;
14417  esac
14418  shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
14419  shlibpath_overrides_runpath=no
14420  sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14421  sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
14422  hardcode_into_libs=yes
14423  ;;
14424
14425# No shared lib support for Linux oldld, aout, or coff.
14426linux*oldld* | linux*aout* | linux*coff*)
14427  dynamic_linker=no
14428  ;;
14429
14430# This must be Linux ELF.
14431linux* | k*bsd*-gnu | kopensolaris*-gnu)
14432  version_type=linux
14433  need_lib_prefix=no
14434  need_version=no
14435  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14436  soname_spec='${libname}${release}${shared_ext}$major'
14437  finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14438  shlibpath_var=LD_LIBRARY_PATH
14439  shlibpath_overrides_runpath=no
14440
14441  # Some binutils ld are patched to set DT_RUNPATH
14442  if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
14443  $as_echo_n "(cached) " >&6
14444else
14445  lt_cv_shlibpath_overrides_runpath=no
14446    save_LDFLAGS=$LDFLAGS
14447    save_libdir=$libdir
14448    eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
14449	 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
14450    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14451/* end confdefs.h.  */
14452
14453int
14454main ()
14455{
14456
14457  ;
14458  return 0;
14459}
14460_ACEOF
14461if ac_fn_cxx_try_link "$LINENO"; then :
14462  if  ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
14463  lt_cv_shlibpath_overrides_runpath=yes
14464fi
14465fi
14466rm -f core conftest.err conftest.$ac_objext \
14467    conftest$ac_exeext conftest.$ac_ext
14468    LDFLAGS=$save_LDFLAGS
14469    libdir=$save_libdir
14470
14471fi
14472
14473  shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
14474
14475  # This implies no fast_install, which is unacceptable.
14476  # Some rework will be needed to allow for fast_install
14477  # before this can be enabled.
14478  hardcode_into_libs=yes
14479
14480  # Add ABI-specific directories to the system library path.
14481  sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
14482
14483  # Append ld.so.conf contents to the search path
14484  if test -f /etc/ld.so.conf; then
14485    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' ' '`
14486    sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
14487
14488  fi
14489
14490  # We used to test for /lib/ld.so.1 and disable shared libraries on
14491  # powerpc, because MkLinux only supported shared libraries with the
14492  # GNU dynamic linker.  Since this was broken with cross compilers,
14493  # most powerpc-linux boxes support dynamic linking these days and
14494  # people can always --disable-shared, the test was removed, and we
14495  # assume the GNU/Linux dynamic linker is in use.
14496  dynamic_linker='GNU/Linux ld.so'
14497  ;;
14498
14499netbsd*)
14500  version_type=sunos
14501  need_lib_prefix=no
14502  need_version=no
14503  if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14504    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14505    finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14506    dynamic_linker='NetBSD (a.out) ld.so'
14507  else
14508    library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14509    soname_spec='${libname}${release}${shared_ext}$major'
14510    dynamic_linker='NetBSD ld.elf_so'
14511  fi
14512  shlibpath_var=LD_LIBRARY_PATH
14513  shlibpath_overrides_runpath=yes
14514  hardcode_into_libs=yes
14515  ;;
14516
14517newsos6)
14518  version_type=linux
14519  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14520  shlibpath_var=LD_LIBRARY_PATH
14521  shlibpath_overrides_runpath=yes
14522  ;;
14523
14524*nto* | *qnx*)
14525  version_type=qnx
14526  need_lib_prefix=no
14527  need_version=no
14528  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14529  soname_spec='${libname}${release}${shared_ext}$major'
14530  shlibpath_var=LD_LIBRARY_PATH
14531  shlibpath_overrides_runpath=no
14532  hardcode_into_libs=yes
14533  dynamic_linker='ldqnx.so'
14534  ;;
14535
14536openbsd*)
14537  version_type=sunos
14538  sys_lib_dlsearch_path_spec="/usr/lib"
14539  need_lib_prefix=no
14540  # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14541  case $host_os in
14542    openbsd3.3 | openbsd3.3.*)	need_version=yes ;;
14543    *)				need_version=no  ;;
14544  esac
14545  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14546  finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14547  shlibpath_var=LD_LIBRARY_PATH
14548  if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14549    case $host_os in
14550      openbsd2.[89] | openbsd2.[89].*)
14551	shlibpath_overrides_runpath=no
14552	;;
14553      *)
14554	shlibpath_overrides_runpath=yes
14555	;;
14556      esac
14557  else
14558    shlibpath_overrides_runpath=yes
14559  fi
14560  ;;
14561
14562os2*)
14563  libname_spec='$name'
14564  shrext_cmds=".dll"
14565  need_lib_prefix=no
14566  library_names_spec='$libname${shared_ext} $libname.a'
14567  dynamic_linker='OS/2 ld.exe'
14568  shlibpath_var=LIBPATH
14569  ;;
14570
14571osf3* | osf4* | osf5*)
14572  version_type=osf
14573  need_lib_prefix=no
14574  need_version=no
14575  soname_spec='${libname}${release}${shared_ext}$major'
14576  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14577  shlibpath_var=LD_LIBRARY_PATH
14578  sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14579  sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
14580  ;;
14581
14582rdos*)
14583  dynamic_linker=no
14584  ;;
14585
14586solaris*)
14587  version_type=linux
14588  need_lib_prefix=no
14589  need_version=no
14590  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14591  soname_spec='${libname}${release}${shared_ext}$major'
14592  shlibpath_var=LD_LIBRARY_PATH
14593  shlibpath_overrides_runpath=yes
14594  hardcode_into_libs=yes
14595  # ldd complains unless libraries are executable
14596  postinstall_cmds='chmod +x $lib'
14597  ;;
14598
14599sunos4*)
14600  version_type=sunos
14601  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14602  finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14603  shlibpath_var=LD_LIBRARY_PATH
14604  shlibpath_overrides_runpath=yes
14605  if test "$with_gnu_ld" = yes; then
14606    need_lib_prefix=no
14607  fi
14608  need_version=yes
14609  ;;
14610
14611sysv4 | sysv4.3*)
14612  version_type=linux
14613  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14614  soname_spec='${libname}${release}${shared_ext}$major'
14615  shlibpath_var=LD_LIBRARY_PATH
14616  case $host_vendor in
14617    sni)
14618      shlibpath_overrides_runpath=no
14619      need_lib_prefix=no
14620      runpath_var=LD_RUN_PATH
14621      ;;
14622    siemens)
14623      need_lib_prefix=no
14624      ;;
14625    motorola)
14626      need_lib_prefix=no
14627      need_version=no
14628      shlibpath_overrides_runpath=no
14629      sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14630      ;;
14631  esac
14632  ;;
14633
14634sysv4*MP*)
14635  if test -d /usr/nec ;then
14636    version_type=linux
14637    library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14638    soname_spec='$libname${shared_ext}.$major'
14639    shlibpath_var=LD_LIBRARY_PATH
14640  fi
14641  ;;
14642
14643sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14644  version_type=freebsd-elf
14645  need_lib_prefix=no
14646  need_version=no
14647  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14648  soname_spec='${libname}${release}${shared_ext}$major'
14649  shlibpath_var=LD_LIBRARY_PATH
14650  shlibpath_overrides_runpath=yes
14651  hardcode_into_libs=yes
14652  if test "$with_gnu_ld" = yes; then
14653    sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14654  else
14655    sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14656    case $host_os in
14657      sco3.2v5*)
14658        sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14659	;;
14660    esac
14661  fi
14662  sys_lib_dlsearch_path_spec='/usr/lib'
14663  ;;
14664
14665tpf*)
14666  # TPF is a cross-target only.  Preferred cross-host = GNU/Linux.
14667  version_type=linux
14668  need_lib_prefix=no
14669  need_version=no
14670  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14671  shlibpath_var=LD_LIBRARY_PATH
14672  shlibpath_overrides_runpath=no
14673  hardcode_into_libs=yes
14674  ;;
14675
14676uts4*)
14677  version_type=linux
14678  library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14679  soname_spec='${libname}${release}${shared_ext}$major'
14680  shlibpath_var=LD_LIBRARY_PATH
14681  ;;
14682
14683*)
14684  dynamic_linker=no
14685  ;;
14686esac
14687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14688$as_echo "$dynamic_linker" >&6; }
14689test "$dynamic_linker" = no && can_build_shared=no
14690
14691variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14692if test "$GCC" = yes; then
14693  variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14694fi
14695
14696if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14697  sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14698fi
14699if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14700  sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14701fi
14702
14703
14704
14705
14706
14707
14708
14709
14710
14711
14712
14713
14714
14715
14716
14717
14718
14719
14720
14721
14722
14723
14724
14725
14726
14727
14728
14729
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739
14740    { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14741$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14742hardcode_action_CXX=
14743if test -n "$hardcode_libdir_flag_spec_CXX" ||
14744   test -n "$runpath_var_CXX" ||
14745   test "X$hardcode_automatic_CXX" = "Xyes" ; then
14746
14747  # We can hardcode non-existent directories.
14748  if test "$hardcode_direct_CXX" != no &&
14749     # If the only mechanism to avoid hardcoding is shlibpath_var, we
14750     # have to relink, otherwise we might link with an installed library
14751     # when we should be linking with a yet-to-be-installed one
14752     ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
14753     test "$hardcode_minus_L_CXX" != no; then
14754    # Linking always hardcodes the temporary library directory.
14755    hardcode_action_CXX=relink
14756  else
14757    # We can link without hardcoding, and we can hardcode nonexisting dirs.
14758    hardcode_action_CXX=immediate
14759  fi
14760else
14761  # We cannot hardcode anything, or else we can only hardcode existing
14762  # directories.
14763  hardcode_action_CXX=unsupported
14764fi
14765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
14766$as_echo "$hardcode_action_CXX" >&6; }
14767
14768if test "$hardcode_action_CXX" = relink ||
14769   test "$inherit_rpath_CXX" = yes; then
14770  # Fast installation is not supported
14771  enable_fast_install=no
14772elif test "$shlibpath_overrides_runpath" = yes ||
14773     test "$enable_shared" = no; then
14774  # Fast installation is not necessary
14775  enable_fast_install=needless
14776fi
14777
14778
14779
14780
14781
14782
14783
14784  fi # test -n "$compiler"
14785
14786  CC=$lt_save_CC
14787  LDCXX=$LD
14788  LD=$lt_save_LD
14789  GCC=$lt_save_GCC
14790  with_gnu_ld=$lt_save_with_gnu_ld
14791  lt_cv_path_LDCXX=$lt_cv_path_LD
14792  lt_cv_path_LD=$lt_save_path_LD
14793  lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
14794  lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
14795fi # test "$_lt_caught_CXX_error" != yes
14796
14797ac_ext=cpp
14798ac_cpp='$CXXCPP $CPPFLAGS'
14799ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14800ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14801ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14802
14803
14804
14805
14806
14807
14808
14809
14810
14811
14812
14813
14814
14815        ac_config_commands="$ac_config_commands libtool"
14816
14817
14818
14819
14820# Only expand once:
14821
14822
14823
14824all_targets='$(PHP_MODULES) $(PHP_ZEND_EX)'
14825install_targets="install-modules install-headers"
14826phplibdir="`pwd`/modules"
14827CPPFLAGS="$CPPFLAGS -DHAVE_CONFIG_H"
14828CFLAGS_CLEAN='$(CFLAGS)'
14829CXXFLAGS_CLEAN='$(CXXFLAGS)'
14830
14831test "$prefix" = "NONE" && prefix="/usr/local"
14832test "$exec_prefix" = "NONE" && exec_prefix='$(prefix)'
14833
14834
14835  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_MODULES"
14836
14837
14838  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_ZEND_EX"
14839
14840
14841
14842  PHP_VAR_SUBST="$PHP_VAR_SUBST all_targets"
14843
14844
14845  PHP_VAR_SUBST="$PHP_VAR_SUBST install_targets"
14846
14847
14848
14849  PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
14850
14851
14852  PHP_VAR_SUBST="$PHP_VAR_SUBST exec_prefix"
14853
14854
14855  PHP_VAR_SUBST="$PHP_VAR_SUBST libdir"
14856
14857
14858  PHP_VAR_SUBST="$PHP_VAR_SUBST prefix"
14859
14860
14861  PHP_VAR_SUBST="$PHP_VAR_SUBST phplibdir"
14862
14863
14864  PHP_VAR_SUBST="$PHP_VAR_SUBST phpincludedir"
14865
14866
14867
14868  PHP_VAR_SUBST="$PHP_VAR_SUBST CC"
14869
14870
14871  PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS"
14872
14873
14874  PHP_VAR_SUBST="$PHP_VAR_SUBST CFLAGS_CLEAN"
14875
14876
14877  PHP_VAR_SUBST="$PHP_VAR_SUBST CPP"
14878
14879
14880  PHP_VAR_SUBST="$PHP_VAR_SUBST CPPFLAGS"
14881
14882
14883  PHP_VAR_SUBST="$PHP_VAR_SUBST CXX"
14884
14885
14886  PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS"
14887
14888
14889  PHP_VAR_SUBST="$PHP_VAR_SUBST CXXFLAGS_CLEAN"
14890
14891
14892  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTENSION_DIR"
14893
14894
14895  PHP_VAR_SUBST="$PHP_VAR_SUBST PHP_EXECUTABLE"
14896
14897
14898  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LDFLAGS"
14899
14900
14901  PHP_VAR_SUBST="$PHP_VAR_SUBST EXTRA_LIBS"
14902
14903
14904  PHP_VAR_SUBST="$PHP_VAR_SUBST INCLUDES"
14905
14906
14907  PHP_VAR_SUBST="$PHP_VAR_SUBST LFLAGS"
14908
14909
14910  PHP_VAR_SUBST="$PHP_VAR_SUBST LDFLAGS"
14911
14912
14913  PHP_VAR_SUBST="$PHP_VAR_SUBST SHARED_LIBTOOL"
14914
14915
14916  PHP_VAR_SUBST="$PHP_VAR_SUBST LIBTOOL"
14917
14918
14919  PHP_VAR_SUBST="$PHP_VAR_SUBST SHELL"
14920
14921
14922  PHP_VAR_SUBST="$PHP_VAR_SUBST INSTALL_HEADERS"
14923
14924
14925
14926  $php_shtool mkdir -p $BUILD_DIR
14927
14928
14929  cat >Makefile <<EOF
14930srcdir = $abs_srcdir
14931builddir = $abs_builddir
14932top_srcdir = $abs_srcdir
14933top_builddir = $abs_builddir
14934EOF
14935  for i in $PHP_VAR_SUBST; do
14936    eval echo "$i = \$$i" >> Makefile
14937  done
14938
14939  cat $abs_srcdir/Makefile.global Makefile.fragments Makefile.objects >> Makefile
14940
14941
14942test -d modules || $php_shtool mkdir modules
14943touch .deps
14944
14945ac_config_headers="$ac_config_headers config.h"
14946
14947
14948cat >confcache <<\_ACEOF
14949# This file is a shell script that caches the results of configure
14950# tests run on this system so they can be shared between configure
14951# scripts and configure runs, see configure's option --config-cache.
14952# It is not useful on other systems.  If it contains results you don't
14953# want to keep, you may remove or edit it.
14954#
14955# config.status only pays attention to the cache file if you give it
14956# the --recheck option to rerun configure.
14957#
14958# `ac_cv_env_foo' variables (set or unset) will be overridden when
14959# loading this file, other *unset* `ac_cv_foo' will be assigned the
14960# following values.
14961
14962_ACEOF
14963
14964# The following way of writing the cache mishandles newlines in values,
14965# but we know of no workaround that is simple, portable, and efficient.
14966# So, we kill variables containing newlines.
14967# Ultrix sh set writes to stderr and can't be redirected directly,
14968# and sets the high bit in the cache file unless we assign to the vars.
14969(
14970  for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
14971    eval ac_val=\$$ac_var
14972    case $ac_val in #(
14973    *${as_nl}*)
14974      case $ac_var in #(
14975      *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
14976$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
14977      esac
14978      case $ac_var in #(
14979      _ | IFS | as_nl) ;; #(
14980      BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
14981      *) { eval $ac_var=; unset $ac_var;} ;;
14982      esac ;;
14983    esac
14984  done
14985
14986  (set) 2>&1 |
14987    case $as_nl`(ac_space=' '; set) 2>&1` in #(
14988    *${as_nl}ac_space=\ *)
14989      # `set' does not quote correctly, so add quotes: double-quote
14990      # substitution turns \\\\ into \\, and sed turns \\ into \.
14991      sed -n \
14992	"s/'/'\\\\''/g;
14993	  s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
14994      ;; #(
14995    *)
14996      # `set' quotes correctly as required by POSIX, so do not add quotes.
14997      sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
14998      ;;
14999    esac |
15000    sort
15001) |
15002  sed '
15003     /^ac_cv_env_/b end
15004     t clear
15005     :clear
15006     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15007     t end
15008     s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15009     :end' >>confcache
15010if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15011  if test -w "$cache_file"; then
15012    test "x$cache_file" != "x/dev/null" &&
15013      { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15014$as_echo "$as_me: updating cache $cache_file" >&6;}
15015    cat confcache >$cache_file
15016  else
15017    { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15018$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15019  fi
15020fi
15021rm -f confcache
15022
15023test "x$prefix" = xNONE && prefix=$ac_default_prefix
15024# Let make expand exec_prefix.
15025test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15026
15027DEFS=-DHAVE_CONFIG_H
15028
15029ac_libobjs=
15030ac_ltlibobjs=
15031U=
15032for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15033  # 1. Remove the extension, and $U if already installed.
15034  ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15035  ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15036  # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
15037  #    will be set to the directory where LIBOBJS objects are built.
15038  as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15039  as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15040done
15041LIBOBJS=$ac_libobjs
15042
15043LTLIBOBJS=$ac_ltlibobjs
15044
15045
15046
15047: ${CONFIG_STATUS=./config.status}
15048ac_write_fail=0
15049ac_clean_files_save=$ac_clean_files
15050ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15051{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15052$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15053as_write_fail=0
15054cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15055#! $SHELL
15056# Generated by $as_me.
15057# Run this file to recreate the current configuration.
15058# Compiler output produced by configure, useful for debugging
15059# configure, is in config.log if it exists.
15060
15061debug=false
15062ac_cs_recheck=false
15063ac_cs_silent=false
15064
15065SHELL=\${CONFIG_SHELL-$SHELL}
15066export SHELL
15067_ASEOF
15068cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15069## -------------------- ##
15070## M4sh Initialization. ##
15071## -------------------- ##
15072
15073# Be more Bourne compatible
15074DUALCASE=1; export DUALCASE # for MKS sh
15075if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15076  emulate sh
15077  NULLCMD=:
15078  # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15079  # is contrary to our usage.  Disable this feature.
15080  alias -g '${1+"$@"}'='"$@"'
15081  setopt NO_GLOB_SUBST
15082else
15083  case `(set -o) 2>/dev/null` in #(
15084  *posix*) :
15085    set -o posix ;; #(
15086  *) :
15087     ;;
15088esac
15089fi
15090
15091
15092as_nl='
15093'
15094export as_nl
15095# Printing a long string crashes Solaris 7 /usr/bin/printf.
15096as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15097as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15098as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15099# Prefer a ksh shell builtin over an external printf program on Solaris,
15100# but without wasting forks for bash or zsh.
15101if test -z "$BASH_VERSION$ZSH_VERSION" \
15102    && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15103  as_echo='print -r --'
15104  as_echo_n='print -rn --'
15105elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15106  as_echo='printf %s\n'
15107  as_echo_n='printf %s'
15108else
15109  if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15110    as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15111    as_echo_n='/usr/ucb/echo -n'
15112  else
15113    as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15114    as_echo_n_body='eval
15115      arg=$1;
15116      case $arg in #(
15117      *"$as_nl"*)
15118	expr "X$arg" : "X\\(.*\\)$as_nl";
15119	arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15120      esac;
15121      expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15122    '
15123    export as_echo_n_body
15124    as_echo_n='sh -c $as_echo_n_body as_echo'
15125  fi
15126  export as_echo_body
15127  as_echo='sh -c $as_echo_body as_echo'
15128fi
15129
15130# The user is always right.
15131if test "${PATH_SEPARATOR+set}" != set; then
15132  PATH_SEPARATOR=:
15133  (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15134    (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15135      PATH_SEPARATOR=';'
15136  }
15137fi
15138
15139
15140# IFS
15141# We need space, tab and new line, in precisely that order.  Quoting is
15142# there to prevent editors from complaining about space-tab.
15143# (If _AS_PATH_WALK were called with IFS unset, it would disable word
15144# splitting by setting IFS to empty value.)
15145IFS=" ""	$as_nl"
15146
15147# Find who we are.  Look in the path if we contain no directory separator.
15148case $0 in #((
15149  *[\\/]* ) as_myself=$0 ;;
15150  *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15151for as_dir in $PATH
15152do
15153  IFS=$as_save_IFS
15154  test -z "$as_dir" && as_dir=.
15155    test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15156  done
15157IFS=$as_save_IFS
15158
15159     ;;
15160esac
15161# We did not find ourselves, most probably we were run as `sh COMMAND'
15162# in which case we are not to be found in the path.
15163if test "x$as_myself" = x; then
15164  as_myself=$0
15165fi
15166if test ! -f "$as_myself"; then
15167  $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15168  exit 1
15169fi
15170
15171# Unset variables that we do not need and which cause bugs (e.g. in
15172# pre-3.0 UWIN ksh).  But do not cause bugs in bash 2.01; the "|| exit 1"
15173# suppresses any "Segmentation fault" message there.  '((' could
15174# trigger a bug in pdksh 5.2.14.
15175for as_var in BASH_ENV ENV MAIL MAILPATH
15176do eval test x\${$as_var+set} = xset \
15177  && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15178done
15179PS1='$ '
15180PS2='> '
15181PS4='+ '
15182
15183# NLS nuisances.
15184LC_ALL=C
15185export LC_ALL
15186LANGUAGE=C
15187export LANGUAGE
15188
15189# CDPATH.
15190(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15191
15192
15193# as_fn_error STATUS ERROR [LINENO LOG_FD]
15194# ----------------------------------------
15195# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15196# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15197# script with STATUS, using 1 if that was 0.
15198as_fn_error ()
15199{
15200  as_status=$1; test $as_status -eq 0 && as_status=1
15201  if test "$4"; then
15202    as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15203    $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15204  fi
15205  $as_echo "$as_me: error: $2" >&2
15206  as_fn_exit $as_status
15207} # as_fn_error
15208
15209
15210# as_fn_set_status STATUS
15211# -----------------------
15212# Set $? to STATUS, without forking.
15213as_fn_set_status ()
15214{
15215  return $1
15216} # as_fn_set_status
15217
15218# as_fn_exit STATUS
15219# -----------------
15220# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15221as_fn_exit ()
15222{
15223  set +e
15224  as_fn_set_status $1
15225  exit $1
15226} # as_fn_exit
15227
15228# as_fn_unset VAR
15229# ---------------
15230# Portably unset VAR.
15231as_fn_unset ()
15232{
15233  { eval $1=; unset $1;}
15234}
15235as_unset=as_fn_unset
15236# as_fn_append VAR VALUE
15237# ----------------------
15238# Append the text in VALUE to the end of the definition contained in VAR. Take
15239# advantage of any shell optimizations that allow amortized linear growth over
15240# repeated appends, instead of the typical quadratic growth present in naive
15241# implementations.
15242if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15243  eval 'as_fn_append ()
15244  {
15245    eval $1+=\$2
15246  }'
15247else
15248  as_fn_append ()
15249  {
15250    eval $1=\$$1\$2
15251  }
15252fi # as_fn_append
15253
15254# as_fn_arith ARG...
15255# ------------------
15256# Perform arithmetic evaluation on the ARGs, and store the result in the
15257# global $as_val. Take advantage of shells that can avoid forks. The arguments
15258# must be portable across $(()) and expr.
15259if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15260  eval 'as_fn_arith ()
15261  {
15262    as_val=$(( $* ))
15263  }'
15264else
15265  as_fn_arith ()
15266  {
15267    as_val=`expr "$@" || test $? -eq 1`
15268  }
15269fi # as_fn_arith
15270
15271
15272if expr a : '\(a\)' >/dev/null 2>&1 &&
15273   test "X`expr 00001 : '.*\(...\)'`" = X001; then
15274  as_expr=expr
15275else
15276  as_expr=false
15277fi
15278
15279if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15280  as_basename=basename
15281else
15282  as_basename=false
15283fi
15284
15285if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15286  as_dirname=dirname
15287else
15288  as_dirname=false
15289fi
15290
15291as_me=`$as_basename -- "$0" ||
15292$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15293	 X"$0" : 'X\(//\)$' \| \
15294	 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15295$as_echo X/"$0" |
15296    sed '/^.*\/\([^/][^/]*\)\/*$/{
15297	    s//\1/
15298	    q
15299	  }
15300	  /^X\/\(\/\/\)$/{
15301	    s//\1/
15302	    q
15303	  }
15304	  /^X\/\(\/\).*/{
15305	    s//\1/
15306	    q
15307	  }
15308	  s/.*/./; q'`
15309
15310# Avoid depending upon Character Ranges.
15311as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15312as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15313as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15314as_cr_digits='0123456789'
15315as_cr_alnum=$as_cr_Letters$as_cr_digits
15316
15317ECHO_C= ECHO_N= ECHO_T=
15318case `echo -n x` in #(((((
15319-n*)
15320  case `echo 'xy\c'` in
15321  *c*) ECHO_T='	';;	# ECHO_T is single tab character.
15322  xy)  ECHO_C='\c';;
15323  *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
15324       ECHO_T='	';;
15325  esac;;
15326*)
15327  ECHO_N='-n';;
15328esac
15329
15330rm -f conf$$ conf$$.exe conf$$.file
15331if test -d conf$$.dir; then
15332  rm -f conf$$.dir/conf$$.file
15333else
15334  rm -f conf$$.dir
15335  mkdir conf$$.dir 2>/dev/null
15336fi
15337if (echo >conf$$.file) 2>/dev/null; then
15338  if ln -s conf$$.file conf$$ 2>/dev/null; then
15339    as_ln_s='ln -s'
15340    # ... but there are two gotchas:
15341    # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15342    # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15343    # In both cases, we have to default to `cp -p'.
15344    ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15345      as_ln_s='cp -p'
15346  elif ln conf$$.file conf$$ 2>/dev/null; then
15347    as_ln_s=ln
15348  else
15349    as_ln_s='cp -p'
15350  fi
15351else
15352  as_ln_s='cp -p'
15353fi
15354rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15355rmdir conf$$.dir 2>/dev/null
15356
15357
15358# as_fn_mkdir_p
15359# -------------
15360# Create "$as_dir" as a directory, including parents if necessary.
15361as_fn_mkdir_p ()
15362{
15363
15364  case $as_dir in #(
15365  -*) as_dir=./$as_dir;;
15366  esac
15367  test -d "$as_dir" || eval $as_mkdir_p || {
15368    as_dirs=
15369    while :; do
15370      case $as_dir in #(
15371      *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15372      *) as_qdir=$as_dir;;
15373      esac
15374      as_dirs="'$as_qdir' $as_dirs"
15375      as_dir=`$as_dirname -- "$as_dir" ||
15376$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15377	 X"$as_dir" : 'X\(//\)[^/]' \| \
15378	 X"$as_dir" : 'X\(//\)$' \| \
15379	 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15380$as_echo X"$as_dir" |
15381    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15382	    s//\1/
15383	    q
15384	  }
15385	  /^X\(\/\/\)[^/].*/{
15386	    s//\1/
15387	    q
15388	  }
15389	  /^X\(\/\/\)$/{
15390	    s//\1/
15391	    q
15392	  }
15393	  /^X\(\/\).*/{
15394	    s//\1/
15395	    q
15396	  }
15397	  s/.*/./; q'`
15398      test -d "$as_dir" && break
15399    done
15400    test -z "$as_dirs" || eval "mkdir $as_dirs"
15401  } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15402
15403
15404} # as_fn_mkdir_p
15405if mkdir -p . 2>/dev/null; then
15406  as_mkdir_p='mkdir -p "$as_dir"'
15407else
15408  test -d ./-p && rmdir ./-p
15409  as_mkdir_p=false
15410fi
15411
15412if test -x / >/dev/null 2>&1; then
15413  as_test_x='test -x'
15414else
15415  if ls -dL / >/dev/null 2>&1; then
15416    as_ls_L_option=L
15417  else
15418    as_ls_L_option=
15419  fi
15420  as_test_x='
15421    eval sh -c '\''
15422      if test -d "$1"; then
15423	test -d "$1/.";
15424      else
15425	case $1 in #(
15426	-*)set "./$1";;
15427	esac;
15428	case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
15429	???[sx]*):;;*)false;;esac;fi
15430    '\'' sh
15431  '
15432fi
15433as_executable_p=$as_test_x
15434
15435# Sed expression to map a string onto a valid CPP name.
15436as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15437
15438# Sed expression to map a string onto a valid variable name.
15439as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15440
15441
15442exec 6>&1
15443## ----------------------------------- ##
15444## Main body of $CONFIG_STATUS script. ##
15445## ----------------------------------- ##
15446_ASEOF
15447test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15448
15449cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15450# Save the log message, to keep $0 and so on meaningful, and to
15451# report actual input values of CONFIG_FILES etc. instead of their
15452# values after options handling.
15453ac_log="
15454This file was extended by $as_me, which was
15455generated by GNU Autoconf 2.66.  Invocation command line was
15456
15457  CONFIG_FILES    = $CONFIG_FILES
15458  CONFIG_HEADERS  = $CONFIG_HEADERS
15459  CONFIG_LINKS    = $CONFIG_LINKS
15460  CONFIG_COMMANDS = $CONFIG_COMMANDS
15461  $ $0 $@
15462
15463on `(hostname || uname -n) 2>/dev/null | sed 1q`
15464"
15465
15466_ACEOF
15467
15468
15469case $ac_config_headers in *"
15470"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15471esac
15472
15473
15474cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15475# Files that config.status was made for.
15476config_headers="$ac_config_headers"
15477config_commands="$ac_config_commands"
15478
15479_ACEOF
15480
15481cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15482ac_cs_usage="\
15483\`$as_me' instantiates files and other configuration actions
15484from templates according to the current configuration.  Unless the files
15485and actions are specified as TAGs, all are instantiated by default.
15486
15487Usage: $0 [OPTION]... [TAG]...
15488
15489  -h, --help       print this help, then exit
15490  -V, --version    print version number and configuration settings, then exit
15491      --config     print configuration, then exit
15492  -q, --quiet, --silent
15493                   do not print progress messages
15494  -d, --debug      don't remove temporary files
15495      --recheck    update $as_me by reconfiguring in the same conditions
15496      --header=FILE[:TEMPLATE]
15497                   instantiate the configuration header FILE
15498
15499Configuration headers:
15500$config_headers
15501
15502Configuration commands:
15503$config_commands
15504
15505Report bugs to the package provider."
15506
15507_ACEOF
15508cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15509ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15510ac_cs_version="\\
15511config.status
15512configured by $0, generated by GNU Autoconf 2.66,
15513  with options \\"\$ac_cs_config\\"
15514
15515Copyright (C) 2010 Free Software Foundation, Inc.
15516This config.status script is free software; the Free Software Foundation
15517gives unlimited permission to copy, distribute and modify it."
15518
15519ac_pwd='$ac_pwd'
15520srcdir='$srcdir'
15521AWK='$AWK'
15522test -n "\$AWK" || AWK=awk
15523_ACEOF
15524
15525cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15526# The default lists apply if the user does not specify any file.
15527ac_need_defaults=:
15528while test $# != 0
15529do
15530  case $1 in
15531  --*=*)
15532    ac_option=`expr "X$1" : 'X\([^=]*\)='`
15533    ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15534    ac_shift=:
15535    ;;
15536  *)
15537    ac_option=$1
15538    ac_optarg=$2
15539    ac_shift=shift
15540    ;;
15541  esac
15542
15543  case $ac_option in
15544  # Handling of the options.
15545  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15546    ac_cs_recheck=: ;;
15547  --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15548    $as_echo "$ac_cs_version"; exit ;;
15549  --config | --confi | --conf | --con | --co | --c )
15550    $as_echo "$ac_cs_config"; exit ;;
15551  --debug | --debu | --deb | --de | --d | -d )
15552    debug=: ;;
15553  --header | --heade | --head | --hea )
15554    $ac_shift
15555    case $ac_optarg in
15556    *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15557    esac
15558    as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15559    ac_need_defaults=false;;
15560  --he | --h)
15561    # Conflict between --help and --header
15562    as_fn_error $? "ambiguous option: \`$1'
15563Try \`$0 --help' for more information.";;
15564  --help | --hel | -h )
15565    $as_echo "$ac_cs_usage"; exit ;;
15566  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15567  | -silent | --silent | --silen | --sile | --sil | --si | --s)
15568    ac_cs_silent=: ;;
15569
15570  # This is an error.
15571  -*) as_fn_error $? "unrecognized option: \`$1'
15572Try \`$0 --help' for more information." ;;
15573
15574  *) as_fn_append ac_config_targets " $1"
15575     ac_need_defaults=false ;;
15576
15577  esac
15578  shift
15579done
15580
15581ac_configure_extra_args=
15582
15583if $ac_cs_silent; then
15584  exec 6>/dev/null
15585  ac_configure_extra_args="$ac_configure_extra_args --silent"
15586fi
15587
15588_ACEOF
15589cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15590if \$ac_cs_recheck; then
15591  set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15592  shift
15593  \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15594  CONFIG_SHELL='$SHELL'
15595  export CONFIG_SHELL
15596  exec "\$@"
15597fi
15598
15599_ACEOF
15600cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15601exec 5>>config.log
15602{
15603  echo
15604  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15605## Running $as_me. ##
15606_ASBOX
15607  $as_echo "$ac_log"
15608} >&5
15609
15610_ACEOF
15611cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15612#
15613# INIT-COMMANDS
15614#
15615
15616
15617# The HP-UX ksh and POSIX shell print the target directory to stdout
15618# if CDPATH is set.
15619(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15620
15621sed_quote_subst='$sed_quote_subst'
15622double_quote_subst='$double_quote_subst'
15623delay_variable_subst='$delay_variable_subst'
15624macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
15625macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
15626enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
15627enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
15628pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
15629enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
15630SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
15631ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
15632host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
15633host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
15634host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
15635build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
15636build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
15637build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
15638SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
15639Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
15640GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
15641EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
15642FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
15643LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
15644NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
15645LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
15646max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
15647ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
15648exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
15649lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
15650lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
15651lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
15652reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
15653reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
15654OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
15655deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
15656file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
15657AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
15658AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
15659STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
15660RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
15661old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15662old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15663old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
15664lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
15665CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
15666CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
15667compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
15668GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
15669lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
15670lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
15671lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
15672lt_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"`'
15673objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
15674MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
15675lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
15676lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
15677lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
15678lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
15679lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
15680need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
15681DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
15682NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
15683LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
15684OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
15685OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
15686libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
15687shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
15688extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15689archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
15690enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
15691export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
15692whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
15693compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
15694old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
15695old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
15696archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
15697archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15698module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
15699module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
15700with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
15701allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
15702no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
15703hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
15704hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
15705hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
15706hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
15707hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
15708hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
15709hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
15710hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
15711inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
15712link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
15713fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
15714always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
15715export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
15716exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
15717include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
15718prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
15719file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
15720variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
15721need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
15722need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
15723version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
15724runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
15725shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
15726shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
15727libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
15728library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
15729soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
15730install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
15731postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
15732postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
15733finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
15734finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
15735hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
15736sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
15737sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
15738hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
15739enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
15740enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
15741enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
15742old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
15743striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
15744compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
15745predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
15746postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
15747predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
15748postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
15749compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
15750LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
15751reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
15752reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15753old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15754compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
15755GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
15756lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
15757lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
15758lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
15759lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
15760lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
15761archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
15762enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
15763export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15764whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15765compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
15766old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15767old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15768archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15769archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15770module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15771module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15772with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
15773allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15774no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
15775hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
15776hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
15777hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
15778hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
15779hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
15780hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
15781hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
15782hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
15783inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
15784link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
15785fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
15786always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
15787export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15788exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15789include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
15790prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
15791file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
15792hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
15793compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
15794predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15795postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
15796predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
15797postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
15798compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
15799
15800LTCC='$LTCC'
15801LTCFLAGS='$LTCFLAGS'
15802compiler='$compiler_DEFAULT'
15803
15804# A function that is used when there is no print builtin or printf.
15805func_fallback_echo ()
15806{
15807  eval 'cat <<_LTECHO_EOF
15808\$1
15809_LTECHO_EOF'
15810}
15811
15812# Quote evaled strings.
15813for var in SHELL \
15814ECHO \
15815SED \
15816GREP \
15817EGREP \
15818FGREP \
15819LD \
15820NM \
15821LN_S \
15822lt_SP2NL \
15823lt_NL2SP \
15824reload_flag \
15825OBJDUMP \
15826deplibs_check_method \
15827file_magic_cmd \
15828AR \
15829AR_FLAGS \
15830STRIP \
15831RANLIB \
15832CC \
15833CFLAGS \
15834compiler \
15835lt_cv_sys_global_symbol_pipe \
15836lt_cv_sys_global_symbol_to_cdecl \
15837lt_cv_sys_global_symbol_to_c_name_address \
15838lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
15839lt_prog_compiler_no_builtin_flag \
15840lt_prog_compiler_wl \
15841lt_prog_compiler_pic \
15842lt_prog_compiler_static \
15843lt_cv_prog_compiler_c_o \
15844need_locks \
15845DSYMUTIL \
15846NMEDIT \
15847LIPO \
15848OTOOL \
15849OTOOL64 \
15850shrext_cmds \
15851export_dynamic_flag_spec \
15852whole_archive_flag_spec \
15853compiler_needs_object \
15854with_gnu_ld \
15855allow_undefined_flag \
15856no_undefined_flag \
15857hardcode_libdir_flag_spec \
15858hardcode_libdir_flag_spec_ld \
15859hardcode_libdir_separator \
15860fix_srcfile_path \
15861exclude_expsyms \
15862include_expsyms \
15863file_list_spec \
15864variables_saved_for_relink \
15865libname_spec \
15866library_names_spec \
15867soname_spec \
15868install_override_mode \
15869finish_eval \
15870old_striplib \
15871striplib \
15872compiler_lib_search_dirs \
15873predep_objects \
15874postdep_objects \
15875predeps \
15876postdeps \
15877compiler_lib_search_path \
15878LD_CXX \
15879reload_flag_CXX \
15880compiler_CXX \
15881lt_prog_compiler_no_builtin_flag_CXX \
15882lt_prog_compiler_wl_CXX \
15883lt_prog_compiler_pic_CXX \
15884lt_prog_compiler_static_CXX \
15885lt_cv_prog_compiler_c_o_CXX \
15886export_dynamic_flag_spec_CXX \
15887whole_archive_flag_spec_CXX \
15888compiler_needs_object_CXX \
15889with_gnu_ld_CXX \
15890allow_undefined_flag_CXX \
15891no_undefined_flag_CXX \
15892hardcode_libdir_flag_spec_CXX \
15893hardcode_libdir_flag_spec_ld_CXX \
15894hardcode_libdir_separator_CXX \
15895fix_srcfile_path_CXX \
15896exclude_expsyms_CXX \
15897include_expsyms_CXX \
15898file_list_spec_CXX \
15899compiler_lib_search_dirs_CXX \
15900predep_objects_CXX \
15901postdep_objects_CXX \
15902predeps_CXX \
15903postdeps_CXX \
15904compiler_lib_search_path_CXX; do
15905    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15906    *[\\\\\\\`\\"\\\$]*)
15907      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
15908      ;;
15909    *)
15910      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15911      ;;
15912    esac
15913done
15914
15915# Double-quote double-evaled strings.
15916for var in reload_cmds \
15917old_postinstall_cmds \
15918old_postuninstall_cmds \
15919old_archive_cmds \
15920extract_expsyms_cmds \
15921old_archive_from_new_cmds \
15922old_archive_from_expsyms_cmds \
15923archive_cmds \
15924archive_expsym_cmds \
15925module_cmds \
15926module_expsym_cmds \
15927export_symbols_cmds \
15928prelink_cmds \
15929postinstall_cmds \
15930postuninstall_cmds \
15931finish_cmds \
15932sys_lib_search_path_spec \
15933sys_lib_dlsearch_path_spec \
15934reload_cmds_CXX \
15935old_archive_cmds_CXX \
15936old_archive_from_new_cmds_CXX \
15937old_archive_from_expsyms_cmds_CXX \
15938archive_cmds_CXX \
15939archive_expsym_cmds_CXX \
15940module_cmds_CXX \
15941module_expsym_cmds_CXX \
15942export_symbols_cmds_CXX \
15943prelink_cmds_CXX; do
15944    case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
15945    *[\\\\\\\`\\"\\\$]*)
15946      eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
15947      ;;
15948    *)
15949      eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
15950      ;;
15951    esac
15952done
15953
15954ac_aux_dir='$ac_aux_dir'
15955xsi_shell='$xsi_shell'
15956lt_shell_append='$lt_shell_append'
15957
15958# See if we are running on zsh, and set the options which allow our
15959# commands through without removal of \ escapes INIT.
15960if test -n "\${ZSH_VERSION+set}" ; then
15961   setopt NO_GLOB_SUBST
15962fi
15963
15964
15965    PACKAGE='$PACKAGE'
15966    VERSION='$VERSION'
15967    TIMESTAMP='$TIMESTAMP'
15968    RM='$RM'
15969    ofile='$ofile'
15970
15971
15972
15973
15974
15975
15976_ACEOF
15977
15978cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15979
15980# Handling of arguments.
15981for ac_config_target in $ac_config_targets
15982do
15983  case $ac_config_target in
15984    "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
15985    "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
15986
15987  *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15988  esac
15989done
15990
15991
15992# If the user did not use the arguments to specify the items to instantiate,
15993# then the envvar interface is used.  Set only those that are not.
15994# We use the long form for the default assignment because of an extremely
15995# bizarre bug on SunOS 4.1.3.
15996if $ac_need_defaults; then
15997  test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15998  test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
15999fi
16000
16001# Have a temporary directory for convenience.  Make it in the build tree
16002# simply because there is no reason against having it here, and in addition,
16003# creating and moving files from /tmp can sometimes cause problems.
16004# Hook for its removal unless debugging.
16005# Note that there is a small window in which the directory will not be cleaned:
16006# after its creation but before its name has been assigned to `$tmp'.
16007$debug ||
16008{
16009  tmp=
16010  trap 'exit_status=$?
16011  { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
16012' 0
16013  trap 'as_fn_exit 1' 1 2 13 15
16014}
16015# Create a (secure) tmp directory for tmp files.
16016
16017{
16018  tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16019  test -n "$tmp" && test -d "$tmp"
16020}  ||
16021{
16022  tmp=./conf$$-$RANDOM
16023  (umask 077 && mkdir "$tmp")
16024} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16025
16026# Set up the scripts for CONFIG_HEADERS section.
16027# No need to generate them if there are no CONFIG_HEADERS.
16028# This happens for instance with `./config.status Makefile'.
16029if test -n "$CONFIG_HEADERS"; then
16030cat >"$tmp/defines.awk" <<\_ACAWK ||
16031BEGIN {
16032_ACEOF
16033
16034# Transform confdefs.h into an awk script `defines.awk', embedded as
16035# here-document in config.status, that substitutes the proper values into
16036# config.h.in to produce config.h.
16037
16038# Create a delimiter string that does not exist in confdefs.h, to ease
16039# handling of long lines.
16040ac_delim='%!_!# '
16041for ac_last_try in false false :; do
16042  ac_t=`sed -n "/$ac_delim/p" confdefs.h`
16043  if test -z "$ac_t"; then
16044    break
16045  elif $ac_last_try; then
16046    as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16047  else
16048    ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16049  fi
16050done
16051
16052# For the awk script, D is an array of macro values keyed by name,
16053# likewise P contains macro parameters if any.  Preserve backslash
16054# newline sequences.
16055
16056ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16057sed -n '
16058s/.\{148\}/&'"$ac_delim"'/g
16059t rset
16060:rset
16061s/^[	 ]*#[	 ]*define[	 ][	 ]*/ /
16062t def
16063d
16064:def
16065s/\\$//
16066t bsnl
16067s/["\\]/\\&/g
16068s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16069D["\1"]=" \3"/p
16070s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2"/p
16071d
16072:bsnl
16073s/["\\]/\\&/g
16074s/^ \('"$ac_word_re"'\)\(([^()]*)\)[	 ]*\(.*\)/P["\1"]="\2"\
16075D["\1"]=" \3\\\\\\n"\\/p
16076t cont
16077s/^ \('"$ac_word_re"'\)[	 ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16078t cont
16079d
16080:cont
16081n
16082s/.\{148\}/&'"$ac_delim"'/g
16083t clear
16084:clear
16085s/\\$//
16086t bsnlc
16087s/["\\]/\\&/g; s/^/"/; s/$/"/p
16088d
16089:bsnlc
16090s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16091b cont
16092' <confdefs.h | sed '
16093s/'"$ac_delim"'/"\\\
16094"/g' >>$CONFIG_STATUS || ac_write_fail=1
16095
16096cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16097  for (key in D) D_is_set[key] = 1
16098  FS = ""
16099}
16100/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16101  line = \$ 0
16102  split(line, arg, " ")
16103  if (arg[1] == "#") {
16104    defundef = arg[2]
16105    mac1 = arg[3]
16106  } else {
16107    defundef = substr(arg[1], 2)
16108    mac1 = arg[2]
16109  }
16110  split(mac1, mac2, "(") #)
16111  macro = mac2[1]
16112  prefix = substr(line, 1, index(line, defundef) - 1)
16113  if (D_is_set[macro]) {
16114    # Preserve the white space surrounding the "#".
16115    print prefix "define", macro P[macro] D[macro]
16116    next
16117  } else {
16118    # Replace #undef with comments.  This is necessary, for example,
16119    # in the case of _POSIX_SOURCE, which is predefined and required
16120    # on some systems where configure will not decide to define it.
16121    if (defundef == "undef") {
16122      print "/*", prefix defundef, macro, "*/"
16123      next
16124    }
16125  }
16126}
16127{ print }
16128_ACAWK
16129_ACEOF
16130cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16131  as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16132fi # test -n "$CONFIG_HEADERS"
16133
16134
16135eval set X "    :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS"
16136shift
16137for ac_tag
16138do
16139  case $ac_tag in
16140  :[FHLC]) ac_mode=$ac_tag; continue;;
16141  esac
16142  case $ac_mode$ac_tag in
16143  :[FHL]*:*);;
16144  :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16145  :[FH]-) ac_tag=-:-;;
16146  :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16147  esac
16148  ac_save_IFS=$IFS
16149  IFS=:
16150  set x $ac_tag
16151  IFS=$ac_save_IFS
16152  shift
16153  ac_file=$1
16154  shift
16155
16156  case $ac_mode in
16157  :L) ac_source=$1;;
16158  :[FH])
16159    ac_file_inputs=
16160    for ac_f
16161    do
16162      case $ac_f in
16163      -) ac_f="$tmp/stdin";;
16164      *) # Look for the file first in the build tree, then in the source tree
16165	 # (if the path is not absolute).  The absolute path cannot be DOS-style,
16166	 # because $ac_f cannot contain `:'.
16167	 test -f "$ac_f" ||
16168	   case $ac_f in
16169	   [\\/$]*) false;;
16170	   *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16171	   esac ||
16172	   as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16173      esac
16174      case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16175      as_fn_append ac_file_inputs " '$ac_f'"
16176    done
16177
16178    # Let's still pretend it is `configure' which instantiates (i.e., don't
16179    # use $as_me), people would be surprised to read:
16180    #    /* config.h.  Generated by config.status.  */
16181    configure_input='Generated from '`
16182	  $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16183	`' by configure.'
16184    if test x"$ac_file" != x-; then
16185      configure_input="$ac_file.  $configure_input"
16186      { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16187$as_echo "$as_me: creating $ac_file" >&6;}
16188    fi
16189    # Neutralize special characters interpreted by sed in replacement strings.
16190    case $configure_input in #(
16191    *\&* | *\|* | *\\* )
16192       ac_sed_conf_input=`$as_echo "$configure_input" |
16193       sed 's/[\\\\&|]/\\\\&/g'`;; #(
16194    *) ac_sed_conf_input=$configure_input;;
16195    esac
16196
16197    case $ac_tag in
16198    *:-:* | *:-) cat >"$tmp/stdin" \
16199      || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16200    esac
16201    ;;
16202  esac
16203
16204  ac_dir=`$as_dirname -- "$ac_file" ||
16205$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16206	 X"$ac_file" : 'X\(//\)[^/]' \| \
16207	 X"$ac_file" : 'X\(//\)$' \| \
16208	 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16209$as_echo X"$ac_file" |
16210    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16211	    s//\1/
16212	    q
16213	  }
16214	  /^X\(\/\/\)[^/].*/{
16215	    s//\1/
16216	    q
16217	  }
16218	  /^X\(\/\/\)$/{
16219	    s//\1/
16220	    q
16221	  }
16222	  /^X\(\/\).*/{
16223	    s//\1/
16224	    q
16225	  }
16226	  s/.*/./; q'`
16227  as_dir="$ac_dir"; as_fn_mkdir_p
16228  ac_builddir=.
16229
16230case "$ac_dir" in
16231.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16232*)
16233  ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16234  # A ".." for each directory in $ac_dir_suffix.
16235  ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16236  case $ac_top_builddir_sub in
16237  "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16238  *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16239  esac ;;
16240esac
16241ac_abs_top_builddir=$ac_pwd
16242ac_abs_builddir=$ac_pwd$ac_dir_suffix
16243# for backward compatibility:
16244ac_top_builddir=$ac_top_build_prefix
16245
16246case $srcdir in
16247  .)  # We are building in place.
16248    ac_srcdir=.
16249    ac_top_srcdir=$ac_top_builddir_sub
16250    ac_abs_top_srcdir=$ac_pwd ;;
16251  [\\/]* | ?:[\\/]* )  # Absolute name.
16252    ac_srcdir=$srcdir$ac_dir_suffix;
16253    ac_top_srcdir=$srcdir
16254    ac_abs_top_srcdir=$srcdir ;;
16255  *) # Relative name.
16256    ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16257    ac_top_srcdir=$ac_top_build_prefix$srcdir
16258    ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16259esac
16260ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16261
16262
16263  case $ac_mode in
16264
16265  :H)
16266  #
16267  # CONFIG_HEADER
16268  #
16269  if test x"$ac_file" != x-; then
16270    {
16271      $as_echo "/* $configure_input  */" \
16272      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
16273    } >"$tmp/config.h" \
16274      || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16275    if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
16276      { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16277$as_echo "$as_me: $ac_file is unchanged" >&6;}
16278    else
16279      rm -f "$ac_file"
16280      mv "$tmp/config.h" "$ac_file" \
16281	|| as_fn_error $? "could not create $ac_file" "$LINENO" 5
16282    fi
16283  else
16284    $as_echo "/* $configure_input  */" \
16285      && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
16286      || as_fn_error $? "could not create -" "$LINENO" 5
16287  fi
16288 ;;
16289
16290  :C)  { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
16291$as_echo "$as_me: executing $ac_file commands" >&6;}
16292 ;;
16293  esac
16294
16295
16296  case $ac_file$ac_mode in
16297    "libtool":C)
16298
16299    # See if we are running on zsh, and set the options which allow our
16300    # commands through without removal of \ escapes.
16301    if test -n "${ZSH_VERSION+set}" ; then
16302      setopt NO_GLOB_SUBST
16303    fi
16304
16305    cfgfile="${ofile}T"
16306    trap "$RM \"$cfgfile\"; exit 1" 1 2 15
16307    $RM "$cfgfile"
16308
16309    cat <<_LT_EOF >> "$cfgfile"
16310#! $SHELL
16311
16312# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
16313# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
16314# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
16315# NOTE: Changes made to this file will be lost: look at ltmain.sh.
16316#
16317#   Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
16318#                 2006, 2007, 2008, 2009, 2010 Free Software Foundation,
16319#                 Inc.
16320#   Written by Gordon Matzigkeit, 1996
16321#
16322#   This file is part of GNU Libtool.
16323#
16324# GNU Libtool is free software; you can redistribute it and/or
16325# modify it under the terms of the GNU General Public License as
16326# published by the Free Software Foundation; either version 2 of
16327# the License, or (at your option) any later version.
16328#
16329# As a special exception to the GNU General Public License,
16330# if you distribute this file as part of a program or library that
16331# is built using GNU Libtool, you may include this file under the
16332# same distribution terms that you use for the rest of that program.
16333#
16334# GNU Libtool is distributed in the hope that it will be useful,
16335# but WITHOUT ANY WARRANTY; without even the implied warranty of
16336# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16337# GNU General Public License for more details.
16338#
16339# You should have received a copy of the GNU General Public License
16340# along with GNU Libtool; see the file COPYING.  If not, a copy
16341# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
16342# obtained by writing to the Free Software Foundation, Inc.,
16343# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16344
16345
16346# The names of the tagged configurations supported by this script.
16347available_tags="CXX "
16348
16349# ### BEGIN LIBTOOL CONFIG
16350
16351# Which release of libtool.m4 was used?
16352macro_version=$macro_version
16353macro_revision=$macro_revision
16354
16355# Whether or not to build shared libraries.
16356build_libtool_libs=$enable_shared
16357
16358# Whether or not to build static libraries.
16359build_old_libs=$enable_static
16360
16361# What type of objects to build.
16362pic_mode=$pic_mode
16363
16364# Whether or not to optimize for fast installation.
16365fast_install=$enable_fast_install
16366
16367# Shell to use when invoking shell scripts.
16368SHELL=$lt_SHELL
16369
16370# An echo program that protects backslashes.
16371ECHO=$lt_ECHO
16372
16373# The host system.
16374host_alias=$host_alias
16375host=$host
16376host_os=$host_os
16377
16378# The build system.
16379build_alias=$build_alias
16380build=$build
16381build_os=$build_os
16382
16383# A sed program that does not truncate output.
16384SED=$lt_SED
16385
16386# Sed that helps us avoid accidentally triggering echo(1) options like -n.
16387Xsed="\$SED -e 1s/^X//"
16388
16389# A grep program that handles long lines.
16390GREP=$lt_GREP
16391
16392# An ERE matcher.
16393EGREP=$lt_EGREP
16394
16395# A literal string matcher.
16396FGREP=$lt_FGREP
16397
16398# A BSD- or MS-compatible name lister.
16399NM=$lt_NM
16400
16401# Whether we need soft or hard links.
16402LN_S=$lt_LN_S
16403
16404# What is the maximum length of a command?
16405max_cmd_len=$max_cmd_len
16406
16407# Object file suffix (normally "o").
16408objext=$ac_objext
16409
16410# Executable file suffix (normally "").
16411exeext=$exeext
16412
16413# whether the shell understands "unset".
16414lt_unset=$lt_unset
16415
16416# turn spaces into newlines.
16417SP2NL=$lt_lt_SP2NL
16418
16419# turn newlines into spaces.
16420NL2SP=$lt_lt_NL2SP
16421
16422# An object symbol dumper.
16423OBJDUMP=$lt_OBJDUMP
16424
16425# Method to check whether dependent libraries are shared objects.
16426deplibs_check_method=$lt_deplibs_check_method
16427
16428# Command to use when deplibs_check_method == "file_magic".
16429file_magic_cmd=$lt_file_magic_cmd
16430
16431# The archiver.
16432AR=$lt_AR
16433AR_FLAGS=$lt_AR_FLAGS
16434
16435# A symbol stripping program.
16436STRIP=$lt_STRIP
16437
16438# Commands used to install an old-style archive.
16439RANLIB=$lt_RANLIB
16440old_postinstall_cmds=$lt_old_postinstall_cmds
16441old_postuninstall_cmds=$lt_old_postuninstall_cmds
16442
16443# Whether to use a lock for old archive extraction.
16444lock_old_archive_extraction=$lock_old_archive_extraction
16445
16446# A C compiler.
16447LTCC=$lt_CC
16448
16449# LTCC compiler flags.
16450LTCFLAGS=$lt_CFLAGS
16451
16452# Take the output of nm and produce a listing of raw symbols and C names.
16453global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
16454
16455# Transform the output of nm in a proper C declaration.
16456global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16457
16458# Transform the output of nm in a C name address pair.
16459global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16460
16461# Transform the output of nm in a C name address pair when lib prefix is needed.
16462global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
16463
16464# The name of the directory that contains temporary libtool files.
16465objdir=$objdir
16466
16467# Used to examine libraries when file_magic_cmd begins with "file".
16468MAGIC_CMD=$MAGIC_CMD
16469
16470# Must we lock files when doing compilation?
16471need_locks=$lt_need_locks
16472
16473# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
16474DSYMUTIL=$lt_DSYMUTIL
16475
16476# Tool to change global to local symbols on Mac OS X.
16477NMEDIT=$lt_NMEDIT
16478
16479# Tool to manipulate fat objects and archives on Mac OS X.
16480LIPO=$lt_LIPO
16481
16482# ldd/readelf like tool for Mach-O binaries on Mac OS X.
16483OTOOL=$lt_OTOOL
16484
16485# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
16486OTOOL64=$lt_OTOOL64
16487
16488# Old archive suffix (normally "a").
16489libext=$libext
16490
16491# Shared library suffix (normally ".so").
16492shrext_cmds=$lt_shrext_cmds
16493
16494# The commands to extract the exported symbol list from a shared archive.
16495extract_expsyms_cmds=$lt_extract_expsyms_cmds
16496
16497# Variables whose values should be saved in libtool wrapper scripts and
16498# restored at link time.
16499variables_saved_for_relink=$lt_variables_saved_for_relink
16500
16501# Do we need the "lib" prefix for modules?
16502need_lib_prefix=$need_lib_prefix
16503
16504# Do we need a version for libraries?
16505need_version=$need_version
16506
16507# Library versioning type.
16508version_type=$version_type
16509
16510# Shared library runtime path variable.
16511runpath_var=$runpath_var
16512
16513# Shared library path variable.
16514shlibpath_var=$shlibpath_var
16515
16516# Is shlibpath searched before the hard-coded library search path?
16517shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16518
16519# Format of library name prefix.
16520libname_spec=$lt_libname_spec
16521
16522# List of archive names.  First name is the real one, the rest are links.
16523# The last name is the one that the linker finds with -lNAME
16524library_names_spec=$lt_library_names_spec
16525
16526# The coded name of the library, if different from the real name.
16527soname_spec=$lt_soname_spec
16528
16529# Permission mode override for installation of shared libraries.
16530install_override_mode=$lt_install_override_mode
16531
16532# Command to use after installation of a shared archive.
16533postinstall_cmds=$lt_postinstall_cmds
16534
16535# Command to use after uninstallation of a shared archive.
16536postuninstall_cmds=$lt_postuninstall_cmds
16537
16538# Commands used to finish a libtool library installation in a directory.
16539finish_cmds=$lt_finish_cmds
16540
16541# As "finish_cmds", except a single script fragment to be evaled but
16542# not shown.
16543finish_eval=$lt_finish_eval
16544
16545# Whether we should hardcode library paths into libraries.
16546hardcode_into_libs=$hardcode_into_libs
16547
16548# Compile-time system search path for libraries.
16549sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16550
16551# Run-time system search path for libraries.
16552sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16553
16554# Whether dlopen is supported.
16555dlopen_support=$enable_dlopen
16556
16557# Whether dlopen of programs is supported.
16558dlopen_self=$enable_dlopen_self
16559
16560# Whether dlopen of statically linked programs is supported.
16561dlopen_self_static=$enable_dlopen_self_static
16562
16563# Commands to strip libraries.
16564old_striplib=$lt_old_striplib
16565striplib=$lt_striplib
16566
16567
16568# The linker used to build libraries.
16569LD=$lt_LD
16570
16571# How to create reloadable object files.
16572reload_flag=$lt_reload_flag
16573reload_cmds=$lt_reload_cmds
16574
16575# Commands used to build an old-style archive.
16576old_archive_cmds=$lt_old_archive_cmds
16577
16578# A language specific compiler.
16579CC=$lt_compiler
16580
16581# Is the compiler the GNU compiler?
16582with_gcc=$GCC
16583
16584# Compiler flag to turn off builtin functions.
16585no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
16586
16587# How to pass a linker flag through the compiler.
16588wl=$lt_lt_prog_compiler_wl
16589
16590# Additional compiler flags for building library objects.
16591pic_flag=$lt_lt_prog_compiler_pic
16592
16593# Compiler flag to prevent dynamic linking.
16594link_static_flag=$lt_lt_prog_compiler_static
16595
16596# Does compiler simultaneously support -c and -o options?
16597compiler_c_o=$lt_lt_cv_prog_compiler_c_o
16598
16599# Whether or not to add -lc for building shared libraries.
16600build_libtool_need_lc=$archive_cmds_need_lc
16601
16602# Whether or not to disallow shared libs when runtime libs are static.
16603allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
16604
16605# Compiler flag to allow reflexive dlopens.
16606export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
16607
16608# Compiler flag to generate shared objects directly from archives.
16609whole_archive_flag_spec=$lt_whole_archive_flag_spec
16610
16611# Whether the compiler copes with passing no objects directly.
16612compiler_needs_object=$lt_compiler_needs_object
16613
16614# Create an old-style archive from a shared archive.
16615old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
16616
16617# Create a temporary old-style archive to link instead of a shared archive.
16618old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
16619
16620# Commands used to build a shared archive.
16621archive_cmds=$lt_archive_cmds
16622archive_expsym_cmds=$lt_archive_expsym_cmds
16623
16624# Commands used to build a loadable module if different from building
16625# a shared archive.
16626module_cmds=$lt_module_cmds
16627module_expsym_cmds=$lt_module_expsym_cmds
16628
16629# Whether we are building with GNU ld or not.
16630with_gnu_ld=$lt_with_gnu_ld
16631
16632# Flag that allows shared libraries with undefined symbols to be built.
16633allow_undefined_flag=$lt_allow_undefined_flag
16634
16635# Flag that enforces no undefined symbols.
16636no_undefined_flag=$lt_no_undefined_flag
16637
16638# Flag to hardcode \$libdir into a binary during linking.
16639# This must work even if \$libdir does not exist
16640hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
16641
16642# If ld is used when linking, flag to hardcode \$libdir into a binary
16643# during linking.  This must work even if \$libdir does not exist.
16644hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
16645
16646# Whether we need a single "-rpath" flag with a separated argument.
16647hardcode_libdir_separator=$lt_hardcode_libdir_separator
16648
16649# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16650# DIR into the resulting binary.
16651hardcode_direct=$hardcode_direct
16652
16653# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
16654# DIR into the resulting binary and the resulting library dependency is
16655# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
16656# library is relocated.
16657hardcode_direct_absolute=$hardcode_direct_absolute
16658
16659# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
16660# into the resulting binary.
16661hardcode_minus_L=$hardcode_minus_L
16662
16663# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
16664# into the resulting binary.
16665hardcode_shlibpath_var=$hardcode_shlibpath_var
16666
16667# Set to "yes" if building a shared library automatically hardcodes DIR
16668# into the library and all subsequent libraries and executables linked
16669# against it.
16670hardcode_automatic=$hardcode_automatic
16671
16672# Set to yes if linker adds runtime paths of dependent libraries
16673# to runtime path list.
16674inherit_rpath=$inherit_rpath
16675
16676# Whether libtool must link a program against all its dependency libraries.
16677link_all_deplibs=$link_all_deplibs
16678
16679# Fix the shell variable \$srcfile for the compiler.
16680fix_srcfile_path=$lt_fix_srcfile_path
16681
16682# Set to "yes" if exported symbols are required.
16683always_export_symbols=$always_export_symbols
16684
16685# The commands to list exported symbols.
16686export_symbols_cmds=$lt_export_symbols_cmds
16687
16688# Symbols that should not be listed in the preloaded symbols.
16689exclude_expsyms=$lt_exclude_expsyms
16690
16691# Symbols that must always be exported.
16692include_expsyms=$lt_include_expsyms
16693
16694# Commands necessary for linking programs (against libraries) with templates.
16695prelink_cmds=$lt_prelink_cmds
16696
16697# Specify filename containing input files.
16698file_list_spec=$lt_file_list_spec
16699
16700# How to hardcode a shared library path into an executable.
16701hardcode_action=$hardcode_action
16702
16703# The directories searched by this compiler when creating a shared library.
16704compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
16705
16706# Dependencies to place before and after the objects being linked to
16707# create a shared library.
16708predep_objects=$lt_predep_objects
16709postdep_objects=$lt_postdep_objects
16710predeps=$lt_predeps
16711postdeps=$lt_postdeps
16712
16713# The library search path used internally by the compiler when linking
16714# a shared library.
16715compiler_lib_search_path=$lt_compiler_lib_search_path
16716
16717# ### END LIBTOOL CONFIG
16718
16719_LT_EOF
16720
16721  case $host_os in
16722  aix3*)
16723    cat <<\_LT_EOF >> "$cfgfile"
16724# AIX sometimes has problems with the GCC collect2 program.  For some
16725# reason, if we set the COLLECT_NAMES environment variable, the problems
16726# vanish in a puff of smoke.
16727if test "X${COLLECT_NAMES+set}" != Xset; then
16728  COLLECT_NAMES=
16729  export COLLECT_NAMES
16730fi
16731_LT_EOF
16732    ;;
16733  esac
16734
16735
16736ltmain="$ac_aux_dir/ltmain.sh"
16737
16738
16739  # We use sed instead of cat because bash on DJGPP gets confused if
16740  # if finds mixed CR/LF and LF-only lines.  Since sed operates in
16741  # text mode, it properly converts lines to CR/LF.  This bash problem
16742  # is reportedly fixed, but why not run on old versions too?
16743  sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
16744    || (rm -f "$cfgfile"; exit 1)
16745
16746  case $xsi_shell in
16747  yes)
16748    cat << \_LT_EOF >> "$cfgfile"
16749
16750# func_dirname file append nondir_replacement
16751# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16752# otherwise set result to NONDIR_REPLACEMENT.
16753func_dirname ()
16754{
16755  case ${1} in
16756    */*) func_dirname_result="${1%/*}${2}" ;;
16757    *  ) func_dirname_result="${3}" ;;
16758  esac
16759}
16760
16761# func_basename file
16762func_basename ()
16763{
16764  func_basename_result="${1##*/}"
16765}
16766
16767# func_dirname_and_basename file append nondir_replacement
16768# perform func_basename and func_dirname in a single function
16769# call:
16770#   dirname:  Compute the dirname of FILE.  If nonempty,
16771#             add APPEND to the result, otherwise set result
16772#             to NONDIR_REPLACEMENT.
16773#             value returned in "$func_dirname_result"
16774#   basename: Compute filename of FILE.
16775#             value retuned in "$func_basename_result"
16776# Implementation must be kept synchronized with func_dirname
16777# and func_basename. For efficiency, we do not delegate to
16778# those functions but instead duplicate the functionality here.
16779func_dirname_and_basename ()
16780{
16781  case ${1} in
16782    */*) func_dirname_result="${1%/*}${2}" ;;
16783    *  ) func_dirname_result="${3}" ;;
16784  esac
16785  func_basename_result="${1##*/}"
16786}
16787
16788# func_stripname prefix suffix name
16789# strip PREFIX and SUFFIX off of NAME.
16790# PREFIX and SUFFIX must not contain globbing or regex special
16791# characters, hashes, percent signs, but SUFFIX may contain a leading
16792# dot (in which case that matches only a dot).
16793func_stripname ()
16794{
16795  # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
16796  # positional parameters, so assign one to ordinary parameter first.
16797  func_stripname_result=${3}
16798  func_stripname_result=${func_stripname_result#"${1}"}
16799  func_stripname_result=${func_stripname_result%"${2}"}
16800}
16801
16802# func_opt_split
16803func_opt_split ()
16804{
16805  func_opt_split_opt=${1%%=*}
16806  func_opt_split_arg=${1#*=}
16807}
16808
16809# func_lo2o object
16810func_lo2o ()
16811{
16812  case ${1} in
16813    *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
16814    *)    func_lo2o_result=${1} ;;
16815  esac
16816}
16817
16818# func_xform libobj-or-source
16819func_xform ()
16820{
16821  func_xform_result=${1%.*}.lo
16822}
16823
16824# func_arith arithmetic-term...
16825func_arith ()
16826{
16827  func_arith_result=$(( $* ))
16828}
16829
16830# func_len string
16831# STRING may not start with a hyphen.
16832func_len ()
16833{
16834  func_len_result=${#1}
16835}
16836
16837_LT_EOF
16838    ;;
16839  *) # Bourne compatible functions.
16840    cat << \_LT_EOF >> "$cfgfile"
16841
16842# func_dirname file append nondir_replacement
16843# Compute the dirname of FILE.  If nonempty, add APPEND to the result,
16844# otherwise set result to NONDIR_REPLACEMENT.
16845func_dirname ()
16846{
16847  # Extract subdirectory from the argument.
16848  func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
16849  if test "X$func_dirname_result" = "X${1}"; then
16850    func_dirname_result="${3}"
16851  else
16852    func_dirname_result="$func_dirname_result${2}"
16853  fi
16854}
16855
16856# func_basename file
16857func_basename ()
16858{
16859  func_basename_result=`$ECHO "${1}" | $SED "$basename"`
16860}
16861
16862
16863# func_stripname prefix suffix name
16864# strip PREFIX and SUFFIX off of NAME.
16865# PREFIX and SUFFIX must not contain globbing or regex special
16866# characters, hashes, percent signs, but SUFFIX may contain a leading
16867# dot (in which case that matches only a dot).
16868# func_strip_suffix prefix name
16869func_stripname ()
16870{
16871  case ${2} in
16872    .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
16873    *)  func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
16874  esac
16875}
16876
16877# sed scripts:
16878my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
16879my_sed_long_arg='1s/^-[^=]*=//'
16880
16881# func_opt_split
16882func_opt_split ()
16883{
16884  func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
16885  func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
16886}
16887
16888# func_lo2o object
16889func_lo2o ()
16890{
16891  func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
16892}
16893
16894# func_xform libobj-or-source
16895func_xform ()
16896{
16897  func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
16898}
16899
16900# func_arith arithmetic-term...
16901func_arith ()
16902{
16903  func_arith_result=`expr "$@"`
16904}
16905
16906# func_len string
16907# STRING may not start with a hyphen.
16908func_len ()
16909{
16910  func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
16911}
16912
16913_LT_EOF
16914esac
16915
16916case $lt_shell_append in
16917  yes)
16918    cat << \_LT_EOF >> "$cfgfile"
16919
16920# func_append var value
16921# Append VALUE to the end of shell variable VAR.
16922func_append ()
16923{
16924  eval "$1+=\$2"
16925}
16926_LT_EOF
16927    ;;
16928  *)
16929    cat << \_LT_EOF >> "$cfgfile"
16930
16931# func_append var value
16932# Append VALUE to the end of shell variable VAR.
16933func_append ()
16934{
16935  eval "$1=\$$1\$2"
16936}
16937
16938_LT_EOF
16939    ;;
16940  esac
16941
16942
16943  sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
16944    || (rm -f "$cfgfile"; exit 1)
16945
16946  mv -f "$cfgfile" "$ofile" ||
16947    (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
16948  chmod +x "$ofile"
16949
16950
16951    cat <<_LT_EOF >> "$ofile"
16952
16953# ### BEGIN LIBTOOL TAG CONFIG: CXX
16954
16955# The linker used to build libraries.
16956LD=$lt_LD_CXX
16957
16958# How to create reloadable object files.
16959reload_flag=$lt_reload_flag_CXX
16960reload_cmds=$lt_reload_cmds_CXX
16961
16962# Commands used to build an old-style archive.
16963old_archive_cmds=$lt_old_archive_cmds_CXX
16964
16965# A language specific compiler.
16966CC=$lt_compiler_CXX
16967
16968# Is the compiler the GNU compiler?
16969with_gcc=$GCC_CXX
16970
16971# Compiler flag to turn off builtin functions.
16972no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
16973
16974# How to pass a linker flag through the compiler.
16975wl=$lt_lt_prog_compiler_wl_CXX
16976
16977# Additional compiler flags for building library objects.
16978pic_flag=$lt_lt_prog_compiler_pic_CXX
16979
16980# Compiler flag to prevent dynamic linking.
16981link_static_flag=$lt_lt_prog_compiler_static_CXX
16982
16983# Does compiler simultaneously support -c and -o options?
16984compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
16985
16986# Whether or not to add -lc for building shared libraries.
16987build_libtool_need_lc=$archive_cmds_need_lc_CXX
16988
16989# Whether or not to disallow shared libs when runtime libs are static.
16990allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
16991
16992# Compiler flag to allow reflexive dlopens.
16993export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
16994
16995# Compiler flag to generate shared objects directly from archives.
16996whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
16997
16998# Whether the compiler copes with passing no objects directly.
16999compiler_needs_object=$lt_compiler_needs_object_CXX
17000
17001# Create an old-style archive from a shared archive.
17002old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
17003
17004# Create a temporary old-style archive to link instead of a shared archive.
17005old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
17006
17007# Commands used to build a shared archive.
17008archive_cmds=$lt_archive_cmds_CXX
17009archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
17010
17011# Commands used to build a loadable module if different from building
17012# a shared archive.
17013module_cmds=$lt_module_cmds_CXX
17014module_expsym_cmds=$lt_module_expsym_cmds_CXX
17015
17016# Whether we are building with GNU ld or not.
17017with_gnu_ld=$lt_with_gnu_ld_CXX
17018
17019# Flag that allows shared libraries with undefined symbols to be built.
17020allow_undefined_flag=$lt_allow_undefined_flag_CXX
17021
17022# Flag that enforces no undefined symbols.
17023no_undefined_flag=$lt_no_undefined_flag_CXX
17024
17025# Flag to hardcode \$libdir into a binary during linking.
17026# This must work even if \$libdir does not exist
17027hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
17028
17029# If ld is used when linking, flag to hardcode \$libdir into a binary
17030# during linking.  This must work even if \$libdir does not exist.
17031hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
17032
17033# Whether we need a single "-rpath" flag with a separated argument.
17034hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
17035
17036# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17037# DIR into the resulting binary.
17038hardcode_direct=$hardcode_direct_CXX
17039
17040# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
17041# DIR into the resulting binary and the resulting library dependency is
17042# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
17043# library is relocated.
17044hardcode_direct_absolute=$hardcode_direct_absolute_CXX
17045
17046# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
17047# into the resulting binary.
17048hardcode_minus_L=$hardcode_minus_L_CXX
17049
17050# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
17051# into the resulting binary.
17052hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
17053
17054# Set to "yes" if building a shared library automatically hardcodes DIR
17055# into the library and all subsequent libraries and executables linked
17056# against it.
17057hardcode_automatic=$hardcode_automatic_CXX
17058
17059# Set to yes if linker adds runtime paths of dependent libraries
17060# to runtime path list.
17061inherit_rpath=$inherit_rpath_CXX
17062
17063# Whether libtool must link a program against all its dependency libraries.
17064link_all_deplibs=$link_all_deplibs_CXX
17065
17066# Fix the shell variable \$srcfile for the compiler.
17067fix_srcfile_path=$lt_fix_srcfile_path_CXX
17068
17069# Set to "yes" if exported symbols are required.
17070always_export_symbols=$always_export_symbols_CXX
17071
17072# The commands to list exported symbols.
17073export_symbols_cmds=$lt_export_symbols_cmds_CXX
17074
17075# Symbols that should not be listed in the preloaded symbols.
17076exclude_expsyms=$lt_exclude_expsyms_CXX
17077
17078# Symbols that must always be exported.
17079include_expsyms=$lt_include_expsyms_CXX
17080
17081# Commands necessary for linking programs (against libraries) with templates.
17082prelink_cmds=$lt_prelink_cmds_CXX
17083
17084# Specify filename containing input files.
17085file_list_spec=$lt_file_list_spec_CXX
17086
17087# How to hardcode a shared library path into an executable.
17088hardcode_action=$hardcode_action_CXX
17089
17090# The directories searched by this compiler when creating a shared library.
17091compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
17092
17093# Dependencies to place before and after the objects being linked to
17094# create a shared library.
17095predep_objects=$lt_predep_objects_CXX
17096postdep_objects=$lt_postdep_objects_CXX
17097predeps=$lt_predeps_CXX
17098postdeps=$lt_postdeps_CXX
17099
17100# The library search path used internally by the compiler when linking
17101# a shared library.
17102compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
17103
17104# ### END LIBTOOL TAG CONFIG: CXX
17105_LT_EOF
17106
17107 ;;
17108
17109  esac
17110done # for ac_tag
17111
17112
17113as_fn_exit 0
17114_ACEOF
17115ac_clean_files=$ac_clean_files_save
17116
17117test $ac_write_fail = 0 ||
17118  as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
17119
17120
17121# configure is writing to config.log, and then calls config.status.
17122# config.status does its own redirection, appending to config.log.
17123# Unfortunately, on DOS this fails, as config.log is still kept open
17124# by configure, so config.status won't be able to write to it; its
17125# output is simply discarded.  So we exec the FD to /dev/null,
17126# effectively closing config.log, so it can be properly (re)opened and
17127# appended to by config.status.  When coming back to configure, we
17128# need to make the FD available again.
17129if test "$no_create" != yes; then
17130  ac_cs_success=:
17131  ac_config_status_args=
17132  test "$silent" = yes &&
17133    ac_config_status_args="$ac_config_status_args --quiet"
17134  exec 5>/dev/null
17135  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
17136  exec 5>>config.log
17137  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
17138  # would make configure fail if this is the last instruction.
17139  $ac_cs_success || as_fn_exit 1
17140fi
17141if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
17142  { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
17143$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
17144fi
17145
17146
17147
17148
17149# Forbidden tokens and exceptions.
17150
17151
17152
17153# Actually reserved by M4sh.
17154
17155# Wrap our cleanup prior to m4sugar's cleanup.
17156
17157# All the M4sugar macros start with `m4_', except `dnl' kept as is
17158# for sake of simplicity.
17159
17160
17161
17162# If __m4_version__ is defined, we assume that we are being run by M4
17163# 1.6 or newer, thus  recursion is linear, and debugmode(+do)
17164# is available for faster checks of dereferencing undefined macros
17165# and forcing dumpdef to print to stderr regardless of debugfile.
17166# But if it is missing, we assume we are being run by M4 1.4.x, that
17167#  recursion is quadratic, and that we need foreach-based
17168# replacement macros.  Also, m4 prior to 1.4.8 loses track of location
17169# during m4wrap text; __line__ should never be 0.
17170#
17171# Use the raw builtin to avoid tripping up include tracing.
17172# Meanwhile, avoid m4_copy, since it temporarily undefines m4_defn.
17173#                                                  -*- Autoconf -*-
17174# This file is part of Autoconf.
17175# foreach-based replacements for recursive functions.
17176# Speeds up GNU M4 1.4.x by avoiding quadratic $@ recursion, but penalizes
17177# GNU M4 1.6 by requiring more memory and macro expansions.
17178#
17179# Copyright (C) 2008, 2009, 2010 Free Software Foundation, Inc.
17180
17181# This file is part of Autoconf.  This program is free
17182# software; you can redistribute it and/or modify it under the
17183# terms of the GNU General Public License as published by the
17184# Free Software Foundation, either version 3 of the License, or
17185# (at your option) any later version.
17186#
17187# This program is distributed in the hope that it will be useful,
17188# but WITHOUT ANY WARRANTY; without even the implied warranty of
17189# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17190# GNU General Public License for more details.
17191#
17192# Under Section 7 of GPL version 3, you are granted additional
17193# permissions described in the Autoconf Configure Script Exception,
17194# version 3.0, as published by the Free Software Foundation.
17195#
17196# You should have received a copy of the GNU General Public License
17197# and a copy of the Autoconf Configure Script Exception along with
17198# this program; see the files COPYINGv3 and COPYING.EXCEPTION
17199# respectively.  If not, see <http://www.gnu.org/licenses/>.
17200
17201# Written by Eric Blake.
17202
17203# In M4 1.4.x, every byte of $@ is rescanned.  This means that an
17204# algorithm on n arguments that recurses with one less argument each
17205# iteration will scan n * (n + 1) / 2 arguments, for O(n^2) time.  In
17206# M4 1.6, this was fixed so that $@ is only scanned once, then
17207# back-references are made to information stored about the scan.
17208# Thus, n iterations need only scan n arguments, for O(n) time.
17209# Additionally, in M4 1.4.x, recursive algorithms did not clean up
17210# memory very well, requiring O(n^2) memory rather than O(n) for n
17211# iterations.
17212#
17213# This file is designed to overcome the quadratic nature of $@
17214# recursion by writing a variant of m4_foreach that uses m4_for rather
17215# than $@ recursion to operate on the list.  This involves more macro
17216# expansions, but avoids the need to rescan a quadratic number of
17217# arguments, making these replacements very attractive for M4 1.4.x.
17218# On the other hand, in any version of M4, expanding additional macros
17219# costs additional time; therefore, in M4 1.6, where $@ recursion uses
17220# fewer macros, these replacements actually pessimize performance.
17221# Additionally, the use of $10 to mean the tenth argument violates
17222# POSIX; although all versions of m4 1.4.x support this meaning, a
17223# future m4 version may switch to take it as the first argument
17224# concatenated with a literal 0, so the implementations in this file
17225# are not future-proof.  Thus, this file is conditionally included as
17226# part of m4_init(), only when it is detected that M4 probably has
17227# quadratic behavior (ie. it lacks the macro __m4_version__).
17228#
17229# Please keep this file in sync with m4sugar.m4.
17230
17231# _m4_foreach(PRE, POST, IGNORED, ARG...)
17232# ---------------------------------------
17233# Form the common basis of the m4_foreach and m4_map macros.  For each
17234# ARG, expand PRE[ARG]POST[].  The IGNORED argument makes recursion
17235# easier, and must be supplied rather than implicit.
17236#
17237# This version minimizes the number of times that $@ is evaluated by
17238# using m4_for to generate a boilerplate into _m4_f then passing $@ to
17239# that temporary macro.  Thus, the recursion is done in m4_for without
17240# reparsing any user input, and is not quadratic.  For an idea of how
17241# this works, note that m4_foreach(i,[1,2],[i]) calls
17242#   _m4_foreach([m4_define([i],],[)i],[],[1],[2])
17243# which defines _m4_f:
17244#   $1[$4]$2[]$1[$5]$2[]_m4_popdef([_m4_f])
17245# then calls _m4_f([m4_define([i],],[)i],[],[1],[2]) for a net result:
17246#   m4_define([i],[1])i[]m4_define([i],[2])i[]_m4_popdef([_m4_f]).
17247
17248
17249
17250
17251# m4_case(SWITCH, VAL1, IF-VAL1, VAL2, IF-VAL2, ..., DEFAULT)
17252# -----------------------------------------------------------
17253# Find the first VAL that SWITCH matches, and expand the corresponding
17254# IF-VAL.  If there are no matches, expand DEFAULT.
17255#
17256# Use m4_for to create a temporary macro in terms of a boilerplate
17257# m4_if with final cleanup.  If $# is even, we have DEFAULT; if it is
17258# odd, then rounding the last $# up in the temporary macro is
17259# harmless.  For example, both m4_case(1,2,3,4,5) and
17260# m4_case(1,2,3,4,5,6) result in the intermediate _m4_case being
17261#   m4_if([$1],[$2],[$3],[$1],[$4],[$5],_m4_popdef([_m4_case])[$6])
17262
17263
17264
17265
17266
17267
17268# m4_bmatch(SWITCH, RE1, VAL1, RE2, VAL2, ..., DEFAULT)
17269# -----------------------------------------------------
17270# m4 equivalent of
17271#
17272# if (SWITCH =~ RE1)
17273#   VAL1;
17274# elif (SWITCH =~ RE2)
17275#   VAL2;
17276# elif ...
17277#   ...
17278# else
17279#   DEFAULT
17280#
17281# We build the temporary macro _m4_b:
17282#   m4_define([_m4_b], _m4_defn([_m4_bmatch]))_m4_b([$1], [$2], [$3])...
17283#   _m4_b([$1], [$m-1], [$m])_m4_b([], [], [$m+1]_m4_popdef([_m4_b]))
17284# then invoke m4_unquote(_m4_b($@)), for concatenation with later text.
17285
17286
17287
17288
17289
17290
17291
17292
17293
17294# m4_cond(TEST1, VAL1, IF-VAL1, TEST2, VAL2, IF-VAL2, ..., [DEFAULT])
17295# -------------------------------------------------------------------
17296# Similar to m4_if, except that each TEST is expanded when encountered.
17297# If the expansion of TESTn matches the string VALn, the result is IF-VALn.
17298# The result is DEFAULT if no tests passed.  This macro allows
17299# short-circuiting of expensive tests, where it pays to arrange quick
17300# filter tests to run first.
17301#
17302# m4_cond already guarantees either 3*n or 3*n + 1 arguments, 1 <= n.
17303# We only have to speed up _m4_cond, by building the temporary _m4_c:
17304#   m4_define([_m4_c], _m4_defn([m4_unquote]))_m4_c([m4_if(($1), [($2)],
17305#   [[$3]m4_define([_m4_c])])])_m4_c([m4_if(($4), [($5)],
17306#   [[$6]m4_define([_m4_c])])])..._m4_c([m4_if(($m-2), [($m-1)],
17307#   [[$m]m4_define([_m4_c])])])_m4_c([[$m+1]]_m4_popdef([_m4_c]))
17308# We invoke m4_unquote(_m4_c($@)), for concatenation with later text.
17309
17310
17311
17312
17313
17314
17315# m4_bpatsubsts(STRING, RE1, SUBST1, RE2, SUBST2, ...)
17316# ----------------------------------------------------
17317# m4 equivalent of
17318#
17319#   $_ = STRING;
17320#   s/RE1/SUBST1/g;
17321#   s/RE2/SUBST2/g;
17322#   ...
17323#
17324# m4_bpatsubsts already validated an odd number of arguments; we only
17325# need to speed up _m4_bpatsubsts.  To avoid nesting, we build the
17326# temporary _m4_p:
17327#   m4_define([_m4_p], [$1])m4_define([_m4_p],
17328#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$2], [$3]))m4_define([_m4_p],
17329#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$4], [$5]))m4_define([_m4_p],...
17330#   m4_bpatsubst(m4_dquote(_m4_defn([_m4_p])), [$m-1], [$m]))m4_unquote(
17331#   _m4_defn([_m4_p])_m4_popdef([_m4_p]))
17332
17333
17334
17335
17336
17337
17338# m4_shiftn(N, ...)
17339# -----------------
17340# Returns ... shifted N times.  Useful for recursive "varargs" constructs.
17341#
17342# m4_shiftn already validated arguments; we only need to speed up
17343# _m4_shiftn.  If N is 3, then we build the temporary _m4_s, defined as
17344#   ,[$5],[$6],...,[$m]_m4_popdef([_m4_s])
17345# before calling m4_shift(_m4_s($@)).
17346
17347
17348# m4_do(STRING, ...)
17349# ------------------
17350# This macro invokes all its arguments (in sequence, of course).  It is
17351# useful for making your macros more structured and readable by dropping
17352# unnecessary dnl's and have the macros indented properly.
17353#
17354# Here, we use the temporary macro _m4_do, defined as
17355#   $1[]$2[]...[]$n[]_m4_popdef([_m4_do])
17356
17357
17358# m4_dquote_elt(ARGS)
17359# -------------------
17360# Return ARGS as an unquoted list of double-quoted arguments.
17361#
17362# _m4_foreach to the rescue.
17363
17364
17365# m4_reverse(ARGS)
17366# ----------------
17367# Output ARGS in reverse order.
17368#
17369# Invoke _m4_r($@) with the temporary _m4_r built as
17370#   [$m], [$m-1], ..., [$2], [$1]_m4_popdef([_m4_r])
17371
17372
17373
17374# m4_map_args_pair(EXPRESSION, [END-EXPR = EXPRESSION], ARG...)
17375# -------------------------------------------------------------
17376# Perform a pairwise grouping of consecutive ARGs, by expanding
17377# EXPRESSION([ARG1], [ARG2]).  If there are an odd number of ARGs, the
17378# final argument is expanded with END-EXPR([ARGn]).
17379#
17380# Build the temporary macro _m4_map_args_pair, with the $2([$m+1])
17381# only output if $# is odd:
17382#   $1([$3], [$4])[]$1([$5], [$6])[]...$1([$m-1],
17383#   [$m])[]m4_default([$2], [$1])([$m+1])[]_m4_popdef([_m4_map_args_pair])
17384
17385
17386
17387
17388
17389
17390
17391
17392# m4_join(SEP, ARG1, ARG2...)
17393# ---------------------------
17394# Produce ARG1SEPARG2...SEPARGn.  Avoid back-to-back SEP when a given ARG
17395# is the empty string.  No expansion is performed on SEP or ARGs.
17396#
17397# Use a self-modifying separator, since we don't know how many
17398# arguments might be skipped before a separator is first printed, but
17399# be careful if the separator contains $.  _m4_foreach to the rescue.
17400
17401
17402
17403
17404# m4_joinall(SEP, ARG1, ARG2...)
17405# ------------------------------
17406# Produce ARG1SEPARG2...SEPARGn.  An empty ARG results in back-to-back SEP.
17407# No expansion is performed on SEP or ARGs.
17408#
17409# A bit easier than m4_join.  _m4_foreach to the rescue.
17410
17411
17412# m4_list_cmp(A, B)
17413# -----------------
17414# Compare the two lists of integer expressions A and B.
17415#
17416# m4_list_cmp takes care of any side effects; we only override
17417# _m4_list_cmp_raw, where we can safely expand lists multiple times.
17418# First, insert padding so that both lists are the same length; the
17419# trailing +0 is necessary to handle a missing list.  Next, create a
17420# temporary macro to perform pairwise comparisons until an inequality
17421# is found.  For example, m4_list_cmp([1], [1,2]) creates _m4_cmp as
17422#   m4_if(m4_eval([($1) != ($3)]), [1], [m4_cmp([$1], [$3])],
17423#         m4_eval([($2) != ($4)]), [1], [m4_cmp([$2], [$4])],
17424#         [0]_m4_popdef([_m4_cmp]))
17425# then calls _m4_cmp([1+0], [0*2], [1], [2+0])
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436# m4_max(EXPR, ...)
17437# m4_min(EXPR, ...)
17438# -----------------
17439# Return the decimal value of the maximum (or minimum) in a series of
17440# integer expressions.
17441#
17442# _m4_foreach to the rescue; we only need to replace _m4_minmax.  Here,
17443# we need a temporary macro to track the best answer so far, so that
17444# the foreach expression is tractable.
17445
17446
17447# m4_set_add_all(SET, VALUE...)
17448# -----------------------------
17449# Add each VALUE into SET.  This is O(n) in the number of VALUEs, and
17450# can be faster than calling m4_set_add for each VALUE.
17451#
17452# _m4_foreach to the rescue.  If no deletions have occurred, then
17453# avoid the speed penalty of m4_set_add.
17454
17455
17456
17457
17458
17459
17460# Rewrite the first entry of the diversion stack.
17461